You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
review-dispatch: extend consolidate payload with assessment fields (backend swap for read_assessment_fields) #755
Follow-up from fix-triage-issue-dispatch-docs (spec: openspec/changes/fix-triage-issue-dispatch-docs/, design D4). The new read_assessment_fields tool currently reads persisted child final text (PersistedRunData.text from the dispatch store's run-<agent>.json files) and parses the structured-response contract with tool-owned validation.
The designed evolution: extend the consolidate dispatch payload (and/or the persisted run records) to carry the validated assessment fields — category, objectivity, reasoning, split recommendations — so read_assessment_fields can read them from the payload instead of parsing persisted text.
Why
Removes the parser's dependence on the child structured-response prose format (currently parseAssessmentFields with bold-label value regions); a payload schema is a stronger contract than text parsing.
Command-layer behavior is unchanged by design: read_assessment_fields keeps its input/output contract (run IDs in; validated fields or unavailability out), so the backend swap requires no command changes (design D4's explicit decoupling).
The dispatch artifact schema gains first-class assessment fields for auditability.
Implementation sketch
Add assessment fields to the persisted run record at submission/dispatch time (or extend submit_review_findings / the consolidation projection).
Swap read_assessment_fields' backend from text parsing to payload reads; keep the same bounds and unavailability semantics.
Existing tests in .opencode/test/review-dispatch-read-assessment-fields.test.ts (31 tests) adapt to the new backend; the integration tests' dispatched-run fixtures carry the fields.
The Divisor review panel assessed this issue as a well-formed, spec-grounded implementation follow-up. Every load-bearing claim verifies against repository artifacts:
Spec lineage confirmed. Design D4 of openspec/changes/fix-triage-issue-dispatch-docs/ explicitly designates the consolidate-payload assessment-fields extension as a Non-Goal follow-up (task 5.4), and completed task 5.4 files exactly this tracking issue. This issue tracks designed work with a ratified design decision, not ad-hoc scope.
Current-state description accurate.read_assessment_fields currently reads PersistedRunData.text from the dispatch store and parses the structured-response contract via parseAssessmentFields (.opencode/plugins/review-dispatch/index.ts:6345, tool backend at :6400); the consolidate payload carries no assessment fields today, so the work is not already done.
Contract preserved by design. The command-layer input/output contract (run IDs in; validated fields or unavailability out), the validation bounds (category ≤128 chars, objectivity ≤64, reasoning ≤4096, split recommendations ≤16×512), and the unavailability semantics all carry over per the issue's own commitment (D4's decoupling).
Classification: enhancement. The text-parsing backend is the sanctioned interim design working as designed, and no user-visible capability changes.
Implementation notes
Test-count drift. The issue cites 31 tests in .opencode/test/review-dispatch-read-assessment-fields.test.ts; the file at current HEAD carries 41 it() cases across four describes (RD-FR-035 coverage-attestation tests landed after filing). The adaptation surface is larger than stated — count from the current file.
Shared-mechanism coupling.parseCoverageAttestation (RD-FR-035, consumed by consolidate_dispatch) reuses the same labeled-field extraction layer (extractAssessmentFieldValue) that parseAssessmentFields relies on. The backend swap must keep that extraction layer intact for the coverage attestation; removing the text-parsing path wholesale would break RD-FR-035 and its 5-case suite.
Trust boundary. Child-agent output remains untrusted regardless of carrier (persisted text or payload fields). The spec for this change should pin down which side — write-time submission validation or read-side bounds checking — owns enforcement, so the two do not silently diverge.
Process fit. As a plugin data-model/schema change, the implementation routes through a spec workflow (OpenSpec tactical change).
Related issues
The duplicate search surfaced two related open issues; the panel classifies neither as a duplicate of this request:
Activity
jflowers commentedon Nov 2, 2026
Triage Summary
Verdict: VALID — enhancement
The Divisor review panel assessed this issue as a well-formed, spec-grounded implementation follow-up. Every load-bearing claim verifies against repository artifacts:
openspec/changes/fix-triage-issue-dispatch-docs/explicitly designates the consolidate-payload assessment-fields extension as a Non-Goal follow-up (task 5.4), and completed task 5.4 files exactly this tracking issue. This issue tracks designed work with a ratified design decision, not ad-hoc scope.read_assessment_fieldscurrently readsPersistedRunData.textfrom the dispatch store and parses the structured-response contract viaparseAssessmentFields(.opencode/plugins/review-dispatch/index.ts:6345, tool backend at:6400); the consolidate payload carries no assessment fields today, so the work is not already done.enhancement. The text-parsing backend is the sanctioned interim design working as designed, and no user-visible capability changes.Implementation notes
.opencode/test/review-dispatch-read-assessment-fields.test.ts; the file at current HEAD carries 41it()cases across four describes (RD-FR-035 coverage-attestation tests landed after filing). The adaptation surface is larger than stated — count from the current file.parseCoverageAttestation(RD-FR-035, consumed byconsolidate_dispatch) reuses the same labeled-field extraction layer (extractAssessmentFieldValue) thatparseAssessmentFieldsrelies on. The backend swap must keep that extraction layer intact for the coverage attestation; removing the text-parsing path wholesale would break RD-FR-035 and its 5-case suite.Related issues
The duplicate search surfaced two related open issues; the panel classifies neither as a duplicate of this request:
Proposed actions
enhancementparseCoverageAttestationcoupling in the design.This triage was performed by the Divisor review panel.