Skip to content

test(ship): collect keeps every reviewer label; closing summaries are known phantoms (GST-435) - #3703

Closed
garrytan wants to merge 10 commits into
mainfrom
gst-435-collect-labels
Closed

garrytan wants to merge 10 commits into
mainfrom
gst-435-collect-labels

Conversation

@garrytan

@garrytan garrytan commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 3703,
  "head": "799b2d217c6714230da1768696d28316e16fc35c",
  "version": "1.91.372.0",
  "base": "main",
  "gate": {
    "review-dispatch": {
      "pass": 36,
      "fail": 0,
      "skip": 0
    },
    "remote-pregate": {
      "pass": 3294,
      "fail": 0,
      "skip": 0
    }
  },
  "session_kind": "unattended",
  "head_tree": "6ad2c634aa28b128bbd1a5322208cb66c97ef93f",
  "product_patch_id": "7db10a107f161899e2d39b3e6f535725a21b9b30",
  "gstack_version": "1.91.373.0",
  "review_depth": {
    "depth": "light",
    "class": "code",
    "runtime_lines": 4,
    "rules": "150435b0a543019a",
    "base": "2d1b55d7621df1a71e02037c79b63b7ee2fdc64f",
    "registry": "2d1b55d7621df1a71e02037c79b63b7ee2fdc64f",
    "gate_scan": {
      "tagged": 0,
      "head": "799b2d217c6714230da1768696d28316e16fc35c"
    },
    "reasons": [
      "runtime=4<=50"
    ]
  },
  "pregate": "requires-remote cleared @6ad2c634aa28 (1 checks, current for 799b2d217c67)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/41232069366",
    "windows-free-tests.yml/windows-free-shard: https://github.com/garrytan/gstack/actions/runs/41232069326",
    "pregate.json/remote_gate: remote-gate tree=6ad2c634aa28 tests=3307"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "docs/, README.md, AGENTS.md (read-only audit, base 44eeeb3c to 7feb36ca)"
  },
  "review_loop": {
    "passes": 3,
    "blocking_found": 4,
    "deferred": 0,
    "noted": 3,
    "fixed": 8,
    "scope": "frozen",
    "fix_checks": 5,
    "dispatches": {
      "specialist": 2,
      "red-team": 1
    }
  },
  "review_loop_exception": {
    "accepted_by": "GStack Minder (Captain, GSTA-36)",
    "date": "2026-10-31",
    "via": "GSTA-36 message to GSTA-167 (option 2)",
    "reason": "the d40e14e fix-check found a lost blocker in the summary-drop rule; the Captain removed the whole negation-drop path instead of patching it, so lib/review-ledger.ts equals main",
    "fix_check": {
      "head": "d40e14e2ffbbce665a0a7a036b917cc5b43dfe39",
      "findings": 3,
      "files": [
        "lib/review-ledger.ts"
      ]
    }
  },
  "carry": {
    "from": "7feb36ca76b8d3b4bb2a082d49bc818be8c8b639",
    "reason": "base merge + test-only change + release metadata",
    "product_patch_id": "7db10a107f161899e2d39b3e6f535725a21b9b30",
    "changed_paths": [
      "metadata:CHANGELOG.md",
      "metadata:VERSION",
      "metadata:agents-digest/gstack-AGENTS.md",
      "product:bin/gstack-base-red",
      "product:bin/gstack-doctor-components.sh",
      "product:bin/gstack-eval-plan",
      "product:bin/gstack-pregate",
      "product:bin/gstack-review-dispatch",
      "product:bin/gstack-ship-receipt",
      "product:captain/templates/brief.md",
      "product:capy/skill/gstack/SKILL.md",
      "product:docs/TESTING_INTERNALS.md",
      "product:docs/captain.md",
      "product:docs/cso-release-qualification.md",
      "product:docs/pregate.md",
      "product:docs/review-policy.md",
      "product:docs/ship-policy.md",
      "product:docs/troubleshooting.md",
      "product:docs/unattended.md",
      "product:eval-plan/SKILL.md",
      "product:eval-plan/SKILL.md.tmpl",
      "product:lib/base-red.ts",
      "product:lib/capy-review-pass.js",
      "product:lib/cso/images/build-inputs.json",
      "product:lib/eval-plan.ts",
      "product:lib/headless-artifacts.ts",
      "product:lib/pregate/config.ts",
      "product:lib/pregate/index.ts",
      "product:lib/result-codes-eval.ts",
      "product:lib/result-codes-release.ts",
      "product:lib/result-codes.ts",
      "product:lib/review-brief.ts",
      "product:lib/review-ledger.ts",
      "product:lib/review-pass.ts",
      "product:lib/run-evidence.ts",
      "product:lib/ship-policy.ts",
      "product:lib/ship-receipt.ts",
      "metadata:package.json",
      "product:scripts/cso-image-matrix.ts",
      "product:scripts/pr-dependencies.ts",
      "product:scripts/ubicloud/pregate-remote.sh",
      "product:scripts/ubicloud/ubi-runner.sh",
      "product:ship/sections/pr-body.md",
      "product:ship/sections/pr-body.md.tmpl",
      "product:ship/sections/tests.md",
      "product:ship/sections/tests.md.tmpl",
      "test:test/base-red.test.ts",
      "test:test/cso-distribution.test.ts",
      "test:test/egress-receipt-wiring.test.ts",
      "test:test/eval-models.test.ts"
    ],
    "merge_commits": 1,
    "range_diff": "1:  b46ac1a3 =  1:  b46ac1a3 fix(ship): a severity word a negator directly scopes is no finding, and a list item's later labeled paragraph keeps its title (GST-435)\n 2:  96e7bd43 =  2:  96e7bd43 fix(ship): a negated subject drops a label only when it names the review's findings (GST-435 review)\n 3:  de3a5757 =  3:  de3a5757 fix(ship): drop a label only from a closing-summary sentence, a closed template list (GST-435 rule (b'))\n 4:  d40e14e2 =  4:  d40e14e2 fix(ship): no closing-summary template word sets the negation apart from an earlier blocker (GST-435 rule (b'))\n 5:  e1204a5f =  5:  e1204a5f fix(ship): remove the negation drop; collect keeps every label and closing summaries are known phantoms (GST-435 option 1)\n 6:  078db39c =  6:  078db39c fix(ship): the item shortcut leaves JSON findings and label headings to their own branches (GST-435 fix-check)\n 7:  05e4ee79 =  7:  05e4ee79 fix(ship): defer the paragraph-split fix; collect is main's, tests lock in every label (GST-435)\n 8:  68737b5a =  8:  68737b5a docs(ship): a closing-summary phantom stays at its label in the judged set (GST-435 Step 11)\n 9:  7feb36ca =  9:  7feb36ca test(ship): name main's item readings as known deferred shapes, no buggy-output golden (GST-435 review)",
    "covers": [
      "pre-landing review",
      "adversarial review",
      "gate integrity",
      "documentation audit"
    ],
    "reruns": [
      "CI at head (gstack-ship-queue ready requires it); test and helper code changed since the reviewed head runs there unreviewed"
    ],
    "ancestry": "linear",
    "trees": [
      "91f61cee9d1f4854f0600b45d6a64943a41f20a7"
    ]
  }
}

What changed

The collect step now says a reader's own closing summary collects at its label and stays there; tests lock every label in (GST-435)

The collect step now says a reader's own closing summary collects at its label and stays there; tests lock every label in (GST-435).

Before/after as text: The collect step now says a reader's own closing summary collects at its label and stays there; tests lock every label in (GST-435)
--- Before · docs/review-policy.md § Verbatim dispatch at 7d4e71b · source text
+++ After · docs/review-policy.md § Verbatim dispatch on this branch · source text
@@ ⋯ 17 unchanged ⋯ @@
    `merged.jsonl` with the label as written (a JSON line's `severity`, or the most
    severe of a prose line's Critical, High, Medium, Low, P0-P3, FIXABLE or INVESTIGATE
    wherever they stand, headings and table rows included; a top-level list item under a
+   label-only heading takes the stronger of the two). Every label word counts, a reader's own
+   closing summary included ("I found nothing CRITICAL", "Neither finding is CRITICAL"): it
+   collects at its label and stays at that label in the judged set (GST-435). A `Severity:` or `Blocks:` line
-   label-only heading takes the stronger of the two). A `Severity:` or `Blocks:` line
    continues the finding above it until a list item, heading, bold paragraph opener or a
    second line for the same field starts another: `Severity` raises its label,
    `Blocks: yes` makes it CRITICAL and `Blocks: no` never lowers it; an inline
  • test/review-dispatch.test.ts now locks in that collect keeps every label a reviewer writes, at the strongest one on its line. It covers every line that three GST-435 review rounds found losing or lowering a label under a drop draft, plus table rows, harness-evals feat: /a11y — accessibility testing built on the infrastructure you already have #152's native FIXABLE findings, and item layouts (an indented JSON finding, an indented label heading, a later Blocks: yes).
  • Seven HARN-15 and GEVA-77 reader replies are added as fixtures under test/fixtures/review-ledger/.
  • docs/review-policy.md says a reader's own closing summary collects at its label and stays there in the judged set. That paragraph describes today's behavior until GST-435 Part 2 lands.
  • lib/review-ledger.ts is unchanged from main.

Why

GST-435: collect turned a reader's own closing summary ("Neither finding is CRITICAL.") into a CRITICAL finding the judge couldn't drop, which cost about $73 in extra passes on HARN-1 (harness-evals #152). Every draft that dropped such labels lost a real blocker in review, so this PR ships no drop and fixes none of HARN-1's phantoms. The tests lock in that every label is kept, and the phantom summaries are listed below as known, with the follow-up named.

Blast radius

No runtime change: git diff origin/main -- lib bin scripts is empty (script ran). The new tests fail only if collect starts dropping, lowering or moving a label.

Approvals

Date Asked Exact words Outcome Covers Still pending
2026-10-31 GST-435 scope after three rounds of lost blockers: ship rule (a) and the guard tests without any negation drop, defer the paragraph-split fix if it misplaces a label “The Captain chose option 2 ... Remove the negation-drop path entirely ... drop the paragraph-split fix entirely and keep going” (GStack Minder (Captain, GSTA-36)) approved PR #3703 content: tests, docs and changelog only; summary_candidate follow-up plan reviewed before code none

Source: gstack-approvals record for gst-435-collect-labels (display only; not an approval citation).

Summary

Three drafts tried to drop summary labels with a negation rule, then a narrower one, then a closed list of summary templates. Review found a real blocker lost in each, for example "The token leak in log.ts:3 blocks the merge. Nothing else is CRITICAL." A fix that kept a list item's title when its label first shows up in a later paragraph also put labels on the wrong finding. The Captain chose to keep main's collect and lock it in, so this branch is tests, fixtures, one docs paragraph and a changelog fragment. Refs GST-435 (Capy issue); no GitHub issue is closed.

Test Coverage

No product code changed. The new tests cover every lost-blocker line from the three review rounds as a kept label, plus the item layouts named under Known and deferred.

Tests ran: review-dispatch 36. Tests ran: remote pregate 3294.

Pre-Landing Review

REVIEW_LOOP: passes=3 blocking_found=4 deferred=0 noted=3 fixed=8 scope=frozen fix_checks=5 dispatches=3

Review-loop exception: accepted by GStack Minder (Captain, GSTA-36) 2026-10-31 via GSTA-36 message to GSTA-167 (option 2): the d40e14e fix-check found a lost blocker in the summary-drop rule; the Captain removed the whole negation-drop path instead of patching it, so lib/review-ledger.ts equals main (fix-check at d40e14e, 3 findings)

The 4 blocking findings are this run's CRITICALs, each a lost blocker in a drop draft: pass 1 (b46ac1a), pass 2 (96e7bd4), the de3a575 fix-check and the d40e14e fix-check. Pass 1's was fixed in code at 96e7bd4. That fix, and the code behind the other three, went away when the Captain removed the negation-drop path, so all four are resolved by removing the code. The review log only appends, so fixed=8 still counts these four as fixed from their first rows. The exception names d40e14e; the de3a575 finding was resolved by the same scope change.

Gate edits: none detected (9 listed, 1 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)

Outside review: openai/gpt-6.1-sol at 05e4ee7, 0 findings. The adversarial pass found 6: one docs wording defect (fixed in 68737b5), the rest are main's behavior and listed below.

Proof: a property replay over 2,250 recorded reader outputs at this head shows 0 property violations, and 0 of 260 records matched to a judged blocker are lost or lowered. No record changes, because collect is main's.

Known and deferred

  • Closing summaries are phantoms. "I found nothing CRITICAL", "Neither finding is CRITICAL.", the HARN-15 Red Team and fix-check summaries and GEVA-77's closing line collect as CRITICAL, and each stays CRITICAL in the judged set. Follow-up: collect tags lines that match closed summary templates as summary_candidate, and judge may dismiss only a tagged line on record. The plan goes to the Captain before any code.
  • A list item whose label first appears in an indented later paragraph still collects as that paragraph alone, without the item's title (HARN-15 ship2 native item 4). This is deferred to the same follow-up.
  • An indented label heading (**Critical** under item 1) rates the next item, and an indented JSON finding under an item collects without the item's title. Both are main's behavior, and the tests name them as known.
  • "Severity: Low (not High)" collects as High, the same as main.

Eval Results

No prompt-related files changed, so evals were skipped.

Design Review

No frontend files changed, so design review was skipped.

TODOS

No TODO items completed in this PR.

Documentation

Status: current. The docs match the branch, with no edits and no blockers.

Scope: base 44eeeb3 to HEAD 7feb36c on gst-435-collect-labels: 9 commits and 10 committed files (test/review-dispatch.test.ts, 7 review-ledger fixtures, docs/review-policy.md, changelog.d/gst-435-collect-labels.md). There are no staged, unstaged or untracked files. The audit was read-only.

Documentation health

  • docs/review-policy.md: Current. The collect step (lines 468-473) says a reader's closing summary collects at its label and stays there in the judged set. That matches the new tests and judge's refuse-to-lower rule (step 4).
  • changelog.d/gst-435-collect-labels.md: Current. Its Known, Tests and Docs entries match the diff.

Coverage debt: none. No public surface changed; collection behavior is unchanged and locked in by tests.

Diagram drift: none.

Test plan

…nd a list item's later labeled paragraph keeps its title (GST-435)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@trunk-io

trunk-io Bot commented Oct 31, 2026

Copy link
Copy Markdown

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here

garrytan and others added 8 commits October 31, 2026 16:06
…iew's findings (GST-435 review)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…d template list (GST-435 rule (b'))

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…rom an earlier blocker (GST-435 rule (b'))

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…osing summaries are known phantoms (GST-435 option 1)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…to their own branches (GST-435 fix-check)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ck in every label (GST-435)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…d set (GST-435 Step 11)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ggy-output golden (GST-435 review)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai capy-ai Bot changed the title fix(ship): a severity word a negator directly scopes is no finding (GST-435) test(ship): collect keeps every reviewer label; closing summaries are known phantoms (GST-435) Oct 31, 2026
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

# Conflicts:
#	test/review-dispatch.test.ts
@capy-ai

capy-ai Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Closing as superseded by #3803 (GST-796). #3787 (GST-766) changed the collector after this PR, so its "closing summaries are known phantoms" docs and tests no longer describe main. #3803 reverts #3787's negation drop, which lost real blockers named in exception clauses such as "No CRITICAL issues except the token leak in log.ts:3", and it carries this PR's label-preservation probes as regression tests.

@capy-ai capy-ai Bot closed this Nov 1, 2026
capy-ai Bot added a commit that referenced this pull request Nov 1, 2026
… "no CRITICAL issues except" is no longer lost (GSTA-167 S1) (#3803)

* test(review): a blocker in an exception clause after a negated severity word collects at its label (GSTA-167 S1, failing first)

Adds the six exception-clause probes that collect nothing on 8cef24c, GST-435's label-keeping probes and fixtures (PR #3703, read as text), and turns GST-766's negated-label test into a kept-label test.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* fix(review): revert GST-766's negation drop; collect keeps every label as before 8cef24c, stated stays (GSTA-167 S1)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* fix: pre-landing review fixes (GSTA-167 S1: a closing-summary phantom stays at its label in the judged set and folds only into a finding at least as severe)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

---------

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant