Files
NODEDC_MISSION_CORE/docs/BIM_MODULE.md
T

20 KiB
Raw Blame History

Portable BIM module in Mission Core

Current cloud slice · 15 November 2026

Host/Worker package 0.2.0, portable viewer 0.2.1. PTS/LAS/LAZ are converted on the single isolated BIM Worker into immutable Potree 2 products. The actual Bridge_2 1.pts was uploaded through the LivingBIM Dataset UI: 85,515,903 points, 3,323,939,155 source bytes, 897,877,195 ready bytes. Only the verified ready set enters Core; source/CAS remain on Worker and owned staging/scratch are empty.

Colored cloud and L3 IFC open as independent layers after full reload with BIM Worker service stopped. Original export correctly reports the unavailable server. IFC/FRAG native exports matched SHA-256; cloud format chooser offers PTS/Potree 2 ZIP. No guessed registration transform was saved: the scan and IFC have unmatched local frames, so exact geometric overlay remains unqualified. Eight unrelated running Worker containers were preserved; only ndc-bim-worker is stopped. Canonical Core 8000 remains running.

102 module Python / 39 module client / 2 Core adapter tests passed. Core 1,604 frontend tests, architecture, typography, typecheck and build passed in the shared canonical checkout; unrelated edits are excluded from this delivery. Source-byte dedup ignores file names. Result reuse, orphan intake GUI after queue refusal, full multiuser ACL/personalization and power-loss qualification remain open. Exact release identities/hashes are in vendor/bim manifests. Current detailed evidence and limits. Older sections below are dated acceptance history.

Qualified on 2026-11-14: Данные → Архитектурные проекты at the canonical http://127.0.0.1:8000/. The operator can create a project, upload IFC, wait for Worker conversion, download the prepared product and view it in 3D or through the navigation cube. MapLibre, project tree, model versions and visibility share the same catalog. Map markers, project eyes and version rows enter the same project viewer.

Ownership and integration

The implementation belongs to NODEDC_BIM_MOD, branch feat/portable-bim-ifc. Core consumes Python host services 0.1.4 and browser workspace 0.1.9 from vendor/bim/; release manifests hold source commits and SHA-256 identities. The Python package owns contracts, project documents, transfer lifecycle and the host API. The browser package owns catalog, intake, map and renderer. It uses the host's React and NODE.DC UI, while keeping its Three/Fragments graph private; render objects are not exchanged with existing Core renderers.

Core-specific files are src/k1link/web/bim_module.py, apps/control-station/src/workspaces/data/ArchitecturalProjectsWorkspace.tsx and asset declarations. The app mounts /api/v1/bim, closes the module on shutdown and runs its ready-copy retention with the existing reaper. Product registry/composition select the workspace. The generic shell reads capability status; no BIM pipeline is implemented in App.tsx. The adapter emits canonical toasts, observed by the current Core notification history. It does not depend on that history's source files.

The backend admits only the local operator boundary (loopback peer, loopback Host and same-origin browser requests). This is not a multi-tenant authorization model. It initializes lazily and reports storage/connection failures without blocking unrelated Core workspaces. Local copy admission uses Core's shared physical-disk reservation ledger and its 2 GiB reserve, rather than a separate hard directory quota.

Data and execution

Under data_dir/architectural-projects/, documents contains durable catalog, version references, selection and placement; ready-copies contains selected immutable renderable products and copy metadata. connection contains private Worker binding and a separately protected service token. Do not commit it. The independent module documents WorkerBinding configuration and validates allowed HTTP/SSH transport. The qualified path uses the existing SSH alias to a fixed API pipe inside the Worker container; no public port or extra sidecar was introduced.

Worker 006 owns one ndc-bim-worker, its ndc-bim-data volume, installed IFC converter, SQLite queue, Sources and published products. The qualified image is sha256:030aeb21554f6ab2fb2fb876dd80abe0d6bb01dc5579865f6cac052c5418c127 (module source 08538ed7a78f1d6e880efe0cd375d9eee9c90df8). It has an internal network, no published ports or Docker socket, read-only root, UID 10001 and 2 CPU / 4 GiB / 128 PID limits. Other Worker containers and the existing PlayCanvas simulation were not changed by this integration.

Raw IFC streams through Core to the Worker; it is not spooled into Core data. Worker paths are readable Latin project/material/version directories with content deduplication. Local removal retains catalog references and Worker ownership. Re-download restores the same immutable product without conversion. Pin and active viewer leases protect local copies; unpinned inactive copies follow retention. Downloads currently use one active transfer and bounded in-memory status records, without restart-resume. No local IFC conversion fallback exists.

Initial IFC acceptance · historical slice, 14 November 2026

The real UI uploaded a six-element IFC twice as separate versions and the public That Open school_str.ifc (8,593,426 bytes, SHA-256 82c3406c11cdf83a7ad00e2155bdcfdef50877e491e780623824161d8955b340). Worker produced 1,526 geometric elements for the school; its model.frag is 708,042 bytes, SHA-256 18b362ea65aeba88f57dfd011a1f4ce8cb1b5e607aa8f2b9aec9790624b7d381.

The building renders as real geometry in 3D and on MapLibre, with editable metadata, coordinates, height, yaw and representative BIM version. Example coordinates are explicitly arbitrary, not its surveyed position. Map entry and direct version entry after reload open the same saved project. Plan/3D, fit, fullscreen/Escape, visibility and a 700 px narrow composition were checked. Computed typography uses 13 px operational text, 12 px descriptions and 18 px window titles.

One local version was removed through the UI and downloaded again: references remained and its Worker generation stayed 1. Pins persisted. Worker archive inspection found all three source receipts, a shared inode for the duplicate IFC versions and no scratch files; Core's architectural-project runtime contained no IFC. The source file selected by the user remains their own input outside Core storage. Success notices reached the existing history. Typed failures are wired to the same adapter; live UI fault injection was not completed.

Validation passed: 67 module Python tests, one Node reader regression, nine client contract/regression tests, two Core adapter tests, architecture/typecheck/typography gates, 1,596 frontend unit tests and production build. A fast-publication race is covered: a published job with no product in the preceding catalog snapshot keeps polling until publication appears. Both the repeated version and school import completed without a manual refresh.

Full evidence and limitations: module qualification. Canonical Ops reference: MISSIONCOR-100.

Remaining scope

This is the first IFC slice, not full BIM acceptance. LAS/LAZ and new Gaussian captures, persistent annotations, advanced section boxes/fills and federation workflows, placement gizmos and unsaved-draft flow, large-model qualification, persistent download resume, full live fault injection, a second host and physical volume migration remain open. Existing PlayCanvas simulation is a separate system. Map markers cover all placed projects; detailed BIM geometry currently belongs to the selected project's preview. Multiple simultaneous building previews remain an acceptance case.

The 256 MiB prepared-member budget does not guarantee arbitrary GPU/RAM capacity. WebGL was visually qualified. Optional Fragments WebGPU imports produce build warnings and WebGPU is not claimed; multiple Three instances are expected across the private module graph and existing host renderers. The four scoped PASS cases in the module matrix do not close the remaining 139 cases.

Entry screen and viewport revision · 14 November 2026

The map is above expandable project ResourceRows. Header refresh/create use Core's canonical tool slot beside close; the redundant internal title/status is removed. The map search matches all query words case-insensitively in any order across name/address/contractor/description and flies to a placed object. Map height, camera, basemap and visibility persist in architectural-projects/meta.json with revision checks, atomic replacement and one prior version. These small host documents work without Worker. Available presets include five OpenFreeMap styles and Esri satellite; provider credits are in the layer menu. Basemaps remain an external network dependency.

Each project has its own plus. It opens one-file IFC drag/drop/chooser, supported type BIM, name and version; server admission supplies the date. Empty material groups are omitted. Filled BIM/Point Cloud/3DGS groups and versions follow source admission order. At this dated acceptance only IFC was admitted, following the owner’s rejection of archive-only unsupported uploads. The qualified PTS/LAS/LAZ path is described in the current section above. Upload still streams to the single Worker runtime; Core retains only receipts and finished viewing products.

Map jitter came from Fragments calling PerspectiveCamera update methods after MapLibre supplied its Mercator-scaled matrices. The module's MapCamera adapter owns these matrices and preserves them across those callbacks. A regression checks the actual callback sequence and clip coordinates across camera movement; no donor source or standalone viewer camera is patched.

The shared Design Guideline now owns the Glass V4 viewport rule (docs/VIEWPORT_UI.md, registry and living catalog). Canonical viewport action groups receive glass on individual controls, with transparent spaces and no common capsule. Search/status surfaces use the same material. Existing observation/map/camera/point-cloud/PlayCanvas/replay controls consume the common rule; ten shared/domain surface files were migrated without renderer changes. Selected, disabled, focus and portal states retain the canonical behavior.

Current release sources and exact hashes are in vendor/bim manifests. See entry qualification for the scoped UI evidence. The earlier IFC qualification remains dated evidence, not a claim that all BIM features are finished.

Durable full-version retirement · 14 November 2026

This deletion qualification used host/Worker 0.1.2 and browser 0.1.7. Server source 08538ed7a78f1d6e880efe0cd375d9eee9c90df8, browser source a097fb46df57489ac8ca46e46798d254721b661e. All three entry levels use canonical ResourceRows: project, nonempty kind group, material/version. Material rows show name, version, admission date and a leading local-availability lamp. The group eye opens its last admitted version, downloads it if needed and does not silently substitute an older version while the latest is processing.

The trash action is full version retirement after explicit confirmation, separate from local-copy eviction. A 202 response records the durable task, closes the modal and leaves the row with a central indeterminate progress bar and small phase label instead of actions. Core and Worker each reconcile persisted journals without expiry: cancel corresponding transfers/execution, fence new reads/publications, wait for actual HTTP readers/process termination, delete manifest-owned files, acknowledge Worker retirement, then remove local copies and catalog/import/job/placement references. Shared originals belonging to retained versions remain; unknown/changed files block cleanup with a visible reason. Pin does not veto explicit full deletion. Source-only accepted imports can be retired before conversion finishes.

Worker remains one container on the same named volume, with the same CPU/RAM/PID/network boundary. All 22 unrelated containers present at deployment kept their identities. The six pre-existing source/product records were inventoried before replacement and verified afterward, including manifests, file lengths and SHA-256. The destructive qualification removed only its separately approved additional public fixture. No raw source is stored in Core.

Deletion-phase validation: 77 module Python tests, 14 browser contracts, 2 Core adapter tests, 1,596 Core frontend tests, typography/typecheck and production build. The deletion tests include a real forced process exit followed by queue/journal/scratch recovery, active-process cancellation, lost acknowledgement and partial unlink. Detailed current UI/Worker evidence is in the module's entry qualification; initial IFC facts above remain dated evidence.

Live UI fault qualification: with Worker stopped, confirmation enqueued the temporary version deletion and the row retained its central progress/status. Core restarted while Worker remained offline; the durable task and row returned. Starting the same Worker completed deletion automatically, then the row disappeared. Worker acknowledgement, removal of temporary source/product paths and local copy, empty scratch and preservation of all six previous materials were verified. Browser 0.1.7 also restores viewer admission after Core restart (three regressions plus live open-model restart); it does not readmit retired products. Final 1280/700 px layout and individual Glass V4 controls with transparent rails were checked. Design Guideline source 3d4c4aaa082d75de8e1a3a63abfa19b863f674c9. See the module entry qualification and compact deletion evidence for scope.

Viewer workspace qualification · 14 November 2026

Client 0.1.9 / host 0.1.4 retain Worker 0.1.2. The viewport fills the workspace; NavigationCube is upper left, Layers/Hierarchy/Viewport settings/Fit/Fullscreen are upper right. Header shows the project name after a slash and only back/add/ close. Layers and hierarchy reuse EditorDockLayout/Tree/ResourceRows from the scene editor; settings is the same Inspector pattern. No material editor or PlayCanvas runtime is copied. Shared Toolbar supplies hold/autohide and menus.

Viewport settings include background, grid/axes, perspective/orthographic camera, FOV/navigation, ambient/directional lighting, tone mapping/exposure, pixel ratio, frame rate, Fragments detail and palette placement/geometry/autohide. Preferences and layout live in Core meta.json with atomic revisioned persistence. Independent concurrent fields merge; conflicting fields do not overwrite a newer document. Old map-only/viewer clients preserve the new render settings.

Tools use public Fragments APIs. The right palette orders selection, isolation, measurements (ruler), section and view/projection after Hold. Projection offers only perspective and axonometry; axis directions belong to the navigation cube. Properties and volume live in each IFC row's information dropdown, opened by hover/click/keyboard activation.

The hierarchy contains only the open project: nonempty material types, versions, actual IFC spatial entities and geometry. Selection works scene→tree and tree→scene; ancestors expand and the tree scrolls to the selected row. Spatial category wrappers do not double indentation. Uncontained geometry remains accessible. Selecting a container highlights/isolates/calculates its descendants. Distance/edge/angle/planar polygon area and one axis-aligned section with position/reverse are current-view state, not persisted annotations. Advanced upstream drawing/editing/postproduction/section-fill components remain outside this slice. Source and scope: viewer qualification.

Validation: 83 host tests, 33 client tests, two Core adapter tests, shared docking, floating geometry, icon and typography gates, architecture/typecheck and production build. Final complete Core frontend suite: 1604 pass / 0 failures.

Earlier client 0.1.8 acceptance on School and LivingBIM confirmed project-only IFC structure, bidirectional selection/reveal, element and container isolation, row information and volume, projection/top view, fullscreen buttons, narrow 700 px settings and keyboard window handling. Escape closes information without reopening. Final browser console: no errors. Compact evidence is in the module's docs/evidence/viewer-workspace-qualification-20261114.json.

Current refinement: shared EditorDockLayout rounds only outside corners; square internal seams recalculate with the tile arrangement. Viewport Toolbar and top buttons share individual Glass V4, with no common capsule. Tree rows have both visibility eyes and plain i actions. Visibility applies to complete IFC subtrees without repeating a spatial traversal for each already known ID.

Navigation Cube settings include face/edge colors and independent transparency, text and hover colors; selection color is configurable. Host 0.1.4 validates and merges nested preferences, preserving new fields when old clients save.

Selection is one set across scene/tree/models: ordinary click replaces, Ctrl adds, Shift removes in the scene, Command toggles. Shift selects a displayed row range in the tree. The selection tool supports containment/crossing rectangles; hidden geometry is excluded. Normal empty-space click and Escape clear highlights and tree selection. Whole-set isolation uses the same IDs. Tests cover actual runtime pointer handling, not only set arithmetic. The Worker and data lifecycle did not change in this increment.

Current live refinement acceptance on LivingBIM: Shift range (3), Command removal (2), isolation, rectangle selection (480), empty-space clearing, fast subtree visibility, stacked exterior corners, actual toolbar glass, two view modes/cube navigation and color/opacity persistence after reload passed. Test preferences were restored; console errors: 0. The embedded browser rejected the unchanged system Fullscreen API during this pass, so fullscreen is not claimed as newly requalified. Earlier fullscreen evidence above remains dated acceptance.

Settings release · client 0.1.10 / host 0.1.5

Approved render defaults are portable module data, overlaid by host meta.json. The settings window has a 380 × 280 px minimum, responsive fields, a separately scrolling body and a full-width reset footer. Grouped Cmd/Ctrl+Z / redo covers committed settings and reset. Current preferences remain authoritative. Shared ColorField adds explicit screen eyedropper with a native-palette fallback; the white spectrum rim is removed and “Цвет с экрана” retained. The redundant HeaderProfile wrapper is removed, leaving one shared UserProfileMenu surface.

Validation: module 84 Python / 38 client tests; Core 2 adapter / 1604 frontend tests, architecture, types and production build pass. Live checks cover minimum size, no horizontal field clipping, body-only scroll, fixed footer, undo/redo, reload and a real other-tab revision conflict. EyeDropper launch/cancel checked; actual desktop pixel sampling not independently automated. Worker 0.1.2 is unchanged.

IFC lifecycle audit (2026-11-15): 90 module Python tests pass, including six new concurrent/dedup/ownership regressions. Separate fault probes reproduce unfinished intake, lost begin acknowledgement, accepted-source/no-job and publication recovery gaps; no claim of full crash or multiuser readiness. Installed Worker source files match the audited archive/queue/deletion/API code; live staging/scratch have no files. No operational Worker mutation was performed. See the full audit.