Expand description
控制面契约。
所有写操作都先变成带权限、原因和请求 ID 的 ControlCommand,由上层执行器
再决定如何调用策略运行时、OMS 或 Scheduler。本 crate 不提供绕过风控的快捷写入。
Structs§
- Amend
Order Target - Audit
Record - Cancel
Order Group Target - CancelOrderGroup resolves its group ID against the worker’s durable order-group store.
- Cancel
Order Target - CancelOrder 的路由声明。账户和 venue 必须由实时 worker 再与 EventLog 中的权威订单核对。
- Control
Audit Entry V1 - One audit row with its durable append sequence. The sequence is separate from the legacy
persisted
AuditRecordso the existing storage/audit-chain wire format remains unchanged. - Control
Audit Page V1 - Bounded, snapshot-consistent page returned by
GET /control/audit. - Control
Audit Record V1 - Versioned public response used by Paper/Live command submission and audit recovery routes.
- Control
Command - Control
Plane - Retirement
Summary - 退场摘要。控制面的持久审计在
qx-storage(AuditFileStore/SqliteAuditStore/PostgresAuditStore+ 哈希链),这一份只是内存 工作集;退场把它压回上界之内,而压掉了多少必须有个能被读到的数——否则「有界」这句话没有 证据面。读者是/metrics的qx_control_retired_commands_total与qx_control_retired_audit_records_total两条,以及持久化 JSON 里的同名字段。 - Strategy
Lifecycle Record - Latest successful lifecycle command, retained independently of bounded audit history.
Enums§
- Command
Kind - Command
Status - 控制命令的审计状态。只有三个变体:受理,以及执行后的两种终态。
- Control
Error - Permission
Constants§
- CONTROL_
AUDIT_ DEFAULT_ PAGE_ SIZE - CONTROL_
AUDIT_ MAX_ PAGE_ BYTES - CONTROL_
AUDIT_ MAX_ PAGE_ SIZE - CONTROL_
AUDIT_ PAGE_ SCHEMA_ VERSION_ V1 - CONTROL_
AUDIT_ RECORD_ SCHEMA_ VERSION_ V1 - FINALIZED_
COMMAND_ RETENTION - 控制面终态命令的保留上界。
commands/requests/audit三格只追加不退场,长跑进程 每受理一条命令就永久留下三处条目;越过上界按「终态审计写入顺序最早」退场(V13 R1-H 重落 V11 R5-1, 那份交付面被合流 c07ad22 按上游树整体裁定覆盖掉了)。 - PENDING_
CONTROL_ COMMAND_ LIMIT - Maximum number of accepted commands that have not yet reached a terminal audit status. Pending work is never retired silently; new submissions fail closed until workers make room.
Functions§
- amend_
order_ target_ from_ command - cancel_
order_ group_ target_ from_ command - cancel_
order_ target_ from_ command - Parse the explicit routing identity for a cancellation command. The execution worker must independently bind this identity to the authoritative order snapshot before contacting a venue.
- order_
from_ submit_ command - 从已通过控制面校验的 SubmitOrder 载荷解析订单,并再次校验命令身份边界。
- order_
group_ from_ submit_ command - Parse and bind an atomic OCO/Bracket intent to an audited control command.