Repository navigation
Description
What happened?
Summary
Two item nodes with identical 2 m × 2 m footprints at the same pose are correctly reported as overlapping. Two schema-valid floor-standing procedural-item nodes with the same footprint and pose are silently ignored: check_collisions returns status: "checked", checkedItems: [], skippedItems: [], and collisions: []; verify_scene reports hasIssues: false. This gives a false clean result for procedural furniture.
Environment
@pascal-app/cli:1.0.7- Pascal MCP service / editor runtime:
1.0.7 - MCP protocol:
2025-06-18; 89 tools advertised - Claude Code:
2.1.319 - Official source inspected:
85d7f4cefae7529402b6a5686b2caf7f3b9a10fc - Reproduced in a separate sandbox project. The original project was not modified.
Steps to reproduce
Minimal reproduction
Use a disposable sandbox scene with the default level scaffold. Let levelId be the ID returned by list_levels() (in this test: level_v42iga7t5x7z3uzv). All coordinates are metres and dimensions are [width, height, depth].
1. Validate the procedural design
{
"version": 1,
"name": "M0 D2.5 Overlap Block",
"description": "A solid 2 m by 2 m by 0.9 m floor-standing test block.",
"classification": {
"category": "test_furniture",
"functionTags": ["test"],
"tags": ["collision"]
},
"parameters": [
{ "id": "width", "label": "Width", "default": 2, "min": 2, "max": 2, "step": 0.1, "unit": "m", "axis": "x" },
{ "id": "depth", "label": "Depth", "default": 2, "min": 2, "max": 2, "step": 0.1, "unit": "m", "axis": "z" },
{ "id": "height", "label": "Height", "default": 0.9, "min": 0.9, "max": 0.9, "step": 0.1, "unit": "m", "axis": "y" }
],
"slots": [{ "id": "wood", "label": "Wood", "color": "#8b5a2b", "finish": "wood" }],
"parts": [{
"id": "block",
"label": "Block",
"count": 1,
"shapes": [{
"id": "body",
"primitive": "box",
"slot": "wood",
"size": ["width", "height", "depth"],
"position": [0, { "op": "div", "args": ["height", 2] }, 0],
"support": true
}]
}],
"constraints": []
}validate_design returns valid: true, 27/27 sweep cases passed, bounds [-1, 0, -1] to [1, 0.9, 1], dimensions [2, 0.9, 2], floor datum contact.
2. Control group: two ordinary item nodes
Create two level-parented item nodes with the following differing IDs/names, but identical geometry:
{
"object": "node",
"id": "item_m0d25_item_a",
"type": "item",
"name": "M0 D2.5 Item A",
"parentId": "<levelId>",
"visible": true,
"metadata": {},
"position": [0, 0, 0],
"rotation": [0, 0, 0],
"scale": [1, 1, 1],
"children": [],
"asset": {
"id": "m0_d25_overlap_block",
"category": "furniture",
"name": "M0 D2.5 Overlap Block",
"thumbnail": "",
"source": "library",
"src": "asset://m0_d25_overlap_block",
"dimensions": [2, 0.9, 2],
"tags": ["floor", "test"],
"functionTags": ["test"],
"offset": [0, 0, 0],
"rotation": [0, 0, 0],
"scale": [1, 1, 1]
}
}Duplicate it as item_m0d25_item_b / "M0 D2.5 Item B" at the same position and rotation. Then call:
check_collisions({
"levelId": "<levelId>",
"minimumClearance": 0,
"floorOnly": true
})
verify_scene({})Observed:
check_collisions.status:"checked"checkedItems: 2skippedItems:[]collisions: 1,{ "kind": "item-aabb", "violation": "overlap", "aId": "item_m0d25_item_a", "bId": "item_m0d25_item_b" }verify_scene:hasIssues: true,issueCount: 1, oneitem_overlapfinding for the two IDs.
3. Failing group: two procedural-item nodes
Delete the two control nodes. Create two level-parented procedural-item nodes with the validated recipe above and these identical poses:
{
"object": "node",
"id": "procedural-item_m0d25_proc_a",
"type": "procedural-item",
"name": "M0 D2.5 Procedural A",
"parentId": "<levelId>",
"visible": true,
"metadata": {},
"recipe": "<validated v1 recipe from step 1>",
"parameters": { "width": 2, "depth": 2, "height": 0.9 },
"slots": {},
"position": [0, 0, 0],
"rotation": [0, 0, 0],
"children": [],
"attachments": {}
}
The recipe field is abbreviated: substitute the complete recipe object from step 1, not the placeholder string, in the actual apply_patch payload.
Duplicate it as procedural-item_m0d25_proc_b / "M0 D2.5 Procedural B" at the same position and rotation. find_by_type("procedural-item") returns count 2; verify_scene reports valid: true, so these are accepted scene nodes.
Call the same tools:
check_collisions({
"levelId": "<levelId>",
"minimumClearance": 0,
"floorOnly": true
})
verify_scene({})Observed:
check_collisions.status:"checked"checkedItems:[]skippedItems:[]collisions:[]verify_scene:valid: true,hasIssues: false,issueCount: 0, contentitems: 0.
Evidence from this run:
| Group | Sandbox version | get_project_status.graphHash |
check_collisions.assessmentGraphHash |
|---|---|---|---|
item |
13 | bf710e249ff26797f97b95b544c79a746d69d48a4c8d52a98c3d8338e10ab787 |
d884d774fb398650b189203a77eefb7c630b90398b455950b94d56ada4b1e8d3 |
procedural-item |
14 | fbdc1cb984da44344180a8f31642b074fc1e7273dc39fd152c6ca4b00dffd9d7 |
842562ece0492fbd384a7fa8c3a28217292e60aa2ad2f8e8e579f2c0569f5a7a |
(assessmentGraphHash hashes the normalized live graph; get_project_status.graphHash hashes the stored graph_json string, so both are listed.)
Expected behavior
Either:
- treat floor-standing
procedural-itemnodes as first-class furniture, include them incheckedItems, and report the2 m × 2 moverlap incheck_collisions.collisionsandverify_sceneasitem_overlap; or - if procedural recipes are intentionally unsupported, list both nodes in
skippedItemswith an explicit reason and returninsufficient_evidence/ a namedunsupportedChecksentry.
In neither case should the tool report status: "checked" with no checked items, no skipped items, and no collision findings.
Source analysis
At 85d7f4cefae7529402b6a5686b2caf7f3b9a10fc:
check-collisions.ts#L233-L235skips every node whosetypeis not exactlyitem.check-collisions.ts#L287-L290feeds collision detection with an item-only checked-ID set.layout-clearance.ts#L143-L151also skips non-itemnodes incollectOccupiedFootprints().layout-clearance.ts#L936-L953is theverify_scenepath that reuses this item-only engine.check-collisions.ts#L299-L305returns"checked"when bothcheckedItemsandskippedItemsare empty.
Procedural items already have the data needed for this check:
definition.ts#L178-L181declaresfloorPlaced.footprintandfloorPlaced.collides: true.query.ts#L96-L101providesproceduralFootprint()from the evaluated recipe bounds and node pose.
packages/mcp/src/tools/check-collisions.test.ts contains no procedural/design/recipe test, and a docs/skills search found no documented intentional exclusion. The collision tool was introduced before procedural-item support and was refactored after it without adding support. This appears to be an omission rather than a documented limitation.
Suggested fix
Use the node registry's floorPlaced capability (or proceduralFootprint() for procedural-item nodes) in collectOccupiedFootprints() and in check_collisions' evidence loop. Include such nodes in checkedItems with their evaluated bounds and an appropriate source value. Add regression tests for:
procedural-item↔procedural-itemexact overlap;item↔procedural-itemexact overlap;- floor-only and unsupported-attachment skips;
- status must not be
"checked"when procedural furniture is present but omitted.
No source changes are included in this report; the reproduction and source checkout were read-only.
Expected behavior
Expected behavior
Either:
- treat floor-standing
procedural-itemnodes as first-class furniture, include them incheckedItems, and report the2 m × 2 moverlap incheck_collisions.collisionsandverify_sceneasitem_overlap; or - if procedural recipes are intentionally unsupported, list both nodes in
skippedItemswith an explicit reason and returninsufficient_evidence/ a namedunsupportedChecksentry.
In neither case should the tool report status: "checked" with no checked items, no skipped items, and no collision findings.
Browser & OS
No response
Screenshots or screen recordings
No response
Additional context
No response
Activity