Skip to content

docs(readme): keeping the core alive is a documented step, and the hint matches it - #3817

Merged
joelteply merged 2 commits into
canaryfrom
fix/windows-install-hint-names-git-bash
Sep 7, 2026
Merged

joelteply merged 2 commits into
canaryfrom
fix/windows-install-hint-names-git-bash

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Two problems, one root: there was no canonical instruction for supervising the core, so the only place it existed was an error message — and that message was wrong for the shell its reader was standing in.

The README never mentioned install-service.sh

§ Getting Started → Development taught continuum start and stopped. That's exactly where a developer learns the hard way that a core started from a shell is a child of that shell — close the terminal, log out, or end an agent session and it's gone. On Windows it inherits the session's job object and is killed outright.

Adds the step with both platform forms and what each actually survives (crash / reboot-then-login / logout).

The elevation hint told the operator to run bash …

The operator that message exists for is, by definition, in an elevated PowerShell — the one place a bare bash resolves to the WSL shim:

WSL (10 - Relay) ERROR: CreateProcessCommon:800:
execvpe(/bin/bash) failed: No such file or directory

That reads like the script is broken, on a machine where the script is fine and elevation is the only real requirement. Measured 2026-09-06 — this hint sent the operator straight into that error, on the one instruction whose entire job is to be copy-pasteable by someone already being told something is wrong.

Now prints the PowerShell call form with Git Bash's full path (derived from command -v bash, never hardcoded), names the WSL trap so the next person recognises it rather than debugging it, and cites the README as canonical so the two can't drift.

Also documented

The asymmetry that makes this dangerous rather than merely annoying: creating a scheduled task requires elevation, deleting one does not. Tooling can tear the supervisor down and then be unable to put it back — which is precisely what happened on this node tonight, costing it a real outage.

The rule

An error message that hands over an instruction must be correct in the shell its reader is standing in, and it should point at documentation rather than become a second source of it. A recovery hint that itself fails costs more than no hint, because it moves suspicion onto the wrong component.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc

joelteply and others added 2 commits September 6, 2026 20:11
The elevation message added in #3813 told the operator to run:

    bash tools/scripts/install-service.sh install

The operator that message exists for is, by definition, in an ELEVATED
POWERSHELL — which is exactly where a bare `bash` is wrong. In PowerShell it
resolves to C:\Windows\System32\bash.exe, the WSL shim, and dies with:

    WSL (10 - Relay) ERROR: CreateProcessCommon:800:
    execvpe(/bin/bash) failed: No such file or directory

That reads like the SCRIPT is broken, on a machine where the script is fine and
the only real requirement is elevation. Measured 2026-09-06: this hint sent the
operator straight into that error, on the one instruction whose entire job is to
be copy-pasteable by someone who has already been told something is wrong.

Now prints the PowerShell call form with Git Bash's full path, DERIVED from
`command -v bash` (never hardcoded — see [[never-hardcode-identity-or-paths]]),
plus one line naming the WSL trap so the next person recognises it instead of
debugging it:

    & "C:\Program Files\Git\usr\bin\bash.exe" tools/scripts/install-service.sh install

    (from THIS directory. A bare `bash` in PowerShell is WSL, not Git Bash,
     and fails with 'execvpe(/bin/bash) failed' — use the full path above.)

Verified by running the unelevated failure path and reading the output.

The general form: an error message that hands over an instruction must be correct
in the SHELL ITS READER IS STANDING IN, not the one its author wrote it from. A
recovery hint that itself fails costs more than no hint, because it moves the
suspicion onto the wrong component.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
…nt matches it

Two problems, one root: there was no canonical instruction for supervising the
core, so the only place it existed was an error message — and that message was
wrong for the shell its reader was standing in.

**The README never mentioned `install-service.sh` at all.** The dev block taught
`continuum start` and stopped there, which is exactly where a developer learns the
hard way that a core started from a shell is a CHILD of that shell: close the
terminal, log out, or end an agent session and it dies (on Windows it inherits the
session job object and is killed outright). Adds the step to
§ Getting Started → Development, with the macOS/Linux and Windows forms and what
each survives.

**The elevation hint told the operator to run `bash …`.** The operator that message
exists for is, by definition, in an elevated PowerShell — the one place a bare
`bash` is the WSL shim, which dies with:

    WSL (10 - Relay) ERROR: CreateProcessCommon:800:
    execvpe(/bin/bash) failed: No such file or directory

That reads like the SCRIPT is broken on a machine where it is fine and elevation is
the only real requirement. Measured 2026-09-06: this hint sent the operator straight
into that error. Now prints the PowerShell call form with Git Bash's full path
(derived from `command -v bash`, never hardcoded), names the WSL trap so the next
person recognises it instead of debugging it, and cites the README as canonical so
the two cannot drift.

Also documents the asymmetry that makes this dangerous rather than annoying:
creating a scheduled task needs elevation, deleting one does not — so tooling can
tear the supervisor down and then be unable to put it back.

The general rule: an error message that hands over an instruction must be correct
in the SHELL ITS READER IS STANDING IN, and it should point at documentation rather
than become a second source of it. A recovery hint that itself fails costs more than
no hint, because it moves suspicion onto the wrong component.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01Q4NU4VNiELPQfBpCacDZGc
@joelteply
joelteply force-pushed the fix/windows-install-hint-names-git-bash branch from 84d2ad7 to fccec2a Compare September 7, 2026 01:11
@github-actions github-actions Bot added size: S and removed size: M labels Sep 7, 2026
@joelteply
joelteply merged commit 4a90b07 into canary Sep 7, 2026
9 checks passed
@joelteply
joelteply deleted the fix/windows-install-hint-names-git-bash branch September 7, 2026 01:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant