docs: CR-4 — Message-Schema-Tabelle um ttl/source/data ergaenzt

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Calic
2026-06-16 14:32:37 +00:00
parent 53384e2f37
commit 22c2f8c9c4

View File

@@ -46,6 +46,9 @@ v0.1 ships the data layer only:
| `tags` | string[] | caller (required) | Non-empty; drives routing | | `tags` | string[] | caller (required) | Non-empty; drives routing |
| `text` | string | caller (required) | Human-readable message body | | `text` | string | caller (required) | Human-readable message body |
| `severity` | string | caller / auto | `"info"` / `"warn"` / `"error"`; defaults to `"info"` | | `severity` | string | caller / auto | `"info"` / `"warn"` / `"error"`; defaults to `"info"` |
| `ttl` | number / nil | caller (optional) | Display timeout in seconds; toast mode falls back to channel/display default if unset |
| `source` | any / nil | caller (optional) | Optional source reference (e.g. originating entity) |
| `data` | table / nil | caller (optional) | Structured key/value payload; detail mode renders `msg.data.*` |
| `id` | number | auto | Monotonically increasing | | `id` | number | auto | Monotonically increasing |
| `timestamp` | number / nil | auto | `engine.time.now()` if available | | `timestamp` | number / nil | auto | `engine.time.now()` if available |