0174: Owned path labels in application-test errors
Status: Accepted — M18.11 / AT-03
Context
Generated-C and FFI compiler errors can contain private build/source and output paths. Returning them unchanged makes identical application-test reports vary between runs. Original source/package paths and stable diagnostic codes remain useful and must not be removed by a generic pathname pattern.
Decision
The compiler that owns a private artifact records its exact path and a stable presentation label on ToolError. Preserve that metadata through FFI error wrapping. Dedicated application workers substitute only those recorded paths before bounding the private completion detail. Ordinary CLI consumers continue using the original message and numeric status unchanged. No environment flag, string-shape heuristic or process-wide diagnostic mode selects this behavior.
Consequences
Typed execution/control authority is unchanged. Presentation metadata never creates an app observation or suppresses a compiler failure. Tests require repeatable public reports, retained real project paths and unchanged ordinary messages. Arbitrary compiler-produced nondeterministic text is not normalized.