Commit Graph
135 Commits
Author SHA1 Message Date
CatoandClaude Opus 5.5 dd77359164 docs(claude): chats are @bitbaum/chatkit; improve shared things upstream, never locally
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-25 08:27:26 +02:00
CatoandClaude Opus 5.5 20022ed6bc docs(claude): chats — reuse the reference, never write one from scratch (#74)
* docs(claude): chats — reuse the reference, never write one from scratch

13 chats in 10 repos, each written fresh and each missing something another had
fixed (usually the mic); George had to find every gap himself. Global rule: open
loki /loki first, meet fleet SHARED.md 'Chat — the standard', behaviour may not
differ between apps, done = 390px screenshot + one sentence through the mic.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* docs(claude): shorten the chat rule to a pointer; raise the budget 291 -> 302 for it

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-24 22:27:34 -07:00
CatoandClaude Opus 5 02f9f43fad fix(hooks): block unbounded wait loops before they hang (#73)
George found a background shell that had been spinning for 26 minutes:

    until [ "$(gh pr view 860 --jq .headRefOid)" = "50f9647a…" ]; do sleep 10; done

PR #860 had MERGED minutes earlier at a different commit, and a merged
PR's headRefOid is frozen forever — so the exit condition was
unsatisfiable by construction. Not slow, not flaky: impossible. It would
have spun until the session died, producing no output the whole time.

His words: "i thought we are done with such issues." There was already a
memory note saying every wait needs a deadline. A note is prose that
depends on the agent remembering to read it, which is why this is a hook
instead: the guard runs whether or not anybody remembered.

Two rules came out of it and only the first is mechanically checkable:

  1. A wait must be BOUNDED, so an impossible condition ends as a report
     instead of a hang.
  2. Poll a TERMINAL state (MERGED/CLOSED, completed) — never a field
     that only moves while the object is open. No regex can enforce this
     one; it is in the block message so it is read at the moment it
     matters.

Deliberately narrow, because a false positive here breaks every deploy
wait in the fleet: it fires only on `until`/`while` that actually sleeps,
and only when nothing in the command looks like a bound — `seq`, an
arithmetic counter, $SECONDS, `timeout`, or an attempt/deadline name all
pass untouched.

11 assertions added in both directions, including the verbatim command
that hung. Verified live through the running hook: that command is now
refused, and the bounded `for i in $(seq 1 40) … case MERGED|CLOSED`
replacement runs fine.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-22 13:10:52 -07:00
CatoandClaude Opus 5 1b883ff10c fix(hooks): commit the hook that was running from one disk, drop the renamed twins (#72)
settings.json is this repo's SSOT for what runs, and it disagreed with
.claude/hooks/ in both directions at once.

Registered but never committed: session-start.sh. It prints the "AGENTS
RUNNING" banner at the top of every session — the thing that makes
scripts/fleet-status.sh unavoidable rather than something a session has to
remember. It was written on 2026-09-10 and has been running here ever since,
while existing on exactly one disk. A new machine would not have had it, and
nothing would have said so.

Committed nothing runs — or rather, registered after it was superseded:
fleetcrown-capture.sh and fleetcrown-session-end.sh survived the FleetCrown ->
Loki rename as byte-for-byte twins of loki-capture.sh / loki-session-end.sh,
differing only in token path and host. Both ~/.config/fleetcrown and
~/.config/loki still hold a token, and both fleetcrown.orangecat.ch and
loki.orangecat.ch still answer, so since the rename every prompt typed on this
machine has been posted TWICE, to two different products. Their registrations
are removed here; the scripts are deleted from the box in the same change.

settings.json also gains the SessionStart block and modelSettings, which lived
only in the working copy. The file is otherwise the live one unchanged.

A registration with no file and a file nothing runs are the same bug seen from
opposite ends, so the new test asserts both ends, and is itself asserted to
fail in both directions rather than merely to pass today.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-20 07:16:54 -07:00
CatoandClaude Opus 5 f939d38a2b fix(hooks): stop a leading cd re-homing every background session (#71)
On 2026-09-20 a session sitting in ~/ ran `cd ~/.claude/hooks` (a symlink
into this repo) in the same second the background daemon was spawned. The
daemon recorded the shell's live cwd as its spawner's location:

  daemon run --spawned-by {"cwd":"/home/g/dev/dotfiles/.claude/hooks",...}

Every background session minted afterwards inherited that directory. They
reported themselves as "dotfiles" in the UI, wrote their transcripts to
projects/-home-g-dev-dotfiles--claude-hooks/, and — the part that costs real
work — would read and write their memory from the wrong silo.

The leading `cd` bought nothing in the first place: the Bash tool resets the
working directory to the session's own after every call, so it never
persisted. It was pure footgun, and only the spawn race made it visible.

So block it, at the one place this repo already gates every tool call. The
guard inspects only the first line and only an unparenthesised `cd`/`pushd`:
a subshell `(cd ...)` or `$(cd ...)` cannot escape itself, a heredoc body
belongs to another interpreter, and `ssh host "cd /opt/app && ..."` is a
remote directory — blocking any of those would stall 5-20 live sessions.
Both directions are asserted by a test, wired into CI, because a hook this
load-bearing must not regress in either.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-20 06:52:18 -07:00
CatoandClaude Opus 5 0e82b5ce18 fix(bashrc): $HOME instead of a hard-coded /home/g in the PATH export (#70)
The Antigravity CLI installer appended `export PATH="/home/g/.local/bin:$PATH"`
to .bashrc. This repo is installed by symlink onto whatever machine it is
cloned to, so a literal home directory here is wrong for any user or host
whose home is not /home/g - the entry silently points at a directory that
does not exist and ~/.local/bin drops off PATH. Every other PATH line in the
file already uses $HOME; this one was machine-generated and missed it.

Behaviour on the machine it was generated on is identical.

Deliberately NOT changed: the absolute path in .config/zellij/config.kdl.
Zellij's KDL config does no environment-variable expansion, so an absolute
path there is the only thing that works and is not an oversight.

Verified: bash -n .bashrc.


Claude-Session: https://claude.ai/code/session_01NLZ6vs1jsWw2kKbpWTZHf2

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-17 00:50:58 -07:00
CatoandClaude Fable 5.1 1fa68c293c fix(ci): auto-merge caller declared secrets twice, so the workflow never parsed (#69)
The caller declared `secrets:` twice under `jobs.sweep` — one block passing `GITHUB_TOKEN`, a second passing `FLEET_PAT`. A YAML mapping cannot hold the same key twice, so GitHub refused the whole file: the Actions tab lists the workflow by its PATH instead of its `name:`, and every run since at least 2026-09-13 is a zero-job `failure`. This repo has had no auto-merge at all in that time, and nothing said so — a sweep that fails to start looks exactly like a sweep with nothing to merge.

Keep the `FLEET_PAT` block (the reusable workflow falls back to `github.token` when it is empty), drop the `GITHUB_TOKEN` one. Verified with a strict duplicate-key YAML load and actionlint 1.7.12.


Claude-Session: https://claude.ai/code/session_012KAn51JHFcTrPeCjZDGXM8

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-14 22:49:11 -07:00
CatoandClaude Fable 5.1 b10b19e7c8 chore(ci): drop the copy of find-false-needs.py — fleet owns it (#68)
scripts/ci/find-false-needs.py was a byte-for-byte copy (one docstring word
apart) of fleet/scripts/ci/find-false-needs.py. Fleet is the SSOT for CI
scripts — its templates/ci/README.md says one central script, not a copy per
repo, and this file's own docstring says the same about itself. Nothing in
this repo referenced the copy; the one pointer (a memory note) now names the
fleet path.


Claude-Session: https://claude.ai/code/session_012KAn51JHFcTrPeCjZDGXM8

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-14 05:31:54 -07:00
CatoandClaude Fable 5.1 71becc5253 chore: rename FleetCrown to Loki (#67)
The product was renamed on 2026-09-14: bitbaum/loki, loki.orangecat.ch,
LOKI_* env keys, loki-* units. This repo referenced the old name in
11 files changed, 22 insertions(+), 22 deletions(-).
Email addresses at the old sending domain stay until the new domain is
verified in Resend.


Claude-Session: https://claude.ai/code/session_016YJVAanfj8keVSXyZnTemh

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-13 16:23:08 -07:00
Cato 5d5e857c79 Adopt fix-scans.sh from lifeops, and write down three rules earned today (#66)
* feat(scripts): adopt fix-scans.sh, and say that scripts/ exists

Batch-repairs date and GPS metadata on scanned film frames: scanners stamp
the scan time, not the shot time, so a 1994 roll sorts into last Tuesday in
any photo app. Dry-run by default, --apply writes through exiftool.

It came from bitbaum/lifeops, a repo created by an agent on 2026-08-13 that
never went anywhere. The idea (personal non-code tasks made repo-shaped so
FleetCrown can dispatch them) is worth keeping as an idea; a repo is not the
place to keep an idea. This is the one file in it that does real work, and
it is environment-shaped, so it belongs beside fleet-status.sh.

The architecture block never mentioned scripts/ even though fleet-status.sh
has lived there for months. A directory the file does not list is one the
next person puts the wrong thing in.

* docs(claude): three rules earned the hard way today

Written after a session that created litter, then nearly deleted live code
while cleaning it up. Each is a fact an agent cannot derive:

- Clean up the experiment when the experiment is over. Six dogfood sites
  from 10-11 September were still live days later, two reading as real
  Zurich businesses that do not exist, on George's own domain. Includes the
  deletion ORDER: the FleetCrown project first, or box-prepare re-clones the
  site within two minutes.

- Never create a GitHub repository on your own initiative. Agents commit
  under George's own identity, so an agent-made repo is indistinguishable
  from his. 27 of 48 repos had an agent-authored first commit, and he did
  not recognise several of them.

- Answer "what do we have?" from a register, never a grep. ~/dev is a
  partial copy of the org. A grep for @bitbaum/<name> missed every consumer
  of packages that install under a bare name, and "nothing depends on these"
  nearly deleted bip-kit (8 adopters), limitkit (3) and threadkit (3).
  fleet/registers/*.json had the right answer the whole time.

* docs(claude): three rules earned today, and the budget to hold them

Each records an incident from 2026-09-12 and is a fact an agent cannot
derive on its own:

- Clean up the experiment when the experiment is over. Six dogfood sites
  from 10-11 September were still live days later, two reading as real
  Zurich businesses that do not exist, on George's own domain. Carries the
  deletion ORDER, because the FleetCrown project row is invisible from the
  box and box-prepare re-cloned three of the six within two minutes.

- Never create a GitHub repository on your own initiative. Agents commit
  under George's own identity, so an agent-made repo is indistinguishable
  from his. 27 of 48 repos had an agent-authored first commit and he
  recognised few of them.

- Answer "what do we have?" from a register, never a grep. A grep for
  @bitbaum/<name> missed every consumer of packages that install under a
  bare name; "nothing depends on these" nearly deleted bip-kit (8
  adopters), limitkit (3) and threadkit (3). fleet/registers/*.json had
  the answer the whole time.

The first draft of these ran 75 lines and the budget gate caught it, which
is the gate working: they are 49 now. BUDGET rises 242 -> 291, set to the
exact count so the ratchet keeps no slack, with the reason in the diff.
2026-09-12 12:30:11 -07:00
CatoandClaude Opus 5 e648ffe5b6 docs(claude): the memory MCP server is gone, not just deprecated (#65)
#63 said "do not write new entities" and left the server configured. A rule that
depends on every future agent choosing to obey it is the same shape as the
duplication it was meant to end — so the entry is now removed from
~/.claude.json, and this file says what actually happened.

Removed surgically: context7 and playwright are untouched, all 103 top-level
keys intact, and the file is byte-identical apart from the deleted entry.
Archived first, both the graph (~/.claude/mcp-data/memory.jsonl.retired-2026-09-10)
and the config. The three durable decisions were migrated to file memory in #63.

Config is read at session start, so sessions already running keep their live
server; only new ones lose it. That is the wanted semantic — no writer is
interrupted mid-flight — but it means graph content can still appear in an old
session, hence the note that it is unowned.

Still 242 lines, so the #64 budget holds.


Claude-Session: https://claude.ai/code/session_01HVwg8DKHQktxJuHeLM3xpG

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-10 12:55:41 -07:00
CatoandClaude Opus 5 8c9c70f31b ci(claude): hold the global file at 242 lines, and stop forbidding cross-repo work (#64)
Two follow-ups to #63.

**The ratchet.** #63 cut the global CLAUDE.md from 718 to 242 lines, but nothing
stopped it refilling — accretion is how it got to 718 in the first place, one
reasonable-looking section at a time. CI now fails if it exceeds 242. The count
may fall or hold, never rise: adding a section means cutting another or raising
BUDGET in the same commit, so the decision lands in a diff a human reads instead
of being inherited silently. Verified in all three directions before shipping —
red at 247, green at 242, green at 200 with a note to lock the win in.

**The rule that forbade today's work.** Project isolation said "never write code
to or read files from a project directory other than the one cwd is in". Read
literally it prohibits every cross-repo change: the fleet brief, a shared
package, a fix in the repo that actually owns the bug. Its real target is prompt
drift — the continuation template naming a project you are not in — so it now
says that instead. An explicit request in the conversation, and cross-repo work,
are legitimate; drifting on the strength of stale template text is not.


Claude-Session: https://claude.ai/code/session_01HVwg8DKHQktxJuHeLM3xpG

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-10 12:41:24 -07:00
CatoandClaude Opus 5 b40cb2cf5a docs(claude): cut the global file to what a model cannot already know (#63)
718 -> 242 lines, loaded into every one of ~17 concurrent sessions.

Deleted: First Principles essay, Best Practices, Litmus Tests, Red Flags, the
Anti-Patterns table, Code Quality Standards, UI/UX Principles, Testing
Philosophy, the Summary, and the Design System tutorial. All of it is general
software engineering — DRY, KISS, YAGNI, "comment WHY not WHAT", naming
conventions, validate at boundaries, handle loading/empty/error states. Models
already do this. It was ~400 lines crowding out the ~200 that are actually
local, and the file now says so where the reader can see it.

Kept verbatim, because none of it is derivable: the commit and self-merge
policy, deployment monitoring on bitbaum, the SPACE prompt framework, and
project isolation. Compressed but kept: the six ground truths, the Never-Twice
rule, the verify floor, the SHARED.md check, and the design-token rule reduced
to the rule plus its two greps.

Added: a section on working alongside 5-20 concurrent sessions (the registry,
fleet-status.sh, semantic vs file collisions, the shared-stash ban, and not
resetting a dirty file in a shared checkout).

Memory is now one system, not two. The MCP graph held a parallel copy of the
same knowledge, which is Ground Truth #2 violated in the file that states it;
its session:* entities duplicated ~/.claude/sessions/*.json and its project:*
state duplicated git. Files win: they are auto-loaded and need no protocol.
The three durable decisions in the graph (three-pillars, design-discipline,
fleetcrown actors) are migrated to file memory. Graph data is left in place
because eight sessions are live against it; retiring the server itself is a
follow-up once they drain.


Claude-Session: https://claude.ai/code/session_01HVwg8DKHQktxJuHeLM3xpG

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-10 12:33:26 -07:00
CatoandClaude Opus 5 14d917228f feat(scripts): show what every agent is working on (#62)
Eighteen sessions were running at once today across twelve projects, and none
could see any of the others. CLAUDE.md already says to check the session
registry before wide-blast-radius work, but that registry holds a one-line NAME
per session — it says a session is called "orangecat username immutability
investigation", not that it has shipped four PRs or hit something the session
next door is about to hit.

The cost is not hypothetical. Running this for the first time showed a datacat
session had just committed "the gate was red on an unmodified main, twice over"
— the same CI-gate class I had spent the afternoon diagnosing in hirnli, found
independently, hours apart, by two agents who could not see each other.

It coordinates nothing and holds no lock: worktrees already isolate files, and
what actually collides is intent, which only a person reading the output can
judge.

Also documents the memory rule, because breaking it is silent. Memory loads from
the SESSION'S CWD, so a session whose cwd is dotfiles but whose work is hirnli
files its memories under dotfiles — where no hirnli agent will ever read them.
That is exactly what happened to 23 of them; they have been moved.


Claude-Session: https://claude.ai/code/session_01HVwg8DKHQktxJuHeLM3xpG

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-10 11:37:45 -07:00
CatoandClaude Opus 5 de7f0cc44a ci(auto-merge): hand the sweep a PAT so workflow PRs stop stalling (#61)
GITHUB_TOKEN cannot merge a PR that touches .github/workflows. The sweep tries,
the merge API refuses, it logs "leaving for the next sweep", and repeats — while
still exiting 0. So the failure is invisible: every run reports success and the
PR simply never merges.

That is not hypothetical. ai-kit #11 (bump actions/checkout) sat green, CLEAN
and MERGEABLE for nine days; aoz-housing #122 (bump actions/upload-artifact)
for nine more. Both had to be merged by hand today. Every Dependabot
`github_actions` bump in the fleet is in this class, permanently.

A PAT fixes a second thing that costs more: THROUGHPUT. A dispatch made with
GITHUB_TOKEN emits no workflow_run, so after each merge nothing wakes the sweep
to take the next PR — it waits for the cron, and GitHub throttles scheduled
workflows to roughly hourly regardless of what the cron says. Observed in
fleetcrown: sweeps ~50-65 minutes apart against a */10 schedule. A PAT-created
dispatch does emit workflow_run, so the queue drains at CI speed instead.

The reusable workflow has always supported this — GH_TOKEN is
`secrets.token || github.token`. This just passes it.

SAFE BEFORE THE SECRET EXISTS: an undefined secret resolves to empty, and the
fallback picks github.token. So this changes nothing until FLEET_PAT is created
as an organisation secret, and needs no second pass afterwards.


Claude-Session: https://claude.ai/code/session_01UvjGNAS9CMfEGNW26tUR4P

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-08 17:22:04 +00:00
9adc1a14ab docs(claude): select the deploy run by name, and verify the symlink not the run (#60)
The deployment-monitoring snippet matched a workflow run by SHA alone. A commit
now triggers three runs — CI, Deploy and Auto-merge — and a scheduled sweep can
be running against the same SHA, so `[0]` picks whichever registered first.

Today it picked the scheduled auto-merge sweep. `gh run watch` reported success
and I told the user a change was deployed while the real Deploy run was still in
progress and the box was still serving the previous release. It was caught only
because the page under test did not change; with a less visible change it would
have stood.

Two fixes, both moving from a wrapper to the state itself:

- Match on `.name=="Deploy"` as well as the SHA, and say so out loud when no
  Deploy run exists for the commit yet, rather than watching nothing.
- Check the release symlink — `/opt/<app>/app -> releases/<timestamp>-<sha>` —
  and require the short SHA to be the commit just pushed. A green run means a
  workflow finished; the symlink is what is actually being served.

Also states that a health check is not a feature check. It usually proves only
that the process is up, which is how a total AI outage once sat behind a 200.


Claude-Session: https://claude.ai/code/session_01HVwg8DKHQktxJuHeLM3xpG

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-04 04:57:25 -07:00
GandMao Nakamoto ee45d89a8e fix(ssh): keep the github.com connection alive through slow pre-push hooks (#59)
git push opens the SSH connection to github.com before running the
pre-push hook, then leaves it fully idle for the hook's entire duration.
Under heavy concurrent machine load, hooks routinely took long enough
that GitHub's idle-connection timeout closed the SSH session mid-hook —
the push then silently failed to transfer after printing "Safe to
push," with only a stray "Connection to github.com closed by remote
host." to explain it. Reproduced 4x in one session before diagnosing
via GIT_TRACE=1. ServerAliveInterval/CountMax keep the connection alive
during that idle window.

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
2026-08-29 10:08:03 +00:00
Mao NakamotoandClaude Sonnet 5 87d3203776 chore(claude): drop stale model pin from settings.json
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-29 08:48:22 +02:00
Mao Nakamoto 3b18df3928 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	.github/workflows/auto-merge-sweep.yml
#	.github/workflows/model-pins.yml
#	SHARED.md
#	scripts/ci/auto-merge-sweep.sh
#	scripts/ci/model-pin-audit.mjs
#	scripts/ci/shared-inventory.sh
#	scripts/ci/test-auto-merge-sweep.sh
#	scripts/ci/verify-floor-audit.sh
2026-08-29 07:18:40 +02:00
GandClaude Opus 5 1a0169710d chore: remove the forwarded sweep — every caller has migrated (#58)
The shim was a migration aid: it kept sixteen repos working unchanged while
they repointed from bitbaum/dotfiles to bitbaum/fleet. All sixteen have
migrated, so it now forwards nothing.

Verified before deleting, across all 38 org repos: 156 workflow files read,
0 unreadable, 0 remaining `uses:` references to dotfiles. "No hits" from a scan
that skipped files is not an answer, so the unread count is part of the check.

Removing it matters beyond tidiness. A shim that forwards nothing is a second
place the sweep appears to live, and the whole reason this policy is shared is
that copies drift — twenty-two of them once drifted into eight versions here.
This repo is the development environment again: shell, editor, tool config.


Claude-Session: https://claude.ai/code/session_01UvjGNAS9CMfEGNW26tUR4P

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-28 12:01:53 +00:00
GandClaude Opus 5 dd23dad70a chore: retire the maonakamoto handle (#57)
The account was renamed to `catomean` and the repos then moved to the
`bitbaum` org, so `maonakamoto` now names nothing: github.com/maonakamoto
and maonakamoto.github.io both return 404, and @maonakamoto no longer
resolves as a user.

Three different targets, because these are not the same reference:
  repo links  -> bitbaum/<repo>   (the repos live in the org)
  the person  -> catomean        (profile links, @mentions, CODEOWNERS)
  pages site  -> bitbaum.github.io

Deliberately NOT changed:
  .mailmap keeps the old noreply address as an ALIAS. It is what maps
  historical commits onto the current identity; deleting it would
  silently unmap them. Only the canonical side moved to catomean.
  Files that explain the outage by naming the old account keep it,
  since the name is the content.

Files: scripts/ci/find-false-needs.py


Claude-Session: https://claude.ai/code/session_01UvjGNAS9CMfEGNW26tUR4P

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-28 08:22:04 +00:00
91802e9d93 chore: fleet automation moves to bitbaum/fleet; this repo is the environment again (#56)
A repo holding a .bashrc was the wrong place for the machinery gating thirty
other repos: three sessions and the owner collided here in one week, and every
fleet change looked like an environment change. The audits, templates,
registry and sweep now live in bitbaum/fleet (layout unchanged, all six test
suites green there, secrets set, CI green).

Nothing breaks for callers:
- auto-merge-sweep.yml stays as a FORWARDING SHIM — the 16 repos calling it
  as a reusable workflow keep working; the shim maps the historic ref
  'master' to fleet's 'main' and holds no logic.
- SHARED.md stays as a pointer, because a decade of docs and habits say to
  check it here. The registry is maintained only in fleet.
- This repo's own auto-merge now calls fleet's sweep like every other repo.

CI slims to what this repo now is: shell syntax plus an install.sh
dangling-symlink check. CLAUDE.md and README describe the environment repo;
the global standards' pointers now name fleet/SHARED.md and
fleet/templates/ci.


Claude-Session: https://claude.ai/code/session_01AZCNYHwjEeqxNpYCUk6Yna

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-28 08:14:38 +00:00
86644a8945 docs(shared): aslan-tattoo is s-ink (sinktattoo.com) (#55)
* docs(shared): aslan-tattoo is s-ink (sinktattoo.com)

The repo renamed to bitbaum/s-ink and the site lives at sinktattoo.com; only
the local directory still carried the old name (now also renamed), which is
why surveys kept resurfacing it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AZCNYHwjEeqxNpYCUk6Yna

* docs(shared): sitekit install tag is v0.2.0

---------

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-28 08:06:02 +00:00
125560f75a chore(zellij): pin new tabs/panes to home directory (#54)
New tabs inherited the focused pane's cwd, so opening a tab while sitting
in dotfiles or a repo worktree started the new shell (and any agent
session in it) there too — how files meant for another project ended up
written into dotfiles. default_cwd pins new tabs/panes to $HOME so every
new tab starts neutral.

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-28 09:44:07 +02:00
7a8f14782e docs(shared): register sitekit — a website as data, extracted from substrata (#53)
Listed on day one with its proving consumer already converted, so it does not
become another extraction nobody wired up. Next adopters named: the three real
sites (camille, aslan-tattoo, wild-spirit) whose rebuild is the schema's test.


Claude-Session: https://claude.ai/code/session_01AZCNYHwjEeqxNpYCUk6Yna

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-28 07:24:15 +00:00
Mao Nakamoto c5a52bec5b chore(ci): GitHub owner catomean -> bitbaum 2026-08-28 07:20:58 +02:00
4a461571d9 chore: retire the dead agent runtime, and describe what this repo is now (#52)
CLAUDE.md called the PyQt beacon and dashboard "the core product". Neither
file has existed for months: the dashboard was deleted in 9717cf2 ("kill
dashboard") and claude-popup.py was renamed in 8fa7ea7. Every session opening
this repo was being briefed on a product that is gone, and told to test it
with a command that cannot run.

What was actually left behind pointed at ~/dev/cockpit, a directory that
stopped existing when that repo became fleetcrown:

- beacon.py exec'd ~/dev/cockpit/scripts/beacon.py            -> deleted
- lib.sh sourced ~/dev/cockpit/scripts/agent-hook-lib.sh      -> deleted
- notification.sh exec'd a fleetcrown-beacon bridge that is
  also gone, so the wired Notification hook failed every pause -> no-op,
  matching stop.sh, which has been a documented no-op since 2026-06-11

.bashrc carried the same rot, plus a duplicate-definition bug: claude() and
codex() were each defined twice, ~130 lines apart, so the first copy of each
never ran. Removed the dead copies, cockpit() (cd into the missing dir), and
the zellij-tab project detection — _agent_resolve_project_dir mapped the
focused tab name through claude-projects.conf and silently cd'd there, which
the global standards already declare retired. It was provably dead: tabs read
"Tab #9" and match nothing, and 5 of the conf's 22 entries pointed at
directories that no longer exist. Verified with --norc that the three removed
functions are gone and every live one still resolves.

The close_session prompt was the last consumer of that mapping, and the
reason a file literally named "Tab #1" is sitting in ~/.claude/sessions. It
now derives the project from the git repo root, so worktrees resolve to their
repo instead of the worktree name.

Gitignored fleetcrown-*.sh: Fleet Runner generates and rewrites them, so they
are FleetCrown's output, not this repo's source.

CLAUDE.md and README.md now say what is true — this is the environment plus
the fleet's central audits, and agent dispatch belongs to FleetCrown.


Claude-Session: https://claude.ai/code/session_01AZCNYHwjEeqxNpYCUk6Yna

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-27 19:36:51 +00:00
GandMao Nakamoto 0af7a31fbe Revert "docs: where the Site Factory lives, and the line it must not cross (#50)" (#51)
This reverts commit ba82c93b7b.

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
2026-08-27 18:39:53 +00:00
ba82c93b7b docs: where the Site Factory lives, and the line it must not cross (#50)
"Paste a link, get a better site plus a fundable OrangeCat entity" spans
three repos, so the split gets decided once here instead of in each PR.

The seam follows a boundary that already exists: substrata's site-as-data
schema becomes a shared package (the generator emits data against a closed
union, never .tsx against nothing), FleetCrown owns the prospect pipeline,
and OrangeCat keeps the claimable entity — because profile_claims is
already a draft that is not a live profile until its subject claims it.

That last point is also the safety property, for free: money can never be
routable to a business that has not accepted it, provided ingest writes to
the claims table and never to profiles.

On fake names — camille's own HANDOVER.md §4 already found, against a real
repo, that scraped-and-pseudonymised content is demo-only and cannot be
handed over. So real pitches use real names, marked as unsolicited mockups,
and fabricate no facts: a plausible-but-wrong street number is the one
detail that damages the business it is meant to win.


Claude-Session: https://claude.ai/code/session_01AZCNYHwjEeqxNpYCUk6Yna

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-27 18:13:27 +00:00
Mao Nakamoto 7faf0d72cb chore(ci): GitHub owner maonakamoto -> catomean 2026-08-27 19:25:29 +02:00
Mao Nakamoto 3f648900a7 chore(ci): GitHub owner maonakamoto -> catomean 2026-08-27 19:18:28 +02:00
Mao Nakamoto a59f9480a4 chore(ci): GitHub owner maonakamoto -> catomean 2026-08-27 19:14:40 +02:00
GandClaude Opus 5 5f16bc040e chore(shared): record what the outage actually cost, and lock the ratchet (#49)
Adoption of `ai-kit` went 2 -> 5 — fleetcrown, aoz-housing, truthseeker,
botsmann and this repo. All of it as a side effect of repairing the outage
rather than as a migration project, which is the only way adoption has ever
moved here.

Three repos deliberately did NOT adopt, and the reason is the same in each:
kivvi, orangecat and evig already own model REGISTRIES carrying context windows,
tool and vision support, and per-token cost — none of which `ai-kit` models.
Installing it beside one of those adds a second source of model truth to a repo
whose problem was having two. They were repaired in place and left pointing at
the daily audit. Merging a registry into `ai-kit` is a real design question and
belongs to a human, not to an outage.

The `AI provider client` row is re-priced. The first count said five repos and
six pins; it was seven repos, and inside a repo the id was written down two to
FOUR times. Kivvi needed three PRs to remove one retired id — provider registry,
an app's inline fetch body, the fallback chain, and a client hook's
`FALLBACK_MODEL` — because each pass only found the copies the tooling could
see. That is the cost of duplication measured rather than argued.

The audit row now says what it learned about itself. Repairing seven repos with
it exposed nine faults in both directions, and the blind spots were not random —
they mirrored the shapes people write (`GROQ_MODELS = {` defeats `\bmodels?\b`,
`models: AIModel[] = [` defeats an array pattern, `modelId` is not `model`). It
also read ids out of comments, reporting a retired id in the very commit that
removed it. The note that matters for whoever touches it next: never trust its
first clean run after widening — re-run the live sweep and read every line,
because tightening the matcher to kill a false positive silently deleted a real
finding once already.

Also: `--update` locks in rate-limit 14 -> 13. A ratchet that only ever gets
checked never falls, and this one fell on somebody's work.

Version bumped to v0.4.0, which is breaking: form filling moved off the root
export to `ai-kit/forms`.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-27 00:07:36 +00:00
GandClaude Opus 5 c45719fa7f fix(ci): read model maps, and stop reporting things that were never pins (#48)
Repairing six repos today was a live test of this audit, and it failed in both
directions at once: it missed retired ids in shapes it could not parse, and
reported ids that were never pins. Six faults, each found by acting on the
previous report and looking at what it pointed to.

MISSED — ids the audit could not see

1. Model MAPS. The walker only opened on `[`, and two repos keep their ids in
   object literals — on opposite sides of the colon. Hirnli:
   `{ '8b': 'llama-3.1-8b-instant' }`, ids as values. OrangeCat:
   `{ 'llama-3.3-70b-versatile': { contextWindow: ... } }`, ids as keys,
   including `DEFAULT_GROQ_MODEL` — the baseline every free non-BYOK user gets.
   Both registries were entirely retired and both read as clean.

2. `\bmodels?\b` does not match `GROQ_MODELS`. The underscore before it is a
   word character, so there is no boundary there — and almost every map in this
   fleet is named exactly that way. This was why (1) still found nothing after
   the walker was taught about braces.

3. `modelId` is not `model`. Kivvi's fallback is
   `const FALLBACK_MODEL: ModelSelection = { providerId: "groq", modelId: "..." }`
   — singular, so no collection walker covers it, and the single-id pattern was
   anchored on the bare word. Found only by re-running the live sweep after
   fix (4) and noticing a real finding had disappeared.

REPORTED — things that were never pins

4. `for (const model of models) {` opened a region over an entire loop body,
   so the request headers inside were read as ids and a `Content-Type:
   application/json` was reported as a retired Groq model. The opener now
   requires a declaration (`[:=]` right after the token) and a PLURAL token —
   `function supportsReasoningEffort(model: string): boolean {` is a
   declaration by the first rule alone, and its `startsWith("qwen/")` prefixes
   were being reported too.

5. The audit was reading ids out of COMMENTS. A model list is exactly where
   someone documents the id they just replaced, usually in backticks — so
   Kivvi's `// replaces `meta-llama/llama-3.2-3b-instruct:free`, retired` was
   reported as a live pin in the very commit that removed it. Comments are
   stripped from a region before extraction. An audit reporting on prose rather
   than code is the failure it exists to catch elsewhere.

6. Two misattributions, both "a true statement about the wrong vendor":

   - `gpt-4o-mini` under an `openai:` key was called a retired OPENROUTER
     model. It is not an OpenRouter id at all; there it would be
     `openai/gpt-4o-mini`. Nearest-marker-above found OpenRouter's base URL in
     the block before. A provider-keyed record now names its own rows via
     `keyMarker`, anchored to a line starting with the key and a colon —
     necessary, because bare `openai` appears inside `api.groq.com/openai/v1`.
   - `OLLAMA_MODEL=llama3.2` was called a retired Groq model. Ollama is now a
     listed non-queryable vendor, so its tags are attributed and reported
     unchecked. What the operator pulled locally is not a question Groq can
     answer.

Also: a size alias is not a model id. Reading maps turned Hirnli's
`{ '70b': ..., '8b': ... }` keys into findings — `70b` has a digit and no space,
so it looked like an id, and `8b` escaped only by being two characters long. A
vendor id always carries a separator: a slash, a hyphen or a dot. Nothing in
either live catalogue is a single unseparated word.

Net effect on the live sweep, across the same 34 repos:

  before this session   12 retired, 5 repos, several of them wrong
  after coverage (#47)  16 retired, and hirnli appeared for the first time
  now                    2 retired, both real, both in Kivvi

The intervening repairs account for most of the drop; this commit accounts for
the false ones. Every remaining line is a genuine retired id in a genuine call
path.

Self-test: 68 -> 102 checks, still no network, no key, no checkout. Every fixture
is the real code that fooled it — Hirnli's alias map, OrangeCat's registry and
provider record, Kivvi's typed array and fallback, the loop body, the comment.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-27 00:00:23 +00:00
GandClaude Opus 5 776afc3ff3 fix(ci): the audit was reporting a fraction and calling it a total (#47)
Kivvi has seven retired model ids. The audit reported two.

Understating a repo is worse than skipping one. A skipped repo is visibly
absent; an understated repo prints a number that reads like an answer, and the
five pins it left out were in `packages/ai` — Kivvi's actual provider chain.

Three independent causes, each found by chasing the previous one.

1. The AI word had to appear in the FILENAME. Kivvi keeps its provider clients
   side by side:

       packages/ai/src/providers/anthropic.ts   ← scanned
       packages/ai/src/providers/groq.ts        ← never opened
       packages/ai/src/providers/openrouter.ts  ← never opened
       packages/ai/src/providers/index.ts       ← never opened

   Two files in one directory, one seen and one not, decided entirely by which
   vendor names someone had typed into a regex. A directory called `ai/` counted
   for nothing. Path matching now looks at every segment below the source root,
   and the vendor list is no longer four names long.

   Matching is by TOKEN, never substring: `ai` is inside `mail`, `chain`,
   `domain`, `detail` and `maintenance`, and substring matching would have
   traded one blind spot for a flood that the file cap then drops real
   candidates to make room for. Tested in both directions.

2. Opening the files was not enough — nothing came out of them. `extractPins`
   matched `models` followed directly by `[`, and Kivvi writes

       models: AIModel[] = [

   where a TypeScript type annotation sits in between. The first `[` on that
   line belongs to `AIModel[]` and closes immediately, so the pattern read an
   empty array: a silent nothing, the worst output an audit can produce. The
   same regex also capped the array at 400 characters, losing later entries of
   any richly described list. Replaced with a bracket walker that has neither
   limit and reports each id's own line — which also improves attribution, since
   that is measured in lines from the pin.

3. The coverage ledger stopped being a caveat and became a finding: OrangeCat
   opened 90 of 133 candidates with 4 likely-AI files dropped, FleetCrown 90 of
   109 with 15 dropped. The two largest repos in the fleet, both partly blind.
   Cap raised 90 -> 160, which clears both with headroom. The ledger stays, so
   the next repo to outgrow it says so.

What the fleet actually looks like, before -> after: 12 retired pins -> 16, and
the composition changed more than the count. Newly visible:

  - hirnli — 2 dead pins, a repo that had never appeared in a report at all
  - orangecat:src/lib/ai/form-prefill-service.ts:23 — genuinely broken, and it
    is the repo this audit cleared as a false positive earlier today. It was
    right that the pricing-table string was not a pin, and wrong that the repo
    was fine.
  - kivvi packages/ai — 5 more, including a `google/gemini-2.0-flash-001` that
    no previous run had seen
  - evig src/lib/hirn/providers — 2 more

Every one of them was retired before this commit. None of them was new.

Self-test: 57 -> 76 checks, still no network, no key, no checkout. The fixtures
are the real paths and the real declaration, so this specific miss cannot come
back quietly.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-26 22:21:18 +00:00
GandClaude Opus 5 9591f022f8 fix(ci): the audit called a pricing table a retired model (#46)
OrangeCat has nothing wrong with it. It renders a tier comparison —

    models: ['Claude 3.5 Sonnet', 'GPT-4o', 'Gemini 2.0 Flash']

— human-readable copy that never reaches an API. Every entry but one carries
a space and was filtered out; `GPT-4o` was not, so it slipped the shape filter,
landed nearest an OpenRouter marker, and got announced as a retired pin.

That is the one failure a daily gate cannot afford. Six repos really are broken
by dead pins right now, and a report that puts a healthy repo alongside them
teaches the reader to skim — taking the real six with it. This fleet already has
that scar: gates that fail red on good code are what trained `--no-verify`.

The rule is measured, not guessed. On 2026-08-26 Groq listed 14 model ids and
OpenRouter 416, and not one of those 430 contained a capital letter. So an id
with a capital cannot be a RETIRED id at those vendors — it was never one of
their ids at all. "Retired" is the wrong diagnosis, not just the wrong target.

Such an id is reported as `unattributed` — listed, not judged. Never dropped.
For `GPT-4o` that bucket is also literally right: it IS an OpenAI product name,
and OpenAI is a vendor this audit does not query.

The rule stays where the evidence is. Together AI really does serve ids with
capitals (`meta-llama/Llama-3.3-70B-Instruct-Turbo-Free` is in this fleet), so
it applies only to the two catalogues that were counted, and a test pins that.

Live sweep before: 12 retired across 6 repos. After: 11 across 5, with OrangeCat
correctly absent and every other finding unchanged.

Self-test: 36 checks, no network, no key, no checkout. The new block asserts
both halves — the label is not called retired, AND the genuinely retired pin
sitting in the same file is still judged. Suppressing a false positive is only
worth doing if the true positive beside it survives.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-26 21:29:49 +00:00
GandClaude Opus 5 7821247b24 refactor(ci): adopt ai-kit, the package ai-ration became (#45)
`ai-ration` is now `ai-kit`, because the name described one of its five modules
and hid the rest — and the person deciding whether to install it could not tell
what it did. That is an adoption cost paid at every install decision, and this
is the package with ONE adopter whose absence took five repos down together on
2026-08-26.

The audit here was its second adopter, so it moves first. `AI_RATION_FROM` still
works and the old paths stay in the resolver list: a rename must not turn a
working daily audit into a silent exit 2 on the first machine that has not
caught up.

Installed from GitHub rather than npm because ai-kit v0.3.0 is tagged, built and
verified but not on the registry — the repo has no NPM_TOKEN, which needs an
account nobody here holds. Switch to `npm i ai-kit` once it does.

SHARED.md records WHY the merge stopped where it did: ai-kit absorbed ai-ration
and re-exports ai-forms, because to an app "which model do we call", "AI chat"
and "AI form fill" are one feature. threadkit and limitkit stay out — neither is
about AI, and an app throttling its login form should not install a model
catalogue to do it. Merge by what a consumer needs together, never by "these are
all shared utilities".

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-26 14:36:34 +02:00
GandClaude Opus 5 16ff335e5f fix(ci): a sweep that sees fewer repos must say so (#44)
The daily run inspected 32 repos; the same script run locally inspected 34. The
two missing were `go-to-market` and `lifeops` — private, and a workflow's
default GITHUB_TOKEN is scoped to its own repo, so `gh repo list` returns only
public ones.

Neither carries a model pin today, so nothing was actually missed. The problem
is the shape of the failure: a sweep that quietly sees fewer repos than it did
yesterday reports a CLEANER fleet, not a smaller one, and that is the same
false ✓ the self-test exists to prevent one layer down.

It cannot know the true count, but it can notice that not one private repo came
back — which means either there are none, or this token cannot see them. Both
are worth a line. Set GH_TOKEN to a PAT with repo scope to cover them.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-26 14:08:41 +02:00
GandClaude Opus 5 01aec5eff7 feat(ci): ask the vendor, daily, whether our model ids still exist (#43)
AOZ reported "KI-Assistent nicht konfiguriert. Bitte GROQ_API_KEY setzen" on a
deployment whose key was valid. Groq had retired the whole llama-3.x family and
the pinned id answered 404. Production had been failing exactly as long as the
demo and nobody knew, because "not configured" is the only thing the app can
say.

Six pins across five repos were dead the same morning — botsmann, evig, kivvi,
orangecat, truthseeker — three of them serving live traffic. None of it was
visible from inside a repo: every gate was green, because the code is correct
and the vendor changed underneath it. No lint rule, type check or unit test can
see this, which is exactly the gap the central audits exist to cover.

So this asks the only authority that knows. One GET /models per vendor, ZERO
tokens, which is what makes it schedulable — and "somebody is supposed to
remember" is the mechanism that already failed for eight days in ai-ration's
own consumer.

It calls ai-ration's checkCatalog rather than growing a second vendor query
here; the package takes the chain as an argument, so it generalised to
arbitrary ids with no change. That makes dotfiles its second adopter, which is
the medicine this file prescribes to everyone else.

Three findings survive as tests because the first live runs produced them:

  - xAI's `grok-3-mini` was filed under Groq — one letter apart, and xAI's URL
    sat 6 lines from the pin while Groq's sat 18. Attribution now follows the
    marker ABOVE the pin, since that is the branch that owns it, and vendors we
    cannot query still own their ids so they report UNCHECKED instead of being
    absorbed by the nearest vendor we can.
  - fleetcrown's computed `${link.provider.id}/${link.model}` was reported
    retired. An interpolated id is the absence of a pin.
  - botsmann's pin lives in lib/constants.ts, which no AI-shaped filename
    filter opens. Candidates are now two-tiered and ranked, and truncation is
    REPORTED — a bounded sweep that stays quiet about what it skipped reads
    exactly like one that found nothing.

An unreadable catalogue reports UNCHECKED, never GONE. Treating "I could not
look" as "nothing is there" would mark every pin retired and invent a
fleet-wide outage somebody then acts on.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-26 12:05:14 +00:00
GandClaude Opus 5 b03e5eca34 feat(fleet): reclaim the checkouts whose work already shipped (#42)
The fleet creates a git worktree per agent session and removes none of them.
On 2026-08-26 there were 24, holding 5.2 GB, and every single one belonged to a
PR that had already merged — 23 were byte-for-byte clean. That is a recurring
manual sweep, so it becomes a script rather than something re-derived from
scratch each time the disk gets tight.

stranded-work.sh and this are the two halves of one question. That one asks "is
any work trapped on this disk?"; this asks "is any checkout still here after its
work shipped?" They turn on the same distinction, too: an upstream that is
configured but no longer resolves means the branch was pushed and its remote
branch deleted. Reading that backwards is what made stranded-work report 24
merged PRs as stranded yesterday.

Because this one deletes checkouts, the entire design is the refusal list. A
worktree is removable only if it was PUSHED, is CLEAN, is UNUSED, and GitHub
says MERGED — and each of those is a case where removing it would have
destroyed the only copy of something:

  no upstream    the branch exists on exactly one disk
  any dirt       a worktree is where the unfinished edit lives
  live session   someone is working in it right now
  not MERGED     CLOSED is abandoned, not gone; empty is gh failing, not consent

The predicate is pure so all nine tests run without a repo, a network call or a
session, including "no argument means dry-run" — if that ever inverts, the first
person to run it bare loses every checkout.

Verified on the real fleet: 23 removed, 5.2 GB freed, the four it refused being
one never-pushed branch, one live session, one dirty tree, and one superseded
local branch.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-26 08:46:54 +00:00
GandClaude Opus 5 373bdce1dc chore(git): ignore generated scratch by family, not by instance (#41)
* chore(git): ignore agent worktrees globally — 2 repos were missed

`.claude/worktrees/` was added to 21 repos' .gitignore one at a time, plus 2
.git/info/exclude entries that no other checkout and no reviewer can see. Two
repos never got it: solon and ai-ration. Solon then sat in the stranded-work
report for five days over an empty directory.

That is precisely the case this file's own header describes — scratch that my
tooling creates in every repo I touch — and precisely the failure it predicts:
"18 diffs, 18 reviews, and a 19th repo that gets missed." One line here covers
both stragglers and every repo that does not exist yet.

The 21 existing .gitignore lines are left alone; they are redundant now but
harmless, and 21 PRs to delete a line each is the churn this avoids.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* chore(git): ignore the FleetCrown hook family, not one member of it

FleetCrown rewrites its hooks into .claude/hooks/ on every startup — the files
say so themselves. `fleetcrown-capture.sh` was ignored; `fleetcrown-session-end.sh`
appeared later and was not, leaving this tree dirty for ten days.

A permanently dirty tree is exactly where genuinely stranded work hides, which
is the whole premise of the guard two commits up. Match `fleetcrown-*.sh` so the
next generated hook is covered before it exists.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-26 00:30:23 +00:00
GandClaude Opus 5 0c2ce25508 fix(fleet): 24 of the 25 "stranded" locations were merged PRs (#40)
The guard shipped yesterday reported 25 stranded locations and 26 unpushed
commits, oldest 25 days. `gh pr list --state all` says MERGED for 24 of them.
Every single one.

The mechanism is the fleet's own happy path. An agent branches in a worktree,
pushes, opens a PR, it squash-merges, GitHub deletes the remote branch, and a
later `fetch --prune` drops the tracking ref. What survives is a local branch
whose `branch.<n>.merge` is still configured and no longer resolves.

`rev-parse @{u}` fails on that, so the old code took the same path as a branch
that was never pushed at all and fell through to origin/main — where the
pre-squash commit is unreachable by construction, because main received
different sha carrying the same content. The count could therefore never reach
zero. It was not a stale number; it was a permanent one.

Upstream GONE is the opposite fact from upstream ABSENT: it is proof the branch
DID leave the machine, which is precisely what puts it out of scope for a guard
whose stated job is finding work GitHub cannot see. So read the config with
for-each-ref and check whether the tracking ref resolves, instead of asking one
question that both states answer the same way.

Three tests pin it, including the must-still-fire half — never-pushed work and
work ahead of a live upstream both still count. Reverting the fix turns the
first of them red.

Fleet after: 6 locations, 1 unpushed commit.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-26 00:23:59 +00:00
GandClaude Opus 5 4c0e923789 feat(fleet): find work that is stranded, not work that is merely dirty (#39)
* chore(zellij): drop the hardcoded project-tab layout

Every login ran `zellij -l projects`, which loaded a hand-maintained
layout naming nine project tabs. That list is a copy of state that
already lives in ~/dev, so it drifted: two of its nine tabs pointed at
directories that no longer exist (openclaw, cockpit), and none pointed
at the repos actually being worked on. Startup reliably produced tabs
nobody wanted.

The layout's only other content was a default_tab_template that is
byte-for-byte zellij's compiled-in default (tab-bar / pane / status-bar,
verified via `zellij setup --dump-layout default`). So the file
contributed nothing but the stale list, and deleting it is the whole
fix — a bare `zellij` yields one tab whose cwd is inherited from the
launching terminal rather than hardcoded anywhere.

Fixes the class, not the instance: there is no longer a project list to
go stale. Open project tabs on demand instead.

* feat(fleet): flag work that has aged, not work that is merely dirty

This repo already had a fleet health check. It did not prevent the thing it
looks like it prevents: on 2026-08-24 orangecat held 118 uncommitted files
and fleetcrown 88, both untouched for ten days — a finished EntityType rename
and a finished publishing workstream, each existing on exactly one disk.
`git-health` had been reporting them accurately that entire time.

The design error is worth naming, because it is easy to repeat: DIRTY IS NOT
A DEFECT. Every tree is dirty while someone works in it, so a count that is
equally true at minute five and at day ten carries no signal. It gets read as
noise, and then it stops being read. Age is what separates work in progress
from work that is going nowhere.

So stranded-work.sh reports only what has aged past a threshold (default 3d)
and prints NOTHING when the fleet is healthy. The silence is the mechanism,
not manners: a check that speaks on every shell gets muted, and a muted check
is an absent one. It covers both uncommitted files and commits that were made
but never pushed — the second is how four of fleetcrown's commits hid, since
a tree can be clean and still be holding everything back.

It cannot run in CI: the work it looks for has never left the machine, so
GitHub cannot see it by construction. It runs from .bashrc instead, printing
the last scan from cache and refreshing in the background, so it never costs
a prompt. `fleet-stranded` runs it on demand.

The deciding half takes TSV on stdin and touches no git, no filesystem and no
clock, so the tests drive the shipped rule rather than a restatement of it —
the drift the existing ratchet test comments already worry about. Both
failure modes are tested, because either one kills it: it must go red on aged
work, and it must stay silent on a fresh tree.

Writing the tests first paid immediately — the rename case failed, because
the porcelain prefix was being stripped after the "old -> new" arrow was
resolved, which ate three characters of every renamed path. orangecat's
rename touched 18 deletions and a rename; the guard would have misread it.

17 tests, wired into CI.

* chore: ignore per-session agent worktrees

_claude_autoworktree_enter creates .claude/worktrees/<name> per session, so
every concurrent session leaves a permanently-untracked directory behind. That
is scratch, not source, and it makes `git status` read dirty forever — the
noise that let 206 genuinely stranded files hide across this fleet for ten
days.

Scoped to worktrees/ rather than all of .claude/, so tracked settings and
CLAUDE.md are unaffected. Matches what threadkit already does.

* chore(git): ignore agent browser scratch globally, not in 18 repos

`.playwright-mcp/` is written by the Playwright MCP server whenever an agent
drives a browser. It had appeared in 9 repos and left 2 permanently dirty.

The first fix was a .gitignore line in all 18 — 18 diffs, 18 reviews, and a
19th repo that gets missed next month. But no contributor without this setup
ever sees the path, so it was never the project's business. One line in the
global ignore covers every repo, including ones not created yet.

Matters because a permanently dirty tree is the noise that lets genuinely
stranded work hide — the thing scripts/fleet/stranded-work.sh exists to catch.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>

* fix(fleet): the stranded-work guard could not see worktrees

Shipped this morning to find work that never leaves the machine. It scanned
$FLEET_ROOT/*/ only — so it missed the place this fleet does most of its work.

Every agent session runs in a `git worktree` under .claude/worktrees/, and
those hold real branches. Measured tonight, hours after the guard went in:

    26 unpushed commits across 25 locations, oldest 25 days

...while `fleet-stranded` reported two dirty files in dotfiles and nothing
else. fleetcrown alone held 9 branches, none of them pushed to origin. The
guard was not merely incomplete; it was certifying a fleet that had almost a
month of work sitting on one disk.

That is the failure mode named in this file's own header — a check that gets
read as "all clear" when it means "I did not look there" — and I built it into
the fix for it. A blind spot shaped like the dominant workflow is worse than no
guard at all.

Worktrees now report as `repo/worktree-dir` with their OWN branch, and the main
checkout is not double-counted as one of its own worktrees. Three tests pin it,
including that last one; all three go red with the scan removed.

Found while auditing fleetcrown for code debt — the audit's biggest finding
turned out to be in the auditor.

---------

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-25 20:24:44 +00:00
GandClaude Fable 5 620a7a77b5 chore(shared): raise health-route baseline 8->9 for surf-your-life (#38)
surf-your-life gained app/api/health/route.ts (maonakamoto/surf-your-life#25):
the fleet deploy convention curls /api/health after every push and the app
never had the route, so its deploy verification could not close. No shared
health-route package exists yet to install instead — when it is extracted,
this count falls back with the others.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-21 04:15:06 +00:00
GandClaude Opus 5 de768dea62 docs(shared): register limitkit — the rate-limiting extraction this file promised (#37)
The registry gains its fourth package, and the 'next extraction' row it named
is now in motion rather than named: limitkit, extracted from the fleet's 12
hand-rolled rate limiters, fleetcrown converted as the proving consumer.

Listed on day one for the same reason threadkit was: a package with zero
adopters removes zero duplication, and the registry is where the next session
finds out adoption is unfinished. orangecat is called out as the next adopter
by name because it is the payoff case — its ADR-0002 ('Unify Rate Limiting
Modules', Proposed since January) becomes a 12-line Store adapter over its
existing Upstash client plus three deletions.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-20 14:00:15 +00:00
GandClaude Fable 5 5b5661927a fix(ci): the UI audit measured labels where the page paints boxes (#36)
Three false-positive classes from the live fleet sweep, each pinned by
fixtures on both sides (12/12 self-tests):

- A bare wrapper anchor around a styled button measured the wrapper's
  never-painted ink — surf-your-life's 'Konto erstellen' read 1:1
  against the button fill it never renders on. Wrappers whose label a
  nested action paints are skipped; the nested control is scanned in
  its own right.
- Disabled controls are dim BECAUSE they are disabled; WCAG exempts
  inactive controls, so they no longer bury real findings (their
  enabled twins still report).
- A row of padded buttons measured its glyph left, not its box edge:
  aoz-wohnen's flush hero CTA row read as a 16px ragged column. Rows
  whose leading element paints its own box are measured at the border
  edge. En route this exposed that the nested-group exemption compared
  line tops EXACTLY — two buttons one row apart by a 1px border read as
  a two-line group and were exempted wholesale; tops now compare with
  an 8px tolerance, and a genuinely offset button row is a fixture that
  must keep firing.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-20 13:30:00 +00:00
GandClaude Opus 5 8f0fc6dac0 chore(shared): lock in 9 -> 6 sweep copies, and withdraw a false extraction (#35)
The three conversions this locks in — fleetcrown, orangecat, sbb-lost-found —
were each verified to actually RUN the central sweep after merging, not merely
to have merged: fleetcrown and orangecat show the reusable job green with both
live sites healthy, and sbb's post-merge dispatch references
maonakamoto/dotfiles/.github/workflows/auto-merge-sweep.yml`@master` directly.
The first sbb run checked predated the merge and was still the old local copy —
which is exactly why 'the PR merged' is never the verification.

SHARED.md corrections in the same change:

  auto-merge row      22 -> 6, with the six named and each one's reason. A
                      number with no story reads as neglect; these are held
                      back deliberately (canonical home; trees owned by other
                      sessions).

  @ai-native-cms/core WITHDRAWN — measurement error, and worth recording
                      loudly: maonakamoto/revampit REDIRECTS to
                      maonakamoto/evig (renamed in the pivot), so the 'two
                      repos with byte-identical trees' were two clones of ONE
                      repo. Nothing to extract. Two directories are not two
                      repos; check git remote -v before reporting cross-repo
                      duplication.

  rate limiting       marked as the next extraction (14 files, zero app
                      coupling, four inside orangecat alone).

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-20 13:24:02 +00:00
GandClaude Opus 5 20f48eed54 test(ci): port orangecat's sweep coverage before its copy is deleted (#34)
orangecat is the last repo converting to the central sweep, and — like evig —
it turned out to be one of only two repos that ever wrote tests for it. Its
suite covered four things the canonical suite did not:

  - deferring while the base run is still in progress (without re-running it,
    which would CANCEL an in-flight run)
  - waiting when the newest base CI run belongs to an older commit — merging on
    that green would batch unverified commits, the exact thing one-car-per-sweep
    exists to prevent
  - THE RED-BASE CARVE-OUT, the most dangerous logic in the script: a PR green
    on every job the base fails may merge onto the red base, because its checks
    ran on the merge result. Three cases: full coverage merges, no coverage is
    refused, PARTIAL coverage is refused (covering some failing jobs is
    covering none — the uncovered one still lands broken).
  - a green base merging normally without ever consulting the carve-out

Ported here BEFORE the orangecat conversion deletes its copies, so no assertion
is ever lost between the two commits.

The harness grew optional per-case fixtures (base run status/headSha, the PR
list payload, the pr-view answer, the red-jobs list), each RESET on every call
so one case's fixture cannot leak into the next.

Mutation-proven: disabling the uncovered-jobs refusal turns exactly the two
refusal cases red while the merge case and the other fourteen stay green.

17 cases total, all green.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-08-20 12:35:51 +00:00
GandClaude Fable 5 5bf16cb34c fix(ci): a failed fetch is not a finding — the audit now withholds what it cannot see (#33)
Two defects in the auditor itself, both found by turning its own
discipline back on it:

1. Every remote read was `gh api ... 2>/dev/null`, and the empty string
   a failure yields was read as a FACT. One sweep produced four wrong
   verdicts: vitareba and aoz-housing (live Next.js apps) vanished as
   "not a JS repo"; ai-forms and fleetcrown were accused of never
   running `verify` when their ci.yml does exactly that. Fetches now
   return three states — fetched / genuinely absent (404) / could not
   look — and every caller withholds its verdict on the third instead
   of charging the repo. A 404 is an answer and is not retried; neither
   is an exhausted rate limit (seconds of backoff cannot outlive an
   hour-long window). Transient failures retry with backoff.

2. `⊗ UNCALLED` string-matched `npm run verify`, but the property that
   matters is weaker: every gate `verify` composes runs in CI,
   unsoftened. aoz-housing satisfies it by fanning the gates into
   parallel jobs — the rule was asking a conforming repo to serialize
   the fleet-slowest pipeline to please a regex. Decomposed wiring now
   reports as informational `≡ DECOMPOSED`; botsmann's shape (hand-copy
   with --if-present on every step) is still caught.

The transport lives in verify-predicates.sh so tests can stub `gh`:
29 cases cover both rules in both directions and all three fetch
states, and a mutation run (collapse `return 1` into `return 2`)
turns exactly the two relevant cases red. Post-fix sweep: 23 repos
inspected, 0 below floor, 3 fetch failures withheld instead of
reported as findings.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-20 12:33:27 +00:00
GandClaude Opus 5 2f9b26c22e fix(ci): the UI audit called correct markup broken, twice (#32)
Two false-positive classes, both found by checking findings against the
actual pages instead of trusting the count.

1. A nested GROUP is entitled to its own indent. datacat renders a card
   title, a description, an icon checklist, then a CTA back at the card
   edge — and the CTA returning to the base indent made the "does the
   column return?" test fire. A list between two peer lines is structure.
   Only peer LINES have to share a column.

   Measured VERTICALLY on purpose: a first attempt exempted any child
   with several children, which swallowed a row of chips — two spans side
   by side on ONE line — and blinded the audit to the exact fleetcrown
   stack it was written for. The self-test caught that immediately, which
   is the entire reason it pins the positive case too.

2. Centered, right-aligned and justified text starts at a different x per
   line BY DESIGN. Judging them for a "missing hanging indent" reported
   every centered paragraph in the fleet — petvity's two findings and
   datacat's were all `text-align: center`, i.e. working exactly as
   intended.

Net: the alignment half of the sweep drops to almost nothing, which is
the honest answer. The ragged-stack bug was real, and it was
fleetcrown's; it was not a fleet-wide epidemic, and reporting one as
though it were would have cost someone a day proving it was not.

Also registers both central audits in SHARED.md, so the next person
looking for a fleet-wide checker finds them before writing a third.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-16 18:59:19 +00:00