Repository navigation
v1.91.227.0 fix(windows): shell bins pass NUL as Bun's empty config when MSYS path conversion is off (#3415) - #3431
Conversation
…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>
|
😎 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
E2E Evals: ✅ PASS125 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 Derived dependents (scripts/pr-dependencies.ts):
Rule and judge shards
Fail-closed reconciliationSliced 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 |
- 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>
… 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>
…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>
What changed
Before and after: the record bins on a Windows bash with MSYS path conversion off (same harness), plus the windows-latest probe of each
--configspelling.setup,scripts/build-cso.shand one migration) defineGSTACK_BUN_CONFIGonce:NULwhenOSTYPEismsysorcygwinandcygpathexists,/dev/nullotherwise. Their 77 Bun calls pass--config="${GSTACK_BUN_CONFIG:-/dev/null}". Thecygpathcheck means anOSTYPE=msysinherited into a POSIX shell can no longer make Bun read a file namedNULfrom the repository. The:-/dev/nulldefault fails closed: a call that loses its definition never falls back to the repository'sbunfig.toml.gstack-timeline-logandgstack-developer-profile --log-sessionvalidate 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.--config=/dev/null. A shebang cannot name a per-platform path, and with conversion off their POSIX script paths also fail inbun.exe, so they behave as before; the CHANGELOG says so. TypeScript spawns keepbunIsolationArgs().scripts/ubicloud/runs on Linux and keeps/dev/null.Why
#3415. Native
bun.execannot open/dev/null: it exits 1 withEINVAL(probed on windows-latest with Bun 1.4.2 and 1.4.4; Bun 1.3.10 also rejectsNUL, 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,/shipand 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
Source: gstack-approvals record for capy/gsta-95-bun-config-windows (display only; not an approval citation).
Summary
GSTACK_BUN_CONFIGdefinition and call-site spelling across 40 files, Windows detection fromOSTYPEasgstack-doctordoes, and a strictertest/bun-entry-isolation.test.tsratchet.cygpathgate, the printed-verdict validators ingstack-timeline-logandgstack-developer-profile, a function-scoped definition check in the ratchet, and new regression tests.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=msysspoof withoutcygpath(4 failures at d77948c),--log-sessionBun 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 (
/reviewspecialists: 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.OSTYPEspoof leading to a cwdNULread (security and adversarial);--log-sessionswallowing 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.setupprobe_cmd nested quotes (the value is one of two literals); top-level assignment in sourced libs (same value everywhere); Bun < 1.4.2NULbehaviour (below the engines minimum); skill prose and shebangs that still pass the literal/dev/null, for examplescripts/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.tsis strengthened: shipped shell files must use the fail-closed spelling and defineGSTACK_BUN_CONFIGbefore first use, inside the function that uses it when defined locally; the detector skips a--configvalue 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
Documentation health
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).
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
gstack-pregate --remoteat tree 9e4c4a3f4483 (head 040b35a): 20610 tests, 0 failed, $0.07.bun run buildandbun run skill:check: pass (1163 generated artifacts, 139 tracked outputs compared).