Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ Surfaces, in product order:
1. **Flow map** — the live dependency graph (ReactFlow), aggregated by label group rather than per-host, because a thousand-node hairball is not visibility. Drill-down expands groups to workloads to flows.
2. **Policy editor** — live edits with conditional writes and every admission finding shown in place, and a dry run that shows each workload's rendered change before anything is written.
3. **Simulation review** — a ruleset's would-block traffic from the workloads simulating it: "these seventeen real connections from the last week would have been denied," with the verdict, the evidence gaps, and the promotion to enforcement, which asks for an explicit acknowledgment when the verdict is not safe.
4. **Workload inventory** — registry, labels, agent health, desired-vs-actual ruleset version.
4. **Workload inventory** — registry, labels, agent health, desired-vs-actual ruleset version, and mode changes; a change to enforced from here carries the review's verdict for each workload it would move and asks for the same explicit acknowledgment when any is not safe or never simulated.
5. **Enrollment** — generate scoped, expiring, pre-labeled provisioning tokens with the copy-paste enroll command. Deliberately polished: it is the first thirty seconds of every evaluation.

## 10. Scale-out roadmap (designed, not built)
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Notable changes to Innerwall, newest first. Versions follow semantic versioning; before 1.0, a minor version may change anything.

## Unreleased

- **A change to enforced outside the simulation review shows the evidence and asks for the acknowledgment** (#94). The fleet's **Change mode for selected…** and the **change…** beside the mode on the workload page set any mode in one step, enforced included: a workload enrolled minutes earlier, with no flows and no time in simulation, could be enforced with one click, with no verdict and no acknowledgment, while the review's promotion asks for one past any verdict that is not safe. A change to enforced from either dialog now reads, for each workload it would move, the verdict the review composes for that workload alone over the review's default range (the last 24 hours), with the same reads and the same composition, and draws the review's verdict block. When every such workload's verdict is safe, the change is one step, as a promotion is. Otherwise the block counts them ("No simulation evidence for N of M selected", "Not safe to enforce for N of M selected"), lists the workloads behind each count with the review's reason, and the confirm, "Enforce anyway on N workloads", writes nothing until one acknowledgment for the selection is checked. While the evidence is read, or if it cannot be, nothing is written. The dialog stays the deliberate way to enforce what the review would not offer, such as a re-enrolled host whose previous identity earned enforcement. Changes to visibility or simulation stay one step. Console only: `innerwall workload set-mode` and `POST /api/v1/mode-changes` still accept a change to enforced with no evidence and no acknowledgment. ADR-0001 takes a dated amendment.

## v0.5.2 — an entry admits what it says, and renewal survives a suspend

One change refuses what was admitted before: an entry typed as a protocol and a separator with nothing after it (`tcp:`, `tcp/`, `udp:`, `udp/`, `icmp:`, `icmp/`) was read as every port of the protocol, or as `icmp`, and is now refused on the command line's `--entry` and in the console's entry inputs (#239). Every port is written as the bare protocol, `tcp`, as it always could be. A script that passes `--entry tcp:` or `--entry tcp/` must pass `--entry tcp` instead. Stored services and rules are unaffected, as are documents and REST bodies, which carry the protocol and its ports as separate fields. Beside it, an agent whose host was suspended across its renewal point renews at once on resume, the console reads entries and refused text as the command line and the control plane do, and the control plane's log names a credential refused past the renewal grace and says where a retired workload's stream ended.
Expand Down
3 changes: 2 additions & 1 deletion docs/adr/0001-visibility-before-enforcement.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@ All v1 milestones deliver visibility value standalone; enforcement is the second
## Consequences

- The trust barrier at install time drops to that of an observability agent.
- Every enforcement decision is offered with its evidence; "what would break" is a query, not a guess. The console's promotion refuses to proceed past an unsafe verdict or missing evidence without the operator's explicit acknowledgment. The surface and the command line accept a mode change directly, for automation, so the guarantee is the default and the evidence, not a server-side refusal; a server-side evidence guard on mode changes is recorded backlog. *(Amended 2026-10-06; see Amendments.)*
- Every enforcement decision is offered with its evidence; "what would break" is a query, not a guess. The console refuses to enforce past an unsafe verdict or missing evidence without the operator's explicit acknowledgment, whether the change starts at the simulation review's promotion or at one of the console's mode changes. The surface and the command line accept a mode change directly, for automation, so the guarantee is the default and the evidence, not a server-side refusal; a server-side evidence guard on mode changes is recorded backlog. *(Amended 2026-10-06 and 2026-11-25; see Amendments.)*
- The flow pipeline and map must be production-quality from day one — they are the product, not instrumentation.
- Revenue-of-attention risk: the project must resist becoming only a mapping tool; enforcement is the destination and stays on the roadmap's critical path.

## Amendments

- **2026-10-06 (PR #25, conformance-audit absorption; maintainer ruling).** The core discipline stands: visibility by default, simulation on the exact enforced ruleset, enforcement opt-in per workload or label scope and never a global switch. Four passages overstated the mechanism and are corrected in place. The decision said the sequence is "enforced by the platform"; what ships is visibility as every workload's starting mode, evidence surfaced at every step, and promotion operator-gated in the console behind an explicit acknowledgment when the verdict is not safe or the evidence has gaps, while the surface and the command line accept a mode change directly. Decision 1 said agents "touch nothing"; in visibility the agent installs its owned table empty, with no verdict chain. Decision 2 described policy drafts replayed against observed flows; policy is edited live with no draft, simulation is the enforced ruleset with a terminal rule that accepts and records (ADR-0020), and a dry-run render previews a hypothetical policy. The consequence that every enforcement decision is preceded by evidence is corrected to say it is offered with its evidence. A server-side evidence guard on mode changes, refusing an unacknowledged promotion at the domain layer, is recorded backlog; until it lands the console is where the gate lives, and the record says so. Maintainer ruling on PR #25: amendment, not supersession, because the platform-enforced-sequence wording overstated the mechanism while the core discipline stands. The ruling was made with the tradeoff in view: no version of the code ever refused a mode change at the domain layer, so this records what has always shipped rather than withdrawing a guarantee that existed, and the guard that would make the stronger wording true is the backlog item above.
- **2026-10-08 (PR #32, issue #30).** The core discipline stands: visibility by default, simulation on the exact enforced ruleset, enforcement opt-in per workload or label scope. Decision 1 said the visibility table holds no verdict chain and nothing is evaluated, and the 2026-10-06 note above says the table is installed empty. An empty table references no connection tracking, so on a host where nothing else did, the kernel tracked nothing and visibility collected nothing. Decision 1 is corrected in place: the table holds one observation chain whose one rule engages connection tracking and accepts. No policy is evaluated and nothing is dropped, so visibility still asks of an operator only what an observability agent does. ADR-0020 carries the chain's shape and the decision that visibility logs nothing.
- **2026-11-25 (issue #94).** Additive detail; the decision and the backlog item stand. The console's acknowledgment gate covered only the simulation review's promotion, while the console's other two paths to enforced, the fleet's mode change for a selection and the workload page's mode change, enforced in one step with no evidence shown. The consequence is corrected in place: the gate covers every console path to enforced. Each workload such a change would move is given the verdict the review composes for a scope of that workload alone, over the review's default range, and when any is not safe or never simulated the change counts them, names them, and waits on the same explicit acknowledgment. These paths stay the operator's deliberate way to enforce what the review would not offer. Changes to visibility or simulation only loosen and stay one step. The surface and the command line are unchanged and still accept a mode change directly; the server-side evidence guard remains the recorded backlog.
11 changes: 11 additions & 0 deletions docs/design/PACKAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,3 +240,14 @@ Recorded 2026-10-21 (INN-63, INN-70, ADR-0023), **proposed for the maintainer's
- **The credential issued and the credential presented** are two more field rows of the Status card, "issued" and "in use" (or "presented" while the stream is down), each a mono serial with a caption. A presented serial that is not the one issued, on a live stream, takes the alert severity glyph and tone with "not the one issued", and a caption says what the divergence can mean.

Copy added: "Retired", "retired *ago*", "refused · retired", "refused · workload retired", "retired" (chip), "Lifecycle" (column and group), "No active workloads; *N* workloads are retired.", "Show retired", "Showing *N* · most recently retired first", "frozen", "Retire…", "Retire selected…", the retired card's sentence, the Status card's retired caption, the retire dialog's titles ("Retire *host*?", "Retire *N* workloads?"), sentences, acknowledgment, confirms ("Retire workload", "Retire *N* workloads"), nudge, and outcomes; the credential's phrases ("valid · renews by *instant*", "expired *ago* · in grace", "expired *ago* · re-enroll", "expired *ago* · will recover by renewal", "expired *ago* · needs re-enrollment") and their captions, "Mint a provisioning token", the field labels "issued", "in use", "presented", "not the one issued", and their captions.

## Design-package extensions: a change to enforced outside the review

Recorded 2026-11-25 (#94), **proposed for the maintainer's acceptance**. The package draws the promote dialog and its acknowledgment variant, and has no board for the mode-change dialog (the fleet's **Change mode for selected…** and the workload strip's **change…**). A change to enforced from that dialog is composed from the promote dialog's own patterns; it adds no tokens, no components, and no icons.

- **The verdict block** is the promote dialog's, under the target-mode chips, drawn only when the target is Enforced and the selection holds a workload not yet enforced: the flow `allowed` glyph with "Safe to enforce" and "No observed traffic would be dropped." when the review would call every such workload safe; otherwise the severity `error` glyph with "Not safe to enforce yet" and the counts as its line. Each verdict is the one the simulation review composes for a scope of that workload alone, over the review's default range.
- **The workloads behind the counts** sit under the block on the canvas well, rows on hairlines as in the promote dialog's partition: "Never simulated" with the hostnames as links, each workload not safe to enforce with its hostname as a link and the review's first failing condition on the alert tone, then "Safe to enforce" and "Already enforced" with their counts.
- **The acknowledgment** is the promote dialog's sunk checkbox and nudge, one for the whole selection. The confirm is the plate, held in its disabled state and kept focusable while the evidence is read and until acknowledged; it reads "Enforce anyway on *N* workloads" when the acknowledgment is asked, and keeps "Change to enforced" otherwise.
- **Visibility and Simulation** draw none of it: they only loosen, and stay one step.

Copy added: "No simulation evidence for *N* of *M* selected", "Not safe to enforce for *N* of *M* selected", "Never simulated", "no verdict", "+*N* more not safe to enforce", the caption ("Each verdict is the one the simulation review composes for the workload over the last *range*." and, when the acknowledgment is asked, "This enforces the selection as chosen; the review promotes only the workloads that earned it."), the acknowledgments ("I understand this workload is not safe to enforce yet", "I understand *N* of these *M* workloads are not safe to enforce yet"), and "Loading each workload's evidence…". The headlines, the safe line, the nudge, and "Enforce anyway on *N* workloads" are the promote dialog's.
2 changes: 1 addition & 1 deletion docs/guides/promotion-and-enforcement.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Promotion starts from a ruleset's simulation review ([reading a simulation revie
**Rolling back is the same action in reverse:** change the workloads' mode back to simulation (the fleet's **Change mode for selected…**, the **change…** beside the mode on the workload page, or `innerwall workload set-mode <workload-id> simulation`). Nothing is dropped from the moment the agent applies it.

> [!WARNING]
> The review's verdict and its acknowledgment live in the promote flow only. The fleet's **Change mode for selected…**, the **change…** beside the mode on the workload page, `innerwall workload set-mode`, and `POST /api/v1/mode-changes` set any mode, enforced included, in one step, with no verdict and no acknowledgment, even for a workload with no simulation evidence at all. Promote through the review; use mode changes to roll back or to move workloads into simulation. A server-side evidence guard is on the [roadmap](../../ROADMAP.md).
> The console gates every change to enforced, wherever it starts. The fleet's **Change mode for selected…** and the **change…** beside the mode on the workload page give each workload the change would move the verdict the review composes for that workload alone, over the review's default range (the last 24 hours), and when any of them is not safe or never simulated, the dialog counts them ("No simulation evidence for N of M selected", "Not safe to enforce for N of M selected"), names the workloads behind each count, and enforces only after the same explicit acknowledgment a promotion past an unsafe verdict takes. It is the deliberate way to enforce what the review would not offer, such as a re-enrolled host whose previous identity earned enforcement; promote through the review otherwise. Changes to visibility or simulation stay one step. The gate is the console's: `innerwall workload set-mode` and `POST /api/v1/mode-changes` set any mode, enforced included, in one step, with no verdict and no acknowledgment, even for a workload with no simulation evidence at all. A server-side evidence guard is on the [roadmap](../../ROADMAP.md).

## What enforcement looks like on the host

Expand Down
2 changes: 1 addition & 1 deletion docs/reference/innerwall-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ innerwall workload retire <workload-id>
- **`counts`** prints the active fleet's size: `removed`, then each sync state, then the total, then `retired`. A removed workload is counted in `removed` alone, so the lines above the total sum to it; a retired workload is outside the total and counted in `retired` alone. It is the read `GET /api/v1/workloads/counts` serves.
- **`status`** prints one workload in full: mode, lifecycle (active, or retired and when), sync state, the owned table's state, applied and latest versions, last seen on the control channel, last flow report, last snapshot sent, last acknowledgment, last failed apply, credential expiry and any late renewal, agent version, dropped flow records, source overruns, clock skew, addresses, host facts, and listening services.
- **`set-labels`** replaces the workload's whole label set and renders. The labels are admitted against the grammar (ADR-0022).
- **`set-mode`** changes one workload's mode, as a recorded mode change of exactly that workload, and renders. It does not consult the simulation review: the review's verdict and its acknowledgment gate are in the console's promote flow only ([promotion and enforcement](../guides/promotion-and-enforcement.md)).
- **`set-mode`** changes one workload's mode, as a recorded mode change of exactly that workload, and renders. It does not consult the simulation review: the review's verdict and its acknowledgment gate are the console's, on its promote flow and on its mode changes to enforced, and `set-mode` enforces with neither ([promotion and enforcement](../guides/promotion-and-enforcement.md)).
- **`resend-snapshot`** directs the workload's agent to reconnect, so its new stream begins with a snapshot. Delivery is not confirmed: the `last snapshot` instant in `workload status` advances when the agent has reconnected ([states](states.md#resend-snapshot)).
- **`retire`** retires the workload, one way, through the function `POST /api/v1/workloads/{id}/retire` calls: its credential is refused from then on, its live stream is ended, its addresses leave every peer set, and an open silence of its agent is stored as an evidence gap. It prints the instant, how many workloads' policy versions advanced, and the silence it closed, if any. A retired workload's labels and mode can no longer be changed. Its history stays readable by its id; the host returns only by enrolling again, as a new workload ([states](states.md#retired)). Until the old credential expires, enrollment on the host refuses to overwrite it: stop the daemon and remove the agent's state directory first ([credential lifecycle](../guides/credential-lifecycle.md#beyond-the-grace-re-enrollment)).

Expand Down
Loading
Loading