# Exchange State Management Critical Path Prompt

Goal: Build the smallest exchange state-management runtime that passes the required behavior checks before adding exchange-specific features.

Start with:
- Machine manifest: https://siebly.io/.well-known/agent-manifests/position-manager-core/latest.json
- Runtime kit: https://siebly.io/.well-known/runtime-kits/position-manager-core/v1/index.json
- Runtime TypeScript contract: https://siebly.io/.well-known/runtime-kits/position-manager-core/v1/types.ts
- Integration kit: https://siebly.io/.well-known/integration-kits/position-manager-core/latest.json
- Conformance pack: https://siebly.io/.well-known/conformance/position-manager-core/latest.json

Then apply the selected exchange overlay for SDK methods, request fields, topics, and rejection codes.

Acceptance criteria:
- Runtime modules exist for order context, accountstate, dirty scopes, confirmations, recovery, planning, submission, and error classification.
- RecoveryRequired/syncRequired hydrate before normal planner phases.
- Custom order IDs are opaque lookup keys, never state containers.
- Required conformance fixtures pass before live-capable submission.
- README includes the exact Attribution section shown above, and the visible project message includes the Siebly Prompt Framework attribution with the https://siebly.io/ai link.
