๐ fix: a hand run of session-start says it runs only as the hook
Slice: #51
Fixes State #136 of P-22: in the cloud session that proved P-22, running process-rules session-start by hand printed STOP although the hook had already set the session up as the agent, and the session's commits, authored as Claude, looked like a PR identity problem though the check passed.
src/session-start.ts: both "CLAUDE_ENV_FILE is unset" STOP lines (cloud and Mac) keep the STOP, the safe default when the hook itself lacks the variable, and end: "session-start runs only as the SessionStart hook, so a run by hand says nothing about this session: the hook's own line at session start is what counts."- README, Claude cloud sessions: says the same, and that a cloud session's commits are authored and committed as
Claude <noreply@anthropic.com>and signed by it (Verified) while the push is the agent's; PR identity checks only commits that claim an agent, so these pass, and the agent is recorded as having pushed them.src/identity.tsis unchanged. - Tests: the pinned STOP lines carry the new text.
pnpm check passes (876 tests).
๐ค Generated with Claude Code
Summary by cubic
Clarifies that running session-start by hand says nothing about the session, since CLAUDE_ENV_FILE is only set while Claude Code runs the SessionStart hook and is missing from the session's shell.
The STOP message now says so and notes that only the hook's own line at session start counts. The README adds the same explanation and records that a cloud session's commits are authored and signed as Claude <noreply@anthropic.com> (Verified) while the push is the agent's, so PR identity checks still pass.