provision: a failed portal-link write is only a gateway log line — deploy reports green, members never get the link #293
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.
Dependencies
No dependencies set.
Reference
Matou/idss#293
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?
internal/provision/portal.go:77—ServiceUphas no error channel, so a failed portal-link write is logged and nothing else. A health-passed service goes live, deploy reports green, and members never get a portal link. The type doc (line 36) says the failure "is logged loudly, not swallowed" — accurate, but a log line on the gateway is unreachable from the operator app.Acceptance
ServiceUpgrows an error channel the deploy leg records as a non-fatal-but-visible fault on the service, or the portal ledger exposes a failed-publication state the services read renders.Filed from the 2026-08-05 fail-loud audit (three-agent pre-production sweep; findings verified against code).
Fixed in
059299b(onorigin/main).provision.PortalLinks.ServiceUpnow returns an error — theFilePortalLedgerstill logs the durable read/save fault loudly AND propagates it. The deploy leg (healthGate) records a non-fatal-but-visiblePortalFaulton the still-Healthyservice (deploy outcome unchanged: device stays active, service stays healthy), andRetryServicere-attempts a stuck publish and clears the fault on success. The fault rides theOutcome/ServiceHealththe P4-S5 surface renders and the Deploy/Retry HTTP endpoints already serialise, so it reaches where the operator looks instead of only the gateway log.Acceptance: option 1 taken (error channel → visible fault on the service). Tests:
internal/provision/portal_test.go(durable-write fault propagates) andinternal/provision/health_test.go(visiblePortalFaulton a failing publish, deploy unchanged; retry record-then-clear).go test/go vet/golangci-lintgreen across provision, controlapi, monitor, control-plane.