Skip to content

v1.91.195.0 fix(skills): /health GBrain score in code, office-hours diff base, ios-qa demo rule, plan-design model name (#3347 #3350 #3351 #3352) - #3373

Merged
capy-ai[bot] merged 6 commits into
mainfrom
fix/skill-template-3350-3351-3352-3347
Oct 25, 2026
Merged

capy-ai[bot] merged 6 commits into
mainfrom
fix/skill-template-3350-3351-3352-3347

Conversation

@garrytan

@garrytan garrytan commented Oct 24, 2026 •

Copy link
Copy Markdown
Owner

What changed

#3351 /health: one GBrain rule, computed in code. The rubric row's 10/7/4 bands disagreed with the weighted formula (doctor ok, queue 50, pushed 2h: 7 vs 9.1) and overlapped. The row now points at the formula, and a bun -e snippet computes it from numeric inputs (doctor 10/7/0, queue lines, hours since push), like the composite already was.
#3351: the GBrain rubric row defers to one formula, computed by a bun snippet instead of by the model
#3351: the four new GBrain tests fail on the old template and pass on the new one

#3347 /office-hours: context diff against origin/HEAD. git diff origin/main --stat 2>/dev/null exited 128 silently on a master-based clone, so the model read "no changes". origin/HEAD is the remote's default branch, and errors now show.

No origin/HEAD ref. git clone sets it, and on git 2.48+ a plain git fetch creates it too. A repo made with git init plus git remote add where it was never set (older git, or remote.origin.followRemoteHEAD=never) fails loudly, exit 128, with the error in view instead of silenced:

$ git diff origin/HEAD --stat
fatal: ambiguous argument 'origin/HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

(reproduced on git 2.55.0 with followRemoteHEAD=never). The model sees the failure and can pick the base itself; before, the same failure passed for "no diff".
#3347: the old command exits 128 silently; the new one shows the real diff
#3347: the context step diffs against origin/HEAD with errors visible

#3352 /ios-qa: demo mode no longer "overrides all other rules". Same UI-only rule, with its reason, and an explicit "all other rules in this skill still apply". The safety-rule registry row for this rule (test/helpers/safety-rules.ts) moves its anchor to /drive every action through visible UI/i and its hash to the new paragraph in the same commit, as the registry requires.
#3352: demo mode keeps its UI-only rule but no longer claims to override the lock, no-replay and DebugBridge rules

#3350 /plan-design-review: "OpenAI vision", not "GPT-4o vision". The design binary defaults to gpt-5.5 (design/src/models.ts) and can't use gpt-4o with gpt-image-2.
#3350: the design check is described as OpenAI vision, not GPT-4o

Why

dgrant filed four issues where a skill prompt contradicted itself or its code. The model followed whichever rule it read, so /health's score and trend moved with no change in the readings, /office-hours misread master-based repos, /ios-qa's demo mode read as permission to skip the lock and no-replay rules, and /plan-design-review reported the wrong model.

One deviation from the triage plan (#3347). The suggested {{BASE_BRANCH_DETECT}} block adds 1,727 chars to office-hours. That's over the exact size-guard pins on codex, copilot, factory and opencode and over the parity suite's 95,900-byte skeleton cap (it would land at 96,730). Raising either is an owner call. origin/HEAD fixes the reported failure in a same-length line, so office-hours stays at exactly its pinned size on every host. The #3350 swap is also the same length for the same reason.

Approvals

Date Ask Words Covers Pending
2026-10-15 Paid eval spend (CREW 5) "it's fine run as many $93 paid gates as you want who cares" focused paid runs for this PR —
2026-10-16 Merge through a train (captain-approvals A) standing GStack Minder merges slot call

| 2026-10-24 | Edit test/helpers/safety-rules.ts (out of the assigned scope) | GStack Minder: "Do it. Change the one test/helpers/safety-rules.ts row as you described, fold it into the #3352 commit" | the ios-qa-demo-override anchor and hash | — |
| 2026-10-24 | One PR for all four; same-length origin/HEAD for #3347 | GStack Minder: "Both of your calls stand" | this PR | — |

Gate edit, weakening verdict: not weaker. The registry row for safety-ios-demo-ui-only anchors on the reworded paragraph, which still requires visible UI over POST /state/* writes. Negative controls: the registry's unique-anchor and rule-removed-arm test, and the paid case's rule-removed arm, which deletes the same paragraph. No threshold, budget, timeout, trial count or case kind changed.

Evidence

Head 535b8ee66da81a6a444ae5a1127157578a718998.

  • Focused free checks: 751 pass, 0 fail across 19 files: parity suite, SKILL.md size guard, size budget, qa-health-rubric, safety-rule registry, env-host fence conformance, gen-skill-docs (×3), plan-scope-selection, health capture and fixture, ios-qa, office-hours budget, model-policy freshness, restamp changelog, spawnSync tripwire, bun entry isolation and state-root ratchet. gen:skill-docs --dry-run is fresh for claude and codex, and the test-code typecheck ratchet reports none new.
  • Remote free-tier pregate: PREGATE_REMOTE: tree=be80bb6e tests=16553 failed=0, $0.05 on Ubicloud.
  • New tests: the four new test/qa-health-rubric.test.ts tests fail on the old template (3 pass, 4 fail) and pass on the new one (7 pass).
  • Focused paid cases, all PASS on the first try with no flaky reruns:
    • health-reporting, run at this head: $0.33 at fef0900 and again at 535b8ee.
    • safety-ios-demo-ui-only, run at fd337ea: $0.10. Its inputs (ios-qa and test/helpers/safety-rules.ts) are unchanged since, so this is reused evidence.
    • plan-design-review-no-ui-scope ($0.10), office-hours-auto-mode (its PTY cost isn't recorded) and the plan-design-review/SKILL.md passes judge ($0.06), run at fef0900. Their inputs are unchanged since, so this is reused evidence.
  • What the first push caught: the safety-rule registry anchor, and the generated-bash lint rejecting a <status> placeholder in the /health snippet. Both are fixed in their item's commit, and the snippet now takes only <N|null> inputs.

Closes #3347
Closes #3350
Closes #3351
Closes #3352

… GPT-4o (#3350)

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

trunk-io Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

@garrytan
garrytan force-pushed the fix/skill-template-3350-3351-3352-3347 branch 2 times, most recently from 482b833 to fd337ea Compare October 24, 2026 20:22
garrytan and others added 4 commits October 24, 2026 20:29
…la can't disagree (#3351)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… skill's other rules (#3352)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…main with stderr hidden (#3347)

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

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@garrytan
garrytan force-pushed the fix/skill-template-3350-3351-3352-3347 branch from fd337ea to 535b8ee Compare October 24, 2026 20:30
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@github-actions github-actions Bot changed the title fix(skills): /health GBrain score in code, office-hours diff base, ios-qa demo rule, plan-design model name (#3347 #3350 #3351 #3352) v1.91.195.0 fix(skills): /health GBrain score in code, office-hours diff base, ios-qa demo rule, plan-design model name (#3347 #3350 #3351 #3352) Oct 25, 2026
@capy-ai
capy-ai Bot merged commit 934221b into main Oct 25, 2026
62 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment