Skip to content

docs(product): define identity and access (#19) - #96

Merged
allisonmahmood merged 1 commit into
mainfrom
docs/identity-and-access
Sep 1, 2026
Merged

allisonmahmood merged 1 commit into
mainfrom
docs/identity-and-access

Conversation

@allisonmahmood

Copy link
Copy Markdown
Owner

What changed

Patchy Cloud had patches, tiers and companies written down, but not how a person gets in or what they may reach once they are: the "log in once, every link you have access to just opens" promise was a sentence, not a design.

This adds the Identity and access section to docs/product.md: Clerk holds who a person is (Google, Microsoft or an emailed code — no passwords; company SSO self-served by the admin, enforced on a verified domain, paid); invite as the default way in, a verified domain as the opt-in auto-join; the hard one-company rule and what it refuses; two roles — member and admin — and everyone builds; owner-only editing with admins seeing everything; inside-the-company or public, nothing between; what the wrong person sees (login door / ask the owner + request access / no such patch); and patchy login — a device login where the person confirms the code in a signed-in browser and names the machine, yielding one machine token per machine, shared by every agent on it, Patchy's own, 90 days absolute / 30 idle, listed and revoked on Your machines. Self-service minting retires with it. The who's-who glossary closes the "operator" collision: the CLI's agent is its driver; operator stays Patchy.

Glossary entries land in the Auth CONTEXT.md (member, session, invite, verified domain, SSO, device login, machine token, your machines, operator; self-service token and revocation updated), the Publishing CONTEXT.md (driver, agent, login handoff; auto-mint marked retiring), the Patches CONTEXT.md (owner), and the Serving CONTEXT.md (reader vs viewer).

Resolves the Identity and access ticket on the foundation map. Research behind it: research/clerk-organizations-and-sso and research/cli-device-login branches.

How it was verified

Docs only. prettier --check passes on the five files. (pnpm lint OOMs on clean main today — unrelated, pre-existing.)

  • pnpm test passes locally
  • Added or updated tests covering this change

Release impact

  • Breaking — requires action from anyone already running this
  • Not breaking — no action required

Documentation only; no code, contract or schema changes.


Written by Claude Fable 5 via Claude Code.

Adds the Identity and access section to docs/product.md and the who's-who
glossary: Clerk holds who a person is, Patchy holds the company and which
machines act as a user; invite or verified domain; member and admin, everyone
builds; owner-only editing; device login with code confirmation and a
per-machine token (90 days absolute, 30 idle). Fixes the operator collision:
the CLI's agent is its driver, operator is Patchy.

Written by Claude Fable 5 via Claude Code.
@github-actions github-actions Bot added area:server Touches the server area area:cli Touches the cli area area:docs Touches the docs area size:m 100-500 changed lines labels Sep 1, 2026
This was referenced Sep 1, 2026
@allisonmahmood
allisonmahmood merged commit ed61dea into main Sep 1, 2026
6 checks passed
@allisonmahmood
allisonmahmood deleted the docs/identity-and-access branch September 1, 2026 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:cli Touches the cli area area:docs Touches the docs area area:server Touches the server area size:m 100-500 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant