* Include shared chatkit in new app starters
* Format shared chat starter component
* chore(deps): raise shared package floors to published versions
Opened by bitbaum/fleet .github/workflows/internal-currency.yml.
The fleet's own packages ship features in MINORS, so
version-currency.mjs — which judges by major — reports nothing while
consumers drift. This is the instrument that sees it, and it opens
the fix rather than reporting it.
If this PR is red, that is the useful outcome: it names a repo that
cannot take the new version, which nothing else in the fleet would
have told us.
* test(template): select an available Chromium runtime
* style(template): format ChatKit release policy
---------
Co-authored-by: fleet-reconciler <fleet@bitbaum.invalid>
* Gate shared dependency promotion on consumer checks and a deployed canary
* Import workflow evidence helper in regression tests
* Keep artifact publication separate from consumer deployment evidence
* 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>
A deploy that commits refreshed snapshots back to the base moves the tip with
a commit nothing judges (a GITHUB_TOKEN push triggers no workflow). The sweep
then saw an unjudged tip, dispatched CI, that run committed another snapshot,
and the next sweep saw a newer unjudged tip: on bitbaum/bitbaum 2026-10-19 a
snapshot commit and a redeploy every ~6 minutes, each differing only in
map.json's generatedAt, and a green repair PR that could never merge.
When every commit between a completed run's sha and the tip was authored by
github-actions[bot], that run's verdict is the tip's, and the reconciler
treats the tip as deployed. Any other author still needs its own verdict.
Three new cases; 71 pass.
Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD
Co-authored-by: Claude <noreply@anthropic.com>
All 18 live sites in Loki's map check clean: no retired host or name, no
forbidden claim, no stale copyright, no dead same-site link. The last finding
(orangecat.ch/ecosystem naming sink.orangecat.ch) was database content, fixed
by orangecat#1350/#1352 and Loki 0118; orangecat#1353 stops that page freezing
until the next deploy.
Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD
Co-authored-by: Claude <noreply@anthropic.com>
After the cleanup PRs across the fleet, the sweep over all 60 repos finds
zero findings. With an empty baseline any new finding in any repo fails the
daily sweep, and the sweep's PR gate already blocks new ones.
Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD
Co-authored-by: Claude <noreply@anthropic.com>
The reconciler fixed homepages but only reported descriptions, so
bitbaum/bitbaum kept calling itself an "AI-first product studio" behind
FleetCrown — a forbidden claim and a retired name — with nobody able to edit
it. A description that is missing, names a retired form or makes a forbidden
claim is now replaced by whole sentences of that venture's "what" in Loki's
fleet map, the text the studio site already shows, provided the replacement is
itself clean. A description nobody faulted is never touched.
Also: AGENTS.md said the audit runs on every fleet PR; it has been daily since
#179.
Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD
Co-authored-by: Claude <noreply@anthropic.com>
Found by the orangecat and evig cleanups: NNN_name.sql and providers/[name].ts
are templates in instructions, and a heading 'Immediate (Next 30 Days)' was read
as Next.js 30. A [slug] segment under app/ or pages/ is still a real path.
Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD
Co-authored-by: Claude <noreply@anthropic.com>
* docs(agents): Loki is the execution plane, not engineering
The plane was renamed 2026-09-20 (orangecat src/config/ecosystem.ts
ECOSYSTEM_PILLARS); this sentence still carried the old label.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD
* feat(audits): hold every doc and every live page to what is true
Agents read README / CLAUDE.md / AGENTS.md / .claude/ before code and act on
them; visitors read pages rendered from components nobody greps. Both drifted
silently: one pass over nine repos on 2026-10-19 found a merge policy said to
live in a repo that no longer holds it, dozens of paths to deleted files,
scripts not in package.json, "Next 15 / TS 5.8 / Tailwind 3.3" in a repo on
16 / 6 / 4, and a retired host presented as production in forty files.
- docs-truth-audit.mjs: holds each repo's docs to its OWN tree — backticked
paths, relative links, `pnpm run X`, stack majors vs package.json, retired
names. Never judges prose; a line saying the thing is gone is history.
Modes: --dir (working tree), --repo, --repo --pr (only what a PR adds),
--sweep --check (every repo, ratcheted by docs-truth.baseline).
- auto-merge sweep: the docs gate. A PR that ADDS docs drift — including by
deleting a file a doc still names — is held with one comment per head
commit naming each line and the fix. Exit 2 (could not look) never holds a
merge. The sweep is the one workflow every repo calls, so this needs no
per-repo copy. DOCS_TRUTH=0 opts a repo out.
- live-claims-audit.mjs: fetches every live site in Loki's map (home + the
pages it links first) and flags retired names/hosts, forbidden claims, a
past copyright year and dead same-site links. Daily, ratcheted.
- repo-metadata-audit: a GitHub description may not carry a retired name or
a forbidden claim.
- registers/org.json gains forbiddenClaims; org-drift-audit.sh reads it, so
the document and served-page gates share one list.
- Workflows docs-truth.yml and live-claims.yml (daily); both test suites run
per-PR in ci.yml. AGENTS.md states the four gates once; README lists them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD
* feat(audits): fewer false positives, and homepages follow the register
docs-truth: a removal stated across a line break is history; `cd sub &&
pnpm run x` reads the sub-package; an example path (e.g. …) is not a claim;
a file that describes other repos by design (dotfiles' global CLAUDE.md)
opts its paths out with <!-- docs-truth: paths-elsewhere -->. All four came
from the first cleanup pass over the fleet.
repo-metadata: --fix writes a homepage the register already holds, and
repo-metadata.yml runs it daily with FLEET_PAT before the report — five
homepages were missing or wrong on 2026-10-19 and every fleet PR inherited
the red. Descriptions are prose and stay reported, never written.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD
* feat(docs-truth): a name kept on purpose is marked on its line
<!-- docs-truth: keep — why --> records a deliberate exception (a JWT issuer
that still carries a retired name because changing it signs everyone out)
instead of leaving it as drift the gate cannot tell apart from a mistake.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD
* fix(docs-truth): links in code spans are markup; /file links resolve under public/
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD
* docs(templates): AGENTS.md pointer names the local docs check
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PJkbo18cRNXtgPWZN2S9cD
* ci: judge live repo metadata on its own schedule, not per PR
The per-PR --check reads live GitHub state no PR can change; on 2026-10-19 it
was red on every fleet PR over five untouched repos, including the PR adding
the reconciler that repairs them. repo-metadata.yml (daily) fixes homepages
from the register, then reports; the unit test stays per-PR.
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>
A rename that is only remembered comes back in the next agent brief. These rows are what org-drift checks, and the sweep now also reads the auth doc the brief points at.
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>
Loki lets each project's owner choose how package updates arrive and holds
'ask me' updates with a hold label from a 15-minute timer. The sweep wakes on
CI completion, so a lockfile bump whose CI finished first could merge before
Loki held it. A 30-minute grace (two Loki passes) closes that race;
DEPENDABOT_GRACE_MINUTES=0 turns it off.
Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf
Co-authored-by: Claude <noreply@anthropic.com>
The ratchet counted chatkit's own Composer (src + committed dist) as four
chat composers and bip-kit's slug.ts as a slug helper, so extracting a
package read as more duplication. Fleet packages are now skipped the way the
app starter is, read from the derived register so a new package is excluded
the day it is registered; dist/ is excluded at the repo root too.
Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf
Co-authored-by: Claude <noreply@anthropic.com>
* fix(inventory): date-utils stops counting *-updates.ts; a rise names its files
The ratchet went red on 2026-10-14 with six concerns up and no way to tell
where. Two fixes:
- date-utils was unanchored, so with grep -i '(dates)\.ts' matched
ballot-updates.ts, auto-updates.ts and useActivityUpdates.ts. Anchor it to
a path segment.
- The baseline holds counts only, so a failure now prints every file the
rising concern counts (repo: path).
Tests cover both.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf
* test(inventory): match patterns with a here-string, not a pipe into grep -q
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M6u11m24oVkG98wAVbN7nf
---------
Co-authored-by: Claude <noreply@anthropic.com>
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>
GHSA-67mh-4wv8-2f99 reached the starter's lockfile through drizzle-kit's
@esbuild-kit loader and showed as a standing Dependabot alert here. An
override gives the loader esbuild ^0.25. The full template check now runs
drizzle-kit generate and fails when lib/db/schema.ts and drizzle/ disagree.
Claude-Session: https://claude.ai/code/session_01W7K2Gm5wcbfCi7THtmV1Hy
Co-authored-by: Claude <noreply@anthropic.com>
* templates/app: gitleaks allows NEXT_PUBLIC_* values, which every page prints
A kickoff writes the Loki widget token to .env.production; it is public by
design (data-fc-project in the HTML) and gitleaks' generic-api-key rule would
otherwise turn every seeded repo's secret scan red. Default rules stay on.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W7K2Gm5wcbfCi7THtmV1Hy
* templates/app: deploy.yml grants actions: read, as Loki's register shim does
On a private repo the shared deploy's CI gate cannot read Actions without it
and passes every deploy unverified.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01W7K2Gm5wcbfCi7THtmV1Hy
---------
Co-authored-by: Claude <noreply@anthropic.com>
A complete, tested Next.js 16 app — next-intl (en/de/fr, localePrefix
"always", parity test, Swiss spelling), better-auth accounts on Drizzle + pg
(email+password with verification, magic link via mail-kit, passkeys, TOTP
2FA, the shared bitbaum sign-in and OrangeCat as env-gated OIDC with
client_secret_post + PKCE, roles in the app's own users table), nonce CSP with
strict-dynamic and connect-src 'self', limitkit on every auth path keyed on the
proxy's hop, secrets sealed with ai-kit seal, ai-kit complete() example route,
own-model settings, bip-kit roadmap/changelog, /api/health asserting the app
can read its own tables, and CI/deploy/live-check/CodeQL/gitleaks/audit
workflows.
scripts/templates/render-app.sh fills the placeholders;
scripts/templates/test-app-template.sh holds the render to the fleet's own
judges (version-currency gapsFor, verify-floor predicates, cicd-hygiene audit)
on every PR, and the new app-template CI job installs it, runs verify and
drives sign-up/sign-in against a real Postgres.
STACK.md records the owner's 2026-10-11 sign-in decision: every app owns its
accounts and offers every method; it supersedes the 2026-09-11 federate-only
rule. SHARED.md and README point new products at templates/app. The
duplication ratchet skips the starter itself (the one canonical copy).
Claude-Session: https://claude.ai/code/session_01W7K2Gm5wcbfCi7THtmV1Hy
Co-authored-by: Claude <noreply@anthropic.com>
On orangecat (2026-10-07, 2 of 45 merges) GitHub never created CI's post-main
job: every real job was green, the run still concluded failure. The guard
refused every merge ('no failing job could be identified') and nothing re-ran
CI, so main sat un-deployed ~25 min until something unrelated did.
A failure with jobs listed and none failed is a non-verdict, like a failure
confined to 'Set up job': re-run it, bounded by MAX_RUN_ATTEMPTS. An empty
job list still is NOT treated as one (case 4: absence of evidence). The jq was
checked against the real stalled run (NO_FAILED_JOB), a real failure (its
steps) and an empty list (nothing). New case 2b, 61/61; mutation-proved.
Claude-Session: https://claude.ai/code/session_01Nx1u7uUWsgi3MagxbmQmPN
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>