You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
control plane and command line accept a change to enforced with no evidence and no acknowledgment #256
The console now gates every console path to enforced behind the review's verdict and an explicit acknowledgment (#94, PR #255): the review's promotion, the fleet's Change mode for selected…, and the workload page's change…. The control plane and the command line do not:
POST /api/v1/mode-changes (internal/api/writes.go, createModeChange) and innerwall workload set-mode (cmd/innerwall/workload.go, runWorkloadSetMode) both call fleet.(*Service).ChangeMode (internal/fleet/fleet.go). It validates the request's shape and its expected count, and nothing about evidence.
ModeChangeRequest has no field for an acknowledgment, so a client cannot state one even if it wanted to.
So a workload enrolled minutes ago, with no flows and never simulated, can be enforced in one call or one command, with no verdict and no acknowledgment.
ADR-0001 (as amended 2026-10-06) records this as intended for now: the guarantee is the default and the evidence, not a server-side refusal. A server-side evidence guard is backlog in ROADMAP.md. This issue tracks that backlog item and the two ways to close it:
Leave the command line and the API as the operator's unguarded tools, and say so where they are used.set-mode's help and usage line, and the POST /mode-changes description in the openapi document, would state that a change to enforced is not checked against any evidence. docs/reference/innerwall-cli.md and the promotion guide already say so in prose. This is cheap and keeps automation simple. It leaves the gate in the console only.
Carry an acknowledgment through the API.ChangeMode would compute, for a change to enforced, whether each workload it moves has evidence that supports it. That needs a domain-side composition of the verdict the console composes in ui/src/routes/review/model.ts (composeVerdict), with one definition and the console reading it, not two rules. The request would carry an explicit acknowledgment field (and set-mode a flag), and the domain would refuse an unacknowledged change past unsupported evidence with a problem that names the workloads. This is a contract change: openapi, the console's client, the command line, and an ADR (an ADR-0001 amendment at least, likely a new ADR for where the verdict is composed).
Either way, changes to visibility and simulation stay unguarded: they only loosen.
Activity