Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .agent/AGENT_IMPROVEMENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ and its row is deleted; the commit says where it went.
| A2 | Run `ruff format` before string replacements in a file, or edit after formatting: the formatter rewraps lines and a replacement written against the old wrapping misses | Two replacement batches against `examples/demo_loop.py` failed on 2026-11-14 for this reason | open |
| A3 | Headless Chrome cannot render narrower than 500 px, so a `--window-size=390` screenshot shows a clipped desktop layout, not a phone. Check a phone with device emulation over the DevTools protocol, and make that a `make phone` target that fails when a page is wider than 390 px | The clipped 390 px shots of 2026-11-15 were the 500 px minimum; emulation found the real overflows (600eca2) | open |
| A4 | The shell here is bash 3.2: a command that mixes a heredoc with pipes or two heredocs is refused. Write a long commit message to a file and pass `-F <file>` | Several refused commits on 2026-11-15 | open |
| A5 | A pull request of several commits that is squash-merged becomes one line of the release notes, under the pull request's title, with the bullets of all its commits below it. Merge such a pull request by rebase, or give it one commit per release-note line and a title that names the change that matters most | The notes of 0.12.0: six changes under one subject, and before the cap was raised the breaking change of the MCP extra was cut off | open |
2 changes: 1 addition & 1 deletion .agent/DEFERRED_VERIFICATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ is named in the commit that closes it.
| the page limits, the open questions, the turn of a sleeping page | Seen on a running board on 2026-11-19: a loop of 75 rounds drawn 30 at a time with links to the rest, two open questions shown one after the other, an open page of a sleeping loop turning to stalled by itself, the example loop started from the board, answered with a button and going on. Not seen: the notice beside Start that a Stop is waiting, the Copy buttons of an empty board, `watch` and `unwatch` on a config a person wrote by hand, a log near 20 MB from a real loop | A wording or a layout reads worse live than in a test; a real config has a shape the line editor does not know and is written anew | Each opened or run once on a real board and a real config |
| hiding a loop, the old mark | Seen on a running board on 2026-11-19: `hide` took a waiting loop off an open first page, which reloaded by itself, out of the waiting count and the figures, the `hidden` chip listed it, its page opened with the command that shows it again, `unhide` brought it back; a loop silent for 20 days showed as stalled, marked old, outside the count of loops that need a look. Not seen: a loop hidden from one worktree and read from another, and `hide` on a config a person wrote by hand | A hidden loop comes back when its repository is read from another worktree | A loop hidden in the main checkout stays hidden while a worktree of that repository writes last |
| the waiting count in a background tab | Seen in Chrome on a running board on 2026-11-19, with the tab made to read as hidden and the notification replaced by a recorder: a second loop asked, the title went from (1) to (2) without the page being drawn again, and one notification was made. Not seen: the browser's own permission prompt answered by a person and the notification the system then shows; `status` and `inbox` were run against a real board's loops | The system shows nothing, or shows it for every poll | Notify allowed in the footer, the board's tab put behind another, a loop made to ask: one notification, and a click on it brings the tab forward |
| the site's head and the release notes | The built site carries a title, a sentence, a card picture and, on the first page, the project as data; no page loads a font from another host; a release note prints its commit's bullets. Checked on the built pages and by tests, not on the published site or a real release | A card that does not show when a link is shared; notes that read badly for a squash merge, whose body is the pull request's list of commits | A link to the published site pasted into a chat or a card checker shows the picture; the notes of the next release read well |
| the site's head | Seen on the published site on 2026-11-19: the first page carries the card tags, the card picture answers, no page asks another host for a font, the questions page is there. Not seen: a link pasted into a chat or a card checker | A card that does not show when a link is shared | A link to the published site pasted into a chat or a card checker shows the picture |
4 changes: 0 additions & 4 deletions .agent/FINDINGS.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,12 @@ in the commit that settles it. Proposed: now, later, check, drop.
| F17 | The tab title counts what waits; the favicon does not. A count in the icon needs a drawn image per number or script | open | later | src/loopcaptain/board/templates/overview.html |
| F18 | A prompt to build a loop, given to a fresh agent, ended with a 302-line loop file for a three-step job; a smaller starting template (one loop.py of 60 lines beside the helper) would make the first loop cheaper | open | later: check with the next acceptance run | the acceptance run of 2026-11-15 |
| F20 | SECURITY.md and the issue template send reporters to private security advisories, but private vulnerability reporting is switched off on the repository, so a reporter has no private way in | open | now: a repository setting, no file change | the repository's `private-vulnerability-reporting` setting read `enabled: false`; SECURITY.md:29-31, .github/ISSUE_TEMPLATE/config.yml |
| F26 | The release workflow tags and publishes on a push to main without waiting for CI: 0.3.1 was published 29 seconds after the CI run for the same commit was created | open | now: trigger on a successful CI run, or make the release job need a `make check` job | .github/workflows/release.yml:11-14, :55-66; run and upload times of 2026-11-15 |
| F34 | `a helper of 50 lines` is stale in CHANGELOG.md; the helper has 76 | open | later: the file is frozen at 0.1.0, so only if that entry is ever rewritten | CHANGELOG.md; `wc -l standard/loops.py` |
| F36 | No moving picture of the one thing that sets the board apart: a loop asks, a button answers, the loop goes on. The screenshots are still images below the fold | open | later: a short recording made from the example loop by `make shots`, vendored like the screenshots | README.md, docs/assets/; review of 2026-11-15 at 7e22640 |
| F54 | CI installs with `uv sync --frozen`, which accepts a lock file that no longer matches pyproject.toml | open | now: `--locked` in ci.yml and docs.yml | .github/workflows/ci.yml:45, docs.yml:36; `--frozen --dry-run` exit 0 with a dependency added, `--locked` failed, review of 2026-11-15 at 7e22640 |
| F66 | The person cannot bar one loop from Start on the board, which the runbook asks about (section A.1). Hiding a loop and ageing a dead one out of the alarm are done (section 42 of the architecture) | open | later: `no_start` per loop in the config, not in the protocol | src/loopcaptain/board/app.py `loop_start`; AGENTS.md section A.1; review of 2026-11-15 at 7e22640 |
| F67 | Several loops at once: the overview has no Stop, and cost is one all-time sum with nothing for today or this week | open | later: both are views of events already written | src/loopcaptain/board/templates/overview.html, board/trend.py; review of 2026-11-15 at 7e22640 |
| F68 | The Items tab is promised in the README and shown by no demo, showcase or screenshot | open | later: an example loop with items, or drop the promise | README.md, scripts/showcase.py; review of 2026-11-15 at 7e22640 |
| F69 | Config, inbox key and state each have their own variable and default folder (`~/.config/loopcaptain` for two, the user's state folder for the third), so a second board takes three variables to isolate | open | check: one variable that moves all three, the three kept as overrides | src/loopcaptain/board/steer.py:81, protocol/signing.py:27-34, docs/installation.md:77 |
| F72 | PyPI holds no provenance attestations for the published files | open | later | PyPI file metadata of 0.3.1; .github/workflows/release.yml |
| F73 | `make setup` in a worktree repoints the main checkout's git hooks at the worktree's virtualenv | open | later: skip the install when the git dir is not the common dir, and say so in AGENTS.md section B.1 | Makefile:7-12; the installed hook's `INSTALL_PYTHON` line |
| F74 | The repository topics miss the terms people search by (agent loops, human in the loop, dashboard); one topic is shared by six repositories. Topics naming agent products would need a reading of rule 8 | open | check: add `human-in-the-loop`, `agent-monitoring`, `ai-agents`, `coding-agents`, `ralph-loop`, `local-first`, and one of `claude-code` or `agent-protocol`; a repository setting, no file change | repository topics read 2026-11-15 and 2026-11-19 |
| F76 | `How it differs` names no alternative, so a reader cannot place the project against tools they know. Naming other projects bends rule 8 | open | check: a rule change, and a section in docs/ARCHITECTURE.md | README.md `How it differs`; AGENTS.md rule 8 |
Expand All @@ -31,7 +28,6 @@ in the commit that settles it. Proposed: now, later, check, drop.
| F83 | Small stale or author-facing statements across the standard, the site and the nested AGENTS.md files | open | later: with the next change to each file; done on 2026-11-16 for README.md, docs/index.md, docs/get-started.md, docs/installation.md, docs/agents.md and the one line in standard/AGENTS.md | git grep of the review |
| F84 | Protocol proposal held back by rule 3: the helper's `inbox()` could drop entries whose `signed` is not `true`, or that are `stale`, by default or behind an opt-in argument; today a loop filters them itself, and a call written against the earlier text must keep returning what it returned | open | later: an opt-in argument fits version 1, a new default is protocol 2 | standard/loops.py `inbox`; docs/ARCHITECTURE.md section 26, Rejected; commit a327458 |
| F89 | One loop page walks the watched folders several times per request: `find_loop`, `find_repo` and the repository list each call `find_repos(config())`. Measured on 300 folders, 100 of them with loops: 13 ms a walk, so about 50 ms of a page | open | later: one walk per request, if a board with hundreds of folders feels slow | src/loopcaptain/board/discover.py, board/app.py; measured 2026-11-19 |
| F95 | llms.txt reaches `site/` twice: the build copies `docs/` and the docs workflow copies `docs/llms.txt` again | open | later: drop the copy step | .github/workflows/docs.yml:38; zensical.toml `docs_dir` |
| F99 | A round's `outcome` (kept or discarded) and its `stop_reason` are read but shown only on the round's own page; the round grid and the overview do not show which rounds were thrown away or why a loop ended, though one loop discarded 10 of its 14 early rounds | open | later: a row in the round grid | review of 27889e0, 2026-11-17 |
| F100 | No per-round timeline: steps carry start and finish times (`at`, `ts`), but the board shows only a round's total minutes, so where a round spends its time (one loop: 3.7 h inside rounds in 24.5 h of wall time) is not visible | open | later | review of 27889e0, 2026-11-17 |
| F101 | Tokens are shown as one sum; cache reads (87 percent of one loop's 89.5M tokens) hide the input and output that drive cost and length. The `Cost` fields already split them | open | later: show cache reads apart | review of 27889e0, 2026-11-17 |
Expand Down
22 changes: 20 additions & 2 deletions scripts/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ def next_tag(last: str | None, bump: str) -> str:


#: A commit says why in bullets; a release note carries at most this many of them per commit.
MOST_BULLETS = 6
MOST_BULLETS = 12
#: The footer a commit names a breaking change with; its text is always part of the note.
BREAKING = "BREAKING CHANGE:"


def bullets(body: str) -> list[str]:
Expand All @@ -79,7 +81,23 @@ def bullets(body: str) -> list[str]:
found[-1] = f"{found[-1]} {line.strip()}"
else:
open_bullet = False
return found[:MOST_BULLETS]
return found[:MOST_BULLETS] + breaking(body)


def breaking(body: str) -> list[str]:
"""What a commit's `BREAKING CHANGE:` footers say, each as one line that starts with "Breaking:".
A reader of the notes must not miss it, however many bullets came before."""
found: list[str] = []
taking = False
for line in body.splitlines():
if line.startswith(BREAKING):
found.append("Breaking: " + line.removeprefix(BREAKING).strip())
taking = True
elif taking and line.strip() and not line.startswith(("- ", "* ")):
found[-1] = f"{found[-1]} {line.strip()}"
else:
taking = False
return found


def notes(commits: list[Commit]) -> str:
Expand Down
11 changes: 11 additions & 0 deletions tests/test_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,17 @@ def test_a_note_carries_the_reasons_its_commit_gives(release: types.ModuleType)
)


def test_a_breaking_change_is_in_the_note_however_many_bullets_come_before(release: types.ModuleType) -> None:
"""A squash merge joins the bullets of several commits; the cap cut the breaking change off."""
body = "".join(f"- Reason {n}.\n" for n in range(1, 15))
body += "\nBREAKING CHANGE: `loopcaptain mcp` needs the package\ninstalled as `loopcaptain[mcp]`.\n"

text = release.notes([release.Commit("1234567890", "feat(package)!: make the MCP server an extra", body)])

assert " - Reason 12." in text and "Reason 13" not in text
assert text.endswith(" - Breaking: `loopcaptain mcp` needs the package installed as `loopcaptain[mcp]`.")


def test_the_checkout_carries_no_version_of_its_own() -> None:
project = tomllib.loads((ROOT / "pyproject.toml").read_text(encoding="utf-8"))["project"]

Expand Down
Loading