Repository navigation
feat(doop): project binding table; refuse a second canvas for a bound project (CHE-5860) [squash] - #87
Open
congvc-bot-x99[bot] wants to merge 2 commits into
Conversation
… project (CHE-5860) Refs CHE-5793 step 13.
congvc-dev
marked this pull request as ready for review
November 19, 2026 07:23
congvc-dev
enabled auto-merge
November 19, 2026 07:24
…to 0044 (0043 taken by frame_pins)
This branch has not been deployed
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.
Refs CHE-5793 (plan r9 step 13) and CHE-5860.
What
doop refuses an agent
create_canvaswhen the Multica project already has a bound canvas.project_bindings(migration0043), primary key = Multica project UUID. The key makes "bind only a project with no binding" atomic.PUT /api/projects/:projectId/canvas {canvasId}(needs canvasedit; 409project-boundwith the boundcanvasIdif bound),GETsame path (needs canvasview). Project id must be a UUID, lower-cased.create_canvasgets optionalproject_id:project-bound, naming the bound canvas;dpk_) that can edit any bound canvas and names no project is refused withproject-required;legacylist (step 13a).Blast Radius
Proof level: observed on a real server (spawned doop, PGlite, real
/mcpwith an agent key, real REST).create_canvasbehaviour changes only whenproject_idis passed, or for an agent key that can edit a bound canvas (none exist until step 13a binds one).Test-first evidence
Test:
tests/projectBinding.test.ts.Red (before implementation),
bunx vitest run tests/projectBinding.test.ts:Green (after):
(9th test, upper-case UUID, was added after the red run.) Also green:
agentKeys,agentToolParity,reconMcp,writePolicytests;bun run typecheck,bun run lint,bun run format:check.Done-when still open
Merge, then doop auto-deploy read-back (health, digest, rollback by digest) after a cross-lab review (RGS-1) and non-author merge.