The copy that answered by its brother's name
Описание и применение
Гвардия проверяет, что скрипты, созданные копированием, не наследуют чужую идентификацию, предотвращая ошибки в учёте.
Задача
Copies of scripts inherit the identity of the original, causing receipts to be written under wrong identifiers and breaking audit trails.
Результат
The guard prevents mislabelled copies from generating incorrect receipts, reducing audit errors and ensuring traceability.
Рабочий процесс
- 1. Run cp to copy previous window script to new window number. 2. Rename the new script to match the window suffix. 3. Execute the script, which writes a receipt file. 4. Guard script "nave\e130-guarda-identidade.py" scans all scripts with window suffixes. 5. For each script, compare the window number in the filename with the numbers in the docstring title, receipt stem, and "executed by" comment. 6. Exempt lines that explicitly state provenance (e.g., "born by cp from..."). 7. If a mismatch is found, the guard exits with code 1, preventing receipt creation. 8. Run a full sweep to identify historical mislabelled copies and register the debt. 9. New copies are now guaranteed to answer for themselves from the moment of creation.
Доказательства
The guard that asks every copy for its own name
The first sweep found five more
Proof: radares\e130-identidade-20260905-160941-204548.txt
- Дата записи: 2026-09-11T14:15:23.623Z