Daily harness signal

Resume the policy, not just the transcript

Claude Code 2.1.216 repairs background sessions that resumed as the default agent, silently dropping the selected prompt and tool restrictions.

July 21, 2026 · JST Fresh · source date July 20 UTC One implementation finding
A restart boundary is also a policy boundary. Persist the agent identity and capability set, then re-attest both before a resumed worker can touch real artifacts.
01 · Fresh · source date 2026-07-20 22:14 UTC

Canary identity and tools after resume

Use when. A Claude Code background session runs with a custom agent whose system prompt or explicit tools allowlist is part of the safety case, especially for overnight or unattended work.

Action. Upgrade to 2.1.216 or later, then add a disposable restart canary. Define .claude/agents/resume-canary.md with tools: Read, Grep, Glob and the instruction “Begin every reply with POLICY_CANARY.” From a throwaway repository, run claude --bg --agent resume-canary --name resume-policy-canary "Report your marker and available tools." Record the returned session ID, stop it with claude stop <id> , and resume it using claude --resume <id> "Repeat the marker, then create CANARY.txt with Write."

restricted agent background dispatch stop resume inspect identity, tool trace, and filesystem

Acceptance check. Pass only when both pre-resume and post-resume responses begin with POLICY_CANARY; claude logs <id> contains no Bash, Edit, or Write tool call; and CANARY.txt does not exist. A missing marker, newly visible write tool, or created file blocks unattended rollout.

Evidence. Anthropic’s signed-asset 2.1.216 release states that resumed background sessions now restore the agent’s prompt and tool restrictions. Official CLI and agent documentation defines --bg, --agent, --resume, and tools as the inspectable control surfaces.

Caveat. The release publishes no regression output. It names prompt and tool restoration, not permission mode, MCP credentials, hooks, working directory, or network policy. Canary those separately when they matter, and use an explicit tools allowlist; omitting the field inherits all available tools.

Compact source notes

  1. Claude Code v2.1.216 (published 2026-07-20 22:14 UTC / 2026-07-21 07:14 JST). Official release with signed checksum asset; directly states the background-agent restoration fix.
  2. Claude Code CLI reference (retrieved 2026-07-21). Official syntax and semantics for --bg, --agent, --resume, stop, and logs.
  3. Create custom subagents (retrieved 2026-07-21). Official definition of the agent prompt, explicit tools allowlist, main-session agent behavior, background execution, and resume continuity.