Repository navigation
v1.91.354.0 land-and-deploy: move the canary step into an on-demand section (skill diet, GSTA-161) - #3663
Merged
Conversation
Ten tasks written before any cut: happy path, a red required check with an --admin push (wrong-behavior control), a conflicting PR, an already-merged PR, a dirty checkout, the first-run dry run, deploy success, deploy failure (no revert), a canary URL with no browser, and a Render deploy hook that needs a dashboard step. seed.sh builds a tiny Bun library with a local bare remote; gh-stub.sh fakes PR #1, its checks, a real squash merge and the deploy run; check.sh asserts the end state from the remote and the gh log. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… on demand (GSTA-161) Step 7's canary script and health assessment, the Aside browser contract, the gstack-browser fallback and the Third-Party Web Actions contract move from the always-loaded SKILL.md into sections/canary.md, read at Step 7 when a URL is checked or before any browser step or third-party site action. The routing rules (SKIPPED without a browser, staging and production routes) stay in the skeleton. Shared resolvers are untouched. Skill-Diet: land-and-deploy Skill-Size: 107318→87590 bytes (loaded per session, confirmed run without a canary URL; SKILL.md 51992→32264) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…TA-161) The canary section drops its duplicated health checklist and long labels so the parity union stays under its 1.126 cap with the new pointer and index row. Carve guard: canary.md joins expectedSections and maxSkeletonBytes drops 52,682 -> 32,216. The codex and factory size pins go away: both hosts are now under 100,000 chars. The browser tripwire reads land-and-deploy's Aside contract from sections/canary.md, as it already does for qa. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…e the paid verdict (GSTA-161) The priced pilot (after arm) behaved correctly: it reported MERGED (UNVERIFIED) and 'URL check skipped' with no browser, but the pattern only accepted canary/health/browser before 'skipped'. Detector fix, the same for every arm, made before any before/after cell ran. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…fixtures (GSTA-161) The Deploy workflow runs bun publish, which refuses a private package, so deploy-ok's 'deploy works' scenario was not actually deployable and a careful run correctly held the merge. Variant-scoped: other tasks seed identical repos. 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>
|
😎 This pull request was merged. |
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.
What changed
Step 7 now routes to the on-demand canary section instead of carrying the canary script, browser setup and third-party rules inline.
Before/after as text: Step 7 now routes to the on-demand canary section instead of carrying the canary script, browser setup and third-party rules inline
Why
Garry asked for "95% of the outcome but with 50% of the token use", and land-and-deploy was one of the largest skills every session loads. The canary step only matters after a deploy, so its 15 KB of script and browser rules now load when the run reaches it (or a browser or third-party site action), not at the start of every run.
Blast radius
Only land-and-deploy's Claude Code render changes shape: Codex and Factory renders inline every section, and the shared resolvers (
{{THIRD_PARTY_ACTIONS}},{{ASIDE_SETUP}},{{BROWSE_FALLBACK}}) are untouched, so other skills render byte-identical. Evidence rung: script ran (gen:skill-docs and --host all leave no diff; 17,806 free tests pass on Ubicloud at this tree) plus a paid before/after run where every after-arm canary and render-hook trial readsections/canary.mdbefore acting.Approvals
No approvals recorded for branch gsta161/land-and-deploy-diet.
Summary
Step 7's canary script, the Third-Party Web Actions contract, the Aside setup and the browser fallback move from
land-and-deploy/SKILL.mdintosections/canary.md(registered in the manifest; the routing row and a STOP pointer stay in the skeleton).SKILL.mddrops from 51,992 to 32,216 bytes. A new 10-task eval suite undertest/fixtures/skill-evals/land-and-deploy/measured it: in a paid Opus 5.5 run (3 trials per arm), loaded skill bytes fell from 109,334 to 93,828 (-14%), the transcript-graded pass rate was 97% after, 80% before and 87% on a second before panel, and cost per session stayed flat ($0.601 to $0.603). The first run failed on deploy-ok because the fixture's"private": truemade its Deploy workflow unpublishable and the dieted skill correctly refused to merge; the fixture was fixed for the two deploy tasks and those tasks reran in every arm. Size, carve and Aside guards are re-pinned to the smaller skeleton.Test Coverage
Coverage: deterministic (each of 4 changed runtime files has a changed test naming it; no audit reader).
Tests ran: test 17806
Pre-Landing Review
No blocking issues. Four informational findings, noted and not fixed under the crew's rule that informational findings never start another review pass:
test/fixtures/skill-evals/land-and-deploy/check.sh:12(testing): STATE is hardcoded to$W/.gstack-homewhile seed.sh honorsGSTACK_STATE_ROOT; latent if a runner exports it.test/fixtures/skill-evals/land-and-deploy/gh-stub.sh:28(maintainability):autois set on--autobut never read.test/fixtures/skill-evals/land-and-deploy/check.sh:44(maintainability): theci-redcheck id is unused.land-and-deploy/SKILL.md.tmpl:329(red team): Step 7's "if browser access is unavailable, record SKIPPED" sentence comes before the STOP pointer tosections/canary.md, which now holds the readiness probe and the$Bfallback. Worst case is a lost verification (DEPLOYED (UNVERIFIED)), never a false healthy; all three paid after-arm canary trials read the section and probed first.REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=4 fixed=0 scope=frozen dispatches=6
Gate edits: 10 listed, 4 read, 0 findings (all four read hunks tighten a guard: two allowlist pins removed because the renders are now under the default cap,
canary.mdadded to expectedSections, maxSkeletonBytes lowered 52,682 to 32,216)Outside review (openai/gpt-6.1-sol, cross-family) and native adversarial review: nothing at the blocking floor. Their notes, for follow-up:
check.sh's head-pin assertion only searches the merge line for the head SHA, so a SHA in--bodywould pass; a stricter argv check belongs with the suite's negative controls.Exploratory QA
Not run as a separate probe; behavior was exercised by the paid before/after suite above (10 tasks, 120 cells across two runs).
Design Review
No frontend files changed — design review skipped.
Eval Results
The project's eval selector fell back to the full gate because
changelog.d/fragments are an unknown dependency to it, and this machine could not run it (claudeCLI absent; workflow dispatch not permitted), so no gate cases ran at the PR stage; the train gate covers them. The PR's own paid before/after: verdict PASS, after minus before +16.7 pp [0, +40], before2 minus before +6.7 pp [-13.3, +33.3], ledger gsta161-land-and-deploy $70.62.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 Step 8.1 obligations (no plan bound).
TODOS
No TODO items completed in this PR.
Documentation
Status: current. Audited the base 2127729..head 4974fe4 diff plus the clean working tree. No documentation changes are needed.
Scope: /land-and-deploy Step 7's canary procedure (canary script, third-party actions, Aside setup, browser fallback) moved from
land-and-deploy/SKILL.md.tmplinto an on-demandland-and-deploy/sections/canary.md.tmpl. The diff also adds a 10-task eval fixture suite and re-pins the size and carve guards.Documentation health:
Coverage debt: None new. The section-loading layout has reference coverage only through the manifest and tests; that gap predates this change.
Diagram drift: None.
Test plan
UBI_OWNER=gsta161 gstack-pregate --stage tests --remote --spend-cap 2 --timeout 2700 --allow-repo-commands: 17,806 tests, 0 failed on tree fad7f1e46e85 ($0.07)bun run typecheckclean;bun run gen:skill-docsand--host allleave no diff