Repository navigation
Closed
Labels
Description
Parent
Auth: Clerk, companies and machine tokens on tier 0, spec §12 and §13.
What to build
The docs say what the code now does, everywhere at once. Each build ticket carried its own edits; this pass reads every surface end to end, closes the gaps between them, and leaves no sentence describing public hosting, minting, the bootstrap token, the operator's token or the pre-auth door.
Do
- Walk the Hit every surface list against the whole build and list, in the PR, what each entry found.
CONTEXT-MAP.md: every context and relationship line true (Companies in code; Auth → Companies; Serving imports Auth; Publishing → api with the machine token; Hosting's line); the Decisions paragraph naming the two new ADRs.- The five glossaries read as one vocabulary: no term defined twice, every Avoid current, every "not yet in code" or "once login lands" clause resolved,
docs/agents/domain.md's rules honoured. docs/product.md: § Companies, § Identity and access and § The operator against the slice (the in-and-out split stays the product's shape; sentences that say "today" or "not yet" say what is now true); the CI sentence in the future tense.README.md(Where it is today, the layout, Try it with sign-in mentioned),docs/DEVELOPMENT.mdend to end (pnpm dev, the keys, the seed,PATCHY_DEV_CLERK_USER_ID, the live tiers),AGENTS.md(Where to look if a doc an agent needs moved; the migrator count; the tests section), thepatchyskill and its onboarding reference read as a whole against the shipped CLI, with the lock hash refreshed; thepatchy-dev-loopskill;docs/SKILL_DISTRIBUTION.md.- ADRs: 0002 to 0006 and the two new ones still true; anything superseded is deleted, not kept.
grepthe tree for the retired concepts and symbols (self-service,token_mints,mint announcement,auto-mint,bootstrap,acct_,api_tokens,operator token,hasScope,scopes,pinned,Bootstrap Account,unlisted) and resolve every hit outside git history and the ADRs' Alternatives considered.minton its own stays a valid word: the poll mints a machine token andtoken.mintedis an event.
Surfaces
All of them; the PR says which entries changed something.
Done when
- The grep list above is empty outside the places named.
-
pnpm lint,pnpm typecheck,pnpm testpass (docs-only, but the API doc test and the lock hash are checked). - A fresh agent following
README.md,docs/DEVELOPMENT.mdand thepatchyskill canpnpm dev, sign in,patchy login, publish and open the page without reading an issue.
Decisions implemented
The whole spec, §13 in particular; docs/agents/domain.md (ADRs are current or gone).
Activity
docs(domain): reconcile the map after auth