Integrate BIM project uniqueness and shared content lifecycle

This commit is contained in:
DCCONSTRUCTIONS
2026-11-15 10:29:45 +03:00
parent 91a18c580a
commit 71705ea862
9 changed files with 55 additions and 27 deletions
+4 -4
View File
@@ -10,7 +10,7 @@
"hasInstallScript": true,
"dependencies": {
"@noble/hashes": "^2.2.0",
"@nodedc/bim-viewer": "file:../../vendor/bim/nodedc-bim-viewer-0.2.5.tgz",
"@nodedc/bim-viewer": "file:../../vendor/bim/nodedc-bim-viewer-0.2.6.tgz",
"@nodedc/map-cesium-react": "file:../../../NODEDC_DESIGN_GUIDELINE/packages/map-cesium-react",
"@nodedc/page-patterns": "file:../../../NODEDC_DESIGN_GUIDELINE/packages/page-patterns",
"@nodedc/tokens": "file:../../../NODEDC_DESIGN_GUIDELINE/packages/tokens",
@@ -884,9 +884,9 @@
}
},
"node_modules/@nodedc/bim-viewer": {
"version": "0.2.5",
"resolved": "file:../../vendor/bim/nodedc-bim-viewer-0.2.5.tgz",
"integrity": "sha512-W9U1zNjrnbkJeaLBJfPnbkcjLjKEtm/GrjKt3c/eQQS2hu9KrD8Mt8YFw+VGtzUflfXucR3S1BX8R6Ej8DHOCA==",
"version": "0.2.6",
"resolved": "file:../../vendor/bim/nodedc-bim-viewer-0.2.6.tgz",
"integrity": "sha512-G4hnJv6ZKi1VHe1RzoPx1bLWvFB4Wt2ciKf/A4wznHdkZ5hfq129rtTYTTImbyx/+WxmF2hjuNNDrRm01GlqDQ==",
"peerDependencies": {
"@nodedc/ui-react": "0.7.0",
"react": ">=19 <20",
+1 -1
View File
@@ -15,7 +15,7 @@
},
"dependencies": {
"@noble/hashes": "^2.2.0",
"@nodedc/bim-viewer": "file:../../vendor/bim/nodedc-bim-viewer-0.2.5.tgz",
"@nodedc/bim-viewer": "file:../../vendor/bim/nodedc-bim-viewer-0.2.6.tgz",
"@nodedc/map-cesium-react": "file:../../../NODEDC_DESIGN_GUIDELINE/packages/map-cesium-react",
"@nodedc/page-patterns": "file:../../../NODEDC_DESIGN_GUIDELINE/packages/page-patterns",
"@nodedc/tokens": "file:../../../NODEDC_DESIGN_GUIDELINE/packages/tokens",
+32 -4
View File
@@ -3,11 +3,11 @@
## Current cloud slice · 15 November 2026
Host/Worker package 0.2.1, portable viewer 0.2.5. 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.
Host/Worker package 0.2.2, portable viewer 0.2.6. 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; ndc-bim-worker was stopped for that offline probe and is now running again for intake/source exports. Canonical Core 8000 remains running.
108 module Python / 43 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](https://git.dcserve.ru/dctouch/NODEDC_BIM_MOD/src/branch/feat/portable-bim-ifc/docs/point-clouds.md). Older sections below are dated acceptance history.
115 module Python / 44 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. 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](https://git.dcserve.ru/dctouch/NODEDC_BIM_MOD/src/branch/feat/portable-bim-ifc/docs/point-clouds.md). 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.
@@ -54,9 +54,37 @@ may wrap inside its own region; the bar remains vertically centred. Worker and
the upload protocol are unchanged. Client build/types and integrated Core
typography/type/build gates passed; no live transfer was restarted for this edit.
## Project identity and shared products · 15 November 2026
Worker rejects a second source SHA-256 inside one root project, even with a
different filename, asset or version. The decision follows byte transfer and
server hashing, before conversion. A durable project/hash claim serializes
concurrent admission and survives interrupted publication. Client 0.2.6 reports
«Этот файл уже добавлен в проект. Повторная загрузка не требуется.», releases
the rejected File and queue row, then continues the next queued operation.
Across projects, sources and compatible immutable prepared files are hardlinked
on Worker; Core also links verified local members instead of downloading/copying
them again. Target-project authorization and separate manifests remain. Matching
requires source hash/length/kind/format/units, recipe/version and converter family.
Deleting one reference preserves the others; removing the last owner reclaims
the physical files. Hardlink failure is an error, never silent copy fallback.
Installed real IFC/PTS/LAS/LAZ checks confirmed one conversion, same inode across
two project products and Core copies, zero second member downloads, duplicate
rejection, and first/last-owner deletion. They ran in isolated temporary archives
inside the existing container. Actual LivingBIM retains the early L2_HW locally;
the owner-approved later duplicate was removed with Worker acknowledgement.
Catalog shows one L2_HW. Production staging/scratch have no files. Earlier
historical duplicate records elsewhere were not migrated. Full actor/ACL and
power-loss readiness are not claimed. All changes belong to the portable module;
Core changed only package pins/manifests and this integration record.
Evidence: [shared content qualification](https://git.dcserve.ru/dctouch/NODEDC_BIM_MOD/src/branch/feat/portable-bim-ifc/docs/evidence/shared-content-qualification-20261115.json).
## Ownership and integration
The implementation belongs to [NODEDC_BIM_MOD](https://git.dcserve.ru/dctouch/NODEDC_BIM_MOD), branch `feat/portable-bim-ifc`. Core consumes Python host services 0.2.1 and browser workspace 0.2.5 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.
The implementation belongs to [NODEDC_BIM_MOD](https://git.dcserve.ru/dctouch/NODEDC_BIM_MOD), branch `feat/portable-bim-ifc`. Core consumes Python host services 0.2.2 and browser workspace 0.2.6 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.
@@ -66,7 +94,7 @@ The backend admits only the local operator boundary (loopback peer, loopback Hos
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:338b12f57ba45333745776cc7ee91b8b16952bef5639841533c3bf7c1118648a` (module source `2ef4d4bc42e062500e2380a6221287f2f273df6f`). It has an internal network, no published ports or Docker socket, read-only root, UID 10001 and 4 CPU / 8 GiB / 128 PID limits. Other Worker containers and the existing PlayCanvas simulation were not changed by this integration.
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:801d11acd171ea52ee77e4be2e5f1af6be170e5efd8651d526dcb38594f0c22b` (module source `9f84058e57097a48312fee21b68250159ef72533`). It has an internal network, no published ports or Docker socket, read-only root, UID 10001 and 4 CPU / 8 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.
+2 -2
View File
@@ -18,7 +18,7 @@ dependencies = [
"httpx>=0.28,<1",
"lz4>=4.4,<5",
"missioncore-plugin-sdk",
"nodedc-bim-module==0.2.1",
"nodedc-bim-module==0.2.2",
"paho-mqtt>=2.1,<3",
"pillow>=12,<13",
"pyyaml>=6.0,<7",
@@ -29,7 +29,7 @@ dependencies = [
]
[tool.uv.sources]
nodedc-bim-module = { path = "vendor/bim/nodedc_bim_module-0.2.1-py3-none-any.whl" }
nodedc-bim-module = { path = "vendor/bim/nodedc_bim_module-0.2.2-py3-none-any.whl" }
missioncore-plugin-sdk = { path = "packages/plugin-sdk", editable = true }
[project.optional-dependencies]
Generated
+4 -4
View File
@@ -479,8 +479,8 @@ wheels = [
[[package]]
name = "nodedc-bim-module"
version = "0.2.1"
source = { path = "vendor/bim/nodedc_bim_module-0.2.1-py3-none-any.whl" }
version = "0.2.2"
source = { path = "vendor/bim/nodedc_bim_module-0.2.2-py3-none-any.whl" }
dependencies = [
{ name = "fastapi" },
{ name = "httpx" },
@@ -488,7 +488,7 @@ dependencies = [
{ name = "uvicorn" },
]
wheels = [
{ filename = "nodedc_bim_module-0.2.1-py3-none-any.whl", hash = "sha256:0ddf51d5223fbda3a7398c261b8f28b5c0e5c3b1f037449426483e3c19a35b5b" },
{ filename = "nodedc_bim_module-0.2.2-py3-none-any.whl", hash = "sha256:c616ccd772686a15b850173859ad4b51326280af5e32b4883e6545bcd3530679" },
]
[package.metadata]
@@ -560,7 +560,7 @@ requires-dist = [
{ name = "httpx", specifier = ">=0.28,<1" },
{ name = "lz4", specifier = ">=4.4,<5" },
{ name = "missioncore-plugin-sdk", editable = "packages/plugin-sdk" },
{ name = "nodedc-bim-module", path = "vendor/bim/nodedc_bim_module-0.2.1-py3-none-any.whl" },
{ name = "nodedc-bim-module", path = "vendor/bim/nodedc_bim_module-0.2.2-py3-none-any.whl" },
{ name = "paho-mqtt", specifier = ">=2.1,<3" },
{ name = "pillow", specifier = ">=12,<13" },
{ name = "pyyaml", specifier = ">=6.0,<7" },
+5 -5
View File
@@ -1,12 +1,12 @@
{
"schema_version": "missioncore.bim-client-release/v1",
"repository": "https://git.dcserve.ru/dctouch/NODEDC_BIM_MOD",
"source_commit": "4d2b5fe61e5fe416effbce69057a96cf2edc3505",
"package": "nodedc-bim-viewer-0.2.5.tgz",
"sha256": "43ae2b3577955fc186df04c813c0774b01a1b7cc8d752f444d7833b17c381738",
"source_commit": "9f84058e57097a48312fee21b68250159ef72533",
"package": "nodedc-bim-viewer-0.2.6.tgz",
"sha256": "e6ab36b88d1aed778055f7866b9cad5c73b1b1a6a8f08897a83e1494fa7038ed",
"types": "pass",
"contract_tests": 43,
"visual_acceptance": "CSS-only alignment refinement: upload bar, status and transport action share one centre axis in catalog and Layers. Existing upload/converter behaviour unchanged; build/type/typography validation recorded in docs/BIM_MODULE.md.",
"contract_tests": 44,
"visual_acceptance": "Duplicate source intake receives canonical notification; rejected File/queue row removed and next queued transfer proceeds. Existing composition unchanged.",
"evidence": "docs/BIM_MODULE.md",
"qualification_date": "2026-11-15",
"design_guideline_commit": "70d5d8b3851df0d41233b46b6d39f5721508562b",
Binary file not shown.
Binary file not shown.
+7 -7
View File
@@ -1,13 +1,13 @@
{
"schema_version": "missioncore.bim-release/v1",
"repository": "https://git.dcserve.ru/dctouch/NODEDC_BIM_MOD",
"source_commit": "2ef4d4bc42e062500e2380a6221287f2f273df6f",
"package": "nodedc_bim_module-0.2.1-py3-none-any.whl",
"sha256": "0ddf51d5223fbda3a7398c261b8f28b5c0e5c3b1f037449426483e3c19a35b5b",
"python_tests": 108,
"source_commit": "9f84058e57097a48312fee21b68250159ef72533",
"package": "nodedc_bim_module-0.2.2-py3-none-any.whl",
"sha256": "c616ccd772686a15b850173859ad4b51326280af5e32b4883e6545bcd3530679",
"python_tests": 115,
"node_reader_tests": 1,
"scope": "Acknowledged source chunks, pause/resume offsets and real converter stage progress/ETA",
"scope": "Project SHA-256 uniqueness; compatible cross-project Worker product reuse and Core hardlinks",
"qualification_date": "2026-11-15",
"worker_source_commit": "2ef4d4bc42e062500e2380a6221287f2f273df6f",
"worker_image": "sha256:338b12f57ba45333745776cc7ee91b8b16952bef5639841533c3bf7c1118648a"
"worker_source_commit": "9f84058e57097a48312fee21b68250159ef72533",
"worker_image": "sha256:801d11acd171ea52ee77e4be2e5f1af6be170e5efd8651d526dcb38594f0c22b"
}