Repository navigation
Description
Problem
ATSv2 has a local simulated-paper journal, but the managed Agent has no authenticated order channel to it. /ats status and doctor correctly report paper_order_ready=false. A simulator fill also cannot be presented as a trading-site fill.
Agent deliverable
- After review-only proposals, bind an operator-approved ats_paper grant to one client, account, symbol/order-type allowlist, numeric size/notional/daily/position caps, expiry, and per-order approval. ATSv2 owns atomic reservation/debit and rechecks grant revision, risk, quote, strategy, account generation, and kill state immediately before commit.
- Expose ATSv2's separate authenticated operator Approve once/Reject gateway and a durable request card. The model and Cloud host credential cannot call approval or commit methods. Persist a COMMITTING record and consume approval atomically before the paper port call.
- Reuse ATSv2's native PaperBrokerOrderPort and journal. Return safe receipt references to the same DM; failed DM delivery redelivers stored output, never repeats an order. A timeout after possible commit is AMBIGUOUS and reconcile-only.
- Provide model-independent status, pending approvals, order/position lookup, halt, qualified cancel, and unresolved-case visibility even when Cloud, UVT, or the model is unavailable. Keep simulated balance/fills labeled ats_paper.
- Make doctor derive simulated-paper readiness only from current authenticated target, grant, executable evidence, operator route, and verified ATSv2 capability; do not reuse paper_activation_prerequisites as an order-ready flag.
Acceptance
One bounded approved proposal creates at most one ATS journaled simulated order. Duplicate tool call/approval, restart in COMMITTING, lost response after journal write, revoked grant, account switch, competing last-budget requests, stale data, and wrong operator result in typed refusal or reconciliation without a second commit. The operator can halt and inspect ambiguity after a Cloud outage. No external trading site is claimed.
Evidence and dependency
README.md separates ATS simulated paper from browser paper; src/core/ats_runtime/doctor.ts pins paper_order_ready=false; src/commands/ats_agent.ts says no authenticated order path. See docs/specs/2026-09-23-ats-paper-live-execution.md G4-G6. Depends on proposal review and companion ATSv2 operator/controller integration.
Activity