Skip to content

v1.91.227.0 fix(windows): shell bins pass NUL as Bun's empty config when MSYS path conversion is off (#3415) - #3431

Merged
capy-ai[bot] merged 7 commits into
mainfrom
capy/gsta-95-bun-config-windows
Oct 26, 2026
Merged

capy-ai[bot] merged 7 commits into
mainfrom
capy/gsta-95-bun-config-windows

Conversation

@garrytan

@garrytan garrytan commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 3431,
  "head": "040b35a64399f68b728261a05794cd728a1a694e",
  "version": "1.91.223.0",
  "base": "main",
  "gate": {
    "pregate.json/remote_gate": {
      "pass": 20610,
      "fail": 0
    },
    "free-tests.yml/macos-named-regressions": {
      "pass": 6,
      "fail": 0
    },
    "free-tests.yml/cso-macos-launcher": {
      "pass": 3,
      "fail": 0
    },
    "free-tests.yml/cso-windows-launcher": {
      "pass": 1,
      "fail": 0
    },
    "windows-free-tests.yml/windows-free-shard": {
      "pass": 750,
      "fail": 0
    },
    "windows-setup-e2e.yml/windows-setup": {
      "pass": 1,
      "fail": 0
    }
  },
  "session_kind": "unattended",
  "pregate": "requires-remote cleared @9e4c4a3f4483 (7 checks, current for 040b35a64399)",
  "requires_remote": [
    "free-tests.yml/cso-macos-launcher: https://github.com/garrytan/gstack/actions/runs/40253987593",
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/40253987593",
    "free-tests.yml/cso-windows-launcher: https://github.com/garrytan/gstack/actions/runs/40253987593",
    "windows-free-tests.yml/windows-free-shard: https://github.com/garrytan/gstack/actions/runs/40253985356",
    "windows-setup-e2e.yml/windows-setup: https://github.com/garrytan/gstack/actions/runs/40253993463",
    "pregate.json/remote_gate: remote-gate tree=9e4c4a3f4483 tests=20610"
  ],
  "issues": {
    "fixes": [
      3415
    ],
    "refs": [],
    "flakes": []
  }
}

What changed

Before: on a Windows bash with MSYS path conversion off, review-log, question-log and learnings-log exit 1 with nothing written and timeline-log exits 0 with nothing written. After: all write their records. The probe table shows bun.exe rejects /dev/null and accepts NUL on 1.4.2+.

Before and after: the record bins on a Windows bash with MSYS path conversion off (same harness), plus the windows-latest probe of each --config spelling.

  • Shell files resolve Bun's empty config per platform. 40 shipped shell files (the bash bins, the Claude hook wrappers, setup, scripts/build-cso.sh and one migration) define GSTACK_BUN_CONFIG once: NUL when OSTYPE is msys or cygwin and cygpath exists, /dev/null otherwise. Their 77 Bun calls pass --config="${GSTACK_BUN_CONFIG:-/dev/null}". The cygpath check means an OSTYPE=msys inherited into a POSIX shell can no longer make Bun read a file named NUL from the repository. The :-/dev/null default fails closed: a call that loses its definition never falls back to the repository's bunfig.toml.
  • Bun failures are no longer reported as success. gstack-timeline-log and gstack-developer-profile --log-session validate input with a printed valid/invalid verdict instead of exit 3, because a crashing Bun on Windows also exits 3. Invalid input still skips silently with exit 0. A Bun failure is now reported on stderr and returned. A timeline event whose timestamp stamp fails is kept as it arrived.
  • Unchanged: bun shebangs and skill prose keep --config=/dev/null. A shebang cannot name a per-platform path, and with conversion off their POSIX script paths also fail in bun.exe, so they behave as before; the CHANGELOG says so. TypeScript spawns keep bunIsolationArgs(). scripts/ubicloud/ runs on Linux and keeps /dev/null.

Why

#3415. Native bun.exe cannot open /dev/null: it exits 1 with EINVAL (probed on windows-latest with Bun 1.4.2 and 1.4.4; Bun 1.3.10 also rejects NUL, and is below gstack's 1.4.2 minimum). Git Bash hides this only while MSYS path conversion is on. With conversion off (MSYS_NO_PATHCONV, MSYS2_ARG_CONV_EXCL=*, or Cygwin), /review, /ship and the question and learning loggers wrote no records, and timeline events were dropped with exit 0. Users see their review and learning records kept on those shells.

Approvals

Date Asked Exact words Outcome Covers Still pending
2026-10-25 Train #3431 at pin 040b35a without a pre-train screen (the screen ran 0 slices on a stale merge ref), or merge main to rerun it “option 1, train it as is at pin 040b35a; the train gate runs the full set. Do not merge main.” (GStack Minder) approved #3431 at 040b35a, train without screen none
2026-10-25 Close #3415 on merge (Fixes) or keep Refs “Change the body to "Fixes #3415": the windows-latest probe and the win32 control prove the reported failure and its repair, and the issue reopens if the reporter disagrees.” (GStack Minder) approved #3431 PR body issue link none

Source: gstack-approvals record for capy/gsta-95-bun-config-windows (display only; not an approval citation).

Summary

  • Per-platform empty config for shipped shell files (27e5dce, de5998f): the GSTACK_BUN_CONFIG definition and call-site spelling across 40 files, Windows detection from OSTYPE as gstack-doctor does, and a stricter test/bun-entry-isolation.test.ts ratchet.
  • Review fixes (8f4cbb8, 9a79cee): the cygpath gate, the printed-verdict validators in gstack-timeline-log and gstack-developer-profile, a function-scoped definition check in the ratchet, and new regression tests.
  • Base merge d77948c (before this /ship run) and CHANGELOG wording (040b35a).

Test Coverage

All new code paths have test coverage.
Tests: 1438 → 1438 (+0 new files; new cases in existing files).
Coverage: 100% value-weighted (100% including 0 weakly covered paths).
Test value: 0 tests written by the audit, 3 rejected by the authoring gate, 0 existing tests extended, 0 paths weakly covered.
Regression tests added during review: an OSTYPE=msys spoof without cygpath (4 failures at d77948c), --log-session Bun failure, and a Bun that crashes with exit 3 (red at 8f4cbb8). All green at this head.
Tests ran: tests count unavailable (the receipt did not parse the runner summary; the Ubicloud gate log reports 20610 tests, 0 failed).

Pre-Landing Review

Three review passes (/review specialists: testing, maintainability, security, performance, data-migration, simplification; Red Team in passes 2 and 3; native adversarial on Claude Opus). The final pass, on tree 559389dc, converged with informational findings only; both review records are bound to that tree.

  • Fixed: OSTYPE spoof leading to a cwd NUL read (security and adversarial); --log-session swallowing Bun failures; exit 3 colliding with a Windows Bun crash (Red Team); a lost timeline event when the timestamp stamp fails; vacuous spelling anchors in learnings-injection tests; ratchet definition scope; a stale curation reason.
  • Skipped, with reasons: setup probe_cmd nested quotes (the value is one of two literals); top-level assignment in sourced libs (same value everywhere); Bun < 1.4.2 NUL behaviour (below the engines minimum); skill prose and shebangs that still pass the literal /dev/null, for example scripts/resolvers/outside-voice.ts:66 (out of scope, documented in the CHANGELOG); an untested "printed no verdict" branch; simplification advisories.

Gate edits: 18 listed, 12 read, 0 findings — 0 kept, 0 restored, 0 open. test/bun-entry-isolation.test.ts is strengthened: shipped shell files must use the fail-closed spelling and define GSTACK_BUN_CONFIG before first use, inside the function that uses it when defined locally; the detector skips a --config value before deciding whether a call starts a program. Other test edits are spelling anchors. No threshold, budget, timeout, trial count or case kind changed.

Outside review: pass 1 used openai/gpt-6.1-sol, which returned NO_FINDINGS. Codex is not installed, so passes 2 and 3 have no outside voice: missing coverage, not a pass.

Exploratory QA

No browser or app surface changed. The behaviour was exercised through the bins in the regression tests above and on windows-latest CI.

Design Review

No frontend files changed — design review skipped.

Eval Results

No prompt-related files changed — evals skipped.

Scope Drift

Scope Check: CLEAN

Plan Completion

Plan completion audit: not run (no plan is bound to this branch).

Issues

Fixes #3415

Verification Results

No Step 8.1 obligations (no plan bound).

TODOS

No TODO items completed in this PR.

Documentation

Status: current. No edits. Every shipped claim in the two docs this branch changed (AGENTS.md and the CHANGELOG [Unreleased] entry) matches the code at head 040b35a, and no other audited doc says anything the change contradicts.

Scope. Base 1c28c09 to head 040b35a (51 changed files, 6 commits, clean working tree: nothing staged, unstaged or untracked). Of the 51, 40 are shipped shell files, 2 are docs (AGENTS.md, CHANGELOG.md), and the rest are lib/bun-isolation.ts, scripts/lib/windows-curation.ts and 7 test files. The discovery inventory held 736 tracked doc-role files (md, txt, tmpl). I read the changed docs and the claim-bearing sections of the other docs that mention Bun isolation, Windows, Git Bash or the Windows test lane. The banned-terms check reports none (the base has no list).

Claims checked against source

  • AGENTS.md (Key conventions, Bun isolation bullet): the shebang spelling, the skill-prose spelling, the GSTACK_BUN_CONFIG definition rule (NUL when OSTYPE is msys or cygwin and cygpath is on PATH), the bunIsolationArgs() spawn rule, the --no-compile-autoload flags and the claim that test/bun-entry-isolation.test.ts enforces all four match the test's SHELL_FLAGS and CONFIG_DEF constants and the shipped shell files. Skill prose across templates and SKILL.md files keeps the literal spelling, as the bullet says.
  • CHANGELOG [Unreleased]: "40 shipped shell files" matches the count of non-test files defining GSTACK_BUN_CONFIG (40). The list of file kinds (bash bins, Claude hook wrappers, setup, scripts/build-cso.sh, one migration) matches. The "Unchanged" items hold: scripts/ubicloud keeps the literal spelling, TypeScript spawns use bunIsolationArgs(), and gstack-doctor already detects Windows from OSTYPE. The "Not covered" item holds: scripts/resolvers/outside-voice.ts and the shebangs still pass the literal --config=/dev/null. The windows-curation.ts entry is force-included in the Windows lane (knownSafe in that file merges KNOWN_WINDOWS_SAFE and WINDOWS_PROBE_SAFE). The gstack-timeline-log and gstack-developer-profile --log-session behavior matches the diff (valid or invalid verdict, stderr report, original event kept when stamping fails).
  • Not re-measured by me: the Bun 1.3.10, 1.4.2 and 1.4.4 behavior on windows-latest, and the failure counts quoted for the new tests. Those are recorded evidence from the author's runs, not something a static doc audit can reproduce.

Documentation health

File Status Detail
AGENTS.md Current Updated by this branch and verified above. No further edit.
CHANGELOG.md Current [Unreleased] entry verified above. Not edited (protected).
agents-digest/gstack-AGENTS.md Current Has no Bun isolation text, so the AGENTS.md change needs no digest regeneration.
README.md Current Windows section says Git Bash or WSL and does not state the config spelling. No contradiction.
CLAUDE.md, ARCHITECTURE.md Current Keyword search found no claim about the config spelling, GSTACK_BUN_CONFIG, NUL or the changed bins.
CONTRIBUTING.md Current The test:windows row and the Windows duration and qualification rows still match the lane.
docs/TESTING_INTERNALS.md Current The Windows free lane section names WINDOWS_PROBE_SAFE; the new entry sits in the sibling KNOWN_WINDOWS_SAFE list, which the doc does not name. Nothing contradicted.
docs/pregate.md, docs/troubleshooting.md Current The --no-env-file and bunfig.toml statements still hold; the shebang form is unchanged.
docs/ship-policy.md Current Its restamp snippet is a copy-paste command, not a shipped shell file, so the literal spelling is correct there.
Other candidate docs (docs/designs, evals, spikes, howtos) Not edited No claim about the changed contract found. TODOS.md hits for --no-env-file are historical notes, not contradicted.
VERSION Not audited Protected metadata. Branch leaves it at main's value; the entry sits under [Unreleased] as the repo's stamp-at-merge rule expects.

Cross-doc check (Step 6). No contradictions. AGENTS.md, the CHANGELOG entry and the lib/bun-isolation.ts header give the same account of the spelling. No doc was added or removed, so README and CLAUDE.md discoverability is unchanged.

Documentation debt (nothing generated).

Entity Reference How-to Tutorial Explanation
GSTACK_BUN_CONFIG and the NUL spelling Yes: AGENTS.md, CHANGELOG No No Yes: lib/bun-isolation.ts header, CHANGELOG
gstack-timeline-log and --log-session reporting a failing Bun on stderr CHANGELOG only No No CHANGELOG only
test/bun-config-shell-bins.test.ts CHANGELOG, windows-curation.ts No No No
Windows record-bin fix with MSYS path conversion off CHANGELOG only No No CHANGELOG only

Common gap: docs/troubleshooting.md has no Windows entry for review, question, learning or timeline records going missing with path conversion off, and no user-facing doc describes the new stderr report. An author-written troubleshooting entry or /document-generate could fill it. Not critical, not filled here.

Diagram drift. None. ARCHITECTURE.md and the other docs hold no diagram naming the changed entities.

Test plan

  • Remote free gate on Ubicloud, gstack-pregate --remote at tree 9e4c4a3f4483 (head 040b35a): 20610 tests, 0 failed, $0.07.
  • bun run build and bun run skill:check: pass (1163 generated artifacts, 139 tracked outputs compared).
  • typecheck clean; typecheck:test reports no new diagnostics.
  • CI at 040b35a, all green: Free Tests (macos-named-regressions, cso-macos-launcher, cso-windows-launcher), Windows Setup E2E, Windows Pregate E2E, Windows Free Tests.

Open in Capy

garrytan and others added 2 commits October 25, 2026 23:31
…h conversion is off (#3415)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…tor does, so uname stubs in setup fixtures stay untouched

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

trunk-io Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

…ig-windows

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

# Conflicts:
#	CHANGELOG.md
#	bin/gstack-question-log
@github-actions

Copy link
Copy Markdown
Contributor

E2E Evals: ✅ PASS

[test:paid] VERDICT GREEN — lane gate/pr, attempt 1
  rule 112/112 · behavior 0/0 · judge 24/24 · quarantined 0 (0 failing the lane)
  SKIPPED 0 · INFRA 0 · INCOMPLETE 0 · unattributed 0 · ACTION REQUIRED 0
  wall 6m47s · cost $32.88 known + 54 of 136 trial(s) cost unknown

125 executed, 0 reused rule/judge records | 0 manual accepted (unscored; no score-cache credit) | $32.88 rule/judge cost | reconcile exit: 0

Profile: pr / mode full-fallback; selected behaviors: 112, judges: 24. Deferred to scheduled/release coverage: 139 behaviors and 0 changed prompt files. Deferred checks did not run and receive no PR-pass credit.

Derived dependents (scripts/pr-dependencies.ts):

  • bin/gstack-brain-sync: 250 case(s), 24 judge(s)
  • bin/gstack-browser-ensure: 250 case(s), 24 judge(s)
  • bin/gstack-distill-apply: 12 case(s), 0 judge(s)
  • bin/gstack-distill-free-text: 12 case(s), 0 judge(s)
  • bin/gstack-doctor: 250 case(s), 24 judge(s)
  • bin/gstack-doctor-check.sh: 250 case(s), 24 judge(s)
  • bin/gstack-gbrain-source-wireup: 250 case(s), 24 judge(s)
  • bin/gstack-hook-check: 250 case(s), 24 judge(s)
  • bin/gstack-install-verdict.sh: 250 case(s), 24 judge(s)
  • bin/gstack-ios-qa-daemon: 12 case(s), 0 judge(s)
  • bin/gstack-ios-qa-mint: 12 case(s), 0 judge(s)
  • bin/gstack-ios-qa-regen: 13 case(s), 0 judge(s)
  • bin/gstack-memorable: 250 case(s), 24 judge(s)
  • bin/gstack-settings-hook: 250 case(s), 24 judge(s)
  • bin/gstack-specialist-stats: 250 case(s), 24 judge(s)
  • bin/gstack-team-init: 250 case(s), 24 judge(s)
  • bin/gstack-telemetry-log: 250 case(s), 24 judge(s)
  • hosts/claude/hooks/auq-error-fallback-hook: 250 case(s), 24 judge(s)
  • hosts/claude/hooks/memorable-user-prompt-hook: 250 case(s), 24 judge(s)
  • hosts/claude/hooks/question-log-hook: 250 case(s), 24 judge(s)
  • hosts/claude/hooks/question-preference-hook: 250 case(s), 24 judge(s)
  • hosts/claude/hooks/timeline-stop-hook: 250 case(s), 24 judge(s)
  • scripts/build-cso.sh: 250 case(s), 24 judge(s)
  • scripts/lib/windows-curation.ts: 250 case(s), 24 judge(s)
Rule and judge shards
Shard Automated result Manual/unscored Executed Reused Status Cost
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-store 1/1 0 1 0 ✅ $1
e2e-review-army/skill-e2e-review-army--review-army-json-findings 1/1 0 1 0 ✅ $0.06
e2e-deploy/skill-e2e-deploy--setup-deploy-workflow 1/1 0 1 0 ✅ $0.11
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-current 1/1 0 1 0 ✅ $1.14
e2e-hermetic/skill-e2e-hermetic-canary 2/2 0 2 0 ✅ $0.02
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-completion 1/1 0 1 0 ✅ $0.95
e2e-qa-functional/skill-e2e-qa-functional 2/2 0 2 0 ✅ $0.8
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-plan-checks 1/1 0 1 0 ✅ $0.69
e2e-qa-callers/skill-e2e-qa-callers--review-exploratory-small-cli 1/1 0 1 0 ✅ $0.73
e2e-cso/skill-e2e-cso 1/1 0 1 0 ✅ $0.36
e2e/skill-e2e-ship-skip 1/1 0 1 0 ✅ $0.22
e2e/skill-e2e-shared-libs--shared-libs-read-only 1/1 0 1 0 ✅ $0.21
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-stale-before 1/1 0 1 0 ✅ $0.35
e2e-review-army/skill-e2e-review-army--review-army-migration-safety 1/1 0 1 0 ✅ $0.26
e2e/skill-e2e-shared-libs--shared-libs-unsupported-git 1/1 0 1 0 ✅ $0.17
e2e/skill-e2e-shared-libs--shared-libs-review-lifecycle 1/1 0 1 0 ✅ $0.88
e2e-qa-workflow/skill-e2e-qa-workflow--qa-bootstrap 1/1 0 1 0 ✅ $0.09
e2e-design/skill-e2e-design--plan-design-review-no-ui-scope 1/1 0 1 0 ✅ $0.08
e2e-deploy/skill-e2e-deploy--canary-workflow 1/1 0 1 0 ✅ $0.11
e2e/skill-e2e-investigate-owned-termination 2/2 0 2 0 ✅ $0.18
e2e/skill-e2e-investigate-owned-completion 1/1 0 1 0 ✅ $0.07
e2e-review-army/skill-e2e-review-army--review-army-delivery-audit 1/1 0 1 0 ✅ $0.13
e2e-design/skill-e2e-design--design-review-detector-shim 1/1 0 1 0 ✅ $0.13
e2e-safety-pair-agent/skill-e2e-safety-pair-agent 1/1 0 1 0 ✅ $0.1
e2e-learnings/skill-e2e-learnings 1/1 0 1 0 ✅ $0.08
e2e/skill-e2e-ship-hook-refresh 1/1 0 1 0 ✅ $0.12
e2e-deploy/skill-e2e-deploy--land-and-deploy-review-gate 1/1 0 1 0 ✅ $0.2
e2e-deploy/skill-e2e-deploy--benchmark-workflow 1/1 0 1 0 ✅ $0.19
e2e/skill-e2e-shared-libs-paths--shared-libs-review-index-flags 1/1 0 1 0 ✅ $0.94
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-stale-after 1/1 0 1 0 ✅ $0.35
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-small-cli 1/1 0 1 0 ✅ $0.7
e2e-review-army/skill-e2e-review-army--review-army-perf-n-plus-one 1/1 0 1 0 ✅ $0.34
e2e-triage/skill-e2e-triage 1/1 0 1 0 ✅ $0.11
e2e-third-party-actions/skill-e2e-third-party-actions 5/5 0 5 0 ✅ $0.44
e2e-browse/skill-e2e-bws 6/6 0 6 0 ✅ $0.29
e2e-review-attribution/skill-e2e-review-attribution 3/3 0 3 0 ✅ $0.3
e2e-safety-ship-evidence/skill-e2e-safety-ship-evidence 1/1 0 1 0 ✅ $0.12
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-missing-marker 1/1 0 1 0 ✅ $0.16
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-timeout-unsettled 1/1 0 1 0 ✅ $0.19
e2e-session-intelligence/skill-e2e-session-intelligence 4/4 0 4 0 ✅ $0.27
e2e-plan-tune/skill-e2e-plan-tune 1/1 0 1 0 ✅ $0.14
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-launch-failure 1/1 0 1 0 ✅ $0.15
e2e/skill-e2e-test-value 3/3 0 3 0 ✅ $0.74
e2e-retro/skill-e2e-retro 1/1 0 1 0 ✅ $0.33
e2e-qa-workflow/skill-e2e-qa-workflow--qa-only-no-fix 1/1 0 1 0 ✅ $0.53
e2e-qa-functional-fix/skill-e2e-qa-functional-fix 2/2 0 2 0 ✅ $1.01
e2e-review-army/skill-e2e-review-army--review-army-quality-score 1/1 0 1 0 ✅ $0.11
e2e-qa-workflow/skill-e2e-qa-workflow--qa-quick 1/1 0 1 0 ✅ $0.47
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-unavailable 1/1 0 1 0 ✅ $0.68
e2e/skill-e2e-plan--plan-review-report 1/1 0 1 0 ✅ $1.79
e2e/skill-e2e-ship-hook-consent 2/2 0 2 0 ✅ $0.21
e2e/skill-e2e-shared-libs-paths--shared-libs-review-prior-coverage 1/1 0 1 0 ✅ $0.94
e2e-deploy/skill-e2e-deploy--land-and-deploy-workflow 1/1 0 1 0 ✅ $0.58
e2e-review/skill-e2e-review 2/2 0 2 0 ✅ $0.35
e2e/skill-e2e-shared-libs--shared-libs-review-revalidation 1/1 0 1 0 ✅ $1.86
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-late-result 1/1 0 1 0 ✅ $0.32
e2e-docsync-spawned/skill-e2e-docsync-spawned 1/1 0 1 0 ✅ $0.58
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-missing-asset 1/1 0 1 0 ✅ $0.27
e2e-deploy/skill-e2e-deploy--land-and-deploy-first-run 1/1 0 1 0 ✅ $0.38
e2e-design/skill-e2e-design--design-review-plugin-handoff 1/1 0 1 0 ✅ $0.15
e2e-design/skill-e2e-design--design-review-detector-shim-dom 1/1 0 1 0 ✅ $0.25
e2e/skill-e2e-coverage-audit 2/2 0 2 0 ✅ $0.26
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-recovery 1/1 0 1 0 ✅ $0.33
llm-judge/skill-llm-eval 24/24 0 24 0 ✅ $1.44
e2e-skillify/skill-e2e-skillify 3/3 0 3 0 ✅ $0.83
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-failure 1/1 0 1 0 ✅ $0.66
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-late-input 1/1 0 1 0 ✅ $0.94
e2e-failure-routing/skill-e2e-failure-routing 4/4 0 4 0 ✅ $0.4
e2e-safety-codex-consult/skill-e2e-safety-codex-consult 1/1 0 1 0 ✅ $0.26
e2e/skill-e2e-workflow 4/4 0 4 0 ✅ $0.87
e2e/skill-e2e-shared-libs-paths--shared-libs-review-path-eligibility 1/1 0 1 0 ✅ $1.41
Fail-closed reconciliation
1s  test/skill-e2e-design.test.ts#design-review-detector-shim-dom
  slice 13  passed             34s  test/skill-e2e-design.test.ts#design-review-plugin-handoff
  slice 14  passed             34s  test/skill-e2e-safety-ship-evidence.test.ts
  slice 14  passed             43s  test/skill-e2e-review-attribution.test.ts
  slice 14  passed             29s  test/skill-e2e-office-hours-auto-mode.test.ts
  slice 14  passed             45s  test/skill-e2e-bws.test.ts
  slice 14  passed             50s  test/skill-e2e-third-party-actions.test.ts
  slice 14  passed             25s  test/skill-e2e-plan-tune.test.ts
  slice 14  passed             22s  test/skill-e2e-triage.test.ts
  slice 14  passed             39s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-timeout-unsettled
  slice 14  passed             25s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-missing-marker
  slice 14  passed             28s  test/skill-e2e-ask-user-question-format-compliance.test.ts
  slice 14  passed             24s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-launch-failure
  slice 14  passed             29s  test/skill-e2e-session-intelligence.test.ts
  slice 15  passed             23s  test/skill-e2e-investigate-owned-termination.test.ts
  slice 15  passed             22s  test/skill-e2e-design.test.ts#design-review-detector-shim
  slice 15  passed             20s  test/skill-e2e-deploy.test.ts#canary-workflow
  slice 15  passed             28s  test/skill-e2e-ship-hook-refresh.test.ts
  slice 15  passed             13s  test/skill-e2e-design.test.ts#plan-design-review-no-ui-scope
  slice 15  passed             23s  test/skill-e2e-review-army.test.ts#review-army-delivery-audit
  slice 15  passed             21s  test/skill-e2e-investigate-owned-completion.test.ts
  slice 15  passed             23s  test/skill-e2e-safety-pair-agent.test.ts
  slice 15  passed             21s  test/skill-e2e-qa-workflow.test.ts#qa-bootstrap
  slice 15  passed             12s  test/skill-e2e-learnings.test.ts
  slice 15  passed             14s  test/skill-e2e-diagram.test.ts
[test:paid] collector final outcomes: 125 executed, 0 reused; 125 passed, 0 failed, 0 manual accepted (unscored; no score-cache credit) (125 attempt records from 71 collectors; every record counts)
[test:paid] deselected testcases, zero credit (312):
[test:paid]    298  sibling case of a case shard (its own shard runs it)
[test:paid]      8  periodic-tier case (this lane runs gate)
[test:paid]      6  Bun hook placeholder of a skipped describe block (not a test)
[test:paid] VERDICT GREEN — lane gate/pr, attempt 1
  rule 112/112 · behavior 0/0 · judge 24/24 · quarantined 0 (0 failing the lane)
  SKIPPED 0 · INFRA 0 · INCOMPLETE 0 · unattributed 0 · ACTION REQUIRED 0
  wall 6m47s · cost $32.88 known + 54 of 136 trial(s) cost unknown
[test:paid] exercised-path map (shadow, non-blocking): 6 MAP_GAP line(s) over 105 executed case(s) with recorded commands
  MAP_GAP document-release bin/gstack-banned-terms: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP plan-review-report bin/gstack-plan-reality: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP plan-review-report browse/dist/browse: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP review-gate-integrity browse/dist/browse: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP ship-docsync-current bin/gstack-banned-terms: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP test-audit-report-only design/dist/design: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
[test:paid] report: every planned shard accounted and passed

Sliced lane: planner → duration-packed executors → fail-closed report. Behavior cases run a pre-registered 3-trial panel (PASS at 2/3 with no contract violation); a PASS 2/3 is shown with its failed trial, never as a clean pass. Reused results retain their original provenance and expiry.

Dispatched narrow screen (gstack-ship-queue ready --screen) of merge commit 0bda560cac79a2368648787650234870f0e5a5a8.

garrytan and others added 3 commits October 26, 2026 00:48
- Choose NUL only when cygpath is also on PATH, so an OSTYPE=msys inherited
  by a POSIX bash keeps /dev/null instead of a cwd-relative NUL file.
- gstack-developer-profile --log-session reports a Bun failure instead of
  skipping it as invalid input, like gstack-timeline-log.
- learnings-injection tests check that their anchored bun -e block exists.
- CHANGELOG names the callers this fix does not cover; curation reason fixed.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
- timeline-log and developer-profile validators print their verdict; any
  non-zero Bun exit is a reported failure (a Bun crash on Windows exits 3).
- timeline-log keeps the original event when ts stamping fails.
- The definition ratchet scopes a local GSTACK_BUN_CONFIG to its function.
- The shell-bins fixture clears its preload marker per test.
- CHANGELOG states the callers that discard the report and the Bun 1.3.x case.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…null callers (#3415)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
garrytan added a commit that referenced this pull request Oct 26, 2026
… stale merge ref, ship-run.json)

- ready accepts the pin's receipt at a slot's stamp commit (plus the slot-2
  merge of main), as verify --train already did; a real edit stays STALE
- ready --screen refuses QUEUE_SCREEN_STALE_REF when refs/pull/<n>/merge is
  missing or merges an older head; a finished screen that planned 0 cases is
  never followed, and train build seats that slot unscreened (GSTA-95 on #3431)
- gstack-ship-receipt result writes ship-run.json (a /ship record, not a run
  v1 manifest), validates --head, and prints status=incomplete on gh failures
- bindReceipt takes an optional pr and renders one-line SHIP_RECEIPT lines
- tests for every state-matrix cell the review named; the train fixture's
  merge ref is a real merge commit

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@github-actions github-actions Bot changed the title fix(windows): shell bins pass NUL as Bun's empty config when MSYS path conversion is off (#3415) v1.91.227.0 fix(windows): shell bins pass NUL as Bun's empty config when MSYS path conversion is off (#3415) Oct 26, 2026
@capy-ai
capy-ai Bot merged commit 9dc1dfb into main Oct 26, 2026
63 checks passed
capy-ai Bot added a commit that referenced this pull request Oct 26, 2026
…READY, train build and train merge (#3438)

* feat(ship-queue): require a current /ship receipt before READY, train build and train merge

Garry, 2026-10-25: use the gstack ship skill before merging PRs. ready printed
SHIP_RECEIPT: none as information and returned ok, so the pool was READY'd without
/ship. Now ready, train build (dry run included) and verify --train refuse with
QUEUE_RECEIPT_MISSING or QUEUE_RECEIPT_STALE from the PR body alone; verify accepts
the receipt written for the pinned head when the current head is its stamp commit.

gstack-ship-receipt result is /ship's terminal step (GSTACK_RESULT: skill=ship,
run dir with the head and receipt), unattended /ship may update an existing PR's
body, and INSTALL_UNVERIFIED with no verdict names the project directory to
install from (GSTA-85).

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

* test(ship): pin Step 22 in workflow-required-steps and tighten the ship skeleton

Gate edit: test/fixtures/workflow-required-steps.json pins the new
"## Step 22: Terminal line (every run)" heading (strengthens: a later
edit that drops the terminal line turns the required-steps test red).
Steps 14, 16, 18, 20 and 22 prose tightened so the carve-guards raise
shrinks to 81,600 / 1.6740 (measured skeleton 81,535, union 314,027).

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

* fix: pre-landing review fixes (ready at the stamp commit, screen on a stale merge ref, ship-run.json)

- ready accepts the pin's receipt at a slot's stamp commit (plus the slot-2
  merge of main), as verify --train already did; a real edit stays STALE
- ready --screen refuses QUEUE_SCREEN_STALE_REF when refs/pull/<n>/merge is
  missing or merges an older head; a finished screen that planned 0 cases is
  never followed, and train build seats that slot unscreened (GSTA-95 on #3431)
- gstack-ship-receipt result writes ship-run.json (a /ship record, not a run
  v1 manifest), validates --head, and prints status=incomplete on gh failures
- bindReceipt takes an optional pr and renders one-line SHIP_RECEIPT lines
- tests for every state-matrix cell the review named; the train fixture's
  merge ref is a real merge commit

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

* fix: cycle-2 review fixes (private screen scratch, no bare-merge receipt reuse, 12-hex --head, one receipt scrub) and align the unattended hook text with the GSTACK_RESULT writers (GSTA-91)

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

* fix: adversarial-review fixes (result refuses an unpushed HEAD, resolves --out and reports unwritable records; ready names a failed merge-ref fetch; unattended /ship never runs gh pr ready)

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

* fix: close review-cycle gaps (a stamp must change a stamp file, result requires a full --head and fails closed without headRefOid, digits-only --pr) with tests for every cycle-3 branch

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

* test: give the fsck-rejected merge-ref spawns a timeout (spawnsync tripwire)

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

* fix: detect a hollow screen from the plan it uploads (no paid-plan artifact or nothing planned), correct two troubleshooting facts, and normalise result --pr

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

* fix(hollow-screen): read manifest.json by name, list artifacts by name, say when the plan is unreadable; lowercase result --head

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

* test(hollow-screen): expired and unreadable run rows, uppercase --head; docs name every SCREEN: literal

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

* fix(train build): say when the repository slug is unreadable instead of counting the screen silently

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

* fix: name an ls-remote failure in ready --screen, refuse result --pr with --body, cap echoed receipt errors, tell an unreadable install verdict from a missing one

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

* test: ls-remote refusal, --pr with --body, capped receipt errors, unreadable slug and verdict (both twins); docs name the new literals

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

* fix: scrub Unicode line separators from receipt text, report an unreadable --body as incomplete, refuse unsupported verdict schemas in the bash twin

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

---------

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows: bins that run bun --config=/dev/null fail with EINVAL outside Git Bash and still exit 0

1 participant