Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
216 commits
Select commit Hold shift + click to select a range
0a6bb42
Reused CI runs that passed only after a re-run are now marked instead…
garrytan Nov 18, 2026
9222485
Review planner sends Swift health, permission and on-device storage c…
garrytan Nov 18, 2026
33b1a96
/ship's push step ends with one line that says whether it pushed (GST…
garrytan Nov 18, 2026
f87d432
A round grant at the review round cap buys the fix round it names (GS…
garrytan Nov 18, 2026
44170d6
Unattended /autoplan on Claude Code says its phase guard is on, and a…
garrytan Nov 18, 2026
bbf48aa
Unattended /autoplan records the owner's relayed gate reply instead o…
garrytan Nov 18, 2026
07611a0
/ship no longer reports zero blockers when the second-model review fo…
garrytan Nov 18, 2026
0109703
Security findings no longer show their file, line or reason in PR bod…
garrytan Nov 18, 2026
3ecd716
The token-capped /ship child on Claude Code now starts its prompt wit…
garrytan Nov 18, 2026
bf2c126
gstack-post no longer reads /ship's own run ids and commit ids as pho…
garrytan Nov 18, 2026
782f459
Two owner-answer adds at once no longer collide, and three flaky test…
garrytan Nov 18, 2026
fda9dea
/ship on Codex starts its audits with Codex's own subagent tools, not…
garrytan Nov 18, 2026
3610130
Keep a policy-floor test passing after gstack's version bump to 1.101…
garrytan Nov 18, 2026
b6ca54e
v1.101.0.0 release (#4498)
garrytan Nov 18, 2026
45f879b
The Codex readiness check and the second-model review pick the same m…
garrytan Nov 18, 2026
2767d22
gstack-artifact validate now refuses a run.json that gstack-autoplan …
garrytan Nov 18, 2026
36b349d
Commands that read cut-off output now fail instead of judging part of…
garrytan Nov 18, 2026
0ab5657
Changed-number check stops flagging tests that only share a word like…
garrytan Nov 18, 2026
d789dd9
/sync-gbrain's read check works when the first page is over 64 KB (#4…
garrytan Nov 18, 2026
2f57b07
gstack's script runner and merge-queue checks now refuse cut-off comm…
garrytan Nov 18, 2026
4302697
/ship's state-machine check accepts the header lines its reader is to…
garrytan Nov 18, 2026
3f1b82b
Helper hooks are on by default, the destructive-command check runs as…
garrytan Nov 18, 2026
f79a890
Docs and release notes now match the on-by-default helper hooks (GST-…
garrytan Nov 19, 2026
5afef04
The prompt-routing hook suggests skills you install, and stops sendin…
garrytan Nov 19, 2026
b702243
When Claude Code runs /verify before a commit, it now gets a quick ch…
garrytan Nov 19, 2026
ed4086e
Codex loads office-hours, plan-design-review and gstack-upgrade again…
garrytan Nov 19, 2026
12bd33b
Pull requests that merged a release reuse their earlier test run when…
garrytan Nov 19, 2026
c25390d
/ship's review works when the shipped checkout isn't the project's de…
garrytan Nov 19, 2026
f13dbb0
Ship policy can mark published data as content, so /ship can review l…
garrytan Nov 19, 2026
91e93c3
chore: merge upstream garrytan/gstack b70224385 (CHE-7528) [merge]
Nov 19, 2026
957fab7
Second-model review keeps the reviewer's result and reports budget st…
garrytan Nov 19, 2026
55aaa6c
Destructive-command check stops asking about scratch deletes and bloc…
garrytan Nov 19, 2026
944b41e
Codex gets gstack's skill routing hint and destructive-command check …
garrytan Nov 19, 2026
ed26724
A folder marked as published data can no longer hide source code or a…
garrytan Nov 19, 2026
e95cea8
On Capy, /ship hands its pull request edits and comments to Capy's PR…
garrytan Nov 19, 2026
f82b6f7
A failed second-model review names the cause that stopped it, and nev…
garrytan Nov 19, 2026
be83949
Codex skill suggestions name each skill the way Codex lists it (GST-3…
garrytan Nov 19, 2026
b0f865c
Codex now holds /review to its checklist before a session can end (GS…
garrytan Nov 19, 2026
b23e1b0
Codex picker prompts and docs name skills the way Codex lists them (G…
garrytan Nov 19, 2026
45e6d54
A second review round reviews a gate-class fix instead of reporting d…
garrytan Nov 19, 2026
18e24a2
Codex /review with gpt-6.1-sol counts the second-model pass it alread…
garrytan Nov 19, 2026
1730386
Destructive-command check closes the parsing gaps found after #4513 a…
garrytan Nov 19, 2026
3cccf07
Free-suite CI survives a slow Ubuntu mirror, and four flaky tests and…
garrytan Nov 19, 2026
bd44923
Pre-commit /verify fails on a timeout, and the review collector stops…
garrytan Nov 19, 2026
9610ba4
gstack's Codex hooks keep working with unusual folder paths and after…
garrytan Nov 19, 2026
104fc72
Syncing a second repo no longer makes GBrain ask the first repo to sy…
garrytan Nov 19, 2026
50cc282
Test runs whose workers start in their own session are no longer kill…
garrytan Nov 19, 2026
2714e9f
READY prints real trial merges and the second-model trail read, plus …
garrytan Nov 19, 2026
a0534ce
v1.102.0.0 release (#4535)
garrytan Nov 19, 2026
ab6a38b
Destructive-command check blocks four more ways past its disk-wipe an…
garrytan Nov 19, 2026
dab7549
A green CI run still counts when the repository's artifact storage is…
garrytan Nov 19, 2026
12cc218
Telemetry backend only accepts writes through its own endpoint, and t…
garrytan Nov 19, 2026
9093238
gstack tells you what it's adding before it installs a background job…
garrytan Nov 19, 2026
5df6b5a
The prompt-routing hook names your installed bug-fix skill on bug rep…
garrytan Nov 19, 2026
7f9c1bc
Claude Code skills run their start step as they load, so it can't be …
garrytan Nov 19, 2026
db2a56e
The paid auto-decide check counts a start step that ran while the ski…
garrytan Nov 19, 2026
9ea26ec
Telemetry records why skill runs end, which host and model ran them, …
garrytan Nov 19, 2026
8586794
Review plan gives a preregistration with only its plain data the writ…
garrytan Nov 19, 2026
1bd86d9
Run ids in /ship's follow-up review approvals are no longer flagged a…
garrytan Nov 20, 2026
a26529a
/ship accepts a stopped review once the owner rules its findings open…
garrytan Nov 20, 2026
bd04289
Review read names the findings that owner rulings leave open (GST-326…
garrytan Nov 20, 2026
5f3aa5b
Browse daemon skips port 10080, which Chromium refuses, and a process…
garrytan Nov 20, 2026
92c6c8a
Doc-sync eval fixture allows /ship's format repair, so a dropped resu…
garrytan Nov 20, 2026
6121a19
/ship stops instead of running the whole test suite here when CI's ru…
garrytan Nov 20, 2026
6287c75
Prompt-routing hook ignores words inside backticks (#4564) (#4566)
garrytan Nov 20, 2026
a529769
/cso audits repositories that track symlinks, without following them …
garrytan Nov 20, 2026
acb1f4e
Owner rulings close a stopped review whose findings were logged in a …
garrytan Nov 20, 2026
69e67e2
Free Tests plans its shards beside the reuse and docs checks (GST-330…
garrytan Nov 20, 2026
6a64c49
Every flaky pass in Free Tests is now recorded in Trunk or the flaky-…
garrytan Nov 20, 2026
6479516
Redactor hides key=value secrets that follow a slash, so /cso history…
garrytan Nov 20, 2026
29bff55
v1.102.1.0 release (#4573)
garrytan Nov 20, 2026
593d7e1
Windows Setup E2E runs its long cases on parallel runners (GST-3303) …
garrytan Nov 20, 2026
ad65f62
Results PRs with large agent transcripts can be reviewed again (GST-3…
garrytan Nov 20, 2026
87a473e
Free Tests splits the suite from freshly recorded test times (GST-330…
garrytan Nov 20, 2026
14a8498
Telemetry can count gstack's own use on Capy, opt-in and kept out of …
garrytan Nov 20, 2026
92c57ca
Step 11.5 keeps a reviewed head current across base-only merges (GST-…
garrytan Nov 20, 2026
faae7f7
Trunk flaky-test upload runs after Free Tests, off the pull request's…
garrytan Nov 20, 2026
ef4a7f5
Reviews stay valid after merging main when a stacked parent was alrea…
garrytan Nov 21, 2026
507ebfc
The weekly test-time recording can land again on its own (GST-3303) (…
garrytan Nov 21, 2026
1a95eae
Capy threads use halved token limits and follow three new rules on su…
garrytan Nov 21, 2026
41729a0
New page on running gstack work across more than one agent system (GS…
garrytan Nov 21, 2026
ebc8674
Teach agents nine habits that several teams learned the hard way (GST…
garrytan Nov 21, 2026
0adfab9
Job-log tree.json step now recommends a 5-second sleep so slow-stampi…
garrytan Nov 21, 2026
e096fa8
Skipped quarantined tests fail the run, and the upgrade snooze sticks…
garrytan Nov 21, 2026
ffdd535
Split the slowest free test file so no shard waits on it (GST-3303) (…
garrytan Nov 21, 2026
e057dfa
Eval plans now pilot every arm, check the judge per arm, state their …
garrytan Nov 21, 2026
6cac5ab
/cso never looks through a symlinked folder, and Capy release and tri…
garrytan Nov 21, 2026
09bd0fa
Run Free Tests shards on 16-core runners to cut about a minute (GST-3…
garrytan Nov 21, 2026
19069a9
Reader subagents on Capy stop sending telemetry, error runs report th…
garrytan Nov 21, 2026
c0fd3bf
Pilot every arm of the /ship conductor trial and add one planned half…
garrytan Nov 21, 2026
6af4d8a
Eval graders treat the agent's repo as hostile, plus two more team-le…
garrytan Nov 21, 2026
387a65c
README and docs no longer say gstack makes your agent fix more bugs (…
garrytan Nov 21, 2026
b281eff
Fix /ship review counting, cleared reviewer notes and security findin…
garrytan Nov 21, 2026
7fe1900
Fix ready notes, landing decisions, release PR descriptions and squas…
garrytan Nov 21, 2026
baef51f
Let the /ship conductor trial end at the remote gate when a case's ba…
garrytan Nov 21, 2026
cc08965
/ship's review no longer stops when Capy's drive sync database grows …
garrytan Nov 21, 2026
aea71f4
Make the /ship conductor trial stop only at the final remote-gate ref…
garrytan Nov 21, 2026
cbe37f2
Tell /ship review readers never to kill processes they didn't start (…
garrytan Nov 21, 2026
df4d0bd
Make /ship's preflight honor the repo's CI rerun time limit and name …
garrytan Nov 21, 2026
4363c51
Give the /ship conductor trial's judge one more attempt on fresh labe…
garrytan Nov 21, 2026
27e5db9
/office-hours checks for a real user first and ends startup sessions …
garrytan Nov 21, 2026
43c9c20
The spawnSync overflow test no longer fails about once an hour on CI …
garrytan Nov 21, 2026
bd77c8c
Codex skills no longer stop on temp-file cleanup, which Codex refuses…
garrytan Nov 21, 2026
de9a7b4
/review on Codex with OpenAI models no longer blocks a review that ra…
garrytan Nov 21, 2026
5152445
/plan-tune's dream cycle now logs each send of your typed answers to …
garrytan Nov 21, 2026
a1e2c7e
Plan reviews no longer read a /design-review audit summary as the des…
garrytan Nov 21, 2026
f71e785
Node test files run with node --test in repos that use vitest (#4586)…
garrytan Nov 21, 2026
6263e0e
gstack stops offering to add skill routing rules to your project's CL…
garrytan Nov 21, 2026
79eea6d
v1.102.2.0 release (#4631)
garrytan Nov 21, 2026
5db285c
/eval-plan refuses gpt-4o and older-generation models in every role, …
garrytan Nov 21, 2026
3c1c22e
Weekly test health passes again with freshly recorded test times (GST…
garrytan Nov 21, 2026
c8641cc
Large repos can raise the review-plan time limit for every /ship step…
garrytan Nov 21, 2026
2887261
The release gate's live /autoplan guard test runs its actor on Haiku …
garrytan Nov 21, 2026
dd61103
A base branch with too many review_exclude_paths patterns no longer s…
garrytan Nov 21, 2026
d8abe59
Router tests use synthetic prompts instead of real benchmark tasks (G…
garrytan Nov 22, 2026
abdc09d
Land checks a PR whose base moved in a separate clone, then with full…
garrytan Nov 22, 2026
973b49e
Pull requests get a Test changes summary of deleted or skipped tests …
garrytan Nov 22, 2026
8d0e827
Hash manifests no longer keep excluded results files in review, and t…
garrytan Nov 22, 2026
6e90fa3
/ship can finish again when a docs check ran before a base merge (GST…
garrytan Nov 22, 2026
7abc194
Skip the second Free Tests run when a PR lands onto a moved main (GST…
garrytan Nov 22, 2026
69ad103
Repos can prove copied open-source files match their upstream byte fo…
garrytan Nov 22, 2026
6484fd5
Nightly Windows tests stop timing out: shards pack by Windows test ti…
garrytan Nov 22, 2026
6963fa8
Add a weekly report of the wrong edits gstack's tests fail to catch (…
garrytan Nov 22, 2026
23ee4c3
Second-model review defaults to GPT-6.2 Sol instead of GPT-6.1 Sol (G…
garrytan Nov 22, 2026
e8e7554
A stopped or crashed /ship run no longer blocks the next run or its g…
garrytan Nov 22, 2026
c2b4f0d
/ship's review plan finishes on repositories with large trial files (…
garrytan Nov 22, 2026
7c0659a
Merge queue ready fetches missing pull request heads in one go, says …
garrytan Nov 22, 2026
9cfbbb9
Review leaves out copied open-source files that match their upstream …
garrytan Nov 22, 2026
ef72e41
Docs link check stops hiding sections after inline code, /learn prune…
garrytan Nov 22, 2026
0b4f0ce
Publish the /ship conductor trial results (GST-3003) (#4680)
garrytan Nov 22, 2026
540da9b
/ship runs in the pull request's own thread, with no helper agent (GS…
garrytan Nov 22, 2026
82cc62d
A granted follow-up check that confirmed its blockers fixed now count…
garrytan Nov 22, 2026
465d911
A granted fix round that a follow-up check reads clean now closes the…
garrytan Nov 22, 2026
7df6466
The merge queue checks a pull request against the branch it targets, …
garrytan Nov 22, 2026
75410da
Secrets check flags keys in Rust let, const and static bindings and s…
garrytan Nov 22, 2026
5472368
/ship keeps a PR's review after a main merge that only updates a shar…
garrytan Nov 22, 2026
9d9ba2f
/ship can clear its test gate from CI on a branch stacked on another …
garrytan Nov 22, 2026
24b15c6
Windows hooks start under unconverted paths, and six more setup and i…
garrytan Nov 22, 2026
8ffd2b8
Defaults name current models, and review stops reading "the HIGH bran…
garrytan Nov 22, 2026
f7e16a5
Review and shipping tools: seven small fixes to exclusions, issue lin…
garrytan Nov 22, 2026
094263d
/eval-plan checks follow the plan's own dates and models, and plans n…
garrytan Nov 22, 2026
95cf15b
gbrain memory lookups find the artifacts source, product pages and ne…
garrytan Nov 22, 2026
296b252
Skills load their declared gbrain context at start, and harness statu…
garrytan Nov 22, 2026
5b88fa8
/cso finish no longer closes an audit after a refused submit (GST-350…
garrytan Nov 22, 2026
af5caca
/cso keeps going when a .env-style file cannot be read, and reports i…
garrytan Nov 22, 2026
f59520e
Plan a test of whether /ship's reviewers beat two plain reads (GST-34…
garrytan Nov 22, 2026
3deb055
browse --session before the command, Gemini AQ. keys, /verify trust a…
garrytan Nov 22, 2026
3759f65
Changed-constant check stops flagging unrelated tests for one- and tw…
garrytan Nov 22, 2026
3cff6a4
Review keeps a file that a branch swaps from our own code to upstream…
garrytan Nov 22, 2026
9055979
Destructive-command check catches more force pushes and outside delet…
garrytan Nov 22, 2026
19247f6
Prompt router names your bug-fix skill first and stops sending featur…
garrytan Nov 22, 2026
113deea
Fix eight problems users reported in skill instructions (#4686)
garrytan Nov 22, 2026
3d3ce73
Local checks reuse every green CI run at your code, not only the firs…
garrytan Nov 22, 2026
25bf93c
/ship can finish after a docs audit stopped before saving its snapsho…
garrytan Nov 22, 2026
7530280
A skipped CI run no longer blocks reusing a passing run on the same c…
garrytan Nov 22, 2026
4bd15f8
Test selection finds tests for NodeNext .js imports and Rails specs (…
garrytan Nov 22, 2026
b3323f4
Review and ship tools: read Codex numbered severities, check Remote C…
garrytan Nov 22, 2026
596ff8a
Prompt router stops sending feature requests to your bug-fix skill (#…
garrytan Nov 22, 2026
63900b3
A fix closes its review finding only after a finished full review, an…
garrytan Nov 22, 2026
3c9cda0
Free test shards stop failing when a test's browser exits during the …
garrytan Nov 22, 2026
44e244d
Review exclusions stay in place when the repo's own policy test pins …
garrytan Nov 22, 2026
f528f5b
/ship counts a clean recheck of granted fixes even when its brief was…
garrytan Nov 22, 2026
45e33b5
/ship keeps its review count and grant claims honest, and a symlinked…
garrytan Nov 22, 2026
17afb68
/ship reruns the test gate when its record was taken against a differ…
garrytan Nov 22, 2026
1d3350c
Deleted tests still check the files that list them, and Playwright fi…
garrytan Nov 22, 2026
ab5abf0
Prompt router stops naming your bug-fix skill on bug reports, and CLA…
garrytan Nov 22, 2026
a88cc7c
Secrets check reads files whose names hold a space or an accent (GST-…
garrytan Nov 22, 2026
4ae9ec7
/ship can finish when its docs audit fixes a reviewed doc after the l…
garrytan Nov 22, 2026
5962f0d
Four tests and two tools stop failing at random: gate-ahead worktrees…
garrytan Nov 22, 2026
00a6b7a
Code review reads the design checklist and your repo's agents/ folder…
garrytan Nov 22, 2026
d3aed00
CI reuse: a neutral run no longer blocks a passing one, and workflow_…
garrytan Nov 22, 2026
2ab2aad
A crashed merge no longer blocks every other merge, and a one-call co…
garrytan Nov 22, 2026
b5ad880
Note in the revert drill docs that drill PRs change nothing else (#4715)
garrytan Nov 22, 2026
20ab591
Undo the revert drill docs sentence (#4716)
garrytan Nov 22, 2026
9d75843
/verify is now /build-check, so Claude Code's built-in /verify works …
garrytan Nov 22, 2026
c2da82e
A disabled_skills verify entry keeps /build-check off, and gstack sto…
garrytan Nov 22, 2026
50cc296
After a pull request's second review round, an approved extra check n…
garrytan Nov 22, 2026
79f3052
The stale-test-value check matches tests by resolved import, not file…
garrytan Nov 22, 2026
ccd80de
A used review grant can no longer be claimed again, plus two /ship fi…
garrytan Nov 23, 2026
dd1b610
The recommendation judge's calibration test checks two real captured …
garrytan Nov 23, 2026
0408128
/plan-ceo-review explains its mode recommendation by what that mode d…
garrytan Nov 23, 2026
50204fd
Release check's docs-audit tests accept /ship's step for a stopped do…
garrytan Nov 23, 2026
8751b38
Publish the test of /ship's review panel against two plain reads (GST…
garrytan Nov 23, 2026
261f380
A green CI run now counts for your branch when only main moved under …
garrytan Nov 23, 2026
71c5e34
v1.103.0.0 Release v1.103.0.0: /verify becomes /build-check, plus sec…
garrytan Nov 23, 2026
8143a91
Write up a failed or shelved attempt before closing it (GST-3576) (#4…
garrytan Nov 23, 2026
af6deb9
/cso reports every security finding the code supports instead of drop…
garrytan Nov 23, 2026
45b48f1
Add a test that stops /ship from gaining refusals without a stated re…
garrytan Nov 23, 2026
a3ecfd5
/cso searches the whole repository in one call with a hard time limit…
garrytan Nov 23, 2026
c4cfe6d
gstack-upgrade works again after you disable skills (#4704) (#4743)
garrytan Nov 23, 2026
1cb0a3e
/ship reviews fixes with full rounds instead of narrow re-checks (GST…
garrytan Nov 23, 2026
cb06a6d
Refresh this week's recorded test times so the free test suite splits…
garrytan Nov 23, 2026
b5eb401
Fix three intermittent test failures: large developer profiles, a doc…
garrytan Nov 23, 2026
0d6cc1b
Stop false phone-number holds on /ship run ids and name interactive /…
garrytan Nov 23, 2026
100e109
Clearer errors for GitHub email-privacy pushes, approval refusals and…
garrytan Nov 23, 2026
a256d15
The /cso release check accepts the low-confidence hypotheses /cso now…
garrytan Nov 23, 2026
aab606e
Run Free Tests shards on 8-core runners again to cut CI cost (#4749)
garrytan Nov 23, 2026
78ee296
Stop false card-number holds on /ship run ids in PR bodies (#4751)
garrytan Nov 24, 2026
1cb381b
Landing a PR reuses an earlier CI run on the same merged code instead…
garrytan Nov 24, 2026
40986b7
make-pdf: quotes in alt text, titles and raw HTML can no longer add s…
garrytan Nov 24, 2026
e78a1bf
First versions open with the owner's own words, and the try-it check …
garrytan Nov 24, 2026
6ef3861
/ship counts a clean base merge as reviewed (GST-3562) (#4754)
garrytan Nov 24, 2026
7c321ff
A land that waits on an earlier CI run decides on what that run did, …
garrytan Nov 24, 2026
84b4eab
A first version's public copy keeps out the owner's short quotes, and…
garrytan Nov 24, 2026
6b7714c
/ship catches a file-mode change from main on files whose names start…
garrytan Nov 24, 2026
f3a89d2
A first version's public copy keeps out a short owner quote padded wi…
garrytan Nov 24, 2026
bb6d13e
A first version's public copy catches a short owner quote whose paddi…
garrytan Nov 24, 2026
8b68498
v1.103.1.0 release (#4780)
garrytan Nov 24, 2026
0603c27
/ship instructions match the new review rules (GST-3562) (#4779)
garrytan Nov 24, 2026
a9c746f
Show the weekly benchmark in every stable release plan, ready to hold…
garrytan Nov 24, 2026
c2e6187
A small second review round checks the fix again (#4781)
garrytan Nov 24, 2026
c34b967
Weekly benchmark records can't slip text into the release log or lose…
garrytan Nov 24, 2026
7deee42
After a fix, the second review round is always a full review (#4783)
garrytan Nov 24, 2026
2e2c3d7
Merge remote-tracking branch 'origin/main' into sync/upstream-b70224385
Nov 24, 2026
f47d0da
chore: merge fork main and upstream garrytan/gstack 7deee4292 (CHE-7528)
Nov 24, 2026
41a3f15
Mirror upstream's free-suite apt cache steps into the fork workflow (…
Nov 24, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
45 changes: 45 additions & 0 deletions .github/workflows/codex-hooks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Codex hooks

# A real Codex CLI reads the hooks.json gstack writes (GST-3172). Codex 0.170
# skips the whole file when it holds a key it does not know, which would also
# switch off the user's own hooks, so the free check runs against the real
# binary: test/codex-hooks-real-codex.test.ts points Codex at a closed local
# port, so its hooks fire and no model is called. Secretless: no API key, and
# GSTACK_REQUIRE_CODEX=1 makes a missing codex fail instead of skipping.

on:
pull_request:
branches: [main]
paths:
- bin/gstack-settings-hook
- hosts/codex/hooks/**
- hosts/claude/hooks/skill-route-hook.ts
- hosts/claude/hooks/destructive-guard-hook.ts
- lib/skill-route.ts
- test/codex-hooks-real-codex.test.ts
- .github/workflows/codex-hooks.yml
workflow_dispatch:

permissions:
contents: read

jobs:
real-codex:
name: Real Codex reads gstack's hooks.json
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.4.2
- name: Install dependencies
run: bun install --frozen-lockfile --ignore-scripts
- name: Install the Codex CLI the hooks are tested on
run: npm install -g @openai/codex@0.170.0 && codex --version
- name: Codex runs the merged hooks.json (no model call)
env:
GSTACK_REQUIRE_CODEX: "1"
run: bun test test/codex-hooks-real-codex.test.ts
71 changes: 62 additions & 9 deletions .github/workflows/fork-free-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,32 @@ jobs:
path: ~/.cache/ms-playwright
key: linux-playwright-chromium-${{ steps.playwright.outputs.version }}

# --with-deps fetches about 38 MB of system packages from archive.ubuntu.com
# on every run. On 2026-11-19 that mirror served some runners at 85 to
# 280 kB/s: 17 of 456 first attempts hit the 5-minute limit, and each
# retry then died in seconds on the dpkg lock that the killed attempt's
# apt-get still held (run 44485949701). apt now waits for that lock, and
# the packages one run downloads are cached under a key made from the
# runner's installed package list and the Playwright version, so a later
# run on the same image installs them with dpkg and never touches the mirror.
- name: Make apt wait for its lock and keep the packages it downloads
run: printf 'DPkg::Lock::Timeout "240";\nAPT::Keep-Downloaded-Packages "true";\nBinary::apt::APT::Keep-Downloaded-Packages "true";\n' | sudo tee /etc/apt/apt.conf.d/90gstack-ci > /dev/null
- name: Fingerprint the runner's installed system packages
id: apt_base
env:
PLAYWRIGHT_VERSION: ${{ steps.playwright.outputs.version }}
run: echo "cache_key=linux-apt-debs-$(dpkg-query -W -f='${binary:Package}=${Version}\n' | sha256sum | cut -c1-16)-playwright-$PLAYWRIGHT_VERSION" >> "$GITHUB_OUTPUT"
- name: Restore the system packages an earlier run downloaded
id: apt_cache
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6
with:
path: ~/.cache/gstack-apt-debs
key: ${{ steps.apt_base.outputs.cache_key }}
- name: Install the cached system packages without the network
id: apt_offline
if: steps.apt_cache.outputs.cache-hit == 'true'
continue-on-error: true
run: sudo dpkg -i "$HOME"/.cache/gstack-apt-debs/*.deb
# The cache restores the browser; --with-deps still runs apt for system
# libraries. On 2026-10-21 apt stalled on an archive.ubuntu.com fetch and
# held free-suite (12) for the whole 20-minute job timeout (run
Expand All @@ -137,20 +163,32 @@ jobs:
id: playwright_install
timeout-minutes: 5
continue-on-error: true
env:
SYSTEM_PACKAGES: ${{ steps.apt_offline.outcome }}
run: |
# Wait for a held apt/dpkg lock instead of failing at once (exit 100
# when a timed-out first attempt still holds it; CHE-9158).
echo 'DPkg::Lock::Timeout "180";' | sudo tee /etc/apt/apt.conf.d/99-lock-timeout > /dev/null
npx playwright install --with-deps chromium
if [ "$SYSTEM_PACKAGES" = success ]; then
npx playwright install chromium
else
# Wait for a held apt/dpkg lock instead of failing at once (exit 100
# when a timed-out first attempt still holds it; CHE-9158).
echo 'DPkg::Lock::Timeout "180";' | sudo tee /etc/apt/apt.conf.d/99-lock-timeout > /dev/null
npx playwright install --with-deps chromium
fi

- name: Retry the Playwright Chromium install once
if: steps.playwright_install.outcome == 'failure'
timeout-minutes: 5
env:
SYSTEM_PACKAGES: ${{ steps.apt_offline.outcome }}
run: |
# Wait for a held apt/dpkg lock instead of failing at once (exit 100
# when a timed-out first attempt still holds it; CHE-9158).
echo 'DPkg::Lock::Timeout "180";' | sudo tee /etc/apt/apt.conf.d/99-lock-timeout > /dev/null
npx playwright install --with-deps chromium
if [ "$SYSTEM_PACKAGES" = success ]; then
npx playwright install chromium
else
# Wait for a held apt/dpkg lock instead of failing at once (exit 100
# when a timed-out first attempt still holds it; CHE-9158).
echo 'DPkg::Lock::Timeout "180";' | sudo tee /etc/apt/apt.conf.d/99-lock-timeout > /dev/null
npx playwright install --with-deps chromium
fi

- name: Configure the bundled Chromium sandbox helper
run: |
Expand Down Expand Up @@ -195,6 +233,21 @@ jobs:
# skip instead of running.
- name: Install Xvfb + X11 utilities + gate tools
run: sudo apt-get install -y --no-install-recommends xvfb x11-utils poppler-utils fonts-noto-color-emoji zsh
- name: Keep the system packages this run downloaded
id: apt_keep
if: steps.apt_cache.outputs.cache-hit != 'true'
run: |
mkdir -p ~/.cache/gstack-apt-debs
if compgen -G '/var/cache/apt/archives/*.deb' > /dev/null; then
cp /var/cache/apt/archives/*.deb ~/.cache/gstack-apt-debs/
echo "save=true" >> "$GITHUB_OUTPUT"
fi
- name: Save the system packages for the next run on this image
if: steps.apt_keep.outputs.save == 'true'
uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6
with:
path: ~/.cache/gstack-apt-debs
key: ${{ steps.apt_cache.outputs.cache-primary-key }}

- name: Configure git identity (tests init temp repos)
run: |
Expand Down Expand Up @@ -275,7 +328,7 @@ jobs:
if-no-files-found: error

# bun's JUnit report from every child of this shard, the flaky retry
# included. Only trunk-flaky-tests reads it; no verdict does.
# included. Only trunk-flaky-tests.yml reads it; no verdict does.
- name: Upload shard JUnit reports
if: always()
timeout-minutes: 3
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/free-durations-record.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,12 @@ jobs:
fi
cp "$RUNNER_TEMP/linux/free-test-durations.json" scripts/free-test-durations.json
cp "$RUNNER_TEMP/windows/free-test-durations-windows.json" scripts/free-test-durations-windows.json
# New files over the 60 s ceiling become annotated exceptions naming
# this recording, and files back under it leave the allowlist, so the
# seed PR passes the ratchet without a maintainer edit (GST-3303).
allowlist=$(bun --no-env-file --config=/dev/null run scripts/free-seed-allowlist.ts --reconcile --recording "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID")
if [ -n "$allowlist" ]; then allowlist_line=$(printf '%s\n' "$allowlist" | paste -sd, - | sed 's/,/, /g'); else allowlist_line=unchanged; fi
echo "Seed allowlist: $allowlist_line" | tee -a "$GITHUB_STEP_SUMMARY"
if ratchet=$(GSTACK_FREE_SEED_BASE="$(git rev-parse HEAD)" bun test test/free-seed-ratchet.test.ts 2>&1); then
ratchet_line="passes"
else
Expand All @@ -163,7 +169,7 @@ jobs:
git switch -C "$branch"
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
git add scripts/free-test-durations.json scripts/free-test-durations-windows.json
git add scripts/free-test-durations.json scripts/free-test-durations-windows.json scripts/free-test-seed-allowlist.json
git commit -m "$subject"
git push --force-with-lease="refs/heads/$branch:$remote_head" origin "HEAD:refs/heads/$branch"
cat > pr-body.md <<EOF
Expand All @@ -172,6 +178,7 @@ jobs:
- Linux seed (ubicloud-standard-8): +$linux_added / -$linux_removed files
- Windows seed (windows-latest): +$windows_added / -$windows_removed files
- Files that failed while recording (durations kept; this PR's own free checks decide): $failed_line
- Seed allowlist (each new file over 60 s is admitted with a todo to split it; files back under 60 s leave): $allowlist_line
- Seed growth ratchet (60 s ceiling, shrink-only allowlist): $ratchet_line

Data only. This run dispatched Free Tests (the required free-tests check), Windows Smoke and Quality gate on this branch; those are this PR's checks. The pull_request runs wait as "action required" because a token-opened PR never starts them without approval. Stamp and merge per docs/ship-policy.md; the stamp push runs the full PR checks.
Expand Down
Loading
Loading