Repository navigation
feat(status): a participant status carries its set of tracking IDs - #6820
Draft
sei-ahouseholder wants to merge 6 commits into
Draft
sei-ahouseholder wants to merge 6 commits into
sei-ahouseholder wants to merge 6 commits into
Conversation
…6762) Replace ParticipantStatus.tracking_id with tracking_ids, a set of ParticipantTrackingId entries keyed on value (CM-35-001..003). Every status write keeps the previous set unless a list is supplied, through carried_tracking_ids (CM-35-004/005). The CASE_MANAGER records the previous set for a received status whose wire form omits trackingIds, the one fill RSH-09-010 allows; replicas copy the recorded set. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every ParticipantStatus now serializes its trackingIds set, so every scenario is re-recorded in one pass. The tree index and the Log Replay goldens are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Test the tracking IDs on notify-fix-deployed and notify-published, fix a dangling symbol in the ledger note and a misplaced TS doc comment, point the new ratchet entries at their owning Tasks, and state which writers apply carried_tracking_ids. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
8 tasks
Contributor
Author
|
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
Pre-push review (fresh agent, before the first push)6 findings: 1 NEW-ISSUE (inversion-halt), 1 FAIL, 4 IMPROVE.
|
8 tasks
…nded (#6762) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaces
ParticipantStatus.tracking_idwithtracking_ids, a set ofParticipantTrackingIdentries keyed onvalue, and makes every status write keep the participant's previous set unless it supplies a list (CM-35). The CASE_MANAGER records the previous set for a received status whose wire form omitstrackingIds.Held as a draft: the CM-35-004 ledger fill conflicts with CLP-07-011 and SIG-04-001/002 (see "Open question").
Issues: closed 1, opened 0
Questions: asked 1, filed 0
Open question
CM-35-004 and RSH-09-010 tell the CASE_MANAGER to record the previous set in the ledger for a received status that omits
trackingIds. This PR does that by setting the key on the entry'spayloadSnapshotobject. But CLP-07-011 says a received snapshot is the verbatim body, with nothing patched, and SIG-04-001/002 say the snapshot keeps the sender'sproofand that a replica refuses the entry when that proof fails to verify. A patched snapshot no longer matches the sender's proof, so a replica that verifies it would refuse the entry. Vultron's own senders always statetrackingIds(an empty list is serialized), so the fill runs only for a sender that leaves the key out, and no demo scenario reaches it. The orchestrator is asked to choose the fix before this PR leaves draft.Changes
vultron/core/models/participant_status.py: addsParticipantTrackingId(value, optionaltracker,extra="forbid"), theTrackingIdSettype (refuses a repeatedvalue, CM-35-003),tracking_idsonParticipantStatus(default[];tracking_idremoved with no compatibility), andcarried_tracking_ids, the one keep-or-replace rule (CM-35-004/005).vultron/primitives.py:UniqueBy, a list validator the ledger-type exporter can read, so the UI refuses what the model refuses.vultron/core/behaviors/case/nodes/participant/{status,common}.py:CreateParticipantStatusNodetakes optionaltracking_idsand otherwise keeps the set of the status it follows (the latest, or the lastfollowsstep). The on-behalf write uses this node, so it keeps the target's set.vultron/core/behaviors/case/nodes/invite_inert_participant.py: the inert invitee's birth status goes through the same rule.vultron/core/use_cases/triggers/**,routers/demo_triggers/actions.py:ParticipantStatusBodyadds optionaltracking_idsto the threenotify-*bodies;AddParticipantStatusTriggerRequestderives from it and the trigger tree passes it to the write node.vultron/core/behaviors/status/nodes/tracking_ids.py(new),add_participant_status_tree.py: at the CASE_MANAGER,ResolveOmittedTrackingIdsNode(precondition stage, read-only) decides the fill when the received body has notrackingIdskey;RecordFilledTrackingIdsNode(manager effect) stores the filled status.vultron/core/behaviors/case/nodes/{ledger_payload,lifecycle}.py,bridge/bt_bridge.py:LedgerObjectFillsets only the keys the received object lacks, for its own activity only;CommitCaseLedgerEntryNodeapplies it; the bridge restores the newledger_object_fillkey.vultron/wire/as2/extractor/_builders/statuses.py: the rebuild path carriestracking_ids.vultron/metadata/demo_scenarios/export_ledger_types.py,ui/src/data/ledgerTypes.ts,ui/src/utils/ledgerShape.ts: exportsParticipantTrackingIdand theuniqueByconstraint; the UI validator enforces it.vultron/demo/recordings/traces.py:VERDICT_FIELDSnamestrackingIds,valueandtracker. Every scenario is re-recorded in one pass, and the Log Replay goldens are refreshed.docs/ns/,docs/reference/examples/,docs/reference/vultron-spec/_known-gaps.md: regenerated.docs/reference/case_model_fields.md: describestracking_idsand its update rule.notes/case-ledger-authority.md: names the one snapshot fill.test/architecture/_per_act_parameter_sites.py: recordstracking_idsonCreateParticipantStatusNode(The remaining case nodes read every per-act value from vocabulary keys #6577) and the trigger factory (Every case trigger-tree factory declares its tree's inputs and takes no per-act value #6587). A seeded act key cannot holdNone("no change") yet, so the value stays a parameter until those Tasks move the node.xfailmarks on the CM-35 tests are removed; new tests cover the sent list recorded as sent ([]included), the replica filling nothing, the fill's limits, the trigger request sequence[ID1],[ID1, ID2, ID3, ID4],[ID1, ID3],[], thefollowsstep, the on-behalf write, the HTTP body, the retired key, the exporter shape and the UI validator.AC-8 names
test/mydb.json; no such file exists in the repository, so there was nothing to change.Specs
Docs
Docs: updated docs/reference/case_model_fields.md (tracking_ids and its update rule); docs/ns/, docs/reference/examples/ and the known-gaps fragment regenerated
Verification
test/adapters/driven/golden/wire_render_core_vocab.json) and one xdist worker crash intest_rv_demo.py. Run 2: 7 failed, 21801 passed, all intest/demo/test_rv_demo.pyandtest/demo/test_rvcv_extension_demo.py, as 120 s timeouts and a worker crash on a contended host. Both files pass alone at-n 0 -m ''(rv 83 passed, rvcv 57 passed). This matches open issue An in-process rv demo test still crashes its xdist worker in a large loaded run, with #6190's fix in place #6727, so CI decides.export-demo-recordings --report-changes, no--scenario, under the test lock, on currentorigin/main); the only change is"trackingIds": []on each status.export-demo-treeandnpm test -- -uleft the tree index and the Log Replay goldens unchanged. Thedemo-verdict-changelabel is applied becauseVERDICT_FIELDSnow namestrackingIds,valueandtracker.tsc -band the ledgerShape vitest suite pass inui/tracking_id,trackingId,RSH-09-010, "verbatim", "never rewritten" acrossdocs/,notes/,specs/,AGENTS.mdfiles, docstrings and comments; updatedcase_model_fields.md,notes/case-ledger-authority.md,ledger_payload.py,append/actions.py,participant_status_acceptance.py,statuses.py. Generateddocs/ns/, examples, ledger types and known gaps regenerated. No pre-commit or workflow trigger list changes.RecordFilledTrackingIdsNode's save together (CLP-07-015). On redelivery the seen-before door answers from the record, so neither runs again. A rerun after no verdict recomputes the same fill from the same previous status. Tests:test_an_omitted_tracking_id_list_is_recorded_as_the_previous_set,test_nothing_else_is_filled.notify-*bodies included), except the fill nodes' fault returns (noAdd(ParticipantStatus)event, a status not inline, a missing participant), which the doors before them make unreachable in a composed tree.carried_tracking_ids) for every writer; one set type (TrackingIdSet) for the status, the request and the body;wire_key/input_keysfor the AS2 spelling; the render port for the wire value.ParticipantTrackingIdwith JSON-LD terms;docs/ns/regenerated; no field namedidtest_a_tracking_id_and_a_vulnerability_id_never_parse_as_each_othertracking_idsreplacestracking_id; the old key is refused byextra="forbid"(an inboundtrackingIdis set aside at the parse edge, MV-11-003); a repeated value is refusedtracking_ids; the four-step sequence testTestAcceptedStatusIsRecordedAsSentpasses, and the as-sent comparison stays strict because Vultron senders always state the keyxfailmarks removed; known gaps regeneratedledgerTypes.tsandVERDICT_FIELDSusetrackingIds;test/mydb.jsondoes not exist🤖 Generated with Claude Code