Skip to content

Per-element export decisions: why an element, body, opening or outline was left out #1326

Closed

Description

@DrunkOnJava

Today, SkippedExportItem reports what the exporter left out as counts per reason and class, with sample names. That cannot answer "why does this door have no opening?" or "why is this room a box?".

Change

Record each fail-closed decision per element as {ElementId, stage, reason code, offset where the evidence was read}. Stages include: element skipped, body left as box, opening not cut, outline not read, value left out because exporters disagree.

  • The aggregate skipped section is computed from the log and stays as it is.
  • The log is bounded: it caps per reason and reports how many entries were dropped.
  • It goes in the diagnostics JSON and the decoded model, never in users' IFC.

The MCP server gains explain_element(model_id, element): the element's provenance (see the provenance issue), its trust markers, and every decision recorded for it.

Done when

  • On Core Interior and the office, every skipped item and geometry gap the aggregate reports has matching per-element entries; the counts are equal.
  • explain_element returns them through the MCP E2E.

Activity

  1. added
    area:ifc
    priority:P1
    type:feature
    on Nov 4, 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

    area:ifcpriority:P1type:feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions