From 7146b447abdf7bf69be3921053f0b06be143c8f8 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sun, 4 Oct 2026 21:51:27 +0200 Subject: [PATCH 1/4] Add sane defaults as a technical principle, at the edge beside explicit over implicit --- CHANGELOG.md | 1 + principles/technical-principles.md | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 77769351..58b85209 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Unreleased +- A technical principle, "Sane defaults, where a default serves better than an explicit ask": a default suits a value most callers want, does no harm when wrong, and can be seen and changed, and it lives where the program meets a person, such as a CLI. - larv-review's principles audit reads only the files under `~/.claude/principles/` that apply to the project, launching a file's auditor when unsure. A file's `Applies to` line says what it covers; one without the line covers every project. The summary names each file left out. After its first round, the architecture pass reruns the scoring run and only the reviewers whose 🔴 or 🟡 the fixes answer, unless the fixes carry an architectural decision. - When `loop-claude`'s judge rules a chunk unfinished, the resumed worker is shown the passage the judge quoted as the work remaining. A loop started before this change exits 1 at its next reload; rerun it. - larv-review's architecture pass and full security scan get short names, `Architecture` and `Full scan`. Each round's commit is titled with its pass's name in lower case: `Answer full scan round 1: …`. diff --git a/principles/technical-principles.md b/principles/technical-principles.md index 48e67994..7544b54a 100644 --- a/principles/technical-principles.md +++ b/principles/technical-principles.md @@ -47,6 +47,10 @@ * Explicit over implicit. - Avoid magic, avoid "clever" solutions, only abstract when the API can clearly describe what is happening. - Prefer explicit, descriptive names over generic ones (`invoiceRowsService`, not `service`). +* Sane defaults, where a default serves better than an explicit ask. + - A default earns its place where most callers want the same value, a wrong guess does no harm, and the caller can see and change it: a `--help` line, a documented option. Anything else is asked for. + - Defaults live where the program meets a person: a CLI, a config file, the code that wires the program together. Below that, every value is passed in, as "Explicit over implicit" asks. + - BANNED: a library constructor that quietly loads data, reads the clock or seeds its own randomness. GOOD: the library asks for each, and its CLI fills in the shipped data, the system clock and fresh randomness unless a flag says otherwise. * Functional core, imperative shell. - Decisions live in pure functions, data in and data out; the shell around them performs the effects and holds no branching of its own. - Every side effect comes from outside: output, time, randomness, network and storage are injectable, so a test runs exactly the code production runs. -- 2.52.0 From 54cec00d85c8a43fbe0f2dc8213cb420f6aee52d Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sun, 4 Oct 2026 21:52:34 +0200 Subject: [PATCH 2/4] Answer prose round 1: defaults at the program's edge, a library still asking for what changes between runs, and an example of a default worth having --- CHANGELOG.md | 2 +- principles/technical-principles.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 58b85209..fceea30e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## Unreleased -- A technical principle, "Sane defaults, where a default serves better than an explicit ask": a default suits a value most callers want, does no harm when wrong, and can be seen and changed, and it lives where the program meets a person, such as a CLI. +- A technical principle, "Sane defaults, where a default serves better than an explicit ask". A default suits a value most callers want, does no harm when wrong, and can be seen and changed. It lives at the program's edge, such as a CLI; a library still asks for data, the clock and randomness. - larv-review's principles audit reads only the files under `~/.claude/principles/` that apply to the project, launching a file's auditor when unsure. A file's `Applies to` line says what it covers; one without the line covers every project. The summary names each file left out. After its first round, the architecture pass reruns the scoring run and only the reviewers whose 🔴 or 🟡 the fixes answer, unless the fixes carry an architectural decision. - When `loop-claude`'s judge rules a chunk unfinished, the resumed worker is shown the passage the judge quoted as the work remaining. A loop started before this change exits 1 at its next reload; rerun it. - larv-review's architecture pass and full security scan get short names, `Architecture` and `Full scan`. Each round's commit is titled with its pass's name in lower case: `Answer full scan round 1: …`. diff --git a/principles/technical-principles.md b/principles/technical-principles.md index 7544b54a..0ee1e8df 100644 --- a/principles/technical-principles.md +++ b/principles/technical-principles.md @@ -48,9 +48,9 @@ - Avoid magic, avoid "clever" solutions, only abstract when the API can clearly describe what is happening. - Prefer explicit, descriptive names over generic ones (`invoiceRowsService`, not `service`). * Sane defaults, where a default serves better than an explicit ask. - - A default earns its place where most callers want the same value, a wrong guess does no harm, and the caller can see and change it: a `--help` line, a documented option. Anything else is asked for. - - Defaults live where the program meets a person: a CLI, a config file, the code that wires the program together. Below that, every value is passed in, as "Explicit over implicit" asks. - - BANNED: a library constructor that quietly loads data, reads the clock or seeds its own randomness. GOOD: the library asks for each, and its CLI fills in the shipped data, the system clock and fresh randomness unless a flag says otherwise. + - A default earns its place where most callers want the same value, a wrong guess does no harm, and the caller can see and change it, as a `--help` line or a documented option shows. Anything else is asked for. + - Defaults live at the program's edge: a CLI, a config file, a library's public API, the code that wires the program together. A library still asks for every input that can change between runs, such as data, the clock and randomness; only the code that wires a program together defaults those, as "Functional core, imperative shell" asks. + - BANNED: a CLI that refuses to run until given `--data-path` and `--seed`, when nearly every run wants the shipped data and fresh randomness. GOOD: it fills both, and `--help` names the flags that override them. * Functional core, imperative shell. - Decisions live in pure functions, data in and data out; the shell around them performs the effects and holds no branching of its own. - Every side effect comes from outside: output, time, randomness, network and storage are injectable, so a test runs exactly the code production runs. -- 2.52.0 From 21e0843f1215bed8d5ba3283583bf2b848e1b79d Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sun, 4 Oct 2026 21:53:14 +0200 Subject: [PATCH 3/4] Answer prose round 2: the CLI is the wiring code that defaults what changes between runs --- principles/technical-principles.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/principles/technical-principles.md b/principles/technical-principles.md index 0ee1e8df..beed63ec 100644 --- a/principles/technical-principles.md +++ b/principles/technical-principles.md @@ -48,9 +48,9 @@ - Avoid magic, avoid "clever" solutions, only abstract when the API can clearly describe what is happening. - Prefer explicit, descriptive names over generic ones (`invoiceRowsService`, not `service`). * Sane defaults, where a default serves better than an explicit ask. - - A default earns its place where most callers want the same value, a wrong guess does no harm, and the caller can see and change it, as a `--help` line or a documented option shows. Anything else is asked for. - - Defaults live at the program's edge: a CLI, a config file, a library's public API, the code that wires the program together. A library still asks for every input that can change between runs, such as data, the clock and randomness; only the code that wires a program together defaults those, as "Functional core, imperative shell" asks. - - BANNED: a CLI that refuses to run until given `--data-path` and `--seed`, when nearly every run wants the shipped data and fresh randomness. GOOD: it fills both, and `--help` names the flags that override them. + - A default earns its place where most callers want the same value, a wrong guess does no harm, and the caller can see and change it through a `--help` line or a documented option. Anything else is asked for. + - Defaults live at the program's edge: a CLI, a config file, a library's public API. A library still asks for every input that can change between runs, such as data, the clock and randomness; only the code that wires a program together, such as its CLI, defaults those, as "Functional core, imperative shell" asks. + - BANNED: a CLI that refuses to run until given `--data-path` and `--seed`, when nearly every run wants the shipped data and fresh randomness. GOOD: it uses the shipped data and fresh randomness unless a flag overrides them, and `--help` names those flags. * Functional core, imperative shell. - Decisions live in pure functions, data in and data out; the shell around them performs the effects and holds no branching of its own. - Every side effect comes from outside: output, time, randomness, network and storage are injectable, so a test runs exactly the code production runs. -- 2.52.0 From 3531995d21d504732a89a852c5db72da24cbee34 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sun, 4 Oct 2026 21:53:36 +0200 Subject: [PATCH 4/4] Answer prose round 3: nothing to fix -- 2.52.0