mirror of
https://github.com/garrytan/gstack.git
synced 2026-10-03 09:56:57 +02:00
v1.91.11.0 refactor: one state-root rule, browse route table, shared shard engine, PTY harness split, MECE review resolvers (#3002)
* refactor(resolvers): split review.ts into MECE resolver modules (pure move) Move every function from scripts/resolvers/review.ts, unchanged, into: - review-dashboard.ts: review dashboard, plan-file review report - plan-gates.ts: approval check, exit-plan-mode gate, plan-file discovery, plan-completion audit/gate (ship + review), plan verification exec - spec-review.ts: both spec review loops, benefits-from, anti-shortcut clause - outside-voice-steps.ts: Codex second opinion, adversarial step, Codex plan review, Codex doc review, disabled-outside record - review-scope.ts: scope drift, cross-review dedup, shared-code reuse review.ts is deleted; index.ts imports the new modules. gen-skill-docs output is byte-identical for every host (--host all). Test imports and source-path references are re-pointed; the two source-text report/gate tests in gen-skill-docs.test.ts become behavioral renders across every consuming skill and host. All 46 touchfile entries that named review.ts now name all five modules, guarded by a recorded selection golden. * test(browse): black-box auth matrix for every server route and both surfaces Drives buildFetchHandler fetchLocal/fetchTunnel with no token, wrong token, root token, scoped token and the SSE cookie for all 33 routes, plus unmatched paths and wrong methods. Denials assert today's exact status, body and content type; allowed credentials assert the handler was reached. Written against the unchanged if-chain server so the W3 route-table refactor must keep it green. * refactor(shard-engine): move scripts/test-strict-output.ts to scripts/lib/shard-engine.ts The shared shard engine grows from the existing strict-output module (runShardChild, killProcessGroup, signal forwarding, strict classifier). scripts/test-strict-output.ts stays as a re-export so existing importers, mock.module paths and the strict-output/run-shard-child tests are unchanged. The engine inherits the global touchfile entry; the free runner's CLI-routing fixture copies the new module. * refactor(resolvers): decompose the three >150-line review resolvers (output-neutral) Split generateAdversarialStep, generateCodexPlanReview and generatePlanCompletionAuditInner into per-section helpers whose template literals are copied verbatim, so every function in the new modules is at or under 150 lines. gen-skill-docs output is byte-identical for every host (--host all, compared against96764e80with a fixed --link-root). * refactor(resolvers): one outside-voice failure policy (deliberate prose unification) outsideVoiceFailurePolicy(ctx, opts) in outside-voice.ts now renders the auth / timeout / empty-response bullets for all four call sites that hand-typed them (Codex second opinion, adversarial step, Codex plan review, design outside voices). Options are explicit per site (timeoutMinutes, onTimeout, stderrOnEmpty, fallback, escape) with no defaults. Deliberate generated-prose changes (every host): - office-hours: 'Fall back to <native> subagent.' becomes 'Fall back to the <native> subagent below.' - plan-devex-review: the plain 'Auth failure (stderr contains ...)' bullets become the canonical bold bullets; auth also triggers on 'API key'; 'auth failed' becomes 'authentication failed'. - review/ship adversarial: 'exceeded 9 minutes and was terminated' becomes 'timed out after 9 minutes and was terminated'; the timeout is still MISSING COVERAGE. - design outside voices: unchanged. Adds ratchet (d) (test/outside-voice-failure-policy.test.ts) with a reasoned allowlist for /codex's own CLI errors, the MISSING COVERAGE retention test, refreshed codex/factory ship goldens, and outside-voice.ts in every touchfile entry of review.ts and design.ts (selection golden extended). * test(pty): fake PTY session driver with an injectable clock through the runner launch seam The three plan-skill runners take an optional PtyDriver (launch, now, monotonic, sleep); omitted, they use the real launcher and clocks exactly as before. test/helpers/pty/fake-session.ts feeds scripted frames through that seam, and claude-pty-runner.runners.unit.test.ts runs observation, counting and floor for success, deadline timeout, permission prompt and plan-ready outcomes with no CLI or real timers. These cases must stay green unchanged through the W4 split and the runPtySession extraction. Touchfiles: every entry that lists claude-pty-runner.ts or pty-screen.ts now also lists test/helpers/pty/**. * refactor(shard-engine): run both lanes on the shared engine; lane policy injected Engine (scripts/lib/shard-engine.ts) gains the W2 primitives: per-shard tmp/Chromium sandbox + async cleanup backstop, log-path allocation and full-stream log capture, one duration-seed reader/writer with a lane predicate, LanePolicy (seed predicate + zero-execution verdict), strictShardStatus, and the shared CLI flag loop. runShardChild takes an optional companion (signal/settle) and waits a bounded 250ms to reap a wall-killed child. Free lane stops spawning shards itself: runFreeShard uses runShardChild with trackShardBrowser as the companion (win32 path unchanged: no process group, no negative-pid kill). Its sync state-dir removal stays lane policy. Paid lane uses the sandbox, log, seed, verdict and flag primitives; the hollow-shard guard applies PAID_LANE_POLICY. Lane outcomes are unchanged (free keeps >= 0 seeds and file-count zero-exec rule; paid keeps > 0 seeds, warning under selection and passed-empty under EVALS_ALL). paid-free-boundary's closure assertion now names the engine module, where the strict classifier lives. * test(shard-engine): engine unit tests, fixture-corpus equivalence, per-lane CLI parity - test/shard-engine.test.ts: failing/unhandled/module-load output fails both lanes, per-lane zero-execution and seed rules, whole-group kill on a wall timeout (both lanes), mocked-win32 path with no negative-pid kill, companion settle order, log capture, sandbox isolation, flag loop. - test/shard-engine-equivalence.test.ts + test/fixtures/shard-equivalence: seven outcome fixtures plus one real shard, run through both lanes and compared with classifications recorded from the base runners (96764e80). - test/shard-cli-parity.test.ts + test/fixtures/shard-cli-parity: flag set, defaults, validation errors and the Unknown argument error per lane match the base runners. * refactor(shard-engine): decompose runFreeShard and runPaidShard to <= 150 lines Output-neutral extraction under the fixture-corpus equivalence and runner tests: captureFreeStream, explainFreeVerdict and logFreeRecovery (free); paidShardCommand, settleShardSpool, settleBootstrapRetention and printLogTail (paid). The bootstrap scope-creation block that bootstrap-retention.test.ts evaluates stays verbatim. * refactor(pty): split claude-pty-runner.ts into test/helpers/pty/* behind a barrel Pure move: every line of the former 5,047-line runner lands verbatim in one module (four private helpers gain `export` for cross-module use): binary, screen (absorbs test/helpers/pty-screen.ts, which now re-exports it), launch, session (PtyDriver), judge, classify, auq, plan-native, boundaries, runners/{observation,counting,floor}. claude-pty-runner.ts re-exports the original public surface by name; pty/ modules import siblings directly. Tests that read the runner's source text: - rewritten as behavioral: the unit test's model-pin tripwire (fake CLI argv: fallback chain, --model before extraArgs, hermetic --strict-mcp-config), pty-skill-seeding-wiring (runners through the fake driver; launcher through a fake CLI reporting CLAUDE_CONFIG_DIR). The "three wrappers forward model" grep is replaced by the runners' fake-driver launch assertions. - pty-screen-session / pty-screen-supervision: stop copying runner source; they mock.module the real pty/screen.ts (and the fixture cleanup) instead. - re-pointed to the owning module (they execute a sliced runner body with injected boundaries; no seam exists for those boundaries yet): eng-seeded-completion-ai, plan-floor-permission, plan-create-prepublication, plan-count-completion; hermetic-wiring's source guard now reads pty/launch.ts and scans every pty/ module for raw process.env spreads. - plan-count-timeout and pty-output-wake mock the viewport at pty/screen.ts. * test(ratchet-c): enforcing module/function size ratchet and moved-code touchfile coverage Ratchet (c) ships enforcing: test/helpers/module-size.ts counts file and top-level function lengths by brace matching over masked source (strings, comments, regex literals and template text masked; ${} expressions kept), covering function declarations, arrow functions assigned to consts and route-table handler properties, with no parser dependency. Its self-test uses template literals and code-fence braces copied from scripts/resolvers/review.ts and design.ts. test/fixtures/module-size-ratchet.json binds scripts/lib/shard-engine.ts (<= 800 lines, <= 150 per function) and records the residual runner sizes (free 2352, paid 1921) as non-growth caps; allowlist entries are keyed on file plus matched text and need a reason. Failure output lists file:line, the rule, Fix: and the allowlist path. touchfiles.test.ts gains the moved-code superset check over test/fixtures/touchfile-move-goldens/ (W2 golden recorded at96764e80: test-strict-output.ts and test-paid-shards.ts global, test-free-shards.ts none). * refactor(browse): declared route table replaces the buildFetchHandler if-chain The ~1,300-line if-chain in buildFetchHandler becomes a route table: each entry declares method, path, auth kind and surfaces, and one auth gate in browse/src/routes/table.ts returns the per-kind denial (root-bearer, scoped, root-or-sse-cookie: 401 Unauthorized; root-token: 403 Root token required; extension-origin: 403 Forbidden). Unmatched requests take the declared fallthrough (root-bearer check, then plain-text 404). Handlers move to browse/src/routes/{core,pairing,pty,tokens,tunnel,activity,commands,files, inspector}.ts and receive a RouteContext with auth checks as functions instead of closing over factory locals. Dispatch order is unchanged: tunnel filter, beforeRoute overlay, gate, handler. TUNNEL_PATHS stays a literal in server.ts. Behavior-preserving: the black-box auth matrix from the previous commit passes unchanged. /memory and /inspector/events are declared root-bearer because the blanket check always ran before their SSE-cookie branch. Source-text route tests are rewritten as behavioral tests through buildFetchHandler or a route's real handler with a stub RouteContext (browse/test/route-test-harness.ts). Checks with no runtime seam are re-pointed to the route modules: Surface type, /inspector/events SSE helper, sanitizeReplacer imports, /pty-inject-scan sidecar-client import, and the ngrok config lookup and startTunnel wiring that stay in server.ts. * test(browse): stubbed-handler auth matrix and route inventory for the route table Every ROUTES entry runs through the real dispatcher and gate with stub handlers on each declared surface and six credentials; denials assert the exact status and body each auth kind returned at96764e8, admitted credentials assert the handler ran (with the gate's TokenInfo for scoped routes). Also pins the reviewed route inventory (method, path, auth kind, surfaces), that every entry declares auth and surfaces, that the table's tunnel paths equal the TUNNEL_PATHS literal with GET /connect admitted, the unmatched fallthrough, and that the root token is rejected on every tunnel route through buildFetchHandler. * test(browse): ratchet (b) keeps route dispatch inside the route table Scans browse/src/server.ts and browse/src/routes/*.ts for pathname comparisons; only the table matcher and the tunnel-surface filter are allowed, listed with reasons in browse/test/fixtures/route-dispatch-allowlist.json (keyed on file plus line text). Also checks every entry declares auth and surfaces and that gstack registers no beforeRoute overlay itself. Self-tests plant a violation and assert the file:line, Fix: and allowlist path in the message, that a shifted line stays allowlisted, and that a reasonless entry is rejected. * test: touchfile superset check for modules moved out of browse/src/server.ts Records the paid evals selected by touching browse/src/server.ts at96764e80(17 E2E, 1 LLM judge) and asserts every browse/src/routes/*.ts module selects a superset. The test reads every golden in test/fixtures/moved-module-selection/ so other moved-code goldens can sit beside it. * test(shard-engine): give non-timeout corpus fixtures CI headroom; keep the POSIX golden off the Windows lane Only the wall-timeout fixture keeps a 3s wall; the rest get 60s so a loaded host cannot turn a pass into a timeout. Base and branch runners still agree on every classification under the new walls. The Windows exclusion entry moves the free runner's ratchet (c) residual cap to 2356 lines. * refactor(pty): one runPtySession loop drives observation, counting and floor test/helpers/pty/session.ts owns launch -> start -> (poll -> tick)* -> timeout and the failure contract the three runners each hand-rolled: the run's own error wins over capture and close errors, close always runs, owned fixture cleanup runs last (also when launch fails). Each runner now supplies a PtySessionPlan: its boot/command step, poll cadence (2s observation/floor sleep; counting's output wake + 250ms coalesce), tick policy (permission handling, native identity, terminal rules stay per runner because they differ) and capture hooks. The runner bodies are decomposed into top-level steps so no function exceeds 150 lines; behavior is unchanged and the fake-driver cases from the first W4 commit pass unmodified. The counting capture step and the native completion-summary predicate are now named functions (countingCapture, isNativeCompletionSummary), so plan-create-prepublication and plan-count-completion call them directly instead of executing sliced source. The two harnesses that still execute a sliced runner body with injected boundaries (eng-seeded-completion-ai, plan-floor-permission) pass the PtyDriver seam instead of overriding Date/Bun.sleep. * test(ratchet-c): register route modules, review resolver modules and server.ts residual cap * refactor(pty): decompose launchClaudePty and engNumberedFindingAUQ under 150 lines launchClaudePty (349 lines) becomes launch preparation (args, hermetic child env, owned state roots), recorder creation, spawn, the trust-dialog watcher, close, and the session handle over one PtyProcess state object. The failure order is unchanged: abort the viewport, dispose any recorders created so far, dispose the viewport, rethrow. The --model / --strict-mcp-config ordering and seedSkills wiring stay pinned by the behavioral fake-CLI tests. engNumberedFindingAUQ (345 lines) keeps its guards and dispatch; each self-contained issue family (declared cache, library retry hooks, cache owner, injected singleton, shared writers, injected export) moves verbatim into its own function. Every pty/ module is now <= 800 lines and every top-level function <= 150 lines. * test(pty): split claude-pty-runner.unit.test.ts along the pty/ module seams The 188 unit tests move verbatim into claude-pty-runner.{screen,classify, auq,launch,plan-native,boundaries}.unit.test.ts (test names unchanged; each file imports only what it uses from the barrel). The five files that no longer read a SKILL.md template join the test-of-test ratchet baseline with a reason. * test(touchfiles): moved PTY modules keep their paid-eval selection test/fixtures/touchfile-selection/w4-pty.json records, at96764e8, the paid evals selected by touching test/helpers/claude-pty-runner.ts (20) and test/helpers/pty-screen.ts (20). touchfiles.test.ts now asserts every .ts file under test/helpers/pty/ (and pty/screen.ts for both sources) selects a superset, reading every golden in that directory so later moves can add one; a planted-violation case pins the report and its Fix line. * fix(browse): unexchanged pair setup keys no longer authenticate bearer requests validateToken accepted a gsk_setup_ key as a bearer on /command, /batch and /file (found while building the W3 auth matrix). A setup key now only authenticates the /connect exchange. * W1: one state-root owner (lib/state-root.ts + bin/gstack-state-root.sh), gstack-paths --explain and fail-stop, parity tests * W1: guarded migration of every executable state-root site; uninstall deletes only ~/.gstack Bins, careful/freeze hooks, setup, upgrade migrations, browse/src, design, ios-qa daemon, lib and scripts resolve the state root through bin/gstack-state-root.sh (bash) or lib/state-root.ts (TS). Bins source the twin and stop with a reinstall message when it is missing; hooks source it and never spawn gstack-paths. browse/src/config.ts and lib/cso/state.ts delegate to resolveStateRoot. Analytics writers and readers move together so the usage log stays one file. gstack-uninstall deletes state only at ~/.gstack, refuses (exit 2) when it resolves to /, $HOME or an ancestor, the checkout or the git root, and leaves any other resolved root in place with the removal command. Fixtures that copy single bins now copy the twin. * W1: privacy keys and trust-policy deny tiers merge across state roots; gstack-config reporting; test hermeticity readConfigKey / gstack_read_config_key return the most restrictive telemetry, memorable_recall, codex_reviews and update_check across the resolved root and ~/.gstack; other keys read the resolved root only. gstack-config set reports an overriding root with the exact override command, list shows the winning root and a root-variable disagreement line. gstack-gbrain-repo-policy get merges deny/read-only tiers. gstack-egress reads through readConfigKey. test-setup.ts strips inherited GSTACK_STATE_ROOT/GSTACK_STATE_DIR and redirects the legacy root. * W1: shared hook logging helper (hosts/claude/hooks/hook-log.ts) One hook-errors.log writer: root from resolveStateRoot, 0600 on every append, opt-in rate limit used only by memorable-user-prompt. The five hooks route through it. * W1: docs/state-root.md and README troubleshooting pointer Precedence table, a real --explain example, the move-your-state recipe, merged privacy keys, the uninstall rule, the resolver-failure fix, and the plugin-mode note (evidence gate: no official plugin distribution). * W1b: template and resolver prose resolve state through guarded gstack-paths; ratchet (a) Every gstack-paths eval in templates and resolvers carries the fail-stop guard; executable ~/.gstack paths in bash blocks (context recovery preamble, eureka log, analytics, project artifacts, upgrade snooze, setup-gbrain lock, retro snapshots, ship consent marker) use $GSTACK_STATE_ROOT, and the writer prose that pairs with them points at the printed PROJECT_DIR / RETRO_FILE. ship drops export GSTACK_STATE_ROOT. SKILL.md regenerated (claude + codex), ship goldens re-pinned, parity and context-budget caps raised to the measured sizes with notes. test/state-root-ratchet.test.ts enforces the rule with a reasoned allowlist; W1 touchfile entries plus a superset golden. * refactor: apply W1 state-root edits in W2/W3/W5-owned files; one moved-code touchfile golden for all workstreams * test: fold the moved-code touchfile golden into touchfiles.test.ts; fix integration fixture closure and caps * v1.91.11.0: CHANGELOG, TODOS, docs and conventions for the refactor wave * test: re-measure plan-ceo/design-consultation caps and ship goldens after the guarded plan-discovery and spec-review blocks; add the state-root twin to the workflow-boundaries fixture * fix(windows): migrations resolve their directory with either path separator; state-root parity compares under the HOME Git Bash actually sees * fix(review,ship): state plan-check timing after smoke expiry and test_stub Skip semantics (review workflow judge clarity) * test(qa-eval): webhook fix eval asks for the fix loop's post-repair probes; eight-scenario coverage stays in the report-only case and the harness recheck * test(qa-eval): re-pin the webhook prompt contract to the fix-loop stage; R29 coverage omissions stay bound by the report-only case * fix(review,ship): plan checks publish a checkpoint before each probe; only the smoke expiry stop is skipped * fix(qa): carry #2999's checkpoint receipt link, report-template line and full-revision placeholder (identical hunks) * test(qa-callers): disable git auto maintenance in the caller fixture Git 2.47+ runs auto maintenance detached after commit; on the CI runner's git 2.55 it rewrote .git/objects fan-out directories while the write observer was running, which surfaced as unauthorized mutations. Same gc.auto=0 / maintenance.auto=false guard the shared-libs fixture already uses. * test(plan-mode-no-op): require prose evidence for the prose-fallback members so a spinner-frame judge verdict cannot end the run as asked * test(ship-docsync): carry #2999's seeded-attempt docsync harness (identical files) The doc-sync fault cases replayed attempt 1 before reaching their gate and ran out of their 285s budget. The fixture now seeds attempt 1 and the parent starts at the gate under test. Taken byte-identical from origin/capy/audit-fix-wave (fb526898,e6ac813d,6ce10ff7,d0c53577,77cce3be). Local: stale-before, recovery and late-result 6/6 PASS (97-164s); the whole file 12/12 PASS.
This commit is contained in:
1 parent
96764e80a6
commit
df89475b17
383 files changed
+19348
-12625
No files matched your search
Vendored
+1
-1
@@ -62,6 +62,6 @@
|
||||
"spec": 14993,
|
||||
"sync-gbrain": 13975,
|
||||
"test-audit": 10439,
|
||||
"unfreeze": 393
|
||||
"unfreeze": 448
|
||||
}
|
||||
}
|
||||
+9
-6
@@ -240,7 +240,8 @@ At session start or after compaction, recover recent project context.
|
||||
```bash
|
||||
eval "$(~/.claude/skills/gstack/bin/gstack-slug 2>/dev/null)"
|
||||
_BRANCH=$(git branch --show-current 2>/dev/null | tr -cd 'a-zA-Z0-9._/-') || :; _BRANCH=${_BRANCH:-unknown}
|
||||
_PROJ="${GSTACK_HOME:-$HOME/.gstack}/projects/${SLUG:-unknown}"
|
||||
eval "$(~/.claude/skills/gstack/bin/gstack-paths)"; : "${GSTACK_STATE_ROOT:?gstack-paths failed; reinstall with ./setup or /gstack-upgrade}"
|
||||
_PROJ="$GSTACK_STATE_ROOT/projects/${SLUG:-unknown}"
|
||||
if [ -d "$_PROJ" ]; then
|
||||
echo "--- RECENT ARTIFACTS ---"
|
||||
find "$_PROJ/ceo-plans" "$_PROJ/checkpoints" -type f -name "*.md" 2>/dev/null | xargs -r ls -t 2>/dev/null | head -3
|
||||
@@ -350,7 +351,8 @@ Then build the complete version of what remains.
|
||||
|
||||
**Eureka:** When first-principles reasoning contradicts conventional wisdom, name it and log:
|
||||
```bash
|
||||
jq -n --arg ts "$(date -u +%Y-%m-%dT%H:%M:%SZ)" --arg skill "SKILL_NAME" --arg branch "$(git branch --show-current 2>/dev/null)" --arg insight "ONE_LINE_SUMMARY" '{ts:$ts,skill:$skill,branch:$branch,insight:$insight}' >> ~/.gstack/analytics/eureka.jsonl 2>/dev/null || true
|
||||
eval "$(~/.claude/skills/gstack/bin/gstack-paths)"; : "${GSTACK_STATE_ROOT:?gstack-paths failed; reinstall with ./setup or /gstack-upgrade}"
|
||||
jq -n --arg ts "$(date -u +%Y-%m-%dT%H:%M:%SZ)" --arg skill "SKILL_NAME" --arg branch "$(git branch --show-current 2>/dev/null)" --arg insight "ONE_LINE_SUMMARY" '{ts:$ts,skill:$skill,branch:$branch,insight:$insight}' >> "$GSTACK_STATE_ROOT/analytics/eureka.jsonl" 2>/dev/null || true
|
||||
```
|
||||
|
||||
## Completion Status Protocol
|
||||
@@ -1051,7 +1053,8 @@ git config --get core.hooksPath >/dev/null 2>&1 || _HOOKS_CONFIG_STATUS=$?
|
||||
if [ -n "$_HOOK_PATH" ] && [ -n "$_HOOKS_DIR" ] && [ "$_HOOKS_CONFIG_STATUS" = "1" ] && [ ! -L "$_HOOKS_DIR" ]; then
|
||||
_HOOKS_IN_GIT_DIR="yes"
|
||||
fi
|
||||
_PREPUSH_PROMPTED=$([ -f "${GSTACK_HOME:-$HOME/.gstack}/.redact-prepush-prompted" ] && echo "yes" || echo "no")
|
||||
eval "$(~/.claude/skills/gstack/bin/gstack-paths)"; : "${GSTACK_STATE_ROOT:?gstack-paths failed; reinstall with ./setup or /gstack-upgrade}"
|
||||
_PREPUSH_PROMPTED=$([ -f "$GSTACK_STATE_ROOT/.redact-prepush-prompted" ] && echo "yes" || echo "no")
|
||||
if [ "$_REDACT_PREPUSH" = "true" ] && [ "$_HOOKS_IN_GIT_DIR" = "yes" ] && [ "$_HOOK_STATE" != "unmanaged" ]; then
|
||||
~/.claude/skills/gstack/bin/gstack-redact install-prepush-hook || exit $?
|
||||
fi
|
||||
@@ -1088,7 +1091,8 @@ Branch on the echoed values:
|
||||
ALWAYS (after either answer, but NOT if the question itself failed to
|
||||
render — a failed AskUserQuestion must re-offer next time):
|
||||
```bash
|
||||
touch "${GSTACK_HOME:-$HOME/.gstack}/.redact-prepush-prompted"
|
||||
eval "$(~/.claude/skills/gstack/bin/gstack-paths)"; : "${GSTACK_STATE_ROOT:?gstack-paths failed; reinstall with ./setup or /gstack-upgrade}"
|
||||
touch "$GSTACK_STATE_ROOT/.redact-prepush-prompted"
|
||||
```
|
||||
3. **Declined earlier** — continue
|
||||
without comment.
|
||||
@@ -1174,8 +1178,7 @@ The shell supplies the branch. Run this automatically, without confirmation.
|
||||
After a successful ship, show the non-blocking /plan-tune nudge once per machine:
|
||||
|
||||
```bash
|
||||
eval "$(~/.claude/skills/gstack/bin/gstack-paths)"
|
||||
export GSTACK_STATE_ROOT
|
||||
eval "$(~/.claude/skills/gstack/bin/gstack-paths)"; : "${GSTACK_STATE_ROOT:?gstack-paths failed; reinstall with ./setup or /gstack-upgrade}"
|
||||
_NUDGE_MARKER="$GSTACK_STATE_ROOT/.plan-tune-nudge-shown"
|
||||
_QT=$(~/.claude/skills/gstack/bin/gstack-config get question_tuning 2>/dev/null || echo "false")
|
||||
if [ ! -f "$_NUDGE_MARKER" ] && [ "$_QT" = "false" ]; then
|
||||
|
||||
+17
-11
@@ -248,7 +248,8 @@ At session start or after compaction, recover recent project context.
|
||||
```bash
|
||||
eval "$($GSTACK_BIN/gstack-slug 2>/dev/null)"
|
||||
_BRANCH=$(git branch --show-current 2>/dev/null | tr -cd 'a-zA-Z0-9._/-') || :; _BRANCH=${_BRANCH:-unknown}
|
||||
_PROJ="${GSTACK_HOME:-$HOME/.gstack}/projects/${SLUG:-unknown}"
|
||||
eval "$($GSTACK_BIN/gstack-paths)"; : "${GSTACK_STATE_ROOT:?gstack-paths failed; reinstall with ./setup or /gstack-upgrade}"
|
||||
_PROJ="$GSTACK_STATE_ROOT/projects/${SLUG:-unknown}"
|
||||
if [ -d "$_PROJ" ]; then
|
||||
echo "--- RECENT ARTIFACTS ---"
|
||||
find "$_PROJ/ceo-plans" "$_PROJ/checkpoints" -type f -name "*.md" 2>/dev/null | xargs -r ls -t 2>/dev/null | head -3
|
||||
@@ -358,7 +359,8 @@ Then build the complete version of what remains.
|
||||
|
||||
**Eureka:** When first-principles reasoning contradicts conventional wisdom, name it and log:
|
||||
```bash
|
||||
jq -n --arg ts "$(date -u +%Y-%m-%dT%H:%M:%SZ)" --arg skill "SKILL_NAME" --arg branch "$(git branch --show-current 2>/dev/null)" --arg insight "ONE_LINE_SUMMARY" '{ts:$ts,skill:$skill,branch:$branch,insight:$insight}' >> ~/.gstack/analytics/eureka.jsonl 2>/dev/null || true
|
||||
eval "$($GSTACK_BIN/gstack-paths)"; : "${GSTACK_STATE_ROOT:?gstack-paths failed; reinstall with ./setup or /gstack-upgrade}"
|
||||
jq -n --arg ts "$(date -u +%Y-%m-%dT%H:%M:%SZ)" --arg skill "SKILL_NAME" --arg branch "$(git branch --show-current 2>/dev/null)" --arg insight "ONE_LINE_SUMMARY" '{ts:$ts,skill:$skill,branch:$branch,insight:$insight}' >> "$GSTACK_STATE_ROOT/analytics/eureka.jsonl" 2>/dev/null || true
|
||||
```
|
||||
|
||||
## Completion Status Protocol
|
||||
@@ -1415,12 +1417,13 @@ Coverage line: `Test Coverage Audit: N new code paths. M covered (Y% any test, X
|
||||
After producing the coverage diagram, write a test plan artifact so `/qa` and `/qa-only` can consume it:
|
||||
|
||||
```bash
|
||||
eval "$($GSTACK_ROOT/bin/gstack-slug 2>/dev/null)" && mkdir -p ~/.gstack/projects/$SLUG
|
||||
eval "$($GSTACK_ROOT/bin/gstack-paths)"; : "${GSTACK_STATE_ROOT:?gstack-paths failed; reinstall with ./setup or /gstack-upgrade}"
|
||||
eval "$($GSTACK_ROOT/bin/gstack-slug 2>/dev/null)" && mkdir -p "$GSTACK_STATE_ROOT/projects/$SLUG" && echo "PROJECT_DIR: $GSTACK_STATE_ROOT/projects/$SLUG"
|
||||
USER=$(whoami)
|
||||
DATETIME=$(date +%Y%m%d-%H%M%S)
|
||||
```
|
||||
|
||||
Write to `~/.gstack/projects/{slug}/{user}-{branch}-ship-test-plan-{datetime}.md`:
|
||||
Write to `<PROJECT_DIR>/{user}-{branch}-ship-test-plan-{datetime}.md` (`PROJECT_DIR` printed above):
|
||||
|
||||
```markdown
|
||||
# Test Plan
|
||||
@@ -1575,7 +1578,8 @@ BRANCH=$(git branch --show-current 2>/dev/null | tr '/' '-' | tr -cd 'a-zA-Z0-9.
|
||||
REPO=$(basename "$(git rev-parse --show-toplevel 2>/dev/null)")
|
||||
_PLAN_SLUG=$(git remote get-url origin 2>/dev/null | sed 's|.*[:/]\([^/]*/[^/]*\)\.git$|\1|;s|.*[:/]\([^/]*/[^/]*\)$|\1|' | tr '/' '-' | tr -cd 'a-zA-Z0-9._-') || true
|
||||
_PLAN_SLUG="${_PLAN_SLUG:-$(basename "$PWD" | tr -cd 'a-zA-Z0-9._-')}"
|
||||
for PLAN_DIR in "$HOME/.gstack/projects/$_PLAN_SLUG" "$HOME/.claude/plans" "$HOME/.codex/plans" ".gstack/plans"; do
|
||||
eval "$($GSTACK_ROOT/bin/gstack-paths)"; : "${GSTACK_STATE_ROOT:?gstack-paths failed; reinstall with ./setup or /gstack-upgrade}"
|
||||
for PLAN_DIR in "$GSTACK_STATE_ROOT/projects/$_PLAN_SLUG" "$HOME/.claude/plans" "$HOME/.codex/plans" ".gstack/plans"; do
|
||||
[ -d "$PLAN_DIR" ] || continue
|
||||
PLAN=$(ls -t "$PLAN_DIR"/*.md 2>/dev/null | xargs grep -l "$BRANCH" 2>/dev/null | head -1)
|
||||
[ -z "$PLAN" ] && PLAN=$(ls -t "$PLAN_DIR"/*.md 2>/dev/null | xargs grep -l "$REPO" 2>/dev/null | head -1)
|
||||
@@ -2105,6 +2109,7 @@ Run the shared preflight; start its smoke guard once. Guard every smoke probe. F
|
||||
**3. Run smoke and plan checks.**
|
||||
Follow the shared Probe loop for smoke checks, replays and revalidation until the smoke limit.
|
||||
Then run required plan checks, even after smoke expires, using the same procedure but no smoke guard; never reset the clock.
|
||||
Plan checks and their revalidation publish a checkpoint beside D before each probe but skip the `G status D` expiry stop and use `--timeout-ms`, not `--deadline D`. A smoke recheck after expiry is not-run.
|
||||
Use finite command timeouts, capped at the caller's remaining time if it has a deadline.
|
||||
Await clock/guard results before acting. When the caller's deadline expires, mark unfinished checks not-run.
|
||||
|
||||
@@ -2503,7 +2508,7 @@ Present the full output verbatim. An unavailable outside challenge does not bloc
|
||||
|
||||
**Error handling:** Only this optional outside adversarial pass is non-blocking; native completion and structured-review decisions still apply.
|
||||
- **Auth failure:** If stderr contains "auth", "login", "unauthorized", or "API key": "Claude Code authentication failed. Run \`claude auth login\` to authenticate."
|
||||
- **Timeout:** "Claude Code exceeded 9 minutes and was terminated; this pass produced NO findings." A timed-out pass is MISSING COVERAGE, not a clean bill — say so explicitly rather than continuing as if Claude Code had reviewed.
|
||||
- **Timeout:** "Claude Code timed out after 9 minutes and was terminated; this pass produced NO findings." A timed-out pass is MISSING COVERAGE, not a clean bill — say so explicitly rather than continuing as if Claude Code had reviewed.
|
||||
- **Empty response:** "Claude Code returned no response. Stderr: <paste relevant error>."
|
||||
|
||||
|
||||
@@ -3162,7 +3167,8 @@ git config --get core.hooksPath >/dev/null 2>&1 || _HOOKS_CONFIG_STATUS=$?
|
||||
if [ -n "$_HOOK_PATH" ] && [ -n "$_HOOKS_DIR" ] && [ "$_HOOKS_CONFIG_STATUS" = "1" ] && [ ! -L "$_HOOKS_DIR" ]; then
|
||||
_HOOKS_IN_GIT_DIR="yes"
|
||||
fi
|
||||
_PREPUSH_PROMPTED=$([ -f "${GSTACK_HOME:-$HOME/.gstack}/.redact-prepush-prompted" ] && echo "yes" || echo "no")
|
||||
eval "$($GSTACK_ROOT/bin/gstack-paths)"; : "${GSTACK_STATE_ROOT:?gstack-paths failed; reinstall with ./setup or /gstack-upgrade}"
|
||||
_PREPUSH_PROMPTED=$([ -f "$GSTACK_STATE_ROOT/.redact-prepush-prompted" ] && echo "yes" || echo "no")
|
||||
if [ "$_REDACT_PREPUSH" = "true" ] && [ "$_HOOKS_IN_GIT_DIR" = "yes" ] && [ "$_HOOK_STATE" != "unmanaged" ]; then
|
||||
$GSTACK_ROOT/bin/gstack-redact install-prepush-hook || exit $?
|
||||
fi
|
||||
@@ -3199,7 +3205,8 @@ Branch on the echoed values:
|
||||
ALWAYS (after either answer, but NOT if the question itself failed to
|
||||
render — a failed AskUserQuestion must re-offer next time):
|
||||
```bash
|
||||
touch "${GSTACK_HOME:-$HOME/.gstack}/.redact-prepush-prompted"
|
||||
eval "$($GSTACK_ROOT/bin/gstack-paths)"; : "${GSTACK_STATE_ROOT:?gstack-paths failed; reinstall with ./setup or /gstack-upgrade}"
|
||||
touch "$GSTACK_STATE_ROOT/.redact-prepush-prompted"
|
||||
```
|
||||
3. **Declined earlier** — continue
|
||||
without comment.
|
||||
@@ -3264,7 +3271,7 @@ then return here for a new lookup, fresh body and both redaction scans before pu
|
||||
|
||||
1. Resolve the archive directory and branch:
|
||||
```bash
|
||||
eval "$($GSTACK_ROOT/bin/gstack-paths)"
|
||||
eval "$($GSTACK_ROOT/bin/gstack-paths)"; : "${GSTACK_STATE_ROOT:?gstack-paths failed; reinstall with ./setup or /gstack-upgrade}"
|
||||
eval "$($GSTACK_ROOT/bin/gstack-slug)"
|
||||
CURRENT_BRANCH=$(git branch --show-current)
|
||||
SPEC_ARCHIVES="$GSTACK_STATE_ROOT/projects/$SLUG/specs"
|
||||
@@ -3453,8 +3460,7 @@ The shell supplies the branch. Run this automatically, without confirmation.
|
||||
After a successful ship, show the non-blocking /plan-tune nudge once per machine:
|
||||
|
||||
```bash
|
||||
eval "$($GSTACK_ROOT/bin/gstack-paths)"
|
||||
export GSTACK_STATE_ROOT
|
||||
eval "$($GSTACK_ROOT/bin/gstack-paths)"; : "${GSTACK_STATE_ROOT:?gstack-paths failed; reinstall with ./setup or /gstack-upgrade}"
|
||||
_NUDGE_MARKER="$GSTACK_STATE_ROOT/.plan-tune-nudge-shown"
|
||||
_QT=$($GSTACK_ROOT/bin/gstack-config get question_tuning 2>/dev/null || echo "false")
|
||||
if [ ! -f "$_NUDGE_MARKER" ] && [ "$_QT" = "false" ]; then
|
||||
|
||||
+17
-11
@@ -228,7 +228,8 @@ At session start or after compaction, recover recent project context.
|
||||
```bash
|
||||
eval "$($GSTACK_BIN/gstack-slug 2>/dev/null)"
|
||||
_BRANCH=$(git branch --show-current 2>/dev/null | tr -cd 'a-zA-Z0-9._/-') || :; _BRANCH=${_BRANCH:-unknown}
|
||||
_PROJ="${GSTACK_HOME:-$HOME/.gstack}/projects/${SLUG:-unknown}"
|
||||
eval "$($GSTACK_BIN/gstack-paths)"; : "${GSTACK_STATE_ROOT:?gstack-paths failed; reinstall with ./setup or /gstack-upgrade}"
|
||||
_PROJ="$GSTACK_STATE_ROOT/projects/${SLUG:-unknown}"
|
||||
if [ -d "$_PROJ" ]; then
|
||||
echo "--- RECENT ARTIFACTS ---"
|
||||
find "$_PROJ/ceo-plans" "$_PROJ/checkpoints" -type f -name "*.md" 2>/dev/null | xargs -r ls -t 2>/dev/null | head -3
|
||||
@@ -338,7 +339,8 @@ Then build the complete version of what remains.
|
||||
|
||||
**Eureka:** When first-principles reasoning contradicts conventional wisdom, name it and log:
|
||||
```bash
|
||||
jq -n --arg ts "$(date -u +%Y-%m-%dT%H:%M:%SZ)" --arg skill "SKILL_NAME" --arg branch "$(git branch --show-current 2>/dev/null)" --arg insight "ONE_LINE_SUMMARY" '{ts:$ts,skill:$skill,branch:$branch,insight:$insight}' >> ~/.gstack/analytics/eureka.jsonl 2>/dev/null || true
|
||||
eval "$($GSTACK_BIN/gstack-paths)"; : "${GSTACK_STATE_ROOT:?gstack-paths failed; reinstall with ./setup or /gstack-upgrade}"
|
||||
jq -n --arg ts "$(date -u +%Y-%m-%dT%H:%M:%SZ)" --arg skill "SKILL_NAME" --arg branch "$(git branch --show-current 2>/dev/null)" --arg insight "ONE_LINE_SUMMARY" '{ts:$ts,skill:$skill,branch:$branch,insight:$insight}' >> "$GSTACK_STATE_ROOT/analytics/eureka.jsonl" 2>/dev/null || true
|
||||
```
|
||||
|
||||
## Completion Status Protocol
|
||||
@@ -1395,12 +1397,13 @@ Coverage line: `Test Coverage Audit: N new code paths. M covered (Y% any test, X
|
||||
After producing the coverage diagram, write a test plan artifact so `/qa` and `/qa-only` can consume it:
|
||||
|
||||
```bash
|
||||
eval "$($GSTACK_ROOT/bin/gstack-slug 2>/dev/null)" && mkdir -p ~/.gstack/projects/$SLUG
|
||||
eval "$($GSTACK_ROOT/bin/gstack-paths)"; : "${GSTACK_STATE_ROOT:?gstack-paths failed; reinstall with ./setup or /gstack-upgrade}"
|
||||
eval "$($GSTACK_ROOT/bin/gstack-slug 2>/dev/null)" && mkdir -p "$GSTACK_STATE_ROOT/projects/$SLUG" && echo "PROJECT_DIR: $GSTACK_STATE_ROOT/projects/$SLUG"
|
||||
USER=$(whoami)
|
||||
DATETIME=$(date +%Y%m%d-%H%M%S)
|
||||
```
|
||||
|
||||
Write to `~/.gstack/projects/{slug}/{user}-{branch}-ship-test-plan-{datetime}.md`:
|
||||
Write to `<PROJECT_DIR>/{user}-{branch}-ship-test-plan-{datetime}.md` (`PROJECT_DIR` printed above):
|
||||
|
||||
```markdown
|
||||
# Test Plan
|
||||
@@ -1555,7 +1558,8 @@ BRANCH=$(git branch --show-current 2>/dev/null | tr '/' '-' | tr -cd 'a-zA-Z0-9.
|
||||
REPO=$(basename "$(git rev-parse --show-toplevel 2>/dev/null)")
|
||||
_PLAN_SLUG=$(git remote get-url origin 2>/dev/null | sed 's|.*[:/]\([^/]*/[^/]*\)\.git$|\1|;s|.*[:/]\([^/]*/[^/]*\)$|\1|' | tr '/' '-' | tr -cd 'a-zA-Z0-9._-') || true
|
||||
_PLAN_SLUG="${_PLAN_SLUG:-$(basename "$PWD" | tr -cd 'a-zA-Z0-9._-')}"
|
||||
for PLAN_DIR in "$HOME/.gstack/projects/$_PLAN_SLUG" "$HOME/.claude/plans" "$HOME/.codex/plans" ".gstack/plans"; do
|
||||
eval "$($GSTACK_ROOT/bin/gstack-paths)"; : "${GSTACK_STATE_ROOT:?gstack-paths failed; reinstall with ./setup or /gstack-upgrade}"
|
||||
for PLAN_DIR in "$GSTACK_STATE_ROOT/projects/$_PLAN_SLUG" "$HOME/.claude/plans" "$HOME/.codex/plans" ".gstack/plans"; do
|
||||
[ -d "$PLAN_DIR" ] || continue
|
||||
PLAN=$(ls -t "$PLAN_DIR"/*.md 2>/dev/null | xargs grep -l "$BRANCH" 2>/dev/null | head -1)
|
||||
[ -z "$PLAN" ] && PLAN=$(ls -t "$PLAN_DIR"/*.md 2>/dev/null | xargs grep -l "$REPO" 2>/dev/null | head -1)
|
||||
@@ -2364,6 +2368,7 @@ Run the shared preflight; start its smoke guard once. Guard every smoke probe. F
|
||||
**3. Run smoke and plan checks.**
|
||||
Follow the shared Probe loop for smoke checks, replays and revalidation until the smoke limit.
|
||||
Then run required plan checks, even after smoke expires, using the same procedure but no smoke guard; never reset the clock.
|
||||
Plan checks and their revalidation publish a checkpoint beside D before each probe but skip the `G status D` expiry stop and use `--timeout-ms`, not `--deadline D`. A smoke recheck after expiry is not-run.
|
||||
Use finite command timeouts, capped at the caller's remaining time if it has a deadline.
|
||||
Await clock/guard results before acting. When the caller's deadline expires, mark unfinished checks not-run.
|
||||
|
||||
@@ -2773,7 +2778,7 @@ Present the full output verbatim. An unavailable outside challenge does not bloc
|
||||
|
||||
**Error handling:** Only this optional outside adversarial pass is non-blocking; native completion and structured-review decisions still apply.
|
||||
- **Auth failure:** If stderr contains "auth", "login", "unauthorized", or "API key": "Codex authentication failed. Run \`codex login\` to authenticate."
|
||||
- **Timeout:** "Codex exceeded 9 minutes and was terminated; this pass produced NO findings." A timed-out pass is MISSING COVERAGE, not a clean bill — say so explicitly rather than continuing as if Codex had reviewed.
|
||||
- **Timeout:** "Codex timed out after 9 minutes and was terminated; this pass produced NO findings." A timed-out pass is MISSING COVERAGE, not a clean bill — say so explicitly rather than continuing as if Codex had reviewed.
|
||||
- **Empty response:** "Codex returned no response. Stderr: <paste relevant error>."
|
||||
|
||||
|
||||
@@ -3428,7 +3433,8 @@ git config --get core.hooksPath >/dev/null 2>&1 || _HOOKS_CONFIG_STATUS=$?
|
||||
if [ -n "$_HOOK_PATH" ] && [ -n "$_HOOKS_DIR" ] && [ "$_HOOKS_CONFIG_STATUS" = "1" ] && [ ! -L "$_HOOKS_DIR" ]; then
|
||||
_HOOKS_IN_GIT_DIR="yes"
|
||||
fi
|
||||
_PREPUSH_PROMPTED=$([ -f "${GSTACK_HOME:-$HOME/.gstack}/.redact-prepush-prompted" ] && echo "yes" || echo "no")
|
||||
eval "$($GSTACK_ROOT/bin/gstack-paths)"; : "${GSTACK_STATE_ROOT:?gstack-paths failed; reinstall with ./setup or /gstack-upgrade}"
|
||||
_PREPUSH_PROMPTED=$([ -f "$GSTACK_STATE_ROOT/.redact-prepush-prompted" ] && echo "yes" || echo "no")
|
||||
if [ "$_REDACT_PREPUSH" = "true" ] && [ "$_HOOKS_IN_GIT_DIR" = "yes" ] && [ "$_HOOK_STATE" != "unmanaged" ]; then
|
||||
$GSTACK_ROOT/bin/gstack-redact install-prepush-hook || exit $?
|
||||
fi
|
||||
@@ -3465,7 +3471,8 @@ Branch on the echoed values:
|
||||
ALWAYS (after either answer, but NOT if the question itself failed to
|
||||
render — a failed AskUserQuestion must re-offer next time):
|
||||
```bash
|
||||
touch "${GSTACK_HOME:-$HOME/.gstack}/.redact-prepush-prompted"
|
||||
eval "$($GSTACK_ROOT/bin/gstack-paths)"; : "${GSTACK_STATE_ROOT:?gstack-paths failed; reinstall with ./setup or /gstack-upgrade}"
|
||||
touch "$GSTACK_STATE_ROOT/.redact-prepush-prompted"
|
||||
```
|
||||
3. **Declined earlier** — continue
|
||||
without comment.
|
||||
@@ -3530,7 +3537,7 @@ then return here for a new lookup, fresh body and both redaction scans before pu
|
||||
|
||||
1. Resolve the archive directory and branch:
|
||||
```bash
|
||||
eval "$($GSTACK_ROOT/bin/gstack-paths)"
|
||||
eval "$($GSTACK_ROOT/bin/gstack-paths)"; : "${GSTACK_STATE_ROOT:?gstack-paths failed; reinstall with ./setup or /gstack-upgrade}"
|
||||
eval "$($GSTACK_ROOT/bin/gstack-slug)"
|
||||
CURRENT_BRANCH=$(git branch --show-current)
|
||||
SPEC_ARCHIVES="$GSTACK_STATE_ROOT/projects/$SLUG/specs"
|
||||
@@ -3719,8 +3726,7 @@ The shell supplies the branch. Run this automatically, without confirmation.
|
||||
After a successful ship, show the non-blocking /plan-tune nudge once per machine:
|
||||
|
||||
```bash
|
||||
eval "$($GSTACK_ROOT/bin/gstack-paths)"
|
||||
export GSTACK_STATE_ROOT
|
||||
eval "$($GSTACK_ROOT/bin/gstack-paths)"; : "${GSTACK_STATE_ROOT:?gstack-paths failed; reinstall with ./setup or /gstack-upgrade}"
|
||||
_NUDGE_MARKER="$GSTACK_STATE_ROOT/.plan-tune-nudge-shown"
|
||||
_QT=$($GSTACK_ROOT/bin/gstack-config get question_tuning 2>/dev/null || echo "false")
|
||||
if [ ! -f "$_NUDGE_MARKER" ] && [ "$_QT" = "false" ]; then
|
||||
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"newModules": [
|
||||
{ "file": "scripts/lib/shard-engine.ts", "movedFrom": "scripts/test-strict-output.ts" },
|
||||
{ "file": "test/helpers/module-size.ts", "movedFrom": "(new: ratchet (c) counter)" },
|
||||
{ "file": "browse/src/routes/activity.ts", "movedFrom": "browse/src/server.ts" },
|
||||
{ "file": "browse/src/routes/commands.ts", "movedFrom": "browse/src/server.ts" },
|
||||
{ "file": "browse/src/routes/core.ts", "movedFrom": "browse/src/server.ts" },
|
||||
{ "file": "browse/src/routes/files.ts", "movedFrom": "browse/src/server.ts" },
|
||||
{ "file": "browse/src/routes/index.ts", "movedFrom": "browse/src/server.ts" },
|
||||
{ "file": "browse/src/routes/inspector.ts", "movedFrom": "browse/src/server.ts" },
|
||||
{ "file": "browse/src/routes/pairing.ts", "movedFrom": "browse/src/server.ts" },
|
||||
{ "file": "browse/src/routes/pty.ts", "movedFrom": "browse/src/server.ts" },
|
||||
{ "file": "browse/src/routes/table.ts", "movedFrom": "browse/src/server.ts" },
|
||||
{ "file": "browse/src/routes/tokens.ts", "movedFrom": "browse/src/server.ts" },
|
||||
{ "file": "browse/src/routes/tunnel.ts", "movedFrom": "browse/src/server.ts" },
|
||||
{ "file": "scripts/resolvers/review-dashboard.ts", "movedFrom": "scripts/resolvers/review.ts" },
|
||||
{ "file": "scripts/resolvers/plan-gates.ts", "movedFrom": "scripts/resolvers/review.ts" },
|
||||
{ "file": "scripts/resolvers/spec-review.ts", "movedFrom": "scripts/resolvers/review.ts" },
|
||||
{ "file": "scripts/resolvers/outside-voice-steps.ts", "movedFrom": "scripts/resolvers/review.ts" },
|
||||
{ "file": "scripts/resolvers/review-scope.ts", "movedFrom": "scripts/resolvers/review.ts" },
|
||||
{ "file": "test/helpers/pty/auq.ts", "movedFrom": "test/helpers/claude-pty-runner.ts" },
|
||||
{ "file": "test/helpers/pty/binary.ts", "movedFrom": "test/helpers/claude-pty-runner.ts" },
|
||||
{ "file": "test/helpers/pty/boundaries.ts", "movedFrom": "test/helpers/claude-pty-runner.ts" },
|
||||
{ "file": "test/helpers/pty/classify.ts", "movedFrom": "test/helpers/claude-pty-runner.ts" },
|
||||
{ "file": "test/helpers/pty/fake-session.ts", "movedFrom": "(new: fake PTY driver)" },
|
||||
{ "file": "test/helpers/pty/judge.ts", "movedFrom": "test/helpers/claude-pty-runner.ts" },
|
||||
{ "file": "test/helpers/pty/launch.ts", "movedFrom": "test/helpers/claude-pty-runner.ts" },
|
||||
{ "file": "test/helpers/pty/plan-native.ts", "movedFrom": "test/helpers/claude-pty-runner.ts" },
|
||||
{ "file": "test/helpers/pty/runners/counting.ts", "movedFrom": "test/helpers/claude-pty-runner.ts" },
|
||||
{ "file": "test/helpers/pty/runners/floor.ts", "movedFrom": "test/helpers/claude-pty-runner.ts" },
|
||||
{ "file": "test/helpers/pty/runners/observation.ts", "movedFrom": "test/helpers/claude-pty-runner.ts" },
|
||||
{ "file": "test/helpers/pty/screen.ts", "movedFrom": "test/helpers/pty-screen.ts" },
|
||||
{ "file": "test/helpers/pty/session.ts", "movedFrom": "test/helpers/claude-pty-runner.ts" }
|
||||
],
|
||||
"residualFiles": [
|
||||
{ "file": "scripts/test-free-shards.ts", "maxLines": 2361, "reason": "free lane policy after the shard engine took spawn, sandbox, logs, seeds and flags" },
|
||||
{ "file": "scripts/test-paid-shards.ts", "maxLines": 1921, "reason": "paid lane policy after the shard engine took sandbox, logs, seeds, verdicts and flags" },
|
||||
{ "file": "browse/src/server.ts", "maxLines": 2224, "reason": "server lifecycle, tunnel filter and fetch entry after the route table took dispatch, auth and handlers" },
|
||||
{ "file": "test/helpers/claude-pty-runner.ts", "maxLines": 30, "reason": "re-export barrel for the 117 importers after the split into test/helpers/pty/*" }
|
||||
],
|
||||
"allowlist": []
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
// Ratchet (c) counter self-test input. Template text below is copied from
|
||||
// scripts/resolvers/review.ts (dashboard, design-board reload) and
|
||||
// scripts/resolvers/design.ts (sketch code fences). Read as text, never run.
|
||||
import { toShellPath, type TemplateContext } from './types';
|
||||
|
||||
export function generateDashboardLike(ctx: TemplateContext): string {
|
||||
return `## Review dashboard
|
||||
${ctx.skillName === 'ship' ? `**REVIEW READINESS DASHBOARD**
|
||||
|
||||
| Review | Runs | Last run | Status | Required |
|
||||
|---|---:|---|---|---|
|
||||
| {row and suffix} | {count} | {timestamp or —} | {actual status and reason} | {yes/no} |
|
||||
|
||||
VERDICT: {CLEARED or NOT CLEARED} — {reason}` : `\`\`\`
|
||||
+====================================================================+
|
||||
| REVIEW READINESS DASHBOARD |
|
||||
+====================================================================+
|
||||
\`\`\``}
|
||||
|
||||
\`jq -nc --arg html "$_DESIGN_DIR/design-board.html" '{html: $html}' | curl -sS -X POST "\${BOARD_URL}api/reload" -H 'Content-Type: application/json' --data-binary @-\`
|
||||
`;
|
||||
}
|
||||
|
||||
export function generateDesignSketchLike(ctx: TemplateContext): string {
|
||||
const fence = '```';
|
||||
return `Create a private directory for it first:
|
||||
\`\`\`bash
|
||||
mktemp -d "\${TMPDIR:-/tmp}/gstack-sketch.XXXXXX"
|
||||
\`\`\`
|
||||
\`\`\`bash
|
||||
bun run ${toShellPath(ctx.paths.binDir)}/gstack-render.ts <sketch-dir>/sketch.html --screenshot <sketch-dir>/sketch.png --width 1280
|
||||
\`\`\`
|
||||
${fence} { unbalanced { braces in prose ${fence}`;
|
||||
}
|
||||
|
||||
const arrowWithRegex = (value: string): string =>
|
||||
value.replace(/[{}]/g, '').split(/\}/).join('{');
|
||||
|
||||
export const handlerTable = [
|
||||
{ path: '/x', handler: async (req: Request) => {
|
||||
const body = `{"ok": ${JSON.stringify(req.url)}}`;
|
||||
return new Response(body);
|
||||
} },
|
||||
];
|
||||
@@ -0,0 +1,12 @@
|
||||
[
|
||||
{
|
||||
"file": "codex/SKILL.md.tmpl",
|
||||
"text": "\"Codex authentication failed. Run `codex login` in your terminal to authenticate via ChatGPT.\"",
|
||||
"reason": "The /codex skill's own direct CLI auth error, not an outside-voice fallback inside another skill."
|
||||
},
|
||||
{
|
||||
"file": "codex/SKILL.md.tmpl",
|
||||
"text": "\"Codex returned no response. Check stderr for errors.\"",
|
||||
"reason": "The /codex skill's own direct CLI empty-response error, not an outside-voice fallback inside another skill."
|
||||
}
|
||||
]
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
/**
|
||||
* Argument vectors for the per-lane CLI parity check. results.json holds the
|
||||
* parse results the pre-engine runners (base 96764e80) produced for them.
|
||||
*/
|
||||
export const FREE_CASES: string[][] = [
|
||||
[],
|
||||
['--dry-run', '--list', '--verbose'],
|
||||
['--windows-only', '--list'],
|
||||
['--record-durations'],
|
||||
['--quick'],
|
||||
['--shards', '4', '--shard', '2'],
|
||||
['--wall-timeout', '600'],
|
||||
['--ci-plan', 'plan.json', '--shards', '20'],
|
||||
['--ci-run', 'plan.json', '--shard', '1', '--result', 'result.json'],
|
||||
['--ci-verify', 'plan.json', '--results', 'results'],
|
||||
['--bogus'],
|
||||
['--list', '--bogus'],
|
||||
['--shards'],
|
||||
['--shard'],
|
||||
['--wall-timeout', '0'],
|
||||
['--wall-timeout'],
|
||||
['--ci-plan'],
|
||||
['--ci-plan', '--list'],
|
||||
['--ci-plan', 'a.json', '--ci-run', 'b.json'],
|
||||
['--ci-plan', 'a.json', '--quick'],
|
||||
['--ci-run', 'plan.json'],
|
||||
['--ci-verify', 'plan.json'],
|
||||
['--quick', '--shard', '1'],
|
||||
['--quick', '--windows-only'],
|
||||
];
|
||||
|
||||
export const PAID_CASES: Array<{ argv: string[]; env?: Record<string, string> }> = [
|
||||
{ argv: [] },
|
||||
{ argv: ['--list', '--tier', 'periodic', '--profile', 'full'] },
|
||||
{ argv: ['--tier', 'gate', '--profile', 'pr', '--list'] },
|
||||
{ argv: ['--timeout', '600', '--jobs', '2', '--files-per-shard', '3'] },
|
||||
{ argv: ['--emit-plan', 'manifest.json', '--slices', '4', '--skip-judges'] },
|
||||
{ argv: ['--plan', 'manifest.json', '--slice', '2'] },
|
||||
{ argv: ['--report', 'reports', '--write-durations'] },
|
||||
{ argv: [], env: { EVALS_TIER: 'periodic', EVALS_JOBS: '3', EVALS_CONCURRENCY: '5', EVALS_SHARD_TIMEOUT_MS: '1000', EVALS_PROFILE: 'full' } },
|
||||
{ argv: ['--bogus'] },
|
||||
{ argv: ['--list', '--bogus'] },
|
||||
{ argv: ['--tier', 'e2e'] },
|
||||
{ argv: ['--tier'] },
|
||||
{ argv: ['--profile'] },
|
||||
{ argv: ['--profile', 'fast'] },
|
||||
{ argv: ['--timeout', '0'] },
|
||||
{ argv: ['--jobs'] },
|
||||
{ argv: ['--emit-plan'] },
|
||||
{ argv: ['--plan'] },
|
||||
{ argv: ['--report'] },
|
||||
{ argv: ['--write-durations'] },
|
||||
{ argv: ['--skip-judges'] },
|
||||
{ argv: ['--profile', 'pr', '--tier', 'periodic'] },
|
||||
{ argv: ['--profile', 'pr', '--files-per-shard', '2'] },
|
||||
{ argv: [], env: { EVALS_TIER: 'e2e' } },
|
||||
];
|
||||
|
||||
export type ParseResult = { ok: unknown } | { error: string };
|
||||
|
||||
export function capture(parse: () => unknown): ParseResult {
|
||||
try { return { ok: parse() }; }
|
||||
catch (error) { return { error: error instanceof Error ? error.message : String(error) }; }
|
||||
}
|
||||
+762
@@ -0,0 +1,762 @@
|
||||
{
|
||||
"recordedFrom": "96764e80 (pre-engine base runners)",
|
||||
"free": [
|
||||
{
|
||||
"argv": [],
|
||||
"result": {
|
||||
"ok": {
|
||||
"dryRun": false,
|
||||
"listOnly": false,
|
||||
"recordDurations": false,
|
||||
"windowsOnly": false,
|
||||
"verbose": false,
|
||||
"shardCount": 20,
|
||||
"shardIndex": null,
|
||||
"wallTimeoutMs": 360000,
|
||||
"wallTimeoutExplicit": false,
|
||||
"quick": false,
|
||||
"ciPlan": null,
|
||||
"ciRun": null,
|
||||
"ciVerify": null,
|
||||
"result": null,
|
||||
"results": null
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--dry-run",
|
||||
"--list",
|
||||
"--verbose"
|
||||
],
|
||||
"result": {
|
||||
"ok": {
|
||||
"dryRun": true,
|
||||
"listOnly": true,
|
||||
"recordDurations": false,
|
||||
"windowsOnly": false,
|
||||
"verbose": true,
|
||||
"shardCount": 20,
|
||||
"shardIndex": null,
|
||||
"wallTimeoutMs": 360000,
|
||||
"wallTimeoutExplicit": false,
|
||||
"quick": false,
|
||||
"ciPlan": null,
|
||||
"ciRun": null,
|
||||
"ciVerify": null,
|
||||
"result": null,
|
||||
"results": null
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--windows-only",
|
||||
"--list"
|
||||
],
|
||||
"result": {
|
||||
"ok": {
|
||||
"dryRun": false,
|
||||
"listOnly": true,
|
||||
"recordDurations": false,
|
||||
"windowsOnly": true,
|
||||
"verbose": false,
|
||||
"shardCount": 20,
|
||||
"shardIndex": null,
|
||||
"wallTimeoutMs": 360000,
|
||||
"wallTimeoutExplicit": false,
|
||||
"quick": false,
|
||||
"ciPlan": null,
|
||||
"ciRun": null,
|
||||
"ciVerify": null,
|
||||
"result": null,
|
||||
"results": null
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--record-durations"
|
||||
],
|
||||
"result": {
|
||||
"ok": {
|
||||
"dryRun": false,
|
||||
"listOnly": false,
|
||||
"recordDurations": true,
|
||||
"windowsOnly": false,
|
||||
"verbose": false,
|
||||
"shardCount": 20,
|
||||
"shardIndex": null,
|
||||
"wallTimeoutMs": 360000,
|
||||
"wallTimeoutExplicit": false,
|
||||
"quick": false,
|
||||
"ciPlan": null,
|
||||
"ciRun": null,
|
||||
"ciVerify": null,
|
||||
"result": null,
|
||||
"results": null
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--quick"
|
||||
],
|
||||
"result": {
|
||||
"ok": {
|
||||
"dryRun": false,
|
||||
"listOnly": false,
|
||||
"recordDurations": false,
|
||||
"windowsOnly": false,
|
||||
"verbose": false,
|
||||
"shardCount": 20,
|
||||
"shardIndex": null,
|
||||
"wallTimeoutMs": 360000,
|
||||
"wallTimeoutExplicit": false,
|
||||
"quick": true,
|
||||
"ciPlan": null,
|
||||
"ciRun": null,
|
||||
"ciVerify": null,
|
||||
"result": null,
|
||||
"results": null
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--shards",
|
||||
"4",
|
||||
"--shard",
|
||||
"2"
|
||||
],
|
||||
"result": {
|
||||
"ok": {
|
||||
"dryRun": false,
|
||||
"listOnly": false,
|
||||
"recordDurations": false,
|
||||
"windowsOnly": false,
|
||||
"verbose": false,
|
||||
"shardCount": 4,
|
||||
"shardIndex": 2,
|
||||
"wallTimeoutMs": 360000,
|
||||
"wallTimeoutExplicit": false,
|
||||
"quick": false,
|
||||
"ciPlan": null,
|
||||
"ciRun": null,
|
||||
"ciVerify": null,
|
||||
"result": null,
|
||||
"results": null
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--wall-timeout",
|
||||
"600"
|
||||
],
|
||||
"result": {
|
||||
"ok": {
|
||||
"dryRun": false,
|
||||
"listOnly": false,
|
||||
"recordDurations": false,
|
||||
"windowsOnly": false,
|
||||
"verbose": false,
|
||||
"shardCount": 20,
|
||||
"shardIndex": null,
|
||||
"wallTimeoutMs": 600000,
|
||||
"wallTimeoutExplicit": true,
|
||||
"quick": false,
|
||||
"ciPlan": null,
|
||||
"ciRun": null,
|
||||
"ciVerify": null,
|
||||
"result": null,
|
||||
"results": null
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--ci-plan",
|
||||
"plan.json",
|
||||
"--shards",
|
||||
"20"
|
||||
],
|
||||
"result": {
|
||||
"ok": {
|
||||
"dryRun": false,
|
||||
"listOnly": false,
|
||||
"recordDurations": false,
|
||||
"windowsOnly": false,
|
||||
"verbose": false,
|
||||
"shardCount": 20,
|
||||
"shardIndex": null,
|
||||
"wallTimeoutMs": 360000,
|
||||
"wallTimeoutExplicit": false,
|
||||
"quick": false,
|
||||
"ciPlan": "plan.json",
|
||||
"ciRun": null,
|
||||
"ciVerify": null,
|
||||
"result": null,
|
||||
"results": null
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--ci-run",
|
||||
"plan.json",
|
||||
"--shard",
|
||||
"1",
|
||||
"--result",
|
||||
"result.json"
|
||||
],
|
||||
"result": {
|
||||
"ok": {
|
||||
"dryRun": false,
|
||||
"listOnly": false,
|
||||
"recordDurations": false,
|
||||
"windowsOnly": false,
|
||||
"verbose": false,
|
||||
"shardCount": 20,
|
||||
"shardIndex": 1,
|
||||
"wallTimeoutMs": 360000,
|
||||
"wallTimeoutExplicit": false,
|
||||
"quick": false,
|
||||
"ciPlan": null,
|
||||
"ciRun": "plan.json",
|
||||
"ciVerify": null,
|
||||
"result": "result.json",
|
||||
"results": null
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--ci-verify",
|
||||
"plan.json",
|
||||
"--results",
|
||||
"results"
|
||||
],
|
||||
"result": {
|
||||
"ok": {
|
||||
"dryRun": false,
|
||||
"listOnly": false,
|
||||
"recordDurations": false,
|
||||
"windowsOnly": false,
|
||||
"verbose": false,
|
||||
"shardCount": 20,
|
||||
"shardIndex": null,
|
||||
"wallTimeoutMs": 360000,
|
||||
"wallTimeoutExplicit": false,
|
||||
"quick": false,
|
||||
"ciPlan": null,
|
||||
"ciRun": null,
|
||||
"ciVerify": "plan.json",
|
||||
"result": null,
|
||||
"results": "results"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--bogus"
|
||||
],
|
||||
"result": {
|
||||
"error": "Unknown argument: --bogus"
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--list",
|
||||
"--bogus"
|
||||
],
|
||||
"result": {
|
||||
"error": "Unknown argument: --bogus"
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--shards"
|
||||
],
|
||||
"result": {
|
||||
"error": "Missing value for --shards"
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--shard"
|
||||
],
|
||||
"result": {
|
||||
"error": "Missing value for --shard"
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--wall-timeout",
|
||||
"0"
|
||||
],
|
||||
"result": {
|
||||
"error": "--wall-timeout needs a positive integer (seconds)"
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--wall-timeout"
|
||||
],
|
||||
"result": {
|
||||
"error": "--wall-timeout needs a positive integer (seconds)"
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--ci-plan"
|
||||
],
|
||||
"result": {
|
||||
"error": "Missing path for --ci-plan"
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--ci-plan",
|
||||
"--list"
|
||||
],
|
||||
"result": {
|
||||
"error": "Missing path for --ci-plan"
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--ci-plan",
|
||||
"a.json",
|
||||
"--ci-run",
|
||||
"b.json"
|
||||
],
|
||||
"result": {
|
||||
"error": "CI modes cannot be combined with other selection modes"
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--ci-plan",
|
||||
"a.json",
|
||||
"--quick"
|
||||
],
|
||||
"result": {
|
||||
"error": "CI modes cannot be combined with other selection modes"
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--ci-run",
|
||||
"plan.json"
|
||||
],
|
||||
"result": {
|
||||
"error": "--ci-run requires --shard and --result"
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--ci-verify",
|
||||
"plan.json"
|
||||
],
|
||||
"result": {
|
||||
"error": "--ci-verify requires --results"
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--quick",
|
||||
"--shard",
|
||||
"1"
|
||||
],
|
||||
"result": {
|
||||
"error": "--quick cannot change recording, Windows or shard selection"
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--quick",
|
||||
"--windows-only"
|
||||
],
|
||||
"result": {
|
||||
"error": "--quick cannot change recording, Windows or shard selection"
|
||||
}
|
||||
}
|
||||
],
|
||||
"paid": [
|
||||
{
|
||||
"argv": [],
|
||||
"result": {
|
||||
"ok": {
|
||||
"tier": "gate",
|
||||
"profile": "full",
|
||||
"profileExplicit": false,
|
||||
"listOnly": false,
|
||||
"skipJudges": false,
|
||||
"timeoutExplicit": false,
|
||||
"timeoutMs": 1800000,
|
||||
"jobs": 8,
|
||||
"withinShardConcurrency": 2,
|
||||
"maxFilesPerShard": 1,
|
||||
"emitPlanPath": null,
|
||||
"slices": 1,
|
||||
"planPath": null,
|
||||
"sliceIndex": null,
|
||||
"reportDir": null,
|
||||
"writeDurations": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--list",
|
||||
"--tier",
|
||||
"periodic",
|
||||
"--profile",
|
||||
"full"
|
||||
],
|
||||
"result": {
|
||||
"ok": {
|
||||
"tier": "periodic",
|
||||
"profile": "full",
|
||||
"profileExplicit": true,
|
||||
"listOnly": true,
|
||||
"skipJudges": false,
|
||||
"timeoutExplicit": false,
|
||||
"timeoutMs": 1800000,
|
||||
"jobs": 8,
|
||||
"withinShardConcurrency": 2,
|
||||
"maxFilesPerShard": 1,
|
||||
"emitPlanPath": null,
|
||||
"slices": 1,
|
||||
"planPath": null,
|
||||
"sliceIndex": null,
|
||||
"reportDir": null,
|
||||
"writeDurations": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--tier",
|
||||
"gate",
|
||||
"--profile",
|
||||
"pr",
|
||||
"--list"
|
||||
],
|
||||
"result": {
|
||||
"ok": {
|
||||
"tier": "gate",
|
||||
"profile": "pr",
|
||||
"profileExplicit": true,
|
||||
"listOnly": true,
|
||||
"skipJudges": false,
|
||||
"timeoutExplicit": false,
|
||||
"timeoutMs": 1800000,
|
||||
"jobs": 8,
|
||||
"withinShardConcurrency": 2,
|
||||
"maxFilesPerShard": 1,
|
||||
"emitPlanPath": null,
|
||||
"slices": 1,
|
||||
"planPath": null,
|
||||
"sliceIndex": null,
|
||||
"reportDir": null,
|
||||
"writeDurations": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--timeout",
|
||||
"600",
|
||||
"--jobs",
|
||||
"2",
|
||||
"--files-per-shard",
|
||||
"3"
|
||||
],
|
||||
"result": {
|
||||
"ok": {
|
||||
"tier": "gate",
|
||||
"profile": "full",
|
||||
"profileExplicit": false,
|
||||
"listOnly": false,
|
||||
"skipJudges": false,
|
||||
"timeoutExplicit": true,
|
||||
"timeoutMs": 600000,
|
||||
"jobs": 2,
|
||||
"withinShardConcurrency": 2,
|
||||
"maxFilesPerShard": 3,
|
||||
"emitPlanPath": null,
|
||||
"slices": 1,
|
||||
"planPath": null,
|
||||
"sliceIndex": null,
|
||||
"reportDir": null,
|
||||
"writeDurations": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--emit-plan",
|
||||
"manifest.json",
|
||||
"--slices",
|
||||
"4",
|
||||
"--skip-judges"
|
||||
],
|
||||
"result": {
|
||||
"ok": {
|
||||
"tier": "gate",
|
||||
"profile": "full",
|
||||
"profileExplicit": false,
|
||||
"listOnly": false,
|
||||
"skipJudges": true,
|
||||
"timeoutExplicit": false,
|
||||
"timeoutMs": 1800000,
|
||||
"jobs": 8,
|
||||
"withinShardConcurrency": 2,
|
||||
"maxFilesPerShard": 1,
|
||||
"emitPlanPath": "manifest.json",
|
||||
"slices": 4,
|
||||
"planPath": null,
|
||||
"sliceIndex": null,
|
||||
"reportDir": null,
|
||||
"writeDurations": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--plan",
|
||||
"manifest.json",
|
||||
"--slice",
|
||||
"2"
|
||||
],
|
||||
"result": {
|
||||
"ok": {
|
||||
"tier": "gate",
|
||||
"profile": "full",
|
||||
"profileExplicit": false,
|
||||
"listOnly": false,
|
||||
"skipJudges": false,
|
||||
"timeoutExplicit": false,
|
||||
"timeoutMs": 1800000,
|
||||
"jobs": 8,
|
||||
"withinShardConcurrency": 2,
|
||||
"maxFilesPerShard": 1,
|
||||
"emitPlanPath": null,
|
||||
"slices": 1,
|
||||
"planPath": "manifest.json",
|
||||
"sliceIndex": 2,
|
||||
"reportDir": null,
|
||||
"writeDurations": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--report",
|
||||
"reports",
|
||||
"--write-durations"
|
||||
],
|
||||
"result": {
|
||||
"ok": {
|
||||
"tier": "gate",
|
||||
"profile": "full",
|
||||
"profileExplicit": false,
|
||||
"listOnly": false,
|
||||
"skipJudges": false,
|
||||
"timeoutExplicit": false,
|
||||
"timeoutMs": 1800000,
|
||||
"jobs": 8,
|
||||
"withinShardConcurrency": 2,
|
||||
"maxFilesPerShard": 1,
|
||||
"emitPlanPath": null,
|
||||
"slices": 1,
|
||||
"planPath": null,
|
||||
"sliceIndex": null,
|
||||
"reportDir": "reports",
|
||||
"writeDurations": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [],
|
||||
"env": {
|
||||
"EVALS_TIER": "periodic",
|
||||
"EVALS_JOBS": "3",
|
||||
"EVALS_CONCURRENCY": "5",
|
||||
"EVALS_SHARD_TIMEOUT_MS": "1000",
|
||||
"EVALS_PROFILE": "full"
|
||||
},
|
||||
"result": {
|
||||
"ok": {
|
||||
"tier": "periodic",
|
||||
"profile": "full",
|
||||
"profileExplicit": true,
|
||||
"listOnly": false,
|
||||
"skipJudges": false,
|
||||
"timeoutExplicit": true,
|
||||
"timeoutMs": 1000,
|
||||
"jobs": 3,
|
||||
"withinShardConcurrency": 5,
|
||||
"maxFilesPerShard": 1,
|
||||
"emitPlanPath": null,
|
||||
"slices": 1,
|
||||
"planPath": null,
|
||||
"sliceIndex": null,
|
||||
"reportDir": null,
|
||||
"writeDurations": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--bogus"
|
||||
],
|
||||
"result": {
|
||||
"error": "Unknown argument: --bogus"
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--list",
|
||||
"--bogus"
|
||||
],
|
||||
"result": {
|
||||
"error": "Unknown argument: --bogus"
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--tier",
|
||||
"e2e"
|
||||
],
|
||||
"result": {
|
||||
"error": "--tier must be gate or periodic. Received: e2e"
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--tier"
|
||||
],
|
||||
"result": {
|
||||
"error": "--tier must be gate or periodic. Received: undefined"
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--profile"
|
||||
],
|
||||
"result": {
|
||||
"error": "--profile needs pr or full"
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--profile",
|
||||
"fast"
|
||||
],
|
||||
"result": {
|
||||
"error": "--profile must be pr or full. Received: fast"
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--timeout",
|
||||
"0"
|
||||
],
|
||||
"result": {
|
||||
"error": "--timeout needs a positive integer. Received: 0"
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--jobs"
|
||||
],
|
||||
"result": {
|
||||
"error": "--jobs needs a positive integer. Received: undefined"
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--emit-plan"
|
||||
],
|
||||
"result": {
|
||||
"error": "--emit-plan needs a file path"
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--plan"
|
||||
],
|
||||
"result": {
|
||||
"error": "--plan needs a manifest path"
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--report"
|
||||
],
|
||||
"result": {
|
||||
"error": "--report needs a directory"
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--write-durations"
|
||||
],
|
||||
"result": {
|
||||
"error": "--write-durations requires --report"
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--skip-judges"
|
||||
],
|
||||
"result": {
|
||||
"error": "--skip-judges applies only to an emitted gate census plan"
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--profile",
|
||||
"pr",
|
||||
"--tier",
|
||||
"periodic"
|
||||
],
|
||||
"result": {
|
||||
"error": "PR profile requires gate tier"
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [
|
||||
"--profile",
|
||||
"pr",
|
||||
"--files-per-shard",
|
||||
"2"
|
||||
],
|
||||
"result": {
|
||||
"error": "PR profile requires one file per shard to preserve case accounting"
|
||||
}
|
||||
},
|
||||
{
|
||||
"argv": [],
|
||||
"env": {
|
||||
"EVALS_TIER": "e2e"
|
||||
},
|
||||
"result": {
|
||||
"error": "EVALS_TIER must be gate or periodic. Received: e2e"
|
||||
}
|
||||
}
|
||||
],
|
||||
"unknownArgumentCli": {
|
||||
"free": {
|
||||
"status": 1,
|
||||
"stderr": "[test:free] Unknown argument: --bogus"
|
||||
},
|
||||
"paid": {
|
||||
"status": 1,
|
||||
"stderr": "[test:paid] Unknown argument: --bogus"
|
||||
}
|
||||
}
|
||||
}
|
||||
+127
@@ -0,0 +1,127 @@
|
||||
{
|
||||
"recordedFrom": "96764e80 (pre-engine base) via test/fixtures/shard-equivalence/record.ts",
|
||||
"free": {
|
||||
"fixtures": {
|
||||
"pass": {
|
||||
"status": "passed",
|
||||
"exitCode": 0,
|
||||
"laneExit": 0
|
||||
},
|
||||
"fail": {
|
||||
"status": "failed",
|
||||
"exitCode": 1,
|
||||
"laneExit": 1
|
||||
},
|
||||
"skip": {
|
||||
"status": "passed",
|
||||
"exitCode": 0,
|
||||
"laneExit": 0
|
||||
},
|
||||
"wall-timeout": {
|
||||
"status": "timed-out",
|
||||
"exitCode": null,
|
||||
"laneExit": 124
|
||||
},
|
||||
"module-load-error": {
|
||||
"status": "failed",
|
||||
"exitCode": 1,
|
||||
"laneExit": 1
|
||||
},
|
||||
"zero-executed": {
|
||||
"status": "passed",
|
||||
"exitCode": 0,
|
||||
"laneExit": 0
|
||||
},
|
||||
"unhandled-between-tests": {
|
||||
"status": "failed",
|
||||
"exitCode": 1,
|
||||
"laneExit": 1
|
||||
}
|
||||
},
|
||||
"laneExit": 124
|
||||
},
|
||||
"paid": {
|
||||
"fixtures": {
|
||||
"pass": {
|
||||
"status": "passed",
|
||||
"exitCode": 0,
|
||||
"executedTests": 1,
|
||||
"skippedTests": 0,
|
||||
"laneExit": {
|
||||
"selective": 0,
|
||||
"evalsAll": 0
|
||||
}
|
||||
},
|
||||
"fail": {
|
||||
"status": "failed",
|
||||
"exitCode": 1,
|
||||
"executedTests": 1,
|
||||
"skippedTests": 0,
|
||||
"laneExit": {
|
||||
"selective": 1,
|
||||
"evalsAll": 1
|
||||
}
|
||||
},
|
||||
"skip": {
|
||||
"status": "passed",
|
||||
"exitCode": 0,
|
||||
"executedTests": 1,
|
||||
"skippedTests": 1,
|
||||
"laneExit": {
|
||||
"selective": 0,
|
||||
"evalsAll": 0
|
||||
}
|
||||
},
|
||||
"wall-timeout": {
|
||||
"status": "timed-out",
|
||||
"exitCode": null,
|
||||
"executedTests": null,
|
||||
"skippedTests": null,
|
||||
"laneExit": {
|
||||
"selective": 1,
|
||||
"evalsAll": 1
|
||||
}
|
||||
},
|
||||
"module-load-error": {
|
||||
"status": "failed",
|
||||
"exitCode": 1,
|
||||
"executedTests": 1,
|
||||
"skippedTests": 0,
|
||||
"laneExit": {
|
||||
"selective": 1,
|
||||
"evalsAll": 1
|
||||
}
|
||||
},
|
||||
"zero-executed": {
|
||||
"status": "passed",
|
||||
"exitCode": 0,
|
||||
"executedTests": 0,
|
||||
"skippedTests": 0,
|
||||
"laneExit": {
|
||||
"selective": 0,
|
||||
"evalsAll": 1
|
||||
}
|
||||
},
|
||||
"unhandled-between-tests": {
|
||||
"status": "failed",
|
||||
"exitCode": 1,
|
||||
"executedTests": 0,
|
||||
"skippedTests": 0,
|
||||
"laneExit": {
|
||||
"selective": 1,
|
||||
"evalsAll": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"laneExit": {
|
||||
"selective": 1,
|
||||
"evalsAll": 1
|
||||
}
|
||||
},
|
||||
"realShard": {
|
||||
"file": "test/strict-output.test.ts",
|
||||
"status": "passed",
|
||||
"filesRan": 1,
|
||||
"sawTerminalSummary": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
import { expect, test } from 'bun:test';
|
||||
|
||||
test('fails', () => { expect(1 + 1).toBe(3); });
|
||||
@@ -0,0 +1,5 @@
|
||||
import { test } from 'bun:test';
|
||||
|
||||
throw new Error('module load failure fixture');
|
||||
|
||||
test('never registered', () => {});
|
||||
@@ -0,0 +1,3 @@
|
||||
import { expect, test } from 'bun:test';
|
||||
|
||||
test('passes', () => { expect(1 + 1).toBe(2); });
|
||||
+69
@@ -0,0 +1,69 @@
|
||||
/**
|
||||
* Runs the shard-equivalence fixture corpus through one checkout's free and
|
||||
* paid runners and prints their classifications as one JSON line.
|
||||
*
|
||||
* bun test/fixtures/shard-equivalence/record.ts <checkout-root>
|
||||
*
|
||||
* expected.json was recorded by running this against the pre-engine base
|
||||
* commit (96764e80); test/shard-engine-equivalence.test.ts runs it against
|
||||
* the current checkout and requires identical classifications and lane exits.
|
||||
* Never imported by the test runner.
|
||||
*/
|
||||
import * as fs from 'node:fs';
|
||||
import * as os from 'node:os';
|
||||
import * as path from 'node:path';
|
||||
|
||||
export const FIXTURES = [
|
||||
'pass', 'fail', 'skip', 'wall-timeout', 'module-load-error', 'zero-executed', 'unhandled-between-tests',
|
||||
] as const;
|
||||
export const REAL_SHARD = 'test/strict-output.test.ts';
|
||||
// Only the wall-timeout fixture should ever reach its wall; the others get
|
||||
// generous headroom so a loaded CI host cannot turn a pass into a timeout.
|
||||
const wallFor = (name: string) => (name === 'wall-timeout' ? 3_000 : 60_000);
|
||||
|
||||
const root = path.resolve(process.argv[2] ?? path.join(import.meta.dir, '../../..'));
|
||||
const fixtureDir = import.meta.dir;
|
||||
const scratch = fs.mkdtempSync(path.join(os.tmpdir(), 'shard-equivalence-'));
|
||||
const free = await import(path.join(root, 'scripts/test-free-shards.ts'));
|
||||
const paid = await import(path.join(root, 'scripts/test-paid-shards.ts'));
|
||||
const freeExit = (status: string) => (status === 'passed' ? 0 : status === 'timed-out' ? 124 : 1);
|
||||
|
||||
try {
|
||||
const runFree = (file: string, index: number) => free.runFreeShard([file], index + 1, FIXTURES.length, {
|
||||
rootDir: root, quiet: true, log: () => {}, wallTimeoutMs: wallFor(FIXTURES[index]),
|
||||
logFilePath: path.join(scratch, `free-${index}.log`),
|
||||
});
|
||||
const runPaid = (file: string, index: number) => paid.runPaidShard([file], index + 1, FIXTURES.length, {
|
||||
rootDir: root, timeoutMs: wallFor(FIXTURES[index]), jobs: 2, logDir: scratch, log: () => {},
|
||||
env: { ...process.env, GSTACK_CLAUDE_CLI_VERSION: 'fixture', EVALS: '', EVALS_TIER: '', EVALS_ALL: '' },
|
||||
});
|
||||
const files = FIXTURES.map(name => path.join(fixtureDir, `${name}.fixture.ts`));
|
||||
const [freeOutcomes, paidOutcomes, real] = await Promise.all([
|
||||
Promise.all(files.map(runFree)),
|
||||
Promise.all(files.map(runPaid)),
|
||||
free.runFreeShard([REAL_SHARD], 1, 1, {
|
||||
rootDir: root, quiet: true, log: () => {}, logFilePath: path.join(scratch, 'real.log'),
|
||||
}),
|
||||
]);
|
||||
const byName = <T>(values: T[]) => Object.fromEntries(FIXTURES.map((name, index) => [name, values[index]]));
|
||||
// Lane exit for a run of just that fixture, and for the whole corpus.
|
||||
const paidExit = (outcomes: unknown[], evalsAll: boolean) =>
|
||||
paid.summaryExitCode(paid.summarize(paid.applyHollowShardGuard(outcomes, { evalsAll, warn: () => {} })));
|
||||
const record = {
|
||||
free: {
|
||||
fixtures: byName(freeOutcomes.map((o: any) => ({ status: o.status, exitCode: o.exitCode, laneExit: freeExit(o.status) }))),
|
||||
laneExit: Math.max(...freeOutcomes.map((o: any) => freeExit(o.status))),
|
||||
},
|
||||
paid: {
|
||||
fixtures: byName(paidOutcomes.map((o: any) => ({
|
||||
status: o.status, exitCode: o.exitCode, executedTests: o.executedTests, skippedTests: o.skippedTests,
|
||||
laneExit: { selective: paidExit([o], false), evalsAll: paidExit([o], true) },
|
||||
}))),
|
||||
laneExit: { selective: paidExit(paidOutcomes, false), evalsAll: paidExit(paidOutcomes, true) },
|
||||
},
|
||||
realShard: { file: REAL_SHARD, status: real.status, ...real.summary },
|
||||
};
|
||||
console.log(`SHARD_EQUIVALENCE:${JSON.stringify(record)}`);
|
||||
} finally {
|
||||
fs.rmSync(scratch, { recursive: true, force: true });
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
import { test } from 'bun:test';
|
||||
|
||||
test.skip('skipped', () => {});
|
||||
@@ -0,0 +1,6 @@
|
||||
import { test } from 'bun:test';
|
||||
|
||||
test('first', () => {});
|
||||
// Rejects outside any test: bun prints "# Unhandled error between tests".
|
||||
Promise.reject(new Error('unhandled between tests fixture'));
|
||||
test('second', () => {});
|
||||
@@ -0,0 +1,7 @@
|
||||
import { test } from 'bun:test';
|
||||
|
||||
// Blocks the main thread, so no in-process timer can end it: only the
|
||||
// runner's external wall-clock group kill can.
|
||||
test('blocks past the wall deadline', () => {
|
||||
Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, 60_000);
|
||||
});
|
||||
@@ -0,0 +1,2 @@
|
||||
// Declares no tests: bun reports "Ran 0 tests across 1 file".
|
||||
export const noTests = true;
|
||||
@@ -0,0 +1,94 @@
|
||||
{
|
||||
"workstream": "W1 state-root owners",
|
||||
"recordedAt": "96764e80",
|
||||
"sources": {
|
||||
"browse/src/config.ts": {
|
||||
"e2e": [
|
||||
"aside-browse-basic",
|
||||
"aside-browse-flow",
|
||||
"benchmark-workflow",
|
||||
"browse-basic",
|
||||
"browse-snapshot",
|
||||
"canary-workflow",
|
||||
"carve-section-loading",
|
||||
"design-review-detector-shim-dom",
|
||||
"design-review-fix",
|
||||
"diagram-authoring-quality",
|
||||
"diagram-triplet",
|
||||
"qa-b6-static",
|
||||
"qa-b7-spa",
|
||||
"qa-b8-checkout",
|
||||
"qa-fix-loop",
|
||||
"qa-only-no-fix",
|
||||
"qa-quick"
|
||||
],
|
||||
"llmJudge": [
|
||||
"browse/SKILL.md reference"
|
||||
]
|
||||
},
|
||||
"lib/cso/state.ts": {
|
||||
"e2e": [
|
||||
"cso-diff-mode",
|
||||
"cso-full-audit",
|
||||
"cso-infra-scope"
|
||||
],
|
||||
"llmJudge": []
|
||||
},
|
||||
"bin/gstack-paths": {
|
||||
"e2e": [
|
||||
"plan-design-with-ui-scope"
|
||||
],
|
||||
"llmJudge": []
|
||||
},
|
||||
"careful/bin/hook-extract.sh": {
|
||||
"e2e": [
|
||||
"investigate-owned-abort",
|
||||
"investigate-owned-completion",
|
||||
"investigate-owned-ending-error"
|
||||
],
|
||||
"llmJudge": []
|
||||
},
|
||||
"hosts/claude/hooks/question-log-hook.ts": {
|
||||
"e2e": [],
|
||||
"llmJudge": []
|
||||
},
|
||||
"hosts/claude/hooks/question-preference-hook.ts": {
|
||||
"e2e": [
|
||||
"auto-decide-preserved",
|
||||
"docsync-spawned"
|
||||
],
|
||||
"llmJudge": []
|
||||
},
|
||||
"hosts/claude/hooks/auq-error-fallback-hook.ts": {
|
||||
"e2e": [
|
||||
"docsync-spawned"
|
||||
],
|
||||
"llmJudge": []
|
||||
},
|
||||
"hosts/claude/hooks/timeline-stop-hook.ts": {
|
||||
"e2e": [],
|
||||
"llmJudge": []
|
||||
},
|
||||
"hosts/claude/hooks/memorable-user-prompt-hook.ts": {
|
||||
"e2e": [],
|
||||
"llmJudge": []
|
||||
}
|
||||
},
|
||||
"modules": {
|
||||
"lib/state-root.ts": [
|
||||
"browse/src/config.ts",
|
||||
"lib/cso/state.ts"
|
||||
],
|
||||
"bin/gstack-state-root.sh": [
|
||||
"bin/gstack-paths",
|
||||
"careful/bin/hook-extract.sh"
|
||||
],
|
||||
"hosts/claude/hooks/hook-log.ts": [
|
||||
"hosts/claude/hooks/question-log-hook.ts",
|
||||
"hosts/claude/hooks/question-preference-hook.ts",
|
||||
"hosts/claude/hooks/auq-error-fallback-hook.ts",
|
||||
"hosts/claude/hooks/timeline-stop-hook.ts",
|
||||
"hosts/claude/hooks/memorable-user-prompt-hook.ts"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"workstream": "W2 shared shard engine",
|
||||
"recordedAt": "96764e80",
|
||||
"sources": {
|
||||
"scripts/test-strict-output.ts": {
|
||||
"e2e": "global",
|
||||
"llmJudge": "global"
|
||||
},
|
||||
"scripts/test-free-shards.ts": {
|
||||
"e2e": [],
|
||||
"llmJudge": []
|
||||
},
|
||||
"scripts/test-paid-shards.ts": {
|
||||
"e2e": "global",
|
||||
"llmJudge": "global"
|
||||
}
|
||||
},
|
||||
"modules": {
|
||||
"scripts/lib/shard-engine.ts": [
|
||||
"scripts/test-strict-output.ts",
|
||||
"scripts/test-free-shards.ts",
|
||||
"scripts/test-paid-shards.ts"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
{
|
||||
"workstream": "W3 browse route table",
|
||||
"recordedAt": "96764e80",
|
||||
"sources": {
|
||||
"browse/src/server.ts": {
|
||||
"e2e": [
|
||||
"aside-browse-basic",
|
||||
"aside-browse-flow",
|
||||
"benchmark-workflow",
|
||||
"browse-basic",
|
||||
"browse-snapshot",
|
||||
"canary-workflow",
|
||||
"carve-section-loading",
|
||||
"design-review-detector-shim-dom",
|
||||
"design-review-fix",
|
||||
"diagram-authoring-quality",
|
||||
"diagram-triplet",
|
||||
"qa-b6-static",
|
||||
"qa-b7-spa",
|
||||
"qa-b8-checkout",
|
||||
"qa-fix-loop",
|
||||
"qa-only-no-fix",
|
||||
"qa-quick"
|
||||
],
|
||||
"llmJudge": [
|
||||
"browse/SKILL.md reference"
|
||||
]
|
||||
}
|
||||
},
|
||||
"modules": {
|
||||
"browse/src/routes/activity.ts": [
|
||||
"browse/src/server.ts"
|
||||
],
|
||||
"browse/src/routes/commands.ts": [
|
||||
"browse/src/server.ts"
|
||||
],
|
||||
"browse/src/routes/core.ts": [
|
||||
"browse/src/server.ts"
|
||||
],
|
||||
"browse/src/routes/files.ts": [
|
||||
"browse/src/server.ts"
|
||||
],
|
||||
"browse/src/routes/index.ts": [
|
||||
"browse/src/server.ts"
|
||||
],
|
||||
"browse/src/routes/inspector.ts": [
|
||||
"browse/src/server.ts"
|
||||
],
|
||||
"browse/src/routes/pairing.ts": [
|
||||
"browse/src/server.ts"
|
||||
],
|
||||
"browse/src/routes/pty.ts": [
|
||||
"browse/src/server.ts"
|
||||
],
|
||||
"browse/src/routes/table.ts": [
|
||||
"browse/src/server.ts"
|
||||
],
|
||||
"browse/src/routes/tokens.ts": [
|
||||
"browse/src/server.ts"
|
||||
],
|
||||
"browse/src/routes/tunnel.ts": [
|
||||
"browse/src/server.ts"
|
||||
]
|
||||
}
|
||||
}
|
||||
+65
@@ -0,0 +1,65 @@
|
||||
{
|
||||
"workstream": "W4 PTY harness split",
|
||||
"recordedAt": "96764e80",
|
||||
"sources": {
|
||||
"test/helpers/claude-pty-runner.ts": {
|
||||
"e2e": [
|
||||
"auq-format-gate",
|
||||
"auto-decide-preserved",
|
||||
"carve-section-loading",
|
||||
"office-hours-auto-mode",
|
||||
"office-hours-section-loading",
|
||||
"plan-ceo-finding-floor",
|
||||
"plan-ceo-mode-routing",
|
||||
"plan-ceo-review-plan-mode",
|
||||
"plan-ceo-section-loading",
|
||||
"plan-ceo-split-overflow",
|
||||
"plan-design-finding-floor",
|
||||
"plan-design-review-plan-mode",
|
||||
"plan-design-with-ui-scope",
|
||||
"plan-devex-finding-floor",
|
||||
"plan-devex-review-plan-mode",
|
||||
"plan-eng-finding-floor",
|
||||
"plan-eng-multi-finding-batching",
|
||||
"plan-eng-review-plan-mode",
|
||||
"plan-mode-no-op",
|
||||
"ship-section-loading"
|
||||
],
|
||||
"llmJudge": []
|
||||
},
|
||||
"test/helpers/pty-screen.ts": {
|
||||
"e2e": [
|
||||
"auq-format-gate",
|
||||
"auto-decide-preserved",
|
||||
"carve-section-loading",
|
||||
"office-hours-auto-mode",
|
||||
"office-hours-section-loading",
|
||||
"plan-ceo-finding-floor",
|
||||
"plan-ceo-mode-routing",
|
||||
"plan-ceo-review-plan-mode",
|
||||
"plan-ceo-section-loading",
|
||||
"plan-ceo-split-overflow",
|
||||
"plan-design-finding-floor",
|
||||
"plan-design-review-plan-mode",
|
||||
"plan-design-with-ui-scope",
|
||||
"plan-devex-finding-floor",
|
||||
"plan-devex-review-plan-mode",
|
||||
"plan-eng-finding-floor",
|
||||
"plan-eng-multi-finding-batching",
|
||||
"plan-eng-review-plan-mode",
|
||||
"plan-mode-no-op",
|
||||
"ship-section-loading"
|
||||
],
|
||||
"llmJudge": []
|
||||
}
|
||||
},
|
||||
"modules": {
|
||||
"test/helpers/pty/": [
|
||||
"test/helpers/claude-pty-runner.ts"
|
||||
],
|
||||
"test/helpers/pty/screen.ts": [
|
||||
"test/helpers/claude-pty-runner.ts",
|
||||
"test/helpers/pty-screen.ts"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
{
|
||||
"workstream": "W5 review resolvers",
|
||||
"recordedAt": "96764e80",
|
||||
"sources": {
|
||||
"scripts/resolvers/review.ts": {
|
||||
"e2e": [
|
||||
"autoplan-dual-voice",
|
||||
"carve-section-loading",
|
||||
"codex-offered-eng-review",
|
||||
"llm-judge-recommendation",
|
||||
"office-hours-section-loading",
|
||||
"office-hours-spec-review",
|
||||
"outside-plan-disabled-no-fallback",
|
||||
"outside-voice-claude-code-to-codex",
|
||||
"outside-voice-codex-to-claude-code",
|
||||
"plan-ceo-finding-floor",
|
||||
"plan-ceo-review-plan-mode",
|
||||
"plan-ceo-review-prosons-cadence",
|
||||
"plan-ceo-section-loading",
|
||||
"plan-ceo-split-overflow",
|
||||
"plan-design-finding-floor",
|
||||
"plan-design-review-plan-mode",
|
||||
"plan-devex-finding-floor",
|
||||
"plan-devex-review-plan-mode",
|
||||
"plan-eng-coverage-audit",
|
||||
"plan-eng-finding-floor",
|
||||
"plan-eng-multi-finding-batching",
|
||||
"plan-eng-review",
|
||||
"plan-eng-review-artifact",
|
||||
"plan-eng-review-format-coverage",
|
||||
"plan-eng-review-format-kind",
|
||||
"plan-eng-review-plan-mode",
|
||||
"plan-mode-no-op",
|
||||
"plan-review-prosons-format",
|
||||
"plan-review-report",
|
||||
"review-army-delivery-audit",
|
||||
"review-dashboard-via",
|
||||
"review-exploratory-small-cli",
|
||||
"shared-libs-review-index-flags",
|
||||
"shared-libs-review-lifecycle",
|
||||
"shared-libs-review-path-eligibility",
|
||||
"shared-libs-review-prior-coverage",
|
||||
"shared-libs-review-revalidation",
|
||||
"ship-exploratory-late-input",
|
||||
"ship-exploratory-plan-checks",
|
||||
"ship-exploratory-small-cli",
|
||||
"ship-exploratory-unavailable",
|
||||
"ship-skipped-queued-finding"
|
||||
],
|
||||
"llmJudge": [
|
||||
"plan-design-review/SKILL.md passes",
|
||||
"plan-eng-review/SKILL.md sections",
|
||||
"review/SKILL.md workflow",
|
||||
"ship/SKILL.md workflow"
|
||||
]
|
||||
},
|
||||
"scripts/resolvers/design.ts": {
|
||||
"e2e": [
|
||||
"autoplan-dual-voice",
|
||||
"design-consultation-core",
|
||||
"design-consultation-research",
|
||||
"design-html-slop-gate",
|
||||
"design-review-detector-shim",
|
||||
"design-review-detector-shim-dom",
|
||||
"design-review-fix",
|
||||
"design-review-plugin-handoff",
|
||||
"plan-design-with-ui-scope"
|
||||
],
|
||||
"llmJudge": [
|
||||
"design-consultation/SKILL.md research",
|
||||
"plan-design-review/SKILL.md passes"
|
||||
]
|
||||
}
|
||||
},
|
||||
"modules": {
|
||||
"scripts/resolvers/review-dashboard.ts": [
|
||||
"scripts/resolvers/review.ts"
|
||||
],
|
||||
"scripts/resolvers/plan-gates.ts": [
|
||||
"scripts/resolvers/review.ts"
|
||||
],
|
||||
"scripts/resolvers/spec-review.ts": [
|
||||
"scripts/resolvers/review.ts"
|
||||
],
|
||||
"scripts/resolvers/outside-voice-steps.ts": [
|
||||
"scripts/resolvers/review.ts"
|
||||
],
|
||||
"scripts/resolvers/review-scope.ts": [
|
||||
"scripts/resolvers/review.ts"
|
||||
],
|
||||
"scripts/resolvers/outside-voice.ts": [
|
||||
"scripts/resolvers/review.ts",
|
||||
"scripts/resolvers/design.ts"
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user