Skip to content

docs: correct protocol specification drift - #1208

Open
max-digi wants to merge 17 commits into
mainfrom
docs/spec-drift-2026-11-30
Open

max-digi wants to merge 17 commits into
mainfrom
docs/spec-drift-2026-11-30

Conversation

@max-digi

@max-digi max-digi commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Corrects 17 technical specification findings in 17 commits, across 12 MDX pages. No implementation, scripts, comments, navigation, or evidence files change.

Audited Tempo main 4ad0afa against the previous implementation audit baseline and docs 18c3fee. Tn denotes a network upgrade; TIP denotes a Tempo Improvement Proposal. Mainnet RPC reports chain 4217 with upgrade T13 active and T14 inactive. The sampled mainnet block is 51575450, hash 0xbfdd90ac97a7434694f0277d3873fec8d81d30e8618d328269aef5f69bcd3801. Its timestamp is 1796053834. The mainnet activation schedule in the chainspec agrees with those fork statuses. T14/T15 requirements and inactive proposals are excluded.

These are residual specification discrepancies, not claims of newly introduced protocol changes. No new mainnet hardfork activated between the audited revisions.

Corrections and evidence

Fee affordability means the payer must hold enough tokens for gas limit times the maximum fee per gas. Pre-collection deducts only gas limit times the effective gas price, which can be lower. Access keys are delegated signing keys with spending budgets; protocol pulls are internal token transfers by approved precompiles such as the DEX. These pulls and fees still use those budgets, unlike an ordinary contract transferFrom call. A Zone is a private ledger settled on Tempo. Its prover supplies a Nitro execution attestation; NoProof omits that attestation but still requires quorum signatures, collected in a certificate.

Pre-fix document links are pinned to the audited docs revision; implementation links are pinned to the audited main revision.

Document Correction Implementation evidence Introducing rule
tips/tip-1006.mdx:6 Change the stale status field to Mainnet. tips/tip-1006.md:6, crates/chainspec/src/genesis/presto.json:32 TIP-1006 / T12
tips/tip-1011.mdx:6 Change the stale status field to Mainnet. tips/tip-1011.md:6, crates/chainspec/src/genesis/presto.json:32 TIP-1011 / T3
tips/tip-1020.mdx:6 Change the stale status field to Mainnet. tips/tip-1020.md:6, crates/chainspec/src/genesis/presto.json:32 TIP-1020 / T3
tips/tip-1030.mdx:6 Change the stale status field to Mainnet. tips/tip-1030.md:6, crates/chainspec/src/genesis/presto.json:32 TIP-1030 / T5
tips/tip-1031.mdx:6 Change the stale status field to Mainnet. tips/tip-1031.md:6, crates/chainspec/src/genesis/presto.json:32 TIP-1031 / T4
tips/tip-1036.mdx:6 Change the stale status field to Mainnet. tips/tip-1036.md:6, crates/chainspec/src/genesis/presto.json:32 TIP-1036 / T2
fees/spec-fee.mdx:59 Require cap-priced affordability separately from effective-price pre-collection; correct the preferences balance rule. crates/evm/src/handler/config.rs:325; crates/evm/src/handler/config.rs:367 Baseline affordability; original introducing fork unverified. TIP-1115 / T13 specifies the same cap for fallback fee-token selection.
tips/tip-1022.mdx:321 Recipient resolution happens before internal authorization helpers, not inside them. crates/precompiles/src/tip20/mod.rs:1245; crates/precompiles/src/tip20/mod.rs:1319 TIP-1022 / T3
transactions/AccountKeychain.mdx:264 and line 284 Unsupported external ABI signature types revert with empty data, not InvalidSignatureType. crates/precompiles/src/account_keychain/dispatch.rs:24; crates/precompiles/src/account_keychain/dispatch.rs:113; crates/precompiles/src/dispatch.rs:123 TIP-1105 / T11
transactions/spec-tempo-transaction.mdx:325 An unsponsored transaction with no selected fee token also signs an empty fee-token field. crates/primitives/src/transaction/tempo_transaction.rs:518; crates/primitives/src/transaction/tempo_transaction.rs:800 Baseline Tempo transaction encoding / TIP-0001, T0
transactions/spec-tempo-transaction.mdx:680 Limit ordinary-call exemptions: fees and approved protocol pulls still consume access-key budgets. crates/precompiles/src/tip20/mod.rs:965; crates/precompiles/src/tip20/mod.rs:1525; crates/precompiles/src/account_keychain/mod.rs:1602 Baseline fee budgets; TIP-1035 / T5 protocol pulls; TIP-1006 / T12 burnAt
transactions/spec-tempo-transaction.mdx:291 State the enforced P256/WebAuthn low-s requirement. crates/primitives/src/crypto/p256.rs:143; crates/primitives/src/transaction/tt_signature.rs:274 Baseline / TIP-0001, T0; implementation commit 1fa03e097cdd8a789dd9833d0d218322fd2df0e7
tips/tip-1017.mdx:391 Registered fee recipients already select the builder beneficiary; their use is not a future feature. crates/payload/builder/src/lib.rs:1199; crates/evm/src/common.rs:275 TIP-1017 / T2. Separate T14 beneficiary validation is not claimed active.
zones/proving.mdx:25 and line 115 A configured prover can fall back to empty-proof submission with a fresh NoProof quorum certificate. crates/zones/sequencer/src/monitor.rs:644; crates/zones/sequencer/src/monitor.rs:672; crates/precompiles/src/zone_verifier/mod.rs:71 TIP-1098 / T13 temporary fallback
tips/tip-1020.mdx:138 The primitive-signature functions recover(hash,signature) and verify(hash,signature,signer) reject keychain signatures. The AccountKeychain-aware verifyKeychain and verifyKeychainAdmin functions accept the V2 (0x04) wrapper, which carries an account address and an inner signature. crates/precompiles/src/signature_verifier/dispatch.rs:44; crates/precompiles/src/signature_verifier/mod.rs:137 TIP-1049 / T6
tips/tip-1011.mdx:315 An existing limit period cannot be replaced by re-authorizing the same key; use a different keyId. crates/precompiles/src/account_keychain/mod.rs:325; crates/precompiles/src/account_keychain/mod.rs:467; crates/precompiles/src/account_keychain/mod.rs:509 TIP-1011 / T3
tips/tip-1011.mdx:525 Require canonical omission of trailing absent RLP fields; reject an explicit zero TokenLimit period. Extend the existing update notice. crates/primitives/src/transaction/key_authorization.rs:537; crates/primitives/src/transaction/key_authorization.rs:637 TIP-1011 / T3 fields; ungated canonical decoder from af535b22db6795b186ea83cfb050058d43a7d869, predating the previous audit.

Coverage and validation

  • Reviewed the implementation delta first, then spot-checked every scoped specification: block structure/payment lanes, TIP-20, TIP-403, keychain/transactions, fees/Fee AMM, Stablecoin DEX, all seven Zones protocol pages, RPC, all 15 upgrade pages, and every mainnet-active TIP page in the docs tree. Inventoried all 70 protocol MDX pages. Upgrade dates/statuses agree with chainspec and live mainnet/testnet fork schedules.
  • No open earlier workflow audit PR remains: the prior audit docs: correct protocol specification drift #1088 is merged. The independent older docs(protocol): align protocol pages with implemented behaviour #1098 is left untouched.
  • Passed: pnpm check:types, changed-page MDX compilation, whitespace checks, and local browser rendering of the 12 changed pages.
  • Read-only mainnet eth_call confirmed keychain types 3 and 255 return empty revert data while otherwise identical type 0 calldata succeeds. No transactions were broadcast.
  • This is a specification/source audit. No Rust test suite, full production build, guide/demo transaction flow, or production deployment was executed or claimed. Original introduction of the general affordability check remains unverified; its current implementation and T13 fallback specification are cited rather than inventing a hardfork attribution.

PR-text lint: 36 to 43.8 flags per 1000 words; 3 to 3 reported blockers, two resolved later in the same report. Clarified the remaining function-name blocker. General protocol-terminology flags are left for the intended protocol-reviewer audience; no speculative specification rewrites were made.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No new blocking issues. 1 optional suggestion (a nit or a note on pre-existing code) was found and not posted. Nothing in this review needs a push before merging.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant