Repository navigation
fix(life/app): fail closed on unreadable .app.md variant (codex #83 P1) - #84
Merged
Merged
Conversation
… full canonical) Codex post-merge review of #83 (4537421648): the prior fix warned but still fell through to result.push(file), so an app session still received the FULL AGENTS.md/SOUL.md on a bad-variant turn — preserving the #82 privacy/slimming regression. Now a non-ENOENT/ENOTDIR variant read failure DROPS the file for that app session (fail-closed) instead of serving the canonical full file; warning still surfaces the broken deploy. ENOENT/ENOTDIR (genuinely absent) still falls back to canonical (correct for files with no variant). EISDIR test now asserts FULL AGENTS never enters the returned files. Also fixes a latent tsgo error in the #80 system-prompt.app-mode.test.ts (readonly as-const ownerNumbers). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses the Codex post-merge review of #83 (
4537421648).[P1] #83 warned on a non-
ENOENT/ENOTDIR.app.mdread failure but still fell through toresult.push(file)— so an app session received the fullAGENTS.md/SOUL.mdon that turn, preserving the #82 privacy/slimming regression. Now those errors fail closed: the file is dropped for that app session (degraded-but-safe), with the warning still surfacing the broken deploy.ENOENT/ENOTDIR(genuinely absent) still falls back to canonical (correct for files with no variant, e.g.BOOTSTRAP.md).FULL AGENTSnever enters the returned files (+ that an unrelated no-variantSOUL.mdstill passes through).tsgoerror in feat(life/app): app-only prompt slimming + per-agent appSkills scoping #80'ssystem-prompt.app-mode.test.ts(as constmadeownerNumbersreadonly).tsgo+oxlint+ tests green.🤖 Generated with Claude Code