Skip to content

AEC Model Bridge v1.5.0

Latest

Choose a tag to compare

@github-actions github-actions released this 16 Nov 10:00
· 721 commits to main since this release
5a2ae2f
  • Read-only tool results are now minified JSON by default (about 14-24% fewer characters on typical reads; pass response_options.compact: false for indented text) and capped at 20,000 characters. Over the cap, the largest lists are trimmed to valid JSON and marked truncated: true with total, returned and a hint to narrow the call; response_options.max_chars changes the cap (0 turns it off). Plans, proofs, approvals, jobs, errors and every tool that can write are untouched.

  • revit_list_elements, revit_list_views, revit_list_families, revit_get_categories, revit_get_warnings and revit_get_schedule_data accept optional limit, offset and count_only. The slice is made in the server after Revit answers (no add-in change), so it saves response tokens, not Revit time.

  • MCP tool text is shorter and clearer: the duplicate annotations.title is gone, repeated parameter text (dry_run, on_error, limit, tag, fields, status_labels) uses one short wording, and 29 look-alike tools say which sibling to use for what. About 3.5% fewer tokens in the full and daily catalogues; approval wording is unchanged.

  • Tool profiles can no longer hide the approval tools (plan_actions, execute_plan, list_pending_plans, plan_revert, get_proof_bundle). A custom profile file that excludes the approval provider is refused with a clear error.

  • Dev mode wording: the server instructions, panel chat prompt and plan_actions description now say that when revit_get_context shows server.dev_mode true, write tools are called directly with no plan or plan_id. In Dev, plan_actions still creates the plan but adds dev_mode: true and a note. A supplied plan that is still pending is refused as before, with a clearer message. Approval rules are unchanged.

  • aec-model-bridge-approve reject --older-than DAYS and --all-pending (with --dry-run) clear out old pending plans. They touch pending plans only and print each id; approved and executed plans are left alone.

  • Plan-shaped results are never compacted or trimmed, including parameter_manager_plan_set_params, revit_mep_hanger_plan, revit_recipe_get and any result with plan_type or plan_arguments. Paging arguments reject inf/nan and read count_only: "false" as false; count_only: false alone no longer applies a default limit. aec-model-bridge-approve reject --older-than refuses nan, inf and negative values. Module handlers declared as def h(*args) again receive the arguments dict.

  • /diagnostics now reports workspace_dir and a dev_off_reason when Dev reads off (for example a key or workspace mismatch). It never includes the token or nonce.

  • Require certifi>=2026.10.19 and refresh its lock entry so the release bundle cannot restore the affected emSign trust root (GHSA-6q48-6c7w-9gw2). Regression checks cover the dependency floor and the actual bundled trust store.

  • Audited the 19 open PRs from oldest to newest and consolidated their current implementations and fixes. Setup recovery supports Codex-only chat; previews clear stale state and accept 64-bit IDs; QA issues are isolated by rule pack; explicit workspace allowlists are preserved. Snapshot audits disclose partial data and no longer invent full-model findings from incomplete captures. Snapshot point locations use SI units and stable names survive serialization. See docs/release-audit-2026-11-06.md for coverage and remaining live acceptance work.

  • MCP token use: static full (default), daily and custom module profiles; hidden direct/plan/job targets are refused without weakening approval. Optional compact/read-field responses and plan_actions argument-echo omission reduce returned text while retaining full human-review data in storage. Measurements and reproduction commands are in docs/mcp-token-budget.md.

  • Release preparation: restore patched MCP/Speckle/GraphQL and VS Code packaging dependencies, regenerate complete third-party notices, install portable runtime dependencies from the lock and validate the release SBOM against its actual installed distributions. Correct extension release dispatch, provenance checks, checksums, support routes and setup documentation. No live model writes were used for these checks.

  • Ribbon: new "cut slate" icons, matching the Recipe Editor tab. They come in light and dark variants and are embedded in the DLL, and the old vector icons stay as a fallback. The generator is scripts/make_ribbon_icons.py. About now shows the cerberus mark. See docs/RIBBON_ICONS.md. UNVERIFIED in Revit.

  • Fixed from a 1.4.0 user report (Revit 2027.2, Windows on ARM): revit_set_parameter_value and every other native write froze Revit because the transaction helper called itself (fixed earlier in 189e25a, first release 1.5.0); revit.get_sheet_info failed on sheets that carry two parameters with the same name (for example "Category"), now the second one is listed as "Category (2)"; a force-closed Revit leaves revit-<pid>.json behind, the add-in now removes entries of dead processes when it starts; config\default.json no longer carries the build machine's profile path (%USERPROFILE% is written literally).

  • Connection: a MCP_REVIT_BRIDGE_URL that is empty or still the old default http://127.0.0.1:3000 now means "not set", so the server finds the running Revit by itself (the add-in picks a random port at every start, so a client config pinned to :3000 could never connect). The DXT manifest, smithery.yaml and server.json no longer ship :3000 as the default. Any other explicit URL stays pinned.

  • Scripts: revit_execute_python in write mode gets amb_transaction(doc, name); it dismisses Revit warnings (no dialog) and returns them in the result, errors roll back. stdout without a trailing newline is now flushed on IronPython 3 (the tail was dropped). UNVERIFIED in Revit. Removed two unreferenced files (new_checks.txt, banner.png).

  • Panel: the dark theme uses the slate colours of Revit's own dark UI (#3B4453 background, #222933 headers, #515C6B lines, measured from Revit 2024) instead of the near-black blue (docs/design/tokens.md updated, dialogs match; status colours lightened to keep WCAG AA).

  • Recipes: new revit_recipes module (revit_recipe_save, _list, _get, _run, _delete). A recipe is saved IronPython with a typed parameter schema and a code hash. A write run needs a plan bound to the recipe id, version, code hash and parameter values, so editing a recipe voids old approvals. A read recipe runs without approval only if its code passes read mode at run time. A recipe can carry a standing approval, set only by a person with aec-model-bridge-approve recipe-standing, tied to id and hash. Parameters reach the script as one JSON string, never spliced into code. UNVERIFIED in Revit.

  • Documentation batch: revit_place_views, revit_list_view_templates, revit_set_view_templates, revit_make_view_template, revit_align_crop, revit_list_revisions, revit_add_revision, revit_add_revision_clouds, revit_issue_revision, revit_sheet_index and revit_update_sheets (collision check, temporary numbers for swaps). Strict schemas, dry_run on every write. UNVERIFIED in Revit.

  • Sparing: status flow (revit_sparing_status_get, _summary, _set with a transition table, _setup for the shared parameter, only through an approved plan) and copy to discipline models (revit_sparing_export_spec, revit_sparing_place_spec, active document only). UNVERIFIED in Revit.

  • MEP hangers: revit_mep_hanger_plan (read) and revit_mep_hanger_place (gated, dry_run, idempotent). The spacing table ships empty; a rule without a named source is never used, and results carry the not-an-engineering-calculation notice. UNVERIFIED in Revit.

  • Cleanup: new read-only revit_cleanup_audit (11 checks, scope by model, categories or view, time budget, purge_candidates as a separate field). It deletes nothing. UNVERIFIED in Revit.

  • Tests and reach: a C# xUnit project (packages/revit-bridge-addin-tests, 145 tests, runs in CI, no Revit needed); one tool count (302, scripts/count_tools.py, checked by a test); aec-model-bridge --help no longer starts the server; PyPI classifiers and __version__; demo shot list under scripts/demo/. Nothing is published.

  • Fixed after the first live run (Revit 2024): door and window results returned the host wall as element_id; replacing a view or an MEP route failed on the camera, section box, nested fitting parts and centre lines Revit makes itself; a rerun of a route failed with NO_FREE_CONNECTOR because the piping system counted as a connection; a tee split made the system report flag a planned free end; 3D views are now cropped to their scope (before, an export was a speck on a blank page); the door/window fit check measured sill height as distance from the wall.

  • Security: read mode could be bypassed by building the name Transaction at run time (getattr(DB, 'Trans' + 'action')), which changed a wall parameter without approval. Read-mode scripts now run inside a transaction group that is always rolled back, and the result says so. Revit rolling back a committed inner transaction was confirmed live; the runner change itself is UNVERIFIED until the rebuilt add-in is loaded.

  • Dry run: every write tool of the docs, family and MEP modules takes dry_run. It does the work and the checks, then always rolls the group back and reports would_change; it writes no file and loads nothing. Still approval-gated like a real write.

  • Parameters: new revit_get_parameters (read-only) and revit_set_parameters (approval-gated, up to 500 elements, explicit units, never creates parameters, refuses read-only and critical ones with a reason per element, reads every value back and returns a revert list). UNVERIFIED in Revit.

  • API lookup: new read-only revit_api_lookup answers whether a Revit API type or member exists, with its signature and the nearest real names when it does not, from the documentation XML that ships with Revit (2024 to 2027) or the NuGet cache. No Revit needed. Agents should check unfamiliar members with it before writing a script.

  • IFC: new read-only revit_ifc_check compares an exported IFC with the live model per category (counts, missing elements, classification, materials, storeys, expected parameters, origin offset). It is never PASS when the Revit side was truncated or the IFC could not be read; ifc_only checks the file alone. UNVERIFIED in Revit.

  • Openings: new revit_sparing_find (read-only: where MEP crosses walls and floors, in linked models too, with a suggested size and any existing opening) and revit_sparing_place (approval-gated: places a loaded sparing family or a native opening, tagged and idempotent, with dry_run). UNVERIFIED in Revit.

  • Breaking: the old creators were hardened in place. revit_create_wall takes wall_type and reverse (flip the exterior side) and uses the default basic wall type when none is given. revit_create_floor forwards floor_type and no longer defaults to a foundation slab. revit_create_roof forwards roof_type (it used to pass none, so Revit refused) and slope (rise over run; omitted means flat; the old hidden default of 0.5 was never applied and is gone). revit_create_level also creates the floor plan view unless create_plan_view is false. An unknown type name now fails instead of falling back. Not yet run in Revit.

  • Transactions: native add-in commands commit through a checked transaction. Revit warnings are dismissed and listed; an error rolls the call back and returns ok: false with Revit's message, the failing element ids and the transaction status, instead of an opaque error or a stuck dialog. Live repro on the old build (2400 mm window in a 1 m wall) showed the dialog and a message-less error.

  • Doors and windows: placement checks that the opening fits the host wall before any transaction starts and refuses with the wall id and the numbers; picks the first loaded door or window type when none is named and says which; hand_flipped and facing_flipped control the swing; the result carries host_wall_id and fit_check. revit_check_clashes gets max_pairs and time_budget_s and reports truncated instead of freezing Revit. Not yet run in Revit.

  • MEP: new revit_mep module with revit_mep_route (pipe or duct with fittings, branches, risers), revit_mep_connect, revit_mep_circuit and the read-only revit_mep_check_elements. A category guard refuses a family whose category, connectors or system domain do not match. Write tools are approval-gated, roll back by default (on_error=skip keeps what worked) and finish with a system report. UNVERIFIED in Revit.

  • Families: new revit_make_family builds loadable families from data specs (the docs/recipes/villa2/m1_specs.json format), checks the category against the port kinds, saves and loads them, and runs the family probe. Approval-gated, UNVERIFIED in Revit.

  • Live verification: exercised the new Revit 2024 add-in's read-only runtime and QA/documentation tools. Fixed the family probe's IronPython FamilySymbol.Name failure with parameter-first name access and explicit unverified fallbacks; added six regressions and verified shallow/deep native probes after installing the corrected wheel. See docs/revit-addin-live-validation-2026-10-14.md for measured results, the stale-chat-routing issue and remaining scratch-model acceptance.

  • Panel: add explicit Dev mode, confirmed in Settings and visible in the mode chip and chat banner. A signed workspace switch keeps it on until the person switches it off, including across restarts; an owner-only nonce authority prevents a revoked signed record from re-enabling it. Ask first clears it and timed Auto replaces it. Look only remains enforced, supplied plan ids retain hash/single-use checks, and Dev calls and toggles are audited. Workspace sandbox and secret/path redaction remain enforced. See ADR 0018. Revit 2024 read-only smoke checks observed Dev active; mutating scratch-model acceptance remains pending.

  • QA/QC: recover the unfinished opening/roof audits, family probe, MEP system report, naming/parameter and level/grid checks, plus revit_review. Generated scripts now load their shared helpers. Missing scopes, empty checks, unreadable geometry and budget limits cannot produce a verified PASS. Added behavioral tests using a Revit API stub; bounded native read checks are recorded in docs/revit-addin-live-validation-2026-10-14.md; complete geometry acceptance remains pending.

  • Documentation: recover view/sheet/schedule creation and listing, PNG content checks, and PDF/DWG/IFC/NWC export. Generated writes use one outer approved action through an execution capability bound to that exact call; stale executors are refused. Replacement checks the complete deletion cascade and rolls back foreign dependencies. Exports stage actual filenames before publishing and guard split outputs/sidecars against overwrite. Corrupt or unsupported PNGs remain unverified, and decompression is bounded. The corrected server wheel is installed; live creation, layout and export acceptance are pending.

  • Plans: execute_plan now honors provider-reported failures and retains running receipts instead of marking them complete. Pending actions remain consumed and have no success proof; repeated execution cannot turn them into completed actions.

  • Security: a mutating call that comes back running (Revit still working, {status: "running", request_id}) is no longer booked as done. The approval claim stays consumed (no replay), the action stays running and is recorded as in flight under plans/.inflight/<request_id>.json, which survives a server restart, and the reply says "still running, resume with revit_get_result". revit_get_result (or revit_job_status for revit_run_job) closes it: a final result marks it executed, Revit's own failure marks it failed with Revit's message; a lost connection or an expired id leaves it running for aec-model-bridge-approve recover. Applies to MCP calls, run_async jobs, the panel route and module steps. A revit_run_job that is still queued or running is held open the same way (before, it was booked done at once).

  • revit_get_context now reports the approval mode in force right now, including the signed temporary Auto window from the panel (server.approval_mode, configured_approval_mode, auto_expires_at), not only the mode the server started with.

  • Deploy: new scripts/deploy-addin.ps1 mirrors the whole add-in output folder, including Lib\, to C:\ProgramData\AECModelBridge\bin\<year>\, refuses to run while Revit.exe is running (unless -Force), backs up the previous folder, and verifies the DLL size and file time afterwards (restoring the backup on a mismatch). Python scripts: a missing Lib\ no longer disables revit_execute_python; the engine starts without the standard library and the result says so. The engine runtime is shut down after every script, and a script that leaves a transaction started is rolled back and reported (transaction_left_open). The complete Revit 2024 deployment and packaged IronPython standard library were verified live; open-transaction and missing-library acceptance remain pending.

  • Docs: add docs/upgrade-plan-hands-and-eyes.md (phased upgrade and bug-fix plan with a bug list B-01..B-18, owner priorities, source implementation status and a live acceptance suite) and docs/prompts/revit-agent-preflight-and-verify.md (copy-paste pre-flight and verification prompt for AI building in live Revit).

  • Security: the panel now shows a plan's hashed review block (summary, reasoning, citations, assumptions, excluded elements, warnings, conflicts, reverted plan id) in the Plans view, built on demand, and says which parts the approval hash covers. Review text is untrusted and shown as plain text only. The panel hub adds a validated review_view to list_pending_plans results on the panel route only, sorts plans newest first and sends at most 50. Every card shows the plan id and a copyable aec-model-bridge-approve show <plan id> command. Approve is disabled, with a pointer to that command, for a hash_version 2 plan whose review is missing, malformed or not yet opened, for legacy revert plans with content outside the hash, for numbers above 2^53, for lists over 100 entries, and for plans holding a real credential (password, API key, bearer value, high-entropy token), which the panel masks. Paths, code arguments, parameter names such as Assembly Code and ordinary prose are shown as they are on the approval card; other routes keep their full redaction. NaN and Infinity are refused at drafting. Reject still works. Not verified in a live Revit panel.

  • Security: a person can now recover a plan stuck by a crashed process. aec-model-bridge-approve recover <plan_id> --reason ... marks actions left in running as abandoned (never re-run, the approved plan becomes partial, remaining actions need a new plan); show lists running actions with their age. It is not an MCP tool and nothing recovers automatically. Plan writes retry os.replace up to 5 times on a Windows PermissionError before failing with a clear error (UNVERIFIED on Windows). docs/security.md lists the remaining gaps and ADR 0017 (Proposed) covers document binding and expiry; no behaviour change for those.

  • Brand: add the Cerberus sub-mark artwork (Ember mesh: three jackal heads in an ouroboros ring) under assets/cerberus/ for the Cerberus feature, and rewrite docs/design/brand.md to separate the product brand (AEC Model Bridge, Pier mark) from the feature sub-mark. The product mark, installer images, icons and READMEs keep the Pier mark. Setting the repository social preview in Settings remains a manual step.

  • Security: log and error redaction now also covers UNC network paths (\\server\share\model.rvt, the usual way central models are shared) and backslash paths without a drive letter. Before, a server or share name could appear in audit logs and error messages. This also fixes test_redaction_in_server on Linux.

Easiest install: download AECModelBridge-Setup-1.5.0.exe below, double-click it and follow the wizard. It detects your Revit versions and sets everything up. Checksums are in SHA256SUMS.txt. The shipped Python dependency inventory is aec-model-bridge-1.5.0.cdx.json; see docs/supply-chain.md for its scope and verification.