Skip to content

[feature] Execute and reconcile one qualified trading-site paper order #210

Open

Description

@AetherAI3

Problem

The Agent and ATSv2 validate agent-browser-ats-order/1, but no order tool, private site adapter, or ATSv2 browser ticket port is connected. A simulated fill, screenshot, toast, or successful HTTP response cannot prove a site-backed paper order.

Agent deliverable

  • Integrate one reviewed private site adapter beside the user's same Agent Browser Chrome session. Pin allowed origins, adapter/image/Chrome digest, account fingerprint, independent PAPER indicators, supported ticket fields and order types, UI fingerprint, history/position selectors, and qualified cancel behavior. Unsupported sites and changed UI remain observe-only.
  • Route only the ten frozen typed operations through ATSv2's browser order-ticket port: verify_session, read_market, read_account, prepare_ticket, verify_ticket, commit_once, read_order, read_positions, cancel_order, end_control. No generic browser click/type, VNC, shell, MCP pass-through, selectors, or model-selected URL crosses the Agent/ATS boundary.
  • In ATSv2 preserve account generation, paper grant, risk limits, executable quote, immutable review hash, independent human approval, and per-account/request serialization. Prepare and compare the rendered ticket, approve once, verify again, write durable COMMITTING, then commit_once. Treat possible post-click timeout as AMBIGUOUS; never submit a second time.
  • Reopen qualified site order history and positions to reconcile ID, account, PAPER mode, symbol, working/partial/filled/cancelled state and exposure after restart. Keep Stop, Cancel, and End session available through an independent operator route. Surface readable PAPER HOLD/GO and unresolved states in Agent; no site fill claim before history proof.
  • Version the wire and regenerate TS/Python vectors for any necessary shape change.

Acceptance

Deterministic hostile pages cover changed selector/origin/mode, stale quote, mismatched ticket, page injection, two tabs, duplicate approval, concurrent commit, timeout after click, partial fill, rejection, takeover, halt/cancel, and restart. Then an attended real paper-site canary yields one site order ID plus independently refreshed matching order-history and position evidence, with no duplicate. Record exact code/image/Chrome/adapter/fixture digests and one refusal/unknown exercise. Live remains disabled.

Evidence and dependency

src/core/ats_contracts/browser_order*.ts are wire/decision validators; test/ats_no_order_tool.test.ts proves no order registration. See docs/specs/2026-09-23-ats-agent-browser-orders.md and docs/specs/2026-09-23-ats-agent-browser-remaining-gates-v2.md G4-G5. Depends on the private viewer, evidence, target/review, and companion ATSv2 browser port/private browser-host adapter work. This is distinct from simulated paper.

Issue dependencies

Activity

  1. added
    enhancement
    ats
    on Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    atsenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions