Commit Graph
10 Commits
Author SHA1 Message Date
Cato 53eee511ce 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.
2026-10-28 02:37:32 +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