Skip to content

[Bug] check_collisions and verify_scene silently ignore overlapping procedural-item nodes #1255

Open

Description

@jing-jiu

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: 2
  • skippedItems: []
  • collisions: 1, { "kind": "item-aabb", "violation": "overlap", "aId": "item_m0d25_item_a", "bId": "item_m0d25_item_b" }
  • verify_scene: hasIssues: true, issueCount: 1, one item_overlap finding 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, content items: 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:

  1. treat floor-standing procedural-item nodes as first-class furniture, include them in checkedItems, and report the 2 m × 2 m overlap in check_collisions.collisions and verify_scene as item_overlap; or
  2. if procedural recipes are intentionally unsupported, list both nodes in skippedItems with an explicit reason and return insufficient_evidence / a named unsupportedChecks entry.

In neither case should the tool report status: "checked" with no checked items, no skipped items, and no collision findings.

Source analysis

At 85d7f4cefae7529402b6a5686b2caf7f3b9a10fc:

Procedural items already have the data needed for this check:

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:

  1. procedural-item ↔ procedural-item exact overlap;
  2. item ↔ procedural-item exact overlap;
  3. floor-only and unsupported-attachment skips;
  4. 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:

  1. treat floor-standing procedural-item nodes as first-class furniture, include them in checkedItems, and report the 2 m × 2 m overlap in check_collisions.collisions and verify_scene as item_overlap; or
  2. if procedural recipes are intentionally unsupported, list both nodes in skippedItems with an explicit reason and return insufficient_evidence / a named unsupportedChecks entry.

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

  1. added
    bug
    on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions