---
phase: 04-code-backed-acceptance-lane
plan: 01
type: execute
wave: 1
depends_on: ["03-01"]
files_modified: [research/knowledge-hub/runtime/scripts/run_tfim_benchmark_code_method_acceptance.py, research/knowledge-hub/README.md, research/knowledge-hub/runtime/README.md, research/knowledge-hub/runtime/AITP_TEST_RUNBOOK.md, research/knowledge-hub/tests/test_l2_backend_contracts.py]
autonomous: true
requirements: [ACC-01]
user_setup: []
must_haves:
  truths:
    - A real code-backed acceptance lane exists and runs successfully.
    - The code-backed lane keeps a benchmark-first trust gate inside AITP runtime state.
  artifacts:
    - path: research/knowledge-hub/runtime/scripts/run_tfim_benchmark_code_method_acceptance.py
      provides: benchmark-first code-method acceptance script
  key_links:
    - from: research/knowledge-hub/runtime/scripts/run_tfim_benchmark_code_method_acceptance.py
      to: research/knowledge-hub/validation/tools/tfim_exact_diagonalization.py
      via: real benchmark-first acceptance flow
      pattern: tfim_exact_diagonalization.py
---

<objective>
Create and validate a real code-backed benchmark-first acceptance lane for the
TFIM exact-diagonalization helper.

Purpose: Give the `code_method` lane a real bounded exemplar.
Output: Acceptance script, docs entry points, and existence tests.
</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>
@research/knowledge-hub/runtime/scripts/run_scrpa_thesis_topic_acceptance.py
@research/knowledge-hub/runtime/scripts/run_witten_topological_phases_formal_closure_acceptance.py
@research/knowledge-hub/validation/tools/tfim_exact_diagonalization.py
</context>

<tasks>
<task type="auto">
  <name>Task 1: Land a real TFIM benchmark-first code-method acceptance script</name>
  <files>research/knowledge-hub/runtime/scripts/run_tfim_benchmark_code_method_acceptance.py, research/knowledge-hub/README.md, research/knowledge-hub/runtime/README.md, research/knowledge-hub/runtime/AITP_TEST_RUNBOOK.md, research/knowledge-hub/tests/test_l2_backend_contracts.py</files>
  <read_first>research/knowledge-hub/runtime/scripts/run_scrpa_thesis_topic_acceptance.py, research/knowledge-hub/runtime/scripts/run_witten_topological_phases_formal_closure_acceptance.py, research/knowledge-hub/validation/tools/tfim_exact_diagonalization.py</read_first>
  <action>Create a cross-platform Python acceptance script that runs the public TFIM helper, opens a `code_method` topic, records baseline-gated operation trust and strategy memory, and documents the lane in the kernel/runtime READMEs and test runbook.</action>
  <verify>python research/knowledge-hub/runtime/scripts/run_tfim_benchmark_code_method_acceptance.py --json</verify>
  <acceptance_criteria>
    - run_tfim_benchmark_code_method_acceptance.py exists
    - README and runbook mention the new acceptance script
  </acceptance_criteria>
  <done>The code-method lane has a real benchmark-first acceptance exemplar.</done>
</task>
</tasks>

<verification>
- [ ] `python research/knowledge-hub/runtime/scripts/run_tfim_benchmark_code_method_acceptance.py --json`
</verification>

<success_criteria>
- All tasks completed
- All verification checks pass
- Code-backed acceptance is real and benchmark-first
</success_criteria>

<output>
After completion, create `.planning/phases/04-code-backed-acceptance-lane/04-01-SUMMARY.md`
</output>
