You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Redraw CONTEXT-MAP.md and retire the inherited ADRs #21
With the product vocabulary settled: which contexts does Patchy Cloud actually have, and how does CONTEXT-MAP.md change from PatchPage's hosting / publishing split? Which inherited ADRs are retired (ADR-0001 records PatchPage's trust model), what replaces them, and what ADR-0000 becomes once the origin story is old news. Inherited ADRs are replaced, not preserved — outdated ADRs mislead agents.
Output: the new CONTEXT-MAP shape and an ADR disposition list, filed as issues.
Grilled with Allison, 2026-09-02. Landing in #103.
What the map maps.CONTEXT-MAP.md names the product's contexts, not the packages that happen to exist: each entry points at its package today or says "no code yet". A context with no code keeps its CONTEXT.md at the path its package will take (packages/companies/CONTEXT.md) — a folder with no package.json is invisible to pnpm and turbo, and the package is born beside its glossary.
The six contexts.
Patches (packages/patches) — the unit: patch, version, repo, declared tier, publish, owner, sharing scope and address, retire/delete, the primitives a patch declares.
Serving (packages/serving) — a patch reaching its viewer at every tier: page, the login and connect doors, guarantees, visit, trusted proxy, and the identity patch code acts as (viewer, patch identity — both moved here from Patches). Tier 0 today; tier 1 and 2 runtimes build on it. When tier 1 and above are built, split a Runtimes context out of Serving — noted in Serving's glossary and on the map's fog.
Companies (no code) — company, handle, user, member, admin, group, invite, verified domain, SSO, deactivation, suspension, operator. Moved out of Auth.
Auth (packages/auth) — who a caller is: session, device login, machine token, Your machines, principal, bearer parsing; self-service minting until it retires.
Integrations (no code) — integration, connection, personal connection, connection handle, declaration, typed client, call log. Moved out of Auth.
Publishing (packages/cli) — unchanged.
Rejected: folding Companies into Auth (tenant structure and credentials are different questions with different builders); a codeless Runtimes context now (it would describe nothing until tier 1 is designed); an Access context (scope is a patch attribute, the check is a Serving door).
ADR disposition.
ADR-0000 (origin) — deleted. README's PatchPage paragraph carries the one provenance sentence; LICENSE and README carry the licence fact; git holds the history. Agents were spending context on PatchPage.
ADR-0001 (trust model) — deleted now. Its surviving invariant (no request without a bearer token) is Auth's Bearer parsing; its decision, self-service minting, retires with login, and the auth build PR writes the login ADR.
ADR-0002/0003/0004 — kept, untouched.
No new ADRs from the product decisions yet. The PR that builds a decision writes its ADR; until then docs/product.md is the record, and docs/agents/domain.md now puts it on the read-first list.
The rule, recorded in domain.md: an ADR is current or gone. A superseded ADR is deleted; its replacement names what it replaced.
Ticket 99 (The CONTEXT-MAP redraw — which contexts Patchy Cloud has) was a duplicate of this ticket's first half; its framing (product-and-code-level, glossary moves as far as they follow mechanically) is fully covered above. Closed with a pointer here.
Activity
allisonmahmood commentedon Sep 2, 2026
Resolution
Grilled with Allison, 2026-09-02. Landing in #103.
What the map maps.
CONTEXT-MAP.mdnames the product's contexts, not the packages that happen to exist: each entry points at its package today or says "no code yet". A context with no code keeps itsCONTEXT.mdat the path its package will take (packages/companies/CONTEXT.md) — a folder with nopackage.jsonis invisible to pnpm and turbo, and the package is born beside its glossary.The six contexts.
packages/patches) — the unit: patch, version, repo, declared tier, publish, owner, sharing scope and address, retire/delete, the primitives a patch declares.packages/serving) — a patch reaching its viewer at every tier: page, the login and connect doors, guarantees, visit, trusted proxy, and the identity patch code acts as (viewer, patch identity — both moved here from Patches). Tier 0 today; tier 1 and 2 runtimes build on it. When tier 1 and above are built, split a Runtimes context out of Serving — noted in Serving's glossary and on the map's fog.packages/auth) — who a caller is: session, device login, machine token, Your machines, principal, bearer parsing; self-service minting until it retires.packages/cli) — unchanged.Rejected: folding Companies into Auth (tenant structure and credentials are different questions with different builders); a codeless Runtimes context now (it would describe nothing until tier 1 is designed); an Access context (scope is a patch attribute, the check is a Serving door).
ADR disposition.
LICENSEand README carry the licence fact; git holds the history. Agents were spending context on PatchPage.docs/product.mdis the record, anddocs/agents/domain.mdnow puts it on the read-first list.domain.md: an ADR is current or gone. A superseded ADR is deleted; its replacement names what it replaced.Ticket 99 (The CONTEXT-MAP redraw — which contexts Patchy Cloud has) was a duplicate of this ticket's first half; its framing (product-and-code-level, glossary moves as far as they follow mechanically) is fully covered above. Closed with a pointer here.
allisonmahmood commentedon Sep 2, 2026
Resolved above; landing in #103.
docs(domain): map the product's contexts; delete the inherited ADRs (#…