GeezerVison is showing github.com — Phase 4 of #6487 — closing sign-surface inventory: disposition every public signing entry point in pkgs/id against the sign-time refusal contract · Issue #6488 · developing-today/code
Phase 4 of #6487 — closing sign-surface inventory: disposition every public signing entry point in pkgs/id against the sign-time refusal contract #6488DescriptionPhase 4 of #6487 — closing sign-surface inventory: disposition every public signing entry point in pkgs/id against the sign-time refusal contract
Design: #6487 (sign only what receipt would accept — one sign-time
refusal contract for pkgs/id). Design doc:
files/designs/code-id-sign-time-refusal.md in the
keep-the-four-repos-healthy goal workspace.
Gated on Phases 1–3 of #6487 (Phase 1: #6422 + #6443;
Phase 2: #6424 + #6434; Phase 3: #6447 + #6451 + #6469). Do not
start the inventory until they have landed; keep this issue
status/blocked until then.
Scope
Produce a closing inventory of every public signing entry point
in pkgs/id (every pub fn sign_*, Signed*::sign, and any
public method whose purpose is producing a signed object),
dispositioned against the #6487 contract with file:line evidence:
- enforced — the signer mirrors every unconditional receipt
rule decidable from its own inputs; name the phase that did it;
- deliberately receipt-only — every unchecked receipt rule is
class (d) receiver-state; name the rule and the reason it is
not decidable at the seam;
- gap — a decidable unconditional receipt rule is still
signable-around: file it as a follow-up issue from the audit
(do not fix it inside this phase).
Required dispositions (named in the design doc):
sign_revoke (currency.rs) — no RateAuthorisationRevoke
validator exists and the fold applies no validity filter to
revokes: state whether a revoke rule set is worth filing
(neighbouring id(currency): RateAuthorisation::validate accepts internally inconsistent bodies — min>max, empty/inverted window, fee_bps>10000, empty/same ledgers #4071's rule-set extension), or record "no
receipt rule exists — nothing to mirror" with the evidence.
directory::sign_up / sign_up_keyed — stateful admission
methods, not pure signers: expected disposition is out of the
contract's scope, with the reason stated, not assumed.
- The documents/chain builder symmetry (Design: a signed artifact is validated as strictly as it is built — one receipt contract for pkgs/id artifacts #3231's estate) —
confirm the builders still apply their receipt rules, or
disposition the difference.
SignedArtifact::sign_unchecked — the deliberate
crate-private bypass: disposition conforming under rule 4 of
Design: sign only what receipt would accept — one sign-time refusal contract for pkgs/id #6487 (crate-private, *_unchecked naming), or file the gap.
- Replication receiver test bypass helpers (the
sign_unbounded pattern) — same rule-4 disposition.
- Any signing entry point the Phases 1–3 work surfaced that
this list does not name — the inventory, not this list, is
the proof of completeness.
Also land the contract statement in the crate's documentation:
the rule ("sign only what receipt would accept") and the four
decidability classes (intrinsic / signer-relative /
seam-extended / receiver-state), where a future sign_*
author will find it before adding a new signer.
Acceptance criteria
- An inventory table covering every public signing entry
point in pkgs/id, each dispositioned as above with
file:line evidence, posted on this issue (and in the
crate docs if that is where the contract statement lands).
- The four required dispositions above are each answered
explicitly — none silently skipped.
- Any gap found is filed as its own follow-up issue and
linked here; nothing is fixed inside this phase beyond
the docs statement.
- The contract statement (rule + decidability classes) is
present in the crate's documentation.
- Receipt behaviour is unchanged by this phase (docs and
inventory only).
🤖 Filed by the repo design architect (fleet) as Phase 4 of
#6487, gated on Phases 1–3. Activityadded kind/bugSomething isn't working (prefixed form of the classic bug label) task/triageQueue packet kind: verify, reproduce, and route this item app/idPackage/app: id (pkgs/ or apps/ in this repo) on Nov 6, 2026developing-today commented on Nov 6, 2026 dezren39 commented on Nov 6, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 12, 2026 agent-note:v1
event: triaged
task: 13805
worker: repo-worker-code
lane: code-f
at: 2026-11-12T02:55Z
issue: #6488 remains OPEN and actionable; #6487 remains OPEN.
verification: Fresh gh checks confirm all seven Phase 1–3 prerequisites (#6422, #6443, #6424, #6434, #6447, #6451, #6469) are CLOSED. Laptop main is fast-forwarded to origin/main at 69a1f44. No hard-stop labels were present.
route: Enqueued small_fix task 15067 (dedupe key repo-health:v1:fix:developing-today/code:issue:6488) to complete the Phase 4 inventory and contract docs. Its scope preserves receipt behavior and requires any gaps to be filed separately.
next: task 15067 executes issue #6488; no further work is performed by this triage task. dezren39 commented on Nov 12, 2026 🤖 Agent note · picked up
- Agent: queue worker (repo-worker-code), lane code-a
- Session / ID: task 15067
- Found via: queue claim (
--filter 'repo = code', lane assignment: direct)
- Task: Phase 4 of Design: sign only what receipt would accept — one sign-time refusal contract for pkgs/id #6487 — closing sign-surface inventory for issue Phase 4 of #6487 — closing sign-surface inventory: disposition every public signing entry point in pkgs/id against the sign-time refusal contract #6488: enumerate every public signing entry point in
pkgs/id, disposition each against the sign-time refusal contract with file:line evidence, land the contract statement in crate documentation, file any gap separately. Docs/inventory only; receipt behaviour unchanged.
- Verified fresh: issue Phase 4 of #6487 — closing sign-surface inventory: disposition every public signing entry point in pkgs/id against the sign-time refusal contract #6488 OPEN, no held / user/owned / do-not-merge / do-not-auto-edit labels; all seven Phase 1–3 prerequisites (id(currency): sign_authorisation never calls validate — a signed authorisation naming another issuer or with rate_den = 0 is dead on arrival, and signing succeeds silently #6422, id(directory_auth): sign_request never checks the nonce against verify_signed's domain — empty, over-long and bad-character nonces sign Ok yet are always rejected as 'signature does not verify' #6443, id(attestation): sign_genesis / sign_claim never check the signer is a player — a non-player's signed genesis or claim is dead on arrival, and signing succeeds silently #6424, id(match_audit): sign_header/sign_footer never check version, roster, signer or seed commitment — signatures verify_integrity always rejects are produced silently #6434, id(world/signed): sign_move never checks world_id or input against the acceptance domain — a move for a blank world, or with an empty input, signs Ok yet no world can ever accept it #6447, id(issuer_rotation): sign_rotation never checks the successor against the signer — a routine rotation to the signing key itself signs Ok yet the fold can never count it #6451, id(world/replication): SignedReplicationEnvelope::sign signs envelopes every receiver rejects — version, header version, payload digest, cursor chain, terminal and snapshot-base rules unchecked #6469) closed; laptop
origin/main at 69a1f44; worktree ~/git/fleet/queue-15067-6488, branch queue/15067-6488-sign-inventory.
- Links: issue Phase 4 of #6487 — closing sign-surface inventory: disposition every public signing entry point in pkgs/id against the sign-time refusal contract #6488, design issue Design: sign only what receipt would accept — one sign-time refusal contract for pkgs/id #6487
dezren39 commented on Nov 12, 2026 🤖 Agent note · Phase 4 inventory complete
Closing sign-surface inventory — every public signing entry point in pkgs/id
Audit at origin/main 69a1f44 (2026-11-12). Enumeration method, so completeness is checkable: grep -rn 'pub (fn|async fn) sign|pub fn …sign_' over pkgs/id/src and pkgs/id/crates/*/src, plus every Signed*::sign / ::sign_after / ::signed constructor, plus public methods whose purpose is producing a signed object (Log::append, ArtifactLog::sign, Envelope::signed). Helpers that only derive a key (seitan::derive::signing_key), only name the signed bytes (signed_message, signing_bytes, countersign_bytes), or only verify (verify_signed, verify_signature) are not signers and are excluded. All line numbers are at the audit commit.
Dispositions use the #6487 vocabulary: enforced (the signer mirrors every unconditional receipt rule decidable from its inputs; classes a/b/c named), deliberately receipt-only (every unchecked rule is class (d) receiver-state, named), gap (a decidable unconditional rule is still signable-around — filed separately, never fixed in this phase), out of scope (not a pure signer), conforming bypass (rule 4).
The contract's own modules (Phases 1–3)
| Entry point |
Evidence |
Disposition |
chain::sign — crates/id-store/src/chain.rs:525 |
Refuses an extension failing ChainExt::validate (chain.rs:333) and a seq/backlink mismatch, before signing |
enforced (a) — the base layer every chain signer below inherits |
SignedArtifact::sign / sign_after — crates/id-sync/src/artifact.rs:350 / :368 |
sign_after runs the receipt check itself (parsed(), artifact.rs:542) on the artifact about to go out; known kinds sign only when receipt would accept the body (#5623). Unknown kinds parse to None and stay envelope-only — receipt is envelope-only for them too, so there is nothing to mirror |
enforced (a) |
ArtifactLog::sign / sign_after — crates/id-sync/src/artifact.rs:978 / :988 |
Delegates to SignedArtifact::sign_after at the chain head |
enforced (a), by delegation |
sign_genesis — crates/id-events/src/attestation.rs:176 |
Refuses a duplicate-seat agreement and a signer who is neither seat (SignError::NotAPlayer, #6424) |
enforced (a)+(b), Phase 2 |
sign_claim — crates/id-events/src/attestation.rs:232 |
Now takes the agreement as a seam input: refuses an agreement-hash mismatch and a non-player signer; the outcome-shape rule (#6441) runs in both paths |
enforced (a)+(c), Phase 2 — the seam-extended pin, taken as an extra parameter |
sign_header / sign_footer — src/match_audit.rs:434 / :486 |
Refuse a non-FORMAT_VERSION_V0 version, a roster validate_roster rejects, a non-roster signer, and (footer) a seed_reveal whose digest differs from header.seed_commitment — the header/footer-local rules of verify_integrity (#6434). Tick-ordering and assembled-log chain checks in verify_integrity need the whole log |
enforced (a)+(b), Phase 2; assembled-log checks deliberately receipt-only (d: assembled log's context) |
sign_request — crates/id-worlds/src/directory_auth.rs:381 |
Fallible; refuses any nonce outside the one shared predicate nonce_in_domain (directory_auth.rs:368), which verify_signed (:408) uses too, so sign and receipt cannot drift (#6443). The time window and the replay guard in verify_signed depend on receiver clock/state |
enforced (a), Phase 1; window/replay deliberately receipt-only (d) |
sign_move — crates/id-worlds/src/world/signed.rs:71 |
Refuses a blank world_id and an empty input (#6447); sequence/backlink refusals inherited from chain::sign. Input length is the target world's limit, which the seam does not know |
enforced (a), Phase 3; length deliberately receipt-only (d) |
sign_rotation — crates/id-store/src/issuer_rotation.rs:749 |
Refuses a Routine rotation whose successor_key equals the signing key's issuer id (#6451). The recovery-mode analogue needs the replaced key, which the inputs do not name |
enforced (b), Phase 3; recovery analogue deliberately receipt-only (d) |
SignedReplicationEnvelope::sign — crates/id-worlds/src/world/replication.rs:602 |
Refuses a key that is not the envelope's source, and every envelope-local rule ReplicationTracker::accept enforces, via validate_envelope_local (replication.rs:526): version, journal-header version range, payload bound and digest, cursor chaining, malformed payload, terminal shape, snapshot base cursor, journal-header agreement (#6469). Pinned source, session nonce, prev_frame_digest chaining and cursor gap/fork live in the receiver |
enforced (a)+(b), Phase 3; receiver-session rules deliberately receipt-only (d) |
sign_authorisation — src/currency.rs:394 |
Calls RateAuthorisation::validate(&issuer_id(key)) (currency.rs:148) — the exact predicate the fold filters on — before signing (#6422) |
enforced (a)+(b), Phase 1 |
Required dispositions
sign_revoke — src/currency.rs:430: no receipt rule exists — nothing to mirror
Evidence: RateAuthorisationRevoke has no validator — body() / from_body() (currency.rs:216ff) are plain serde with no field rules — and fold_authorisation (currency.rs:347) applies no validity filter to revokes: it considers only revokes whose event author is the expected issuer (an author the signer cannot misrepresent, since the chain event's author is the signing key) and among those picks the covering revoke by revoked_version_from <= highest version. Every field value a revoke can carry is therefore meaningful at receipt; there is no unconditional receipt rule for the signer to mirror, and the signer-relative half is enforced by chain authorship itself.
Verdict on a revoke rule set: not worth filing from this audit. Inventing field rules for revokes would be new policy, not a mirror of an existing receipt contract; if a rule set is ever wanted it belongs with #4071's rule-set extension, argued on its own evidence — not as a #6487 gap. Disposition: deliberately receipt-only / no-rule, not a gap.
directory::sign_up / sign_up_keyed — crates/id-worlds/src/directory.rs:604 / :646: out of the contract's scope
These are stateful admission methods on Directory (&mut self), not pure signers: neither produces a signed object — each builds a DirectoryEntry and applies it to the directory's own state (self.apply(&entry)?), and the validation they carry is admission validation applied in that same step (name empty / too long / control characters for sign_up; normalize_key plus already-registered refusal for sign_up_keyed). There is no separate receipt side for them to diverge from: the state transition is the consumption. Disposition: out of scope, with the reason stated, as the design predicted. (The web layer's sign_up_keyed at src/web/seitan.rs:144 is pub(crate) and is likewise an admission path, not a signer.)
Documents/chain builder symmetry (#3231's estate): conforming
DocumentRef::for_bytes — the builder — crates/id-store/src/documents.rs:89 calls DocumentRef::check() (documents.rs:106) before returning, and the decoder path applies the same check(); the type's own docs at documents.rs:99 state the symmetry ("The builder and the decoder both apply them"). The same symmetry holds one layer up: SignedArtifact::sign_after (above) runs the receipt parser on the built artifact. Disposition: enforced (a) — the builders apply their receipt rules.
SignedArtifact::sign_unchecked / sign_legacy_unchecked — crates/id-sync/src/artifact.rs:390 / :406: conforming bypass (rule 4)
Both are *_unchecked-named and gated #[cfg(any(test, feature = "test-utils"))] — unreachable in a default build, existing so tests can mint the signed-but-refusable artifacts receipt tests exist to refuse; sequence, frontier, hash and signature rules still apply inside build_signed. The attestation twin sign_claim_unchecked (attestation.rs:253) is stricter still: pub(crate), and it keeps the outcome-shape check. Disposition: conforming under rule 4 — no public unchecked signer exists in a production build.
Replication receiver test bypass helpers: conforming bypass (rule 4 in substance)
sign_unbounded (crates/id-worlds/src/world/replication_receiver.rs:632) and sign_bypass (crates/id-worlds/src/world/replication.rs:1148) are private fns inside #[cfg(test)] modules — not public, not crate-public, not feature-gated: they exist only in the crate's own test builds, so receiver tests can mint the lying envelopes the production sign (above) now refuses. Disposition: conforming — a test-only bypass, never a second production signer.
The rest of the public sign surface (the inventory beyond the design's list)
| Entry point |
Evidence |
Disposition |
sign_definition — src/currency/graph.rs:387 |
CurrencyDefinition::body() (graph.rs:183) calls validate() (graph.rs:169: non-empty NFC name, scale ≤ 18) — the same validation from_body applies at receipt |
enforced (a) |
sign_issue — src/currency/graph.rs:404 |
Refuses an issuer mismatch and a currency mismatch before signing; amount rule (positive) runs in TokenIssue::body() (graph.rs:259) |
enforced (a)+(b) |
sign_transfer — src/currency/graph.rs:423 |
Positive-amount rule runs in TokenTransfer::body() (graph.rs:292); the body carries no sender field — the sender is the chain event's author, so no signer mismatch is representable. Whether the sender has the funds / the asserted seq_ref is covered is a fold over ledger state. Its doc comment says exactly this ("only signs the assertion; it does not prove funds") |
enforced (a) for the decidable rule; balance/coverage deliberately receipt-only (d) |
sign_burn — src/currency/graph.rs:435 |
Same shape as sign_transfer: amount in TokenBurn::body() (graph.rs:319); supply effects require a fold |
enforced (a); supply deliberately receipt-only (d) |
SignedBoardObject::sign — src/boards.rs:869 |
Calls object.validate_shape() before signing and signs through SignedArtifact::sign; receipt (from_artifact, boards.rs:877) applies the same validate_shape plus a canonical round-trip check. Board-graph link/authority rules run in BoardGraph::insert against graph state |
enforced (a); graph rules deliberately receipt-only (d) |
LogRecord::sign — src/directory_log.rs:61; Log::append — src/directory_log.rs:132 |
The author is derived from the signing key itself, so no author mismatch is representable; receipt (LogRecord::verify) checks only hash and signature, and both are produced correctly by construction. append delegates to sign one Lamport step past the held records |
enforced by construction — no further receipt rule exists |
InviteEvent::sign — src/invites/event.rs:51 |
The inviter is derived from the signing key; role is a typed enum, so no out-of-domain role is representable. verify_signature checks the signature only, and its docs state the rest ("does not prove that the key is the one a link names. The caller checks that") — expiry and link-binding are the caller's/receiver's state |
enforced by construction; expiry/link checks deliberately receipt-only (d) |
PresenceHeartbeat::sign (chat_presence) — src/chat_presence.rs:146 |
Sets node from the signing key itself, so the claim and the identity that vouches for it cannot diverge; receipt (verify) checks the signature only. Freshness is a receiver-side TTL over receiver clock state |
enforced by construction; freshness deliberately receipt-only (d) |
seitan::accept::sign — src/seitan/accept.rs:104 |
The invite ID in the signed message is derived from the token the signer holds, so the admit-side invite match holds by construction for an honestly derived proof. Everything else admit (src/seitan/admit.rs:155) checks — revoked, expired, already-used, freshness window against the invite's own created/expires — is invite/receiver state the joiner's seam does not hold |
deliberately receipt-only (d), no decidable rule skipped |
sign_delete — src/backup.rs:137 |
Signs H(pub) ‖ "delete" ‖ epoch; receipt's only rules are epoch-versus-store-state (tombstone / live record), which are the store's state, not the signer's inputs |
deliberately receipt-only (d) |
sign_upload — src/backup.rs:129 |
GAP — filed as #8842. BackupStore::upload (backup.rs:558) unconditionally validates the envelope (validate_envelope, backup.rs:475) before verifying the signature; that rule is intrinsic to the envelope bytes the signer already holds, but infallible sign_upload (-> [u8; 64]) never calls it, so it can mint a valid signature over an envelope every store refuses |
gap (a) → #8842 |
Envelope::signed — crates/id-sync/src/envelope.rs:77 |
GAP — filed as #8843. Envelope::verify (envelope.rs:110) derives the verifying key from the envelope's own from, so an envelope whose from is not the signing key's hex can never verify; that comparison is decidable from the signer's own key and inputs, but signed never makes it. Production callers are safe today only because Directory::authenticate binds the ID to the key first (directory.rs:1819) |
gap (b) → #8843 |
Contract statement in crate documentation
The rule and the four decidability classes now stand in the id crate's top-level documentation (pkgs/id/src/lib.rs, "Signing contract — sign only what receipt would accept"), where a future sign_* author starts — including the two corollaries (refusal speaks the module's own vocabulary; a bypass is crate-private/test-gated and *_unchecked-named). Landed by the PR linked from task 15067's completion note on this issue; this inventory is the audit trail behind it.
Summary
dezren39 commented on Nov 12, 2026
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|