Skip to content

fix: preserve snapshot metadata and recover deeply nested values - #60

Merged
cocolato merged 2 commits into
mainfrom
fix/snapshot-metadata
Oct 18, 2026
Merged

cocolato merged 2 commits into
mainfrom
fix/snapshot-metadata

Conversation

@cocolato

@cocolato cocolato commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

Small application string budgets currently truncate frame identifiers and attribute names, and an excessively deep value can discard the other variables in its frame. Give diagnostic text and bytecode separate bounded budgets, preserve namespace and attribute names, and recover recursion failures at root mapping entries so unrelated locals remain available. Keep relative source paths usable when the working directory has been removed.

Document these bounds and add regressions for tiny string budgets, namespace aliasing and priority, deep lists/mappings, deleted working directories, and metadata limits in normal and unlimited captures.

Refs #58. Second PR in the series. PR #59 is merged, and this PR now targets main; the diff contains only metadata and recovery changes.

Validation on CPython 3.13.15:

  • Full suite: 132 passed, 1 skipped (native PID capture requires Python 3.14+).
  • Coverage: 88.85%, above the 85% gate.
  • Ruff lint/format checks, git diff --check, and strict Sphinx build passed.
  • The split was checked to keep container adapters and their dependent tests in the following PR.

CI on the latest head: all 10 checks passed, covering Linux Python 3.11–3.15, Windows/macOS Python 3.14, quality, documentation, and distributions. Workflow run.

@cocolato
cocolato changed the base branch from fix/report-output to main October 18, 2026 16:01
@cocolato
cocolato merged commit 78b8bd9 into main Oct 18, 2026
10 checks passed
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