Edit(*)/Write(*)/Read(*)/Glob(*)/Grep(*) now mean 'working directories only'
and Claude Code warns on every start; the bare Edit/Write/Read/Glob/Grep rules
already in the list grant every path, so the (*) copies are dead weight.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Gitea refuses SSH push mirrors and an HTTPS one needs a hand-minted GitLab
token. The laptop's GitLab key already pushes, and kits merges only happen
via the laptop bridge, so a user timer carries main (fast-forward only).
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Zellij sizes a session to its smallest attached client, so the 80x24
embedded panel pinned the kitty window: panes stopped resizing and a
second client's pink focus marker appeared on every pane.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
fleet drift.sh answers "is the same commit on the laptop, GitHub, Gitea and
the box?", but nothing ran it, so it changed nothing. It takes a minute, too
slow for SessionStart, so an hourly user timer (fleet-drift.timer) runs
scripts/fleet-drift-cache.sh into ~/.cache/fleet-drift.txt and the hook
only reads it, next to the agent list. A missing or stale (>3 h) cache is
said, never hidden. tests/session-start.test.sh (4 cases, mutation-checked)
runs in CI.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Do the work rather than describe obstacles; fast, high quality, shared
packages; "create website for <Name>" is one request ending in a link; one
private access code, never committed; client work private until agreed.
Claude-Session: https://claude.ai/code/session_01XpakL9C3TESU4H45fXMFfc
Co-authored-by: Claude <noreply@anthropic.com>
stop.sh had been a no-op since 2026-06-11. It now runs `<pm> run verify` when
the repo has a verify script and holds work not yet on the default branch
(dirty tree or unmerged HEAD), and exits 2 with the failing tail so the agent
fixes it before calling itself done.
Brakes, each tested: 130s timeout (under the 150s hook limit) lets the stop
through; at most 3 blocks per session; no node_modules / exit 127 = cannot
verify, not red; CLAUDE_STOP_VERIFY=0 or .claude/no-stop-verify opts out.
Passes are cached by tree fingerprint, so repeated stops verify once.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Removes the fleet auto-merge sweep caller (and wake chain where present);
checks run on pull requests only, not again after merging; a deploy that
waited for CI on main now deploys on push. The forge merge check
(forge/verify) verifies each PR on its merge result and merges it.
Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* docs(claude): token mapping lives in @theme on Tailwind 4
Most fleet repos are Tailwind 4 CSS-first with no tailwind.config.ts; the global design-token rule now names the @theme block as the mapping and keeps tailwind.config.ts for repos that still have one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD
* docs(claude): mark the global agent file as describing other repos
It is installed as ~/.claude/CLAUDE.md, so app/globals.css and
tailwind.config.ts name files in the product repo a session is in, not in
dotfiles. The fleet docs-truth gate reads this marker; retired names in the
file are still checked.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD
* docs(claude): stay inside the line budget
Fold the docs-truth marker onto the heading and tighten the token-mapping
sentence: the previous commits pushed .claude/CLAUDE.md three lines over the
302-line budget that this repo's CI enforces.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD
---------
Co-authored-by: Claude <noreply@anthropic.com>
* docs: point agents at fleet AGENTS.md
A cloud session has no ~/.claude/CLAUDE.md, so it never saw the org rules.
Those stay in bitbaum/fleet AGENTS.md (packages by default, searchkit,
chatkit, names, identity). This file only points there.
* docs: keep the global CLAUDE.md inside its line budget
The pointer at fleet AGENTS.md was two lines over the 302-line ratchet.
npm 11.11 trust 400s on every package: the registry now wants an array with
permissions. Bootstrapped 2026-10-02 with npm 12.2: sitekit, limitkit, chatkit,
design-tokens, paykit trusted; sitekit 0.3.1 then published from CI.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Two faults stacked in pre-tool-use.sh:
- The force-push alternation matched the flag letters anywhere after
"push", so a branch like fix/role-walk-findings was read as a force push.
The flag must now be its own token (space before, space or end after);
--force-with-lease is named explicitly.
- The warning sound was backgrounded with stdout still attached, so the
harness saw stdio go quiet mid-document and refused the WHOLE command
("stdio went quiet before end-of-stream") instead of asking. paplay now
goes to /dev/null.
Checked against 8 cases: three ordinary pushes with the flag letters inside
branch names pass; four real force pushes and a recursive delete still block.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The AI review ran with no time limit, and its prompts read git's stdin (the
ref list). From agent sessions, pushes stalled 5+ minutes and read as a frozen
shell. Now: review only for a person at a terminal (never when CLAUDECODE is
set), bounded by timeout (PRE_PUSH_REVIEW_TIMEOUT, default 60s), prompts read
/dev/tty. Also: a small diff on one ref no longer skips checks on the rest.
Tested with a fake claude that sleeps 600s: old hook hung until killed, new
hook returns in 0s (agent / no tty) and in 3s under a pty with a 3s limit.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
EnterWorktree(path=~/dev/<repo>/.claude/worktrees/<name>) from a session at ~
raises a 'permission-root relocation' prompt that the EnterWorktree allow rule
does not silence. A PermissionRequest hook approves exactly that shape (resolved
with realpath, so .. and symlinks cannot escape) and falls through to the
normal prompt for anything else. Tested in both directions, wired into CI.
Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* 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>
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>
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>
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>
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>
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>
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>
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>
* 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.
#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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
"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>
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>
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>