{"openapi":"3.1.0","info":{"title":"EARL Platform Backend","version":"0.1.0"},"paths":{"/api/v1/capabilities":{"get":{"tags":["capability-api"],"summary":"Capabilities","operationId":"capabilities_api_v1_capabilities_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Capabilities Api V1 Capabilities Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/workflows":{"post":{"tags":["capability-api"],"summary":"Create Workflow","operationId":"create_workflow_api_v1_workflows_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["capability-api"],"summary":"List Workflows","operationId":"list_workflows_api_v1_workflows_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Archived"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowRead"},"title":"Response List Workflows Api V1 Workflows Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}":{"get":{"tags":["capability-api"],"summary":"Get Workflow","operationId":"get_workflow_api_v1_workflows__workflow_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/records":{"get":{"tags":["capability-api"],"summary":"List Records","operationId":"list_records_api_v1_workflows__workflow_id__records_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RecordRead"},"title":"Response List Records Api V1 Workflows  Workflow Id  Records Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/records/{record_id}":{"get":{"tags":["capability-api"],"summary":"Get Record","operationId":"get_record_api_v1_records__record_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"string","title":"Record Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/records/{record_id}/evidence-package":{"get":{"tags":["capability-api"],"summary":"Get Record Evidence Package","description":"The signed evidence package a record references, exactly as issued (for offline verification).","operationId":"get_record_evidence_package_api_v1_records__record_id__evidence_package_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"string","title":"Record Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Record Evidence Package Api V1 Records  Record Id  Evidence Package Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/records/{record_id}/verify":{"post":{"tags":["capability-api"],"summary":"Verify Record","operationId":"verify_record_api_v1_records__record_id__verify_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"record_id","in":"path","required":true,"schema":{"type":"string","title":"Record Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Verify Record Api V1 Records  Record Id  Verify Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/evidence/evaluate":{"post":{"tags":["capability-api"],"summary":"Evaluate","operationId":"evaluate_api_v1_workflows__workflow_id__evidence_evaluate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvaluateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/replay/{record_id}":{"post":{"tags":["capability-api"],"summary":"Replay","operationId":"replay_api_v1_workflows__workflow_id__replay__record_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}},{"name":"record_id","in":"path","required":true,"schema":{"type":"string","title":"Record Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/reason/prove":{"post":{"tags":["capability-api"],"summary":"Reason Prove","operationId":"reason_prove_api_v1_workflows__workflow_id__reason_prove_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TextRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/reason/query":{"post":{"tags":["capability-api"],"summary":"Reason Query","operationId":"reason_query_api_v1_workflows__workflow_id__reason_query_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TextRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/mission/propose":{"post":{"tags":["capability-api"],"summary":"Mission Propose","operationId":"mission_propose_api_v1_workflows__workflow_id__mission_propose_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MissionProposeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/mission/reviews":{"get":{"tags":["capability-api"],"summary":"Mission Reviews","description":"The pending reviews of THIS workflow's proposals only (never another workflow's or organization's).","operationId":"mission_reviews_api_v1_workflows__workflow_id__mission_reviews_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Mission Reviews Api V1 Workflows  Workflow Id  Mission Reviews Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/mission/gateway-record":{"get":{"tags":["capability-api"],"summary":"Mission Gateway Record","description":"The application's gateway's OWN hash-chained, signed record, read-only, as the gateway serves it to its\nauditor role: every decision, intake refusal, resolution, refused authorization and execution, with the\ngateway's public key in each record. Only an application's own deployment is read here (never the shared\nreference gateway, whose record spans other organizations). Download it and verify it offline.","operationId":"mission_gateway_record_api_v1_workflows__workflow_id__mission_gateway_record_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Mission Gateway Record Api V1 Workflows  Workflow Id  Mission Gateway Record Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/mission/reviews/{record}":{"post":{"tags":["capability-api"],"summary":"Mission Resolve","description":"Resolve a pending review AS THE SIGNED-IN ACCOUNT. The reviewer the gateway checks against its authorizer\nregistry is the authenticated platform username, never a name the caller types; the account that proposed cannot\nresolve its own proposal; an auditor evaluates and cannot authorize. Every refusal is on record.","operationId":"mission_resolve_api_v1_workflows__workflow_id__mission_reviews__record__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}},{"name":"record","in":"path","required":true,"schema":{"type":"string","title":"Record"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MissionResolveRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/reason/tick":{"post":{"tags":["capability-api"],"summary":"Reason Tick","operationId":"reason_tick_api_v1_workflows__workflow_id__reason_tick_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TickRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/goals/plan":{"post":{"tags":["capability-api"],"summary":"Goals Plan","operationId":"goals_plan_api_v1_workflows__workflow_id__goals_plan_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TextRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/goals/allocate":{"post":{"tags":["capability-api"],"summary":"Goals Allocate","description":"SHIP-2 goals.allocate (developmental, incomplete): the workflow's Allocate faculty orders the items.\nThe adapter carries the observations verbatim; the engine validates and evaluates; nothing is authored.","operationId":"goals_allocate_api_v1_workflows__workflow_id__goals_allocate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllocateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/goals/outcomes":{"post":{"tags":["capability-api"],"summary":"Goals Outcomes","description":"SHIP-2 goals.allocate: after-action truths for the request at `tick`, appended to the allocation history (the replay world).","operationId":"goals_outcomes_api_v1_workflows__workflow_id__goals_outcomes_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/goals/cycles":{"post":{"tags":["capability-api"],"summary":"Goals Cycles","description":"SHIP-2 §12 (execution cost): N ordered application cycles - each an allocate request and, optionally, its\nafter-action truths - in ONE engine process and ONE signed record. The record carries every cycle's result with\nexactly the fields the single calls write (order, scores, ties, defaulted inputs, outcomes recorded) and, on the\nincremental store, the state identity after each cycle; the engine stops at the first refused cycle and says\nwhich. Simulated experience is unchanged: the same cycles, ticks and windows, executed faster.","operationId":"goals_cycles_api_v1_workflows__workflow_id__goals_cycles_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CyclesRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/goals/allocation/migrate":{"post":{"tags":["capability-api"],"summary":"Goals Allocation Migrate","description":"SHIP-2 §12: move the workflow's allocation state from `earl-allocation-state/1` (one file, rewritten whole on\nevery call) to the incremental `earl-allocation-store/2` (header, append-only log, sharded item states). The\nengine checks that the store exports the old state byte for byte before it switches, and keeps the old file as\n`allocation.v1.json`; afterwards records name the state by a chain (`allocation_state_identity: chain`). A signed\nrecord with the reason; refused when already migrated.","operationId":"goals_allocation_migrate_api_v1_workflows__workflow_id__goals_allocation_migrate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllocationMigrateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/goals/allocation/unmigrate":{"post":{"tags":["capability-api"],"summary":"Goals Allocation Unmigrate","description":"SHIP-2 §12 rollback: move a migrated workflow's allocation state back to `earl-allocation-state/1`. The engine\nwrites the full state as the v1 file, checks it round-trips exactly, and archives the store's files; required\nbefore the workflow returns to an engine without the store. A signed record with the reason.","operationId":"goals_allocation_unmigrate_api_v1_workflows__workflow_id__goals_allocation_unmigrate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllocationMigrateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/goals/allocation":{"get":{"tags":["capability-api"],"summary":"Goals Allocation","description":"SHIP-2 goals.allocate: the workflow's Allocate faculty identity and its history summary (read-only, recorded).","operationId":"goals_allocation_api_v1_workflows__workflow_id__goals_allocation_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/self/observe":{"post":{"tags":["capability-api"],"summary":"Self Observe","operationId":"self_observe_api_v1_workflows__workflow_id__self_observe_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ObserveRequest"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/memory/beliefs":{"get":{"tags":["capability-api"],"summary":"Memory Beliefs","operationId":"memory_beliefs_api_v1_workflows__workflow_id__memory_beliefs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}},{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"}},{"name":"provenance","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Provenance"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Memory Beliefs Api V1 Workflows  Workflow Id  Memory Beliefs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/memory/submit":{"post":{"tags":["capability-api"],"summary":"Memory Submit","operationId":"memory_submit_api_v1_workflows__workflow_id__memory_submit_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/learning/controls":{"get":{"tags":["capability-api"],"summary":"Learning Controls","operationId":"learning_controls_api_v1_workflows__workflow_id__learning_controls_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Learning Controls Api V1 Workflows  Workflow Id  Learning Controls Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["capability-api"],"summary":"Set Learning Controls","description":"Switch the workflow's runtime learning paths (each off by default). Every change is a signed record naming who\nswitched what from what to what; switching ON needs an engine that has the rc27 operations.","operationId":"set_learning_controls_api_v1_workflows__workflow_id__learning_controls_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LearningControlsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/learning":{"get":{"tags":["capability-api"],"summary":"Learning State","description":"What the workflow learned beyond its beliefs: its self-trained vocabulary (with the documents each word came\nfrom), the self-training window, what waits for the next tick, and the learner's outcome ledger. Read-only,\nrecorded.","operationId":"learning_state_api_v1_workflows__workflow_id__learning_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/learning/outcome":{"post":{"tags":["capability-api"],"summary":"Learning Outcome","description":"Report what happened after an earlier result of this workflow. The platform verifies the record is this\nworkflow's own, takes the words involved from its request unless given, and passes only the fact (words,\nsucceeded, confidence) to the engine's outcome channel; the next tick attributes it inside the learner.","operationId":"learning_outcome_api_v1_workflows__workflow_id__learning_outcome_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutcomeReportRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/reason/deduce":{"post":{"tags":["capability-api"],"summary":"Reason Deduce","description":"Without `confirm`: preview the relations the closure derives, with rules, premises and a digest; nothing is\nwritten. With `confirm` = that digest: write exactly that list (refused if it changed), after a byte-for-byte\nsnapshot; each derived belief carries its premises.","operationId":"reason_deduce_api_v1_workflows__workflow_id__reason_deduce_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeduceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/memory/premise-verdict":{"post":{"tags":["capability-api"],"summary":"Premise Verdict","description":"An operator's verdict on a premise the workflow holds: `verified` lets conclusions resting on it be trusted,\n`rejected` keeps them untrusted and unwritable. A signed record names the belief, the verdict, the reason and the\ncaller; the workflow keeps the latest verdict per proposition.","operationId":"premise_verdict_api_v1_workflows__workflow_id__memory_premise_verdict_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PremiseVerdictRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/learning/forget":{"post":{"tags":["capability-api"],"summary":"Learning Forget","description":"Remove a word the workflow taught itself (rc32). The engine drops it from the self-trained vocabulary with its\nassociations and never mints it again, even from text still in its rolling window; beliefs that mention the word\ncame by other paths and are kept (the record lists them). Allowed with the self_training switch off: removing what\nwas learned is never gated. The reason is part of the signed record.","operationId":"learning_forget_api_v1_workflows__workflow_id__learning_forget_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgetWordRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/learning/unforget":{"post":{"tags":["capability-api"],"summary":"Learning Unforget","description":"Undo a forget (rc32): the word leaves the forgotten set, so EARL may learn it again when it recurs beside known\nwords in staged text. Nothing is restored at once - the removed word and its associations are gone, and the word\ncomes back only from text, as any word does. A signed record with the reason; allowed with the switch off.","operationId":"learning_unforget_api_v1_workflows__workflow_id__learning_unforget_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgetWordRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/reason/deduce/rollback":{"post":{"tags":["capability-api"],"summary":"Reason Deduce Rollback","description":"Restore the runtime image a confirmed deduction snapshotted, byte for byte; refused if the workflow changed\nafter that deduction. Allowed with the deduction switch off: undoing is never gated.","operationId":"reason_deduce_rollback_api_v1_workflows__workflow_id__reason_deduce_rollback_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeduceRollbackRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/authority/check":{"post":{"tags":["capability-api"],"summary":"Authority Check","operationId":"authority_check_api_v1_workflows__workflow_id__authority_check_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthorityCheckRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/decide":{"post":{"tags":["capability-api"],"summary":"Decide","description":"Evidence and authority in one decision (domain_policy.decide): the claims are adjudicated exactly as\nevidence.evaluate does, the domain policy's dispositions give the evidence decision, its authority rule for the\naction and actor gives the authority decision, and the more severe of the two is recorded once, signed, bound\nto the evidence package. Advisory: nothing is enforced by this call.","operationId":"decide_api_v1_workflows__workflow_id__decide_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DecideRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/engine/adopt":{"post":{"tags":["capability-api"],"summary":"Engine Adopt","description":"A1: pin/adopt an installed engine release for this workflow. The runtime\nimage is not touched; the next call runs on the adopted binaries, whose\nidentity every record names. The previous release is recorded for rollback.","operationId":"engine_adopt_api_v1_workflows__workflow_id__engine_adopt_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineAdoptRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/engine/rollback":{"post":{"tags":["capability-api"],"summary":"Engine Rollback","description":"A1 rollback: restore the release recorded as `previous` by the latest adoption.","operationId":"engine_rollback_api_v1_workflows__workflow_id__engine_rollback_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/successor/evaluate":{"post":{"tags":["capability-api"],"summary":"Successor Evaluate","description":"Contained evaluation of a candidate release: the candidate and the current release each run the\nread-only probes over their OWN COPY of the workflow's runtime image; the live image is hashed before\nand after and must be unchanged. The comparative record is structural, not a judgement.","operationId":"successor_evaluate_api_v1_workflows__workflow_id__successor_evaluate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessorEvaluateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/successor/adopt":{"post":{"tags":["capability-api"],"summary":"Successor Adopt","description":"Authority action: adopt an evaluated candidate. Refused without `confirm`, without a successful\nevaluation record of this workflow for this release, or when the live image changed since that\nevaluation (preservation). The live image is snapshotted byte for byte before the binding changes.","operationId":"successor_adopt_api_v1_workflows__workflow_id__successor_adopt_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessorAdoptRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/successor/rollback":{"post":{"tags":["capability-api"],"summary":"Successor Rollback","description":"Restore the release and the byte-level image snapshot of the latest successor adoption.","operationId":"successor_rollback_api_v1_workflows__workflow_id__successor_rollback_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/development/designate":{"post":{"tags":["development"],"summary":"Development Designate","description":"Charter §7 condition 1: the developer designates the faculty's inputs, outputs, modification scope and\nintended behaviour (with invariants). Recorded; replaces the previous designation.","operationId":"development_designate_api_v1_workflows__workflow_id__development_designate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DesignationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/development/artifact":{"get":{"tags":["development"],"summary":"Development Artifact","description":"The LIVE faculty rendered to Python with its artifact identity (charter §8.6, §8.8): the inherited form\nfor generation 3, else the latest un-rolled-back adoption's recorded specification. The engine's reply\nshape is untouched; the specification comes from the records.","operationId":"development_artifact_api_v1_workflows__workflow_id__development_artifact_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Development Artifact Api V1 Workflows  Workflow Id  Development Artifact Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/development/acceptance":{"post":{"tags":["development"],"summary":"Development Acceptance","description":"Register the application's acceptance cases for its delegated ordering (contract §6: acceptance\ncriteria live at the platform, outside EARL's authority). Replaces the previous set; recorded.","operationId":"development_acceptance_api_v1_workflows__workflow_id__development_acceptance_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptanceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/development/episode":{"post":{"tags":["development"],"summary":"Development Episode","description":"Run ONE governed episode over a contained copy of the workflow's image. Nothing is installed. The\nledger (every candidate, every measurement, the decline, the G6 class, the successor's spec) is the\nrecord; each candidate is then its own record.","operationId":"development_episode_api_v1_workflows__workflow_id__development_episode_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EpisodeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/development/episodes":{"get":{"tags":["development"],"summary":"Development Episodes","operationId":"development_episodes_api_v1_workflows__workflow_id__development_episodes_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RecordRead"},"title":"Response Development Episodes Api V1 Workflows  Workflow Id  Development Episodes Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/development/episodes/{record_id}/candidates":{"get":{"tags":["development"],"summary":"Development Candidates","operationId":"development_candidates_api_v1_workflows__workflow_id__development_episodes__record_id__candidates_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}},{"name":"record_id","in":"path","required":true,"schema":{"type":"string","title":"Record Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RecordRead"},"title":"Response Development Candidates Api V1 Workflows  Workflow Id  Development Episodes  Record Id  Candidates Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/development/episodes/{record_id}/world":{"get":{"tags":["development"],"summary":"Development World","description":"The allocation state exactly as the episode saw it (its world), for reproduction (contract §7.5).","operationId":"development_world_api_v1_workflows__workflow_id__development_episodes__record_id__world_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}},{"name":"record_id","in":"path","required":true,"schema":{"type":"string","title":"Record Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Development World Api V1 Workflows  Workflow Id  Development Episodes  Record Id  World Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/development/adopt":{"post":{"tags":["development"],"summary":"Development Adopt","description":"Authority action bound to an episode record that qualified a successor. Preservation first, recorded\nseparately; then a byte-for-byte snapshot; then the engine installs EXACTLY the recorded spec.","operationId":"development_adopt_api_v1_workflows__workflow_id__development_adopt_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/earl_platform_backend__development_api__AdoptRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/development/reject":{"post":{"tags":["development"],"summary":"Development Reject","description":"The developer declines the episode's successor (or closes a rejected episode): a record, no engine call.","operationId":"development_reject_api_v1_workflows__workflow_id__development_reject_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RejectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/development/rollback":{"post":{"tags":["development"],"summary":"Development Rollback","description":"Restore the byte-level image snapshot of the latest development adoption.","operationId":"development_rollback_api_v1_workflows__workflow_id__development_rollback_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/development/lineage":{"get":{"tags":["development"],"summary":"Development Lineage","description":"The workflow's Allocate lineage (generation, every succession with form hashes and the episode it was bound to). Read-only, recorded.","operationId":"development_lineage_api_v1_workflows__workflow_id__development_lineage_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/applications":{"post":{"tags":["applications"],"summary":"Create Application","operationId":"create_application_api_v1_applications_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["applications"],"summary":"List Applications","operationId":"list_applications_api_v1_applications_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Archived"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ApplicationRead"},"title":"Response List Applications Api V1 Applications Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/applications/{application_id}":{"get":{"tags":["applications"],"summary":"Read Application","operationId":"read_application_api_v1_applications__application_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"integer","title":"Application Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/applications/{application_id}/credentials":{"post":{"tags":["applications"],"summary":"Create Credential","operationId":"create_credential_api_v1_applications__application_id__credentials_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"integer","title":"Application Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CredentialIssued"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/applications/{application_id}/credentials/{credential_id}":{"delete":{"tags":["applications"],"summary":"Revoke Credential","operationId":"revoke_credential_api_v1_applications__application_id__credentials__credential_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"integer","title":"Application Id"}},{"name":"credential_id","in":"path","required":true,"schema":{"type":"integer","title":"Credential Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/applications/{application_id}/archive":{"post":{"tags":["applications"],"summary":"Archive Application","description":"Hide the application from lists and stop its keys. Its workflow and every signed record stay\nreadable by id (records are append-only); nothing is deleted. Unarchive restores visibility only:\nrevoked keys stay revoked, so mint a new one.","operationId":"archive_application_api_v1_applications__application_id__archive_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"integer","title":"Application Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/applications/{application_id}/unarchive":{"post":{"tags":["applications"],"summary":"Unarchive Application","operationId":"unarchive_application_api_v1_applications__application_id__unarchive_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"integer","title":"Application Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/applications/{application_id}/connect-domain":{"post":{"tags":["applications"],"summary":"Connect Domain","operationId":"connect_domain_api_v1_applications__application_id__connect_domain_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"integer","title":"Application Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectDomain"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/applications/{application_id}/workflow":{"post":{"tags":["applications"],"summary":"Bind Workflow","operationId":"bind_workflow_api_v1_applications__application_id__workflow_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"integer","title":"Application Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/applications/{application_id}/sdk-snippet":{"get":{"tags":["applications"],"summary":"Sdk Snippet","operationId":"sdk_snippet_api_v1_applications__application_id__sdk_snippet_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"integer","title":"Application Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Sdk Snippet Api V1 Applications  Application Id  Sdk Snippet Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/applications/{application_id}/mission-deployment":{"get":{"tags":["mission-deployments"],"summary":"Read Mission Deployment","operationId":"read_mission_deployment_api_v1_applications__application_id__mission_deployment_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"integer","title":"Application Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Read Mission Deployment Api V1 Applications  Application Id  Mission Deployment Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["mission-deployments"],"summary":"Create Mission Deployment","operationId":"create_mission_deployment_api_v1_applications__application_id__mission_deployment_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"integer","title":"Application Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MissionDeploymentCreate"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Create Mission Deployment Api V1 Applications  Application Id  Mission Deployment Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/applications/{application_id}/mission-deployment/authorizers":{"post":{"tags":["mission-deployments"],"summary":"Set Mission Authorizers","description":"Change who may authorize, and at what level: the registry is rewritten and the gateway restarted (the signed\nrecord continues; every later decision and resolution names the registry snapshot it was made under).","operationId":"set_mission_authorizers_api_v1_applications__application_id__mission_deployment_authorizers_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"integer","title":"Application Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MissionDeploymentAuthorizers"}}}},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Set Mission Authorizers Api V1 Applications  Application Id  Mission Deployment Authorizers Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/applications/{application_id}/mission-deployment/stop":{"post":{"tags":["mission-deployments"],"summary":"Stop Mission Deployment","operationId":"stop_mission_deployment_api_v1_applications__application_id__mission_deployment_stop_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"integer","title":"Application Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Stop Mission Deployment Api V1 Applications  Application Id  Mission Deployment Stop Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/applications/{application_id}/mission-deployment/start":{"post":{"tags":["mission-deployments"],"summary":"Start Mission Deployment","operationId":"start_mission_deployment_api_v1_applications__application_id__mission_deployment_start_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"integer","title":"Application Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Start Mission Deployment Api V1 Applications  Application Id  Mission Deployment Start Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/applications/{application_id}/mission-deployment/upgrade":{"post":{"tags":["mission-deployments"],"summary":"Upgrade Mission Deployment","description":"Move the gateway to the mission image the platform now has installed. Its volumes (its own signed record, its\nkeys, its proposals) are kept, so the chain continues; each record names the gateway version that made it. The\nmove is a signed workflow record naming both images, and only the deploying account can make it.","operationId":"upgrade_mission_deployment_api_v1_applications__application_id__mission_deployment_upgrade_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"application_id","in":"path","required":true,"schema":{"type":"integer","title":"Application Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Upgrade Mission Deployment Api V1 Applications  Application Id  Mission Deployment Upgrade Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/repair/connect":{"post":{"tags":["repair"],"summary":"Repair Connect","description":"Upload the developer's Rust project (a .tar.gz) as the repair target. Replaces any previous project.","operationId":"repair_connect_api_v1_workflows__workflow_id__repair_connect_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/repair/designate":{"post":{"tags":["repair"],"summary":"Repair Designate","description":"Declare the target file/function, repair kind, the files EARL may change, the acceptance-test command,\nand the contract (operator) or guard spec (guard). Stored; replaces the previous designation.","operationId":"repair_designate_api_v1_workflows__workflow_id__repair_designate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DesignateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/repair/diagnose":{"post":{"tags":["repair"],"summary":"Repair Diagnose","description":"Diagnose + construct + verify over a CONTAINED copy of the project. Produces a reviewable proposal;\nadopts nothing. Scope enforced; a candidate failing the acceptance tests is recorded as candidate_rejected.","operationId":"repair_diagnose_api_v1_workflows__workflow_id__repair_diagnose_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiagnoseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/repair/proposals":{"get":{"tags":["repair"],"summary":"Repair Proposals","operationId":"repair_proposals_api_v1_workflows__workflow_id__repair_proposals_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RecordRead"},"title":"Response Repair Proposals Api V1 Workflows  Workflow Id  Repair Proposals Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/repair/adopt":{"post":{"tags":["repair"],"summary":"Repair Adopt","description":"Human-approved adoption of a proposal: preservation re-verify on a copy (recorded separately), then a\nbyte-for-byte snapshot, then the patch is applied to the project. The signed record is the evidence.","operationId":"repair_adopt_api_v1_workflows__workflow_id__repair_adopt_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/earl_platform_backend__repair_api__AdoptRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/repair/rollback":{"post":{"tags":["repair"],"summary":"Repair Rollback","description":"Restore the byte-level snapshot of the latest repair adoption.","operationId":"repair_rollback_api_v1_workflows__workflow_id__repair_rollback_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/repair/status":{"get":{"tags":["repair"],"summary":"Repair Status","operationId":"repair_status_api_v1_workflows__workflow_id__repair_status_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Repair Status Api V1 Workflows  Workflow Id  Repair Status Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/knowledge/surface":{"post":{"tags":["knowledge"],"summary":"Knowledge Register","description":"Register the workflow's sandbox surface (a person's act; one per workflow).","operationId":"knowledge_register_api_v1_workflows__workflow_id__knowledge_surface_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SurfaceRegisterRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/knowledge/explore":{"post":{"tags":["knowledge"],"summary":"Knowledge Explore","description":"One explore call: the engine plans each step's runs, the platform runs and records them, the engine observes.","operationId":"knowledge_explore_api_v1_workflows__workflow_id__knowledge_explore_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExploreRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/knowledge":{"get":{"tags":["knowledge"],"summary":"Knowledge Inspect","description":"The workflow's propositions (each with its scope, records, qualification, proposer and provenance) and calls.","operationId":"knowledge_inspect_api_v1_workflows__workflow_id__knowledge_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}},{"name":"proposition","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Proposition"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/knowledge/approve":{"post":{"tags":["knowledge"],"summary":"Knowledge Approve","description":"A reviewer admits a qualified proposition. The reviewer must not be the person who registered the surface.","operationId":"knowledge_approve_api_v1_workflows__workflow_id__knowledge_approve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropositionActionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/knowledge/withdraw":{"post":{"tags":["knowledge"],"summary":"Knowledge Withdraw","description":"Withdraw a qualified or promoted proposition, with a reason. Append-only; it is never promoted again in this scope.","operationId":"knowledge_withdraw_api_v1_workflows__workflow_id__knowledge_withdraw_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PropositionActionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/knowledge/abort":{"post":{"tags":["knowledge"],"summary":"Knowledge Abort","description":"Abandon the workflow's pending explore call, with a reason (for example, a surface that is gone). Its recorded\nruns stay in history; nothing is resumed. A signed record names the call.","operationId":"knowledge_abort_api_v1_workflows__workflow_id__knowledge_abort_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AbortRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/knowledge/identity":{"post":{"tags":["knowledge"],"summary":"Knowledge Identity","description":"The system under test changed: read the surface's new identity and supersede what the old one promoted.","operationId":"knowledge_identity_api_v1_workflows__workflow_id__knowledge_identity_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentityRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/knowledge/advise":{"post":{"tags":["knowledge"],"summary":"Knowledge Advise","description":"Advisory: which of the caller's permitted interventions the workflow's promoted knowledge supports for raising\nthe target without raising a guarded component, or no basis. Reads nothing else and changes nothing.","operationId":"knowledge_advise_api_v1_workflows__workflow_id__knowledge_advise_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdviseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/knowledge/replay":{"post":{"tags":["knowledge"],"summary":"Knowledge Replay","description":"Re-qualify every proposition from its recorded bundle and fold the event log; both must reproduce the state.","operationId":"knowledge_replay_api_v1_workflows__workflow_id__knowledge_replay_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/knowledge/sham-probe":{"get":{"tags":["knowledge"],"summary":"Knowledge Sham Probe","description":"What Promotion-2 does with sham bundles (single source, testimony, conflicting, no records).","operationId":"knowledge_sham_probe_api_v1_workflows__workflow_id__knowledge_sham_probe_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/workflows/{workflow_id}/language/ask":{"post":{"tags":["language"],"summary":"Language Ask","operationId":"language_ask_api_v1_workflows__workflow_id__language_ask_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"integer","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AskRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordRead"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/store-check":{"get":{"tags":["language"],"summary":"Domain Store Check","description":"After training: the taught denials, any fact held together with its own denial, and facts with a\nfunction word as an endpoint - what to review before relying on answers (authoring-domains.md §1).","operationId":"domain_store_check_api_domains__domain_id__store_check_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"integer","title":"Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Domain Store Check Api Domains  Domain Id  Store Check Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/ask":{"post":{"tags":["language"],"summary":"Domain Ask","description":"The domain page's question box: the same answer as language.ask, read-only and not recorded.","operationId":"domain_ask_api_domains__domain_id__ask_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"integer","title":"Domain Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainAskRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Domain Ask Api Domains  Domain Id  Ask Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Healthcheck","operationId":"healthcheck_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Healthcheck Health Get"}}}}}}},"/api/auth/token":{"post":{"summary":"Issue Token","operationId":"issue_token_api_auth_token_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/me":{"get":{"summary":"Read Current User","operationId":"read_current_user_api_auth_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/auth/providers":{"get":{"summary":"List Auth Providers","operationId":"list_auth_providers_api_auth_providers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/AuthProviderResponse"},"type":"array","title":"Response List Auth Providers Api Auth Providers Get"}}}}}}},"/api/auth/login/{provider}":{"get":{"summary":"Login With Provider","operationId":"login_with_provider_api_auth_login__provider__get","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/auth/callback/{provider}":{"get":{"summary":"Auth Provider Callback","operationId":"auth_provider_callback_api_auth_callback__provider__get","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","title":"Provider"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/roles/super-admin":{"get":{"summary":"Super Admin Probe","operationId":"super_admin_probe_api_roles_super_admin_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleProbeResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/roles/auditor":{"get":{"summary":"Auditor Probe","operationId":"auditor_probe_api_roles_auditor_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleProbeResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/roles/user":{"get":{"summary":"User Probe","operationId":"user_probe_api_roles_user_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoleProbeResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/foundational-kb-packages":{"get":{"summary":"List Foundational Kb Packages","operationId":"list_foundational_kb_packages_api_foundational_kb_packages_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/FoundationalKbPackageResponse"},"type":"array","title":"Response List Foundational Kb Packages Api Foundational Kb Packages Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"summary":"Upload Foundational Kb Package","operationId":"upload_foundational_kb_package_api_foundational_kb_packages_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_foundational_kb_package_api_foundational_kb_packages_post"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FoundationalKbPackageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/foundational-kb-packages/generate-from-vocab":{"post":{"summary":"Generate Foundational Kb Package From Vocab","operationId":"generate_foundational_kb_package_from_vocab_api_foundational_kb_packages_generate_from_vocab_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_generate_foundational_kb_package_from_vocab_api_foundational_kb_packages_generate_from_vocab_post"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FoundationalKbPackageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/foundational-kb-packages/{package_id}":{"get":{"summary":"Get Foundational Kb Package","operationId":"get_foundational_kb_package_api_foundational_kb_packages__package_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"package_id","in":"path","required":true,"schema":{"type":"integer","title":"Package Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FoundationalKbPackageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/foundational-kb-packages/{package_id}/approve":{"post":{"summary":"Approve Foundational Kb Package","operationId":"approve_foundational_kb_package_api_foundational_kb_packages__package_id__approve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"package_id","in":"path","required":true,"schema":{"type":"integer","title":"Package Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FoundationalKbPackageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/foundational-kb-packages/{package_id}/reject":{"post":{"summary":"Reject Foundational Kb Package","operationId":"reject_foundational_kb_package_api_foundational_kb_packages__package_id__reject_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"package_id","in":"path","required":true,"schema":{"type":"integer","title":"Package Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KbPackageDecisionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FoundationalKbPackageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/foundational-kb-packages/{package_id}/revoke":{"post":{"summary":"Revoke Foundational Kb Package","operationId":"revoke_foundational_kb_package_api_foundational_kb_packages__package_id__revoke_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"package_id","in":"path","required":true,"schema":{"type":"integer","title":"Package Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KbPackageDecisionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FoundationalKbPackageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/kb-generation-jobs":{"get":{"summary":"List Kb Generation Jobs","operationId":"list_kb_generation_jobs_api_kb_generation_jobs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/KbGenerationJobResponse"},"type":"array","title":"Response List Kb Generation Jobs Api Kb Generation Jobs Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"summary":"Create Kb Generation Job Endpoint","description":"Queue a KB build. 202 + a job to poll: the build takes minutes.\n\nMUST stay `async def`: schedule_local_kb_generation_execution calls\nasyncio.create_task, which needs a running event loop. A sync endpoint\nruns in the anyio threadpool where there is none, and scheduling would\nfail with RuntimeError at request time.","operationId":"create_kb_generation_job_endpoint_api_kb_generation_jobs_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KbGenerationJobCreateRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KbGenerationJobResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/kb-generation-jobs/{job_id}":{"get":{"summary":"Get Kb Generation Job","operationId":"get_kb_generation_job_api_kb_generation_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"integer","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/KbGenerationJobResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/examples":{"get":{"summary":"List Examples","description":"Bundled example domains, each driven end to end before shipping.","operationId":"list_examples_api_examples_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Response List Examples Api Examples Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/examples/{slug}":{"get":{"summary":"Read Example","operationId":"read_example_api_examples__slug__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Read Example Api Examples  Slug  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/examples/{slug}/instantiate":{"post":{"summary":"Instantiate Example Domain","description":"Seed a domain from a bundled example, ready to drive.\n\nCreates the domain, uploads the corpus, opens a tuning run and fills the\nvocabulary and curriculum drafts -- then stops. The drafts are left\nUNAPPROVED because approving, schooling, training and freezing are the\nsteps being learned.","operationId":"instantiate_example_domain_api_examples__slug__instantiate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExampleInstantiateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Instantiate Example Domain Api Examples  Slug  Instantiate Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/docs/guides":{"get":{"summary":"List Developer Guides","description":"Developer guides bundled with this platform build.\n\nPublic on purpose: documentation a licensee cannot open is documentation\nthey do not have, and these ship with the image so they always describe\nthe version actually running.","operationId":"list_developer_guides_api_docs_guides_get","responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}}}}},"/api/docs/sdk":{"get":{"summary":"Download Python Sdk","description":"The Python SDK and its examples, as a .tar.gz.\n\nA HOSTED evaluator has no repository checkout, so telling them to look in `platform/sdk/python` is not an\ninstruction they can follow. This serves the SDK that ships with the running image, so what they get\nalways matches the API they are calling.","operationId":"download_python_sdk_api_docs_sdk_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/docs/guides/{slug}":{"get":{"summary":"Read Developer Guide","operationId":"read_developer_guide_api_docs_guides__slug__get","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","title":"Slug"}}],"responses":{"200":{"description":"Successful Response","content":{"text/html":{"schema":{"type":"string"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earl-engines/install-jobs":{"get":{"summary":"List Earl Engine Install Jobs","operationId":"list_earl_engine_install_jobs_api_earl_engines_install_jobs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/EarlEngineInstallJobResponse"},"type":"array","title":"Response List Earl Engine Install Jobs Api Earl Engines Install Jobs Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"summary":"Create Earl Engine Install Job","operationId":"create_earl_engine_install_job_api_earl_engines_install_jobs_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EarlEngineInstallRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EarlEngineInstallJobResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/earl-engines/install-jobs/{job_id}/cancel":{"post":{"summary":"Cancel Earl Engine Install Job","operationId":"cancel_earl_engine_install_job_api_earl_engines_install_jobs__job_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"integer","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EarlEngineInstallJobResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earl-engines/releases":{"get":{"summary":"List Earl Engine Releases","operationId":"list_earl_engine_releases_api_earl_engines_releases_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/EarlReleaseOptionResponse"},"type":"array","title":"Response List Earl Engine Releases Api Earl Engines Releases Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/earl-engines":{"get":{"summary":"List Earl Engine Records","operationId":"list_earl_engine_records_api_earl_engines_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"include_retired","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Retired"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EarlEngineResponse"},"title":"Response List Earl Engine Records Api Earl Engines Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earl-engines/{engine_id}/retire":{"post":{"summary":"Retire Earl Engine","description":"Retire an engine nothing is bound to: hidden from lists, refused for new domains and adoption.\nIts files, its row and every record naming it are kept; unretire restores it.","operationId":"retire_earl_engine_api_earl_engines__engine_id__retire_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"engine_id","in":"path","required":true,"schema":{"type":"integer","title":"Engine Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EarlEngineResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earl-engines/{engine_id}/unretire":{"post":{"summary":"Unretire Earl Engine","operationId":"unretire_earl_engine_api_earl_engines__engine_id__unretire_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"engine_id","in":"path","required":true,"schema":{"type":"integer","title":"Engine Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EarlEngineResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/earl-engines/{engine_id}/example-checks":{"post":{"summary":"Create Earl Engine Example Check","description":"Compatibility gate: drive a bundled example end to end on this engine\nand compare every documented verdict. PASSED / FAILED (verdicts differ) /\nERRORED (pipeline did not complete) are kept distinct on purpose.","operationId":"create_earl_engine_example_check_api_earl_engines__engine_id__example_checks_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"engine_id","in":"path","required":true,"schema":{"type":"integer","title":"Engine Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineExampleCheckRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineExampleCheckResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Earl Engine Example Checks","operationId":"list_earl_engine_example_checks_api_earl_engines__engine_id__example_checks_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"engine_id","in":"path","required":true,"schema":{"type":"integer","title":"Engine Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EngineExampleCheckResponse"},"title":"Response List Earl Engine Example Checks Api Earl Engines  Engine Id  Example Checks Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/example-checks/{check_id}":{"get":{"summary":"Read Engine Example Check","operationId":"read_engine_example_check_api_example_checks__check_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"check_id","in":"path","required":true,"schema":{"type":"integer","title":"Check Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineExampleCheckResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains":{"get":{"summary":"List Domains","operationId":"list_domains_api_domains_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/DomainResponse"},"type":"array","title":"Response List Domains Api Domains Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"summary":"Create Domain Record","operationId":"create_domain_record_api_domains_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainCreateRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/deployments":{"get":{"summary":"List Domain Deployments","operationId":"list_domain_deployments_api_deployments_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/DomainDeploymentResponse"},"type":"array","title":"Response List Domain Deployments Api Deployments Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"summary":"Create Domain Deployment","operationId":"create_domain_deployment_api_deployments_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainDeploymentCreateRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainDeploymentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/deployments/{deployment_id}":{"get":{"summary":"Get Domain Deployment","description":"One deployment (the api-walkthrough's polling target; clean-room finding #13: it answered 405).","operationId":"get_domain_deployment_api_deployments__deployment_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"integer","title":"Deployment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainDeploymentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Update Domain Deployment","operationId":"update_domain_deployment_api_deployments__deployment_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"integer","title":"Deployment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainDeploymentUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainDeploymentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Domain Deployment","operationId":"delete_domain_deployment_api_deployments__deployment_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"integer","title":"Deployment Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/deployments/{deployment_id}/start":{"post":{"summary":"Start Domain Deployment","operationId":"start_domain_deployment_api_deployments__deployment_id__start_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"integer","title":"Deployment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainDeploymentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/deployments/{deployment_id}/stop":{"post":{"summary":"Stop Domain Deployment","operationId":"stop_domain_deployment_api_deployments__deployment_id__stop_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"integer","title":"Deployment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainDeploymentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/deployments/{deployment_id}/tail-logs":{"post":{"summary":"Tail Domain Deployment Logs","operationId":"tail_domain_deployment_logs_api_deployments__deployment_id__tail_logs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"integer","title":"Deployment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainDeploymentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/deployments/{deployment_id}/verify":{"post":{"summary":"Verify Through Deployment","description":"Call the DEPLOYED container (not the working checkpoint) through the\nplatform: the reply is the container's own, passed through unchanged, so\nan integrator sees exactly what the standalone package answers.","operationId":"verify_through_deployment_api_deployments__deployment_id__verify_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"integer","title":"Deployment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainAdjudicationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Verify Through Deployment Api Deployments  Deployment Id  Verify Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/deployments/{deployment_id}/health":{"get":{"summary":"Deployment Health","operationId":"deployment_health_api_deployments__deployment_id__health_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"integer","title":"Deployment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Deployment Health Api Deployments  Deployment Id  Health Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/deployments/{deployment_id}/download":{"get":{"summary":"Download Domain Deployment Archive","operationId":"download_domain_deployment_archive_api_deployments__deployment_id__download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"integer","title":"Deployment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/frozen-domains":{"get":{"summary":"List Frozen Domains","operationId":"list_frozen_domains_api_frozen_domains_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/FrozenDomainPackageResponse"},"type":"array","title":"Response List Frozen Domains Api Frozen Domains Get"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/frozen-domains/{frozen_domain_id}/archive":{"post":{"summary":"Archive Frozen Domain","operationId":"archive_frozen_domain_api_frozen_domains__frozen_domain_id__archive_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"frozen_domain_id","in":"path","required":true,"schema":{"type":"integer","title":"Frozen Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FrozenDomainPackageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/frozen-domains/{frozen_domain_id}/unarchive":{"post":{"summary":"Unarchive Frozen Domain","operationId":"unarchive_frozen_domain_api_frozen_domains__frozen_domain_id__unarchive_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"frozen_domain_id","in":"path","required":true,"schema":{"type":"integer","title":"Frozen Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FrozenDomainPackageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tuning-runs/{run_id}/freeze-domain":{"post":{"summary":"Freeze Tuning Run Domain","operationId":"freeze_tuning_run_domain_api_tuning_runs__run_id__freeze_domain_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"integer","title":"Run Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FreezeDomainRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FrozenDomainPackageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}":{"get":{"summary":"Get Domain","operationId":"get_domain_api_domains__domain_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"integer","title":"Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/kg/summary":{"get":{"summary":"Get Domain Kg Summary","operationId":"get_domain_kg_summary_api_domains__domain_id__kg_summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"integer","title":"Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Domain Kg Summary Api Domains  Domain Id  Kg Summary Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/kg/entities":{"get":{"summary":"List Domain Kg Entities","operationId":"list_domain_kg_entities_api_domains__domain_id__kg_entities_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"integer","title":"Domain Id"}},{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":25,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Domain Kg Entities Api Domains  Domain Id  Kg Entities Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/kg/beliefs":{"get":{"summary":"List Domain Kg Beliefs","operationId":"list_domain_kg_beliefs_api_domains__domain_id__kg_beliefs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"integer","title":"Domain Id"}},{"name":"query","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":25,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response List Domain Kg Beliefs Api Domains  Domain Id  Kg Beliefs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/kg/entity":{"get":{"summary":"Get Domain Kg Entity Detail","operationId":"get_domain_kg_entity_detail_api_domains__domain_id__kg_entity_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"integer","title":"Domain Id"}},{"name":"term","in":"query","required":true,"schema":{"type":"string","title":"Term"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Domain Kg Entity Detail Api Domains  Domain Id  Kg Entity Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/kg/neighborhood":{"get":{"summary":"Get Domain Kg Neighborhood","operationId":"get_domain_kg_neighborhood_api_domains__domain_id__kg_neighborhood_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"integer","title":"Domain Id"}},{"name":"term","in":"query","required":true,"schema":{"type":"string","title":"Term"}},{"name":"depth","in":"query","required":false,"schema":{"type":"integer","default":1,"title":"Depth"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Domain Kg Neighborhood Api Domains  Domain Id  Kg Neighborhood Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/kg/path":{"get":{"summary":"Get Domain Kg Path","operationId":"get_domain_kg_path_api_domains__domain_id__kg_path_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"integer","title":"Domain Id"}},{"name":"a","in":"query","required":true,"schema":{"type":"string","title":"A"}},{"name":"b","in":"query","required":true,"schema":{"type":"string","title":"B"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Domain Kg Path Api Domains  Domain Id  Kg Path Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/kg/graph":{"get":{"summary":"Get Domain Kg Graph","operationId":"get_domain_kg_graph_api_domains__domain_id__kg_graph_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"integer","title":"Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Domain Kg Graph Api Domains  Domain Id  Kg Graph Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/archive":{"post":{"summary":"Archive Domain Record","operationId":"archive_domain_record_api_domains__domain_id__archive_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"integer","title":"Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/unarchive":{"post":{"summary":"Unarchive Domain Record","operationId":"unarchive_domain_record_api_domains__domain_id__unarchive_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"integer","title":"Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/bind-foundational-kb":{"post":{"summary":"Bind Domain Foundational Kb","operationId":"bind_domain_foundational_kb_api_domains__domain_id__bind_foundational_kb_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"integer","title":"Domain Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainBindKbRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/documents":{"post":{"summary":"Upload Domain Document","operationId":"upload_domain_document_api_domains__domain_id__documents_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"integer","title":"Domain Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_domain_document_api_domains__domain_id__documents_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Domain Documents","operationId":"list_domain_documents_api_domains__domain_id__documents_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"integer","title":"Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SourceDocumentResponse"},"title":"Response List Domain Documents Api Domains  Domain Id  Documents Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/documents/text":{"post":{"summary":"Upload Domain Text Document","description":"A corpus document sent as markdown text, stored exactly as a markdown upload is (the SDK's path).","operationId":"upload_domain_text_document_api_domains__domain_id__documents_text_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"integer","title":"Domain Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TextDocumentUpload"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/documents/{document_id}/original":{"get":{"summary":"Download Domain Document Original","description":"The untouched upload behind a converted document (404 for a native markdown upload).","operationId":"download_domain_document_original_api_domains__domain_id__documents__document_id__original_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"integer","title":"Domain Id"}},{"name":"document_id","in":"path","required":true,"schema":{"type":"integer","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/documents/{document_id}":{"get":{"summary":"Get Domain Document","operationId":"get_domain_document_api_domains__domain_id__documents__document_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"integer","title":"Domain Id"}},{"name":"document_id","in":"path","required":true,"schema":{"type":"integer","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceDocumentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Domain Document","operationId":"delete_domain_document_api_domains__domain_id__documents__document_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"integer","title":"Domain Id"}},{"name":"document_id","in":"path","required":true,"schema":{"type":"integer","title":"Document Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/documents/{document_id}/content":{"get":{"summary":"Get Domain Document Content","operationId":"get_domain_document_content_api_domains__domain_id__documents__document_id__content_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"integer","title":"Domain Id"}},{"name":"document_id","in":"path","required":true,"schema":{"type":"integer","title":"Document Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SourceDocumentContentResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/tuning-runs":{"post":{"summary":"Create Domain Tuning Run","operationId":"create_domain_tuning_run_api_domains__domain_id__tuning_runs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"integer","title":"Domain Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainTuningRunCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainTuningRunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Domain Tuning Runs","operationId":"list_domain_tuning_runs_api_domains__domain_id__tuning_runs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"integer","title":"Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DomainTuningRunResponse"},"title":"Response List Domain Tuning Runs Api Domains  Domain Id  Tuning Runs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tuning-runs/{run_id}":{"get":{"summary":"Get Tuning Run","operationId":"get_tuning_run_api_tuning_runs__run_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"integer","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainTuningRunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tuning-runs/{run_id}/school-record":{"get":{"summary":"Get School Record","description":"What the school recorded with the brain, as data: per lesson its status, score, attempts and gaps\n(school.tsv), and which lesson taught, reinforced or consolidated each belief (school_ledger.tsv).","operationId":"get_school_record_api_tuning_runs__run_id__school_record_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"integer","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get School Record Api Tuning Runs  Run Id  School Record Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/language-faculty":{"put":{"summary":"Set Domain Language Faculty","description":"rc27 language.learn (gated, off by default): school and training of this domain run with EARL's language\nfaculty (earl-learn / earl-learn-train) and the bundle's WordNet tables. Switching on needs an engine whose\nbundle has both binaries and the tables; each later run's engine identity names the binary it ran.","operationId":"set_domain_language_faculty_api_domains__domain_id__language_faculty_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"integer","title":"Domain Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LanguageFacultyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tuning-runs/{run_id}/language":{"get":{"summary":"Get Tuning Run Language","description":"rc27 language.learn: what EARL's language faculty learned and kept with this run's brain - its words\n(lexicon), word classes, constructions, patterns and story experience - as rows of the files in\n<checkpoint>/language, for the school brain and (after training) the trained brain.","operationId":"get_tuning_run_language_api_tuning_runs__run_id__language_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"integer","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Tuning Run Language Api Tuning Runs  Run Id  Language Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tuning-runs/{run_id}/generate-vocab":{"post":{"summary":"Generate Tuning Run Vocab","operationId":"generate_tuning_run_vocab_api_tuning_runs__run_id__generate_vocab_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"integer","title":"Run Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VocabGenerationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VocabDraftResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tuning-runs/{run_id}/vocab-draft":{"put":{"summary":"Save Tuning Run Vocab Draft","operationId":"save_tuning_run_vocab_draft_api_tuning_runs__run_id__vocab_draft_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"integer","title":"Run Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VocabDraftUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VocabDraftResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tuning-runs/{run_id}/vocab-draft/approve":{"post":{"summary":"Approve Tuning Run Vocab Draft","operationId":"approve_tuning_run_vocab_draft_api_tuning_runs__run_id__vocab_draft_approve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"integer","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VocabDraftResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tuning-runs/{run_id}/build-vocab-kb":{"post":{"summary":"Build Tuning Run Vocab Kb","operationId":"build_tuning_run_vocab_kb_api_tuning_runs__run_id__build_vocab_kb_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"integer","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainTuningRunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tuning-runs/{run_id}/generate-lessons":{"post":{"summary":"Generate Tuning Run Lessons","operationId":"generate_tuning_run_lessons_api_tuning_runs__run_id__generate_lessons_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"integer","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LessonDraftResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tuning-runs/{run_id}/lesson-draft":{"put":{"summary":"Save Tuning Run Lesson Draft","operationId":"save_tuning_run_lesson_draft_api_tuning_runs__run_id__lesson_draft_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"integer","title":"Run Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LessonDraftUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LessonDraftResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tuning-runs/{run_id}/lesson-draft/approve":{"post":{"summary":"Approve Tuning Run Lesson Draft","operationId":"approve_tuning_run_lesson_draft_api_tuning_runs__run_id__lesson_draft_approve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"integer","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LessonDraftResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tuning-runs/{run_id}/lessons/{lesson_id}/approve":{"post":{"summary":"Approve Single Tuning Run Lesson","operationId":"approve_single_tuning_run_lesson_api_tuning_runs__run_id__lessons__lesson_id__approve_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"integer","title":"Run Id"}},{"name":"lesson_id","in":"path","required":true,"schema":{"type":"string","title":"Lesson Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LessonDraftResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tuning-runs/{run_id}/lessons/regenerate":{"post":{"summary":"Regenerate Single Tuning Run Lesson","operationId":"regenerate_single_tuning_run_lesson_api_tuning_runs__run_id__lessons_regenerate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"integer","title":"Run Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LessonFeedbackRegenerateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LessonDraftResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tuning-runs/{run_id}/run-school":{"post":{"summary":"Run Tuning Run School Loop","operationId":"run_tuning_run_school_loop_api_tuning_runs__run_id__run_school_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"integer","title":"Run Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SchoolStartRequest"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainTuningRunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tuning-runs/{run_id}/accept-school":{"post":{"summary":"Accept Tuning Run School Result","operationId":"accept_tuning_run_school_result_api_tuning_runs__run_id__accept_school_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"integer","title":"Run Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SchoolAcceptanceRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainTuningRunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/tuning-runs/{run_id}/train-domain":{"post":{"summary":"Run Tuning Run Domain Training","operationId":"run_tuning_run_domain_training_api_tuning_runs__run_id__train_domain_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"run_id","in":"path","required":true,"schema":{"type":"integer","title":"Run Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainTuningRunResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/ingestion-jobs":{"post":{"summary":"Create Domain Ingestion Job","operationId":"create_domain_ingestion_job_api_domains__domain_id__ingestion_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"integer","title":"Domain Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestionJobResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"List Domain Ingestion Jobs","operationId":"list_domain_ingestion_jobs_api_domains__domain_id__ingestion_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"integer","title":"Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/IngestionJobResponse"},"title":"Response List Domain Ingestion Jobs Api Domains  Domain Id  Ingestion Jobs Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/adjudication-runs":{"post":{"summary":"Create Domain Adjudication Run","description":"Test the working checkpoint. One claim per line. Optional `expectations`\n(claim, expected_verdict, expected_disposition) turn the run into a batch\ntest with expected-versus-actual per claim and a summary.","operationId":"create_domain_adjudication_run_api_domains__domain_id__adjudication_runs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"integer","title":"Domain Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainAdjudicationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainAdjudicationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/evidence-packages/{package_id}/replay":{"post":{"summary":"Replay Evidence Package","description":"Re-adjudicate the claims of a recorded package on the same source (the\ndomain's working checkpoint, or the deployment) and report whether every\nverdict and disposition is identical. The replay is itself recorded as a\nnew package naming the original in `replay_of`.","operationId":"replay_evidence_package_api_evidence_packages__package_id__replay_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"package_id","in":"path","required":true,"schema":{"type":"string","title":"Package Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplayResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/generation/status":{"get":{"summary":"Generation Status","description":"Preflight for LLM-assisted drafting. When not configured, the UI offers\nmanual authoring and import instead of failing on submit (POC-001).","operationId":"generation_status_api_generation_status_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerationStatusResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/domains/{domain_id}/policy":{"get":{"summary":"Read Domain Policy","description":"The active (highest-version) policy, or nulls when the domain has none.","operationId":"read_domain_policy_api_domains__domain_id__policy_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"integer","title":"Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainPolicyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Write Domain Policy","description":"Validate and store a new policy version. Rejected documents name their first defect.\n\nVersions are append-only. Test runs apply the newest version immediately;\na frozen package captures the version active when it was frozen and never\nchanges afterwards.","operationId":"write_domain_policy_api_domains__domain_id__policy_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"integer","title":"Domain Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainPolicySetRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainPolicyResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/policy/versions":{"get":{"summary":"List Domain Policy Versions","operationId":"list_domain_policy_versions_api_domains__domain_id__policy_versions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"integer","title":"Domain Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/DomainPolicyResponse"},"title":"Response List Domain Policy Versions Api Domains  Domain Id  Policy Versions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/evidence/public-key":{"get":{"summary":"Read Evidence Public Key","description":"The platform's evidence-signing public key. Public: it is what a\nreader pins to check that a package really came from this platform.","operationId":"read_evidence_public_key_api_evidence_public_key_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":{"type":"string"},"type":"object","title":"Response Read Evidence Public Key Api Evidence Public Key Get"}}}}}}},"/api/evidence/verifier":{"get":{"summary":"Download Evidence Verifier","description":"The standalone offline verifier script (Python >= 3.8, no dependencies required).","operationId":"download_evidence_verifier_api_evidence_verifier_get","responses":{"200":{"description":"Successful Response"}}}},"/api/evidence/policy-evaluator":{"get":{"summary":"Download Policy Evaluator","description":"The domain policy evaluator, verbatim: the dependency-free file every decision and frozen package uses, with\nthe sealed fact library. Recompute a decide record's computed facts offline with\n``recompute_computed_facts(policy_document, action, facts_input)`` (amendment B, option A).","operationId":"download_policy_evaluator_api_evidence_policy_evaluator_get","responses":{"200":{"description":"Successful Response"}}}},"/api/evidence-packages/verify":{"post":{"summary":"Verify Evidence Package Endpoint","description":"Verify a package against the platform's current key. Offline verification\nwith tools/verify_evidence_package.py gives the same answer without the platform.","operationId":"verify_evidence_package_endpoint_api_evidence_packages_verify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvidencePackageVerifyRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Verify Evidence Package Endpoint Api Evidence Packages Verify Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/evidence-packages/{package_id}":{"get":{"summary":"Read Evidence Package","description":"The signed package, exactly as issued.","operationId":"read_evidence_package_api_evidence_packages__package_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"package_id","in":"path","required":true,"schema":{"type":"string","title":"Package Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Read Evidence Package Api Evidence Packages  Package Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/domains/{domain_id}/evidence-packages":{"get":{"summary":"List Domain Evidence Packages","operationId":"list_domain_evidence_packages_api_domains__domain_id__evidence_packages_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"domain_id","in":"path","required":true,"schema":{"type":"integer","title":"Domain Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EvidencePackageSummaryResponse"},"title":"Response List Domain Evidence Packages Api Domains  Domain Id  Evidence Packages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/deployments/{deployment_id}/evidence-packages":{"get":{"summary":"List Deployment Evidence Packages","operationId":"list_deployment_evidence_packages_api_deployments__deployment_id__evidence_packages_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"deployment_id","in":"path","required":true,"schema":{"type":"integer","title":"Deployment Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/EvidencePackageSummaryResponse"},"title":"Response List Deployment Evidence Packages Api Deployments  Deployment Id  Evidence Packages Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/organizations":{"get":{"summary":"List Organizations Endpoint","operationId":"list_organizations_endpoint_api_organizations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/OrganizationResponse"},"type":"array","title":"Response List Organizations Endpoint Api Organizations Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"summary":"Create Organization Endpoint","operationId":"create_organization_endpoint_api_organizations_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationCreateRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/users":{"get":{"summary":"List Users Endpoint","operationId":"list_users_endpoint_api_users_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/UserResponse"},"type":"array","title":"Response List Users Endpoint Api Users Get"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"summary":"Create User Endpoint","description":"Create an account. The password is set here and never shown again; hand it over out of band.","operationId":"create_user_endpoint_api_users_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserCreateRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/users/{user_id}":{"patch":{"summary":"Update User Endpoint","description":"Change role, organization, active flag or password. A super_admin cannot demote or deactivate themselves.","operationId":"update_user_endpoint_api_users__user_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/ingestion-jobs/{job_id}":{"get":{"summary":"Get Ingestion Job","operationId":"get_ingestion_job_api_ingestion_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"integer","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestionJobResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/internal/engine-updates":{"post":{"summary":"Receive Engine Update","operationId":"receive_engine_update_api_internal_engine_updates_post","parameters":[{"name":"X-Earl-Engine-Secret","in":"header","required":true,"schema":{"type":"string","title":"X-Earl-Engine-Secret"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EngineUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngestionJobResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AbortRequest":{"properties":{"reason":{"type":"string","maxLength":1000,"minLength":3,"title":"Reason"},"idempotency_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","required":["reason"],"title":"AbortRequest"},"AcceptanceCase":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"items":{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":1000,"minItems":1,"title":"Items"},"expect_first":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Expect First"},"expect_top":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":64},{"type":"null"}],"title":"Expect Top"}},"type":"object","required":["name","items"],"title":"AcceptanceCase","description":"One application acceptance case for the delegated ordering: items in the faculty's vocabulary and what\nthe application expects first / in the top-k. Evaluated by the platform, outside EARL's authority (§6)."},"AcceptanceRequest":{"properties":{"cases":{"items":{"$ref":"#/components/schemas/AcceptanceCase"},"type":"array","maxItems":64,"minItems":1,"title":"Cases"},"idempotency_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","required":["cases"],"title":"AcceptanceRequest"},"AdviseRequest":{"properties":{"target":{"type":"string","maxLength":128,"minLength":1,"title":"Target"},"direction":{"type":"string","const":"raise","title":"Direction","default":"raise"},"permitted":{"items":{"type":"string"},"type":"array","maxItems":64,"minItems":1,"title":"Permitted"},"guarded":{"items":{"type":"string"},"type":"array","maxItems":64,"title":"Guarded"},"basis":{"type":"string","enum":["promoted","candidates"],"title":"Basis","default":"promoted"}},"type":"object","required":["target","permitted"],"title":"AdviseRequest"},"AllocateRequest":{"properties":{"tick":{"type":"integer","minimum":0.0,"title":"Tick"},"items":{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":1000,"minItems":1,"title":"Items"},"idempotency_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","required":["tick","items"],"title":"AllocateRequest","description":"SHIP-2 goals.allocate (contract §1): items with observations in the faculty's vocabulary, at the application's tick."},"AllocationMigrateRequest":{"properties":{"reason":{"type":"string","maxLength":500,"minLength":3,"title":"Reason"},"idempotency_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","required":["reason"],"title":"AllocationMigrateRequest","description":"SHIP-2 §12: move the workflow's allocation state to the incremental store (identity becomes a chain)."},"ApplicationCreate":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"description":{"type":"string","title":"Description","default":""},"organization_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Organization Id"}},"type":"object","required":["name"],"title":"ApplicationCreate"},"ApplicationRead":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"description":{"type":"string","title":"Description"},"organization_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Organization Id"},"state":{"$ref":"#/components/schemas/ApplicationState"},"service_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Username"},"domain":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Domain"},"workflow":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Workflow"},"deployments":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Deployments"},"credentials":{"items":{"$ref":"#/components/schemas/CredentialRead"},"type":"array","title":"Credentials"},"next_steps":{"items":{"type":"string"},"type":"array","title":"Next Steps"},"sdk_snippet":{"type":"string","title":"Sdk Snippet"},"created_by_username":{"type":"string","title":"Created By Username"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"archived_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Archived At"}},"type":"object","required":["id","name","slug","description","organization_id","state","service_username","domain","workflow","deployments","credentials","next_steps","sdk_snippet","created_by_username","created_at"],"title":"ApplicationRead"},"ApplicationState":{"type":"string","enum":["created","connected","ready"],"title":"ApplicationState"},"AskRequest":{"properties":{"question":{"type":"string","maxLength":2000,"minLength":1,"title":"Question"},"intent":{"type":"string","enum":["explain","answer","teach","compare"],"title":"Intent","default":"explain"},"idempotency_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","required":["question"],"title":"AskRequest"},"AuthProviderResponse":{"properties":{"key":{"type":"string","title":"Key"},"display_name":{"type":"string","title":"Display Name"}},"type":"object","required":["key","display_name"],"title":"AuthProviderResponse"},"AuthorityCheckRequest":{"properties":{"action":{"type":"string","maxLength":255,"minLength":1,"title":"Action"},"evidence_package_id":{"type":"string","title":"Evidence Package Id"},"idempotency_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","required":["action","evidence_package_id"],"title":"AuthorityCheckRequest"},"Authorizer":{"properties":{"username":{"type":"string","maxLength":255,"minLength":1,"title":"Username"},"level":{"type":"integer","maximum":3.0,"minimum":1.0,"title":"Level"}},"type":"object","required":["username","level"],"title":"Authorizer"},"Body_generate_foundational_kb_package_from_vocab_api_foundational_kb_packages_generate_from_vocab_post":{"properties":{"codename":{"type":"string","title":"Codename"},"description":{"type":"string","title":"Description","default":""},"vocab_file":{"type":"string","contentMediaType":"application/octet-stream","title":"Vocab File"}},"type":"object","required":["codename","vocab_file"],"title":"Body_generate_foundational_kb_package_from_vocab_api_foundational_kb_packages_generate_from_vocab_post"},"Body_upload_domain_document_api_domains__domain_id__documents_post":{"properties":{"document_file":{"type":"string","contentMediaType":"application/octet-stream","title":"Document File"}},"type":"object","required":["document_file"],"title":"Body_upload_domain_document_api_domains__domain_id__documents_post"},"Body_upload_foundational_kb_package_api_foundational_kb_packages_post":{"properties":{"package_file":{"type":"string","contentMediaType":"application/octet-stream","title":"Package File"}},"type":"object","required":["package_file"],"title":"Body_upload_foundational_kb_package_api_foundational_kb_packages_post"},"ClaimExpectation":{"properties":{"claim":{"type":"string","minLength":1,"title":"Claim"},"expected_verdict":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expected Verdict"},"expected_disposition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expected Disposition"}},"type":"object","required":["claim"],"title":"ClaimExpectation","description":"What one claim in a test run should receive. Either field may be omitted."},"ConnectDomain":{"properties":{"domain_id":{"type":"integer","title":"Domain Id"}},"type":"object","required":["domain_id"],"title":"ConnectDomain"},"ConnectRequest":{"properties":{"archive_b64":{"type":"string","minLength":1,"title":"Archive B64","description":"base64 of a .tar.gz of the Rust project"},"idempotency_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","required":["archive_b64"],"title":"ConnectRequest"},"CredentialCreate":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name","default":"default"}},"type":"object","title":"CredentialCreate"},"CredentialIssued":{"properties":{"credential":{"$ref":"#/components/schemas/CredentialRead"},"api_key":{"type":"string","title":"Api Key"},"note":{"type":"string","title":"Note","default":"Shown once. Store it now; the platform keeps only a hash."}},"type":"object","required":["credential","api_key"],"title":"CredentialIssued"},"CredentialRead":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"key_prefix":{"type":"string","title":"Key Prefix"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"}},"type":"object","required":["id","name","key_prefix","created_at","last_used_at","revoked_at"],"title":"CredentialRead"},"CurriculumAssessmentResponse":{"properties":{"a":{"type":"string","title":"A"},"b":{"type":"string","title":"B"},"prompt":{"type":"string","title":"Prompt"}},"type":"object","required":["a","b","prompt"],"title":"CurriculumAssessmentResponse"},"CurriculumExplainedExampleResponse":{"properties":{"sentence":{"type":"string","minLength":1,"title":"Sentence"},"meaning":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Meaning"}},"type":"object","required":["sentence","meaning"],"title":"CurriculumExplainedExampleResponse","description":"A sentence and its meaning in plain sentences: how EARL's language faculty learns constructions."},"CurriculumJsonResponse":{"properties":{"subject":{"type":"string","minLength":1,"title":"Subject"},"relations":{"items":{"$ref":"#/components/schemas/CurriculumRelationResponse"},"type":"array","title":"Relations"},"grounding":{"items":{"type":"string"},"type":"array","title":"Grounding"},"prereq_overrides":{"items":{"$ref":"#/components/schemas/CurriculumPrereqOverrideResponse"},"type":"array","title":"Prereq Overrides"},"lessons":{"items":{"$ref":"#/components/schemas/CurriculumLessonResponse"},"type":"array","minItems":1,"title":"Lessons"}},"type":"object","required":["subject","lessons"],"title":"CurriculumJsonResponse"},"CurriculumLessonResponse":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"grade":{"type":"string","title":"Grade"},"requires":{"items":{"type":"string"},"type":"array","title":"Requires"},"teaches":{"items":{"type":"string"},"type":"array","title":"Teaches"},"propositions":{"items":{"type":"string"},"type":"array","minItems":1,"title":"Propositions"},"assessments":{"items":{"$ref":"#/components/schemas/CurriculumAssessmentResponse"},"type":"array","minItems":1,"title":"Assessments"},"mastery":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Mastery","default":0.95},"review":{"anyOf":[{"$ref":"#/components/schemas/CurriculumLessonReviewResponse"},{"type":"null"}]},"examples":{"items":{"type":"string"},"type":"array","title":"Examples"},"explained":{"items":{"$ref":"#/components/schemas/CurriculumExplainedExampleResponse"},"type":"array","title":"Explained"}},"type":"object","required":["id","title","grade","propositions","assessments"],"title":"CurriculumLessonResponse"},"CurriculumLessonReviewResponse":{"properties":{"status":{"type":"string","enum":["pending","approved","needs_revision"],"title":"Status","default":"pending"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"}},"type":"object","title":"CurriculumLessonReviewResponse"},"CurriculumPrereqOverrideResponse":{"properties":{"dependent":{"type":"string","title":"Dependent"},"prerequisite":{"type":"string","title":"Prerequisite"},"replacement":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Replacement"}},"type":"object","required":["dependent","prerequisite"],"title":"CurriculumPrereqOverrideResponse"},"CurriculumRelationResponse":{"properties":{"s":{"type":"string","title":"S"},"kind":{"type":"string","title":"Kind"},"o":{"type":"string","title":"O"}},"type":"object","required":["s","kind","o"],"title":"CurriculumRelationResponse"},"CycleIn":{"properties":{"tick":{"type":"integer","minimum":0.0,"title":"Tick"},"items":{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":1000,"minItems":1,"title":"Items"},"outcomes":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":1000},{"type":"null"}],"title":"Outcomes"}},"type":"object","required":["tick","items"],"title":"CycleIn","description":"One application cycle: an allocate request at `tick` and, optionally, its after-action truths."},"CyclesRequest":{"properties":{"cycles":{"items":{"$ref":"#/components/schemas/CycleIn"},"type":"array","maxItems":1440,"minItems":1,"title":"Cycles"},"idempotency_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","required":["cycles"],"title":"CyclesRequest","description":"SHIP-2 §12: N ordered cycles in one engine call and one signed record (every transition preserved)."},"DecideRequest":{"properties":{"candidate_text":{"type":"string","minLength":1,"title":"Candidate Text"},"action":{"type":"string","maxLength":255,"minLength":1,"title":"Action"},"actor":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Actor"},"facts_input":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Facts Input","description":"structured input for the domain policy's computed facts (amendment B, option A): named fields the policy's sealed fact functions read, e.g. {\"waypoints\": [[lat, lon], ...]}. Recorded in full on the signed record, so the computed facts can be recomputed from it."},"idempotency_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","required":["candidate_text","action"],"title":"DecideRequest"},"DeduceRequest":{"properties":{"confirm":{"anyOf":[{"type":"string","maxLength":64,"minLength":64},{"type":"null"}],"title":"Confirm"},"include_untrusted":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":512},{"type":"null"}],"title":"Include Untrusted"},"idempotency_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","title":"DeduceRequest","description":"reason.deduce: no `confirm` previews (every conclusion annotated with its premises' sources and trust);\n`confirm` = the preview's digest writes the TRUSTED conclusions of exactly that preview, plus the untrusted ones\nnamed in `include_untrusted` (never one resting on a premise with no source or a rejected premise)."},"DeduceRollbackRequest":{"properties":{"snapshot":{"type":"integer","minimum":1.0,"title":"Snapshot"},"idempotency_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","required":["snapshot"],"title":"DeduceRollbackRequest"},"DeploymentStatus":{"type":"string","enum":["creating","running","stopped","starting","stopping","deleting","failed"],"title":"DeploymentStatus"},"DeploymentWorkspaceEntryResponse":{"properties":{"name":{"type":"string","title":"Name"},"path":{"type":"string","title":"Path"},"kind":{"type":"string","enum":["file","directory"],"title":"Kind"},"size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size Bytes"},"children":{"items":{"$ref":"#/components/schemas/DeploymentWorkspaceEntryResponse"},"type":"array","title":"Children"}},"type":"object","required":["name","path","kind","size_bytes"],"title":"DeploymentWorkspaceEntryResponse"},"DesignateRequest":{"properties":{"target_file":{"type":"string","maxLength":500,"minLength":1,"title":"Target File"},"target_function":{"type":"string","maxLength":200,"minLength":1,"title":"Target Function"},"repair_kind":{"type":"string","maxLength":64,"minLength":1,"title":"Repair Kind"},"designated_files":{"items":{"type":"string"},"type":"array","maxItems":64,"minItems":1,"title":"Designated Files"},"acceptance_test_cmd":{"items":{"type":"string"},"type":"array","maxItems":32,"minItems":1,"title":"Acceptance Test Cmd"},"contract":{"items":{"$ref":"#/components/schemas/RoleReq"},"type":"array","maxItems":16,"title":"Contract"},"guard":{"additionalProperties":{"type":"string"},"type":"object","title":"Guard"},"idempotency_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","required":["target_file","target_function","repair_kind","designated_files","acceptance_test_cmd"],"title":"DesignateRequest"},"DesignationRequest":{"properties":{"surface":{"type":"string","pattern":"^allocate$","title":"Surface","default":"allocate"},"inputs":{"additionalProperties":{"type":"string"},"type":"object","maxProperties":9,"minProperties":1,"title":"Inputs"},"outputs":{"type":"string","maxLength":500,"minLength":1,"title":"Outputs"},"modification_scope":{"type":"string","maxLength":1000,"minLength":1,"title":"Modification Scope"},"intended_behaviour":{"type":"string","maxLength":2000,"minLength":1,"title":"Intended Behaviour"},"invariants":{"items":{"$ref":"#/components/schemas/Invariant"},"type":"array","maxItems":8,"title":"Invariants"},"application_identity":{"additionalProperties":{"type":"string"},"type":"object","title":"Application Identity"},"idempotency_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","required":["inputs","outputs","modification_scope","intended_behaviour"],"title":"DesignationRequest","description":"The developer designates the faculty (charter §7 condition 1): inputs (the application's mapping to the\nfaculty's vocabulary), outputs, modification scope and intended behaviour, with declared invariants."},"DiagnoseRequest":{"properties":{"idempotency_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","title":"DiagnoseRequest"},"DomainAdjudicationRequest":{"properties":{"mode":{"type":"string","enum":["verify","completion"],"title":"Mode","default":"verify"},"candidate_text":{"type":"string","minLength":1,"title":"Candidate Text"},"expectations":{"anyOf":[{"items":{"$ref":"#/components/schemas/ClaimExpectation"},"type":"array"},{"type":"null"}],"title":"Expectations"}},"type":"object","required":["candidate_text"],"title":"DomainAdjudicationRequest"},"DomainAdjudicationResponse":{"properties":{"domain_id":{"type":"integer","title":"Domain Id"},"source_ingestion_job_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Source Ingestion Job Id"},"source_tuning_run_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Source Tuning Run Id"},"mode":{"type":"string","enum":["verify","completion"],"title":"Mode"},"candidate_text":{"type":"string","title":"Candidate Text"},"result":{"additionalProperties":true,"type":"object","title":"Result"},"evidence_package_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evidence Package Id"},"evidence_package":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Evidence Package"},"policy_version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Policy Version"},"policy_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policy Hash"},"expectations":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Expectations"}},"type":"object","required":["domain_id","source_ingestion_job_id","mode","candidate_text","result"],"title":"DomainAdjudicationResponse"},"DomainAskRequest":{"properties":{"question":{"type":"string","maxLength":2000,"minLength":1,"title":"Question"},"intent":{"type":"string","enum":["explain","answer","teach","compare"],"title":"Intent","default":"explain"}},"type":"object","required":["question"],"title":"DomainAskRequest"},"DomainBindKbRequest":{"properties":{"foundational_kb_package_id":{"type":"integer","title":"Foundational Kb Package Id"}},"type":"object","required":["foundational_kb_package_id"],"title":"DomainBindKbRequest"},"DomainCreateRequest":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"description":{"type":"string","maxLength":2000,"title":"Description","default":""},"foundational_kb_package_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Foundational Kb Package Id"},"earl_engine_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Earl Engine Id"},"organization_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Organization Id"}},"type":"object","required":["name"],"title":"DomainCreateRequest"},"DomainDeploymentCreateRequest":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"description":{"type":"string","maxLength":4000,"title":"Description","default":""},"frozen_domain_package_id":{"type":"integer","title":"Frozen Domain Package Id"},"runtime_port":{"type":"integer","maximum":65535.0,"minimum":1.0,"title":"Runtime Port"}},"type":"object","required":["name","frozen_domain_package_id","runtime_port"],"title":"DomainDeploymentCreateRequest"},"DomainDeploymentResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"frozen_domain_package_id":{"type":"integer","title":"Frozen Domain Package Id"},"frozen_domain_codename":{"type":"string","title":"Frozen Domain Codename"},"frozen_domain_name":{"type":"string","title":"Frozen Domain Name"},"runtime_port":{"type":"integer","title":"Runtime Port"},"status":{"$ref":"#/components/schemas/DeploymentStatus"},"workspace_root":{"type":"string","title":"Workspace Root"},"workspace_entries":{"items":{"$ref":"#/components/schemas/DeploymentWorkspaceEntryResponse"},"type":"array","title":"Workspace Entries"},"operation_log":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Operation Log"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"substrate_identity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Substrate Identity"},"policy_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policy Hash"},"created_by_username":{"type":"string","title":"Created By Username"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","description","frozen_domain_package_id","frozen_domain_codename","frozen_domain_name","runtime_port","status","workspace_root","workspace_entries","operation_log","error_message","created_by_username","created_at","updated_at"],"title":"DomainDeploymentResponse"},"DomainDeploymentUpdateRequest":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"description":{"type":"string","maxLength":4000,"title":"Description","default":""},"runtime_port":{"type":"integer","maximum":65535.0,"minimum":1.0,"title":"Runtime Port"}},"type":"object","required":["name","runtime_port"],"title":"DomainDeploymentUpdateRequest"},"DomainPolicyResponse":{"properties":{"domain_id":{"type":"integer","title":"Domain Id"},"version":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"},"policy_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policy Hash"},"document":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Document"},"created_by_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created By Username"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["domain_id","version","policy_hash","document","created_by_username","created_at"],"title":"DomainPolicyResponse"},"DomainPolicySetRequest":{"properties":{"document":{"additionalProperties":true,"type":"object","title":"Document"}},"type":"object","required":["document"],"title":"DomainPolicySetRequest"},"DomainResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"status":{"$ref":"#/components/schemas/DomainStatus"},"created_by_username":{"type":"string","title":"Created By Username"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"organization_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Organization Id"},"organization":{"anyOf":[{"$ref":"#/components/schemas/OrganizationResponse"},{"type":"null"}]},"foundational_kb_package":{"anyOf":[{"$ref":"#/components/schemas/FoundationalKbPackageResponse"},{"type":"null"}]},"earl_engine":{"anyOf":[{"$ref":"#/components/schemas/EarlEngineResponse"},{"type":"null"}]},"language_faculty":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Language Faculty","default":false}},"type":"object","required":["id","name","description","status","created_by_username","created_at","foundational_kb_package","earl_engine"],"title":"DomainResponse"},"DomainStatus":{"type":"string","enum":["draft","archived"],"title":"DomainStatus"},"DomainTuningRunCreateRequest":{"properties":{"source_document_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Source Document Ids"}},"type":"object","title":"DomainTuningRunCreateRequest"},"DomainTuningRunResponse":{"properties":{"id":{"type":"integer","title":"Id"},"domain_id":{"type":"integer","title":"Domain Id"},"stage":{"$ref":"#/components/schemas/TuningRunStage"},"created_by_username":{"type":"string","title":"Created By Username"},"source_documents":{"items":{"$ref":"#/components/schemas/SourceDocumentResponse"},"type":"array","title":"Source Documents"},"vocab_draft":{"anyOf":[{"$ref":"#/components/schemas/VocabDraftResponse"},{"type":"null"}]},"generated_kb_package":{"anyOf":[{"$ref":"#/components/schemas/FoundationalKbPackageResponse"},{"type":"null"}]},"lesson_draft":{"anyOf":[{"$ref":"#/components/schemas/LessonDraftResponse"},{"type":"null"}]},"school_run":{"$ref":"#/components/schemas/SchoolRunStateResponse"},"training_run":{"$ref":"#/components/schemas/TrainingRunStateResponse"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","domain_id","stage","created_by_username","source_documents","vocab_draft","generated_kb_package","lesson_draft","school_run","training_run","created_at","updated_at"],"title":"DomainTuningRunResponse"},"EarlEngineInstallJobResponse":{"properties":{"id":{"type":"integer","title":"Id"},"release_tag":{"type":"string","title":"Release Tag"},"rust_target":{"type":"string","title":"Rust Target"},"asset_name":{"type":"string","title":"Asset Name"},"status":{"type":"string","enum":["queued","installing","installed","failed","cancelled"],"title":"Status"},"progress_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Progress Message"},"log":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Log"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"installed_engine_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Installed Engine Id"},"requested_by_username":{"type":"string","title":"Requested By Username"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","release_tag","rust_target","asset_name","status","progress_message","log","error_message","installed_engine_id","requested_by_username","started_at","completed_at","created_at","updated_at"],"title":"EarlEngineInstallJobResponse"},"EarlEngineInstallRequest":{"properties":{"release_tag":{"type":"string","minLength":1,"title":"Release Tag"}},"type":"object","required":["release_tag"],"title":"EarlEngineInstallRequest"},"EarlEngineResponse":{"properties":{"id":{"type":"integer","title":"Id"},"release_tag":{"type":"string","title":"Release Tag"},"rust_target":{"type":"string","title":"Rust Target"},"asset_name":{"type":"string","title":"Asset Name"},"install_root":{"type":"string","title":"Install Root"},"manifest":{"additionalProperties":true,"type":"object","title":"Manifest"},"installed_by_username":{"type":"string","title":"Installed By Username"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"retired_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Retired At"},"retired_by_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Retired By Username"},"staged_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Staged At"},"example_checks":{"items":{"$ref":"#/components/schemas/EngineExampleCheckSummaryResponse"},"type":"array","title":"Example Checks"}},"type":"object","required":["id","release_tag","rust_target","asset_name","install_root","manifest","installed_by_username","created_at","updated_at"],"title":"EarlEngineResponse"},"EarlReleaseOptionResponse":{"properties":{"tag":{"type":"string","title":"Tag"},"asset_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Asset Name"},"rust_target":{"type":"string","title":"Rust Target"},"published_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Published At"},"is_latest":{"type":"boolean","title":"Is Latest"},"test_errors":{"type":"boolean","title":"Test Errors"},"installable_for_host":{"type":"boolean","title":"Installable For Host"},"supported":{"type":"boolean","title":"Supported","default":true}},"type":"object","required":["tag","asset_name","rust_target","published_at","is_latest","test_errors","installable_for_host"],"title":"EarlReleaseOptionResponse"},"EngineAdoptRequest":{"properties":{"release_tag":{"type":"string","maxLength":255,"minLength":1,"title":"Release Tag"},"idempotency_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","required":["release_tag"],"title":"EngineAdoptRequest","description":"A1 runtime-version adoption: pin the workflow to an installed engine\nrelease; the previous binding is recorded so `rollback` can restore it.\nThis is NOT EARL-authored successor adoption (A2, mode C, M2)."},"EngineExampleCheckRequest":{"properties":{"example_slug":{"type":"string","minLength":1,"title":"Example Slug"},"foundational_kb_package_id":{"type":"integer","title":"Foundational Kb Package Id"}},"type":"object","required":["example_slug","foundational_kb_package_id"],"title":"EngineExampleCheckRequest","description":"Run a bundled example end to end on an engine and compare verdicts.\n\nThe KB package is required for the same reason instantiate requires it: the\ngrounded vocabulary a domain builds on is an operator decision."},"EngineExampleCheckResponse":{"properties":{"id":{"type":"integer","title":"Id"},"earl_engine_id":{"type":"integer","title":"Earl Engine Id"},"engine_release_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engine Release Tag"},"example_slug":{"type":"string","title":"Example Slug"},"foundational_kb_package_id":{"type":"integer","title":"Foundational Kb Package Id"},"status":{"type":"string","title":"Status"},"stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage"},"domain_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Domain Id"},"tuning_run_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tuning Run Id"},"claim_results":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Claim Results"},"summary":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Summary"},"progress_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Progress Message"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"log":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Log"},"requested_by_username":{"type":"string","title":"Requested By Username"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","earl_engine_id","example_slug","foundational_kb_package_id","status","requested_by_username","created_at","updated_at"],"title":"EngineExampleCheckResponse"},"EngineExampleCheckSummaryResponse":{"properties":{"id":{"type":"integer","title":"Id"},"example_slug":{"type":"string","title":"Example Slug"},"status":{"type":"string","title":"Status"},"stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage"},"summary":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Summary"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["id","example_slug","status"],"title":"EngineExampleCheckSummaryResponse","description":"Rollup of the latest check per example for one engine."},"EngineUpdateRequest":{"properties":{"job_id":{"type":"integer","title":"Job Id"},"status":{"$ref":"#/components/schemas/IngestionJobStatus"},"progress_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Progress Message"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"}},"type":"object","required":["job_id","status"],"title":"EngineUpdateRequest"},"EpisodeRequest":{"properties":{"purpose":{"type":"string","maxLength":500,"minLength":1,"title":"Purpose"},"amendment":{"anyOf":[{"type":"string","pattern":"^parameter-extension$"},{"type":"null"}],"title":"Amendment"},"seed_derivation":{"type":"string","enum":["identity","history"],"title":"Seed Derivation","default":"identity"},"idempotency_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","required":["purpose"],"title":"EpisodeRequest","description":"Start one governed episode under session authority. `purpose` is the developer's stated reason, recorded.\n`amendment` names a contract amendment that is in force for THIS episode only (recorded with its label)."},"EvaluateRequest":{"properties":{"candidate_text":{"type":"string","minLength":1,"title":"Candidate Text"},"mode":{"type":"string","enum":["verify","completion"],"title":"Mode","default":"verify"},"expectations":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Expectations"},"idempotency_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","required":["candidate_text"],"title":"EvaluateRequest"},"EvidencePackageSummaryResponse":{"properties":{"package_id":{"type":"string","title":"Package Id"},"domain_id":{"type":"integer","title":"Domain Id"},"deployment_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Deployment Id"},"source":{"type":"string","title":"Source"},"mode":{"type":"string","title":"Mode"},"candidate_text":{"type":"string","title":"Candidate Text"},"claims_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Claims Total"},"substrate_identity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Substrate Identity"},"policy_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policy Hash"},"policy_summary":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Policy Summary"},"key_id":{"type":"string","title":"Key Id"},"created_by_username":{"type":"string","title":"Created By Username"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["package_id","domain_id","deployment_id","source","mode","candidate_text","claims_total","substrate_identity","policy_hash","policy_summary","key_id","created_by_username","created_at"],"title":"EvidencePackageSummaryResponse"},"EvidencePackageVerifyRequest":{"properties":{"package":{"additionalProperties":true,"type":"object","title":"Package"}},"type":"object","required":["package"],"title":"EvidencePackageVerifyRequest"},"ExampleInstantiateRequest":{"properties":{"foundational_kb_package_id":{"type":"integer","title":"Foundational Kb Package Id"},"earl_engine_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Earl Engine Id"},"domain_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Domain Name"}},"type":"object","required":["foundational_kb_package_id"],"title":"ExampleInstantiateRequest","description":"Seed a domain from a bundled example.\n\nThe KB package is required rather than guessed: which grounded vocabulary a\ndomain is built on is an operator decision, and picking one silently would\nhide it."},"ExploreRequest":{"properties":{"idempotency_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","title":"ExploreRequest"},"ForgetWordRequest":{"properties":{"word":{"type":"string","maxLength":128,"minLength":1,"title":"Word"},"reason":{"type":"string","maxLength":500,"minLength":3,"title":"Reason"},"idempotency_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","required":["word","reason"],"title":"ForgetWordRequest","description":"rc32: remove a self-trained word from a workflow's vocabulary."},"FoundationalKbPackageResponse":{"properties":{"id":{"type":"integer","title":"Id"},"codename":{"type":"string","title":"Codename"},"fingerprint":{"type":"string","title":"Fingerprint"},"status":{"$ref":"#/components/schemas/FoundationalKbPackageStatus"},"package_metadata":{"additionalProperties":true,"type":"object","title":"Package Metadata"},"uploaded_by_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uploaded By Username"},"approved_by_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approved By Username"},"approved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Approved At"},"decided_by_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decided By Username"},"decided_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Decided At"},"decision_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decision Reason"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","codename","fingerprint","status","package_metadata","uploaded_by_username","approved_by_username","approved_at","decided_by_username","decided_at","decision_reason","created_at"],"title":"FoundationalKbPackageResponse"},"FoundationalKbPackageStatus":{"type":"string","enum":["uploaded","approved","rejected","revoked"],"title":"FoundationalKbPackageStatus","description":"Review lifecycle of a foundational KB package.\n\n``uploaded`` is the only state from which a package can be approved or\nrejected; ``approved`` is the only state from which it can be revoked.\n``rejected`` and ``revoked`` are terminal. Only ``approved`` packages are\nbindable by a domain or visible to non-super-admins."},"FreezeDomainRequest":{"properties":{"codename":{"type":"string","maxLength":255,"minLength":1,"title":"Codename"},"description":{"type":"string","maxLength":4000,"title":"Description","default":""},"runtime_port":{"type":"integer","maximum":65535.0,"minimum":1.0,"title":"Runtime Port","default":8080}},"type":"object","required":["codename"],"title":"FreezeDomainRequest"},"FrozenDomainPackageResponse":{"properties":{"id":{"type":"integer","title":"Id"},"domain_id":{"type":"integer","title":"Domain Id"},"tuning_run_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tuning Run Id"},"codename":{"type":"string","title":"Codename"},"description":{"type":"string","title":"Description"},"runtime_port":{"type":"integer","title":"Runtime Port"},"domain_name":{"type":"string","title":"Domain Name"},"status":{"$ref":"#/components/schemas/FrozenDomainPackageStatus"},"artifact_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Artifact Path"},"substrate_identity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Substrate Identity"},"policy_hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policy Hash"},"identity_record":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Identity Record"},"created_by_username":{"type":"string","title":"Created By Username"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","domain_id","tuning_run_id","codename","description","runtime_port","domain_name","status","artifact_path","created_by_username","created_at"],"title":"FrozenDomainPackageResponse"},"FrozenDomainPackageStatus":{"type":"string","enum":["ready","archived"],"title":"FrozenDomainPackageStatus"},"GenerationStatusResponse":{"properties":{"configured":{"type":"boolean","title":"Configured"},"missing":{"items":{"type":"string"},"type":"array","title":"Missing"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model"},"base_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Url"},"message":{"type":"string","title":"Message"}},"type":"object","required":["configured","missing","model","base_url","message"],"title":"GenerationStatusResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"IdentityRequest":{"properties":{"reason":{"type":"string","maxLength":1000,"minLength":3,"title":"Reason"},"idempotency_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","required":["reason"],"title":"IdentityRequest"},"IngestionJobResponse":{"properties":{"id":{"type":"integer","title":"Id"},"domain_id":{"type":"integer","title":"Domain Id"},"status":{"$ref":"#/components/schemas/IngestionJobStatus"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"},"progress_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Progress Message"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"submitted_by_username":{"type":"string","title":"Submitted By Username"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","domain_id","status","payload","progress_message","error_message","submitted_by_username","started_at","completed_at","created_at"],"title":"IngestionJobResponse"},"IngestionJobStatus":{"type":"string","enum":["queued","running","succeeded","failed"],"title":"IngestionJobStatus"},"Invariant":{"properties":{"input":{"type":"string","maxLength":64,"minLength":1,"title":"Input"},"direction":{"type":"string","pattern":"^(asc|desc)$","title":"Direction","default":"asc"}},"type":"object","required":["input"],"title":"Invariant","description":"A property of the intended behaviour the developer declares: with every other observation identical, a\nlarger `input` must (`direction` = \"asc\") or must not (\"desc\") come earlier in the order."},"KbGenerationJobCreateRequest":{"properties":{"codename":{"type":"string","maxLength":255,"minLength":1,"title":"Codename"},"description":{"type":"string","maxLength":2000,"title":"Description","default":""},"source_package_id":{"type":"integer","title":"Source Package Id"},"spec":{"additionalProperties":true,"type":"object","title":"Spec"}},"type":"object","required":["codename","source_package_id","spec"],"title":"KbGenerationJobCreateRequest","description":"Request a KB package built from a declarative vocabulary spec.\n\n`spec` is data, never code: it is validated and handed to inject_vocab as\nJSON. The Python-vocab-module input executes on import and is deliberately\nunreachable from the API."},"KbGenerationJobResponse":{"properties":{"id":{"type":"integer","title":"Id"},"status":{"$ref":"#/components/schemas/KbGenerationJobStatus"},"codename":{"type":"string","title":"Codename"},"description":{"type":"string","title":"Description"},"source_package_id":{"type":"integer","title":"Source Package Id"},"result_package_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Result Package Id"},"progress_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Progress Message"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"submitted_by_username":{"type":"string","title":"Submitted By Username"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","status","codename","description","source_package_id","result_package_id","progress_message","error_message","submitted_by_username","started_at","completed_at","created_at"],"title":"KbGenerationJobResponse"},"KbGenerationJobStatus":{"type":"string","enum":["queued","running","succeeded","failed"],"title":"KbGenerationJobStatus"},"KbPackageDecisionRequest":{"properties":{"reason":{"type":"string","maxLength":2000,"minLength":1,"title":"Reason"}},"type":"object","required":["reason"],"title":"KbPackageDecisionRequest","description":"Body for reject/revoke. A reason is mandatory: these are terminal\nstates, and a package withdrawn without a recorded rationale is not\nauditable."},"LanguageFacultyRequest":{"properties":{"enabled":{"type":"boolean","title":"Enabled"}},"type":"object","required":["enabled"],"title":"LanguageFacultyRequest"},"LearningControlsRequest":{"properties":{"self_training":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Self Training"},"outcome_learning":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Outcome Learning"},"deduction":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Deduction"},"reason":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}],"title":"Reason"},"idempotency_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","title":"LearningControlsRequest","description":"rc27: switch the workflow's runtime learning paths. A field left out keeps its value."},"LessonDraftResponse":{"properties":{"id":{"type":"integer","title":"Id"},"status":{"$ref":"#/components/schemas/LessonDraftStatus"},"curriculum_json":{"$ref":"#/components/schemas/CurriculumJsonResponse"},"validation_warnings":{"items":{"type":"string"},"type":"array","title":"Validation Warnings"},"raw_llm_response":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Raw Llm Response"},"generation_log":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Generation Log"},"approved_by_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approved By Username"},"approved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Approved At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","status","curriculum_json","raw_llm_response","approved_by_username","approved_at","created_at","updated_at"],"title":"LessonDraftResponse"},"LessonDraftStatus":{"type":"string","enum":["proposed","approved"],"title":"LessonDraftStatus"},"LessonDraftUpdateRequest":{"properties":{"curriculum_json":{"$ref":"#/components/schemas/CurriculumJsonResponse"}},"type":"object","required":["curriculum_json"],"title":"LessonDraftUpdateRequest"},"LessonFeedbackRegenerateRequest":{"properties":{"lesson_id":{"type":"string","minLength":1,"title":"Lesson Id"},"feedback":{"type":"string","minLength":1,"title":"Feedback"}},"type":"object","required":["lesson_id","feedback"],"title":"LessonFeedbackRegenerateRequest"},"LoginRequest":{"properties":{"username":{"type":"string","title":"Username"},"password":{"type":"string","title":"Password"}},"type":"object","required":["username","password"],"title":"LoginRequest"},"MissionDeploymentAuthorizers":{"properties":{"authorizers":{"items":{"$ref":"#/components/schemas/Authorizer"},"type":"array","maxItems":64,"title":"Authorizers"}},"type":"object","title":"MissionDeploymentAuthorizers"},"MissionDeploymentCreate":{"properties":{"authorizers":{"items":{"$ref":"#/components/schemas/Authorizer"},"type":"array","maxItems":64,"title":"Authorizers"}},"type":"object","title":"MissionDeploymentCreate"},"MissionProposeRequest":{"properties":{"payload":{"type":"string","minLength":1,"title":"Payload","description":"the proposal in its own protocol (a Cursor-on-Target event or a QGroundControl .plan)"},"content_type":{"type":"string","maxLength":128,"title":"Content Type","default":"application/xml"},"idempotency_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","required":["payload"],"title":"MissionProposeRequest"},"MissionResolveRequest":{"properties":{"reviewer":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Reviewer","description":"optional; a review is ALWAYS resolved as the signed-in account (its username is what the gateway checks and what goes on the record). If given, it must equal that username, or the attempt is refused on record"},"resolution":{"type":"string","enum":["approve","deny"],"title":"Resolution"},"note":{"type":"string","maxLength":2000,"title":"Note","default":""},"idempotency_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","required":["resolution"],"title":"MissionResolveRequest"},"ObserveRequest":{"properties":{"idempotency_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","title":"ObserveRequest"},"OrganizationCreateRequest":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"description":{"type":"string","maxLength":4000,"title":"Description","default":""}},"type":"object","required":["name"],"title":"OrganizationCreateRequest"},"OrganizationResponse":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"description":{"type":"string","title":"Description"},"created_by_username":{"type":"string","title":"Created By Username"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","slug","description","created_by_username","created_at"],"title":"OrganizationResponse"},"OutcomeReportRequest":{"properties":{"record_id":{"type":"string","maxLength":64,"minLength":8,"title":"Record Id"},"succeeded":{"type":"boolean","title":"Succeeded"},"confidence":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Confidence","default":1.0},"tokens":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":64},{"type":"null"}],"title":"Tokens"},"idempotency_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","required":["record_id","succeeded"],"title":"OutcomeReportRequest","description":"rc27 learning.outcome: what happened after an earlier result of this workflow (named by its record id)."},"OutcomesRequest":{"properties":{"tick":{"type":"integer","minimum":0.0,"title":"Tick"},"outcomes":{"items":{"additionalProperties":true,"type":"object"},"type":"array","maxItems":1000,"minItems":1,"title":"Outcomes"},"idempotency_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","required":["tick","outcomes"],"title":"OutcomesRequest","description":"SHIP-2 goals.allocate (contract §5): after-action truths for the request at `tick`."},"PremiseVerdictRequest":{"properties":{"proposition":{"type":"string","maxLength":500,"minLength":3,"title":"Proposition"},"verdict":{"type":"string","enum":["verified","rejected"],"title":"Verdict"},"reason":{"type":"string","maxLength":2000,"minLength":3,"title":"Reason"},"idempotency_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","required":["proposition","verdict","reason"],"title":"PremiseVerdictRequest","description":"An operator's verdict on a held premise: verified (conclusions resting on it may be trusted) or rejected."},"PropositionActionRequest":{"properties":{"proposition":{"type":"string","maxLength":300,"minLength":3,"title":"Proposition"},"reason":{"type":"string","maxLength":1000,"minLength":3,"title":"Reason"},"idempotency_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","required":["proposition","reason"],"title":"PropositionActionRequest"},"RecordRead":{"properties":{"record_id":{"type":"string","title":"Record Id"},"workflow_id":{"type":"integer","title":"Workflow Id"},"sequence":{"type":"integer","title":"Sequence"},"operation":{"type":"string","title":"Operation"},"capability":{"type":"string","title":"Capability"},"outcome_class":{"type":"string","title":"Outcome Class"},"idempotency_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idempotency Key"},"evidence_package_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evidence Package Id"},"replay_of":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Replay Of"},"request":{"additionalProperties":true,"type":"object","title":"Request"},"result":{"additionalProperties":true,"type":"object","title":"Result"},"identity":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Identity"},"error":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Error"},"signed_record":{"additionalProperties":true,"type":"object","title":"Signed Record"},"created_by_username":{"type":"string","title":"Created By Username"}},"type":"object","required":["record_id","workflow_id","sequence","operation","capability","outcome_class","idempotency_key","evidence_package_id","replay_of","request","result","identity","error","signed_record","created_by_username"],"title":"RecordRead"},"RejectRequest":{"properties":{"episode_record_id":{"type":"string","maxLength":64,"minLength":8,"title":"Episode Record Id"},"reason":{"type":"string","maxLength":500,"minLength":1,"title":"Reason"}},"type":"object","required":["episode_record_id","reason"],"title":"RejectRequest","description":"The developer's decision not to adopt: recorded, with the reason."},"ReplayResponse":{"properties":{"original_package_id":{"type":"string","title":"Original Package Id"},"replay_package_id":{"type":"string","title":"Replay Package Id"},"source":{"type":"string","title":"Source"},"comparison":{"additionalProperties":true,"type":"object","title":"Comparison"},"replay":{"additionalProperties":true,"type":"object","title":"Replay"}},"type":"object","required":["original_package_id","replay_package_id","source","comparison","replay"],"title":"ReplayResponse"},"RoleProbeResponse":{"properties":{"message":{"type":"string","title":"Message"},"actor":{"type":"string","title":"Actor"},"role":{"$ref":"#/components/schemas/UserRole"}},"type":"object","required":["message","actor","role"],"title":"RoleProbeResponse"},"RoleReq":{"properties":{"role":{"type":"string","maxLength":64,"minLength":1,"title":"Role"},"kind":{"type":"string","pattern":"^(comparison|arithmetic)$","title":"Kind"},"required_meaning":{"type":"string","maxLength":64,"minLength":1,"title":"Required Meaning"}},"type":"object","required":["role","kind","required_meaning"],"title":"RoleReq"},"SchoolAcceptanceRequest":{"properties":{"accepted":{"type":"boolean","title":"Accepted","default":true},"accept_unmastered":{"type":"boolean","title":"Accept Unmastered","default":false},"reason":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Reason"}},"type":"object","title":"SchoolAcceptanceRequest"},"SchoolRunStateResponse":{"properties":{"summary":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Summary"},"workspace_root":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Root"},"curriculum_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Curriculum Path"},"checkpoint_dir":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checkpoint Dir"},"progress_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Progress Message"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"log":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Log"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"accepted_by_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accepted By Username"},"accepted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Accepted At"},"engine":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Engine"}},"type":"object","required":["workspace_root","curriculum_path","checkpoint_dir","progress_message","error_message","log","started_at","completed_at"],"title":"SchoolRunStateResponse"},"SchoolStartRequest":{"properties":{"accept_ungrounded":{"type":"boolean","title":"Accept Ungrounded","default":false},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","title":"SchoolStartRequest","description":"SHIP-1 Track B: the school refuses a curriculum the vocabulary cannot ground\nunless the caller overrides explicitly, with a reason that is logged (the F19\npattern for an unmastered school)."},"SourceDocumentContentResponse":{"properties":{"id":{"type":"integer","title":"Id"},"domain_id":{"type":"integer","title":"Domain Id"},"filename":{"type":"string","title":"Filename"},"media_type":{"type":"string","title":"Media Type"},"content":{"type":"string","title":"Content"}},"type":"object","required":["id","domain_id","filename","media_type","content"],"title":"SourceDocumentContentResponse"},"SourceDocumentResponse":{"properties":{"id":{"type":"integer","title":"Id"},"domain_id":{"type":"integer","title":"Domain Id"},"filename":{"type":"string","title":"Filename"},"media_type":{"type":"string","title":"Media Type"},"size_bytes":{"type":"integer","title":"Size Bytes"},"original_filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Filename"},"original_media_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Original Media Type"},"conversion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversion"},"uploaded_by_username":{"type":"string","title":"Uploaded By Username"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"corpus_warnings":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Corpus Warnings","default":[]}},"type":"object","required":["id","domain_id","filename","media_type","size_bytes","uploaded_by_username","created_at"],"title":"SourceDocumentResponse"},"SubmitRequest":{"properties":{"text":{"type":"string","minLength":1,"title":"Text"},"idempotency_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency Key"},"tag":{"type":"string","maxLength":64,"title":"Tag","default":"developer"}},"type":"object","required":["text"],"title":"SubmitRequest"},"SuccessorAdoptRequest":{"properties":{"release_tag":{"type":"string","maxLength":255,"minLength":1,"title":"Release Tag"},"evaluation_record_id":{"type":"string","maxLength":64,"minLength":8,"title":"Evaluation Record Id"},"confirm":{"type":"boolean","title":"Confirm","default":false},"idempotency_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","required":["release_tag","evaluation_record_id"],"title":"SuccessorAdoptRequest","description":"Authority action: adopt the candidate evaluated by `evaluation_record_id`. `confirm` must be true."},"SuccessorEvaluateRequest":{"properties":{"release_tag":{"type":"string","maxLength":255,"minLength":1,"title":"Release Tag"},"probes":{"items":{"type":"string"},"type":"array","maxItems":8,"title":"Probes"},"idempotency_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","required":["release_tag"],"title":"SuccessorEvaluateRequest","description":"Contained successor evaluation (SHIP-1 Track E): the candidate is an installed engine\nrelease; it runs over a COPY of this workflow's runtime image and never the live one."},"SurfaceRegisterRequest":{"properties":{"surface_url":{"type":"string","maxLength":512,"minLength":8,"title":"Surface Url"},"budget_total":{"type":"integer","maximum":100000.0,"minimum":1.0,"title":"Budget Total","description":"interventions this workflow may spend on the surface, in total"},"admission":{"type":"string","enum":["reviewer","automatic"],"title":"Admission","default":"reviewer"},"sandbox_attested":{"type":"boolean","title":"Sandbox Attested"},"all_components_settable_attested":{"type":"boolean","title":"All Components Settable Attested"},"reason":{"type":"string","maxLength":1000,"minLength":3,"title":"Reason"},"idempotency_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","required":["surface_url","budget_total","sandbox_attested","all_components_settable_attested","reason"],"title":"SurfaceRegisterRequest"},"TextDocumentUpload":{"properties":{"filename":{"type":"string","maxLength":255,"minLength":1,"title":"Filename"},"text":{"type":"string","minLength":1,"title":"Text"}},"type":"object","required":["filename","text"],"title":"TextDocumentUpload","description":"A corpus document sent as text (the SDK's path; a file upload is the console's)."},"TextRequest":{"properties":{"text":{"type":"string","minLength":1,"title":"Text"},"idempotency_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","required":["text"],"title":"TextRequest"},"TickRequest":{"properties":{"n":{"type":"integer","maximum":1000.0,"minimum":1.0,"title":"N","default":1},"idempotency_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","title":"TickRequest"},"TokenResponse":{"properties":{"access_token":{"type":"string","title":"Access Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"},"expires_in":{"type":"integer","title":"Expires In"},"role":{"$ref":"#/components/schemas/UserRole"}},"type":"object","required":["access_token","expires_in","role"],"title":"TokenResponse"},"TrainingRunStateResponse":{"properties":{"workspace_root":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Workspace Root"},"corpus_dir":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Corpus Dir"},"checkpoint_dir":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checkpoint Dir"},"progress_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Progress Message"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"log":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Log"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"engine":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Engine"}},"type":"object","required":["workspace_root","corpus_dir","checkpoint_dir","progress_message","error_message","log","started_at","completed_at"],"title":"TrainingRunStateResponse"},"TuningRunStage":{"type":"string","enum":["corpus_ready","vocab_generated","vocab_approved","lessons_generated","lessons_approved","school_queued","school_running","school_succeeded","school_failed","school_accepted","training_queued","training_running","training_succeeded","training_failed","validation_ready","recommendations_ready"],"title":"TuningRunStage"},"UserCreateRequest":{"properties":{"username":{"type":"string","maxLength":255,"minLength":2,"title":"Username"},"password":{"type":"string","maxLength":512,"minLength":12,"title":"Password"},"role":{"$ref":"#/components/schemas/UserRole","default":"user"},"organization_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Organization Id"}},"type":"object","required":["username","password"],"title":"UserCreateRequest"},"UserResponse":{"properties":{"id":{"type":"integer","title":"Id"},"username":{"type":"string","title":"Username"},"role":{"$ref":"#/components/schemas/UserRole"},"is_active":{"type":"boolean","title":"Is Active"},"organization_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Organization Id"},"organization":{"anyOf":[{"$ref":"#/components/schemas/OrganizationResponse"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","username","role","is_active","created_at"],"title":"UserResponse"},"UserRole":{"type":"string","enum":["super_admin","user","auditor"],"title":"UserRole"},"UserUpdateRequest":{"properties":{"role":{"anyOf":[{"$ref":"#/components/schemas/UserRole"},{"type":"null"}]},"organization_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Organization Id"},"clear_organization":{"type":"boolean","title":"Clear Organization","default":false},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"password":{"anyOf":[{"type":"string","maxLength":512,"minLength":12},{"type":"null"}],"title":"Password"}},"type":"object","title":"UserUpdateRequest"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VocabDraftResponse":{"properties":{"id":{"type":"integer","title":"Id"},"status":{"$ref":"#/components/schemas/VocabDraftStatus"},"module_text":{"type":"string","title":"Module Text"},"validation_summary":{"$ref":"#/components/schemas/VocabDraftValidationResponse"},"raw_llm_response":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Raw Llm Response"},"generation_log":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Generation Log"},"approved_by_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Approved By Username"},"approved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Approved At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","status","module_text","validation_summary","raw_llm_response","approved_by_username","approved_at","created_at","updated_at"],"title":"VocabDraftResponse"},"VocabDraftStatus":{"type":"string","enum":["proposed","approved"],"title":"VocabDraftStatus"},"VocabDraftUpdateRequest":{"properties":{"module_text":{"type":"string","minLength":1,"title":"Module Text"}},"type":"object","required":["module_text"],"title":"VocabDraftUpdateRequest"},"VocabDraftValidationResponse":{"properties":{"syntax_ok":{"type":"boolean","title":"Syntax Ok"},"contract_ok":{"type":"boolean","title":"Contract Ok"},"errors":{"items":{"type":"string"},"type":"array","title":"Errors"},"warnings":{"items":{"type":"string"},"type":"array","title":"Warnings"}},"type":"object","required":["syntax_ok","contract_ok"],"title":"VocabDraftValidationResponse"},"VocabGenerationRequest":{"properties":{"prompt_addendum":{"anyOf":[{"type":"string","maxLength":8000},{"type":"null"}],"title":"Prompt Addendum"}},"type":"object","title":"VocabGenerationRequest"},"WorkflowCreate":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"domain_id":{"type":"integer","title":"Domain Id"}},"type":"object","required":["name","domain_id"],"title":"WorkflowCreate"},"WorkflowRead":{"properties":{"id":{"type":"integer","title":"Id"},"name":{"type":"string","title":"Name"},"organization_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Organization Id"},"domain_id":{"type":"integer","title":"Domain Id"},"tuning_run_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tuning Run Id"},"engine_release_tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engine Release Tag"},"state":{"type":"string","title":"State"},"substrate_identity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Substrate Identity"},"runtime_identity":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Runtime Identity"},"last_sequence":{"type":"integer","title":"Last Sequence"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"created_by_username":{"type":"string","title":"Created By Username"},"learning_controls":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Learning Controls"}},"type":"object","required":["id","name","organization_id","domain_id","tuning_run_id","engine_release_tag","state","substrate_identity","runtime_identity","last_sequence","error_message","created_by_username"],"title":"WorkflowRead"},"earl_platform_backend__development_api__AdoptRequest":{"properties":{"episode_record_id":{"type":"string","maxLength":64,"minLength":8,"title":"Episode Record Id"},"confirm":{"type":"boolean","title":"Confirm","default":false},"preservation_rule":{"type":"string","enum":["all_cases_pass","fix_one_break_none"],"title":"Preservation Rule","default":"all_cases_pass"},"idempotency_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","required":["episode_record_id"],"title":"AdoptRequest","description":"Authority action: adopt the successor the episode `episode_record_id` qualified. `confirm` must be true."},"earl_platform_backend__repair_api__AdoptRequest":{"properties":{"proposal_record_id":{"type":"string","maxLength":64,"minLength":8,"title":"Proposal Record Id"},"confirm":{"type":"boolean","title":"Confirm","default":false},"idempotency_key":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Idempotency Key"}},"type":"object","required":["proposal_record_id"],"title":"AdoptRequest"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}}}