docs(agents): stop local simulators and emulators on close

Merged
TH
1mo ago
+12-7

Summary

After an overnight agent run, many local simulators were left running. open boots a stopped simulator or emulator, but plain close never stops it, and no instruction told agents to add --shutdown.

This PR states one interim rule with one exception: if your session booted a local simulator or emulator, use close --shutdown, unless the user asks to keep it running. It appears in:

  • close help and the manual-qa and validate help topics. The workflow card stays unchanged because it is at its 9100-byte budget.
  • Skills: agent-device, dogfood, ios-simulator, android-emulator (one line each). The simulator skill contract test requires the line.
  • docs/agents/device-verification.md (owner for repo workers). I deleted two cleanup lines that repeat CLI help to stay under the docs/agents budget.

9 files. Instructions only. #4162 (0.22) moves the rule into the daemon: plain close stops a device that the session's open booted. This interim text is then deleted.

Validation

Head 6fdb246a0e, rebased on 7b3f63fea7.

  • pnpm gate agent-guidance: pass (AGENTS.md 3999/4000, docs/agents 39893/40000).
  • pnpm check:affected --run --head 6fdb246a0e (full FAIL-OPEN set): every stage passed except unit. unit had 1 failure, daemon-client-lifecycle.test.ts, and that file passes alone (19/19). The previous round showed different flakes under load (daemon-client-timeout-route, provider-revyl/runtime), and both pass alone. Receipt: .tmp/validation/run-7YyBOZ/receipt.json (local).
  • Help/skill tests: cli-help, cli-help-topics, simulator-skills-contract, help-conformance-bench pass.
  • No device run: only help/skill text changed.