Repository navigation
Preserve original XML source formatting on save - #4
Merged
Merged
Conversation
Round-trip forms through a source-format model so a no-op save is byte-for-byte identical to the opened file, and an edit changes only the lines it touches. Adds corpus byte-exact and required-doc regression gates plus entity-spelling coverage. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Saving a form now round-trips through a source-format model, so:
<required-doc>line + bumpsnextid)Scope
Only the XML parser/serializer and its type surface plus tests. No AI, Test Lab, or UI changes are included in this PR.
src/lib/xmlParser.tssrc/types/form.tstests/corpus.roundtrip.test.ts,tests/fixtures.roundtrip.test.ts,tests/sourceFormat.test.ts,tests/xmlParser.gaps.test.tstests/entitySpelling.test.ts,tests/requiredDoc.corpus.regression.test.tsVerification
EBAR_STATES_DIRset, >500 real forms): round-trip zero semantic loss, rebuild idempotent, byte-exact no-op save — all passnextid+ one inserted<required-doc>linenpx tsc --noEmitclean,npm run buildsucceeds,git diff --checkcleanNote: the pre-existing
npm run lintscript callsnext lint, which was removed in Next 16 — it fails onmaintoday and is untouched here.🤖 Generated with Claude Code