observability: monitor-front-door-observation — the existing monitoring tick records the front-door observation and raises the CERT_BAD_DAYS critical #814

Closed
opened 2026-08-25 10:59:01 +00:00 by matou-build-agent · 2 comments

Parent

Feature spec: #792 — control-panel observability child spec: network (P11) (DDR 0204).
Design ticket #761; slice-map fan-in #770; wayfinder map #7.
Slice monitor-front-door-observation of docs/slices/observability.yaml; covers spec #792 stories 28–40 (observation + raise half), 48–50.

What to build

No new loop, store or collector class (DDR 0204's grill decision 8). The certificate read and
the front-door probe ride the existing monitoring tick — monitoring is already ADR 0161's
re-run cadence and already the raise path for both the ADR 0136 heartbeat fault and the ADR 0141
port fault — so an observation and the alert that grades it come from one place and cannot
disagree
.

Each tick records the latest front-door observation (certificates + probe) with its timestamps and
the probe's vantage. An observation older than its cadence is marked aged so the read family
can render unknown — the classification of "aged" lives in the projection, once, and never in a
component.

At CERT_BAD_DAYS (14) monitoring raises a critical alert whose diagnosis carries the renewal
attempts' evidence, notified through the existing alert path (ADR 0106), counted in the chrome's
raised-alert slot and listed in Overview's needs-attention queue as one of monitoring's own raised
alerts — no new needs-attention owner list is added. Grading and raising read the same
shared constants as the surface's grade, so an amber row and a critical alert can never disagree
about where the threshold is.

Acceptance criteria

  • (story 48) Given the control plane's existing monitoring tick, when it runs, then it records the latest front-door observation (certificates and probe) with its timestamp and the probe's vantage — no new loop, store or collector class is added.
  • (story 48) Given an observation older than its cadence, then it is marked aged so the read family can render unknown — the ageing classification lives here/in the projection, once.
  • (story 33) Given a served certificate crossing CERT_BAD_DAYS, when monitoring next classifies, then it raises a critical alert whose diagnosis carries the renewal attempts' evidence, notified through the existing alert path (ADR 0106).
  • (story 33) Given that raised alert, then it is counted in the chrome's raised-alert slot and listed in Overview's needs-attention queue as one of monitoring's own raised alerts — no new needs-attention owner list is added.
  • (decisions) Given monitoring's certificate raise, then it reads CERT_BAD_DAYS through the same shared source the surface's grade reads.
  • (story 47) Given a deployment with no available vantage, then the recorded observation says so — no open, no closed, and no unknown-that-implies-a-check-ran.
  • (story 38) Given a standing heartbeat fault and a subsequent read gap, then the fault is not cleared by the gap (the ADR 0136 amendment's rule holds at this layer).

Blocked by

  • #812 — observability:certsource-presented-leaf
  • #813 — observability:broker-front-door-probe
  • monitoring:status-surface-classifier (#80 — done, satisfied)
  • monitoring:notify-and-drill (#84 — done, satisfied)

Task manifest

task: observability:monitor-front-door-observation
interface: 'the existing monitoring tick gains a front-door observation step: read the certificate source,
  call the broker probe, record the latest observation (facts + timestamps + vantage, or the no-vantage
  limit) and mark it aged past cadence; plus a `CERT_BAD_DAYS` critical raise carrying the renewal attempts''
  evidence'
seam: 'Go monitoring tests (prior art `monitor_test.go`, `heartbeat_test.go`): the tick records the observation
  with timestamps and vantage; ageing at the cadence boundary; no-vantage recorded as a stated limit;
  the critical raised exactly at `CERT_BAD_DAYS` reading the shared constant, carrying the attempts''
  evidence and riding the existing alert path; a read gap never clearing a standing fault'
acceptance:
- given: the existing monitoring tick
  when: it runs
  then: the latest certificate and probe observation is recorded with timestamps and vantage — no new
    loop or collector class exists
- given: an observation older than its cadence
  when: the tick classifies
  then: it is marked aged
- given: a served certificate crossing 14 days left
  when: monitoring next classifies
  then: a critical alert is raised carrying the renewal attempts' evidence, through the existing alert
    path
- given: a deployment with no broker relationship
  when: the tick runs
  then: the observation records the stated limit — no `open` and no `closed` is invented
- given: a standing heartbeat fault followed by a read gap
  when: the tick runs
  then: the fault is not cleared by the gap
depends_on:
- certsource-presented-leaf
- broker-front-door-probe
- monitoring:status-surface-classifier
- monitoring:notify-and-drill
out_of_scope:
- a new collection loop, store or collector class
- the read family and its route (`transport-network-read`)
- any renew/re-point/re-ask lever
- a live own-domain registrar check (no loop reads own-domain DNS — ADR 0136's accepted split)
- 'building the portmap seam (ADR 0141, #331)'
needs_human_decision: []

Emitted by /to-tickets over docs/slices/observability.yaml in an unattended session under ADR 0174 (two-way-door posture — Ben's veto is asynchronous, never blocking). Advances #797.

## Parent Feature spec: **#792** — control-panel observability child spec: network (P11) (DDR 0204). Design ticket #761; slice-map fan-in **#770**; wayfinder map #7. Slice `monitor-front-door-observation` of `docs/slices/observability.yaml`; covers spec #792 stories 28–40 (observation + raise half), 48–50. ## What to build **No new loop, store or collector class** (DDR 0204's grill decision 8). The certificate read and the front-door probe ride the **existing monitoring tick** — monitoring is already ADR 0161's re-run cadence and already the raise path for both the ADR 0136 heartbeat fault and the ADR 0141 port fault — so an observation and the alert that grades it come from **one place and cannot disagree**. Each tick records the latest front-door observation (certificates + probe) with its timestamps and the probe's **vantage**. An observation older than its cadence is marked aged so the read family can render *unknown* — the classification of "aged" lives in the projection, once, and never in a component. At `CERT_BAD_DAYS` (14) monitoring raises a **critical** alert whose diagnosis carries the renewal attempts' evidence, notified through the existing alert path (ADR 0106), counted in the chrome's raised-alert slot and listed in Overview's needs-attention queue as one of monitoring's own raised alerts — **no new needs-attention owner list is added**. Grading and raising read the **same** shared constants as the surface's grade, so an amber row and a critical alert can never disagree about where the threshold is. ## Acceptance criteria - [ ] (story 48) Given the control plane's existing monitoring tick, when it runs, then it records the latest front-door observation (certificates and probe) with its timestamp and the probe's vantage — **no new loop, store or collector class is added**. - [ ] (story 48) Given an observation older than its cadence, then it is marked aged so the read family can render unknown — the ageing classification lives here/in the projection, once. - [ ] (story 33) Given a served certificate crossing `CERT_BAD_DAYS`, when monitoring next classifies, then it raises a **critical** alert whose diagnosis carries the renewal attempts' evidence, notified through the existing alert path (ADR 0106). - [ ] (story 33) Given that raised alert, then it is counted in the chrome's raised-alert slot and listed in Overview's needs-attention queue as one of monitoring's own raised alerts — **no new needs-attention owner list is added**. - [ ] (decisions) Given monitoring's certificate raise, then it reads `CERT_BAD_DAYS` through the **same shared source** the surface's grade reads. - [ ] (story 47) Given a deployment with **no available vantage**, then the recorded observation says so — no `open`, no `closed`, and no unknown-that-implies-a-check-ran. - [ ] (story 38) Given a standing heartbeat fault and a subsequent read gap, then the fault is not cleared by the gap (the ADR 0136 amendment's rule holds at this layer). ## Blocked by - #812 — `observability:certsource-presented-leaf` - #813 — `observability:broker-front-door-probe` - `monitoring:status-surface-classifier` (#80 — done, satisfied) - `monitoring:notify-and-drill` (#84 — done, satisfied) ## Task manifest ```yaml task: observability:monitor-front-door-observation interface: 'the existing monitoring tick gains a front-door observation step: read the certificate source, call the broker probe, record the latest observation (facts + timestamps + vantage, or the no-vantage limit) and mark it aged past cadence; plus a `CERT_BAD_DAYS` critical raise carrying the renewal attempts'' evidence' seam: 'Go monitoring tests (prior art `monitor_test.go`, `heartbeat_test.go`): the tick records the observation with timestamps and vantage; ageing at the cadence boundary; no-vantage recorded as a stated limit; the critical raised exactly at `CERT_BAD_DAYS` reading the shared constant, carrying the attempts'' evidence and riding the existing alert path; a read gap never clearing a standing fault' acceptance: - given: the existing monitoring tick when: it runs then: the latest certificate and probe observation is recorded with timestamps and vantage — no new loop or collector class exists - given: an observation older than its cadence when: the tick classifies then: it is marked aged - given: a served certificate crossing 14 days left when: monitoring next classifies then: a critical alert is raised carrying the renewal attempts' evidence, through the existing alert path - given: a deployment with no broker relationship when: the tick runs then: the observation records the stated limit — no `open` and no `closed` is invented - given: a standing heartbeat fault followed by a read gap when: the tick runs then: the fault is not cleared by the gap depends_on: - certsource-presented-leaf - broker-front-door-probe - monitoring:status-surface-classifier - monitoring:notify-and-drill out_of_scope: - a new collection loop, store or collector class - the read family and its route (`transport-network-read`) - any renew/re-point/re-ask lever - a live own-domain registrar check (no loop reads own-domain DNS — ADR 0136's accepted split) - 'building the portmap seam (ADR 0141, #331)' needs_human_decision: [] ``` --- *Emitted by `/to-tickets` over `docs/slices/observability.yaml` in an unattended session under ADR 0174 (two-way-door posture — Ben's veto is asynchronous, never blocking). Advances #797.*
Author
Member

swarm-claim host=elitebook-distributed-server-03 run=10067
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=10067 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

close-report for #814 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 814,
  "status": "success",
  "commits": [
    "66c2623cd55dda757dfb368f17d533e109b7a761"
  ],
  "changed_files": [
    "STATUS.md",
    "control-plane/cmd/control-plane/whole_composition.go",
    "internal/certgrade/certgrade.go",
    "internal/certgrade/certgrade_test.go",
    "internal/monitor/frontdoor.go",
    "internal/monitor/frontdoor_test.go",
    "internal/monitor/monitor.go",
    "internal/monitor/notify.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/monitor/... ./internal/certgrade/...",
      "exit_code": 0
    },
    {
      "command": "go test ./internal/... ./control-plane/...",
      "exit_code": 0
    },
    {
      "command": "go vet ./internal/monitor/... ./internal/certgrade/... ./control-plane/cmd/control-plane/...",
      "exit_code": 0
    },
    {
      "command": "go build ./... (pre-push Go CI gate)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "(story 48) the existing monitoring tick records the latest front-door observation (certificates and probe) with its timestamp and the probe's vantage — no new loop, store or collector class": "internal/monitor/frontdoor.go: the front-door read rides the existing Tick (monitor.go), records into frontDoorRecord (held beside the standing-alert set, no new store), FrontDoorObservation() carries certs + probe + vantage + observed-at. Test TestFrontDoor_TickRecordsObservationWithVantage in frontdoor_test.go asserts recorded certs, vantage, observed-at.",
    "(story 48) an observation older than its cadence is marked aged so the read family can render unknown — the ageing classification lives in the projection, once": "FrontDoorObservation() classifies Aged/ProbeAged once against o.clock (FrontDoorStaleAfter=40m); no component computes a duration. Test TestFrontDoor_AgesAtCadenceBoundary asserts not-aged just under the boundary, aged just past it, last-good retained.",
    "(story 33) a served certificate crossing CERT_BAD_DAYS raises a critical whose diagnosis carries the renewal attempts' evidence, notified through the existing alert path (ADR 0106)": "frontDoorSeeds() raises a SeverityCritical via o.raise -> notifySeed -> deliver (existing path), originCert diagnosis in notify.go carries host/days-left/expiry/'automatic renewal keeps retrying'. Test TestFrontDoor_CertBadDaysRaisesCriticalWithEvidence asserts critical on both channels with the evidence.",
    "(story 33) that raised alert is counted in the chrome's raised-alert slot and Overview's needs-attention as one of monitoring's own raised alerts — no new needs-attention owner list": "The cert critical is a standing Alert in o.alerts (frontDoorSeeds -> o.raise), so it is a projection of StandingAlerts exactly like every other raised alert — the chrome slot and Overview needs-attention read StandingAlerts; no new owner list added (frontdoor.go adds only to o.alerts/o.origins).",
    "(decisions) monitoring's certificate raise reads CERT_BAD_DAYS through the same shared source the surface's grade reads": "New internal/certgrade package (CertBadDays=14) is the single shared Go source; frontDoorSeeds and the (future) read family both read certgrade.GradeDaysLeft/DaysLeft. Test TestFrontDoor_RaiseReadsSharedThreshold asserts the raise boundary is exactly certgrade.CertBadDays; certgrade_test.go proves the grade boundaries.",
    "(story 47) a deployment with no available vantage records the stated limit — no open, no closed, and no unknown-that-implies-a-check-ran": "A nil FrontDoorProbe (no broker relationship) records HasVantage=false, Probe=nil, Vantage=''. Test TestFrontDoor_NoVantageStatedLimit asserts no vantage/probe invented while the certificate section still reads.",
    "(story 38) a standing heartbeat fault and a subsequent read gap — the fault is not cleared by the gap (the ADR 0136 amendment's rule holds at this layer)": "foldFrontDoor keeps the last-good leaf on a read gap (freezes lastGood, ages) so frontDoorSeeds still classifies the standing critical live and it is never cleared; a genuine renewal (fresh leaf) does clear it. Test TestFrontDoor_ReadGapNeverClearsStandingFault asserts the critical survives the gap and clears on renewal; TestFrontDoor_ProbeErrorKeepsLastGoodAndAges asserts the same rule for the probe."
  },
  "summary": "The existing monitoring tick now records the front-door observation (certificates + probe + vantage, or the no-vantage stated limit), ages it in the projection, and raises the CERT_BAD_DAYS critical with the renewal attempts' evidence through the existing alert path, reading the threshold from a shared certgrade source.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #814 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 814, "status": "success", "commits": [ "66c2623cd55dda757dfb368f17d533e109b7a761" ], "changed_files": [ "STATUS.md", "control-plane/cmd/control-plane/whole_composition.go", "internal/certgrade/certgrade.go", "internal/certgrade/certgrade_test.go", "internal/monitor/frontdoor.go", "internal/monitor/frontdoor_test.go", "internal/monitor/monitor.go", "internal/monitor/notify.go" ], "tests": [ { "command": "go test ./internal/monitor/... ./internal/certgrade/...", "exit_code": 0 }, { "command": "go test ./internal/... ./control-plane/...", "exit_code": 0 }, { "command": "go vet ./internal/monitor/... ./internal/certgrade/... ./control-plane/cmd/control-plane/...", "exit_code": 0 }, { "command": "go build ./... (pre-push Go CI gate)", "exit_code": 0 } ], "criteria": { "(story 48) the existing monitoring tick records the latest front-door observation (certificates and probe) with its timestamp and the probe's vantage — no new loop, store or collector class": "internal/monitor/frontdoor.go: the front-door read rides the existing Tick (monitor.go), records into frontDoorRecord (held beside the standing-alert set, no new store), FrontDoorObservation() carries certs + probe + vantage + observed-at. Test TestFrontDoor_TickRecordsObservationWithVantage in frontdoor_test.go asserts recorded certs, vantage, observed-at.", "(story 48) an observation older than its cadence is marked aged so the read family can render unknown — the ageing classification lives in the projection, once": "FrontDoorObservation() classifies Aged/ProbeAged once against o.clock (FrontDoorStaleAfter=40m); no component computes a duration. Test TestFrontDoor_AgesAtCadenceBoundary asserts not-aged just under the boundary, aged just past it, last-good retained.", "(story 33) a served certificate crossing CERT_BAD_DAYS raises a critical whose diagnosis carries the renewal attempts' evidence, notified through the existing alert path (ADR 0106)": "frontDoorSeeds() raises a SeverityCritical via o.raise -> notifySeed -> deliver (existing path), originCert diagnosis in notify.go carries host/days-left/expiry/'automatic renewal keeps retrying'. Test TestFrontDoor_CertBadDaysRaisesCriticalWithEvidence asserts critical on both channels with the evidence.", "(story 33) that raised alert is counted in the chrome's raised-alert slot and Overview's needs-attention as one of monitoring's own raised alerts — no new needs-attention owner list": "The cert critical is a standing Alert in o.alerts (frontDoorSeeds -> o.raise), so it is a projection of StandingAlerts exactly like every other raised alert — the chrome slot and Overview needs-attention read StandingAlerts; no new owner list added (frontdoor.go adds only to o.alerts/o.origins).", "(decisions) monitoring's certificate raise reads CERT_BAD_DAYS through the same shared source the surface's grade reads": "New internal/certgrade package (CertBadDays=14) is the single shared Go source; frontDoorSeeds and the (future) read family both read certgrade.GradeDaysLeft/DaysLeft. Test TestFrontDoor_RaiseReadsSharedThreshold asserts the raise boundary is exactly certgrade.CertBadDays; certgrade_test.go proves the grade boundaries.", "(story 47) a deployment with no available vantage records the stated limit — no open, no closed, and no unknown-that-implies-a-check-ran": "A nil FrontDoorProbe (no broker relationship) records HasVantage=false, Probe=nil, Vantage=''. Test TestFrontDoor_NoVantageStatedLimit asserts no vantage/probe invented while the certificate section still reads.", "(story 38) a standing heartbeat fault and a subsequent read gap — the fault is not cleared by the gap (the ADR 0136 amendment's rule holds at this layer)": "foldFrontDoor keeps the last-good leaf on a read gap (freezes lastGood, ages) so frontDoorSeeds still classifies the standing critical live and it is never cleared; a genuine renewal (fresh leaf) does clear it. Test TestFrontDoor_ReadGapNeverClearsStandingFault asserts the critical survives the gap and clears on renewal; TestFrontDoor_ProbeErrorKeepsLastGoodAndAges asserts the same rule for the probe." }, "summary": "The existing monitoring tick now records the front-door observation (certificates + probe + vantage, or the no-vantage stated limit), ages it in the projection, and raises the CERT_BAD_DAYS critical with the renewal attempts' evidence through the existing alert path, reading the threshold from a shared certgrade source.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
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.

Reference
Matou/idss#814
No description provided.