From 4ab8e389649efd5044b513183ca50a3b8c2bf2d2 Mon Sep 17 00:00:00 2001 From: sprooty Date: Sat, 17 Oct 2026 07:07:00 +0000 Subject: [PATCH] test(parity): re-record 21c95f6 golden for decision/preference/inbox steps (WI-1069) The committed cli, http and mcp goldens predate the decision, preference and inbox steps added to tests/parity/script.json by WI-1069, so the parity job's committed-golden check failed on those steps. Re-record all three transports from the Python core at the merge-base with origin/main (21c95f6), as docs/rust-port/drift-triage-2026-10-16.md describes. Only golden files change; the recorded steps already in the golden are unchanged. Co-Authored-By: Claude Haiku 5.5 Signed-off-by: sprooty --- tests/parity/golden/21c95f6/cli.json | 788 ++++++++++++++++++++++++++ tests/parity/golden/21c95f6/http.json | 331 +++++++++++ tests/parity/golden/21c95f6/mcp.json | 727 ++++++++++++++++++++++++ tests/parity/golden/21c95f6/meta.json | 2 +- 4 files changed, 1847 insertions(+), 1 deletion(-) diff --git a/tests/parity/golden/21c95f6/cli.json b/tests/parity/golden/21c95f6/cli.json index 59ecce4bd..ff0455e1a 100644 --- a/tests/parity/golden/21c95f6/cli.json +++ b/tests/parity/golden/21c95f6/cli.json @@ -2492,5 +2492,793 @@ }, "exit": 0, "operation": "user.remove" + }, + { + "body": { + "events": [ + { + "actor_id": "act_0001", + "at": "2026-01-02T03:04:12Z", + "audit_id": "aud_0002", + "entity_id": "tok_0001", + "entity_kind": "token", + "kind": "token.adopted", + "seq": 1, + "summary": { + "actor": "agent:vogt-engine", + "scopes": [ + "read", + "work.write", + "project.write" + ] + } + }, + { + "actor_id": "act_0001", + "at": "2026-01-02T03:04:16Z", + "audit_id": "aud_0003", + "entity_id": "tok_0002", + "entity_kind": "token", + "kind": "token.adopted", + "seq": 2, + "summary": { + "actor": "agent:vogt-sessions", + "scopes": [ + "read", + "work.write", + "project.write", + "writeback" + ] + } + }, + { + "actor_id": "act_0001", + "at": "2026-01-02T03:04:06Z", + "audit_id": "aud_0004", + "entity_id": "act_0004", + "entity_kind": "actor", + "kind": "actor.created", + "seq": 3, + "summary": { + "identity_ref": "agent:parity", + "kind": "agent" + } + }, + { + "actor_id": "act_0001", + "at": "2026-01-02T03:04:06Z", + "audit_id": "aud_0005", + "entity_id": "lbl_0001", + "entity_kind": "label", + "kind": "label.created", + "seq": 4, + "summary": { + "name": "parity" + } + }, + { + "actor_id": "act_0001", + "at": "2026-01-02T03:04:06Z", + "audit_id": "aud_0006", + "entity_id": "prj_0001", + "entity_kind": "project", + "kind": "project.registered", + "seq": 5, + "summary": { + "name": "Parity", + "slug": "parity" + } + } + ], + "next_cursor": 5 + }, + "exit": 0, + "operation": "events.list" + }, + { + "body": { + "events": [ + { + "actor_id": "act_0001", + "at": "2026-01-02T03:04:16Z", + "audit_id": "aud_0003", + "entity_id": "tok_0002", + "entity_kind": "token", + "kind": "token.adopted", + "seq": 2, + "summary": { + "actor": "agent:vogt-sessions", + "scopes": [ + "read", + "work.write", + "project.write", + "writeback" + ] + } + }, + { + "actor_id": "act_0001", + "at": "2026-01-02T03:04:06Z", + "audit_id": "aud_0004", + "entity_id": "act_0004", + "entity_kind": "actor", + "kind": "actor.created", + "seq": 3, + "summary": { + "identity_ref": "agent:parity", + "kind": "agent" + } + } + ], + "next_cursor": 3 + }, + "exit": 0, + "operation": "events.list" + }, + { + "body": { + "records": [ + { + "actor_id": "act_0001", + "actor_identity_ref": "local:parity", + "at": "2026-01-02T03:04:06Z", + "entity_id": "act_0005", + "entity_kind": "user", + "id": "aud_0026", + "operation": "user.remove", + "payload_digest": "sha256:6cb1b570d1a756565af0191ec35d1fed1dc103ed9b82afa000b68a0172b6f711", + "reason": "parity harness", + "revision": 25, + "txn_id": "txn_0029" + }, + { + "actor_id": "act_0001", + "actor_identity_ref": "local:parity", + "at": "2026-01-02T03:04:06Z", + "entity_id": "tok_0002", + "entity_kind": "token", + "id": "aud_0025", + "operation": "token.revoke", + "payload_digest": "sha256:5b5962b852bf72720c110fabfda9bea2589305bb33f47f25d1361ce815fa78c9", + "reason": "parity harness", + "revision": 24, + "txn_id": "txn_0027" + }, + { + "actor_id": "act_0001", + "actor_identity_ref": "local:parity", + "at": "2026-01-02T03:04:06Z", + "entity_id": "act_0005", + "entity_kind": "user", + "id": "aud_0024", + "operation": "user.set_password", + "payload_digest": "sha256:6782e2b5fa4d26772e8b2eeacbf82bb2c48960ddb25c736b28001d387114acf5", + "reason": "parity harness", + "revision": 23, + "txn_id": "txn_0026" + }, + { + "actor_id": "act_0001", + "actor_identity_ref": "local:parity", + "at": "2026-01-02T03:04:06Z", + "entity_id": "act_0005", + "entity_kind": "user", + "id": "aud_0023", + "operation": "user.create", + "payload_digest": "sha256:67e02676f1f6d286e8b3624b34c5496ed548e0ac92c3485f85c350f4c54dcce7", + "reason": "parity harness", + "revision": 22, + "txn_id": "txn_0025" + }, + { + "actor_id": "act_0001", + "actor_identity_ref": "local:parity", + "at": "2026-01-02T03:04:06Z", + "entity_id": "prj_0001", + "entity_kind": "project", + "id": "aud_0022", + "operation": "project.writeback", + "payload_digest": "sha256:5160587a6bd4fd6e1c8cfdfbe9e7b71a0aff7cb411b75e8ad277bea16adfdf65", + "reason": "parity harness", + "revision": 21, + "txn_id": "txn_0023" + } + ], + "total": 26 + }, + "exit": 0, + "operation": "audit.list" + }, + { + "body": { + "records": [ + { + "actor_id": "act_0001", + "actor_identity_ref": "local:parity", + "at": "2026-01-02T03:04:06Z", + "entity_id": "tok_0002", + "entity_kind": "token", + "id": "aud_0025", + "operation": "token.revoke", + "payload_digest": "sha256:5b5962b852bf72720c110fabfda9bea2589305bb33f47f25d1361ce815fa78c9", + "reason": "parity harness", + "revision": 24, + "txn_id": "txn_0027" + }, + { + "actor_id": "act_0001", + "actor_identity_ref": "local:parity", + "at": "2026-01-02T03:04:06Z", + "entity_id": "act_0005", + "entity_kind": "user", + "id": "aud_0024", + "operation": "user.set_password", + "payload_digest": "sha256:6782e2b5fa4d26772e8b2eeacbf82bb2c48960ddb25c736b28001d387114acf5", + "reason": "parity harness", + "revision": 23, + "txn_id": "txn_0026" + } + ], + "total": 26 + }, + "exit": 0, + "operation": "audit.list" + }, + { + "body": null, + "exit": 1, + "operation": "clone" + }, + { + "body": null, + "exit": 1, + "operation": "clone" + }, + { + "body": null, + "exit": 1, + "operation": "clone" + }, + { + "body": null, + "exit": 1, + "operation": "project.import" + }, + { + "body": null, + "exit": 1, + "operation": "project.import" + }, + { + "body": { + "decision": { + "answer": null, + "answered_at": null, + "answered_by": null, + "asker": "local:parity", + "asker_session": null, + "context": "CI is green.", + "created_at": "2026-01-02T03:04:05Z", + "expires_at": "2026-01-03T03:04:05Z", + "id": "dec_0001", + "options": [ + { + "description": "land it now", + "label": "Merge", + "recommended": true + }, + { + "description": "wait for the review", + "label": "Hold", + "recommended": false + } + ], + "question": "Merge the branch?", + "reason": "parity harness", + "state": "pending", + "work_item": null + } + }, + "exit": 0, + "operation": "decision.ask" + }, + { + "body": { + "decision": { + "answer": null, + "answered_at": null, + "answered_by": null, + "asker": "local:parity", + "asker_session": null, + "context": "", + "created_at": "2026-01-02T03:04:05Z", + "expires_at": "2026-01-03T03:04:05Z", + "id": "dec_0002", + "options": [ + { + "description": "", + "label": "Ship", + "recommended": true + }, + { + "description": "", + "label": "Wait", + "recommended": false + } + ], + "question": "Ship the release?", + "reason": "parity harness", + "state": "pending", + "work_item": null + } + }, + "exit": 0, + "operation": "decision.ask" + }, + { + "body": { + "decisions": [ + { + "answer": null, + "answered_at": null, + "answered_by": null, + "asker": "local:parity", + "asker_session": null, + "context": "", + "created_at": "2026-01-02T03:04:05Z", + "expires_at": "2026-01-03T03:04:05Z", + "id": "dec_0002", + "options": [ + { + "description": "", + "label": "Ship", + "recommended": true + }, + { + "description": "", + "label": "Wait", + "recommended": false + } + ], + "question": "Ship the release?", + "reason": "parity harness", + "state": "pending", + "work_item": null + }, + { + "answer": null, + "answered_at": null, + "answered_by": null, + "asker": "local:parity", + "asker_session": null, + "context": "CI is green.", + "created_at": "2026-01-02T03:04:05Z", + "expires_at": "2026-01-03T03:04:05Z", + "id": "dec_0001", + "options": [ + { + "description": "land it now", + "label": "Merge", + "recommended": true + }, + { + "description": "wait for the review", + "label": "Hold", + "recommended": false + } + ], + "question": "Merge the branch?", + "reason": "parity harness", + "state": "pending", + "work_item": null + } + ] + }, + "exit": 0, + "operation": "decision.list" + }, + { + "body": { + "decisions": [ + { + "answer": null, + "answered_at": null, + "answered_by": null, + "asker": "local:parity", + "asker_session": null, + "context": "", + "created_at": "2026-01-02T03:04:05Z", + "expires_at": "2026-01-03T03:04:05Z", + "id": "dec_0002", + "options": [ + { + "description": "", + "label": "Ship", + "recommended": true + }, + { + "description": "", + "label": "Wait", + "recommended": false + } + ], + "question": "Ship the release?", + "reason": "parity harness", + "state": "pending", + "work_item": null + }, + { + "answer": null, + "answered_at": null, + "answered_by": null, + "asker": "local:parity", + "asker_session": null, + "context": "CI is green.", + "created_at": "2026-01-02T03:04:05Z", + "expires_at": "2026-01-03T03:04:05Z", + "id": "dec_0001", + "options": [ + { + "description": "land it now", + "label": "Merge", + "recommended": true + }, + { + "description": "wait for the review", + "label": "Hold", + "recommended": false + } + ], + "question": "Merge the branch?", + "reason": "parity harness", + "state": "pending", + "work_item": null + } + ] + }, + "exit": 0, + "operation": "decision.list" + }, + { + "body": { + "actor_unknown_hidden": 0, + "counts": { + "active": 2, + "archived": 0, + "snoozed": 0 + }, + "coverage": { + "agent": { + "count": 2, + "detail": "no session engine is configured", + "observed_at": null, + "projects": 0, + "registered": 2, + "source": "agent", + "status": "unconfigured" + }, + "ci": { + "count": 0, + "detail": "this collector has not completed a sweep", + "observed_at": null, + "projects": 0, + "registered": 2, + "source": "ci", + "status": "unswept" + }, + "drift": { + "count": 0, + "detail": "open proposals in the declared store", + "observed_at": null, + "projects": 0, + "registered": 2, + "source": "drift", + "status": "current" + }, + "github": { + "count": 0, + "detail": "this collector has not completed a sweep", + "observed_at": null, + "projects": 0, + "registered": 2, + "source": "github", + "status": "unswept" + } + }, + "engine_available": false, + "engine_detail": "no session engine is configured", + "engine_status": "not_configured", + "entries": [ + { + "action": { + "decision_id": "dec_0002", + "drift_id": null, + "grant_id": null, + "kind": "decision", + "session_id": null, + "subject_key": null + }, + "actor_kind": "human", + "actor_login": "local:parity", + "actor_relation": "org_member", + "entry_key": "agent:decision:dec_0002", + "evidence_snapshot": "", + "freshness": "live", + "kind": "decision.pending", + "observed_at": null, + "occurred_at": "2026-01-02T03:04:05Z", + "project_slug": null, + "proposed_change": null, + "provisional": true, + "session_id": null, + "snooze_until": null, + "source": "agent", + "source_subject_key": "dec_0002", + "source_url": null, + "summary": "local:parity asks: Ship the release? Options: Ship (recommended) | Wait.", + "title": "Decision: Ship the release?", + "triage_state": "active", + "trust_state": "unverified", + "work_item_ref": null + }, + { + "action": { + "decision_id": "dec_0001", + "drift_id": null, + "grant_id": null, + "kind": "decision", + "session_id": null, + "subject_key": null + }, + "actor_kind": "human", + "actor_login": "local:parity", + "actor_relation": "org_member", + "entry_key": "agent:decision:dec_0001", + "evidence_snapshot": "", + "freshness": "live", + "kind": "decision.pending", + "observed_at": null, + "occurred_at": "2026-01-02T03:04:05Z", + "project_slug": null, + "proposed_change": null, + "provisional": true, + "session_id": null, + "snooze_until": null, + "source": "agent", + "source_subject_key": "dec_0001", + "source_url": null, + "summary": "local:parity asks: Merge the branch? Options: Merge (recommended) | Hold.", + "title": "Decision: Merge the branch?", + "triage_state": "active", + "trust_state": "unverified", + "work_item_ref": null + } + ], + "github_scope": "registered projects only", + "high_water": { + "agent": "2026-01-02T03:04:05Z", + "ci": null, + "drift": null, + "github": null + }, + "instance_scope": "registered projects only", + "next_cursor": null, + "snapshot_at": "2026-01-02T03:04:05Z" + }, + "exit": 0, + "operation": "inbox.list" + }, + { + "body": { + "decision": { + "answer": { + "label": "Merge", + "note": "reviewed" + }, + "answered_at": "2026-01-02T03:04:06Z", + "answered_by": "local:parity", + "asker": "local:parity", + "asker_session": null, + "context": "CI is green.", + "created_at": "2026-01-02T03:04:05Z", + "expires_at": "2026-01-03T03:04:05Z", + "id": "dec_0001", + "options": [ + { + "description": "land it now", + "label": "Merge", + "recommended": true + }, + { + "description": "wait for the review", + "label": "Hold", + "recommended": false + } + ], + "question": "Merge the branch?", + "reason": "parity harness", + "state": "answered", + "work_item": null + } + }, + "exit": 0, + "operation": "decision.answer" + }, + { + "body": null, + "exit": 1, + "operation": "decision.answer" + }, + { + "body": null, + "exit": 1, + "operation": "decision.answer" + }, + { + "body": { + "decision": { + "answer": null, + "answered_at": null, + "answered_by": null, + "asker": "local:parity", + "asker_session": null, + "context": "", + "created_at": "2026-01-02T03:04:05Z", + "expires_at": "2026-01-03T03:04:05Z", + "id": "dec_0002", + "options": [ + { + "description": "", + "label": "Ship", + "recommended": true + }, + { + "description": "", + "label": "Wait", + "recommended": false + } + ], + "question": "Ship the release?", + "reason": "parity harness", + "state": "withdrawn", + "work_item": null + } + }, + "exit": 0, + "operation": "decision.withdraw" + }, + { + "body": { + "decisions": [ + { + "answer": { + "label": "Merge", + "note": "reviewed" + }, + "answered_at": "2026-01-02T03:04:06Z", + "answered_by": "local:parity", + "asker": "local:parity", + "asker_session": null, + "context": "CI is green.", + "created_at": "2026-01-02T03:04:05Z", + "expires_at": "2026-01-03T03:04:05Z", + "id": "dec_0001", + "options": [ + { + "description": "land it now", + "label": "Merge", + "recommended": true + }, + { + "description": "wait for the review", + "label": "Hold", + "recommended": false + } + ], + "question": "Merge the branch?", + "reason": "parity harness", + "state": "answered", + "work_item": null + } + ] + }, + "exit": 0, + "operation": "decision.list" + }, + { + "body": { + "actor_unknown_hidden": 0, + "counts": { + "active": 0, + "archived": 0, + "snoozed": 0 + }, + "coverage": { + "agent": { + "count": 0, + "detail": "no session engine is configured", + "observed_at": null, + "projects": 0, + "registered": 2, + "source": "agent", + "status": "unconfigured" + }, + "ci": { + "count": 0, + "detail": "this collector has not completed a sweep", + "observed_at": null, + "projects": 0, + "registered": 2, + "source": "ci", + "status": "unswept" + }, + "drift": { + "count": 0, + "detail": "open proposals in the declared store", + "observed_at": null, + "projects": 0, + "registered": 2, + "source": "drift", + "status": "current" + }, + "github": { + "count": 0, + "detail": "this collector has not completed a sweep", + "observed_at": null, + "projects": 0, + "registered": 2, + "source": "github", + "status": "unswept" + } + }, + "engine_available": false, + "engine_detail": "no session engine is configured", + "engine_status": "not_configured", + "entries": [], + "github_scope": "registered projects only", + "high_water": { + "agent": null, + "ci": null, + "drift": null, + "github": null + }, + "instance_scope": "registered projects only", + "next_cursor": null, + "snapshot_at": "2026-01-02T03:04:05Z" + }, + "exit": 0, + "operation": "inbox.list" + }, + { + "body": null, + "exit": 1, + "operation": "preference.set" + }, + { + "body": null, + "exit": 1, + "operation": "preference.set" + }, + { + "body": { + "preferences": [ + { + "key": "inbox.filter", + "updated_at": "2026-01-02T03:04:05Z", + "value": { + "actor": "any", + "sources": [ + "ci" + ], + "triage_states": [ + "active" + ] + }, + "version": 1 + } + ] + }, + "exit": 0, + "operation": "preference.get" } ] diff --git a/tests/parity/golden/21c95f6/http.json b/tests/parity/golden/21c95f6/http.json index dcdb9b7c8..f8b73a743 100644 --- a/tests/parity/golden/21c95f6/http.json +++ b/tests/parity/golden/21c95f6/http.json @@ -688,6 +688,259 @@ }, "status": 200 }, + { + "operation": "events.list", + "result": { + "events": [ + { + "actor_id": "act_0001", + "at": "2026-01-02T03:04:12Z", + "audit_id": "aud_0002", + "entity_id": "tok_0001", + "entity_kind": "token", + "kind": "token.adopted", + "seq": 1, + "summary": { + "actor": "agent:vogt-engine", + "scopes": [ + "read", + "work.write", + "project.write" + ] + } + }, + { + "actor_id": "act_0001", + "at": "2026-01-02T03:04:16Z", + "audit_id": "aud_0003", + "entity_id": "tok_0002", + "entity_kind": "token", + "kind": "token.adopted", + "seq": 2, + "summary": { + "actor": "agent:vogt-sessions", + "scopes": [ + "read", + "work.write", + "project.write", + "writeback" + ] + } + }, + { + "actor_id": "act_0004", + "at": "2026-01-02T03:04:06Z", + "audit_id": "aud_0004", + "entity_id": "act_0004", + "entity_kind": "actor", + "kind": "actor.auto_register", + "seq": 3, + "summary": { + "identity_ref": "human:ada-lovelace", + "kind": "human" + } + }, + { + "actor_id": "act_0004", + "at": "2026-01-02T03:04:07Z", + "audit_id": "aud_0005", + "entity_id": "tok_0003", + "entity_kind": "token", + "kind": "install.bootstrapped", + "seq": 4, + "summary": { + "actor": "human:ada-lovelace", + "scopes": [ + "admin" + ] + } + }, + { + "actor_id": "act_0004", + "at": "2026-01-02T03:04:07Z", + "audit_id": "aud_0006", + "entity_id": "lbl_0001", + "entity_kind": "label", + "kind": "label.created", + "seq": 5, + "summary": { + "name": "bug" + } + } + ], + "next_cursor": 5 + }, + "status": 200 + }, + { + "operation": "events.list", + "result": { + "events": [ + { + "actor_id": "act_0001", + "at": "2026-01-02T03:04:16Z", + "audit_id": "aud_0003", + "entity_id": "tok_0002", + "entity_kind": "token", + "kind": "token.adopted", + "seq": 2, + "summary": { + "actor": "agent:vogt-sessions", + "scopes": [ + "read", + "work.write", + "project.write", + "writeback" + ] + } + }, + { + "actor_id": "act_0004", + "at": "2026-01-02T03:04:06Z", + "audit_id": "aud_0004", + "entity_id": "act_0004", + "entity_kind": "actor", + "kind": "actor.auto_register", + "seq": 3, + "summary": { + "identity_ref": "human:ada-lovelace", + "kind": "human" + } + } + ], + "next_cursor": 3 + }, + "status": 200 + }, + { + "operation": "audit.list", + "result": { + "records": [ + { + "actor_id": "act_0004", + "actor_identity_ref": "human:ada-lovelace", + "at": "2026-01-02T03:04:07Z", + "entity_id": "act_0005", + "entity_kind": "user", + "id": "aud_0013", + "operation": "user.remove", + "payload_digest": "sha256:c641563a061b879b4b32211c6b39a7a2eeb71a7a114359133e079bc16f1b4bfa", + "reason": "parity harness", + "revision": 11, + "txn_id": "txn_0013" + }, + { + "actor_id": "act_0005", + "actor_identity_ref": "human:ada", + "at": "2026-01-02T03:04:06Z", + "entity_id": "tok_0005", + "entity_kind": "token", + "id": "aud_0012", + "operation": "auth.login", + "payload_digest": "sha256:079f75e3b73e507a9203394b2f453386de6362973c6d3e9dfa6ddfee0201f931", + "reason": "password login by ada", + "revision": 10, + "txn_id": "txn_0012" + }, + { + "actor_id": "act_0004", + "actor_identity_ref": "human:ada-lovelace", + "at": "2026-01-02T03:04:07Z", + "entity_id": "tok_0002", + "entity_kind": "token", + "id": "aud_0011", + "operation": "token.revoke", + "payload_digest": "sha256:d331a6f9ffa337f5bbea02b91117f85c4a54fe0e8550538ef0ccbe9757a74c7a", + "reason": "parity harness", + "revision": 9, + "txn_id": "txn_0011" + }, + { + "actor_id": "act_0004", + "actor_identity_ref": "human:ada-lovelace", + "at": "2026-01-02T03:04:07Z", + "entity_id": "act_0005", + "entity_kind": "user", + "id": "aud_0010", + "operation": "user.set_password", + "payload_digest": "sha256:6782e2b5fa4d26772e8b2eeacbf82bb2c48960ddb25c736b28001d387114acf5", + "reason": "parity harness", + "revision": 8, + "txn_id": "txn_0010" + }, + { + "actor_id": "act_0004", + "actor_identity_ref": "human:ada-lovelace", + "at": "2026-01-02T03:04:07Z", + "entity_id": "act_0005", + "entity_kind": "user", + "id": "aud_0009", + "operation": "user.create", + "payload_digest": "sha256:67e02676f1f6d286e8b3624b34c5496ed548e0ac92c3485f85c350f4c54dcce7", + "reason": "parity harness", + "revision": 7, + "txn_id": "txn_0009" + } + ], + "total": 13 + }, + "status": 200 + }, + { + "operation": "audit.list", + "result": { + "records": [ + { + "actor_id": "act_0005", + "actor_identity_ref": "human:ada", + "at": "2026-01-02T03:04:06Z", + "entity_id": "tok_0005", + "entity_kind": "token", + "id": "aud_0012", + "operation": "auth.login", + "payload_digest": "sha256:079f75e3b73e507a9203394b2f453386de6362973c6d3e9dfa6ddfee0201f931", + "reason": "password login by ada", + "revision": 10, + "txn_id": "txn_0012" + }, + { + "actor_id": "act_0004", + "actor_identity_ref": "human:ada-lovelace", + "at": "2026-01-02T03:04:07Z", + "entity_id": "tok_0002", + "entity_kind": "token", + "id": "aud_0011", + "operation": "token.revoke", + "payload_digest": "sha256:d331a6f9ffa337f5bbea02b91117f85c4a54fe0e8550538ef0ccbe9757a74c7a", + "reason": "parity harness", + "revision": 9, + "txn_id": "txn_0011" + } + ], + "total": 13 + }, + "status": 200 + }, + { + "operation": "project.import", + "result": { + "error": { + "code": "invalid_request", + "message": "'not a repo!' does not name a GitHub repository or a configured Forgejo repository; give owner/name, host/owner/name, or a repository URL" + } + }, + "status": 400 + }, + { + "operation": "project.import", + "result": { + "error": { + "code": "invalid_request", + "message": "'not a repo!' does not name a GitHub repository or a configured Forgejo repository; give owner/name, host/owner/name, or a repository URL" + } + }, + "status": 400 + }, { "operation": "dump", "result": { @@ -1333,6 +1586,84 @@ "scope": "admin", "token_id": "tok_0003", "transport": "http" + }, + { + "actor_id": "act_0004", + "at": "2026-01-02T03:04:05+00:00", + "decision": "allow", + "detail": null, + "id": "aut_0035", + "identity_ref": "human:ada-lovelace", + "operation": "events.list", + "reason_code": "token_valid", + "scope": "read", + "token_id": "tok_0003", + "transport": "http" + }, + { + "actor_id": "act_0004", + "at": "2026-01-02T03:04:05+00:00", + "decision": "allow", + "detail": null, + "id": "aut_0036", + "identity_ref": "human:ada-lovelace", + "operation": "events.list", + "reason_code": "token_valid", + "scope": "read", + "token_id": "tok_0003", + "transport": "http" + }, + { + "actor_id": "act_0004", + "at": "2026-01-02T03:04:05+00:00", + "decision": "allow", + "detail": null, + "id": "aut_0037", + "identity_ref": "human:ada-lovelace", + "operation": "audit.list", + "reason_code": "token_valid", + "scope": "read", + "token_id": "tok_0003", + "transport": "http" + }, + { + "actor_id": "act_0004", + "at": "2026-01-02T03:04:05+00:00", + "decision": "allow", + "detail": null, + "id": "aut_0038", + "identity_ref": "human:ada-lovelace", + "operation": "audit.list", + "reason_code": "token_valid", + "scope": "read", + "token_id": "tok_0003", + "transport": "http" + }, + { + "actor_id": "act_0004", + "at": "2026-01-02T03:04:05+00:00", + "decision": "allow", + "detail": null, + "id": "aut_0039", + "identity_ref": "human:ada-lovelace", + "operation": "project.import", + "reason_code": "token_valid", + "scope": "project.write", + "token_id": "tok_0003", + "transport": "http" + }, + { + "actor_id": "act_0004", + "at": "2026-01-02T03:04:05+00:00", + "decision": "allow", + "detail": null, + "id": "aut_0040", + "identity_ref": "human:ada-lovelace", + "operation": "project.import", + "reason_code": "token_valid", + "scope": "project.write", + "token_id": "tok_0003", + "transport": "http" } ], "events": [ diff --git a/tests/parity/golden/21c95f6/mcp.json b/tests/parity/golden/21c95f6/mcp.json index 14665d456..cc1b613c8 100644 --- a/tests/parity/golden/21c95f6/mcp.json +++ b/tests/parity/golden/21c95f6/mcp.json @@ -2207,5 +2207,732 @@ }, "is_error": false, "operation": "user.remove" + }, + { + "body": { + "events": [ + { + "actor_id": "act_0001", + "at": "2026-01-02T03:04:12Z", + "audit_id": "aud_0002", + "entity_id": "tok_0001", + "entity_kind": "token", + "kind": "token.adopted", + "seq": 1, + "summary": { + "actor": "agent:vogt-engine", + "scopes": [ + "read", + "work.write", + "project.write" + ] + } + }, + { + "actor_id": "act_0001", + "at": "2026-01-02T03:04:16Z", + "audit_id": "aud_0003", + "entity_id": "tok_0002", + "entity_kind": "token", + "kind": "token.adopted", + "seq": 2, + "summary": { + "actor": "agent:vogt-sessions", + "scopes": [ + "read", + "work.write", + "project.write", + "writeback" + ] + } + }, + { + "actor_id": "act_0001", + "at": "2026-01-02T03:04:08Z", + "audit_id": "aud_0004", + "entity_id": "act_0004", + "entity_kind": "actor", + "kind": "actor.created", + "seq": 3, + "summary": { + "identity_ref": "agent:parity", + "kind": "agent" + } + }, + { + "actor_id": "act_0001", + "at": "2026-01-02T03:04:10Z", + "audit_id": "aud_0005", + "entity_id": "lbl_0001", + "entity_kind": "label", + "kind": "label.created", + "seq": 4, + "summary": { + "name": "parity" + } + }, + { + "actor_id": "act_0001", + "at": "2026-01-02T03:04:12Z", + "audit_id": "aud_0006", + "entity_id": "prj_0001", + "entity_kind": "project", + "kind": "project.registered", + "seq": 5, + "summary": { + "name": "Parity", + "slug": "parity" + } + } + ], + "next_cursor": 5 + }, + "is_error": false, + "operation": "events.list" + }, + { + "body": { + "events": [ + { + "actor_id": "act_0001", + "at": "2026-01-02T03:04:16Z", + "audit_id": "aud_0003", + "entity_id": "tok_0002", + "entity_kind": "token", + "kind": "token.adopted", + "seq": 2, + "summary": { + "actor": "agent:vogt-sessions", + "scopes": [ + "read", + "work.write", + "project.write", + "writeback" + ] + } + }, + { + "actor_id": "act_0001", + "at": "2026-01-02T03:04:08Z", + "audit_id": "aud_0004", + "entity_id": "act_0004", + "entity_kind": "actor", + "kind": "actor.created", + "seq": 3, + "summary": { + "identity_ref": "agent:parity", + "kind": "agent" + } + } + ], + "next_cursor": 3 + }, + "is_error": false, + "operation": "events.list" + }, + { + "body": { + "records": [ + { + "actor_id": "act_0001", + "actor_identity_ref": "local:parity", + "at": "2026-01-02T03:05:07Z", + "entity_id": "act_0005", + "entity_kind": "user", + "id": "aud_0023", + "operation": "user.remove", + "payload_digest": "sha256:6cb1b570d1a756565af0191ec35d1fed1dc103ed9b82afa000b68a0172b6f711", + "reason": "parity harness", + "revision": 22, + "txn_id": "txn_0028" + }, + { + "actor_id": "act_0001", + "actor_identity_ref": "local:parity", + "at": "2026-01-02T03:05:01Z", + "entity_id": "tok_0002", + "entity_kind": "token", + "id": "aud_0022", + "operation": "token.revoke", + "payload_digest": "sha256:8fa240315d52246f71e2fb88d07d05ccf98a13728f41fe384e7bdfc092b145bd", + "reason": "parity harness", + "revision": 21, + "txn_id": "txn_0026" + }, + { + "actor_id": "act_0001", + "actor_identity_ref": "local:parity", + "at": "2026-01-02T03:04:59Z", + "entity_id": "act_0005", + "entity_kind": "user", + "id": "aud_0021", + "operation": "user.set_password", + "payload_digest": "sha256:6782e2b5fa4d26772e8b2eeacbf82bb2c48960ddb25c736b28001d387114acf5", + "reason": "parity harness", + "revision": 20, + "txn_id": "txn_0025" + }, + { + "actor_id": "act_0001", + "actor_identity_ref": "local:parity", + "at": "2026-01-02T03:04:57Z", + "entity_id": "act_0005", + "entity_kind": "user", + "id": "aud_0020", + "operation": "user.create", + "payload_digest": "sha256:67e02676f1f6d286e8b3624b34c5496ed548e0ac92c3485f85c350f4c54dcce7", + "reason": "parity harness", + "revision": 19, + "txn_id": "txn_0024" + }, + { + "actor_id": "act_0001", + "actor_identity_ref": "local:parity", + "at": "2026-01-02T03:04:51Z", + "entity_id": "prj_0001", + "entity_kind": "project", + "id": "aud_0019", + "operation": "project.writeback", + "payload_digest": "sha256:5160587a6bd4fd6e1c8cfdfbe9e7b71a0aff7cb411b75e8ad277bea16adfdf65", + "reason": "parity harness", + "revision": 18, + "txn_id": "txn_0022" + } + ], + "total": 23 + }, + "is_error": false, + "operation": "audit.list" + }, + { + "body": { + "records": [ + { + "actor_id": "act_0001", + "actor_identity_ref": "local:parity", + "at": "2026-01-02T03:05:01Z", + "entity_id": "tok_0002", + "entity_kind": "token", + "id": "aud_0022", + "operation": "token.revoke", + "payload_digest": "sha256:8fa240315d52246f71e2fb88d07d05ccf98a13728f41fe384e7bdfc092b145bd", + "reason": "parity harness", + "revision": 21, + "txn_id": "txn_0026" + }, + { + "actor_id": "act_0001", + "actor_identity_ref": "local:parity", + "at": "2026-01-02T03:04:59Z", + "entity_id": "act_0005", + "entity_kind": "user", + "id": "aud_0021", + "operation": "user.set_password", + "payload_digest": "sha256:6782e2b5fa4d26772e8b2eeacbf82bb2c48960ddb25c736b28001d387114acf5", + "reason": "parity harness", + "revision": 20, + "txn_id": "txn_0025" + } + ], + "total": 23 + }, + "is_error": false, + "operation": "audit.list" + }, + { + "body": { + "text": "invalid_request: /backup is a backup of this instance (ins_0001); a clone copies another instance. Use `restore` to put this one back." + }, + "is_error": true, + "operation": "clone" + }, + { + "body": { + "text": "invalid_request: /backup is a backup of this instance (ins_0001); a clone copies another instance. Use `restore` to put this one back." + }, + "is_error": true, + "operation": "clone" + }, + { + "body": { + "text": "not_found: /missing has no manifest.json; it is not a Vogt backup" + }, + "is_error": true, + "operation": "clone" + }, + { + "body": { + "text": "invalid_request: 'not a repo!' does not name a GitHub repository or a configured Forgejo repository; give owner/name, host/owner/name, or a repository URL" + }, + "is_error": true, + "operation": "project.import" + }, + { + "body": { + "text": "invalid_request: 'not a repo!' does not name a GitHub repository or a configured Forgejo repository; give owner/name, host/owner/name, or a repository URL" + }, + "is_error": true, + "operation": "project.import" + }, + { + "body": { + "decision": { + "asker": "local:parity", + "context": "CI is green.", + "created_at": "2026-01-02T03:05:08Z", + "expires_at": "2026-01-03T03:05:08Z", + "id": "dec_0001", + "options": [ + { + "description": "land it now", + "label": "Merge", + "recommended": true + }, + { + "description": "wait for the review", + "label": "Hold", + "recommended": false + } + ], + "question": "Merge the branch?", + "reason": "parity harness", + "state": "pending" + } + }, + "is_error": false, + "operation": "decision.ask" + }, + { + "body": { + "decision": { + "asker": "local:parity", + "context": "", + "created_at": "2026-01-02T03:05:11Z", + "expires_at": "2026-01-03T03:05:11Z", + "id": "dec_0002", + "options": [ + { + "description": "", + "label": "Ship", + "recommended": true + }, + { + "description": "", + "label": "Wait", + "recommended": false + } + ], + "question": "Ship the release?", + "reason": "parity harness", + "state": "pending" + } + }, + "is_error": false, + "operation": "decision.ask" + }, + { + "body": { + "decisions": [ + { + "asker": "local:parity", + "context": "", + "created_at": "2026-01-02T03:05:11Z", + "expires_at": "2026-01-03T03:05:11Z", + "id": "dec_0002", + "options": [ + { + "description": "", + "label": "Ship", + "recommended": true + }, + { + "description": "", + "label": "Wait", + "recommended": false + } + ], + "question": "Ship the release?", + "reason": "parity harness", + "state": "pending" + }, + { + "asker": "local:parity", + "context": "CI is green.", + "created_at": "2026-01-02T03:05:08Z", + "expires_at": "2026-01-03T03:05:08Z", + "id": "dec_0001", + "options": [ + { + "description": "land it now", + "label": "Merge", + "recommended": true + }, + { + "description": "wait for the review", + "label": "Hold", + "recommended": false + } + ], + "question": "Merge the branch?", + "reason": "parity harness", + "state": "pending" + } + ] + }, + "is_error": false, + "operation": "decision.list" + }, + { + "body": { + "decisions": [ + { + "asker": "local:parity", + "context": "", + "created_at": "2026-01-02T03:05:11Z", + "expires_at": "2026-01-03T03:05:11Z", + "id": "dec_0002", + "options": [ + { + "description": "", + "label": "Ship", + "recommended": true + }, + { + "description": "", + "label": "Wait", + "recommended": false + } + ], + "question": "Ship the release?", + "reason": "parity harness", + "state": "pending" + }, + { + "asker": "local:parity", + "context": "CI is green.", + "created_at": "2026-01-02T03:05:08Z", + "expires_at": "2026-01-03T03:05:08Z", + "id": "dec_0001", + "options": [ + { + "description": "land it now", + "label": "Merge", + "recommended": true + }, + { + "description": "wait for the review", + "label": "Hold", + "recommended": false + } + ], + "question": "Merge the branch?", + "reason": "parity harness", + "state": "pending" + } + ] + }, + "is_error": false, + "operation": "decision.list" + }, + { + "body": { + "actor_unknown_hidden": 0, + "counts": { + "active": 2, + "archived": 0, + "snoozed": 0 + }, + "coverage": { + "agent": { + "count": 2, + "detail": "no session engine is configured", + "projects": 0, + "registered": 2, + "source": "agent", + "status": "unconfigured" + }, + "ci": { + "count": 0, + "detail": "this collector has not completed a sweep", + "projects": 0, + "registered": 2, + "source": "ci", + "status": "unswept" + }, + "drift": { + "count": 0, + "detail": "open proposals in the declared store", + "projects": 0, + "registered": 2, + "source": "drift", + "status": "current" + }, + "github": { + "count": 0, + "detail": "this collector has not completed a sweep", + "projects": 0, + "registered": 2, + "source": "github", + "status": "unswept" + } + }, + "engine_available": false, + "engine_detail": "no session engine is configured", + "engine_status": "not_configured", + "entries": [ + { + "action": { + "decision_id": "dec_0002", + "kind": "decision" + }, + "actor_kind": "human", + "actor_login": "local:parity", + "actor_relation": "org_member", + "entry_key": "agent:decision:dec_0002", + "evidence_snapshot": "", + "freshness": "live", + "kind": "decision.pending", + "occurred_at": "2026-01-02T03:05:11Z", + "provisional": true, + "source": "agent", + "source_subject_key": "dec_0002", + "summary": "local:parity asks: Ship the release? Options: Ship (recommended) | Wait.", + "title": "Decision: Ship the release?", + "triage_state": "active", + "trust_state": "unverified" + }, + { + "action": { + "decision_id": "dec_0001", + "kind": "decision" + }, + "actor_kind": "human", + "actor_login": "local:parity", + "actor_relation": "org_member", + "entry_key": "agent:decision:dec_0001", + "evidence_snapshot": "", + "freshness": "live", + "kind": "decision.pending", + "occurred_at": "2026-01-02T03:05:08Z", + "provisional": true, + "source": "agent", + "source_subject_key": "dec_0001", + "summary": "local:parity asks: Merge the branch? Options: Merge (recommended) | Hold.", + "title": "Decision: Merge the branch?", + "triage_state": "active", + "trust_state": "unverified" + } + ], + "github_scope": "registered projects only", + "high_water": { + "agent": "2026-01-02T03:05:11Z" + }, + "instance_scope": "registered projects only", + "snapshot_at": "2026-01-02T03:05:18Z" + }, + "is_error": false, + "operation": "inbox.list" + }, + { + "body": { + "decision": { + "answer": { + "label": "Merge", + "note": "reviewed" + }, + "answered_at": "2026-01-02T03:05:24Z", + "answered_by": "local:parity", + "asker": "local:parity", + "context": "CI is green.", + "created_at": "2026-01-02T03:05:08Z", + "expires_at": "2026-01-03T03:05:08Z", + "id": "dec_0001", + "options": [ + { + "description": "land it now", + "label": "Merge", + "recommended": true + }, + { + "description": "wait for the review", + "label": "Hold", + "recommended": false + } + ], + "question": "Merge the branch?", + "reason": "parity harness", + "state": "answered" + } + }, + "is_error": false, + "operation": "decision.answer" + }, + { + "body": { + "text": "conflict: decision dec_0001 is answered, not pending" + }, + "is_error": true, + "operation": "decision.answer" + }, + { + "body": { + "text": "invalid_request: 'Deploy' is not an option of dec_0002; it offers 'Ship', 'Wait'" + }, + "is_error": true, + "operation": "decision.answer" + }, + { + "body": { + "decision": { + "asker": "local:parity", + "context": "", + "created_at": "2026-01-02T03:05:11Z", + "expires_at": "2026-01-03T03:05:11Z", + "id": "dec_0002", + "options": [ + { + "description": "", + "label": "Ship", + "recommended": true + }, + { + "description": "", + "label": "Wait", + "recommended": false + } + ], + "question": "Ship the release?", + "reason": "parity harness", + "state": "withdrawn" + } + }, + "is_error": false, + "operation": "decision.withdraw" + }, + { + "body": { + "decisions": [ + { + "answer": { + "label": "Merge", + "note": "reviewed" + }, + "answered_at": "2026-01-02T03:05:24Z", + "answered_by": "local:parity", + "asker": "local:parity", + "context": "CI is green.", + "created_at": "2026-01-02T03:05:08Z", + "expires_at": "2026-01-03T03:05:08Z", + "id": "dec_0001", + "options": [ + { + "description": "land it now", + "label": "Merge", + "recommended": true + }, + { + "description": "wait for the review", + "label": "Hold", + "recommended": false + } + ], + "question": "Merge the branch?", + "reason": "parity harness", + "state": "answered" + } + ] + }, + "is_error": false, + "operation": "decision.list" + }, + { + "body": { + "actor_unknown_hidden": 0, + "counts": { + "active": 0, + "archived": 0, + "snoozed": 0 + }, + "coverage": { + "agent": { + "count": 0, + "detail": "no session engine is configured", + "projects": 0, + "registered": 2, + "source": "agent", + "status": "unconfigured" + }, + "ci": { + "count": 0, + "detail": "this collector has not completed a sweep", + "projects": 0, + "registered": 2, + "source": "ci", + "status": "unswept" + }, + "drift": { + "count": 0, + "detail": "open proposals in the declared store", + "projects": 0, + "registered": 2, + "source": "drift", + "status": "current" + }, + "github": { + "count": 0, + "detail": "this collector has not completed a sweep", + "projects": 0, + "registered": 2, + "source": "github", + "status": "unswept" + } + }, + "engine_available": false, + "engine_detail": "no session engine is configured", + "engine_status": "not_configured", + "entries": [], + "github_scope": "registered projects only", + "high_water": {}, + "instance_scope": "registered projects only", + "snapshot_at": "2026-01-02T03:05:32Z" + }, + "is_error": false, + "operation": "inbox.list" + }, + { + "body": { + "text": "invalid_preference: invalid inbox.filter value \u2014 sources.0: Input should be 'github', 'drift', 'ci' or 'agent'" + }, + "is_error": true, + "operation": "preference.set" + }, + { + "body": { + "text": "invalid_preference: invalid inbox.filter value \u2014 unknown: Extra inputs are not permitted" + }, + "is_error": true, + "operation": "preference.set" + }, + { + "body": { + "preferences": [ + { + "key": "inbox.filter", + "updated_at": "2026-01-02T03:04:25Z", + "value": { + "actor": "any", + "sources": [ + "ci" + ], + "triage_states": [ + "active" + ] + }, + "version": 1 + } + ] + }, + "is_error": false, + "operation": "preference.get" } ] diff --git a/tests/parity/golden/21c95f6/meta.json b/tests/parity/golden/21c95f6/meta.json index ab7b8da55..687716b6c 100644 --- a/tests/parity/golden/21c95f6/meta.json +++ b/tests/parity/golden/21c95f6/meta.json @@ -1,5 +1,5 @@ { "main_sha": "21c95f674e1b03ee177394f605abb1abfac41cdd", - "recorded_at": "2026-10-17T03:05:32Z", + "recorded_at": "2026-10-17T07:01:54Z", "recorder": "scripts/parity.py" }