[{"b":"coax","t":"The Coax Programming Language","u":"/books/coax","s":"","h":["Who this book is for","How to use this book","What runs today and what doesn't","Chapter status","Promoting a draft to a teaching chapter","Completion route","Where the examples live","Contents at a glance"]},{"b":"coax","t":"Foreword","u":"/books/coax/foreword","s":"","h":[]},{"b":"coax","t":"Introduction","u":"/books/coax/introduction","s":"","h":["What Coax is for","How Coax compares","What Coax is trying to achieve","Where the language is going"]},{"b":"coax","t":"Plan","u":"/books/coax/PLAN","s":"","h":["Current State","Priorities"]},{"b":"coax","t":"1. Getting started","u":"/books/coax/ch01-getting-started","s":"implemented","h":["Building the compiler","Hello, world","Anatomy of a Coax program","Printing values","Running, building and looking inside","When a number gets too big","When you get it wrong","Summary"]},{"b":"coax","t":"2. A first project","u":"/books/coax/ch02-a-first-project","s":"implemented","h":["The Mandelbrot set in one paragraph","Setting up a grid","From characters to points","Complex numbers as a struct","Adding shading","Building each line in an array","Zooming in","Checking our work","Summary"]},{"b":"coax","t":"3. Common concepts","u":"/books/coax/ch03-common-concepts","s":"implemented","h":["Variables","Constants","Data types","Converting between number types","Operators","Procedures","Comments","Control flow","Printing","In the real world","Keeping both halves of a product","Summary"]},{"b":"coax","t":"4. Reading errors","u":"/books/coax/ch04-reading-errors","s":"implemented","h":["The parts of an error","Asking the compiler to explain","How far the compiler gets","Fixing a program, end to end","\"Not yet\" is different from \"no\"","Errors while compiling your code","When a limit runs out","Errors while the program runs","Errors for tools","Summary"]},{"b":"coax","t":"5. Structs, enums and unions","u":"/books/coax/ch05-structs-enums-unions","s":"implemented","h":["Why group values at all","Defining a struct","Defaults and initialization","Procedures that work on structs","How a struct is laid out","Enums","Matching on an enum","Flags","Tagged data","Composition with using (planned)","A struct is not a file format","Summary"]},{"b":"coax","t":"6. Arrays, strings, memory and the context","u":"/books/coax/ch06-memory","s":"partly implemented","h":["Where values live today","Fixed arrays","Views","Bounds checks","A view doesn't keep its array alive","A request owns two different sets of bytes","Strings","Bytes","Memory that outlives a procedure (planned)","The context (planned)","Temporary storage (planned)","What Coax checks, today and later"]},{"b":"coax","t":"7. Errors and cleanup","u":"/books/coax/ch07-errors","s":"implemented","h":["A parser that trusts its input","Stopping on purpose with #assert","Returning errors as values","Passing errors along","Cleaning up with defer","Traps","To trap or not to trap","In the real world: the wallet's rules","Tagged Results, try and or_else","A real file, including failure during cleanup","Summary"]},{"b":"coax","t":"8. Generics and constraints","u":"/books/coax/ch08-generics","s":"partly implemented","h":["Removing duplication by extracting a procedure","The same code for another type","Writing it once with a type parameter","When a type can't do what the body needs","Built-in constraints","User-defined constraints (later)","Values as parameters","Specialization costs something","Baking arguments","Operators for your own types","Computing types (later)","In the real world: five copies of clamp"]},{"b":"coax","t":"9. Compile time","u":"/books/coax/ch09-compile-time","s":"implemented","h":["A table computed at run time","Running a procedure while compiling with #run","Building a whole table","Checking facts with #assert","Structs, and constants built from constants","Asking about types: type_name and size_of","Compile time is sealed","Compile time is bounded","Checks run here too","In the real world: a CRC-32 table","Planned: code as a value","Reflection still planned"]},{"b":"coax","t":"10. Organizing a larger program","u":"/books/coax/ch10-organizing-programs","s":"implemented","h":["Load another source unit","One graph, with explicit limits","Authority belongs to the authored unit","Check a library once","Inspect the inputs and failures","See it in actual builds","Name a logical owner","Name another module's declarations","Choose what a module exports","Keep source, ABI and protocol identity distinct"]},{"b":"coax","t":"11. Writing checks","u":"/books/coax/ch11-writing-checks","s":"implemented","h":["How to write a check","Controlling how checks run","Organizing checks","Checking the checks with coax mutate","Checks in the real world","Keep a record of what ran","What checks don't prove","Summary","Checks that belong to a build profile"]},{"b":"coax","t":"12. Debugging and measuring cost","u":"/books/coax/ch12-debugging-and-cost","s":"implemented","h":["Step through the original source","Exercise the native boundary","No allocation is not the same as cheap","Measure a workload, not a slogan","Turn a regression into a durable check","A real engine baseline","Timing evidence for secret paths","Select and record the execution profile"]},{"b":"coax","t":"13. Data-oriented layout","u":"/books/coax/ch13-data-layout","s":"partly implemented","h":["How a struct is laid out","Pinning a layout","Arrays of structs and structs of arrays","SOA storage","Four layouts, kept apart","Hot and cold fields","SIMD from layout","Planned: logical shape apart from physical layout","Summary"]},{"b":"coax","t":"14. Jobs: captures as effects","u":"/books/coax/ch14-jobs","s":"partly implemented","h":["What a procedure can touch today","Jobs declare their effects","Splitting a loop","Deterministic merges","What this is not","Effects and the protocol","Summary"]},{"b":"coax","t":"15. Asynchronous work and lifetimes","u":"/books/coax/ch15-asynchronous-work","s":"implemented","h":["A request is a state machine","What this does not cancel","Cancellation and memory are separate","The actual System One request","GPU work is asynchronous too","Backgrounding and recovery"]},{"b":"coax","t":"16. Determinism","u":"/books/coax/ch16-determinism","s":"partly implemented","h":["What breaks determinism","Operands run left to right","One rounding per operation","Two places the build mode still matters","Compile time has a bounded execution contract","Building a replay","What isn't pinned yet","strict and deterministic (planned)","Fixed point (planned)","Replay tests (planned)","Cross-GPU exactness in the Executor Network","Summary"]},{"b":"coax","t":"17. GPU programs","u":"/books/coax/ch17-gpu","s":"partly implemented","h":["What coax metal accepts","A light library","Testing it on the CPU","Emitting Metal","Wiring up the stages","What the profile refuses","In the real world: light.coax","The problem that's left: layouts written twice","Planned: shared GPU declarations","Planned: shader procedures","Planned: device graphs and kernel derivatives","Things that stay true either way"]},{"b":"coax","t":"18. The protocol boundary","u":"/books/coax/ch18-protocol","s":"implemented","h":["Where the schemas come from","Building a message","Reading a message back","Mistakes the compiler catches","Admitting input","In the real world: the home screen","What the importer supports","The .proto files stay in charge","Signed bytes are sacred","Four kinds of version","Summary"]},{"b":"coax","t":"19. Builds and hot reload","u":"/books/coax/ch19-builds-hot-reload","s":"partly implemented","h":["The commands that make things","One library, two consumers","In the real world: the iOS, Desktop and web builds","Measure the whole loop","Planned: the build as a program","Measure and cache the browser build","Hot reload is an engine design","Summary"]},{"b":"coax","t":"20. Living beside C, C++ and Swift","u":"/books/coax/ch20-interop","s":"implemented","h":["The C boundary is the contract","Exporting a procedure","Generating a header","Building a library","Calling it from C","Structs, views and enums","When a check fails inside a call","Calling it from Swift","Calling C from Coax","Many files in one program","In the real world: the iOS app","Checking it against C"]},{"b":"coax","t":"21. Targets: Apple first, then the browser","u":"/books/coax/ch21-targets","s":"implemented","h":["What \"supported\" means","Where Coax runs today","Apple native, first","What the generated C assumes","Layout is a property of the target","The browser, proved separately","Later targets","Summary"]},{"b":"coax","t":"22. Built for agents","u":"/books/coax/ch22-agents","s":"implemented","h":["What makes a language easier for an agent","Diagnostics as JSON lines","Codes, not messages","Checks as guardrails","The build that refuses","Reading what the compiler made","The book is checked too","Writing Coax well, as an agent","Summary"]},{"b":"coax","t":"23. What verification establishes","u":"/books/coax/ch23-verification-boundaries","s":"implemented","h":["Four questions, four kinds of evidence","The author can edit the checks too","Independent oracles matter","The evaluator and the native program","Policy observations are not authenticated effects","The bootstrap is a trust chain","Say what remains untested"]},{"b":"coax","t":"24. A complete boundary","u":"/books/coax/ch24-a-complete-boundary","s":"implemented","h":["Choose an existing contract","Generate the representation adapter","Write the checks at the right boundary","Perform the effect","Run the whole path","Continue into a real fallible request","Follow the same seam into the app"]},{"b":"coax","t":"25. Building a voice system in pieces","u":"/books/coax/ch25-case-study-voice","s":"implemented","h":["The problem","Start with the protocol","Levels and voice activity on one 20 ms frame","End of turn as a small state machine","Barge-in and media epochs","Frame features and frame decisions","The jitter buffer and replaying from a trace","The authorities: who may be heard, and what it costs","The C face","The voice host: a thin C host","The phone: a thin Swift host","Testing at every layer"]},{"b":"coax","t":"26. Reusing bounded libraries","u":"/books/coax/ch26-library-recipes","s":"implemented","h":["Run only these examples","A shared mutable sequence in the Metaverse","An offline protocol exchange","A tiny Psionic CPU consumer","What these recipes establish","Coax Web UI & Sans-I/O SDK libraries"]},{"b":"coax","t":"27. Inside coax0","u":"/books/coax/ch27-inside-coax0","s":"implemented","h":["A map of the source","Building the compiler","The program we'll follow","Lexing","Parsing","The bridge into C++","Checking","Evaluating","Emitting C","Building and running","Tests","Summary"]},{"b":"coax","t":"28. The road ahead","u":"/books/coax/ch28-road-ahead","s":"implemented","h":["Where things stand","The rule that orders everything","The stages","The rest of stage 2","When to stop","Questions still open","Summary"]},{"b":"coax","t":"29. Units and coordinate frames","u":"/books/coax/ch29-units-and-frames","s":"partly implemented","h":["Points and vectors in a frame (runs today)","What the full design covers","Outline","The consumer and the gate","Done when","Dependencies"]},{"b":"coax","t":"30. Typed clocks and multirate ticks","u":"/books/coax/ch30-clocks-and-ticks","s":"partly implemented","h":["Instants carry their clock (runs today)","Conversions name their source","Sample-and-hold with a maximum age","Tick schedules run in a fixed order","Astronomical time scales","Time warp stops at every event","Reading a clock","What remains planned","Dependencies"]},{"b":"coax","t":"31. Bounded control","u":"/books/coax/ch31-bounded-control","s":"planned","h":["What this chapter will cover","Outline","The consumer and the gate","What the checks don't establish","Done when","Dependencies"]},{"b":"coax","t":"32. Strict math, integrators and deterministic jobs","u":"/books/coax/ch32-strict-math-and-integrators","s":"partly implemented","h":["What this chapter will cover","Outline","The consumer and the gate","Done when","Dependencies"]},{"b":"coax","t":"33. Replay and snapshots","u":"/books/coax/ch33-replay-and-snapshots","s":"planned","h":["What this chapter will cover","Outline","The consumer and the gate","Done when","Dependencies"]},{"b":"coax","t":"34. Importing robot models","u":"/books/coax/ch34-robot-models","s":"planned","h":["What this chapter will cover","Outline","The consumer and the gate","Done when","Dependencies"]},{"b":"coax","t":"35. Stamped sensors and supervised actuators","u":"/books/coax/ch35-sensors-and-actuators","s":"planned","h":["What this chapter will cover","Outline","The consumer and the gate","Done when","Dependencies"]},{"b":"coax","t":"36. Fault scenarios you can replay","u":"/books/coax/ch36-fault-scenarios","s":"planned","h":["What this chapter will cover","Outline","The consumer and the gate","Done when","Dependencies"]},{"b":"coax","t":"37. Provenance, fidelity profiles and rule modules","u":"/books/coax/ch37-provenance-and-rule-modules","s":"planned","h":["What this chapter will cover","Outline","The consumer and the gate","Done when","Dependencies"]},{"b":"coax","t":"38. A simulated robot, end to end","u":"/books/coax/ch38-a-simulated-robot","s":"planned","h":["What this chapter will cover","Outline","The consumer and the gate","Done when","Dependencies"]},{"b":"coax","t":"39. A freighter scenario, end to end","u":"/books/coax/ch39-a-freighter-scenario","s":"planned","h":["What this chapter will cover","Outline","The consumer and the gate","Done when","Dependencies"]},{"b":"coax","t":"40. Logical tensors over chosen layouts","u":"/books/coax/ch40-logical-tensors","s":"planned","h":["What this chapter will cover","Outline","The consumer and the gate","Done when","Dependencies"]},{"b":"coax","t":"41. Compile and startup budgets","u":"/books/coax/ch41-compile-budgets","s":"partly implemented","h":["Phase and declaration costs","The Wasm build cache and report","Split a large C unit","Checks as native code","Capacity refusals and near-limit notes","Bring a unit back under its limits","What remains planned"]},{"b":"coax","t":"42. Device graphs and zero-copy buffers","u":"/books/coax/ch42-device-graphs","s":"planned","h":["What this chapter will cover","Outline","The consumer and the gate","Done when","Dependencies"]},{"b":"coax","t":"43. Differentiating kernels","u":"/books/coax/ch43-differentiating-kernels","s":"planned","h":["What this chapter will cover","Outline","The consumer and the gate","Done when","Dependencies"]},{"b":"coax","t":"44. A self-hosted compiler","u":"/books/coax/ch44-self-hosting","s":"planned","h":["What this chapter will cover","Outline","The consumer and the gate","Done when","Dependencies"]},{"b":"coax","t":"45. Replacing a procedure body while it runs","u":"/books/coax/ch45-body-replacement","s":"planned","h":["What this chapter will cover","Outline","The consumer and the gate","Done when","Dependencies"]},{"b":"coax","t":"46. Resident compilation and state migration","u":"/books/coax/ch46-resident-compilation","s":"partly implemented","h":["What this chapter will cover","Outline","What exists: coax serve","The consumer and the gate","Done when","Dependencies"]},{"b":"coax","t":"47. Backends chosen by profiling","u":"/books/coax/ch47-backends","s":"planned","h":["What this chapter will cover","Outline","The consumer and the gate","Done when","Dependencies"]},{"b":"coax","t":"A. Keywords, directives, types and status","u":"/books/coax/appendix-a-keywords","s":"","h":["Keywords","Directives","Intrinsics","Conversions","Literals","Types","Capabilities"]},{"b":"coax","t":"B. Error codes","u":"/books/coax/appendix-b-error-codes","s":"","h":["E01xx: lexer","E02xx: parser","E03xx: checker","E08xx: generic structs","E04xx: compile-time evaluation","E05xx: proto imports","E06xx: source units","E07xx: device code","E08xx: generic structs","E09xx: tagged values and effect declarations"]},{"b":"coax","t":"C. Coax for Jai programmers","u":"/books/coax/appendix-c-jai","s":"","h":["What looks the same","Loops and ranges","No shadowing","Integer overflow","Conversions","Enums","Compile-time code","Remaining design differences","What Coax owes Jai"]},{"b":"coax","t":"D. Coax for C++ programmers","u":"/books/coax/appendix-d-cpp","s":"","h":["No headers, any order","Integers and initialization","Compile-time code instead of constexpr","defer instead of destructors","Views instead of std::span","Undefined behavior, made defined","Current counterparts and remaining design","Calling between them"]},{"b":"coax","t":"E. Glossary","u":"/books/coax/appendix-e-glossary","s":"","h":[]},{"b":"coax","t":"F. Sources","u":"/books/coax/appendix-f-sources","s":"","h":["Coax","Coax in OpenAgents","Protocol"]},{"b":"openagents","t":"Introduction","u":"/books/openagents","s":"","h":["Book-driven development","How to read it","The parts","What a chapter contains","Conventions","Status","Chapters"]},{"b":"openagents","t":"Plan","u":"/books/openagents/PLAN","s":"","h":["Where the code goes","Chapter map","Promise coverage","Order of building","What the new approach keeps from the first plan","Not written yet","Open questions for the owner"]},{"b":"openagents","t":"Contract","u":"/books/openagents/CONTRACT","s":"","h":["Book-driven development","Three separate facts","Statuses","The chapter's check","Targets","What the checker enforces"]},{"b":"openagents","t":"1. A text input on the GPU","u":"/books/openagents/ch001-a-text-input-on-the-gpu","s":"partly implemented","h":["Premise","Draft","What we build","Sources","Open questions for the owner","Source listing"]},{"b":"openagents","t":"2. State and actions","u":"/books/openagents/ch002-state-and-actions","s":"partly implemented","h":["Premise","Draft","What we build","Sources","Source listings & runnable example"]},{"b":"openagents","t":"3. A transcript","u":"/books/openagents/ch003-a-transcript","s":"partly implemented","h":["Premise","Draft","What we build","Sources","Source listing"]},{"b":"openagents","t":"4. A reply from the service","u":"/books/openagents/ch004-a-reply-from-the-service","s":"partly implemented","h":["Premise","Draft","What we build","Source listing & runnable example","Sources","Open questions for the owner"]},{"b":"openagents","t":"5. Logging in when a send needs it","u":"/books/openagents/ch005-logging-in-when-a-send-needs-it","s":"partly implemented","h":["Premise","Draft","What we build","Source listing & runnable example","Sources","Open questions for the owner"]},{"b":"openagents","t":"6. One case, every step","u":"/books/openagents/ch006-one-case-every-step","s":"partly implemented","h":["Premise","Draft","What we build","Source listing & runnable example","Sources","Decided"]},{"b":"openagents","t":"7. History and the sidebar","u":"/books/openagents/ch007-history-and-the-sidebar","s":"partly implemented","h":["Premise","Draft","What we build","Sources","Source listing"]},{"b":"openagents","t":"8. Environment and repository chips","u":"/books/openagents/ch008-environment-and-repository-chips","s":"partly implemented","h":["Premise","Draft","What we build","Sources","Open questions for the owner","Source listing"]},{"b":"openagents","t":"9. Settings","u":"/books/openagents/ch009-settings","s":"partly implemented","h":["Premise","Draft","What we build","Sources","Source listing"]},{"b":"openagents","t":"10. Mobile and other native hosts","u":"/books/openagents/ch010-mobile-and-other-native-hosts","s":"partly implemented","h":["Premise","Draft","What we build","Sources","Open questions for the owner","Source listing"]},{"b":"openagents","t":"11. The web","u":"/books/openagents/ch011-the-web","s":"partly implemented","h":["Premise","Draft","What we build","Sources"]},{"b":"openagents","t":"12. The simplest agent","u":"/books/openagents/ch012-the-simplest-agent","s":"partly implemented","h":["Premise","Draft","What we build","Sources"]},{"b":"openagents","t":"13. Members","u":"/books/openagents/ch013-members","s":"partly implemented","h":["Premise","Draft","What we build","Sources","Open questions for the owner"]},{"b":"openagents","t":"14. A typed plan","u":"/books/openagents/ch014-a-typed-plan","s":"partly implemented","h":["Premise","Draft","What we build","Sources","Open questions for the owner","Source listing"]},{"b":"openagents","t":"15. Decide before you generate","u":"/books/openagents/ch015-decide-before-you-generate","s":"partly implemented","h":["Premise","Draft","What we build","Sources","Open questions for the owner"]},{"b":"openagents","t":"16. Measure the front","u":"/books/openagents/ch016-measure-the-front","s":"design draft","h":["Premise","Draft","What we build","Sources","Open questions for the owner"]},{"b":"openagents","t":"17. Grants and approvals","u":"/books/openagents/ch017-grants-and-approvals","s":"partly implemented","h":["Premise","Draft","What we build","Sources","Open questions for the owner"]},{"b":"openagents","t":"18. On the record","u":"/books/openagents/ch018-on-the-record","s":"partly implemented","h":["Premise","Draft","What we build","Sources","Open questions for the owner","Source listing"]},{"b":"openagents","t":"19. Conversation","u":"/books/openagents/ch019-conversation","s":"design draft","h":["Premise","Draft","What we build","Sources","Open questions for the owner"]},{"b":"openagents","t":"20. Prepared answers","u":"/books/openagents/ch020-prepared-answers","s":"design draft","h":["Premise","Draft","What we build","Sources","Open questions for the owner"]},{"b":"openagents","t":"21. A knowledge base","u":"/books/openagents/ch021-a-knowledge-base","s":"partly implemented","h":["Premise","Draft","What we build","Sources","Open questions for the owner","Source listing"]},{"b":"openagents","t":"22. Retrieval by meaning","u":"/books/openagents/ch022-retrieval-by-meaning","s":"partly implemented","h":["Premise","Draft","What we build","Sources","Open questions for the owner","Source listing"]},{"b":"openagents","t":"23. Memory and consent","u":"/books/openagents/ch023-memory-and-consent","s":"design draft","h":["Premise","Draft","What we build","Sources","Open questions for the owner"]},{"b":"openagents","t":"24. Coder as a member","u":"/books/openagents/ch024-coder-as-a-member","s":"partly implemented","h":["Premise","Draft","What we build","Sources","Source listing"]},{"b":"openagents","t":"25. Other engines","u":"/books/openagents/ch025-other-engines","s":"partly implemented","h":["Premise","Draft","What we build","Sources","Open questions for the owner","Source listing"]},{"b":"openagents","t":"26. Subagents you can see","u":"/books/openagents/ch026-subagents-you-can-see","s":"partly implemented","h":["Premise","Draft","What we build","Sources"]},{"b":"openagents","t":"27. Programs","u":"/books/openagents/ch027-programs","s":"design draft","h":["Premise","Draft","What we build","Sources","Open questions for the owner"]},{"b":"openagents","t":"28. The command line behind the agent","u":"/books/openagents/ch028-the-command-line-behind-the-agent","s":"partly implemented","h":["Premise","Draft","What we build","Sources","Open questions for the owner"]},{"b":"openagents","t":"29. Where work runs","u":"/books/openagents/ch029-where-work-runs","s":"design draft","h":["Premise","Draft","What we build","Sources","Open questions for the owner"]},{"b":"openagents","t":"30. Files and device services","u":"/books/openagents/ch030-files-and-device-services","s":"design draft","h":["Premise","Draft","What we build","Sources"]},{"b":"openagents","t":"31. Voice","u":"/books/openagents/ch031-voice","s":"design draft","h":["Premise","Draft","What we build","Sources","Open questions for the owner"]},{"b":"openagents","t":"32. A wallet","u":"/books/openagents/ch032-a-wallet","s":"partly implemented","h":["Premise","Draft","What we build","Sources","Open questions for the owner"]},{"b":"openagents","t":"33. Spending approval","u":"/books/openagents/ch033-spending-approval","s":"partly implemented","h":["Premise","Draft","What we build","Sources","Open questions for the owner"]},{"b":"openagents","t":"34. State that survives","u":"/books/openagents/ch034-state-that-survives","s":"design draft","h":["Premise","Draft","What we build","Sources"]},{"b":"openagents","t":"35. Sync across devices","u":"/books/openagents/ch035-sync-across-devices","s":"planned","h":["Premise","Outline","What we build","Sources","Open questions for the owner"]},{"b":"openagents","t":"36. Background, resume and cancel","u":"/books/openagents/ch036-background-resume-and-cancel","s":"design draft","h":["Premise","Draft","What we build","Sources"]},{"b":"openagents","t":"37. One owner per task","u":"/books/openagents/ch037-one-owner-per-task","s":"design draft","h":["Premise","Draft","What we build","Sources"]},{"b":"openagents","t":"38. The plugin interface","u":"/books/openagents/ch038-the-plugin-interface","s":"design draft","h":["Premise","Draft","What we build","Sources","Open questions for the owner"]},{"b":"openagents","t":"39. The sandbox","u":"/books/openagents/ch039-the-sandbox","s":"design draft","h":["Premise","Draft","What we build","Sources","Open questions for the owner"]},{"b":"openagents","t":"40. Installing grants nothing","u":"/books/openagents/ch040-installing-grants-nothing","s":"design draft","h":["Premise","Draft","What we build","Sources"]},{"b":"openagents","t":"41. Write a plugin","u":"/books/openagents/ch041-write-a-plugin","s":"design draft","h":["Premise","Draft","What we build","Sources","Open questions for the owner"]},{"b":"openagents","t":"42. The authoring interview","u":"/books/openagents/ch042-the-authoring-interview","s":"partly implemented","h":["Premise","Draft","What we build","Sources","Open questions for the owner","Source listing"]},{"b":"openagents","t":"43. Test-time capabilities","u":"/books/openagents/ch043-test-time-capabilities","s":"partly implemented","h":["Premise","Draft","What we build","Sources","Source listing"]},{"b":"openagents","t":"44. Cases and graders","u":"/books/openagents/ch044-cases-and-graders","s":"partly implemented","h":["Premise","Draft","What we build","Sources","Source listing"]},{"b":"openagents","t":"45. A two-arm run","u":"/books/openagents/ch045-a-two-arm-run","s":"partly implemented","h":["Premise","Draft","What we build","Sources","Open questions for the owner","Source listing"]},{"b":"openagents","t":"46. A claim's key","u":"/books/openagents/ch046-a-claims-key","s":"design draft","h":["Premise","Draft","What we build","Sources"]},{"b":"openagents","t":"47. Reproduction by another key","u":"/books/openagents/ch047-reproduction-by-another-key","s":"design draft","h":["Premise","Draft","What we build","Sources"]},{"b":"openagents","t":"48. External validation","u":"/books/openagents/ch048-external-validation","s":"design draft","h":["Premise","Draft","What we build","Sources","Open questions for the owner"]},{"b":"openagents","t":"49. Adoption is policy","u":"/books/openagents/ch049-adoption-is-policy","s":"design draft","h":["Premise","Draft","What we build","Sources","Open questions for the owner"]},{"b":"openagents","t":"50. Credit","u":"/books/openagents/ch050-credit","s":"design draft","h":["Premise","Draft","What we build","Sources","Open questions for the owner"]},{"b":"openagents","t":"51. Revalidation","u":"/books/openagents/ch051-revalidation","s":"design draft","h":["Premise","Draft","What we build","Sources","Open questions for the owner"]},{"b":"openagents","t":"52. The Gym","u":"/books/openagents/ch052-the-gym","s":"design draft","h":["Premise","Draft","What we build","Sources","Open questions for the owner"]},{"b":"openagents","t":"53. Why an open market","u":"/books/openagents/ch053-why-an-open-market","s":"design draft","h":["Premise","Draft","What we build","Sources"]},{"b":"openagents","t":"54. Releases as signed events","u":"/books/openagents/ch054-releases-as-signed-events","s":"partly implemented","h":["Premise","Draft","What we build","Sources","Open questions for the owner","Source listing"]},{"b":"openagents","t":"55. Everyone gets it","u":"/books/openagents/ch055-everyone-gets-it","s":"partly implemented","h":["Premise","Draft","What we build","Sources","Open questions for the owner","Source listing"]},{"b":"openagents","t":"56. Paid calls","u":"/books/openagents/ch056-paid-calls","s":"design draft","h":["Premise","Draft","What we build","Sources","Open questions for the owner"]},{"b":"openagents","t":"57. Metering and receipts","u":"/books/openagents/ch057-metering-and-receipts","s":"design draft","h":["Premise","Draft","What we build","Sources","Open questions for the owner"]},{"b":"openagents","t":"58. Payouts to authors","u":"/books/openagents/ch058-payouts-to-authors","s":"partly implemented","h":["Premise","Draft","What we build","Sources","Open questions for the owner"]},{"b":"openagents","t":"59. One identity","u":"/books/openagents/ch059-one-identity","s":"partly implemented","h":["Premise","Draft","What we build","Sources","Open questions for the owner","Source listing"]},{"b":"openagents","t":"60. Reputation from reproduced claims","u":"/books/openagents/ch060-reputation-from-reproduced-claims","s":"design draft","h":["Premise","Draft","What we build","Sources","Open questions for the owner"]},{"b":"openagents","t":"61. Markets for work","u":"/books/openagents/ch061-markets-for-work","s":"design draft","h":["Premise","Draft","What we build","Sources","Open questions for the owner"]},{"b":"openagents","t":"62. Signed JSON over WebSockets","u":"/books/openagents/ch062-signed-json-over-websockets","s":"partly implemented","h":["Premise","Draft","What we build","Sources","Source listing"]},{"b":"openagents","t":"63. Every step is an event","u":"/books/openagents/ch063-every-step-is-an-event","s":"design draft","h":["Premise","Draft","What we build","Sources","Open questions for the owner"]},{"b":"openagents","t":"64. The OpenAgents API","u":"/books/openagents/ch064-the-openagents-api","s":"partly implemented","h":["Premise","Draft","What we build","Sources","Open questions for the owner","Source listing"]},{"b":"openagents","t":"65. One schema, three carriages","u":"/books/openagents/ch065-one-schema-three-carriages","s":"partly implemented","h":["Premise","Outline","What we build","Sources","Open questions for the owner","Source listing"]},{"b":"openagents","t":"66. The compliance rule","u":"/books/openagents/ch066-the-compliance-rule","s":"partly implemented","h":["Premise","Outline","What we build","Sources","Open questions for the owner","Source listing"]},{"b":"openagents","t":"67. Host it yourself","u":"/books/openagents/ch067-host-it-yourself","s":"design draft","h":["Premise","Draft","What we build","Sources","Open questions for the owner"]},{"b":"openagents","t":"68. One gateway","u":"/books/openagents/ch068-one-gateway","s":"partly implemented","h":["Premise","Draft","What we build","Sources","Open questions for the owner","Source listing"]},{"b":"openagents","t":"69. Models we serve","u":"/books/openagents/ch069-models-we-serve","s":"partly implemented","h":["Premise","Draft","What we build","Sources","Open questions for the owner","Source listing"]},{"b":"openagents","t":"70. Pylons","u":"/books/openagents/ch070-pylons","s":"partly implemented","h":["Premise","Draft","What we build","Sources","Open questions for the owner","Source listing"]},{"b":"openagents","t":"71. The Metaverse is a surface","u":"/books/openagents/ch071-the-verse-is-a-surface","s":"partly implemented","h":["Premise","Draft","What we build","Sources","Source listing"]},{"b":"openagents","t":"72. Agents you can meet","u":"/books/openagents/ch072-agents-you-can-meet","s":"partly implemented","h":["Premise","Draft","What we build","Sources","Open questions for the owner","Source listing"]},{"b":"openagents","t":"73. Realms and makers","u":"/books/openagents/ch073-realms-and-makers","s":"design draft","h":["Premise","Draft","What we build","Sources","Open questions for the owner"]},{"b":"openagents","t":"74. A decision in the world","u":"/books/openagents/ch074-a-decision-in-the-world","s":"partly implemented","h":["Premise","Draft","What we build","Sources","Open questions for the owner","Source listing"]},{"b":"openagents","t":"75. Cross-host conformance","u":"/books/openagents/ch075-cross-host-conformance","s":"design draft","h":["Premise","Draft","What we build","Sources","Open questions for the owner"]},{"b":"openagents","t":"76. Releases from one source","u":"/books/openagents/ch076-releases-from-one-source","s":"partly implemented","h":["Premise","Draft","What we build","Sources","Open questions for the owner","Source listing"]},{"b":"openagents","t":"77. A Windows host","u":"/books/openagents/ch077-a-windows-host","s":"partly implemented","h":["Premise","Draft","What we build","Sources","Open questions for the owner","Source listing"]},{"b":"openagents","t":"78. What 1.0 means","u":"/books/openagents/ch078-what-one-point-zero-means","s":"design draft","h":["Premise","Draft","What we build","Sources","Open questions for the owner"]},{"b":"bitcoin","t":"Introduction","u":"/books/bitcoin","s":"","h":["Start here","Rules","Status","Promoting a chapter","Writing style","Checking the book","Chapters"]},{"b":"bitcoin","t":"Plan and prerequisites","u":"/books/bitcoin/PLAN","s":"","h":["What you need first","The order","The full node","Every chapter","Explorer extension: address index (chapter 125)"]},{"b":"bitcoin","t":"1. Bytes, hex and base64","u":"/books/bitcoin/ch001-bytes-hex-and-base64","s":"implemented","h":["What this chapter teaches","The rules every codec follows","Endian loads and stores","Strict Nostr hex","Canonical base64","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"bitcoin","t":"2. Big integers in fixed limbs","u":"/books/bitcoin/ch002-big-integers-in-fixed-limbs","s":"implemented","h":["What this chapter teaches","Ten limbs of 26 bits","Products in twenty columns","Scalars in eight 32-bit limbs","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"bitcoin","t":"3. Constant-time rules and secrets","u":"/books/bitcoin/ch003-constant-time-rules","s":"implemented","h":["What this chapter teaches","The three rules","Comparing without a branch","Masks and selection","Erasing secrets","The example","How the code is checked","What these checks don't claim","Summary","Dependencies","Sources"]},{"b":"bitcoin","t":"4. SHA-256","u":"/books/bitcoin/ch004-sha-256","s":"implemented","h":["What this chapter teaches","Where the code is","Padding","The message schedule","The compression function","A one-shot hash","Streaming over your state","Tagged hashes","The example","How the code is checked","Moving the kernel out of the compiler","Summary"]},{"b":"bitcoin","t":"5. SHA-256d and tagged hashes","u":"/books/bitcoin/ch005-sha-256d-and-tagged-hashes","s":"implemented","h":["What this chapter teaches","Where the code is","SHA-256d","The P2P checksum","Tagged hashes","The example","Broken cases","How the code is checked","Summary","Dependencies","Sources"]},{"b":"bitcoin","t":"6. RIPEMD-160 and HASH160","u":"/books/bitcoin/ch006-ripemd-160-and-hash160","s":"implemented","h":["What this chapter teaches","Where the code is","Padding","Words and the five functions","The compression function","Streaming over your state","HASH160","Secrets","The example","How the code is checked","Summary","Dependencies"]},{"b":"bitcoin","t":"7. SHA-512","u":"/books/bitcoin/ch007-sha-512","s":"implemented","h":["What this chapter teaches","Where the code is","How SHA-512 differs from SHA-256","Word arithmetic","Padding","The message schedule","The compression function","A one-shot hash","Streaming over your state","The calls BIP-39 and BIP-32 use","The example","A broken case and its refusal"]},{"b":"bitcoin","t":"8. HMAC-SHA256","u":"/books/bitcoin/ch008-hmac-sha256","s":"implemented","h":["What this chapter teaches","Where the code is","The construction","Streaming HMAC","Comparing tags","Truncated tags","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"bitcoin","t":"9. HKDF","u":"/books/bitcoin/ch009-hkdf","s":"implemented","h":["What this chapter teaches","Where the code is","Extract","Expand","Bounds and refusals","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"bitcoin","t":"10. SipHash-2-4","u":"/books/bitcoin/ch010-siphash-2-4","s":"implemented","h":["What this chapter teaches","Where the code is","Where Bitcoin uses it","The key and the initial state","The SipRound","Compression and finalization","The byte interface","Secrets","The example","How the code is checked","Summary","Dependencies"]},{"b":"bitcoin","t":"11. ChaCha20","u":"/books/bitcoin/ch011-chacha20","s":"implemented","h":["What this chapter teaches","Where the code is","The state","The quarter round","Twenty rounds and the block","The stream","HChaCha20","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"bitcoin","t":"12. Poly1305 and ChaCha20-Poly1305","u":"/books/bitcoin/ch012-poly1305-and-chacha20-poly1305","s":"implemented","h":["What this chapter teaches","Where the code is","Poly1305","Numbers of 130 bits in five limbs","The stream over your state","ChaCha20-Poly1305","The example","A broken case and its refusal","How the code is checked","Summary","Dependencies","Sources"]},{"b":"bitcoin","t":"13. Field arithmetic mod p","u":"/books/bitcoin/ch013-field-arithmetic-mod-p","s":"implemented","h":["What this chapter teaches","Where the code is","Reduction","Normalization","Addition, negation and subtraction","Inversion","Square roots","Loading bytes","The example","How the code is checked","Summary","Dependencies"]},{"b":"bitcoin","t":"14. Scalars mod n","u":"/books/bitcoin/ch014-scalars-mod-n","s":"implemented","h":["What this chapter teaches","Where the code is","Reduction","Addition, subtraction and negation","Montgomery multiplication","Inversion","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"bitcoin","t":"15. The secp256k1 group law","u":"/books/bitcoin/ch015-the-secp256k1-group-law","s":"implemented","h":["What this chapter teaches","Where the code is","The curve and its points","Adding two points","Jacobian coordinates","Every addition case, selected with masks","Lifting an x-only key","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"bitcoin","t":"16. Scalar multiplication","u":"/books/bitcoin/ch016-scalar-multiplication","s":"implemented","h":["What this chapter teaches","Where the code is","Double-and-add","The fixed-base comb","The constant-time ladder","The example","The fixed-work 5×52 group","Costs","How the code is checked","Summary","Dependencies","Sources"]},{"b":"bitcoin","t":"17. Point encodings: compressed, uncompressed and x-only","u":"/books/bitcoin/ch017-point-encodings-compressed-uncompressed-and-x-only","s":"implemented","h":["What this chapter teaches","Where the code is","The three forms","Decompressing a key","Decoding","Encoding","Secrets","The example","Broken cases and their refusals","How the code is checked","Summary","Dependencies"]},{"b":"bitcoin","t":"18. Keys and randomness","u":"/books/bitcoin/ch018-keys-and-randomness","s":"implemented","h":["What this chapter teaches","Where the code is","Where randomness comes from","Drawing a key","The public key","Asking a signer","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"bitcoin","t":"19. Verify ECDSA","u":"/books/bitcoin/ch019-verify-ecdsa","s":"implemented","h":["What this chapter teaches","Where Bitcoin uses ECDSA","Where the code is","The algorithm","DER, and where chapter 21 begins","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"bitcoin","t":"20. Sign with ECDSA","u":"/books/bitcoin/ch020-sign-with-ecdsa","s":"implemented","h":["What this chapter teaches","Where Bitcoin signs with ECDSA","Where the code is","The algorithm","Why a reused or biased nonce gives the key away","DER output","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"bitcoin","t":"21. Strict DER","u":"/books/bitcoin/ch021-strict-der","s":"implemented","h":["What this chapter teaches","Where script reads a signature","Why lax DER was a consensus risk","Where the code is","The rules","The encoder","Low-S and the sighash type","The script check","The lax parser","The example","How the code is checked","Summary"]},{"b":"bitcoin","t":"22. Public key recovery and signed messages","u":"/books/bitcoin/ch022-public-key-recovery-and-signed-messages","s":"implemented","h":["What this chapter teaches","Where Bitcoin uses recovery","Where the code is","The algorithm","Recoverable signing","Signed messages","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"bitcoin","t":"23. Verify a Schnorr signature","u":"/books/bitcoin/ch023-verify-a-schnorr-signature","s":"implemented","h":["What this chapter teaches","Where the code is","The algorithm","Two paths","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"bitcoin","t":"24. Sign with Schnorr","u":"/books/bitcoin/ch024-sign-with-schnorr","s":"implemented","h":["What this chapter teaches","Where the code is","The algorithm","Self-verification with fixed work","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"bitcoin","t":"25. Batch verification","u":"/books/bitcoin/ch025-batch-verification","s":"implemented","h":["What this chapter teaches","Where Bitcoin uses this","Where the code is","One equation for many signatures","The randomizers","One multiplication","BatchVerify","The example","Measured speed","When it helps, and why Bitcoin Core doesn't use it","How the code is checked","What this chapter leaves out"]},{"b":"bitcoin","t":"26. Base58Check","u":"/books/bitcoin/ch026-base58check","s":"implemented","h":["What this chapter teaches","Where Bitcoin uses Base58Check","Where the code is","The alphabet","Base58: bytes as a number","The checksum","Version bytes","WIF private keys and the constant-time rules","The example","How the code is checked","What this chapter leaves out","Summary"]},{"b":"bitcoin","t":"27. Bech32","u":"/books/bitcoin/ch027-bech32","s":"implemented","h":["What this chapter teaches","Where the code is","The parts of a Bech32 string","From bytes to 5-bit words","The checksum","Checking a string","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"bitcoin","t":"28. Bech32m","u":"/books/bitcoin/ch028-bech32m","s":"implemented","h":["What this chapter teaches","Where the code is","Why Bech32 needed fixing","The new constant","Which checksum goes with which version","Segwit addresses","The example","How the code is checked","What this chapter leaves out","Summary","Dependencies","Sources"]},{"b":"bitcoin","t":"29. Addresses: P2PKH, P2SH, P2WPKH, P2WSH and P2TR","u":"/books/bitcoin/ch029-addresses","s":"implemented","h":["What this chapter teaches","Where the code is","Five outputs, five commitments","From a key: P2PKH and P2WPKH","From a script: P2SH and P2WSH","The Taproot key-path tweak","Unknown witness versions","From scriptPubKey to address","From address to scriptPubKey","Refusals","The example","How the code is checked"]},{"b":"bitcoin","t":"30. Output descriptors and their checksum","u":"/books/bitcoin/ch030-output-descriptors-and-their-checksum","s":"implemented","h":["What this chapter teaches","Where the code is","The checksum","Reading the text","Keys","Scripts","The entry points","Refusals","The example","How the code is checked","What this chapter leaves out","Summary"]},{"b":"bitcoin","t":"31. Seed phrases","u":"/books/bitcoin/ch031-seed-phrases","s":"implemented","h":["What this chapter teaches","Where Bitcoin uses seed phrases","Where the code is","Words from entropy","The word list","Secrets and constant time","Entropy to words","Words to entropy","NFKD and ASCII","The seed","The passphrase, the 25th word","What the words protect against"]},{"b":"bitcoin","t":"32. Hierarchical deterministic keys","u":"/books/bitcoin/ch032-hierarchical-deterministic-keys","s":"implemented","h":["What this chapter teaches","Where Bitcoin uses hierarchical keys","Where the code is","The node: 78 bytes","The master node","Child keys","Why hardened derivation exists","Fingerprints","Serialization","Invalid keys and the next index","Secrets and constant time","The audit"]},{"b":"bitcoin","t":"33. Derivation paths","u":"/books/bitcoin/ch033-derivation-paths","s":"implemented","h":["What this chapter teaches","Where the code is","Path strings","The standard paths","From a seed to an address","Watch-only wallets","The gap limit and account discovery","NIP-06","Refusals","The example","How the code is checked","What this chapter leaves out"]},{"b":"bitcoin","t":"34. Transactions and their serialization","u":"/books/bitcoin/ch034-transactions-and-their-serialization","s":"implemented","h":["What this chapter teaches","Where Bitcoin uses this serialization","Where the code is","The layout","CompactSize","Reading the lists","Marker, flag and witness","Bytes that read two ways","txid and wtxid","Size, weight and virtual size","Writing a transaction back","The refusals"]},{"b":"bitcoin","t":"35. Txids, wtxids and malleability","u":"/books/bitcoin/ch035-txids-wtxids-and-malleability","s":"implemented","h":["What this chapter teaches","Where txids are used","Where the code is","What a signature can't sign","Third-party malleability","Second-party malleability","Segwit: the txid without the signatures","The fixes, in order","Mt. Gox","The example","How the code is checked","What this chapter leaves out"]},{"b":"bitcoin","t":"36. The script interpreter","u":"/books/bitcoin/ch036-the-script-interpreter","s":"implemented","h":["What this chapter teaches","Where Bitcoin uses the interpreter","Where the code is","Reading a script","Numbers and booleans","The condition stack","The stack","EvalScript","CHECKSIG","CHECKMULTISIG","VerifyScript","What this chapter replaces"]},{"b":"bitcoin","t":"37. Legacy signature hashes","u":"/books/bitcoin/ch037-legacy-signature-hashes","s":"implemented","h":["What this chapter teaches","Where Bitcoin uses the legacy signature hash","Where the code is","The hash types","The serialization","The SIGHASH_SINGLE bug","The scriptCode","Undefined hash types","The quadratic hashing problem","The example","How the code is checked","What this chapter leaves out"]},{"b":"bitcoin","t":"38. Segwit v0 signature hashes","u":"/books/bitcoin/ch038-segwit-v0-signature-hashes","s":"implemented","h":["What this chapter teaches","Where Bitcoin uses the BIP-143 hash","Where the code is","The summary","The P2WPKH scriptCode","The amount","Linear hashing","What BIP-143 changes beyond the summary","Worked example: BIP-143's signature hashes","The example","How the code is checked","What this chapter leaves out"]},{"b":"bitcoin","t":"39. Timelocks","u":"/books/bitcoin/ch039-timelocks","s":"implemented","h":["What this chapter teaches","Where Bitcoin uses timelocks","Where the code is","The lock time","The median time past","OP_CHECKLOCKTIMEVERIFY","BIP-68: the sequence as a relative lock","Sequence locks","OP_CHECKSEQUENCEVERIFY","Worked example: Core's transaction tests","The example","How the code is checked"]},{"b":"bitcoin","t":"40. Weight, vsize and fees","u":"/books/bitcoin/ch040-weight-vsize-and-fees","s":"implemented","h":["What this chapter teaches","Where Bitcoin uses weight and fees","Where the code is","Weight and the witness discount","The fee","Feerates","Estimating before signing","The block limit","The example","How the code is checked","What this chapter leaves out","Summary"]},{"b":"bitcoin","t":"41. The key tweak and the key path","u":"/books/bitcoin/ch041-the-key-tweak-and-the-key-path","s":"implemented","h":["What this chapter teaches","Where Bitcoin uses the key tweak","Where the code is","The output key","Why the tweak commits to the scripts","The tweaked secret key","Spending with the key path","Refusals","The example","How the code is checked","What this chapter leaves out","Summary"]},{"b":"bitcoin","t":"42. Script trees: tapleaves and tapbranches","u":"/books/bitcoin/ch042-script-trees-tapleaves-and-tapbranches","s":"implemented","h":["What this chapter teaches","Where Bitcoin uses script trees","Where the code is","Leaves and branches","Control blocks","The example","How the code is checked","What this chapter leaves out","Summary","Dependencies","Sources"]},{"b":"bitcoin","t":"43. Taproot signature hashes","u":"/books/bitcoin/ch043-taproot-signature-hashes","s":"implemented","h":["What this chapter teaches","Where Bitcoin uses Taproot signature hashes","Where the code is","What a Taproot signature signs","The example","How the code is checked","What this chapter leaves out","Summary","Dependencies","Sources"]},{"b":"bitcoin","t":"44. Tapscript","u":"/books/bitcoin/ch044-tapscript","s":"implemented","h":["What this chapter teaches","Where Bitcoin uses tapscript","Where the code is","A Taproot output","Running tapscript","Signatures in tapscript","The signature hash","The example","How the code is checked","What this chapter leaves out","Summary","Dependencies"]},{"b":"bitcoin","t":"45. Control blocks and script-path spends","u":"/books/bitcoin/ch045-control-blocks-and-script-path-spends","s":"implemented","h":["What this chapter teaches","Where Bitcoin uses script-path spends","Where the code is","The witness of a script path","The order of the stack","The example","How the code is checked","What this chapter leaves out","Summary","Dependencies","Sources"]},{"b":"bitcoin","t":"46. Merkle trees and the duplicate-leaf flaw","u":"/books/bitcoin/ch046-merkle-trees-and-the-duplicate-leaf-flaw","s":"implemented","h":["What this chapter teaches","Where Bitcoin uses Merkle trees","Where the code is","The tree","CVE-2012-2459: two lists, one root","The 64-byte transaction","Merkle branches","The witness root","The txids of a block","The result codes","The audit","The example"]},{"b":"bitcoin","t":"47. Block headers and proof of work","u":"/books/bitcoin/ch047-block-headers-and-proof-of-work","s":"implemented","h":["What this chapter teaches","Where Bitcoin uses headers and proof of work","Where the code is","The 80-byte header","The block hash","256-bit numbers","Compact targets","The proof-of-work check","Work and chainwork","The result codes","The audit","The example"]},{"b":"bitcoin","t":"48. Compact targets, retargeting and chainwork","u":"/books/bitcoin/ch048-compact-targets-retargeting-and-chainwork","s":"implemented","h":["What this chapter teaches","Where Bitcoin uses retargeting","Where the code is","The parameters","The retarget","The off-by-one and the time warp","Testnet's rules","Headers presync","Chainwork","The result codes","The audit","The example"]},{"b":"bitcoin","t":"49. The witness commitment","u":"/books/bitcoin/ch049-the-witness-commitment","s":"implemented","h":["What this chapter teaches","Where Bitcoin uses the commitment","Where the code is","The commitment","The rules","Mutated, not invalid","The example","How the code is checked","What this chapter leaves out","Summary","Dependencies","Sources"]},{"b":"bitcoin","t":"50. Chain parameters: mainnet, testnet4, signet and regtest","u":"/books/bitcoin/ch050-chain-parameters-mainnet-testnet4-signet-and-regtest","s":"implemented","h":["What this chapter teaches","Where Bitcoin uses chain parameters","Where the code is","The record","The five networks","The genesis block","Message start and ports","Buried deployments","Exception blocks","Minimum chain work and assumed-valid blocks","Signet's block signature","The result codes"]},{"b":"bitcoin","t":"51. Header rules: time, versions and deployments","u":"/books/bitcoin/ch051-header-rules-time-versions-and-deployments","s":"implemented","h":["What this chapter teaches","Where Bitcoin uses these rules","Where the code is","The context of a header","Median time past","Times in the future","The timewarp attack and BIP-94","Versions after buried deployments","The check","Result codes","Version bits","The deployment states"]},{"b":"bitcoin","t":"52. Transaction checks outside script","u":"/books/bitcoin/ch052-transaction-checks-outside-script","s":"implemented","h":["What this chapter teaches","Where Bitcoin uses these checks","Where the code is","Result codes","Amounts","Outpoints","CheckTransaction","Core's vectors","CheckTxInputs","Final transactions in a block","The audit","The example"]},{"b":"bitcoin","t":"53. Sigops, weight and block limits","u":"/books/bitcoin/ch053-sigops-weight-and-block-limits","s":"implemented","h":["What this chapter teaches","Where Bitcoin uses these limits","Where the code is","Result codes","Counting signature operations","CheckBlock","ConnectBlock's sigop cost","Mainnet block 514,999","Blocks that break a rule","The audit","The example","How the code is checked"]},{"b":"bitcoin","t":"54. The subsidy and the coinbase","u":"/books/bitcoin/ch054-the-subsidy-and-the-coinbase","s":"implemented","h":["What this chapter teaches","Where Bitcoin checks the coinbase","Where the code is","Result codes","The subsidy","The height in the coinbase","What a coinbase may claim","Pinned coinbases","The repeated coinbases (BIP-30)","Mainnet block 514,999","The audit","The example"]},{"b":"bitcoin","t":"55. Script flags by height and their exceptions","u":"/books/bitcoin/ch055-script-flags-by-height-and-their-exceptions","s":"implemented","h":["Start with the mask Core uses","Exceptions identify a block by its hash","Decide whether BIP-30 needs an output lookup","Run the example","Check it independently"]},{"b":"bitcoin","t":"56. The UTXO set and MuHash3072","u":"/books/bitcoin/ch056-the-utxo-set-and-muhash3072","s":"implemented","h":["What this chapter teaches","Where the code is","A coin on disk","Hashing the whole set","MuHash3072","The result codes","The example","How the code is checked","What this chapter leaves out","Summary","Dependencies","Sources"]},{"b":"bitcoin","t":"57. Validate a block: every consensus rule","u":"/books/bitcoin/ch057-validate-a-block-every-consensus-rule","s":"implemented","h":["Start from the parent's coins","Follow one block","Work out the fees","The consensus rule table","Check against independent state"]},{"b":"bitcoin","t":"58. Connect and disconnect a block","u":"/books/bitcoin/ch058-connect-and-disconnect-a-block","s":"implemented","h":["Validate, prepare, then publish","Core's undo bytes","Run the smallest durable transition","Independent qualification","The existing explorer light path","What connecting changes","Work through a mature spend","The stored profile","Durability comes before publication","Run and deliberately break it","Verification and remaining work"]},{"b":"bitcoin","t":"59. The block index and the most-work chain","u":"/books/bitcoin/ch059-the-block-index-and-the-most-work-chain","s":"implemented","h":["What this chapter teaches","Where the code is","Status flags","An entry","Skip pointers","The locator","The index","Accepting a header","Choosing the tip","Invalid blocks","Difficulty","The example"]},{"b":"bitcoin","t":"60. Reorganizations and invalid chains","u":"/books/bitcoin/ch060-reorganizations-and-invalid-chains","s":"implemented","h":["Walk backward, then forward","Prepare and commit have different effects","Cache invalidity only with a stable consensus verdict","Recovery and comparison"]},{"b":"bitcoin","t":"61. Block files and undo files","u":"/books/bitcoin/ch061-block-files-and-undo-files","s":"implemented","h":["The record and its position","Work through genesis","Read Core's obfuscated files","Recover an interrupted append","Independent checks"]},{"b":"bitcoin","t":"62. A key-value store for the chainstate","u":"/books/bitcoin/ch062-a-key-value-store-for-the-chainstate","s":"implemented","h":["What this chapter teaches","Where the code is","The table","Batches","The log","Bitcoin Core's obfuscation key","The result codes","The example","How the code is checked","A native indexed arena for full-chain work","What this chapter leaves out","Summary"]},{"b":"bitcoin","t":"63. The coins cache and crash-safe flushes","u":"/books/bitcoin/ch063-the-coins-cache-and-crash-safe-flushes","s":"implemented","h":["Keep a stable base and a private delta","Bound the memory before accepting work","Freeze, append, sync, acknowledge","Restart from the durable cursor","Check the boundary"]},{"b":"bitcoin","t":"65. P2P messages and checksums","u":"/books/bitcoin/ch065-p2p-messages-and-checksums","s":"implemented","h":["What this chapter teaches","Where Bitcoin uses P2P messages","Where the code is","The message start","The header","version","ping, pong and the small messages","inv and getdata","The block locator","headers","addr and addrv2","The example"]},{"b":"bitcoin","t":"66. ElligatorSwift","u":"/books/bitcoin/ch066-elligatorswift","s":"implemented","h":["What this chapter teaches","Where Bitcoin uses ElligatorSwift","Where the code is","Why 64 bytes","The constants","Square roots","Decoding","Inversion","Encoding","The shared secret","The example","How the code is checked"]},{"b":"bitcoin","t":"67. The v2 encrypted transport","u":"/books/bitcoin/ch067-the-v2-encrypted-transport","s":"implemented","h":["What this chapter teaches","Where Bitcoin uses the v2 transport","Where the code is","Keys","The length cipher: FSChaCha20","The packet cipher: FSChaCha20Poly1305","Packets","Garbage, terminators and v1 peers","Short message IDs","The example","How the code is checked","What this chapter leaves out"]},{"b":"bitcoin","t":"68. The handshake and feature negotiation","u":"/books/bitcoin/ch068-the-handshake-and-feature-negotiation","s":"implemented","h":["What this chapter teaches","Where Bitcoin uses the handshake","Where the code is","The order of a handshake","Services","The version checks","Messages before and after verack","Timeouts","The messages the handshake sends","The wire","The example","How the code is checked"]},{"b":"bitcoin","t":"69. Addresses and the address manager","u":"/books/bitcoin/ch069-addresses-and-the-address-manager","s":"implemented","h":["What this chapter teaches","Where Bitcoin uses addresses","Where the code is","Addresses and networks","Network groups","Two tables of buckets","Randomness","What an entry knows","Adding addresses","Good, attempts and connections","Test-before-evict","Select"]},{"b":"bitcoin","t":"70. Connections: outbound, block-relay-only, feelers and eviction","u":"/books/bitcoin/ch070-connections-outbound-block-relay-only-feelers-and-eviction","s":"implemented","h":["What this chapter teaches","Where Bitcoin uses connections","Where the code is","Slots","Random timers","Bad ports","The connection manager","Choosing the next connection","Picking an address","One step","Extra outbound peers","Inbound eviction"]},{"b":"bitcoin","t":"71. Misbehavior, limits and denial of service","u":"/books/bitcoin/ch071-misbehavior-limits-and-denial-of-service","s":"implemented","h":["What this chapter teaches","Where Bitcoin uses these defenses","Where the code is","Message limits","What misbehaving costs","MurmurHash3","Rolling bloom filters","Discouraged and banned","Headers","Floods","Transaction announcements","The example"]},{"b":"bitcoin","t":"72. Headers sync and block download","u":"/books/bitcoin/ch072-headers-sync-and-block-download","s":"implemented","h":["What this chapter teaches","Where Bitcoin uses these","Where the code is","What is left to later chapters","Locators","Presync: proving work before storing headers","The headers message","Block download","Stalls and timeouts","Checking a block","The example","Syncing from Bitcoin Core"]},{"b":"bitcoin","t":"73. Compact blocks","u":"/books/bitcoin/ch073-compact-blocks","s":"implemented","h":["What this chapter teaches","Where Bitcoin uses compact blocks","Where the code is","Negotiation: sendcmpct","Short IDs","The cmpctblock message","Rebuilding: InitData","Asking for the rest: getblocktxn and blocktxn","Putting the block together: FillBlock","High-bandwidth and low-bandwidth mode","The example","How the code is checked"]},{"b":"bitcoin","t":"74. Compact block filters","u":"/books/bitcoin/ch074-compact-block-filters","s":"implemented","h":["What this chapter teaches","Where the code is","Hashing into a range","Sorting","Golomb-Rice coding","Building a filter","Reading and matching","The basic filter's elements","Filter headers","The result codes","The example","How the code is checked"]},{"b":"bitcoin","t":"75. Proxies, Tor and I2P","u":"/books/bitcoin/ch075-proxies-tor-and-i2p","s":"implemented","h":["What this chapter teaches","Where Bitcoin uses this","Where the code is","Base32","Tor v3 onion addresses","Reading a name","SOCKS5","I2P destinations","The SAM bridge","Which networks are reachable","The example","How the code is checked"]},{"b":"bitcoin","t":"77. Faster verification: the GLV endomorphism","u":"/books/bitcoin/ch077-faster-verification-the-glv-endomorphism","s":"implemented","h":["What this chapter teaches","Where the code is","Why the endomorphism exists","Splitting a scalar","λ·P and the tables","Four terms, one chain","The fast path","The example","How the code is checked","What remains","Summary","Dependencies"]},{"b":"bitcoin","t":"81. Policy is not consensus: standardness","u":"/books/bitcoin/ch081-policy-is-not-consensus-standardness","s":"implemented","h":["What this chapter teaches","Where the code is","The limits","Output types","Dust","IsStandardTx","The outputs a transaction spends","Witness limits","The order","Still valid in a block","The example","How the code is checked"]},{"b":"bitcoin","t":"82. Mempool acceptance and limits","u":"/books/bitcoin/ch082-mempool-acceptance-and-limits","s":"partly implemented","h":["Keep the contract explicit","Prepare a whole observation","Observe a peer and follow the chain","Check independently"]},{"b":"bitcoin","t":"90. JSON-RPC and REST","u":"/books/bitcoin/ch090-json-rpc-and-rest","s":"partly implemented","h":["Start with the contract","One response, one snapshot","JSON-RPC is another envelope","Run the service","Check both envelopes and real files","Specifications"]},{"b":"bitcoin","t":"91. Indexes: transactions, filters and coin statistics","u":"/books/bitcoin/ch091-indexes-transactions-filters-and-coin-statistics","s":"partly implemented","h":["A position points at a transaction, not an output","Active and stale are separate answers","Keep the index and chain cursor together","Publish bytes before publishing their positions","Read and check the candidate","Run the trace"]},{"b":"bitcoin","t":"94. PSBT","u":"/books/bitcoin/ch094-psbt","s":"implemented","h":["What this chapter teaches","The six roles","Where the code is","The format","Reading one map","The pairs, and the Updater","The Creator and BIP-370's lock time","The Signer","The Combiner","The Input Finalizer and the Transaction Extractor","The example","How the code is checked"]},{"b":"bitcoin","t":"95. Coin selection and change","u":"/books/bitcoin/ch095-coin-selection-and-change","s":"implemented","h":["What this chapter teaches","Where the code is","The parameters","Effective value","What change costs","Waste","The search order","Branch and Bound","CoinGrinder","Random numbers and Single Random Draw","Knapsack","Choosing a result"]},{"b":"bitcoin","t":"96. Message signing","u":"/books/bitcoin/ch096-message-signing","s":"implemented","h":["What this chapter teaches","Where the code is","Results","The message hash and to_spend","Decoding a signature","The rules","Taproot","Verification","Signing","The example","How the code is checked","What this chapter leaves out"]},{"b":"bitcoin","t":"97. Silent payments","u":"/books/bitcoin/ch097-silent-payments","s":"implemented","h":["What this chapter teaches","Where the code is","Results","Keys and addresses","Labels","Which inputs count","input_hash","The sender","The receiver","Spending","Secrets","The example"]},{"b":"bitcoin","t":"100. Multisig","u":"/books/bitcoin/ch100-multisig","s":"implemented","h":["What this chapter teaches","Where the code is","The codes","The script and where it goes","Reading a script back","multi_a: m of n in tapscript","The example","How the code is checked","What this chapter leaves out","Summary","Dependencies","Sources"]},{"b":"bitcoin","t":"101. MuSig2","u":"/books/bitcoin/ch101-musig2","s":"implemented","h":["What this chapter teaches","Where MuSig2 is used","Where the code is","Result codes","Tagged hashes for any tag","Points on the wire","Key aggregation","Tweaks","Nonces","The session","Signing","Checking a partial signature"]},{"b":"bitcoin","t":"102. FROST threshold signatures","u":"/books/bitcoin/ch102-frost-threshold-signatures","s":"implemented","h":["Which specification this chapter follows","What this chapter teaches","Where FROST is used","Where the code is","Result codes","Shamir's secret sharing","The threshold key and the public shares","Tweaks","The signer set","Nonces","Binding factors and the session","Signing"]},{"b":"bitcoin","t":"103. Adaptor signatures","u":"/books/bitcoin/ch103-adaptor-signatures","s":"implemented","h":["What this chapter teaches","Where adaptor signatures are used","Where the code is","The idea","The challenge","Pre-signing","Pre-verifying","Adapting","Extracting","Nonce reuse and statement reuse","The example","How the code is checked"]},{"b":"bitcoin","t":"104. Messages and TLVs","u":"/books/bitcoin/ch104-messages-and-tlvs","s":"implemented","h":["What this chapter teaches","Where Lightning uses messages and TLVs","Where the code is","BigSize","TLV streams","Truncated integers","Messages","Feature bits","init","error and warning","ping and pong","The example"]},{"b":"bitcoin","t":"105. The Noise handshake","u":"/books/bitcoin/ch105-the-noise-handshake","s":"implemented","h":["What this chapter teaches","Where Lightning uses the transport","Where the code is","What is secret","BOLT 8's functions","The handshake state","Act one","Act two","The session keys","Act three","Messages and rotation","The example"]},{"b":"bitcoin","t":"106. Commitment keys and revocation","u":"/books/bitcoin/ch106-commitment-keys-and-revocation","s":"implemented","h":["What this chapter teaches","Where Lightning uses these keys","Where the code is","The tweak","The per-commitment point","Keys from a basepoint","The revocation key","The example","How the code is checked","What this chapter leaves out","Summary","Dependencies"]},{"b":"bitcoin","t":"107. Shachain","u":"/books/bitcoin/ch107-shachain","s":"implemented","h":["What this chapter teaches","Where Lightning uses shachain","Where the code is","Making the secrets","The receiver's store","The insert check","Looking up a secret","The example","How the code is checked","What this chapter leaves out","Summary","Dependencies"]},{"b":"bitcoin","t":"108. Commitment and HTLC transactions","u":"/books/bitcoin/ch108-commitment-and-htlc-transactions","s":"implemented","h":["What this chapter teaches","Where Lightning uses these transactions","Where the code is","The channel and its outputs","The funding output and the commitment number","The scripts","Fees and trimming","Output order","Building a commitment","Signing","HTLC transactions","The example"]},{"b":"bitcoin","t":"109. Open, update and close a channel","u":"/books/bitcoin/ch109-open-update-and-close-a-channel","s":"implemented","h":["What this chapter teaches","Where Lightning uses this protocol","Where the code is","The node","Which updates a commitment holds","Keys for each commitment","Opening a channel","Adding an HTLC","Fulfilling or failing an HTLC","Signing and revoking","Closing together","Reconnecting"]},{"b":"bitcoin","t":"111. Onion routing and blinded paths","u":"/books/bitcoin/ch111-onion-routing-and-blinded-paths","s":"implemented","h":["What this chapter teaches","Where Lightning uses onions","Where the code is","Keys and the stream","Shared secrets along the route","Hop payloads","The filler","Wrapping the onion","Peeling one layer","Error onions","Blinded paths","Unblinding"]},{"b":"bitcoin","t":"112. Gossip and the channel graph","u":"/books/bitcoin/ch112-gossip-and-the-channel-graph","s":"implemented","h":["What this chapter teaches","Where Lightning uses gossip","Where the code is","What a signature signs","Short channel IDs","Channel announcements","Node announcements","Channel updates","Queries","Writing","The channel graph","The example"]},{"b":"bitcoin","t":"113. Find a route and pay","u":"/books/bitcoin/ch113-find-a-route-and-pay","s":"implemented","h":["What this chapter teaches","Where Lightning uses this","Where the code is","Fees, limits and the chance of failure","The payer's map","Searching from the payee","Hop payloads and the onion","The network","Forwarding","The payee and multi-part payments","Moving messages","Paying"]},{"b":"bitcoin","t":"114. Invoices","u":"/books/bitcoin/ch114-invoices","s":"implemented","h":["What this chapter teaches","Where Lightning uses invoices","Where the code is","What an invoice holds","Five bits at a time","The human-readable part","The fields","Reading an invoice","The signature names the payee","Fallback addresses","Writing an invoice","The example"]},{"b":"bitcoin","t":"115. Offers","u":"/books/bitcoin/ch115-offers","s":"implemented","h":["What this chapter teaches","Where Lightning uses offers","Where the code is","The fields","A stream as read","Text without a checksum","Blinded paths and payinfo","One record at a time","The Merkle tree","Offers","Invoice requests","Invoices"]},{"b":"bitcoin","t":"116. Test vectors and their provenance","u":"/books/bitcoin/ch116-test-vectors-and-their-provenance","s":"implemented","h":["What this chapter teaches","Where the code is","What a pin records","Checking the pins","Published and generated vectors","The Bitcoin Core target","Checking that the pins agree","What the audit found","The example","How the code is checked","What this chapter leaves out","Summary"]},{"b":"bitcoin","t":"119. Fuzzing","u":"/books/bitcoin/ch119-fuzzing","s":"implemented","h":["What this chapter teaches","Where the code is","What a fuzzer checks","Seeds and mutations","Crashes","What the fuzzer found","The example","How the code is checked","What this chapter leaves out","Summary","Dependencies","Sources"]},{"b":"bitcoin","t":"121. One seed for Nostr and Bitcoin","u":"/books/bitcoin/ch121-one-seed-for-nostr-and-bitcoin","s":"implemented","h":["What this chapter teaches","Where the code is","Refusals","One seed, three branches","The card","A restore","Separate paths","What an agent's backup contains","The example","How the code is checked","What this chapter leaves out","Summary"]},{"b":"bitcoin","t":"122. Agent treasuries","u":"/books/bitcoin/ch122-agent-treasuries","s":"implemented","h":["What this chapter teaches","Where the code is","Refusals","The P2WSH form","The Taproot form","A separate wallet for the agent's limit","What the agent signs","The agent's check","The PSBT flow","Timelocked recovery","What needs a node","The example"]},{"b":"bitcoin","t":"123. Paying for requests and verified work","u":"/books/bitcoin/ch123-paying-for-requests","s":"implemented","h":["By hand: three-leg settlement, rolling UTC caps, and refusal order","The #authority three-leg settlement policy","Runnable example and expected transcript","Live Bitcoin mainnet qualification and checks"]},{"b":"bitcoin","t":"125. Address history, balances and spends","u":"/books/bitcoin/ch125-address-history-balances-and-spends","s":"implemented","h":["Index output occurrences and spend occurrences","One chain cursor","Query the snapshot","Check against an independent replay"]},{"b":"nostr","t":"Introduction","u":"/books/nostr","s":"","h":["Start here","Status","Promoting a draft to a teaching chapter","Writing style","Checking the book","Chapters"]},{"b":"nostr","t":"Plan and prerequisites","u":"/books/nostr/PLAN","s":"","h":["What you need first","The order","Part VI: which NIP sets","Every chapter"]},{"b":"nostr","t":"Completion route","u":"/books/nostr/COMPLETION","s":"","h":["Keep the four claims separate","1. Close known integration and evidence debt","2. Qualify the consumers and their target boundaries","3. Finish the relay and its production migration","4. Connect the offline integrations to applications","5. Finish public-signet broadcast and NIP-KEYS pin review"]},{"b":"nostr","t":"14. Shared secrets with ECDH","u":"/books/nostr/ch014-shared-secrets-with-ecdh","s":"implemented","h":["What this chapter teaches","Where the code is","The shared point","Checking the inputs","The multiplication","Who owns the secret scratch","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"16. NIP-19 entities and nostr: URIs","u":"/books/nostr/ch016-nip-19-entities-and-nostr-uris","s":"implemented","h":["What this chapter teaches","Where the code is","The six forms","TLV records","Decoding a string","nostr: URIs","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"17. JSON you can sign","u":"/books/nostr/ch017-json-you-can-sign","s":"implemented","h":["What this chapter teaches","Where the code is","The preimage","Reading JSON","Event admission","JCS is not the preimage","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"19. NIP-04 and why it is retired","u":"/books/nostr/ch019-nip-04-and-why-it-is-retired","s":"implemented","h":["What this chapter teaches","Where the code is","The format","AES-256, decryption only","CBC decryption","The reader","The weaknesses","What this stack does","The example","How the code is checked","Summary","Dependencies"]},{"b":"nostr","t":"20. NIP-44 encrypted payloads","u":"/books/nostr/ch020-nip-44-encrypted-payloads","s":"implemented","h":["Secret storage and cleanup","What this chapter teaches","Where the code is","Keys","Padding","Encrypt","Decrypt","Profiles","The example","How the code is checked","Summary","Dependencies"]},{"b":"nostr","t":"21. Events, IDs and signatures","u":"/books/nostr/ch021-events-ids-and-signatures","s":"implemented","h":["What this chapter teaches","Where the code is","The event","Worked example: build, sign and check one event","Signing in stages","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"22. Kinds and tags","u":"/books/nostr/ch022-kinds-and-tags","s":"implemented","h":["What this chapter teaches","Where the code is","Kinds","Replacement","Tags","Kind 0 metadata","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"23. Filters","u":"/books/nostr/ch023-filters","s":"implemented","h":["What this chapter teaches","Where the code is","The filter object","Tag filters","Time and limit","One REQ, several filters","Worked example: four events and one REQ","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"24. Relay messages","u":"/books/nostr/ch024-relay-messages","s":"implemented","h":["What this chapter teaches","Where the code is","Frames","OK, CLOSED and the prefixes","A parsed EVENT is not a verified event","Worked example: a REQ and an OK by hand","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"25. Gift wrap","u":"/books/nostr/ch025-gift-wrap","s":"implemented","h":["What this chapter teaches","Where the code is","Three layers","Worked example: one wrap by hand","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"26. WebSocket frames","u":"/books/nostr/ch026-websocket-frames","s":"implemented","h":["What this chapter teaches","Where the code is","The opening handshake","Frames","What the client refuses","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"27. A WebSocket server","u":"/books/nostr/ch027-a-websocket-server","s":"implemented","h":["What this chapter teaches","Where the code is","The opening request","Frames from the client","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"28. Sockets, TLS and relay URLs","u":"/books/nostr/ch028-sockets-tls-and-relay-urls","s":"implemented","h":["What this chapter teaches","Where the code is","A relay URL is four decisions","Normalizing a relay URL: NIP-42's rule","The connection","TLS: what the host does","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"29. A relay connection","u":"/books/nostr/ch029-a-relay-connection","s":"implemented","h":["What this chapter teaches","Where the code is","States and transitions","Generations","Backoff","What each relay message does","Reconnecting keeps the caller's work","The NIP-42 hook","Worked example: one session by hand","The example","How the code is checked","Summary"]},{"b":"nostr","t":"30. Subscriptions and EOSE","u":"/books/nostr/ch030-subscriptions-and-eose","s":"implemented","h":["What this chapter teaches","Where the code is","Subscription ids","Subscription states","Stored and live events","What EOSE means","NIP-67 completeness hints","CLOSE and CLOSED","Limits on open subscriptions","Deduplication","Paginating backward","Worked example: a session by hand"]},{"b":"nostr","t":"31. Publish and wait for OK","u":"/books/nostr/ch031-publish-and-wait-for-ok","s":"implemented","h":["What this chapter teaches","Where the code is","A publish and its states","Matching an OK","The verdict and the prefixes","auth-required: wait, authenticate, send once more","A timeout means unknown","Sending again is safe","Worked example: one session by hand","The example","How the code is checked","Summary"]},{"b":"nostr","t":"32. Many relays and the outbox model","u":"/books/nostr/ch032-many-relays-and-the-outbox-model","s":"implemented","h":["What this chapter teaches","Where the code is","A relay list","The pool and the author table","Where to send and where to look","Asking few relays for many follows","One subscription on several relays","Worked example: four follows and five relays by hand","Worked example: fifty authors by hand","The example","What is not built","How the code is checked"]},{"b":"nostr","t":"33. A client that survives restarts","u":"/books/nostr/ch033-a-client-that-survives-restarts","s":"implemented","h":["What this chapter teaches","Where the code is","What a client must not forget","The journal format","Replay: cut or refuse","Publishing across a crash","Delivering once and resuming with since","Deletions that stay deleted","Worked example: a session killed mid-publish, by hand","The example","What is not built","How the code is checked"]},{"b":"nostr","t":"34. Admit an event","u":"/books/nostr/ch034-admit-an-event","s":"implemented","h":["What this chapter teaches","Where the code is","The admission path","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"35. Store events","u":"/books/nostr/ch035-store-events","s":"implemented","h":["What this chapter teaches","Where the code is","Admission","Recovery","Worked example: 19 insertions by hand","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"36. Match filters with indexes","u":"/books/nostr/ch036-match-filters-with-indexes","s":"implemented","h":["What this chapter teaches","Where the code is","Query order and limits","Four indexes","Choosing an index","Worked example: eight events and eleven filters","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"37. NIP-11 relay information","u":"/books/nostr/ch037-nip-11-relay-information","s":"implemented","h":["What this chapter teaches","Where the code is","One URL, three answers","The document","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"38. NIP-42 authentication","u":"/books/nostr/ch038-nip-42-authentication","s":"implemented","h":["What this chapter teaches","Where the code is","The challenge","The generation","The answer: kind 22242","The relay's check","Worked example: one answer by hand","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"39. Delete, expire and vanish","u":"/books/nostr/ch039-delete-expire-and-vanish","s":"implemented","h":["What this chapter teaches","Where the code is","Expiration","Deletion requests","Requests to vanish","Admission and restart","Worked example: deletion by hand","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"40. Count events","u":"/books/nostr/ch040-count-events","s":"implemented","h":["What this chapter teaches","Where the code is","The COUNT frames","Counting through the index","HyperLogLog","The relay's answer","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"41. Search","u":"/books/nostr/ch041-search","s":"implemented","h":["What this chapter teaches","Where the code is","The search field","Words","The search string","The word index","Matching, score and order","Worked example: three notes","The difference from the Rust relay","The example","How the code is checked","Summary"]},{"b":"nostr","t":"42. Protected events","u":"/books/nostr/ch042-protected-events","s":"implemented","h":["What this chapter teaches","Where the code is","The tag","The rule","Admission","NIP-70's example event","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"43. Negentropy sync","u":"/books/nostr/ch043-negentropy-sync","s":"implemented","h":["What this chapter teaches","Where the code is","Items and ranges","Varints","Bounds","Fingerprints","A round","NIP-77 frames","The example","How the code is checked","Summary","Dependencies"]},{"b":"nostr","t":"44. Limits, policy and floods","u":"/books/nostr/ch044-limits-policy-and-floods","s":"implemented","h":["What this chapter teaches","Where the code is","Every limit in one table","Rate limits in fixed windows","Floods","The write policy","Advertising the rate limits","The client's own budget","The example","How the code is checked","Summary","Dependencies"]},{"b":"nostr","t":"45. Profiles, follows and names","u":"/books/nostr/ch045-profiles-follows-and-names","s":"implemented","h":["What this chapter teaches","Where the code is","Kind 0 profiles","NIP-05 names","Kind 3 follow lists","External identities (NIP-39)","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"46. Keys from a seed phrase","u":"/books/nostr/ch046-keys-from-a-seed-phrase","s":"implemented","h":["What this chapter teaches","Where the code is","BIP-39 words","The seed","BIP-32 derivation","The NIP-06 key","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"47. Encrypted key backup","u":"/books/nostr/ch047-encrypted-key-backup","s":"implemented","h":["What this chapter teaches","Where the code is","The payload","The password","scrypt","XChaCha20-Poly1305","Poly1305","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"48. Signers outside the app","u":"/books/nostr/ch048-signers-outside-the-app","s":"implemented","h":["What this chapter teaches","Where the code is","Three ways to reach a signer","NIP-46: the keys and the flow","The two connection URIs","Requests, responses and the template","The events and their encryption","The client: waiting requests, deadlines and the secret","The remote signer: the secret and permissions","The worked example, by hand","The example","How the code is checked"]},{"b":"nostr","t":"49. HTTP auth","u":"/books/nostr/ch049-http-auth","s":"implemented","h":["What this chapter teaches","Where the code is","The event","The header","The server's checks","Worked example: one header by hand","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"50. Notes, threads and subjects","u":"/books/nostr/ch050-notes-threads-and-subjects","s":"implemented","h":["What this chapter teaches","Where the code is","Marked e tags","Positional e tags","The p tags of a reply","Subjects and content warnings","Reading a thread","Writing a reply","Rebuilding the tree","The example","How the code is checked","Summary"]},{"b":"nostr","t":"51. References inside content","u":"/books/nostr/ch051-references-inside-content","s":"implemented","h":["What this chapter teaches","Where the code is","References in content","Decoding a nostr: reference","Scanning","Custom emoji","NIP-08 mentions","Writing the tags","Checking an event","What is not built","The example","How the code is checked"]},{"b":"nostr","t":"52. Reposts, reactions and comments","u":"/books/nostr/ch052-reposts-reactions-and-comments","s":"implemented","h":["What this chapter teaches","Where the code is","Reposts","Reactions","Counting reactions","Comments","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"53. Long-form, drafts and wiki","u":"/books/nostr/ch053-long-form-drafts-and-wiki","s":"implemented","h":["What this chapter teaches","Where the code is","Wiki names: NIP-54 normalization","Articles: NIP-23","Drafts: NIP-37","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"54. Lists, sets and bookmarks","u":"/books/nostr/ch054-lists-sets-and-bookmarks","s":"implemented","h":["What this chapter teaches","Where the code is","Lists and sets","Private items","Muting","NIP-51's own examples","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"55. Labels, reports and trusted assertions","u":"/books/nostr/ch055-labels-reports-and-trusted-assertions","s":"implemented","h":["What this chapter teaches","Where the code is","Reading any tag","Labels","Reports","Counting only whom you trust","Trusted assertions","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"56. Proof of work","u":"/books/nostr/ch056-proof-of-work","s":"implemented","h":["What this chapter teaches","Where the code is","Difficulty","The nonce tag and its target","Mining","Relay admission","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"57. Media and files","u":"/books/nostr/ch057-media-and-files","s":"implemented","h":["What this chapter teaches","Where the code is","Media lives elsewhere","The imeta tag","Kind 1063 file metadata","The hash check","Picture, video and voice events","Blossom","Worked example: an imeta tag and a blob address by hand","Not built","The example","How the code is checked"]},{"b":"nostr","t":"58. Calendars, polls and highlights","u":"/books/nostr/ch058-calendars-polls-and-highlights","s":"implemented","h":["What this chapter teaches","Where the code is","Calendar events","Calendars and RSVPs","Polls","Counting votes","Highlights","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"59. Groups and communities","u":"/books/nostr/ch059-groups-and-communities","s":"implemented","h":["What this chapter teaches","Where the code is","Groups on a relay","Worked example: one group, three posts","Moderated communities (NIP-72)","Chats and threads (NIP-C7 and NIP-7D)","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"60. Private messages","u":"/books/nostr/ch060-private-messages","s":"implemented","h":["What this chapter teaches","Where the code is","Messages, rooms and copies","Where each wrap goes","Sending","Opening","Worked example: Alice writes to Bob and Carol","Public messages (NIP-A4)","The example","How the code is checked","What is not built","Summary"]},{"b":"nostr","t":"61. Live activities","u":"/books/nostr/ch061-live-activities","s":"implemented","h":["What this chapter teaches","Where the code is","The records","Live streams","Participants and roles","Is it live?","Live chat","Meeting spaces, meetings and presence","Writing","Not built","The example","How the code is checked"]},{"b":"nostr","t":"62. Badges and statuses","u":"/books/nostr/ch062-badges-and-statuses","s":"implemented","h":["What this chapter teaches","Where the code is","The records","Badge definitions","Badge awards","Profile badges","User statuses","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"63. Git on Nostr","u":"/books/nostr/ch063-git-on-nostr","s":"implemented","h":["What this chapter teaches","Where the code is","Repository announcements","Issues and patches","Statuses","The project fold","Pull requests","Code snippets (NIP-C0)","What is not built","The example","How the code is checked","Summary"]},{"b":"nostr","t":"64. App data and handlers","u":"/books/nostr/ch064-app-data-and-handlers","s":"implemented","h":["What this chapter teaches","Where the code is","NIP-78: application data","NIP-89: handlers and recommendations","Handler resolution","Filling the template","NIP-5A: static websites","NIP-CD: slash commands","Not built","The example","How the code is checked","Summary"]},{"b":"nostr","t":"65. Data vending machines","u":"/books/nostr/ch065-data-vending-machines","s":"implemented","h":["What this chapter teaches","Where the code is","Job requests","Encrypted requests: NIP-44, not NIP-04","Results and feedback","Matching a reply to its request","Paying: amount, invoice and bid","The customer's job","Writing the tags","Job chaining","Not built","The example"]},{"b":"nostr","t":"66. Markets and orders","u":"/books/nostr/ch066-markets-and-orders","s":"implemented","h":["What this chapter teaches","Where the code is","The records","Prices","Listings","Peer-to-peer orders","The NIP-15 marketplace","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"67. Relay discovery, access and management","u":"/books/nostr/ch067-relay-discovery-access-and-management","s":"implemented","h":["What this chapter teaches","Where the code is","The management endpoint (NIP-86)","Worked example: one banpubkey call by hand","Relay discovery (NIP-66)","Membership (NIP-43)","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"68. Bridges, external IDs and timestamps","u":"/books/nostr/ch068-bridges-external-ids-and-timestamps","s":"implemented","h":["What this chapter teaches","Where the code is","The records","External content IDs","Bridged events","OpenTimestamps attestations","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"69. Small content kinds","u":"/books/nostr/ch069-small-content-kinds","s":"implemented","h":["What this chapter teaches","Where the code is","Torrents: NIP-35","Chess games: NIP-64","Geocaching: NIP-CC","Podcasts: NIP-F4","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"70. Retired and experimental NIPs","u":"/books/nostr/ch070-retired-and-experimental-nips","s":"implemented","h":["What this chapter teaches","Where the code is","The 13 unrecommended NIPs","Recognizing a retired form","Delegated signing: NIP-26","Summaries for unknown kinds: NIP-31","Bluetooth LE transport: NIP-BE","Worked example: three events by hand","The example","How the code is checked","Summary","Dependencies"]},{"b":"nostr","t":"71. Lightning zaps and goals","u":"/books/nostr/ch071-lightning-zaps-and-goals","s":"implemented","h":["What this chapter teaches","Where the code is","The records","From a lightning address to a zap endpoint","The zap request","The invoice and its description hash","Checking a receipt","Worked example: one receipt by hand","Zap goals","The example","How the code is checked","Summary"]},{"b":"nostr","t":"72. Wallet Connect","u":"/books/nostr/ch072-wallet-connect","s":"implemented","h":["What this chapter teaches","Where the code is","The connection URI","The info event and the encryption choice","Requests and responses","The events and their encryption","Matching a response to its request","The spending budget","The worked example, by hand","The example","How the code is checked","Summary"]},{"b":"nostr","t":"73. Payment targets","u":"/books/nostr/ch073-payment-targets","s":"implemented","h":["What this chapter teaches","Where the code is","The record","Types","Segwit addresses","Base58check addresses","Lightning addresses","Offering a target","Splitting a payment","The example","How the code is checked","Summary"]},{"b":"nostr","t":"74. Cashu and Fedimint are excluded","u":"/books/nostr/ch074-cashu-and-fedimint-are-excluded","s":"implemented","h":["What this chapter teaches","Where the code is","Ecash and the money rule","The nine kinds","Classifying an event","The example","Refusals elsewhere","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"75. Hosts and reachability","u":"/books/nostr/ch075-hosts-and-reachability","s":"implemented","h":["What this chapter teaches","Where the code is","The three keys","Grants","How the host admits a request","Reachability","What is not built","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"76. Work, coordination and control","u":"/books/nostr/ch076-work-coordination-and-control","s":"implemented","h":["What this chapter teaches","Where the code is","Four NIPs, four owners","Claims and fencing","Task control","WORK and CTX","What is not built","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"77. Capabilities, policy and extensions","u":"/books/nostr/ch077-capabilities-policy-and-extensions","s":"implemented","h":["What this chapter teaches","Where the code is","Capabilities: description, binding, grant, presence","Approvals","Extensions: releases and revocation","What is not built","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"78. Runs, sessions, terminals and trajectories","u":"/books/nostr/ch078-runs-sessions-terminals-and-trajectories","s":"implemented","h":["What this chapter teaches","Where the code is","Four records, four owners","The run journal","Trajectory chunks","Terminal frames","Sealing a record with NIP-44","SESS: sessions, adapters and queue law","What is not built","The example","How the code is checked","Summary"]},{"b":"nostr","t":"79. Agents, skills and automation","u":"/books/nostr/ch079-agents-skills-and-automation","s":"implemented","h":["What this chapter teaches","Where the code is","Saved agents","Private carriage","Automation","What is not built","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"80. Jobs, labor and markets","u":"/books/nostr/ch080-jobs-labor-and-markets","s":"implemented","h":["What this chapter teaches","Where the code is","Three NIPs, three owners","CJ: who may answer a job","MKT: the negotiation","LAB: delivery, verification and acceptance","MKT: settlement","Worked example: one order, by hand","What is not built","The example","How the code is checked","Summary"]},{"b":"nostr","t":"81. Decisions, evaluations, optimization and programs","u":"/books/nostr/ch081-decisions-evaluations-optimization-and-programs","s":"implemented","h":["What this chapter teaches","Where the code is","Four NIPs, one loop","DEC: a typed question set","DEC: an answer to exactly that set","EVAL: reports one reader can check","OPT: the cases that judge stay unseen","PRG: typed programs, in outline","Worked example: three evaluations into one decision, by hand","What is not built","The example","How the code is checked"]},{"b":"nostr","t":"82. Pylons, environments and deploys","u":"/books/nostr/ch082-pylons-environments-and-deploys","s":"implemented","h":["What this chapter teaches","Where the code is","The beacon","The receipt","What is not built","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"83. Attested work and sealed data","u":"/books/nostr/ch083-attested-work-and-sealed-data","s":"implemented","h":["What this chapter teaches","Where the code is","Attested workloads","Sealed personal data","What is not built","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"84. Knowledge and workspaces","u":"/books/nostr/ch084-knowledge-and-workspaces","s":"implemented","h":["What this chapter teaches","Where the code is","Knowledge entries","Which version is current","Conditional document changes","What is not built","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"85. Live media, worlds and experience","u":"/books/nostr/ch085-live-media-worlds-and-experience","s":"implemented","h":["What this chapter teaches","Where the code is","Three NIPs, one place","MV: worlds, coordinates and cells","MV: pose frames","XP: quests, awards and revocations","XP: deriving a ledger","LIVE: sessions, in outline","Worked example: four frames and three ledgers, by hand","What is not built","The example","How the code is checked"]},{"b":"nostr","t":"86. Lightning payments for requests","u":"/books/nostr/ch086-lightning-payments-for-requests","s":"implemented","h":["What this chapter teaches","Where the code is","The exchange","Worked example: one top-up by hand","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"87. Owner attestation and agent authentication","u":"/books/nostr/ch087-owner-attestation-and-agent-authentication","s":"implemented","h":["What this chapter teaches","Where the code is","The owner's attestation (NIP-OA)","Agent authentication (NIP-AA)","Worked example: one attestation chain by hand","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"88. Federated identity","u":"/books/nostr/ch088-federated-identity","s":"implemented","h":["What this chapter teaches","Where the code is","The assertion","RSA signatures","PKCS#1 v1.5 with SHA-256","The header and the key set","Community, issuer and claims","What is not built","The example","How the code is checked","Summary","Dependencies"]},{"b":"nostr","t":"89. Channels","u":"/books/nostr/ch089-channels","s":"implemented","h":["What this chapter teaches","Where the code is","Channel identity","Channel windows","DM visibility","The workspace icon","Worked example: one channel paged by hand","What is not built","The example","How the code is checked","Summary","Dependencies"]},{"b":"nostr","t":"90. Artifacts, archives and reminders","u":"/books/nostr/ch090-artifacts-archives-and-reminders","s":"implemented","h":["What this chapter teaches","Where the code is","Channel artifacts","Identity archival","Event reminders","Worked example: three reminders by hand","What is not built","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"91. Git signing, projects, leases and read state","u":"/books/nostr/ch091-git-signing-projects-leases-and-read-state","s":"implemented","h":["What this chapter teaches","Where the code is","Git signing (NIP-GS)","Projects (NIP-MP)","Push leases (NIP-PL)","Read state (NIP-RS)","What is not built","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"92. Private agent state","u":"/books/nostr/ch092-private-agent-state","s":"implemented","h":["What this chapter teaches","Where the code is","Agent memory: NIP-AE","Live activity: NIP-AO","The canary","What is not built","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"93. Test vectors and their provenance","u":"/books/nostr/ch093-test-vectors-and-their-provenance","s":"implemented","h":["What this chapter teaches","Where the code is","The inventory","One record, worked by hand","The record rules","The rules in Coax","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"94. Differential tests","u":"/books/nostr/ch094-differential-tests","s":"implemented","h":["What this chapter teaches","Where the code is","The method","Two implementations of one query","Minimization","Worked example: minimize case 17 by hand","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"95. Fuzzing","u":"/books/nostr/ch095-fuzzing","s":"implemented","h":["What this chapter teaches","Where the code is","A generator you can replay","Mutation","What counts as a finding","Coverage guidance","Triage and shrinking","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"96. Formal properties","u":"/books/nostr/ch096-formal-properties","s":"implemented","h":["What this chapter teaches","Where the code is","Stating a property","Worked example: the kinds field by hand","Five properties","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"97. A conformance report","u":"/books/nostr/ch097-a-conformance-report","s":"implemented","h":["What this chapter teaches","Where the code is","What the registry claims","Profiles","The rule","Source pins","Worked example: the NIP-98 row by hand","The report in Coax","The example","How the code is checked","Summary","Dependencies"]},{"b":"nostr","t":"98. Projects on Nostr","u":"/books/nostr/ch098-projects-on-nostr","s":"implemented","h":["What this chapter teaches","Where the code is","The events of a project","The verified view","What is not built","The example","How the code is checked","Summary","Dependencies","Sources"]},{"b":"nostr","t":"99. The website and sign-in","u":"/books/nostr/ch099-the-website-and-sign-in","s":"implemented","h":["What this chapter teaches","Where the code is","Who is asking","The key login","The browser signer","The CLI: a computer joins an account","Worked example: one login by hand","The example","How the code is checked","Hybrid WorkOS authentication (decided 2026-11-26)","Summary","Dependencies"]},{"b":"nostr","t":"100. Pylons and the mesh","u":"/books/nostr/ch100-pylons-and-the-mesh","s":"implemented","h":["What this chapter teaches","Where the code is","Four kinds of event","The trace by hand","Connect and authenticate","The beacon: checked and claimed","Seal, open, admit, answer","A request sealed to another provider","The mesh's opening keys","The example","How the code is checked","Summary"]},{"b":"nostr","t":"101. The Metaverse and the wallet","u":"/books/nostr/ch101-the-verse-and-the-wallet","s":"implemented","h":["What this chapter teaches","Where the code is","What runs today and what is only in this book","The session","The trace by hand","Refusals","Wallet Connect as a second path","The example","How the code is checked","What is not built yet","Summary","Dependencies"]},{"b":"nostr","t":"102. Agents on Nostr","u":"/books/nostr/ch102-agents-on-nostr","s":"implemented","h":["What this chapter teaches","Where the code is","What runs today and what is only in this book","The path","The trace by hand","Refusals","The example","How the code is checked","What is not built yet","Summary","Dependencies","Sources"]},{"b":"nostr","t":"103. Replace relay.openagents.com","u":"/books/nostr/ch103-replace-relay-openagents-com","s":"implemented","h":["What this chapter teaches","Where the code is","The export format","Import with every check again","Event-set equality","The shadow period","The example","The runbook","What the relay wires and leaves off","How the code is checked","Summary","Dependencies"]},{"b":"nostr","t":"104. Agent treasuries and a network of keys","u":"/books/nostr/ch104-agent-treasuries-and-a-network-of-keys","s":"partly implemented","h":["What this chapter teaches","Where the code is","From an approval rule to a script","The descriptor and its checksum","The records","Admission and the composition rules","Addresses from public keys","Possession: proving the key is held","The signer","Signatures","Over the network","The example"]},{"b":"coder","t":"Introduction","u":"/books/coder","s":"","h":["Start here","Status","Chapters","Contents"]},{"b":"coder","t":"Plan","u":"/books/coder/PLAN","s":"","h":["Where this book came from","OpenAgents and Coder","The CLI is the spine","I. The loop","II. Engines","III. Many tasks","IV. Staying online","V. Measure","VI. The command line","VII. What other coding agents teach","VIII. The terminal","IX. The desktop app"]},{"b":"coder","t":"Guarantees and authorization","u":"/books/coder/CONTRACT","s":"","h":["Coverage by execution path","What replay means","Recovery and interrupted effects","Outbound authorization and current enforcement","Plugin and tool trust","Evidence and maintenance"]},{"b":"coder","t":"1. The simplest loop","u":"/books/coder/ch001-the-simplest-loop","s":"implemented","h":["Profile","Worked example","Checks and production adoption","Done means"]},{"b":"coder","t":"2. Model-visible means logged","u":"/books/coder/ch002-model-visible-means-logged","s":"implemented","h":["Profile","Worked example","Checks and production adoption","Done means"]},{"b":"coder","t":"3. Keep the prefix stable","u":"/books/coder/ch003-keep-the-prefix-stable","s":"partly implemented","h":["Profile","Worked example","What remains","Done means"]},{"b":"coder","t":"4. Tools as typed capabilities","u":"/books/coder/ch004-tools-as-typed-capabilities","s":"implemented","h":["Profile","Worked example","Checks and production adoption","Done means"]},{"b":"coder","t":"5. A sandbox and approvals","u":"/books/coder/ch005-a-sandbox-and-approvals","s":"implemented","h":["Profile","Worked example","Checks and production adoption","Done means"]},{"b":"coder","t":"6. A document tries to become the system prompt","u":"/books/coder/ch006-a-document-tries-to-become-the-system-prompt","s":"partly implemented","h":["Profile","Worked example","What remains","Done means"]},{"b":"coder","t":"7. Condense the history","u":"/books/coder/ch007-condense-the-history","s":"partly implemented","h":["Profile","Worked example","What remains","Done means"]},{"b":"coder","t":"8. Programs as tool calls","u":"/books/coder/ch008-programs-as-tool-calls","s":"partly implemented","h":["Profile","Worked example","What remains","Done means"]},{"b":"coder","t":"9. Microcoder","u":"/books/coder/ch009-microcoder","s":"implemented","h":["Evolution: Microcoder → Inky → Unified openagents/core/ (oa-worker)","The loop","Endings","In Coder","Record and replay","Checks","Dependencies","Done means","Exact-core edit and schema guards (W6.1)","Sources"]},{"b":"coder","t":"10. Drive Claude Code","u":"/books/coder/ch010-drive-claude-code","s":"implemented","h":["The client","In Coder","Coder's tools in Claude Code","Approvals by policy","Checks","Dependencies","Done means","Sources"]},{"b":"coder","t":"11. Drive Codex","u":"/books/coder/ch011-drive-codex","s":"partly implemented","h":["The client","In Coder","Approvals by policy","Checks","Dependencies","Done means","Sources"]},{"b":"coder","t":"12. A Psionic-served model as an engine","u":"/books/coder/ch012-a-psionic-served-model","s":"partly implemented","h":["Live local serving: psionic-inkling-serve, 32K tuning, and $0 compute tier","The CLI adapter (legacy --engine psionic)","The check","What remains","Dependencies","Done means","Hybrid executor models (hybrid-exec-v1, W3.1 / W6.1)","Sources"]},{"b":"coder","t":"13. Choose an engine","u":"/books/coder/ch013-choose-an-engine","s":"partly implemented","h":["The request","What runs","Effort","In the terminal UI","The door order","The Decisions API","System One Front v2 (RoutePlan)","Checks","Dependencies","Done means","Sources"]},{"b":"coder","t":"14. Forks, subagents and jobs","u":"/books/coder/ch014-forks-subagents-and-jobs","s":"partly implemented","h":["What this chapter covers","What runs","Deadlines and reports","Subagents","Goals","Checks","Dependencies","Done means","Sources"]},{"b":"coder","t":"15. Plugins with owned lifecycles","u":"/books/coder/ch015-plugins-with-owned-lifecycles","s":"implemented","h":["What this chapter covers","What runs","Checks","Dependencies","Done means","Sources"]},{"b":"coder","t":"16. Speak the protocols","u":"/books/coder/ch016-speak-the-protocols","s":"partly implemented","h":["Profile","Worked example","What remains","Done means"]},{"b":"coder","t":"17. One agent, many tasks","u":"/books/coder/ch017-one-agent-many-tasks","s":"partly implemented","h":["What this chapter covers","What runs","Checks","Dependencies","Done means","Sources","In the other books"]},{"b":"coder","t":"18. Consent before sharing","u":"/books/coder/ch018-consent-before-sharing","s":"partly implemented","h":["Profile","Worked example","Live CLI & protocol fixture","What remains","Done means"]},{"b":"coder","t":"19. Remember a fact, then revise it","u":"/books/coder/ch019-remember-a-fact-then-revise-it","s":"partly implemented","h":["Profile","Worked example","Live CLI & protocol fixture","What remains","Done means"]},{"b":"coder","t":"20. An agent that stays online","u":"/books/coder/ch020-an-agent-that-stays-online","s":"partly implemented","h":["What this chapter covers","What runs","Checks","Dependencies","Done means","Sources"]},{"b":"coder","t":"21. Measure the harness","u":"/books/coder/ch021-measure-the-harness","s":"partly implemented","h":["Profile","Worked example","What remains","Done means"]},{"b":"coder","t":"22. Generate candidates, then check them","u":"/books/coder/ch022-generate-candidates-then-check-them","s":"partly implemented","h":["Profile","Worked example","Live self-test","What remains","Done means"]},{"b":"coder","t":"23. `openagents coder`","u":"/books/coder/ch023-openagents-coder","s":"partly implemented","h":["What this chapter covers","What runs","Dependencies","Done means","Sibling Executor Network CLI domains","Sources"]},{"b":"coder","t":"24. DeepSeek Harness","u":"/books/coder/ch024-deepseek-harness","s":"written","h":["Why study it","What it does","What Coder takes","What Coder leaves, and why","Where to measure a borrowed design","Licensing","Sources"]},{"b":"coder","t":"25. Claude Code","u":"/books/coder/ch025-claude-code","s":"written","h":["Why study it","What it does","What Coder takes","What Coder leaves, and why","Where to measure a borrowed design","Sources"]},{"b":"coder","t":"26. Codex","u":"/books/coder/ch026-codex","s":"written","h":["Why study it","What it does","What Coder takes","What Coder leaves, and why","Where to measure a borrowed design","Licensing","Sources"]},{"b":"coder","t":"27. OpenCode","u":"/books/coder/ch027-opencode","s":"written","h":["Why study it","What it does","What Coder takes","What Coder leaves, and why","Where to measure a borrowed design","Licensing","Sources"]},{"b":"coder","t":"28. Goose","u":"/books/coder/ch028-goose","s":"written","h":["Why study it","What it does","What Coder takes","What Coder leaves, and why","Where to measure a borrowed design","Sources"]},{"b":"coder","t":"29. Aider","u":"/books/coder/ch029-aider","s":"written","h":["Why study it","What it does","What Coder takes","What Coder leaves, and why","Where to measure a borrowed design","Sources"]},{"b":"coder","t":"30. mini-SWE-agent","u":"/books/coder/ch030-mini-swe-agent","s":"written","h":["Why study it","What it does","Microcoder and mini-SWE-agent side by side","What Coder takes","What Coder leaves, and why","Where to measure a borrowed design","Sources"]},{"b":"coder","t":"31. OpenHands Software Agent SDK","u":"/books/coder/ch031-openhands-sdk","s":"written","h":["Why study it","What it does","What Coder takes","What Coder leaves, and why","Where to measure a borrowed design","Sources"]},{"b":"coder","t":"32. Hermes Agent","u":"/books/coder/ch032-hermes-agent","s":"written","h":["Why study it","What it does","What Coder takes","What Coder leaves, and why","Where to measure a borrowed design","Sources"]},{"b":"coder","t":"33. Toad","u":"/books/coder/ch033-toad","s":"written","h":["Why study it","What it does","How Coder's terminal UI differs today","What Coder takes","What Coder leaves, and why","Where to measure a borrowed design","Sources"]},{"b":"coder","t":"34. Background Agents","u":"/books/coder/ch034-background-agents","s":"written","h":["Why study it","What it does","What Coder takes","What Coder leaves, and why","Where to measure a borrowed design","Sources"]},{"b":"coder","t":"35. Flue and Agent OS","u":"/books/coder/ch035-flue-and-agent-os","s":"written","h":["Why study them","What Flue does","What Agent OS does","What Coder takes","What Coder leaves, and why","Where to measure a borrowed design","Sources"]},{"b":"coder","t":"36. A terminal UI","u":"/books/coder/ch036-a-terminal-ui","s":"implemented","h":["What runs","What this chapter covers","Sources"]},{"b":"coder","t":"37. A terminal inside the agent","u":"/books/coder/ch037-a-terminal-inside-the-agent","s":"partly implemented","h":["The parser","The grid","In Coder","Checks","Sources"]},{"b":"coder","t":"38. Drive Cursor","u":"/books/coder/ch038-drive-cursor","s":"partly implemented","h":["The client","Approvals by policy","Checks","Dependencies","Done means","Sources"]},{"b":"coder","t":"39. Drive Antigravity","u":"/books/coder/ch039-drive-antigravity","s":"implemented","h":["One client, two agents","Sign-in","Models, effort and mode","Approvals","The session log","Resume and fork","Routing and desktop worker (agyworker.coax, #13802, #14024, #14031, #14053, #14071)","Checks","Dependencies","Done means","Sources"]},{"b":"coder","t":"40. The desktop app","u":"/books/coder/ch040-the-desktop-app","s":"implemented","h":["What runs","Architecture: Modular Coax state machine on cross-platform GPU carriers","Checks","Dependencies","Done means"]},{"b":"coder","t":"41. Worker protocol and sub-agents","u":"/books/coder/ch041-worker-protocol-and-sub-agents","s":"implemented","h":["The wire protocol (mcworker-wire.coax)","Workers on one protocol","Multi-level and CC-parity sub-agent delegation","Checks","Dependencies","Done means"]},{"b":"coder","t":"42. Beyond the desktop app","u":"/books/coder/ch042-beyond-the-desktop-app","s":"partly implemented","h":["Implemented and verified","Checks","Still open","Done means"]},{"b":"coder","t":"43. The Foreman","u":"/books/coder/ch043-the-foreman","s":"partly implemented","h":["Why a Foreman","Where the Foreman Lives in the Desktop App","Five Capabilities","How It Fits the Existing Architecture","Verification and What Remains"]},{"b":"psionic","t":"Introduction","u":"/books/psionic","s":"","h":["Start here","Chapter status","Promoting a draft to a teaching chapter","Recorded adoption and remaining integration"]},{"b":"psionic","t":"Full table of contents and prerequisites","u":"/books/psionic/PLAN","s":"","h":["I. Small numbers, real contracts","II. Open weights early: Elephant and Mammoth","III. A live decision API","IV. A first mesh of Pylons","V. Make execution measurable, parallel and portable","VI. Useful inference beyond decisions","VII. An open reasoning model: gpt-oss","VIII. Mistral models, from Ministral to Le Chonk","IX. DeepSeek, natively","X. Learn with the operations we already own","XI. Data, tokenizers, state and optimization","XII. Rebuild nanochat, then extend the training pipeline"]},{"b":"psionic","t":"1. Learning a number","u":"/books/psionic/ch001-learning-a-number","s":"implemented","h":["Run it","A model is a rule with a knob","Measure the error","Which direction should the knob turn?","Implement the equation once","Write the expectations before the implementation","Keep the work and storage bounded","Publish a result only after the work succeeds","Train, then predict","Why stop near two instead of exactly at two?","Make a bad request","Try a change"]},{"b":"psionic","t":"2. Shapes and storage","u":"/books/psionic/ch002-shapes-and-storage","s":"implemented","h":["Run it","Give a flat list a shape","Count before multiplying","Find one value","Storage belongs to the caller","Refuse first, stage next, publish last","The complete example","Checks and their limits","Try a change"]},{"b":"psionic","t":"3. A tensor is a view of memory","u":"/books/psionic/ch003-a-tensor-is-a-view-of-memory","s":"implemented","h":["Run it","Separate storage from a view","Slice, transpose and broadcast","Materialize and write through a view","A saved value remembers the storage version","Evidence and the next step"]},{"b":"psionic","t":"4. Numbers and matrices","u":"/books/psionic/ch004-numbers-and-matrices","s":"implemented","h":["Run the complete example","Specify the numbers before calculating","One request, explicit operand shapes","Add values, then add rows","Multiply a rectangular matrix","Gather rows without changing their order","Turn scores into probabilities","Normalize a row","Validate, stage and publish","The complete program","Check against something independent","Try a change"]},{"b":"psionic","t":"5. A standard library of tensor operators","u":"/books/psionic/ch005-a-standard-library-of-tensor-operators","s":"implemented","h":["Run it","Ask for a plan before asking for values","Broadcasting is a shape rule and a derivative rule","Stable discrete choices have explicit conventions","Numerical work has a named contract","Stage the whole result before publication","An explicit VJP before an automatic tape","Work a convolution and its loss backward","What the checks establish"]},{"b":"psionic","t":"6. One tensor, several devices and dtypes","u":"/books/psionic/ch006-one-tensor-several-devices-and-dtypes","s":"implemented","h":["Run the chapter","A handle owns a reference, a view describes addresses","Placement is an explicit operation","Storage format is a contract","Randomness belongs to a logical counter","Completion protects lifetimes","One source, measured numerical behavior"]},{"b":"psionic","t":"7. Reading original weights","u":"/books/psionic/ch007-reading-original-weights","s":"implemented","h":["Run the whole slice","Read a byte contract first","Name our supported profile","Admit the prefix before slicing","Publish an inventory only when it is complete","Bind the complete bundle to expected identities","BF16 is a bit placement operation","Decode a window, then use the existing kernels","Checks that can disagree with the implementation","Try a change"]},{"b":"psionic","t":"8. Models travel between frameworks","u":"/books/psionic/ch008-models-travel-between-frameworks","s":"implemented","h":["Run the example and the external round trip","Separate architecture, parameters and training state","Write a complete named map","Keep a stable language boundary","Exchange a live tensor through DLPack","Consume once, then release once","Continue learning, export, reload"]},{"b":"psionic","t":"9. Text becomes a model request","u":"/books/psionic/ch009-text-becomes-a-model-request","s":"implemented","h":["Run the example","Pin a renderer and tokenizer together","A typed question has ordered options","Specialize the actual two-turn template","Unicode normalization changes the bytes before BPE","Split before merging","Byte-pair encoding is ranked merging","A byte cut is only a candidate token cut","Native boundaries and explicit budgets","The complete example","Verification that can disagree with the candidate","Try a change"]},{"b":"psionic","t":"10. Attention without training","u":"/books/psionic/ch010-attention-without-training","s":"implemented","h":["Run it","Give every axis a job","Queries, keys and values","Positions are rotations","From attention to a block","Full and incremental execution","What the boundary promises"]},{"b":"psionic","t":"11. A hybrid sequence model","u":"/books/psionic/ch011-a-hybrid-sequence-model","s":"implemented","h":["Run a small hybrid","What differs from the teaching block?","The linear layer remembers in two places","Full attention still needs a KV cache","Compose the two states"]},{"b":"psionic","t":"12. Decisions have a different mask","u":"/books/psionic/ch012-decisions-have-a-different-mask","s":"implemented","h":["Run two independent branches","A block is not a causal triangle","Snapshot the whole hybrid state","Put the pieces together"]},{"b":"psionic","t":"13. Read the options","u":"/books/psionic/ch013-read-the-options","s":"implemented","h":["Two different probabilities","From a distribution to a typed result","Run a tiny readout"]},{"b":"psionic","t":"14. Execute Elephant","u":"/books/psionic/ch014-execute-elephant","s":"implemented","h":["Bind original weights","Prepare and execute a typed decision","Try the original files","How fast is it?","What the checks establish"]},{"b":"psionic","t":"15. Execute Mammoth","u":"/books/psionic/ch015-execute-mammoth","s":"implemented","h":["Plan the storage","Open both shards","Try the original files","How the reference was produced","What the checks establish"]},{"b":"psionic","t":"16. Are the probabilities any good?","u":"/books/psionic/ch016-are-the-probabilities-any-good","s":"implemented","h":["The calibration the bundle supplies","The published answer","Measuring decision quality","Elephant on a small held-out set","What the checks establish"]},{"b":"psionic","t":"17. Qualify honestly","u":"/books/psionic/ch017-qualify-honestly","s":"implemented","h":["A policy is a frozen record","Chapter 14's policies","A result binds the build","The verdict is the exit status","Failures are stated precisely","A summary is checked by recomputing it","Run the checks","What this establishes"]},{"b":"psionic","t":"18. Time a decision","u":"/books/psionic/ch018-time-a-decision","s":"implemented","h":["Read clocks around real work","Observe the file cache","Retain the workload before publishing a number","A small statistics example"]},{"b":"psionic","t":"19. Keep the model resident","u":"/books/psionic/ch019-keep-the-model-resident","s":"implemented","h":["Plan before allocating","Bind verification records to the mapped file","Reuse allocations without reusing another request's state"]},{"b":"psionic","t":"20. Serve `/v1/systemone`","u":"/books/psionic/ch020-serve-systemone","s":"implemented","h":["The toy model","The request","Refusals","The served model","One decision at a time","Run the server","Serve Elephant","Serve Elephant on the GPU","What the checks establish","Serving the original Mammoth checkpoint"]},{"b":"psionic","t":"21. The protobuf wire","u":"/books/psionic/ch021-the-protobuf-wire","s":"implemented","h":["One door, two encodings","Reading the head","The answer","How it is checked","Limits"]},{"b":"psionic","t":"22. Run it live","u":"/books/psionic/ch022-run-it-live","s":"implemented","h":["A process is not ready just because it exists","Supervise failures with a bounded policy","Install one immutable build under the user manager","Account without keeping private conversations"]},{"b":"psionic","t":"23. Make the numbers move","u":"/books/psionic/ch023-make-the-numbers-move","s":"implemented","h":["Keep a prefix snapshot separate from suffix work","Do not reserve a CPU model that will run on the device","Change one thing, keep the raw samples","Follow the actual execution path"]},{"b":"psionic","t":"24. A Pylon answers decisions","u":"/books/psionic/ch024-a-pylon-answers-decisions","s":"implemented","h":["What is test-only here","One job on paper","What the running Pylon decides","The program","Run it","Restarting a Pylon","An original GPT-OSS model answers public text","What this does not do yet","In the other books"]},{"b":"psionic","t":"25. The API fans out","u":"/books/psionic/ch025-the-api-fans-out","s":"implemented","h":["One decision through the fleet","The answer belongs to this attempt","A warm route does not wait for another discovery window","Deadlines and the local door","Run it","What this does not establish"]},{"b":"psionic","t":"26. Check the mesh","u":"/books/psionic/ch026-check-the-mesh","s":"implemented","h":["Report only accepted remote work","Sample after the answer","Compare decisions, not their route metadata","Totals any reader can recompute","Check the changed scope"]},{"b":"psionic","t":"27. A public mesh","u":"/books/psionic/ch027-a-public-mesh","s":"implemented","h":["Join with a learned checkpoint","Keep the layers separate","Pin actual models","Bound free work","Make a request","Check the boundary"]},{"b":"psionic","t":"28. A decision arrives while play continues","u":"/books/psionic/ch028-a-decision-arrives-while-play-continues","s":"implemented","h":["A reply is not a frame","What stays the same while the world moves","One ticket, bounded storage","The clock is an effect","A cancelled HTTP slot belongs to nobody","The next consumer is deliberately small","What must be checked"]},{"b":"psionic","t":"29. A guard asks a Pylon","u":"/books/psionic/ch029-a-guard-asks-a-pylon","s":"partly implemented","h":["Three authored options","Observe after the game has stepped","Keep policy in a separate Coax library","Try and check the slice"]},{"b":"psionic","t":"30. Measure a guard decision","u":"/books/psionic/ch030-measure-a-guard-decision","s":"implemented","h":["Freeze the question before observing the answer","A runnable evaluation example","A contract is only the first gate","Three clocks and one terminal outcome","Capture a real cohort without inventing successes","Interpret the measurement at its actual scope"]},{"b":"psionic","t":"31. Directions on request","u":"/books/psionic/ch031-directions-on-request","s":"partly implemented","h":["Start with something the game knows","Five contexts, not an inflated dataset","Put a strong local rule beside the model","Compose meaning with ownership","The page integration boundary","A bounded live API result"]},{"b":"psionic","t":"32. A guard gives directions","u":"/books/psionic/ch032-a-guard-gives-directions","s":"implemented","h":["Ask for a current need","Put the local line before the network","A callback stages; the current frame decides","Finish gameplay, then draw the current view","Qualify the slice without overstating the evidence"]},{"b":"psionic","t":"33. Measure the work and plan the memory","u":"/books/psionic/ch033-measure-the-work-and-plan-the-memory","s":"partly implemented","h":["The counting rules","Count the weights","Count the state and the scratch","Count the work of a step","Measure the host","Plan the memory","Refuse what does not fit","Check it","What is not built yet","Sources"]},{"b":"psionic","t":"34. Benchmark against llama.cpp and cuBLAS","u":"/books/psionic/ch034-benchmark-against-llama-cpp-and-cublas","s":"partly implemented","h":["The protocol","Work it by hand","Two ways to the same statistics","The verdict","Run the worked example","Refuse an unfair comparison","Measure Psionic's kernels against cuBLAS","Check it","What is not built yet","Sources"]},{"b":"psionic","t":"35. Use every core","u":"/books/psionic/ch035-use-every-core","s":"partly implemented","h":["Why the worker count changes a sum","Fixed chunks","A tree-ordered merge","A matrix-vector product and attention heads","Run it","Refuse bad plans and incomplete runs","Run it on host threads","Check it","What is not built yet","Sources"]},{"b":"psionic","t":"36. Many questions at once","u":"/books/psionic/ch036-many-questions-at-once","s":"implemented","h":["One pass, each question's own arithmetic","The proof, before the device","On the RTX 4080","Prefix reuse across requests","What remains"]},{"b":"psionic","t":"37. A Coax compute subset","u":"/books/psionic/ch037-a-coax-compute-subset","s":"implemented","h":["Kernels are procedures over work items","The same source on the CPU","What coax cuda accepts","The host does effects","Run it","Warps and tensor cores","Limits"]},{"b":"psionic","t":"38. A tensor program becomes an execution plan","u":"/books/psionic/ch038-a-tensor-program-becomes-an-execution-plan","s":"implemented","h":["Run it","What the representation carries","Express a block once","Turn use counts into reusable storage","Three execution paths","Keep publication separate from workspace writes","A cache must know what changed","Check values and plans independently"]},{"b":"psionic","t":"39. Compile a general tensor program","u":"/books/psionic/ch039-compile-a-general-tensor-program","s":"implemented","h":["Run it","Declare the variation","Compile code once, specialize plans as needed","Check the specializations, not just the template"]},{"b":"psionic","t":"40. Add your own operator","u":"/books/psionic/ch040-add-your-own-operator","s":"implemented","h":["Run it","Register a contract","Supply Coax code outside the core","Keep compilation and ownership connected","Exercise inference, gradients and training"]},{"b":"psionic","t":"41. Attention in tiles","u":"/books/psionic/ch041-attention-in-tiles","s":"partly implemented","h":["Work two tiles by hand","Merge partials","The masks still hold","Load each key/value tile once","Chunked prefill","Split-K decode","The profile and its tolerance","Refusals","On the device","What this does not do yet","Production Metal 4 FlashAttention adoption","Sources"]},{"b":"psionic","t":"42. DeltaNet in chunks","u":"/books/psionic/ch042-deltanet-in-chunks","s":"partly implemented","h":["The recurrence, one token at a time","Work a two-token chunk by hand","One head's chunk","Prefill in chunks","Snapshots and resuming","The profile and its tolerance","Refusals","On the device","What this does not do yet","Sources"]},{"b":"psionic","t":"43. Fuse and replay","u":"/books/psionic/ch043-fuse-and-replay","s":"partly implemented","h":["A step as launches over spans","The step by hand","The kernels","When a chain may fuse","The plan","Run it","Refusals","Checks","On the GPU, recorded once","What is not built yet","Sources"]},{"b":"psionic","t":"44. Elephant on CUDA","u":"/books/psionic/ch044-elephant-on-cuda","s":"implemented","h":["The decision as one pass","Kernels for every step","The plan is data","Run it","Limits"]},{"b":"psionic","t":"45. Share the card","u":"/books/psionic/ch045-share-the-card","s":"implemented","h":["What streams, in what order","The same calculation","Run it beside gpt-oss","Limits"]},{"b":"psionic","t":"46. Mammoth on CUDA","u":"/books/psionic/ch046-mammoth-on-cuda","s":"implemented","h":["The shape is data","Run it","Where the time goes","On a 96 GB card","Limits"]},{"b":"psionic","t":"47. Elephant on Metal","u":"/books/psionic/ch047-elephant-on-metal","s":"implemented","h":["The same kernels, lowered for Metal","The host and the engine","Run it","Apple's matrix units","One prefix per request","Serving it","Limits"]},{"b":"psionic","t":"48. Integer matrix products","u":"/books/psionic/ch048-integer-matrix-products","s":"partly implemented","h":["The block format","Why 32 bits are enough","Quantizing one block by hand","One block's product by hand","The error bound, frozen first","Admission","The row kernel","The tiled kernel","Run it","On the device","Run the device kernels on the CPU","Run it on the RTX 4080"]},{"b":"psionic","t":"49. Read a GGUF file","u":"/books/psionic/ch049-read-a-gguf-file","s":"implemented","h":["A named format profile","Inspect before publishing","Run it"]},{"b":"psionic","t":"50. Quantized weights and caches","u":"/books/psionic/ch050-quantized-weights-and-caches","s":"partly implemented","h":["What the bits buy","Half precision by hand","The block layouts","Quantizing one Q4_0 block by hand","Importance-weighted quantization","Into chapter 48's kernels","An 8-bit KV cache","The quality card","Run it","What the checks compare","What remains","Dependencies"]},{"b":"psionic","t":"51. K-quants and lattice quants","u":"/books/psionic/ch051-k-quants-and-lattice-quants","s":"partly implemented","h":["Two levels of scales","Q2_K by hand","Q3_K by hand: 6 bits from two places","Q4_K and Q5_K: 12 bytes for 16 six-bit numbers","IQ4: a table instead of evenly spaced levels","IQ3 and IQ2: codes that name a point in a grid","Decoding a tensor","An independent oracle","Quality cards","Run it","What the checks compare","What remains"]},{"b":"psionic","t":"52. Tokenizers and chat templates","u":"/books/psionic/ch052-tokenizers-and-chat-templates","s":"implemented","h":["WordPiece and SentencePiece Unigram","Interpret a bounded template","Original data and an independent implementation"]},{"b":"psionic","t":"53. Choosing the next token","u":"/books/psionic/ch053-choosing-the-next-token","s":"partly implemented","h":["The rule, worked by hand","A random number generator with a name","Order and tie rule","Temperature, top-k and top-p","The draw","One step: stops, limit and cancellation","A grammar as a byte automaton","Masking the vocabulary","Guided generation","A JSON schema as an automaton","Masks for a real vocabulary","The second example"]},{"b":"psionic","t":"54. Search the Coax book","u":"/books/psionic/ch054-search-the-coax-book","s":"implemented","h":["Run it","What changed from the plan","A passage has an identity","Every passage carries its status","Words","BM25","Psionic's encoder","Rank and fuse","The index and its revision","A stale index","Search a small book","Measure it"]},{"b":"psionic","t":"55. Search without scanning everything","u":"/books/psionic/ch055-search-without-scanning-everything","s":"partly implemented","h":["Run it","The idea","Deterministic levels","Storage","The working list","Links stay sorted","Insert","Search","A trace by hand","The exhaustive oracle","Memory and the saved form","Measure it"]},{"b":"psionic","t":"56. Rerank the candidates","u":"/books/psionic/ch056-rerank-the-candidates","s":"partly implemented","h":["Run it","Merge the two lists","Seven features","The pairwise loss","Rerank and measure","A small example","Refusals","Criteria fixed before the run","Measure it","Checks","What this does not do yet","Sources"]},{"b":"psionic","t":"57. Answer from current sources","u":"/books/psionic/ch057-answer-from-current-sources","s":"partly implemented","h":["Run it","Words","Support","Citations and revisions","A small example","Refusals","Measure it","Checks","What this does not do yet","Sources"]},{"b":"psionic","t":"58. Continue a passage","u":"/books/psionic/ch058-continue-a-passage","s":"implemented","h":["The pinned files","The tokenizer","Positions","The key-value cache","Continuing","The program","Refusals","The original weights","The whole model against float64","Past position 64","What remains","Sources"]},{"b":"psionic","t":"59. Run in the browser","u":"/books/psionic/ch059-run-in-the-browser","s":"partly implemented","h":["Which encoder the browser may use","The admission rule","The files","The search","A hand-checked example","Refusals","Run it in a browser","Checks","What this does not do yet","Sources"]},{"b":"psionic","t":"60. Original MXFP4 weights","u":"/books/psionic/ch060-original-mxfp4-weights","s":"implemented","h":["Which original bytes?","Four bits hold a small signed number","Admit a finite decoding window","Decode without a rounding approximation","Use the shared implementation"]},{"b":"psionic","t":"61. A few experts, then a router","u":"/books/psionic/ch061-a-few-experts-then-a-router","s":"implemented","h":["Three experts we can check by hand","Select first, normalize second","Which experts are actually available?","Dispatch and gather through the shared kernels","Run the small mixture"]},{"b":"psionic","t":"62. Attention with sinks and a window","u":"/books/psionic/ch062-attention-with-sinks-and-a-window","s":"implemented","h":["Let the sink keep some probability","A window includes the current token","Rotate halves, and keep the YaRN concentration","Biased projections stay explicit","The expert activation has two different clamps","Publish the context and cache together","Run the two cache policies","Independent checks make the details visible"]},{"b":"psionic","t":"63. The harmony format","u":"/books/psionic/ch063-the-harmony-format","s":"implemented","h":["Message boundaries are tokens","Preserve bytes, then apply the model's split pattern","Render a typed message","Reasoning effort is system content","Parse a complete reply, including its stop","Bounds make the format an executable contract","Run the whole path"]},{"b":"psionic","t":"64. Execute gpt-oss-20b","u":"/books/psionic/ch064-execute-gpt-oss-20b","s":"implemented","h":["Pin a complete model before borrowing a row","Compose one complete transition","Choose and stop in Coax","Run the owned model","Qualify the original checkpoint"]},{"b":"psionic","t":"65. Original weights stay on the GPU","u":"/books/psionic/ch065-original-weights-stay-on-the-gpu","s":"implemented","h":["Count the complete session","Read selected packed coefficients directly","Check the real path cheaply"]},{"b":"psionic","t":"66. A complete CUDA decoder","u":"/books/psionic/ch066-a-complete-cuda-decoder","s":"implemented","h":["A launch program, authored in Coax","Qualify before timing","Run an actual prompt","Make the admitted address arithmetic cheap","Move the next bottleneck"]},{"b":"psionic","t":"67. Prefill together","u":"/books/psionic/ch067-prefill-together","s":"implemented","h":["Separate two measurements","Group selected tokens by expert","Causal attention across a chunk","Measure the result, keep the next gate honest"]},{"b":"psionic","t":"68. Coax kernels cooperate","u":"/books/psionic/ch068-coax-kernels-cooperate","s":"partly implemented","h":["Group kernels","A tile reduction, by hand","Every thread reaches every barrier","Lane exchange","A shared tile for a packed BF16 product","Capability admission","Run it","On the GPU","What is not built yet","Sources"]},{"b":"psionic","t":"69. Original MXFP4 products use matrix hardware","u":"/books/psionic/ch069-original-mxfp4-products-use-matrix-hardware","s":"partly implemented","h":["Coefficients are staged exactly","Activations become two BF16 limbs","One warp, sixteen rows, thirty-two tokens","The bound, written before comparing","Planning refuses devices without the instruction","Run it on the CPU","On the GPU","What is not built yet","Sources"]},{"b":"psionic","t":"70. Replay the device program","u":"/books/psionic/ch070-replay-the-device-program","s":"implemented","h":["Retain order and patch the changing arguments","Complete a step before updating its recording","Check behavior, then measure"]},{"b":"psionic","t":"71. Throughput is a gate","u":"/books/psionic/ch071-throughput-is-a-gate","s":"partly implemented","h":["The workload is frozen","Two goals, frozen first","Work it by hand","Deciding one goal","The whole gate","Run it on the CPU","Refusals","Where the prefill time goes","Expert products on the tensor cores","Checks","On the RTX 4080","What is not built yet"]},{"b":"psionic","t":"72. gpt-oss-20b on Metal","u":"/books/psionic/ch072-gpt-oss-on-metal","s":"implemented","h":["The kernels lower unchanged","The engine","Qualify against the CPU","How fast","Serve it","Limits"]},{"b":"psionic","t":"73. Execute gpt-oss-120b","u":"/books/psionic/ch073-execute-gpt-oss-120b","s":"implemented","h":["Identity changes before dimensions","Separate parameters, history and scratch","Measure the machine that actually runs"]},{"b":"psionic","t":"74. Fit 120b on the right device","u":"/books/psionic/ch074-fit-120b-on-the-right-device","s":"partly implemented","h":["Three ways a device can run 120b","Work it by hand first","The planner","Measure the link","Run it","What the planner refuses","Checks","What remains","Sources"]},{"b":"psionic","t":"75. Let the small model guess","u":"/books/psionic/ch075-let-the-small-model-guess","s":"implemented","h":["A wrong draft still contributes useful work","Verify a block, publish a committed prefix","Rolling back a ring requires its overwritten slots","Measure acceptance and the cost of verification"]},{"b":"psionic","t":"76. Verify a draft block in parallel","u":"/books/psionic/ch076-verify-a-draft-block-in-parallel","s":"partly implemented","h":["One block, by hand","Admission","Draft, commit, put back","Reading every row","The rule","Run it on the CPU","Refusals","Checks","On the RTX 4080","What is not built yet"]},{"b":"psionic","t":"77. Call a tool","u":"/books/psionic/ch077-call-a-tool","s":"implemented","h":["Offer only tokens that can finish an admitted argument","A valid call still needs the host's grant","Display is a separate decision"]},{"b":"psionic","t":"78. Device generation calls a tool","u":"/books/psionic/ch078-device-generation-calls-a-tool","s":"partly implemented","h":["Where the mask runs","Mask, then choose","Check the grant before anything runs","One request, one effect, and cancellation","Audit the receipt","Run the decisions without a GPU","The original model on the device","What is not built"]},{"b":"psionic","t":"79. Serve Responses","u":"/books/psionic/ch079-serve-responses","s":"implemented","h":["Choose the contract before writing the listener","Refuse ambiguous bytes first","Preserve the right reasoning","Stream typed progress","Keep effects small and state resident","Run and check"]},{"b":"psionic","t":"80. Two models, one card","u":"/books/psionic/ch080-two-models-one-card","s":"implemented","h":["The budget","Step 1: gpt-oss","Step 2: Elephant beside it","Step 3: check the card","Step 4: call them in turn","What it costs","Limits"]},{"b":"psionic","t":"81. Execute Ministral 4","u":"/books/psionic/ch081-execute-ministral-4","s":"partly implemented","h":["The pinned files","Tekken","Rotary positions","One layer","A model small enough to check by reading","A cache and the whole vocabulary","Run it","Refusals","The original weights","What remains","Sources"]},{"b":"psionic","t":"82. Original FP8 weights","u":"/books/psionic/ch082-original-fp8-weights","s":"partly implemented","h":["Which bytes?","One byte, one number","One scale per block","Decode, then write","Admit the pair from a file","A separate, approximate activation profile","Run it","How the checks know","What remains"]},{"b":"psionic","t":"83. A coding agent","u":"/books/psionic/ch083-a-coding-agent","s":"partly implemented","h":["The pinned checkpoint, read by its headers","The memory plan on this host","Mistral's function-calling format","Stack, the language the agent writes","Calls under a grammar","A stand-in policy and the measurement","The program","A call that does not parse","What this does not do yet","Sources"]},{"b":"psionic","t":"84. Attention through a latent","u":"/books/psionic/ch084-attention-through-a-latent","s":"partly implemented","h":["The two forms","Work one head by hand","Account the cache exactly","Run a sequence and measure the cache","Compare the forms","Run it","Refusals","What remains","Dependencies","Sources"]},{"b":"psionic","t":"85. Execute Mistral Small 7","u":"/books/psionic/ch085-execute-mistral-small-7","s":"partly implemented","h":["The pinned checkpoint, read by its headers","FP8 products","The router","The mixture layer","Rotary positions and the softmax scale","The latent-attention layer","The memory plan on this machine","The run","Refusals","What this does not do yet"]},{"b":"psionic","t":"86. Sparse attention and shared layers","u":"/books/psionic/ch086-sparse-attention-and-shared-layers","s":"partly implemented","h":["What Large 4 configures","The profile","Score the keys","Keep the top k","Attend over the kept keys","Check against an oracle","Share KV across layers","Mix NoPE and rotary layers","Cap the logits","YaRN for a long context","Run it","Refusals"]},{"b":"psionic","t":"87. The model's own draft head","u":"/books/psionic/ch087-the-models-own-draft-head","s":"partly implemented","h":["The target and its head","A block by hand","Drafting and verifying","The workload","Chapter 76's rule on this CPU","Sampling keeps the target's distribution","Refusals","Large 4's draft head","What this does not do yet"]},{"b":"psionic","t":"88. Execute a DeepSeek R1 distill","u":"/books/psionic/ch088-execute-a-deepseek-r1-distill","s":"implemented","h":["Start with a complete small model","Authenticate once, retain original rows","Qwen2 is its own architecture","The tokenizer chooses BOS","Keep reasoning separate from the final answer","Original-weight evidence and its limits","Caller obligations"]},{"b":"psionic","t":"89. DeepSeek’s front door","u":"/books/psionic/ch089-deepseeks-front-door","s":"implemented","h":["Run the front door","Render boundaries, then encode the plain runs","Carry only a bounded suffix","Publish a chunk together","The original V4.1 text tokenizer"]},{"b":"psionic","t":"90. Execute DeepSeek V2-Lite","u":"/books/psionic/ch090-execute-deepseek-v2-lite","s":"implemented","h":["The complete stack","Run a complete owned model","Admit original bytes before binding tensors","Original generation and its boundary"]},{"b":"psionic","t":"91. Routers that balance themselves","u":"/books/psionic/ch091-routers-that-balance-themselves","s":"implemented","h":["Separate the three profiles","Run the router","Retain the runner as well as the winners","A comparison carries both margins"]},{"b":"psionic","t":"92. Compressed and shared attention","u":"/books/psionic/ch092-compressed-and-shared-attention","s":"implemented","h":["Produce a compressed row","Keep rotary profiles distinct","Share by producer and query","Select blocks, then positions","Mix one shared KV head and retain sink mass"]},{"b":"psionic","t":"93. Many residual streams","u":"/books/psionic/ch093-many-residual-streams","s":"implemented","h":["Derive three kinds of coefficient","Read the previous mix, return the next one","Run the component","Publication and evidence"]},{"b":"psionic","t":"94. Memory by lookup","u":"/books/psionic/ch094-memory-by-lookup","s":"implemented","h":["Normalize once, admit a map","Hash the current token and three predecessors","Read 6,336 bytes per layer","Run and check it"]},{"b":"psionic","t":"95. V4.1's expert weights","u":"/books/psionic/ch095-v41s-expert-weights","s":"implemented","h":["Two layouts, separate scales","Route weighting belongs before the next grid","Run an owned mixture","Original component qualification"]},{"b":"psionic","t":"96. Hot experts in fast memory","u":"/books/psionic/ch096-hot-experts-in-fast-memory","s":"implemented","h":["Count uses, then choose residency","Keep the slot map stable during a step","Prefetch next-layer misses without installing them","Budget persistent and private bytes","Run and check it"]},{"b":"psionic","t":"97. Prefill layer by layer","u":"/books/psionic/ch097-prefill-layer-by-layer","s":"implemented","h":["A chunk is an explicit budget decision","Run each layer before advancing","Group routes without changing their meaning","Reuse coefficients across eight rows","Run and check it"]},{"b":"psionic","t":"98. Pack the cache exactly","u":"/books/psionic/ch098-pack-the-cache-exactly","s":"implemented","h":["Three grids","Publish a whole row batch","Budget work independently","Run and check it"]},{"b":"psionic","t":"99. A decode step with no host waits","u":"/books/psionic/ch099-a-decode-step-with-no-host-waits","s":"partly implemented","h":["One draw, by hand","The order on the device","The pick","Kernels that read the position on the device","Admission and the program","Checks","Run it","What is refused","On the RTX 4080","What remains"]},{"b":"psionic","t":"100. Execute DeepSeek V4.1 Flash on one machine","u":"/books/psionic/ch100-execute-deepseek-v41-flash-on-one-machine","s":"partly implemented","h":["Read the checkpoint without downloading it","Plan the bytes on this host","Compose the whole stack on small weights","Check it against a composed oracle","Run it","What it refuses","What running the real model needs","Sources"]},{"b":"psionic","t":"101. Maya's recipe: V4.1 Flash on one card","u":"/books/psionic/ch101-mayas-recipe-v41-flash-on-one-card","s":"partly implemented","h":["What the recipe is","Count the bytes by hand","Rewrite the manifest","The prompt skip","Place the experts","The cost of one token","Run it","What it refuses","Checks","What remains","Dependencies","Sources"]},{"b":"psionic","t":"102. Verify drafts by expected gain","u":"/books/psionic/ch102-verify-drafts-by-expected-gain","s":"partly implemented","h":["Expected tokens, by hand","The rule","Where the inputs come from","Run it","On the RTX 4080","Checks","What is not built yet","Production adaptive DSpark & cross-model cache translation","Sources"]},{"b":"psionic","t":"103. Learning with arrays","u":"/books/psionic/ch103-learning-with-arrays","s":"implemented","h":["A simulator whose truth we know","Split by session","Scale with training statistics","Three models","Gradients by hand","Minibatch SGD","What \"better\" means","When the larger model loses","Supported profile","How it is checked","What this does not do yet"]},{"b":"psionic","t":"104. Gradients as a program","u":"/books/psionic/ch104-gradients-as-a-program","s":"implemented","h":["A model is a list of operations","Forward saves every value","Backward walks the list in reverse","Chapter 103's models as programs","Training through the tape","Supported profile","How it is checked","What this does not do yet"]},{"b":"psionic","t":"105. Make a model fail, then find out why","u":"/books/psionic/ch105-make-a-model-fail-then-find-out-why","s":"implemented","h":["The trainer and its record","Work the faults by hand first","Dropout that can be replayed","The diagnosis","What the classifier shows","Supported profile","How it is checked","What this does not do yet"]},{"b":"psionic","t":"106. Differentiate any tensor program","u":"/books/psionic/ch106-differentiate-any-tensor-program","s":"implemented","h":["What gradients are wanted","Which values a backward step reads","The tape","The rules","Running a tape","A network built from registered operators","How it is checked","Limits"]},{"b":"psionic","t":"107. Transform functions, not just tensors","u":"/books/psionic/ch107-transform-functions-not-just-tensors","s":"implemented","h":["Build one function, then reuse it","Ask for a product when the matrix is unnecessary","State what the derivative means","Batch the transformed function","Make storage and work explicit","Keep qualification separate from applicability"]},{"b":"psionic","t":"108. Choose the next example to learn from","u":"/books/psionic/ch108-choose-the-next-example-to-learn-from","s":"implemented","h":["The pool and its checker","Four scores","Work the scores by hand","Buying a batch","The loop","Sealing the selector","Comparing with random selection","What the run shows","Refusals","Supported profile","How it is checked","What this does not do yet"]},{"b":"psionic","t":"109. Learn a physical system","u":"/books/psionic/ch109-learn-a-physical-system","s":"implemented","h":["First make the teacher trustworthy","Freeze whole experiments before learning","Learn two state increments","One-step accuracy is a different question from rollout accuracy","Check the complete construction"]},{"b":"psionic","t":"110. A grid world that learns, plans and recovers","u":"/books/psionic/ch110-a-grid-world-that-learns-plans-and-recovers","s":"partly implemented","h":["The world","Plan exactly","Check the planner two other ways","Learn the same table from episodes","When a wall moves","A planted shortcut","Refusals","Supported profile","How it is checked","What this does not do yet"]},{"b":"psionic","t":"111. Recover the physics from the motion","u":"/books/psionic/ch111-recover-the-physics-from-the-motion","s":"implemented","h":["An inverse problem needs known inputs","Write the actual solver on a tape","Compare predicted motion with observations","Check gradients before trusting the fit","Fit under a stated work budget","Change observation noise and sampling without retuning","Motion can leave a coefficient unidentified","Keep numerical proof and coverage proof distinct"]},{"b":"psionic","t":"112. Bytes and a small language model","u":"/books/psionic/ch112-bytes-and-a-small-language-model","s":"implemented","h":["Likelihood and a complete update","Seeded generation","Check the experiment"]},{"b":"psionic","t":"113. Differentiate a decoder","u":"/books/psionic/ch113-differentiate-a-decoder","s":"implemented","h":["The model","One position at a time","The backward pass","A full training run"]},{"b":"psionic","t":"114. Compile the backward pass","u":"/books/psionic/ch114-compile-the-backward-pass","s":"partly implemented","h":["Plan a network by hand","The instructions","From the tape to a schedule","Lifetimes and placement","Recomputation and a memory goal","Running the program","The example","How it is checked","What is not here yet","Sources"]},{"b":"psionic","t":"115. Train the whole tiny decoder","u":"/books/psionic/ch115-train-the-whole-tiny-decoder","s":"implemented","h":["The corpus and its symbols","A split that cannot leak","The baseline, frozen first","The model and the held-out score","One training step","Checkpoints and resume","Seeded generation","The run","Checks","Limits"]},{"b":"psionic","t":"116. Train within a memory budget","u":"/books/psionic/ch116-train-within-a-memory-budget","s":"partly implemented","h":["Where the bytes go","Two ways to hold less","The planner","Low-precision gradients and the loss scale","The planned step","The run"]},{"b":"psionic","t":"117. Models are compositions of modules","u":"/books/psionic/ch117-models-are-compositions-of-modules","s":"partly implemented","h":["Entries and names","Building a model","Working the layout by hand","Names, modes and freezing","Saving and loading by name","The program","How it is checked","A convolutional module","A same-shape residual block","Pooling","Toward ResNet-18 on CIFAR-10","What is not here yet"]},{"b":"psionic","t":"118. One trainer for every model","u":"/books/psionic/ch118-one-trainer-for-every-model","s":"partly implemented","h":["The interface","Batches","The step","One step by hand","Three models, one loop","Evaluation and early stopping","Checkpoints","The programs","How it is checked","A new model: an MLP on real MNIST","The same trainer for a CNN","A residual model uses the same trainer"]},{"b":"psionic","t":"119. Change an activation, change the answer","u":"/books/psionic/ch119-change-an-activation-change-the-answer","s":"implemented","h":["A task with a known shortcut","Naming an activation","Replacing an activation","Measuring the shortcut's effect by hand","Choosing a site on development pairs","Controls first, then the verdict","The run","What the run shows","Checks","Limits"]},{"b":"psionic","t":"120. Data and resumable state","u":"/books/psionic/ch120-data-and-resumable-state","s":"implemented","h":["Rows and their provenance","Which rows belong together","One split per group","The audit","A feature known after the outcome","Preprocessing from training rows only","Run the example","Checks","What this does not cover","Sources"]},{"b":"psionic","t":"121. Feed the accelerator","u":"/books/psionic/ch121-feed-the-accelerator","s":"partly implemented","h":["Dependencies","The plan","Where each row starts","Fill the rows","The ring and backpressure","One thread playing every part","How long the device waits","Run the example","What the loader refuses","Run it on host threads","Checks","What this does not cover"]},{"b":"psionic","t":"122. A checkpoint holds the whole experiment","u":"/books/psionic/ch122-a-checkpoint-holds-the-whole-experiment","s":"implemented","h":["Documents, splits and packing","The record","Publishing atomically","The run","Checks"]},{"b":"psionic","t":"123. Learn a tokenizer","u":"/books/psionic/ch123-learn-a-tokenizer","s":"implemented","h":["Pin the splitting rule","Train the pairs","Serialize and use the learned vocabulary","Run the small example","Conversation tokens"]},{"b":"psionic","t":"124. AdamW, Muon and explicit precision","u":"/books/psionic/ch124-adamw-and-explicit-precision","s":"implemented","h":["One update","Groups, precision and admission","Resume","Checks","Muon: nanochat's matrix optimizer"]},{"b":"psionic","t":"125. Execute the pinned nanochat GPT","u":"/books/psionic/ch125-execute-the-pinned-nanochat-gpt","s":"implemented","h":["What the pinned profile computes","An oracle written from the reference","A checkpoint without pickle","Admission in Coax"]},{"b":"psionic","t":"126. Execute nanochat exactly","u":"/books/psionic/ch126-execute-nanochat-exactly","s":"partly implemented","h":["What the engine does","Work one reply by hand","Render for completion","Generate","Run it","An independent oracle","What remains","Sources"]},{"b":"psionic","t":"127. Differentiate nanochat","u":"/books/psionic/ch127-differentiate-nanochat","s":"implemented","h":["The profile","Work the new derivatives by hand","The pieces","The backward pass","Run it","The checks","What this does not claim","Sources"]},{"b":"psionic","t":"128. A complete pretraining run","u":"/books/psionic/ch128-a-complete-pretraining-run","s":"partly implemented","h":["The profile","The corpus, the split and the tokenizer","Bits per byte, by hand","The plan and its envelope","A step, and the order of windows","Checkpoint, resume and the acceptance rule","Run it","The recorded run","Checks","What remains","Sources"]},{"b":"psionic","t":"129. Train a whole model on one GPU","u":"/books/psionic/ch129-train-a-whole-model-on-one-gpu","s":"partly implemented","h":["A useful-scale decoder","The tiny decoder on the device","What runs where","The step kernels","Will it fit","Decisions on the host","The same launches on the CPU","The tolerance, frozen first","The program","Refusals","On the device","How it is checked"]},{"b":"psionic","t":"130. Profile a training step","u":"/books/psionic/ch130-profile-a-training-step","s":"partly implemented","h":["The step, phase by phase","Counting the work","The least time","The report","Run it","What it refuses","On the hardware","How it is checked","A useful-scale step","What is not here yet","Public API","Dependencies"]},{"b":"psionic","t":"131. Train the same model eager and compiled","u":"/books/psionic/ch131-train-the-same-model-eager-and-compiled","s":"partly implemented","h":["The record of a run and a comparison","Three paths","Memory and launches, by hand","When compiling wins","The run","Measured on this machine","Checks","A compiled GPU step","What remains","Sources"]},{"b":"psionic","t":"132. Train across devices","u":"/books/psionic/ch132-train-across-devices","s":"partly implemented","h":["Who owns which rows","The order of the all-reduce","Every device reports, once, in time","The step","What the all-reduce sends","The program","Refusals","On threads and on the GPU","How it is checked","What is not here yet","Public API","Sources"]},{"b":"psionic","t":"133. A tensor spread over devices","u":"/books/psionic/ch133-a-tensor-spread-over-devices","s":"partly implemented","h":["Layouts","Place and gather","Redistribution","What a redistribution costs","The layout of a product","Running the operations","Propagation","The program","Refusals","How it is checked","What remains","Sources"]},{"b":"psionic","t":"134. Data-parallel training","u":"/books/psionic/ch134-data-parallel-training","s":"partly implemented","h":["Who owns what","Reports at the accumulation boundary","The sum, bucket by bucket","The caller's loop","When the all-reduce can overlap backward","The program","Refusals","How it is checked","What is not here yet","Public API","Sources"]},{"b":"psionic","t":"135. Fully sharded training","u":"/books/psionic/ch135-fully-sharded-training","s":"partly implemented","h":["Who owns what","The gather and the reduce-scatter by hand","The step on each rank","The caller's loop","Bytes on each rank","Bytes a step moves","A sharded checkpoint","The program","Refusals","How it is checked","What is not here yet","Public API"]},{"b":"psionic","t":"136. Supervised conversations and tools","u":"/books/psionic/ch136-supervised-conversations-and-tools","s":"partly implemented","h":["The profile","The task and the split","The mask, by hand","A loss on chosen targets","Asking with the tool","The acceptance rule","Run it","The recorded run","Checks","What remains","Sources"]},{"b":"psionic","t":"137. Continued pretraining and task adaptation","u":"/books/psionic/ch137-continued-pretraining-and-task-adaptation","s":"partly implemented","h":["The profile","The domain workload","One audit over both corpora","The plan names its base","The mixture, by hand","The promotion rule, by hand","Run it","The recorded runs","Checks","What remains","Sources"]},{"b":"psionic","t":"138. Preferences and reward models","u":"/books/psionic/ch138-preferences-and-reward-models","s":"partly implemented","h":["The profile","Pairs with known ground truth","The tiny pair, by hand","The reward model and the Bradley-Terry loss","DPO","Held-out accuracy and its interval","The acceptance rules","Run it","The recorded run","Checks","What remains","Sources"]},{"b":"psionic","t":"139. Learn from rollouts","u":"/books/psionic/ch139-learn-from-rollouts","s":"partly implemented","h":["The profile","The recipe","The starting policy","Rollouts","The checker","Advantages, by hand","The policy gradient, by hand","On-policy means this version","Held-out success and the acceptance rule","Run it","The recorded run","Checks"]},{"b":"psionic","t":"140. Post-train a decision model","u":"/books/psionic/ch140-post-train-a-decision-model","s":"partly implemented","h":["The base model and the task","The adapter","One step by hand","Backward through the frozen layers","Which rows may train","Train, checkpoint, resume","Identity and serving","The gates decide promotion","Checks","What remains","Sources"]},{"b":"psionic","t":"141. Distill Mammoth into Elephant","u":"/books/psionic/ch141-distill-mammoth-into-elephant","s":"partly implemented","h":["The corpus and the recorded answers","The student","The targets","The loss, by hand","Training","The card and the frozen rule","The student's identity","Refusals","Checks","What remains","Dependencies","Sources"]},{"b":"psionic","t":"142. Pixels, convolutions and patches","u":"/books/psionic/ch142-pixels-convolutions-and-patches","s":"partly implemented","h":["Image tensors and layouts","A preprocessing profile","Resizing by hand","The resize and the preprocessing","Three more resize rules","Resize, then crop","An independent reference","Convolution","Gradients","Patches","Lower into chapter 38's tensor IR","Position tables at a new size"]},{"b":"psionic","t":"143. Elephant and Mammoth see","u":"/books/psionic/ch143-elephant-and-mammoth-see","s":"partly implemented","h":["The vision tower in the checkpoints","Which images are admitted","Bytes to patch rows","The patch embedding and its positions","One block, with 2-D rotary positions","The merger","Where image tokens sit in a request","The program","Refusals","On the original weights","Supported profile","How it is checked"]},{"b":"psionic","t":"144. See with C-RADIO","u":"/books/psionic/ch144-see-with-c-radio","s":"partly implemented","h":["The pinned checkpoint","Which images are admitted","Bytes to patch rows","The patch embedding and its positions","The block and the outputs","The program","Refusals","On the original weights","Supported profile","How it is checked","What this does not do yet","Dependencies"]},{"b":"psionic","t":"145. Compress and reconstruct an image","u":"/books/psionic/ch145-compress-and-reconstruct-an-image","s":"partly implemented","h":["The shape of the codec","Upsampling is the convolution's gradient","A latent becomes 4 bits","Encode and decode by hand","Gradients","Procedural images","Training","Acceptance","Run the example","What the codec refuses","Checks","What this chapter does not do"]},{"b":"psionic","t":"146. Noise, diffusion and flow","u":"/books/psionic/ch146-noise-diffusion-and-flow","s":"implemented","h":["Run it","The target","Normal draws","Schedules","The forward process and the posterior","Four objectives","Training","Samplers","The gate","Run the example","What it refuses","How it is checked"]},{"b":"psionic","t":"147. Poses have conventions","u":"/books/psionic/ch147-poses-have-conventions","s":"implemented","h":["Run it","What a convention declares","Four ways to write one rotation","Axes, units and handedness","Skeletons and forward kinematics","Root modes and frame rates","Retargeting","Run the example","Checks","What this chapter does not do"]},{"b":"psionic","t":"148. Motion tokens become poses","u":"/books/psionic/ch148-motion-tokens-become-poses","s":"partly implemented","h":["Run it","A code is a pose segment","Encode by hand","A walking leg","Continuity","Fill in masked tokens","Run the example","Checks","What this chapter does not do","Sources"]},{"b":"psionic","t":"149. Execute MotionBricks","u":"/books/psionic/ch149-execute-motionbricks","s":"partly implemented","h":["Run it","The package","The tokenizer","The decoder","The pose predictor","Generation","Run the example","Refusals","Checks","What this chapter does not do","Sources"]},{"b":"psionic","t":"150. Put generated motion in the Metaverse","u":"/books/psionic/ch150-put-generated-motion-in-verse","s":"partly implemented","h":["Run it","The target","The joint map","The handoff","Generation under a budget","Feet","Into Cast.bin","The scene","Refusals","Checks","What this chapter does not do","Sources"]},{"b":"psionic","t":"151. Waveforms and spectral features","u":"/books/psionic/ch151-waveforms-and-spectral-features","s":"partly implemented","h":["The transform, worked by hand","Twiddles","The reference: a direct DFT","The fast transform","Windows","Admitting audio","Frames and padding, by hand","Mel filter banks","Log-mel features and normalization","The program","Refusals","Checks"]},{"b":"psionic","t":"152. A speech encoder","u":"/books/psionic/ch152-a-speech-encoder","s":"partly implemented","h":["Run it","The types","Lengths, by hand","Planning a batch","The weights","Linear maps and the feed-forward module","Relative positions","Attention","The convolution module","A layer","Subsampling and masks","Encoding a batch"]},{"b":"psionic","t":"153. Transcribe with Parakeet","u":"/books/psionic/ch153-transcribe-with-parakeet","s":"implemented","h":["The resident engine: the current route","What the official reference caught","Recorded reference and evaluation","Speed without changing a reduction","The pinned checkpoint","Run it","Transcribe a file without losing its last samples","The checkpoint, by hand","The types and the layout","The prediction network","The joint network","Greedy decoding, by hand"]},{"b":"psionic","t":"154. Transcribe while someone speaks","u":"/books/psionic/ch154-transcribe-while-someone-speaks","s":"implemented","h":["What streams, and what does not","Chunks and frames","Partial and final hypotheses","Run it","The independent check","What is refused","Original-weight streaming on Linux","Linux CLI adoption","Further adoption","Sources"]},{"b":"psionic","t":"155. Speak the answer","u":"/books/psionic/ch155-speak-the-answer","s":"partly implemented","h":["What this is, and what it is not","Text to words","Words to phones","Phones to spectra","Frames to samples, and back","Griffin-Lim, one block at a time","The stream","Barge-in","Checking the output","Run it","What is refused","How it is checked"]},{"b":"psionic","t":"156. A spectral neural operator","u":"/books/psionic/ch156-a-spectral-neural-operator","s":"implemented","h":["Run it","One layer, worked by hand","The two-dimensional transform","Kept modes and the layer's shape","The forward pass","The backward pass","Resolution","Refusals","How it is checked","What this does not do","Dependencies","Sources"]},{"b":"psionic","t":"157. Learn Darcy flow","u":"/books/psionic/ch157-learn-darcy-flow","s":"implemented","h":["Run it","The solver, worked by hand","Convergence under refinement","The data","The network","The backward pass","Training","A longer run","Refusals","How it is checked","What this does not do","Sources"]},{"b":"psionic","t":"158. A field around a shape","u":"/books/psionic/ch158-a-field-around-a-shape","s":"implemented","h":["Run it","The sign convention","Three shapes by hand","A mesh, admitted","The nearest point","Inside or outside","Samples","Neighbourhoods on a grid","A point convolution","Refusals","How it is checked","What this does not do"]},{"b":"psionic","t":"159. Learn a scene from its views","u":"/books/psionic/ch159-learn-a-scene-from-its-views","s":"partly implemented","h":["Run it","The types","A ray through each pixel","Adding up a ray","The ground truth","A field on a grid","Rendering and the gradient of one ray","Fitting and measuring","A longer fit","Refusals","How it is checked","What this does not do"]},{"b":"psionic","t":"160. Execute DoMINO","u":"/books/psionic/ch160-execute-domino","s":"partly implemented","h":["Run it","The pieces and their limits","A flow with an exact answer","The geometry encoding","The local encoding and the stencil","The output network","Training and held-out error","Refusals","What remains","Sources"]},{"b":"psionic","t":"161. Forecast on a sphere","u":"/books/psionic/ch161-forecast-on-a-sphere","s":"partly implemented","h":["Run it","The transform, worked by hand","The data: a reaction-diffusion equation","The spherical Fourier layer","The forecaster","Rollouts and lead times","A longer run","Refusals","How it is checked","What this does not do","Dependencies","Sources"]},{"b":"psionic","t":"162. A recurrence you can inspect","u":"/books/psionic/ch162-a-recurrence-you-can-inspect","s":"implemented","h":["The recurrence, one token at a time","Work two tokens by hand","Layout","Gates you can read","The convolution and the token step","One head's chunk","Three forms","The profile and its tolerance","Snapshots, resuming and separate requests","Refusals","What this does not do yet","Sources"]},{"b":"psionic","t":"163. Execute Nemotron Nano","u":"/books/psionic/ch163-execute-nemotron-nano","s":"partly implemented","h":["The pinned checkpoint","A Mamba-2 layer, by hand","Attention and MLP layers","The profile and the oracle","Run it","The tokenizer","Original weights","The whole model","The whole model on the original weights","Refusals","What this does not do yet","Sources"]},{"b":"psionic","t":"164. Execute Nemotron Lightning","u":"/books/psionic/ch164-execute-nemotron-lightning","s":"partly implemented","h":["The pinned checkpoint, read by its headers","The router, by hand","A mixture layer","The profile and the oracle","The memory plan","Run it","Refusals","What this does not do yet","Sources"]},{"b":"psionic","t":"165. Sequences of observations","u":"/books/psionic/ch165-sequences-of-observations","s":"partly implemented","h":["The record","The byte form","The scene","The model","Fitting by least squares","Measuring predictions","A leak-free split","The codec contract","The scheduler contract","Run the example","What it refuses","Checks"]},{"b":"psionic","t":"166. One complete Cosmos3-Edge path","u":"/books/psionic/ch166-one-complete-cosmos3-edge-path","s":"partly implemented","h":["The pinned checkpoint","Real-weight slices","The path on synthetic weights","Run it","Task evaluation, apart from numbers","Refusals","What is not done yet","Dependencies","Sources"]},{"b":"psionic","t":"167. Command a robot","u":"/books/psionic/ch167-command-a-robot","s":"implemented","h":["A source-bound position IK query","One update that includes orientation","Solve until both pose coordinates are close","A genuine linearized posture nullspace","Put a rest-to-rest edge on a fixed grid","Joint errors become forces","A gain test with an isolated rotor","Couple PD to the owned plant","Measure a nonlinear hold, track, disturbance and brake","Search a frozen gain family on the owned plant","One common rate-error damping law","Test the frozen law on prospective C and D"]},{"b":"psionic","t":"168. Imitation before robotics scale","u":"/books/psionic/ch168-imitation-before-robotics-scale","s":"implemented","h":["Define the system before collecting demonstrations","Learn the teacher instead of installing its answer","A good next action is different from a successful rollout","Read a small original NVIDIA artifact","Run the chapter"]},{"b":"psionic","t":"169. Execute a GR00T policy","u":"/books/psionic/ch169-execute-a-groot-policy","s":"implemented","h":["Choose the policy that actually has the embodiment","An observation has an exact meaning","Make the original model request","Follow every learned stage","State the numerical and ownership profile","Decode an action chunk before using it","Qualify the complete replay, then measure its cost"]},{"b":"psionic","t":"170. Close the simulated control loop","u":"/books/psionic/ch170-close-the-simulated-control-loop","s":"implemented","h":["Bind the scene before sending an action","Know which observation the model sees","Give the chunk a logical clock","Turn a pose command into motor controls","Replay controls without running the policy again","Keep numerical parity separate from task outcomes","Measure state and force sensitivities on the owned plant","Checkpoint the owned smooth plant","Give the owned plant a clock and a schedule","Gate the genuine adapter with paired clocks","Give positions and displacements different types","Check the source operator after lowering"]},{"b":"psionic","t":"171. Learn a gait in many worlds","u":"/books/psionic/ch171-learn-a-gait-in-many-worlds","s":"implemented","h":["First runnable slice: targets before a learner","A normalized scalar Gaussian policy primitive","A projected scalar-LQR PPO actor","Continue the same three seeds with a longer budget","Selected small-biped consumer","What the full chapter will teach","Math of the planned learner","The planned learner in Psionic","What the full learner still needs","Remaining acceptance checks and oracles","How Genesis does it","Dependencies"]},{"b":"psionic","t":"172. Benchmark a service, not a kernel","u":"/books/psionic/ch172-benchmark-a-service-not-a-kernel","s":"implemented","h":["A schedule from a named generator","A shadow","Percentiles by nearest rank","What is measured","One variable against a fixed baseline","Against the real servers","Limits"]},{"b":"psionic","t":"173. Serve a model with an honest capability","u":"/books/psionic/ch173-serve-a-model-with-an-honest-capability","s":"partly implemented","h":["Records, claims and entries","Narrow the claim to the record","Derive and publish the document","Check the document against its records","Admit against the document","Run it","What it refuses","The independent check","Limits","Sources"]},{"b":"psionic","t":"174. Clients, streams and background jobs","u":"/books/psionic/ch174-clients-streams-and-background-jobs","s":"partly implemented","h":["Jobs and their states","Admission","One step","Streams, cursors and polls","The hand trace","Running it","Independent checks","Refusals","What remains","Run the checks","Sources"]},{"b":"psionic","t":"175. Continuous batching and a fair scheduler","u":"/books/psionic/ch175-continuous-batching-and-a-fair-scheduler","s":"partly implemented","h":["The configuration and the request","One step","Fair shares by virtual time","A schedule by hand","Refusals","Independent checks","What concurrency buys, in a model","Steps on the RTX 4080","What remains","Sources"]},{"b":"psionic","t":"176. Paged state and a tiered prefix cache","u":"/books/psionic/ch176-paged-state-and-a-tiered-prefix-cache","s":"partly implemented","h":["Pages, frames and tables","Copy on write","The prefix trie","Three tiers","Admission charges pages","One step","A trace by hand","Run it","A measured hit rate","Refusals","Independent checks","What remains"]},{"b":"psionic","t":"177. Route, queue and scale replicas","u":"/books/psionic/ch177-route-queue-and-scale-replicas","s":"partly implemented","h":["Requests and replicas","The cost of a request","The router","A trace by hand","The autoscaler","The simulation","Run it","Refusals","Independent checks","What remains","Sources"]},{"b":"psionic","t":"178. Start fast","u":"/books/psionic/ch178-start-fast","s":"partly implemented","h":["The phases","Predict each phase","Ready only after warm-up","Reuse a compiled kernel only under its own key","Run it","Refuse what cannot start","Measure it on this host","Check it","What is not built yet","Sources"]},{"b":"psionic","t":"179. Ship without downtime","u":"/books/psionic/ch179-ship-without-downtime","s":"partly implemented","h":["Phases, events and refusals","The controller","Two builds in one simulation","A canary failure, traced by hand","What is refused","Run it","How it is checked","What remains","Sources"]},{"b":"psionic","t":"180. Observe, meter and price","u":"/books/psionic/ch180-observe-meter-and-price","s":"partly implemented","h":["A price is a total, rounded once","Quote, hold, settle","An invoice is the sum of the charges","One record per request","Change, not content","Run it","What it refuses","Checks","Limits","Sources"]},{"b":"psionic","t":"181. Survive failures","u":"/books/psionic/ch181-survive-failures","s":"partly implemented","h":["Faults and what the client sees","The policy machines","Exactly-once billing","The simulation","A crash, traced by hand","Running it","A fault mix against a baseline","Independent checks","Refusals","What remains","Run the checks","Sources"]},{"b":"psionic","t":"182. Disaggregate prefill and decode","u":"/books/psionic/ch182-disaggregate-prefill-and-decode","s":"partly implemented","h":["The snapshot","Receiving it","Same tokens after a handoff","What a transfer costs","Placing the workers","The simulation","A trace by hand","Run it","Refusals","Independent checks","What remains","Sources"]},{"b":"psionic","t":"183. Split a model across devices","u":"/books/psionic/ch183-split-a-model-across-devices","s":"partly implemented","h":["One all-reduce per half block","The plan","What each device holds","The two halves","The all-reduce","The run","Run it","Checked against an independent definition","Refusals","On host threads","What remains","Dependencies"]},{"b":"psionic","t":"184. A pipeline of models","u":"/books/psionic/ch184-a-pipeline-of-models","s":"partly implemented","h":["The stages and their contracts","The handoffs","What a barge-in reports","The latency budget","A turn by hand","Running it","Independent checks","Refusals","What remains","Run the checks","Sources"]},{"b":"psionic","t":"185. A decision model steers voice","u":"/books/psionic/ch185-a-decision-model-steers-voice","s":"partly implemented","h":["Conversations, questions and answers","The costs come first","The stand-in model","The gate","The budget is checked before anything runs","Steering the turn and the reply","One conversation by hand","Drawn conversations","What is refused","Independent checks","What is not built yet"]},{"b":"psionic","t":"186. Split a model into stages","u":"/books/psionic/ch186-split-a-model-into-stages","s":"partly implemented","h":["What a stage costs","A worked split","The planner","The boundary contract","Running the stages","The example","Refusals","The original weights","Checks","What remains","Dependencies","Sources"]},{"b":"psionic","t":"187. Stage packages","u":"/books/psionic/ch187-stage-packages","s":"partly implemented","h":["What a stage needs","The manifest","Building a package","Verifying a package","Loading only a verified package","The example","Refusals","The original weights","Checks","What remains","Dependencies","Sources"]},{"b":"psionic","t":"188. Peers, transport and discovery","u":"/books/psionic/ch188-peers-transport-and-discovery","s":"partly implemented","h":["Run it","Find the group","Connect","Direct and relayed paths","Join a private mesh","Two lanes","Refusals","How it is checked","What remains","Sources"]},{"b":"psionic","t":"189. Place the model","u":"/books/psionic/ch189-place-the-model","s":"partly implemented","h":["What the solver knows","What an assignment costs","The solver","Replanning when a peer leaves","Whole first","Running it","Refusals","Checks","What remains","Dependencies","Sources"]},{"b":"psionic","t":"190. Stage lifecycle and fencing","u":"/books/psionic/ch190-stage-lifecycle-and-fencing","s":"partly implemented","h":["Epochs, instances and generations","Fencing tokens","The coordinator","A worked trace","Running it","Refusals","Checks","What remains","Dependencies","Sources"]},{"b":"psionic","t":"191. Experts across machines and from disk","u":"/books/psionic/ch191-experts-across-machines-and-from-disk","s":"partly implemented","h":["How unevenly experts are used","A placement that balances the load","Dispatch, compute, combine","Counting the bytes","The time an exchange takes","Experts from disk","What a miss costs","Running it","Refusals","Checks","What remains","Dependencies"]},{"b":"psionic","t":"192. Route by saved work","u":"/books/psionic/ch192-route-by-saved-work","s":"partly implemented","h":["Peers, links and advertisements","The price of each way","The router","Claims are hints","The simulation","Running it","Independent checks","Refusals","What remains","Run the checks","Sources"]},{"b":"psionic","t":"193. Compress activations exactly","u":"/books/psionic/ch193-compress-activations-exactly","s":"partly implemented","h":["The frame","Byte planes","Coding a plane","Decoding and refusals","The example","Refusals","The original weights","Checks","What remains","Dependencies","Sources"]},{"b":"psionic","t":"194. Who can read the prompt","u":"/books/psionic/ch194-who-can-read-the-prompt","s":"partly implemented","h":["Tiers from evidence","What each peer sees","The policy","Worked by hand: three peers","Placing with trust as a hard constraint","Consent before the first byte","Running it","Refusals","Checks","What remains","Dependencies","Sources"]},{"b":"psionic","t":"195. Check a peer's work","u":"/books/psionic/ch195-check-a-peers-work","s":"partly implemented","h":["The stage","How far apart may the two backends be?","Admit the receipt","Decide whether to check","Compare","Count the verdict","Publish and recount","Run it","What remains","Sources"]},{"b":"psionic","t":"196. Work with Mesh-LLM","u":"/books/psionic/ch196-work-with-mesh-llm","s":"partly implemented","h":["What a peer advertises","From advertisement to claim","From advertisement to route","What a peer charges","Work it by hand","The wire","Check the peer","Run it","What it refuses","Checks","What remains","Sources"]},{"b":"psionic","t":"197. DeepSeek V4.1 Flash across stages","u":"/books/psionic/ch197-deepseek-v41-flash-across-stages","s":"partly implemented","h":["What crosses a cut","Work out the bytes by hand","The message and what the receiver checks","Plan the stages from the checkpoint's bytes","Run the stages","Run it","What it refuses","What remains","Checks","Sources"]},{"b":"psionic","t":"198. Mistral Large 4 across a mesh","u":"/books/psionic/ch198-mistral-large-4-across-a-mesh","s":"partly implemented","h":["The inventory from 54 headers","What crosses a cut","The plan","Run it","When it is refused","Checks","What remains","Sources"]},{"b":"psionic","t":"199. Le Chonk across a mesh","u":"/books/psionic/ch199-le-chonk-across-a-mesh","s":"partly implemented","h":["The boundary contract","The draft head on the last stage","Run it","When it is refused","Checks","What remains","Sources"]},{"b":"psionic","t":"215. Fit our own calibration, and refuse a stale one","u":"/books/psionic/ch215-fit-our-own-calibration","s":"implemented","h":["A model that is wrong in two different ways","Three kinds of map","A map knows what it is for","Measure, then gate","The test split, once","A new model version","Supported profile","How it is checked","What this does not do yet"]},{"b":"psionic","t":"216. Thresholds from written costs","u":"/books/psionic/ch216-thresholds-from-written-costs","s":"implemented","h":["Two tables of consequences","The expected cost of answering","The expected cost of escalating","A threshold record","Validation first, confirmation once","Supported profile","How it is checked","What this does not do yet"]},{"b":"psionic","t":"217. Record readings, join outcomes, watch drift","u":"/books/psionic/ch217-record-readings-join-outcomes-watch-drift","s":"implemented","h":["A record per decision, with no content","The world, and when its outcomes arrive","How unusual is a window's error?","Refits on a schedule","Other thresholds, from the log","Supported profile","How it is checked","What this does not do yet"]},{"b":"psionic","t":"218. A Pylon checks itself before serving","u":"/books/psionic/ch218-a-pylon-checks-itself-before-serving","s":"implemented","h":["The reference set","Reading an answer","The comparison","The identity gate","The doctor","On the RTX 4080","Supported profile","How it is checked","What this does not do yet"]},{"b":"psionic","t":"219. How far apart may two honest answers be?","u":"/books/psionic/ch219-how-far-apart-may-two-honest-answers-be","s":"implemented","h":["Fresh items, many backends","The distance","Comparing two backends","Rounds and their limits","A live round","Supported profile","How it is checked","What this does not do yet"]},{"b":"psionic","t":"220. Read a bounded ONNX graph","u":"/books/psionic/ch220-read-a-bounded-onnx-graph","s":"implemented","h":["A field at a time","Names from module paths","The graph, in order","Running it","How it is checked"]},{"b":"psionic","t":"221. Write a bounded ONNX graph","u":"/books/psionic/ch221-write-a-bounded-onnx-graph","s":"implemented","h":["A message is written before its length is known","Tensors and their types","The graph","Folding the scaling into the weights","How it is checked"]},{"b":"psionic","t":"222. A decision in milliseconds","u":"/books/psionic/ch222-a-decision-in-milliseconds","s":"partly implemented","h":["The model","Work it by hand first","Two engines","Parity, the card and the gate","Run it","What is refused","Measured on this CPU","The independent checks","What is not built"]},{"b":"psionic","t":"223. Distill Elephant into a small router","u":"/books/psionic/ch223-distill-elephant-into-a-small-router","s":"partly implemented","h":["The teacher is a stand-in","The student and the loss","Work it by hand first","Data and a leak-free split","Training under chapter 118's trainer","A fitted temperature","The card, the rule and the costs","Run it","Latency after training","What is refused","The independent checks","What is not built"]},{"b":"psionic","t":"224. Shadow a new model, then promote it","u":"/books/psionic/ch224-shadow-a-new-model-then-promote-it","s":"implemented","h":["A simulated decision","Identity","The shadow log","The report","Activation","How it is checked"]},{"b":"psionic","t":"225. Learn which model to call","u":"/books/psionic/ch225-learn-which-model-to-call","s":"implemented","h":["Tasks, three models and a price","With full information","Logs show one outcome","Four estimates","What the logs cannot tell","Supported profile","How it is checked","What this does not do yet"]},{"b":"psionic","t":"226. A machine whose state is a trace","u":"/books/psionic/ch226-a-machine-whose-state-is-a-trace","s":"implemented","h":["The machine","Admit the program first","One step","Run, then publish","How it is checked","What this does not do yet"]},{"b":"psionic","t":"227. Attention as exact memory","u":"/books/psionic/ch227-attention-as-exact-memory","s":"implemented","h":["Keys on a parabola","A hard-max read","Uniform keys sum","The machine with attention for memory","How it is checked","What this does not do yet"]},{"b":"psionic","t":"228. Arithmetic and branches from ReLU","u":"/books/psionic/ch228-arithmetic-and-branches-from-relu","s":"implemented","h":["A gated layer","Units from linear forms","The gadgets","Where exactness holds","How it is checked","What this does not do yet"]},{"b":"psionic","t":"229. Compile a gate graph into a block","u":"/books/psionic/ch229-compile-a-gate-graph-into-a-block","s":"implemented","h":["The block, and why it isn't chapter 10's","The language","What a program means","Scheduling","Running the block","How it is checked","Unified Attention+FFN compiler (exec-vm-v1)","What this does not do yet"]},{"b":"psionic","t":"230. A harness that catches the compiler","u":"/books/psionic/ch230-a-harness-that-catches-the-compiler","s":"implemented","h":["Three ways to run a program","Watching without changing what you watch","Programs from a seed","The planted bugs","The bug it found","How it is checked","Extending the harness to Attention+FFN blocks (exec-vm-v1)","What this does not do yet"]},{"b":"psionic","t":"231. An interpreter in weights, or one program in weights","u":"/books/psionic/ch231-an-interpreter-in-weights-or-one-program-in-weights","s":"implemented","h":["The machine","The universal interpreter","The specializer","Running the weights","Sizes and speed","How it is checked","The full chapter 226 stack+memory VM in dense weights (exec-vm-v1)","What this does not do yet"]},{"b":"psionic","t":"232. Decode in logarithmic time","u":"/books/psionic/ch232-decode-in-logarithmic-time","s":"implemented","h":["Why a hull","Inserting a store","Reading","The machine with a hull memory","No wall-clock figures","Supported profile","How it is checked","What this does not do yet","Production balanced-tree index (hull-v2 and hull-kv)"]},{"b":"psionic","t":"233. From hard-max to softmax","u":"/books/psionic/ch233-from-hard-max-to-softmax","s":"implemented","h":["Scores a softmax can use","The bound","Every quantity in a format","Where the format breaks it","What this means for the rest of Part XXIII","How it is checked","What this does not claim"]},{"b":"psionic","t":"234. Exact replay as a verification class","u":"/books/psionic/ch234-exact-replay-as-a-verification-class","s":"implemented","h":["A claim is three digests and a step count","Folding the rows before a window","The check","Every way to fail","Where Part XXIII uses it","Supported profile","How it is checked","What this does not do yet","Multi-device Pylon validation and trace quarantine (W4.2)"]},{"b":"psionic","t":"235. Can gradient descent learn exact execution?","u":"/books/psionic/ch235-can-gradient-descent-learn-exact-execution","s":"implemented","h":["Program families","Features","Training rows","Gradient descent","Rollout","Scoring","The example","How it is checked","Live GPU distillation falsification (trace-distill-v1, W3.2)"]},{"b":"psionic","t":"236. A frozen exact core with a learned interface","u":"/books/psionic/ch236-a-frozen-exact-core-with-a-learned-interface","s":"implemented","h":["The core","Sources","The controller","Factorial","Rollout and scoring","The example","How it is checked","Production hybrid runtime (hybrid-exec-v1)"]},{"b":"psionic","t":"237. Composable weight modules","u":"/books/psionic/ch237-composable-weight-modules","s":"implemented","h":["A module is its digest","Linking two modules","The seam","The references","How a user checks a module","Supported profile","How it is checked","What this does not do yet","Production package linker and coding-agent cores (module-v2, W2.2)"]},{"b":"psionic","t":"238. Pay for verified work","u":"/books/psionic/ch238-pay-for-verified-work","s":"implemented","h":["The ledger","Hold before the work runs","Decide after the check","Work it by hand","Run it","What it refuses","The wallet boundary","Recount from the log","Checks","Live qualification","Sources","In the other books"]},{"b":"psionic","t":"239. A suite is three digests","u":"/books/psionic/ch239-a-suite-is-three-digests","s":"implemented","h":["The encoding","A suite","The store","Comparing two results","Supported profile","How it is checked","What this does not do yet"]},{"b":"psionic","t":"240. How far a metric moves by itself","u":"/books/psionic/ch240-how-far-a-metric-moves-by-itself","s":"implemented","h":["A suite with seeds","Seed blocks and the floor","Draw tasks, not items","Two candidates","Headroom","Elephant on chapter 16's suite","Supported profile","How it is checked","What this does not do yet"]},{"b":"psionic","t":"241. Gates that can say unverifiable","u":"/books/psionic/ch241-gates-that-can-say-unverifiable","s":"implemented","h":["What clear means","The decision gate","The probability gate","The evaluation gate","Supported profile","How it is checked","What this does not do yet"]},{"b":"psionic","t":"242. Environments with checkers","u":"/books/psionic/ch242-environments-with-checkers","s":"implemented","h":["Tasks","Checkers, and what earns admission","The record and its digest","Rollouts","Replay","Supported profile","How it is checked","What this does not do yet"]},{"b":"psionic","t":"243. Fit settings on recorded answers","u":"/books/psionic/ch243-fit-settings-on-recorded-answers","s":"implemented","h":["Recorded answers","The rule and its price","Candidates","The search","Reading the held-out runs once","Does cross-validation earn its keep?","Supported profile","How it is checked","What this does not do yet"]},{"b":"psionic","t":"244. Search a policy, cheapest first","u":"/books/psionic/ch244-search-a-policy-cheapest-first","s":"implemented","h":["A policy is a manifest","A world with known answers","Measuring a policy","Ranking, and a task's lone best","Successive halving","What the per-task best does and does not say","Reading the held-out tasks once","Supported profile","How it is checked","What this does not do yet"]},{"b":"psionic","t":"245. Reflective prompt evolution","u":"/books/psionic/ch245-reflective-prompt-evolution","s":"partly implemented","h":["The world, written down","A front by hand","One step by hand","The budget by hand","The run","A prompt is a component","The stand-in student","The stand-in reflector, and the replies accepted","Admission","The front and the pick","The loop","One read of the held-out partition"]},{"b":"psionic","t":"246. Judges are components","u":"/books/psionic/ch246-judges-are-components","s":"partly implemented","h":["Kappa by hand","The run","A judge is a component","Truth comes from checks","Noise and two biases","The gate","Opinions are not labels","The stand-in judge","A broken input","Supported profile","How it is checked","What this does not do yet"]},{"b":"psionic","t":"247. Outcomes become training rows","u":"/books/psionic/ch247-outcomes-become-training-rows","s":"implemented","h":["Splits by time","What a row may be","The ledger","Keys and the set digest","Supported profile","How it is checked","What this does not do yet","A distillation target is a different record"]},{"b":"psionic","t":"248. Is the loop improving?","u":"/books/psionic/ch248-is-the-loop-improving","s":"implemented","h":["A world with a student in it","One cycle","A run, on a budget","Judging the loop and its components","When a loop does not improve","Supported profile","How it is checked","What this does not do yet"]},{"b":"psionic","t":"249. An agent optimizes a Psionic kernel","u":"/books/psionic/ch249-an-agent-optimizes-a-psionic-kernel","s":"implemented","h":["The cases and the contract","The family the tuner searches","Timings and the tuner's choice","The agent","The ledger and the example","What the search cost","How it is checked","Limits"]},{"b":"psionic","t":"250. Can someone use Psionic instead of PyTorch?","u":"/books/psionic/ch250-can-someone-use-psionic-instead-of-pytorch","s":"partly implemented","h":["Describe a model by its PyTorch layers","Work one audit by hand","The audit","Run it","How the audit is checked","Nine workflows, end to end","PyTorch as a comparator, never a dependency","The gaps, stated","The generated matrix","How it is checked","What this does not do yet","Dependencies"]},{"b":"psionic","t":"253. Read and repair a model's weights","u":"/books/psionic/ch253-read-and-repair-a-models-weights","s":"implemented","h":["Work an edit by hand","The reusable boundary","Permanent changes, tested against causal interventions","Five training seeds and a comparison that can fail","A separately declared fine-tuning baseline","Fresh language-model trials","Run and verify"]},{"b":"psionic","t":"254. Write a network from a specification","u":"/books/psionic/ch254-write-a-network-from-a-specification","s":"implemented","h":["A complete, bounded artifact","Work the calculation first","Freeze the questions before the answers","Arithmetic results, including failures","A controller with an explicit source of information","Account for construction and execution","Run it without another model call"]},{"b":"psionic","t":"255. Edit an original language model","u":"/books/psionic/ch255-edit-an-original-language-model","s":"implemented","h":["Admit a window, preserve the original","Establish original-model parity","Freeze a failure that actually exists","Orient the edit and work it by hand","Compare the complete frozen matrix","Measure loss without confusing it with repair","Count the work and keep the failures","Run the bounded example and audit offline","Give a Metaverse villain a voice"]},{"b":"psionic","t":"256. Build and teach a small robot","u":"/books/psionic/ch256-build-and-teach-a-small-robot","s":"design draft","h":["The chapters we will build","Count work before claiming progress","What already exists","The planned route","Acceptance checks and independent evidence","Dependencies and ownership"]},{"b":"psionic","t":"257. A robot description becomes an experiment","u":"/books/psionic/ch257-a-robot-description-becomes-an-experiment","s":"implemented","h":["Work one joint through the boundary","A small contract before a general importer","Independent checks and refusals","Run the decoded query","Existing owners and the next slice"]},{"b":"psionic","t":"258. A servo that behaves like the motor","u":"/books/psionic/ch258-a-servo-that-behaves-like-the-motor","s":"implemented","h":["Requested torque, delivered torque and motion","Model the boundary in stages","Run the checked scalar profile","Identification is an experiment","Checks that make the model useful"]},{"b":"psionic","t":"259. Rollouts from independent worlds","u":"/books/psionic/ch259-rollouts-from-independent-worlds","s":"partly implemented","h":["A truncation is not a terminal state","One row and one publication boundary","The shared statistics component now runs","The oscillator collector now runs","Frozen normalization and independent randomness","A reset-isolation example","What the implementation must prove"]},{"b":"psionic","t":"260. Train a neural walking policy","u":"/books/psionic/ch260-train-a-neural-walking-policy","s":"design draft","h":["A network small enough to audit","The action is a joint distribution","Backward without inventing another framework","Learning evidence"]},{"b":"psionic","t":"261. Teach skills and switch between them","u":"/books/psionic/ch261-teach-skills-and-switch-between-them","s":"design draft","h":["A cue is a request, not the transition itself","Make entry and exit measurable","Train the skill, then train or verify its handoff","Checks and shared owners"]},{"b":"psionic","t":"262. Walk by what the robot sees","u":"/books/psionic/ch262-walk-by-what-the-robot-sees","s":"design draft","h":["A geometric observation we can work out","Three interfaces, three tests","Start geometric, then learn only the needed part","The first course suite"]},{"b":"psionic","t":"263. Export a policy and supervise its steps","u":"/books/psionic/ch263-export-a-policy-and-supervise-its-steps","s":"design draft","h":["Folding a normalizer exactly once","An admitted package","One local step","Prove software semantics before connecting hardware"]},{"b":"psionic","t":"264. Run the policy on a real robot","u":"/books/psionic/ch264-run-the-policy-on-a-real-robot","s":"design draft","h":["Allocate a timing budget without inventing a result","Commission one boundary at a time","Transfer is a comparison, not a video","What closes the chapter"]},{"b":"psionic","t":"265. A course, a flock and a repeatable result","u":"/books/psionic/ch265-a-course-a-flock-and-a-repeatable-result","s":"design draft","h":["First a course, then a coordinated demonstration","A two-robot trace inside the four-robot run","The development agent is part of the route","Report the experiment people actually ran","Completion gates"]},{"b":"psionic","t":"266. Original NVFP4 and MXFP8 weights","u":"/books/psionic/ch266-original-nvfp4-and-mxfp8-weights","s":"implemented","h":["NVFP4 micro-blocks","MXFP8 micro-blocks and layer assignment","Runnable example"]},{"b":"psionic","t":"267. A looped MoE transformer","u":"/books/psionic/ch267-a-looped-moe-transformer","s":"implemented","h":["Looped schedule and per-pass KV slots","Production Metal 4 recurrence dispatch","Verified prefill == step-by-step decode equivalence"]},{"b":"psionic","t":"268. Execute Inkling 2 Mini on CPU","u":"/books/psionic/ch268-execute-inkling-2-mini-on-cpu","s":"implemented","h":["Checkpoint admission and chat template","Deterministic CPU prefill and greedy decode"]},{"b":"psionic","t":"269. Inkling 2 Mini on Metal","u":"/books/psionic/ch269-inkling-2-mini-on-metal","s":"implemented","h":["Unified-memory residency planner (≥32 GB Apple Silicon)","Coax-emitted Metal kernels (NVFP4, MXFP8, and IQ4_NL)","Runnable CPU check and live Apple M5 Max Metal verification"]},{"b":"psionic","t":"270. Tool calls and Responses for Inkling 2 Mini","u":"/books/psionic/ch270-tool-calls-and-responses-for-inkling-2-mini","s":"implemented","h":["Native token framing and tool-call parsing","Strict JSON schema & agent-loop compatibility","/v1/responses SSE framing and multi-turn KV reuse","Live Metal 4 verification"]},{"b":"psionic","t":"271. Run Inkling 2 Mini in OpenAgents Desktop","u":"/books/psionic/ch271-run-inkling-2-mini-in-openagents-desktop","s":"implemented","h":["Hardware, disk, and SHA-256 readiness gating","Composer model picker, --model inkling-2-mini, and resident runner","Live end-to-end verification"]},{"b":"psionic","t":"272. Bounded training windows and Local-SGD / DiLoCo","u":"/books/psionic/ch272-bounded-training-windows-and-diloco","s":"implemented","h":["By hand: shard admission and lease accounting","The shard gate and bounded lease pool","Runnable example and expected transcript","Checks and independent evidence"]},{"b":"psionic","t":"273. Six-tier Byzantine verification for public training","u":"/books/psionic/ch273-byzantine-verification-for-public-training","s":"implemented","h":["By hand: norms, inner products, and trimmed mean","The verification ladder and Byzantine aggregator","Runnable example and expected transcript","Checks and independent evidence"]},{"b":"psionic","t":"274. The Quarantine Optimizer and atomic lineage rollback","u":"/books/psionic/ch274-the-quarantine-optimizer","s":"implemented","h":["By hand: four promotion gates and rollback exclusion","Staging, four-gate promotion, and atomic rollback","Runnable example and expected transcript","Checks and independent evidence"]},{"b":"metaverse-engine","t":"Introduction","u":"/books/metaverse-engine","s":"","h":["Start here","Status","Promoting a draft to a teaching chapter","Contributed chapters","Writing style","Checking the book","Where Parts IV and V came from","Chapters"]},{"b":"metaverse-engine","t":"Plan and prerequisites","u":"/books/metaverse-engine/PLAN","s":"","h":["The order","Engine-core tasks","Completion milestones","Omniverse-informed extensions","Minimum prerequisites and later integrations","Prerequisites, not a waiting list","Part VIII: sound","Parts IX–XI: the rest of a game engine","Part IV: a physics engine","Part V: big worlds","Coax features each part needs"]},{"b":"metaverse-engine","t":"1. A frame has a fixed step","u":"/books/metaverse-engine/ch001-a-frame-has-a-fixed-step","s":"implemented","h":["What this chapter teaches","The method","The clock","One owner of time","Steps are the same at any frame rate","A jump moves smoothly at 60 FPS","Checks","What it replaced","Dependencies"]},{"b":"metaverse-engine","t":"2. Spaces and units","u":"/books/metaverse-engine/ch002-spaces-and-units","s":"implemented","h":["What this chapter teaches","The method","The conversions","At a realm's drawing boundary","Check that mixed spaces don't compile","Checks","The qualified boundary","Later consolidation","Dependencies"]},{"b":"metaverse-engine","t":"3. State starts from its defaults","u":"/books/metaverse-engine/ch003-state-starts-from-its-defaults","s":"implemented","h":["What this chapter teaches","The method","Keep the clock running with zeroed fields","The check","Still to do","Dependencies","Declared-state adoption (#12991)","Settings a person can change"]},{"b":"metaverse-engine","t":"4. Input becomes typed actions","u":"/books/metaverse-engine/ch004-input-becomes-typed-actions","s":"implemented","h":["What this chapter teaches","The method","The rules","Presses","One intent from any device","The buffer and its samples","The walking controller","Checks","Menus, focus and keyboard activation","Further input surfaces","Dependencies"]},{"b":"metaverse-engine","t":"5. Replay a session exactly","u":"/books/metaverse-engine/ch005-replay-a-session-exactly","s":"implemented","h":["What this chapter teaches","The envelope","The session record","The gate","A step","One number for a session","The host's math library","Random streams","An example","Checks","Adoption and record exchange","Contract: one envelope for every external event"]},{"b":"metaverse-engine","t":"6. Entities are born and die","u":"/books/metaverse-engine/ch006-entities-are-born-and-die","s":"implemented","h":["What this chapter teaches","The method","The store","Handles and IDs","Spawns, despawns, and the flush","Saves and digests","An example","Checks","Still to do","Dependencies"]},{"b":"metaverse-engine","t":"7. Ask the world where things are","u":"/books/metaverse-engine/ch007-ask-the-world-where-things-are","s":"implemented","h":["What this chapter teaches","The method","The rules","The ground","Rays","Overlaps","Sweeps","An example","Checks","Further realm migration","Dependencies"]},{"b":"metaverse-engine","t":"8. Ground and collision","u":"/books/metaverse-engine/ch008-ground-and-collision","s":"implemented","h":["Ground is the drawn triangles","Ask about a heightfield","Resolve the capsule","The real controller and each realm","Run the boundary cases","Check the implementation"]},{"b":"metaverse-engine","t":"9. A character moves","u":"/books/metaverse-engine/ch009-a-character-moves","s":"implemented","h":["What this chapter teaches","The declared tuning","The wish","One step","The numbers on a fixed step","Change a realm's tuning","Followers consume the same steps","Checks","Creative flight","The module and the realm boundary","Dependencies"]},{"b":"metaverse-engine","t":"10. The camera follows","u":"/books/metaverse-engine/ch010-the-camera-follows","s":"implemented","h":["What this chapter teaches","The state","Look and zoom","The spring","Room","One step of the camera","Drawing between steps","One shot for every camera","The camera steps after the player","A worked example","Checks","Still to do"]},{"b":"metaverse-engine","t":"11. The WGSL renderer","u":"/books/metaverse-engine/ch011-the-wgsl-renderer","s":"implemented","h":["Start with the existing shader source","A draw still occupies four words","Admit memory before making a view","Resource identity and resource views","Every GPU object has a ledger handle","The pass graph is data","A CPU reference needs fragment neighbors","A picture is another admitted draw","What counts as evidence","Dependencies"]},{"b":"metaverse-engine","t":"12. Materials","u":"/books/metaverse-engine/ch012-materials","s":"partly implemented","h":["What this chapter teaches","The shading functions","The material record","The banded surface","A worked example","Checks","Still to do","Dependencies"]},{"b":"metaverse-engine","t":"13. Light and shadow","u":"/books/metaverse-engine/ch013-light-and-shadow","s":"partly implemented","h":["What this chapter teaches","The key light from the clock","A shadow map that holds still","Local lights","A worked example","Checks","Still to do","Dependencies"]},{"b":"metaverse-engine","t":"14. Figures and animation","u":"/books/metaverse-engine/ch014-figures-and-animation","s":"partly implemented","h":["What this chapter teaches","A cross-fade, joint by joint","The skeleton and its palette","A worked example","Checks","Still to do","Dependencies"]},{"b":"metaverse-engine","t":"15. UI and the HUD","u":"/books/metaverse-engine/ch015-ui-and-the-hud","s":"partly implemented","h":["What this chapter teaches","The hotbar","The UI tree","A worked example","Checks","What exists today","A HUD survives area retirement","The host's accessibility tree (design)","Still to do","Dependencies"]},{"b":"metaverse-engine","t":"16. Budgets that refuse","u":"/books/metaverse-engine/ch016-budgets-that-refuse","s":"partly implemented","h":["What this chapter teaches","The declaration","The meter","Measuring a frame","A worked example","Every realm's budget","Fixed limits in chapters 12 to 15","GPU memory has a budget too","Checks","Plan retained storage and concurrent scratch","Still to do","Dependencies"]},{"b":"metaverse-engine","t":"17. A scene owns the state","u":"/books/metaverse-engine/ch017-a-scene-owns-the-state","s":"partly implemented","h":["What this chapter teaches","The model","The design in the Metaverse Engine","What runs today","What it builds","Acceptance checks and oracles","How Genesis does it","Dependencies","Declared-state adoption (#12991)"]},{"b":"metaverse-engine","t":"18. Rigid bodies and time steps","u":"/books/metaverse-engine/ch018-rigid-bodies-and-time-steps","s":"partly implemented","h":["What this chapter teaches","The physics","What runs today","The design in the Metaverse Engine","Bodies that touch","What it still builds","Acceptance checks and oracles","How Genesis does it","Dependencies"]},{"b":"metaverse-engine","t":"19. Joints in generalized coordinates","u":"/books/metaverse-engine/ch019-joints-in-generalized-coordinates","s":"design draft","h":["What this chapter teaches","The physics","The design in the Metaverse Engine","What it builds","Acceptance checks and oracles","How Genesis does it","Dependencies"]},{"b":"metaverse-engine","t":"20. Find the pairs that might touch","u":"/books/metaverse-engine/ch020-find-the-pairs-that-might-touch","s":"partly implemented","h":["What this chapter teaches","The geometry","What runs today","The design in the Metaverse Engine","What it still builds","Acceptance checks and oracles","How Genesis does it","Dependencies"]},{"b":"metaverse-engine","t":"21. Find where they touch","u":"/books/metaverse-engine/ch021-find-where-they-touch","s":"partly implemented","h":["What this chapter teaches","The geometry","What runs today","The design in the Metaverse Engine","What it still builds","Acceptance checks and oracles","How Genesis does it","Dependencies"]},{"b":"metaverse-engine","t":"22. Contact as an optimization","u":"/books/metaverse-engine/ch022-contact-as-an-optimization","s":"design draft","h":["What this chapter teaches","The physics","The design in the Metaverse Engine","What it builds","Acceptance checks and oracles","How Genesis does it","Dependencies"]},{"b":"metaverse-engine","t":"23. Particles and their neighbors","u":"/books/metaverse-engine/ch023-particles-and-their-neighbors","s":"partly implemented","h":["What this chapter teaches","The method","What runs today","The design in the Metaverse Engine","What it still builds","Acceptance checks and oracles","How Genesis does it","Dependencies"]},{"b":"metaverse-engine","t":"24. Liquids from particles","u":"/books/metaverse-engine/ch024-liquids-from-particles","s":"partly implemented","h":["What this chapter teaches","The physics","What runs today","The design in the Metaverse Engine","What it still builds","Acceptance checks and oracles","How Genesis does it","Dependencies"]},{"b":"metaverse-engine","t":"25. Cloth and rope from constraints","u":"/books/metaverse-engine/ch025-cloth-and-rope-from-constraints","s":"partly implemented","h":["What this chapter teaches","The method","What runs today","The design in the Metaverse Engine","What it still builds","Acceptance checks and oracles","How Genesis does it","Dependencies"]},{"b":"metaverse-engine","t":"26. Sand, snow and clay on a grid","u":"/books/metaverse-engine/ch026-sand-snow-and-clay-on-a-grid","s":"partly implemented","h":["What this chapter teaches","The physics","What runs today","The design in the Metaverse Engine","What it still builds","Acceptance checks and oracles","How Genesis does it","Dependencies"]},{"b":"metaverse-engine","t":"27. Elastic solids on a mesh","u":"/books/metaverse-engine/ch027-elastic-solids-on-a-mesh","s":"design draft","h":["What this chapter teaches","The physics","The design in the Metaverse Engine","What it builds","Acceptance checks and oracles","How Genesis does it","Dependencies"]},{"b":"metaverse-engine","t":"28. Smoke on a grid","u":"/books/metaverse-engine/ch028-smoke-on-a-grid","s":"partly implemented","h":["What this chapter teaches","The physics","What runs today","The design in the Metaverse Engine","What it still builds","Acceptance checks and oracles","How Genesis does it","Dependencies"]},{"b":"metaverse-engine","t":"29. Materials meet","u":"/books/metaverse-engine/ch029-materials-meet","s":"design draft","h":["What this chapter teaches","The method","The design in the Metaverse Engine","What it builds","Acceptance checks and oracles","How Genesis does it","Dependencies"]},{"b":"metaverse-engine","t":"30. Contact that holds","u":"/books/metaverse-engine/ch030-contact-that-holds","s":"design draft","h":["What this chapter teaches","The physics","The design in the Metaverse Engine","What it builds","Acceptance checks and oracles","How Genesis does it","Dependencies"]},{"b":"metaverse-engine","t":"31. Many worlds in one step","u":"/books/metaverse-engine/ch031-many-worlds-in-one-step","s":"design draft","h":["What this chapter teaches","The model","The design in the Metaverse Engine","What it builds","Acceptance checks and oracles","How Genesis does it","Dependencies"]},{"b":"metaverse-engine","t":"32. Differentiate a simulation","u":"/books/metaverse-engine/ch032-differentiate-a-simulation","s":"design draft","h":["What this chapter teaches","The math","The design in the Metaverse Engine","What it builds","Acceptance checks and oracles","How Genesis does it","Dependencies"]},{"b":"metaverse-engine","t":"33. Sensors read the simulation","u":"/books/metaverse-engine/ch033-sensors-read-the-simulation","s":"design draft","h":["What this chapter teaches","The models","The design in the Metaverse Engine","What it builds","Acceptance checks and oracles","How Genesis does it","Dependencies"]},{"b":"metaverse-engine","t":"34. Pictures for policies","u":"/books/metaverse-engine/ch034-pictures-for-policies","s":"design draft","h":["What this chapter teaches","The model","The design in the Metaverse Engine","Planned observation and annotation contract","What it builds","Acceptance checks and oracles","How Genesis does it","Dependencies"]},{"b":"metaverse-engine","t":"35. Bring in robots and meshes","u":"/books/metaverse-engine/ch035-bring-in-robots-and-meshes","s":"design draft","h":["What this chapter teaches","The checks","The design in the Metaverse Engine","Planned OpenUSD exchange boundary","What it builds","Acceptance checks and oracles","How Genesis does it","Dependencies"]},{"b":"metaverse-engine","t":"36. Record and replay a world","u":"/books/metaverse-engine/ch036-record-and-replay-a-world","s":"design draft","h":["What this chapter teaches","The model","The design in the Metaverse Engine","What it builds","Acceptance checks and oracles","How Genesis does it","Dependencies"]},{"b":"metaverse-engine","t":"37. Measure the engine honestly","u":"/books/metaverse-engine/ch037-measure-the-engine-honestly","s":"design draft","h":["What this chapter teaches","The measures","The design in the Metaverse Engine","What it builds","Acceptance checks and oracles","How Genesis does it","Dependencies"]},{"b":"metaverse-engine","t":"38. Stream a large world","u":"/books/metaverse-engine/ch038-stream-a-large-world","s":"design draft","h":["What this chapter teaches","The method","What exists today","The design in the Metaverse Engine","What it builds","Acceptance checks and oracles","Dependencies"]},{"b":"metaverse-engine","t":"39. Ephemerides, time scales and frames","u":"/books/metaverse-engine/ch039-ephemerides-time-scales-and-frames","s":"partly implemented","h":["What this chapter teaches","The method","What runs today","What it still builds","Acceptance checks and oracles","Dependencies"]},{"b":"metaverse-engine","t":"40. Propagate with a stated error","u":"/books/metaverse-engine/ch040-propagate-with-a-stated-error","s":"design draft","h":["What this chapter teaches","The method","What exists today","What it builds","Acceptance checks and oracles","Dependencies"]},{"b":"metaverse-engine","t":"41. Burns consume mass","u":"/books/metaverse-engine/ch041-burns-consume-mass","s":"design draft","h":["What this chapter teaches","The method","What exists today","What it builds","Acceptance checks and oracles","Dependencies"]},{"b":"metaverse-engine","t":"42. Reach a moving target","u":"/books/metaverse-engine/ch042-reach-a-moving-target","s":"design draft","h":["What this chapter teaches","The method","What exists today","What it builds","Acceptance checks and oracles","Dependencies"]},{"b":"metaverse-engine","t":"43. Heat has to go somewhere","u":"/books/metaverse-engine/ch043-heat-has-to-go-somewhere","s":"design draft","h":["What this chapter teaches","The method","What exists today","What it builds","Acceptance checks and oracles","Dependencies"]},{"b":"metaverse-engine","t":"44. Inside a turning, accelerating ship","u":"/books/metaverse-engine/ch044-inside-a-turning-accelerating-ship","s":"design draft","h":["What this chapter teaches","The method","What exists today","What it builds","Acceptance checks and oracles","Dependencies"]},{"b":"metaverse-engine","t":"45. Sensors that see the past","u":"/books/metaverse-engine/ch045-sensors-that-see-the-past","s":"design draft","h":["What this chapter teaches","The method","What exists today","What it builds","Acceptance checks and oracles","Dependencies"]},{"b":"metaverse-engine","t":"46. Time warp that stops for every event","u":"/books/metaverse-engine/ch046-time-warp-that-stops-for-every-event","s":"design draft","h":["What this chapter teaches","The method","What exists today","What it builds","Acceptance checks and oracles","Dependencies"]},{"b":"metaverse-engine","t":"47. Hits through layers","u":"/books/metaverse-engine/ch047-hits-through-layers","s":"design draft","h":["What this chapter teaches","The method","What exists today","What it builds","Acceptance checks and oracles","Dependencies"]},{"b":"metaverse-engine","t":"48. One world at three fidelities","u":"/books/metaverse-engine/ch048-one-world-at-three-fidelities","s":"design draft","h":["What this chapter teaches","The method","What exists today","What it builds","Acceptance checks and oracles","Dependencies"]},{"b":"metaverse-engine","t":"49. Rooms and presence","u":"/books/metaverse-engine/ch049-rooms-and-presence","s":"partly implemented","h":["Follow a player into a room","Shared contracts and their limits"]},{"b":"metaverse-engine","t":"50. Lockstep for small deterministic games","u":"/books/metaverse-engine/ch050-shared-state-over-the-network","s":"partly implemented","h":["Choose a trust profile","Sessions beyond the socket"]},{"b":"metaverse-engine","t":"51. A realm is a document","u":"/books/metaverse-engine/ch051-a-realm-is-a-document","s":"partly implemented","h":["What this chapter teaches","The document","Reading it","The model as one text","Read Lamp Cove","Checks","Where the rest lives today","Still to do","Dependencies","Declared-state adoption (#12991)"]},{"b":"metaverse-engine","t":"52. Edit a realm in place","u":"/books/metaverse-engine/ch052-edit-a-realm-in-place","s":"partly implemented","h":["What this chapter teaches","The document the page edits","Operations and their inverses","Saving names its revision","Worked by hand","Edit Lamp Cove","On the page","Checks","Still to do","Dependencies","Declared-state adoption (#12991)"]},{"b":"metaverse-engine","t":"53. Bring in assets","u":"/books/metaverse-engine/ch053-bring-in-assets","s":"partly implemented","h":["What this chapter teaches","The format","Reading a pack whole","Writing a pack","Admitted by content","Worked by hand","Bring in a crate","The committed packs","Checks","What exists beside it","Still to do","Dependencies"]},{"b":"metaverse-engine","t":"54. Publish a realm","u":"/books/metaverse-engine/ch054-publish-a-realm","s":"partly implemented","h":["What this chapter teaches","The method","What exists today","What it builds","Acceptance checks and oracles","Dependencies","In the other books"]},{"b":"metaverse-engine","t":"55. Fork a realm","u":"/books/metaverse-engine/ch055-fork-a-realm","s":"partly implemented","h":["What this chapter teaches","What the server makes","Reading the parent","A fork is its parent plus its log","Fork Lamp Cove","Checks","Rules a base declares","Still to do","Dependencies","In the other books"]},{"b":"metaverse-engine","t":"56. The Grid","u":"/books/metaverse-engine/ch056-the-grid","s":"partly implemented","h":["What this chapter teaches","The session","One frame","One step","Replay","Walk the Grid","Checks","What else the Grid draws today","Still to do","Dependencies"]},{"b":"metaverse-engine","t":"57. Made realms","u":"/books/metaverse-engine/ch057-made-realms","s":"design draft","h":["What this chapter teaches","The method","What exists today","What it builds","Acceptance checks and oracles","Dependencies"]},{"b":"metaverse-engine","t":"58. Everglade","u":"/books/metaverse-engine/ch058-everglade","s":"partly implemented","h":["Read the implementation by responsibility","Check the realm"]},{"b":"metaverse-engine","t":"59. Dead Gears","u":"/books/metaverse-engine/ch059-dead-gears","s":"design draft","h":["What this chapter teaches","The method","What exists today","What it builds","Acceptance checks and oracles","Dependencies"]},{"b":"metaverse-engine","t":"60. Ice Cream Man","u":"/books/metaverse-engine/ch060-ice-cream-man","s":"design draft","h":["What this chapter teaches","The method","What exists today","What it builds","Acceptance checks and oracles","Dependencies"]},{"b":"metaverse-engine","t":"61. Hecate's Cemetery","u":"/books/metaverse-engine/ch061-hecates-cemetery","s":"design draft","h":["What this chapter teaches","The method","What exists today","What it builds","Acceptance checks and oracles","Dependencies"]},{"b":"metaverse-engine","t":"62. Fairy Forest","u":"/books/metaverse-engine/ch062-fairy-forest","s":"design draft","h":["What this chapter teaches","The method","What exists today","What it builds","Acceptance checks and oracles","Dependencies"]},{"b":"metaverse-engine","t":"63. The space games","u":"/books/metaverse-engine/ch063-the-space-games","s":"design draft","h":["What this chapter teaches","The method","What exists today","What it builds","Acceptance checks and oracles","Dependencies"]},{"b":"metaverse-engine","t":"64. Every realm runs on the Metaverse Engine","u":"/books/metaverse-engine/ch064-every-realm-runs-on-the-metaverse-engine","s":"partly implemented","h":["What this chapter teaches","The method","The inventory","One walker in every walking realm","Checks","Still to do","Acceptance checks and oracles","Dependencies"]},{"b":"metaverse-engine","t":"65. Sound from numbers: oscillators and envelopes","u":"/books/metaverse-engine/ch065-sound-from-numbers","s":"implemented","h":["What this chapter teaches","The number formats","Oscillators","Seeded noise","Envelopes","Panning and saturation","Run it","The checks","Dependencies"]},{"b":"metaverse-engine","t":"66. A sequencer on the beat grid","u":"/books/metaverse-engine/ch066-a-sequencer-on-the-beat-grid","s":"implemented","h":["What this chapter teaches","The grid","Sections on the grid","Keys and chords","Patterns","Run it","The checks","Dependencies"]},{"b":"metaverse-engine","t":"67. Scores, mixing and a soundtrack","u":"/books/metaverse-engine/ch067-scores-mixing-and-a-soundtrack","s":"implemented","h":["What this chapter teaches","Buses","The reverb send","Gain automation","The master","WAV files and the sample hash","The promo-epic score","Render the score","Run it","The checks","What the port changed","Dependencies"]},{"b":"metaverse-engine","t":"68. Sound in the world: playback, space and reaction","u":"/books/metaverse-engine/ch068-sound-in-the-world","s":"partly implemented","h":["What this chapter teaches","The method","What exists today","The design in the Metaverse Engine","What it builds","Acceptance checks and oracles","Dependencies"]},{"b":"metaverse-engine","t":"69. Voices in a realm","u":"/books/metaverse-engine/ch069-voices-in-a-realm","s":"partly implemented","h":["What this chapter teaches","Outline","A spoken request, as it runs","What exists today","What it builds","Acceptance checks and oracles","Dependencies"]},{"b":"metaverse-engine","t":"70. Rivers, ponds and the sea","u":"/books/metaverse-engine/ch070-rivers-ponds-and-the-sea","s":"design draft","h":["What this chapter teaches","Outline","What exists today","What it builds","Acceptance checks and oracles","Dependencies"]},{"b":"metaverse-engine","t":"71. Sky, weather and the time of day","u":"/books/metaverse-engine/ch071-sky-weather-and-the-time-of-day","s":"partly implemented","h":["What this chapter teaches","Outline","What exists today","What it builds","Acceptance checks and oracles","Dependencies","Declared-state adoption (#12991)"]},{"b":"metaverse-engine","t":"72. Effects made of particles","u":"/books/metaverse-engine/ch072-effects-made-of-particles","s":"partly implemented","h":["What this chapter teaches","Outline","What exists today","What it builds","Acceptance checks and oracles","Dependencies"]},{"b":"metaverse-engine","t":"73. Things that break","u":"/books/metaverse-engine/ch073-things-that-break","s":"design draft","h":["What this chapter teaches","Outline","What exists today","What it builds","Acceptance checks and oracles","Dependencies"]},{"b":"metaverse-engine","t":"74. Wheels on the ground","u":"/books/metaverse-engine/ch074-wheels-on-the-ground","s":"design draft","h":["What this chapter teaches","Outline","What exists today","What it builds","Acceptance checks and oracles","Dependencies"]},{"b":"metaverse-engine","t":"75. Creatures that follow and watch","u":"/books/metaverse-engine/ch075-creatures-that-follow-and-watch","s":"partly implemented","h":["What this chapter teaches","Senses and stimuli","Knowledge, not truth","A guard and a wall, worked by hand","Following on the fixed step","The example","Checks","Still to do","What exists today","Acceptance checks and oracles","Dependencies"]},{"b":"metaverse-engine","t":"76. Find a way through","u":"/books/metaverse-engine/ch076-find-a-way-through","s":"partly implemented","h":["What this chapter teaches","The grid","The flow field","A grid worked by hand","The example","Checks","Still to do","What exists today","Acceptance checks and oracles","Dependencies"]},{"b":"metaverse-engine","t":"77. People who talk back","u":"/books/metaverse-engine/ch077-people-who-talk-back","s":"partly implemented","h":["What this chapter teaches","A character must have a fallback","The request, worked by hand","A request owns its reply","Read words without reading commands","The conversation, worked by hand","Run it natively","Replay the accepted answer, on its recorded tick","A broken request and its diagnostic","Checks and scope","Still to do","Dependencies"]},{"b":"metaverse-engine","t":"78. Cinematics and close-ups","u":"/books/metaverse-engine/ch078-cinematics-and-close-ups","s":"partly implemented","h":["What this chapter teaches","One output for every camera","Author the actual arrival","State the movement bound","Point through the close-up","Record the camera take","Capture a staged page clip","Checks and evidence","Still to do"]},{"b":"metaverse-engine","t":"79. A piece from a sentence","u":"/books/metaverse-engine/ch079-a-piece-from-a-sentence","s":"design draft","h":["What this chapter teaches","Outline","What exists today","What it builds","Acceptance checks and oracles","Dependencies"]},{"b":"metaverse-engine","t":"80. Terrain and scatter from a seed","u":"/books/metaverse-engine/ch080-terrain-and-scatter-from-a-seed","s":"partly implemented","h":["What this chapter teaches","The ground","Scatter","A site, worked by hand","The example","Checks","Still to do","Shared vegetation rendering","What exists today","Acceptance checks and oracles","Dependencies"]},{"b":"metaverse-engine","t":"81. Save and come back","u":"/books/metaverse-engine/ch081-save-and-come-back","s":"partly implemented","h":["What this chapter teaches","The container","Two slots","Save the vase twice","Where it is used","Checks","Conflicts are found by revision","Still to do","Dependencies","Declared-state adoption (#12991)"]},{"b":"metaverse-engine","t":"82. Change code while it runs","u":"/books/metaverse-engine/ch082-change-code-while-it-runs","s":"partly implemented","h":["What this chapter teaches","Outline","Keep the state across a layout change","What exists today","Still to do","Acceptance checks and oracles","Dependencies"]},{"b":"metaverse-engine","t":"83. Inspect and profile a running realm","u":"/books/metaverse-engine/ch083-inspect-and-profile-a-running-realm","s":"partly implemented","h":["What this chapter teaches","The 60 FPS rule","Every realm, three ways","GPU time per pass","Goldens","Probes and state","Analytics","One frame's stages","The example","Checks","Still to do","What exists today"]},{"b":"metaverse-engine","t":"84. One realm on every host","u":"/books/metaverse-engine/ch084-one-realm-on-every-host","s":"partly implemented","h":["Multi-instance hosting (aethyr-host-v2, #14042)","composition-v2, 120 Hz Metal 4, and Linux/Windows Vulkan parity (#14046)","One session, several hosts","Verify the boundary you use"]},{"b":"metaverse-engine","t":"85. Everyone can play","u":"/books/metaverse-engine/ch085-everyone-can-play","s":"partly implemented","h":["Everglade's SETTINGS pane","Sessions and remaining scope","Run the checks"]},{"b":"metaverse-engine","t":"86. One server owns the scene","u":"/books/metaverse-engine/ch086-one-server-owns-the-scene","s":"partly implemented","h":["What this chapter teaches","The design","Run it","What exists today","What is left","Acceptance checks","Dependencies"]},{"b":"metaverse-engine","t":"87. Server and client share one step and one world","u":"/books/metaverse-engine/ch087-server-and-client-share-one-step","s":"partly implemented","h":["What this chapter teaches","The design","Run it","What is left","Acceptance checks","Dependencies"]},{"b":"metaverse-engine","t":"88. A seat joins with a signed ticket","u":"/books/metaverse-engine/ch088-a-seat-joins-with-a-signed-ticket","s":"partly implemented","h":["What this chapter teaches","The design","Run it","What is left","Acceptance checks","Dependencies","In the other books"]},{"b":"metaverse-engine","t":"89. Intents in, acknowledgements out","u":"/books/metaverse-engine/ch089-intents-in-acknowledgements-out","s":"partly implemented","h":["What this chapter teaches","The design","What is left","Acceptance checks","Dependencies"]},{"b":"metaverse-engine","t":"90. Predict your own movement","u":"/books/metaverse-engine/ch090-predict-your-own-movement","s":"partly implemented","h":["What this chapter teaches","The method","A worked trace","Run it","What is left","Acceptance checks","Dependencies"]},{"b":"metaverse-engine","t":"91. One record for every replicated entity","u":"/books/metaverse-engine/ch091-one-record-for-every-replicated-entity","s":"partly implemented","h":["What this chapter teaches","Why one model","The design","What it builds","Acceptance checks and oracles","Dependencies"]},{"b":"metaverse-engine","t":"92. Priority under a budget","u":"/books/metaverse-engine/ch092-priority-under-a-budget","s":"partly implemented","h":["What this chapter teaches","How many bytes","The design","What it builds","Acceptance checks and oracles","Dependencies"]},{"b":"metaverse-engine","t":"93. One interpolation buffer for every remote entity","u":"/books/metaverse-engine/ch093-one-interpolation-buffer","s":"partly implemented","h":["What this chapter teaches","The method","Why one buffer is not enough alone","Run it","What is left","Acceptance checks","Dependencies"]},{"b":"metaverse-engine","t":"94. Effects are state, events are cues","u":"/books/metaverse-engine/ch094-effects-are-state-events-are-cues","s":"partly implemented","h":["What this chapter teaches","The failure it removes","The design","What is left","Acceptance checks","Dependencies"]},{"b":"metaverse-engine","t":"95. Offline is a local server","u":"/books/metaverse-engine/ch095-offline-is-a-local-server","s":"partly implemented","h":["What this chapter teaches","The failure it removes","The design","What it builds","Acceptance checks and oracles","Dependencies"]},{"b":"metaverse-engine","t":"96. Casts and combat under latency","u":"/books/metaverse-engine/ch096-casts-and-combat-under-latency","s":"partly implemented","h":["What this chapter teaches","The rules","The latency budget","Run it","Acceptance checks","Dependencies"]},{"b":"metaverse-engine","t":"97. Interest without leaks","u":"/books/metaverse-engine/ch097-interest-without-leaks","s":"partly implemented","h":["What this chapter teaches","The design","What it builds","Acceptance checks and oracles","Dependencies"]},{"b":"metaverse-engine","t":"98. Versions, deploys and reconnect","u":"/books/metaverse-engine/ch098-versions-deploys-and-reconnect","s":"partly implemented","h":["What this chapter teaches","Version handshake","Drain, don't cut","Reconnect is its own protocol","Run it","Acceptance checks","Dependencies"]},{"b":"metaverse-engine","t":"99. Watch the whole action path","u":"/books/metaverse-engine/ch099-watch-the-whole-action-path","s":"partly implemented","h":["What this chapter teaches","The design","Run it","What is left","Acceptance checks","Dependencies"]},{"b":"metaverse-engine","t":"100. Prove the room plays like the game","u":"/books/metaverse-engine/ch100-prove-the-room-plays-like-the-game","s":"partly implemented","h":["What this chapter teaches","The counterexample","The drift test","Run it","Load tests that play","What is left","Acceptance checks","Dependencies"]},{"b":"metaverse-engine","t":"101. The Everglade room","u":"/books/metaverse-engine/ch101-the-everglade-room","s":"partly implemented","h":["What this chapter teaches","The room","Sizing","The raid as a crowd","Run it","What is left","Acceptance checks","Dependencies"]},{"b":"metaverse-engine","t":"102. Ask, act, present","u":"/books/metaverse-engine/ch102-ask-act-present","s":"partly implemented","h":["What this chapter teaches","The method","A worked example: a knocked-out wizard presses Fire Bolt","Where the code lives","Checks","What remains","Dependencies"]},{"b":"metaverse-engine","t":"103. One world: columns, systems and a spatial index","u":"/books/metaverse-engine/ch103-one-world","s":"partly implemented","h":["What this chapter teaches","The method","The columns","The World","Systems declare what they touch","Spawns, despawns and the index settle at the step's end","The digest","The example","What the checks prove","What's next"]},{"b":"metaverse-engine","t":"A. Everglade rooms against an MMO engine","u":"/books/metaverse-engine/appendix-mmo-gap-analysis","s":"","h":["The capability table","The development order","Other sections","Left out at our scale","Issues filed from this analysis","Since this analysis"]},{"b":"everglade","t":"Introduction and proposed structure","u":"/books/everglade","s":"","h":["Start here","The SRD and action combat","How you build: programmatic first, with GameBuilder","Where Everglade came from","The flow of the book","Where the other books come in","The SRD license","How a chapter works","Where Everglade's code lives","Chapters"]},{"b":"everglade","t":"Plan","u":"/books/everglade/PLAN","s":"","h":["Scope & Architecture","Completion Milestones","Chapter Table"]},{"b":"everglade","t":"1. A reference image","u":"/books/everglade/ch001-a-reference-image","s":"partly implemented","h":["What this chapter teaches","What exists today","The method","A worked example: how dense the woods are","The checks","Mistakes","Verification & broken case","What comes next"]},{"b":"everglade","t":"2. What the prototypes taught","u":"/books/everglade/ch002-what-the-prototypes-taught","s":"partly implemented","h":["What this chapter teaches","Everglade v1: a whole town in a browser","Everglade Experimental: the test bench","Character Create: the glade","A worked example: the arrows nobody could see","The checks","Verification & broken case","What comes next"]},{"b":"everglade","t":"3. Start from a bare world","u":"/books/everglade/ch003-start-from-a-bare-world","s":"partly implemented","h":["What this chapter teaches","The CLI at a glance","Step 1: Start a bare world","Step 2: Build programmatically with world.edit.v1","Step 3: Dip into the UI","Step 4: Test headless and publish","Step 5: Where GameBuilder ends and the engine begins","Mistakes","Expected output & broken case","What comes next"]},{"b":"everglade","t":"4. Ground you can stand on","u":"/books/everglade/ch004-ground-you-can-stand-on","s":"implemented","h":["What this chapter teaches","What exists today","The method","A worked example: where a fine row meets a coarse row","The checks","Runnable example","Mistakes","What comes next"]},{"b":"everglade","t":"5. Plant a forest with a function","u":"/books/everglade/ch005-plant-a-forest-with-a-function","s":"partly implemented","h":["What this chapter teaches","What exists today","The method","A worked example: one cell beside the path","The checks","Mistakes","Verification & broken case","What comes next"]},{"b":"everglade","t":"6. The glade's light","u":"/books/everglade/ch006-the-glades-light","s":"partly implemented","h":["What this chapter teaches","What exists today","The method","A worked example: one crown overhead","The checks","Mistakes","Verification & broken case","What comes next"]},{"b":"everglade","t":"7. Character Create in the world","u":"/books/everglade/ch007-character-create-in-the-world","s":"partly implemented","h":["What this chapter teaches","What exists today","The method","A worked example: the hand-over timeline","The checks","Mistakes","What comes next"]},{"b":"everglade","t":"8. If you can see it, you can walk to it","u":"/books/everglade/ch008-if-you-can-see-it-you-can-walk-to-it","s":"partly implemented","h":["What this chapter teaches","What exists today","The method","A worked example: the three slices","The checks","Mistakes","What comes next"]},{"b":"everglade","t":"9. A path through dense woods","u":"/books/everglade/ch009-a-path-through-dense-woods","s":"partly implemented","h":["What this chapter teaches","What exists today","The method","A worked example: the grade limit","The checks","Mistakes","What comes next"]},{"b":"everglade","t":"10. Hold 60 frames per second","u":"/books/everglade/ch010-hold-60-frames-per-second","s":"partly implemented","h":["What this chapter teaches","What exists today","The method","A worked example: how many trees you see at 128 m","The checks","Mistakes","What comes next"]},{"b":"everglade","t":"11. One address","u":"/books/everglade/ch011-one-address","s":"partly implemented","h":["What this chapter teaches","What exists today","The method","A worked example: one visit, two times","The checks","Mistakes","What comes next"]},{"b":"everglade","t":"12. The room","u":"/books/everglade/ch012-the-room","s":"partly implemented","h":["What this chapter teaches","What exists today","The method","A worked example: three players leave the glade","The checks","Mistakes","What comes next"]},{"b":"everglade","t":"13. Coming back","u":"/books/everglade/ch013-coming-back","s":"partly implemented","h":["What this chapter teaches","What exists today","The method","A worked example: the room is killed mid-run","The checks","Mistakes","What comes next"]},{"b":"everglade","t":"14. Ability scores, proficiency and the d20","u":"/books/everglade/ch014-ability-scores-proficiency-and-the-d20","s":"implemented","h":["What this chapter teaches","What exists today","What follows the SRD exactly","What changes for action combat, and why","The method: fair dice you can test","A worked example: a Ranger's longbow","The checks","Runnable example","Mistakes","What comes next"]},{"b":"everglade","t":"15. Classes, levels 1 to 6","u":"/books/everglade/ch015-classes-levels-1-to-6","s":"partly implemented","h":["What this chapter teaches","What exists today","What follows the SRD exactly","What changes for action combat, and why","A worked example: a Fighter from level 1 to 5","The checks","Mistakes","What comes next"]},{"b":"everglade","t":"16. Spells and slots","u":"/books/everglade/ch016-spells-and-slots","s":"partly implemented","h":["What this chapter teaches","What exists today","What follows the SRD exactly","What changes for action combat, and why","A worked example: a Fireball","The checks","Mistakes","What comes next"]},{"b":"everglade","t":"17. Conditions","u":"/books/everglade/ch017-conditions","s":"partly implemented","h":["What this chapter teaches","What exists today","What follows the SRD exactly","What changes for action combat, and why","A worked example: standing up from Prone","The checks","Mistakes","What comes next"]},{"b":"everglade","t":"18. Turns become time","u":"/books/everglade/ch018-turns-become-time","s":"partly implemented","h":["What this chapter teaches","What exists today","What follows the SRD exactly","What changes for action combat, and why","A worked example: Speed 30 in both timings","The checks","Mistakes","What comes next"]},{"b":"everglade","t":"19. Familiars and Wild Shape","u":"/books/everglade/ch019-familiars-and-wild-shape","s":"partly implemented","h":["What this chapter teaches","What exists today","The method","Worked calculation: familiar slot layout","The checks","What comes next"]},{"b":"everglade","t":"20. A guard walks the path","u":"/books/everglade/ch020-a-guard-walks-the-path","s":"partly implemented","h":["What this chapter teaches","What exists today","The method","Worked trace: guard state transitions","The checks","What comes next"]},{"b":"everglade","t":"21. Attack the guard","u":"/books/everglade/ch021-attack-the-guard","s":"partly implemented","h":["What this chapter teaches","What exists today","The method","Worked calculation: guard melee damage vs a level-1 Ranger","The checks","What comes next"]},{"b":"everglade","t":"22. Death and respawn","u":"/books/everglade/ch022-death-and-respawn","s":"partly implemented","h":["What this chapter teaches","What exists today","The method","Worked trace: rest admission and interruption","The checks","What comes next"]},{"b":"everglade","t":"23. Mouse look and the crosshair","u":"/books/everglade/ch023-mouse-look-and-the-crosshair","s":"partly implemented","h":["What this chapter teaches","What exists today","The method","Worked trace: draw-and-cancel vs draw-and-loose","The checks","What comes next"]},{"b":"everglade","t":"24. The longbow","u":"/books/everglade/ch024-the-longbow","s":"partly implemented","h":["What this chapter teaches","What exists today","The method","Worked calculation: SRD Longbow range in metres","The checks","What comes next"]},{"b":"everglade","t":"25. Cast while you run","u":"/books/everglade/ch025-cast-while-you-run","s":"partly implemented","h":["What this chapter teaches","What exists today","The method","Worked trace: turn budget during a moving cast","The checks","What comes next"]},{"b":"everglade","t":"26. Walk into a city","u":"/books/everglade/ch026-walk-into-a-city","s":"partly implemented","h":["What this chapter teaches","What exists today","The method","Worked trace: clearing floor, 16-plot town, and claim refusals","Runnable example","The checks","Mistakes","What comes next"]},{"b":"everglade","t":"27. Townspeople","u":"/books/everglade/ch027-townspeople","s":"partly implemented","h":["What this chapter teaches","What exists today","The method","Worked trace: asking Bram for directions","Runnable example","The checks","Mistakes","What comes next"]},{"b":"everglade","t":"28. Interactions","u":"/books/everglade/ch028-interactions","s":"partly implemented","h":["What this chapter teaches","What exists today","The method","Worked trace: Quest 1 (Thin the pack) and escrowed cloak trade","Runnable example","The checks","Mistakes","What comes next"]},{"b":"everglade","t":"29. Many rooms","u":"/books/everglade/ch029-many-rooms","s":"partly implemented","h":["What this chapter teaches","What exists today","The method","Worked trace: move, crash before/after commit, and full destination","Runnable example","The checks","Mistakes","What comes next"]},{"b":"everglade","t":"30. Accounts and persistence","u":"/books/everglade/ch030-accounts-and-persistence","s":"partly implemented","h":["What this chapter teaches","What exists today","The method","Worked trace: second-device login and checkpoint fencing","Runnable example","The checks","Mistakes","What comes next"]},{"b":"everglade","t":"31. Ship it","u":"/books/everglade/ch031-ship-it","s":"partly implemented","h":["What this chapter teaches","What exists today","The method","Worked trace: release order, pins, staging lock, and canary stop","Runnable example","The checks","Mistakes","What comes next"]},{"b":"everglade","t":"32. Run a live world","u":"/books/everglade/ch032-run-a-live-world","s":"partly implemented","h":["What this chapter teaches","What exists today","The method","Worked trace: SLOs, alerts, moderation, and soak verdict","Runnable example","The checks","Mistakes","What comes next"]},{"b":"everglade","t":"33. Let's build a dragon","u":"/books/everglade/ch033-lets-build-a-dragon","s":"implemented","h":["What this chapter teaches","A model built from a script","Flight from SRD speeds","The dragon's actions as SRD rules","The druid's Shapechange","Dragon Lab: arrive as the dragon","Riding it as a mount","Worked hand calculation","The checks","Runnable example","Mistakes","What comes next"]},{"b":"everglade","t":"A. A fantasy HUD","u":"/books/everglade/appendix-a-a-fantasy-hud","s":"partly implemented","h":["What this appendix teaches","What exists today","The checks","Mistakes","What's left"]},{"b":"claude-code","t":"Introduction","u":"/books/claude-code","s":"","h":["Who This Book Is For","Pedagogical Method: Strict Bottom-Up Assembly","Repository Snapshot Caveats","Directory Layout","Reference Guides, Prologue, and Appendices","Chapters","Cross-Reference to OpenAgents Coax Counterparts","Where to Start Reading"]},{"b":"claude-code","t":"Architecture Map","u":"/books/claude-code/ARCHITECTURE_MAP","s":"","h":["1. The Nine-Layer Stack","2. Dependency Flow Between Subsystems","3. End-to-End Runtime Dataflow: One User Turn","4. Seven Cross-Cutting Engineering Principles"]},{"b":"claude-code","t":"Master Outline","u":"/books/claude-code/OUTLINE","s":"","h":["Prologue","Part I — Foundations: Atoms, State, and Contracts (Layers 0–1)","Part II — The Prompt, the Model, and the Engine (Layer 2)","Part III — Surviving Long Horizon: Context Management & Memory (Layer 3)","Part IV — Safety, Policy, and Extensibility (Layer 4)","Part V — Dynamic Capabilities: MCP, Skills, Plugins, and LSP (Layer 5)","Part VI — Concurrency, Tasks, Subagents, and Swarms (Layer 6)","Part VII — The Terminal UI Engine (Layer 7)","Part VIII — Entrypoints, Startup, SDK, and Remote Control (Layer 8)","Part IX — Epilogue: The Snapshot Meets the Shipped Product","Appendices (Drafted)"]},{"b":"claude-code","t":"Codebase Glossary","u":"/books/claude-code/GLOSSARY","s":"","h":["Core Architectural Terms","Hooks, Configuration, MCP & Extension Terms","Concurrency, Subagents, Swarms & Terminal Renderer Terms","REPL, Startup, SDK & Remote Control Terms","Compaction & Context Terms","Internal Build, Product & Feature Terms"]},{"b":"claude-code","t":"Editorial & Authoring Guide","u":"/books/claude-code/EDITORIAL_GUIDE","s":"","h":["1. Core Voice & Pedagogical Principles","2. Standard Chapter Anatomy","3. Source Grounding & Honesty Rules","4. Diagram & Formatting Conventions","5. Chapter Naming & File Convention"]},{"b":"claude-code","t":"Prologue — How to Read a 1,900-File Agent","u":"/books/claude-code/prologue-how-to-read-a-1900-file-agent","s":"","h":["Why Reading Top-Down Fails","1. The Lay of the Land: Where the 1,910 Files Live","2. Five Recurring Idioms You Will See Everywhere","3. How We Will Build Up the Codebase","Reading Checkpoints"]},{"b":"claude-code","t":"1. The Atoms: Identity, Reactive Stores, Lazy Schemas, and Async Generators","u":"/books/claude-code/ch001-atoms-types-stores-and-primitives","s":"written","h":["Why This Layer Exists","1. Branded Identity (types/ids.ts)","2. The 34-Line Reactive Store (state/store.ts → state/AppState.tsx)","3. The Process-Wide Leaf Singleton (bootstrap/state.ts)","4. Deferred Schema Construction (utils/lazySchema.ts)","5. Bounded Async-Generator Multiplexing (utils/generators.ts)","6. Bounded File Awareness (utils/fileStateCache.ts)","Putting Layer 0 Together","How This Snaps Into the Next Layer","Reading Exercises & Code Checkpoints"]},{"b":"claude-code","t":"2. The Tool Contract: Defining What an Agent Can Do","u":"/books/claude-code/ch002-the-tool-contract","s":"written","h":["Why This Layer Exists","1. The Four Faces of Tool<Input, Output, P> (Tool.ts)","2. Fail-Closed Defaults: buildTool() (Tool.ts:703-792)","3. The Capability Bag: ToolUseContext & ToolPermissionContext","4. Concrete Walkthrough: tools/GlobTool/GlobTool.ts","5. Assembling the Tool Catalog (tools.ts)","Putting Layer 1 Together","How This Snaps Into the Next Layer","Reading Exercises & Code Checkpoints"]},{"b":"claude-code","t":"3. The Command & Message Contracts: User Input Meets the Model","u":"/books/claude-code/ch003-command-and-message-contracts","s":"written","h":["Why This Layer Exists","1. The Three-Variant Command Contract & Registry","2. Slash Parsing & Runtime Dispatch","3. Multi-Modal Input Routing & UserPromptSubmit Hooks","4. Dual Message Views & The Two-Stage API Boundary","5. Wire-Safety Invariants: Thinking Blocks & Tool Pairing","Putting Layer 1 Together","How This Snaps Into the Next Layer","Reading Exercises & Code Checkpoints"]},{"b":"claude-code","t":"4. Prompt Engineering as Systems Engineering: Context & Cache Boundaries","u":"/books/claude-code/ch004-prompt-engineering-and-cache-boundaries","s":"written","h":["Why This Layer Exists","1. Conversation-Memoized Context & the CLAUDE.md Cycle Breaker (context.ts, utils/claudemd.ts, utils/queryContext.ts)","2. The Prompt Section Registry & the Scary Function Name (constants/systemPromptSections.ts)","3. Static vs. Dynamic Split & the Branded Priority Cascade (constants/prompts.ts, utils/systemPromptType.ts, utils/systemPrompt.ts)","4. Wire-Prefix Splitting, Context Placement & Tool Schema Stability (utils/api.ts, utils/toolSchemaCache.ts)","5. Cache-Break Forensics in Production (services/api/promptCacheBreakDetection.ts)","Putting the Layer Together","How This Snaps Into the Next Layer","Reading Exercises & Code Checkpoints"]},{"b":"claude-code","t":"5. Talking to the Model: API Client, Streaming, Retries, and Accounting","u":"/books/claude-code/ch005-talking-to-the-model","s":"written","h":["Why This Layer Exists","1. Target Configuration: Model Resolution, Thinking Modes, and Effort Levels","2. Four Providers Behind One Client (services/api/client.ts)","3. Request Assembly, Stage 2 Wire Conversion, and Sticky Cache Latches (services/api/claude.ts)","4. Retries as an AsyncGenerator, Overload Fallbacks, and Error Taxonomy (services/api/withRetry.ts, services/api/errors.ts)","5. Raw SSE Streaming, Watchdog, Non-Streaming Fallback, and Socket Hygiene (services/api/claude.ts)","6. Token Usage, USD Cost Accounting, and Quota Utilization","Putting the Layer Together","How This Snaps Into the Next Layer","Reading Exercises & Code Checkpoints"]},{"b":"claude-code","t":"6. Executing Tools: Validation, Hooks, Concurrency, and Streaming Execution","u":"/books/claude-code/ch006-executing-tools","s":"written","h":["Why This Layer Exists","1. The Single-Tool Lifecycle: From tool_use to tool_result","2. Hook Arbitration & Permission Handoff","3. Batch Orchestration: Partitioning Concurrency & Context Modifiers","4. Executing While the Model Still Talks: StreamingToolExecutor","5. Two-Stage Result Persistence & Cache-Safe Budgeting","Putting the Layer Together","How This Snaps Into the Next Layer","Reading Exercises & Code Checkpoints"]},{"b":"claude-code","t":"7. The Heartbeat: `query.ts` and the Agentic Turn State Machine","u":"/books/claude-code/ch007-the-heartbeat-query-loop","s":"written","h":["Why This Layer Exists","1. The Wrapper, the Flat State Machine, and Absent query/transitions.ts","2. Decoupling I/O and Runtime Gates: QueryDeps, QueryConfig, and Bun DCE","3. Streaming Dispatch, needsFollowUp, Dual Fallbacks, and Turn Rollover","4. Withheld Error Recovery: Suppress, Recover, Surface Once","5. End-of-Turn Orchestration: handleStopHooks and checkTokenBudget","6. Forward Seams Inside queryLoop() (Compaction & Memory)","Putting the Layer Together","How This Snaps Into the Next Layer","Reading Exercises & Code Checkpoints"]},{"b":"claude-code","t":"8. The Session Envelope: `QueryEngine.ts` and Transcript Persistence","u":"/books/claude-code/ch008-session-envelope-query-engine-and-transcripts","s":"written","h":["Why This Layer Exists","1. The Session Envelope: QueryEngine vs. query() (QueryEngine.ts)","2. SDK Framing, Orphaned Permissions & Resume Cache Extraction (utils/queryHelpers.ts)","3. JSONL Transcript Persistence, the parentUuid DAG & Scale Guards (utils/sessionStorage.ts, utils/sessionStoragePortable.ts)","4. Crash Recovery, Resume & Session Forking (utils/json.ts, utils/conversationRecovery.ts, utils/sessionRestore.ts)","5. Rolling Back Conversation & Disk Together: /rewind (utils/fileHistory.ts)","Putting Layer 2 Together","How This Snaps Into the Next Layer","Reading Exercises & Code Checkpoints"]},{"b":"claude-code","t":"9. The Five-Layer Compaction Pipeline","u":"/books/claude-code/ch009-five-layer-compaction-pipeline","s":"written","h":["Why This Layer Exists","1. The Five-Stage Pre-API Pipeline & Reactive Overflow Recovery","2. Microcompaction: Cold-Cache Clearing, Warm-Cache Edits, and Server-Side Policies","3. Threshold Math, Exclusivity Guards & the Three-Failure Circuit Breaker","4. Full & Partial LLM Summarization, compact_boundary, and Budgeted Restoration","5. The Zero-LLM Fast Path: SessionMemory Compaction","6. Post-Compact Cleanup & Manual taskBudgetRemaining Accounting","Putting the Layer Together","How This Snaps Into the Next Layer","Reading Exercises & Code Checkpoints"]},{"b":"claude-code","t":"10. Memory Systems: `CLAUDE.md`, Auto-Memory, Session Memory, and Auto-Dream","u":"/books/claude-code/ch010-memory-systems-claudemd-auto-memory-and-dream","s":"written","h":["Why This Layer Exists","1. Hierarchical CLAUDE.md, Conditional Rules, and Nested Injection (utils/claudemd.ts, utils/attachments.ts)","2. Persistent Auto-Memory & Team Memory Layout (memdir/)","3. Latency-Hidden Relevant Memory Prefetch with using (memdir/memoryScan.ts, memdir/findRelevantMemories.ts, utils/attachments.ts, query.ts)","4. Cache-Sharing Background Agents: SessionMemory and extractMemories (services/SessionMemory/, services/extractMemories/, utils/forkedAgent.ts)","5. Cross-Session Consolidation: autoDream's Three-Gate Lock (services/autoDream/, tasks/DreamTask/DreamTask.ts)","6. Team Memory Sync, Secret Scanning, and File Watcher (services/teamMemorySync/)","Putting Layer 3 Together","How This Snaps Into the Next Layer","Reading Exercises & Code Checkpoints"]},{"b":"claude-code","t":"11. The Permission Engine: Modes, Rules, Classifiers, and Persistence","u":"/books/claude-code/ch011-the-permission-engine","s":"written","h":["Why This Layer Exists","1. Permission Contracts, Modes, and the Eight Rule Sources","2. Two-Layer Evaluation Precedence, Stripping, Transitions, and Persistence","3. Filesystem Path Validation, Symlinks, Working Directories, and Protected Paths","4. Shell Wildcard Rule Matching and Dangerous Command Patterns","5. The Auto-Mode Security Classifier and Denial Circuit Breaker","6. Interactive, Coordinator, and Swarm Permission Handlers","Putting the Layer Together","How This Snaps Into the Next Layer","Reading Exercises & Code Checkpoints"]},{"b":"claude-code","t":"12. Shell Execution, Sandboxing, and Core Workspace Tools","u":"/books/claude-code/ch012-shell-execution-sandboxing-and-workspace-tools","s":"written","h":["Why This Layer Exists","1. Shell Parsing, Security Analysis, and Read-Only Classification","2. Subprocess Execution, Timeouts, and Foreground-to-Background Promotion","3. OS-Level Sandboxing and the @anthropic-ai/sandbox-runtime Boundary","4. Core Workspace Tools and the FileStateCache Staleness Protocol","Putting Layer 4's Concrete Tool Stack Together","How This Snaps Into the Next Layer","Reading Exercises & Code Checkpoints"]},{"b":"claude-code","t":"13. The Hook System: Intercepting Every Lifecycle Event","u":"/books/claude-code/ch013-the-hook-system","s":"written","h":["Why This Layer Exists","1. The 27-Event Lifecycle Bus, Matching Pipeline, and Dual Dispatch Paths","2. The Four Hook Execution Backends (Plus In-Process Callbacks & Functions)","3. Exit Codes, JSON Decision Envelopes, and Safe Permission Composition","4. Consistency Across Time, Subagents, and Background Execution","Putting the Layer Together","How This Snaps Into the Next Layer","Reading Exercises & Code Checkpoints"]},{"b":"claude-code","t":"14. Configuration, Settings Precedence, and Enterprise Policy","u":"/books/claude-code/ch014-configuration-settings-and-enterprise-policy","s":"written","h":["Why This Layer Exists","1. Two Stores, One Trust Boundary: GlobalConfig vs. the Settings Cascade","2. The Five-Source Settings Cascade, Merge Semantics, and Fail-Closed vs. Fail-Open","3. Live Settings Propagation: File Watching, Trust Boundaries, and Headless Parity","4. Enterprise Policy Services: Remote Managed Settings & Policy Limits","5. Idempotent Startup Migrations (migrations/ & main.tsx)","Putting the Layer Together","How This Snaps Into the Next Layer","Reading Exercises & Code Checkpoints"]},{"b":"claude-code","t":"15. Model Context Protocol (MCP): Clients, Transports, Auth, and Tool Search","u":"/books/claude-code/ch015-model-context-protocol-mcp","s":"written","h":["Why This Layer Exists","1. Configuration Resolution, Policy Gates, and Deduplication","2. The Eight Transports and Connection Resilience","3. OAuth 2.1, Cross-Process Refresh Locking, Step-Up Auth, and XAA","4. Live Connection Lifecycle, Notifications, and Elicitation","5. Adapting MCP Tools: Normalization, Permissions, Output Budgeting, and Cache Partitioning","6. Solving Tool-Schema Bloat Without Cache Busts: ToolSearchTool and Deferred Loading","Putting the Layer Together","How This Snaps Into the Next Layer","Reading Exercises & Code Checkpoints"]},{"b":"claude-code","t":"16. Skills, Plugins, Output Styles, and LSP Intelligence","u":"/books/claude-code/ch016-skills-plugins-output-styles-and-lsp","s":"written","h":["Why This Layer Exists","1. Skills: Markdown Playbooks, Path-Scoped Triggers, and Inline vs. Forked Execution","2. Plugins: Packaging, Trust Boundaries, Caching, and /reload-plugins Hot-Swapping","3. Output Styles: Re-Framing the System Prompt Across the Cache Boundary","4. LSP Intelligence: Lazy Language Servers, LSPTool, and Passive Compiler Feedback","Putting the Layer Together","How This Snaps Into the Next Layer","Reading Exercises & Code Checkpoints"]},{"b":"claude-code","t":"17. The Background Task Runtime: Unified State, Disk-Backed Output, Notifications, and Proactive Scheduling","u":"/books/claude-code/ch017-background-task-runtime","s":"written","h":["Why This Layer Exists","1. The Unified Task State Contract & setAppStateForTasks","2. Disk-Backed Output, Byte Offsets, and Bounded Memory","3. Asynchronous Notification Delivery, Cancellation, and SDK Bookends","4. Scheduled Cron Tasks and Proactive SleepTool Wakeups","Putting the Layer Together","How This Snaps Into the Next Layer","Reading Exercises & Code Checkpoints"]},{"b":"claude-code","t":"18. Subagents, Context Forking, and Git Worktrees","u":"/books/claude-code/ch018-subagents-context-forking-and-worktrees","s":"written","h":["Why This Layer Exists","1. Isolating Child State Without Breaking the Root Store (utils/forkedAgent.ts)","2. Context Forking and Byte-Exact Prompt-Cache Sharing (forkSubagent.ts, utils/forkedAgent.ts)","3. Agent Registry, Custom Definitions, and Execution Lifecycle","4. Sidechain Transcripts and Resuming Agents Days Later (resumeAgent.ts, sessionStorage.ts)","5. Isolating Concurrent Edits with Git Worktrees (utils/cwd.ts, utils/worktree.ts, EnterWorktreeTool, ExitWorktreeTool)","Putting the Layer Together","How This Snaps Into the Next Layer","Reading Exercises & Code Checkpoints"]},{"b":"claude-code","t":"19. Agent Teams, Swarms, and Coordinator Mode: Multi-Agent IPC, Permission Bubbling, and Pure Orchestration","u":"/books/claude-code/ch019-agent-teams-swarms-and-coordinator-mode","s":"written","h":["Why This Layer Exists","1. Team Formation, Flat Rosters, and Dual Identity Resolution","2. Execution Backends: In-Process Runner vs. tmux and iTerm2 Panes","3. File-Locked Mailboxes, Protocol Multiplexing, and Idle/Wakeup Semantics","4. Permission Bubbling Across Async and Process Boundaries","5. Coordinator Mode: Turning the Leader into a Pure Orchestrator","Putting the Layer Together","How This Snaps Into the Next Layer","Reading Exercises & Code Checkpoints"]},{"b":"claude-code","t":"20. Inside `ink/`: A Custom React Renderer for the Terminal","u":"/books/claude-code/ch020-inside-ink-terminal-react-renderer","s":"written","h":["Why This Layer Exists","1. Custom DOM Nodes, React 19 Reconciliation, and Pure-TS Yoga Layout","2. Painting the Tree: Blitting, ScrollBox Culling, and the Packed Screen Buffer","3. Diffing, Peephole Optimization, Synchronized Output, and Alt-Screen Lifecycle","4. Terminal I/O Protocols: Keyboard Parsing, Querying, Focus, Mouse Hit-Testing, Selection, and Hyperlinks","Putting the Layer Together","How This Snaps Into the Next Layer","Reading Exercises & Code Checkpoints"]},{"b":"claude-code","t":"21. The Interactive REPL: Screens, Input, Keybindings, and Vim Mode","u":"/books/claude-code/ch021-the-interactive-repl-screens-keybindings-and-vim","s":"written","h":["Why This Layer Exists","1. Mounting the Workspace: Setup Screens, Lazy REPL Launch, and Live Capability Merging","2. Bridging query() Into React: QueryGuard, Stream Dispatch, Queued Prompts, and Modal Arbitration","3. Rendering Thousands of Messages Without a GC Death Spiral: Messages.tsx, VirtualMessageList, and PromptInput","4. The Keybindings Subsystem: Stacked Contexts, Chords, and Terminal Quirks","5. Pure-Functional Vim Mode Inside the Prompt Editor","Putting the Layer Together","How This Snaps Into the Next Layer","Reading Exercises & Code Checkpoints"]},{"b":"claude-code","t":"22. Cold Start Mastery: From `entrypoints/cli.tsx` Through `init.ts` to `main.tsx`","u":"/books/claude-code/ch022-cold-start-mastery-cli-init-main","s":"written","h":["Why This Layer Exists","1. Zero-Import Bootstrap and Fast-Path Branching (entrypoints/cli.tsx)","2. The Strict Boot Sequence: entrypoints/init.ts and Startup Profiling","3. Winning the Import Race: Parallel Prefetches in main.tsx and setup.ts","4. Trust Boundary, Mode Dispatch, and Interactive vs. Headless Handoff","5. Bulletproof Teardown: cleanupRegistry.ts and gracefulShutdown.ts","Putting the Layer Together","How This Snaps Into the Next Layer","Reading Exercises & Code Checkpoints"]},{"b":"claude-code","t":"23. Machine-Readable Modes: Headless CLI, Agent SDK, and Control Protocols","u":"/books/claude-code/ch023-machine-readable-modes-headless-sdk-and-control-protocols","s":"written","h":["Why This Layer Exists","1. The Wire Discipline: Keeping stdout Pure NDJSON","2. Schema-First Contracts and the Snapshot Boundary","3. StructuredIO: Full-Duplex RPC Multiplexing Over stdin/stdout","4. cli/print.ts: Driving QueryEngine Across Text, JSON, and stream-json","5. Inverting the Architecture: The Harness as an MCP Server (entrypoints/mcp.ts)","Putting the Layer Together","How This Snaps Into the Next Layer","Reading Exercises & Code Checkpoints"]},{"b":"claude-code","t":"24. Across the Wire: Remote Sessions, Always-On Bridge, and Direct Connect","u":"/books/claude-code/ch024-across-the-wire-remote-sessions-bridge-and-direct-connect","s":"written","h":["Why This Layer Exists","1. The Transport Substrate: WebSocket, Hybrid, SSE, and CCRClient","2. Exposing the Local REPL: Bridge Cores, Flush Gates, Attachments, and the Permission Race","3. Always-On Multi-Session Bridge: bridgeMain.ts, sessionRunner.ts, and Crash Recovery","4. Looking the Other Way: Remote CCR Client (remote/) and Direct Connect (server/)","5. Zero-Secret Subprocess Tunneling: The CCR upstreamproxy/ Relay","Putting the Layer Together","How This Snaps Into the Next Layer","Reading Exercises & Code Checkpoints"]},{"b":"claude-code","t":"25. Bringing It to the Present: From 2.1.88 to 2.1.331","u":"/books/claude-code/ch025-bringing-it-to-the-present","s":"written","h":["Why This Chapter Exists","1. How We Know What We Know","2. The Timeline: Five Eras","3. Layer by Layer","4. Where the Seams Held","5. Open Questions: What We'd Need the Source For","Putting the Layer Together","How This Snaps Into the Book","Reading Exercises & Code Checkpoints"]},{"b":"claude-code","t":"Appendix A — Feature Flags & Environment Knobs","u":"/books/claude-code/appendix-a-feature-flags-and-env-knobs","s":"","h":["Why Four Separate Gating Layers Exist","1. How Build-Time feature() Dead-Code Elimination Works (And Where It Breaks)","2. Complete Inventory of All 90 Build-Time feature() Flags","3. The USER_TYPE === 'ant' Split: Constant Folding Across .tsx vs. .ts","4. Environment Variable Architecture: Trust Boundaries, Filters, and Subprocess Scrubbing","5. Load-Bearing Environment Knobs by Subsystem","Verification & Exploration Commands"]},{"b":"claude-code","t":"Appendix B — Missing Snapshot Boundaries","u":"/books/claude-code/appendix-b-missing-snapshot-boundaries","s":"","h":["Why This Snapshot Has Exact, Predictable Holes","1. Master Inventory of Missing Snapshot Boundaries","2. Reconstructed from Call Sites: types/message.ts","3. Reconstructed from Call Sites: query/transitions.ts","4. Reconstructed from Call Sites: Context Collapse & Compaction Extensions","5. Reconstructed from Call Sites: services/skillSearch/ & proactive/","Putting the Boundary Map Together","Reading Exercises & Code Checkpoints"]},{"b":"claude-code","t":"Appendix C — Mini-Harness Blueprint","u":"/books/claude-code/appendix-c-mini-harness-blueprint","s":"","h":["Why Build a Mini-Harness?","1. Layer 0: Zero-Dependency Atoms (store.ts, fileStateCache.ts, generators.ts)","2. Layer 1: Fail-Closed Tool Contract & Cache-Stable Pool (tool.ts)","3. Layer 2: Prompt Boundaries, Tool Orchestration, and the query() Turn Loop","4. Layer 3: Two-Stage Context Survival (compact.ts)","5. Layer 4: Bypass-Immune Permissions & Hook Arbitration (permissions.ts, hooks.ts)","6. Layer 6: Subagent Context Forking (subagent.ts)","7. Layer 8: Session Envelope, parentUuid Transcript, and Shutdown (engine.ts)","Pattern-to-Production Crosswalk","Extension Roadmap: Growing Without Rewriting query()","Reading Exercises & Code Checkpoints"]}]
