Skip to content

Latest commit

 

History

History

adr

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Architecture decision records

One record per decision area, numbered in reading order: the core pipeline first (0001-0013), then the features (0014-0026), then the test suite (0027-0050).

Each record opens with its scope and a list of its decisions. Every decision is its own section with a status, a date, the code it governs, and the context, decision and consequences. A section named "Background" carries the narrative that used to live in CLAUDE.md: the incident, the measurement, and why the rule exists.

Index

No. Decision area Governs
0001 The runner: lifecycle, guards, locks and config bin/run.sh, tests/preflight.sh, bin/preflight.sh, bin/autodream-note.sh and 2 more
0002 Sessions: roots, enumeration, the report day and accounting bin/run.sh, tests/session-window.sh, tests/lib-project.sh, bin/session-window.sh and 3 more
0003 Adapters and engines: who runs L1 and L2 bin/run.sh, bin/adapters.sh, adapters/claude/adapter.sh, adapters/_fixture/adapter.sh and 1 more
0004 The OMP adapter adapters/omp/adapter.sh, adapters/omp/skills-inventory.sh, adapters/omp/linearize.sh, adapters/omp/stats.sh
0005 L1 workers: dispatch, input, validation and retry bin/run.sh
0006 L1 confinement: the sandbox, the stage and what a worker may write bin/run.sh, bin/l1-confine.sh, adapters/claude/adapter.sh
0007 Long sessions: chunked triage bin/slim-transcript.sh, tests/merge-chunks.sh, bin/run.sh, bin/chunk-transcript.sh and 1 more
0008 Failure classes, network health and deferral bin/run.sh, bin/failure-class.sh, bin/err-cause.sh
0009 L2: the aggregator, the report and its delivery bin/run.sh, bin/report-format.sh, bin/citation-check.sh, bin/dream-grounding.sh
0010 Counting and self-audit: rollup, run-stats and the measured-or-unknown rule bin/run.sh, bin/rollup.sh, bin/oversized-gate.sh, bin/session-stats.sh and 2 more
0011 Self-pollution: workers must not become sessions bin/run.sh, bin/prune-self-sessions.sh
0012 Shared shell helpers: flock, path state and portable date and stat bin/lib-flock.sh, bin/portable.sh, bin/lib-path-state.sh
0013 Memory pins: proposal, authorization and application bin/run.sh, bin/apply-pins.sh
0014 Upstream changelog watch bin/run.sh
0015 Remote host sync bin/run.sh, bin/remote-sync.sh
0016 Report scripts: operator-requested commands bin/report-scripts.sh, bin/run.sh, bin/stop-check-counts.sh
0017 Operator notes and the vault inbox bin/run.sh, bin/vault-notes.sh
0018 Focus tags: marking a turn for the next run bin/autodream-focus.sh, extensions/omp/autodream-focus.ts, extensions/omp/focus-core.ts, bin/vault-notes.sh and 4 more
0019 X bookmarks as idea fuel bin/x-bookmarks.sh, bin/run.sh, bin/cookie-cadence.sh
0020 Open questions that never get answered bin/question-streaks.sh, bin/run.sh, bin/session-window.sh
0021 Dropped threads index bin/threads.sh
0022 Review and triage of open questions bin/review.sh, mods/autodream-band/hooks/lib.ts, mods/autodream-band/hooks/register.tsx, bin/triage-candidates.sh and 5 more
0023 Install, scheduling and on-demand runs install.sh, bin/autodream-now.sh, tests/autodream-now.sh, bin/scheduler-label.sh and 7 more
0024 Notifications and banners bin/notify.sh, bin/make-notifier.sh
0025 The local web dashboard docs/demo/demo-fetch.js, tests/autodream-web-browser.py, bin/autodream-web.py, bin/autodream_web_data.py and 2 more
0026 Worktree and branch pruning bin/prune-worktrees.sh
0027 No new comments: the ratchet and where decisions go tests/comment-ratchet.sh, bin/comment-count.sh, .comment-baseline
0028 How the test suite is organized, sharded and run tests/run-all.sh, tests/shard.sh, .github/ci-scope.sh, .review-gate/pretest
0029 adapter-claude suite: trap, process group and SIGTERM handling tests/adapter-claude.sh
0030 adapter suites: atomic writes, rejects, contract and the pinned L1 argv tests/adapter-contract.sh, tests/adapters.sh, tests/adapter-claude.sh
0031 adapter-omp suite: provenance, tool calls, skill reads and the overlay tests/adapter-omp.sh
0032 ci-scope and shard guard suites tests/ci-scope.sh, tests/shard.sh, tests/run-parallel.sh
0033 chunk-transcript, notes-path, preflight, session-window, report-format and report-scripts suites tests/notes-path.sh, tests/run-all.sh, tests/report-scripts.sh, tests/session-window.sh and 5 more
0034 install, scheduler-label and prune-worktrees suites tests/scheduler-label.sh, tests/prune-worktrees.sh, tests/install-dir.sh, tests/install-path.sh
0035 l1-confine suites: sandbox skips, WAL fixture and the real-engine check tests/l1-confine-real.sh, tests/l1-confine.sh
0036 lib-project and lib-store suites must not pass vacuously tests/lib-project.sh, tests/lib-store-unchanged.sh
0037 the mock claude and mock shared-memory contracts tests/mock-claude.sh, tests/mock-shared-memory.sh, tests/dream-triage.sh
0038 replay and rollup suites tests/replay.sh, tests/rollup.sh
0039 review.sh suites: isolation, skip fixtures, cmux marker and the questions-only prompt tests/review-cmux.sh, tests/review-prompt.sh, tests/review-skip.sh
0040 run-all: changelog and notify fixtures tests/run-all.sh
0041 run-all: tests that keep failures visible tests/run-all.sh
0042 run-all: fixtures reproduce the real on-disk shapes and dates tests/run-all.sh
0043 run-all: focus, chunking and threads fixtures tests/run-all.sh
0044 run-all: harness, env and engine isolation, and how the suite counts failures tests/run-all.sh
0045 run-all: install, upgrade and adapter-enablement fixtures tests/run-all.sh
0046 run-all: pins, report lifecycle, citations and question-streak fixtures tests/run-all.sh
0047 run-all: retry, network, timeout and L2 tests prove effects, not exit codes tests/run-all.sh
0048 slim-transcript suite: assertions that can fail and discriminating fixtures tests/slim-transcript.sh
0049 tmp, portable and pty test helpers tests/lib-tmp.sh, tests/tmp-cleanup.sh, tests/portable.sh, tests/with-pty.py and 1 more
0050 x-bookmarks suite: shim boundary, fixture traps and the browser watchdog tests/x-bookmarks.sh

Adding a decision

  1. Find the record whose area owns the code you are changing. A new area gets the next free number and a row above.
  2. Append a section: title, Status: accepted · Date: YYYY-MM-DD · Code: ..., then Context, Decision, Consequences. Record the incident or measurement, not the diff.
  3. Do not leave the reason in a code comment. tests/comment-ratchet.sh fails a PR that raises a file's comment count above .comment-baseline.

Ledgers

_ledger-*.tsv maps every comment the audit deleted to where its reason lives. Columns are file, line (in the file before the audit), class and target.

Class Target
decision the record and section that hold the decision (a link into this directory), or docs/run-knobs.md for a knob description
excuse the issue that tracks the hack the comment excused
tautology, stale, help -: the comment repeated the code (tautology), was wrong (stale), or was a help header the script now prints from usage() (help)