* docs: map ecosystem knowledge and preserve cross-agent continuation * docs: record published continuation entry * docs: make the next continuation action explicit
27 KiB
For every agent
For the ecosystem map, visual second brain and cross-agent development handoff, start with the continuation record and the proposed experience. These point to the existing producers; they do not replace the registers or project profiles.
For multi-repository work, follow the repository completion procedure: keep one application active, close its declared scope with deployment and journey evidence, and report the exact remaining work if execution stops. A completed PR does not establish that the application's wider audit is complete.
Claude, Codex, Antigravity, Cursor, Grok, Loki, and anything else read this file. Do not keep a private copy of these facts. If a fact is not in a register, it is not true yet.
How docs stay current
A fact has one producer. A doc may point at the producer. A doc may not restate the fact. To change what something is called, or where it lives, edit the producer. The copies are the bug.
A fact that stopped being true is a row in registers/retired.json.
scripts/ci/org-drift-audit.sh fails when a public document still says it.
Deleting the sentence without adding the row means the next session writes it
back. Adding the row is the whole mechanism — do not special-case the sentence
in a repo.
Four gates hold the rest, mechanically, so no doc or page has to be trusted:
| What could go stale | Gate | When it bites |
|---|---|---|
| A doc names a path, link, script or stack major its own repo contradicts, or a retired name | scripts/ci/docs-truth-audit.mjs |
in the auto-merge sweep, on the PR about to merge: a PR may not ADD a finding (deleting a file a doc still names counts); daily over every repo, ratcheted |
| A public document contradicts the org register | scripts/ci/org-drift-audit.sh |
on org/retired register or checker changes, and daily |
| A served page carries a retired name, a forbidden claim, a past copyright year or a dead same-site link | scripts/ci/live-claims-audit.mjs |
daily over every live site in Loki's map, ratcheted |
| A GitHub homepage or description disagrees with the registers | scripts/ci/repo-metadata-audit.mjs |
daily (repo-metadata.yml): writes the homepage from Loki's apps.conf and a missing or faulted description from the fleet map's "what", then reports what is left |
A finding is fixed by correcting the claim, or by saying on that line that the
thing is gone ("removed", "retired", "there is no …") — a reader needs that
sentence anyway. A dated file (*-2026-07-13-*.md), CHANGELOG.md, content/
and anything under archive/ describe their date, not today, and are not
judged; a doc that has stopped being true and is worth keeping as history moves
to an archive/ directory. Forbidden claims are forbiddenClaims in
registers/org.json: one list, read by every gate above.
Each repo keeps a short AGENTS.md: the generated org-rules block
(templates/agent-rules.md, copied between fleet:rules markers by
scripts/packages/sync-agent-rules.mjs, a pull request per repo), then only
facts that exist only in that repo (how to run it, where the tests are).
CLAUDE.md is a pointer to AGENTS.md; no agent file gets its own essay of the
org, and none imports a personal ~/.claude file. scripts/ci/agent-files-audit.mjs
fails on a repo that starts without the shape and lists the ones still to fold.
Your context may be stale
Agent instruction files are read from the working tree, not from the remote. A checkout that has not pulled feeds you guidance frozen at whenever it last moved, and gives you no signal that this happened. Measured 2026-09-09: a session rediscovered a deploy-verification rule over a full day that had been committed five days earlier, and on the same day reported this file missing because the checkout sat on an older branch.
Before trusting instructions, and before reporting that a file does not exist:
git fetch -q && git log HEAD..origin/HEAD --oneline -- AGENTS.md CLAUDE.md .claude/
A working tree is evidence of one branch at one moment. origin is the fact.
What a local scan cannot see
grep in this shell is a function wrapping ugrep --ignore-files. It honours
.gitignore. Measured 2026-09-12 in orangecat: grep -rl SUPABASE_SERVICE_ROLE_KEY
found 1 file, command grep -rl found 18. Env files, build output and
.claude/worktrees/ are invisible to the first. A sweep that must not miss
anything uses command grep, git grep, or an explicit path.
A worktree is a subdirectory of the repo. A sweep that must not EDIT anything
outside your branch uses git grep -l, which reads the index and so cannot
reach another branch's checkout. find | xargs sed does not respect
.gitignore and will rewrite files on branches nobody is working on: ten
worktrees across four repos carried an uncommitted org rename for two weeks
that way, on branches whose own work had stopped days earlier.
Audits already avoid this by reading default branches over the API rather than disk. A local sweep has to choose the same scope deliberately.
Memory is read from the session's working directory
(~/.claude/projects/<slug>/memory/), so a lesson written in one repo is
invisible from every other. A fleet-wide lesson written into a project silo is
lost. That is the same bug as a private copy: put it where the readers are.
Producers
- Serve (port, process, host):
loki/scripts/hetzner/apps.conf. A hostname or a path in that file is not a display name. - Org facts (public name, unregistered, house address, host):
registers/org.json. - Tools we develop with (agent names):
registers/toolchain.json. The build stack (framework, ORM, package manager) isSTACK.md. - Display name, kind, who the work is for, and what the product IS: a Loki
project profile, published at
loki.orangecat.ch/api/fleet/register(the platform join) and/api/fleet/map(the venture list). A page that disagrees with it is a bug. See "The identity contract" below before writing any of it down a second time. - Repeating behavior: one package, one job. A package does not store names or hosts. Do not merge kits to make a wiki.
- Design:
@bitbaum/design-tokens. A site is data rendered bysitekit. - What an ENTITY is, and which types exist:
orangecat/src/config/entity-registry.ts. An entity is anything that can hold a wallet and is better for holding one — a test, not a list, so the list is open in principle and a new type earns its place by answering it. Every type there carrieswallet: { holds, why }, and__tests__/unit/config/entity-admission.test.tsenforces it. The same entity sits on three planes: OrangeCat is its economy, Solon its governance (its decisions can be put to a signed vote), Loki its execution (it can be worked on, built and shipped). Do not restate the list anywhere: three copies of it lived in orangecat's own agent-read docs, and all three had drifted — one namedorganization, which has never been a type.
Names agents must share
- Public name is Cato. Nothing here is registered.
- AOZ is AOZ. Do not revive an older label. A deploy path is not the name.
- hirnli is hirnli. A leftover slug in the serve file is not a second product.
- The agent name is Antigravity. Do not write Gemini.
- An
orangecat.chname is an address on the Hetzner box, not a product of OrangeCat. - GitHub Pages is not a host.
- Nothing is Live. Everything is beta — OrangeCat included.
liveinapps.confis a PROVISIONING fact: the process is served and Caddy has a vhost. It is not a release state, and rendering it as one is a claim nobody here can back. "Live" is reserved for something we would be comfortable releasing; today that is nothing, so the word appears on no public surface. This is the same column-misread asclient-apptwo fields over, which is why that one is published as Pilot and Concept rather than "client". A product that is served says beta; one that is served and unfinished says so in full: "Beta — running, not released". "N products run today" is fine — that is a claim about processes, not about readiness.
The identity contract
Six things are true of every product we ship, and a reader must be able to find all six: problem, solution, mission, vision, roadmap, changelog.
They already have a producer. Do not invent a second one. A Loki project
profile holds all six today: problem / solution / mission / vision are
canonical keys in loki: src/config/project-attrs.ts, the roadmap is the
goals table, the changelog is user_projects.dev_log. They are edited in the
project's Context tab and injected into every dispatch, so the agent building a
product and the page describing it read the same words — which is the entire
reason to keep one copy.
So: a product site RENDERS these, it does not author them. A ROADMAP in a
TypeScript literal is a copy, and it rots on schedule. Measured 2026-09-15:
orangecat's public changelog carried 13 entries, newest dated 2026-07-31, while
its main branch ran to PR #1039 on 2026-09-14. Loki's own /changelog is a
redirect(). bip-kit exists to render exactly these from markdown and has
eight adopters; seven of them use it for blogs only. aoz-begleitung is the one
repo doing it right, and is the pattern to copy.
A profile is not a page — it is the same fact on three surfaces. A product
has a Loki project (how it gets built), an OrangeCat profile (how it is funded
and found) and a Solon organisation (how it is governed). All three are joined
by repo slug and published at /api/fleet/register; the six themselves ride on
/api/fleet/map, which is what the audit reads. Of the 17 projects that have
shipped, on 2026-09-17: roadmap and changelog 0 missing (both were the worst
fields two days earlier), a Solon organisation missing on 12, an OrangeCat
profile on 9.
How the two remaining columns get filled. An OrangeCat profile is the
per-project publish button in Loki. A Solon organisation is a HANDOFF, not a
publish, and the difference is not a detail: founding one needs a signature from
the owner's own Bitcoin wallet, which Loki never holds. From a project page,
"Govern" opens solon.orangecat.ch/orgs/new pre-filled, carrying a short-lived
grant Loki signs for that owner's OrangeCat identity. Solon records the
organisation as governing the project only on that grant — never because the
names match, because founding is open to anyone and otherwise whoever founds
loki would appear here to govern Loki.
fleet: node scripts/ci/product-identity-audit.mjs # report
fleet: node scripts/ci/product-identity-audit.mjs --check # ratchet
The audit judges only mechanical claims — a field is empty, a profile is
absent — never whether prose is good, for the reason repo-metadata-audit.mjs
gives. It reports two things it deliberately does not count: generated
experiments still in the register, and projects that are not live anywhere.
It reads the map, not the register, and that is load-bearing. The register
takes status from apps.conf, which deliberately omits the handcrafted
4001-4004 services — so loki and orangecat, two of the three pillars, had no
row and every rule skipped them while they served the public internet. The map
resolves a project with a live URL and no hosting row as live.
Adding a field is one row in that audit's FIELDS table. Adding a seventh
thing is a conversation, not a commit.
No dead ends
A gate records; it never blocks. Anything that stops a person shows the way forward on the same screen. This is a product rule for all three planes and it has one statement, here; a repo's agent file may name its own instances and must point here for the rule.
What it means, concretely:
- A default carries its consequence, and one tap changes it. Solon's proposal form defaults to the cheapest category and states beside it what that commits the proposer to — electorate, bar, window — read from the table that binds them, never a paraphrase. Nobody is asked to choose before they can see what choosing means.
- A skip lands where the old path landed. Loki's interview before a kickoff asks five questions; every one is skippable and "Skip the rest" produces exactly the build the one-click button used to. An improvement to the path is never a new condition on it.
- An error state has a button, never a wall. If the interview's questions fail to load, "Skip to the build" is on the same card as the error.
- Context that arrives in a link survives the detours. A link carrying
?from=orangecat&entity_type=…&title=…keeps that context through sign-in and through/join, and lands on a form that already names the thing the person came about. Measured 2026-09-20: OrangeCat's "Govern it with Solon" button had sent exactly that query to Solon's dashboard for months, and nothing on the far side read it — a person who pressed the right button arrived somewhere that had forgotten why. - A rule that exists is a rule that can be changed in one tap. When CI finds a change to Solon's constitution with no decision behind it, it does not fail the job; it warns in the PR with a pre-filled ratification proposal. A rules change without a decision is a fact the record must show, not a build failure, and nobody should be stuck in CI over a governance question.
The test for a new gate: after it fires, can the person still get to what they came for without leaving the screen, and does the record still say what happened? If either answer is no, it is not a gate — it is a dead end, and it is a bug.
One shape per kind
The owner's words, 2026-10-19 (Loki) and 2026-10-21 (OrangeCat's payment screens): "Frankenstein elements … not aligned, look different, asymmetrical, with labels that don't say anything … I spend too much time going through the pages and telling you the same stuff." This is that stuff, stated once. It is a product rule for every plane; a repo's agent file names its own instances and gates and points here for the rule.
Things of the same kind look the same, sit in the same place and are the same size. Everything on a screen is there because the person came for it.
- Siblings share one frame. Tabs of one surface have the same title shape, the same one line under it, the same content width. Not an icon beside two titles and none beside the third.
- Rows of one list have one anatomy. Name, the detail under it, one action on the right, the same size on every row. Adding is the last row, not a button somewhere else.
- Actions that belong together are equal cells in one row. Two buttons
→
grid-cols-2. Never a wide one beside a narrow one. - A row of choices is one row. Pick one of a few → a segmented control. A few suggestions → an even grid. Many → one line that scrolls sideways. On/off settings → one per row, in a list. Never pills in a wrapping box: they break into "4 + 1 orphan" wherever the words run out.
- One primary action per screen, and it is monochrome inside the app. The warm accent is for public, top-of-funnel surfaces only. A disabled accent button is a washed-out orange slab; a disabled monochrome one reads as "not yet".
- Every label says what happens when it is tapped. A button is a verb. Text that looks like a button and is not ("Where this goes") is removed or made a button. "(optional)" is not a label: closed-until-wanted is a button that says "Add a note".
- An icon promises the screen. A QR icon in the navigation opens on a QR. A camera icon opens a camera. If the screen cannot deliver what the icon says, change one of them.
- Phone first. 390px wide with no sideways scroll, every target 44px, the committing action reachable without scrolling past what the person came for.
Before a screen ships, in this order, every time: look at it at 390px; put it beside its siblings and compare frame, button variant and row anatomy; read every label aloud; count the primary buttons (one); run the repo's design gates. Then ask the question the owner will ask — is any element here a Frankenstein element — and fix it before the PR, not after he says so.
Each repo keeps the gates that catch its own instances (OrangeCat:
check:choice-rows, check:accent-ink, check:type-scale; Loki:
scripts/test/choice-rows.ts, design:check). A rule with no gate behind it
is a rule that gets re-explained.
The experience belongs to the package
The owner's words, 2026-11-06: "when I say develop some app and it creates a
field where people are expected to enter something and the field doesn't have a
microphone or an AI extension, and it creates a navigation, header or footer
totally different from all the great things we have created … if it is using
packages and the UI/UX looks different, for the users it is the same as not
using packages. They are not getting the experience we determined to be great."
He is right, and the measurement agrees: every product installs the shared
packages, and the screens people touch are still built per app
(scripts/ci/experience-audit.mjs, numbers in SHARED.md → "The experience
standard").
A package ships the experience, not only the logic. Behaviour and the layout
skeleton — what is on the screen, in what order, at what size, what a tap does,
what happens when it fails — live in the package's component. The app owns what
it is called, what it says, what its backend does and how it looks (colour,
type, radius, through @bitbaum/design-tokens and the package's own
--ck-* / --wk-* variables). Brand is a theme; behaviour is not one.
The standard, each line already built:
- Anywhere a person types words, there is a microphone (
@bitbaum/chatkit:Composerfor a conversation,DictationFieldfor any other text box). Long text also offers "improve this" (the same field,onImprove). - Writing an article is
@bitbaum/writingkit/react: speak it, improve it, add a photo or a chart, preview, publish, and the page the reader gets. - A conversation under anything is
CommentThread(chatkit): oldest first, the same box with the mic, removable by its author. - Header, menu, tab bar, footer and the row of actions on an item are sitekit. An app supplies destinations and labels, never the markup.
- A new product starts at zero: the app template's
package-plan.jsonsets"experience": { "ceiling": {} }, andpackage-composition.ymlfails a pull request that adds a bare text box, its own header, a composer, a comment list or an article editor of its own.
Extending the package is the work, not a detour. When a product needs
something the component cannot do, add the slot or the prop to the package, with
its test, release it, and consume the release — in the same session. Writing the
local version "for now" is how the fleet got thirteen chats and, in November
2026, two article composers and two comment systems built in one week. If a
file really must be the exception (a code editor where dictation would corrupt
the text), its first line says so: // experience-exempt: <reason>; the reason
is the review.
The measured state, what is done and the exact next step are in
docs/experience-standard-plan.md. A session that picks this work up reads it
first and updates it last.
Packages
Before implementation, make a package composition plan. Read SHARED.md
and registers/product-building-blocks.json; inspect the relevant package APIs,
then record each applicable block, its actual import/runtime binding, and any
specific incompatibility in the product's package-plan.json. Do this without
waiting for the owner to name packages. Installed-but-unused is not adoption.
The starter already carries the plan and the shared composition CI check.
Shared UI is composed from the package's components and theme/slot contracts: sitekit for chrome and public entry blocks, accountkit for accounts, bip-kit for publishing, and design-tokens for the visual system. Keep product content, identity and domain-specific investigation/workflow code in the product. Extend an existing package when a shared block lacks a needed capability; consume the release rather than copying its implementation locally.
A shared improvement reaches consumers through a versioned release, dependency update PR, tests and redeployment. Keep that path configured. Do not promise that changing a package changes a running, locked deployment instantly.
Use a package when the same behavior must exist in more than one product: tokens, mail, threads, a model client, a list query. Do not put a company list in a package.
If a package already does it, use it. It is written and tested; writing it again is more code to keep and a second answer that drifts from the first. Discretion stays — where a package genuinely does not fit, do not force it — but not using it is the exception, so say why in one line where you chose otherwise. "It was quicker to write" is not a reason; "this list is five fixed options" is. Do not add auth, ai-kit, or bip-kit unless the page needs a signed-in user, a model, or a public changelog.
A page that types the portfolio is a copy. Generate it, or do not ship it.
Extract before the second copy. When a second product needs what another product built in-house (Solon's map of places and Substrata's globe are the case that set this rule, on 2026-10-30: two renderers of one geography), the work is to make it a package, or to extend the package closest to it, and adopt it in both. Building the second copy and extracting "later" is how the fleet got thirteen chats.
A gap is a task, not an answer
The owner should never have to read "not supported", "not available" or "missing" as the end of a piece of work. Each one is a task with a way through: another format or publisher, an official tool whose answers can be measured (the federal tax calculator taught Solon rounding no export states), a model extended to a case it could not express, a package extended. Do it in the same piece of work where it fits, and otherwise record the plan where the product's roadmap lives and say which step comes next. This does not lift "Nothing made up": a gap is closed with sourced data or left visibly open, never filled with a guess.
Search
A search box uses @bitbaum/searchkit (SHARED.md) by default, per the rule
above. A bare .includes(q) or ILIKE '%q%' loses a name to one wrong
letter — the SoundCloud failure. Skip it where typing is not searching (an
exact id, a postcode, a filter over a handful of fixed options) and say so.
Fix matching and ranking in the package, not in an app, and keep its
generated typo suite (typoCases + evaluate) in the app's tests.
Chats
Every chat is @bitbaum/chatkit; fix chat bugs there, never in an app. The
checklist it enforces is SHARED.md → "Chat — the standard".
Authentication and accounts
@bitbaum/accountkit owns shared authentication behavior: registration,
password login and recovery, verification, magic links, passkeys, TOTP,
sessions, social/OIDC adapters, account linking, and shared screens/runtime.
Fix a cross-product auth defect in accountkit, add the regression test there,
release it through the verified package path, and update consumers. Do not
repair shared auth by forking handlers, tables, mail flows or screens in an
app. Products keep their own role and tenant policy, legacy identity mapping,
provider configuration and domain-specific authorization; preserve those at
the app adapter and prove parity before changing them.
Repos you create
The fleet creates repos automatically now — Loki provisions one per
project, and agents scaffold sites to test that path. Six appeared in two days
in September 2026, none registered in apps.conf, and together they were 15 of
the 26 gaps that were about to turn the version-currency ratchet red against a
committed baseline of 0. Nothing was wrong with any single one of them. A
ratchet does not die disputed, it dies drowned: a gate whose number is mostly
noise gets muted, and every true finding inside it is muted with it.
Remove a throwaway experiment in the same session that created it, including
its repository. Do not archive it or leave it private as a substitute for removal.
Per-site teardown is loki: scripts/hetzner/retire-site.sh, which also
owns the Caddy vhost and the apps.conf row. None of that is restated here.
What is here is the backstop, because that rule covers the session that creates a repo and nothing covers the session that dies, is interrupted, or forgets — which is how all six survived. So when you create a throwaway repo:
- Mark it at birth with the GitHub topic
fleet-ephemeral. On the repo, not in a list somebody has to remember to update — then a later sweep can find it without anyone having to recognise the name. - Say so in the description too, for the human who meets it first.
- Do not give it a homepage, an
apps.confrow, or a domain. If it becomes real, drop the topic; that is the promotion.
Marking is insurance against your own cleanup not happening. It costs one flag at creation and it is the only reason an abandoned experiment is findable later:
fleet: scripts/local/prune-ephemeral-repos.sh # list, read-only
fleet: scripts/local/prune-ephemeral-repos.sh --delete --yes # the intended action
fleet: scripts/local/prune-ephemeral-repos.sh --mark <repo> # backfill an existing one
The pruner refuses to touch anything that is not marked — "it is obviously a test repo" is the reasoning that eventually deletes something real.
Shared-package updates must pass the central staged rollout gate before merging,
including owner/agent PRs: run node scripts/ci/package-rollout-gate.mjs owner/repo PR.
Do not manually merge around a hold. See docs/package-rollouts.md for exact
artifact evidence, observation, blocked versions and recovery. Fix the upstream
package with a regression test and check the affected consumer journey.
For every pull request, use the Fleet auto-merge sweep as the merge authority.
Do not use GitHub's direct merge API, its built-in --auto merge, or a manual
merge click: those paths can bypass the sweep's docs, CI-freshness and package
rollout gates when repository branch protection is absent. A green workflow is
necessary but is not by itself authorization to merge. If the sweep or a
required check is unavailable, leave the pull request open and record the
blocker.