Repository navigation
Adopt the shared MedUI 0.3.0-rc.1 syntax baseline - #52
Merged
Merged
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (11)
📝 WalkthroughWalkthroughThe PR adds byte-preserving MedUI parsing, positioned invalid-UTF-8 diagnostics, duplicate authored-ID validation, Studio error classification, and a CI gate for the pinned MedUI conformance corpus. ChangesMedUI conformance and source handling
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant Client
participant StudioAPI
participant FileSystem
participant parse_medui_bytes
Client->>StudioAPI: Request screen, frame, or proposal
StudioAPI->>FileSystem: Read .medui bytes
FileSystem-->>StudioAPI: Raw source bytes
StudioAPI->>parse_medui_bytes: Decode and parse bytes
parse_medui_bytes-->>StudioAPI: Parsed result or diagnostics
StudioAPI-->>Client: Source response or classified error
Suggested reviewers: ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
2 of 3 tasks
AM-L
approved these changes
Sep 8, 2026
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.
TrustSC and MduX previously ran different MedUI corpus revisions. This adopts MduX's exact
v0.3.0-rc.1pin (9a57f6462b6f8dbdf1f0b8b4519674f1c6235dbb) and passes all five syntax cases through TrustSC's production parser.Duplicate authored IDs fail during parsing using each node's final ID and the later effective declaration's line. Repeated
id:fields retain last-value-wins behavior; overwritten names reserve nothing. Rows are checked in effective source order even when their final ID follows their children. The compiled-node check remains for synthesized panels and edited ASTs.Invalid UTF-8 produces
MEDUI-E004through the byte parser, file compiler, CLI and Studio file endpoints. Studio distinguishes encoding errors from missing/unreadable files (MEDUI-E003) for detail, frame and proposals; valid UTF-8 syntax errors keep their original source and byte-exact hash for editing.The manifest retains syntax at line-only precision. Semantics, layout, safety and observation profiles remain unclaimed because complete shared adapters do not exist. Diagnostic documentation explicitly inventories the newer registry gaps, including E070: an annotated Button/TextInput can still compile without an otherwise optional requirement. This existing safety divergence is documented, not claimed as implemented.
A named CI step reports executed versus unclaimed cases. The disagreement negative reads its corpus source and executes a positive control outside the catch, then asserts the exact inverted-expectation message. An I/O or unrelated panic cannot satisfy it. No corpus expectations are copied into test code.
Validation at
b21c423: Rust/Cargo 1.96.0; fullcargo build --offline --locked --workspacepassed;cargo test --offline --locked --quietpassed 319 tests with no failures or ignored tests and the pinnedMEDUI_CONFORMANCE_DIR. The parser/checker tests account for 70 passes and Studio for 36. Documentation lint passed. CI is green: https://github.com/ambroise-leclerc/TrustSC/actions/runs/34229297866. MduX's paired local selection passed 313 tests ata722784on the same pin.Part of Compliatory/MduX#335, paired with Compliatory/MduX#337. This provides adoption evidence for joint review; it does not claim full cross-implementation conformance or close the joint sign-off.
Impact: potentially safety-relevant compiler/conformance evidence. Device rendering and baked artifacts are unaffected; no certification or production-readiness claim is introduced.
Summary by CodeRabbit
Bug Fixes
MEDUI-E004diagnostic instead of a generic read failure.Documentation