Repository navigation
fix(reference): preserve observed entry failure reasons - #770
rudycelekli wants to merge 1 commit into
Conversation
Signed-off-by: Rudy Celekli <[email protected]>
|
Reviewed: preserving observed entry failure reasons (${entry.message} + guidance) matches local-evidence rules — caller-selected paths and OS codes (EACCES, not-regular-file) are preserved, not redacted. Unsupported-entry guidance fix (exclude/replace vs use supported system) is correct. Real chmod-000/FIFO boundary tests + projection update cover it. APPROVE. Minor polish: watch double-punctuation when message already ends with '.'. |
Review — APPROVESummaryChanges Verification
Polish (non-blocking)
|
|
Checked the formatter: it currently joins the literal reader message and recovery guidance with a single space ( |
|
Superseded by #815, which integrated this change and has now merged (3af3811). Thanks @rudycelekli for the fix and the thorough verification — much appreciated! |
Summary
Preserve observed per-entry filesystem/type failure reasons in reference-source imports. Self-contained bug fix; no separate issue linked.
Problem and expected behavior
An owned unreadable source file produces an EACCES diagnostic with the affected path in the filesystem reader. Import projection discarded it and returned generic permission advice. A FIFO's actual
Entry is not a regular filereason was also discarded and replaced with advice to use a supported system. Callers need the observed constraint to decide how to repair or exclude an entry.Change and scope
Retain the reader's message alongside recovery guidance. Unsupported entry guidance now says to exclude it or replace it with a regular file. Caller-selected local diagnostic paths are intentionally preserved under REA's local evidence rule. Top-level parser/policy error projection and transport credential handling are unchanged.
Contract and boundary impact
docs/product-catalog.json), package, or installation impact: none.Evidence and regression coverage
File could not be read: EACCES ... open '<selected path>'remains in the graph entry's limitations alongside guidance.For evidence-bearing changes:
Validation performed
import-reference-sourcebefore/after — discarded reasons on base, preserves them after; readable control unchanged.npm run test:focused -- tests/boundary/filesystem/referenceSourceFailureDetails.test.ts tests/boundary/filesystem/referenceSourceImport.test.ts tests/boundary/filesystem/referenceSourceReader.test.ts— 23 passed.npm run check— 5 tasks successful; 125 existing warnings, zero errors.npm run check:fast— 2 tasks successful.git diff --check— passed; SSH signature and DCO verified. Reused exact Node24.18.0/Vitest5.0.3/TypeScript7.0.2; no dependency edits.Hosted full coverage tracked separately. External provider verification is not applicable to this filesystem projection.
Compatibility, safety, and release
AI assistance: implemented and source reviewed with Codex on behalf of @rudycelekli before publication.
Review checklist
type(scope): outcome.