A number that says how far behind ingest has fallen cannot travel through the queue it measures, or it would wait in the backlog it was meant to report. So the core's own signals skip the bus and go straight into the projection, though they are ordinary points like the rest. Sentinel describes itself with self-points, points under subject: self, so dashboards, rules and history work on them with nothing extra to build.
Nothing here introduces a mechanism. This part gathers what the mechanisms in the other parts must expose, names five conditions that should raise an alarm, and sets one rule: a mechanism does not ship until it says how its failure would be noticed. How an alarm reaches a person is left out on purpose: the list says what must be watchable, and nothing here delivers it yet.
What this document owns: the rule that everything the system knows about itself is a point, extended from driver health to every subsystem; why the core's self-points are injected at the projection while a driver's own self-points travel the bus; the naming scheme for self-points; where the line between a point and a trace sits; the catalogue of signals each mechanism must expose, including the self-point a suspended rule flips; the five conditions that should raise an alarm; the one constraint alert routing inherits; the rule that a mechanism ships with its signals; and the test that keeps the catalogue and the registry in step. It does not own the mechanisms behind the signals, which belong to the documents each table names; driver health as points, which Driver Contract established first; or the policy of the diagnostic retention class that self-points default to, which belongs to Retention & Compaction. Alert routing and notification delivery are not defined anywhere in this specification.
Everything the system knows about itself is a point
Driver Contract established this for driver health, and this document extends it to everything: internal signals are points under subject: self, with descriptors, quality, freshness policies and history like any other point.
The payoff is that no second observability stack exists. Dashboards, rules, alerting, retention and the history API all work on internal signals for free, and the ingest path is exercised constantly by the system's own telemetry rather than only by devices.
Core self-points are injected at the projection, not published to obs.*. This matters and is easy to get wrong: a signal describing ingest lag cannot travel through the queue it is describing. Driver-plane self-points go over the bus like any observation, because a driver reporting on itself is subject to the same path as its data. Core-plane self-points bypass it, so they remain observable precisely when the bus path is degraded.
Naming: {subsystem}.{instance}.{signal} — driver.boiler-relay.poll-latency, core.main.ingest-lag, cmd.boiler.ch1.pump.convergence. Subsystem segments are driver, core, cmd, rule. In the catalogue below, {i} stands for a driver instance, {n} for the core instance, {point} for a writable point, {id} for a rule and {class} for a retention class.
Points are not traces. A tracing backend carries spans, exceptions and request-level debugging; points carry the system's own state over time. A number that a rule might trigger on, or that would be worth seeing a week later, is a point. A stack trace, a slow query, or the shape of one request is a trace. Duplicating between them means two sources that disagree.
Self-points default to the diagnostic retention class, which is what makes it affordable to have seven hundred of them. See Retention & Compaction.
The catalogue
This is what must exist. Each table's heading names the document that defines the mechanism behind it.
Driver plane — Driver Contract
| signal | notes |
|---|---|
driver.{i}.state | lifecycle: connecting / connected / ready / degraded |
driver.{i}.heartbeat | instance liveness; its staleness is how a silently dead driver is caught |
driver.{i}.reconnects | a rising count is a failing transport or a flapping device |
driver.{i}.poll-latency | per-instance; degradation here precedes staleness everywhere downstream |
driver.{i}.queue-depth | local disk buffer; non-zero means the bus is unreachable or full |
driver.{i}.dropped | buffer overflow count — the one place in the system where data is deliberately lost |
driver.{i}.stale-epoch-rejects | commands refused by fencing; should be zero, and is a split-brain indicator |
Ingest — Ingest Path & Log Schema, Core Runtime
| signal | notes |
|---|---|
core.{n}.ingest-lag | consumer pending count; the primary saturation signal |
core.{n}.oldest-unacked-age | the other half of lag, and the one that maps to tolerable outage |
core.{n}.ingest-rate | observations per second, against the design figure |
core.{n}.staleness-suppressed | whether the watchdog is currently withholding staleness |
core.{n}.quarantine-arrivals | new unregistered point IDs; a discovery signal and a misconfiguration signal |
core.{n}.wrong-instance-rejects | a driver publishing for a point it does not own — see Security Model |
core.{n}.unit-mismatch-rate | registry disagreeing with a self-describing source |
core.{n}.bad-rate | observations failing validation, by reason |
core.{n}.skew-flagged-rate | device clocks drifting against observed_at |
Core runtime — Core Runtime
| signal | notes |
|---|---|
core.{n}.epoch | current fencing epoch; increments only on lock acquisition |
core.{n}.uptime | with restart count, the shape of a crash loop |
core.{n}.cold-start-duration | broken down by startup step |
core.{n}.rehydration-duration | the term that grows with the rule set rather than the fleet |
State and derivation — Watchdog & Derived Points
| signal | notes |
|---|---|
core.{n}.points-by-quality | count per quality state; the single most useful dashboard number |
core.{n}.flapping-points | points crossing live/stale repeatedly |
core.{n}.derived-eval-latency | how long a transition batch takes to settle |
Command plane — Command Plane
| signal | notes |
|---|---|
cmd.{point}.convergence | per writable point; the enum, not a boolean |
cmd.{point}.queue-depth | depth above one or two is itself a signal |
core.{n}.command-latency | from the elapsed time carried on terminal states |
core.{n}.commands-by-outcome | accepted / rejected / failed / timeout |
core.{n}.diverged-count | points where reconciliation gave up |
core.{n}.undeliverable-count | claims waiting on an unreachable target |
Rules — Rules Engine
| signal | notes |
|---|---|
rule.{id}.suspended | tripped the evaluation limit |
rule.{id}.evaluations | per window, against the limit |
core.{n}.claim-changes | per point per window, across all rules |
Storage and compaction — Retention & Compaction
| signal | notes |
|---|---|
core.{n}.raw-rows.{class} | row count and on-disk size per retention class; the three behave nothing alike |
core.{n}.oldest-raw-chunk-age.{class} | against that class's configured retention |
core.{n}.compaction-last-run | state-class compaction; the one operation with no native equivalent |
core.{n}.compaction-rows-removed | unchanged state rows deleted on the last run |
core.{n}.rollup-refresh-lag | how far behind the continuous aggregates are |
core.{n}.disk-free | against total, because this is what triggers a retention change |
Disk and per-class volume keep the derived-window guard in Watchdog & Derived Points from being a surprise. Disk pressure is the reason retention gets shortened, and shortening retention is what the guard refuses. Watching the disk shows that clash coming.
What should raise an alarm
The list is short by design. An alert list nobody trusts is worse than none, and the fastest way to get there is to alert on everything above.
- An interlock claim that is
divergedorundeliverablepast its bound. Protection believed to be in place and not in place. The loudest thing this system can say. - Sustained ingest lag. Not a spike — sustained past the point where staleness suppression engages, because the system is then flying on delayed data and has stopped reporting device staleness.
- A driver dropping from its local queue. Data loss in progress, and the only place it happens by design.
- Core restart loop. Repeated epoch increments in a short window, which also catches two instances fighting over the lock.
- Disk approaching the retention envelope. Because the remedy is a config change that has its own load-time guard, and making it under pressure is how the guard gets bypassed.
Everything else in the catalogue is for dashboards and for the question "what changed" after something else has already gone wrong.
Alert routing is out of scope
kind: notify with a channel name gets one line in Rules Engine, and both escalation paths — interlock divergence and undeliverable protective claims — assume a mechanism that this specification does not define. Until it exists, the list above is a specification of what must be watchable, not a description of anything wired up.
The one constraint that future routing work inherits: alerting is a consumer of state.> and of the points catalogued here, running outside the core so that it survives the core being down. Alerting that lives inside the core cannot report the core's absence, which is the failure it most needs to report.
The rule this document exists to enforce
A mechanism does not ship without saying how its failure would be noticed. Every entry above was written after its mechanism was designed, which is why several of them were missing from the documents that define those mechanisms and why disk usage had no owner at all. New mechanisms add their signals here in the same commit.
Exit criteria
There is one test, and it is the one that keeps this document honest rather than aspirational:
Every signal in the catalogue above exists in the registry, and every self point in the registry appears in the catalogue. Both directions. A missing signal means a mechanism shipped without instrumentation; an unlisted point means the catalogue has stopped being the specification and started being a stale copy.
Two smaller checks are worth having alongside it:
- Core self-points survive a degraded bus. Stall the observation stream and assert that
core.{n}.ingest-lagstill updates, because a lag signal that travels through the backlog it describes is worse than no signal at all. - Alert conditions fire in a fixture. The five conditions above each have a scenario that triggers them, run in CI. They cannot be tested end to end until routing exists, but the condition evaluating correctly is testable now, and it is the half that will still be there when routing is chosen.
On Monday - the Dev Diary. The latest on where the specification and the build disagree as the system takes shape, and which of the two had to change.
The next part - Retention & Compaction. The specification's eleventh part: a mechanism rather than a policy appendix, which constrains the log schema, the derived-point layer and the reprocess operation, and part of which cannot be deferred without a data migration.
Start of the series: An Introduction. The map, the two decisions every later document is downstream of, and why a specification at this scale is being published in public while the system it describes gets built.