Repository navigation
fix: version strings gstack names aren't public IPs; renderers install Chromium on first use; outside-voice role hint (GST-1204) - #3941
Merged
Conversation
…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>
|
😎 This pull request was merged. |
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
pii.ip_public:isDeclaredVersionnow 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 trailersgstack: ok X for=shipandgstack: 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.0andgstack 1.94.4.0 - 8.8.8.8still 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.gstack-pr-shots,/make-pdfand/diagramon gstack's own browser: the Capy install defers Chromium to first use, butrenderWithBrowsenever ran the install helper. So on a fresh machine it failed withbrowse 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'sbin/gstack-browser-ensure --quietonce and retriesnewtab. 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'sStarting serverandServer failed to startheaders 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 todocs/model-policy.md#your-model-preference. No behavior change.Reproduction (failing tests first)
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 withPR_SHOTS_RENDER_FAILED (browse newtab failed: [browse] Starting server...). Runningbrowse newtabdirectly showed Playwright'slaunch: Executable doesn't exist. With the fix, the same command printedSHOT_PNG: …/pair.png engine=browseafter the helper installed Chromium. The two newtest/aside-render.test.tscases failed on main with the same message. The slow-installer case (the install outlasts the render budget) failed before the deadline fix.test/model-policy-cli.test.tsfailed 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 resolvedbrowse/dist/browsebinary, 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) andtest/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:bash; on native Windows without Git Bash the spawn fails with a readable error (Windows is minimal tier).gstackstays exempt by design (gstack 1.1.1.1).