Skip to content

refactor(labs): narrow causal document ports#233

Merged
developer-1px merged 1 commit into
mainfrom
feat/causal-document-port
Jul 12, 2026
Merged

refactor(labs): narrow causal document ports#233
developer-1px merged 1 commit into
mainfrom
feat/causal-document-port

Conversation

@developer-1px

Copy link
Copy Markdown
Owner

Summary

  • narrow id resolution to the query/at read port
  • narrow stable-id materialization to current projection reads and patch preflight
  • let direct/positional causal inboxes use only publication methods while stable-id configs opt into the extended port
  • preserve full JSONDocument and Parameters<> compatibility and document synchronous publication/reference invariants

Why

Canvas needs to validate and synchronize its canonical DesignDocument projection without exposing the complete internal JSONDocument command/history surface. This keeps the core public API unchanged while giving the private causal lab a deep adapter seam for the next dogfood tracer.

Verification

  • id-resolver: 7 tests, typecheck, build
  • stable-id-rebase: 19 tests, typecheck, build
  • causal-patch-inbox: 58 tests, typecheck, build
  • all 41 extension labs verified
  • docs generation/evaluation
  • independent interface review: no blockers
  • git diff --check

@developer-1px developer-1px merged commit 218aa47 into main Jul 12, 2026
3 checks passed
@developer-1px developer-1px deleted the feat/causal-document-port branch July 12, 2026 14:33
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