The Sibuna Book¶ The mathematics and engineering of web defense. Preface How to Read This Book Three Reading Paths Conventions Part I: The Cost of a Request Admission Is an Economic Decision What a Proof of Work Establishes Hash Search as a Random Variable Sessions Amortise Work Bounded State Is a Second Budget The Invariants We Will Carry Forward Part II: Prior Art and the Design Space Where Sibuna Comes From Three Ideas in One Binary Feature Comparison Part III: Foundations from Cryptography Research Hashcash: The Mathematics of Tier One Proof of Sequential Work: Tier Two Symmetric Authentication: Challenges and Sessions Part IV: The Sibuna Protocol The Challenge Round Trip The Stateless Challenge Record Verification Order and Single Use The Session Cookie Part V: Zero-Allocation Engineering in Rust The Connection Loop Concurrent State Without Allocation Part VI: Automata, Tries, and the Semantic Firewall Single-Pass Multi-Pattern Matching The Radix Trie for IPv4 and IPv6 The Semantic Firewall The Declarative Policy Engine Part VII: The Browser Proof-of-Work Engine One Source, Two Targets The Worker Protocol Calibration The Interstitial Part VIII: Empirical Evaluation Methodology Primitive Latencies Whole-Product Comparison Latency at Equal Offered Load Sibuna and Anubis Console Overhead Not Measured Part IX: Operations and Deployment Surfaces and Configuration Console Preview Deployment Topologies Declarative Policy Persistent Storage and Clustering Packaging Part X: Desk Reference and Diagnostics Endpoints Metrics Status Codes Error Catalog Policy Schema Storage Tables Build Targets Part XI: Quick Reference Card Build Run Console (opt-in preview) Flags That Matter First Endpoints Under /__sibuna/ Status Codes Headers Policy File Skeleton Storage (Edge) in SQL Diagnostics Numbers to Remember Ingress Routing Selected Solutions Part I: Cost and Probability Part II: Prior Art Part III: Cryptography Part IV: Protocol Part V: State and Ordering Part VI: Algorithms Part VII: Browser Engine Part VIII: Evaluation Part IX: Operations Part X: Reference Continue the Investigation Glossary Bibliography