daw_event/v1: message is the English text with the placeholders replaced #20

Closed
opened 2026-11-17 16:24:13 +01:00 by michael · 1 comment
Owner

Problem

daw_error/v1 requires message to be the canonical English text with
all placeholders already replaced from data. daw_event/v1 only says
"canonical English text" and leaves open who replaces the placeholders.
The module manager sent the text with {id} {version} in it, so a
consumer without a catalog (log, script, host fallback) showed the
unresolved placeholders.

The producer needs no language and no catalog to replace them: the
English text is its own, and it only substitutes the values it put into
data.

Scope

  • daw_event/v1: with a resource_id, message is the canonical
    English text with the declared placeholders replaced from data; it
    MUST NOT contain unresolved {placeholder} syntax (same as
    daw_error/v1)
  • specification, contract.json note, changelog (draft, no version bump)
  • examples: the messages show the filled text

Acceptance criteria

  • the three contract files and the examples agree
  • companion change in DAW/daw-module-manager (it sends the filled
    message)

DAW/daw-contracts#19, DAW/daw-module-manager (companion issue)

## Problem `daw_error/v1` requires `message` to be the canonical English text with all placeholders already replaced from `data`. `daw_event/v1` only says "canonical English text" and leaves open who replaces the placeholders. The module manager sent the text with `{id} {version}` in it, so a consumer without a catalog (log, script, host fallback) showed the unresolved placeholders. The producer needs no language and no catalog to replace them: the English text is its own, and it only substitutes the values it put into `data`. ## Scope - `daw_event/v1`: with a `resource_id`, `message` is the canonical English text with the declared placeholders replaced from `data`; it MUST NOT contain unresolved `{placeholder}` syntax (same as `daw_error/v1`) - specification, contract.json note, changelog (draft, no version bump) - examples: the messages show the filled text ## Acceptance criteria - [ ] the three contract files and the examples agree - [ ] companion change in DAW/daw-module-manager (it sends the filled message) ## Related DAW/daw-contracts#19, DAW/daw-module-manager (companion issue)
Author
Owner

Implemented on main

Commits: b6094a6

Pushed. Follow-up points, if any, are tracked in their own issues.

## Implemented on main Commits: b6094a6 Pushed. Follow-up points, if any, are tracked in their own issues.
michael 2026-11-18 11:55:54 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DAW/daw-contracts#20
No description provided.