repositories / smith

smith

There are many coding harnesses - but this one is fast

owned by bugabinga

Make commits and PRs argue why, and drop AI attribution (#7)

6eff50e4b46981c52053b7efa0feab31df7c0064

Oliver Jan Krylow <oliver@bugabinga.net> ·

SSH signature · not checked

Browse filesCompare with HEAD

* Make commit and PR messages argue why, not inventory what

Every AI-written message in this repo had the same two faults: it
re-listed each edit the diff already shows, and it signed off with
attribution nobody asked for. Both are now banned. Messages record the
motivation, the alternative dropped and the cost that killed it, and one
grep-able anchor to the surface touched — the per-file detail that used
to bloat the body belongs in the diff and the prototype PLAN.md blocks.
The guardrail against this sliding into vague prose is that anchor: it is
mandatory, so bisect and blame stay meaningful.

Lands the convention in CLAUDE.md, a motivation-first PR template, and
includeCoAuthoredBy=false as backup — though the CLAUDE.md rule is the
real control, since a session-injected trailer is suppressed only by
instruction the model reads, not by a setting.

* Retire the Conventional Commits mandate

The prefix ritual (feat:/fix:/docs:) bought us nothing here and grated on
the one person writing the commits. §7 now asks only for a plain
imperative subject and hands message style to CLAUDE.md, where the real
rule lives — argue why, not what, and no AI attribution. Dropping the
mandate rather than making it optional keeps a single source of truth
instead of two half-rules.

Changes PROJECT-INVARIANTS §7 and its change log.

---------

Co-authored-by: Claude <noreply@anthropic.com>

Changed files (4)

+57 / −1 text lines

Diff layout

.claude/settings.json

Added
new file mode 100644

+3 / −0 text lines

1{
2 "includeCoAuthoredBy": false
3}

.github/pull_request_template.md

Added
new file mode 100644

+24 / −0 text lines

1<!--
2Motivation-first. One line per section. The diff is the roster — do not list
3files or restate the changelog here. No AI attribution or tool bylines.
4-->
5
6## What forced this
7<!-- The pressure, bug, or disproof that made this change unavoidable. -->
8
9## The call
10<!-- The decision, stated as a claim — not a list of edits. -->
12## What we deliberately didn't do
13<!-- The alternative dropped and the single cost that killed it. -->
15## Evidence
16<!-- The number or result that settled it, and a link to the prototype or its
17 PLAN.md result block. No inline tables. -->
19## Surface touched
20<!-- SPEC sections / files / prototype dirs, as a range or count —
21 "§6.2–6.9, prototypes/p17", never a per-item roster. -->
23## If this ages badly
24<!-- What to revert or reopen, and the signal that would trigger it. -->

CLAUDE.md

Modified

+28 / −0 text lines

6060 adapters that defer to them.
61616. Cargo is the sole build system. See `docs/PROJECT-INVARIANTS.md` §1.
62627. Agents must not modify `docs/SPEC.md` or `docs/PROJECT-INVARIANTS.md` without approval.
64## Writing commits and PRs
66Commits and PRs argue the **why**, not the **what**. The diff already lists
67what changed — never retype it. A message earns its place by recording the
68motivation, the reasoning, and what was deliberately *not* done and why.
70- **No AI attribution, ever.** No `Co-Authored-By`, no "Generated with", no
71 session links, no tool bylines. These commits are the author's.
72- **Subject:** one imperative line naming the decision or its effect, not the
73 mechanic — "Drop the Lua bytecode cache", not "remove BytecodeCache struct".
74 No ALL-CAPS verdicts, no emoji. (Prefix policy: PROJECT-INVARIANTS §7.)
75- **Body:** one to three short paragraphs. The motivation, the alternative
76 dropped and the single cost that killed it, and the one number or fact that
77 settled it. If it wants more than that, the overflow belongs elsewhere.
78- **One grep-able anchor.** Exactly one sentence naming the concrete surface
79 touched — `SPEC §N`, a file, a config key, a `prototypes/pNN` dir — as a
80 range or count, never a per-item roster. This is what keeps `git bisect` and
81 `blame` meaningful. "Don't enumerate" is not "don't be specific."
82- **Where detail lives instead:** per-file change lists → the diff; benchmark
83 tables and raw measurements → the prototype dir and its `PLAN.md` result
84 block; the decision plus its driving number → the commit body, in prose.
85- **One commit, one decision.** If the anchor won't fit one sentence, split.
86- **Banned:** superlatives, "successfully / robustly / cleanly", caps-lock
87 findings, emoji, and every attribution trailer.
89PRs follow `.github/pull_request_template.md`: motivation-first, one line per
90section, the surface as an anchor range — the diff is the roster.

docs/PROJECT-INVARIANTS.md

Modified

+2 / −1 text lines

280280- **VCS:** jj (Jujutsu) — modern DVCS with git compatibility.
281281- **No merge commits:** Use `jj squash` or `jj rebase` for linear history.
282- **Commit messages:** Conventional Commits (`feat:`, `fix:`, `refactor:`, `docs:`, `test:`, `chore:`).
282- **Commit messages:** Plain imperative subject naming the decision or its effect; no required type prefix. Messages argue *why*, not *what* — see CLAUDE.md "Writing commits and PRs". No AI attribution trailers.
283283- **Branch naming:** Not applicable with jj (bookmarks), but if using git: `feature/description`, `fix/description`.
285285## 8. Performance Invariants
430430| Date | Change | Author |
431431|------|--------|--------|
432| 2026-07-16 | §7 drop Conventional Commits mandate; commit/PR style moves to CLAUDE.md; no AI attribution (user-approved) | smith-spec |
432433| 2026-07-16 | AGENTS.md files renamed to CLAUDE.md repo-wide; references updated (user-directed) | smith-spec |
433434| 2026-07-15 | §8a CI wording scoped to release automation; §4 fetch-providers source models.dev; §1 zig/cargo-zigbuild exception (user-approved) | smith-spec |
434435| 2026-07-15 | §2 tree: design/ absorbed into SPEC.md and deleted; prototypes/ added (user-approved) | smith-spec |