{"envelope":{"required":["project_slug","idempotency_key","reason","command"],"properties":{"project_slug":{"pattern":"^[a-z][a-z0-9_.-]*$","type":"string"},"idempotency_key":{"maxLength":200,"minLength":1,"pattern":"^[a-zA-Z0-9_.-]+$","type":"string"},"reason":{"minLength":1,"type":"string"},"expected_version":{"default":0,"description":"Current version of the mutable record the command changes (0 for a new record). Not a content revision. Model and architecture content commands compare base_revision instead and leave this 0","minimum":0,"type":"integer"},"causes":{"items":{"type":"integer"},"maxItems":100,"type":"array"},"dry_run":{"default":false,"description":"Run every admission check and return the would-be result without committing, consuming the idempotency key or writing the ledger","type":"boolean"}}},"commands":[{"type":"accept_run","summary":"Accept a run's deliverable after inspection with the user.","required":["run_id","results","evidence","decision"]},{"type":"claim_next_work","summary":"Atomically claim the next eligible system assignment of a run.","required":["run_id"]},{"type":"create_architecture_variant","summary":"Create a named architecture variant within a spec variant.","required":["id","name","spec_variant"]},{"type":"lookup_context","summary":"Record an additional context lookup at an exact revision during a claim.","required":["id","claim_id","design_ids"]},{"type":"patch_architecture","summary":"Apply targeted operations to the head architecture; the whole result is validated and saved.","required":["architecture_variant","base_revision","operations"]},{"type":"patch_model","summary":"Apply targeted operations to the head model; the whole result is validated and saved.","required":["spec_variant","base_revision","operations"]},{"type":"record_scenario","summary":"Record one scenario execution with its exchanges and retained trace.","required":["id","run_id","scenario","outcome","code_evidence","data_evidence","trace_evidence","exchanges","observations"]},{"type":"register_evidence","summary":"Retain a construction artifact body, or record an unverified external locator.","required":["id","content_hash"]},{"type":"rename_variant","summary":"Rename a spec or architecture variant; its stable id is unchanged.","required":["layer","id","name"]},{"type":"report_system","summary":"Report a claimed system's state, results, feedback and child instructions.","required":["id","run_id","system","claim_id","token","generation","transition","summary","evidence"]},{"type":"resolve_design_pause","summary":"Record the user's resolution of a run's design pause.","required":["run_id","decision","assessment","evidence"]},{"type":"route_design_issue","summary":"Route a child's design issue upward to its parent or to the user.","required":["issue_id","system","explanation","evidence"]},{"type":"save_architecture","summary":"Save a whole Architecture as the variant's next revision.","required":["architecture_variant","base_revision","spec_revision","model_revision","content"]},{"type":"save_model","summary":"Save a whole Data Model as the spec variant's next model revision.","required":["spec_variant","base_revision","spec_revision","content"]},{"type":"start_run","summary":"Start a mock or product run pinned to exact spec, model and architecture revisions.","required":["id","spec_variant","architecture_variant","spec_revision","model_revision","architecture_revision","deliverable","scenarios","plan","assessment"]}],"detail":"Pass command=<type> for that command's complete JSON Schema."}