---
phase: 56-h-plane-steering-and-approval-surface-consolidation
plan: 01
type: execute
wave: 1
depends_on:
  - 54-control-plane-ontology-freeze-and-runtime-contracts
  - 55-paired-backend-alignment-and-drift-audit
files_modified:
  - research/knowledge-hub/knowledge_hub/aitp_service.py
  - research/knowledge-hub/knowledge_hub/runtime_bundle_support.py
  - research/knowledge-hub/knowledge_hub/capability_audit_support.py
  - research/knowledge-hub/knowledge_hub/aitp_cli.py
  - research/knowledge-hub/tests/test_aitp_service.py
  - research/knowledge-hub/tests/test_aitp_cli.py
  - research/knowledge-hub/tests/test_runtime_profiles_and_projections.py
autonomous: true
requirements:
  - REQ-HPLANE-01
  - REQ-HPLANE-02
  - REQ-VERIFY-01
must_haves:
  truths:
    - redirect, pause, approve, and override must become one explicit production H-plane surface
    - existing write paths stay durable and explicit rather than being replaced by hidden heuristics
    - this phase closes only with production behavior and tests, not docs alone
---

<objective>
Materialize the first explicit `H-plane` production surface and entrypoint for
AITP.
</objective>

<execution_context>
@D:/BaiduSyncdisk/Theoretical-Physics/.codex-home/get-shit-done/workflows/execute-plan.md
@D:/BaiduSyncdisk/Theoretical-Physics/.codex-home/get-shit-done/templates/summary.md
</execution_context>

<context>
@.planning/phases/56-h-plane-steering-and-approval-surface-consolidation/56-CONTEXT.md
@docs/V142_ARCHITECTURE_VISION.md
@docs/AITP_UNIFIED_RESEARCH_ARCHITECTURE.md
@research/knowledge-hub/knowledge_hub/aitp_service.py
@research/knowledge-hub/knowledge_hub/kernel_markdown_renderers.py
@research/knowledge-hub/knowledge_hub/runtime_bundle_support.py
@research/knowledge-hub/knowledge_hub/capability_audit_support.py
@research/knowledge-hub/knowledge_hub/aitp_cli.py
</context>

<tasks>

<task type="auto">
  <name>Task 1: Add failing tests for unified H-plane exposure</name>
  <files>research/knowledge-hub/tests/test_aitp_service.py, research/knowledge-hub/tests/test_aitp_cli.py, research/knowledge-hub/tests/test_runtime_profiles_and_projections.py</files>
  <read_first>research/knowledge-hub/tests/test_aitp_service.py, research/knowledge-hub/tests/test_aitp_cli.py, research/knowledge-hub/tests/test_runtime_profiles_and_projections.py</read_first>
  <action>Add failing tests that require one explicit `h_plane` payload covering steering, checkpoint, registry, and approval state across service/runtime/CLI surfaces.</action>
  <verify>python -m pytest research/knowledge-hub/tests/test_aitp_service.py research/knowledge-hub/tests/test_aitp_cli.py research/knowledge-hub/tests/test_runtime_profiles_and_projections.py -q</verify>
  <acceptance_criteria>
    - tests fail before implementation
    - failures prove the absence of the unified H-plane surface
  </acceptance_criteria>
  <done>A real failing contract exists for Phase `56`.</done>
</task>

<task type="auto">
  <name>Task 2: Implement H-plane support and service/runtime integration</name>
  <files>research/knowledge-hub/knowledge_hub/aitp_service.py, research/knowledge-hub/knowledge_hub/runtime_bundle_support.py, research/knowledge-hub/knowledge_hub/capability_audit_support.py</files>
  <read_first>research/knowledge-hub/knowledge_hub/aitp_service.py, research/knowledge-hub/knowledge_hub/runtime_bundle_support.py, research/knowledge-hub/knowledge_hub/capability_audit_support.py</read_first>
  <action>Implement one explicit production `h_plane` payload and reuse it across runtime bundle, service audit/status surfaces, and capability audit.</action>
  <verify>python -m pytest research/knowledge-hub/tests/test_aitp_service.py research/knowledge-hub/tests/test_runtime_profiles_and_projections.py -q</verify>
  <acceptance_criteria>
    - service can emit a production H-plane audit payload
    - runtime bundle and capability audit can expose H-plane state honestly
  </acceptance_criteria>
  <done>The H-plane is inspectable through production code.</done>
</task>

<task type="auto">
  <name>Task 3: Add a CLI H-plane entrypoint</name>
  <files>research/knowledge-hub/knowledge_hub/aitp_cli.py, research/knowledge-hub/knowledge_hub/aitp_service.py</files>
  <read_first>research/knowledge-hub/knowledge_hub/aitp_cli.py, research/knowledge-hub/knowledge_hub/aitp_service.py</read_first>
  <action>Add a CLI entrypoint so operators can inspect unified H-plane state without manually opening multiple artifacts first.</action>
  <verify>python -m pytest research/knowledge-hub/tests/test_aitp_cli.py research/knowledge-hub/tests/test_aitp_service.py -q</verify>
  <acceptance_criteria>
    - CLI can reach the H-plane payload
    - redirect, pause, approve, and override semantics stay explicit
  </acceptance_criteria>
  <done>Operators have one bounded H-plane entrypoint.</done>
</task>

<task type="auto">
  <name>Task 4: Re-run the targeted integrated slice</name>
  <files>research/knowledge-hub/tests/test_aitp_service.py, research/knowledge-hub/tests/test_aitp_cli.py, research/knowledge-hub/tests/test_runtime_profiles_and_projections.py</files>
  <read_first>.planning/REQUIREMENTS.md</read_first>
  <action>Re-run the targeted integrated slice to prove the unified H-plane lands cleanly in the runtime stack.</action>
  <verify>python -m pytest research/knowledge-hub/tests/test_aitp_service.py research/knowledge-hub/tests/test_aitp_cli.py research/knowledge-hub/tests/test_runtime_profiles_and_projections.py -q</verify>
  <acceptance_criteria>
    - the targeted slice exits 0
  </acceptance_criteria>
  <done>Phase `56` lands on a stable tested baseline.</done>
</task>

</tasks>
