Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Cryptographic Capability Engineering — lessons

From cognokratos/arktos-wallet · docs/capability/README.md · pinned revision 92650a034799

This directory is the educational layer of Arktos. The reference documentation describes what the system does. These lessons teach why it is shaped that way, and what changes when an agent is the caller. They defer to the reference documentation, which in turn defers to the code and its tests (see the source-of-truth order).

Start at the learning path for positioning, prerequisites and the lab setup.

Lessons

#LessonCore lesson
C1Model cryptographic authorityEvery tool is an authority grant
C2Design key hierarchiesCryptographic naming is part of persistent protocol design
C3Encryption is a data formatCiphertext is long-lived structured data
C4Minimize secret lifetimesSecret use and secret disclosure are different operations
C5Derive, don't inventDeterministic cryptography should remain deterministic
C6Bind identity to capabilityThe model chooses an operation, not its authenticated identity
C7Design least-capability toolsCapability design beats prompt design when agents can act
C8Recovery is part of securityEncryption without recoverability can become data loss

Centerpiece and practice

  • Secret lifecycle walkthrough: follows one wallet secret from OS entropy to a public address. The other tracks each follow one unit through their system: simple-agent-template follows one request, sophos-agent one run, and etf-research-agent one decision. Arktos follows one secret.
  • Case studies: the real architectural decisions behind the current code.
  • Challenges: open-ended design problems with no published solutions, including safe transaction signing.

How every lesson is built

Each lesson follows the same loop, and each experiment points at a real test, a real file or a real local server:

Observe   what the system does today
Predict   what a change will do before you apply it
Break     apply the change (in a test or a lab instance, never in production)
Inspect   the result, the error class, the stored bytes
Explain   why the design produces exactly that behavior

Ground rules for the material

  • Every claim about the implementation maps to current code. Every capability Arktos does not have (signing, broadcasting, message signing, key or seed export) is labelled future design.
  • No lesson, lab or helper prints a recovery phrase, a seed or a private key. The only mnemonic that appears anywhere is the public BIP39 test vector (abandon … about) that the existing tests already use. It is synthetic and controls no funds.
  • Lessons link to the other CognoKratos tracks for agent loops, MCP basics, guardrails, durable runtimes, HITL and decision governance, and do not repeat them.

This chapter is maintained in cognokratos/arktos-wallet beside the code it teaches. The book shows docs/capability/README.md at revision 92650a0347993622cbb3e5eeac2c908069c67fd6 (branch main). View source at this revision · Report a correction.

Corrections are made upstream against the current main branch and appear here when the book's pin for this source is updated.