Atris

Write release notes from commit history.
Done by an agent. Checked twice.

Release notes users can read, with every line tied to the commits behind it and every commit accounted for.

Have Atris do this for you›

1

Real files in

  • commits.md
    The 20 commits between two releases of the open source atris command line tool (after v3.89.2, up to the v3.90.0 release commit), with messages and changed file lists. Trimmed: author names and co-author lines removed, the release commit and its merge left out because its subject already summarizes the release.. 288 lines, 11 KB.

Atris's own public material.

2

Three steps

  1. 1.Sort every commit
  2. 2.Group the changes into notes
  3. 3.Write the two files

Claude Sonnet 5.5, 50 seconds. No web. It never saw the check.

3

Checked twice

  • ✓Passed: 20 of 20 commits appear once in commit_map.csv with a decision
  • ✓Passed: 6 of 6 merge commits are skipped and 3 of 3 commits that touch only notes and tests are marked internal
  • ✓Passed: 4 of 4 notes end with real commit ids and 7 of 7 commits marked note are cited by exactly one note
  • ✓Passed: 5 of 5 main changes marked by hand before the run are covered by a note
  • ✓Passed: 19 of 19 command and file words quoted in the notes appear in the commits those notes cite
  • ✓Passed: 1 of 1 files added then removed inside the range are left out of the notes
  • ✓Passed: 20 of 20 rows of commit_map.csv follow the input order with a reason and 8 of 8 commit ids named in reasons are real
  • ✓Passed: 4 of 4 notes sit under the New or Fixed heading and no note states a number that would need tracing

Second review by Claude Opus 5.5: pass.

Then we broke a copy of the output 3 ways on purpose. The check caught 3.

What it wrote. Lines 3 to 11 of release_notes.md, copied from the file.
## New

- `FOR_AGENTS.md` now holds the setup steps for a coding agent, with a done-means list and a when-blocked rule, and its first job verifies with the project's own tests. `atris doctor --live` asks claude (else codex) for one exact reply, times it, saves `.atris/state/doctor-live.json` and prints one line saying it passed in N seconds with which tool, or failed with the tool's own error; it keeps `model` for what the tool says ran, records `requested_model` apart, and says "asked for X" when the model that ran is unknown. [6f6f5a4, 827b5bf]

## Fixed

- `atris code-review` no longer looks for a Python review engine; it reads `atris/SPEC.md`, runs one read-only reviewer per relevant lens, counts over-testing from the diff with no model call and saves a receipt under `.atris/reviews/<head-sha>.md`. `init` writes a starter spec, `add` appends a dated example, and `--pr <n> --comment` updates the report block in the pull request description. [fd8af4e]
- A job claim that ran out and was claimed again can no longer write to the job: once another run has claimed it, nothing is written and the run is told who holds it now, and a hand-in by a name whose claim ended is refused while someone else holds the job. A lost claim on a flight hand-in now says so instead of asking for a retry. [b94ce8f, f9eb5dc]
- Running `init` twice no longer adds a second Project Context section to the executor, navigator and validator member cards, and a fresh `init` no longer starts the validator card with a leaked nodejs block. `init` prints the "Injected project patterns" line only when a card changed. [e845915, 39913e5]

How this was run

An AI agent on Claude Sonnet 5.5 was given a folder with the files below and a three-step flow, and nothing else. It had no web access and never saw the check. The check was written before the run and made stricter after it. It works the answer out again from the input files. Then Claude Opus 5.5 reviewed the result against the inputs. The input files are real public documents.

Run 1 of 1 on 1 December 2026. The agent took 50 seconds.

What the second review verified

  • All 20 input commits appear once in commit_map.csv, in input order. All 6 two-parent commits (c7bea73, 709085e, fba0485, ebe6c14, ff4c81f, 45812a9) are skip_merge. The 3 commits that touch only atris/ files (b758168, 3cd8ca7, 50b2518) are internal.
  • Each of the 7 commits marked note is cited by exactly one note, and each note's claims match its commits. For example, "saves a receipt under `.atris/reviews/<head-sha>.md`" matches fd8af4e, and "says \"asked for X\" when the model that ran is unknown" matches 827b5bf.
  • SETUP.md was added in 6f6f5a4 and removed in 827b5bf, and the notes leave it out. The notes describe only what is left at the end of the range: the setup steps in `FOR_AGENTS.md` and the first job verifying with the project's own tests.
  • All 19 words inside backticks appear in the commits their note cites, including `atris doctor --live`, `requested_model` and `--pr <n> --comment`. The only square brackets in the notes are the commit-id lists. The bundled check.py also passes all 6 of its checks.

What this run does not show

  • The check holds a list of the 5 main changes, marked by hand before the run.
  • Whether each note reads well and tells a user what changed is judged only by the second review.
  • The release commit and author names were left out of the input, because that commit's subject already summed up the release.

Would the check catch a wrong answer?

A check that cannot fail proves nothing. After the run we took a copy of the output, broke it one small way at a time and ran the check again. It caught 3 of 3. The check was made stricter after the first try at this, and the same untouched output was graded again.

Open every file

flow.md · the three steps the agent followed
# Write release notes from commit history

function: product
for: the product manager who announces each release
goal: Users can read what changed in this release and every line traces to a real commit.

## 1. Sort every commit
Read input/commits.md. Each entry is one commit: a short id, a date, a parent count, a message and the
files it changed. Give every commit exactly one decision:
- `skip_merge` when it has 2 parents. A merge only repeats work that other commits already carry.
- `internal` when every file it changed sits under `atris/` or `test/`. Those are the project's own
  notes and tests, so a user never sees them. Also use `internal` for a commit that tidies code with no
  change a user could notice.
- `note` when it adds, changes or fixes something a user of the tool can run or see.

## 2. Group the changes into notes
Write one note per change a user would notice, not one per commit. Commits that build on the same
change share one note. Rules:
- Say what the user can now do or what no longer goes wrong, in plain words. One or two sentences.
- Use only facts written in the commits the note cites. Do not guess at a reason or a benefit.
- Put command names and file names in backticks, spelled exactly as the commits spell them.
- When a later commit in the range removes or replaces something an earlier commit added, describe
  only what is left at the end of the range. Do not mention the thing that was taken back.
- Every commit marked `note` must be cited by exactly one note.

## 3. Write the two files
Write output/release_notes.md: a title line, then a `## New` section and a `## Fixed` section. Each
note is one line that starts with `- ` and ends with the ids of its commits in square brackets,
like `[abc1234, def5678]`. Use square brackets for nothing else.
Write output/commit_map.csv with columns sha,decision,reason. One row per commit in the input, in
input order. reason is one short plain sentence. For a `note` row it names the note the commit is in.

## Done looks like
- Every commit in the input appears once in commit_map.csv.
- Every note ends with at least one commit id and every `note` commit is cited by one note.
- Nothing in the notes is missing from the commits they cite.
input/commits.md · 288 lines, 11 KB
# Commit history: atris command line tool, after v3.89.2 and before the v3.90.0 release commit

Source: https://github.com/atrislabs/atris/compare/v3.89.2...v3.90.0 (MIT license).
Oldest first. 20 commits. Each entry has the short id, the date, the number of parents, the message and the files changed.

## 6f6f5a4
date: 2026-11-20T02:00:17Z
parents: 1
subject: Setup guide for coding agents and a live doctor check
body:
    A person can now tell their coding agent "Set up https://github.com/atrislabs/atris"
    and the agent has a version-matched runbook (SETUP.md, copied to atris/SETUP.md by
    init when absent) with a done-means list and a when-blocked rule.

    atris doctor --live asks claude (else codex) for one exact reply through the
    read-only engine ask path, times it, saves .atris/state/doctor-live.json and prints
    one line: passed in N seconds with which tool, or failed with the tool's own error.
files:
    modified README.md (+2 -0)
    added SETUP.md (+102 -0)
    modified atris/MAP.md (+2 -1)
    modified atris/refs/map/boot-and-first-minute.md (+2 -0)
    modified commands/doctor.js (+62 -1)
    modified commands/init.js (+9 -0)
    modified package.json (+1 -0)
    modified test/doctor--doctor-command.test.js (+1 -1)
    added test/doctor-live.test.js (+54 -0)
    modified test/init-non-interactive.test.js (+2 -0)

## b758168
date: 2026-11-20T02:00:29Z
parents: 1
subject: Map row names the setup guide without a path the ref check reads as missing
files:
    modified atris/MAP.md (+1 -1)

## fd8af4e
date: 2026-11-20T02:02:22Z
parents: 1
subject: code-review: check a change against the project's own wall of shame
body:
    atris code-review was broken: it looked for a Python review engine nobody
    has. It now reads atris/SPEC.md (qm-compatible lens headings), triages
    lenses on haiku, runs one read-only reviewer per relevant lens through
    runEngineAskJobs, counts over-testing from the diff with no model call and
    saves a receipt under .atris/reviews/<head-sha>.md. init writes a starter
    spec; add appends a dated example; --pr <n> --comment updates the report
    block in the pull request description.
files:
    modified atris/MAP.md (+1 -0)
    modified atris/refs/map/review-and-receipts.md (+12 -12)
    modified bin/atris.js (+5 -3)
    modified commands/review.js (+305 -154)
    modified lib/claude-spend-guard.js (+1 -0)
    added lib/wall-of-shame.js (+161 -0)
    added templates/code-review/SPEC.md (+75 -0)
    modified test/code-review.test.js (+113 -126)
    modified test/dogfood-t6-t10.test.js (+0 -19)
    removed test/review-cmd--mut-L143-4.test.js (+0 -33)
    removed test/review-command.test.js (+0 -249)

## 670e5d4
date: 2026-11-20T02:03:46Z
parents: 1
subject: code-review: reuse the shared default-branch and JSON readers, keep error evidence
files:
    modified atris/refs/map/review-and-receipts.md (+2 -2)
    modified commands/review.js (+13 -14)
    modified lib/wall-of-shame.js (+6 -18)
    modified test/code-review.test.js (+2 -2)

## 7d27757
date: 2026-11-20T02:05:06Z
parents: 1
subject: code-review: one git runner, PR body over stdin, shared prompt opening first
files:
    modified commands/review.js (+24 -30)

## 3cd8ca7
date: 2026-11-20T02:05:42Z
parents: 1
subject: code-review: map rows name the project spec without a file ref
files:
    modified atris/MAP.md (+1 -1)
    modified atris/refs/map/review-and-receipts.md (+1 -1)

## 1f900fa
date: 2026-11-20T02:08:45Z
parents: 1
subject: Atris keeps its own list of past mistakes for atris code-review
body:
    atris/SPEC.md names six mistake types this repo has made more than once,
    each with dated examples and commits: over-testing, arbitrary limits,
    word matching for judgment, status that lies, fake proof and sprawl.
    Two examples come from the first real review run on 2026-11-19.
files:
    modified CLAUDE.md (+2 -0)
    added atris/SPEC.md (+62 -0)

## 827b5bf
date: 2026-11-20T02:09:38Z
parents: 1
subject: One agent guide: setup steps live in FOR_AGENTS.md, live check reports only the model that ran
body:
    SETUP.md duplicated FOR_AGENTS.md, which already ships and init already copies.
    The setup steps, done means and when-blocked rules now replace its 60-second
    start, and the extra init copy step and package entry are gone. The first job
    verifies with the project's own tests; git diff --check is a last resort.

    doctor --live keeps model for what the tool says ran and records
    requested_model apart, so the line says "asked for X" when the ran model is unknown.
files:
    modified FOR_AGENTS.md (+99 -22)
    modified README.md (+2 -2)
    removed SETUP.md (+0 -102)
    modified atris/MAP.md (+1 -1)
    modified atris/refs/map/boot-and-first-minute.md (+1 -1)
    modified commands/doctor.js (+6 -3)
    modified commands/init.js (+0 -9)
    modified package.json (+0 -1)
    modified test/doctor-live.test.js (+2 -1)
    modified test/init-for-agents.test.js (+3 -2)
    modified test/init-non-interactive.test.js (+0 -2)

## c7bea73
date: 2026-11-20T02:11:00Z
parents: 2
subject: Merge pull request #2056 from atrislabs/codex/claude-review-lens-code-review-from-the-project-s-20261120-015459
body:
    code-review: check a change against the project's own wall of shame
files:
    modified atris/MAP.md (+1 -0)
    modified atris/refs/map/review-and-receipts.md (+12 -12)
    modified bin/atris.js (+5 -3)
    modified commands/review.js (+297 -153)
    modified lib/claude-spend-guard.js (+1 -0)
    added lib/wall-of-shame.js (+149 -0)
    added templates/code-review/SPEC.md (+75 -0)
    modified test/code-review.test.js (+113 -126)
    modified test/dogfood-t6-t10.test.js (+0 -19)
    removed test/review-cmd--mut-L143-4.test.js (+0 -33)
    removed test/review-command.test.js (+0 -249)

## 709085e
date: 2026-11-20T02:11:07Z
parents: 2
subject: Merge pull request #2057 from atrislabs/codex/claude-spec-atris-own-mistake-list-for-code-revi-20261120-020823
body:
    Atris keeps its own list of past mistakes for atris code-review
files:
    modified CLAUDE.md (+2 -0)
    added atris/SPEC.md (+62 -0)

## b94ce8f
date: 2026-11-20T02:24:22Z
parents: 1
subject: A job claim that ran out and was claimed again can never write to the job
body:
    A run carries its claim as ATRIS_CLAIM (the claimed event id). Every task
    write checks it inside its own transaction: once another run has claimed
    the job, even under the same name, nothing is written and the run is told
    who holds it now. Flights set it for their hand-in, member go for its run.
    A hand-in by a name whose claim ended is refused while someone else holds
    the job. Writers that saved a row before its history entry now run as one
    write, so a refused entry takes the row change back.
files:
    modified atris/refs/map/tasks.md (+2 -1)
    modified commands/member.js (+28 -6)
    modified commands/task/landing/landing.js (+22 -13)
    modified lib/fleet.js (+18 -4)
    modified lib/member-task-pick.js (+1 -1)
    modified lib/task-db.js (+50 -14)
    modified test/task-lease.test.js (+28 -0)

## f9eb5dc
date: 2026-11-20T02:25:34Z
parents: 1
subject: A lost claim on a flight hand-in says so instead of asking for a retry
files:
    modified atris/refs/map/tasks.md (+1 -1)
    modified commands/task/landing/landing.js (+2 -1)
    modified lib/fleet.js (+3 -1)

## 50b2518
date: 2026-11-20T02:25:37Z
parents: 1
subject: Refresh map references that moved
files:
    modified atris/refs/map/tasks.md (+1 -1)

## a3d15be
date: 2026-11-20T02:26:30Z
parents: 1
subject: task store: spacing in appendTaskEvent
files:
    modified lib/task-db.js (+1 -1)

## fba0485
date: 2026-11-20T02:27:13Z
parents: 2
subject: Merge master into the setup guide branch
files:
    modified CLAUDE.md (+2 -0)
    modified atris/MAP.md (+1 -0)
    added atris/SPEC.md (+62 -0)
    modified atris/refs/map/review-and-receipts.md (+12 -12)
    modified bin/atris.js (+5 -3)
    modified commands/review.js (+297 -153)
    modified lib/claude-spend-guard.js (+1 -0)
    added lib/wall-of-shame.js (+149 -0)
    added templates/code-review/SPEC.md (+75 -0)
    modified test/code-review.test.js (+113 -126)
    modified test/dogfood-t6-t10.test.js (+0 -19)
    removed test/review-cmd--mut-L143-4.test.js (+0 -33)
    removed test/review-command.test.js (+0 -249)

## ebe6c14
date: 2026-11-20T02:28:08Z
parents: 2
subject: Merge pull request #2055 from atrislabs/codex/claude-setup-agent-run-setup-guide-and-live-docto-20261120-015514
body:
    Setup guide for coding agents and a live doctor check
files:
    modified FOR_AGENTS.md (+99 -22)
    modified README.md (+3 -1)
    modified atris/MAP.md (+2 -1)
    modified atris/refs/map/boot-and-first-minute.md (+2 -0)
    modified commands/doctor.js (+65 -1)
    modified test/doctor--doctor-command.test.js (+1 -1)
    added test/doctor-live.test.js (+55 -0)
    modified test/init-for-agents.test.js (+3 -2)

## ff4c81f
date: 2026-11-20T02:28:55Z
parents: 2
subject: Merge pull request #2058 from atrislabs/codex/claude-fence-a-job-claim-that-expired-can-never-w-20261120-021152
body:
    A job claim that ran out and was claimed again can never write to the job
files:
    modified atris/refs/map/tasks.md (+2 -1)
    modified commands/member.js (+28 -6)
    modified commands/task/landing/landing.js (+23 -13)
    modified lib/fleet.js (+21 -5)
    modified lib/member-task-pick.js (+1 -1)
    modified lib/task-db.js (+49 -13)
    modified test/task-lease.test.js (+28 -0)

## e845915
date: 2026-11-20T02:29:53Z
parents: 1
subject: init: running it twice no longer adds a second Project Context section
body:
    The three project-context injections into member cards (executor, navigator, validator) now go through one upsert: an existing block is replaced, extra copies are dropped, and only a card with none gets one inserted. This also fixes a fresh init, where the shipped validator card already carried a leaked nodejs block and got a second one on top.
files:
    modified commands/init.js (+23 -15)
    added test/init-rerun-project-context.test.js (+49 -0)

## 39913e5
date: 2026-11-20T02:32:43Z
parents: 1
subject: init: clean the shipped validator card, say "injected" only when a card changed, shrink the test
body:
    The validator card shipped with a leaked nodejs Project Context block from an old
    init run in this repo, so every fresh project started with a wrong section. It is
    removed, which also makes the validator half of the rerun test meaningful.

    injectProjectPatterns now returns how many cards it changed, and init prints the
    "Injected project patterns" line only when that is above zero.

    The rerun test moves into init-non-interactive.test.js and reuses its helpers.
files:
    modified atris/team/validator/MEMBER.md (+0 -6)
    modified commands/init.js (+7 -5)
    modified test/init-non-interactive.test.js (+17 -0)
    removed test/init-rerun-project-context.test.js (+0 -49)

## 45812a9
date: 2026-11-20T02:34:34Z
parents: 2
subject: Merge pull request #2059 from atrislabs/codex/claude-init-rerun-atris-init-run-twice-adds-no-duplica-20261120-020213
body:
    init: running it twice no longer adds a second Project Context section

    The three project-context injections into member cards (executor, navigator, validator) now go through one upsert: an existing block is replaced, extra copies are dropped, and only a card with none gets one inserted. This also fixes a fresh init, where the shipped validator card already carried a leaked nodejs block and got a second one on top.
files:
    modified atris/team/validator/MEMBER.md (+0 -6)
    modified commands/init.js (+27 -17)
    modified test/init-non-interactive.test.js (+17 -0)
output/commit_map.csv · written by the agent, 21 lines
sha,decision,reason
6f6f5a4,note,"In the FOR_AGENTS.md setup and `atris doctor --live` note."
b758168,internal,"Only changes a map row under atris/."
fd8af4e,note,"In the `atris code-review` note."
670e5d4,internal,"Code tidy that reuses shared readers; the commit states no change a user would see."
7d27757,internal,"Code tidy of the git runner and prompt order; the commit states no change a user would see."
3cd8ca7,internal,"Only changes map rows under atris/."
1f900fa,internal,"The repo's own mistake list and a CLAUDE.md note; no change to what the tool does."
827b5bf,note,"In the FOR_AGENTS.md setup and `atris doctor --live` note."
c7bea73,skip_merge,"Merge with 2 parents; the work is in fd8af4e."
709085e,skip_merge,"Merge with 2 parents; the work is in 1f900fa."
b94ce8f,note,"In the expired job claim note."
f9eb5dc,note,"In the expired job claim note."
50b2518,internal,"Only changes a map reference under atris/."
a3d15be,internal,"Spacing change in one line with no user-visible effect."
fba0485,skip_merge,"Merge with 2 parents that only repeats other commits."
ebe6c14,skip_merge,"Merge with 2 parents; the work is in 6f6f5a4 and 827b5bf."
ff4c81f,skip_merge,"Merge with 2 parents; the work is in b94ce8f and f9eb5dc."
e845915,note,"In the `init` run twice note."
39913e5,note,"In the `init` run twice note."
45812a9,skip_merge,"Merge with 2 parents; the work is in e845915 and 39913e5."
output/release_notes.md · written by the agent, 11 lines
# Atris release notes: changes after v3.89.2 up to v3.90.0

## New

- `FOR_AGENTS.md` now holds the setup steps for a coding agent, with a done-means list and a when-blocked rule, and its first job verifies with the project's own tests. `atris doctor --live` asks claude (else codex) for one exact reply, times it, saves `.atris/state/doctor-live.json` and prints one line saying it passed in N seconds with which tool, or failed with the tool's own error; it keeps `model` for what the tool says ran, records `requested_model` apart, and says "asked for X" when the model that ran is unknown. [6f6f5a4, 827b5bf]

## Fixed

- `atris code-review` no longer looks for a Python review engine; it reads `atris/SPEC.md`, runs one read-only reviewer per relevant lens, counts over-testing from the diff with no model call and saves a receipt under `.atris/reviews/<head-sha>.md`. `init` writes a starter spec, `add` appends a dated example, and `--pr <n> --comment` updates the report block in the pull request description. [fd8af4e]
- A job claim that ran out and was claimed again can no longer write to the job: once another run has claimed it, nothing is written and the run is told who holds it now, and a hand-in by a name whose claim ended is refused while someone else holds the job. A lost claim on a flight hand-in now says so instead of asking for a retry. [b94ce8f, f9eb5dc]
- Running `init` twice no longer adds a second Project Context section to the executor, navigator and validator member cards, and a fresh `init` no longer starts the validator card with a leaked nodejs block. `init` prints the "Injected project patterns" line only when a card changed. [e845915, 39913e5]
check.py · the check, written before the run
"""Checks the release notes against the commit history: every commit sorted, every note traced."""
import csv, re, sys
from pathlib import Path
root = Path(sys.argv[1]); ok = True
def say(passed, text):
    global ok; ok = ok and passed; print(("PASS " if passed else "FAIL ") + text)

# Read the commits from the input file.
commits, cur = {}, None
for line in (root/"input/commits.md").read_text().splitlines():
    m = re.match(r"^## ([0-9a-f]{7})$", line)
    if m:
        cur = {"sha": m.group(1), "parents": 0, "text": "", "files": []}; commits[cur["sha"]] = cur; continue
    if cur is None: continue
    if line.startswith("parents:"): cur["parents"] = int(line.split(":")[1])
    fm = re.match(r"^    (added|modified|removed|renamed) (\S+) \(", line)
    if fm: cur["files"].append(fm.group(2))
    cur["text"] += line + "\n"
merges = {s for s, c in commits.items() if c["parents"] == 2}
notes_only = {s for s, c in commits.items() if c["parents"] == 1 and c["files"]
              and all(f.startswith(("atris/", "test/")) for f in c["files"])}
# Marked by hand before the run: the commits that carry the changes a user would notice most.
MAIN = ["6f6f5a4", "fd8af4e", "827b5bf", "b94ce8f", "e845915"]
# Added by an early commit and removed by a later one in the same range.
TAKEN_BACK = [f for f in {f for c in commits.values() for f in c["files"]}
              if any(("added " + f) in c["text"] for c in commits.values())
              and any(("removed " + f) in c["text"] for c in commits.values())
              and not f.startswith("test/")]

mp, np = root/"output/commit_map.csv", root/"output/release_notes.md"
if not mp.exists() or not np.exists():
    say(False, "output/commit_map.csv and output/release_notes.md were not both written"); sys.exit(1)
rows = list(csv.DictReader(mp.open()))
got = {(r.get("sha") or "").strip(): (r.get("decision") or "").strip() for r in rows}
once = sum(1 for s in commits if sum(1 for r in rows if (r.get("sha") or "").strip() == s) == 1)
say(once == len(commits) and len(rows) == len(commits) and all(d in ("skip_merge", "internal", "note") for d in got.values()),
    f"{once} of {len(commits)} commits appear once in commit_map.csv with a decision")
m_ok = sum(1 for s in merges if got.get(s) == "skip_merge"); n_ok = sum(1 for s in notes_only if got.get(s) == "internal")
wrong_skip = [s for s, d in got.items() if d == "skip_merge" and s not in merges]
say(m_ok == len(merges) and n_ok == len(notes_only) and not wrong_skip,
    f"{m_ok} of {len(merges)} merge commits are skipped and {n_ok} of {len(notes_only)} commits that touch only notes and tests are marked internal")

notes = [l.strip() for l in np.read_text().splitlines() if l.strip().startswith("- ")]
cited, traced, words, words_ok = [], 0, 0, 0
for n in notes:
    m = re.search(r"\[([^\]]*)\]\s*$", n)
    ids = [x.strip() for x in m.group(1).split(",")] if m else []
    good = bool(ids) and all(i in commits and got.get(i) == "note" for i in ids)
    traced += good; cited += ids
    src = "".join(commits[i]["text"] for i in ids if i in commits)
    for tick in re.findall(r"`([^`]+)`", n):
        for w in tick.split():
            words += 1; words_ok += w in src
marked = {s for s, d in got.items() if d == "note"}
say(bool(notes) and traced == len(notes) and sorted(cited) == sorted(marked),
    f"{traced} of {len(notes)} notes end with real commit ids and {len(set(cited) & marked)} of {len(marked)} commits marked note are cited by exactly one note")
main_ok = sum(1 for s in MAIN if got.get(s) == "note" and s in cited)
say(main_ok == len(MAIN), f"{main_ok} of {len(MAIN)} main changes marked by hand before the run are covered by a note")
say(words > 0 and words_ok == words, f"{words_ok} of {words} command and file words quoted in the notes appear in the commits those notes cite")
text = np.read_text()
leaked = [f for f in TAKEN_BACK if f.split("/")[-1] in text]
say(len(TAKEN_BACK) > 0 and not leaked,
    f"{len(TAKEN_BACK) - len(leaked)} of {len(TAKEN_BACK)} files added then removed inside the range are left out of the notes")
# Stricter lines added after the run: row order, reasons, commit ids named in reasons and the section of every note.
order = list(commits)
in_order = sum(1 for i, r in enumerate(rows) if i < len(order) and (r.get("sha") or "").strip() == order[i] and len((r.get("reason") or "").split()) >= 3)
named = [x for r in rows for x in re.findall(r"\b[0-9a-f]{7}\b", r.get("reason") or "") if re.search(r"\d", x) and re.search(r"[a-f]", x)]
real = sum(1 for x in named if x in commits)
say(in_order == len(commits) and real == len(named), f"{in_order} of {len(commits)} rows of commit_map.csv follow the input order with a reason and {real} of {len(named)} commit ids named in reasons are real")
head, placed = "", 0
for l in text.splitlines():
    if l.startswith("## "): head = l[3:].strip()
    elif l.strip().startswith("- "): placed += head in ("New", "Fixed")
nn = nn_ok = 0
for n in notes:
    m = re.search(r"\[([^\]]*)\]\s*$", n)
    src = "".join(commits[i.strip()]["text"] for i in (m.group(1).split(",") if m else []) if i.strip() in commits)
    for x in re.findall(r"(?<![\w.])\d+(?:\.\d+)*(?![\w])", n[:m.start()] if m else n):
        nn += 1; nn_ok += bool(re.search(r"(?<![\d.])" + re.escape(x) + r"(?![\d])", src))
say(bool(notes) and placed == len(notes) and nn_ok == nn, f"{placed} of {len(notes)} notes sit under the New or Fixed heading and "
    + (f"{nn_ok} of {nn} numbers written in notes are found in the commits they cite" if nn else "no note states a number that would need tracing"))
sys.exit(0 if ok else 1)

commits.md: Atris's own public material. Fingerprint 85550b69ee24.

commit_map.csv: written by the agent. Fingerprint dc40a2c0a7d9.

release_notes.md: written by the agent. Fingerprint 7aa50e01f253.


More product and engineering work, and every other desk job

For agentsGitHub
What is AtrisBlogApp StorePricingPrivacyTerms