Your browser sucks, JavaScript disabled! Gunnar's console needs JavaScript and WebAssembly. Git over SSH on port 2222 does not.

nordisk/nornir

.nornir/nornir-saga.md

nornir-saga — live UI-movement viewer + replay (FEATURE REQUEST, 2026-07-08)

Status: REQUESTED by Rickard — to be implemented by another agent. This file is a durable spec so that agent (and the plan) has the intent. NOT yet built. Njord is off-limits to the current fleet — this module lives in nornir and only observes/replays a saga-enabled Njord; do not modify Njord to add this.

What Rickard asked for (verbatim intent)

"I want a nornir-saga UI module to view live UI movements from a saga-enabled njord … and later replay the UI movements so it actually moves on the web pages."

The feature, unpacked

A new nornir module/crate — nornir-saga — with two modes over the same recorded "saga" of UI interaction events:

  1. LIVE view. A saga-enabled Njord emits a stream of UI-movement events (pointer moves/clicks, focus changes, navigation, scroll, field edits, route transitions — the user's actual motion through the web UI). nornir-saga subscribes to that live stream and renders the movements live (a viewer that shows, in real time, what the UI is doing / where the user/agent is moving).

  2. REPLAY. Persist the saga, then replay the recorded UI movements so the web page actually moves — i.e. deterministically drive the real web UI to reproduce the captured motion (cursor travels, clicks fire, pages navigate), not just a passive timeline. Think "robot replay" of a recorded session that re-animates the live DOM/pages.

Design notes / open questions for the implementing agent

ELM? — YES, and it's the key to clean capture + replay (Rickard asked)

Njord-side coordination (NOT ours — for the agent who extends Njord)

Njord already has a saga feature branch, but it "doesn't know about this feature yet" (Rickard) — its saga almost certainly captures a state/business saga, not UI movements. To feed nornir-saga, Njord's saga must ALSO log the Elm Msg stream (pointer / click / nav / focus / scroll Msgs) and allow re-injection on replay. Do not touch Njord until Rickard says so — this is a coordination note for whoever extends the Njord saga branch.

Boundaries