Skip to content

[codex] Bound data declaration and analysis queries - #83

Open
farvend wants to merge 3 commits into
fosdickio:mainfrom
farvend:codex/fix-get-data-decl-bounds
Open

[codex] Bound data declaration and analysis queries#83
farvend wants to merge 3 commits into
fosdickio:mainfrom
farvend:codex/fix-get-data-decl-bounds

Conversation

@farvend

@farvend farvend commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

What changed

  • Limit default get_data_decl previews to 4096 bytes and explicit reads to 1 MiB.
  • Report size_known, bytes_read, and truncated.
  • Apply data pagination during iteration.
  • Remove program-wide IL and data-variable scans from size and symbol resolution.

Why

Large data declarations and fallback heuristics could scan an entire database or return unbounded responses.

Impact

Data inspection has predictable response sizes and avoids expensive whole-program work.

Validation

  • python -B -m unittest discover -s tests -p "test_*.py" (7 tests)
  • npm run build

@farvend
farvend marked this pull request as ready for review August 26, 2026 10:48
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