provisioning: updates-policy-channel — update policy, auto-security-off indicator, pin-or-fork #63
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
Reference
Matou/idss#63
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 policy and channel settings of the P4b journey, driven by the
updateorchestrator seam. Update policy spans the full range so the community decides how
much is automatic (ADR 0017): security/patch and feature/major each span
apply-automatically · ask-me-first · never-apply-automatically, and the operator
can set a maintenance window (P4b-U5). Turning auto-security off is allowed — no
veto (ADR 0015) — but visible: once saved, the dashboard begins carrying a
standing, evidence-based indicator (P4b-U5x) counting how many patches are
pending, how old the oldest is, and whether the public gateway is affected.
Drilling into the indicator takes the operator to the pending patches it is
counting, and it disappears the moment auto-security is turned back on.
The auto-security-off indicator is provisioning's content rendered in shell's
chrome slot — provisioning is the first tenant of that standing-indicator slot
(ADR 0068) — so the count is read as a query over the update store, never copied
into shell. Pin-or-fork the channel is a real setting and the community's
sovereignty exit: pinning to an exact revision or pointing at a fork the community
controls stops the fleet receiving from Matou's channel — the exit is one setting
(one flake input), no support ticket.
Notes: the indicator is evidence-based — it counts rather than scolds. Flow:
docs/ux/flows/p4b-updates.mermaid.Acceptance criteria
Blocked by
Task manifest
Done in commit
7ef7d3f. Theupdateorchestrator's write face landed ininternal/update/(policy.go,indicator.go, tests inpolicy_test.go), built on the see-state seam (#52).Acceptance:
SetPolicy(security, feature, window):Policygrew from a binaryAutoSecurityflag to a three-wayMode(apply-automatically · ask-me-first · never-apply-automatically) for each kind-group (security/patch, feature/major) plus a maintenance window;Pollclassifies bypolicy.modeFor(kind), so "never" is genuinely reachable for security too (ADR 0017). Covered byTestSetPolicy_SecurityAndFeatureEachSpanTheFullRange.SecurityIndicator(), provisioning's content for shell's standing-indicator chrome slot (ADR 0068/0094) — a query over the store, never copied into shell — counting pending patches, oldest age in days, and gateway-affected. Drill-in names the exactRevisionsit counts; it self-clears the moment auto-security is back on. Covered byTestSetPolicy_AutoSecurityOff_IsAllowedAndRaisesTheIndicator,TestSecurityIndicator_CountsPatchesNotFeatures,TestSecurityIndicator_SelfClearsWhenAutoSecurityBackOn.SetChannel(ChannelChoice{Matou|PinnedTo|Fork}): pinning freezes the fleet (Poll receives nothing further), a fork repoints the polled channel; either way the fleet stops receiving from Matou's channel — one setting/one flake input. Covered byTestSetChannel_PinToExactRevision_StopsReceivingFromMatou,TestSetChannel_PointAtFork_ReceivesFromForkNotMatou.8 new seam tests over
FakeReleaseSource+ fake clock; the see-state slice's 6 migrated to the richer policy model.go/vet/gofmtclean.Out of scope (their own slices): shell reserving the chrome slot itself (ADR 0068 — provisioning is the first tenant supplying content), the update surface/review/rollout/rollback (#62/#70/#74).