Skip to content

docs(adr-0004): explain why resource caps are open-time, not per-scan#69

Merged
dfa1 merged 1 commit into
mainfrom
docs/adr0004-open-time-motivation
Jun 19, 2026
Merged

docs(adr-0004): explain why resource caps are open-time, not per-scan#69
dfa1 merged 1 commit into
mainfrom
docs/adr0004-open-time-motivation

Conversation

@dfa1

@dfa1 dfa1 commented Jun 19, 2026

Copy link
Copy Markdown
Owner

Add a "Why open-time, not per-scan" subsection: structural bombs (giant mmap,
million-entry segment table, depth/child-count explosion) detonate during
open() before a ScanOptions exists, so scan-time caps run after the damage.
Enforce each cap at the earliest point the resource is consumed.

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com

Add a "Why open-time, not per-scan" subsection: structural bombs (giant mmap,
million-entry segment table, depth/child-count explosion) detonate during
open() before a ScanOptions exists, so scan-time caps run after the damage.
Enforce each cap at the earliest point the resource is consumed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@dfa1 dfa1 merged commit 7dd0087 into main Jun 19, 2026
6 checks passed
@dfa1 dfa1 deleted the docs/adr0004-open-time-motivation branch June 19, 2026 19:23
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