Skip to content

fix(review-dispatch): durable lessons, artifact-sourced consumers, error summary - #949

Merged
jflowers merged 22 commits into
mainfrom
claude/rd-consumer-bounds-c7ee38
Nov 5, 2026
Merged

jflowers merged 22 commits into
mainfrom
claude/rd-consumer-bounds-c7ee38

Conversation

@jflowers

@jflowers jflowers commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Closes #941
Closes #945
Closes #943
Closes #946
Closes #942

Follow-ups to #929 (bound consolidate_dispatch output, #922) and #937.
#941, #945, and #943 go through one OpenSpec change,
openspec/changes/review-dispatch-consumer-bounds/. It adds RD-FR-054
to 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_dispatch now writes the proposals into the artifact as
    an optional payload.proposals array, at full length and placed
    after advisories, before plan/runs. The Zod payload schema and
    schemas/review-dispatch/v1.0.0.schema.json declare the field as
    optional, so artifacts written before this change still validate.
    schema_version stays the same.
  • Near-identical proposals from different personas are merged before
    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_merged warning. In the review-dispatch: lesson proposals are stored in Dewey cut to 512 characters #941
    session the duplicate pair scored 0.39 and no other pair scored
    above 0.10.
  • At most 512 proposals persist; the rest are reported as a
    proposals_overflow warning instead of failing finalization.
  • New read_dispatch_artifact tool pages the artifact by
    correlation_id and section (summary, findings, advisories,
    proposals, runs) in complete entries under 40 KiB. Every
    consumer reads the artifact through it, because the file-read tool
    cuts the artifact's long lines at 2,000 characters.
  • The schema change is mirrored to .uf/schemas/ and the scaffold
    copy, with a new test that schemas/ matches .uf/schemas/.
  • The capped proposal arrays in tool results are now only a preview.
    uf.review-pr, uf.review-council (after Section 5),
    uf.unleash Steps 4/6, uf.triage-issue, and uf.address-feedback
    all store lessons from the artifact.

#945: no more unbounded full retrieval

uf.triage-issue and uf.address-feedback now finalize right after
dispatch_review_runs. They read runs, findings, advisories, and
proposals once from artifact_path, and the no-provenance
detail: "full" retrieval is gone. Design D5 of #929 is explicitly
revisited in this change's design.md D5. A failed finalization now
fails closed before any GitHub mutation.

#943: spec deltas

diff_not_found scenarios are added to build-review-prompts FR-011
(the FR-009 not-found scenario becomes a not-readable scenario) and to
the read_diff_chunk scenarios in review-dispatch-diff-manifest.

#946

When dispatch_review_runs returns a non-ok result, its summary line
now ends with — error: <message> (retryable: <bool>). The message is
collapsed to one line and capped at 512 characters. The documented
prefix is unchanged.

#942

uf.review-pr now fetches author in Step 2. If the viewer login is
the 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

Open before merge

  • Documentation-gate issue (task 4.3) is not filed yet.
  • Archive order: archive this change together with or after
    bound-consolidate-dispatch-output.

🤖 Generated with Claude Code

@jflowers
jflowers requested a review from a team as a code owner November 3, 2026 19:32
@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

✅ CRAP Load Analysis: PASS

Summary

Metric Value
Functions analysed 102
Avg complexity 7.4
Avg line coverage 90.2%
Avg CRAP score 8.2
CRAPload (>= 15) 11
Avg contract coverage 100%
Avg GazeCRAP score 22.7
GazeCRAPload (>= 15) 1
Regressions 0
Improvements 0
New functions 102

Quadrant Distribution

Quadrant Count
Q1 Safe 2
Q2 Complex but Tested 0
Q3 Simple but Underspecified 0
Q4 Dangerous 1

New Functions

Status Function CRAP GazeCRAP Note
+ internal/scaffold/plugin_activation.go:activateReviewPlugins 4 N/A new
+ internal/scaffold/plugin_activation.go:installAndActivateReviewPlugins 12.266571044921875 N/A new
+ internal/scaffold/plugin_activation.go:validatePluginRuntime 14.411112024328101 N/A new
+ internal/scaffold/plugin_activation.go:parseRuntimeVersion 8 N/A new
+ internal/scaffold/plugin_activation.go:trimASCIISpaceAndTab 1 N/A new
+ internal/scaffold/plugin_activation.go:parseUint32VersionComponent 9.024000000000001 N/A new
+ internal/scaffold/plugin_activation.go:stageReviewPluginSources 5.390625 N/A new
+ internal/scaffold/plugin_activation.go:runReviewPluginProbe 4.592592592592593 N/A new
+ internal/scaffold/plugin_activation.go:reviewPluginProbeSource 2 N/A new
+ internal/scaffold/plugin_activation.go:pluginFileURL 2.0625 N/A new
+ internal/scaffold/plugin_activation.go:atomicallyActivateReviewPlugins 26.25 N/A new
+ internal/scaffold/plugin_activation.go:normalizePluginActivationOptions 18.744 N/A new
+ internal/scaffold/scaffold.go:isActivationGatedAsset 4 N/A new
+ internal/scaffold/scaffold.go:defaultExecCmd 1 N/A new
+ internal/scaffold/scaffold.go:defaultExecCmdInDir 1 N/A new
!+ internal/scaffold/scaffold.go:Run 64.97922087625818 59 new violation
+ internal/scaffold/scaffold.go:warnLegacyReviewerFiles 4 N/A new
+ internal/scaffold/scaffold.go:mapAssetPath 6 N/A new
+ internal/scaffold/scaffold.go:regularFileExists 2 N/A new
+ internal/scaffold/scaffold.go:cleanupRenamedCommands 4 N/A new
+ internal/scaffold/scaffold.go:warnStaleCommandRefs 12.048901354597708 N/A new
+ internal/scaffold/scaffold.go:isToolOwned 27 N/A new
+ internal/scaffold/scaffold.go:isNeverOverwrite 1 N/A new
!+ internal/scaffold/scaffold.go:isDivisorAsset 33 N/A new violation
+ internal/scaffold/scaffold.go:isConventionPack 1 N/A new
+ internal/scaffold/scaffold.go:shouldDeployPack 5 N/A new
+ internal/scaffold/scaffold.go:detectLang 3 N/A new
+ internal/scaffold/scaffold.go:versionMarker 2 N/A new
+ internal/scaffold/scaffold.go:stripExistingMarkers 4 N/A new
+ internal/scaffold/scaffold.go:insertMarkerAfterFrontmatter 6.085333333333334 N/A new
+ internal/scaffold/scaffold.go:configurePluginEntries 14.7476806640625 N/A new
!+ internal/scaffold/scaffold.go:configureOpencodeJSON 47.07414991104696 N/A new violation
+ internal/scaffold/scaffold.go:configureDCPConfig 15.169045830202855 N/A new
+ internal/scaffold/scaffold.go:stripJSONCComments 3 N/A new
+ internal/scaffold/scaffold.go:extractManagedRegion 6 N/A new
+ internal/scaffold/scaffold.go:hasMarkerLine 3 N/A new
+ internal/scaffold/scaffold.go:ensureGitignore 10.010797969981644 N/A new
+ internal/scaffold/scaffold.go:writeGitignore 2 N/A new
+ internal/scaffold/scaffold.go:ensureOverrideStubs 1 N/A new
+ internal/scaffold/scaffold.go:ensureOverrideStub 6.027047332832457 N/A new
+ internal/scaffold/scaffold.go:ensureOpencodeGitignore 10.010797969981644 N/A new
+ internal/scaffold/scaffold.go:missingOpencodeGitignoreLines 5 N/A new
+ internal/scaffold/scaffold.go:migrateCommandDir 15.376226847615653 N/A new
+ internal/scaffold/scaffold.go:moveFile 10.75 N/A new
+ internal/scaffold/scaffold.go:countMDFiles 5.048828125 N/A new
+ internal/scaffold/scaffold.go:ensureAGENTSmdPackSection 7.10873674693844 N/A new
+ internal/scaffold/scaffold.go:ensureAGENTSmdSiblingSection 7 N/A new
+ internal/scaffold/scaffold.go:hasRuleContent 3 N/A new
+ internal/scaffold/scaffold.go:collectDeployedPacks 3 N/A new
+ internal/scaffold/scaffold.go:filterEmptyCustomPacks 5 N/A new
+ internal/scaffold/scaffold.go:initSubTools 13 N/A new
+ internal/scaffold/scaffold.go:initDewey 8.125 N/A new
+ internal/scaffold/scaffold.go:initSimpleTool 9 N/A new
+ internal/scaffold/scaffold.go:subToolSymbol 3 N/A new
+ internal/scaffold/scaffold.go:printFileCategories 11.408375 N/A new
+ internal/scaffold/scaffold.go:printSubToolResults 10 N/A new
+ internal/scaffold/scaffold.go:printNextSteps 11 N/A new
+ internal/scaffold/scaffold.go:printSummary 2 N/A new
+ internal/scaffold/scaffold.go:assetPaths 3.0123456790123457 N/A new
+ internal/scaffold/scaffold.go:assetContent 1 N/A new
+ internal/scaffold/scaffold.go:generateDeweySources 11.185878470641784 N/A new
+ internal/scaffold/scaffold.go:isDefaultSourcesConfig 1 N/A new
+ internal/scaffold/scaffold.go:extractGitHubOrg 8.064 N/A new
+ internal/scaffold/scaffold.go:DevcontainerContent 2 N/A new
+ internal/scaffold/scaffold.go:writeSourcesConfig 4 N/A new
+ internal/scaffold/scaffold_stealth.go:escapeExcludePattern 5 N/A new
+ internal/scaffold/scaffold_stealth.go:resolveGitInfoExcludePath 4.175582990397805 N/A new
+ internal/scaffold/scaffold_stealth.go:verifyInsideGitRepo 6.166666666666667 N/A new
+ internal/scaffold/scaffold_stealth.go:isCanonicalScaffoldPath 1 N/A new
+ internal/scaffold/scaffold_stealth.go:trackedScaffoldPaths 5.018782870022539 N/A new
+ internal/scaffold/scaffold_stealth.go:stealthExcludeBlock 2 N/A new
+ internal/scaffold/scaffold_stealth.go:writeGitInfoExclude 12.008192990441511 N/A new
+ internal/scaffold/scaffold_stealth.go:writeExcludeFile 2 N/A new
+ internal/scaffold/scaffold_stealth.go:beginStealth 15.400701227147508 N/A new
+ internal/scaffold/scaffold_stealth.go:(*stealthContext).rollback 20.869490344007545 N/A new
+ internal/scaffold/scaffold_stealth.go:unstageNewlyStaged 9.094474413179764 N/A new
+ internal/scaffold/scaffold_stealth.go:snapshotTrackedFiles 14.058074074074074 N/A new
!+ internal/scaffold/scaffold_stealth.go:restoreTrackedFiles 45.031054429155226 N/A new violation
+ internal/scaffold/scaffold_stealth.go:restoreRegularFile 2.148148148148148 N/A new
+ internal/scaffold/scaffold_stealth.go:restoreSymlink 5 N/A new
+ internal/scaffold/scaffold_stealth.go:appendNewUntrackedToExclude 14.681748615632914 N/A new
+ internal/scaffold/scaffold_stealth.go:stealthExcludedPaths 9.081 N/A new
+ internal/scaffold/scaffold_stealth.go:matchesScaffoldPath 4 N/A new
+ internal/scaffold/scaffold_stealth.go:visibleScaffoldPaths 6.131087847064179 N/A new
+ internal/scaffold/scaffold_stealth.go:gitRefCommit 3 N/A new
+ internal/scaffold/scaffold_stealth.go:newStealthCheckReport 1 N/A new
+ internal/scaffold/scaffold_stealth.go:runStealthCheck 10.736111111111109 N/A new
+ internal/scaffold/scaffold_stealth.go:writeStealthReport 2.032 N/A new
+ internal/scaffold/scaffold_stealth.go:emitStealthSummary 10.017146776406035 N/A new
+ internal/scaffold/scaffold_stealth.go:warnStaleStealthExclusion 6.166666666666667 N/A new
+ internal/schemas/generate.go:GenerateSchema 2.032 N/A new
+ internal/schemas/generate.go:WriteSchema 4.592592592592593 N/A new
+ internal/schemas/packvalidator.go:ValidateConventionPack 8.010973936899862 N/A new
+ internal/schemas/packvalidator.go:extractFrontmatter 7.095703125 N/A new
+ internal/schemas/packvalidator.go:extractH2Sections 3 N/A new
+ internal/schemas/registry.go:registeredTypes 1 N/A new
+ internal/schemas/registry.go:RegisteredTypeNames 2 N/A new
+ internal/schemas/registry.go:GenerateAll 4.25 N/A new
+ internal/schemas/validate.go:ValidateArtifact 3.0262390670553936 3 new
+ internal/schemas/validate.go:ValidateBytes 6.085333333333334 6 new
+ internal/schemas/version.go:semverParts 5.2459912536443145 N/A new
+ internal/schemas/version.go:CheckCompatibility 4 N/A new

View full analysis logs

@jflowers jflowers changed the title fix(review-dispatch): durable lessons, artifact-sourced consumers, error summary, self-authored review fix(review-dispatch): durable lessons, artifact-sourced consumers, error summary Nov 3, 2026

@jflowers jflowers left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 no Spec: reference. Amending the unarchived change to record both fixes closes the gap; no code change required.
  • [LOW] read_dispatch_artifact section coverage (.opencode/test/read-dispatch-artifact.test.ts): the suite never requests advisories and exercises findings only 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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Filed both halves of the two-filing gate:

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in b56fff4 (plus the test rename in c2865ee):

  • tasks.md phase headings are renumbered into execution order — ## 4. Review follow-ups now 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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recorded in b56fff4 — no code change, as suggested:


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({

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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"}.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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" },
])

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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" },

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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`

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread .opencode/commands/uf.review-pr.md Outdated

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:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in b8c28bc — the line is rewrapped within the ~72-character convention, and all five scaffold mirrors carry the identical rewrap (verified byte-identical).

jflowers and others added 12 commits November 4, 2026 12:43
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]>
- 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
@jflowers
jflowers force-pushed the claude/rd-consumer-bounds-c7ee38 branch from 501a1c5 to 595e4eb Compare November 4, 2026 17:44
@jflowers

jflowers commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

All 16 review items addressed

Thanks for the thorough review. Every finding from the review body and the 15 threads is addressed across six commits:

Commit Subject
ba6dc67 fix(review-dispatch): harden read_dispatch_artifact against path races
c2865ee test(review-dispatch): pin the reader contract and dedup retention
c2b3794 fix(scaffold): make the schema-registry mirror guard absence-proof
b8c28bc docs(commands): document the dispatch summary error suffix
b56fff4 docs(openspec): record review follow-ups in consumer-bounds artifacts
595e4eb docs(dewey): capture review-loop learnings

Note: the branch was rebased onto main after the fixes, so the SHAs above differ from earlier references — content is unchanged. The rebase also resolves the four pre-existing internal/scaffold package-lock mirror failures that were red on the reviewed head; main merged the mirror sync in #953, and the scaffold test selection now passes.

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 Spec: references (b56fff4).

read_dispatch_artifact section coverage: the suite now requests advisories and exercises findings selectors end-to-end, alongside a writer/reader round-trip, the 64 MiB sparse-rejection test, and FIFO/retention spot checks (c2865ee).

Per-thread replies are posted on each of the 15 conversations with the specifics.

Post-fix review council

The incremental fix diff went back through the review council: APPROVE WITH ADVISORIES — no REQUEST CHANGES. Three MEDIUM advisories, disclosed here for follow-up:

  1. O_NOFOLLOW/O_NONBLOCK portability — on platforms where Node does not define these constants (Windows), the ?? 0 fallback silently drops both flags; the removed lstat pre-check was the cross-platform guard. Impact is bounded (macOS/Linux define the flags; CI runs ubuntu-latest). Follow-up: branch to an lstat pre-check when O_NOFOLLOW is undefined.
  2. Learning-sweep provenance — the 55-file learning sweep includes some Nov-3 learnings that anchor to other PRs (fix(finale): repair uf_finale_ci_poll for gh 2.91.0 JSON schema #927/review-dispatch: finalize_review_dispatch rejects read_only that the plugin's own provenance emits (strict DispatchRunSchema) #931/checkpoint: malformed phase gives misleading 'implement-phase-undefined' error #936/feat(pre-flight): carry project-declared check output to reviewers #944) under the "produced during the workflow" characterization; worth a provenance pass before the next sweep.
  3. Rejection-test assertion depth — the new rejection tests assert the shared invalid_artifact code; pinning the size-specific guard itself would be stronger.

Plus six LOW advisories (unexecuted append-growth-race branch, mkfifo portability where the utility is absent, a repeated determinism learning, website#378 missing the docs label, 512-character truncations in some learning previews, and the untested live-stream byte bound). Full detail is recorded in the dispatch artifact, correlation id 568faefc-0ebe-4fa9-8acc-34cb1c6c58d5.

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 jflowers left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 new proposals array 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).

Comment thread .opencode/commands/uf.triage-issue.md Resolved
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
@jflowers

jflowers commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

Addressed in 6ec063f6: schemas/review-dispatch/README.md now enumerates the lesson-proposal fields in the artifact contract, so consumers can validate proposals without reading plugin source.

@jflowers

jflowers commented Nov 5, 2026

Copy link
Copy Markdown
Contributor Author

Acknowledged — no change needed. The prose duplication is deliberate and machine-pinned: content-gate tests pin exact clause strings (e.g. TestCommandContracts_ArtifactSourcedLessons) and the embedded mirrors stay byte-identical by design, so each pinned surface carries the contract text verbatim.

@jflowers
jflowers merged commit 086c9f6 into main Nov 5, 2026
17 checks passed
jflowers added a commit that referenced this pull request Nov 5, 2026
- 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
jflowers added a commit that referenced this pull request Nov 5, 2026
- 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
jflowers added a commit that referenced this pull request Nov 5, 2026
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
jflowers added a commit that referenced this pull request Nov 5, 2026
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
jflowers added a commit that referenced this pull request Nov 5, 2026
- 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
jflowers added a commit that referenced this pull request Nov 5, 2026
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
jflowers added a commit that referenced this pull request Nov 5, 2026
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
jflowers added a commit that referenced this pull request Nov 5, 2026
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
jflowers added a commit that referenced this pull request Nov 5, 2026
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
jflowers added a commit that referenced this pull request Nov 5, 2026
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
jflowers added a commit that referenced this pull request Nov 5, 2026
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
jflowers added a commit that referenced this pull request Nov 5, 2026
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
jflowers added a commit that referenced this pull request Nov 5, 2026
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
jflowers added a commit that referenced this pull request Nov 5, 2026
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
jflowers added a commit that referenced this pull request Nov 5, 2026
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment