---
phase: 68-source-fidelity-ranking-and-runtime-read-surfaces
plan: 01
type: execute
wave: 1
depends_on:
  - 67-citation-traversal-and-source-family-reuse
files_modified:
  - research/knowledge-hub/knowledge_hub/source_intelligence.py
  - research/knowledge-hub/knowledge_hub/l1_source_intake_support.py
  - research/knowledge-hub/knowledge_hub/runtime_read_path_support.py
  - research/knowledge-hub/knowledge_hub/topic_shell_support.py
  - research/knowledge-hub/runtime/schemas/progressive-disclosure-runtime-bundle.schema.json
  - research/knowledge-hub/tests/test_aitp_service.py
  - research/knowledge-hub/tests/test_runtime_profiles_and_projections.py
  - research/knowledge-hub/tests/test_aitp_cli_e2e.py
autonomous: true
requirements:
  - REQ-SCAT-04
must_haves:
  truths:
    - source fidelity must become explicit in runtime truth, not just docs
    - fidelity surfaces must remain schema-valid
    - topic status and runtime bundle must agree on the same fidelity summary
---

<objective>
Make source fidelity explicit and readable through the existing source
intelligence runtime path.
</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/68-source-fidelity-ranking-and-runtime-read-surfaces/68-CONTEXT.md
@.planning/REQUIREMENTS.md
@research/knowledge-hub/knowledge_hub/source_intelligence.py
@research/knowledge-hub/tests/test_runtime_profiles_and_projections.py
</context>

<tasks>

<task type="auto">
  <name>Task 1: Add failing tests for fidelity-aware runtime source intelligence</name>
  <files>research/knowledge-hub/tests/test_aitp_service.py, research/knowledge-hub/tests/test_runtime_profiles_and_projections.py, research/knowledge-hub/tests/test_aitp_cli_e2e.py</files>
  <read_first>research/knowledge-hub/tests/test_aitp_service.py, research/knowledge-hub/knowledge_hub/source_intelligence.py</read_first>
  <action>Add red tests that require source fidelity to appear in runtime source-intelligence payloads and notes.</action>
  <verify>python -m pytest research/knowledge-hub/tests/test_aitp_service.py research/knowledge-hub/tests/test_runtime_profiles_and_projections.py research/knowledge-hub/tests/test_aitp_cli_e2e.py -q</verify>
  <acceptance_criteria>
    - tests fail before implementation
    - failures prove evidence weight is still invisible in runtime surfaces
  </acceptance_criteria>
  <done>A red contract exists for Phase `68`.</done>
</task>

<task type="auto">
  <name>Task 2: Implement fidelity-aware runtime source intelligence</name>
  <files>research/knowledge-hub/knowledge_hub/source_intelligence.py, research/knowledge-hub/knowledge_hub/l1_source_intake_support.py, research/knowledge-hub/knowledge_hub/runtime_read_path_support.py, research/knowledge-hub/knowledge_hub/topic_shell_support.py, research/knowledge-hub/runtime/schemas/progressive-disclosure-runtime-bundle.schema.json</files>
  <read_first>research/knowledge-hub/knowledge_hub/source_intelligence.py, research/knowledge-hub/runtime/schemas/progressive-disclosure-runtime-bundle.schema.json</read_first>
  <action>Add bounded fidelity inference plus runtime-safe fidelity summary fields and markdown rendering.</action>
  <verify>python -m pytest research/knowledge-hub/tests/test_aitp_service.py research/knowledge-hub/tests/test_runtime_profiles_and_projections.py research/knowledge-hub/tests/test_aitp_cli_e2e.py -q</verify>
  <acceptance_criteria>
    - source intelligence exposes fidelity rows and summary
    - runtime protocol and topic dashboard render source fidelity
    - runtime bundle schema accepts the new source-intelligence surface
  </acceptance_criteria>
  <done>Source fidelity becomes explicit in runtime/read surfaces.</done>
</task>

<task type="auto">
  <name>Task 3: Re-run fidelity regressions and full suite</name>
  <files>research/knowledge-hub/tests/test_aitp_service.py, research/knowledge-hub/tests/test_runtime_profiles_and_projections.py, research/knowledge-hub/tests/test_aitp_cli_e2e.py, research/knowledge-hub/tests/test_maintainability_budgets.py</files>
  <read_first>.planning/REQUIREMENTS.md</read_first>
  <action>Re-run the fidelity slice and the full knowledge-hub suite before moving to milestone closeout.</action>
  <verify>python -m pytest research/knowledge-hub/tests -q</verify>
  <acceptance_criteria>
    - fidelity slice exits 0
    - maintainability budgets stay green
    - no full-suite regression is introduced
  </acceptance_criteria>
  <done>Phase `68` lands on a stable verified baseline.</done>
</task>

</tasks>
