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
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.
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
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
Way
Command
Needs
For
The demo
freeze-debugger demo
Nothing but Python
Trying the UI on a recording of a real node.
One node on a public test network
freeze-debugger run --network preprod
Docker; Linux or macOS
Observing, and tampering only with what your own node receives.
The closed devnet
freeze-debugger devnet up
Docker on Linux x86-64
Tampering 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
Page
What it is
Guide: install, run, every command, remove
Step by step, with screenshots and real output.
Technical debrief
How 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 mockups
The 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
What
Detail
Machine
Linux 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.
Tools
Git, rsync, Docker with the compose and buildx plugins, and a user allowed to run docker.
Python
3.11 or newer. If the system Python is older, use another interpreter for the environment in step 3. The system Python is not touched.
Network
Access to github.com and ghcr.io.
Space
About 10 GB of disk and 8 GB of free memory for the build and the devnet.
Ports
7373 (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:
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.
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
To
Run
Notes
Start
freeze-debugger devnet up
Add --frozen if you want to rewind later.
Open the UI
freeze-debugger devnet attach
Waits 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 UI
freeze-debugger devnet nodes --freeze / --thaw
All Freeze nodes at once.
Stop
freeze-debugger devnet down
Removes the containers, network and volumes, and stops the broker. Recorded sessions stay. --keep-data keeps the volumes.
Start again
devnet down, then devnet up
A 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.
freeze-debugger devnet attach opens it. This is the node right after a frozen start, held at its first step:
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
Key
Tab
What it is
1
Intercept
Left: 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).
2
History
Every 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.
3
State
What 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.
4
Freeze points
Conditions that freeze the node (or only log) when an item matches, and the node's probes with how often each was reached.
5
Overview
The 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.
6
Payloads
Lists of test values, the rules that are running, and one result row per attempt.
7
Scenarios
DWARF's scenarios that Freeze can carry out, and the rules it would run for each.
8
Nodes
Every Freeze node of the devnet, what each is holding, and what all of them did, merged by time.
9
Source
Source-line stepping. Needs an image built with --debug-info.
Keys
Key
Does
z
Freeze now: the node stops at its next step.
g
Run: release everything and let the node go.
space
Step: forward the selected item and stay frozen.
i
Intercept on or off. On: hold every item of the kinds ticked in the "holding" row. Off: clear that and let the node run.
u
Run until a condition matches, then freeze.
f
Forward the selected item, with your edits, and run to the next held item.
d
Drop the selected item. A dropped network message never reaches the node; the peer sees silence.
e
Edit the selected field.
r
Undo your edits to the selected item.
p
In Intercept: run a payload list against the selected field, one value per matching item.
n
Deliver a new message to a part of the node.
s
Switch 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.
O
Claim the node, so only this window can change it; again to release.
Tab
Move between the panes of a tab.
q
Quit 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
Box
Holds
Default
from peers
decoded protocol messages arriving
on
to peers
decoded protocol messages leaving
on
raw bytes
every chunk read from or written to a socket
off
between parts
every message one part of the node hands another
off
actions
every effect and its result
off
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.
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.
"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:
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.
The cursor on "block number". The Inspector says what the field is and why it matters.
Press e, type the new value, press Enter.
Editing the block number: the original plus 5000.
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.
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.
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
State (3): the parts of the node and its stores on the left, the selected entry's value on the right.
Freeze points (4): a condition that only logs, and below it the node's probes with their counts.
Overview (5): peers, and the path a block takes through the node.
Payloads (6): value lists on the left, running rules and results on the right.
Scenarios (7), filtered to "chainsync": DWARF scenarios Freeze can carry out.
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.
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.
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.
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
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).
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:
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:
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:
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
Form
Meaning
kind=a,b
One of these kinds. Short names: input, action, result, state, wire, proto, store, timer, probe. proto_in and proto_out pick a direction.
A 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>=N
Item number at least N.
path=value, !=, <, >, >=, <=
Compare a field of the item. Paths use dots and [n], for example txs[0].fee.
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 DIR
Required. An Amaru source tree. DWARF ships one at dwarf/testplease/amaru/v10.11.20260925.
--static
A fully static x86-64 build. Required for the devnet.
--recipe NAME
Which set of hooks to use. Default: the first that applies. Shipped: v10.11.20260925 and v10.11.20261105.
--tag TAG
Image tag. Default: derived from the source and recipe.
--platform P
Container platform, for example linux/amd64. Ignored with --static.
--debug-info
Keep what source-line stepping needs and also build a tools image for source.
Starts the closed local devnet. Returns once the Freeze node's container is running; bootstrap continues in the background.
--frozen
Hold every Freeze node at its first step, and save the main node's stored chain as snapshot start.
--profile NAME
Which devnet layout. Default relay. devnet profiles lists them.
--also SERVICE
Another service that also runs the Freeze build, on the next port. Repeatable.
--image I
Default: the most recent static image.
--port P
Agent port. Default 7373.
--record all|held|none
What the broker keeps on disk.
--no-auto-pause
Do not pause the other nodes while the Freeze node is frozen.
--freeze-together
The other Freeze nodes freeze and run with the main one.
--resign / --no-resign
Enable 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 S
Seconds the Freeze node keeps a misbehaving peer out. Default 5; Amaru's own default is 600.
--no-broker
No 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.
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 ITEM
Required. The item number in the recording.
--session NAME
Default: the node's latest recording.
--snapshot NAME
Default: the node's start snapshot.
--by-count
Stop at the item in the same position among its like instead.
--no-attach
Do not open the UI afterwards.
--node SERVICE, --wait S
Which 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.
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.
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
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.
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)
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.
Action
Does
replace (the default when there is a field)
Put a value into the field and forward the item.
drop
Drop count matching items.
replay
Let after matching items go by, then send the first of them again.
capture
Read a field into a name (as: slot); use it later as $slot.
delay
Set the message aside for delay_ms while the node runs on.
overtake
Hold 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
Form
Meaning
123, -1, true, null, "text"
A literal.
0xdeadbeef
Bytes.
add:N, sub:N, mul:N
Arithmetic on the original number.
empty, trunc:N, len:N, repeat:N
Empty; the first N bytes; N zero bytes; the original N times.
append:HEX, prepend:HEX
Add bytes at the end or start.
zero, ones
Same length, every byte 00 or ff.
flip:K, xorlast:HH
Flip 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.
Saved chains are owned by root. Use the Docker form in Remove.
The system Python is older than 3.11
Make 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
Variable
Read by
Meaning
DWARF_DATA_ROOT
freeze-debugger
Where runtime data lives. Freeze uses <root>/freeze/. Default ~/.local/share/dwarf.
DWARF_FREEZE_TOKEN
freeze-debugger, the node
The shared secret a debugger must present. The devnet's is in <data root>/freeze/devnet/token.
DWARF_FREEZE_LISTEN
the node
Address the agent listens on. Unset means no agent: the node behaves as an unmodified node.
DWARF_FREEZE_START
the node
frozen holds the node at its very first step.
DWARF_FREEZE_PROBES, DWARF_FREEZE_TRACE
the node
Probes 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.
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:
Hook
Where in Amaru
Item kinds
Edit
Drop
stage input
amaru-pure-stage runtime, before a stage handles a message
69 named places in functions, 32 of them in the ledger rules and script evaluation
probe
–
–
function call
about 2,100 functions of seven crates, switched on by path prefix
call
–
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.
Part
What
Transport
Newline-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.
A new item (held or not), the node's reaction, frozen, thawed, log, error.
Item
A 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 encoding
Lossless 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.
Predicates
A 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.
Capabilities
hello says which kinds, namespaces and probes this build supports, so a shallower node is accommodated.
The Python side
Module
What it does
client.py
One method per protocol request.
broker.py
The per-node broker: recording, pausing the other nodes, claiming.
tui.py, views.py, render.py
The terminal UI (Textual): nine tabs.
conditions.py
Compiles typed conditions into agent predicates, and reads them back.
cbor_tree.py, cardano.py, glossary*.yaml
Byte-exact CBOR editing; Cardano message and field names; about 190 plain-language explanations.
rules.py, payloads.py, scenarios.py
Rules and templates, value lists and transforms, DWARF scenarios converted to rules.
scripting.py, repeater.py
The per-item Python callback; sending a recorded item again.
Recording, export and import, marks and findings, coverage and comparison, saved filters.
build.py, applier.py, instrument.py
Building the node image from a recipe; bringing hooks to another revision.
devnet.py, devnet_tx.py, launch.py
The devnet and its profiles, devnet transactions, single nodes on public networks.
source.py, lldb_driver.py
Source-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
What
Result
Install from the README on a machine with nothing of Freeze on it
Worked after three corrections to the README (below). 275 tests pass; first build 7 minutes on 16 cores.
UI edit of an inbound header
Block 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, import
All worked on that session.
rewind --to the edited item
The node was restored from start and stopped with the same header held, unedited, in 13 seconds.
template raising the block number by 5000
One attempt, 243 to 5243, reported as set aside by the node, undecided.
script dropping two chain-sync messages
Two dropped, the rest forwarded.
repeat with a changed slot
Re-signing refused the header, because slot changes are not covered. Expected.
Run until label=RollForward
After 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.
What
Result
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 pay
Headers, next-requests and blocks printed as they arrived; the payment was accepted.
script dropping chain-sync messages
One 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 header
Failed 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 node
Printed the new warning, then, once the node ran, raised 310 to 5310; the node set the header aside.
rewind to the edited header, then repeat
Rewind 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 columns
Rendered on the demo recording before and after the layout fix.
14 November: Linux devnet, profile relay-pair
What
Result
Broker
Recorded both nodes; a UI opened later had 3,476 earlier items in History.
Peers
Paused 250 ms after a freeze, resumed after a run; start snapshot saved by itself.
Claiming
With one window holding the node, another client's thaw was refused.
Effects
A call's timeout changed 1000 to 4321 ms, a timeout's delay 60 s to 50 ms, a scheduled keep-alive dropped.
Store writes
Refused while running; treasury set through ledger/pots and read back; a header under the wrong key refused.
Tracing
718 calls of two prefixes in 45 s with arguments, depth and caller.
Holding inside a function
amaru_ledger::rules::block::execute held the node with its arguments shown; forward let that block through.
Transactions
devnet tx pay and devnet tx script accepted; every ledger.rule.* probe, the transaction verdict and ledger.script.eval reported, on both releases.
Source lines
Attach, 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 devnet
Built 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.
Defect
Cause
Fix
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
Defect
Cause
Fix
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
Limit
Detail
The devnet's Amaru relays stall after about 20 minutes
Both 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 age
The 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 scope
Full 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 node
Cannot be edited or dropped.
Throughput
Every 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 stepping
Stops the whole node, its agent included, and needs an image built with --debug-info.
Replaying a run
A 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.
Platforms
Devnet: 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
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.
This public repository begins with fresh history. Generated target manifests and patch digests preserve the provenance needed to verify the shipped Amaru integrations.
Open
Find out why the devnet's Amaru relays stall at epoch 9. Until then every session is limited to about 20 minutes.
The message template prints for a frozen node has no test. It was seen working live.
Direct arbitrary scripting and queued stage-state semantics remain bounded ledger gaps; they do not weaken the authenticated Rust protocol emission gate.
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.
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.
The protocol specification is still marked draft; no second node implementation serves it yet.