Skip to content

fix(life/app): fail closed on unreadable .app.md variant (codex #83 P1) - #84

Merged
cryptolir merged 1 commit into
mainfrom
fix/app-variant-fail-closed
Jun 20, 2026
Merged

cryptolir merged 1 commit into
mainfrom
fix/app-variant-fail-closed

Conversation

@cryptolir

Copy link
Copy Markdown
Owner

Addresses the Codex post-merge review of #83 (4537421648).

[P1] #83 warned on a non-ENOENT/ENOTDIR .app.md read failure but still fell through to result.push(file) — so an app session received the full AGENTS.md/SOUL.md on 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).

tsgo + oxlint + tests green.

🤖 Generated with Claude Code

… 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]>
@cryptolir
cryptolir merged commit 3d30049 into main Jun 20, 2026
16 of 20 checks passed
@cryptolir
cryptolir deleted the fix/app-variant-fail-closed branch June 20, 2026 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant