Repository navigation
aph-cli: attest-rotation and render-did --attestation (RFC 0001 §3.1 publication) - #6
Merged
Merged
Conversation
added 3 commits
September 30, 2026 11:06
… N_BOOK §3.11 errata) N_BOOK §3.11 (errata @squillo/n 0f90276 + cb76d34): every nlang.config.n path resolves from the Snapp root, and a leading ".." escapes it literally. nlang sha256 4b830ee4 still CLAMPS a leading ".." in src_dir back to <root>/<rest>, so this edit is zero-behaviour today: "./" already resolves from the root. It has to land BEFORE the clamp is fixed (nlang bundle #6). Announced on FLEET-BROADCAST seq 70851 with a 60-min objection window. One line changed per file.
… is named by its predecessor, in the document v0.2 §5 / RFC 0001 §3.1 publication, end to end. aph-core gains render_did_document_with_rotation: the §8.4.4 document plus the signed statement under the full-URI property, refused (APH_E024) before anything renders unless it verifies under the PUBLISHED predecessor and the named successor is published under the same bytes; the plain renderer is byte-identical to before (one shared builder; a test pins it). The DID-document parser's unknown-field tolerance is what makes the added property safe, and a test now pins that dependency by name. aph-cli: attest-rotation is the one verb in the binary that holds a private key — the predecessor seed arrives on STDIN and nowhere else, the statement is self-verified before it is printed, and no message carries the value (length class only). render-did --attestation embeds the result, re-verifying under the published key. Kept out of `publish` so that module's public-only promise stays unqualified. First use: did:web:aph-notary.squillo.com#k2 published beside #k1 on 2026-11-07, attested by the live #k1.
…derer change The byte-diff job on PR #6 failed by design — aph-core gained render_did_document_with_rotation, so the shim's bytes moved — and the Linux runner uploaded the reference build (run 42502534093, artifact rebuilt-aph-wasm). Adopted per interpreters/go/README.md: placed, the Go suite run locally against it, committed. The runner is the one reference builder; this is not a local build.
scott-wyatt
pushed a commit
that referenced
this pull request
Nov 8, 2026
…derer change The byte-diff job on PR #6 failed by design — aph-core gained render_did_document_with_rotation, so the shim's bytes moved — and the Linux runner uploaded the reference build (run 42502534093, artifact rebuilt-aph-wasm). Adopted per interpreters/go/README.md: placed, the Go suite run locally against it, committed. The runner is the one reference builder; this is not a local build.
scott-wyatt
force-pushed
the
attest-rotation-k2
branch
from
November 8, 2026 17:33
6e4764f to
573600f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
v0.2 §5 / RFC 0001 §3.1 publication, end to end: a notary's CURRENT key signs that a named successor is its own, and the DID document carries that statement.
discovery::publish::render_did_document_with_rotation: the §8.4.4 document plus the signed attestation underhttps://w3id.org/aph/v1#rotationAttestation. Refuses (APH_E024, the verifier's own code) before anything renders unless the statement verifies under the PUBLISHED predecessor and the named successor is published under the same bytes. The plainrender_did_documentis byte-identical to before (one shared builder; a test pins it). The DID-document parser's unknown-field tolerance is what makes the added property safe for every verifier, and a test now pins that dependency by name.attest-rotation <did:web> <pred-kid> <did:key> <succ-kid> --id --created --not-before --not-after: the one verb in the binary that holds a private key. The predecessor seed arrives on STDIN and nowhere else; the statement is self-verified before it is printed; no message carries the value (length class only). Lives in its ownattestmodule sopublish's public-only promise stays unqualified.render-did --attestation <file>embeds the result, re-verifying under the published key.Tests
Four new tests (two per crate): the rotation render adds exactly the property and nothing else; five chain failures refuse under
APH_E024; the verb's output strict-parses, verifies under the predecessor's public key and embeds; malformed seeds and incomplete arguments refuse without echoing. Keys are RFC 8032 §7.1 TEST 1 and TEST 2. Full default workspace green; release binary smoke-tested end to end including a wrong-signer refusal.First use
did:web:aph-notary.squillo.com#k2is live beside#k1as of 2026-11-07, attested by the live#k1; the published document re-renders byte-identically from the live key and the statement.Note
This branch also carries
9e850f2(Scott, 2026-09-30): a two-linesrc_dirfix in twonlang.config.nfiles that was committed locally onmainand never pushed. Included as-is rather than rewritten.