RQ Controller State Contract Cutover
Status: Complete (closed 2026-04-11 00:18 UTC) Timezone: UTC (all dates/times in this package documentation use UTC unless explicitly stated otherwise).
Overview
This package closes the controller-state rollout by freezing contract + implementation alignment after packages 1-7. It reconciles remaining cutover decisions, finalizes inventory/checklist artifacts and OpenAPI contract guards, and ensures route/descriptor/docs behavior is auditable and internally consistent for agent-first execution.
Objectives
- Complete contract-freeze reconciliation across schema docs, route contract checklist, endpoint inventory freeze, and OpenAPI guard tests.
- Resolve the explicit cutover policy decision for the least-privilege auth bridge (
rq:statusbearer -> broader minted session scopes). - Disposition row 6-7 watch-list items with explicit outcomes (resolved change or accepted risk with ownership).
- Ensure package 1-7 verification evidence is complete, normalized, and discoverable for audit.
- Close package 8 with required code, QA, and security review gates and no unresolved medium/high findings.
Scope
This package delivers final cutover reconciliation and evidence hardening only; it is not a broad new feature package.
Included
- Contract cutover updates in:
docs/schemas/rq-controller-state-contract.mddocs/schemas/rq-engine-agent-api-contract.mddocs/dev-notes/rq-engine-agent-api.md(pointer/handoff parity as needed)
- Freeze/checklist and guard reconciliation in:
docs/work-packages/20260208_rq_engine_agent_usability/artifacts/endpoint_inventory_freeze_20260208.mddocs/work-packages/20260208_rq_engine_agent_usability/artifacts/route_contract_checklist_20260208.mdtools/rq_engine_contract_rules.pytests/microservices/test_rq_engine_openapi_contract.py
- Final lifecycle normalization for row 8 cutover evidence in package/tracker docs and
PROJECT_TRACKER.md.
Explicitly Out of Scope
- New controller-state endpoint feature expansion beyond finalized contract surfaces.
- Broad refactors unrelated to contract freeze/cutover parity.
- Post-cutover roadmap work not required to satisfy row-8 exit criteria.
Stakeholders
- Primary: rq-engine maintainers and agent-interface implementers.
- Reviewers: API contract/schema maintainers.
- Security Reviewer: independent security subagent review required by package gate.
- Informed: package owners for rows 1-7 and downstream agents consuming the frozen contract.
Success Criteria
- Row-8 cutover exit criteria in
rq-controller-state-contract.mdare fully satisfied and evidenced in tracker notes. - OpenAPI contract test + freeze/checklist guard commands pass after cutover edits.
- Auth least-privilege bridge cutover decision is explicit, documented, and reflected consistently across contract/docs/metadata.
- Row 6-7 watch-list items are dispositioned (resolved or accepted risk) with rationale and ownership.
- Required validation and independent review phases complete with no unresolved medium/high findings.
Dependencies
Prerequisites
docs/work-packages/20260410_rq_controller_state_setup_discovery/(complete)docs/work-packages/20260410_rq_controller_state_orchestration_reads/(complete)docs/work-packages/20260410_rq_controller_state_schema_defaults/(complete)docs/work-packages/20260410_rq_controller_state_geospatial_uploads/(complete)docs/work-packages/20260410_rq_controller_state_errors_progress_outputs/(complete)docs/work-packages/20260410_rq_controller_state_auth_concurrency/(complete)- Canonical route artifacts:
docs/work-packages/20260208_rq_engine_agent_usability/artifacts/endpoint_inventory_freeze_20260208.mddocs/work-packages/20260208_rq_engine_agent_usability/artifacts/route_contract_checklist_20260208.md
Blocks
- Contract freeze publication and downstream “cutover complete” declaration for controller-state agent surfaces.
Related Packages
- Depends on:
- Related: 20260208_rq_engine_agent_usability
- Follow-up:
- Any post-cutover optimization package(s) explicitly spawned from accepted residual risks.
Timeline Estimate
- Expected duration: 1 focused session
- Complexity: Medium
- Risk level: High
Security Impact and Review Gate
- Security impact triage:
high - Dedicated security review required:
yes - Triage rationale: Cutover includes auth-scope policy decisions and publication of final agent-facing contract boundaries.
- Security review artifact:
docs/work-packages/20260410_rq_controller_state_contract_cutover/artifacts/2026-04-10_security_review.md
Required Validation Gates
Code Gate
- Reconcile cutover contract/docs/guard artifacts and update affected tests/checks.
- Required commands:
wctl run-pytest tests/microservices/test_rq_engine_openapi_contract.py --maxfail=1python tools/check_endpoint_inventory.pypython tools/check_route_contract_checklist.pywctl run-pytest tests/tools/test_endpoint_inventory_guard.py tests/tools/test_route_contract_checklist_guard.py --maxfail=1
Review Phases
- Phase 1 - Contract Review (
reviewer)- Validate contract/roadmap/cutover semantics and package evidence alignment.
- No unresolved medium/high reviewer findings.
- Phase 2 - QA Review (
qa_reviewer)- Validate reproducibility and gate evidence sufficiency.
- No unresolved medium/high QA findings.
- Phase 3 - Security Review (
security_reviewer)- Validate auth-scope cutover decision, residual-risk handling, and disclosure boundaries.
- No unresolved medium/high security findings.
Security Gate
- Complete
artifacts/2026-04-10_security_review.mdusing template guidance. - Record all security findings and dispositions; unresolved medium/high must block closeout.
Docs Gate
- Run
wctl doc-linton changed schema/package/tracker/prompt/security docs andPROJECT_TRACKER.md.
References
docs/schemas/rq-controller-state-contract.mddocs/schemas/rq-engine-agent-api-contract.mddocs/dev-notes/rq-engine-agent-api.mddocs/work-packages/20260410_rq_controller_state_contract_cutover/artifacts/2026-04-11_rq_controller_state_e2e_smoke_runbook.mddocs/work-packages/README.mddocs/prompt_templates/codex_exec_plans.mddocs/prompt_templates/security_review_template.mdPROJECT_TRACKER.md
Deliverables
- Finalized contract-cutover doc updates with explicit policy decisions and watch-list dispositions.
- Updated freeze/checklist artifacts and guard/test parity for cutover state.
- Updated package lifecycle docs and archived ExecPlan on closure.
- Completed security review artifact and phased review dispositions.
- End-to-end smoke runbook and pre-smoke command sequence for frozen controller-state surfaces.
Kickoff Prompt
- Archived ExecPlan:
docs/work-packages/20260410_rq_controller_state_contract_cutover/prompts/completed/rq_controller_state_contract_cutover_execplan.md