Skip to content

Fix eight problems users reported in skill instructions - #4686

Merged
capy-ai[bot] merged 5 commits into
mainfrom
fix-user-reported-skill-text
Nov 22, 2026
Merged

capy-ai[bot] merged 5 commits into
mainfrom
fix-user-reported-skill-text

Conversation

@garrytan

@garrytan garrytan commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Fixes eight user-reported problems in skill text agents follow: Aside asks you to open the app when it's closed, /test-audit finds your branch's test plan, and /codex reads your repo's own agents/ folder. Goal: gstack skills do what their docs promise.
Nothing to do as a user; it arrives with the next gstack update.

What changed
Why

Each report was a case where an agent following gstack's own instructions did the wrong thing. It fell back to a worse browser, missed a test plan, stalled on a repo with no checks, left a stale PR section, lost a spec link, learned nothing from a design pick, skipped code it was asked to review, or put rules where worker threads never read them. Every fix was reproduced on main c2b4f0d first (a failing test for #4366 and #4216, a command repro for the rest).

Blast radius

Skill text and the generated SKILL.md files, the codex host's boundary line and the shared Aside readiness probe that every browser skill renders. The probe change adds one shell case arm on output it already captured; test/aside-probe-shell.test.ts runs the real probe under bash and zsh against a fake CLI that prints the real exit-1 message (script ran). Everything else is prose, pinned by test/skill-text-user-reports.test.ts and the regenerated goldens.

The /codex boundary (#3924)

This narrows /codex's own safety boundary on purpose. /codex told Codex not to read "~/.claude/, ~/.agents/, .claude/skills/, or agents/". A bare agents/ also covers a repository's own agents/ folder, which is code under review, so Codex skipped it in consult mode. /codex's copies (the skill, its consult, challenge and review modes, and the codex host's boundary line) now say "... .claude/skills/, .agents/, or any agents/openai.yaml" and that other files in the repository agents/ folder are code to review. Installed skills and every agents/openai.yaml stay protected by name, and .agents/ is now named explicitly.

The same sentence in the second-model review that /ship, /review and the plan reviews run (CODEX_BOUNDARY) is unchanged: it's part of a reviewer brief pinned at no-loss-tested bytes, so it changes only after a no-loss replay. That stays open on #3924.

Security read

No CI, install script, dependency, network, auth or process-spawning code changes. The Aside probe change is a shell case glob on output already captured; it never prints that output. Outside PR branches were read as text only and rebuilt on main.

Size growth

The Aside probe arm (about +90 bytes in every skill that runs the browser check) raises 30 SKILL.md size pins, 8 skeleton caps, 8 size-ratio caps, the /verify context ceiling (3231 to 3282 tokens) and /ship's recorded size total, each to its measured value. The review fixes add 60 bytes to /ship's recorded size total (419 to 479) and raise the /design-shotgun skeleton cap from 36,278 to 36,335 bytes, both measured.

Pre-Landing Review

Two full review passes and one follow-up check on the final head, plus a native adversarial pass and a second-model review (GPT-6.2 Sol). Three blocking problems were found and fixed, all in text this PR adds: one in the /ship body cleanup (details recorded privately), the cleanup overwriting a PR body someone edited between the read and the post, and /design-shotgun's reason claiming all four taste dimensions. One blocking item sits in unchanged lines and is listed under Deferred findings; nine notes below the bar are listed under Review notes.

Deferred findings

Blocking findings in code this PR did not change (review scope: frozen). They stay on this PR and are not filed as issues.

  • Deferred: CRITICAL test-audit/SKILL.md.tmpl:61 /test-audit can select another branch's eng-review test plan by suffix match
Review notes

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

  • INFORMATIONAL ship/sections/pr-body.md.tmpl:316 Re-run read-modify-write with --replace can overwrite PR body edits made between fetch and replace
  • INFORMATIONAL scripts/resolvers/aside.ts:108 Aside isn't-running match is an English substring with an ASCII apostrophe
  • INFORMATIONAL design-shotgun/SKILL.md.tmpl:181 --reason "" is double-quoted shell text built from user feedback
  • INFORMATIONAL scripts/resolvers/outside-voice-steps.ts:1 agents/ boundary relaxed only in /codex; other Codex passes still skip agents/ (on purpose: the shared copy is a pinned reviewer brief)
  • INFORMATIONAL test-audit/SKILL.md.tmpl:61 -$BRANCH-eng-review-test-plan- can match another branch whose name ends in -$BRANCH
  • INFORMATIONAL test/fixtures/qa-only-bookkeeping-joins-public.json:8 Captured replay fixture rewritten to the new probe while keeping the original run claim
  • INFORMATIONAL changelog.d/outside-fixes-skill-text.md:1 Note says no fallback; workflow asks once then falls back
Exploratory QA

Functional smoke on the gstack-post body merge and the new tests (4 captures, report-only). The success probe passed; the riskiest changed edge (the --replace repost) reproduced the first review finding (run history dropped), and after the fix the same replay kept the history and removed the stale section. Captures run on the final text: pass. Limits: no live GitHub round trip; Aside, Codex and the other fixes rely on CI's full test run and the targeted tests.

Design Review

No frontend files changed, so design review was skipped.

Eval Results

The eval selector found no PR-pass cases for this diff (its selected behaviors are scheduled release coverage), and the PR's eval workflow routed green with no slices to run. No paid evals ran.

Scope Drift

Scope Check: CLEAN

Plan Completion

Plan completion audit: not run (no plan is bound to this branch and no docs/designs/ file matches). This is a bug-fix batch with a repro per report.

Issues

Refs #3924
Refs #4216
Refs #4296
Refs #4346
Refs #4366
Refs #4379
Refs #4616
Refs #4618

TODOS

No TODO items completed in this PR.

Tests
  • Full free test suite in CI at 81a177f (Free Tests run 45003237843): 1,744 test files, green.
  • bun test on skill-text-user-reports, skill-md-size-guard, skill-size-budget, catalog-budget, parity-suite, context-budget-ratchet, host-config and module-size-ratchet at the final tree: 144 pass, 0 fail.
  • Typecheck, skill size, parity, context budget, module size, goldens and conflict-marker guards: pass.
Agent notes

Agent notes

Thread GSTA-803 for GStack Minder (GSTA-36), the crew Captain. Rulings: A1 (#4410 left open, queued behind #4664); B1/C1 then E1 (CI showed CODEX_BOUNDARY is a pinned reviewer brief, so only /codex's copies change, the oracle change was reverted, and #3924 stays open for the review copy); D1 (size pins raised to measured values); F1 (grant a-f4e436a01811: one scoped fix-check for p2/outside-voice#1 and #3 after the round cap). #4404 was closed as niche. The safety-codex-boundary case (Codex 0.160.0) passed on main c2b4f0d and on the earlier head b039674; that head changed CODEX_BOUNDARY, which this head no longer does.

Pre-landing review: pass 1 (batched testing, security, state-machines and red-team reader) found p1/specialist-batched#1, a red-team finding fixed in c2f6b8c; pass 2 (scoped red-team and fix-check) clean; Step 11 native adversarial (5 Low) and outside voice openai/gpt-6.2-sol (3 blocking: #1 and #3 fixed in 81a177f under F1, #2 deferred as outside the changed lines; 2 Low noted); the granted fix-check at 81a177f found nothing blocking (2 informational notes: residual race after the second read; the stop sits after a successful merge post).
REVIEW_LOOP: passes=2 blocking_found=4 deferred=1 noted=9 fixed=3 scope=frozen ledgers_read=3 fix_checks=2 dispatches=3 est_input_tokens=42359
Gate edits: none detected (35 listed, 30 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
Review-loop exception: accepted by Captain GStack Minder (GSTA-36) 2026-11-22 via gstack-approvals round-grant a-f4e436a01811: Two one-line fixes to text this PR adds: reread the live body before the --replace post, and name only the taste dimensions the feedback speaks to. (fix-check at c2f6b8c, 0 findings)
CI carry: CI_CARRY: accepted ci-carry tree=fd85b2f56149 tests=38822 runs=45003237843/1 profiles=ci-reuse/free-tests heads=81a177f5f13c
Pregate: PREGATE: requires-remote cleared (final tree); macOS lanes cleared from run 45003237843, windows-smoke from run 45000978615.

Documentation (Step 14.5 audit docs-a1):

Status: current. The docs match the diff and no edits were needed.

Scope: the committed diff c2b4f0d2..81a177f (53 files, 5 commits). There were no staged, unstaged or new files. The audit read the authored templates for /codex, /design-shotgun, /spec, /test-audit, /verify and the /ship PR-body section, the Captain docs and templates, and the changelog fragment.

Documentation health:

  • crew/docs/captain.md: updated in this PR. It now says crew threads read CREW.md, not the drive-root AGENTS.md.
  • captain/templates/AGENTS.md: updated in this PR, and it matches the doc above.
  • crew/docs/recommended-harness.md: current. It already says CREW.md is what every thread reads.
  • captain/templates/CREW.md: current.
  • docs/standalone-binaries.md: current. Its description of gstack-taste-update is still correct.
  • changelog.d/outside-fixes-skill-text.md: current. It covers all eight fixes.

Coverage debt: the new gstack-taste-update --reason flag and the new spec_branch archive field have reference text only inside their skills. Neither has a how-to or a binary-table mention. This is a common gap, not a critical one.

Diagram drift: none.

Approvals

Approved: yes (record r-20fc3f6179e0). The full approval record stays private.
Plan: exempt: bug fixes from user reports, each reproduced on main c2b4f0d first (--kind fix)
Plan check: exempt bug fix

🤖 Generated with Claude Code

{
  "schema_version": 1,
  "pr": 4686,
  "head": "81a177f5f13c60d310b3764b3c96997ffd552135",
  "version": "1.102.2.0",
  "base": "main",
  "gate": {
    "free": {
      "pass": 1744,
      "fail": 0,
      "skip": 0
    }
  },
  "ci_carried": [
    {
      "lane": "free",
      "run": 45003237843,
      "attempt": 1,
      "tree": "fd85b2f56149f0ea4779844a52964bbaeaca1117"
    }
  ],
  "calls": 53,
  "session_kind": "unattended",
  "run": "ship-4686",
  "head_tree": "fd85b2f56149f0ea4779844a52964bbaeaca1117",
  "product_patch_id": "2a0838bf02fc8843deedd0fa3cef234222171672",
  "gstack_version": "1.102.2.0",
  "review_depth": {
    "depth": "light",
    "class": "code",
    "runtime_lines": 53,
    "rules": "630fd3101899e28e",
    "base": "0b4f0ceeec19fef62480db6c8eb00c4015380a39",
    "registry": "0b4f0ceeec19fef62480db6c8eb00c4015380a39",
    "gate_scan": {
      "tagged": 0,
      "head": "81a177f5f13c60d310b3764b3c96997ffd552135"
    },
    "reasons": [
      "runtime=53"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @fd85b2f56149 (8 checks, current for 81a177f5f13c)",
  "requires_remote": [
    "free-tests.yml/cso-macos-launcher: https://github.com/garrytan/gstack/actions/runs/45003237843/attempts/1",
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/45003237843/attempts/1",
    "windows-smoke.yml/windows-smoke: https://github.com/garrytan/gstack/actions/runs/45000978615/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=fd85b2f56149 tests=38822 skipped=104 runs=45003237843/1 profiles=ci-reuse/free-tests heads=81a177f5f13c verified=2026-11-22T08:48:13.667Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [
      3924,
      4216,
      4296,
      4346,
      4366,
      4379,
      4616,
      4618
    ],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "README.md, docs/, CLAUDE.md, AGENTS.md, CONTRIBUTING.md, crew/docs/ and the changed skill templates (committed diff c2b4f0d2..81a177f5)"
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 4,
    "deferred": 1,
    "noted": 9,
    "fixed": 3,
    "scope": "frozen",
    "fix_checks": 2,
    "rounds": 2,
    "est_input_tokens": 42359,
    "ledgers_read": 3,
    "dispatches": {
      "specialist-batched": 1,
      "red-team": 1,
      "fix-check": 1
    }
  },
  "review_loop_exception": {
    "accepted_by": "Captain GStack Minder (GSTA-36)",
    "date": "2026-11-22",
    "via": "gstack-approvals round-grant a-f4e436a01811",
    "reason": "Two one-line fixes to text this PR adds: reread the live body before the --replace post, and name only the taste dimensions the feedback speaks to.",
    "fix_check": {
      "head": "c2f6b8c883b76897da09a67d7db058328de7d1dc",
      "findings": 0
    }
  },
  "review_round_grants": [
    {
      "kind": "fix-check",
      "head": "c2f6b8c883b76897da09a67d7db058328de7d1dc",
      "pr": 4686,
      "by": "GSTA-36",
      "reason": "Two one-line fixes to text this PR adds: reread the live body before the --replace post, and name only the taste dimensions the feedback speaks to.",
      "at": "2026-11-22T08:00:03.869Z",
      "approval": "a-f4e436a01811",
      "stop_run": "ship-4686",
      "findings": [
        "p2/outside-voice#1",
        "p2/outside-voice#3"
      ]
    }
  ],
  "gate_dispositions": []
}
{"head":"c2f6b8c883b76897da09a67d7db058328de7d1dc","run":"ship-4686","mark":"stop","tree":"8cc13e9cd411d0979df795a76abe1a03774d7fe1"}
{"head":"c2f6b8c883b76897da09a67d7db058328de7d1dc","run":"ship-4686","mark":"grant","grant":"a-f4e436a01811"}

The Aside check asks you to open Aside when its CLI says the app isn't
running (#4366). /test-audit finds the current branch's test plan (#4216).
/verify explains a repo with no declared checks (#4346). /ship checks the
sections it kept when updating an open PR (#4379). /spec --execute records
the branch its spawned session ships from (#4616). /design-shotgun passes a
reason so taste memory learns (#4618). Second-model reviews read a repo's
own agents/ folder as code (#3924). Captain docs say crew threads read
CREW.md, not AGENTS.md (#4296).

Co-authored-by: thehashrocket <[email protected]>
Co-authored-by: ElNeMeR70 <[email protected]>
Co-authored-by: szsunyuan <[email protected]>
Co-authored-by: atharva081106 <[email protected]>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@trunk-io

trunk-io Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 2 commits November 22, 2026 05:59
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
The second-model review boundary that /ship and /review use is a reviewer
brief pinned at no-loss-tested bytes, so it waits for a no-loss replay
(#3924 stays open for it). Size pins re-measured once for the remaining
growth from the Aside probe (#4366).

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
garrytan and others added 2 commits November 22, 2026 07:46
Rebuild the Step 19 --replace repost from the live body so the PR's run history survives.

Review-Finding: p1/specialist-batched#1 reader=red-team
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Reread the live PR body before the --replace repost and stop if it changed; the design-shotgun taste reason names only the dimensions the feedback speaks to. Size caps re-measured under the Captain's grant.

Review-Finding: p2/outside-voice#1 reader=outside-voice
Review-Finding: p2/outside-voice#3 reader=outside-voice
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot merged commit 113deea into main Nov 22, 2026
77 checks passed
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