feat(bim): integrate acknowledged upload pause and converter progress

This commit is contained in:
DCCONSTRUCTIONS
2026-11-15 09:50:23 +03:00
parent 1a0b5b0bd7
commit 8e37ef6968
9 changed files with 58 additions and 28 deletions
+35 -5
View File
@@ -3,11 +3,11 @@
## Current cloud slice · 15 November 2026
Host/Worker package 0.2.0, portable viewer 0.2.3. 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.1, portable viewer 0.2.4. 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.
102 module Python / 41 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.
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.
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.
@@ -17,9 +17,39 @@ Portable client 0.2.3 owns whole-viewport/whole-dialog native file drop, Glass V
Real UI test admitted a 1000-point temporary cloud, showed progress after immediate close, survived navigation to Park, returned ready and was fully retired with owner approval/Worker acknowledgement. PTS selection was verified inside LivingBIM without reuploading the large Bridge file. An isolated DOM test covers actual drop handlers on viewport/header/footer, feedback, unsupported files, replacement and submit. A physical Finder drag was not automated. All 1604 Core frontend tests plus architecture, typography, typecheck/build passed. Full browser reload/exit still loses an unfinished File handle; beforeunload warns, and browser-session continuity is not advertised as crash-resumable transfer. Current worker remains available.
## Upload pause and processing progress · 15 November 2026
Portable client 0.2.4 and host/Worker 0.2.1 transmit 8 MiB acknowledged chunks.
Pause waits for the current chunk, keeps its accepted prefix on Worker and yields
the queue. The round play action promotes that file ahead of waiting files. Core
relays bounded buffers; raw sources never enter Core storage. Browser exit/reload
still loses the File handle: this is session pause, not browser-restart recovery.
Rows share the ready-layer text axis, a non-shrinking circular file icon and a
yellow activity lamp. Progress and icon-only transport action occupy the right
button region. Sealing reads «Сохранение исходного файла». Conversion shows a
named stage and measured percentage, with approximate time to the end of that
stage. Counts come from PTS/LAS, pinned Potree monitor and IFC callback. Stale
samples suppress ETA; verification/merge without a denominator is indeterminate.
Final installed image/source are recorded in vendor/bim/release.json. An isolated
temporary archive in that same container passed acknowledged-prefix recovery,
remaining-byte upload and real IFC conversion. Installed PTS/LAS/LAZ each passed
1000-point probes. All owned test directories were removed. The strict IFC
output allowlist permits only bounded regular progress files alongside declared
outputs; an atomic progress-file replacement race has a regression test.
Validation: 108 module Python, 43 client, one Node reader, two Core adapter and
1604 Core frontend tests; actual client XHR/pause/lost-reply and React intake
checks; types/architecture/typography/production build passed. Live catalog shows
Bridge and L3_HW locally ready; file icons remain circular (34.39 × 34.39 px),
console errors zero. L3 ready product is 1,340,845,850 bytes. No new manual large
upload/pause gesture or physical power-loss test is claimed. Unrelated checkout
edits and Worker containers were preserved. Core remains on port 8000.
## 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.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.
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.4 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.
@@ -29,7 +59,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: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.
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.
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.
@@ -47,7 +77,7 @@ Full evidence and limitations: [module qualification](https://git.dcserve.ru/dct
## 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 delivered IFC/PTS/LAS/LAZ slice is not full BIM acceptance. 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.