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