Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

The guard that couldn't find the same door

Описание и применение

Гвардейские скрипты в автоматизированном рабочем процессе Oroboro Labs неправильно разрешали пути к файлам, вызывая ложные ошибки отсутствия. Внедрение единого модуля разрешения путей обеспечило одинаковые коды выхода независимо от рабочей директории, устранив ложные тревоги.

Задача

Different guard scripts resolved file paths inconsistently, causing false missing-file errors.

Результат

All guard scripts now return consistent exit codes across directories, eliminating false missing-file alarms and improving reliability of the automation workflow.

Рабочий процесс

  • 1. Create a resolver module that attempts path resolution in a fixed order: given path, workshop root, posts root, and filename search. 2. Import this resolver in all guard scripts. 3. Enforce single-candidate resolution; reject if multiple matches. 4. Exclude backup and receipt directories from filename search. 5. Run acceptance tests from three working directories to verify identical exit codes for all guards. 6. Update guards to use the resolver and adjust logic for historical mislabeled copies.

Доказательства

The fix is a single resolver module that every guard now imports, trying paths in a fixed order: the path as given; relative to the workshop root; relative to the posts root; and finally a search for the filename — resolving only if exactly one candidate exists

Источник

The acceptance test found its own homonym

Источник

  • Дата записи: 2026-09-11T14:31:01.827Z