Repository navigation
fix(review-dispatch): durable lessons, artifact-sourced consumers, error summary - #949
Conversation
✅ CRAP Load Analysis: PASSSummary
Quadrant Distribution
New Functions
|
jflowers
left a comment
There was a problem hiding this comment.
Verdict: REQUEST CHANGES. This review posts as COMMENT because GitHub rejects REQUEST_CHANGES on a pull request owned by the authenticated viewer (HTTP 422: "Review Can not request changes on your own pull request").
Review Verdict: REQUEST CHANGES
Divisor review council — 5 reviewers (adversary, architect, curator, guard, testing); 4× APPROVE WITH ADVISORIES, 1× REQUEST CHANGES; 17 findings: 1 HIGH, 6 MEDIUM, 10 LOW; 0 advisories. All CI checks green on ea19587f.
Blocking
[HIGH] Documentation gate unsatisfied (openspec/changes/review-dispatch-consumer-bounds/tasks.md:70): task 4.3 is unchecked and no docs issue exists in either required repository. AGENTS.md requires an in-repo docs issue for user-facing changes before PR merge; constitution v1.4.0 Cross-Repo Documentation additionally requires the unbound-force/website filing. The change is user-facing: five command workflows changed, read_dispatch_artifact is registered, the review-dispatch v1.0.0 schema gained payload.proposals, and the scaffold mirrors ship the behavior to hero repos via uf init. Task 4.3's singular wording ("the docs issue") also under-scopes the two-filing gate — the review-dispatch-diff-manifest precedent carried tasks 7.2 (in-repo) and 7.3 (website, filed as website#349).
Findings without a fixed line
- [MEDIUM] Change record under-documents bundled fixes (
openspec/changes/review-dispatch-consumer-bounds/proposal.md): the PR closes five issues; the change documents three. #946 (dispatch error summary — a caller-visible output contract) and #942 (self-authored verdict mapping) trace to no What Changes bullet, task, or requirement, and their CHANGELOG entries carry noSpec:reference. Amending the unarchived change to record both fixes closes the gap; no code change required. - [LOW]
read_dispatch_artifactsection coverage (.opencode/test/read-dispatch-artifact.test.ts): the suite never requestsadvisoriesand exercisesfindingsonly past-the-end; a selector regression on the triage consumer path would ship uncaught.
This review was generated by /uf.review-pr (AI-assisted).
| `internal/scaffold/assets/opencode/`. | ||
| - [x] 4.2 CHANGELOG.md entries under Unreleased with | ||
| `(Spec: openspec/changes/review-dispatch-consumer-bounds, Fixes: #N)` tails. | ||
| - [ ] 4.3 Documentation-gate assessment; file the docs issue for the |
There was a problem hiding this comment.
[HIGH] documentation-gate (curator) — The documentation gate for this user-facing change is unsatisfied at review time: task 4.3 is unchecked, and no docs issue exists in either required repository. Verified by unfiltered open-issue searches: in-repo queries ("review dispatch lesson proposals" / "read_dispatch_artifact" / "consumer bounds") return only trackers for other changes (#908, #754) and the bugs this PR fixes; unbound-force/website open docs issues (#367, #349, #313, #360, …) track other changes. The singular wording ("the docs issue") also under-scopes the two-filing gate (precedent: review-dispatch-diff-manifest tasks 7.2/7.3, website#349).
There was a problem hiding this comment.
Filed both halves of the two-filing gate:
- In-repo: docs: review-dispatch consumer bounds — read_dispatch_artifact reader, durable lesson proposals, summary error suffix #960
- Website: docs: review-dispatch consumer bounds — read_dispatch_artifact reader and durable lesson proposals website#378
The two are cross-linked (the website filing references the in-repo tracker). Task 4.3 is amended to state the two-filing gate explicitly, and the follow-through task is checked off in the same commit (b56fff4).
The in-repo filing enumerates the user-facing surfaces: the five command workflows, the registered read_dispatch_artifact tool, the v1.0.0 schema's payload.proposals, and the scaffold mirrors that ship the behavior to hero repos via uf init.
| and a negation guard; test the negated and subset pairs. | ||
| - [x] 5.3 Cap persisted proposals at 512 with a `proposals_overflow` | ||
| warning; test 515 proposals. | ||
| - [x] 5.4 Add `read_dispatch_artifact` (RD-FR-057) with tests, and move |
There was a problem hiding this comment.
[MEDIUM] spec-artifact-structure (architect) — The phase headings appear out of numeric order — '## 5. Review follow-ups' physically precedes '## 4. Mirror, documentation, CI parity', and design.md's decisions run D1–D5, D7, D6. Task 1.2 still describes the superseded first-revision dedup algorithm ('overlap coefficient >= 0.5 / 4-token floor') that task 5.2 replaced (Jaccard 0.3, 6-token floor), with no supersession cross-reference; the test name at consolidate-dispatch.test.ts:2628 carries the same stale threshold. A linear reader reconstructs two contradictory dedup rules while RD-FR-055 and the code carry only the final one (MP-018).
There was a problem hiding this comment.
Fixed in b56fff4 (plus the test rename in c2865ee):
- tasks.md phase headings are renumbered into execution order —
## 4. Review follow-upsnow physically precedes## 5. Mirror, documentation, CI parity. - design.md decisions run D1–D7 in order.
- Task 1.2 now carries a supersession note: the first-revision dedup algorithm (overlap coefficient ≥ 0.5 / 4-token floor) is marked superseded by task 5.2's review-loop rule (Jaccard ≥ 0.3, 6-token floor), so a linear reader reconstructs exactly one governing rule.
- The stale test name at consolidate-dispatch.test.ts:2628 is renamed to describe the shipped thresholds (c2865ee).
|
|
||
| Fixes #941, #945, #943. | ||
|
|
||
| ## What Changes |
There was a problem hiding this comment.
[MEDIUM] scope-creep (guard) — The PR ships two user-facing behavioral fixes the governing change does not record. #946: dispatchSummaryLine appends ' — error: (retryable: )' to the dispatch_review_runs summary. #942: uf.review-pr Step 2 fetches the author and Step 8c maps APPROVE/REQUEST_CHANGES to COMMENT when viewer equals author. Neither appears in What Changes, design.md D1–D7, the RD-FR-054..057 delta, or tasks.md; their CHANGELOG entries carry no Spec: reference. A What Changes bullet and a task each (or a 'Bundled fixes' note) makes the record match what ships — no code change required.
There was a problem hiding this comment.
Recorded in b56fff4 — no code change, as suggested:
- proposal.md What Changes now carries a "Bundled fixes" note with a bullet each for dispatch_review_runs: error summary omits the failure message, so agents can't see why a dispatch failed #946 (dispatch error summary suffix — caller-visible output contract) and /uf.review-pr posts REQUEST_CHANGES on the viewer's own PR, then falls back after a 422 #942 (uf.review-pr self-authored verdict mapping).
- tasks.md gained task 4.6 (error-suffix documentation, dispatch_review_runs: error summary omits the failure message, so agents can't see why a dispatch failed #946) and task 4.7 (self-authored verdict mapping, /uf.review-pr posts REQUEST_CHANGES on the viewer's own PR, then falls back after a 422 #942), both checked.
- CHANGELOG entries for both fixes now carry
Spec:references to the amended change.
|
|
||
| it("fails closed on invalid input, a missing artifact, and an invalid artifact", async () => { | ||
| const root = await projectWith({ ...samplePayload }) | ||
| expect(await readDispatchArtifact({ correlation_id: "../etc", section: "summary" }, root)).toMatchObject({ |
There was a problem hiding this comment.
[MEDIUM] coverage-gap (testing) — RD-FR-057 enumerates the fail-closed conditions including 'at most 64 MiB', but no test creates an oversized artifact — the ARTIFACT_MAX_FILE_BYTES branch is uncovered, and the 94% statements floor will not surface a single uncovered branch. Cheaply testable without writing 64 MiB: fs.truncate the artifact to 6410241024 + 1 bytes (sparse) and assert {status: "error", code: "invalid_artifact"}.
There was a problem hiding this comment.
Added in c2865ee — exactly the cheap fixture suggested: fs.truncate the artifact to 64 MiB + 1 bytes (sparse) and assert {status: "error", code: "invalid_artifact"}. Nothing near 64 MiB is ever written to disk.
One honest caveat from the post-fix review council: the assertion pins the error code, which is shared by several rejection paths — pinning the size-specific guard itself (e.g. asserting the failure precedes JSON parse) would be stronger. Noted as an advisory for follow-up rather than addressed here, to keep the reviewed tree frozen.
| const result = deduplicateProposals([ | ||
| { agent: "divisor-guard", information: short, tag: "a" }, | ||
| { agent: "divisor-sre", information: long, tag: "b" }, | ||
| ]) |
There was a problem hiding this comment.
[MEDIUM] assertion-depth (testing) — The overflow test asserts only cardinality — toHaveLength(512) plus warning counts. RD-FR-054's scenario requires 'the artifact carries the first 512' and the test's name claims first-512 retention, but a regression to slice(-512) or slice(3) passes all assertions. First/last spot checks (full.proposals[0] contains "lesson 0", [511] contains "lesson 511", same on the persisted artifact) pin the collection-order retention policy.
There was a problem hiding this comment.
Added in c2865ee — first/last spot checks on both the returned payload and the persisted artifact: proposals[0] contains "lesson 0" and proposals[511] contains "lesson 511". A regression to slice(-512) or slice(3) now fails the assertions.
| it("keeps distinct lessons in collection order without a merge warning", () => { | ||
| const proposals = [ | ||
| { agent: "divisor-guard", information: HOST_ARGS_LESSON_A, tag: "a" }, | ||
| { agent: "divisor-sre", information: PATH_LESSON, tag: "b" }, |
There was a problem hiding this comment.
[LOW] test-naming (testing) — The test name 'matches proposals with fewer than four tokens only on an equal token sequence' describes the superseded design (4-token floor). The shipped rule is exact-sequence matching below a 6-token floor with Jaccard >= 0.3 above it; the 2-token inputs stay below both thresholds so the test remains valid, but the name misdescribes the governing threshold (TC-007).
There was a problem hiding this comment.
Renamed in c2865ee — the test now describes the governing rule: exact-sequence matching below the 6-token floor, Jaccard ≥ 0.3 above it. The 2-token inputs stay below both thresholds, so the test body itself needed no change.
| `{agent, information, tag, category}` as defined by the review-dispatch | ||
| dispatch artifact schema — there is no `reference` field — and | ||
| `consolidate_dispatch` has already merged near-identical proposals | ||
| across personas (each merge is reported as a `duplicate_proposal_merged` |
There was a problem hiding this comment.
[LOW] determinism (architect) — The rewritten lesson-storage sections still prescribe a judgment-free enumeration loop — page the proposals section, call dewey_store_learning once per entry. DE-001/DE-005 classify such loops as mechanical instruction for an executable tool; extraction is infeasible today because dewey_store_learning lives on a separate MCP server the plugin cannot invoke. The change otherwise strengthens determinism substantially; this remains the largest residual DE-001 surface, best retired by a future batch-store tool on the Dewey side.
There was a problem hiding this comment.
Recorded as an accepted residual in b56fff4 rather than silently dropped: design.md now states the constraint explicitly — dewey_store_learning lives on a separate MCP server the plugin cannot invoke, so the per-proposal store loop cannot be mechanically extracted today (DE-001/DE-005 boundary). The retirement path — a batch-store tool on the Dewey side — is documented as the follow-up that closes the residual.
| - [x] 3.2 [P] `openspec/changes/review-dispatch-diff-manifest/specs/review-dispatch/spec.md`: | ||
| `read_diff_chunk` `diff_not_found` scenario (#943). | ||
|
|
||
| ## 5. Review follow-ups (design D2, D7) |
There was a problem hiding this comment.
[LOW] task-bookkeeping (guard) — Phase headings run 1, 2, 3, 5, 4 in file order, violating MP-018's numbered-phases-in-execution-order rule. Renumbering into execution order — and correcting task 1.2 to the final Jaccard rule with 5.2 cited as its review-loop origin — makes the record executable as written.
There was a problem hiding this comment.
Fixed together with the item-2 renumbering in b56fff4 — phases run 1, 2, 3, 4, 5 in file order, and task 1.2 now cites task 5.2 as the review-loop origin of the final Jaccard rule. The record is executable as written.
| // byte-identical there. TestSCFR001_CanonicalAssetSurfaceMatchesMirrors only | ||
| // compares the embedded asset with the .uf copy, so a registry edit that | ||
| // skipped .uf (issue #941 review) went unnoticed. | ||
| func TestSchemaRegistryMatchesUFCopies(t *testing.T) { |
There was a problem hiding this comment.
[LOW] regression-protection (testing) — TestSchemaRegistryMatchesUFCopies skips any registry file whose .uf copy is absent, so protection is presence-conditional — a future schemas/review-dispatch/v1.1.0.schema.json committed without its .uf copy would be silently skipped once any other pair exists, exactly the drift class the test's comment says it exists to catch. Requiring the known .uf-shipped set to be present and compared makes the guard absence-proof.
There was a problem hiding this comment.
Landed in c2b3794 — TestSchemaRegistryMatchesUFCopies now requires the known .uf-shipped set to be present and compared, so a future registry file committed without its .uf copy fails the test instead of being silently skipped.
Verified negatively in both directions before landing: temporarily moving a .uf copy away fails with "ships under .uf/schemas but its copy is missing", and a dummy v99 schema with no .uf copy fails with "has no .uf copy ... even though" the pair-set is otherwise non-empty.
|
|
||
| Record all values. Resolve the immutable input context: | ||
| Record all values, including the PR author's login (`author.login`), | ||
| which Step 8c compares with the viewer login. Resolve the immutable input context: |
There was a problem hiding this comment.
[LOW] formatting (architect) — The added line 'which Step 8c compares with the viewer login. Resolve the immutable input context:' runs 82 characters, over the ~72-character wrap used across the command corpus.
There was a problem hiding this comment.
Fixed in b8c28bc — the line is rewrapped within the ~72-character convention, and all five scaffold mirrors carry the identical rewrap (verified byte-identical).
813c919 to
501a1c5
Compare
Durable artifact proposals with cross-persona deduplication (RD-FR-054, RD-FR-055) and an artifact-sourced consumer contract that drops the full retrieval from triage-issue and address-feedback (RD-FR-056). Records diff_not_found in the build-review-prompts and review-dispatch-diff-manifest deltas. Refs #941, #945, #943 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s from the artifact consolidate_dispatch now persists deduplicated, full-length lesson proposals as an optional payload.proposals array in the dispatch artifact (RD-FR-054). Near-identical proposals across personas are merged by a deterministic token-overlap rule and each merge is reported as a duplicate_proposal_merged warning (RD-FR-055). Every lesson-storing command stores from the artifact instead of the 512-character tool-result preview. uf.triage-issue and uf.address-feedback finalize right after dispatch and read runs, findings, advisories, and proposals from artifact_path, dropping the unbounded no-provenance full retrieval that the host truncated (RD-FR-056). Fixes #941 Fixes #945 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…w_runs summary A non-ok dispatch_review_runs result now appends its failure message, collapsed to one line and bounded to 512 characters, plus the retryable flag to the one-line summary. The metadata that held them never reaches the calling model. The documented summary prefix is unchanged. Fixes #946 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Step 2 now fetches the PR author. When the viewer login equals it, Step 8c maps APPROVE and REQUEST CHANGES to COMMENT with a verdict note before the first POST, avoiding the 422 round trip. The 422 fallback stays for other causes. Fixes #942 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Mirror the review-dispatch schema to .uf/schemas and the scaffold copy, and gate schemas/ against .uf/schemas byte-for-byte. - Deduplicate proposals by Jaccard >= 0.3 with a 6-token floor and a negation guard, so a lesson and its negation, or a short lesson inside a long one, are no longer merged. - Keep at most 512 persisted proposals and report the rest as a proposals_overflow warning instead of failing finalization. - Add read_dispatch_artifact (RD-FR-057), a bounded paged reader by correlation_id and section, and move every consumer's artifact read onto it; the file-read tool cut the artifact's long lines at 2000 characters. Report previewed lessons as stranded when an older loaded plugin wrote no payload.proposals. - Nits: triage Section 3.2 reference, a 512-character error summary bound including the ellipsis, and a note that the dispatch summary proposal count precedes deduplication. Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Open the artifact with O_NOFOLLOW|O_NONBLOCK (feature-detected) so a symlink swap or a writer-less FIFO cannot redirect or stall the read. - fstat the handle and keep the regular-file and 64 MiB size checks on the open descriptor; enforce the bound again during a chunked read from the same handle, closing it in a finally block. - Drop the now-unused lstat import; document the open/stat/read contract in the tool JSDoc. Mirrored to internal/scaffold/assets/opencode/plugins/review-dispatch/index.ts. Addresses PR #949 review feedback from @jflowers. Signed-off-by: Jay Flowers <[email protected]> Assisted-by: glm-5
- Round-trip the production writer's artifact through read_dispatch_artifact (RD-FR-056/057) so writer/reader drift fails. - Pin the 512-proposal retention order (first kept) in both the full result and the persisted artifact. - Rename the dedup token-floor test to the shipped six-token rule. - Reject a FIFO artifact without blocking the open; reject an artifact above the 64 MiB bound via a sparse truncate. - Serve complete advisories entries and the full finding at an in-bounds offset; pin the copy-don't-retype diff-path guidance. Addresses PR #949 review feedback from @jflowers. Signed-off-by: Jay Flowers <[email protected]> Assisted-by: glm-5
TestSchemaRegistryMatchesUFCopies silently skipped any registry file whose .uf copy was absent, so a new schema committed without its .uf copy would be skipped once any other pair existed. The guard now requires every canonical-asset schema to keep its registry file, and fails a registry file in a family that ships .uf copies when its own copy is missing instead of skipping it. Addresses PR #949 review feedback from @jflowers. Signed-off-by: Jay Flowers <[email protected]> Assisted-by: glm-5
Add the non-ok summary shape -- " -- error: <message> (retryable: <bool>)", the failure message collapsed to one line and cut to at most 512 characters including the ellipsis, the retryable marker omitted when unknown -- to the six dispatch_review_runs summary presentations (uf.triage-issue, uf.review-pr, uf.review-council, uf.address-feedback, uf.unleash x2) and their scaffold mirrors. Rewrap an over-long line in uf.review-pr to the 72-character corpus wrap. Addresses PR #949 review feedback from @jflowers. Signed-off-by: Jay Flowers <[email protected]> Assisted-by: glm-5
- Renumber tasks.md phases into execution order (review follow-ups become 4, mirror/docs/CI becomes 5) and record the #946/#942 bundled-fix outcomes as completed tasks. - Note the task 1.2 supersession by the adopted Jaccard rule. - Document the per-entry learning-store loop and the DE-001 residual in design.md; thread the bundled fixes and residual wording through proposal.md. - Carry the MP-014 sibling-capability map in the spec delta header and add the explicit empty REMOVED marker (MP-013). - Check the documentation-gate task after filing the docs issues (#960 in-repo, unbound-force/website#378); note both in CHANGELOG. Addresses PR #949 review feedback from @jflowers. Signed-off-by: Jay Flowers <[email protected]> Assisted-by: glm-5
Persist the learnings harvested from the PR 949 review-dispatch council rounds and the feedback triage under .uf/dewey/learnings/ so the retrospective record ships with the change. Addresses PR #949 review feedback from @jflowers. Signed-off-by: Jay Flowers <[email protected]> Assisted-by: glm-5
501a1c5 to
595e4eb
Compare
All 16 review items addressedThanks for the thorough review. Every finding from the review body and the 15 threads is addressed across six commits:
Note: the branch was rebased onto Blocking item — documentation gate: both filings are in, cross-linked: #960 (in-repo) and unbound-force/website#378. Task 4.3 is amended to state the two-filing gate explicitly and the follow-through task is checked (b56fff4). Bundled fixes: #946 and #942 are now recorded in the proposal's What Changes ("Bundled fixes" note), tasks 4.6/4.7, and their CHANGELOG entries carry
Per-thread replies are posted on each of the 15 conversations with the specifics. Post-fix review councilThe incremental fix diff went back through the review council: APPROVE WITH ADVISORIES — no REQUEST CHANGES. Three MEDIUM advisories, disclosed here for follow-up:
Plus six LOW advisories (unexecuted append-growth-race branch, mkfifo portability where the utility is absent, a repeated determinism learning, website#378 missing the I've left the review threads unresolved so they're available for your walkthrough — happy to resolve them on request. Replies posted via /uf.address-feedback (AI-assisted). |
jflowers
left a comment
There was a problem hiding this comment.
Verdict: APPROVE WITH ADVISORIES — posted as a COMMENT because the reviewer is the PR author (GitHub rejects APPROVE/REQUEST_CHANGES events from the author's token; this comment carries the council verdict).
All five dispatched review personas returned approving verdicts (adversary APPROVE; architect, curator, guard, testing APPROVE WITH ADVISORIES) over the immutable range 4005d885..595e4ebb. 12 findings consolidated: 3 MEDIUM, 9 LOW — all documentation and coverage advisories, none blocking, none weakening the gates or fail-closed behavior this PR introduces. Every CI check passes. The prior review's blocking HIGH (documentation gate) is resolved via #960 and website #378.
10 findings are posted as inline comments below (2 MEDIUM, 8 LOW). Two advisories have no inline placement:
- [MEDIUM] documentation-completeness (divisor-curator) —
schemas/review-dispatch/README.md:25(file outside this diff's hunks): the Contract paragraph enumerates the artifact payload but omits the newproposalsarray this PR adds; neither docs issue (#960, #378) names it. A one-word enumeration extension can ride the #960 docs PR; the schema stays 1.0.0 (additive, optional field). - [LOW] prose-dupification (divisor-architect, advisory) — the three consumer-contract prose blocks repeat across 7 sites × 2 mirrors; machine-pinned (not a CS-004 deviation), an extraction candidate should a shared-include mechanism ever exist.
This review was generated by /uf.review-pr (AI-assisted).
Fifteen PR-added learning files ended mid-sentence at line 10; complete each truncated body so the recorded lessons read whole. Addresses PR #949 review feedback from @jflowers. Signed-off-by: Jay Flowers <[email protected]> Assisted-by: glm-5
Extend the uf.unleash stranded-lesson sentences (Step 4 and Step 6) to the full fail-closed wording, sync the scaffold mirror, and pin the fifth RD-FR-056 scenario (failed finalization stores nothing) with per-command clauses in the contract test. Addresses PR #949 review feedback from @jflowers. Signed-off-by: Jay Flowers <[email protected]> Assisted-by: glm-5
Section 4.6 of uf.triage-issue.md still said finalization runs "including plan failure", but the pinned call site follows dispatch_review_runs, which a plan failure never reaches. Keep the no-success coverage; sync the scaffold mirror. Addresses PR #949 review feedback from @jflowers. Signed-off-by: Jay Flowers <[email protected]> Assisted-by: glm-5
The precedence sentence lived only in the change preamble and drops at archive time. Restate the governing relationship inside the replacement requirement so it survives archiving. Addresses PR #949 review feedback from @jflowers. Signed-off-by: Jay Flowers <[email protected]> Assisted-by: glm-5
The Contract paragraph enumerates the artifact payload but omits the proposals array RD-FR-054 adds. Extend the enumeration; the schema version stays 1.0.0. Addresses PR #949 review feedback from @jflowers. Signed-off-by: Jay Flowers <[email protected]> Assisted-by: glm-5
Single-source the provenance(branch) and scratchRoot() factories the new RD-FR-054/055 describe block re-declared, and pin both dedup boundaries: two 13-token sets sharing exactly 6 tokens (Jaccard exactly 0.3) must merge, and a five-token pair below the similarity floor must not merge on overlap alone. Addresses PR #949 review feedback from @jflowers. Signed-off-by: Jay Flowers <[email protected]> Assisted-by: glm-5
The summary-section test asserted only a subset of the projected fields; a regression dropping mode, verdict_reason, run_counts, coverage, or workflow_result passed. Extend the match to every documented summary field and pin the exact eleven-key shape. Addresses PR #949 review feedback from @jflowers. Signed-off-by: Jay Flowers <[email protected]> Assisted-by: glm-5
The sparse-truncate test exercises only the pre-read stat check, leaving the in-loop TOCTOU guard untested. Add an own-file test with a synthetic FileHandle whose stat stays under the cap while the read stream exceeds it, tripping the in-loop bound deterministically. Addresses PR #949 review feedback from @jflowers. Signed-off-by: Jay Flowers <[email protected]> Assisted-by: glm-5
The proposals array cap was never exercised against either the Zod parse or the JSON Schema validate. Add a 513-valid-entry case to the finalize error-boundary loop and a matching Go schema case via a count-based withProposals helper. Addresses PR #949 review feedback from @jflowers. Signed-off-by: Jay Flowers <[email protected]> Assisted-by: glm-5
The payload projection cast p.category across two independently declared five-value enums, silencing drift at compile time. Declare LESSON_CATEGORY_VALUES once, reference it from both schemas, type the LessonProposal category from it, delete the cast, and sync the scaffold mirror. Addresses PR #949 review feedback from @jflowers. Signed-off-by: Jay Flowers <[email protected]> Assisted-by: glm-5
|
Addressed in |
|
Acknowledged — no change needed. The prose duplication is deliberate and machine-pinned: content-gate tests pin exact clause strings (e.g. |
- Open the artifact with O_NOFOLLOW|O_NONBLOCK (feature-detected) so a symlink swap or a writer-less FIFO cannot redirect or stall the read. - fstat the handle and keep the regular-file and 64 MiB size checks on the open descriptor; enforce the bound again during a chunked read from the same handle, closing it in a finally block. - Drop the now-unused lstat import; document the open/stat/read contract in the tool JSDoc. Mirrored to internal/scaffold/assets/opencode/plugins/review-dispatch/index.ts. Addresses PR #949 review feedback from @jflowers. Signed-off-by: Jay Flowers <[email protected]> Assisted-by: glm-5
- Round-trip the production writer's artifact through read_dispatch_artifact (RD-FR-056/057) so writer/reader drift fails. - Pin the 512-proposal retention order (first kept) in both the full result and the persisted artifact. - Rename the dedup token-floor test to the shipped six-token rule. - Reject a FIFO artifact without blocking the open; reject an artifact above the 64 MiB bound via a sparse truncate. - Serve complete advisories entries and the full finding at an in-bounds offset; pin the copy-don't-retype diff-path guidance. Addresses PR #949 review feedback from @jflowers. Signed-off-by: Jay Flowers <[email protected]> Assisted-by: glm-5
TestSchemaRegistryMatchesUFCopies silently skipped any registry file whose .uf copy was absent, so a new schema committed without its .uf copy would be skipped once any other pair existed. The guard now requires every canonical-asset schema to keep its registry file, and fails a registry file in a family that ships .uf copies when its own copy is missing instead of skipping it. Addresses PR #949 review feedback from @jflowers. Signed-off-by: Jay Flowers <[email protected]> Assisted-by: glm-5
Add the non-ok summary shape -- " -- error: <message> (retryable: <bool>)", the failure message collapsed to one line and cut to at most 512 characters including the ellipsis, the retryable marker omitted when unknown -- to the six dispatch_review_runs summary presentations (uf.triage-issue, uf.review-pr, uf.review-council, uf.address-feedback, uf.unleash x2) and their scaffold mirrors. Rewrap an over-long line in uf.review-pr to the 72-character corpus wrap. Addresses PR #949 review feedback from @jflowers. Signed-off-by: Jay Flowers <[email protected]> Assisted-by: glm-5
- Renumber tasks.md phases into execution order (review follow-ups become 4, mirror/docs/CI becomes 5) and record the #946/#942 bundled-fix outcomes as completed tasks. - Note the task 1.2 supersession by the adopted Jaccard rule. - Document the per-entry learning-store loop and the DE-001 residual in design.md; thread the bundled fixes and residual wording through proposal.md. - Carry the MP-014 sibling-capability map in the spec delta header and add the explicit empty REMOVED marker (MP-013). - Check the documentation-gate task after filing the docs issues (#960 in-repo, unbound-force/website#378); note both in CHANGELOG. Addresses PR #949 review feedback from @jflowers. Signed-off-by: Jay Flowers <[email protected]> Assisted-by: glm-5
Persist the learnings harvested from the PR 949 review-dispatch council rounds and the feedback triage under .uf/dewey/learnings/ so the retrospective record ships with the change. Addresses PR #949 review feedback from @jflowers. Signed-off-by: Jay Flowers <[email protected]> Assisted-by: glm-5
Fifteen PR-added learning files ended mid-sentence at line 10; complete each truncated body so the recorded lessons read whole. Addresses PR #949 review feedback from @jflowers. Signed-off-by: Jay Flowers <[email protected]> Assisted-by: glm-5
Extend the uf.unleash stranded-lesson sentences (Step 4 and Step 6) to the full fail-closed wording, sync the scaffold mirror, and pin the fifth RD-FR-056 scenario (failed finalization stores nothing) with per-command clauses in the contract test. Addresses PR #949 review feedback from @jflowers. Signed-off-by: Jay Flowers <[email protected]> Assisted-by: glm-5
Section 4.6 of uf.triage-issue.md still said finalization runs "including plan failure", but the pinned call site follows dispatch_review_runs, which a plan failure never reaches. Keep the no-success coverage; sync the scaffold mirror. Addresses PR #949 review feedback from @jflowers. Signed-off-by: Jay Flowers <[email protected]> Assisted-by: glm-5
The precedence sentence lived only in the change preamble and drops at archive time. Restate the governing relationship inside the replacement requirement so it survives archiving. Addresses PR #949 review feedback from @jflowers. Signed-off-by: Jay Flowers <[email protected]> Assisted-by: glm-5
The Contract paragraph enumerates the artifact payload but omits the proposals array RD-FR-054 adds. Extend the enumeration; the schema version stays 1.0.0. Addresses PR #949 review feedback from @jflowers. Signed-off-by: Jay Flowers <[email protected]> Assisted-by: glm-5
Single-source the provenance(branch) and scratchRoot() factories the new RD-FR-054/055 describe block re-declared, and pin both dedup boundaries: two 13-token sets sharing exactly 6 tokens (Jaccard exactly 0.3) must merge, and a five-token pair below the similarity floor must not merge on overlap alone. Addresses PR #949 review feedback from @jflowers. Signed-off-by: Jay Flowers <[email protected]> Assisted-by: glm-5
The summary-section test asserted only a subset of the projected fields; a regression dropping mode, verdict_reason, run_counts, coverage, or workflow_result passed. Extend the match to every documented summary field and pin the exact eleven-key shape. Addresses PR #949 review feedback from @jflowers. Signed-off-by: Jay Flowers <[email protected]> Assisted-by: glm-5
The sparse-truncate test exercises only the pre-read stat check, leaving the in-loop TOCTOU guard untested. Add an own-file test with a synthetic FileHandle whose stat stays under the cap while the read stream exceeds it, tripping the in-loop bound deterministically. Addresses PR #949 review feedback from @jflowers. Signed-off-by: Jay Flowers <[email protected]> Assisted-by: glm-5
The proposals array cap was never exercised against either the Zod parse or the JSON Schema validate. Add a 513-valid-entry case to the finalize error-boundary loop and a matching Go schema case via a count-based withProposals helper. Addresses PR #949 review feedback from @jflowers. Signed-off-by: Jay Flowers <[email protected]> Assisted-by: glm-5
Summary
Closes #941
Closes #945
Closes #943
Closes #946
Closes #942
Follow-ups to #929 (bound
consolidate_dispatchoutput, #922) and #937.#941, #945, and #943 go through one OpenSpec change,
openspec/changes/review-dispatch-consumer-bounds/. It adds RD-FR-054to RD-FR-056, which amend RD-FR-049 to RD-FR-053. #946 and #942 are
separate commits.
#941: lessons stored at full length, deduplicated
consolidate_dispatchnow writes the proposals into the artifact asan optional
payload.proposalsarray, at full length and placedafter
advisories, beforeplan/runs. The Zod payload schema andschemas/review-dispatch/v1.0.0.schema.jsondeclare the field asoptional, so artifacts written before this change still validate.
schema_versionstays the same.they are persisted or returned. The rule is deterministic: NFKC,
lowercase, stop words dropped, then Jaccard similarity of 0.3 or
more, with a 6-token floor below which only an exact match counts.
A lesson and its negation never merge. The longer text is kept and
each merge emits a
duplicate_proposal_mergedwarning. In the review-dispatch: lesson proposals are stored in Dewey cut to 512 characters #941session the duplicate pair scored 0.39 and no other pair scored
above 0.10.
proposals_overflowwarning instead of failing finalization.read_dispatch_artifacttool pages the artifact bycorrelation_idand section (summary,findings,advisories,proposals,runs) in complete entries under 40 KiB. Everyconsumer reads the artifact through it, because the file-read tool
cuts the artifact's long lines at 2,000 characters.
.uf/schemas/and the scaffoldcopy, with a new test that
schemas/matches.uf/schemas/.uf.review-pr,uf.review-council(after Section 5),uf.unleashSteps 4/6,uf.triage-issue, anduf.address-feedbackall store lessons from the artifact.
#945: no more unbounded full retrieval
uf.triage-issueanduf.address-feedbacknow finalize right afterdispatch_review_runs. They readruns, findings, advisories, andproposals once from
artifact_path, and the no-provenancedetail: "full"retrieval is gone. Design D5 of #929 is explicitlyrevisited in this change's design.md D5. A failed finalization now
fails closed before any GitHub mutation.
#943: spec deltas
diff_not_foundscenarios are added tobuild-review-promptsFR-011(the FR-009 not-found scenario becomes a not-readable scenario) and to
the
read_diff_chunkscenarios inreview-dispatch-diff-manifest.#946
When
dispatch_review_runsreturns a non-ok result, its summary linenow ends with
— error: <message> (retryable: <bool>). The message iscollapsed to one line and capped at 512 characters. The documented
prefix is unchanged.
#942
uf.review-prnow fetchesauthorin Step 2. If the viewer login isthe PR author, Step 8c maps APPROVE and REQUEST CHANGES to COMMENT,
with a verdict note, before the first POST. The 422 fallback stays for
other causes.
Validation
make plugin-test: all suites pass, statements coverage above the94% floor.
go test -race -count=1 ./...andgo vet ./...pass.deduplication of the review-dispatch: lesson proposals are stored in Dewey cut to 512 characters #941 pair, error summary) and Go (schema
proposalsand content gates for RD-FR-056 and /uf.review-pr posts REQUEST_CHANGES on the viewer's own PR, then falls back after a 422 #942).Open before merge
bound-consolidate-dispatch-output.🤖 Generated with Claude Code