Skip to content

docs(product): define the integration layer (#20) - #98

Merged
allisonmahmood merged 1 commit into
mainfrom
docs/integration-layer
Sep 1, 2026
Merged

allisonmahmood merged 1 commit into
mainfrom
docs/integration-layer

Conversation

@allisonmahmood

Copy link
Copy Markdown
Owner

The integration layer — a company's connected external sources — was named everywhere (companies, tiers, the patch definition) but never defined: no glossary entries for integration/connection, and a primitive glossary entry that contradicted connections being shared.

This writes it down, resolving #20 on the foundation map:

  • New Integrations section in docs/product.md: integrations are company-scoped primitives (primitives now carry a scope — patch-scoped or company-scoped); modes (company/personal) are fixed per integration by Patchy; company connections are named (postgres/warehouse), many per integration; a patch declares what it needs, the viewer's own grant is the only check on the viewer path, and holding a personal connection is sufficient (no per-patch consent for now); connect happens in front of the page like the login door; patch code gets typed SDK clients, never a credential, no bring-your-own source; dev reaches connections as the user via the machine token.
  • Glossary entries: Integration, Connection, Personal connection in packages/auth/CONTEXT.md; Primitive rewritten with the two scopes in packages/patches/CONTEXT.md.
  • Small sync edits where the old primitive wording appeared.

Deferred, recorded in the doc: tier 2 patch-identity grant mechanics (with tier 2), shared company-wide tables (with composition), opening the catalog to bring-your-own sources.

Written by Claude (Fable 5) via Claude Code.

@github-actions github-actions Bot added area:server Touches the server area area:docs Touches the docs area size:s Under 100 changed lines labels Sep 1, 2026
This was referenced Sep 1, 2026
@allisonmahmood
allisonmahmood merged commit 4469d9b into main Sep 1, 2026
6 checks passed
@allisonmahmood
allisonmahmood deleted the docs/integration-layer branch September 1, 2026 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:docs Touches the docs area area:server Touches the server area size:s Under 100 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant