Repository navigation
Register MEDUI-E035 for an unknown image or template identifier - #21
Merged
Merged
Conversation
This was referenced Sep 7, 2026
There was a problem hiding this comment.
🟢 Approval recommended
The changes consistently register MEDUI-E035, update the schema/decision text to support deterministic resolution inputs, and add targeted conformance cases for the new diagnostic.
Pull request overview
Registers a dedicated semantics diagnostic code for unresolved baked resource identifiers (image IDs and templates), and adds conformance inputs/cases so implementations can report these failures under a consistent phase/code.
Changes:
- Add
MEDUI-E035(semantics) to the diagnostic registry for “unknown resource identifier”. - Document
MEDUI-E035semantics in the component model and extend semantic-caseinputswithimageIdsandtemplates. - Add conformance cases for unknown
img("...")IDs and unknowntemplateidentifiers.
File summaries
| File | Description |
|---|---|
| spec/diagnostics.md | Registers MEDUI-E035 in the canonical diagnostic table. |
| spec/component-model.md | Specifies MEDUI-E035 behavior for unresolved image/template identifiers and clarifies what remains unassigned. |
| schemas/case.schema.json | Adds inputs.imageIds and inputs.templates collections to the case schema. |
| decisions/MEDUI-DEC-005-diagnostics-and-conformance.md | Updates semantic inputs definition to include imageIds and templates. |
| conformance/semantics/unknown-template/source.medui | New negative fixture using an unresolved template identifier. |
| conformance/semantics/unknown-template/case.json | New conformance expectation asserting MEDUI-E035 for unknown template. |
| conformance/semantics/unknown-image-id/source.medui | New negative fixture using an unresolved image ID in img("..."). |
| conformance/semantics/unknown-image-id/case.json | New conformance expectation asserting MEDUI-E035 for unknown image ID. |
Review details
- Files reviewed: 8/8 changed files
- Comments generated: 1
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
AM-L
force-pushed
the
spec/e035-unknown-resource-id
branch
from
September 7, 2026 07:21
647a2b1 to
7433b7c
Compare
ambroise-leclerc
force-pushed
the
spec/e035-unknown-resource-id
branch
from
September 7, 2026 07:27
7433b7c to
c0f7463
Compare
AM-L
force-pushed
the
spec/e035-unknown-resource-id
branch
from
September 7, 2026 07:32
c0f7463 to
49e6220
Compare
AM-L
force-pushed
the
spec/e035-unknown-resource-id
branch
from
September 7, 2026 07:36
49e6220 to
c9f6358
Compare
component-model.md made unknown image IDs and templates fatal but registered no code, so every implementation reported them under something else - a semantic failure landing in whatever phase that code belongs to. Consumers filtering diagnostics by phase got different answers from each implementation. Register MEDUI-E035 (semantics, "unknown resource identifier", kind in the message) for image and template identifiers that do not resolve. The case schema gains imageIds and templates inputs collections, mirroring themeTokens, so a case can declare what resolves before asserting what does not; MEDUI-DEC-005 and the validator follow. charset and an unknown screen layout kind stay unassigned, with the open questions recorded in component-model.md. Cases: conformance/semantics/unknown-image-id, unknown-template.
AM-L
force-pushed
the
spec/e035-unknown-resource-id
branch
from
September 7, 2026 07:38
c9f6358 to
640430a
Compare
Follow-up to review on PR #21. spec/component-model.md refers to fields as bare names (format, on_press, position); template: with a colon read as part of the identifier.
Contributor
Author
|
Addressed in |
AM-L
approved these changes
Sep 7, 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.
Closes #3 (partially — see below).
spec/component-model.mdmade unknown image IDs and templates fatal but registered no code, so every implementation reported them under something else — a semantic failure landing in whatever phase that code belongs to, so a consumer filtering diagnostics by phase got different answers from each implementation.MEDUI-E035(semantics) — unknown resource identifier, kind named in the message — forimg("ID")andtemplate:identifiers that do not resolve.schemas/case.schema.jsongainsimageIdsandtemplatesinputscollections, mirroringthemeTokens, so a case can declare what resolves before asserting what does not.MEDUI-DEC-005and the validator follow.conformance/semantics/unknown-image-id,conformance/semantics/unknown-template.Still deferred, with the reason recorded in
component-model.md:charset(no charset model / charset-package inputs yet) and an unknown screenlayoutkind (open whether it is a closed named value or a grammar production).MEDUI-DEC-006already handledformat/on_press→E034.Adds a conformance outcome → 0.2.0 candidate line.
Validation:
python3 tools/validate.py→ OK (20 cases, 26 diagnostics). Columns verified against the fixtures.Stacked on #20.