Four read-only passes at da08764cc: bilateral Account consensus, TypeScript against Solidity
settlement, Runtime halts and effect ordering, repository consistency. Each row was checked
against the code; “reproduced” means a test demonstrates it.
| Finding | Fix | Test |
|---|---|---|
A peer could halt a Runtime by sending back our committed head with its own ACK Hanko while our successor was pending (untyped DUPLICATE_ACK_CURRENT_FRAME_HANKO_INVALID). |
4d59c8901: typed ACCOUNT_INPUT_FRAME_HANKO_INVALID reject. |
core/__tests__/security/policy/peer-own-head-replay.test.ts (red without the fix) |
| Dispute-proof replay after finalization: a pre-dispute proof with a higher nonce was settled a second time against the emptied account (evidence). | 4a10c6973: finalization moves the Account nonce to the next dispute epoch, mirrored in TS and Rust. |
jurisdictions/test/dispute/Depository-part-2.ts, “a pre-dispute proof with a higher nonce cannot be settled a second time after finalization” |
A hub restarted from a checkpoint halted on its first swap offer: the canonical J replica snapshot dropped tokenRegistry, which same-J matching reads (regression from 3cd8c5380). |
4280df1eb: the snapshot and its schema keep the registry. |
core/__tests__/jurisdiction/history/jreplica-token-registry-snapshot.test.ts |
outCapacity (core/account/tx/handlers/swap/resolve/settlement.ts);
DeltaTransformer.applySwap applies both legs from the counterparty’s fill ratio with no view of
collateral or credit. A maker’s secured give side can become an unsecured claim on the hub.
Fixing it at admission restricts hub order books.htlc_resolve {error, reason: 'timeout'} on the frame clock
(core/account/consensus/dispute/deadline-policy.ts); receiver replay uses its own clock
(core/account/tx/handlers/htlc/resolve.ts) and a rejected replay opens a dispute between honest
peers. Either make preflight a typed reject or let a beneficiary release regardless of the reason.core/account/htlc-deadline.ts expires on height or
timestamp; DeltaTransformer checks the timestamp only. On a chain faster than its configured
block time a payer can cancel upstream while downstream is still enforceable.lending-covenant.ts.registerCrossJurisdictionSwap may trip CROSS_J_LOCAL_SIBLING_MISSING, a plain throw
in assertCrossJLocalCohorts after the tx loop. Ingress only checks
prepareCrossJurisdictionSwap. Not traced through assertRuntimeOutputSemanticAuthority.cross_pull_lock does not bind payer or amount to the route at the Account layer
(core/account/tx/handlers/settlement/pull.ts); the binding lives in Runtime ingress only.core/account/tx/handlers/settlement/transition.ts).registerServerJurisdiction builds a J replica without a token registry
(core/api/server/index.ts); any orderbook Entity on that server would halt on a swap offer.core/runtime/frame/lifecycle/post-commit.ts).core/scripts/release/run-release-gate.ts runs React wallet E2E only and calls Svelte frozen.tools/xln1000/axes/canonical.ts and journeys.ts label Svelte and Rust frozen, count only
React specs, and point at a moved scenario (core/scenarios/payments/lock-ahb.ts). Manifests are
owner-only.core/runtime/config/account-execution.ts rejects XLN_HLT_ENGINE=rust as retired.USDT in core/jurisdiction/gossip/announcement.ts and the stack manager;
the catalog has id 1 = USDC.ui/package.json and rscore/Cargo.toml are 0.1.0 while VERSION is 0.1.31.ui/src/runtime/financial/manage.ts
(collateralFee), two hop-fee formulas in frontend/src/lib/components/Entity/, and
swap-order-math.ts constants.docs/wal.md describes a storage API and config keys that do not exist;
docs/consensus-invariants.md names processAccountTx and account-consensus.ts.