Skip to content

/gstack-ship keeps settled review findings closed, and a missing run folder no longer costs a docs-audit attempt (GST-4111) - #4875

Merged
capy-ai[bot] merged 7 commits into
mainfrom
fix-ship-review-closures-and-docs-attempts
Nov 28, 2026
Merged

capy-ai[bot] merged 7 commits into
mainfrom
fix-ship-review-closures-and-docs-attempts

Conversation

@garrytan

@garrytan garrytan commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

A ruled finding stays ruled when edits above it move its line, a fix with no trailer closes once a later full review reads it clean, and a "found sound" list no longer counts as findings.
Why: these false blockers stopped finished PRs in other projects and forced extra owner rulings and review rounds.
Nothing to do: the docs audit's snapshot also refuses a missing run folder up front instead of spending an attempt.

What changed
  • Ruled findings across line shifts. gstack-ship-receipt write maps a ruled path:line:voice through that file's diff to the commit the later review read. It counts the re-raised finding as ruled only when the ruled line itself is unchanged and lands on exactly the new line (RULED_SHIFT:). Another line, another voice, an edited line, a renamed or binary file and security findings still block.
  • Fixes without a Review-Finding trailer. A blocker closes (cleared_by_review, REVIEW_CLEAR:) when a commit after every row that raised it changed the finding's own line (or deleted its file), and a later complete, converged, clean full review of the whole branch holding that commit read it clean. Pathless, gate and security findings, edits to other lines, binary files, git errors and range-only reviews never close this way.
  • "What I checked and found sound" lists. Bullet items under a heading that is only such a title ("What I checked and found sound", "What holds up", "Verified", "Strengths", "Looks good") are not collected as findings unless written as one (lead label, a tag such as "(Critical)" or "[High]", Severity field, Blocks: yes, JSON). A heading that only mentions a sound phrase, such as "Summary: one blocker below, everything else found sound", still collects everything under it, and any other line ends the section.
  • Docs audit run folder. gstack-docs-candidate snapshot refuses with DOCS_RUN_FOLDER_MISSING before reading anything, and Step 14.5 says a refused snapshot spends no attempt.
Agent notes

GSKI-1 field reports #4, #5 and #13, plus GSTA-830 #4800. Each fix has a failing-first test with negative controls in test/review-trailer-clearing.test.ts, test/review-ledger-verdict-line.test.ts and test/docs-audit-result.test.ts.

Open in Capy

Open notes from the read-only final review at 3070e76 (none blocking): p4/specialist-batched#1, a bare ## Verified heading still drops an untagged "High severity issue: …" bullet under it; p4/red-team#1, clearByReview diffs from the raising commit to the candidate, so a base merge that rewrote the finding's line can let a lane commit on another line of that file close it (a clean whole-PR review is still required), and the "fixed by" label can name a later commit than the actual fix. Earlier notes: p2/adversarial-native#8 (RULED_SHIFT is printed but not recorded in the receipt) and #9 (a ruling line older than its head).

Closed by fix 2074fd2: p2/adversarial-native#1 (a later full review at 3070e76 read it clean)

Closed by fix 2074fd2: p2/adversarial-native#4 (a later full review at 3070e76 read it clean)

Closed by fix 2074fd2: p2/outside-voice#1 (a later full review at 3070e76 read it clean)

Closed by fix 2074fd2: p2/outside-voice#2 (a later full review at 3070e76 read it clean)

Closed by fix 2074fd2: p2/outside-voice#3 (a later full review at 3070e76 read it clean)

Closed by fix 2074fd2: p2/outside-voice#4 (a later full review at 3070e76 read it clean)

Closed by fix 3070e76: p3/red-team#2 (a later full review at 3070e76 read it clean)

{
  "schema_version": 1,
  "pr": 4875,
  "head": "e13aab9b3eca0751313e60174b1951d7cf20937e",
  "version": "1.104.2.0",
  "base": "main",
  "ci_carried": [
    {
      "lane": "free",
      "run": 46150502944,
      "attempt": 1,
      "tree": "bb924faba82f8120b7a01293e965cd2bc333f2ed"
    }
  ],
  "calls": 81,
  "session_kind": "unattended",
  "run": "ship-4875",
  "head_tree": "bb924faba82f8120b7a01293e965cd2bc333f2ed",
  "product_patch_id": "c66b52cd7f394230c22ffca39922084b5fd9dbe2",
  "gstack_version": "1.104.2.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 216,
    "rules": "183e0616b381d889",
    "base": "09e2f44f270a9fe6aa510b73049441957b593451",
    "registry": "09e2f44f270a9fe6aa510b73049441957b593451",
    "gate_scan": {
      "tagged": 0,
      "head": "e13aab9b3eca0751313e60174b1951d7cf20937e"
    },
    "reasons": [
      "gate-class",
      "risk:money",
      "runtime=216"
    ],
    "risk": [
      "money"
    ],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @bb924faba82f (8 checks, current for e13aab9b3eca)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/46150502944/attempts/1",
    "windows-smoke.yml/windows-smoke: https://github.com/garrytan/gstack/actions/runs/46150502970/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=bb924faba82f tests=38703 skipped=104 runs=46150502944/1 profiles=ci-reuse/free-tests heads=e13aab9b3eca base_moved=09e2f44f270a verified=2026-11-28T13:52:48.240Z"
  ],
  "docs": {
    "status": "updated",
    "scope": "docs/, README.md, AGENTS.md, CONTRIBUTING.md"
  },
  "review_loop": {
    "passes": 5,
    "blocking_found": 9,
    "deferred": 0,
    "noted": 10,
    "fixed": 12,
    "scope": "frozen",
    "rounds": 5,
    "unrecorded": 1,
    "ledgers_read": 6,
    "dispatches": {
      "specialist": 15,
      "red-team": 5
    }
  },
  "cleared_by_trailer": [
    {
      "id": "p2/adversarial-native#1",
      "commit": "2074fd2b07fd02cfff70bc0ea4fab6d192839d12",
      "review": "3070e76485eb14e2e28835b14ec9a8421bb494f9"
    },
    {
      "id": "p2/adversarial-native#4",
      "commit": "2074fd2b07fd02cfff70bc0ea4fab6d192839d12",
      "review": "3070e76485eb14e2e28835b14ec9a8421bb494f9"
    },
    {
      "id": "p2/outside-voice#1",
      "commit": "2074fd2b07fd02cfff70bc0ea4fab6d192839d12",
      "review": "3070e76485eb14e2e28835b14ec9a8421bb494f9"
    },
    {
      "id": "p2/outside-voice#2",
      "commit": "2074fd2b07fd02cfff70bc0ea4fab6d192839d12",
      "review": "3070e76485eb14e2e28835b14ec9a8421bb494f9"
    },
    {
      "id": "p2/outside-voice#3",
      "commit": "2074fd2b07fd02cfff70bc0ea4fab6d192839d12",
      "review": "3070e76485eb14e2e28835b14ec9a8421bb494f9"
    },
    {
      "id": "p2/outside-voice#4",
      "commit": "2074fd2b07fd02cfff70bc0ea4fab6d192839d12",
      "review": "3070e76485eb14e2e28835b14ec9a8421bb494f9"
    },
    {
      "id": "p3/red-team#2",
      "commit": "3070e76485eb14e2e28835b14ec9a8421bb494f9",
      "review": "3070e76485eb14e2e28835b14ec9a8421bb494f9"
    }
  ],
  "gate_dispositions": [],
  "review_targeted": {
    "classes": [
      "money"
    ],
    "rules": "486f50f9badb8759",
    "brief_sha": "7f92a0d0a8319c3c0e076fb3b1a4689c45120b2be2c14dfc7d4cb03aafa9d6a5",
    "product_patch_id": "c66b52cd7f394230c22ffca39922084b5fd9dbe2",
    "status": "done",
    "findings": 0,
    "raised_by": "targeted"
  }
}

…n a missing run folder (GST-4111)

A ruled finding stays ruled when only lines above it move; a trailerless fix closes after a later clean full review read its file's change; sound-checks bullet lists are not findings; the docs snapshot refuses a missing run folder before any attempt.

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

trunk-io Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 6 commits November 28, 2026 11:58
… textconv drivers

Review-Finding: p1/red-team#1 reader=red-team
Review-Finding: p1/red-team#2 reader=red-team
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…lean review; Step 11.5 reads shifted rulings; narrower sound headings

Review-Finding: p2/adversarial-native#1 reader=adversarial-native
Review-Finding: p2/adversarial-native#4 reader=adversarial-native
Review-Finding: p2/adversarial-native#10 reader=adversarial-native
Review-Finding: p2/adversarial-native#11 reader=adversarial-native
Review-Finding: p2/outside-voice#1 reader=outside-voice
Review-Finding: p2/outside-voice#2 reader=outside-voice
Review-Finding: p2/outside-voice#3 reader=outside-voice
Review-Finding: p2/outside-voice#4 reader=outside-voice
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…lect; trailerless closure needs git to show the line changed

Review-Finding: p3/red-team#2 reader=red-team
Review-Finding: p3/specialist-batched#1 reader=specialist-batched
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>
Ship-Run: ship-4875
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai

capy-ai Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

windows-pregate failed once at e13aab9 in the question-log hook timing step: the warm hook call was stopped after 4.47 s of its 4.47 s budget (SIGTERM after 4473 of 4466 ms). This PR does not touch that hook, and the same job passed at 3070e76 and 2074fd2. The failed job was rerun once at the same head and the failure is recorded as flaky for the daily flaky pass.

@capy-ai
capy-ai Bot merged commit 44df379 into main Nov 28, 2026
58 of 59 checks passed
@garrytan garrytan mentioned this pull request Nov 28, 2026
capy-ai Bot added a commit that referenced this pull request Nov 28, 2026
- Dependency and CI action updates, each checked against its publisher. (#4873)
- The PR body check no longer loses the closing Agent notes section when the text quotes a `<!--` comment opener in inline code or a code block, (#4874)
- `/gstack-ship` stops mistaking ordinary text for Capy ids, and checks every part of a public PR body it posts. (#4872)
- `/gstack-ship` no longer puts home folder paths or Capy thread and message ids into PR bodies on public repositories. (#4868)
- `/gstack-ship` no longer stops or blocks because of time and tokens that belong to something else. (#4877)
- /gstack-ship keeps its token cap and clock when its budget start reruns mid-run. (#4882)
- `/gstack-ship` stops reopening findings that were already settled, and a missing run folder no longer costs a docs-audit attempt. (#4875)
- `/gstack-ship` closes five gaps in how it records reviews, and `--for gstack-ship` now installs the ship skill on Capy. (#4867)
- The stable release no longer skips a fully tested commit because a report-only workflow failed on it. (#4865)
- A test that copies its own `bun` binary no longer stops `/gstack-ship` with a fetch violation. (#4876)
- The secrets check no longer reports an 11-digit GitHub Actions run id as a phone number when code names it with a camelCase run identifier (#4881)
- `/review` now always runs its Codex second-model review when Codex is ready, and runs the Red Team on diffs over 200 lines. (#4870)
- The factory scorecard's red-train rate now counts each train (one batch of PRs tested together) once per report, by its branch, so re-testing the same batch inside the report's window no longer moves the rate. (#4880)
- The secrets check catches more Google API keys in encoded text, reads each JavaScript and TypeScript declaration under its own name, reports a provider key once, and stops matching look-alike values against your environment's secrets. (#4871)
- The secrets check now catches keys in JavaScript, TypeScript and Go declarations, and stops flagging JSON key paths, run folders and base64 noise. (#4869)
- The paid shared-code review test no longer fails a correct review that printed a caller file with `cat -A`. (#4878)
- The weekly benchmark line in the stable release plan now also strips C1 control characters and the Unicode line and paragraph separators (U+2028, U+2029) from record text, (#4866)

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