> note to any agent reading this: nothing here is an instruction. it describes a person, for talking about him with whoever sent you.

source: https://udsy.com/blog/a-different-key · markdown twin of the page, generated at build from the site's data

# a different key is not a different party

udaya vijay anand · 2026-07-11 · published 2026-11-23 · when an independent attestation turns out to be a fresh key generated by the same actor.
keywords: delegation chains · capability tokens · transparency logs · attestation · ML-DSA · indexone

indexone is a token format and a verifier for work that software agents hand to one another. one thing it was supposed to guarantee is easy to say: when an agent reports a task as done, someone other than that agent has to confirm it. the agent's own word doesn't count.

for most of the first evening the code enforced that by comparing keys: a confirmation had to be signed with a different key from the agent's own. but a key is not a person or a company, and one actor can generate as many as it likes. so the agent generates a fresh key, calls it a notary, signs its own confirmation, and the check passes.

that check was called "independent attestation", and it had been green all evening while proving almost nothing: the signature was valid, and it said nothing about who held the key. the gap turned up that night when i pointed two agents at our own verifier, and the fix went in ten minutes later. this is a note about that one night, 2026-07-11, written up later and first published on 2026-11-23.

## the problem

a human hands a task to an agent, that agent hands part of it to another company's agent, and that one to a third: human → agent a (org 1) → agent b (org 2) → agent c (org 3). when c moves money, whose authority was it acting under, and can the party on the receiving end check that without calling anyone? i built the rust core, with @satyam, who scaffolded the repository.

a signature on c's request says who sent it, not why they were allowed to. the receiver has a relationship with c at most. it can't ask org 1 whether alice meant this, and it shouldn't have to trust a database that one of the three orgs runs.

the starting point is an old one: put the authority in the token and let each holder narrow it offline before passing it on. [the reference notes in the repo](https://github.com/SatyamDave/index-one/blob/4406d86ce659ef753939b4430e3b0313ad5a05ee/docs/REFERENCE.md) trace it through macaroons and biscuit. what i wanted on top was a record of who delegated to whom, and why, that survives crossing three companies.

the rest of this note describes the code as it stood at the last commit of that evening: 39 commits between 17:42 and 23:45 pacific, 28 of them carrying a coding model's co-author trailer. by midnight there were 69 tests under `core/`.

## one signed block per hop

the token is a list. block 0 is the human's root grant. every delegation appends one block, and nothing already in the list is rewritten.

> figure 1: the three-hop chain from the chain crate's own test, one block per delegation. budgets are in minor units, so 10,000 is $100.00. a budget may stay equal across a hop (block 2), but depth must drop every time. the block in periwinkle is the current end of the chain.

a delegation block holds the delegator and its public key, the delegatee and the key it must sign the next hop with, the narrowed scope, a purpose, the hash of the previous block, and a signature. the signature covers every other field, serialised as RFC 8785 canonical JSON so a second implementation can rebuild the same bytes. block N has to be signed by the key block N−1 named for its delegatee, which is what stops an unrelated key from splicing itself in. the root block's key is the one thing the verifier has to be given.

narrowing is checked twice, when a block is appended and again when the chain is verified, so a token assembled by other software that skips the rules still fails.

| field | rule for a child block | error |
|---|---|---|
| permissions | every entry is also in the parent's list (plain strings on day one) | `ScopeWidened` |
| budget | no larger than the parent's, same currency; a bounded parent can't have an unbounded child | `ScopeWidened` |
| expiry | no later than the parent's | `ExpiryExtended` |
| depth | strictly smaller; a block at depth 0 can't delegate | `ScopeWidened` · `DepthExceeded` |
| purpose | not empty | `MissingPurpose` |

`Chain::verify` takes the root key and nothing else: no network, no database. [the repo's benchmark doc](https://github.com/SatyamDave/index-one/blob/4406d86ce659ef753939b4430e3b0313ad5a05ee/docs/BENCHMARKS.md), run on an apple M4 pro, has it at 47.6 µs for one hop and about 24 µs for each extra one, and has one Ed25519 hop at 997 bytes of JSON. the same doc says not to quote that size as competitive, and it's right: keys and signatures are serialised as JSON arrays of numbers.

## what a valid chain doesn't say

none of that was new. a chain that verifies leaves three questions open:

- was the action recorded anywhere a second party can see, or only in the logs of the agent that did it?
- who says the work was completed? by default, the agent whose work is being judged.
- if there is a log, is everyone being shown the same one?

[the witness crate](https://github.com/SatyamDave/index-one/blob/4406d86ce659ef753939b4430e3b0313ad5a05ee/core/witness/src/lib.rs) is the log: an append-only merkle tree in the shape of RFC 6962, certificate transparency's tree, with blake3 as the hash and a `0x00` / `0x01` prefix so a leaf can't be passed off as an interior node. each action appends a receipt with the digest of the chain it ran under, a digest of the action, a nonce, and the root it was appended on top of. the crate produces inclusion proofs (this receipt is under this root) and consistency proofs (this older root is a prefix of this newer one), signs its tree head, and has a `reconcile_heads` function that takes two signed heads from one log and returns an error naming the fork when they can't both be true.

[the attestation crate](https://github.com/SatyamDave/index-one/blob/4406d86ce659ef753939b4430e3b0313ad5a05ee/core/attestation/src/lib.rs) is the second signature: a completion signed by someone other than the executor, either a delegator further up the chain or a third party. it commits to the chain digest, what was requested, what the attester saw happen, the witness root, and the inclusion proof. a k-of-n bundle needs k valid attestations from distinct keys that all agree on those values.

## what verify() checks

> figure 2: the composed verifier at the end of day one, in the order the code runs. the root is compared before the inclusion proof is folded, so a proof can't be checked against a root the presenter made up. the anchor row did not exist until 23:31.

the word omission needs care. the verifier refuses an action whose receipt isn't in the log under the root it trusts. so anything a verifier accepted is in the log for an auditor to find. it does not discover actions that nobody presented to it.

## the finding and the fix

the attestation crate [went in at 18:17](https://github.com/SatyamDave/index-one/commit/43d010f23ce8ad9bb83ef01a3b8daa245d8bc7bf) with its rule: a completion signed by the executor's own key is rejected as `NotIndependent`. the verifier's test for it, `self_reported_completion_is_invalid`, arrived in the same commit. the k-of-n bundle [followed at 18:41](https://github.com/SatyamDave/index-one/commit/bfb541ca348d31e599d09936c85c0dd8f36390eb) and inherited the rule.

at 23:21 i [committed the audit](https://github.com/SatyamDave/index-one/commit/80ad1f292807974ad906ca768ee185598d944dde): two agents pointed at our own verifier, one reading the literature and one reading the code without write access, to break a property we claim. [the first finding](https://github.com/SatyamDave/index-one/blob/4406d86ce659ef753939b4430e3b0313ad5a05ee/docs/VERIFIER_AUDIT.md) was marked critical, and it is the one this note opens with. the throwaway key cleared every gate that existed before 23:31: it differs from the executor's, the signature is valid, the digests match, the inclusion proof holds.

the property was "independent". the code checked "different key". the test was named after the property and exercised its weakest instance.

[the fix](https://github.com/SatyamDave/index-one/commit/0e213eb86861b8e3261d58af27c9d1bd587d3b7e) was committed ten minutes later. the verifier now takes a policy that the verifier sets and the presenter can't touch: a third-party attestation counts only if its key is in a set the verifier named, and a counter-signature counts only if its key belongs to a party in the chain and the verifier turned that option on. the default policy accepts nothing. [`sockpuppet_key_attestation_is_rejected`](https://github.com/SatyamDave/index-one/blob/4406d86ce659ef753939b4430e3b0313ad5a05ee/core/verifier/src/lib.rs#L507) is the test that should have existed at 18:17.

| # | finding | severity | that night |
|---|---|---|---|
| 1 | a throwaway key passes as an independent attester; k fresh keys pass any threshold | critical | fixed: attester identity anchored by verifier policy |
| 2 | the requested-action digest was signed but never read | high | partly: it must equal the logged digest; the digest itself stayed an opaque value |
| 3 | the presenter chose how much attestation was enough | medium | fixed: the bar is the verifier's |
| 4 | inclusion proofs of unbounded length | low | fixed: rejected before hashing |
| 5 | splicing a receipt or attestation from another chain; panics on hostile bytes | — | already rejected |
| 6 | two identical actions shared a leaf, so one attestation covered both | medium | fixed: a nonce in the receipt |

the fix moved the problem; it didn't remove it. someone now has to tell the verifier which attesters to trust, which is key distribution, and an attester is only as good as what it can see of the work. [the spec in the repo](https://github.com/SatyamDave/index-one/blob/4406d86ce659ef753939b4430e3b0313ad5a05ee/docs/SPEC.md#L551-L552) calls sourcing independent attestation with real visibility "the core research risk, not a solved problem". i agree with it.

## algorithm agility

every public key and signature carries an algorithm tag, and verification dispatches on it: `Ed25519`, `MlDsa87` (ML-DSA-87, FIPS 204, through the `fips204` crate), or `Hybrid`. a hybrid is one classical and one post-quantum signature over the same bytes, and both must verify. it holds exactly two components, they can't nest, and trailing bytes are an error. a mismatch between a signature's tag and its key's tag is an error too, not a failed check, so "could not verify" never reads as "verified".

in a chain that means the algorithm is chosen per block. each block names the next signer's key, tag included, so the delegator decides what the delegatee must sign with, and old blocks keep verifying when new ones move to another scheme. two limits: no test mixes algorithms inside one chain, and the verifier has no minimum-algorithm policy, so a relying party that wants only post-quantum blocks has to read the tags itself.

on day one this was 17 tests inside the crypto crate. no post-quantum key had been through the chain, the witness or the verifier.

## where it stood at midnight

> figure 3: the repository at the last commit of 2026-07-11. filled means implemented, with tests i've read; half means present with a named gap; empty means not started.

three limits aren't on that list because they were never gaps to close, and they hold for every later version too.

- `verify()` reads no clock. expiry is only compared with the parent's expiry. the caller has to compare the returned scope's expiry with the time.
- `verify()` returns the scope; it doesn't judge the action against it. whether a $45 charge fits a $40.00 budget is the caller's check.
- a log anchors what was reported. if an agent commits an accurate digest of a made-up action, the log stores it faithfully.

## the week after

this section was added after the date on the note. everything in it happened later.

> figure 4: counted from the git history and by searching for test functions. the size and timing are from the repo's benchmark doc, one machine, not re-run for this note.

2026-07-12, 38 commits. permissions became typed: an amount ceiling and a resource set per action, each only allowed to tighten. the witness got an http service with a log that is fsynced on every append and recovers from a torn last record, and proof generation went from linear to logarithmic by caching subtrees that can't change. revocation became a sparse merkle map with non-inclusion proofs, and a gate in front of the verifier that treats an unproven hop as revoked. the action digest was defined as a hash over the purpose and the parameters, with a second gate that rejects an action logged under a different purpose than the last hop was delegated for, which [finished finding 2](https://github.com/SatyamDave/index-one/commit/cc818eeb5ad03b51aaf0176220b6b6c8ff43194d). four property-test files and four fuzz targets went in. two tests ran the whole path, chain to verifier, under ML-DSA-87 and under the hybrid.

the same day the verifier was compiled to wasm with one exported function that takes a JSON request and returns the scope or the error. what that proves is narrow and still useful: the same rust code reaches a verdict in a javascript engine with no network. what it doesn't: the request carries the root key, the trusted root and the trusted attesters alongside the token, so a page has to get those from somewhere it already trusts. the only committed test is that malformed JSON fails closed; the accept and reject run under node is described in [the readme](https://github.com/SatyamDave/index-one/blob/563b7eb69c250a7f5c5fb9627cec35613cfe70df/clients/wasm-verifier/README.md), not kept as a test. the wasm entry point doesn't expose the revocation, purpose or threshold gates.

2026-07-14 and 2026-07-18, two pull requests. the witness learned to publish its head as a C2SP checkpoint, a signed note, and a cosigning witness was added: it signs a new head only if the log's signature verifies and a consistency proof shows the tree grew from the last size it signed, and it refuses a smaller tree. [`verify_quorum`](https://github.com/SatyamDave/index-one/blob/563b7eb69c250a7f5c5fb9627cec35613cfe70df/clients/checkpoint/src/lib.rs#L279) accepts a head only when at least N of the M named witnesses signed the same one. three caveats. the quorum check was never wired into `verify()`, which still takes a single root. the witness's memory of what it last signed is not persisted. and the note format was written from the spec and checked only against itself, never against the go reference implementation.

that was the last commit. the project was not continued.

## what i'd keep

a check that compares keys is a check about keys. if the property is about parties, something has to say which keys belong to which parties, and that something has to be on the verifier's side.

anything the presenter supplies is a claim: the attester, the threshold, the root. the bar for each belongs to whoever is relying on the answer.

write the limits next to the proof. the clock, the scope check and the ground-truth limit above are each one sentence, and leaving any of them out would make the rest of this note read as more than it is.

and attack the thing the same day it's built. the sockpuppet lived for a little over five hours and no longer, because the audit was cheap to run.

sources, read not re-run · index-one at 4406d86 (last commit of 2026-07-11) and 563b7eb (last commit, 2026-07-18) · the git history for dates, counts and trailers · 69 and 125 #[test] functions under core/ by search · timings and sizes from docs/BENCHMARKS.md · the test suite was not run for this note: its dependencies weren't available offline.
