examples and sentinel: three mismatches found in a review #23

Closed
opened 2026-11-17 19:45:26 +01:00 by michael · 1 comment
Owner

Problem

A review of the contracts found three small things that do not match
what the contracts themselves say:

  1. the valid example daw_error/v1/valid/error-with-cell-id-and-resource
    has {path} unresolved in message, although message must not
    contain unresolved placeholders when a resource_id is present
  2. three examples of daw_event_response/v1 use
    berhtjan.cli.terminal-2 as source; source is the type of a cell,
    an instance is told apart by cell_id
  3. daw_i18n/v1 section 5 does not state what is already decided for
    placeholders (no escape form, a single pass, a missing value is an
    error); daw_error/v1 does not define the sentinel id of
    DAW/daw-contracts#11

Scope

  • fix the three examples
  • daw_i18n/v1 section 5: state the decided points; name form and the
    treatment of a stray brace stay open in DAW/daw-contracts#18
  • daw_error/v1: section on the sentinel id with scope, minimal object
    and an example (DAW/daw-contracts#11)
  • changelogs (draft, no version bump)

Acceptance criteria

DAW/daw-contracts#11, DAW/daw-contracts#18, DAW/daw-contracts#22

## Problem A review of the contracts found three small things that do not match what the contracts themselves say: 1. the valid example `daw_error/v1/valid/error-with-cell-id-and-resource` has `{path}` unresolved in `message`, although `message` must not contain unresolved placeholders when a `resource_id` is present 2. three examples of `daw_event_response/v1` use `berhtjan.cli.terminal-2` as `source`; `source` is the type of a cell, an instance is told apart by `cell_id` 3. `daw_i18n/v1` section 5 does not state what is already decided for placeholders (no escape form, a single pass, a missing value is an error); `daw_error/v1` does not define the sentinel id of DAW/daw-contracts#11 ## Scope - fix the three examples - `daw_i18n/v1` section 5: state the decided points; name form and the treatment of a stray brace stay open in DAW/daw-contracts#18 - `daw_error/v1`: section on the sentinel id with scope, minimal object and an example (DAW/daw-contracts#11) - changelogs (draft, no version bump) ## Acceptance criteria - [ ] examples agree with the rules of their contracts - [ ] DAW/daw-contracts#11 acceptance criteria met ## Related DAW/daw-contracts#11, DAW/daw-contracts#18, DAW/daw-contracts#22
Author
Owner

Implemented on main

Commits: 25938ce

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

## Implemented on main Commits: 25938ce Pushed. Follow-up points, if any, are tracked in their own issues.
michael 2026-11-18 11:56:07 +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#23
No description provided.