{
  "format": "siebly-agent-recipe/v1",
  "id": "position-manager-critical-path",
  "title": "Exchange State Management Critical Path",
  "lastReviewed": "2026-05-03",
  "purpose": "Shortest readable route for exchange order and position state-management systems. Use the machine manifest when an executable prompt input is needed.",
  "humanStart": "https://siebly.io/ai/position-manager/critical-path",
  "promptStart": "https://siebly.io/.well-known/agent-manifests/position-manager-core/latest.json",
  "coreArtifacts": {
    "manifest": "https://siebly.io/.well-known/agent-manifests/position-manager-core/latest.json",
    "runtimeKit": "https://siebly.io/.well-known/runtime-kits/position-manager-core/v1/index.json",
    "runtimeTypes": "https://siebly.io/.well-known/runtime-kits/position-manager-core/v1/types.ts",
    "integrationKit": "https://siebly.io/.well-known/integration-kits/position-manager-core/latest.json",
    "conformancePack": "https://siebly.io/.well-known/conformance/position-manager-core/latest.json",
    "schema": "https://siebly.io/.well-known/conformance/position-manager/v1/schema.json",
    "fixtures": "https://siebly.io/.well-known/conformance/position-manager/v1/fixtures.json",
    "runner": "https://siebly.io/.well-known/conformance/position-manager/v1/runner.ts"
  },
  "buildPath": [
    "Read the critical workflow.",
    "Use the task manifest for generation.",
    "Implement the runtime kit module contracts.",
    "Generate tests from the required conformance pack.",
    "Implement the smallest manager that passes the required behavior checks before adding features.",
    "Use broad SDK docs only to verify method names and request shapes."
  ],
  "requiredChecks": [
    "startup_hydrated_position_queues_work_before_service_ready",
    "private_event_marks_dirty_and_schedules_reconcile",
    "private_event_burst_debounces_until_quiet_window",
    "opaque_custom_id_registry_routes_exchange_echoes",
    "pending_confirmation_does_not_unlock_dependent_phase",
    "private_confirmation_before_rest_accept_is_consumed",
    "terminal_event_during_cancel_or_amend_is_benign_race",
    "reconnect_queues_known_scopes_for_recovery_even_when_quiet",
    "slot_filter_failures_are_blocked_not_silent_or_retried",
    "flat_position_cleans_app_owned_orders"
  ],
  "completeRequiredChecks": [
    "startup_hydrated_position_queues_work_before_service_ready",
    "private_event_marks_dirty_and_schedules_reconcile",
    "private_event_burst_debounces_until_quiet_window",
    "opaque_custom_id_registry_routes_exchange_echoes",
    "pending_confirmation_does_not_unlock_dependent_phase",
    "private_confirmation_before_rest_accept_is_consumed",
    "terminal_event_during_cancel_or_amend_is_benign_race",
    "reconnect_queues_known_scopes_for_recovery_even_when_quiet",
    "slot_filter_failures_are_blocked_not_silent_or_retried",
    "flat_position_cleans_app_owned_orders",
    "rest_acceptance_does_not_downgrade_trusted_private_order",
    "terminal_order_status_is_not_open_order_confirmation",
    "execution_fill_is_not_open_order_confirmation",
    "default_dca_active_order_does_not_advance_next_step",
    "startup_adopts_active_contexts_and_prunes_absent_contexts",
    "ambiguous_event_routes_bounded_fallback_then_exact_scope",
    "pending_confirmation_timeout_enters_scoped_recovery",
    "recovery_hydration_blocks_normal_phases_until_trust_restored",
    "configured_symbol_allowlist_blocks_out_of_scope_events",
    "dry_run_status_doctor_cannot_submit_live_orders"
  ],
  "notConfirmations": [
    {
      "evidence": "REST place/amend/cancel acceptance",
      "route": "record or match pending confirmation",
      "reason": "Transport or request success does not prove active open-order state."
    },
    {
      "evidence": "Terminal order row",
      "route": "clear or terminalize the matching latch",
      "reason": "Cancelled, rejected, filled, deactivated, triggered, or equivalent rows are not resting slot evidence."
    },
    {
      "evidence": "Execution or fill row",
      "route": "update fills and dirty the affected scope",
      "reason": "Fill evidence can change position/order state but does not confirm active open-order existence."
    },
    {
      "evidence": "Private stream open or subscription event",
      "route": "update transport readiness only",
      "reason": "Accountstate readiness still needs hydration, replay, and private account-state evidence."
    },
    {
      "evidence": "Active DCA order for the current step",
      "route": "hold dependent DCA work",
      "reason": "A resting DCA order is not permission to place the next DCA step."
    }
  ],
  "exchangeOverlays": [
    "https://siebly.io/.well-known/agent-manifests/binance-position-manager/latest.json",
    "https://siebly.io/.well-known/agent-manifests/bybit-position-manager/latest.json"
  ]
}
