DWARF Freeze · Complete reference

Freeze, from first look to internals

Overview · Operational Guide · Technical Debrief

Chapter 1 · Overview

DWARF Freeze · Overview

A debugger that puts a running Cardano node on ice

Freeze is used like an intercepting proxy, but it sits inside the node. You start an Amaru node built with the Freeze agent, and everything it receives, sends and does becomes an item you can hold, read, edit, forward or drop. You can stop the whole node at any step, change what it remembers, and take it back to an earlier point.

Scope

Freeze is its own subsystem inside the DWARF repository. It does not use or change DWARF's measurement taps, patches or release builds, and a Freeze run is never measurement evidence.

What it looks like

DWARF Freeze ❄ DWARF FREEZE   amaru 10.11.0 · testnet_42    FROZEN    step 475   held 3   re-sign on   peers paused   running until: kind=proto_in and label=RollForward InterceptHistoryStateFreeze pointsPayloadsScenariosOverviewSourceNodes ╸━━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ▊▔▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▔▔▔▔▎ ▊ Forward ▎▊ Drop ▎▊ Step ▎▊ Intercept is off ▎▊ ❄ Re-sign edits is on ▎▊ Run until… ▎▊ Undo edits ▎ ▊▁▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▁▁▁▁▎ holding:▐X▌ from peers ▐X▌ to peers ▐X▌ raw bytes ▐X▌ between parts ▐X▌ actions ▐X▌ store writes ▐X▌ timers  ╭─ HELD  3 items  ·  node frozen ───────────────────────╮╭─ ITEM 472 · RollForward ─────────────────────────────────────────╮╭─ INSPECTOR ───────────────────────────────╮ │ #    from → to                     what               ││message2││Item│ │ 472  192.0.2.6:3001 → chain sync  RollForward        ││▼ header[2]││ what       RollForward│ │473node → socket writerResult││├─ era6││ from       192.0.2.6:3001│ │475- → multiplexermultiplexer││└─ ▼ header[2]││ to         chain sync│ ╰───────────────────────────────────────────────────────╯│├─ ▼ header body[10]││ kind       recv│ ││  ├─ block number251││ cold spot  ◆ cbor-decode│ ││  ├─ slot1204││ can        edit, drop│ ││  ├─ previous block654108da…555814e6  (32 bytes)│││ ││  ├─ issuer key11c6904d…16c7b2c3  (32 bytes)││In plain words│ ││  ├─ vrf key4d9ca0a2…a598fef8  (32 bytes)││ A peer says: here is the next block│ ││  ├─ ▶ vrf result[2]││header on my chain.│ ││  ├─ body size4││ The header is untrusted until it has│ ││  ├─ body hash29571d16…5a5edcf1  (32 bytes)││been checked.│ ││  ├─ ▶ operational certificate[4]││ The mini-protocol in which a peer│ ││  └─ ▶ protocol version[2]││announces its chain header by header.│ │└─ kes signaturecb522976…fd406245  (448 bytes)││ Carries untrusted headers and rollback│ │▼ tip[2]││instructions.│ │├─ ▼ point[2]│││ ││  ├─ slot1399││Selected field│ ││  └─ hashf66f7d6c…8df18c70  (32 bytes)││ name       block number│ │└─ block number284││ raw name   block_number│ │││ value      251│ │││ How many blocks came before this one.│ │││ Longer chains win.│ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ╰──────────────────────────────────────────────────────────────────╯╰───────────────────────────────────────────╯  f forward  d drop  i intercept on/off  s re-sign edits  e edit  u run until…  z freeze  g run  r undo edits  p payloads  O claim/release  q quit ▏^p palette
A block header from a peer, held before the node has seen it. The cursor is on the block number; the Inspector on the right explains the field.
DWARF Freeze ❄ DWARF FREEZE   amaru 10.11.0 · testnet_42    RUNNING    step 19,355   held 0   re-sign on   loaded stages/select_chain-4 InterceptHistoryStateFreeze pointsPayloadsScenariosOverviewSourceNodes ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ╭─ OVERVIEW ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ ││ │ NODE   amaru 10.11.0 · testnet_42    RUNNING   127 steps/s   step 19,355│ ││ │ PEERS                                     heard    said   last heard│ │   ● 192.0.2.8:3001            226      96   Block  1s ago│ ││ │ INSIDE THE NODE                    handled  actions   last did│ │track peers                 91      622   send│ │   ↓│ │select chain               225      504   Record Block Valid Effect│ │   ↓│ │fetch blocks               187      753   send│ │   ↓│ │validate block              87      437   send│ │   ↓│ │adopt chain                 87      850   send│ ││ │connection manager         143      200   send│ │peer selection               2       21   send│ │mempool                     88      262   Record Metrics Effect│ │block source               261        0   │ │connections & helpers    2,260    4,462   20 running: accept connections · block fetch · blockfetch-responder · chain sync · chainsync-responder · reply│ │cleanup · dial worker · connection …│ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯  f forward  d drop  space step  i intercept on/off  s re-sign edits  e edit  u run until…  z freeze  g run  r undo edits  p payloads  O claim/release  q quit ▏^p palette
The Overview tab: the node's peers, and the path a block takes through the node.

What you can do with it

Hold and edit traffic

Stop on any message from or to a peer, change one field byte-exactly, forward or drop it, and read what the node did because of it.

Stop the node anywhere

Freeze now, step one item at a time, or run until a condition matches. Frozen means the whole node: its clock and timers stop too, and the devnet's other nodes are paused with it.

Look inside

Each part of the node and what it remembers; the chain and ledger stores; 69 named probes in the node's functions; call tracing for about 2,100 functions; source-line stepping.

Change what it holds

Edit a part's state, write headers, blocks, unspent outputs, pots and protocol parameters into the stores, edit or skip the node's own effects, or deliver a message nobody sent.

Test with lists of values

Run a list of boundary values against one field, or a template of rules, and get one result row per attempt with what the node said.

Record, rewind, repeat

Every session is recorded. Search it, mark findings, export it as one file, take the node back to an earlier item, or repeat a run's interventions on a fresh node.

Script it

Templates in YAML, a per-item Python callback, or a Python client with one method per request. Anything the UI does is a call on the same socket.

Carry out DWARF scenarios

Of DWARF's 360 scenario files, 54 convert fully to Freeze rules and 22 with a stated difference. The rest need more than one node's inside, and Freeze says why.

How it fits together

terminal UI commands templates · scripts brokerrecords the sessionpauses the other nodes Amaru node Freeze agent runtime gate: inputs, effects, state, time protocol gate: decoded messages wire gate: raw bytes stores · probes · tracing peers: 3 block producers, 1 Amaru relay JSON linesTCP, token port 7423port 7373 Cardano network protocols
Everything on the left speaks one protocol to the broker. The agent runs its socket on its own thread, so it keeps answering while the node is frozen. Both ports are on localhost only.
  • The agent is a small Rust crate compiled into the node. It numbers every item, reports it, and decides whether the step may proceed. With its listen address unset it is not created and the node behaves as an unmodified node.
  • The broker is one Python process per Freeze node. It records the session whether or not a UI is open, pauses the devnet's other nodes while the node is frozen, and lets one window claim the node.
  • The devnet is DWARF's own layout, unchanged: three block-producing cardano-nodes and two Amaru relays on a private network. The first Amaru relay runs the Freeze build. Nothing leaves the machine.

Three ways to use it

WayCommandNeedsFor
The demofreeze-debugger demoNothing but PythonTrying the UI on a recording of a real node.
One node on a public test networkfreeze-debugger run --network preprodDocker; Linux or macOSObserving, and tampering only with what your own node receives.
The closed devnetfreeze-debugger devnet upDocker on Linux x86-64Tampering freely. This is the main way.

Start here

After installing or updating the Freeze checkout from internal main, run on the devnet host:

ssh -t HOST
~/freeze/freeze-debugger devnet up        # returns at once
~/freeze/freeze-debugger devnet nodes     # repeat until the node shows as running (9 to 15 minutes)
~/freeze/freeze-debugger devnet attach    # the UI
~/freeze/freeze-debugger devnet down      # when you are done

In the UI: u and kind=proto_in and label=RollForward runs until a peer sends a block header; Tab and the arrows select a field; e edits it; f forwards it; 2 shows what the node did; q leaves.

A devnet lasts about 20 minutes after the Freeze node becomes ready, then its Amaru relays stop following the chain. Holding the node frozen for several minutes also stops the chain. Either way: devnet down, then devnet up.

What it does not do

  • Native Freeze support is Amaru-only. On a controlled devnet, typed inbound and outbound ChainSync and initiator/responder BlockFetch paths can repair eligible edits; unknown dependencies, public signing, disabled repair, slot/issuer/VRF/opcert changes and transaction-witness edits refuse unless the exact item explicitly selects a stale negative control. cardano-node retains DWARF's external proxy/fake-peer coverage and shared node-independent Cardano naming only; this repository does not provide a native cardano-node Freeze agent, edit/repair path or store hooks.
  • Store repair remains bounded. A chain-block write requires its exact header to exist already; repair:true refuses because the store API lacks mux/request identity and atomic header-plus-body replacement. Injected write failures leave state unchanged and report no success.
  • The devnet needs Linux x86-64. It fails under emulation on macOS. Windows without WSL was not run.
  • One UI drives one node. The Nodes tab lists the others and moves the window between them.
  • A Freeze node is slower than stock. Every step is reported. On a node catching up at full speed the UI shows a sample.
  • The agent is remote control of a node. It listens only when asked, on localhost, and needs a token. Its port must never be exposed.

In this document

PageWhat it is
Guide: install, run, every command, removeStep by step, with screenshots and real output.
Technical debriefHow it is built, what was verified and where, what was found and fixed, what is open.
Freeze — Guide (reference)The repository's full reference, GUIDE.md, with every option.
Freeze TUI mockupsThe original design mockups, from before the UI existed.

Chapter 2 · Operational Guide

DWARF Freeze · Guide

Install it, run it, use every command, remove it

Freeze is a debugger for a running Cardano node (Amaru). Everything the node receives, sends and does becomes an item you can hold, read, edit, forward or drop. This page goes from an empty Linux machine to a tampered block header and back to a clean machine. Every screenshot and every output on it comes from real runs on a Linux devnet on 15 November 2026.

The short version

If Freeze is already installed, a working session is four commands. Before rebuilding, update the Freeze clone from main as shown in Start, stop, start again, update.

~/freeze/freeze-debugger devnet up        # start the closed devnet; returns at once
~/freeze/freeze-debugger devnet nodes     # repeat until the node shows as running (9 to 15 minutes)
~/freeze/freeze-debugger devnet attach    # open the UI
~/freeze/freeze-debugger devnet down      # when you are done
A devnet does not last. The Amaru relays stop following the chain about 20 minutes after the Freeze node becomes ready. Do the work in that window, then devnet down and devnet up for a fresh one. While you hold the node frozen, the other nodes are paused with it; a freeze of several minutes can stop the chain for good, and a fresh devnet is the fix.

Everywhere below, freeze-debugger stands for the launcher you set up in Install.

1. Requirements

WhatDetail
MachineLinux x86-64 for the devnet (the main target). macOS runs the demo, the UI and single nodes, but not the devnet. Windows: WSL 2 with Docker inside it; not tested.
ToolsGit, rsync, Docker with the compose and buildx plugins, and a user allowed to run docker.
Python3.11 or newer. If the system Python is older, use another interpreter for the environment in step 3. The system Python is not touched.
NetworkAccess to github.com and ghcr.io.
SpaceAbout 10 GB of disk and 8 GB of free memory for the build and the devnet.
Ports7373 (the agent inside the node) and 7423 (its broker), both on 127.0.0.1 only.

Freeze is an add-on to DWARF and needs a DWARF checkout. The Freeze repository holds only the Freeze files, at the paths they have inside DWARF; installing means copying them into the checkout. Nothing else of DWARF has to be installed or running.

2. Install

Seven steps, done once. The directory ~/freeze is an example; any directory works.

Step 1. Get DWARF and Freeze, side by side

mkdir -p ~/freeze && cd ~/freeze
git clone https://github.com/pragma-org/dwarf
git clone --branch main https://github.com/gainsec/DWARF-freeze.git dwarf-freeze

Step 2. Copy Freeze into the DWARF checkout

rsync -a --exclude .git --exclude /README.md --exclude /.gitignore dwarf-freeze/ dwarf/

The leading slash in /README.md matters: it leaves DWARF's own top-level README alone while still copying dwarf/freeze/README.md.

Step 3. Python packages, in their own environment

cd ~/freeze/dwarf
python3 -m venv .venv-freeze        # python3 must be 3.11 or newer
.venv-freeze/bin/pip install -r dwarf/freeze/requirements.txt

Three packages: textual (the UI), cbor2 and PyYAML.

Step 4. A short name for the command

alias freeze-debugger="$HOME/freeze/dwarf/.venv-freeze/bin/python $HOME/freeze/dwarf/dwarf/freeze-debugger"

An alias lasts for the shell it was typed in. For something permanent, make a small launcher at ~/freeze/freeze-debugger:

cat > ~/freeze/freeze-debugger <<'EOF'
#!/bin/bash
exec "$HOME/freeze/dwarf/.venv-freeze/bin/python" "$HOME/freeze/dwarf/dwarf/freeze-debugger" "$@"
EOF
chmod +x ~/freeze/freeze-debugger

Step 5. Check the install

.venv-freeze/bin/pip install pytest
.venv-freeze/bin/python -m pytest -q tests/test_freeze_*.py

The tests need no node and no Docker and take about two minutes.

Target boundary. Full native Freeze agent/edit/repair/store support is implemented for Amaru. cardano-node has DWARF external proxy/fake-peer coverage and the shared node-independent Cardano names only; do not read this guide as native cardano-node support.

Step 6. Build the node

freeze-debugger build --static --source dwarf/testplease/amaru/v10.11.20260925

This copies the Amaru source, adds the Freeze agent, applies the hooks and compiles the node in a container. The first build takes about 7 minutes on a 16-core machine; a rebuild with nothing changed takes about a minute and a half. It ends like this:

recipe v10.11.20260925 · source v10.11.20260925 · image dwarf/freeze-amaru:v10.11.20260925-2abe83c2c775-static
functions that can be traced: 2,120 in amaru-consensus, amaru-ledger, amaru-protocols, amaru-ouroboros, amaru-stores, amaru-mempool, amaru-network
built dwarf/freeze-amaru:v10.11.20260925-2abe83c2c775-static in 81s

--static is required for the devnet. Run it from the DWARF checkout so the relative --source path resolves, or give an absolute path.

Step 7. Start the devnet

freeze-debugger devnet up
devnet `relay` started with dwarf/freeze-amaru:v10.11.20260925-2abe83c2c775-static in amaru-relay-1.
Header/body repair is on.
The Amaru relays first wait for three epochs of chain and bootstrap from it; allow 15 minutes or more.
Then: freeze-debugger devnet attach   (agent on 127.0.0.1:7373)

The command returns at once. The devnet is three block-producing cardano-nodes and two Amaru relays on a private network, testnet_42; the first Amaru relay runs the Freeze build. Nothing leaves the machine. The relays first wait for the producers to make three epochs of chain, so the Freeze node answers 9 to 15 minutes later.

Plain or frozen start? devnet up lets the node run from the start; use it when you only want to look around. devnet up --frozen holds the node at its very first step and saves its stored chain as the snapshot start, which rewind needs. After a frozen start, attach and let the node run within a minute or two of it becoming ready, because the other nodes are paused from that moment.

3. Check status

freeze-debugger devnet status          # every container, and whether the Freeze node answers
freeze-debugger devnet nodes           # each Freeze node: port, frozen or running, step, held items
freeze-debugger devnet broker status   # the broker in front of each node, and who is connected
freeze-debugger sessions               # what has been recorded
docker images 'dwarf/freeze-amaru'     # the node images that were built

While the node bootstraps, devnet status ends with "not ready yet" and the line the node last logged:

profile: relay
Freeze agent in amaru-relay-1: not ready yet on 127.0.0.1:7423
  amaru-relay-1: [amaru-relay-1 bootstrap-producer] + waiting for chain to cross 3rd-epoch boundary - tip_slot=482 tip_epoch=1 (need >=3) (elapsed=1s)

When it is ready:

freeze-debugger devnet status
  amaru-consumer           running    Up 5 minutes
  amaru-consumer-seed      exited     Exited (0) 5 minutes ago
  amaru-relay-1            running    Up 5 minutes
  amaru-relay-2            running    Up 17 minutes
  configurator             exited     Exited (0) 5 minutes ago
  log-tailer               running    Up 17 minutes
  p1                       running    Up 17 minutes
  p2                       running    Up 17 minutes
  p3                       running    Up 17 minutes
  relay1                   running    Up 17 minutes
  relay2                   running    Up 17 minutes
  sidecar                  running    Up 16 minutes
  tracer                   running    Up 17 minutes
  tracer-sidecar           running    Up 17 minutes
  freeze-target-extract    exited     Exited (0) 5 minutes ago
profile: relay
Freeze agent in amaru-relay-1: ready on 127.0.0.1:7423
  amaru-relay-1: 2026-11-15T22:46:39.058920Z DEBUG amaru_pure_stage::tokio: stage `track_peers-3` external effect: VolatileTipEffect
freeze-debugger devnet nodes
  amaru-relay-1        127.0.0.1:7423   running  step 1,913   held 0
freeze-debugger devnet broker status
  amaru-relay-1        broker on 127.0.0.1:7423 (pid 12345)   pauses the other nodes: yes   clients: 0

What the columns of devnet nodes mean: the service name, the port commands connect to (the broker, which is the agent's port plus 50), frozen or running, the number of the step the node is at, and how many items it is holding.

4. Start, stop, start again, update

ToRunNotes
Startfreeze-debugger devnet upAdd --frozen if you want to rewind later.
Open the UIfreeze-debugger devnet attachWaits until the node is ready. q leaves; the node stays as you left it and attach opens it again.
Freeze or let run, without the UIfreeze-debugger devnet nodes --freeze / --thawAll Freeze nodes at once.
Stopfreeze-debugger devnet downRemoves the containers, network and volumes, and stops the broker. Recorded sessions stay. --keep-data keeps the volumes.
Start againdevnet down, then devnet upA devnet is not restarted; a fresh one bootstraps again.

Update Freeze

cd ~/freeze/dwarf-freeze && git checkout main && git pull --ff-only
cd ~/freeze && rsync -a --exclude .git --exclude /README.md --exclude /.gitignore dwarf-freeze/ dwarf/
cd ~/freeze/dwarf && freeze-debugger devnet down
freeze-debugger build --static --source dwarf/testplease/amaru/v10.11.20260925
freeze-debugger devnet up

Update from the public repository's main, then rebuild. The build cache may make an unchanged rebuild quicker.

From another machine

Run the UI on the devnet's machine, over SSH:

ssh -t HOST
~/freeze/freeze-debugger devnet attach

Or keep the UI local and tunnel the port. The agent is remote control of a node: never publish its port, always tunnel.

ssh HOST 'cat ~/.local/share/dwarf/freeze/devnet/token' > /tmp/freeze.token
ssh -N -L 7423:127.0.0.1:7423 HOST &
freeze-debugger attach --port 7423 --token-file /tmp/freeze.token

5. The UI

freeze-debugger devnet attach opens it. This is the node right after a frozen start, held at its first step:

DWARF Freeze ❄ DWARF FREEZE   amaru 10.11.0 · testnet_42    FROZEN    step 13   held 4   re-sign on   peers paused InterceptHistoryStateFreeze pointsPayloadsScenariosOverviewSourceNodes ╸━━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ▊▔▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▔▔▔▔▎ ▊ Forward ▎▊ Drop ▎▊ Step ▎▊ Intercept is off ▎▊ ❄ Re-sign edits is on ▎▊ Run until… ▎▊ Undo edits ▎ ▊▁▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▁▁▁▁▎ holding:▐X▌ from peers ▐X▌ to peers ▐X▌ raw bytes ▐X▌ between parts ▐X▌ actions ▐X▌ store writes ▐X▌ timers  ╭─ HELD  4 items  ·  node frozen ───────────────────────╮╭─ ITEM 7 · fetch blocks ──────────────────────────────────────────╮╭─ INSPECTOR ───────────────────────────────╮ │ #   from → to               what               ││▼ recover stored blocks││Item│ │ 7   - → fetch blocks        fetch blocks       ││├─ ▼ from[3]││ what       fetch blocks│ │9- → peer selectionpeer selection│││  ├─ [0]1197││ from       -│ │11- → select chainselect chain│││  ├─ [1]654108da…555814e6  (32 bytes)││ to         fetch blocks│ │12- → connection managerconnection manager│││  └─ [2]250││ kind       in│ ╰───────────────────────────────────────────────────────╯│├─ to654108da…555814e6  (32 bytes)││ can        edit, drop│ │└─ ▼ trace context│││ │├─ trace id00000000000000000000000000000000││In plain words│ │├─ span id0000000000000000││ Downloads the full blocks for the chain│ │├─ trace flags0││that was chosen.│ │├─ is remoteno││ Handles large untrusted downloads and│ │└─ trace state""││decides which peer to blame when they are│ │││bad.│ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ╰──────────────────────────────────────────────────────────────────╯╰───────────────────────────────────────────╯  f forward  d drop  space step  i intercept on/off  s re-sign edits  e edit  u run until…  z freeze  g run  r undo edits  p payloads  O claim/release  q quit ▏^p palette
The Intercept tab on a node frozen at its first step. Top line: node, network, state, step. Second row: the action buttons. Third row: what gets held when Intercept is on.

Tabs

KeyTabWhat it is
1InterceptLeft: the held items. Middle: the selected item as a tree of plain-named fields. Right: the Inspector (where the item came from and goes to, what it is, the selected field, your edits).
2HistoryEvery item as a table, newest at the bottom, with a filter box. Selecting a row shows what went in (your edits marked) and what the node did with it.
3StateWhat the node holds: each stage's internal state, and the chain and ledger stores. Select a value, e to edit, "Apply edits" to write it. Stores are written only while the node is frozen.
4Freeze pointsConditions that freeze the node (or only log) when an item matches, and the node's probes with how often each was reached.
5OverviewThe node at a glance: each peer, and the path a block takes through the node, with counts. A snowflake marks where the node is stopped.
6PayloadsLists of test values, the rules that are running, and one result row per attempt.
7ScenariosDWARF's scenarios that Freeze can carry out, and the rules it would run for each.
8NodesEvery Freeze node of the devnet, what each is holding, and what all of them did, merged by time.
9SourceSource-line stepping. Needs an image built with --debug-info.

Keys

KeyDoes
zFreeze now: the node stops at its next step.
gRun: release everything and let the node go.
spaceStep: forward the selected item and stay frozen.
iIntercept on or off. On: hold every item of the kinds ticked in the "holding" row. Off: clear that and let the node run.
uRun until a condition matches, then freeze.
fForward the selected item, with your edits, and run to the next held item.
dDrop the selected item. A dropped network message never reaches the node; the peer sees silence.
eEdit the selected field.
rUndo your edits to the selected item.
pIn Intercept: run a payload list against the selected field, one value per matching item.
nDeliver a new message to a part of the node.
sSwitch controlled-devnet header/body repair on or off. Turning it off makes changed protocol emission fail closed unless that exact item is an explicit stale negative control.
OClaim the node, so only this window can change it; again to release.
TabMove between the panes of a tab.
qQuit the UI. The node keeps running, or stays frozen, as you left it.

History has its own keys: X export the run, b bookmark, m note, F finding, c compare two items, R send the item again.

The "holding" row

BoxHoldsDefault
from peersdecoded protocol messages arrivingon
to peersdecoded protocol messages leavingon
raw bytesevery chunk read from or written to a socketoff
between partsevery message one part of the node hands anotheroff
actionsevery effect and its resultoff

Reading it

  • Colours: blue is a field name, amber a kind of thing (Block, RollForward), mint a part of the node, violet an action the node takes, red something you changed.
  • Names are plain: prev_hash shows as "previous block". The raw name is in the Inspector.
  • Frozen means the whole node. While anything is held, every part of the node stops at its next step, and its clock and timers stop too.
  • Number keys switch tabs only when no text box has the cursor. After typing a filter or a condition, press Tab to leave the box first.

Terminal size

At 140 columns or more the buttons are one row and the three panes sit side by side, as in the screenshots here (170 columns). In a narrower window the buttons and the "holding" row wrap onto more rows, and the held list moves above the item and the Inspector, so nothing runs off the right edge. It rearranges as you resize the window. 80 by 24 is the smallest size that is usable; a table wider than its pane scrolls sideways.

DWARF Freeze ❄ DWARF FREEZE   amaru 10.11.0 · preprod    FROZEN    step 1,135   held 1 InterceptHistoryStateFreeze pointsPayloadsScenariosOverviewSourceNodes ╸━━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━  Forward  Drop  Step  ❄ Intercept is on   Re-signing  Run until…  Undo edits  holding:▐X▌ from peers ▐X▌ to peers ▐X▌ raw bytes  ▐X▌ between parts ▐X▌ actions ▐X▌ store writes ▐X▌ timers  ╭─ HELD  1 item  ·  node frozen ───────────────────────────────────────────────────────────────────╮ │ #     from → to           what         │ │ 1135  track peers → node  check header │ ││ ││ ││ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ ITEM 1135 · check header ───────────────────────────────╮╭─ INSPECTOR ──────────────────────────╮ │▼ header││Item│ │├─ hash879f7f59…c0be53e2  (32 bytes)││ what       check header│ │├─ ▼ body││ from       track peers│ ││  ├─ block number5,401,536││ to         node│ ││  ├─ slot138,758,435││ kind       does│ ││  ├─ previous block8f29cc02…f577f2e4  (32 bytes)││ can        forward only│ ││  ├─ issuer verification key25351957…3ad37c8e  (32 by││▄▄│ ││  ├─ vrf verification key34251eb4…e91ebfa4  (32 bytes▆▆││In plain words│ ││  ├─ ▶ vrf result││ Checks a block header - that the│ ││  ├─ body size11,356││pool really won the slot and│ ││  ├─ body hashb12f24bd…d1d9ab5e  (32 bytes)││signed the header.│ ││  ├─ ▶ operational certificate││ Forged headers must fail here.│ │▍││ Follows what each neighbour says│ ╰──────────────────────────────────────────────────────────╯╰──────────────────────────────────────╯  f forward  d drop  i intercept on/off  s re-sign edits  e edit  u run until…  z freeze ▏^p palette
The Intercept tab at 100 columns (on the bundled demo recording): buttons and boxes wrapped, the held list on top.

The Source tab

The Source tab steps through the node's Rust source one line at a time: A attaches a debugger to the node, b sets a breakpoint, c continues, s steps into, n goes to the next line, o steps out, x stops the node now. The left pane shows the file around the current line, the right panes the call stack and the local variables.

It is empty until a debugger is attached, and attaching needs a node image built with build --debug-info. The ordinary image carries no source lines, so pressing A there only reports that. See source for building the other image; it is about 1 GB against 190 MB, with a tools image of about 2 GB beside it.

6. A worked session: hold, edit, forward, record, rewind

Sections 6.1 to 6.6 are one continuous session on a devnet started with devnet up --frozen. The screenshots are the real UI; the outputs are what the commands printed.

6.1 Run until a peer sends a block header

Press u and type a condition. label=RollForward names the chain-sync message that carries a new block header; kind=proto_in keeps it to messages arriving from a peer.

DWARF Freeze ╭────────────────────────────────────────────────────────────────────╮ ││ │Run until…│ │▊▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▎│ │▊kind=proto_in and label=RollForward▎│ │▊▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▎│ │a condition, e.g.  to~validate_block   label=RollBackward   slot│ ││ ╰────────────────────────────────────────────────────────────────────╯
"Run until": the node will run and freeze on the first item that matches.

Press Enter. The node runs, a peer sends a header, and the node freezes holding it:

DWARF Freeze ❄ DWARF FREEZE   amaru 10.11.0 · testnet_42    FROZEN    step 475   held 3   re-sign on   peers paused   running until: kind=proto_in and label=RollForward InterceptHistoryStateFreeze pointsPayloadsScenariosOverviewSourceNodes ╸━━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ▊▔▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▔▔▔▔▎ ▊ Forward ▎▊ Drop ▎▊ Step ▎▊ Intercept is off ▎▊ ❄ Re-sign edits is on ▎▊ Run until… ▎▊ Undo edits ▎ ▊▁▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▁▁▁▁▎ holding:▐X▌ from peers ▐X▌ to peers ▐X▌ raw bytes ▐X▌ between parts ▐X▌ actions ▐X▌ store writes ▐X▌ timers  ╭─ HELD  3 items  ·  node frozen ───────────────────────╮╭─ ITEM 472 · RollForward ─────────────────────────────────────────╮╭─ INSPECTOR ───────────────────────────────╮ │ #    from → to                     what               ││message2││Item│ │ 472  192.0.2.6:3001 → chain sync  RollForward        ││▼ header[2]││ what       RollForward│ │473node → socket writerResult││├─ era6││ from       192.0.2.6:3001│ │475- → multiplexermultiplexer││└─ ▼ header[2]││ to         chain sync│ ╰───────────────────────────────────────────────────────╯│├─ ▼ header body[10]││ kind       recv│ ││  ├─ block number251││ cold spot  ◆ cbor-decode│ ││  ├─ slot1204││ can        edit, drop│ ││  ├─ previous block654108da…555814e6  (32 bytes)│││ ││  ├─ issuer key11c6904d…16c7b2c3  (32 bytes)││In plain words│ ││  ├─ vrf key4d9ca0a2…a598fef8  (32 bytes)││ A peer says: here is the next block│ ││  ├─ ▶ vrf result[2]││header on my chain.│ ││  ├─ body size4││ The header is untrusted until it has│ ││  ├─ body hash29571d16…5a5edcf1  (32 bytes)││been checked.│ ││  ├─ ▶ operational certificate[4]││ The mini-protocol in which a peer│ ││  └─ ▶ protocol version[2]││announces its chain header by header.│ │└─ kes signaturecb522976…fd406245  (448 bytes)││ Carries untrusted headers and rollback│ │▼ tip[2]││instructions.│ │├─ ▼ point[2]│││ ││  ├─ slot1399│││ ││  └─ hashf66f7d6c…8df18c70  (32 bytes)│││ │└─ block number284│││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ╰──────────────────────────────────────────────────────────────────╯╰───────────────────────────────────────────╯  f forward  d drop  space step  i intercept on/off  s re-sign edits  e edit  u run until…  z freeze  g run  r undo edits  p payloads  O claim/release  q quit ▏^p palette
A held RollForward. Left: the held item. Middle: its fields. Right: the Inspector.

6.2 Edit a field

Press Tab to move into the item, then the down arrow until the cursor is on block number. The Inspector explains the field.

DWARF Freeze ❄ DWARF FREEZE   amaru 10.11.0 · testnet_42    FROZEN    step 475   held 3   re-sign on   peers paused   running until: kind=proto_in and label=RollForward InterceptHistoryStateFreeze pointsPayloadsScenariosOverviewSourceNodes ╸━━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ▊▔▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▔▔▔▔▎ ▊ Forward ▎▊ Drop ▎▊ Step ▎▊ Intercept is off ▎▊ ❄ Re-sign edits is on ▎▊ Run until… ▎▊ Undo edits ▎ ▊▁▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▁▁▁▁▎ holding:▐X▌ from peers ▐X▌ to peers ▐X▌ raw bytes ▐X▌ between parts ▐X▌ actions ▐X▌ store writes ▐X▌ timers  ╭─ HELD  3 items  ·  node frozen ───────────────────────╮╭─ ITEM 472 · RollForward ─────────────────────────────────────────╮╭─ INSPECTOR ───────────────────────────────╮ │ #    from → to                     what               ││message2││Item│ │ 472  192.0.2.6:3001 → chain sync  RollForward        ││▼ header[2]││ what       RollForward│ │473node → socket writerResult││├─ era6││ from       192.0.2.6:3001│ │475- → multiplexermultiplexer││└─ ▼ header[2]││ to         chain sync│ ╰───────────────────────────────────────────────────────╯│├─ ▼ header body[10]││ kind       recv│ ││  ├─ block number251││ cold spot  ◆ cbor-decode│ ││  ├─ slot1204││ can        edit, drop│ ││  ├─ previous block654108da…555814e6  (32 bytes)│││ ││  ├─ issuer key11c6904d…16c7b2c3  (32 bytes)││In plain words│ ││  ├─ vrf key4d9ca0a2…a598fef8  (32 bytes)││ A peer says: here is the next block│ ││  ├─ ▶ vrf result[2]││header on my chain.│ ││  ├─ body size4││ The header is untrusted until it has│ ││  ├─ body hash29571d16…5a5edcf1  (32 bytes)││been checked.│ ││  ├─ ▶ operational certificate[4]││ The mini-protocol in which a peer│ ││  └─ ▶ protocol version[2]││announces its chain header by header.│ │└─ kes signaturecb522976…fd406245  (448 bytes)││ Carries untrusted headers and rollback│ │▼ tip[2]││instructions.│ │├─ ▼ point[2]│││ ││  ├─ slot1399││Selected field│ ││  └─ hashf66f7d6c…8df18c70  (32 bytes)││ name       block number│ │└─ block number284││ raw name   block_number│ │││ value      251│ │││ How many blocks came before this one.│ │││ Longer chains win.│ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ╰──────────────────────────────────────────────────────────────────╯╰───────────────────────────────────────────╯  f forward  d drop  i intercept on/off  s re-sign edits  e edit  u run until…  z freeze  g run  r undo edits  p payloads  O claim/release  q quit ▏^p palette
The cursor on "block number". The Inspector says what the field is and why it matters.

Press e, type the new value, press Enter.

DWARF Freeze ╭────────────────────────────────────────────────────────────────────╮ ││ │New value for block number│ │▊▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▎│ │▊5251▎│ │▊▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▎│ │a whole number · enter to change · esc to cancel│ ││ ╰────────────────────────────────────────────────────────────────────╯
Editing the block number: the original plus 5000.
DWARF Freeze ❄ DWARF FREEZE   amaru 10.11.0 · testnet_42    FROZEN    step 475   held 3   re-sign on   peers paused   changed locally; Forward or Step sends it to the node InterceptHistoryStateFreeze pointsPayloadsScenariosOverviewSourceNodes ╸━━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ▊▔▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▔▔▔▔▎ ▊ Forward ▎▊ Drop ▎▊ Step ▎▊ Intercept is off ▎▊ ❄ Re-sign edits is on ▎▊ Run until… ▎▊ Undo edits ▎ ▊▁▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▁▁▁▁▎ holding:▐X▌ from peers ▐X▌ to peers ▐X▌ raw bytes ▐X▌ between parts ▐X▌ actions ▐X▌ store writes ▐X▌ timers  ╭─ HELD  3 items  ·  node frozen ───────────────────────╮╭─ ITEM 472 · RollForward ─────────────────────────────────────────╮╭─ INSPECTOR ───────────────────────────────╮ │ #    from → to                     what               ││message2││Item│ │ 472  192.0.2.6:3001 → chain sync  RollForward  CHANGE││▼ header[2]││ what       RollForward│ │473node → socket writerResult││├─ era6││ from       192.0.2.6:3001│ │475- → multiplexermultiplexer││└─ ▼ header[2]││ to         chain sync│ │▏││├─ ▼ header body[10]││ kind       recv│ ╰───────────────────────────────────────────────────────╯││  ├─ block number5251  CHANGED││ cold spot  ◆ cbor-decode│ ││  ├─ slot1204││ can        edit, drop│ ││  ├─ previous block654108da…555814e6  (32 bytes)│││ ││  ├─ issuer key11c6904d…16c7b2c3  (32 bytes)││In plain words│ ││  ├─ vrf key4d9ca0a2…a598fef8  (32 bytes)││ A peer says: here is the next block│ ││  ├─ ▶ vrf result[2]││header on my chain.│ ││  ├─ body size4││ The header is untrusted until it has│ ││  ├─ body hash29571d16…5a5edcf1  (32 bytes)││been checked.│ ││  ├─ ▶ operational certificate[4]││ The mini-protocol in which a peer│ ││  └─ ▶ protocol version[2]││announces its chain header by header.│ │└─ kes signaturecb522976…fd406245  (448 bytes)││ Carries untrusted headers and rollback│ │▼ tip[2]││instructions.│ │├─ ▼ point[2]│││ ││  ├─ slot1399││Your edits│ ││  └─ hashf66f7d6c…8df18c70  (32 bytes)││ 1.1.value.$embed.0.0│ │└─ block number284││   251 → 5251│ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ╰──────────────────────────────────────────────────────────────────╯╰───────────────────────────────────────────╯  f forward  d drop  i intercept on/off  s re-sign edits  e edit  u run until…  z freeze  g run  r undo edits  p payloads  O claim/release  q quit ▏^p palette
The field and the item are marked as changed. Nothing has reached the node yet.

Network messages are edited byte-exactly: only the bytes of that field change, plus the enclosing lengths if the size changed. r would undo the edit.

6.3 Forward it and see what the node did

Press f. The item goes to the node with your change and the node runs on.

DWARF Freeze ❄ DWARF FREEZE   amaru 10.11.0 · testnet_42    RUNNING    step 812   held 0   re-sign on   1 tamper   item 472 forwarded with your changes; running InterceptHistoryStateFreeze pointsPayloadsScenariosOverviewSourceNodes ╸━━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ▊▔▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▔▔▔▔▎ ▊ Forward ▎▊ Drop ▎▊ Step ▎▊ Intercept is off ▎▊ ❄ Re-sign edits is on ▎▊ Run until… ▎▊ Undo edits ▎ ▊▁▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▁▁▁▁▎ holding:▐X▌ from peers ▐X▌ to peers ▐X▌ raw bytes ▐X▌ between parts ▐X▌ actions ▐X▌ store writes ▐X▌ timers  ╭─ HELD  0 items ───────────────────────────────────────╮╭─ ITEM ───────────────────────────────────────────────────────────╮╭─ INSPECTOR ───────────────────────────────╮ │ #    from → to                     what               ││││Nothing is held.│ │▏│││││ ╰───────────────────────────────────────────────────────╯│││Turn Intercept on (i) to hold what you│ │││ticked above, press z to freeze the node│ │││right now, or add a condition under│ │││Freeze points.│ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ╰──────────────────────────────────────────────────────────────────╯╰───────────────────────────────────────────╯  f forward  d drop  i intercept on/off  s re-sign edits  e edit  u run until…  z freeze  g run  r undo edits  p payloads  O claim/release  q quit ▏^p palette
After Forward: the top line reports the item forwarded with your changes and counts one tamper.

Press 2 for History. Typing the same condition in the filter box shows only the headers the node received; selecting a row shows what went in and everything the node did because of it.

DWARF Freeze ❄ DWARF FREEZE   amaru 10.11.0 · testnet_42    RUNNING    step 959   held 0   re-sign on   1 tamper   item 472 forwarded with your changes; running InterceptHistoryStateFreeze pointsPayloadsScenariosOverviewSourceNodes ━━━━━━━━━━━╸━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ▊▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▎ ▊kind=proto_in and label=RollForward▎ ▊▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▎ ╭─ HISTORY ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ from                         to                           what                                about                                             node said │ │8  recv       192.0.2.6:3001              chain sync                   RollForward                         block number 284 · slot 1,399                     edited    │ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ WHAT WENT IN · item 472 · edited by you ─────────────────────────────────────────╮╭─ WHAT THE NODE DID ───────────────────────────────────────────────────────────────╮ │message2││You edited this item before the node saw it.│ │▼ header[2]││   476 does  send → track peers  FromUpstream conn id 0│ │├─ era6││     482 in    track peers  FromUpstream conn id 0│ │└─ ▼ header[2]││       484 does  read clock│ │├─ ▶ header body[10]││       486 does  Volatile Tip Effect│ │└─ kes signaturecb522976…fd406245  (448 bytes)││         503 gets  point  1197, 654108da…555814e6  (32 …, 250│ │▼ tip[2]││       504 does  read clock│ │├─ ▼ point[2]││       505 does  set timer  at 291.232847s · message RecheckLedgerHeight│ ││  ├─ slot1399││         629 in    track peers  RecheckLedgerHeight│ ││  └─ hashf66f7d6c…8df18c70  (32 bytes)││           630 does  Volatile Tip Effect│ │└─ block number284││             631 gets  point  1197, 654108da…555814e6  (32 …, 250│ │││           632 does  read clock│ ╰───────────────────────────────────────────────────────────────────────────────────╯╰───────────────────────────────────────────────────────────────────────────────────╯  f forward  d drop  space step  i intercept on/off  s re-sign edits  e edit  u run until…  z freeze  g run  r undo edits  p payloads  O claim/release  q quit ▏^p palette
History, filtered to inbound headers. Lower panes: what went in, and what the node did.
What the node does with a header 5000 blocks ahead. It does not reject it. Amaru sets aside a header that claims a height more than 1000 blocks ahead of its ledger and looks again every 200 ms, before checking the header against its parent. The node stops asking that peer for more, and the peer is not marked hostile. Freeze words this as set aside by the node, undecided.

6.4 The other tabs, in the same session

DWARF Freeze ❄ DWARF FREEZE   amaru 10.11.0 · testnet_42    RUNNING    step 18,497   held 0   re-sign on   loaded stages/select_chain-4 InterceptHistoryStateFreeze pointsPayloadsScenariosOverviewSourceNodes ━━━━━━━━━━━━━━━━━━━━╸━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ╭─ STATE ─────────────────────────────────────────╮▊▔▔▔▔▔▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▎ │▼ what the node holds│▊ Apply edits ▎▊ Reload ▎ │├── ▶ chain/best│▊▁▁▁▁▁▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▎ │├── ▶ chain/blocks│ │├── ▶ chain/headers│ │├── ▶ chain/nonces│ │├── ▶ ledger/accounts│ │├── ▶ ledger/params│ │├── ▶ ledger/pots│ │├── ▶ ledger/stake│ │├── ▶ ledger/tip│ │├── ▶ ledger/utxo│ │├── ▶ ledger/volatile│ │└── ▼ stages│ │├── 0-192.0.2.8:3001  0-192.0.2.8:3001-15│ │├── accept connections  accept-11│ │├── adopt chain  adopt_chain-7│ │├── block source  block_source-9│ │├── block fetch  blockfetch-28│ │├── blockfetch-responder  blockfetch-respon│ │├── chain sync  chainsync-27│ │├── chainsync-responder  chainsync-responde│╭─ VALUE · stages/select_chain-4 ─────────────────────────────────────────────────────────────────────────────────────╮ │├── reply cleanup  cleanup_replies-10││▼ downstream│ │├── dial worker  connect-worker-0-14││└─ namefetch_blocks-5│ │├── connector  connector-13││▼ tips{1}│ │├── fetch blocks  fetch_blocks-5││└─ ▶ b81a39ab…96eb9f7d  (32 bytes)(empty)│ │├── handshake  handshake-17││▼ best tip│ │├── KeepAlive  keepalive-25││├─ hashb81a39ab…96eb9f7d  (32 bytes)│ │├── keepalive-responder  keepalive-responde││├─ ▶ body│ │├── connection manager  manager-1││└─ signature68d42725…d75cfad7  (448 bytes)│ │├── mempool  mempool-8││may fetch blocksyes│ │├── multiplexer  mux-16│││ │├── peer-selection/ledger-check  peer-selec│││ │├── peer selection  peer_selection-2│││ │├── peer sharing  peer_sharing-26│││ │├── peer sharing-responder  peer_sharing-re│││ │├── socket reader  reader-0-19│││ │├── select chain  select_chain-4▆▆│││ │├── track peers  track_peers-3│││ │├── tx submission  tx_submission-29│││ ││││ ╰─────────────────────────────────────────────────╯╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯  f forward  d drop  i intercept on/off  s re-sign edits  e edit  u run until…  z freeze  g run  r undo edits  p payloads  O claim/release  q quit ▏^p palette
State (3): the parts of the node and its stores on the left, the selected entry's value on the right.
DWARF Freeze ❄ DWARF FREEZE   amaru 10.11.0 · testnet_42    RUNNING    step 1,197   held 0   re-sign on   1 tamper   condition added: kind=proto_in and label=RollBackward InterceptHistoryStateFreeze pointsPayloadsScenariosOverviewSourceNodes ━━━━━━━━━━━━━━━━━━━━━━━━━━━╸━━━━━━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Freeze the node whenever an item matches a condition. Examples:   kind=input and to~validate_block      label=RollBackward      slot>=138760000   to~select_chain and type~NewTip        txs#>10                 spot=block-check ▊▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▎ ▊new condition (enter to add; prefix with `log ` to only log, `once ` to fire once)▎ ▊▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▎ ╭─ CONDITIONS  (x deletes the selected one) ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ id  when                                  then         hits │ │ 2   kind=proto_in and label=RollBackward  log          0    │ ││ ││ ││ ││ ││ ││ ││ ││ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ PROBES  named places inside the node's functions  (enter turns reporting on or off · a all on · n all off) ───────────────────────────────────────────────────────────╮ │ reports  reached  probe                                           where in the node                                                                                  │ │ off      0        blockfetch.block_received                       crates/amaru-consensus/src/stages/fetch_blocks/mod.rs::FetchBlocks::block                          │ │off0 blockfetch.request                             crates/amaru-consensus/src/stages/fetch_blocks/mod.rs::FetchBlocks::request_blocks│ │off0 chain_store.roll_forward                       crates/amaru-protocols/src/store_effects.rs::RollForwardChainEffect::run│ │off0 chain_store.store_block                        crates/amaru-protocols/src/store_effects.rs::StoreBlockEffect::run│ │off0 chain_store.store_header                       crates/amaru-protocols/src/store_effects.rs::StoreValidatedHeaderEffect::run│ │off0 chain_store.switch_to_fork                     crates/amaru-protocols/src/store_effects.rs::SwitchToForkEffect::run│ │off1 connection.handshake.accepted                  crates/amaru-protocols/src/connection.rs::do_handshake│ │off0 connection.handshake.refused                   crates/amaru-protocols/src/connection.rs::do_handshake│ │off1 connection.initialize                          crates/amaru-protocols/src/connection.rs::do_initialize│ │off0 connection.teardown                            crates/amaru-protocols/src/connection.rs::teardown│ │off0 consensus.adopt_chain.extend                   crates/amaru-consensus/src/stages/adopt_chain/mod.rs::adopt_tip│ │off0 consensus.adopt_chain.switch_fork              crates/amaru-consensus/src/stages/adopt_chain/mod.rs::adopt_tip│ │off0 consensus.select_chain.best_tip_invalidated    crates/amaru-consensus/src/stages/select_chain/mod.rs::SelectChain::handle_block_validation_result│ │off0 consensus.select_chain.extend                  crates/amaru-consensus/src/stages/select_chain/mod.rs::SelectChain::handle_tip_from_upstream│ │off0 consensus.select_chain.fork                    crates/amaru-consensus/src/stages/select_chain/mod.rs::SelectChain::handle_tip_from_upstream│ │off0 consensus.select_chain.new_best_tip            crates/amaru-consensus/src/stages/select_chain/mod.rs::SelectChain::handle_tip_from_upstream│ │off0 consensus.select_chain.reject                  crates/amaru-consensus/src/stages/select_chain/mod.rs::SelectChain::handle_tip_from_upstream│ │off0 consensus.track_peers.adversarial              crates/amaru-consensus/src/stages/track_peers/mod.rs::TrackPeers::try_roll_forward│ │off0 consensus.track_peers.defer.clock_skew         crates/amaru-consensus/src/stages/track_peers/mod.rs::TrackPeers::try_roll_forward│ │off1 consensus.track_peers.defer.ledger_height      crates/amaru-consensus/src/stages/track_peers/mod.rs::TrackPeers::handle_from_upstream│ │off0 consensus.track_peers.defer.stake_distribution crates/amaru-consensus/src/stages/track_peers/mod.rs::TrackPeers::try_roll_forward│ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── 4 of 69 reached ─╯ ▏^p palette
Freeze points (4): a condition that only logs, and below it the node's probes with their counts.
DWARF Freeze ❄ DWARF FREEZE   amaru 10.11.0 · testnet_42    RUNNING    step 19,355   held 0   re-sign on   loaded stages/select_chain-4 InterceptHistoryStateFreeze pointsPayloadsScenariosOverviewSourceNodes ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ╭─ OVERVIEW ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ ││ │ NODE   amaru 10.11.0 · testnet_42    RUNNING   127 steps/s   step 19,355│ ││ │ PEERS                                     heard    said   last heard│ │   ● 192.0.2.8:3001            226      96   Block  1s ago│ ││ │ INSIDE THE NODE                    handled  actions   last did│ │track peers                 91      622   send│ │   ↓│ │select chain               225      504   Record Block Valid Effect│ │   ↓│ │fetch blocks               187      753   send│ │   ↓│ │validate block              87      437   send│ │   ↓│ │adopt chain                 87      850   send│ ││ │connection manager         143      200   send│ │peer selection               2       21   send│ │mempool                     88      262   Record Metrics Effect│ │block source               261        0   │ │connections & helpers    2,260    4,462   20 running: accept connections · block fetch · blockfetch-responder · chain sync · chainsync-responder · reply│ │cleanup · dial worker · connection …│ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯  f forward  d drop  space step  i intercept on/off  s re-sign edits  e edit  u run until…  z freeze  g run  r undo edits  p payloads  O claim/release  q quit ▏^p palette
Overview (5): peers, and the path a block takes through the node.
DWARF Freeze ❄ DWARF FREEZE   amaru 10.11.0 · testnet_42    RUNNING    step 20,163   held 0   re-sign on   loaded stages/select_chain-4 InterceptHistoryStateFreeze pointsPayloadsScenariosOverviewSourceNodes ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Lists of test values, and rules that apply them for you. In Intercept, select a field of a held item and press p to run a list against it: one value per matching item, automatically. n new list · a add value · e edit value · x delete · I import list file · E export list · T load template · S stop all rules · C clear results · R save results ╭─ PAYLOAD LISTS ──────────────────────╮╭─ VALUES · 32-byte hashes  (shipp… ─╮╭─ RULES  0 running ───────────────────────────────────────────────────────────────────────╮ │ list                values ││ #  value                           ││ rule  when  does  progress │ │ 32-byte hashes      4       shipped ││ 1  0x000000000000000000000000000000│││ │byte string damage 11     shipped││20xffffffffffffffffffffffffffffff│││ │integer boundaries 18     shipped││30x010101010101010101010101010101│││ │nearby numbers 8      shipped││40xdeadbeefdeadbeefdeadbeefdeadbe│││ ╰──────────────────────────────────────╯│▍│││ ╰─ Well-known 32-byte values to pu… ─╯││ ││ ││ ││ ││ ╰──────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ RESULTS  0 ─────────────────────────────────────────────────────────────────────────────╮ │ #  rule  item  what  value  was → became  node said │ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ╰──────────────────────────────────────────────────────────────────────────────────────────╯  f forward  d drop  space step  i intercept on/off  s re-sign edits  e edit  u run until…  z freeze  g run  r undo edits  p payloads  O claim/release  q quit ▏^p palette
Payloads (6): value lists on the left, running rules and results on the right.
DWARF Freeze ❄ DWARF FREEZE   amaru 10.11.0 · testnet_42    RUNNING    step 20,971   held 0   re-sign on   loaded stages/select_chain-4 InterceptHistoryStateFreeze pointsPayloadsScenariosOverviewSourceNodes ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸━━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ DWARF's scenarios. The ones marked ready or partly can be carried out from inside this node: L loads the selected one as rules and starts them (results appear in Payloads) · W writes it as a template file · A shows or hides the ones Freeze cannot do, with the reason. ▊▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▎ ▊chainsync▎ ▊▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▎ ╭─ DWARF SCENARIOS  3 shown · 54 ready · 22 partly · 284 not possible from inside a node ────────╮╭─ SCENARIO ───────────────────────────────────────────────────────────╮ │ can run  about          target                scenario                                         ││Compose a substrate scenario that injects a non-incrementing│ │ ready    chain sync     cardano-node          runtime-substrate-chainsync-nonincrementing-heigh││ChainSync height│ │readychain synccardano-node runtime-substrate-chainsync-nonmonotonic-slot-exa││runtime-substrate-chainsync-nonincrementing-height-example-smoke│ │readychain synccardano-node runtime-substrate-chainsync-parent-discontinuity-│││ │││ target   cardano-node│ ╰────────────────────────────────────────────────────────────────────────────────────────────────╯│ runs as  devnet│ │ about    chain sync│ │ threats  -│ │ risks    RR-002│ ││ │What DWARF does│ │ runtime_install_version, runtime_compose_substrate,│ │runtime_chainsync_nonincrementing_height,│ │runtime_multi_node_observation│ │What DWARF checks│ │ all_nodes_responsive, chainsync_height_monotonicity_enforced│ ││ │From inside this node: ready│ ││ │Rules Freeze would run│ │ chainsync nonincrementing height: send an earlier chain sync│ │message again│ │   when kind=proto_in and type=ouroboros/2 and [0]=2│ │   after 3 have gone by, send an earlier one in its place│ │   expect the node to: rejected / error / hung up / hostile│ ││ ││ ││ ││ ││ ││ ││ ││ ││ ││ ╰──────────────────────────────────────────────────────────────────────╯  f forward  d drop  space step  i intercept on/off  s re-sign edits  e edit  u run until…  z freeze  g run  r undo edits  p payloads  O claim/release  q quit ▏^p palette
Scenarios (7), filtered to "chainsync": DWARF scenarios Freeze can carry out.
DWARF Freeze ❄ DWARF FREEZE   amaru 10.11.0 · testnet_42    RUNNING    step 1,526   held 0   re-sign on   1 tamper   condition added: kind=proto_in and label=RollBackward InterceptHistoryStateFreeze pointsPayloadsScenariosOverviewSourceNodes ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╸━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Every Freeze node of this devnet, what each is holding, and what all of them did, merged by time. enter moves this window to the selected node · Z freezes all · G runs all · on a held item: f forward and run, space forward and stay frozen, d drop, enter opens it on its node to edit ╭─ FREEZE NODES ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ node       agent           step   held │ │ this node  127.0.0.1:7423  running  1,519  0     ← this window │ ││ ││ ││ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ HELD ON ANY NODE ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ node  #  from → to  what │ ││ ││ ││ ││ ││ ││ ││ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─ ALL NODES, BY TIME ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ time          node       #     from         to           what                │ │ 22:46:27.121 this node 1500  does  track peersnodeVolatile Tip Effect│ │ 22:46:27.121 this node 1501  gets  nodetrack peerspoint│ │ 22:46:27.121 this node 1502  does  track peers-read clock│ │ 22:46:27.121 this node 1503  does  track peers-read clock│ │ 22:46:27.121 this node 1504  does  track peers-set timer│ │ 22:46:27.121 this node 1505  state track peers-track peers│ │ 22:46:27.323 this node 1506  in    -track peerstrack peers│ │ 22:46:27.323 this node 1507  does  track peersnodeVolatile Tip Effect│ │ 22:46:27.324 this node 1508  gets  nodetrack peerspoint│ │ 22:46:27.324 this node 1509  does  track peers-read clock│ │ 22:46:27.324 this node 1510  does  track peers-read clock│ │ 22:46:27.324 this node 1511  does  track peers-set timer│ │ 22:46:27.324 this node 1512  state track peers-track peers│ │ 22:46:27.526 this node 1513  in    -track peerstrack peers│ │ 22:46:27.526 this node 1514  does  track peersnodeVolatile Tip Effect│ │ 22:46:27.526 this node 1515  gets  nodetrack peerspoint│ │ 22:46:27.526 this node 1516  does  track peers-read clock▆▆│ │ 22:46:27.526 this node 1517  does  track peers-read clock│ │ 22:46:27.527 this node 1518  does  track peers-set timer│ │ 22:46:27.527  this node  1519  state  track peers  -            track peers         │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯  i intercept on/off  s re-sign edits  e edit  u run until…  z freeze  g run  r undo edits  p payloads  O claim/release  q quit ▏^p palette
Nodes (8): each Freeze node of the devnet and what they did, merged by time.

6.5 Intercept everything from peers

Press 1, then i. Intercept is on: the node now stops at every item of the kinds ticked in the "holding" row. f forwards one and runs to the next; space forwards one and stays frozen; d drops one.

DWARF Freeze ❄ DWARF FREEZE   amaru 10.11.0 · testnet_42    FROZEN    step 1,748   held 2   re-sign on   1 tamper   peers paused   intercept on InterceptHistoryStateFreeze pointsPayloadsScenariosOverviewSourceNodes ╸━━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ▊▔▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▔▔▔▔▎ ▊ Forward ▎▊ Drop ▎▊ Step ▎▊ ❄ Intercept is on ▎▊ ❄ Re-sign edits is on ▎▊ Run until… ▎▊ Undo edits ▎ ▊▁▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▁▁▁▁▎ holding:▐X▌ from peers ▐X▌ to peers ▐X▌ raw bytes ▐X▌ between parts ▐X▌ actions ▐X▌ store writes ▐X▌ timers  ╭─ HELD  2 items  ·  node frozen ───────────────────────╮╭─ ITEM 1747 · KeepAlive ──────────────────────────────────────────╮╭─ INSPECTOR ───────────────────────────────╮ │ #     from → to                     what              ││message0││Item│ │ 1747  KeepAlive → 192.0.2.6:3001   KeepAlive         ││cookie2││ what       KeepAlive│ │1748- → multiplexermultiplexer││││ from       KeepAlive│ │▎││││ to         192.0.2.6:3001│ ╰───────────────────────────────────────────────────────╯│││ kind       send│ │││ can        edit, drop│ ││││ │││In plain words│ │││ A ping that proves a peer is still│ │││there.│ │││ Its timeouts decide when a peer is│ │││dropped.│ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ╰──────────────────────────────────────────────────────────────────╯╰───────────────────────────────────────────╯  f forward  d drop  space step  i intercept on/off  s re-sign edits  e edit  u run until…  z freeze  g run  r undo edits  p payloads  O claim/release  q quit ▏^p palette
Intercept on: the node stopped at the next message from a peer.

Press i again to turn it off, and g to let the node run.

DWARF Freeze ❄ DWARF FREEZE   amaru 10.11.0 · testnet_42    RUNNING    step 1,878   held 0   re-sign on   1 tamper   running InterceptHistoryStateFreeze pointsPayloadsScenariosOverviewSourceNodes ╸━━━━━━━━━╺━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ▊▔▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▔▔▔▔▎▊▔▔▔▔▔▔▔▔▔▔▔▔▎ ▊ Forward ▎▊ Drop ▎▊ Step ▎▊ Intercept is off ▎▊ ❄ Re-sign edits is on ▎▊ Run until… ▎▊ Undo edits ▎ ▊▁▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▁▁▁▁▎▊▁▁▁▁▁▁▁▁▁▁▁▁▎ holding:▐X▌ from peers ▐X▌ to peers ▐X▌ raw bytes ▐X▌ between parts ▐X▌ actions ▐X▌ store writes ▐X▌ timers  ╭─ HELD  0 items ───────────────────────────────────────╮╭─ ITEM ───────────────────────────────────────────────────────────╮╭─ INSPECTOR ───────────────────────────────╮ │ #     from → to                     what              ││││Nothing is held.│ │▎│││││ ╰───────────────────────────────────────────────────────╯│││Turn Intercept on (i) to hold what you│ │││ticked above, press z to freeze the node│ │││right now, or add a condition under│ │││Freeze points.│ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ││││ ╰──────────────────────────────────────────────────────────────────╯╰───────────────────────────────────────────╯  f forward  d drop  space step  i intercept on/off  s re-sign edits  e edit  u run until…  z freeze  g run  r undo edits  p payloads  O claim/release  q quit ▏^p palette
Intercept off and the node running again.

Press q to leave. Everything was recorded from the moment the node started; there is nothing to switch on.

6.6 Look at the recording, and keep it

The item that was edited in this session is number 472.

freeze-debugger sessions
SESSION-A     1,899 items    1 tampers  amaru testnet_42
SESSION-B    16,865 items    0 tampers  amaru testnet_42
SESSION-C         0 items    0 tampers  amaru testnet_42
SESSION-D   318,628 items    0 tampers  amaru testnet_42
SESSION-E   192,728 items    0 tampers  amaru testnet_42
SESSION-F    15,058 items    1 tampers  amaru testnet_42
freeze-debugger search 'kind=proto_in and label=RollForward' --limit 6
         472  proto_in         RollForward                peer:192.0.2.6:3001       → stage:chainsync-27         2, 6, $tag 24 · value 828a…, 1399, f66f7d6c…8df18c70…
1 item(s)

There is only one. After the edited header, the node stopped asking that peer for more, and this relay has one upstream peer. That is the node's reaction to the edit, not a fault; rewind or a fresh devnet brings the traffic back.

freeze-debugger mark 472 --bookmark --comment "block number raised by 5000"
bookmarked
comment saved
freeze-debugger mark 472 --finding "Header far ahead is parked, not rejected" --severity info
finding saved
freeze-debugger findings
!*#      472  proto_in         RollForward                peer:192.0.2.6:3001       → stage:chainsync-27         2, 6, $tag 24 · value 828a…, 1399, f66f7d6c…8df18c70…
             finding (info): Header far ahead is parked, not rejected
             note: block number raised by 5000
1 finding(s); ! finding, * bookmark, # comment
freeze-debugger findings -o ~/freeze/work/findings.md
wrote ~/freeze/work/findings.md (1 finding(s)) and ~/freeze/work/findings.evidence.json
cat findings.md
# Freeze findings

Session `SESSION-A` · 2,772 items · 1 intervention(s) · 1 finding(s)

## 1. Header far ahead is parked, not rejected  (info)

- **Where:** item 472 · proto_in · RollForward · peer:192.0.2.6:3001 → stage:chainsync-27
- **What was done:** replace
  - `header.header.header_body.block_number`: 251 → 5251
- **What the node did:** set aside by the node, undecided (waiting for its ledger or clock to catch up)

```
476 internal_action send → stage:track_peers-3  FromUpstream conn id 0
  482 internal_input TrackPeersMsg → stage:track_peers-3  FromUpstream conn id 0
    484 internal_action clock  none
    486 internal_action VolatileTipEffect → node
      503 internal_result Point → stage:track_peers-3  1197, 654108da…555814e6  (32 …, 250
    504 internal_action clock  none
    505 internal_action schedule  at 291.232847s · message RecheckLedgerHeight
      629 internal_input TrackPeersMsg → stage:track_peers-3  RecheckLedgerHeight
        630 internal_action VolatileTipEffect → node
          631 internal_result Point → stage:track_peers-3  1197, 654108da…555814e6  (32 …, 250
        632 internal_action clock  none
        633 internal_action clock  none
… (6 more lines)
freeze-debugger coverage --top 5
session SESSION-A: 2,926 items

Parts of the node that handled something (24):
       311  track_peers
        58  mux
        18  reader
         8  writer
         7  keepalive

Effects run (21):
       310  VolatileTipEffect
        52  RecvEffect
         8  SendEffect
         4  LoadPointEffect
         3  LoadHeaderEffect

Protocol messages (11):
         3  → KeepAlive
         3  ← KeepAliveResponse
         2  → RequestNext
         1  → ProposeVersions
         1  ← AcceptVersion

Errors returned (0):

Rejections (0):

Probes reported (only those enabled; `freeze-debugger probes` has every hit) (0):

Function calls reported (only those traced; `freeze-debugger trace` has every count) (0):

Sent but not yet handled (queues):
         1  stage:accept-11
         1  stage:peer-selection/ledger-check-12
freeze-debugger export -o ~/freeze/work/run1.tar.gz
wrote ~/freeze/work/run1.tar.gz: 3,031 items, 1 intervention(s)
freeze-debugger import ~/freeze/work/run1.tar.gz
run run1: amaru 10.11.0 testnet_42, 3,031 items, 1 intervention(s)
  1. in the next RollForward set header.header.header_body.block_number = 5251  [kind=proto_in and type=ouroboros/2 and [0]=2]
stored in ~/.local/share/dwarf/freeze/runs/run1
look at it:   freeze-debugger open run1
do it again:  freeze-debugger ingest run1 --network <devnet|preprod|...>

6.7 Watch, and send a transaction

The rest of this section is a second devnet, also started with --frozen and then let run. watch prints one line per step; here only messages from peers. The lines are headers (chain sync, message 2), requests for the next one (message 1) and blocks (block fetch, message 4).

freeze-debugger watch --network devnet --only 'kind=proto_in'
# amaru 10.11.0 testnet_42  status={'frozen': False, 'seq': 11707, 'held': [], 'deferred': [], 'hold': None, 'conditions': 0, 'frozen_ms': 11547, 'resigning': {'enabled': True, 'available': True}}
   11738 proto_in         192.0.2.8:3001 → chain sync                 chain sync               2, 6, $tag 24 · value 828a…, 1444, e7146ff0…6ae8fc80…
   11777 proto_in         192.0.2.8:3001 → chain sync                 chain sync               1
   11877 proto_in         192.0.2.8:3001 → block fetch                block fetch              4, $tag 24 · value 8207858…
   11985 proto_in         192.0.2.8:3001 → chain sync                 chain sync               2, 6, $tag 24 · value 828a…, 1447, ffe75a59…15596ed7…
   12040 proto_in         192.0.2.8:3001 → chain sync                 chain sync               1
   12138 proto_in         192.0.2.8:3001 → block fetch                block fetch              4, $tag 24 · value 8207858…
   12276 proto_in         192.0.2.8:3001 → chain sync                 chain sync               2, 6, $tag 24 · value 828a…, 1450, 77ca70f3…b552e284…
   12313 proto_in         192.0.2.8:3001 → chain sync                 chain sync               1

A payment from the devnet's funded key, so the ledger rules have a transaction to check:

freeze-debugger devnet tx pay
payment sent: 5034ad2838cb181c32a364f63605fd5172907ea3b399069c58c799812a3e5c95

6.8 Edit without the UI: a Python script

on_item(item) is called for each held item. It returns "drop", "hold", a replacement, or nothing to forward. The script is not sandboxed: it runs with your permissions. Save this as drop_two.py:

"""Drop the first two chain-sync messages a peer sends, forward the rest."""
dropped = 0

def on_item(item):
    global dropped
    if item["kind"] == "proto_in" and dropped < 2:
        dropped += 1
        return "drop"
    return None

It was left to run for 40 seconds and stopped with Ctrl-C:

freeze-debugger script ~/freeze/work/drop_two.py --network devnet --only 'kind=proto_in and type=ouroboros/2'
WARNING: SCRIPT CODE IS NOT SANDBOXED and runs with your full Python permissions.
freeze-debugger script: interrupted
actions: forward=267 drop=1 replace=0 replace_raw=0 hold=0
filtered (forwarded without callback): 267
non-holdable (recorded, not intercepted): 40
session recorded in ~/.local/share/dwarf/freeze/sessions/SESSION-G

Only one message was dropped, not two: after the first drop, no further chain-sync message arrived from that peer in those 40 seconds. A script runs until it returns "hold" or you press Ctrl-C. Stop it with Ctrl-C, not by killing it: a killed script leaves its hold in place and the node freezes on the next item. If the node was frozen when the script started, it is frozen again when the script ends.

6.9 Rewind

Rewind puts the node's stored chain back to its start, repeats every change the session made before the item you name, and runs the node until that item comes again. It then freezes with the item held, untouched. This needs the devnet to have been started with --frozen. Here it goes back to a header from the watch output above, from before the script dropped anything:

freeze-debugger rewind --to 11738 --session SESSION-G --no-attach
session SESSION-G: going back to item 11738 (RollForward), number 60 of its kind
putting back the chain saved as `start` and restarting the node, frozen…
repeating 0 change(s) made before it, then running to it…
the node is frozen with item 9878 held: it corresponds to item 11738 of the recording
freeze-debugger devnet nodes
  amaru-relay-1        127.0.0.1:7423   FROZEN   step 9,884   held 6

Items are numbered differently in a second run (11738 became 9878), so the item is recognised by the header it carries. Leave out --no-attach to land in the UI. Only the Freeze node is rewound; the other nodes keep their chain, so the node catches up when you let it run.

6.10 Edit without the UI: a template

A template is a file of rules. This one waits for the next inbound header and raises its block number by 5000. Save it as raise-block-number.yaml:

name: inbound header with a raised block number
rules:
  - name: raised block number
    when: kind=proto_in and type=ouroboros/2 and [0]=2
    field: header_body.block_number
    values: ["add:5000"]
    mode: each

The node is still frozen from the rewind. A template waits for traffic, so it says so; the second command, run from another terminal, lets the node go:

freeze-debugger template ~/freeze/work/raise-block-number.yaml --network devnet --wait 90 -o result.json
the node is frozen, so nothing will reach the rules until it runs: `freeze-debugger devnet nodes --thaw`, or `g` in the UI
template `inbound header with a raised block number`: 1 rule(s)
  raised block number #1: item 10055 replace 310 → 5310
session recorded as SESSION-H
raised block number #1  item 10055  add:5000               310 → 5310                               set aside by the node, undecided (waiting for its ledger or clock to catch up)
results written to ~/freeze/work/result.json
freeze-debugger devnet nodes --thaw
  amaru-relay-1        127.0.0.1:7423   running  step 9,884   held 0

The result line reads: rule, attempt, item, the value used, what the field was and became, and what the node said.

6.11 Rewind to the edited item, and send it again

Going back to the header the template edited lands on it before the edit:

freeze-debugger rewind --to 10055 --no-attach
session SESSION-H: going back to item 10055 (RollForward), number 61 of its kind
putting back the chain saved as `start` and restarting the node, frozen…
repeating 0 change(s) made before it, then running to it…
the node is frozen with item 10409 held: it corresponds to item 10055 of the recording
freeze-debugger devnet nodes
  amaru-relay-1        127.0.0.1:7423   FROZEN   step 10,413   held 4

repeat sends a recorded item again, with fields changed if you like. A message from a peer cannot be put on the wire from here, so it takes the place of the next message of the same kind. After a rewind the node records a new session, so name the session the item is in:

freeze-debugger repeat 10055 --session SESSION-H --set header_body.block_number=999 --network devnet --wait 40
902 bytes will take the place of the next 1 message(s) matching: kind=proto_in and type=ouroboros/2 and [0]=2
  repeat item 10055 #1: item 10585 replace 83028206…46190202  (902 bytes) → 83028206…791901fa  (902 bytes)
#1  item 10585  re-signing failed: slot is protected because changing it requires a new Praos VRF proof
session recorded as SESSION-I

Freeze refused to re-sign this one: the repeated header's slot is not the slot of the message it replaced, and re-signing does not cover a changed slot. That is the stated limit of re-signing, not a fault.

7. Conditions

One small language is used by "Run until", Freeze points, the History filter, search, watch --only, script --only and a template's when.

kind=input and to~validate_block      label=RollBackward         slot>=138760000
type=ouroboros/2 and [0]=2            txs#>10                    not label=clock
FormMeaning
kind=a,bOne of these kinds. Short names: input, action, result, state, wire, proto, store, timer, probe. proto_in and proto_out pick a direction.
to= from= type= label=Text tests. = exact, ~ contains, ^ starts with, $ ends with.
label=RollForwardA network message by the name the UI shows. Works for every mini-protocol message name (RollBackward, Block, KeepAlive and so on), on either side of the protocol. Only with =: label~Roll finds the node's effects with that text, not network messages.
seq>=NItem number at least N.
path=value, !=, <, >, >=, <=Compare a field of the item. Paths use dots and [n], for example txs[0].fee.
path~textThe field contains this (text, or hex of bytes).
path#>NThe field is longer than N.
path?The field exists.
@nameA saved filter (see filters).
everythingAlways true.

Join with and / or (and binds tighter); prefix a term with not.

Network messages by number. type is ouroboros/<n>: 0 handshake, 2 chain sync, 3 block fetch, 4 tx submission, 8 keep alive, 10 peer sharing. [0] is the message number, so type=ouroboros/2 and [0]=2 is a RollForward and type=ouroboros/3 and [0]=4 is a Block. A node serving a protocol reports it with 32768 added (chain sync served is ouroboros/32770); label= covers both.

8. Every command

Commands that talk to a node take the same connection options: --network devnet (find the devnet's node by itself), or --host, --port and --token-file for any other Freeze node; --node SERVICE picks one of several Freeze nodes. Commands that read a recording take --session NAME and default to the most recent.

Building and starting

build

Makes a node image with the Freeze agent compiled in. The source tree is copied; the original is never modified.

--source DIRRequired. An Amaru source tree. DWARF ships one at dwarf/testplease/amaru/v10.11.20260925.
--staticA fully static x86-64 build. Required for the devnet.
--recipe NAMEWhich set of hooks to use. Default: the first that applies. Shipped: v10.11.20260925 and v10.11.20261105.
--tag TAGImage tag. Default: derived from the source and recipe.
--platform PContainer platform, for example linux/amd64. Ignored with --static.
--debug-infoKeep what source-line stepping needs and also build a tools image for source.
freeze-debugger build --static --source dwarf/testplease/amaru/v10.11.20260925

devnet up

Starts the closed local devnet. Returns once the Freeze node's container is running; bootstrap continues in the background.

--frozenHold every Freeze node at its first step, and save the main node's stored chain as snapshot start.
--profile NAMEWhich devnet layout. Default relay. devnet profiles lists them.
--also SERVICEAnother service that also runs the Freeze build, on the next port. Repeatable.
--image IDefault: the most recent static image.
--port PAgent port. Default 7373.
--record all|held|noneWhat the broker keeps on disk.
--no-auto-pauseDo not pause the other nodes while the Freeze node is frozen.
--freeze-togetherThe other Freeze nodes freeze and run with the main one.
--resign / --no-resignEnable or disable controlled-devnet ChainSync/BlockFetch header/body repair. Disabled repair refuses changed protocol emission; deliberate stale forwarding requires the per-item explicit negative-control choice.
--peer-cooldown SSeconds the Freeze node keeps a misbehaving peer out. Default 5; Amaru's own default is 600.
--no-brokerNo broker in front of the nodes.
freeze-debugger devnet up --frozen
freeze-debugger devnet up --profile relay-pair      # both Amaru relays are Freeze nodes

devnet profiles

Lists the devnets you can start and which services a Freeze node can replace in them.

freeze-debugger devnet profiles
Profiles (start one with `freeze-debugger devnet up --profile NAME`):
  kes-security             Freeze node: amaru-relay-1    [shipped]
                           DWARF's KES security layout (producers, Haskell relays, Amaru relays, KES proxy and victim); Freeze is the first Amaru relay.
  miniprotocol-security    Freeze node: amaru-relay-1    [shipped]
                           DWARF's mini-protocol security layout (producers, relays, an Amaru victim and a fuzzer); Freeze is the first Amaru relay.
  relay-2                  Freeze node: amaru-relay-2    [shipped]
                           The same devnet with Freeze as the second Amaru relay, fed by producer p2.
  relay-pair               Freeze node: amaru-relay-1    [shipped]
                           Both Amaru relays are Freeze nodes, each with its own agent: amaru-relay-1 (fed by p1) and amaru-relay-2 (fed by p2). Compare how two nodes take the same chain, or tamper with one and watch the other.
  relay                    Freeze node: amaru-relay-1    [shipped]  ← running
                           Three Haskell block producers and two Amaru relays; Freeze is the first relay, fed by producer p1. The default.
  scripted-peer            Freeze node: amaru-relay-2    [shipped]

devnet status, devnet nodes, devnet broker

Shown in Check status. devnet nodes --freeze and --thaw act on every Freeze node at once:

freeze-debugger devnet nodes --freeze
  amaru-relay-1        127.0.0.1:7423   FROZEN   step 21,976   held 0
freeze-debugger devnet nodes --thaw
  amaru-relay-1        127.0.0.1:7423   running  step 21,976   held 0

devnet broker start and stop control the brokers; devnet broker --auto-pause off stops the broker pausing the other nodes.

devnet attach

Waits until the node answers, then opens the UI. --node SERVICE picks one of several Freeze nodes; --wait S sets how long to wait (default 3600); --direct talks to the agent instead of its broker.

devnet down

Stops and removes the devnet. Without --keep-data its volumes are deleted.

devnet pause-peers, devnet resume-peers

Pause and resume every container except the Freeze nodes, by hand. With a broker running, pause-peers also turns the broker's automatic pausing off so it does not undo what you asked for.

run, stop, attach

One Freeze node on a public network instead of the devnet. Only preprod has been tested. This uses the ordinary build, not the --static one.

freeze-debugger build --source dwarf/testplease/amaru/v10.11.20260925
freeze-debugger run --network preprod        # starts the node frozen and opens the UI
freeze-debugger attach --network preprod     # reopen the UI later
freeze-debugger stop --network preprod       # add --remove-data to delete its chain data too

run options: --thawed (let it run from the start), --no-attach, --port P, --peer HOST:PORT, --image I, --node-arg ARG. attach also opens the UI on any running Freeze node: attach --host 127.0.0.1 --port 7373 --token-file FILE.

On a public network, use Freeze to observe and to tamper with what your own node receives. Do not use it to send altered traffic to other people's nodes; that is what the devnet is for.

demo

The real UI on a recording of a real node syncing preprod. No node, no Docker. It starts frozen: space steps, g runs, i turns Intercept on.

freeze-debugger demo

Watching and driving a node

watch

Prints one line per step, with no UI. --only COND prints only matching steps; --sample N asks for one step in N on a busy node. Ctrl-C stops it.

Shown in 6.7.

template

Runs a template of rules against a node without the UI. --wait S is how long to wait for the rules to finish (default 600); -o FILE writes the results as JSON. Shown in 6.10; the format is in section 9.

script

Runs on_item(item) from a named local Python file for each held item. --only COND limits what is held; --no-record does not write the session. Shown in 6.8.

repeat

Sends an item from a recorded session again, changed or not. --set FIELD=VALUE (repeatable; values may be transforms such as add:1), --times N, --wait S, --session NAME. Shown in 6.11.

rewind

Takes the devnet's Freeze node back to an earlier item of a recorded session: the node is restarted from the snapshot, every change the session made before that item is made again, and the node runs until the corresponding item and freezes with it held. Items are numbered differently in a second run, so the item is recognised by what it carries.

--to ITEMRequired. The item number in the recording.
--session NAMEDefault: the node's latest recording.
--snapshot NAMEDefault: the node's start snapshot.
--by-countStop at the item in the same position among its like instead.
--no-attachDo not open the UI afterwards.
--node SERVICE, --wait SWhich Freeze node; how long to wait.

devnet tx

Sends a transaction with the devnet's own funded key, so the ledger rules have something to check. pay is a payment from the key to itself; script locks an output at a script that always succeeds, then spends it. Options: --lovelace N, --count K, --via SERVICE.

Shown in 6.7.

devnet snapshot, devnet stats

snapshot save NAME stops the Freeze node, copies its chain and ledger stores aside and starts it again; snapshot restore NAME puts a saved chain back (frozen at the first step unless --running); snapshot list and delete NAME do what they say. devnet stats samples the node's memory, CPU and thread count.

freeze-debugger devnet snapshot list
  before-edits             2026-11-14T01:38:10Z       1.5 MB  scripted-peer/amaru-relay-2  validation
  start-amaru-relay-2      2026-11-14T16:18:15Z       0.5 MB  relay-pair/amaru-relay-2  taken by itself before the node's first step
  start                    2026-11-15T22:41:07Z       0.5 MB  relay/amaru-relay-1  taken by itself before the node's first step

devnet timeline

What every Freeze node did, merged by time, from the brokers' recordings. --last N (default 60), --when CONDITION.

freeze-debugger devnet timeline --last 8
  22:47:21.006  amaru-relay-1        3436  internal_action  stage:track_peers-3          →                              schedule
  22:47:21.006  amaru-relay-1        3437  internal_state   stage:track_peers-3          →                              TrackPeers
  22:47:21.206  amaru-relay-1        3438  internal_input                                → stage:track_peers-3          TrackPeersMsg
  22:47:21.206  amaru-relay-1        3439  internal_action  stage:track_peers-3          → node                         VolatileTipEffect
  22:47:21.207  amaru-relay-1        3440  internal_result  node                         → stage:track_peers-3          Point
  22:47:21.207  amaru-relay-1        3441  internal_action  stage:track_peers-3          →                              clock
  22:47:21.207  amaru-relay-1        3442  internal_action  stage:track_peers-3          →                              clock
  22:47:21.207  amaru-relay-1        3443  internal_action  stage:track_peers-3          →                              schedule

Working on a recording

sessions

Lists recorded sessions, newest first, with their item and tamper counts. Shown in 6.6.

Finds items in a recorded session by condition, by saved filter (@name), or by text if the query is not a condition. --limit N.

filters

Conditions saved under a name, used as @name in search and in History's filter box.

freeze-debugger filters save headers 'kind=proto_in and type=ouroboros/2 and [0]=2' --about "headers from peers"
saved @headers
freeze-debugger filters
@headers                  kind=proto_in and type=ouroboros/2 and [0]=2   # headers from peers
freeze-debugger search @headers --limit 3
!*#      472  proto_in         RollForward                peer:192.0.2.6:3001       → stage:chainsync-27         2, 6, $tag 24 · value 828a…, 1399, f66f7d6c…8df18c70…
1 item(s)
freeze-debugger filters delete headers
forgot @headers

mark, findings

mark SEQ bookmarks, comments on, or records a finding about an item: --bookmark, --comment TEXT, --finding TITLE --severity S --detail TEXT. findings lists a session's marks; findings -o report.md writes the findings as a report with the evidence as JSON beside it. Shown in 6.6.

coverage

What a recorded session reached: parts of the node, effects, protocol messages, errors, rejections and queues. --against SESSION shows what only one of two runs reached; --top N limits each list.

compare

compare A.json B.json compares two result files from template -o or scenarios run -o, attempt by attempt. compare --items A B compares two items field by field, and what the node did with each.

export, import, open, ingest

Whole runs. export writes a recorded session as one .tar.gz (--until N keeps only up to item N; --note TEXT). import unpacks it and prints what the run did, one sentence per intervention. open RUN browses an imported run in the UI with no node. ingest RUN --network devnet restarts the node frozen and repeats the run's drops and edits, then opens the UI at that point.

Test values and scenarios

payloads

Manages lists of test values: list, show NAME, import FILE (.txt, .csv, .json, .yaml), export NAME FILE, delete NAME.

freeze-debugger payloads list
32-byte hashes                  4 values  shipped  Well-known 32-byte values to put where a block or transaction hash bel
byte string damage             11 values  shipped  The original bytes shortened, lengthened, zeroed or with one bit chang
integer boundaries             18 values  shipped  Whole numbers at the edges of the sizes nodes store them in. Use on sl
nearby numbers                  8 values  shipped  The original number nudged or scaled. Use to find off-by-one checks an
freeze-debugger payloads show "nearby numbers"
add:1
sub:1
add:2
sub:2
mul:2
mul:1000
add:4294967296
sub:4294967296

scenarios

DWARF's scenarios, read as data. list [--filter TEXT] [--all], show ID, template ID -o FILE (write it as a Freeze template), run ID --network devnet (carry it out and judge the reaction), lists (save DWARF's test values as payload lists).

freeze-debugger scenarios list --filter chainsync
ready   chain sync       cardano-node         runtime-substrate-chainsync-nonincrementing-height-example-smoke
ready   chain sync       cardano-node         runtime-substrate-chainsync-nonmonotonic-slot-example-smoke
ready   chain sync       cardano-node         runtime-substrate-chainsync-parent-discontinuity-example-smoke
360 scenarios: 54 ready, 22 partly, 284 not possible from inside a node  (use --all to list those too, with the reason)

Inside the node

probes

Named places inside the node's functions. Every probe counts how often it was reached, always; it reports an item only when turned on. --hit, --missed, --enable NAME, --disable NAME (names take a trailing *; all is everything).

freeze-debugger probes --network devnet --hit
  off          1  connection.handshake.accepted                crates/amaru-protocols/src/connection.rs::do_handshake
  off          1  connection.initialize                        crates/amaru-protocols/src/connection.rs::do_initialize
  off          1  consensus.track_peers.defer.ledger_height    crates/amaru-consensus/src/stages/track_peers/mod.rs::TrackPeers::handle_from_upstream
  off          1  consensus.track_peers.roll_backward          crates/amaru-consensus/src/stages/track_peers/mod.rs::TrackPeers::handle_from_upstream
4 of 69 probes reached

The third line is the node setting the edited header aside: the probe consensus.track_peers.defer.ledger_height was reached once.

trace

About 2,100 functions of the node can report each call with its arguments. Nothing is reported until you ask. --enable PREFIX, --disable PREFIX, --hit, --top N; --hold PREFIX stops the node each time such a function is entered, --unhold undoes it. Tracing everything is thousands of items a second, so use a narrow prefix.

freeze-debugger trace --network devnet --enable amaru_consensus::stages::select_chain
4 function(s) now traced by `amaru_consensus::stages::select_chain`
traced: amaru_consensus::stages::select_chain
  off            0  amaru_consensus::block_validator::BlockValidator::request
  off            0  amaru_consensus::block_validator::BlockValidator::send
  off            0  amaru_consensus::block_validator::BlockValidator::set_on_stake_dist_updated
  off            0  amaru_consensus::block_validator::BlockValidator::thread_stop
  off            0  amaru_consensus::block_validator::BlockValidator::tip
  off            0  amaru_consensus::block_validator::BlockValidator::volatile_tip
… (22 more lines)
freeze-debugger trace --network devnet --hit --top 6
traced: amaru_consensus::stages::select_chain
508 function(s) seen so far; a function is listed once it has been called
freeze-debugger trace --network devnet --disable all
4 function(s) no longer traced by `all`
traced: nothing
  off            0  amaru_consensus::block_validator::BlockValidator::request
… (27 more lines)

source

Steps through the node's source lines with a debugger beside it. Needs an image built with --debug-info. Attaching stops the whole node, its Freeze agent included, until you continue or detach.

freeze-debugger build --static --debug-info --source dwarf/testplease/amaru/v10.11.20260925
freeze-debugger devnet up --image IMAGE_IT_PRINTED
freeze-debugger source --do 'break select_chain/mod.rs:120' --do continue --do vars

port

Brings the hooks to another revision of Amaru and stores the result as a recipe that build then uses. Where upstream and the hooks changed the same lines, --by-hand DIR leaves the tree with the conflicts marked and --resolved DIR compiles it and stores the recipe.

freeze-debugger port --source /path/to/amaru-at-another-revision
freeze-debugger build --static --source /path/to/amaru-at-another-revision

9. Templates and test values

A rule has a when (a condition), an action, usually a field and values, and optionally mode, count, after and expect.

ActionDoes
replace (the default when there is a field)Put a value into the field and forward the item.
dropDrop count matching items.
replayLet after matching items go by, then send the first of them again.
captureRead a field into a name (as: slot); use it later as $slot.
delaySet the message aside for delay_ms while the node runs on.
overtakeHold the message until one matching until has gone by.

mode: each uses one value per matching item and then stops; cycle keeps going. expect is a list of phrases; an attempt is "as expected" if the node's reaction mentions any of them.

name: header and chain selection
rules:
  - name: header slot
    when: kind=proto_in and type=ouroboros/2 and [0]=2
    field: header_body.slot           # a field name, a chain of names, or a path like txs[0].fee
    values: integer boundaries        # a list name, or an inline list
    mode: each
    expect: [rejected, error, hung up, hostile]
  - name: starve chain selection
    when: kind=input and to~select_chain
    action: drop
    count: 3
  - name: damage a block
    when: kind=proto_in and type=ouroboros/3 and [0]=4
    field: "@message"                 # the whole message as bytes
    values: ["xorlast:01"]

Values

FormMeaning
123, -1, true, null, "text"A literal.
0xdeadbeefBytes.
add:N, sub:N, mul:NArithmetic on the original number.
empty, trunc:N, len:N, repeat:NEmpty; the first N bytes; N zero bytes; the original N times.
append:HEX, prepend:HEXAdd bytes at the end or start.
zero, onesSame length, every byte 00 or ff.
flip:K, xorlast:HHFlip bit K; XOR the last byte with HH.

In the UI the same thing is one key: hold an item, select a field, press p and choose a list. Results are in the Payloads tab. T there loads a template file.

10. Remove

cd ~/freeze/dwarf
freeze-debugger devnet down                                   # devnet containers, network and volumes
freeze-debugger stop --network preprod --remove-data          # only if you used `run`; once per network
docker rmi $(docker images -q 'dwarf/freeze-amaru')           # the node images
docker rmi $(docker images -q 'dwarf/freeze-toolchain')       # only present if you used `port` or `--debug-info`
# build records, tokens, recorded sessions, saved chains
docker run --rm -v ~/.local/share/dwarf:/d python:3.12-slim rm -rf /d/freeze
rm -rf ~/freeze                                               # both checkouts and the Python environment

The data folder is removed through Docker because saved chains are copied out of a container and are owned by root; a plain rm -rf is refused.

Check that nothing is left

docker ps -a --filter name=dwarf-control --filter name=dwarf-freeze
docker images | grep dwarf/freeze
ls ~/.local/share/dwarf/freeze ~/freeze

Each command should print nothing, or "No such file or directory". The build cache stays in Docker; docker builder prune removes it together with all other unused build cache. The devnet's other images (ghcr.io/intersectmbo/cardano-node and the like) are DWARF's and are left in place.

What Freeze creates

WhatWhere
Running devnetcompose project dwarf-freeze-devnet, containers dwarf-control-*
Single node from runcontainer dwarf-freeze-<network>, volume dwarf-freeze-<network>-data
Imagesdwarf/freeze-amaru:*, and dwarf/freeze-toolchain:* after port or --debug-info
Build records, tokens, sessions, snapshots, saved filters~/.local/share/dwarf/freeze/ (or $DWARF_DATA_ROOT/freeze/)
Python environment.venv-freeze/ in the DWARF checkout

11. When something goes wrong

What you seeWhy, and what to do
devnet status says "not ready yet"The node is bootstrapping. Allow 9 to 15 minutes after devnet up.
The node's step number stops climbing; devnet tx pay times outThe chain has stopped: either the 20 minutes are up, or the node was held frozen for several minutes. devnet down, devnet up.
The node freezes by itself on the next itemA script or repeat was killed and left its hold in place. Open the UI, press i twice (on, then off) and g.
A template prints that the node is frozen and nothing happensTemplates wait for traffic. freeze-debugger devnet nodes --thaw.
label~Roll finds no network messagesMessage names work only with =: label=RollForward.
rewind cannot find the start snapshotThe devnet was not started with --frozen. Start a fresh one with it.
repeat or an edit is refused for a header whose slot changedRe-signing does not cover slot, issuer or leader-election changes. Expected.
rm -rf ~/.local/share/dwarf/freeze: permission deniedSaved chains are owned by root. Use the Docker form in Remove.
The system Python is older than 3.11Make the environment with another interpreter, for example one from pyenv. Freeze only uses the environment.
A relay never follows the chain after a start (Invalid VRF proof in its log)Seen once, on a relay whose bootstrap data ended just before an epoch boundary. Not caused by Freeze. A fresh devnet up did not show it.

12. Files, ports and variables

VariableRead byMeaning
DWARF_DATA_ROOTfreeze-debuggerWhere runtime data lives. Freeze uses <root>/freeze/. Default ~/.local/share/dwarf.
DWARF_FREEZE_TOKENfreeze-debugger, the nodeThe shared secret a debugger must present. The devnet's is in <data root>/freeze/devnet/token.
DWARF_FREEZE_LISTENthe nodeAddress the agent listens on. Unset means no agent: the node behaves as an unmodified node.
DWARF_FREEZE_STARTthe nodefrozen holds the node at its very first step.
DWARF_FREEZE_PROBES, DWARF_FREEZE_TRACEthe nodeProbes and function tracing switched on from the node's start.

The launcher and the devnet set the node-side variables for you. Recorded sessions are under <data root>/freeze/sessions/<time>-<node>/; marks are in notes.json beside each.

The full reference with every option is dwarf/freeze/docs/GUIDE.md in the repository.


Chapter 3 · Technical Debrief

DWARF Freeze · Technical debrief

How it is built, what was verified, what is open

Freeze is a separate subsystem of DWARF: an agent compiled into Amaru, a broker and client in Python, a terminal UI, and a closed devnet to use them on.

Summary

  • The design holds: two functions in Amaru's stage runtime deliver every stage input and run every effect, so a handful of call sites cover almost all of the node.
  • The 14–15 November operational walkthrough was run on live nodes except for the items listed under Not exercised live. The 16 November extension is supported by the two-release test and semantic-review evidence below, not by a new deployment claim.
  • Open: the devnet's Amaru relays stall about 20 minutes after they start, with or without Freeze; the cause is not established.

Shape

 terminal UI ─┐                                     ┌─ recorder ─► session store
 commands ────┼── FCP ──► broker (Python) ──────────┤
 scripts ─────┘           one per Freeze node       └─ Docker: pause the other nodes, restart, snapshots
                                │
                                │ FCP: JSON lines over TCP, localhost, token
                                ▼
                          agent (inside the node process)
                            ├─ runtime gate    stage inputs, effects, results, state, time
                            ├─ protocol gate   decoded messages in and out
                            ├─ wire gate       raw bytes per connection
                            └─ stores, probes, function tracing

Clients connect to the broker on the agent's port plus 50 (agent 7373, broker 7423) and speak the same protocol the agent does. The broker forwards node requests and itself serves what cannot be done from inside the node: recording, pausing other containers, snapshots.

The agent and its hooks

The agent is a small Rust crate added to the Amaru workspace. It numbers every item, publishes it to connected debuggers, and decides whether the step may proceed. Its socket runs on its own thread, so it answers while the node is frozen. With DWARF_FREEZE_LISTEN unset it is not created and the hooks do nothing.

Amaru is a graph of message-passing stages run by one runtime. The hooks:

HookWhere in AmaruItem kindsEditDrop
stage inputamaru-pure-stage runtime, before a stage handles a messageinternal_inputyesyes
effectruntime, before each effect runsinternal_actionsends, waits, timeouts, schedules, external effectssends, waits, timeouts, schedules
effect resultruntime, after an external effectinternal_resultyesno
stage stateruntime, after each transitioninternal_statethrough the State tab–
protocol messageamaru-protocols mini-protocol codeproto_in, proto_outyes, byte-exactyes
raw bytesa wrapper around the node's connection providerwire_in, wire_outyesyes
probe69 named places in functions, 32 of them in the ledger rules and script evaluationprobe––
function callabout 2,100 functions of seven crates, switched on by path prefixcall–can be held on entry where the node can wait
Holding
A step is held when the node is frozen, or it matches the hold filter, or it matches a freeze condition. Holding a step freezes the node. Releasing one held item leaves the node frozen, so the part that was waiting runs to its next step and is held again: that is stepping.
Time
The runtime's clock and every timer go through the agent. Time spent frozen is subtracted, so a stage waiting 300 ms still perceives 300 ms however long it was looked at.
Causes
Every item carries a cause: the number of the message from a peer (or other first step) its chain started from, carried across every hand-off between parts of the node. This is how a reaction is attributed to the attempt that caused it, however closely attempts follow each other.
Editing typed messages
Every Amaru message can be turned into generic data and back into its real type. Reconstruction failure emits an explicit item.done rejection and skips or terminates the exact effect/result; it never silently runs or returns the original. Raw or raw-stale replacement of typed input/result is rejected before release with typed_raw_replacement_unsupported, and the item remains held.
Editing network messages
The client parses the exact bytes into a tree that remembers how each element was encoded, changes one leaf, and writes the rest back unchanged. Bytes wrapped in CBOR tag 24 (headers, blocks) are opened and edited in place.
Stores
Chain and ledger stores are readable as namespaces (chain/headers, chain/blocks, chain/best, ledger/utxo, ledger/pots, ledger/params and others). Non-force block writes validate key, slot, header hash and body commitment, require the exact header to exist already, and refuse repair:true because this API lacks mux/request identity and atomic header-plus-body replacement. Injected store failures leave state unchanged and emit no success event. Ledger writes use typed decoding and transactions; account writes require unsafe:true.

The protocol

Freeze Control Protocol v1 is the contract between any client and any node. It is specified in dwarf/freeze/spec/freeze-control-protocol-v1.md (marked draft) so that another node implementation can serve it.

PartWhat
TransportNewline-delimited JSON over TCP. The port is published on 127.0.0.1 only. Every connection starts with hello carrying the shared token; without it the agent closes the connection.
RequestsFlow: freeze, thaw, step, run-until, set-hold. Items: get, forward, drop, replace, inject. Conditions: add, remove, list. State: list, get, put, delete. Plus probes, tracing and status.
EventsA new item (held or not), the node's reaction, frozen, thawed, log, error.
ItemA number, a time, a kind, from and to, a type, a label, a payload, the raw bytes when it is bytes, and its cause.
Payload encodingLossless tagged JSON: byte strings as {"$bytes": hex}, big integers as {"$int": decimal}, CBOR tags and maps with non-string keys spelled out. An edit is sent back in the same form.
PredicatesA small JSON expression tree evaluated inside the agent, so running to a far-away condition is cheap. The client compiles the typed conditions into it.
Capabilitieshello says which kinds, namespaces and probes this build supports, so a shallower node is accommodated.

The Python side

ModuleWhat it does
client.pyOne method per protocol request.
broker.pyThe per-node broker: recording, pausing the other nodes, claiming.
tui.py, views.py, render.pyThe terminal UI (Textual): nine tabs.
conditions.pyCompiles typed conditions into agent predicates, and reads them back.
cbor_tree.py, cardano.py, glossary*.yamlByte-exact CBOR editing; Cardano message and field names; about 190 plain-language explanations.
rules.py, payloads.py, scenarios.pyRules and templates, value lists and transforms, DWARF scenarios converted to rules.
scripting.py, repeater.pyThe per-item Python callback; sending a recorded item again.
session.py, runs.py, notes.py, analysis.py, filters.pyRecording, export and import, marks and findings, coverage and comparison, saved filters.
build.py, applier.py, instrument.pyBuilding the node image from a recipe; bringing hooks to another revision.
devnet.py, devnet_tx.py, launch.pyThe devnet and its profiles, devnet transactions, single nodes on public networks.
source.py, lldb_driver.pySource-line stepping with a debugger beside the node.

Builder and recipes

build copies the source tree, adds the agent crate, applies the selected release's patch with git apply and runs a container build. Each build writes a record (source digest, recipe digest, image id). Recipes are shipped for Amaru v10.11.20260925 and v10.11.20261105. port merges the hooks into another revision three ways, file by file; the hooks are in groups, and an optional group that does not merge or compile is left out and its capabilities are listed as missing. For v10.11.20261105, where upstream had reworked the stage runtime, 18 files needed a person at first and 8 after port learned to place a hook by the lines around it.

Devnet and profiles

devnet up runs DWARF's baseline compose file exactly as it is, plus a generated override that copies the Freeze binary into a shared volume, points the first Amaru relay at it, sets the agent's environment and publishes the port on localhost. Profiles choose the layout and which node becomes the Freeze node: relay (default), relay-2, relay-pair (both Amaru relays), scripted-peer (a Freeze node upstream of the node under test), kes-security and miniprotocol-security.

What was run, and where

15 November: fresh install, documented commands end to end

WhatResult
Install from the README on a machine with nothing of Freeze on itWorked after three corrections to the README (below). 275 tests pass; first build 7 minutes on 16 cores.
UI edit of an inbound headerBlock number 243 changed to 5243 and forwarded. The node set the header aside (its height was more than 1000 ahead of the ledger) and did not reject it or mark the peer hostile.
mark, findings, coverage, export, importAll worked on that session.
rewind --to the edited itemThe node was restored from start and stopped with the same header held, unedited, in 13 seconds.
template raising the block number by 5000One attempt, 243 to 5243, reported as set aside by the node, undecided.
script dropping two chain-sync messagesTwo dropped, the rest forwarded.
repeat with a changed slotRe-signing refused the header, because slot changes are not covered. Expected.
Run until label=RollForwardAfter the fix, evaluated inside the node and stopped on the next header.

15 November: the run behind the guide

The screenshots and command outputs in the guide come from two devnets started with devnet up --frozen.

WhatResult
UI edit of an inbound header (item 472)Block number 251 changed to 5251 and forwarded. The node set it aside and rechecked every 200 ms; probe consensus.track_peers.defer.ledger_height counted it. No further header arrived from that peer, the relay's only upstream.
watch, devnet tx payHeaders, next-requests and blocks printed as they arrived; the payment was accepted.
script dropping chain-sync messagesOne dropped; no further chain-sync message arrived from that peer in the 40 seconds it ran. Stopped with an interrupt, the hold was cleared.
rewind to an untouched headerFailed at first with "not in this recording" (defect below). After the fix: node restored from start, frozen with the same header held (item 11738 of the recording, 9878 in the new run).
template on the frozen nodePrinted the new warning, then, once the node ran, raised 310 to 5310; the node set the header aside.
rewind to the edited header, then repeatRewind landed on it unedited. repeat was refused by re-signing because the repeated header's slot differs from the one it replaces.
UI at 80, 100 and 120 columnsRendered on the demo recording before and after the layout fix.

14 November: Linux devnet, profile relay-pair

WhatResult
BrokerRecorded both nodes; a UI opened later had 3,476 earlier items in History.
PeersPaused 250 ms after a freeze, resumed after a run; start snapshot saved by itself.
ClaimingWith one window holding the node, another client's thaw was refused.
EffectsA call's timeout changed 1000 to 4321 ms, a timeout's delay 60 s to 50 ms, a scheduled keep-alive dropped.
Store writesRefused while running; treasury set through ledger/pots and read back; a header under the wrong key refused.
Tracing718 calls of two prefixes in 45 s with arguments, depth and caller.
Holding inside a functionamaru_ledger::rules::block::execute held the node with its arguments shown; forward let that block through.
Transactionsdevnet tx pay and devnet tx script accepted; every ledger.rule.* probe, the transaction verdict and ledger.script.eval reported, on both releases.
Source linesAttach, a breakpoint hit, locals, next line, detach; the node ran on.
Busy node (preview, catching up at 9,000 to 14,000 items a second)Answers through the broker in under 15 ms; the UI sampled by itself and stayed usable.
v10.11.20261105 in the devnetBuilt from its recipe, started, followed the chain, held and forwarded a header.

Not exercised live

  • Holding an async function inside a stage; a node whose recipe lacks a probe group. Both are covered by tests only.
  • Editing a wait effect (the node made none); chain store deletes and chain/blocks writes. Tests only.
  • Anything on Windows. The devnet on macOS fails under emulation.
  • Mainnet. Of the public networks, preprod and preview were run.

What was found and fixed

Edit and repair boundaries. (1) The authenticated Rust protocol emission boundary refuses changed bytes when repair is unavailable, disabled or public, admitting only successful typed ChainSync/BlockFetch repair or the exact item's authenticated stale-negative-control verdict. (2) Python and Rust enforce era identity and refuse both era-tag changes and same-era non-Conway headers. (3) Typed raw replacement refuses explicitly before release. (4) A responder-scoped RAII BlockFetch lease cleans up its exact mux/request on completion, BatchDone, NoBlocks, store error, timeout and disconnect. Responder aliases 32770/32771 share the ordinary protocol gate; declared body size is checked; store failure is atomic.

The earlier 15 November fixes below remain part of the verified behavior and were followed by the extension audit.

DefectCauseFix
label=RollForward matched nothing, although the UI shows that name on every header.A network item's stored label is its protocol ("chain sync"). The name the UI shows is derived from the first element of the payload.For label= with a known message name, the condition compiles to "label equals the name, or the type is that protocol (either side) and the message number matches". The agent evaluates it too, so run-until works. Reading the condition back gives label=RollForward again. Only for =.
After a script ended, a node that had been frozen was left running.The script runner lets the node run after each decision and did not put the frozen state back on exit.The runner records whether the node was frozen at the start and freezes it again at the end; a failure to do so is reported.
A template started against a frozen node waited silently until its timeout.Templates act on traffic, and a frozen node has none.template now says the node is frozen and how to let it run. No test for this message.

Found while writing the guide; fixed and now committed

DefectCauseFix
rewind --to N said "item N is not in this recording" for an item that was in it.The node numbers items on several threads, so a recording is not strictly in number order (3,402 of 38,856 items here were recorded after a higher-numbered one). The lookup stopped at the first higher number.The lookup reads the whole recording. The list of earlier changes had the same early stop and is fixed the same way. Test added; it fails on the old code.
After repeating an earlier change, rewind could say "the node is frozen with item N held" when item N had already gone on and nothing was held.It read buffered events from while the earlier change was being repeated and took an old one for a held item. This happens when the second run delivers the item sooner than the recorded run did.An item is only reported as held if the node holds it now. Otherwise rewind says the item went by while earlier changes were repeated. Test added; it fails on the old code.
Below about 140 columns the Intercept tab's buttons, "holding" row and panes ran off the right edge.Fixed-width rows with no narrow layout.Below 140 columns the two rows wrap and the held list goes above the item and the Inspector; it follows window resizes. Two tests added (80, 100 and 120 columns; resize both ways).
The Source tab was blank and did not say why.It only fills once a debugger is attached, which needs a --debug-info image.The empty pane now says what to press and what it needs. Test added.

Wrong in the documents, corrected

  • The rewind example lacked the required --to.
  • The documented rsync --exclude README.md also skipped dwarf/freeze/README.md; it is now /README.md.
  • Removal by rm -rf of the data folder is refused because saved chains are owned by root; the documents now remove it through Docker.
  • The README defaulted to devnet up --frozen; left unattended, that pauses the other nodes until the chain stops. It now defaults to a plain start and warns.

Looked at and left as they are

  • A script that is killed, not interrupted, leaves its hold in place and the node freezes on the next item. A killed process cannot clean up; the documents say to stop scripts with Ctrl-C.
  • repeat will not re-sign a header whose slot was changed. That is the stated scope of re-signing.

Known limits

LimitDetail
The devnet's Amaru relays stall after about 20 minutesBoth the stock and the Freeze relay, with "Insufficient leader stake" at epoch 9. Tamper tests have to happen in that window. The cause is not established; it may be an Amaru issue.
Paused peers still ageThe broker pauses the other nodes while the main Freeze node is frozen, but their clocks go on. After a long freeze they see a jump and may drop connections; a freeze of eight minutes stopped the chain for good.
Native target and repair scopeFull native Freeze agent/edit/repair/store support is for Amaru. Controlled-devnet repair covers typed inbound and outbound ChainSync plus initiator and responder BlockFetch. Slot, issuer, VRF, operational-certificate and transaction-witness edits still refuse; public-network signing is excluded. cardano-node retains DWARF external proxy/fake-peer coverage and shared node-independent Cardano naming only—not a native Freeze agent or native repair/store support. The current contract and exact evidence are in RESIGNING-COVERAGE-AUDIT.md.
Effects that create or stop parts of the nodeCannot be edited or dropped.
ThroughputEvery step is serialised and reported. About 5,000 items a second on preprod with a client attached; a node catching up at full speed produces about 45,000 events a second and the UI shows a sample.
Source steppingStops the whole node, its agent included, and needs an image built with --debug-info.
Replaying a runA live node never produces the same items in the same order twice, so an intervention is tied to what the item was and how many like it went by. Injected messages and State-tab edits are not replayed.
PlatformsDevnet: Linux x86-64 only. macOS: demo, UI, single nodes. Windows: not run.

Tests

cd ~/freeze/dwarf
.venv-freeze/bin/python -m pytest -q -p no:asyncio tests/test_freeze_*.py     # 294 passed

# In each clean, release-applied Amaru tree, using nightly-2026-09-04
cargo test -p amaru-freeze -p amaru-protocols -p amaru-pure-stage
cargo test -p amaru-node
cargo clippy --workspace --all-targets --all-features -- -D warnings
cargo fmt --all -- --check
GateSeptember v10.11.20260925November v10.11.20261105
Focused repair suite30/30 passed29/29 passed
Complete amaru-node suite91 passed, 2 ignored157 passed, 3 ignored
Full affected Rust suitespassed, including UI compile-fail and docspassed, including UI compile-fail and docs
Strict Clippy / rustfmtpassed / passedpassed / passed
Clean apply and byte-roundtrip7,955 files; 61 patch paths + 14 overlay files8,168 files; 60 patch paths + 14 overlay files
Patch SHA-2560e9251cc39c7a52ff751848d4084c969347cd79c379d7c6b54f9c0ff8f5a42aa (also root)5de0d8e3a4604a090b8eef9733141d0bdd2c2c9a395f2ef43748d43fc5ef8a6d
Recipe digest999d833e4fce99f531e0d3f56516bf7dff98103d4b10a9421dbcdc935bd220182c632ecbb9715a13c226491818916b4c0773f55faff7b274ebd2371663e349c0
Manifest SHA-25667459d92171457ef1c47c1ef215ce897337a55494566f8897d7c48aa64684a1288c219263175f356f35815eca8d3d23fffccd00858b553ea735b45b27d758d25

Fresh detached worktrees passed git apply --check and git diff --check. Independent semantic review of the regenerated Rust and Python candidate returned PASS on 16 November 2026 and reported no remaining security or correctness regression.

Repository layout

PlaceWhat is there
Public repositorygithub.com/gainsec/DWARF-freeze, branch main. It is an overlay: the Freeze files at the paths they have inside DWARF.
In the repositorydwarf/freeze/ (the subsystem), dwarf/freeze-debugger (entry point), dwarf/freeze/docs/GUIDE.md (reference), dwarf/docs/freeze-debugger-design.md (design), dwarf/freeze/spec/ (protocol), tests/test_freeze_*.py.

This public repository begins with fresh history. Generated target manifests and patch digests preserve the provenance needed to verify the shipped Amaru integrations.

Open

  1. Find out why the devnet's Amaru relays stall at epoch 9. Until then every session is limited to about 20 minutes.
  2. The message template prints for a frozen node has no test. It was seen working live.
  3. Direct arbitrary scripting and queued stage-state semantics remain bounded ledger gaps; they do not weaken the authenticated Rust protocol emission gate.
  4. With one upstream peer, any edit or drop on chain sync silences the relay until a rewind or a fresh devnet. Profile relay-pair or scripted-peer avoids relying on one peer.
  5. DWARF's own devnet layouts start the node the old way; a v10.11.20261105 node runs in the devnet through a two-line launcher Freeze puts in its place.
  6. The protocol specification is still marked draft; no second node implementation serves it yet.