provisioning: provision-active-and-partial — per-service health gate, active and active-for-what-works #73
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
#79 provisioning: provision-change-node — re-provision an active node with a delta impact
Matou/idss
#80 monitoring: status-surface-classifier — always-current fleet status, severity by rule
Matou/idss
Reference
Matou/idss#73
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
Feature spec: #17 (provisioning).
What to build
The health gate that turns a finished deploy into an object-state, driven by the
provisionorchestrator seam. Health checks run per service (ADR 0061); acatalogue port ships its own
HealthCheckandprovisiongates on it per servicewithout knowing what the service does. When every service passes, P4-S5 shows the
device active with its role and all its services, and monitoring (P5) picks it
up. When the deploy succeeded but one service fails its health check, P4-S5x shows
the device active — a service failed: active for the passing services, nothing
rolls back, and the failed service is named with its failure ("dry-run could not
write to tōtara") and offered Retry or Remove. This is a first-class state, not a
degradation.
The binding safety invariant lives here: a service that has not passed its health
check contributes no coverage anywhere — when coverage is computed anywhere,
Backups overview included, that service contributes nothing and the data it was
meant to protect still shows as an open gap. And the failed service is carried into
monitoring as a standing fault, not silently forgotten after setup.
Notes: this slice builds the per-service health model and the active /
active-service-failed states that monitoring and backups read (their edges point
here). Flow:
docs/ux/flows/p4-provisioning.mermaid.Acceptance criteria
Blocked by
Task manifest
Done in
d7eb13a(on main).The S4 → S5 / S5x edges at the ADR 0058 seam. A finished deploy — both clan hot paths — appends the streamed
Health checks — one per serviceP4-S4 row and runs each selected service's port-suppliedHealthCheckindependently (ADR 0061/0062; newPortsface viaWithPorts, and the check ridesConfig.AttachServiceas the port's third part), landing a standingOutcome:Handoffs()hands it to monitoring.clan.Rollback, every deploy step done), the failed service is named with the port's own summary ("dry-run could not write to tōtara") and offered Retry (RetryServicere-runs the one check; a pass clears the fault and upgrades to plain active) and Remove (S5x → S2, back to Select with the failed service left unticked).Orchestrator.Healthy(device, service)is the default-deny bit coverage consults anywhere — failed, ungated and unknown all read false; the shared fleet-state/coverage reader still names the gap ("Chat still has no backup."), and the newPortalLinksface publishes only health-passed services.Handoffs()carries the failed service as a standing fault, never silently forgotten; a deploy-itself failure leaves no active record at all.Evidence:
internal/provision/health.go+health_test.go(9 seam tests over per-service check fakes, the fake fleet-state/coverage reader, and the portal fake); dashboardActiveScreen.vueships P4-S5/S5x to the wireframes' element contract (services-health,no-coverage-claim,retry-service/remove-service/open-logs), wired intoSetupSurface—tests/unit/provisionActive.test.ts(8 tests). Full Go suite + dashboard vitest (274/274), vue-tsc and eslint green. STATUS.md updated in the same commit.Out of scope honoured: monitoring's steady-state watching, backups' own surfaces (they read
Healthy()/Handoffs()— their edges point here), and stories 18–20 (provision-change-node).