Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aien-architecture-mv/blob/main/docs/adr/0010-canary-observations-are-measurements.md # aien-architecture-mv Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aien-architecture-mv / docs / adr / 0010-canary-observations-are-measurements.md` 15 lines ยท 1607 bytes Raw Blame History Rendered 1 # ADR 0010: Canary Observations Are Measurements 2 3 **Status:** Accepted 4 5 ## Context 6 7 The promotion path can fill a canary quota with caller-supplied success and latency, then sign the result. A signature over that record is easy to read as production evidence. 8 9 ## Decision 10 11 A canary observation is a measured result of executing a candidate. A qualifying observation carries an observation id, the time it was observed, the candidate's artifact digest, a latency measured from that execution, and the status that execution returned. A new observation id is stored and counts once toward the production quota. The same id with the same canonical observation record is an idempotent success and does not count again. The same id with a different record is a conflict and does not count. Identity of the record is a canonical digest of that observation. A safety envelope is a signed wrapper. A signature can authenticate an observation. It cannot make a rehearsal into an observation. A synthetic rehearsal may use the same shape and carries provenance that makes it ineligible for the production quota. Production promotion rejects a quota satisfied by synthetic rehearsal. 12 13 ## Consequences 14 15 Supervisor tests may keep a synthetic rehearsal loop. That loop cannot satisfy production promotion. The canonical record is one JSON object of every field, with keys in alphabetical order and no insignificant whitespace. `observed_at_ms` is a count of unix milliseconds. The digest is SHA-256 of those bytes. The same digest is an idempotent success. A different digest under the same observation id is a conflict.