Architecture decision records
Each ADR records one decision: its context, the decision itself, its consequences and the alternatives that were considered. ADRs are never edited to say something new. To change a decision, write a new ADR that supersedes the old one.
Statuses:
Proposed: written, not yet accepted.Accepted: in force.Superseded by NNNN: replaced by a later ADR.Amended by NNNN: a later ADR replaces part of it; the rest stands.
| ADR | Title | Status |
|---|---|---|
| 0001 | Apache-2.0 licence | Accepted |
| 0002 | TypeScript on Node.js; targets are tested over HTTP | Accepted |
| 0003 | Zero data egress by default | Accepted |
| 0004 | Expectations come from claims and data, not the implementation | Accepted |
| 0005 | Deterministic checks first; the LLM judge is calibrated and non-gating | Accepted |
| 0006 | Tooling and repository layout | Accepted; amended by 0008 |
| 0007 | yokla owns its results schema; other tools are reached by mapping | Accepted; amended by 0092 |
| 0008 | Generated JSON Schemas live where packs are assembled | Accepted |
| 0009 | Observing the target through its own logs | Accepted |
| 0010 | The gate: thresholds per suite, a baseline, and three exit codes | Accepted; amended by 0011 |
| 0011 | The baseline file, and cases compared only while their definition holds | Accepted |
| 0012 | The model proxy: a standalone process, routing, records and correlation | Accepted |
| 0013 | Fault plans: provider faults per turn, injected by the model proxy | Accepted; amended by 0017 |
| 0014 | Budgets: cost and latency thresholds, unmeasured thresholds, plan and cap | Accepted |
| 0015 | Prompt inspection: what the proxy captures, what is stored, and four checks | Accepted |
| 0016 | Streaming targets, session setup, and model calls after the answer | Accepted |
| 0017 | Fault jitter seeded by case, sample and turn | Accepted |
| 0018 | yokla init: a profile from one message, and starter cases | Accepted; amended by 0019 |
| 0019 | An edge-case turn is judged on whether the target handled it | Accepted |
| 0020 | Richer evidence mapping: several paths, availability, price sources, component text | Accepted; amended by 0021 |
| 0021 | A price times a stated quantity, and text that belongs to one item | Accepted |
| 0022 | A total of the answer's own amounts | Accepted |
| 0023 | A static HTML report | Accepted |
| 0024 | WebSocket targets | Accepted |
| 0025 | Tool calls: what the proxy reads, and the checks on them | Accepted |
| 0026 | Evidence from the tool results the model saw | Accepted |
| 0027 | A product named by the start of its name | Accepted |
| 0028 | The simulated customer, and yokla's own model calls | Accepted; amended by 0099, 0105 |
| 0029 | Model calls read from OpenTelemetry spans | Accepted |
| 0030 | Generic checks: patterns, JSON Schema, similarity, and checks the user writes | Accepted |
| 0031 | Authentication: tokens yokla obtains and refreshes | Accepted |
| 0032 | Gemini: the model proxy and yokla's own calls | Accepted |
| 0033 | Where a failure arose: the origin of the value a finding names | Accepted |
| 0034 | Publishing to npm | Accepted; amended by 0047 |
| 0035 | The smallest failing conversation: yokla shrink | Accepted; amended by 0036 |
| 0036 | yokla shrink keeps whole messages by default | Accepted |
| 0037 | The first publish of the npm names | Accepted; amended by 0071 |
| 0038 | Stopping a case's samples once its failure is settled | Accepted; amended by 0039 |
| 0039 | A majority-of-N failure in the demo-shop | Accepted |
| 0040 | Recorded model calls, replayed | Accepted |
| 0041 | yokla as an MCP server for coding agents | Accepted |
| 0042 | Comparing models through the proxy | Accepted; amended by 0043, 0045 |
| 0043 | Tool results changed by the proxy | Accepted |
| 0044 | A search for untried paths | Accepted; amended by 0046 |
| 0045 | Robustness transforms of a case's messages | Accepted; amended by 0106, 0107 |
| 0046 | Intents that state what they ask, across the catalog's types | Accepted; amended by 0048 |
| 0047 | The analyzer, deterministic first: inventory, data and probes | Accepted; amended by 0066, 0067, 0068 |
| 0048 | Intents ask as a shopper names things | Accepted; amended by 0050, 0052 |
| 0049 | The analyzer reads code and docs: values a model finds, verified in their source | Accepted; amended by 0051, 0072, 0074 |
| 0050 | A type asked by its catalog label | Accepted |
| 0051 | Replies the analyzer couldn't read, and tokens counted as code takes them | Accepted |
| 0052 | The currency-code turn where a dropped bound shows | Accepted |
| 0053 | Cases the data no longer holds: fixture-missing | Accepted; amended by 0054, 0055 |
| 0054 | An absent type is found at any level of a catalog type | Accepted |
| 0055 | Cases generated from the catalog: yokla generate | Accepted; amended by 0056 |
| 0056 | Type padding shows in a short result, not an empty band | Accepted |
| 0057 | The response contract from a contract file, verified against the answers | Accepted; amended by 0058 |
| 0058 | The demo-shop's contract is 19 entries | Accepted |
| 0059 | Paraphrase and code-switching, written by a model | Accepted; amended by 0060, 0099 |
| 0060 | A rewrite adds nothing, and keeps its language | Accepted |
| 0061 | Negated stock wording, and products the answer only names | Accepted |
| 0062 | Generated cases name products in stock | Accepted |
| 0063 | A generated name names one product, and "cheaper" has an answer | Accepted; amended by 0064 |
| 0064 | A cheaper follow-up says cheaper than what | Accepted |
| 0065 | Data from outside the repository, and a comparison without the contract | Accepted; amended by 0066 |
| 0066 | A large catalog read whole, and a contract that is a schema | Accepted |
| 0067 | An evidence field read as a number, or from a fallback | Accepted |
| 0068 | An evidence field left undecided names its candidates | Accepted |
| 0069 | The model proxy reads an AI SDK gateway | Accepted |
| 0070 | v0.4 ships with one exit criterion partly met | Accepted |
| 0071 | A new package reserved before it ships, and a release that resumes | Accepted |
| 0072 | The model step reads the likely files first, and answers at length | Accepted; amended by 0073, 0099 |
| 0073 | Marked files go smallest first | Accepted |
| 0074 | A number written with digit separators | Accepted |
| 0075 | A turn says what kind of request it is | Accepted |
| 0076 | A case carries a weight | Accepted |
| 0077 | Tags group the summary and select a run | Accepted |
| 0078 | A cached reply needs no key | Accepted |
| 0079 | The red-team track: v0.5 in seven items | Accepted; amended by 0081 |
| 0080 | Attack cases from templates (R1) | Accepted |
| 0081 | The red-team track, widened | Accepted |
| 0082 | More attack kinds from templates (R1b) | Accepted |
| 0083 | Leakage and another customer's data (R2) | Accepted |
| 0084 | Encoding and wrapping strategies (R3) | Accepted; amended by 0110 |
| 0085 | Injection through tools and memory (R4) | Accepted |
| 0086 | Agency and authority (R4b) | Accepted |
| 0087 | An attacker model (R5) | Accepted; amended by 0099, 0101, 0102, 0104 |
| 0088 | More attacker strategies (R5b) | Accepted; amended by 0101, 0102, 0104, 0109, 0110 |
| 0089 | Findings mapped to frameworks (R6) | Accepted |
| 0090 | A calibrated judge (R7) | Accepted; amended by 0099 |
| 0091 | More judge dimensions (R7b) | Accepted; amended by 0100 |
| 0092 | The ecosystem track: v0.6 in six items | Accepted |
| 0093 | A library API (E1) | Accepted |
| 0094 | A GitHub Action and CI recipes (E2) | Accepted |
| 0095 | Two runs side by side (E3) | Accepted |
| 0096 | Export (E4) | Accepted |
| 0097 | Import (E5) | Accepted |
| 0098 | A documentation site (E6) | Accepted |
| 0099 | Replies cut at maxTokens, in every role of yokla's own models | Accepted |
| 0100 | The demo-shop's judged defects answer in words of their own | Accepted |
| 0101 | An attacker's reply that isn't the attack | Accepted; amended by 0104 |
| 0102 | The demo-shop reads an instruction as a model words it | Accepted; amended by 0103 |
| 0103 | The demo-shop reads an instruction that points back to its code | Accepted |
| 0104 | The attacker's prompt is written in English | Accepted |
| 0105 | The demo-shop adds to the cart only when asked to | Accepted |
| 0106 | The demo-shop reads a typo, not another word | Accepted; amended by 0107, 0111, 0113, 0114 |
| 0107 | The demo-shop reads a word in its own language | Accepted; amended by 0108, 0111 |
| 0108 | The demo-shop reads a short English word, not the start of another | Accepted; amended by 0111, 0112 |
| 0109 | The attacker's tree layers leetspeak over its attempts | Accepted |
| 0110 | The demo-shop reads a wrapper as a model words it | Accepted |
| 0111 | The demo-shop reads an English word with an English ending | Accepted; amended by 0114 |
| 0112 | The demo-shop reads no colour in a red team | Accepted; amended by 0114 |
| 0113 | The demo-shop reads a word of its own as written | Accepted; amended by 0114, 0115 |
| 0114 | The demo-shop reads four phrases it misread | Accepted |
| 0115 | The demo-shop reads a product name written with a hyphen | Accepted |
Template
markdown
# NNNN. Title
Status: Proposed · Date: YYYY-MM-DD
## Context
## Decision
## Consequences
## Alternatives considered