Skip to content

Integration layer #20

Closed
Closed

Description

@allisonmahmood

Question

What is the integration layer — a company's connected external sources (databases, Google Workspace, Gmail, Salesforce…)? What a connected source is; who connects it; whether its credentials are the company's or the acting user's; how a patch declares what it needs and how that access is granted; what tier 1 versus tier 2 patches can do with a source; and where the integration layer ends (is a Patchy-native database a source?).

Product-level. Output: glossary entries and the Integrations section of docs/product.md. Input: Comparable platforms — integrations and connected sources.

Activity

  1. added
    wayfinder:grilling
    on Aug 26, 2026
  2. allisonmahmood commented on Sep 1, 2026

    @allisonmahmood
    OwnerAuthor

    Resolution

    Grilled over two rounds (input: Comparable platforms — integrations and connected sources); landed in #98 as the Integrations section of docs/product.md plus glossary entries (Integration, Connection, Personal connection in Auth; Primitive rewritten in Patches).

    • Integrations are primitives. A primitive is what the cloud provides a patch because it declared the need, in two scopes: patch-scoped (the patch's own tables, file storage — provisioned with the patch, part of it, gone with it) and company-scoped (connections, the company database — existing once, used by patches, owned by none). A patch's tables are patch-scoped wherever they physically live — an extra table in the company database belongs to that patch. A Patchy-native database is therefore not a "source"; the line is ownership, not technology.
    • Modes are the integration's, not the connection's. Each integration ships declaring company, personal, or both — never chosen at connect time. Both-mode integrations are two declarations to a patch. "As the viewer" on a company connection means Patchy checks the viewer's grant and logs who acted; the source sees the shared identity.
    • Company connections are named: a handle per integration per company (postgres/warehouse), many per integration, first-come. Personal connections: at most one per user per integration, no handle.
    • The viewer's grant is the only check on the viewer path — no per-patch grants. The declaration (in the repo, like the tier) exists so the CLI can list what's real, publish can warn the owner, and the viewer gets the honest "this is your access" message. Holding a personal connection is sufficient — no per-patch consent; the threat model returns as its own decision if it proves real. This resolves the consent question the tiers ticket deferred.
    • Connect happens in front of the page, exactly like the login door: patch code is written against the promise that every declared connection is present.
    • Patch code gets typed SDK clients, nothing else — building and maintaining the surface per integration is Patchy's job and the point of the product. Never a credential at any tier; credentials in Patchy's own encrypted store, applied server-side, every call logged. No bring-your-own source (no generic REST, no "connect an MCP server") — companies request integrations, Patchy builds them; opening the catalog is a later decision if the pressure is real.
    • Dev goes through the same layer as the user: machine token stands in for the session; no mocks, no environments; an agent's blast radius is its user's.

    Deferred: tier 2 patch-identity grant mechanics (with the tier 2 effort — the sketch on Runtime tiers stands), the company database as a shared data surface (with composition), per-patch consent, opening the catalog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

wayfinder:grilling

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions