Shekyl FoundationAutomated
11/6/2026, 6:42:26 PM
State of dev as of 466ffe1f1883, 27 October 2026.
Most of this window went into how a node finds and keeps its peers, especially over Tor. Two decisions settled who gets to judge what: the peer list stops treating a failed connection as a verdict on the address, and the Tor supervisor stops second-guessing Tor. Alongside that, the daemon now commits its chain store durably during the first sync, the RPC server checks permissions on every request against one table, and a large set of old C++ tests was deleted where Rust tests now cover the same rules.
A failed connection is not evidence against a peer — RULED
A node keeps two lists of peer addresses: "white" for addresses it has actually connected to, and "gray" for addresses it has only heard about. Until this window, a gray address was dropped the first time a connection to it failed, whatever the reason. That sounds tidy, but a failed dial tells you very little. The peer may be restarting. Its onion descriptor may not have propagated yet. Or the problem may be on our side of the link. A node that drops an address for any of these reasons ends up with a list shaped by its own bad moments.
The rule is now: an address leaves gray only on authenticated proof that the peer misbehaved, never because a connection failed. A failed test puts the address into a cooldown instead. The cooldown starts at a few minutes and doubles with each consecutive failure up to an hour, with some randomness so retries don't line up. One success clears it. Cooling addresses stay in the list and can still be evicted when the list is full. A cooldown delays a retry; it does not protect the address. Without that, dead addresses could pile up immune to eviction and push live ones out. A single test now also includes its own retries: up to three attempts on Tor, where a first failure is often a descriptor that has not spread yet.
Two refinements followed. White now means "known to work": a white address that fails its test (including one redial on clearnet) moves to gray at the first cooldown step, where before it stayed white and could be redialled for up to a day. And when a node has no sessions at all and nothing has connected for a few minutes, a failed test cools at the first step and the count does not climb. In that situation every failure says as much about this node's own reach as about the address. Without this rule, a short outage would push every address the node tried up toward the hour-long cooldown, and reconnecting after the outage would wait on those cooldowns.
Nothing about trust survives a restart. The address file carries addresses, never judgements: no cooldowns, no failure counts, no bans. Every restart takes a fresh look. The one concession is that an address whose host is under an active ban when the file is written is left out of the file, though the ban itself is still not saved.
Making the cooldown the only mechanism also let us delete code. The dialer used to keep a separate "recently failed" memory, a second record of the same fact the cooldown now holds. That memory and its filter are gone.
Tor judges Tor — RULED
The daemon runs and supervises its own Tor process. One of the supervisor's jobs is to tell the operator when the node can't reach the Tor network at all, as opposed to individual peers being down. Until this window the supervisor partly worked this out from its own dial results: enough failed connections in a row meant the link was down.
Measurements on a healthy link showed why that doesn't work. A live onion that refuses the port answers within a second; one that silently drops traffic times out, and so does a dead peer. From the dialer's side, a network full of dead or unhelpful peers looks the same as a blocked link. On a small network the old inference fired on nodes that were fine.
The ruling is that Tor's own judgment governs everything in Tor's domain: circuits, path selection, guards, whether the network is reachable, and retries. The supervisor reads what Tor says (its liveness and circuit events, and a periodic sample of Tor's current view) and never derives a Tor-level verdict from its own traffic. Dial results are now only displayed. When Tor reports nothing wrong but no Tor connection has opened for a while, the node prints one neutral line saying so, with no cause and no suggested fix, and does not restart Tor.
The same principle shaped how the dialer reads timeouts. The managed Tor is configured to give up on a connection a little before the dialer's own deadline, so Tor's answer always arrives first. A connection that fails at Tor's timeout has already been retried by Tor itself through other introduction points and other directories, so the dialer treats it as final for that test and does not retry it again. One detail turned up during measurement: when Tor times out an onion connection, it reports the last error it recorded on that connection, not a generic timeout code. The dialer now recognises all of those codes when they arrive at the timeout.
A related change for operators: during a Tor bootstrap, the status now reports a pace next to the current cause: advancing, slow but normal (progress is holding but data is still arriving), or stalled. A slow first bootstrap can then be told apart from a stuck one without reading Tor's logs.
Dialing over Tor in parallel, sized by measurement — LANDED
Until this window each connector's loop thread made one dial at a time and waited inside it. Over Tor, where a dead onion can take close to two minutes to fail, that made filling the node's peer target slow. It was slowest in exactly the case that matters: when many of the addresses the node has learned are dead, whether by accident or because someone fed it dead addresses.
Each dial attempt is now an asynchronous task. The loop plans attempts, launches them and applies their results, and never waits on a dial. How many attempts may be in flight per connector is protocol data, the same on every node. The number for Tor was derived before it was measured. The rule was the smallest number for which a node starting from nothing, with half the addresses it tries dead, fills its Tor peer target within the relay's ten-minute epoch on average. A simulation over recorded real dial times put that at five. Four sat right on the line, and more than six bought nothing, because a dead attempt holds its slot for its full timeout. Five concurrent onion connections also stay well inside Tor's own limit on pending circuits. Clearnet stays at one.
The measurement then ran on our low-end reference device against the merged code. With half the addresses dead, the median time to fill the Tor target from cold was 508 seconds with five in flight, against 1,064 seconds with one. Refilling after a Tor restart took 126 seconds against 928. Every sample filled. The model had predicted an upper bound of 523 seconds. The bound is now recorded as measured, not derived. The same series found two edge cases in how the dialer read Tor's timeout. Both have since been fixed. They made the measured times slightly long, not short.
The chain store is durable through the first sync — RULED
The daemon still writes its chain through the LMDB store inherited from Monero while the Rust store it will be replaced by is finished. That store had a sync-mode setting, and the shipped value was parsed as a default. A default allowed an inherited optimisation to turn off the per-commit flush to disk whenever a sync started five or more blocks behind, which describes every initial sync. Simply changing the value to "safe" would not have been enough: parsed as a default, the store would have printed "safe" at startup and still run the initial sync without flushing.
The decision is that there is no setting. The store flushes every commit, including throughout the initial sync. This is the same durability the Rust store runs, and the one its sync-speed targets are measured against. The value is now explicit rather than a default, so the optimisation does nothing, and a unit test checks the value the daemon actually opens the store with rather than a copy of it.
For operators the cost is a slower first sync on rotational disks, including the virtual disks of many VMs. Steady-state block handling is unaffected, and there is no option to change it. This shipped in v3.1.0-alpha.11. The benchmark that measures sync performance also runs again: it now reads the sync mode the daemon reports at startup and refuses a run in any other mode, so a result cannot be filed under the wrong configuration.
Permissions on every RPC request, from one table — LANDED
The daemon's RPC used to know only "restricted" and "unrestricted". This window landed the first of five planned steps that replace that with named permissions. There are twelve grants, among them chain reads, the transaction pool, node health, submitting a transaction, the peer list, bans, mining and configuration. Every method is placed in exactly one grant, or is marked as host-only or as a test lever. A test written from the design document fails if a method is added or moved without being placed.
Every request now carries its connection's grants, checked against that single table, and a refusal is a typed error saying which grant was missing instead of a "not found". This is a change on the wire, and the RPC version was bumped for it. The C++ side is now told only whether the caller is the host's administrator, which is the only thing it ever used the old flag for. The same vocabulary drives the configuration table and the option display, so there is one list of permissions, not three.
The test levers, generating blocks and popping blocks on a test chain, are now enabled only by an explicit development switch at startup, and the server logs whether that switch is on every time it starts. The network type no longer decides anything here. The old C++ check that tied these levers to the test network was deleted, and the switch itself is refused on mainnet. The remaining four steps are IN FLIGHT. They include a same-user local socket and the daemon's channel key and client enrolment.
Deleting tests the new code already proves — LANDED
The daemon is partway through moving its consensus rules and chain store from the inherited C++ to Rust. The final switch-over, which deletes the C++ validator and the LMDB store outright, is still IN FLIGHT. Before it can happen, the C++ tests that exercise that code have to go too, and each one is a claim about a rule. Deleting a test without checking that something else still makes the claim would quietly lose coverage.
The rule applied this window was strict. A C++ test is deleted only if a Rust test checks the same verdict on the same kind of input, and every deletion names the Rust test that replaces it. Under that rule, cases covering block weight, the coinbase amount, fee floors, header roots, proof-of-work failure handling, reorganisation limits, the archival bond rules and the state digest were removed. So were two whole C++ chain-test fixtures and the CI jobs that ran them. Where no Rust test made the same claim, the C++ test stayed and was listed. Several new Rust tests were then written specifically to cover what the deletions would otherwise have left uncovered. These include one that disconnects and reconnects every block of a 541-block chain and checks the store matches exactly each time, and a 60,000-block block-weight trajectory checked against an independent model.
This work also turned up stale and mistaken records: a planning example that had the boundary wrong, a commit message claiming coverage that its test did not provide, and a census entry for a rule that had been retired by an earlier decision. Each was corrected in the record, not left for the switch-over to discover.
This post describes the state of the dev branch at 466ffe1f1883 on 27 October 2026.
Shekyl is pre-genesis and under active design; anything marked IN FLIGHT may
change or be abandoned. Where a later post contradicts this one, the later post
is correct.
References: PR #1189, PR #1203, PR #1188, PR #1195, PR #1190, PR #1208, PR #1197, PR #1192, PR #1187, PR #1194