---
phase: 60-seeded-direction-and-bounded-retrieval-proof
plan: 01
type: execute
wave: 1
depends_on:
  - 58-mvp-node-family-activation-and-physical-picture-closure
  - 59-lightweight-l2-entry-and-seed-command-family
files_modified:
  - research/knowledge-hub/knowledge_hub/aitp_service.py
  - research/knowledge-hub/knowledge_hub/aitp_cli.py
  - research/knowledge-hub/knowledge_hub/cli_l2_compiler_handler.py
  - research/knowledge-hub/runtime/scripts/run_l2_mvp_direction_acceptance.py
  - research/knowledge-hub/tests/test_aitp_service.py
  - research/knowledge-hub/tests/test_aitp_cli.py
  - research/knowledge-hub/tests/test_aitp_cli_e2e.py
autonomous: true
requirements:
  - REQ-L2MVP-04
  - REQ-L2MVP-05
  - REQ-L2MVP-06
  - REQ-VERIFY-01
must_haves:
  truths:
    - the seeded MVP direction must generate reviewable compiled and hygiene artifacts
    - the acceptance path must stay on production code, not mocks
    - isolated proof should avoid mutating repo runtime state
---

<objective>
Prove that one bounded MVP `L2` direction is operational through compiled,
hygiene, and acceptance surfaces.
</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/60-seeded-direction-and-bounded-retrieval-proof/60-CONTEXT.md
@.planning/REQUIREMENTS.md
@research/knowledge-hub/knowledge_hub/l2_compiler.py
@research/knowledge-hub/knowledge_hub/l2_hygiene.py
@research/knowledge-hub/knowledge_hub/aitp_service.py
@research/knowledge-hub/knowledge_hub/aitp_cli.py
</context>

<tasks>

<task type="auto">
  <name>Task 1: Add failing tests for compiled and hygiene production entrypoints</name>
  <files>research/knowledge-hub/tests/test_aitp_service.py, research/knowledge-hub/tests/test_aitp_cli.py, research/knowledge-hub/tests/test_aitp_cli_e2e.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_aitp_cli_e2e.py, research/knowledge-hub/knowledge_hub/l2_compiler.py, research/knowledge-hub/knowledge_hub/l2_hygiene.py</read_first>
  <action>Add failing tests that require production service and CLI entrypoints for compiling the workspace L2 memory map and auditing L2 hygiene on top of the seeded MVP direction.</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_aitp_cli_e2e.py -q</verify>
  <acceptance_criteria>
    - tests fail before implementation
    - failures prove that compiled/hygiene proof remains script-only or helper-only
  </acceptance_criteria>
  <done>A red contract exists for Phase `60`.</done>
</task>

<task type="auto">
  <name>Task 2: Implement service and CLI compiled/hygiene surfaces</name>
  <files>research/knowledge-hub/knowledge_hub/aitp_service.py, research/knowledge-hub/knowledge_hub/aitp_cli.py, research/knowledge-hub/knowledge_hub/cli_l2_compiler_handler.py</files>
  <read_first>research/knowledge-hub/knowledge_hub/aitp_service.py, research/knowledge-hub/knowledge_hub/aitp_cli.py, research/knowledge-hub/knowledge_hub/l2_compiler.py, research/knowledge-hub/knowledge_hub/l2_hygiene.py</read_first>
  <action>Add thin production wrappers and CLI commands for `compile-l2-map` and `audit-l2-hygiene`, keeping the main CLI facade inside watch budgets by routing through an extracted handler.</action>
  <verify>python -m pytest research/knowledge-hub/tests/test_aitp_service.py research/knowledge-hub/tests/test_aitp_cli.py -q</verify>
  <acceptance_criteria>
    - service exposes compiled and hygiene operations
    - CLI exposes both commands and dispatches to production wrappers
  </acceptance_criteria>
  <done>Compiled/hygiene proof surfaces are reachable through production entrypoints.</done>
</task>

<task type="auto">
  <name>Task 3: Add isolated MVP direction acceptance proof</name>
  <files>research/knowledge-hub/runtime/scripts/run_l2_mvp_direction_acceptance.py</files>
  <read_first>research/knowledge-hub/runtime/scripts/compile_l2_workspace_map.py, research/knowledge-hub/runtime/scripts/audit_l2_hygiene.py, research/knowledge-hub/tests/test_aitp_cli_e2e.py</read_first>
  <action>Create a non-mocked acceptance script that uses an isolated kernel root, seeds the TFIM MVP direction through CLI, consults the seeded `physical_picture`, compiles the workspace memory map, audits hygiene, and verifies the durable output artifacts.</action>
  <verify>python research/knowledge-hub/runtime/scripts/run_l2_mvp_direction_acceptance.py --json</verify>
  <acceptance_criteria>
    - acceptance exits 0
    - compiled map and hygiene artifacts exist
    - acceptance proves the seeded `physical_picture` remains retrievable
  </acceptance_criteria>
  <done>One bounded MVP direction is operational and reviewable end to end.</done>
</task>

<task type="auto">
  <name>Task 4: Re-run the integrated Phase 60 slice</name>
  <files>research/knowledge-hub/tests/test_aitp_service.py, research/knowledge-hub/tests/test_aitp_cli.py, research/knowledge-hub/tests/test_aitp_cli_e2e.py</files>
  <read_first>.planning/REQUIREMENTS.md</read_first>
  <action>Re-run the targeted service/CLI slice, the isolated acceptance, and the full knowledge-hub suite to confirm Phase `60` lands cleanly.</action>
  <verify>python -m pytest research/knowledge-hub/tests -q</verify>
  <acceptance_criteria>
    - targeted slice exits 0
    - isolated acceptance exits 0
    - full suite exits 0
  </acceptance_criteria>
  <done>Phase `60` lands on a stable tested baseline.</done>
</task>

</tasks>
