Skip to content

Archon v0.13.0

Choose a tag to compare

@macterra macterra released this 25 Sep 15:45
fc92c0c

Release Highlights

This release establishes protocol convergence and termination in Lean, with signed fixtures connecting the model to both Gatekeeper implementations. The proof work also exposed bugs and helped simplify the protocol's acceptance rules. Alongside that work, v0.13 brings DID document repair, interoperable credential proofs, more reliable chain anchoring and recovery, and improvements to startup, sync, and node security.

🧮 Protocol Convergence and Formal Proofs

The Lean protocol model proves that nodes with the same finite retained operations and authoritative chain evidence reach the same accepted histories and protocol-selected DID states after reconciliation, regardless of arrival order, duplicates, or stale published histories. Reconciliation terminates once that evidence stops changing.

The proof covers:

  • Deterministic fork and repeated-anchor selection, using canonical CIDs and chain positions.
  • Agent authorization, including named verification methods, key rotation, and deletion.
  • Asset authorization, including historical controller state, ownership, and transfers.
  • Registry migration, with the old registry confirming a migration and the new registry governing its successors.
  • Document transitions, including whole-component replacement, omitted-component preservation, and deletion.

The exercise was iterative: signed implementation tests exposed divergent behavior, protocol rules were clarified or tightened, and the revised rules were proved and checked against both ports. Fixes include provisional fork selection, equal chain-position ties, repeated anchors, and receipt clocks that previously depended on the receiving node (#1198, #1217, #1233, #1234, #1237, #1241).

These are proofs of the protocol model, with checked bridges to signed TypeScript/Rust fixtures—not a universal proof of the production programs, network delivery, or blockchain finality. The completed scope and assumptions are documented in the convergence roadmap (#1200–#1241).

🛡️ Gatekeeper Hardening and Interoperability

  • Authorization is reconsidered as missing controller history arrives, retaining candidates separately from accepted histories and replaying dependent assets (#1153, #1155).
  • Both ports agree on RFC 8785 canonical operation identity, predecessor references, timestamps, field presence, and operation-size rules (#1117, #1120, #1163, #1179, #1184, #1191).
  • Imports bind event targets to signed operations; chain events require ordinals and complete registration metadata; duplicate verification-method IDs are rejected (#1236, #1251–#1253).
  • Predecessors and registration transitions are validated before acceptance, and authorization uses the verification method named by the proof (#1132, #1174, #1181).
  • Successor ordering, event-envelope policy, and accepted-history interpretation are consolidated into shared helpers within each implementation (#1254–#1256).

🔧 DID Document Repair

  • check-did and repair-did are available through the CLIs and Keymaster interfaces, with MCP support (#1259).
  • Wallets and standalone clients share a repair dialog that inspects a DID, shows proposed changes, and requires an explicit repair action (#1260).
  • Repairs preserve unrelated document content and help existing agents prepare their signing-key permissions. Gatekeeper enforcement of capabilityInvocation membership remains deferred; this release does not strand legacy agents (#1156).

🪪 Credentials and Key Management

  • Credentials support Data Integrity proofs, including eddsa-jcs-2022, and users can publish an assertion key through the supported interfaces (#1085, #1102).
  • An Archon-issued credential is tested with a third-party verifier, alongside published W3C vectors (#1112).
  • Current DID-operation proofs bind their proof configuration into the signed payload, and operation proof purposes identify the relationship being exercised (#1127, #1129).
  • Key rotation preserves additional published methods, including DIDComm keys (#1085).
  • Legacy credential proofs remain accepted in v0.13 (#1281).

⛓️ Chain Anchoring and Recovery

  • Mediators skip unavailable batches and operations, continue importing, and retry missing content later (#1154).
  • Anchored batches are read from their immutable genesis document, so later batch-DID updates cannot reorder already-anchored operations. Gatekeeper exposes getGenesis, also available as get-genesis in the admin CLI (#1267, #1275, #1280).
  • Reorganization recovery withdraws orphaned chain evidence and replays affected histories, retaining signed operations as provisional evidence (#1272).
  • Ethereum and Solana imports wait for finalized chain data (#1272, #1276); expected Ethereum finality waits are informational (#1279).
  • Bitcoin fee-rate handling, failed-attempt batch reuse, Zcash broadcasting and orphaned-checkpoint recovery are fixed. Batch completion no longer waits on unrelated deferred events (#1036, #1039, #1042, #1169, #1183).

⚡ Performance and Node Operation

  • Gatekeeper reuses replay snapshots during startup, avoids repeated history reconstruction and unchanged-duplicate replay, and keeps status scans responsive (#1165, #1167, #1171, #1173, #1189).
  • Startup history checks report progress and elapsed time; both Gatekeeper flavors support configurable startup grace (#1173, #1192).
  • Docker images use separate build/runtime stages, and client apps are served statically (#990, #992–#996).
  • MongoDB is optional for hosts without AVX; the Rust MongoDB startup panic is fixed (#1028, #1277).
  • CLI wallet paths work consistently across directories and backends; Python can open the same SQLite wallet as TypeScript. Commands return failure exit codes and failed service startup is fatal (#1057, #1062, #1072, #1074, #1076).

🔒 Security

  • Public HTTPS connections validate the actual DNS destination, including redirects, in Node and Python (#1262).
  • Keymaster requires an admin API key; authenticated internal requests can use Drawbridge without paying their own node's L402 gateway (#1048, #1261).
  • Public proxy routes are rate-limited; RTL, Grafana, and LNbits admin interfaces bind to loopback by default (#1046, #1139).
  • Published Tor onion endpoints are checked for reachability; CLI output no longer exposes Lightning keys (#998, #1263).

📦 Upgrade Notes and Packages

  • Upgrade credential verifiers before issuers in mixed-version deployments: new credential proof formats may be rejected by older releases. Existing legacy credentials remain supported (#1085, #1281).
  • ARCHON_PASSPHRASE is the preferred wallet-passphrase variable. The older ARCHON_ENCRYPTED_PASSPHRASE remains a fallback; CLIs can prompt for the passphrase (#1070, #1071).
  • Ensure ARCHON_ADMIN_API_KEY is configured for Keymaster startup (#1048).
  • npm releases: Gatekeeper/Keymaster 0.7.0, Cipher 0.5.0, Clients 0.2.0, and Common/IPFS/MCP server 0.4.0 (#1284).
  • PyPI: archon-keymaster 0.7.0, validated through TestPyPI and a fresh production install (#1285).

🧪 CI and Documentation

  • Lean build caching, explicit axiom audits, signed fixture checks, and parallel implementation bridges keep proof checks in CI; convergence tests run separately from unit tests (#1257, #1268).
  • Docker CI builds every service image, with nightly multi-platform coverage (#955, #956, #982).
  • Updated protocol documentation, architecture diagram, recovery guidance, white paper, and an animated “How Archon Works” walkthrough (#1069, #1187, #1194, #1264, #1286, #1287).

What's Changed

Routine dependency bumps are omitted; see the full changelog below for the complete list.

  • chore: Init v0.13.0 by @macterra in #953
  • ci: Build every service image, not fourteen of twenty-six by @macterra in #955
  • ci: One publish workflow, publishing what it builds by @macterra in #956
  • ci: Allow publishing a past ref with the current matrix by @macterra in #958
  • fix(ci): Stamp images with the commit they were built from by @macterra in #959
  • perf(ci): Use the sqlite3 prebuild in the chain mediators by @macterra in #961
  • perf(ci): Cross-compile the Rust gatekeeper instead of emulating it by @macterra in #960
  • refactor(db): Replace both sqlite drivers with node:sqlite by @macterra in #963
  • fix(deps): Move explorer and gatekeeper-client to react-router v7 by @macterra in #973
  • ci: Build every image for arm64 nightly, not only when releasing by @macterra in #982
  • refactor(cipher): One HD key implementation, on @scure/bip32 by @macterra in #986
  • perf(docker): Serve client apps statically, and prune dev deps from the runtime by @macterra in #990
  • perf(docker): Split the wallet sidecars into build and runtime stages by @macterra in #992
  • perf(docker): Split the mediators and node servers into build and runtime stages by @macterra in #993
  • perf(docker): Split herald into build and runtime stages by @macterra in #994
  • perf(docker): Split the toolchain mediators into build and runtime stages by @macterra in #995
  • perf(docker): Split cli and explorer into build and runtime stages by @macterra in #996
  • fix(herald): Give /id pages real metadata for link previews by @macterra in #997
  • fix(cli): Stop printing Lightning keys to stdout by @macterra in #998
  • docs(cli): Point at the wallet backup where people will see it by @macterra in #999
  • docs(compose): Add an env sample for the minimal compose stack by @macterra in #1017
  • Move the remaining eight packages to Express 5 by @macterra in #1024
  • fix(compose): Make mongodb optional so a host without AVX can run a node by @macterra in #1028
  • fix(ci): Resolve changed lockfiles in the consistency check by @macterra in #1029
  • fix(keymaster-ui): Load the identity name when the selection changes by @macterra in #1031
  • ci: Gate on the full image build, and cancel superseded runs by @macterra in #1032
  • ci: Stop cross-compiling for arm64 on every push by @macterra in #1034
  • fix(satoshi): Fix the fee rate that broke anchoring, and stop leaking a batch DID per failed attempt by @macterra in #1036
  • fix(wallet-ui): Drop a snackbar raised after its screen has gone by @macterra in #1038
  • fix(mediators): Port the anchor leak fix to ethereum, solana and zcash by @macterra in #1039
  • fix(zcash-wallet): Read the consensus branch from the node, and announce broadcasts by @macterra in #1042
  • refactor(mediators): Make the anchor decision testable by @macterra in #1043
  • fix(python-cli): Read a .env from the working directory by @macterra in #1045
  • fix(drawbridge): Rate-limit the public proxy routes, not just /didcomm by @macterra in #1046
  • chore(docker): Drop the toolchain from images that compile nothing by @macterra in #1047
  • fix(keymaster): Refuse to start without ARCHON_ADMIN_API_KEY by @macterra in #1048
  • docs(deployment): Offer the minimal stack as a way in, with a CLI to drive it by @macterra in #1049
  • fix(keymaster): Make wallet creation a decision, not a side effect of reading by @macterra in #1050
  • fix(keymaster): Make the HD-key cache and its identity one value by @macterra in #1056
  • fix(services): Make a failed startup fatal instead of a logged line by @macterra in #1057
  • fix(cli): Exit non-zero when a command fails by @macterra in #1062
  • fix(ci): Compare every service config, and read its booleans correctly by @macterra in #1064
  • fix(mediators): Bound the reorg rewind instead of restarting the scan by @macterra in #1065
  • docs: Write down how to recover a node after losing state by @macterra in #1069
  • feat(config): Move the wallet passphrase to ARCHON_PASSPHRASE everywhere by @macterra in #1070
  • feat(cli): Ask for the wallet passphrase instead of teaching people to export it by @macterra in #1071
  • feat(cli): Keep the wallet where the CLI can find it from any directory by @macterra in #1072
  • fix(keymaster): Make a wallet path mean a path under both backends by @macterra in #1074
  • feat(python-cli): Open the same SQLite wallet the TypeScript CLI does by @macterra in #1076
  • chore(deps): Update kubo to v0.43.0 for the memory-exhaustion fixes by @macterra in #1077
  • fix(ipfs): Replace the Helia backend with an in-memory store by @macterra in #1079
  • fix(ci): Seed the datachannel prebuild the repo actually installs by @macterra in #1081
  • feat(keymaster): Credentials other DID methods can verify by @macterra in #1085
  • feat(keymaster): Let a user publish the assertion key by @macterra in #1102
  • fix(keymaster-service): Return 400/404 for client errors, not 500 by @macterra in #1107
  • test(keymaster-service): Let real-FastAPI tests run beside the stubbed suite by @macterra in #1110
  • fix(keymaster-service): Classify JS error status by type, not per route by @macterra in #1111
  • test(keymaster): Verify an Archon credential with a third-party implementation by @macterra in #1112
  • fix(cipher): Pin and document the Ed25519 verification rule (ports diverge on torsion keys) by @macterra in #1113
  • fix(gatekeeper): Apply one timestamp grammar in both ports by @macterra in #1117
  • fix(gatekeeper): Keep non-operations out of the operation store by @macterra in #1119
  • fix(gatekeeper): Agree on field presence across both ports by @macterra in #1120
  • fix(mediators): Wait for the wallet route the mediator is about to call by @macterra in #1123
  • fix(keymaster-service): Point at the shell when the wallet will not open by @macterra in #1124
  • feat: Bind the proof configuration into DID operation proofs by @macterra in #1127
  • fix: Name the relationship an operation actually exercises by @macterra in #1129
  • fix(gatekeeper): Authorize against the key the proof names by @macterra in #1132
  • fix(gatekeeper): Resolve the controller at the time an operation arrived by @macterra in #1134
  • fix(compose): Bind RTL, Grafana, and LNbits admin UIs to loopback by @macterra in #1139
  • Revert #1134 (controller resolution forks on out-of-order hyperswarm sync) by @macterra in #1143
  • test(gatekeeper): Structurally fuzz operation parity between the ports by @macterra in #1144
  • fix(gatekeeper): Reject a backdated proof once the chain has committed the operation by @macterra in #1145
  • refactor(gatekeeper): Move authorization policy to the event layer by @macterra in #1153
  • fix(mediators): skip unavailable batches and retry later by @macterra in #1154
  • fix(gatekeeper): revalidate authorization as controller history arrives by @macterra in #1155
  • Align CID batch operation indices and timestamp metadata by @macterra in #1161
  • Restore confirmed-resolution fallback for pending and missing history by @macterra in #1162
  • Unify canonical operation identity and preserve retrieval aliases by @macterra in #1163
  • fix(gatekeeper): avoid repeated startup history reconstruction by @macterra in #1165
  • fix(gatekeeper): skip replay for unchanged sync duplicates by @macterra in #1167
  • fix(mediators): stop retrying batches for unrelated pending events by @macterra in #1169
  • fix(gatekeeper): keep runtime replay and status scans responsive by @macterra in #1171
  • fix(gatekeeper): accelerate startup history recovery by @macterra in #1173
  • fix(gatekeeper): validate predecessors before submitting operations by @macterra in #1174
  • fix(gatekeeper): recover TypeScript predecessor references in Rust by @macterra in #1179
  • fix(gatekeeper): validate registration transitions before acceptance by @macterra in #1181
  • fix(zcash): recover orphaned checkpoints and expose scan failures by @macterra in #1183
  • fix(gatekeeper): match TypeScript operation sizes in Rust by @macterra in #1184
  • fix(hyperswarm): use proof time for event timestamps by @macterra in #1186
  • docs: refresh Archon node architecture diagram by @macterra in #1187
  • perf(gatekeeper): reuse replay snapshots during startup by @macterra in #1189
  • fix(gatekeeper): align operation CIDs with RFC 8785 by @macterra in #1191
  • fix(compose): allow configurable Gatekeeper startup grace by @macterra in #1192
  • docs(protocol): consolidate DID state transition rules by @macterra in #1194
  • fix(protocol): select provisional successors by canonical CID by @macterra in #1198
  • test(protocol): prove bounded agent-history convergence in Lean by @macterra in #1200
  • test(protocol): prove operational replay refines canonical histories by @macterra in #1202
  • test(protocol): prove settled event records stabilize by @macterra in #1204
  • test(protocol): prove combined full-event replay convergence by @macterra in #1206
  • test(protocol): connect replay proofs to serialized runtime traces by @macterra in #1208
  • test(protocol): prove convergence with agent rotation and deletion by @macterra in #1210
  • test(protocol): prove convergence with multiple verification methods by @macterra in #1212
  • test(protocol): prove convergence of agent document components by @macterra in #1214
  • fix(gatekeeper): reconsider earlier valid chain anchors by @macterra in #1217
  • test(protocol): prove repeated chain anchor selection by @macterra in #1218
  • test(protocol): compose chain priorities with successor replay by @macterra in #1219
  • test(protocol): model interleaved anchor and branch replay by @macterra in #1220
  • test(protocol): prove whole-path interleaved replay convergence by @macterra in #1221
  • test(protocol): connect interleaved and settled-priority replay by @macterra in #1222
  • test(protocol): derive interleaved replay document authorization by @macterra in #1223
  • test(protocol): compose chain priorities with document authorization by @macterra in #1224
  • test(protocol): audit registry migration convergence by @macterra in #1225
  • test(protocol): prove predecessor registry prefix agreement by @macterra in #1226
  • test(protocol): prove migration-aware anchor selection by @macterra in #1227
  • test(protocol): prove migration-aware compiled replay by @macterra in #1228
  • docs(proofs): freeze protocol convergence completion criteria by @macterra in #1230
  • test(protocol): connect interleaved migration replay by @macterra in #1229
  • feat(proofs): derive integrated agent anchor eligibility by @macterra in #1231
  • feat(proofs): complete integrated agent eligibility projection by @macterra in #1232
  • fix(gatekeeper): break equal anchored ordinal ties by operation CID by @macterra in #1233
  • fix(gatekeeper): derive controller anchoring from confirmed history by @macterra in #1234
  • fix(gatekeeper): require ordinals on chain receipts by @macterra in #1236
  • feat(proofs): complete agent convergence with pin proof time by @macterra in #1237
  • feat(proofs): derive historical controller selection by @macterra in #1238
  • feat(proofs): derive asset authorization and replay convergence by @macterra in #1239
  • test(proofs): bridge signed asset and controller convergence by @macterra in #1240
  • feat(proofs): compose protocol convergence and audit receipt authority by @macterra in #1241
  • fix(gatekeeper): bind event targets to signed operations by @macterra in #1251
  • fix(gatekeeper): require complete chain receipt metadata by @macterra in #1252
  • fix(gatekeeper): reject duplicate verification-method IDs by @macterra in #1253
  • refactor(gatekeeper): extract pure successor ordering by @macterra in #1254
  • refactor(gatekeeper): centralize event envelope policy by @macterra in #1255
  • refactor(gatekeeper): share accepted-history interpretation by @macterra in #1256
  • ci(proofs): cache Lean builds and parallelize bridge checks by @macterra in #1257
  • feat(keymaster): add DID document check and repair commands by @macterra in #1259
  • feat(wallet): add shared DID check and repair dialog by @macterra in #1260
  • fix(drawbridge): exempt authenticated internal requests from L402 by @macterra in #1261
  • fix(network): pin public HTTPS lookups to validated DNS destinations by @macterra in #1262
  • fix(tor): detect unreachable published onion endpoints by @macterra in #1263
  • docs(protocol): add checked current-suite operation example by @macterra in #1264
  • fix(mediators): distinguish batch and global import counts by @macterra in #1265
  • fix(mediators): import anchored batches from genesis by @macterra in #1267
  • ci: run convergence tests in parallel with unit tests by @macterra in #1268
  • fix: withdraw orphaned chain receipts during reorg recovery by @macterra in #1272
  • feat: add immutable genesis retrieval for anchored batches by @macterra in #1275
  • feat: import Ethereum anchors only after finalization by @macterra in #1276
  • fix: prevent Rust MongoDB nested-runtime panics by @macterra in #1277
  • fix: log Ethereum legacy finality waits as informational by @macterra in #1279
  • feat: add get-genesis to admin CLI by @macterra in #1280
  • docs: record legacy credential acceptance for v0.13 by @macterra in #1281
  • chore: prepare minor npm package release by @macterra in #1284
  • chore: release Python keymaster 0.7.0 by @macterra in #1285
  • docs: add animated "How Archon Works" walkthrough by @macterra in #1286
  • docs: bring the white paper and animation up to date by @macterra in #1287

Full Changelog: v0.12.0...v0.13.0