Glossary by What You Want to Do
Start from a sentence such as “I want this” or “I want to prevent that” and go to the concept that applies. You do not need to know the name of the term.
Nothing matches. Try other words, or use the other way of looking up.
Keep the same job from running twice
Install the same worker on three Macs, but let only one of them run
The concept that appliesLease (Leased Lock), Active-Standby RedundancyA time-bounded exclusive ownership right over a resource or role
Stop a Mac that was paused from coming back and overwriting with stale data
The concept that appliesFencing Token and Generation NumberA monotonically increasing sequence number used by the storage layer to reject stale writes from expired lock holders
Give up my update if someone else changed the record first
The concept that appliesCompare-and-Swap (CAS) and Optimistic Concurrency ControlA concurrency control technique that commits updates only if the record version matches what was originally read
Make an operation leave the same result when it runs twice as when it runs once
The concept that appliesIdempotencyA property where performing an operation once or multiple times produces the identical result and system state
Keep benchmarks and AI inference from colliding on the same Mac
The concept that appliesMutual Exclusion (Mutex) LockA synchronization mechanism granting exclusive access rights to a single process at a time across contested resources
Keep two machines from both believing they are the leader when the network splits
The concept that appliesSplit-Brain Avoidance and Leader ElectionMechanisms that safely elect a single coordinator ('leader') among multiple machines and prevent 'split-brain' disasters where network partitions cause two nodes to act as leader simultaneously
Decide up front whether a hand-off may lose a job or deliver it twice
The concept that appliesDelivery Guarantees (at-most-once / at-least-once)A contractual assurance regarding the reliability of message or task dispatch across distributed boundaries
Recover and resume after something stops
Avoid guessing when I cannot tell whether a job succeeded or failed
The concept that appliesUncertain State / In-Doubt StateA suspended condition where an external caller cannot determine whether an operation succeeded or failed
Resume from where it stopped instead of starting over after a crash
The concept that appliesCheckpoint, Write-Ahead Logging (WAL) and JournalingA recorded snapshot of verified progress within long-running or continuous systems
Notice from the outside when a worker has stopped or hung
The concept that appliesWatchdog Timer / Watchdog Process, Heartbeat and Failure DetectionAn external guardian mechanism that periodically monitors system liveness and task progress, automatically reclaiming or restarting hung jobs without human intervention
Switch automatically to the next option when the first-choice AI is unavailable
The concept that appliesFallback Chain (Cascading Fallback)A multi-stage resilience mechanism that sequentially switches to pre-defined alternatives according to priority whenever a primary method fails, hits quota limits, or goes offline
Stop after a set number of attempts instead of repeating the same failure
The concept that appliesRetry Limits and Circuit BreakersProtective mechanisms that stop repeating the same failure endlessly by capping retry counts or automatically tripping a breaker (holding dispatch) to shield the system
Keep the whole system running when one part breaks
The concept that appliesSingle Point of Failure (SPOF) and Failover, Bulkhead Pattern (Isolation)Identifying and eliminating critical weak points where a single failure halts the entire system (SPOF), and automatically switching operations to a standby node (Failover) to survive outages
Be able to restore the data after it is lost
The concept that appliesBackup and Restore / Disaster RecoveryThe practice of isolating raw data and incremental snapshots to guard against data loss, enabling complete recovery during disasters
Make outgoing messages survive a crash without being lost or sent twice
The concept that appliesTransactional Outbox PatternAn architecture where outgoing messages are persisted in local storage (the outbox) within the same transaction before being sent externally
Avoid two stores disagreeing when only one of two writes succeeds
The concept that appliesDual WriteWriting a single event or piece of data to two separate storage systems without a distributed transaction
Judge deadlines correctly even when the clocks on each Mac disagree
The concept that appliesClock Skew and Monotonic ClocksAn approach that avoids relying on volatile wall-clock time and instead measures elapsed durations using non-decreasing monotonic clocks
Always know which data is the real one
Decide which copy to trust when the screen, Git and the database disagree
The concept that appliesSource of Truth (System of Record), Derived Data and ProjectionThe single authoritative original data record across an entire system
Keep the full history of changes without rewriting past records
The concept that appliesAppend-only LogA data structure where historical records are never overwritten or deleted, but instead continuously appended to the tail
Confirm that the version that was checked is the version that ships
The concept that appliesContent-Addressable Hash Verification, Snapshot Verification and Head PinningUsing cryptographic hash values derived from data contents to verify identity and integrity mechanically
Merge differently spelled names that refer to the same thing
The concept that appliesEntity Resolution / Record Linkage / DeduplicationThe process of identifying and unifying disparate records that refer to the same real-world entity despite naming variations and aliases
Keep a job's status from changing in an impossible order
The concept that appliesState MachineA mechanism that strictly defines all valid states and permitted transitions for a system
Reject malformed data and settings at the door
The concept that appliesSchema ValidationA deterministic inspection verifying that data and configurations adhere to predefined structures, types, and constraints
Organise how work flows and who does what
Separate those who create jobs from those who run them, and process jobs as workers free up
The concept that appliesWork Queue (Producer-Consumer Pattern)An asynchronous mechanism that buffers pending tasks in a queue to decouple task producers from task consumers
Hold the next job until the one it depends on has finished
The concept that appliesDependency Graph (DAG) and Conditional SchedulesA control pattern representing task prerequisites as a directed graph to defer execution until all conditions are satisfied
Separate deciding what to do from actually doing it
The concept that appliesControl Plane and Data PlaneAn architectural separation between the control plane (which decides policies and task routing) and the data plane (which executes heavy workloads and data processing)
Make it clear who does what by dividing work into roles
The concept that appliesSeparation of Concerns (SoC) and Role Boundaries, Departments and RolesThe principle of dividing distinct responsibilities within a system into independent components or roles with strict non-interference boundaries
Choose between a central conductor and letting each AI act on its own
The concept that appliesOrchestration and ChoreographyThe contrast between coordinating multiple agents via a central conductor that issues step-by-step commands (Orchestration) versus having each agent react autonomously to surrounding events (Choreography)
Have AI agents hand work to each other and check each other's output
The concept that appliesA2A (Agent-to-Agent), Independent Verification (Verifier)A collaborative multi-agent architecture where multiple AI agents divide roles to exchange, verify, and review artifacts autonomously
Build the path from fetching to publishing out of small connected stages
The concept that appliesPipes and Filters Pattern (Pipeline Architecture)An architecture that divides data processing into a sequence of independent processing stages (filters) connected by standardized data conduits (pipes)
Describe what to build as data instead of writing out the steps
The concept that appliesDeclarative Design (Blueprint-driven Architecture)Declaring 'what to build' as structured data (a blueprint) and letting a general-purpose engine build it automatically, rather than writing imperative step-by-step code for each project
Let the caller tell mechanically whether a program succeeded
The concept that appliesExit Code ContractStrictly defining the meaning of the integer status code returned when a program terminates so parent processes can branch deterministically without fragile text parsing
Choose between being notified of changes and checking for them on a schedule
The concept that appliesWebhook and PollingCombining instant event-driven push notifications (Webhooks) with periodic active state checks (Polling)
Make AI output something I can trust
Check that what the AI says is really in the source document
The concept that appliesGrounding and Source Verification, Hallucination MitigationA mechanism that mechanically verifies whether AI outputs are backed by trustworthy primary source text
Stop asking the AI that produced the work whether it is correct
The concept that appliesIndependent Verification (Verifier)A design where artifacts are checked by a mechanism completely separate from the generator
Have an AI grade the work in place of a person
The concept that appliesLLM-as-a-JudgeA design pattern that uses an LLM as an evaluator (judge)
Receive AI output in a form a program can read directly
The concept that appliesStructured Output and JSON ContractA mechanism that restricts LLM outputs to strict JSON formats agreed upon between programs
Verify with checks that give the same answer every time, without an AI
The concept that appliesDeterministic VerificationAn automated validation approach using programmatic code that guarantees 100% reproducible pass/fail outcomes for identical inputs
Hand decisions to a person only when it is really needed
The concept that appliesHuman-in-the-Loop and EscalationA mechanism that embeds human approval gates inside autonomous AI workflows and hands off decisions in stages only when necessary
Pull just the fields I need out of PDFs and scanned images into a table
The concept that appliesInformation Extraction with LLM, Optical Character Recognition (OCR)Extracting target attributes from unstructured documents and converting them into structured records using an LLM
Split a document that is too long into pieces an AI can read
The concept that appliesChunking, Context Length and KV CacheThe process of splitting long documents into smaller segments suitable for model processing
Turn speech into text
The concept that appliesAutomatic Speech Recognition (ASR / Whisper)An AI model that automatically transcribes human speech into written text (ASR)
Delegate work to AI safely and precisely
Run an LLM as an agent that uses tools and carries work forward by itself
The concept that appliesAgent HarnessThe outer execution environment (framework and scaffolding) that runs an LLM as a practical autonomous agent
Reuse instructions and standard procedures for AI instead of rewriting them
The concept that appliesAgent Skills and Instruction FilesInstruction files that define behavioral rules for AI agents, paired with modular, reusable workflow playbooks (Agent Skills)
Give AI a common way to use outside tools and data
The concept that appliesMCP (Model Context Protocol)An open standard protocol connecting AI models to external tools and data sources
Give the AI only the information it needs
The concept that appliesContext EngineeringThe discipline of optimizing and minimizing the context (prompts and reference material) fed into an LLM
Fence in where an AI can act so it cannot do anything dangerous
The concept that appliesSandbox and GuardrailsA protective isolation mechanism that confines an AI agent's operational scope to a safe boundary and prevents hazardous actions
Hand out keys and permissions only as far as each role needs
The concept that appliesPrinciple of Least Privilege (PoLP), Secrets ManagementGranting every process, AI agent, and API key only the bare minimum permissions required to perform its specific role
Verify who is asking every time, even for requests from inside
The concept that appliesZero Trust Access & VerificationA security paradigm that never assumes requests are safe simply because they originate inside a perimeter
Write down who a site is for in a form the AI can also use
The concept that appliesPersonaA concrete profile of a representative user defining their situation, device, familiarity, and goals
Keep AI cost and quota use down
Do simple jobs on my own Mac and save the external AI quota
The concept that appliesLocal-First (Local Pipeline)A design approach that runs tasks on local hardware (Macs) before relying on external cloud AI
Try a cheap model first and move up only when it falls short
The concept that appliesModel Cascade and RoutingA staged architecture that assigns work starting from the lowest-cost model
Pick models from measurements on my own Mac, not from reputation
The concept that appliesBenchmark-Driven Model Selection, Task-Specific BenchmarkSelecting models based on empirical metrics measured on in-house production hardware
Design the system to keep running inside the free tier
The concept that appliesFree Tier as an Architectural ConstraintAn architectural approach that treats cloud free-tier quotas and API limits as inviolable hard constraints from day one
Reserve tokens and quota before use and settle the real amount afterwards
The concept that appliesToken Quota and Cost SettlementA governance mechanism managing LLM API token consumption, expenditures, and rate limits through upfront reservations and post-run settlements
Send heavy inference to another Mac that has capacity to spare
The concept that appliesInference Offloading, Asymmetric Tiered AI Architecture (Tier 1-3)A distributed execution mechanism that delegates resource-heavy AI inference workloads to separate, capable machines with spare capacity
Run a large model on a Mac with limited memory
The concept that appliesQuantizationA technique that reduces the numerical precision of model weights to shrink memory footprint and accelerate inference
Run CI on my own Mac instead of spending cloud minutes
The concept that appliesSelf-hosted RunnerRegistering and operating your own servers or Macs as CI/CD execution nodes instead of using cloud-hosted virtual machines
Publish changes safely
Let only changes that pass the tests reach production, with no manual step
The concept that appliesCI/CD Gate and Automated MergeAn automated quality gate that merges pull requests into the production branch without human intervention once all automated tests and checks pass
Choose between building in the cloud and uploading directly from my own machine
The concept that appliesWorkers Builds vs. Direct UploadTwo distinct publishing pipelines in Cloudflare: building automatically via cloud CI/CD (Workers Builds), or uploading pre-verified local build artifacts directly via CLI (Direct Upload)
Serve a site fast and cheaply without running a server
The concept that appliesStatic Site Delivery (SSG), Edge Computing and ServerlessServing pre-rendered HTML, CSS, and images directly from an edge CDN without assembling pages dynamically on a web server
Say “done” with real evidence
Never confuse “the code is written” with “it is running in production”
The concept that appliesDistinguishing 'Implemented' from 'Running' (Definition of Done)Strictly separating 'code written and passing tests (Implemented)' from 'deployed to production and verified live (Running)'
Define with evidence what it takes to call a job finished
The concept that appliesReceipt and Definition of DoneA verification framework that validates task completion through tamper-evident artifacts and cryptographically verifiable receipts
Watch out for improvements that only make the metric look better
The concept that appliesGoodhart's LawAn observation stating that when a measure becomes a target, it ceases to be a good measure
Confirm the effect of a change with numbers, not impressions
The concept that appliesEvals and Effect MeasurementA rigorous methodology for continuously measuring AI model quality and system enhancements against quantitative operational data rather than subjective impressions
Be able to trace later why a design was chosen
The concept that appliesADR (Architecture Decision Record), Architectural Decision Numbers (K-numbers)A concise document recording a significant architectural decision alongside its context, rationale, and consequences
Guard the rules I care about automatically, as tests
The concept that appliesArchitectural Fitness FunctionAutomated, objective inspection code that continuously verifies whether a system's architectural characteristics (quality standards, constraints, and banned patterns) remain intact
State clearly which qualities the design favours, such as speed or resilience
The concept that appliesArchitecture Characteristics (-ilities)Quality attributes that describe how software behaves rather than what it does