provisioning: updates-policy-channel — update policy, auto-security-off indicator, pin-or-fork #63

Closed
opened 2026-07-25 04:57:09 +00:00 by ben · 1 comment
Owner

Parent

Feature spec: #17 (provisioning).

What to build

The policy and channel settings of the P4b journey, driven by the update
orchestrator 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

  • (story 36) Given update policy, when the operator sets it, then security/patch and feature/major each span apply-automatically · ask-me-first · never-apply-automatically, and a maintenance window can be set.
  • (story 37) Given the operator turns auto-security off, when they save, then it is allowed (no veto), and the dashboard begins carrying a standing, evidence-based indicator (P4b-U5x) — how many patches are pending, how old the oldest is, and whether the public gateway is affected.
  • (story 37) Given the indicator, when the operator drills in, then it takes them to the pending patches it is counting; and it disappears the moment auto-security is turned back on.
  • (story 38) Given the channel setting, when the operator pins to an exact revision or points at a fork the community controls, then the fleet stops receiving from Matou's channel — the exit is one setting (one flake input).

Blocked by

  • #52 — policy governs the update surface
  • #29 — indicator mounts in shell's chrome slot

Task manifest

task: provisioning:updates-policy-channel
implements_flow: p4b-updates
implements_edge: U1→U5, U5→U5x, U5x→U1, U5→U1
wireframe:
  - docs/ux/wireframes/p4b-updates/p4b-u5-update-policy.html
  - docs/ux/wireframes/p4b-updates/p4b-u5x-auto-security-off.html
interface: "`update` orchestrator seam — setPolicy() spans apply-automatically · ask-me-first · never for security/patch and feature/major plus a maintenance window (ADR 0017); turning auto-security off is allowed (no veto) and supplies a standing evidence-based indicator (pending count, oldest age, gateway-affected) to shell's chrome slot (ADR 0068), drillable and self-clearing; setChannel() pins an exact revision or points at a community fork (one flake input)"
seam: "`update` orchestrator seam tests (control plane, Go) — fake channel, fake clock (the indicator's oldest-12-days evidence); asserts the policy split, auto-security-off allowed + the indicator's evidence and self-clear, and pin-or-fork stopping receipt from Matou's channel"
acceptance:
  - given: update policy
    when: the operator sets it
    then: security/patch and feature/major each span apply-automatically · ask-me-first · never-apply-automatically, and a maintenance window can be set
  - given: the operator turns auto-security off
    when: they save
    then: it is allowed (no veto) and the dashboard begins carrying a standing evidence-based indicator (P4b-U5x) — pending count, oldest age, whether the gateway is affected — drillable to the pending patches and gone the moment auto-security is turned back on
  - given: the channel setting
    when: the operator pins to an exact revision or points at a fork they control
    then: the fleet stops receiving from Matou's channel — the exit is one setting (one flake input)
depends_on: [updates-see-state, shell:ui-kit-mount-slot-contract]
out_of_scope:
  - "shell reserving the chrome slot itself — shell's obligation (ADR 0068); provisioning is the first tenant supplying content into it"
  - "story 21–35 the update surface, review, rollout and rollback — the other updates-* slices'"
needs_human_decision: []
## Parent Feature spec: #17 (provisioning). ## What to build The policy and channel settings of the P4b journey, driven by the `update` orchestrator 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 - [ ] (story 36) Given update policy, when the operator sets it, then security/patch and feature/major each span apply-automatically · ask-me-first · never-apply-automatically, and a maintenance window can be set. - [ ] (story 37) Given the operator turns auto-security off, when they save, then it is allowed (no veto), and the dashboard begins carrying a standing, evidence-based indicator (P4b-U5x) — how many patches are pending, how old the oldest is, and whether the public gateway is affected. - [ ] (story 37) Given the indicator, when the operator drills in, then it takes them to the pending patches it is counting; and it disappears the moment auto-security is turned back on. - [ ] (story 38) Given the channel setting, when the operator pins to an exact revision or points at a fork the community controls, then the fleet stops receiving from Matou's channel — the exit is one setting (one flake input). ## Blocked by - #52 — policy governs the update surface - #29 — indicator mounts in shell's chrome slot ## Task manifest ```yaml task: provisioning:updates-policy-channel implements_flow: p4b-updates implements_edge: U1→U5, U5→U5x, U5x→U1, U5→U1 wireframe: - docs/ux/wireframes/p4b-updates/p4b-u5-update-policy.html - docs/ux/wireframes/p4b-updates/p4b-u5x-auto-security-off.html interface: "`update` orchestrator seam — setPolicy() spans apply-automatically · ask-me-first · never for security/patch and feature/major plus a maintenance window (ADR 0017); turning auto-security off is allowed (no veto) and supplies a standing evidence-based indicator (pending count, oldest age, gateway-affected) to shell's chrome slot (ADR 0068), drillable and self-clearing; setChannel() pins an exact revision or points at a community fork (one flake input)" seam: "`update` orchestrator seam tests (control plane, Go) — fake channel, fake clock (the indicator's oldest-12-days evidence); asserts the policy split, auto-security-off allowed + the indicator's evidence and self-clear, and pin-or-fork stopping receipt from Matou's channel" acceptance: - given: update policy when: the operator sets it then: security/patch and feature/major each span apply-automatically · ask-me-first · never-apply-automatically, and a maintenance window can be set - given: the operator turns auto-security off when: they save then: it is allowed (no veto) and the dashboard begins carrying a standing evidence-based indicator (P4b-U5x) — pending count, oldest age, whether the gateway is affected — drillable to the pending patches and gone the moment auto-security is turned back on - given: the channel setting when: the operator pins to an exact revision or points at a fork they control then: the fleet stops receiving from Matou's channel — the exit is one setting (one flake input) depends_on: [updates-see-state, shell:ui-kit-mount-slot-contract] out_of_scope: - "shell reserving the chrome slot itself — shell's obligation (ADR 0068); provisioning is the first tenant supplying content into it" - "story 21–35 the update surface, review, rollout and rollback — the other updates-* slices'" needs_human_decision: [] ```
Author
Owner

Done in commit 7ef7d3f. The update orchestrator's write face landed in internal/update/ (policy.go, indicator.go, tests in policy_test.go), built on the see-state seam (#52).

Acceptance:

  • story 36 — SetPolicy(security, feature, window): Policy grew from a binary AutoSecurity flag to a three-way Mode (apply-automatically · ask-me-first · never-apply-automatically) for each kind-group (security/patch, feature/major) plus a maintenance window; Poll classifies by policy.modeFor(kind), so "never" is genuinely reachable for security too (ADR 0017). Covered by TestSetPolicy_SecurityAndFeatureEachSpanTheFullRange.
  • story 37 — turning auto-security off is allowed, no veto (ADR 0015); the consequence is 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 exact Revisions it counts; it self-clears the moment auto-security is back on. Covered by TestSetPolicy_AutoSecurityOff_IsAllowedAndRaisesTheIndicator, TestSecurityIndicator_CountsPatchesNotFeatures, TestSecurityIndicator_SelfClearsWhenAutoSecurityBackOn.
  • story 38 — 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 by TestSetChannel_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/gofmt clean.

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).

Done in commit `7ef7d3f`. The `update` orchestrator's write face landed in `internal/update/` (`policy.go`, `indicator.go`, tests in `policy_test.go`), built on the see-state seam (#52). **Acceptance:** - **story 36** — `SetPolicy(security, feature, window)`: `Policy` grew from a binary `AutoSecurity` flag to a three-way `Mode` (apply-automatically · ask-me-first · never-apply-automatically) for **each** kind-group (security/patch, feature/major) plus a maintenance window; `Poll` classifies by `policy.modeFor(kind)`, so "never" is genuinely reachable for security too (ADR 0017). Covered by `TestSetPolicy_SecurityAndFeatureEachSpanTheFullRange`. - **story 37** — turning auto-security off is allowed, no veto (ADR 0015); the consequence is `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 exact `Revisions` it counts; it self-clears the moment auto-security is back on. Covered by `TestSetPolicy_AutoSecurityOff_IsAllowedAndRaisesTheIndicator`, `TestSecurityIndicator_CountsPatchesNotFeatures`, `TestSecurityIndicator_SelfClearsWhenAutoSecurityBackOn`. - **story 38** — `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 by `TestSetChannel_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`/`gofmt` clean. 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).
ben closed this issue 2026-07-25 12:09:19 +00:00
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#63
No description provided.