Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Changelog

## [1.91.185.0] - 2026-10-23

**Three flaky paid eval cases get repairs: three harness gaps closed and one fixture rule moved to where the agent reads it.** Today's daily flaky-fix pass took the two repeat flakes and one periodic timeout from the flaky ledger. plan-design-with-ui-scope failed its first attempt in train gate 39852003387 (its fourth flake) because the Opus 5.5 agent rated the plan "4/10 on design" in plain words and the focus check wanted the words "design completeness". ship-docsync-completion failed in train gate 39904966815 and in GSTA-63's focused run with the same slip both times: the agent added `gstack-docs-candidate --help` to the end of its first line of reads, which the fixture interface forbids. plan-design-finding-floor timed out at 610 s in periodic run 39209106033 because nothing answered the owned plan-file Create menu after its title scrolled off screen; two focused trials then showed a second stall, at the Step 0D focus menu the floor actor answers only when it matches one captured wording.

### Fixed
- **`test/skill-e2e-plan-design-with-ui.test.ts`**: the Step 0A rating the focus check looks for is now any sentence that scores the plan's design out of 10, so "I rated this plan 4/10 on design." counts like "4/10 on design completeness". The check still needs a question that names the focus and an option that leads with all seven areas, and a rating split from the word "design" across sentences, an unscored design sentence, and a non-design score are still refused.
- **`test/helpers/docsync-interface.ts`**: the declared observation interface now states the own-call rule in the sentence that introduces the Preamble block, lifecycle helpers and `gstack-docs-candidate` commands ("each as its own Bash call, with nothing joined before or after it ... a --help is no exception"), instead of in a later sentence after the read grammar. The grammar is unchanged and the captured joined line is still refused.
- **`test/helpers/plan-count-file-permission.ts`**: a cropped owned Create menu whose preview starts on the native rule (the "Create file" title and file row scrolled away) now binds to its pending Write, as a cropped Edit menu already did. Every preview row must still match the owned Write's content, and the prompt must still name the owned file.
- **`test/fixtures/design-floor-focus-picker.ts`**: the floor actor's Step 0D answer moves out of the shared PTY harness into the case's own fixture, and `runPlanSkillFloorCheck` takes it through a new optional `pickSetupChoice` hook that only plan-design-finding-floor passes. The answer (`pickDesignFocusAll`, the seed's declared "review all seven dimensions") identifies the focus menu by its structure: a title or question about the focus, exactly one option that is all seven dimensions, passes or areas, every other option narrowing ("Only …", "Focus …" or "… only"), and a Project/branch/task line naming PLAN.md or the seeded plan. It used to need the exact title "Review all 7 design dimensions, or focus?", a source line reading "plan-design-review of PLAN.md" and an ELI10 that began with the rating, so the template's own 0D sentence ("I've rated this plan 2/10 on design completeness. … Want me to focus on specific areas instead?") and a menu titled "Review focus for the landing page plan" both sat unanswered until the 610 s timeout. A second question, a quoted or foreign plan, a non-narrowing alternative, two all-seven options and a bundled approval still get no answer.

### Tests
- `test/plan-design-with-ui-fixture.test.ts` replays gate 39852003387's four native questions (`test/fixtures/design-ui-focus-capture-39852003387.json`) as a pass, and the same capture without its focus question as a failure. New controls: a rating and the word "design" in different sentences, and an unscored design sentence.
- `test/docsync-command-grammar.test.ts` checks that the captured joined line stays refused, that the candidate's `--help` alone is accepted, and that the sentence naming the candidate commands carries the own-call rule.
- `test/plan-create-prepublication.test.ts` replays the periodic run's final viewport (`test/fixtures/plan-design-floor-create-rule-crop.json`): it is granted once and fails without the fix. Controls: two rules, text above the rule, a quoted row, a changed row and a foreign file name are refused.
- `test/plan-design-floor-fixture.test.ts` (the case's owner test; the rows moved with the picker from the boundaries unit test) replays both pending focus menus from the focused trials (`test/fixtures/design-floor-focus-template-0d.json`, `test/fixtures/design-floor-focus-review-focus.json`); each selects the all-seven option, and the template-worded one failed before the change. New controls: a question not about focus, a foreign or quoted plan, an alternative that does not narrow, and a second question.

### Gate integrity
- No threshold, budget, timeout, trial count or case kind changed. Two accepted-input changes to review: the plan-design focus rating accepts "design" without "completeness", and the floor actor answers the 0D focus menu without requiring a rating sentence or one exact title (it answers only with the seed's declared all-seven option).
- HARNESS_VERSION stays 6. `boundaries.ts`, `claude-pty-runner.ts` and `runners/floor.ts` are recorded non-behavioral: the picker left the shared harness and the new hook has one caller, so no other case's input or verdict can change, while plan-design-finding-floor's owned bytes (its test file and the new fixture) start that case's own pass-rate series.

## [1.91.184.0] - 2026-10-23

**The office-hours attempt lifecycle test no longer races the wall clock.** Today's daily flaky-fix pass: in #3341's remote pregate, "recommendation near-success stays inside the shared work deadline" failed once with two judge starts where it expects one, then passed on the serial retry. Its fake runner and judge used real sleeps (220 ms plus 10 ms) against a mocked 300 ms deadline, so a loaded machine could push the first attempt past it. The sibling late-judge case had the same exposure from the other side.
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.91.184.0
1.91.185.0
2 changes: 1 addition & 1 deletion agents-digest/gstack-AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# gstack digest v1.91.184.0 — regenerate/re-copy after upgrading gstack
# gstack digest v1.91.185.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,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gstack",
"version": "1.91.184",
"version": "1.91.185",
"description": "Garry's Stack — Claude Code skills + fast headless browser. One repo, one install, entire AI engineering workflow.",
"license": "MIT",
"type": "module",
Expand Down
6 changes: 3 additions & 3 deletions scripts/harness-version.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"scripts/test-strict-output.ts": {"blob":"01185d20dc9761b04b9b2f751ec98664fe0eaf93","since":6},
"test/helpers/agent-sdk-runner.ts": {"blob":"210bba92d241a90df578b2c7fc943ac5755d0025","since":6},
"test/helpers/auq-substance-panel.ts": {"blob":"4881260ef793668e4963a062db6d06a5e1f7a40f","since":6},
"test/helpers/claude-pty-runner.ts": {"blob":"20cc5894532873aa6145fc6617fdeec8cef94a2d","since":6},
"test/helpers/claude-pty-runner.ts": {"blob":"ce7a5eaa66e502a052ea9c53348dd2ab25db6148","since":6,"nonBehavioral":"Removes the plan-design 0D focus picker from the shared harness; floor.ts gains an optional pickSetupChoice hook that no other caller passes, so no other case's input or verdict can change. plan-design-finding-floor, the only case whose seed raises that menu, passes the picker from its owned fixture test/fixtures/design-floor-focus-picker.ts, so its owned bytes start its own new series."},
"test/helpers/codex-host-runner.ts": {"blob":"bff225017e235f0be6ece29f04971ac04b95b544","since":6,"nonBehavioral":"Claude-host verdicts are unchanged: the Codex host (EVALS_HOST=codex, codex-host-runner) runs only when selected and records its own per-model series; the Codex runner refactor (execCodex extraction, onSpawn hook) keeps its events and verdicts and adds token cost accounting; host fields on the plan/report are absent for claude"},
"test/helpers/codex-session-runner.ts": {"blob":"c040ebbfa815b8cce19ef80c6133bd5a5474149a","since":6,"nonBehavioral":"Claude-host verdicts are unchanged: the Codex host (EVALS_HOST=codex, codex-host-runner) runs only when selected and records its own per-model series; the Codex runner refactor (execCodex extraction, onSpawn hook) keeps its events and verdicts and adds token cost accounting; host fields on the plan/report are absent for claude"},
"test/helpers/e2e-gate.ts": {"blob":"efb7e197dd5f66c3ad0e34074b14e640754f7a45","since":6},
Expand All @@ -34,14 +34,14 @@
"test/helpers/pty-screen.ts": {"blob":"4f77569f9ce11f9cee9f347216e468cd7c956820","since":6},
"test/helpers/pty/auq.ts": {"blob":"16e5ea2bb5b9f28f44808a1a09024dbd3e6f28c4","since":6},
"test/helpers/pty/binary.ts": {"blob":"404d7515076d5c00804f89e23ea69296312c00e1","since":6},
"test/helpers/pty/boundaries.ts": {"blob":"53eb76e57c0558c00254366d6334a1c833126575","since":6},
"test/helpers/pty/boundaries.ts": {"blob":"8c87100c9dd0cfc28c02598f250726fd93bfbdea","since":6,"nonBehavioral":"Removes the plan-design 0D focus picker from the shared harness; floor.ts gains an optional pickSetupChoice hook that no other caller passes, so no other case's input or verdict can change. plan-design-finding-floor, the only case whose seed raises that menu, passes the picker from its owned fixture test/fixtures/design-floor-focus-picker.ts, so its owned bytes start its own new series."},
"test/helpers/pty/classify.ts": {"blob":"3f2daa12ff6484f96b8d28d910a50231c4bb3ae8","since":6},
"test/helpers/pty/fake-session.ts": {"blob":"554e064ef259b8444280eddfe9b0db93c66a8202","since":6},
"test/helpers/pty/judge.ts": {"blob":"81c5bb4c48ab928aca2f186a1ade9df7169d7fbe","since":6},
"test/helpers/pty/launch.ts": {"blob":"e4413de380b799659170e7da248d51afda3b0e3f","since":6,"nonBehavioral":"credential rejections are classed infra instead of assertion: no case's pass or fail changes; only failed trials whose provider rejected the run's key move class, so no rerun spends on a rejected key"},
"test/helpers/pty/plan-native.ts": {"blob":"ddba9cb68c7c0da935cff7c1cea258dee2dff740","since":6},
"test/helpers/pty/runners/counting.ts": {"blob":"8c5c05e54abf961259d34d9c3d77db67138d7794","since":6},
"test/helpers/pty/runners/floor.ts": {"blob":"57fa44c31300754b00473276cf7b972d4e9e47d8","since":6},
"test/helpers/pty/runners/floor.ts": {"blob":"54e2145832bb98913644d10ff303792d67f9362e","since":6,"nonBehavioral":"Removes the plan-design 0D focus picker from the shared harness; floor.ts gains an optional pickSetupChoice hook that no other caller passes, so no other case's input or verdict can change. plan-design-finding-floor, the only case whose seed raises that menu, passes the picker from its owned fixture test/fixtures/design-floor-focus-picker.ts, so its owned bytes start its own new series."},
"test/helpers/pty/runners/observation.ts": {"blob":"1c2b75fbb984708725abaa8939125f7cab969f9f","since":6},
"test/helpers/pty/screen.ts": {"blob":"f3743152fc9bb7a8e8c70002f75bf45914f260d5","since":6,"nonBehavioral":"credential rejections are classed infra instead of assertion: no case's pass or fail changes; only failed trials whose provider rejected the run's key move class, so no rerun spends on a rejected key"},
"test/helpers/pty/session.ts": {"blob":"54fe04b61d953e4e55e2fc251532c04a49fab66f","since":6,"nonBehavioral":"credential rejections are classed infra instead of assertion: no case's pass or fail changes; only failed trials whose provider rejected the run's key move class, so no rerun spends on a rejected key"},
Expand Down
12 changes: 12 additions & 0 deletions test/docsync-command-grammar.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,18 @@ test('the installed docs-candidate helper is admitted only with a private .json
expect(docsNativeInterface(fixture)).toContain('compare <that .json> and --help commands');
});

// Train gate 39904966815 (ship-docsync-completion, attempt 1) and GSTA-63's focused run joined the candidate's
// --help onto a line of reads. The join stays refused; the own-call rule now sits in the sentence naming --help.
test('a candidate --help joined to reads stays refused, and the interface says so where it names the command', () => {
const skills = fixture.skills.split(path.sep).join('/');
const joined = `git diff; git diff --cached; cat options.ts; ls -la handbook handbook/reference handbook/reference/commands; ${skills}/bin/gstack-docs-candidate --help`;
expect(docsCommandAllowed(joined, fixture)).toBe(false);
expect(docsCommandAllowed(`${skills}/bin/gstack-docs-candidate --help`, fixture)).toBe(true);
const sentence = docsNativeInterface(fixture).split(/(?<=\.)\s+(?=[A-Z])/).find(part => part.includes('gstack-docs-candidate snapshot'));
expect(sentence).toContain('as its own Bash call, with nothing joined before or after it');
expect(sentence).toContain('a --help is no exception');
});

test('the installed lifecycle helpers are admitted for their own --help, which starts nothing', () => {
const skills = fixture.skills.split(path.sep).join('/');
for (const helper of ['gstack-skill-start', 'gstack-skill-end']) {
Expand Down
35 changes: 35 additions & 0 deletions test/fixtures/design-floor-focus-picker.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/**
* Case-owned setup answer for test/skill-e2e-plan-design-finding-floor.test.ts.
* It lives with the case's fixtures so a change to it starts that case's own
* pass-rate series instead of every case's (scripts/eval-trial-series.ts).
*/
import type { NativePlanQuestionCall } from '../helpers/plan-count-transcript';

/**
* The seed declares "Design: review all seven dimensions" for the pending Step 0D
* focus menu. Pick its single all-seven option only when every other option
* narrows the review and the brief approves no product action.
*/
export function pickDesignFocusAll(q: NativePlanQuestionCall['questions'][number]): number | null {
if (q.multiSelect || q.options.length < 2 || q.options.length > 4 || new Set(q.options.map(o => o.label)).size !== q.options.length) return null;
const text = q.question.trim();
const unquote = (value: string) => value.replace(/`+[^`]*`+|"[^"\n]*"|“[^”\n]*”|‘[^’\n]*’/g, '');
const sources = [...text.matchAll(/^Project\/branch\/task:\s*([^\n]+)$/gm)].map(match => unquote(match[1]!));
const explanatory = unquote([text, ...q.options.flatMap(o => [o.label, o.description ?? ''])].join('\n')).replace(/[✅❌*]/g, '');
// The menu is identified by its structure, not one wording: a title or question about the
// focus ("Review all 7 design dimensions, or focus?", census 36597762183; "Want me to focus on
// specific areas instead?" and "Review focus for the landing page plan", GSTA-65 focused
// trials), one all-seven option, and only narrowing alternatives.
const sentences = text.split(/(?<=[.!?])\s+|\r?\n/);
const title = text.split(/\r?\n/, 1)[0]!.replace(/^D[1-9]\d*\s*[—–:-]\s*/i, '');
const asks = sentences.filter(sentence => sentence.includes('?'));
if (![title, ...asks].some(line => /\bfocus\b/i.test(line)) ||
sources.length !== 1 || !/\b(?:PLAN\.md|Marketing landing page)\b/i.test(sources[0]!) ||
/\b(?:historical|archived|quoted|example|foreign|other|another|previous)\b/i.test(sources[0]!) ||
(text.match(/\?/g)?.length ?? 0) > 1 || /```|~~~|^\s*>/m.test(text) ||
/(?:^|[.!?;:\n]|\b(?:and|while))\s*(?:(?:also|please|then|now)\s+)*(?:approv(?:e|ing)|deploy(?:ing)?|implement(?:ing)?|ship(?:ping)?|merg(?:e|ing)|delet(?:e|ing))\b/im.test(explanatory)) return null;
const labels = q.options.map(o => o.label.trim().replace(/^[A-Z][).:]\s+/i, '').replace(/\s*\(recommended\)\s*$/i, ''));
const all = labels.flatMap((label, i) => /^(?:Review )?All (?:7|seven) (?:design )?(?:dimensions|passes|areas)$/i.test(label) ? [i + 1] : []);
if (all.length !== 1 || labels.some((label, i) => i + 1 !== all[0] && !/^(?:Only|Focus)\b|\bonly$/i.test(label))) return null;
return all[0]!;
}
21 changes: 21 additions & 0 deletions test/fixtures/design-floor-focus-review-focus.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"provenance": {
"run": "GSTA-65 focused trial (local, 2026-10-23, head 0dff819)",
"note": "pending Step 0D focus menu titled 'Review focus for the landing page plan', with no question mark and an unscored rating sentence, left unanswered until the 610 s timeout"
},
"question": {
"question": "D1 \u2014 Review focus for the landing page plan\nProject/branch/task: PLAN.md on main, marketing landing page.\nELI10: I rated this plan 2/10. The biggest gaps: everything is centered, the headline is cramped against the subhead, and the main button looks the same as the 'Learn more' link, so visitors don't know what to click. Mockups are skipped (designer not installed). I can review all 7 dimensions, or focus on a few.\nStakes if we pick wrong: narrowing the focus leaves states, responsive and a11y unspecified, so the engineer invents them.\nRecommendation: A because your instructions ask for all seven dimensions and the plan is thin everywhere.\nNote: options differ in kind, not coverage \u2014 no completeness score.\nPros / cons:\nA) All 7 passes (recommended)\n \u2705 Covers hierarchy, states, journey, slop, system, responsive, decisions\n \u2705 Matches the requested scope of reviewing all seven dimensions\n \u274c More individual questions, one per gap found in the plan\nB) Hero only (alignment, spacing, CTA weight)\n \u2705 Fastest path to fixing the three problems the plan names explicitly\n \u2705 Fewer questions, quicker to an implementable hero section\n \u274c Leaves responsive, a11y and states unspecified for implementation\nNet: full coverage vs. speed on the three named hero problems.",
"header": "Focus",
"multiSelect": false,
"options": [
{
"label": "All 7 passes (recommended)",
"description": "Review every dimension; one question per gap."
},
{
"label": "Hero only",
"description": "Only alignment, h1 spacing and CTA weight."
}
]
}
}
21 changes: 21 additions & 0 deletions test/fixtures/design-floor-focus-template-0d.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"provenance": {
"run": "GSTA-65 focused trial t1 (local, 2026-10-23, tree 01d1d72a)",
"note": "pending Step 0D focus menu in the template's own words left unanswered until the 610 s timeout"
},
"question": {
"question": "D1 \u2014 I've rated this plan 2/10 on design completeness. The biggest gaps are centered-everything alignment, the 8px h1-to-subhead gap, and a CTA with no more weight than 'Learn more'. Mockups are unavailable (no designer binary), so I'll review all 7 dimensions text-only. Want me to focus on specific areas instead?\nProject/branch/task: Marketing landing page plan on main.\nELI10: The review can cover every design angle or just a few. Covering all 7 catches gaps like mobile and accessibility that are cheap to fix now and expensive later.\nStakes if we pick wrong: Narrowing the scope leaves unreviewed gaps that engineers will fill with defaults.\nRecommendation: A because your instructions ask for all seven dimensions and the plan is short.\nCompleteness: A=10/10, B=6/10\nPros / cons:\nA) All 7 dimensions (recommended)\n \u2705 Every gap is caught, including states, mobile, and accessibility\n \u2705 Matches your stated request to review all seven dimensions\n \u274c More questions, roughly one per finding, before the plan is final\nB) Layout/hierarchy only\n \u2705 Faster, focused on the three issues the plan already names\n \u274c Leaves responsive, a11y, and states unspecified for engineering\nNet: Full coverage costs a few more questions and avoids default-driven gaps.",
"header": "Focus",
"multiSelect": false,
"options": [
{
"label": "All 7 dimensions (recommended)",
"description": "Full review: IA, states, journey, AI slop, design system, responsive/a11y, unresolved decisions."
},
{
"label": "Layout/hierarchy only",
"description": "Only the alignment, spacing, and CTA weight issues already in the plan."
}
]
}
}
Loading
Loading