Repository navigation
v1.91.280.0 fix(flaky): ubi-runner quota wait counts down; pregate TERM teardown and design-lint linearity measure what they mean (GSTA-128) - #3517
Merged
Conversation
…M teardown and design-lint linearity checks measure what they mean (GSTA-128) Daily flaky pass, free-tier timing entries from the 2026-10-27 ledger. - test/ubicloud-runner.test.ts quota case (Free Tests 40474956830, 40480063084, 40488875742): quota_preflight pinned a wall-clock deadline before its first usage call, so a slow fake-CLI spawn on a loaded runner shaved the printed budget to "waiting up to 2s more". The budget now counts seconds spent waiting for room; usage reads between sleeps no longer eat it. Loaded local loop: 8/12 and 6/12 green before, 12/12 after. - test/ubicloud-pregate-remote.test.ts TERM teardown (40487321907 shard 13): the stub's `>>` creates the .down file before echo writes the line, and the test polled the inode, then read "". Both teardown waits now wait for the written line. - test/design-lint-fifth-cycle.test.ts tracked-caps linearity (40494745147 shard 15): the 8000-label run was timed once by wall clock on a shared runner (515 ms against the 500 ms floor). It now measures the lint's own CPU time, fastest of three runs, against the same unchanged bound. - The hung-setup watchdog assertion now carries the runner's stderr, so its next red names the cause (one unexplained exit 2 in 46 local runs). Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
… the free-tier timing repairs (GSTA-128) The existing WAIT=3 quota case passes under both the old wall-clock deadline and the new countdown because its fake usage read is instant. The new case slows the usage read to 1.2 s and asserts the printed 2 s budget (origin/main prints 1 s), then stubs sleep for a 70 s wait to see the 30 s steps and the release when the peer VM disappears. /ship Step 13 adds the [Unreleased] CHANGELOG entry; the train re-heads it at the slot. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…n elapsed wall time (GSTA-128) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… base=origin/main@b3e94a3 policy=base origin/main@b3e94a3f8d1c:.gstack/ship-policy.json) STAMP_VERSION: 1.91.280.0 stage version: done (wrote 1.91.280.0) stage release_tool: done (bun scripts/gen-agents-digest.ts) stage changelog: done (Unreleased -> 1.91.280.0) stage stamp_paths: skipped (no tentative mention newer than the fork version 1.91.277.0 and none of base 1.91.279.0 on a line this branch added) stage mirror: skipped (no mirror in policy) stage apply: done (4 file(s)) FILES: CHANGELOG.md VERSION agents-digest/gstack-AGENTS.md package.json MERGE_CONDITION: sha=a755d3155d0921b05b9ca350710ef6724658376c GSTACK_RESULT: skill=restamp status=complete run=/workspace/gstack/.gstack/tmp/restamp-journal.json Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
garrytan
added a commit
that referenced
this pull request
Oct 27, 2026
…erged tree The review-army small-diff clause (+5 union bytes) lands on a main that sat 4 bytes under the ship cap after #3515 and #3517: 328,932 -> 328,937 / 187,706 = 1.7524 both ways at four places, so the pin moves one in the last place. GStack Minder's rule 19 grant for #3516 after train 26 free run 40556676971 failed test/parity-suite.test.ts. Before/after and the reason are in the CHANGELOG entry. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
10 tasks done
capy-ai Bot
added a commit
that referenced
this pull request
Oct 27, 2026
…loor focus picker and the judged review/plan-review prose (GSTA-128) (#3516) * fix(flaky): repair the five paid gate detectors and the judged review/plan-review prose (GSTA-128) Daily flaky pass over the 2026-10-27 Open ledger entries, paid cases first. - ship-docsync-store (40458489644, 40477638211): docsync-observer admitted only `git branch --show-current`; both captured parents' fourth call was a read ending in `git branch -a`. Operand-free branch listings are now part of the read grammar. - ship-docsync-completion (40465691803): the parent ran two /document-release dispatches and wrote the accepted second section into the report while the case compared the first. The contract now follows the last foreground dispatch. - ship-local-hook-preservation (40467320097): the red reply delegated the guard to the repo owner ("have someone wire the guard in by hand"); toUser now reads a determiner-led phrasal object and owner/maintainer/someone + themselves. - plan-design-finding-floor (x2): the pending menu asked to cover all 7 dimensions without the word "focus"; the picker now reads that question shape. - Judge cases: plan-review headers no longer offer a "(or unverified)" branch the four-mode preflight can never print; /review's Scope Check is emitted in Step 3 after the full diff read; the small-diff rule and the specialists record agree on State Machines; Step 5.8.2 names which post-fix rerun rule governs. Nearby prose tightened so review, ship and plan-eng-review stay at their parity caps; shrunk size pins lowered per the guard's own instruction. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * test(plan-review): expect the renamed routing row ('Any other mode') in the Eng provider case The GSTA-128 prose repair renamed the plan-review routing row from 'other preflight mode, including harness mismatch' to 'Any other mode (not_installed, under_current_harness)'; test/plan-review-cases.test.ts:657 still asserted the old text and failed quick-bun-default on #3516 (run 40524518937). Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * test(eval-select): register the three new free fixtures in FREE_FIXTURES eval: select reported docsync-branch-listing-public.json, docsync-two-attempts-public.json and design-floor-focus-cover-all.json as unknown dependencies (needs touchfile entry) and fell back to the full gate on that alone. Each is read only by a free test, so they belong in FREE_FIXTURES beside their siblings. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix(review): pre-landing review fixes for the paid flaky-case repairs Pass 1 of /ship's review loop on #3516 (core, four specialists, native and outside adversarial, Red Team). Fixed in the diff: - test/skill-e2e-ship-docsync.test.ts: the two-attempt retained-edit filter dropped a path from changedPaths even when the accepted contract's files_updated claimed it, so an honest re-audit that re-edits the same document read as 'unreported edits'. acceptedChangedPaths() in test/helpers/docsync-contract.ts keeps a retained path the accepted contract claims; the free replay proves the old filter red on that shape. - test/helpers/ship-hook-actor.ts: the owner+reflexive manual-integration arm credited a denial ('so the owner does not have to do it themselves') or a first-person claim. ownersOwnHand() requires a hook noun, rejects a negation before the reflexive and a first-person subject; probes added. - scripts/resolvers/plan-gates.ts + review/sections/manifest.json: the no-plan path still said 'Emit Step 1.5's Scope Check once' and the STOP trigger 'finishing Step 1.5's Scope Check', the circular prerequisite gate 40454750574 flagged, on the path most reviews take. Both now point at Step 3 ('Step 3 emits the Scope Check once without plan fields'; 'Before leaving Step 1.5'). - review/SKILL.md.tmpl: Step 3 item 5 emits the Scope Check on the first pass only (a fix-range repeat pass reads a partial diff by construction); two prose tightenings keep the review skeleton under its pins, which are lowered by 3 on the eight pinned hosts. - test/helpers/docsync-interface.ts: the declared branch-listing class now enumerates the exact flag set DOCS_BRANCH_LIST_FLAGS accepts. Coverage audit (Step 7) tests: plan-review and doc-review run headers admit only the CODEX_MODE values their preflight prints (test/outside-voice-preflight.test.ts); the final Scope Check is emitted once in Step 3 and every owner names that point, no-plan path and STOP trigger included (test/review-workflow-clarity.test.ts). Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix(ship-hook-actor): read the owner's denial in the owner's own clause Review pass 2 on #3516 (State Machines, with the same site flagged by every other reviewer): the pass-1 negation guard in ownersOwnHand() scanned the whole sentence prefix before the reflexive, so an honest request after a negated subordinate clause ("Since the installer did not run, the repo owner needs to add the guard to the existing hooks themselves") was refused, a recall regression against ee73419 that would red the paid ship-local-hook-preservation case. The guard now reads the clause from the last owner noun to the reflexive, and its contraction alternative matches "doesn't"/"won't" (the pass-1 form sat behind a word boundary and never matched). Three credited and two refused probes added; the credited ones fail on the pass-1 helper. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * docs(changelog): [Unreleased] entry for the GSTA-128 paid flaky-case repairs Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * docs(changelog): count the four repaired gate detectors, not five Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * test(parity): re-pin ship maxSizeRatio 1.7524 -> 1.7525 on the main-merged tree The review-army small-diff clause (+5 union bytes) lands on a main that sat 4 bytes under the ship cap after #3515 and #3517: 328,932 -> 328,937 / 187,706 = 1.7524 both ways at four places, so the pin moves one in the last place. GStack Minder's rule 19 grant for #3516 after train 26 free run 40556676971 failed test/parity-suite.test.ts. Before/after and the reason are in the CHANGELOG entry. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * RESTAMP: 1.91.280.0 -> 1.91.281.0 (stamped; queue_mode=stamp-at-merge base=origin/main@703b004 policy=base origin/main@703b0049ebbe:.gstack/ship-policy.json) ship, next in queue at 1.91.281.0 STAMP_VERSION: 1.91.281.0 claims: ignored (stamp-at-merge) stage version: done (wrote 1.91.281.0) stage release_tool: done (bun scripts/gen-agents-digest.ts) stage changelog: done (Unreleased -> 1.91.281.0) stage stamp_paths: skipped (no tentative mention newer than the fork version 1.91.276.0 and none of base 1.91.280.0 on a line this branch added) stage mirror: skipped (no mirror in policy) stage apply: done (4 file(s)) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d8184d..4363f3d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## [Unreleased] +## [1.91.281.0] - 2026-10-27 **Four paid gate detectors stop judging honest transcripts red, and /review's Scope Check has one emission point.** The 2026-10-27 flaky pass (GSTA-128) read each red transcript and repaired the detector or the prose it judged, never the threshold. diff --git a/VERSION b/VERSION index 3d95d39..12d5f1c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.91.280.0 +1.91.281.0 diff --git a/agents-digest/gstack-AGENTS.md b/agents-digest/gstack-AGENTS.md index 15ac5e1..2b81219 100644 --- a/agents-digest/gstack-AGENTS.md +++ b/agents-digest/gstack-AGENTS.md @@ -1,4 +1,4 @@ -# gstack digest v1.91.280.0 — regenerate/re-copy after upgrading gstack +# gstack digest v1.91.281.0 — regenerate/re-copy after upgrading gstack Behavioral rules from gstack (https://github.com/garrytan/gstack), compressed for agent hosts without a full skill install. The full skills add workflows, diff --git a/node_modules b/node_modules new file mode 120000 index 000000000..858ae29 --- /dev/null +++ b/node_modules @@ -0,0 +1 @@ +/workspace/gstack/node_modules \ No newline at end of file diff --git a/package.json b/package.json index d0c1012..4a7a5d6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gstack", - "version": "1.91.280", + "version": "1.91.281", "description": "Garry's Stack — Claude Code skills + fast headless browser. One repo, one install, entire AI engineering workflow.", "license": "MIT", "type": "module", FILES: CHANGELOG.md VERSION agents-digest/gstack-AGENTS.md package.json MERGE_CONDITION: sha=d0ed2d938ef4c98352a53ea27ce3596824068568 next: NEW_VERSION=1.91.281.0; commit and push only the stamp diff above (FILES), with no edit of your own: the train's verify accepts the CHANGELOG only as the base's plus this PR's entry re-headed; merge with the expected head d0ed2d9 and recompute on a stale queue. GSTACK_RESULT: skill=restamp status=complete run=/workspace/gstack/.gstack/tmp/restamp-journal.json Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --------- Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
4 tasks done
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.
What changed
Before: the quota case under 8 busy loops at main 6ff98c6 and the CI excerpts of the other two. After: the same loop at this branch.
The new regression test (test/ubicloud-runner.test.ts, 'quota wait: a slow usage read does not shave the printed budget…') run against the origin/main 6ff98c6 runner and against this branch at a755d31.
Before/after as text: A usage read that takes 1.2 s: the origin/main runner spends the 2 s budget on the read and refuses without the full budget line, so the test fails; this branch keeps the printed 2 s budget and passes.
Daily flaky pass (GSTA-128), free-tier timing entries of
handoffs/flaky-ledger.md.scripts/ubicloud/ubi-runner.shquota wait (three Free Tests reds, serial retry passed each time):quota_preflightpinnedwait_untilto the wall clock before its firstcmd_usagecall, so a slow CLI spawn on a loaded runner shaved the printed budget to "waiting up to 2s more" where the test expects the full 3 s. The budget is now a countdown of seconds spent waiting for room; usage reads between sleeps do not eat it, andUBI_QUOTA_WAIT=0still refuses at once. Loaded local loop (8 busy loops on 4 cores): 8/12 and 6/12 green before, 12/12 after.test/ubicloud-pregate-remote.test.tsTERM teardown (train 23 head, shard 13): the stub's>>creates.downbeforeechowrites the line, and the test polledexistsSyncthen read "". Both teardown waits now wait for the written line itself.test/design-lint-fifth-cycle.test.tstracked-caps linearity (v1.91.276.0 feat(preamble): tier 2+ skills load the shared preamble once per session (GSTA-96) #3434 pin, shard 15): one wall-clock run of the 8000-label lint against the 500 ms floor on a shared runner (515.65 ms). The check now measures the lint's own CPU time, fastest of three runs, against the same unchanged bound; under load, single wall runs failed the 2.5× ratio twice in six while the CPU-time measure held every time.## [Unreleased]CHANGELOG entry; the test asserts on the runner's log line and sleep log, not on elapsed time.Why
"Free Tests red again on a test the PR did not touch, serial retry green": three free-tier cases timed or polled something other than what they assert, so loaded runners failed them while the product held. Each check now measures what it means (seconds slept, the written teardown line, the lint's own CPU time), so the daily flaky pass stops spending reruns on them. No ms bound, threshold or retry changed.
Verification
bun test test/design-lint-fifth-cycle.test.ts test/ubicloud-pregate-remote.test.ts test/ubicloud-runner.test.ts test/spawnsync-timeout-tripwire.test.ts: 68 pass (69 cases; the one watchdog red is the ledger's own open entry, 1 of 46 local runs, now self-diagnosing).bun run typecheck:test: 819 known diagnostics, none new.~/.capy/work/flaky/free-loop-before.outandfree-loop-after.outon the lane machine; quota 8/12 → 12/12, design 12/12 → 12/12 (and 12/12 on the CPU-time variant), pregate 12/12 → 12/12.Approvals
Source: gstack-approvals record for flaky-2026-10-27-free (display only; not an approval citation).
Blast radius
The one product change is
quota_preflightinscripts/ubicloud/ubi-runner.sh, read byupbefore every VM create and byscripts/ubicloud/pregate-remote.shthrough it; its callers see the same refusal text, the sameUBI_QUOTA_WAITvariable and the same 30 s step, and a wait can now run longer than the budget by the usage calls' duration. Rung reached: script ran (QA harness probes 001–004 against the function in isolation; the remote pregate ran the whole free tier through the changed runner twice, 9636 and 9593 tests, 0 failed).Summary
Three Free Tests reds that a serial retry always cleared were measurement defects in the tests and the quota wait, so the fix makes each check measure what it asserts; the quota wait now counts the seconds it actually sleeps. Themes: ubi-runner quota countdown, pregate TERM teardown wait, design-lint CPU-time linearity, a regression test for the countdown.
Test Coverage
The quota wait's 8 paths: 3 were tested at the base (refusal after the budget,
UBI_QUOTA_WAIT=0, the hidden-quota ceiling); the new countdown had none. 1 test written, 0 rejected by the authoring gate, 0 existing tests extended, 4 paths weakly covered (the release path throughupend to end, the quota-max cache refresh, the unknown-usage branch, the heartbeat interleave; each exercised by QA probes or the remote pregate, not by a unit assertion).Tests: 1501 test files before → 1501 after (+1 new test in an existing file).
Regression proof — fails at base (BASE_CONTROL exit=1, the "waiting up to 2s more" line never printed) · passes at HEAD a755d31 (the one case green, 10 expect() calls).
Tests ran: remote-pregate 9593
Tests ran: local-touched 32
Pre-Landing Review
No blocking issues found. REVIEW_LOOP: passes=2 blocking_found=0 deferred=0 noted=4 fixed=0 scope=frozen
Gate edits: 6 listed, 4 read, 0 findings — 0 kept, 0 restored, 0 open (2 unmatched: CHANGELOG.md, scripts/ubicloud/ubi-runner.sh; candidate 6ff98c6+0bd51b6bee2a).
Outside review: Codex unavailable in this harness; the two adversarial passes ran as Capy subagents (pass 1 three informational, pass 2 two informational, 0 CRITICAL); unverified coverage, listed as missing.
Review notes
Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.
test/design-lint-fifth-cycle.test.ts:41The linearity check now takes the fastest of three CPU-time runs against the unchanged bound max(2.5x, 500 ms). Measured here (lint-probe.ts): fastest CPU 173 ms at 4000 labels and 348 ms at 8000; a quadratic regression measures about 693 ms CPU, above the 500 ms floor, so the bound still catches it.scripts/ubicloud/ubi-runner.sh:409The quota budget now counts only the seconds slept, so the wall-clock wait can exceed UBI_QUOTA_WAIT by the usage calls' duration (QA capture 002: 6.0 s elapsed for a 3 s budget with 1 s usage calls). By design; the budget is room-waiting time.scripts/ubicloud/ubi-runner.sh:100The numeric check for UBI_QUOTA_WAIT (and IDLE_TIMEOUT, RUN_TIMEOUT, HEARTBEAT) accepts leading zeros such as 08, which bash arithmetic then reads as invalid octal; the old$(( ... + QUOTA_WAIT ))had the same behaviour. Pre-existing, outside the diff.scripts/ubicloud/ubi-runner.sh:336cmd_usage's mktemp -d is removed by rm -rf at the end of the function but not on an interrupt mid-call; a long quota wait calls it once per 30 s step. Pre-existing, outside the diff; low confidence.Exploratory QA
Surface: the
quota_preflightbash function (the one product change), probed in isolation with stubbedlog/die/cmd_usage(.gstack/qa-reports/ship-3517-run2, verdict pass, 4 probes, 39.2 s of guarded command time): full budget printed then refusal (3039 ms); slow 1 s usage reads keep the printed budget (6043 ms);UBI_QUOTA_WAIT=0refuses in 31 ms; room appearing mid-wait releases after one 30 s step (rc 0). No findings reproduced. The release path throughupis now covered by the new regression test; an earlier probe directory (ship-3517) is superseded by a harness defect in its poll count. The three test-only changes were exercised by their own files in the remote pregate.Design Review
No frontend files changed — design review skipped.
Eval Results
No prompt-related files changed — evals skipped.
Greptile Review
No Greptile comments.
Verification Results
Obligations executed: six green (touched tests 32/32 locally; typecheck; typecheck:test 819 known, none new; gen:skill-docs clean; remote pregate 9593/0 at tree a03c9cb0481b; sealed 0 findings), none red, none blocked, none not run. Pregate preflight warns, accepted: 3 MEDIUM pii secrets findings in added test lines (the fixture's RFC 5737 TEST-NET-1 address, already there at the base, and the ten-nines fake VM-name timestamp); the earlier PREGATE_TIMING_ASSERTION warn was fixed in a755d31 by dropping the elapsed-time assertion.
Documentation
Status: current. No documentation edits were needed.
Scope audited: the base-to-HEAD diff (
scripts/ubicloud/ubi-runner.shplus three test files), the unstagedCHANGELOG.mdandtest/ubicloud-runner.test.tsedits, and every doc that mentionsUBI_QUOTA_WAITor the quota preflight. No staged or new files. Thequota_preflightchange counts theUBI_QUOTA_WAITbudget down by seconds slept instead of a wall-clock deadline, so usage reads between sleeps no longer consume it. The variable name, the refusal text and the 30-second poll step are unchanged.Documentation health:
README.md Current (only names the quota preflight)
AGENTS.md Current
docs/PROJECT_STRUCTURE.md Current
docs/TESTING_INTERNALS.md Current (
UBI_QUOTA_WAIT=<seconds>waits for room instead)docs/skills.md Current
ubicloud/SKILL.md.tmpl Current
ubicloud/SKILL.md Current (generated; matches the template; no regeneration needed)
CHANGELOG.md Read only; the
[Unreleased]entry matches the diffTODOS.md Not touched
(VERSION row omitted)
Documentation coverage: every shipped surface (
UBI_QUOTA_WAITsemantics) has reference coverage indocs/TESTING_INTERNALS.md,docs/skills.mdandubicloud/SKILL.md, and a how-to in the Quota paragraph ofubicloud/SKILL.md. There is no coverage debt.Diagram drift: none.
Test plan
bun test test/ubicloud-runner.test.ts test/spawnsync-timeout-tripwire.test.ts: 32 pass, 0 failgstack-pregate --stage tests --remote --spend-cap 2 --timeout 2700 --allow-repo-commands(Ubicloud, whole free tier): PREGATE_REMOTE: tree=a03c9cb0481bc5d290a0c9df050a2621f0c3dc46 tests=9593 failed=0 spent=0.10bun run typecheck: 0 errors;bun run typecheck:test: 819 known diagnostics, none new;bun run gen:skill-docs: clean tree🤖 Generated with Claude Code