Skip to content

feat(doop): agent frame writes cannot overlap another frame (CHE-6119) [squash] - #74

Merged
congvc-dev merged 2 commits into
cheese/mainfrom
agent/x99-claude-sonnet-design/che-6119-f03c7419b14a
Nov 19, 2026
Merged

congvc-dev merged 2 commits into
cheese/mainfrom
agent/x99-claude-sonnet-design/che-6119-f03c7419b14a

Conversation

@congvc-bot-x99

Copy link
Copy Markdown

What

Port of doop PR #59 (merge 93481ed0 on main) onto cheese/main, which is the deploy line (image.yml, cd-deploy.yml). CHE-6119.

  • create_frame by an agent: a box (x/y defaults filled in) that overlaps or sits within 40 px of another visible frame is moved to free space; result carries placement.
  • update_frame by an agent: a move, resize or page change onto another frame is refused with the conflicting frame ids and the free spot. Rename/lock always pass. People in the editor are unchanged.

Does it apply cleanly? No, needs rework

git cherry-pick -m1 93481ed0 conflicted in server/actions.ts, server/mcp.ts, server/store.ts (cheese/main added updateFrameMeta, font/token helpers, rotation). Changes vs #59:

  • server/frameLayout.ts, tests/frameOverlapGuard.test.ts: copied unchanged.
  • server/store.ts, server/actions.ts: same logic, re-applied on the new code.
  • Update-refusal moved from server/mcp.ts into server/pageTools.updateFrameMeta (agent actors only), so the MCP update_frame and the resident agent's update_frame (also calls updateFrameMeta) share it. mcp.ts keeps only tool text and the placement field.
  • tests/frameApproval.test.ts: one agent resize width: 900 -> height: 900 (as in feat(doop): agent frame writes cannot overlap another frame (CHE-6119) #59).

Test-first evidence

  • Red (tests added, guards absent, frameLayout.ts helper present so it is behavioral, not a collection failure): Tests 3 failed | 2 passed (5), e.g. update_frame ... expected false to be true, create_frame ... .toMatch() expects a string, but got undefined (placement).
  • Green: frameOverlapGuard, frameApproval, mcp-tools, residentPageTools, agentToolParity: 5 files, 37 tests passed. Also resident*, ingest, community, importCanvasExport, framePlacement, frameHidden, frameLockActivity, pageSnapshots*: 11 files, 87 passed. typecheck, prettier pass.

Not done

Production proof (probe on scratch canvas 2dDzXTsgCG, che-6056 position read, screenshot) waits for the deploy of cheese/main (CHE-4585/5543, Cheese-carded). Next: x99-codex-luna-design verifies on a local X99 instance of this head.

🤖 Generated with Claude Code

congvc-bot[bot] and others added 2 commits November 18, 2026 19:34
…) [squash]

Port of main PR #59 (93481ed) onto cheese/main. Agent create_frame is relocated to free space
when its box (defaults filled in) would touch another frame; agent update_frame moves/resizes onto
another frame are refused. The refusal lives in pageTools.updateFrameMeta so MCP and the resident
agent share it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…quash]

Rotation-only agent updates are checked. Conflicts and free placement use
each frame's rotated bounds.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@congvc-bot-x99
congvc-bot-x99 Bot marked this pull request as ready for review November 18, 2026 14:50
@congvc-bot-x99

Copy link
Copy Markdown
Author

Merge-Eligibility: REFUSED
Head: 01606d6
coverage_complete=true
defaulted_paths=[]

  • a required check is not green

@congvc-dev
congvc-dev merged commit 5630b31 into cheese/main Nov 19, 2026
19 of 21 checks passed
@congvc-dev
congvc-dev deleted the agent/x99-claude-sonnet-design/che-6119-f03c7419b14a branch November 19, 2026 02:46
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