Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Decisions

A decision record captures a choice worth understanding later: the context, the options considered, and the rationale for the one taken. It is the why behind a piece of the architecture. The what the code does now lives in the architecture reference layer, one doc per area; each decision links forward to the area doc it shaped, and each area section links back to the decisions behind it.

Because the reference layer carries current state, a decision record does not have to. So it is written the way history should be: immutable and past-tense. A decision is a record of a choice at the moment it was made, not a description of the system now. It is not rewritten when the code moves — the reference doc is edited instead. When a decision itself changes, a new record supersedes the old; the old one’s status becomes Superseded and it moves to archive/. This is the Nygard model, and it is what stops a decision record from rotting: history can’t go stale.

This reverses an earlier “living decision record, edited in place” convention. It does not bring back dated Amendment blocks accreting inside one document — both models reject those. It changes only what happens when a decision changes: edit the reference doc to match the code, and write a new record for the new why.

Status legend

  • Accepted / Approved — the decision is in effect.
  • Accepted (partial) — design ratified and partly built; the record carries an ## Implementation status section (see below).
  • Proposed — drafted, not yet ratified.
  • Superseded — replaced by a later decision or by a spike outcome; kept in archive/ for the audit trail.

Keeping status honest

A record’s Status is a claim about the codebase, not an aspiration. Before setting or changing it, verify the claim against the implementation — read the code; don’t trust the previous status or a feature’s “done” framing.

  • Don’t bump Proposed → Accepted just because a design merged. Confirm the decision is actually in effect in the code.
  • When a design is ratified but only partly built, use Accepted (partial) and add an ## Implementation status section splitting implemented (with file references) from deferred (with the specific gap). Decision 0012 is the worked example.
  • Deferred work gets a home: a plan under docs/plans/ and a tracking issue, cross-linked from the status section, so the unbuilt half isn’t lost.

Present-tense state belongs in the reference layer, where the same rule applies: a sentence telling a reader how the tool behaves today is a verifiable claim — check it against the code before writing it.

Three kinds of claim, aged differently

This split exists because one document can’t age three kinds of claim well, and bundling them is what made the old records go stale:

  1. Why the decision was made — the rationale, and the problem that prompted it. This is a decision record’s lasting value; the code and git log show the what, only the record holds the why. Written as the state at decision time (past tense) and never rewritten when the code moves. The problem is worth keeping even after it’s solved.
  2. What the current architecture is — what the code does today. A verifiable present-tense claim, kept in step with the code. This is what goes stale, so it lives in the reference layer, not here. Each “what” links back to the “why” that produced it.
  3. What’s decided but not built yet — the gap between a decision and the code. Lives in an ## Implementation status section (on the reference doc, or on a Proposed record whose whole body is bucket 3), and drains into (2) as each piece lands, with a plan or issue so the unbuilt half isn’t lost.

The failure mode is present-tensing all three the same way, so a reader can’t tell whether a sentence is why we did it, what the code does, or what we still intend. A human skims past a wrong present-tense claim; a model repeats it as generated code — which is why the reference layer stays ruthlessly current and this layer stays rationale-only.

Index

#TitleStatus
*Status text mirrors each record’s own body; the (amended …) annotations are
retired as the records are reframed to the immutable model.*
#TitleStatus
0001OpenSTA as the timing correctness oracle and sole STA pathAccepted (amended 2026-06-25; scope expanded 2026-05-01)
0002Timing intermediate representationAccepted (amended 2026-06-25)
0003OpenTimer as in-process reference STASuperseded (2026-05-01) — spike failed; OpenSTA subprocess only
0004Private PDK testing trackAccepted (amended 2026-06-25)
0005OpenSTA vendoring and test-corpus strategyAccepted (amended 2026-06-25)
0006SDF preprocessing model and interim-to-release cutoverAccepted (amended 2026-05-02)
0007Timing model fidelity roadmapProposed (line refs amended 2026-06-25)
0008Structured timing output as first-class deliverableAccepted (amended 2026-06-25)
0009OpenSTA Verilog reader inputsAccepted (amended 2026-06-25)
0010Declarative cell metadataAccepted (amended 2026-06-25)
0011RAM port-mapping schema for declarative cell metadataAccepted (amended 2026-06-25)
0012Reproducible CDC jitter injection for multi-clock cosimAccepted (partial; amended 2026-06-25)
0013Cosim peripheral model architectureAccepted (amended 2026-06-25)
0014AIG as simulation intermediate representationAccepted (amended 2026-06-25)
0015Boomerang execution model and GPU resource mappingAccepted
0016Selective X-propagationAccepted (amended 2026-06-25)
0017Cosim execution modelAccepted (amended 2026-06-25)
0018Distribution and installation modelAccepted (amended 2026-06-25) — Phase 4 & 7 open
0019Cell-model IR: a complete per-cell-type library descriptorProposed
0020Python engine as a bundled binary wheel (cibuildwheel)Draft — deferred (PyO3 preferred; see record)
0021Behavioral RTL support via an embedded synthesis front-end (YoWASP)Proposed
0022Flow-controlled external I/O across the batch boundaryProposed

How the decisions relate

  • 0014 / 0015 document the core simulation pipeline: 0014 explains why the AIG (and-inverter graph) is the simulation IR — its uniform AND-gate structure enables the boomerang reduction tree and eliminates per-cell dispatch in the GPU kernel. 0015 describes the boomerang execution model itself — the 13-level hierarchical reduction tree, the GPU resource limits it imposes (8191 inputs, 8191 outputs, 4095 intermediates, 64 SRAM groups per partition), the hypergraph partitioning that distributes work across GPU blocks, and the packed instruction format (FlattenedScriptV1) consumed by the kernel. Together they document the path from gate-level Verilog to GPU kernel execution that the GEM paper describes.
  • 0001 / 0003 / 0005 / 0006 describe the timing oracle stack: OpenSTA as the ground truth (0001), vendored at a pinned revision with its own corpus reused (0005), driving SDF preprocessing out-of-process (0006). The earlier OpenTimer in-process plan (0003) was retired after the spike (spikes/opentimer-sky130.md) and is archived.
  • 0002 is the data contract those tools talk over — a JSON timing IR consumed by Jacquard, produced by opensta-to-ir.
  • 0004 governs how PDK-specific testing happens for NDA-bound contributors without leaking files into the public repo.
  • 0007 / 0008 are the forward-looking pair: 0008 (Approved) defines the structured timing output Jacquard owes downstream flows; 0007 (Proposed) sketches the model-fidelity work needed to back those outputs at scale (δ(T), clock-tree skew, wire delay). Scheduling for both lives in ../../plans/post-phase-0-roadmap.md.
  • 0013 / 0017 cover the cosim runtime, whose current state is ../cosim-runtime.md: 0013 documents the peripheral model architecture (CPU-side PeripheralModel trait, GPU-side kernel patterns, ring buffers, plural-config convention); 0017 documents the execution model (batch dispatch loop, multi-clock scheduler, edges-vs-cycles semantics).
  • 0016 accepts the selective X-propagation design documented in docs/selective-x-propagation.md. The full seven-phase design lives there; the record is a thin acceptance record with a summary of key choices.

Adding a new decision

  1. Pick the next number (highest existing + 1). The 4-digit number is a stable ID, cited as “Decision NNNN” from docs, code, and commits — it must not be reused.
  2. Filename: NNNN-short-kebab-title.md. The rendered title comes from the SUMMARY.md link text and the # H1; keep the number out of the reading title.
  3. Start with # Decision NNNN — <title> and a **Status:** line — set it to match the code, not the intent (see Keeping status honest).
  4. Standard sections: Context, Decision, Consequences — written in past tense, as the state at decision time.
  5. Add the row to the index above, and a forward-link to the area doc in the reference layer whose current state this decision shaped.
  6. When a decision changes later, do not edit its record: write a new record that supersedes it, set the old one’s status to Superseded, and move the old file to archive/ with python3 docs/scripts/move_doc.py docs/architecture/decisions/<file>.md docs/architecture/decisions/archive/, which repoints every link to it.