ck_review_submit
Submit a plan, diff, or completion packet for human review and execution gating. Creates a review record with status pending and a URL for approval.
Instructions
Submit a governed plan, diff, or completion packet for human review and execution gating. Write operation — creates a review record and returns a review_id and browser URL. review_type controls what is being submitted: plan (before implementation), diff (before merging), or completion (task done). submission_body is the full content: plan text, diff, or completion description. For iterative plan refinement, pass previous_review_id and plan_phase (ticket → research_packet → design_options → narrowed_decision → implementation_plan → code_backed_plan). The plan-quality scorer evaluates structured fields, not just submission_body — populate research_summary, options_considered, selected_option, rejected_options, implementation_steps, validation_plan, code_snippets, alignment_context, consulted_roles, codebase_findings, prior_art_summary, agent_spec_id, task_spec_id, agent_role, task_scope, out_of_scope, business_rules, domain_terms, allowed_actions, prohibited_actions, robustness_requirements, linked_policy_packs, linked_benchmark_suites, promotion_gates, allowed_semantic_changes, forbidden_semantic_changes, invariant_boundaries, requires_reapproval_if, harness_quality_checks, and scope_estimate for a strong score. Returns review_id, status (pending), and a URL where the human reviewer can approve or deny. After submission, poll ck_review_status until the decision is approved or denied before proceeding. Use ck_review_feedback (human-facing) to record a decision on an existing review.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| selected_option | No | The chosen approach with rationale. | |
| title | No | Human-readable title for display and search. | |
| domain_terms | No | ||
| invariant_boundaries | No | System invariants and boundaries that must remain true during execution. | |
| plan_phase | No | Current phase of plan refinement. | |
| review_type | No | Type of review being submitted or queried (plan, diff, or completion). | |
| business_rules | No | ||
| validation_plan | No | ||
| task_spec_id | No | Stable identifier for the task-level behavior contract this plan is implementing. | |
| prohibited_actions | No | ||
| linked_policy_packs | No | ||
| consulted_roles | No | ||
| requires_reapproval_if | No | Conditions that require human re-approval before continuing. | |
| forbidden_semantic_changes | No | Semantic behavior changes the agent must not introduce without a new review. | |
| options_considered | No | ||
| linked_benchmark_suites | No | ||
| out_of_scope | No | ||
| task_scope | No | What the agent or task is expected to accomplish under this plan. | |
| rejected_options | No | ||
| task_id | No | Task identifier within the session for scoped operations. | |
| submission_body | Yes | Full submission content: plan text, diff, or completion description. | |
| scope_estimate | No | ||
| research_summary | No | Summary of research performed before this submission. | |
| harness_quality_checks | No | Agent-harness quality checks such as context hygiene, proof completeness, rollback safety, and compaction fidelity. | |
| robustness_requirements | No | ||
| persona_or_actor_context | No | User role, customer tier, permission state, or operating context relevant to behavior. | |
| previous_review_id | No | Reference to a prior review for iterative refinement. | |
| prior_art_summary | No | Summary of prior attempts or related work. | |
| feedback_notes | No | Freeform feedback notes from the reviewer. | |
| session_id | No | Unique session identifier for correlating findings, proofs, budget, and audit trail. | |
| agent_role | No | Reviewed role label such as support agent, code reviewer, deployment agent, or sales assistant. | |
| agent_spec_id | No | Stable identifier for the agent role or task contract this plan is implementing. | |
| submitted_by | No | Identity of the submitter for audit trail. | |
| codebase_findings | No | ||
| alignment_context | No | ||
| promotion_gates | No | ||
| metadata | No | Arbitrary key-value metadata for extensibility and audit context. | |
| implementation_steps | No | ||
| allowed_actions | No | ||
| code_snippets | No | ||
| annotations | No | Structured key-value annotations for machine-readable metadata. | |
| allowed_semantic_changes | No | Semantic behavior changes explicitly approved for this plan. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| review_id | No | ||
| review_url | No | ||
| status | No | ||
| title | No |