Skip to content

fix: version strings gstack names aren't public IPs; renderers install Chromium on first use; outside-voice role hint (GST-1204) - #3941

Merged
capy-ai[bot] merged 3 commits into
mainfrom
gst-1204-ship-tooling
Nov 4, 2026
Merged

capy-ai[bot] merged 3 commits into
mainfrom
gst-1204-ship-tooling

Conversation

@garrytan

@garrytan garrytan commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 3941,
  "head": "5a14a3ea1b895e55afddf19a055443b2da1eaa28",
  "version": "1.94.15.0",
  "base": "main",
  "session_kind": "unattended",
  "run": "jam_01M6A5MQ4NASMSXCHXQS8EPCVT",
  "head_tree": "d621c9e0cf91f5f835683d4ee10074e86b8a69a1",
  "product_patch_id": "095b6d0c707ae52699866d6e35afe57bb16074cd",
  "gstack_version": "1.94.4.0",
  "review_depth": {
    "depth": "full",
    "class": "code",
    "runtime_lines": 61,
    "rules": "18dcd562316f56ed",
    "base": "bf2bcf14b08d774291613c8073674a0e90eb4f9f",
    "registry": "bf2bcf14b08d774291613c8073674a0e90eb4f9f",
    "gate_scan": {
      "tagged": 0,
      "head": "5a14a3ea1b895e55afddf19a055443b2da1eaa28"
    },
    "reasons": [
      "risk:security",
      "runtime=61"
    ],
    "risk": [
      "security"
    ]
  },
  "pregate": "requires-remote cleared @d621c9e0cf91 (7 checks, current for 5a14a3ea1b89)",
  "requires_remote": [
    "free-tests.yml/cso-macos-launcher: https://github.com/garrytan/gstack/actions/runs/41629861819/attempts/1",
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/41629861819/attempts/1",
    "free-tests.yml/cso-windows-launcher: https://github.com/garrytan/gstack/actions/runs/41629861819/attempts/1",
    "windows-smoke.yml/windows-smoke: https://github.com/garrytan/gstack/actions/runs/41629861726/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=d621c9e0cf91 tests=34780 skipped=80 runs=41629861819/1 profiles=ci-reuse/free-tests heads=5a14a3ea1b89 verified=2026-11-03T11:51:03.631Z"
  ],
  "docs": {
    "status": "updated",
    "scope": "changelog.d fragment and docs/troubleshooting.md pii.ip_public entry name the gstack-version exemption"
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 1,
    "deferred": 0,
    "noted": 3,
    "fixed": 3,
    "scope": "frozen",
    "rounds": 2
  }
}

This covers three of the four GST-1204 items, all from the gbrain-evals F1 rollout (#317) and GEVA-2. Item 1, preflight's base merge in the middle of /ship, touches lib/ship-preflight.ts. That file is held by #3927 and #3929, so item 1 will follow as a stacked PR.

What changed

  • Secret scan, pii.ip_public: isDeclaredVersion now also accepts a four-part version that gstack names right before it, when it's shaped like a gstack release (major 0 to 2): gstack 1.94.4.0, upgraded gstack from …, and the install-check trailers gstack: ok X for=ship and gstack: fail claude,codex (X). It also accepts the far end of a range when the range's first end is declared and has the same major. gstack 8.8.8.8, my-gstack 1.94.4.0 and gstack 1.94.4.0 - 8.8.8.8 still report. Lane reports and PR bodies quote these lines on every push, so each one stopped on a MEDIUM finding that an unattended /ship can't confirm.
  • Renderer, behind gstack-pr-shots, /make-pdf and /diagram on gstack's own browser: the Capy install defers Chromium to first use, but renderWithBrowse never ran the install helper. So on a fresh machine it failed with browse newtab failed: [browse] Starting server..., a line that hid the real cause. Now, when Playwright says the executable doesn't exist, it runs the checkout's bin/gstack-browser-ensure --quiet once and retries newtab. The install time doesn't count against the render deadline, so the retry gets the time the render had left. When the install fails, the error carries the launch line and the installer's verdict. Error lines also skip the daemon's Starting server and Server failed to start headers and Playwright's banner box.
  • gstack-models resolve --role outside-voice: still a usage error, now with the reason: the outside voice follows the harness, not the model policy. It points to docs/model-policy.md#your-model-preference. No behavior change.

Reproduction (failing tests first)

  • On main, all six gstack-named version shapes reported pii.ip_public. Twelve address controls report with this change; the seven added in the review round failed against the first version of the fix.
  • gstack-pr-shots --path lib/model-policy-cli.ts … on this Capy machine, at main bf2bcf1, failed with PR_SHOTS_RENDER_FAILED (browse newtab failed: [browse] Starting server...). Running browse newtab directly showed Playwright's launch: Executable doesn't exist. With the fix, the same command printed SHOT_PNG: …/pair.png engine=browse after the helper installed Chromium. The two new test/aside-render.test.ts cases failed on main with the same message. The slow-installer case (the install outlasts the render budget) failed before the deadline fix.
  • The outside-voice case in test/model-policy-cli.test.ts failed on main.

Security read

The renderer may now start bin/gstack-browser-ensure, which downloads Playwright's Chromium (a network call). It's the same helper every browser skill's preflight already runs. It's found only next to the resolved browse/dist/browse binary, and it runs once, only after Playwright reports a missing executable. The scanner change narrows one MEDIUM pattern by context, and each exemption comes with address controls. No environment reads, permissions or workflow changes.

Tests

test/redact-context-exemptions.test.ts (with the other redact and gstack-post suites, 622 pass across 25 files), test/aside-render.test.ts (with the exemptions file and the spawnSync tripwire, 250 pass, 2 skip) and test/model-policy-cli.test.ts. In the last file, the "POSIX-bounded regex engine" case times out on this machine at main too, without this change. Typecheck is clean.

Overlap

#3927 and #3923/#3929 don't touch these files.

Review

Specialist, red team, adversarial (Opus 5.5) and the GPT-6.1 Sol outside voice ran once at 0694040; one scoped fix-check ran on the fix round and came back clean. Fixed: the install ate the render deadline (P2, outside voice and adversarial), and the exemption was wider than intended (any quad after gstack, any range end). Open notes, none at the blocking floor:

  • The installer runs through bash; on native Windows without Git Bash the spawn fails with a readable error (Windows is minimal tier).
  • A 1.x or 2.x public address right after gstack stays exempt by design (gstack 1.1.1.1).
  • The install step keeps its own 600-second cap.

Open in Capy

…l Chromium on first use; outside-voice role hint (GST-1204)

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

trunk-io Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 2 commits November 3, 2026 11:40
…jor range end; Chromium install time doesn't eat the render deadline (GST-1204 review)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… gstack-version exemption (GST-1204)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot merged commit 0b19a36 into main Nov 4, 2026
45 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

Development

Successfully merging this pull request may close these issues.

1 participant