Skip to content

Replace document mini-ACL with Interchange grant tags - #25

Merged
TheGreatAxios merged 1 commit into
cl-5232-rewrite-product-readme-green-pathfrom
cl-5255-grant-tags-schema-plane-http
Aug 5, 2026
Merged

Replace document mini-ACL with Interchange grant tags#25
TheGreatAxios merged 1 commit into
cl-5232-rewrite-product-readme-green-pathfrom
cl-5255-grant-tags-schema-plane-http

Conversation

@TheGreatAxios

@TheGreatAxios TheGreatAxios commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Hard cutover: document access uses Interchange @intx/authz grant tags only. Drops visibility modes, principal arrays, and block lists.

Covers Linear:

  • CL-5255 schema access_tags + drop visibility mini-ACL
  • CL-5259 migration baseline squash (0001 + 0002_knowledge_baseline)
  • CL-5253 plane + engine store grant-tag filter (acl.ts, find/recent, capture)
  • HTTP add body (access_tags + share) from CL-5252 code half

Changes

  • Schema: access_tags text[] on knowledge.document; no visibility_*
  • Migrations: fresh-only baseline (0001_extensions + 0002_knowledge_baseline); intermediate files removed
  • resolveAccessTags / canAccessDocument (creator-always + host GrantStore)
  • Capture, search, timeline, ports/fakes, tests, HTTP add share sugars mint tags only
  • Adapter packages stay principal-bucket DocumentStores (untouched as plugins)

Constraints honored

  • Does not invent a second ACL — uses host grants only
  • Adapter packages untouched as plugins

Test plan

  • bun run typecheck
  • bun test ./src (345)
  • adapter package tests (33)

Stack: base → … → #23#25#26

Hard cutover: documents store access_tags evaluated through the host
GrantStore (creator-always + tag authorize). Drop visibility modes,
principal arrays, and dual-read block lists from the engine path.

- Squash migrations to 0001 extensions + 0002 knowledge baseline
- Plane/store/ports/HTTP add share sugars mint tags only
- Adapter packages stay principal-bucket DocumentStores
@TheGreatAxios
TheGreatAxios marked this pull request as ready for review August 5, 2026 05:24
@TheGreatAxios
TheGreatAxios merged commit fbf4bf2 into main Aug 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant