Skip to content

Fix stale AST cache crash in fragile-path lint#120

Open
lbliii wants to merge 2 commits intomainfrom
codex/investigate-chirpui-lint-crash
Open

Fix stale AST cache crash in fragile-path lint#120
lbliii wants to merge 2 commits intomainfrom
codex/investigate-chirpui-lint-crash

Conversation

@lbliii
Copy link
Copy Markdown
Owner

@lbliii lbliii commented Apr 24, 2026

Summary

  • Version bytecode cache entries with a Kida cache ABI tag so old pickled ASTs are not reused after AST shape changes
  • Reject incompatible cached ASTs at load time and fall back to recompilation instead of crashing the visitor
  • Preserve Filter.parenthesized through partial evaluation so precedence metadata survives optimization
  • Add regression coverage for stale cached ASTs and the fragile-path lint path

Testing

  • make lint
  • make ty
  • make test

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