Repository navigation
docs(product): define the integration layer (#20) - #98
Merged
Merged
Conversation
Co-Authored-By: Claude Fable 5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
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.packages/auth/CONTEXT.md; Primitive rewritten with the two scopes inpackages/patches/CONTEXT.md.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.