Files
encyclopedia-knowledge-graph/docs/plans/inactive/PLAN-PIECEWISE-CODEBASE-MODULARITY-DEFERRED-CANDIDATE-STRATEGIES.md
T

2.2 KiB

PLAN: Deferred Candidate Strategies for Ecosystem-Wide Efficiency, Deduplication & Simplification (From Plan #62)

Document ID: PLAN-PIECEWISE-CODEBASE-MODULARITY-DEFERRED-CANDIDATE-STRATEGIES Status: INACTIVE / DEFERRED CANDIDATE STRATEGIES (docs/plans/inactive/ — Zero PDF Compilation) Parent Active Plan: docs/plans/piecewise/PLAN-PIECEWISE-CODEBASE-MODULARITY-DEFERRED-STRATEGIES.md (Affirmed: 1A, 2A, 3A, 4A, 5A, 6A) Author: m00t & Hermes Agent Date: 2026-12-01


Deferred / Unaffirmed Candidate Strategies (Rule C.4)

  • Audit Point 1 (1A Affirmed):
    • 1B (Partial): Extract only render_explication_nav_html() & render_explication_subpage_html(), keeping hub HTML renderers separate.
    • 1C (Status Quo): Retain v2.17.0 split.
  • Audit Point 2 (2A Affirmed):
    • 2B (Partial): Deduplicate only the 9 mirrored packaging scripts via runpy wrappers + ${STAGE_TOP}/SOURCES/ RPM staging + compute_aq/safe_urlopen delegation, keeping podcast MP3s and quant JSON files in their current locations.
    • 2C (Status Quo): Retain all current duplicates and split quant files.
  • Audit Point 3 (3A Affirmed):
    • 3B (Partial): Add stat-memoized count_file_lines_cached() and copy_result=False fast-path only, without consolidating repo/git/path helpers.
    • 3C (Status Quo): Keep separate helper copies, uncached db.txt line scans, and default deepcopy() behavior.
  • Audit Point 4 (4A Affirmed):
    • 4B (Partial): Wire load_json_cached() only into publishing/quant_voice.py and publishing/highlights.py plus the fonts.py font-index map.
    • 4C (Status Quo): Leave current JSON reads and rglob walks unchanged.
  • Audit Point 5 (5A Affirmed):
    • 5B (Partial): Promote bounded Pillow typography helpers into publishing/fonts.py only, keeping flow_diagram.py PNG re-rendering unconditional.
    • 5C (Status Quo): Leave typography helpers duplicated and flow_diagram.py unconditional.
  • Audit Point 6 (6A Affirmed):
    • 6B (Partial): Remove redundant pre-test subprocesses in push-all-to-git-libre-audio.sh only, keeping .git/hooks/pre-commit unconditional across all 6 repos.
    • 6C (Status Quo): Keep all double-executed checks and unconditional commit hooks.