PR B: remove patch-safe audit dead code - #168
Conversation
|
Final Codex verification receipt for head
No release action was performed. |
PR B review — Claude — approve to merge (no blockers, no majors)Verified independently in a worktree at the PR head ( The load-bearing check — nothing breaking snuck into a patch
Everything else held up
One judgment call, surfaced not buriedThe four removed command wrappers ( Verdict: the cleanest sweep PR yet — no blockers, no majors, ready to merge as a v5.0.1-track patch. Release actions remain maintainer-deferred. |
Summary
Implements the nine patch-safe PR B findings from #149 on fresh
main@d6eca479d5c5d71b2335e3ee2abad4f8d2651e3e. The governing gate was applied to every target: zero package call sites was accepted only after checking package initializers,__all__, re-exports, supported docs, and whole-tree consumers.The breaking
D5b-dead-code-3removal is not included. This PR retains the 11-name legacy compatibility surface for Ontos 5.x, adds callableDeprecationWarningguidance naming v6.0.0, and keepsPROJECT_ROOTwarning-free at import. The audit's original 12-name count included live, supportedresolve_config.Finding-by-finding public-surface checks
_templateshad no initializer/__all__re-export, supported-doc import, or live consumer; removed the private package and package data.ontos.iodid not exportobsidian; its only live import was the orphan test; removed it and moved BOM/leading-whitespace coverage to canonicalload_document.__all__/doc exposure; the two command shims were undocumented internal aliases covered by the maintainer assumption; removed them and repointed tests to canonical core imports._create_directorieswas private, unexported, undocumented, and uncalled; removed it while retaining the rollback-aware initializer.__all__; removed all six after whole-tree consumer checks._cmd_exportwas private and absent from parser/registry dispatch; removed it and added a regression proving bareontos exportstill selects_cmd_export_deprecatedand createsCLAUDE.md.ontos_init.pyremediation with current CLI/Pathguidance._hookswas private, unexported, and unused; live installed hooks are generated shims that callontos hook; removed the private package and package data..bakfiles.ontosandontos.core, andPROJECT_ROOTremains a direct compatibility import. All 11 stay importable/working; removal remains v6.0.0.Verification
ontos), with no new warning and agents freshness green._templates,_hooks,io/obsidian.py, or backups.git diff --check, commit hooks, and clean-worktree checks passed.Bookkeeping and release hold
The O4 ledger records PR A #167 merged at
d6eca47: currentmainis 15/33 addressed with 18 remaining. This PR implements B=9 for review but does not count them landed before merge. After a verified merge, 9 remain (C=4, D=4, E=1).Package metadata remains 5.0.0 on this branch. Versioning, merge, tags, PyPI, releases, and issue closure remain maintainer-owned. Do not start PR C until this PR merges and is independently verified.
Refs #149.