Skip to content

Register MEDUI-E035 for an unknown image or template identifier - #21

Merged
AM-L merged 2 commits into
mainfrom
spec/e035-unknown-resource-id
Sep 7, 2026
Merged

AM-L merged 2 commits into
mainfrom
spec/e035-unknown-resource-id

Conversation

@ambroise-leclerc

Copy link
Copy Markdown
Contributor

Closes #3 (partially — see below).

spec/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, so a consumer filtering diagnostics by phase got different answers from each implementation.

  • Registers MEDUI-E035 (semantics) — unknown resource identifier, kind named in the message — for img("ID") and template: identifiers that do not resolve.
  • schemas/case.schema.json 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.
  • Cases: 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 screen layout kind (open whether it is a closed named value or a grammar production). MEDUI-DEC-006 already handled format/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.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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-E035 semantics in the component model and extend semantic-case inputs with imageIds and templates.
  • Add conformance cases for unknown img("...") IDs and unknown template identifiers.
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.

Comment thread spec/component-model.md Resolved
@AM-L
AM-L force-pushed the spec/e035-unknown-resource-id branch from 647a2b1 to 7433b7c Compare September 7, 2026 07:21
@ambroise-leclerc
ambroise-leclerc force-pushed the spec/e035-unknown-resource-id branch from 7433b7c to c0f7463 Compare September 7, 2026 07:27
@AM-L
AM-L force-pushed the spec/e035-unknown-resource-id branch from c0f7463 to 49e6220 Compare September 7, 2026 07:32
@AM-L
AM-L force-pushed the spec/e035-unknown-resource-id branch from 49e6220 to c9f6358 Compare September 7, 2026 07:36
Base automatically changed from spec/e054-position-fixed-dims to main September 7, 2026 07:38
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
AM-L force-pushed the spec/e035-unknown-resource-id branch from c9f6358 to 640430a Compare September 7, 2026 07:38
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.
@ambroise-leclerc

Copy link
Copy Markdown
Contributor Author

Addressed in 3d1c113: template: → template in the Resource identifiers section, matching the file's bare-field-name convention.

@AM-L
AM-L merged commit cb16e4d into main Sep 7, 2026
2 checks passed
@AM-L
AM-L deleted the spec/e035-unknown-resource-id branch September 7, 2026 08:17
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.

Five conditions component-model.md makes fatal have no registered diagnostic code

3 participants