Skip to content

Review and shipping tools: seven small fixes to exclusions, issue links, PR description checks, build outputs, known-red tests and telemetry (GST-3464) - #4672

Merged
capy-ai[bot] merged 6 commits into
mainfrom
ci-tools-small-fixes
Nov 22, 2026
Merged

capy-ai[bot] merged 6 commits into
mainfrom
ci-tools-small-fixes

Conversation

@garrytan

@garrytan garrytan commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Fixes seven small bugs in the review and shipping tools: bad exclusion keys now refuse, Review-Finding: lines are no longer issue references, older commits' issue mentions name their commit, and wording checks skip the PR's short opening lines.
A native binary the checkout builds at a path its committed .gitignore names is no longer flagged as a download; the grouped-merge test gate can read the list of tests already failing on main from a file; and telemetry no longer logs a duplicate onboarding event when a run crosses midnight.
Nothing to do; each fix has a test that fails on main.

What changed

Why

Each item is a bug someone hit while shipping. They caused false refusals from the PR description check, wrong issue links in PR bodies, a review stopped because the repo built its own binary, and test case names with commas or escaped characters that the merge gate could not match.

Blast radius

Only gstack's own review and shipping tools and the telemetry logger change. The fetch sweep's new exemption is narrow and sits on top of the existing check; every other large new file still stops the review. No defaults, settings or stored data change.

Pre-Landing Review

Two full review passes and one approved follow-up check, all on this PR.

  • Pass 1 (whole diff): 4 findings. Fixed: a build output seen at a stage's start could be counted as a download at its end; the opening skip had no length limit. Skipped with reasons: the notes-push retry hint joins gate case names on commas (rare path that fails safe), and the PE header check reads only its first two bytes (a reader could write a full header just as easily).
  • Pass 2 (fixes only): 1 blocker fixed, the opening was measured differently from the body shape check. Second-model review (GPT-6.2 Sol) raised 2 blockers: the start-of-stage skip also excused test fixture folders, and code blocks in the opening were measured collapsed. Both fixed and read again in the approved follow-up check, which found nothing new.
  • Review notes: three Low findings from the native second reader (the skipped region can run past the measured opening when text sits between the Agent notes marker and the first fold; fenced openings), the last two fixed by the follow-up check.
  • Exploratory checks: 10 probes, all passing on the final code.

REVIEW_LOOP: passes=2 blocking_found=3 deferred=0 noted=3 fixed=5 scope=frozen fix_checks=1 dispatches=4 est_input_tokens=24149
Gate edits: none detected (8 listed, 0 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)

Issues

Fixes #4371
Fixes #4378
Related: #4388 (@Davmunrey)
Contributed by @Davmunrey

TODOS

No TODO items completed in this PR.

Tests

  • bun run test: 1743 test files passed in CI run 44997651452 at f0f8f36 (7 skipped here, owed elsewhere); macOS and Windows checks green in runs 44997651452 and 44992809008.
  • Targeted local tests for each changed file, typecheck and the module-size ratchet.
Agent notes

Documentation audit

Status: updated. 2 factual corrections, no blockers.

Scope: commits c2b4f0d2..cb93ec4 plus the staged and unstaged changes: changelog.d rename, gstack-issue-links Review-Finding skip and commit naming, telemetry onboarding marker race, merge-train --fixes-base-red-file and JUnit entity decoding, review fetch sweep build-output exemption, base policy exclusion-key filter, and --check-prose skipping the opening above the first fold. Docs audited: docs/pregate.md, docs/review-policy.md, docs/ship-policy.md, docs/troubleshooting.md, captain/templates/merge-train-peer.md, crew/docs/captain.md.

Documentation health

File Status
docs/ship-policy.md Updated: the prose check names the 3-line, 600-character limit on the skipped opening
docs/troubleshooting.md Updated: the RECEIPT_PROSE_MISMATCH meaning lists the skipped opening
docs/pregate.md Current: the branch already documents the Review-Finding: skip (#4371)
docs/review-policy.md Current: the branch already documents FETCH_IGNORED reason=build-output
captain/templates/merge-train-peer.md Current: names only --fixes-base-red, which is still valid
crew/docs/captain.md Current: names only --fixes-base-red, which is still valid

Coverage debt: --fixes-base-red-file has reference docs only (docs/ship-policy.md) and no how-to example. The telemetry midnight fix is internal and has no doc. Neither gap needs a new page.

Diagram drift: none; no diagrams reference the changed modules.
Approvals

Approved: yes (record r-d4d2f4b296f3). The full approval record stays private.
Plan: exempt: bug fix with a failing-first test for each item (--kind fix)
Plan check: exempt bug fix

Failing-first: each new test fails on main c2b4f0d and passes here. Round grant a-cd77f5b8b26c (GSTA-36) bought one scoped fix-check for p2/outside-voice#1 and #2. test/ship-issue-intent.test.ts's ISSUE_LINKS_MISSING case times out at 5 s on Capy machines on main as well; CI is the check.

{
  "schema_version": 1,
  "pr": 4672,
  "head": "f0f8f36968d839a02223e8e3dc5ff93ff17399d1",
  "version": "1.102.2.0",
  "base": "main",
  "gate": {
    "bun run test": {
      "pass": 1743,
      "fail": 0,
      "skip": 7
    }
  },
  "ci_carried": [
    {
      "lane": "bun_run_test",
      "run": 44997651452,
      "attempt": 1,
      "tree": "261d5e78bdde87ef694c3ff777e24b9104a69de8"
    }
  ],
  "calls": 54,
  "session_kind": "unattended",
  "run": "ship-4672-88cab3f",
  "head_tree": "261d5e78bdde87ef694c3ff777e24b9104a69de8",
  "product_patch_id": "1cb9607db36a12d104af89fba65d64aa8830338a",
  "gstack_version": "1.102.2.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 118,
    "rules": "630fd3101899e28e",
    "base": "c2b4f0d2adfa66e11143b95d9a42023a09380212",
    "registry": "c2b4f0d2adfa66e11143b95d9a42023a09380212",
    "gate_scan": {
      "tagged": 0,
      "head": "f0f8f36968d839a02223e8e3dc5ff93ff17399d1"
    },
    "reasons": [
      "gate-class",
      "risk:security",
      "runtime=118"
    ],
    "risk": [
      "security"
    ],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @261d5e78bdde (8 checks, current for f0f8f36968d8)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/44997651452/attempts/1",
    "windows-smoke.yml/windows-smoke: https://github.com/garrytan/gstack/actions/runs/44992809008/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=261d5e78bdde tests=38828 skipped=89 runs=44997651452/1 profiles=ci-reuse/free-tests heads=f0f8f36968d8 verified=2026-11-22T07:37:43.433Z"
  ],
  "issues": {
    "fixes": [
      4371,
      4378
    ],
    "refs": [],
    "flakes": [],
    "related": [
      {
        "pr": 4388,
        "author": "Davmunrey",
        "closes": [
          4378
        ],
        "credit": true
      }
    ]
  },
  "docs": {
    "status": "updated",
    "scope": "docs/pregate.md, docs/review-policy.md, docs/ship-policy.md, docs/troubleshooting.md, captain/templates/merge-train-peer.md, crew/docs/captain.md"
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 3,
    "deferred": 0,
    "noted": 3,
    "fixed": 5,
    "scope": "frozen",
    "fix_checks": 1,
    "rounds": 2,
    "est_input_tokens": 24149,
    "dispatches": {
      "specialist-batched": 2,
      "red-team": 2
    }
  },
  "review_round_grants": [
    {
      "kind": "fix-check",
      "head": "985c121ddb7aecc1f89488c626c275c0d2b58a95",
      "pr": 4672,
      "by": "GSTA-36",
      "reason": "#1 reopens a security guard hole this PR's own round-1 fix created (reproduced clean sweep on a swapped directory); #2 is a few-line measurement fix in the same pass. One fix-check, scoped to these two.",
      "at": "2026-11-22T06:02:46.220Z",
      "approval": "a-cd77f5b8b26c",
      "stop_run": "ship-4672-88cab3f",
      "findings": [
        "p2/outside-voice#1",
        "p2/outside-voice#2"
      ]
    }
  ],
  "gate_dispositions": []
}

… prose, build outputs, train base-red cases and a telemetry midnight race

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

trunk-io Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

…mmits (#4378)

git log ends each commit with a newline after the format, so every entry
after the first started with it and its label read `commit :`. Reading the
log with -z ends each commit with NUL alone. The sweep test now sorts the
ignored list it receives instead of relying on the walk's order.

Co-authored-by: Davmunrey <[email protected]>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai capy-ai Bot changed the title Review and shipping tools: six small fixes to exclusions, issue links, PR description checks, build outputs, known-red tests and telemetry (GST-3464) Review and shipping tools: seven small fixes to exclusions, issue links, PR description checks, build outputs, known-red tests and telemetry (GST-3464) Nov 22, 2026
garrytan and others added 4 commits November 22, 2026 05:51
…ed, and check a body whose opening is longer than the PR body rules allow

Review-Finding: p1/red-team#1 reader=red-team
Review-Finding: p1/specialist-batched#1 reader=testing
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…does, so the Agent notes marker and comments do not count

Review-Finding: p2/red-team#1 reader=red-team
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…re the PR body opening before code blocks collapse

Review-Finding: p2/outside-voice#1 reader=outside-voice
Review-Finding: p2/outside-voice#2 reader=outside-voice
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…character limit; rename the changelog fragment to the branch name

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot merged commit f7e16a5 into main Nov 22, 2026
85 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant