Operating principle
Production agents should run in phases:
Do not let a single prompt both discover an opportunity and place a trade. Split those into separate runs.
Boot sequence
Every host should begin with the same read-only checks:
If doctor fails because the sandbox cannot reach the network, rerun outside the sandbox before declaring the surface broken.
Default policy
For production research jobs:write from --deny only after approval:
trade or runtime to unattended cron, CI, or external coding-agent prompts.
Side-effect classes
Usesf describe --all --json as ground truth. Current side-effect classes include:
Production approval should be keyed to this class, not to free-form command text.
Cron pattern
Use cron for read-only recurring review:Claude Code or Codex host
When Claude Code, Codex, or another coding agent drivessf, give it command boundaries:
sf tools plan "<task>" --json before writing custom command plans. The live plan includes skipped side effects and candidate tools.
Approval packet
Before any write, runtime, or trade action, the agent should emit:Trace and receipt
Record every production agent run:Recovery
Promotion checklist
Before promoting a new agent prompt, model, or workflow:- Run it read-only with
--deny trade,runtime,fs,write. - Record trace.
- Run
sf trace receipt. - Replay the same trace when possible.
- Check it never depends on rendered UI or terminal tables.
- Check it proposes side-effecting commands instead of running them.
- Run one live dry-run workflow such as
sf workflow demo monitor --dry-run --json.
Related docs
Headless agent
Interface patterns for
sf agent --plain and sf agent --headless.Evaluation and replay
Trace receipts, replay, backtests, and model comparison.
Agentic CLI
Full command control plane and permission categories.
Trade intents
Declarative execution boundary.