@floless/app 0.135.1 → 0.136.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/floless-server.cjs +309 -151
- package/dist/schemas/steel.model.v2.schema.json +11 -11
- package/dist/skills/floless-app-report-issue/SKILL.md +46 -9
- package/dist/skills/floless-app-steel-takeoff/SKILL.md +57 -59
- package/dist/skills/floless-app-steel-takeoff/references/elevation-registration.md +92 -0
- package/dist/templates/steel-model.flo +44 -4
- package/dist/web/commands-steel.js +6 -0
- package/dist/web/instructor.js +1 -0
- package/dist/web/steel-editor.html +238 -13
- package/dist/web/steel-model-v2-client-validation.js +20 -14
- package/dist/web/steel-model-v2-commands.js +8 -23
- package/dist/web/steel-model-v2-projection.js +96 -3
- package/dist/web/steel-plan-transform.js +51 -12
- package/package.json +1 -1
|
@@ -328,12 +328,12 @@
|
|
|
328
328
|
},
|
|
329
329
|
"intersectionRef": {
|
|
330
330
|
"type": "object",
|
|
331
|
-
"required": ["
|
|
331
|
+
"required": ["xAxisId", "yAxisId"],
|
|
332
332
|
"additionalProperties": false,
|
|
333
|
-
"description": "A
|
|
333
|
+
"description": "A grid intersection, naming each axis by its STABLE ID and by direction: `xAxisId` is the id of the line running in X and `yAxisId` the Y-direction line. Ids, never labels — a label is editable display text, and an axis with no label of its own silently takes a positional auto-name (`1,2,3…` / `A,B,C…`) that a ref could still match against the wrong gridline, placing the whole model metres out with no error anywhere (#935). Never infer direction from whether an id looks like a letter or number; real drawing sets use both conventions.",
|
|
334
334
|
"properties": {
|
|
335
|
-
"
|
|
336
|
-
"
|
|
335
|
+
"xAxisId": { "type": "string", "minLength": 1, "description": "`grid.axes[].id` of the X-direction grid line." },
|
|
336
|
+
"yAxisId": { "type": "string", "minLength": 1, "description": "`grid.axes[].id` of the Y-direction grid line." }
|
|
337
337
|
}
|
|
338
338
|
},
|
|
339
339
|
"member": {
|
|
@@ -430,9 +430,9 @@
|
|
|
430
430
|
"elevation_in": { "type": "number", "description": "This sheet's horizontal cut elevation, in inches. Member endpoint elevations remain explicit world-millimetre values and are never inferred from this view setting." },
|
|
431
431
|
"pt_per_ft": { "type": "number", "description": "Display points per foot (the drawing scale). Still needed: observations record local geometry in display px." },
|
|
432
432
|
"datum_at": { "$ref": "#/$defs/point2", "description": "Display-space point of the grid intersection that is the model origin on this sheet (authored by the takeoff skill — never chosen by it)." },
|
|
433
|
-
"datum_ref": { "$ref": "#/$defs/intersectionRef", "description": "Which
|
|
433
|
+
"datum_ref": { "$ref": "#/$defs/intersectionRef", "description": "Which grid intersection `datum_at` is, named by AXIS ID, when the sheet cannot print the model origin. ABSENT is a statement, not a gap: the takeoff skill omits it precisely when the sheet's datum IS the model origin." },
|
|
434
434
|
"control2_at": { "$ref": "#/$defs/point2", "description": "A SECOND, non-coincident control point, display space. One point fixes only WHERE a sheet sits; the vector between two carries rotation, mirroring and scale (epic §6.2)." },
|
|
435
|
-
"control2_ref": { "$ref": "#/$defs/intersectionRef", "description": "Which
|
|
435
|
+
"control2_ref": { "$ref": "#/$defs/intersectionRef", "description": "Which grid intersection `control2_at` is, named by AXIS ID. Required alongside `control2_at` — unlike `datum_ref` it is never omitted, because a second control is never the model origin, so its axes always have to be stated. NOT expressible here (this repo's validator implements no `dependentRequired`), so it is enforced by `checkModelReferences` as `control-pair-incomplete` rather than by this schema." },
|
|
436
436
|
"sourceRegistration": { "$ref": "#/$defs/sourceRegistration", "description": "Geometry-capable elevation/section registration. Forbidden semantically on plan views, which retain their existing plan registration authority." },
|
|
437
437
|
"clip": { "type": "array", "items": { "type": "number" }, "minItems": 4, "maxItems": 4, "description": "[x0,y0,x1,y1] display-space crop of the framing area." },
|
|
438
438
|
"raster_b64": { "type": "string", "description": "Base64 raster of the framing area. CONFIDENTIAL — never committed." },
|
|
@@ -567,9 +567,9 @@
|
|
|
567
567
|
"description": "The model grid: one grid in world millimetres, displayed on every sheet. Authoring notation uses relative X/Y spacing strings and absolute Z levels; every stored coordinate here is world millimetres.",
|
|
568
568
|
"properties": {
|
|
569
569
|
"on": { "type": "boolean", "description": "Grid visible (2D + 3D). Default true." },
|
|
570
|
-
"origin": { "$ref": "#/$defs/point2", "description": "The grid origin in world millimetres: the point where the first x and y axes cross. REQUIRED for every registered plan view — control2_ref is mandatory for a plan to be registered at all, and every control
|
|
571
|
-
"x": { "type": "string", "description": "Relative spacings along +X, comma-separated, e.g. \"0'-0\\\", 3*25'-0\\\"\"." },
|
|
572
|
-
"y": { "type": "string", "description": "Relative spacings along +Y, comma-separated." },
|
|
570
|
+
"origin": { "$ref": "#/$defs/point2", "description": "The grid origin in world millimetres: the point where the first x and y axes cross. REQUIRED for every registered plan view — control2_ref is mandatory for a plan to be registered at all, and every control ref resolves relative to this origin, so without it that plan has no usable registration." },
|
|
571
|
+
"x": { "type": "string", "description": "Relative spacings along +X, comma-separated, e.g. \"0'-0\\\", 3*25'-0\\\"\". EXPANDED, a repeat counts once per repetition — that example is two tokens but FOUR offsets — and the expanded count must equal the number of `axes` with `dir:'x'`. The first entry is the first axis's offset from `grid.origin` and is the only one that may be <= 0; axes are authored in +X order." },
|
|
572
|
+
"y": { "type": "string", "description": "Relative spacings along +Y, comma-separated, expanded-count-equals-`axes` and first-entry-from-origin exactly as `x`. Axes are authored in +Y order." },
|
|
573
573
|
"z": { "type": "string", "description": "Absolute level elevations, comma-separated." },
|
|
574
574
|
"labels_x": { "type": "string", "description": "Whitespace-separated label overrides for X lines; blank = auto 1,2,3…" },
|
|
575
575
|
"labels_y": { "type": "string", "description": "Whitespace-separated label overrides for Y lines; blank = auto A,B,C…" },
|
|
@@ -594,9 +594,9 @@
|
|
|
594
594
|
"required": ["id", "dir"],
|
|
595
595
|
"additionalProperties": false,
|
|
596
596
|
"properties": {
|
|
597
|
-
"id": { "type": "string", "minLength": 1, "description": "Stable axis id, unique across axes AND lines." },
|
|
597
|
+
"id": { "type": "string", "minLength": 1, "description": "Stable axis id, unique across axes AND lines. THIS is what a plan's registration controls resolve against (`datum_ref` / `control2_ref` name `xAxisId` / `yAxisId`), so it is identity and it must not be renamed casually." },
|
|
598
598
|
"dir": { "enum": ["x", "y", "z"], "description": "Which authored string this axis was parsed from. 'z' = a level." },
|
|
599
|
-
"label": { "type": "string", "maxLength": 40, "description": "Display text. NOT an identity
|
|
599
|
+
"label": { "type": "string", "maxLength": 40, "description": "Display text — the bubble name printed on the sheet. NOT an identity: it is editable, registration controls do NOT resolve against it, and an axis with no label of its own displays a positional auto-name instead." }
|
|
600
600
|
}
|
|
601
601
|
},
|
|
602
602
|
"gridLine": {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: floless-app-report-issue
|
|
3
|
-
description: File a diagnosed bug / idea / question from floless.app into the PRIVATE product log via the floless.io relay. Use when the user invokes /floless-app-report-issue, clicks "Report an issue" in the floless.app UI (a queued report or a copied prompt), or says "report this", "file a bug", "something broke in floless", "send feedback / a feature idea". It READS the live run evidence first (latest run trace, failing node + error, the .flo, exec code), offers a workaround when
|
|
3
|
+
description: File a diagnosed bug / idea / question from floless.app into the PRIVATE product log via the floless.io relay. Use when the user invokes /floless-app-report-issue, clicks "Report an issue" in the floless.app UI (a queued report or a copied prompt), or says "report this", "file a bug", "something broke in floless", "send feedback / a feature idea". It READS the live run evidence first (latest run trace, failing node + error, the .flo, exec code), offers a workaround grounded in the app's own command registry when another route exists, then composes a maintainer-ready report and sends it — always showing the exact text and confirming first. Read-only — it never re-runs a workflow node.
|
|
4
4
|
metadata:
|
|
5
|
-
version: 0.
|
|
5
|
+
version: 0.2.0
|
|
6
6
|
---
|
|
7
7
|
|
|
8
8
|
# floless.app — report an issue
|
|
@@ -33,8 +33,8 @@ Diagnosing must never change the user's model or data.
|
|
|
33
33
|
- **Only** offer a *full-workflow* re-run when **all** hold: the user explicitly asks, the app is
|
|
34
34
|
`runnable`, and the latest trace shows the previous run was **non-mutating** (read-only nodes).
|
|
35
35
|
Otherwise diagnose from the evidence already on disk.
|
|
36
|
-
- Everything below (`/api/health`, `/api/latest-run/:id`, `/api/app/:id`,
|
|
37
|
-
source) is read-only. Stay there.
|
|
36
|
+
- Everything below (`/api/health`, `/api/latest-run/:id`, `/api/app/:id`, the shipped `commands-*.js`,
|
|
37
|
+
reading the `.flo`/exec source) is read-only. Stay there.
|
|
38
38
|
|
|
39
39
|
## Discriminator + routing — keep the trackers clean
|
|
40
40
|
|
|
@@ -62,9 +62,42 @@ digraph { "health + identify app" -> "read evidence (READ-ONLY)" -> "root-cause
|
|
|
62
62
|
`errorMessage`, `events`. This is the spine of the diagnosis.
|
|
63
63
|
- `GET /api/app/<appId>` → the normalized topology + `.flo` source + each node's `config`
|
|
64
64
|
(incl. exec `code`). Read the failing node's code; pin `file:line`.
|
|
65
|
+
- **The app's own capability surface** — the shipped command registry, served by the local server.
|
|
66
|
+
Ask the app which modules it has rather than trusting a list here, because a new surface adds one
|
|
67
|
+
and every guard in the repo finds them by pattern:
|
|
68
|
+
```bash
|
|
69
|
+
curl -s http://127.0.0.1:4317/index.html | grep -o 'commands-[a-z0-9-]*\.js' | sort -u
|
|
70
|
+
```
|
|
71
|
+
Then `curl -s http://127.0.0.1:4317/<module>`. They total ~180 KB, so `grep` for the surface the
|
|
72
|
+
failure is on rather than reading them whole — and note the static files sit OUTSIDE the `/api/`
|
|
73
|
+
auth hooks, so they stay readable even when a subscription block is what broke the user's day.
|
|
74
|
+
Each `def('<id>', {…})` (a per-file alias for `Commands.define`, which you may also see spelled
|
|
75
|
+
out) is one declared action —
|
|
76
|
+
`label` (what it's called), `group` (where it is), `actsOn` (**what it acts on — the sentence the
|
|
77
|
+
UI reads out, and the only one present on every command**), `why` (optional keyword copy, missing
|
|
78
|
+
on about half), `risk` + `persistence` (what it costs), and `steps` where
|
|
79
|
+
`guidance: 'active-command'`.
|
|
80
|
+
- **Registered is not reachable.** An installed build serves its own packaged `web/`, so what you
|
|
81
|
+
read is what that user has rather than `master` — but a dev server serves the repo working tree
|
|
82
|
+
instead, and a self-update leaves an older page loaded, so confirm it is the server that served
|
|
83
|
+
the failing session before leaning on it. And the file lists what is REGISTERED: commands get
|
|
84
|
+
retired at runtime (the whole Dashboard group is, today, via `panels.js`), hidden, or disabled by
|
|
85
|
+
a live gate, while some controls are not registered at all. Treat a hit as a lead to confirm, never
|
|
86
|
+
as proof the button is on screen. If the read fails, say so — that is not "no workaround exists".
|
|
65
87
|
- Form a concrete **root-cause hypothesis** — not "it failed", but *why*.
|
|
66
|
-
3. **Offer a
|
|
67
|
-
already unstuck — that's the point.
|
|
88
|
+
3. **Offer a workaround in the moment** when the evidence supports one. The user often leaves
|
|
89
|
+
already unstuck — that's the point. Two shapes, in this order:
|
|
90
|
+
- **Another route to the same goal.** Match on `label` + `actsOn` (and `why` where it exists), then
|
|
91
|
+
name the `label` and `group` — "you can still do it, via *Compile* in the header". **Say what it
|
|
92
|
+
costs**, from `persistence` (required, so always there) and `risk`. **A missing `risk` means
|
|
93
|
+
UNSTATED, never safe** — `commands.js` defaults it to `[]` and the registry guard checks it only
|
|
94
|
+
when it is present, so silence there is not a clean bill. **Never hand over a `destructive` one as
|
|
95
|
+
a convenience** — `shell.discard-changes` is not a workaround for a failed save — and if you can't
|
|
96
|
+
say what a route costs, don't offer it as one. Prefer a declared id; if you name a control you
|
|
97
|
+
found some other way, say how you know it is there. Nothing matches? Say there is no workaround —
|
|
98
|
+
an honest one makes the report more urgent, not less.
|
|
99
|
+
- **A change to their own inputs or `.flo`**, when the fault is in the workflow rather than the app.
|
|
100
|
+
This shape has no command id by construction, so the grounding rule above does not reach it.
|
|
68
101
|
4. **Compose** the report from the template below: a diagnosed body, problem-first title.
|
|
69
102
|
5. **Privacy scrub + confirm (ALWAYS).** The private log is still real: include versions + a
|
|
70
103
|
sanitized summary by default. **Ask before** attaching the `.flo`, raw logs, a screenshot, or
|
|
@@ -88,6 +121,7 @@ digraph { "health + identify app" -> "read evidence (READ-ONLY)" -> "root-cause
|
|
|
88
121
|
| `GET /api/health` | versions + license state |
|
|
89
122
|
| `GET /api/latest-run/:id` | **read-only** structured trace of the app's most recent run |
|
|
90
123
|
| `GET /api/app/:id` | normalized topology + `.flo` source + node config/exec code |
|
|
124
|
+
| `GET /commands-<surface>.js` | the **shipped** command registry (five modules today — discover them, see step 2) — every declared action, with `label` / `group` / `actsOn` / `risk`; `commands.js` holds the closed vocabularies |
|
|
91
125
|
| `POST /api/report-issue` | send the composed report through the relay → `{ ok, ref }` |
|
|
92
126
|
|
|
93
127
|
## Report body template
|
|
@@ -110,7 +144,8 @@ digraph { "health + identify app" -> "read evidence (READ-ONLY)" -> "root-cause
|
|
|
110
144
|
- <what AWARE/floless should have done>
|
|
111
145
|
|
|
112
146
|
**Workaround given** (if any)
|
|
113
|
-
- <what you told the user to do right now
|
|
147
|
+
- <what you told the user to do right now — name the command id when it was another route,
|
|
148
|
+
so the maintainer can see the user is unblocked and how>
|
|
114
149
|
```
|
|
115
150
|
|
|
116
151
|
The local route stamps category → label and the relay adds `user-report` + the reporter id.
|
|
@@ -122,6 +157,8 @@ The local route stamps category → label and the relay adds `user-report` + the
|
|
|
122
157
|
relay files on their behalf. (The maintainer `gh` runbook is the separate `floless-app-log-issue`.)
|
|
123
158
|
- **Always confirm** the exact text before sending; default to versions + sanitized summary, and
|
|
124
159
|
ask before attaching anything richer.
|
|
125
|
-
- **Don't invent** node ids, errors,
|
|
126
|
-
confident diagnosis is worse than an honest "couldn't reproduce —
|
|
160
|
+
- **Don't invent** node ids, errors, a fix you can't support from the evidence, or **a route you
|
|
161
|
+
haven't grounded**. A wrong-but-confident diagnosis is worse than an honest "couldn't reproduce —
|
|
162
|
+
here's what I see", and a wrong-but-confident *workaround* costs the user more time than the bug
|
|
163
|
+
did. Naming a control that is retired, hidden, or gated is the same failure as inventing one.
|
|
127
164
|
- **One report per concern.** Don't bundle a bug and a feature idea into one.
|
|
@@ -7,7 +7,7 @@ description: >-
|
|
|
7
7
|
two-phase Drawing Filter process: first prepare and save the deterministic Filter, then read only the
|
|
8
8
|
selected evidence into model-global members, registered plan views, observations, and revision history.
|
|
9
9
|
metadata:
|
|
10
|
-
version: 0.
|
|
10
|
+
version: 0.32.0
|
|
11
11
|
---
|
|
12
12
|
|
|
13
13
|
# Steel Takeoff — read drawings into `steel.model/v2`
|
|
@@ -329,87 +329,85 @@ Inventory the whole set before reading individual members:
|
|
|
329
329
|
- connection callouts and the details or schedules they reference;
|
|
330
330
|
- revisions, clouds, addenda, and conflicting notes.
|
|
331
331
|
|
|
332
|
-
Read every kept Filter element in context. An element
|
|
333
|
-
|
|
334
|
-
|
|
332
|
+
Read every kept Filter element in context. An element the saved Filter excluded cannot support a new or
|
|
333
|
+
changed member. If a needed label or line was filtered out, stop and ask the user to adjust and save the
|
|
334
|
+
Filter; never silently broaden it.
|
|
335
335
|
|
|
336
336
|
### Grid and plan registration
|
|
337
337
|
|
|
338
|
-
Author one top-level model grid in world millimetres. Axis ids are stable and model-global
|
|
339
|
-
|
|
338
|
+
Author one top-level model grid in world millimetres. Axis ids are stable and model-global, and a
|
|
339
|
+
registration control names an id, never the editable bubble label — an axis without a label of its own
|
|
340
|
+
takes a positional auto-name, so a label-keyed control silently matches the wrong gridline and puts the
|
|
341
|
+
model metres out. Never read axis direction from whether an id is a letter.
|
|
340
342
|
|
|
341
|
-
Every plan view must declare `viewKind: "plan"`, `sheet`, `elevation_in`, `pt_per_ft
|
|
343
|
+
Every plan view must declare `viewKind: "plan"`, `sheet`, `elevation_in`, `pt_per_ft` and two
|
|
342
344
|
non-coincident registration controls:
|
|
343
345
|
|
|
344
|
-
- `datum_at`: the display
|
|
345
|
-
- `datum_ref`: its `{
|
|
346
|
-
- `control2_at`: the display
|
|
347
|
-
- `control2_ref`:
|
|
346
|
+
- `datum_at`: the display point of the chosen datum intersection;
|
|
347
|
+
- `datum_ref`: its `{xAxisId, yAxisId}` axis ids when it is not the model origin;
|
|
348
|
+
- `control2_at`: the display point of a second grid intersection;
|
|
349
|
+
- `control2_ref`: that intersection's `{xAxisId, yAxisId}` axis ids.
|
|
348
350
|
|
|
349
351
|
On an initial read, before saving the Filter shell, derive each framing-plan sheet's effective `pt_per_ft`
|
|
350
352
|
from the measured display spans of two widely separated, non-parallel labelled grid runs (normally one X
|
|
351
|
-
|
|
352
|
-
it from a grid whose dimensions were themselves derived using that scale. Fit the
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
`control2_at` as the endpoints of one checked run. Before freezing the shell, verify that their display
|
|
365
|
-
span differs by at most `2 pt` from `worldSpanMm * pt_per_ft / 304.8`; this prevents the runtime's fitted
|
|
366
|
-
registration scale from silently stretching an otherwise correct grid. Apply that fitted similarity
|
|
367
|
-
transform to both world-grid endpoints of the second, non-parallel checked run: each must land within
|
|
353
|
+
and one Y) and their printed grid dimensions. Never inherit scale from an older contract or infer
|
|
354
|
+
it from a grid whose dimensions were themselves derived using that scale. Fit the persisted value deterministically
|
|
355
|
+
from both runs: for printed lengths `f[i]` in feet and measured spans `p[i]` in points, use `pt_per_ft = round(sum(f[i] * p[i]) / sum(f[i]^2), 6)`. Re-read or refuse when either predicted span `f[i] *
|
|
356
|
+
pt_per_ft` differs from its measured span by more than `2 pt`; one `pt_per_ft` cannot represent greater
|
|
357
|
+
non-uniform distortion. A scale annotation inside the selected plan evidence is a nominal
|
|
358
|
+
cross-check only: `72 × paper inches per foot`, so `1/4" = 1'-0"` is `18 pt/ft`. Never rasterize an excluded title block for scale. PDFs are often replotted, so when nominal and derived
|
|
359
|
+
values disagree the printed dimensions are the authority; record the effective scale. Convert each checked printed run to millimetres and assert the
|
|
360
|
+
corresponding root-grid intersections have that same world separation; the PDF registration alone is not
|
|
361
|
+
proof, because its fitted scale can cancel an incorrect world grid. Use one checked run's endpoints as `datum_at` and `control2_at`. Before freezing the shell, verify that their display
|
|
362
|
+
span differs by at most `2 pt` from `worldSpanMm * pt_per_ft / 304.8`. The runtime enforces this and refuses
|
|
363
|
+
the plan otherwise, so an unverified guess is a failed read, not a quietly stretched grid.
|
|
364
|
+
Apply that fitted similarity transform to both world-grid endpoints of the second checked run: each lands
|
|
365
|
+
within
|
|
368
366
|
`2 pt` of its measured display endpoint. Negate display Y before comparing handedness (world is Y-up;
|
|
369
367
|
display is Y-down), then require the signed cross-product of the two run directions to keep the same sign
|
|
370
368
|
in world and normalized display space. This catches shear and reflected handedness that equal X/Y lengths
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
When an independently authored, unmodified IFC from the same model and drawing revision is available (
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
elevations. After the shell is frozen, the completed-model overlap is a verification only: if it fails,
|
|
387
|
-
abort and restart the initial read with a corrected shell rather than mutating registration or members.
|
|
369
|
+
cannot. Internally consistent wrong scale and grid values are not independent evidence. If this proof
|
|
370
|
+
fails after the Filter shell was saved, start a fresh initial read/checkpoint and
|
|
371
|
+
never mutate the frozen shell.
|
|
372
|
+
|
|
373
|
+
When an independently authored, unmodified IFC from the same model and drawing revision is available (the
|
|
374
|
+
original Tekla or design export, never one exported from this or an older FloLess contract), respect its declared
|
|
375
|
+
units and validate the provisional root grid and plan registration with it before the Filter shell is
|
|
376
|
+
saved. Without revision identity, use only surveyed or grid controls proven
|
|
377
|
+
unchanged between issues; a stale IFC may corroborate, never override, current drawing dimensions. Compare at least two corresponding grid or column locations and two separated dimensions. In plan,
|
|
378
|
+
compare either three non-collinear corresponding controls or two separated, non-parallel baselines, and
|
|
379
|
+
two separated corresponding elevations. A shared zero level alone
|
|
380
|
+
proves no Z scale. Do not rescale the IFC to make the native read look right. If provisional XY is wrong by a common
|
|
381
|
+
factor while the separated elevations prove Z is correct, fix the provisional plan registration and root
|
|
382
|
+
grid before Save; uniform XYZ scaling destroys the correct elevations. Once the shell is frozen the completed-model overlap is a verification only: if it fails, restart the
|
|
383
|
+
initial read with a corrected shell rather than mutating registration or members.
|
|
388
384
|
Show the verified overlap to the user before submitting the full read.
|
|
389
385
|
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
386
|
+
An elevation or section registers with `sourceRegistration`, not the controls above; see
|
|
387
|
+
`references/elevation-registration.md`.
|
|
388
|
+
|
|
389
|
+
**Narrow headless revision exception.** When floless.app's server-owned headless preamble says this is a
|
|
390
|
+
phase-one-only `revision-read`, exposes only the immutable leased PDF sources plus the request-scoped
|
|
391
|
+
contract/prepass calls, and requires the exact Drawing Filter save question, do not create an earlier
|
|
392
|
+
plan-confirmation checkpoint. Match framing pages only to plan sheet names already in that project's
|
|
393
|
+
current contract; if the match is absent or ambiguous, stop with `needs-you` rather than invent one. This exception never applies to an initial read, an
|
|
396
394
|
interactive session, or phase two, and it is not permission to read members before the Filter Save.
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
395
|
+
This phase-one prepass cannot change plan registration, so it cannot prove or repair an existing model's
|
|
396
|
+
scale. After Filter Save, phase two must run the source-led scale proof above. If it finds an existing
|
|
397
|
+
scale error, stop the revision and report the measured discrepancy; do not restart the scale-blind
|
|
398
|
+
prepass, partially rescale the evidenced subset, or submit a mixed-scale candidate. A global
|
|
401
399
|
correction cannot travel through this revision route: create a fresh project and run an initial model read
|
|
402
400
|
from the complete source set so every member is supported by selected evidence, then use the ordinary
|
|
403
|
-
review.
|
|
401
|
+
review. Keep the old project only as an inspectable archive.
|
|
404
402
|
|
|
405
403
|
⚠️ **This ONE plan-scope confirm covers both the filter pass AND the member read — they run on the
|
|
406
404
|
same sheet set. Getting the OK does NOT mean "go read members"; the very next thing you do is the
|
|
407
405
|
filter pass below, then hand off the Filter node. Do not let the confirm gate double as permission to
|
|
408
406
|
skip the filter** (that collision is exactly how the filter gets skipped and members are read with no filter block).
|
|
409
407
|
|
|
410
|
-
Ask the user which labelled grid intersection is global `(0,0,0)` if project knowledge does not
|
|
411
|
-
|
|
412
|
-
|
|
408
|
+
Ask the user which labelled grid intersection is global `(0,0,0)` if project knowledge does not say.
|
|
409
|
+
Never choose a convenient datum. Preserve the provisional shell's grid, plan order, sheet identity, cut
|
|
410
|
+
elevations and registration controls byte-for-byte in the first completed candidate.
|
|
413
411
|
|
|
414
412
|
### Find the members on a framing plan
|
|
415
413
|
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# Registering an elevation or section view
|
|
2
|
+
|
|
3
|
+
The plan idiom does not work here, and nothing about it fails loudly enough to notice on its own.
|
|
4
|
+
|
|
5
|
+
A PLAN registers with two control points that name grid intersections: `datum_at` / `datum_ref` and
|
|
6
|
+
`control2_at` / `control2_ref`. Those four fields are schema-valid on any view, and the plan transform
|
|
7
|
+
ignores them off a plan — so writing them on an elevation used to produce a document that validated,
|
|
8
|
+
registered nothing, and then blocked the read with `view-unregistered` pointing at the sheet rather than
|
|
9
|
+
at the four inert fields. They are refused there now (`plan-controls-on-non-plan-view`), and the refusal
|
|
10
|
+
names them.
|
|
11
|
+
|
|
12
|
+
An ELEVATION or SECTION registers with `sourceRegistration`.
|
|
13
|
+
|
|
14
|
+
## The shape
|
|
15
|
+
|
|
16
|
+
```jsonc
|
|
17
|
+
{
|
|
18
|
+
"sheet": "S5.1", "viewKind": "elevation", "pt_per_ft": 12, // REQUIRED on a registered view, and positive
|
|
19
|
+
"sourceRegistration": {
|
|
20
|
+
"version": 1,
|
|
21
|
+
"displayOrigin": [0, 100], // the frame's anchor, in display points
|
|
22
|
+
"worldOrigin": { "x": 0, "y": 0, "z": { "known": 0 } }, // the same point, in world mm
|
|
23
|
+
"worldU": [1, 0, 0], // where display +X points in the world
|
|
24
|
+
"worldV": [0, 0, 1], // where display +Y points in the world
|
|
25
|
+
"controls": [
|
|
26
|
+
{ "kind": "origin", "displayPoint": [0, 100], "worldPoint": { "x": 0, "y": 0, "z": { "known": 0 } }, "sourceElementIds": ["origin-mark"] },
|
|
27
|
+
{ "kind": "u", "displayPoint": [10, 100], "worldPoint": { "x": 254, "y": 0, "z": { "known": 0 } }, "sourceElementIds": ["u-dim"] },
|
|
28
|
+
{ "kind": "v", "displayPoint": [0, 90], "worldPoint": { "x": 0, "y": 0, "z": { "known": 254 } }, "sourceElementIds": ["v-dim"] }
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Exactly three controls, one of each kind. The `origin` control must repeat `displayOrigin` and
|
|
35
|
+
`worldOrigin` byte for byte — it is the same statement twice, and a mismatch is refused rather than
|
|
36
|
+
resolved in favour of one of them.
|
|
37
|
+
|
|
38
|
+
## Deriving the axes — do not assume them
|
|
39
|
+
|
|
40
|
+
`worldU` is the world direction display +X maps to. `worldV` is the world direction display UP maps to,
|
|
41
|
+
which is display **−Y** — see the minus sign in the round-trip below, and read the next paragraph before
|
|
42
|
+
you place a control. Both must be unit vectors and perpendicular to each other, within 1e-9.
|
|
43
|
+
|
|
44
|
+
Place the `u` control directly to the RIGHT of the origin on the sheet and the `v` control directly
|
|
45
|
+
ABOVE it. Then `worldU` is `u.worldPoint − origin.worldPoint` normalised and `worldV` is
|
|
46
|
+
`v.worldPoint − origin.worldPoint` normalised, and that is the whole derivation. Place them anywhere else
|
|
47
|
+
and it stops being true: a diagonal control mixes both axes, so subtracting it gives you a blend rather
|
|
48
|
+
than an axis. The validator does not require axis-aligned controls — it only checks that the frame you
|
|
49
|
+
declare reproduces every control — so nothing catches a blended axis except the round-trip below.
|
|
50
|
+
|
|
51
|
+
**Display Y runs DOWN.** A control ten points ABOVE the origin on the sheet has a display Y ten LOWER.
|
|
52
|
+
An elevation registered without that inversion comes out upside down and still passes its unit-vector
|
|
53
|
+
check, because both axes are still unit and still perpendicular — it is the world points that are wrong,
|
|
54
|
+
and the only thing that catches it is the round-trip below.
|
|
55
|
+
|
|
56
|
+
## The round-trip that proves it
|
|
57
|
+
|
|
58
|
+
For every control, with `mmPerPoint = 304.8 / pt_per_ft` and `(dx, dy)` its display offset from
|
|
59
|
+
`displayOrigin`:
|
|
60
|
+
|
|
61
|
+
world = worldOrigin + mmPerPoint * (dx * worldU − dy * worldV)
|
|
62
|
+
|
|
63
|
+
Each control's stated `worldPoint` must equal that within 1e-6 mm. The minus on the `dy` term is the
|
|
64
|
+
display-Y inversion; it is not a sign convention you may choose.
|
|
65
|
+
|
|
66
|
+
The `pt_per_ft` used is the VIEW's own, not the plan's, and it is required — a registration on a view
|
|
67
|
+
without a positive one is refused (`source-registration-scale`).
|
|
68
|
+
|
|
69
|
+
## When to author it — and it is EARLIER than you think
|
|
70
|
+
|
|
71
|
+
**On the Filter shell, before any observation exists.** The shell is saved first and the transaction
|
|
72
|
+
freezes `sourceRegistration` with the rest of the registration, so a frame added later fails the
|
|
73
|
+
completed candidate against the shell (`shell-changed`) and the only way out is to restart the
|
|
74
|
+
checkpoint. If you intend to read endpoints off an elevation, register it in the shell.
|
|
75
|
+
|
|
76
|
+
What that registration is REQUIRED for is any view whose observations are active and carry a non-empty
|
|
77
|
+
`endpointLineage`: those endpoints have to be placed in the model, and without a frame they cannot be, so
|
|
78
|
+
the read blocks on `view-unregistered` naming the sheet. But you cannot wait for the lineage to appear
|
|
79
|
+
before adding the frame — by then the shell is frozen.
|
|
80
|
+
|
|
81
|
+
A view you will not read endpoints from needs none, and an observation with no endpoint lineage needs no
|
|
82
|
+
geometric transform at all.
|
|
83
|
+
|
|
84
|
+
A view whose `viewKind` is neither `plan`, `elevation` nor `section` cannot place an endpoint by any
|
|
85
|
+
route, so lineage on it can never resolve — fix the view kind, not the registration.
|
|
86
|
+
|
|
87
|
+
## Verify before you save
|
|
88
|
+
|
|
89
|
+
Take one dimension printed on the elevation that neither `u` nor `v` was derived from, map both its ends
|
|
90
|
+
through the frame, and check the world distance against the printed value. A frame fitted to two
|
|
91
|
+
controls will always reproduce those two controls; a third, independent measurement is the only thing
|
|
92
|
+
that proves the frame and not just the arithmetic.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
app: steel-model
|
|
2
|
-
version: 0.6.
|
|
2
|
+
version: 0.6.1
|
|
3
3
|
display-name: Steel Model
|
|
4
4
|
publisher: floless
|
|
5
5
|
module: steel-detailer
|
|
@@ -20,6 +20,10 @@ exposes-as-agent: false
|
|
|
20
20
|
# Workflow changelog (FloLess-published). Newest first; the app shows entries newer than the
|
|
21
21
|
# installed version when offering an update. Plain-English — it surfaces to the user.
|
|
22
22
|
changelog:
|
|
23
|
+
- version: 0.6.1
|
|
24
|
+
summary: The example plan now carries the grid its registration points name
|
|
25
|
+
changes:
|
|
26
|
+
- "Changed: the example workflow ships a grid, and its two registration points name that grid's own lines. FloLess now checks that the distance drawn between them matches the distance the grid says they are apart, and refuses a sheet where they disagree — so a drawing lined up against the wrong gridline is caught instead of quietly placing your steel metres out. Nothing changes for a model you have already read."
|
|
23
27
|
- version: 0.6.0
|
|
24
28
|
summary: Profile Position follows the coordinate system in which it was authored
|
|
25
29
|
changes:
|
|
@@ -112,6 +116,18 @@ nodes:
|
|
|
112
116
|
members:
|
|
113
117
|
- { id: m1, profile: W10X33, role: beam, provenance: manual, from: { x: 0, y: 0, z: { known: 0 } }, to: { x: 6000, y: 0, z: { known: 0 } } }
|
|
114
118
|
- { id: m2, profile: HSS6X6X3/8, role: column, provenance: manual, from: { x: 0, y: 0, z: { known: 0 } }, to: { x: 0, y: 0, z: { known: 4500 } } }
|
|
119
|
+
grid:
|
|
120
|
+
on: true
|
|
121
|
+
origin: [0, 0]
|
|
122
|
+
x: "0'-0\", 25'-0\""
|
|
123
|
+
y: "0'-0\", 20'-0\""
|
|
124
|
+
labels_x: "1 2"
|
|
125
|
+
labels_y: "A B"
|
|
126
|
+
axes:
|
|
127
|
+
- { id: ax-x-1, dir: x, label: "1" }
|
|
128
|
+
- { id: ax-x-2, dir: x, label: "2" }
|
|
129
|
+
- { id: ax-y-1, dir: y, label: A }
|
|
130
|
+
- { id: ax-y-2, dir: y, label: B }
|
|
115
131
|
plans:
|
|
116
132
|
- sheet: EX-1
|
|
117
133
|
viewKind: plan
|
|
@@ -120,7 +136,7 @@ nodes:
|
|
|
120
136
|
pt_per_ft: 12
|
|
121
137
|
datum_at: [0, 0]
|
|
122
138
|
control2_at: [300, 0]
|
|
123
|
-
control2_ref: {
|
|
139
|
+
control2_ref: { xAxisId: ax-x-2, yAxisId: ax-y-1 }
|
|
124
140
|
memberRefs: [m1, m2]
|
|
125
141
|
template: steel-takeoff-summary
|
|
126
142
|
# NOTE: html-report does NOT template a sibling config key — `data: '{{ config.takeoff }}'`
|
|
@@ -138,6 +154,18 @@ nodes:
|
|
|
138
154
|
members:
|
|
139
155
|
- { id: m1, profile: W10X33, role: beam, provenance: manual, from: { x: 0, y: 0, z: { known: 0 } }, to: { x: 6000, y: 0, z: { known: 0 } } }
|
|
140
156
|
- { id: m2, profile: HSS6X6X3/8, role: column, provenance: manual, from: { x: 0, y: 0, z: { known: 0 } }, to: { x: 0, y: 0, z: { known: 4500 } } }
|
|
157
|
+
grid:
|
|
158
|
+
on: true
|
|
159
|
+
origin: [0, 0]
|
|
160
|
+
x: "0'-0\", 25'-0\""
|
|
161
|
+
y: "0'-0\", 20'-0\""
|
|
162
|
+
labels_x: "1 2"
|
|
163
|
+
labels_y: "A B"
|
|
164
|
+
axes:
|
|
165
|
+
- { id: ax-x-1, dir: x, label: "1" }
|
|
166
|
+
- { id: ax-x-2, dir: x, label: "2" }
|
|
167
|
+
- { id: ax-y-1, dir: y, label: A }
|
|
168
|
+
- { id: ax-y-2, dir: y, label: B }
|
|
141
169
|
plans:
|
|
142
170
|
- sheet: EX-1
|
|
143
171
|
viewKind: plan
|
|
@@ -146,7 +174,7 @@ nodes:
|
|
|
146
174
|
pt_per_ft: 12
|
|
147
175
|
datum_at: [0, 0]
|
|
148
176
|
control2_at: [300, 0]
|
|
149
|
-
control2_ref: {
|
|
177
|
+
control2_ref: { xAxisId: ax-x-2, yAxisId: ax-y-1 }
|
|
150
178
|
memberRefs: [m1, m2]
|
|
151
179
|
|
|
152
180
|
# ── node 3: view — interactive 3D model ──────────────────────────────────────
|
|
@@ -191,6 +219,18 @@ nodes:
|
|
|
191
219
|
members:
|
|
192
220
|
- { id: m1, profile: W10X33, role: beam, provenance: manual, from: { x: 0, y: 0, z: { known: 0 } }, to: { x: 6000, y: 0, z: { known: 0 } } }
|
|
193
221
|
- { id: m2, profile: HSS6X6X3/8, role: column, provenance: manual, from: { x: 0, y: 0, z: { known: 0 } }, to: { x: 0, y: 0, z: { known: 4500 } } }
|
|
222
|
+
grid:
|
|
223
|
+
on: true
|
|
224
|
+
origin: [0, 0]
|
|
225
|
+
x: "0'-0\", 25'-0\""
|
|
226
|
+
y: "0'-0\", 20'-0\""
|
|
227
|
+
labels_x: "1 2"
|
|
228
|
+
labels_y: "A B"
|
|
229
|
+
axes:
|
|
230
|
+
- { id: ax-x-1, dir: x, label: "1" }
|
|
231
|
+
- { id: ax-x-2, dir: x, label: "2" }
|
|
232
|
+
- { id: ax-y-1, dir: y, label: A }
|
|
233
|
+
- { id: ax-y-2, dir: y, label: B }
|
|
194
234
|
plans:
|
|
195
235
|
- sheet: EX-1
|
|
196
236
|
viewKind: plan
|
|
@@ -199,7 +239,7 @@ nodes:
|
|
|
199
239
|
pt_per_ft: 12
|
|
200
240
|
datum_at: [0, 0]
|
|
201
241
|
control2_at: [300, 0]
|
|
202
|
-
control2_ref: {
|
|
242
|
+
control2_ref: { xAxisId: ax-x-2, yAxisId: ax-y-1 }
|
|
203
243
|
memberRefs: [m1, m2]
|
|
204
244
|
|
|
205
245
|
# ── node 5: csv-export — write the bill of materials to a CSV file ────────────
|
|
@@ -1894,6 +1894,12 @@
|
|
|
1894
1894
|
def('steel.connections-delete', { label: 'Delete connections', actsOn: 'Removes every selected connection from the model', group: 'In the Inspect panel', persistence: 'working', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Their parent members remain. Undo restores the whole selection.' });
|
|
1895
1895
|
def('steel.review-list', { label: 'Connections needing review', actsOn: 'Lists the imported connections whose steel has moved since they were placed', group: 'In the steel editor header', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Listing them changes nothing in the model; picking one selects the steel it is watching.' });
|
|
1896
1896
|
def('steel.untracked-list', { label: 'Connections not being watched', actsOn: 'Lists the imported connections that are not being watched for moved steel', group: 'In the steel editor header', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Every connection placed before this feature existed is untracked. It is not a fault.' });
|
|
1897
|
+
// #935 — the plan-registration refusal surfaces. Listing and reading change nothing in the model; the
|
|
1898
|
+
// fix is a contract edit the user's terminal AI makes, which is why the narration says so out loud.
|
|
1899
|
+
def('steel.registration-list', { label: 'Sheets positioned wrong', actsOn: 'Lists the plan sheets whose registration points do not agree with the grid lines they name', group: 'In the steel editor header', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'Listing them changes nothing; picking one opens that sheet so you can see what is drawn out of place.' });
|
|
1900
|
+
def('steel.registration-select', { label: 'Open this sheet', actsOn: 'Switches the plan view to {instance}', group: 'In the registration list', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
|
|
1901
|
+
def('steel.registration-detail', { label: 'Registration details', actsOn: 'Shows the exact reason this sheet’s registration was refused, naming the contract fields to change', group: 'On the steel canvas', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'The plain-English warning is for you; this is the sentence your terminal AI needs.' });
|
|
1902
|
+
def('steel.registration-copy', { label: 'Copy reason', actsOn: 'Copies the exact registration refusal to the clipboard', group: 'On the steel canvas', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'This sheet cannot be corrected in the editor — paste the reason to your terminal AI and ask it to fix the registration.' });
|
|
1897
1903
|
def('steel.review-select', { label: 'Select this connection', actsOn: 'Selects {instance} from the review list', group: 'In the review list', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand', why: 'A watched connection selects the members it watches; an unwatched one opens the 3D view and selects the connection itself.' });
|
|
1898
1904
|
def('steel.connection-part-back', { label: 'Back to connection', actsOn: 'Selects the whole connection that owns this part', group: 'In the Inspect panel', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
|
|
1899
1905
|
def('steel.connection-part-edit', { label: 'Edit on parent member', actsOn: 'Selects the member that owns this connection part', group: 'In the Inspect panel', persistence: 'none', interaction: 'instant', risk: [], guidance: 'on-demand' });
|
package/dist/web/instructor.js
CHANGED
|
@@ -594,6 +594,7 @@
|
|
|
594
594
|
'In the grid panel', 'In the Inspect panel',
|
|
595
595
|
'In the Properties popup', 'In the snap override menu', 'In the dimension value popup', 'In the selection filter',
|
|
596
596
|
'In the review list', // the connection-review popover — a sibling of the selection filter, and it hangs off the header stats above
|
|
597
|
+
'In the registration list', // the SAME popover, different heading: it serves three header stats and names each list on screen (#935)
|
|
597
598
|
'In the ⋯ menu',
|
|
598
599
|
'In the ⋯ menu — Snapping', 'In the ⋯ menu — Display', 'In the ⋯ menu — Detailing',
|
|
599
600
|
'In the ⋯ menu — Model checks', 'In the ⋯ menu — Coordinate system', 'In the ⋯ menu — Session',
|