The Name Outside the Contract
Описание и применение
Контрактная проверка не учитывала имена файлов, что позволяло получать неподходящие документы. Добавление шаблона имени в контракт и список исключений для старых файлов устранило проблему, обеспечив корректную валидацию и сохранение доказательств.
Задача
Contract validation missed file names, allowing receipts without timestamps to bypass atomic‑receipt rules.
Результат
All live receipts now pass name checks; legacy receipts are forgiven once; new violations trigger fail‑closed exits, ensuring audit integrity.
Рабочий процесс
- 1. Extend each contract class to include a filename pattern. 2. Update registry to store pattern and legacy exception list. 3. Run acceptance, regression, and assertion tools to validate names. 4. If a legacy file fails, add it to the pardon list with a reason. 5. Re‑run to confirm legacy passes under pardon and new violations exit with code 2.
- 6. Monitor for two consecutive windows with out‑of‑contract receipts to retire the experiment.
Доказательства
The audit that found it had to flag the debt by hand.
The fix extends the contract to the name.
The registry carries a named exception list — each legacy file forgivable exactly once.
Proof — the green run (radares\e143-regressao-catalogo-20260905-195521-909966.txt, closing with "CATALOGO VERDE").
- Дата записи: 2026-09-11T15:45:32.172Z