Skip to content

Keep a policy-floor test passing after gstack's version bump to 1.101 - #4495

Merged
capy-ai[bot] merged 1 commit into
mainfrom
test-policy-floor-next-above-version
Nov 18, 2026
Merged

capy-ai[bot] merged 1 commit into
mainfrom
test-policy-floor-next-above-version

Conversation

@garrytan

@garrytan garrytan commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

A policy-floor test assumed gstack's own version stays below the next minor after the newest policy key. The v1.101 release (#4493) reaches that number, so its CI fails; the test now checks a floor above both.
Why: this unblocks today's stable release, which carries a security fix (#4486) and four blocker fixes.
Nothing to do as a reader.

What changed

With VERSION at the release's number, the policy-floor test fails on main and passes on this branch

With VERSION at the release's number, the policy-floor test fails on main and passes on this branch.

Before/after as text: With VERSION at the release's number, the policy-floor test fails on main and passes on this branch
--- Before · before.txt · captured output
+++ After · after.txt · captured output
+$ VERSION at the release bun test test/policy-floor-stable.test.ts   # this branch (b036e5a)
+ 8 pass
+ 0 fail
+ 54 expect() calls
+Ran 8 tests across 1 file. [7.42s]
-$ VERSION at the release bun test test/policy-floor-stable.test.ts   # main (fda9dea)
- 7 pass
- 1 fail
- 53 expect() calls
-Ran 8 tests across 1 file. [11.21s]
 

The release PR's free test suite failed in test/policy-floor-stable.test.ts. The test builds a floor that no running copy of gstack meets and expects it to be refused, and it built that floor as one minor above the newest policy key. Once VERSION itself reached that minor, the floor was met and the check passed instead of refusing. The test now builds the floor one minor above whichever is newer, VERSION or the newest policy key, so it stays out of reach on every release.

Why

The v1.101 release PR (#4493) failed its free test suite on this one test, twice. The failure came from the test's own expectation, not from the product, so the release can go out once the test is fixed.

Blast radius

Only the test file and a changelog fragment change; no product code moves. The floor check the test exercises, validatePolicy in lib/ship-policy.ts, is unchanged, and the repro shows the old test fails 1 of 8 with VERSION at the release number while the new one passes 8 of 8 (script ran).

Pre-Landing Review

No issues found. One reader with the testing checklist read the whole diff (light depth, tests-only change).

Exploratory QA
  • Smoke: bun test test/policy-floor-stable.test.ts at this head: 8 pass, 0 fail.
  • Riskiest edge: the same file in a scratch copy of this head with VERSION set to the release number: 8 pass, 0 fail.
  • Negative control: the old test from main in that scratch copy: 7 pass, 1 fail, the failure this PR fixes.
    No checks were blocked or skipped.
Design Review

No frontend files changed — design review skipped.

Eval Results

No prompt-related files changed — evals skipped.

Review bot comments

No review bot comments.

Scope Drift

Scope Check: CLEAN
Intent: keep the policy-floor test passing once VERSION reaches the minor after the newest policy key.
Delivered: one test expression and a changelog fragment.

Plan Completion

Plan completion audit: not run (no plan is bound to this branch and no docs/designs/ file matches). Fix: add "Plan: " to the PR body, or run /autoplan.

Verification Results

No plan verification items: this is a bug fix with no plan. The checks under Exploratory QA cover the change.

TODOS

No TODO items completed in this PR.

Documentation

Status: current. No documentation changes were needed.

Scope: fda9dea..b036e5a (1 commit), with nothing staged, unstaged or untracked. Changed files: test/policy-floor-stable.test.ts (one expression: the next floor is now one minor above whichever is newer, the running VERSION or the newest policy key) and changelog.d/test-policy-floor-next-above-version.md.

Documentation health:

  • docs/pregate.md: Current (describes policy-floor behavior, which did not change)
  • docs/ship-policy.md: Current
  • docs/troubleshooting.md: Current
  • docs/CHANGELOG_STYLE.md and changelog.d/README.md: Current (the fragment meets their rules)
  • README.md, AGENTS.md, CONTRIBUTING.md: Current (not affected by a test-only change)

Coverage debt: none, because no new public surface shipped. Diagram drift: none.

Tests
  • bun test test/policy-floor-stable.test.ts: 8 pass, 0 fail at this head.
  • Free test suite: green in CI run 44342764831 at this exact tree (1,698 files).
Agent notes
  • Failure: free-suite (6) on v1.101.0.0 release #4493 at 6222431, test/policy-floor-stable.test.ts "an unstamped main checkout gets the verdict validatePolicy gives", failed twice (once in the runner's flaky retry).
  • Cause: next was the minor after the newest policy key (1.100 to 1.101), which equals the release's VERSION. Invalid test expectation, not a product defect.
  • Fix: next is the minor after the newer of VERSION and that key.

Approvals

No approvals recorded for branch test-policy-floor-next-above-version.
Plan: exempt: bug fix
Plan check: exempt bug fix

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

Open in Capy

{
  "schema_version": 1,
  "pr": 4495,
  "head": "b036e5a1bcc60ef9407835c88c4897ef29751a01",
  "version": "1.100.0.0",
  "base": "main",
  "gate": {
    "focused": {
      "pass": 8,
      "fail": 0,
      "skip": 0
    }
  },
  "ci_carried": [
    {
      "lane": "free",
      "run": 44342764831,
      "attempt": 1,
      "tree": "c8536591e937af78b66f195d53d343838dfe8519"
    }
  ],
  "calls": 13,
  "session_kind": "unattended",
  "run": "ship-4495",
  "head_tree": "c8536591e937af78b66f195d53d343838dfe8519",
  "product_patch_id": "none",
  "gstack_version": "1.100.0.0",
  "review_depth": {
    "depth": "light",
    "class": "tests",
    "runtime_lines": 0,
    "rules": "1afa38a4be3b5eef",
    "base": "fda9dea79f131d7731259b9275fc82c04387ca37",
    "registry": "fda9dea79f131d7731259b9275fc82c04387ca37",
    "gate_scan": {
      "tagged": 0,
      "head": "b036e5a1bcc60ef9407835c88c4897ef29751a01"
    },
    "reasons": [
      "runtime=0"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "pass @c8536591e937 (8 checks, current for b036e5a1bcc6)",
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "README.md, AGENTS.md, CLAUDE.md, CONTRIBUTING.md and docs/ (153 files) against the test-only diff fda9dea..b036e5a"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 0,
    "fixed": 0,
    "scope": "frozen",
    "rounds": 1,
    "ledgers_read": 2,
    "dispatches": {
      "specialist": 1
    }
  },
  "gate_dispositions": []
}

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

trunk-io Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

@capy-ai
capy-ai Bot merged commit 3610130 into main Nov 18, 2026
54 of 55 checks passed
@garrytan garrytan mentioned this pull request Nov 18, 2026
capy-ai Bot added a commit that referenced this pull request Nov 18, 2026
- A test, or a scratch repository in the temp directory, can no longer write approval rows into your real Capy Drive (GST-3027). (#4466)
- An unattended /autoplan run on Claude Code no longer says the publication guard is off while it is on. (#4481)
- A phase report written only in reasoning now gets a denial that says so and names the fix. (#4481)
- `gstack-autoplan revise` no longer refuses a plan that the first `next` accepted. (#4470)
- `revise --plan` with a different file now says the run follows that file. (#4470)
- A second-model plan review in `/autoplan` is no longer reported as unavailable when it actually ran (GST-3051). (#4471)
- The /ship conductor trial plan now lets case reverts that conflict with later code be resolved by hand in docs, tests and the planted file, so large pull requests can be cases (GST-3003). (#4460)
- A locked plan for a trial of /ship without its separate conductor subagent (GST-3003). (#4456)
- A driven /ship now runs each phase as one command, counts its calls, and stops itself at 100 minutes. (#4451)
- /ship stops asking owners to clear two kinds of bookkeeping noise: base-side merge text and a reviewer's confirmation prose. (#4458)
- A base merge that only touched base-side text no longer stops `/ship` finish for an owner's grant. (#4458)
- A reviewer's confirmation prose no longer becomes a Critical finding that only an owner can clear. (#4458)
- A CI run that passed only after its failed jobs were re-run is now marked wherever gstack reuses it. (#4473)
- /ship reuses CI's passing test run when merging the base changed no file, and stops instead of quietly starting hour-long test runs or reviewing an empty diff (GST-3019). (#4461)
- /ship on Codex no longer stops at the test coverage audit. (#4489)
- A cold first-use check before an app build reaches its owner (GST-3025). (#4465)
- `skill_prefix=true` now survives updates when gbrain is installed. (#4454)
- The OpenClaw docs no longer send you to ClawHub, which held only April 2026 builds of office-hours, ceo-review and retro and no longer has gstack skills (the docs also said four skills while listing three). (#4454)
- `gstack-issue-links` no longer reads other repositories' issues as gstack's. (#4454)
- /ship's pre-gate finds the tests of a monorepo app that imports through its own `@/` alias. (#4464)
- /office-hours explains why it recommends a mode. (#4450)
- /office-hours keeps its 34 founder videos and essays out of the skill file. (#4463)
- Two `gstack-owner-answers add` runs for the same answer no longer collide. (#4490)
- A Captain can check an ask against the owner's earlier answers before sending it. (#4467)
- `gstack-post` stops reading /ship's own receipt identifiers as phone numbers, so posting a /ship PR body no longer needs a confirm. (#4488)
- GitHub release notes now list every change in plain words, with a link to its pull request. (#4390)
- gstack's router no longer gives bug reports a special rule, so the model fixes a bug the way it would without gstack. (#4442)
- /ship's review plan now sorts Swift and Xcode files by risk instead of sending every iOS PR to the full review panel (GST-3041). (#4469)
- /ship's review plan now sends Swift code that touches private user data to the full review panel (GST-3052). (#4472)
- A round grant at /ship's review round cap now buys the fix round it names, in the same run or the next (GST-2968). (#4479)
- The secrets check stops flagging three kinds of ordinary code as a secret, and catches two misses. (#4457)
- A security finding's location and reason no longer go into a PR body. (#4486)
- The token-capped /ship child on Claude Code now starts its prompt with the typed `/ship` command, so the skill actually loads. (#4487)
- A /ship receipt now counts the second-model review's blocking findings, and refuses to be written while one is still open. (#4485)
- A `/ship` with a token cap on Claude Code no longer stops at its first handoff. (#4452)
- /ship's push step now always ends with one line that says whether it pushed (GST-3053). (#4474)
- A PR's review-round count can no longer be overwritten by the body `/ship` posts. (#4440)
- One queued record with a malformed path no longer stops artifacts sync for every project. (#4455)
- A failed artifacts push stays reported until a push succeeds. (#4455)
- The /sync-gbrain memory row no longer says OK when pages failed to import. (#4455)
- ### Tests (#4495)
- A policy-floor test no longer fails once gstack's own version reaches the minor after the newest policy key; it now checks a floor above both, so the v1.101.0.0 release can pass CI. (#4495)
- CI now uploads free-suite test results to Trunk with analytics-uploader v2.1.8 and analytics-cli 0.17.0, up from v2.1.6 and 0.16.2. (#4453)
- Packing a checkout for a Ubicloud run no longer fails when git beside it is rewriting a ref. (#4447)
- The /plan-ceo-review HOLD SCOPE eval no longer fails a review because its follow-up question didn't repeat the mode name. (#4447)
- Unattended /autoplan now records the owner's relayed gate reply instead of refusing it. (#4484)
- Unattended /autoplan now runs the second-model review you turned on, and waits for it instead of ending the session. (#4459)
- Two /autoplan runs started in the same second no longer share a run id. (#4459)

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