Skip to content

Skipped quarantined tests fail the run, and the upgrade snooze sticks for git installs (GST-3344) - #4590

Merged
capy-ai[bot] merged 4 commits into
mainfrom
fix-quarantine-skip-snooze-browse-models
Nov 21, 2026
Merged

capy-ai[bot] merged 4 commits into
mainfrom
fix-quarantine-skip-snooze-browse-models

Conversation

@garrytan

@garrytan garrytan commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

A quarantined test that the runner skipped now fails the run, and "Not now" on the upgrade prompt now lasts its full snooze on git installs.
Why: four outside reports showed a false pass, a snooze that came back after two hours, a model check that ignored config.toml, and two $B rules missing from /browse.
Nothing to do.

What changed
Tests
Why

Each item is a reported bug where gstack said something that was not true. A run reported green with a test that never ran, a reminder that came back early, a model check that said no model was set when one was, and /browse leaving out two rules that make $B fail.

Blast radius

lib/flaky-run.ts only changes the verdict for quarantined tests whose deciding attempt was a skip; non-quarantined tests and quarantined tests that ran are unchanged (quarantine.test.ts, 32 pass). The model-policy change touches gstack-models only when custom Codex routing is detected (lib/model-policy.ts:569), and the other caller in scripts/resolve-codex-generation-model.ts keeps its own behavior; the generated browse/SKILL.md and gstack-upgrade/SKILL.md were regenerated and pass the size budget and parity checks.

Test Coverage

All new code paths have test coverage (7 of 7). Tests: 1841 → 1842 (+1 new, the malformed config.toml case). The 4-field snooze test runs in CI only; it times out on the 4-core ship machine, as the rest of its file does on clean main.

Tests ran: focused 77
Tests ran: free 1722 files (CI run 44879023867)

Pre-Landing Review

One finding, fixed before merge (security finding, details recorded privately). The fix check, the adversarial read and the second-model review found nothing at the blocking floor; their notes are below. Second-model review (GPT-6.1 Sol): clean.

Review notes

Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.

  • INFORMATIONAL lib/model-policy-cli.ts:331 The wrapped error's cause already ends with CODEX_MODEL_REPAIR and repair repeats it, so text output prints the repair sentence twice. Output is correct, only duplicated.
  • INFORMATIONAL lib/flaky-run.ts:301 A quarantined test that Bun filtered out with -t (or a skipIf(win32) quarantined test on Windows) now counts as quarantined-fail: gstack-flaky exits 1 and the recorded failure resets its clean streak. No CI job runs gstack-flaky; matches the existing missing-test rule. Medium, Blocks: no, INVESTIGATE (policy call).
  • INFORMATIONAL gstack-upgrade/SKILL.md.tmpl:60 If an agent pastes only the version instead of the whole line, awk $(3) is empty and the snooze file is unreadable, so the reminder keeps returning (the old {new} habit). Low, Blocks: no.
  • INFORMATIONAL lib/model-policy-cli.ts:325 gstack-models resolve uses kind exec, so with review_model set in config.toml it displays model where gstack-codex-probe role-ready review would pick review_model. Display only. Low, Blocks: no.
Issues

Refs #4491
Refs #4550
Refs #4557
Refs #4558
Refs #4561

Documentation

Status: updated. One factual doc fix; no blockers.

Scope: base 41729a0 to head 797e3d4 (3 commits, 14 files); no staged, unstaged or new files. Changes: quarantined tests skipped on the final attempt now fail (lib/flaky-run.ts), the upgrade snooze keys on the whole UPGRADE_AVAILABLE line, gstack-models reads a custom Codex provider's config.toml model, and /browse notes on $B eval and per-git-root daemons.

Documentation health

  • docs/model-policy.md: Updated (added gstack-models resolve and list to the commands that share the custom-provider plan-review selection).
  • docs/flaky.md: Current (already updated on this branch for skipped quarantined tests).
  • docs/troubleshooting.md: Current.
  • browse/SKILL.md.tmpl: Current (edited on this branch).
  • gstack-upgrade/SKILL.md.tmpl: Current (edited on this branch).

Coverage debt: no new public surface without reference docs. Diagram drift: none.

Agent notes

GST-3344 batch C, PR 1 of 2 (items 1, 2, 3 and 8). Outside code: #4551's diff was read as text only and not carried over, so there is no Co-authored-by trailer. Pre-ship repair: CI's skill size budget failed at 38c079b; the snooze note was shortened (c531096). Paid evals skipped: the selector wanted about 110 behavior cases, over this PR's $10 cap. Before/after pictures omitted (text only).

Approvals

No approvals recorded for branch fix-quarantine-skip-snooze-browse-models.
Plan: exempt: bug fix (bug fixes skip plan review, R4)

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

{
  "schema_version": 1,
  "pr": 4590,
  "head": "d1f36f498e493cee5395991fa416b30f055012ad",
  "version": "1.102.1.0",
  "base": "main",
  "gate": {
    "focused": {
      "pass": 77,
      "fail": 0,
      "skip": 0
    },
    "free": {
      "pass": 1722,
      "fail": 0,
      "skip": 0
    }
  },
  "ci_carried": [
    {
      "lane": "free",
      "run": 44879023867,
      "attempt": 1,
      "tree": "aaea5c00e2d08230b90ed67dff21e63b9b9f5004"
    }
  ],
  "calls": 26,
  "session_kind": "unattended",
  "run": "/home/user/.capy/work/ship-4590",
  "head_tree": "aaea5c00e2d08230b90ed67dff21e63b9b9f5004",
  "product_patch_id": "f188aaa4cf43d5793ed08f42bc4aecdd7323e429",
  "gstack_version": "1.102.1.0",
  "review_depth": {
    "depth": "light",
    "class": "code",
    "runtime_lines": 171,
    "rules": "85b3923b1a978e41",
    "base": "ebc867422e9c9e059657ee16d424f22e414a5e90",
    "registry": "ebc867422e9c9e059657ee16d424f22e414a5e90",
    "gate_scan": {
      "tagged": 0,
      "head": "d1f36f498e493cee5395991fa416b30f055012ad"
    },
    "reasons": [
      "runtime=171"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @aaea5c00e2d0 (8 checks, current for d1f36f498e49)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/44879023867/attempts/1",
    "windows-smoke.yml/windows-smoke: https://github.com/garrytan/gstack/actions/runs/44878505822/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=aaea5c00e2d0 tests=38621 skipped=104 runs=44879023867/1 profiles=ci-reuse/free-tests heads=d1f36f498e49 verified=2026-11-21T07:17:58.187Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [
      4491,
      4550,
      4557,
      4558,
      4561
    ],
    "flakes": []
  },
  "docs": {
    "status": "updated",
    "scope": "docs/, README.md, CONTRIBUTING.md, browse/SKILL.md.tmpl, gstack-upgrade/SKILL.md.tmpl"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 4,
    "fixed": 1,
    "scope": "frozen",
    "fix_checks": 1,
    "rounds": 2,
    "ledgers_read": 3,
    "unbound": 1,
    "dispatches": {
      "specialist": 3,
      "red-team": 1
    }
  },
  "gate_dispositions": []
}

Open in Capy

… for git installs (GST-3344)

A quarantined test the runner skipped now fails the run (#4550), the upgrade
snooze snippet keys on the field the update check reads (#4561), gstack-models
reads a custom Codex provider's config.toml model (#4491), and /browse states
the eval path and per-git-root daemon rules (#4557, #4558).

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

trunk-io Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 3 commits November 21, 2026 06:28
The snooze note grew the generated gstack-upgrade/SKILL.md past its 1.5x size budget (24306 > 24115 bytes), failing the quick free tier. Shorten the note; the snippet itself now picks the field.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
gstack-models resolve and list report an unreadable or malformed Codex config.toml model as a structured error again, instead of crashing.

Review-Finding: p1/specialist-batched#1 reader=red-team
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…commands that share the custom Codex model selection

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot merged commit e096fa8 into main Nov 21, 2026
83 checks passed
@garrytan garrytan mentioned this pull request Nov 21, 2026
capy-ai Bot added a commit that referenced this pull request Nov 21, 2026
- Habits from nine teams, written into gstack. (#4585)
- Three more habits from teams that run evals. (#4602)
- The /ship conductor trial plan gives its real-problem judge one more attempt on fresh labels after it missed its agreement bar twice, and stops the trial incomplete if it misses again (GST-3003). (#4611)
- The /ship conductor trial plan now stops a trial only at the final remote-gate refusal, gives both arms the same note that the brief overrides team rules, and counts every report the no-gstack arm returns (GST-3003). (#4609)
- The /ship conductor trial plan now ends a trial at the remote gate when its case base isn't main, gives the no-gstack arm a test runner, and audits every trial for exposure to the plan (GST-3003). (#4605)
- The /ship conductor trial plan now runs an uncounted pilot in every arm before its counted trials and takes one planned look at half the cases (GST-3003). (#4587)
- gstack's own use on Capy can be counted, and is kept out of real-use numbers. (#4576)
- Free Tests shards finish closer together. (#4578)
- The weekly test-time recording can land again on its own. (#4581)
- The job-log tree.json step's recommended sleep is long enough for real runners. (#4589)
- Pull requests no longer wait on the Trunk flaky-test upload, and the quick tier's flaky passes now reach Trunk. (#4579)
- Windows Setup E2E finishes sooner on install changes. (#4575)
- Skills no longer stop on Codex when they clean up temp files. (#4612)
- /review on Codex with OpenAI models no longer holds back a review that ran its adversarial pass. (#4622)
- Crew threads on Capy now check in at 500M own tokens, standing threads rotate at 250M and any subagent past 50M gets a look, half the old lines, because Capy's token counts read about half what they did before 2026-11-15. (#4582)
- gstack no longer offers to add a `## Skill routing` section to your project's CLAUDE.md. (#4629)
- The README and docs no longer say gstack makes your agent fix more bugs. (#4598)
- `/eval-plan` now writes eval plans that waste less money. (#4591)
- /cso checks every folder above a source file before it looks at the file, so it never looks through a symlinked folder. (#4592)
- Plan reviews no longer read a /design-review audit summary as the branch's design doc. (#4623)
- Node's built-in test files now run with `node --test` in repos that use vitest or jest. (#4626)
- A quarantined test that the runner skipped now fails the run instead of passing it. (#4590)
- A flaky free test is fixed: the spawnSync overflow check no longer fails about once an hour on CI. (#4613)
- Free Tests runs its shards on 16-core runners. (#4600)
- /office-hours asks for ground truth first. (#4468)
- Every startup session ends with a dated test. (#4468)
- /plan-tune's dream cycle now logs each send of your typed answers to Anthropic. (#4621)
- Landing a ready PR no longer depends on a hand-copied gate decision, and the ready note, release PR and squash message say the right thing. (#4596)
- /ship no longer asks for a fresh review because of a stacked parent that main already had. (#4580)
- Results PRs with large captured agent sessions can be reviewed. (#4574)
- /ship no longer stalls on review notes a reviewer already cleared, counts review rounds the way the review policy reads them, and keeps security findings out of the PR body. (#4595)
- /ship's review readers are now told never to stop processes they didn't start. (#4607)
- /ship's review no longer stops when Capy's own drive sync database grows past 100 MB. (#4606)
- /ship's preflight now honors your repository's time limit for rerunning CI-skipped tests, and tells you when a fresh worktree needs its packages installed. (#4608)
- The slowest free test file is now six files. (#4588)
- Step 11.5 keeps a reviewed head current across base-only merges. (#4577)
- On a Capy install, only the owner's opt-in sends telemetry. (#4597)
- New page: working across agent systems. (#4583)

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