sandcastle: ts-gate.sh install line carries CI=true so the pre-push TS gate stops failing closed (#168) #182
No reviewers
Labels
No labels
agent-blocked
agent-working
bug
deferred
enhancement
model-haiku
model-opus
model-sonnet
needs-info
needs-triage
no-triage
priority
product-decision
ready-for-agent
ready-for-human
ready-for-session
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/coa!182
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "agent/issue-168"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
closes #168
What this lands
.sandcastle/ts-gate.sh(the per-repo TS pre-push gate added by #152 — adrift-safe layer file, not in
FACTORY_MANIFEST) ran its install linewithout
CI=true:In the swarm sandbox pnpm 11.6.0 sometimes decides
node_modulesneeds a purgeand, with no TTY, aborts the install
(
ERR_PNPM_ABORTED_REMOVE_MODULES_DIR_NO_TTY, exit 1) instead of prompting — soevery TypeScript-touching push was refused at the gate (hit while landing #166;
worked around with
GATE_TS_CMD). Only the typecheck line carriedCI=true.Fix: prefix the install line with
CI=truetoo, matching the typecheck lineand GOTCHAS 4's rule for any non-interactive
pnpm install. The explanatorycomment is extended to say why both lines carry it.
Why this is a session change, not a worker one
.sandcastle/is a protected path for swarm workers, so a worker could not makethis edit in-run — it needs the standing session.
ts-gate.shis notvendored (absent from
FACTORY_MANIFEST), so this is not an edit to afactory-pinned file:
check-harness-drift.shstays green.Proof
Run under no TTY (the gate's real condition):
./.sandcastle/ts-gate.shfrom an emptynode_modules→ install + all 6projects typecheck → exit 0.
gate_ts_stage "$PWD"(which resolves tots-gate.shas precedence #2) → exit 0.check-harness-drift.sh→ OK (ts-gate.shis not a vendored file).Note on the red: the exact abort is a sandbox store-state condition. On this
standing-session host pnpm 11.6.0 reconciled a matching store cleanly in every
synthetic case I tried (foreign
node_modules, missing.pnpm, flippednodeLinker, fresh store-dir), so I could not re-trigger the abort here. Thered is the field capture on #166 (quoted in the ticket) plus the documented
hazard GOTCHAS 4/24; the fix is proven GREEN above and matches the already-stated
rule. GOTCHAS 23 is extended with this follow-on.
Screenshots: none — harness shell-gate fix with no visible/UI surface; proof is the gate exiting 0 under no TTY (above).
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.