feat(xatu): add JSON debug output for parsed files #92

Closed
alexion wants to merge 2 commits from feat/xatu-debug into main
Owner

Summary

  • Add xatu --debug to dump existing ParsedFile output as deterministic JSON without lint diagnostics.
  • Serialize lowered nodes, tokens, file IDs, and parse errors.
  • Add black-box CLI tests using the unchanged Nix fixtures and checked-in expected JSON.
  • Document debug behavior and output regeneration.

This PR contains no scope-graph construction or fixture reordering.
It replaces the debug-output portion of #91.

Validation

  • bazel test //src/xatu:all — all three targets pass.
  • cargo clippy -p xatu -- -D warnings — passes.

Fresh-worktree testing required restoring ignored, untracked rustversion-1.0.23/build/ files from the original checkout.
AGENTS.md records this existing repository limitation; this PR does not change vendor files.

## Summary - Add `xatu --debug` to dump existing `ParsedFile` output as deterministic JSON without lint diagnostics. - Serialize lowered nodes, tokens, file IDs, and parse errors. - Add black-box CLI tests using the unchanged Nix fixtures and checked-in expected JSON. - Document debug behavior and output regeneration. This PR contains no scope-graph construction or fixture reordering. It replaces the debug-output portion of #91. ## Validation - `bazel test //src/xatu:all` — all three targets pass. - `cargo clippy -p xatu -- -D warnings` — passes. Fresh-worktree testing required restoring ignored, untracked `rustversion-1.0.23/build/` files from the original checkout. `AGENTS.md` records this existing repository limitation; this PR does not change vendor files.
alexion added 1 commit 2026-09-24 22:52:22 -04:00
Author
Owner

Scope-graph construction is now a separate stacked PR: #93. Merge this debug-only PR first.

Scope-graph construction is now a separate stacked PR: #93. Merge this debug-only PR first.
alexion added 1 commit 2026-09-24 23:01:51 -04:00
alexion closed this pull request 2026-09-24 23:05:21 -04:00
Author
Owner

Closing at the operator’s request.

Closing at the operator’s request.

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: alexion/dev#92