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.309.0] - 2026-10-29

**The judged review and Eng prose each give one rule where the paid judges kept finding two, and a judge that runs out of time now says what it was waiting on.** Every sample of two red panels on #3527's screens (review 40617200857, plan-eng-review 40634787316), attempt and rerun, named the same contradictions; a third red (ship, train 35 gate 40660626349) hit the 120 s judge deadline with nothing logged but "No completed model response".

### Fixed
- **`/review` Step 5.8**: an unresolved non-gate defect (an unanswered question) is recorded as `open`, so every finding has a record action. A repeat pass's reruns of superseded probes are revalidation, so they run after smoke expiry, in the same probe directory; earlier provisional QA sections link checkpoints and only the final pass runs the once-only `materialize`.
- **`/plan-eng-review`**: the shared Voice now loads once. Eng no longer carries a near-copy whose only difference was its em-dash clause; the Scope gate's format precedence says required formats keep their em dashes.
- **`/benchmark` Phase 6 example**: the hero image recommendation no longer suggests lazy-loading (that delays the largest paint) and names one remedy, as the rule under it asks.

### Changed
- **Judge cancellations leave evidence.** When a judge request is cancelled (the workflow judge deadline), `callJudge` prints one `llm-judge-aborted` line: elapsed time, wrapper attempts and 429 waits, HTTP requests and statuses (so the SDK's own retries show), connection, first and last stream event times, the open block type, thinking and text character counts, message and request ids, and the reason (at most 200 characters). Counts only, never content; an observer that throws cannot change a judge result. Deadlines, effort, samples and thresholds are unchanged.

### Tests
- `test/review-workflow-clarity.test.ts` and `test/eng-scope-entry-ap.test.ts` pin the repaired rules; both fail with the prose change stashed.
- `test/llm-judge-stream.test.ts` and `test/llm-judge-abort.test.ts` replay a stream cancelled mid-thinking, a stream with no events, one cancelled after headers, an SDK-retried 429, a cancelled 429 wait, an event the observer cannot read and an overlong reason, with no-abort controls; each fails with the helper change stashed. `test/workflow-judge-cache.test.ts`'s SDK stream stand-ins gain the real stream's `on()`.
- Focused paid judge runs: review 4/4/4 at 1bdc4ce and again at 3463250, plan-eng-review 3/5/4 at 1bdc4ce ($0.18).

### Gate integrity
- No threshold, sample, trial, deadline or case-kind change. `scripts/harness-version.json` records the `llm-judge.ts` change as non-behavioral (no series reset). Generated SKILL.md size pins for review and plan-eng-review were lowered to their new sizes on every host.

## [1.91.308.0] - 2026-10-29

**`gstack-restamp` no longer cuts a four-part package.json version to three parts in a repo whose convention is four.** On garrytan/gbrain#7878, `/ship` restamped gbrain's `package.json` to `"0.60.483"` beside `VERSION` `0.60.483.0`; gbrain requires the two to match and its CI version gate fails when they drift, so the stamp had to be reverted by hand. The version stage called `gstack-version-bump write`, which always stores the npm-valid three-part form in the manifest (decision 11, which is why gstack's own `package.json` reads `1.91.298`).
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.91.308.0
1.91.309.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.308.0 — regenerate/re-copy after upgrading gstack
# gstack digest v1.91.309.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 benchmark/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ TOP 10 SLOWEST RESOURCES
RECOMMENDATIONS:
- vendor.chunk.js: code-split — 320KB on initial load
- analytics.js: load async/defer — blocks rendering for 250ms
- hero-image.webp: add width/height (CLS), lazy-load
- hero-image.webp: add width/height (CLS)
```

Third-party = any host but the page's origin. Each recommendation names a resource here or in a Phase 5 regression, the metric it moves and one remedy (split, defer, compress, lazy-load, cache).
Expand Down
2 changes: 1 addition & 1 deletion benchmark/SKILL.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ TOP 10 SLOWEST RESOURCES
RECOMMENDATIONS:
- vendor.chunk.js: code-split — 320KB on initial load
- analytics.js: load async/defer — blocks rendering for 250ms
- hero-image.webp: add width/height (CLS), lazy-load
- hero-image.webp: add width/height (CLS)
```

Third-party = any host but the page's origin. Each recommendation names a resource here or in a Phase 5 regression, the metric it moves and one remedy (split, defer, compress, lazy-load, cache).
Expand Down
8 changes: 8 additions & 0 deletions docs/TESTING_INTERNALS.md
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,14 @@ once, plus cleanup. Each still has 120 seconds of model work. Its 17 workflow
judges own their deadline and abort signal, with five seconds for terminal
recording inside a ten-second Bun grace; the other 11 retain their existing
120-second Bun timeout. Late responses cannot create records or cache passes.
When a judge's abort signal cancels its request, `callJudge`
(`test/helpers/llm-judge.ts`) prints one `llm-judge-aborted` JSON line to
stderr: elapsed time, wrapper `attempts` and `retryWaitsMs` (429 waits),
`httpRequests` and `httpStatuses` (so SDK retries show), `connectedMs`,
`firstEventMs` and `lastEventMs`, the open `block` type, `thinkingChars` and
`textChars`, `messageId`, `requestId` and the `reason` (at most 200
characters). It holds counts and ids only, never content, and changes no
request, score or verdict.

The ship documentation file reserves 4,920 seconds for four 600-second cases and
eight 300-second fault cases, run once, plus cleanup; in CI each case runs as its
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.308",
"version": "1.91.309",
"description": "Garry's Stack — Claude Code skills + fast headless browser. One repo, one install, entire AI engineering workflow.",
"license": "MIT",
"type": "module",
Expand Down
24 changes: 1 addition & 23 deletions plan-eng-review/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Recommendation: A when a branch diff exists, otherwise B. Reply with A, B, or C.

After target selection, use the preamble's full decision brief, transport and continuous D-numbering. Setup questions approve no engineering remedies.

**Format precedence:** Copy required command, output and question formats exactly. Apply Voice to newly composed prose.
**Format precedence:** Copy required command, output and question formats exactly, em dashes included. Apply Voice to newly composed prose.

**Startup sequence** (after target selection):
1. Run the Preamble command and its startup instructions (Context Recovery and the preamble's own one-time setup prompts; the Prior Learnings cross-project question waits for Step 0). Defer Operational Self-Improvement, Telemetry and Plan Status Footer to finish; format/transport rules apply throughout.
Expand Down Expand Up @@ -187,28 +187,6 @@ Before emitting a tool or prose decision brief, verify:
- [ ] Follow Tool resolution: tool call unless Conductor or documented prose fallback; prose includes the mandatory triad + explicit reply selectors, then STOP. Spawned sessions follow their auto-choice rule.
- [ ] Write non-ASCII directly, not \u-escaped. For 5+ options, split/batch into ≤4 without dropping; check dependencies and stop the chain immediately on Hold.

## Voice

GStack voice: Garry-shaped product and engineering judgment.

- Lead with the point. Say what it does, why it matters, and what changes for the builder.
- Be concrete. Name files, functions, line numbers, commands, outputs, evals, and real numbers.
- Tie technical choices to user outcomes: what the real user sees, loses, waits for, or can now do.
- Be direct about quality. Bugs matter. Edge cases matter. Fix the whole thing, not the demo path.
- Sound like a builder talking to a builder, not a consultant presenting to a client.
- Never corporate, academic, PR, or hype. Avoid filler, throat-clearing, generic optimism, and founder cosplay.
- Do not add em dashes in prose you compose during the review. Existing templates, quoted text, command output, and required copied labels may contain them. No AI vocabulary: delve, crucial, robust, comprehensive, nuanced, multifaceted, furthermore, moreover, additionally, pivotal, landscape, tapestry, underscore, foster, showcase, intricate, vibrant, fundamental, significant, load-bearing.
- Reply in the language of the user's latest message unless asked otherwise. Code, commands, paths, identifiers, quoted output and question markers (`D<N>`, option letters, `(recommended)`) stay verbatim.
- The user has context you do not: domain knowledge, timing, relationships, taste. Cross-model agreement is a recommendation, not a decision. The user decides.

Good: "auth.ts:47 returns undefined when the session cookie expires. Users hit a white screen. Fix: add a null check and redirect to /login. Two lines."
Bad: "I've identified a potential issue in the authentication flow that may cause problems under certain conditions."

**Bounded closer.** After completing work, report in at most a few short lines: what changed, what was skipped, what to watch. No feature tours or unrequested design notes. Exempt: decision briefs, completion-status blocks, requested explanations, and a skill's mandated report (/qa-only, /plan-*-review, /retro, /document-generate). The rule limits prose around the deliverable, never the deliverable.

Good closer: "Renamed the flag in 3 files, regenerated docs, tests green. Skipped the CLI alias (unused since v1.2); watch the Windows job."
Bad closer: a tour of every edit, a restatement of the plan, and three paragraphs justifying choices nobody questioned.

## Question Tuning (skip entirely if `QUESTION_TUNING: false`)

Before each decision brief (AskUserQuestion or Conductor/fallback prose), choose `question_id` from `~/.claude/skills/gstack/scripts/question-registry.ts` or `{skill}-{slug}`, then run `~/.claude/skills/gstack/bin/gstack-question-preference --check "<id>"`; for an unregistered id, write the question summary to `.gstack/tmp/qt.txt` (file-write tool) and append `--summary-file .gstack/tmp/qt.txt` (one-way keyword check). `AUTO_DECIDE` means choose the recommended option and say "Auto-decided [summary] → [option] (your preference). Change with /plan-tune." `ASK_NORMALLY` means ask.
Expand Down
2 changes: 1 addition & 1 deletion plan-eng-review/SKILL.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Recommendation: A when a branch diff exists, otherwise B. Reply with A, B, or C.

After target selection, use the preamble's full decision brief, transport and continuous D-numbering. Setup questions approve no engineering remedies.

**Format precedence:** Copy required command, output and question formats exactly. Apply Voice to newly composed prose.
**Format precedence:** Copy required command, output and question formats exactly, em dashes included. Apply Voice to newly composed prose.

**Startup sequence** (after target selection):
1. Run the Preamble command and its startup instructions (Context Recovery and the preamble's own one-time setup prompts; the Prior Learnings cross-project question waits for Step 0). Defer Operational Self-Improvement, Telemetry and Plan Status Footer to finish; format/transport rules apply throughout.
Expand Down
26 changes: 14 additions & 12 deletions review/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -650,9 +650,9 @@ findings and decides completion.

## Step 5: Fix-First Review

Before edits, confirm every dispatched reader has returned or is confirmed stopped.
For an active or unknown reader/writer, wait or confirm it is stopped; if that
cannot be confirmed, persist incomplete at Step 5.8 and STOP without edits.
Before edits, every dispatched reader/writer must have returned or be confirmed
stopped: wait, and if that cannot be confirmed, persist incomplete at Step 5.8 and
STOP without edits.
Terminal failure does not block fixes from independent evidence. Missing required
output still makes the pass incomplete, even after the reader is stopped.

Expand Down Expand Up @@ -806,7 +806,7 @@ After outputting your own findings, if Greptile comments were classified in Step

Before replying to any comment, run greptile-triage.md's **Escalation Detection** to choose Tier 1 (friendly) or Tier 2 (firm) reply templates.

1. **VALID & ACTIONABLE comments:** Use their Step 5a–5d disposition; do not ask a second fix question. Step 5c alone supplies A) Fix / B) Skip for ASK items. After a completed fix, use the **Fix reply template** with diff and explanation; cite the current diff if uncommitted, never invent a commit SHA. A Skip leaves the defect unresolved and grants no new fix permission. If evidence disproves the finding, reclassify it below.
1. **VALID & ACTIONABLE comments:** Use their Step 5a–5d disposition; do not ask a second fix question. After a completed fix, use the **Fix reply template** with diff and explanation; cite the current diff if uncommitted, never invent a commit SHA. A Skip leaves the defect unresolved and grants no new fix permission. If evidence disproves the finding, reclassify it below.

2. **FALSE POSITIVE comments:** These are reply decisions, not code approval. Show file:line (or [top-level]), summary, permalink and evidence, then ask:
- A) Reply explaining why this is incorrect (recommended if clearly wrong)
Expand Down Expand Up @@ -835,6 +835,9 @@ Before replying to any comment, run greptile-triage.md's **Escalation Detection*
final: repeat Steps 3–5 with a full start.
2. On a repeat, execute Steps 3–5 in order. At Step 4.7, an edited pass supersedes
every earlier QA capture (exploratory §4): rerun each probe the verdict relies on.
These reruns are revalidation, so they run even after smoke expiry; keep the
PROBE_DIR. Earlier provisional sections link checkpoints; only the final pass
runs its once-only `materialize`.
A zero-edit pass reuses only this invocation's unchanged-input QA evidence,
rerunning any probe whose inputs changed or are uncertain. Reusing never skips a review step.
3. **Verify completed actions.** On the final zero-edit pass, reconcile this
Expand All @@ -846,9 +849,8 @@ Before replying to any comment, run greptile-triage.md's **Escalation Detection*
defects and unresolved counts; earlier fixes do not suppress them.
4. **Recheck skipped advice.** Re-read its final-snapshot supporting source and
reconfirm the decision; otherwise report its history without a reusable skip.
The logger computes `snapshot_covered_paths` from eligible paths whose raw bytes
equal the bound snapshot blobs (`[]` if none). Never carry prior-cycle, supplied
or prior-record coverage forward or build this proof yourself. Fixed advice
The logger computes `snapshot_covered_paths` itself; never carry prior-cycle,
supplied or prior-record coverage forward or build this proof yourself. Fixed advice
needs no skip coverage.

### 2. Fill the record
Expand Down Expand Up @@ -878,14 +880,14 @@ pass: report it with its reason.
`helper_target`. Recheck source after fixes. The logger uses `sharedLibsFingerprint`,
never supplied/model hashes.
Actions: `auto-fixed` (Step 5b), `fixed` (approved **and completed** in Step 5d),
`skipped` (explicit Skip in Step 5c). Advice is never `auto-fixed`; pending
`skipped` (explicit Skip in Step 5c),
`open` (any other defect, e.g. unanswered). Advice is never `auto-fixed`; pending
advice stays in the response, not the record. Exclude prior Step 5.0
suppressions; include this invocation's revalidated decisions.
- Gate findings additionally carry `gate` (the RH tag, e.g. `"RH-15"`), `gate_id`
(the tool's hunk identity), `reason` (for `kept`) and one of the actions
`kept`, `restored` or `open`. Never store hunk text, test names or commit
messages in the record (it is brain-synced). `open` findings count in
`issues_found` and in `critical`/`informational` by severity. The logger stamps
messages in the record (it is brain-synced). The logger stamps
`actor` from `gstack-session-kind` itself and discards any `actor` you supply;
for a non-interactive session it also forces `action: "open"` on every gate
finding. Dispositions are per invocation: `/ship`'s own review pass asks again.
Expand All @@ -897,8 +899,8 @@ pass: report it with its reason.
`TIMESTAMP` is ISO 8601; `COMMIT` is `git rev-parse --short HEAD`.
`quality_score` is Step 4.6's specialist score (`10.0` when small-diff specialists
were skipped or this host omits Review Army). This default is not completion evidence;
unresolved non-advisory core defects still count in `issues_found`,
`critical`, `informational`. The logger builds trusted `review_binding` from the
unresolved defects, `open` ones included, still count in `issues_found` and
by severity in `critical`/`informational`. The logger builds trusted `review_binding` from the
validated captured branch digest, discarding caller bindings. Never invent a binding
or replace REVIEW_START at log time; finish only this pass's own token.

Expand Down
Loading
Loading