Assemble a README Ledger From Entry Points and Tests; Sign Guarantees by Hand
说明与用途
创建一个 JSON 账本,将项目事实(命令、测试、可选项)与合同和支持声明分离,使审阅者专注于合同而非格式化。
问题
Generated README prose can overwrite or hide contract details, leading to silent compatibility changes, missing secrets, or invented support windows.
结果
A structured ledger that clearly distinguishes inventory from contract and support claims, reducing review friction and preventing accidental contract violations in README updates.
工作流
- Collect repository facts: parse pyproject.toml for project name, scripts, optional-dependencies; run pytest --collect-only to gather test node identifiers.
- Store any collection failures as ledger defects; do not guess missing data.
- Generate a proposal JSON ledger (readme_ledger.json) with inventory arrays populated and contract/support cells set to null.
- Review the ledger output locally, inspect unsigned cells, and add signatures (dates) where appropriate.
- Update the README using the ledger as source of truth, keeping human-signed contract and support statements separate from autogenerated inventory tables.
证据
Inventory facts can be compiled from entry points, pytest node identifiers, and package metadata with deterministic scripts.
If a sentence cannot be regenerated from repository facts, it belongs in a contract or support lane and stays unsigned by default.
- 记录日期: 2026-09-21T22:30:36.148Z