cad-reference

作成者: convex-dev

Convexアーキテクチャ文書(CAD)の索引。Convexの規範仕様であり、プロトコルを変更する前にどのCADがどのサブシステムを管理しているかを確認するために使用する、…

npx skills add https://github.com/convex-dev/convex --skill cad-reference

Convex Architecture Documents

CADs are the normative specifications for Convex. Where the code and a CAD disagree, that is a bug in one of them — not a licence to pick either. Before changing behaviour in a specified area, read the governing CAD and say which one you relied on.

Read them at https://docs.convex.world/docs/cad/<slug> — the slug is the CAD directory name without its numeric prefix, e.g. CAD003 is https://docs.convex.world/docs/cad/encoding.

If the design repository is checked out alongside this one, the sources are in design/docs/cad/<nnn>_<slug>/index.md. Do not assume it is present.

Core Protocol

CADSlugCovers
000principlesDesign principles behind every other decision
001archOverall architecture
002valuesCVM values
003encodingCAD3 encoding format — see the cad3-encoding skill
004accountsAccounts, addresses, controllers
005cvmexCVM execution model
033cvmtypesCVM type system

Resources and Economics

CADSlugCovers
006memoryMemory accounting and allowances — see the memory skill
007juiceJuice accounting and pricing — see the juice skill
020tokenomicsCoin supply, distribution, denominations
016peerstakePeer staking

Language and Compilation

CADSlugCovers
008compilerCompiler
009expandersExpanders and macros
011errorsError handling and error codes
012numericsNumeric semantics
013metadataMetadata
026lispConvex Lisp
032readerCVX reader syntax

Transactions and Consensus

CADSlugCovers
010transactionsTransaction format and lifecycle
051cposConvergent Proof of Stake — consensus levels, belief merge
050network_upgradeNetwork upgrades and protocol versions — see the protocol-versions skill
015peercommsPeer communication protocol
017peeropsPeer operations
018schedulerScheduled execution
021observabilityObservability
027logEvent logging

Storage and Lattice

CADSlugCovers
047etchEtch storage format — see the etch skill
048storesLattice store abstraction — roots, persistence status
049etch_gcEtch garbage collection and migration — see the etch skill
024data_latticeData lattice
035cursorsLattice cursors
036lattice_nodeLattice node
037kv_databaseKV database
039convex_sqlConvex SQL — see the convex-db skill
040lattice_queueLattice queue
028dlfsData Lattice File System
044jsonJSON on the lattice
045lattice_appsLattice applications
046cell_explorerCell explorer

Assets, Identity and Trust

CADSlugCovers
019assetsAsset model
029fungibleFungible token standard — see the token skill
031nft_metadataNFT metadata
030torusTorus DEX
022trustmonTrust monitors — the authorisation model; see the trust skill
014cnsConvex Name System — see the cns skill
034curated_registryCurated registry
023keystoreKeystore
025walletHD wallets
038lattice_authLattice authentication
043didDecentralised identity

For a DID used as a lattice owner or signed application subject, read CAD043, CAD038 and CAD004 together. Use CAD043 for DID method syntax and resolution, CAD038 for merge-boundary signer authorisation, and CAD004 for account keys, rotation and controllers. Check the authorisation boundary of each independently mergeable signed value; do not assume that a signature around a mutable aggregate remains valid after a structural merge. For a recursive merge beneath SignedLattice, identify which authorised owner context can re-sign a synthesised result and how a non-owner relay behaves when it cannot. Raise any cross-CAD mismatch rather than copying an example silently.

Integration

CADSlugCovers
041mcpModel Context Protocol
042x402x402 protocol

CAD 0000cads is the index and describes the CAD process itself.

convex-devのその他のスキル

convex-lisp
convex-dev
Convex Lisp言語リファレンス — CVMの規約、ライブラリコードの呼び出し、アクター定義、ジュースとエラーコード。CVMソースの作成やデバッグ時に使用。
ecosystem
convex-dev
Convexエコシステムにおけるオリエンテーション — どのリポジトリに何が含まれているか、仕様書とドキュメントがどこにあるか、どのクライアントライブラリが存在するか。コンテキストが必要なときに使用します…
local-network
convex-dev
開発用にローカルのConvexテストネットワークを実行します。ライブネットワークに対して変更をテストする場合、ピアの問題を再現する場合、またはリモートネットワークがない場合に使用します…
protocol-versions
convex-dev
プロトコルバージョン、マイグレーション、v1アップグレード — どのセマンティクスに対して記述するか、そしてネットワークをフォークせずにCVMの動作を変更する方法。使用する場面:…
etch
convex-dev
Etchストアを検査および保守する — Convexのコンテンツアドレス型データベース。ピアストレージの調査、破損の診断、ガベージコレクションなどを行う際に使用します…
juice
convex-dev
Juice会計 — CVMにおける計算と帯域幅のコスト。トランザクション実行コストの推論、:JUICE障害の診断、または…の際に使用します。
trust
convex-dev
Trust monitors — Convexの合成可能なオンチェーン認可モデルです。アクセス制御の記述、アクター関数の制限、誰がミントできるかの定義などの際に使用します…
memory
convex-dev
メモリの会計処理と許容量 — オンチェーンストレージのコスト、およびそれを最小化・回収する方法。状態の増大について推論する際や、診断する際に使用します…