Repository navigation
feat: the report receiver turns its CSAF report into the caseInputs of its proposal (#6723) - #6807
Conversation
…6723) The receiver's tree now builds the core CaseProposal through one core conversion, case_proposal_from_report, which fills caseInputs from the first csaf_vulnerability_report reading by proposed_case_inputs_from_claims and reads no clock. ConvertReportToCaseProposalNode puts the proposal on the blackboard and marks on the receiver's own claims record each value the conversion used; ProposeReportCaseToActorNode sends it, so the receiver may change the proposal in between. The adapter's create_case_proposal now renders the core proposal it is given and inlines the held Offer. CP-01-026's strict xfail passes and is removed. CSAF-02-001's note, the verification texts, the plan note and the propose-case and CSAF concept mapping docs describe the receiver's conversion and the CASE_MANAGER's fallback. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s local write The bridge restores case_proposal after each run, the act-key vocabulary lists it as an intra-tree handoff, and the state-write gate pins ConvertReportToCaseProposalNode's claims-record write as local bookkeeping. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MarkProposedClaimsNode takes the marking out of the conversion node and runs after ProposeReportCaseToActorNode, so no record says a value was used by a proposal that was never sent; the outcomes come from the pure used_claims. Both receiver nodes catch their errors and fail as faults with context. The receiver's date outcome is documented as what its proposal carried, and a receiver-path test pins it. Adds the CP-01-026 sentence to the CaseProposal message reference. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pre-push review (fresh agent, before first push)5 findings. Each one has been resolved:
|
sei-ahouseholder
left a comment
There was a problem hiding this comment.
PR Triage: #6807 — feat: the report receiver turns its CSAF report into the caseInputs of its proposal (#6723)
Linked issues: #6723
Changed files: 33 files — core/behaviors/case, core/services, adapters/driven/trigger_activity_adapter, specs, docs
CI status: ✅ passing (head f49dbba)
Merge state: 📝 DRAFT (MERGEABLE, CLEAN)
Base branch: main
Needs integration tests: yes
Context: reused build context — build context matches this branch
Mode: delta (12 delta files); all 5 pre-push findings carried forward as fixed on the head.
Findings
| # | Phase | Severity | Description | Outcome |
|---|---|---|---|---|
| phase8-convert-after-pending-link-0 | code-review | ❌ FAIL | Pending report-case link is written before the conversion; a failed conversion leaves a link the idempotency guard reads as "already sent", so the report is never proposed | fix-now |
| phase10-mark-node-fault-branches-0 | test-coverage | ❌ FAIL | MarkProposedClaimsNode report-not-held and KeyError branches untested |
fix-now |
| phase8-mark-wording-overstates-0 | code-review | Docstring/spec note say the record marks what the sent proposal took; it marks what the conversion used | fix-now | |
| phase8-dead-outcomes-field-0 | code-review | ConvertedCaseProposal.outcomes no longer read by production code |
fix-now | |
| phase8-stale-test-docstring-0 | code-review | Stale docstring in test_convert_report_to_case_proposal.py:103 |
fix-now | |
| phase3-self-check-misses-0 | pr-body | Self-check items 2 and 3 overclaim | fix-now | |
| phase12-draft-ci-green-0 | merge-state | Draft with green CI; mark ready after the fix push passes | fix-now |
Total: 2 FAIL · 5 IMPROVE · 0 NEW-ISSUE
Triage artifact: .claude/pr-6807-triage.json
Next step: run /pr-execute or /pr-ship to apply fixes.
- code-review — convert the report before writing the pending link, so a failed conversion leaves no link the idempotency guard reads as a proposal already sent (CP-04-001); test it - test-coverage — test MarkProposedClaimsNode's report-not-held and unknown-path branches - code-review — the claims record marks what the conversion used, not what the sent proposal took: reword the node docstring and CSAF-02-001 note - code-review — drop ConvertedCaseProposal.outcomes, no longer read; tests use used_claims - code-review — fix a stale test docstring Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sei-ahouseholder
left a comment
There was a problem hiding this comment.
PR Execute: #6807 — feat: the report receiver turns its CSAF report into the caseInputs of its proposal (#6723)
Fixes applied: 1 commits
Excursions filed and fixed: 0 (PR closes them)
Deferred (you approved): 0
Halted (inversion, awaiting you): 0
Tests run: targeted set (branch diff vs origin/main); 18935 passed, 3 xdist worker crashes in demo files with no assertion (memory contention, #4809), both files pass alone (13 passed)
CI status: ✅ passing
Base sync: ✅ deferred — overlaps main on docs/reference/csaf_crosswalk/concept_mapping.md, specs/csaf-report-content.yaml, merger updates before merge
Docs line: Docs: updated docs/topics/behavior_logic/use-cases/propose-case.md, docs/reference/csaf_crosswalk/concept_mapping.md, docs/reference/messages/case_proposal.md — 0 pages updated by execute
Suite runs: 0 full, 1 targeted
Fixed
| Finding | Commit | Closes |
|---|---|---|
phase8-convert-after-pending-link-0: conversion now runs before the pending link; new test test_a_report_it_cannot_convert_leaves_no_pending_link (fails on the old order) |
3d05a2684 |
— |
| phase10-mark-node-fault-branches-0: tests for report-not-held and unknown-path at marking | 3d05a2684 |
— |
| phase8-mark-wording-overstates-0: node docstring and CSAF-02-001 note say "what its conversion used" | 3d05a2684 |
— |
phase8-dead-outcomes-field-0: dropped ConvertedCaseProposal.outcomes; tests use used_claims |
3d05a2684 |
— |
| phase8-stale-test-docstring-0: reworded | 3d05a2684 |
— |
| phase3-self-check-misses-0: PR body Changes and Self-check updated | PR body | — |
phase12-draft-ci-green-0: marked ready after CI passed on 3d05a2684 |
— | — |
Execute artifact: .claude/pr-6807-execute.json
Next step: run /pr-verify, or /pr-ship will continue automatically.
sei-ahouseholder
left a comment
There was a problem hiding this comment.
PR Verify: #6807 — feat: the report receiver turns its CSAF report into the caseInputs of its proposal (#6723)
Overall verdict: ✅ READY-TO-MERGE
CI status: ✅ passing (head 3d05a2684, integration checks green, CI gate green)
Merge state: ✅ MERGEABLE (CLEAN) — base main
Base sync in execute: ✅ deferred — overlap left to the merger's update-branch (docs/reference/csaf_crosswalk/concept_mapping.md, specs/csaf-report-content.yaml)
Integrity check: ✅ all 7 findings accounted for
Docs line: ✅ current — Docs: updated docs/topics/behavior_logic/use-cases/propose-case.md, docs/reference/csaf_crosswalk/concept_mapping.md, docs/reference/messages/case_proposal.md
Finding Verdicts
| Finding | Severity | Verdict | Evidence at HEAD |
|---|---|---|---|
| phase8-convert-after-pending-link-0 | FAIL | CONFIRMED | receive_report_case_tree.py: convert precedes WritePendingReportCaseLinkNode; test test_a_report_it_cannot_convert_leaves_no_pending_link |
| phase10-mark-node-fault-branches-0 | FAIL | CONFIRMED | two new tests in test_convert_report_to_case_proposal.py |
| phase8-mark-wording-overstates-0 | IMPROVE | CONFIRMED | "conversion used" in node docstring and CSAF-02-001 note |
| phase8-dead-outcomes-field-0 | IMPROVE | CONFIRMED | field gone from ConvertedCaseProposal |
| phase8-stale-test-docstring-0 | IMPROVE | CONFIRMED | docstring reworded |
| phase3-self-check-misses-0 | IMPROVE | CONFIRMED | live PR body Self-check updated; pr-body-lint 0 findings |
| phase12-draft-ci-green-0 | IMPROVE | CONFIRMED | PR is ready for review |
No spec statement or priority changed (spec-amendments.sh exit 0).
Summary
The report receiver now builds its
CaseProposalin core and fillscaseInputsfrom the firstcsaf_vulnerability_reportdocument on the report. It can change the proposal before the adapter renders and sends it. The CASE_MANAGER builds the case from those inputs and reads no document. Its own reading of the carried Offer's document stays as the fallback for a proposal with nocaseInputs.Issues: closed 1, opened 0
Questions: asked 0, filed 0
Changes
vultron/core/services/report_case_proposal.py(new):case_proposal_from_reportis the one conversion. It takes the report, the CSAF readings, the Offer id, the proposer, the CASE_MANAGER and the act's instant, and returnsConvertedCaseProposal: the coreCaseProposaland the reading that filled it.used_claimsgives the outcomes of the values it used.caseInputscomes fromproposed_case_inputs_from_claims, with the report's own name and summary stated. The conversion reads no clock and judges no date.vultron/core/services/report_case_inputs.py: addsproposed_claim_outcomes, the receiver's outcomes for the date-free half: the earliest disclosure date is APPLIED because it is carried._undated_outcomesis shared with the CASE_MANAGER's_claim_outcomes.filling_readingmoves here from the node module so the conversion can use it. The node module still imports it.vultron/core/behaviors/case/nodes/proposal.py: adds two nodes. Both readreport_idfrom theREPORT_IDact key.ConvertReportToCaseProposalNodebuilds the proposal and puts it on/case_proposal.MarkProposedClaimsNodemarks the receiver's claims record with the outcomes fromused_claims(CSAF-04-004), which are the conversion's account of what it used. It runs after the send, so no record is marked for a proposal that was never sent.ProposeReportCaseToActorNodeno longer takesreport_id. It sends whatever proposal is on/case_proposal, so a node between convert and send can change it.vultron/core/behaviors/case/receive_report_case_tree.py: the proposal flow is now ensure host, convert, pending link, send, then mark. The conversion writes nothing to the store, so it runs before the pending link: a report it cannot convert leaves no link that the idempotency guard would read as a proposal already sent (CP-04-001). The factory passesrequest.claims_readingsdown.vultron/core/behaviors/bridge/bt_bridge.py: the bridge now restorescase_proposal, so one report's proposal never outlives its run (BT-17-020).vultron/core/ports/trigger_activity/proposals.py,vultron/adapters/driven/trigger_activity_adapter/proposals.py:create_case_proposal(proposal, to=None, *, at)renders the core proposal instead of buildingas_CaseProposalfrom loose arguments. When the store holds the Offer, the adapter puts it inline on a copy (CP-01-008), so the caller's object is not changed.specs/case-proposal.yaml: CP-01-026 verification now names the passing tests.specs/csaf-report-content.yaml: rewrites the CSAF-02-001 note, which said the proposer's record keeps every value display only, and updates the CSAF-02-001 and CSAF-04-004 verification texts. No statement or priority changed.notes/csaf-case-inputs-on-proposal.md,notes/case-proposal.md,notes/configuration.md,notes/role-taxonomy-split.md: these now say the receiver's conversion is built, explain the convert/send split, and use the new node name.docs/topics/behavior_logic/use-cases/propose-case.md,docs/reference/csaf_crosswalk/concept_mapping.md: describe the receiver's conversion and the CASE_MANAGER's fallback (AC-6).docs/reference/messages/case_proposal.md: one sentence on CP-01-026.test_case_from_csaf_report.py: removes the CP-01-026 strict xfail and adds tests for AC-2, AC-3 and AC-5. Tests that check the CASE_MANAGER's own record now go through_created_by_fallback, which stripscaseInputsand re-signs the body.test/core/services/test_report_case_proposal.pycovers the conversion. Newtest_convert_report_to_case_proposal.pycovers the node's fault paths.test_proposals.pygets render, no-mutation and addressing tests.test/support/report_proposal.pyruns the two nodes for the provenance and roles tests.ProposeReportCaseToActorNode::report_idratchet entry is gone because that site no longer exists./case_proposalas an intra-tree handoff, and the state-write gate pinsMarkProposedClaimsNodeas local bookkeeping.Specs
Docs
Docs: updated docs/topics/behavior_logic/use-cases/propose-case.md, docs/reference/csaf_crosswalk/concept_mapping.md, docs/reference/messages/case_proposal.md
Verification
3d05a2684: the conversion now runs before the pending link, the marking node's two fault branches are tested, and the deadConvertedCaseProposal.outcomesis gone.exit: 1. The 3 failures were 2 xdist worker crashes and 1 pytest-timeout trip, all in demo files (test_manage_embargo_demo.py,test_rv_demo.py,test_report_with_embargo_demo.py). Re-run alone, the three files pass, so this was memory and slot contention (Local full test runs hang forever after a pytest-xdist worker dies #4809). The first run also caught 5 architecture registry checks for the newcase_proposalkey and nodes, fixed in the second commit.prepush-ci-mirrorexit: 0.test_the_receiver_marks_the_date_its_proposal_carries.display only,ProposeReportCaseToActorNode,create_case_proposal(,test_only_the_creating_side,filling_readingand#6723acrossvultron/,test/,specs/,notes/,docs/and the AGENTS.md files. I updated the CSAF-02-001 note and verification, CP-01-026 and CSAF-04-004 verification, theproposal_case_inputs.pymodule docstring, the port docstring, four notes and two docs pages. The ADR-0184 mention of The report receiver turns its CSAF report into the case inputs of its case proposal #6723 is a historical record, so I left it (ADR-0127). No hook or workflow trigger list changed.test_a_report_it_cannot_convert_leaves_no_pending_link).test_a_claims_record_not_held_is_a_fault).CheckProposalAlreadySentForReportsends at most one proposal per report.tooverride through the sealed-body audit.proposed_case_inputs_from_claims,filling_reading(moved, not copied) and the shared_undated_outcomes. The outbound activity is still built bycreate_case_proposal_activity. No duplication found.Acceptance criteria
case_proposal_from_reportreturns the coreCaseProposal, withcaseInputsfrom the firstcsaf_vulnerability_reportreading. It holds the earliest disclosure date as stated and no P, and reads no clock (test_report_case_proposal.py, includingno_clock).test_the_receiver_states_the_case_inputs_of_a_csaf_report,test_a_report_with_no_csaf_report_document_sends_no_case_inputsandtest_a_document_of_another_category_sends_no_case_inputs.test_the_receiver_may_change_its_proposal_before_it_is_sentrenames the case and drops an item between the nodes. Both changes are on the sent proposal and in the case.test_the_side_that_converts_the_document_marks_what_it_used,test_the_date_free_half_marks_what_it_used). It is never sent (test_the_claims_record_is_never_sent, plus a check in the AC-5 test).test_a_csaf_report_reaches_a_separate_case_manager_as_case_inputs: a separate CASE_MANAGER takes the name, summary, items, references and embargo end fromcaseInputs, and holds no claims record.🤖 Generated with Claude Code