17 Commits
Author SHA1 Message Date
CatoandClaude Opus 5.5 e66f28565c chore(ci): one check per change — remove the sweep from templates and new repos (#570)
* chore(ci): one check per change — no sweep in templates or new repos, checks on PRs only

- templates: no auto-merge.yml (ci, app, package, app-repo); CI templates run
  on pull_request only; new app repos are seeded with a README instead of the
  sweep caller (test updated); package template no longer requires the caller.
- fleet's own auto-merge caller and Wake sweeps removed; its CI runs on PRs.
- AGENTS.md: the forge merge check (forge/verify) is the merge authority, with
  the rule it enforces and why; the gates still to move out of the sweep named.

Context: Aug–Nov 2026 GitHub runs went ~100 → ~2,100/day, mostly sweeps on
timers that found nothing; 96 workflows were disabled on 2026-11-19. This
removes the source so the pattern cannot come back with new repos.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>

* chore(agent-rules): the forge merge check is the only merge path

The synced rule block every repo carries said the auto-merge sweep was the
only merge path; it now names forge/verify, matching AGENTS.md. Test updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>

---------

Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 20:39:13 +01:00
CatoandClaude Opus 5.5 51196468ef fix(packages): releases reach the fleet once tagged; a merge of main no longer freezes a bump PR (#536)
* fix(packages): tell the fleet about a release once its tag exists

release-notify.yml asks on CI completion, but a version bump merged by pull
request is tagged by git-release.yml seconds later, so the notice found no tag
and stood down. Publish cannot repeat it (GITHUB_TOKEN runs chain no further).
ai-kit 1.26-1.28 reached consumers only on the six-hourly schedule. A new
template workflow, release-notify-tagged.yml, asks again when the tag workflow
completes; the template sync adds it to every package repo. Its step is
release-notify.yml's, held equal by the test.

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

* fix(currency): a merge of main into the bump branch is not a repair

Any non-bot commit on fleet/internal-currency counted as a person's repair,
so the updater preserved it and stopped refreshing the pull request. A plain
"Merge branch 'main'" commit carries nothing a fresh branch from main lacks;
once main moved on, evig#682 and solon#398 sat in conflict since 6-10 Nov and
both apps stayed behind. Such a merge (two parents, the default branch, the
merge subjects git and GitHub write) is now replaceable; any other merge or
commit is still preserved, and a branch with no bump commit is not the bot's.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-14 10:15:38 +01:00
CatoandClaude da961698b6 fix(packages): rename-package edits specifiers and plan entries only; plan status updated (#516)
JSON data, generated and snapshot files and a mirrored site-template are never
rewritten (a first pass broke loki's catalogue tests, bitbaum's site build and
causius's translated copy). Status table brought to 2026-11-10.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-10 11:36:18 +01:00
CatoandClaude Sonnet 5.5 cfb5d6b5a0 fix(packages): rename-package leaves comments and globbed workspaces alone (#511)
* fix(packages): rename-package leaves backticked names in comments alone and adds release-age exclusions only for names it renamed

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvpWNTLxXNfwUHS7MD

* fix(packages): rename-package skips a workspace that already globs @bitbaum/*

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019MDtmvpWNTLxXNfwUHS7MD

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-10 09:17:04 +01:00
CatoandClaude 0b9b94e1f3 feat(packages): rename-package codemod for the @bitbaum scope move, with a self-test (#495)
Dry run by default; renames specifiers and dependency keys only, never prose,
lockfiles or changelogs (docs/package-scope-migration-plan.md, step 3). Status
table records what is published.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-06 14:04:11 +01:00
CatoandClaude Opus 5.5 0ce7fac79e fix(repos): the existence probe captures gh's stderr, where the 404 is (#380)
* fix(repos): the existence probe captures gh's stderr, where the 404 is

repoExists ran `gh api repos/bitbaum/<name>` with stderr inherited, so
error.stderr was empty and the 404 that means "missing" never reached
the check: every missing repo read as "could not determine whether it
exists" and the run failed closed. Package repos never hit it because
every declared one already existed; App repos hit it on its first run
(bitbaum/signin, run 41126518242: "gh: Not Found (HTTP 404)" in the log,
then the error).

The probe now asks for stderr to be piped, and a test pins that.

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

* fix(repos): App repos re-runs when the shared probe it imports changes

create-app-repos.mjs imports repoExists and toCreate from
scripts/packages/create-package-repos.mjs, so a fix there (this PR's)
must re-run App repos too.

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-30 21:56:18 +01:00
Cato c2868a59a0 fix(release): handle ignored tracked and absent build output safely (#348) 2026-10-29 01:35:54 +01:00
Cato 9a57486a37 feat(agents): one org-rules block in every repo's AGENTS.md, generated here, plus an audit (#315)
* feat(agents): one org-rules block in every repo's AGENTS.md, generated here, with an audit that fails a repo that starts without it

Problem: the org rules were restated by hand in CLAUDE.md essays (aoz-begleitung 1,850 lines), AGENTS.md intros and three differently worded starter templates; the starter said accounts are the app's own above a rule saying accountkit owns them. Nothing checked any of it, and 18 agent files import a personal ~/.claude file.

Change: templates/agent-rules.md is the only place the rules are written. sync-agent-rules.mjs opens one pull request per code repo putting it between fleet:rules markers (and a CLAUDE.md pointer where there is no CLAUDE.md; an existing CLAUDE.md is never rewritten). agent-files-audit.mjs fails on a finding not in agent-files.baseline; a baselined finding that has been fixed, or a block that is merely out of date, never fails it (the org-drift ratchet went red twice on 26 Oct because a file in another repo improved). All three templates carry the block and a test pins that. Own workflow, so a finding in another repo cannot hold this repo's merges.

Validation: 27 + 4 + 3 self-tests pass; the audit read 46 repositories and found 77 findings, all baselined; docs-truth-audit reports the same result on solon, petvity, aoz-begleitung and skif with and without the block.

* fix(agents): blank lines around the markers so prettier-checked repos accept the block
2026-10-28 02:43:34 +01:00
Cato 110bf923b3 fix(packages): fail closed on repository lookup errors (#288) 2026-10-27 12:11:17 +00:00
Catoandgithub-actions[bot] 6efb8328d1 fix(packages): reconcile repository auto-merge settings (#286)
* fix(packages): reconcile repository auto-merge settings

* fix(packages): align head-branch cleanup settings

* fix(ci): trigger checks when refreshing PR branches

* fix(packages): report only missing repo settings

* ci: schedule org-wide drift audit

* docs: clarify package merge settings

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-27 12:07:33 +00:00
Cato 7ac3e6deb5 fix(releases): refresh registry and consumers after verified releases (#247) 2026-10-26 18:07:18 +00:00
Cato 2073805859 fix(sync): update template PRs without organization queries (#245) 2026-10-26 16:44:25 +00:00
Cato 9b131cfe26 fix(scaffolding): include shared ownership guidance in package repos (#242) 2026-10-26 10:52:02 +00:00
Cato cdc3a95762 fix(packages): reconcile verified Git releases and validate canary bindings (#200) 2026-10-25 09:29:50 +01:00
CatoandClaude Fable 5.1 f3400728bb feat(packages): declare chartkit, the fleet's chart package (#190)
* feat(packages): declare chartkit, the fleet's chart package

Source is bitbaum/substrata packages/chartkit, where it is built and first
adopted (series charts). Declaring it here creates bitbaum/chartkit once the
source lands on substrata's main; until then this stays a draft.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

* feat(packages): install Chromium before a package's verify when it drives a browser

chartkit's verify runs a label audit in Chromium; the generator and the
template CI ran verify after a bare pnpm install, so the repo would have
been refused for a missing browser. Keyed on the playwright devDependency.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-23 11:14:33 +02:00
CatoandClaude e821c5058d feat(packages): release a package version from one button, and carry new template files to existing repos (#176)
templates/package gains release.yml: workflow_dispatch with bump
(patch|minor|major) or an exact version. It refuses unless main's CI
finished green on the commit it starts from, raises package.json with
`npm version --no-git-tag-version`, runs the package's own verify
(rebuilding the committed dist/), commits "release vX.Y.Z", tags it,
pushes both atomically with FLEET_PAT (a GITHUB_TOKEN push starts no
workflow, so publish.yml would never fire on the tag), and writes a
GitHub release with generated notes. Loki's package page starts it.

Existing package repos never received files added to the template after
they were created. scripts/packages/sync-package-template.mjs offers each
declared repo the template files it lacks as one non-draft pull request
on fleet/template-sync — never overwriting a file the repo has, never
pushing the same content twice, and never reopening a set a person
closed. package-repos.yml runs it after creation.

create-package-repos.mjs now exports templateFiles()/checkTemplate(), and
both scripts refuse a template missing a required file (release.yml
included). CI checks the template's workflows parse with valid shell and
runs the new self-test.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-14 03:50:07 -07:00
CatoandClaude 011106513d feat(packages): a package repo is created by declaring it (#170)
registers/package-repos.json lists the package repos that must exist. On
merge (and daily as a retry) .github/workflows/package-repos.yml creates
each missing one with FLEET_PAT: it copies the declared source folder,
makes it standalone from templates/package (CI, auto-merge, publish,
Dependabot, licence), runs the package's own verify, and only then creates
bitbaum/<name> and tags v<version>. An existing repo is never touched.

An agent session's GitHub integration may not create org repos, which kept
searchkit inside orangecat's packages/ folder: consumers pinned to commits,
no Dependabot, every release hand-edited into five lockfiles. The first
declaration is searchkit.

The self-test pins the refusals (bad names, a path that escapes its repo,
a package with no verify or no version) and that existing repos are never
targets. Rehearsed locally: the standalone searchkit installs, passes its
own 32 tests, and builds a byte-identical dist/.


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

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-14 01:17:27 -07:00