Utility outage status page

Northline Utilities gives subscribers a current outage count, incident cards, and a timeline of published, updated, and resolved incidents. An operator can publish or resolve a notice, add progress, inspect certified history, and read private notes through a local console. The console and browser start from the same seeded canister with an active feeder interruption and a resolved voltage incident. The prototype is under ignored playground/xx17/.

Boundaries and contracts

The typed root attaches one incident owner, a Rechain runtime, and its Reactor scheduler. The incident owner stores the public event projection and internal notes separately in owner-private Nyxus collections. Rechain dispatch validates the transition, uses a record hook to serialize only the public IC Wire event, and commits the projection and note in the same synchronous reducer. The controller check precedes dispatch. The public chain has one-based incident IDs derived from opening events and zero-based block indexes. The app bounds retention to 16 incidents and 64 events, with a public history page of at most 16 records per query.

GET / uses the external IC HTTP gateway Candid envelope. Successful responses carry full HTTP certification v2 for the exact route, including status, body, and selected headers. Operator and public Rechain calls use generated IC Wire clients. Rechain owns the composed certified-data write. The app registers an HTTP tree root after starting Rechain and updates that registration on commit. Restore reopens Store, restarts the transient Reactor and Rechain bindings, and derives the HTTP tree again from retained public events. Composed certification

The local browser bridge requests the canister's raw http_request response over PocketIC and relays successful status HTML after the official ic-response-verification 3.2.0 verifier accepts it for the requested route. The verifier takes the local subnet root key and current time from the owned PocketIC instance. The independent history client verifies the IC signature, canister scope, time, reconstructed witness, and Rechain tip leaf. It uses the generated descriptor to decode public records and recomputes each V3 BLAKE3 body and header commitment across the entire chain. It compares the verified HTTP witness root and verified Rechain witness root. The browser trusts the loopback bridge, and this experiment exercises raw verification rather than PocketIC gateway routing or ICP deployment.

The app phase is prototype. Its only upgrade exercise is local same-image KEEP with a populated timeline. This tests persistent data, lifecycle admission, and transient certification rebuild using identical contracts. The app needed no legacy Wire client or migration path. Evolution guide

Installed evidence

Run from the harness root against the frozen Wave 3 source and pinned local PocketIC binary. The app README explains how to recreate that snapshot and use the operator console.

./playground/xx17/run.sh prepare
./playground/xx17/run.sh build
./playground/xx17/run.sh test
./playground/xx17/run.sh smoke
./playground/xx17/run.sh demo

The installed test verified empty history, then published two incidents, updated one, and resolved it. Both public surfaces independently verified against the same composed root. The fixture checked the operator note through the private query and its absence from HTML, decoded public events, and the raw record payloads. Anonymous publish and note access were rejected. Invalid commands and routes were refused. The verifier rejected a modified HTTP body, a modified reported tip, and a modified Rechain witness.

KEEP with the same canonical image preserved four records, the private note, the exact HTML body, and the certified root. An actual resolution after restore produced the fifth record, the operational banner, and a new root that both verifiers accepted. The separate smoke test visited the loopback browser URL, used the operator console to read a note and resolve the seeded active incident, saw the updated certified page and history, and exited cleanly.

Build input or output Identity
Frozen unified source commit e8ded839b67ce285dc837eb28a861ed06224258a
Frozen SDK Git tree 4e57e20a9d4fb39c1e093f8a89cae4acbc97a184
SDK source receipt subset, 1,589 files 181e23cdc9bd4be0abb1aff532e57f29864485cf81ec5ab8491bf8a1fe97d303
App source receipt subset, 12 files 500999a96881303ed712c9c019acdc4e2f90f9033a72954f38d2f73ce8c67731
Locked Rust compiler nightly-2026-10-15, 7df81381d027710708209f36b98d11b1c88f8d2e
Prepared wasm64-unknown-unknown, 1,308,485 bytes 094a87ad058122697c645fa6f46321263f34579f5882569e0e702fb6cf887732
Generated Wire descriptor 787989dee1c27f4e9d5b0cb04f7b02f55c18c5574094472bd22d08cae31e0718
Generated TypeScript client 1bbf613cfcce29203e384269e6137040647794a2b913e5fed896c457bf556200
Generated Node Wire runtime 88101dbb4b47d1b17611b64e054ce35328e79391c11bffa633bd4a0d0fda6b68
Registry Wire library IC Wire 0.34.0
Host HTTP verifier lockfile 49751d27e186309a6ef32bf882d12156f3c81aad038445bdf4d0255070ae3ff0
Pinned PocketIC 16.1.0 executable 6a9a75ad9b4551d2b0f4a0d954ffb8bd5bbd0ebc44ac00290679b06ad0b2f8e6

Source subset digests hash UTF-8 sha256 byte_count relative_path rows with a terminal newline, sorted by path relative to each source root. The installer checked 1,621 recorded inputs and outputs. This run is local functional evidence for the named binary and source, with no runtime performance measurements.

First failures and changes

  • A hand-written incident binder failed because generated root projection requires the SDK Service trait. The incident owner now uses #[cdk_rsx::service(memory = Mem, view = View)].
  • Returning the private SavedEvent as Prepare::Plan produced E0446. A transient plan keeps public event data and private note together until the commit, where the reducer allocates the persistent rows. This keeps the persistence type inside the owner.
  • The native descriptor build succeeded with a Result<(), &'static str> Reactor guard. The wasm64 endpoint expansion produced E0308. The supported guard signature returns Result<(), String> and the canonical build passed after changing the app.
  • The first host verifier launch returned ENOENT. Sourcing the pinned SDK environment builds native Cargo binaries under the selected target triple. The runner now asks Rust for the host triple and uses that build output path.

Skill feedback

The creation skill's typed Quickstart shape generated admission and retained catalog metadata. The basic Rechain fixture supplied private reactor_turn wiring and shutdown. A short composed HTTP certification example could link those two starting points and show Result<(), String> for raw guards. It could also show a transformed record DTO, the root registration and witness wrapping, and one negative proof check using the actual payload. The manifest must resolve one ic-certification HashTree type across Rechain and the HTTP certification dependency. The standalone canister mirrors the pinned SDK's vendor patch, while the independent host verifier uses registry crates. Creation skill · Quickstart fixture · Basic Rechain fixture

The evolution skill's drained KEEP checklist is the right entry point for the restore check. A certification checklist entry could give each boundary a positive test before and after restore, including the persisted public data and the reconstructed application subtree. Payload codec examples should separate the full public record frame from the bare header serialization used in its chain commitment. A public event type used only by a record hook has to be listed as a descriptor payload type if the generated client will decode it. Evolution skill · Rechain proof client