@floless/app 0.136.0 → 0.137.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.
@@ -17,10 +17,10 @@
17
17
  "items": { "$ref": "#/$defs/member" },
18
18
  "description": "Model-level physical members in world millimetres. Member ids are unique across the whole model."
19
19
  },
20
- "plans": { "type": "array", "items": { "$ref": "#/$defs/plan" }, "description": "Framing sheets, each a horizontal cut plane. A plan DISPLAYS members and records observations about them; it does not own them." },
20
+ "plans": { "type": "array", "items": { "$ref": "#/$defs/plan" }, "description": "Drawing VIEWS, one per row (#938) — a framing plan's horizontal cut plane, but also an elevation or a section, per the row's viewKind. Several rows may share one physical `sheet`; `id` is what identifies a row and is unique across the model. A view DISPLAYS members and records observations about them; it does not own them." },
21
21
  "grid": { "$ref": "#/$defs/modelGrid", "description": "The ONE model grid, in world mm. Nullable/absent: the model grid activates with persisted v2 (epic §13), so v2 must be able to hold one before anything builds it." },
22
22
  "target_confidence": { "type": "number", "minimum": 0, "maximum": 100, "description": "User's per-read confidence target (%)." },
23
- "active": { "type": "integer", "description": "Index into plans of the active sheet." },
23
+ "active": { "type": "integer", "description": "Index into plans of the active VIEW — a row, not a page; one page may hold several." },
24
24
  "palette": { "type": "array", "items": { "type": "string" }, "description": "Default per-index profile colours." },
25
25
  "weights": { "type": "object", "additionalProperties": { "type": ["number", "null"] }, "description": "profile -> plf, from the AISC lookup. null for an unresolved profile." },
26
26
  "profile_colors": { "type": "object", "additionalProperties": { "type": "string" }, "description": "profile -> #hex user overrides." },
@@ -422,9 +422,10 @@
422
422
  "type": "object",
423
423
  "required": ["sheet", "viewKind"],
424
424
  "additionalProperties": false,
425
- "description": "One framing sheet, as a horizontal CUT PLANE. It no longer owns members: `elevation_in` fixes it in height, the authored controls fix it in plan, `memberObservations` records what its drawing actually showed, and `memberRefs` assigns presentation for members it displays but never observed. Ownership and observation are different things and only ownership disappears (epic §4) — a sheet whose drawing supplied 2 column observations must still DISPLAY the 20 columns crossing its elevation.",
425
+ "description": "One DRAWING VIEW (#938), which for a plan view is a horizontal CUT PLANE. It no longer owns members: `elevation_in` fixes it in height, the authored controls fix it in plan, `memberObservations` records what its drawing actually showed, and `memberRefs` assigns presentation for members it displays but never observed. Ownership and observation are different things and only ownership disappears (epic §4) — a sheet whose drawing supplied 2 column observations must still DISPLAY the 20 columns crossing its elevation. A row is a VIEW rather than a page because one page routinely carries several: five braced-frame elevations on one sheet, each in its own world plane, is ordinary practice and had no legal representation at all while `sheet` was the identity.",
426
426
  "properties": {
427
- "sheet": { "type": "string", "minLength": 1, "description": "Sheet number, e.g. S-202. Unique across plans." },
427
+ "id": { "type": "string", "minLength": 1, "pattern": "\\S", "description": "This view's identity, unique across plans. `pattern` requires a non-whitespace character: `minLength` alone admitted \" \", which the resolvers correctly read as stating no identity and therefore silently fell back to `sheet` — so a whitespace id collided with a sibling legitimately named after the page instead of being refused. ABSENT is a statement, not a gap: it means this row's `sheet` name IS its view id, which is what every document written before #938 says. Registration, drawing scale, view kind, endpoint analysis scope, revision pairing and editor selection are keyed by this; the raster, the Drawing Filter binding, page previews, detail bubbles and evidence provenance stay keyed by `sheet`." },
428
+ "sheet": { "type": "string", "minLength": 1, "description": "The PHYSICAL page this view was drawn on, e.g. S-202. NOT unique across plans — several views may share one page. What must stay unique is the RESOLVED view id (`id`, or this name for a row that states none), so two rows on one page need at least one of them to name itself. When a page carries exactly one view, omitting `id` makes this the view id too." },
428
429
  "viewKind": { "enum": ["plan", "elevation", "section", "unknown"], "description": "The reader's explicit classification of this sheet. `unknown` means the source did not establish a kind; it is not a default. Plans use datum/control registration; elevation and section views require explicit sourceRegistration before their geometry can be transformed." },
429
430
  "title": { "type": "string" },
430
431
  "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." },
@@ -829,7 +830,7 @@
829
830
  "properties": {
830
831
  "v": { "const": 1 },
831
832
  "kind": { "enum": ["grid-x", "grid-y"] },
832
- "sheet": { "type": "string", "minLength": 1 },
833
+ "sheet": { "type": "string", "minLength": 1, "description": "The PHYSICAL page whose grid this view was generated from — provenance, never a view lookup (#938). It resolves against the pages the plan rows were read from, so a page carrying several views satisfies it once." },
833
834
  "axisId": { "type": "string", "minLength": 1, "description": "grid.axes[].id of the matching direction." },
834
835
  "label": { "type": "string", "description": "Display text cache." },
835
836
  "at": { "type": "number" },
@@ -845,7 +846,7 @@
845
846
  "properties": {
846
847
  "v": { "const": 1 },
847
848
  "kind": { "const": "level" },
848
- "sheet": { "type": "string", "minLength": 1 },
849
+ "sheet": { "type": "string", "minLength": 1, "description": "The PHYSICAL page whose grid this view was generated from — provenance, never a view lookup (#938). It resolves against the pages the plan rows were read from, so a page carrying several views satisfies it once." },
849
850
  "axisId": { "type": "string", "minLength": 1, "description": "grid.axes[].id with dir 'z'." },
850
851
  "label": { "type": "string" },
851
852
  "at": { "type": "number" },
@@ -2,7 +2,7 @@
2
2
  name: floless-app-steel-model
3
3
  description: The front-door guide for turning a structural steel drawing set into an editable native steel.model/v2 model in floless.app. It orchestrates project setup, set knowledge, AWARE detailer agents, Drawing Filter review, registered plan views, model reading, connection detailing, clash checks, and exports. Use for asks such as "model this steel job from the drawings", "take off this whole set", "start a steel model project", or "/floless-app-steel-model". It is re-runnable and preserves the Filter → Save → read → review → History process end to end.
4
4
  metadata:
5
- version: 0.10.1
5
+ version: 0.11.0
6
6
  ---
7
7
 
8
8
  # Steel Model — guide a steel drawing set into an editable model
@@ -193,13 +193,14 @@ with an explicit OK at each kind (this is the interactive heart — never one-sh
193
193
 
194
194
  - **Framing plans** — the sheets that get read into members. Confirm the list before reading.
195
195
  - **Elevations / sections** — used for member heights (TOS/BOS), moment-frame schedules, and as
196
- jump targets for clickable callouts (stage 6). Confirm which sheets these are.
196
+ jump targets for clickable callouts (stage 6). Confirm which sheets these are **and how many views
197
+ each carries** — several elevations on one sheet are parallel planes far apart, so each is its own
198
+ `plans[]` row with its own `id` and registration.
197
199
  - **Details — CHASED TO A FIXED POINT, not one hop.** The plans' callouts get you to the first rank of
198
200
  detail sheets; those details then reference further sheets, usually for the numbers (a schedule held
199
201
  elsewhere, a related connection type drawn on another sheet), and those may reference on again. Walk the
200
202
  references sheet-to-sheet until a pass turns up nothing new, and confirm the WHOLE resolved set with the
201
- user, not just the sheets the plans happened to name. Follow references written as PROSE inside a detail,
202
- not only drawn bubbles. If the chain leaves the set, say which sheet is missing and what it cost: a
203
+ user. Follow references written as PROSE inside a detail, not only drawn bubbles. If the chain leaves the set, say which sheet is missing and what it cost: a
203
204
  connection whose schedule sheet is absent has an arrangement but no sizes, and must be reported that way
204
205
  rather than read as complete. (See `reading-structural-drawings` → "The set is a GRAPH".)
205
206
  - **A sample line + profile** — on the first plan, read ONE member (its segment + profile label)
@@ -213,13 +214,13 @@ With the project, knowledge, agents, and classification confirmed, drive the act
213
214
  the user at the editor:
214
215
 
215
216
  **Carry one sticky completion ledger from Filter to publication.** User follow-ups add corrections to
216
- that ledger; they never replace its earlier obligations. The server-owned steel manifest is the ledger's
217
+ it; they never replace its earlier obligations. The server-owned steel manifest is the ledger's
217
218
  inventory, and every page, Filter layer, candidate line, reference/detail/connection marker, member,
218
219
  and new or changed joint stays `open` until it has evidence, an explicit reviewed disposition, or a
219
- named RFI/refusal. Do not summarize an open row away and do not declare the model complete because it
220
- looks complete. Completion means the `/revision-read/audit` response is `read-complete` for the exact
221
- candidate and attestation that are submitted, and the published History row carries the matching receipt.
222
- A blocked audit is the remaining checklist, not permission to stop enforcing the original skill.
220
+ named RFI/refusal. Do not summarize an open row away, and do not declare the model complete because it
221
+ looks complete. Completion means the `/revision-read/audit` response is `read-complete` for the exact candidate and
222
+ attestation submitted, and the published History row carries the matching receipt.
223
+ A blocked audit is the remaining checklist, not permission to stop enforcing the skill.
223
224
 
224
225
  - **Read each framing plan** via **`floless-app-steel-takeoff`** — it runs the filter pre-stage
225
226
  (isolate the steel linework by layer/thickness/colour), the vision read, the AISC/EN/BS lookup
@@ -230,7 +231,7 @@ A blocked audit is the remaining checklist, not permission to stop enforcing the
230
231
  `steel-model` app; multi-sheet sets ride the model's plan views and switcher.
231
232
  - **Pre-fill the connection library** from `company-rules.md` (stage 2): emit the firm's rows into
232
233
  the contract's `connections[]` with `source:"company-rules"`; the user reviews/assigns them per
233
- member end in the editor's **Connections** panel (the per-end picker + confidence card).
234
+ member end in the editor's **Connections** panel.
234
235
  - **Read the CHASED details into that same library — this is the point of chasing them.** Once the
235
236
  reference graph is resolved (stage 5), each terminal detail says how its connection is actually built.
236
237
  Put that on the `connections[]` row it belongs to, with `source:"drawing"`:
@@ -239,8 +240,8 @@ A blocked audit is the remaining checklist, not permission to stop enforcing the
239
240
  - `recipe.kind` — what it builds (`shear-plate`, `base-plate`, `brace-gusset`). Pick the one the detail
240
241
  actually draws rather than the nearest one that builds: a brace detail is a `brace-gusset`, not a
241
242
  `shear-plate` with different numbers — the two weld to different places, and only the gusset sets the
242
- brace back off the member it frames into. A detail aimed at a brace also needs that member's
243
- `memberType` to say `brace`, or the connection is refused;
243
+ brace back off the member it frames into. A brace detail also needs that member's `memberType` to
244
+ say `brace`, or the connection is refused;
244
245
  - `recipe.params` — the numbers on the typical figure itself (plate thickness, weld leg, bolt Ø);
245
246
  - `recipe.schedule[]` — the table that varies those numbers by member size, **which often lives on the
246
247
  sheet the detail points AT rather than the detail's own sheet**, so it only exists if the chain was
@@ -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.32.0
10
+ version: 0.33.0
11
11
  ---
12
12
 
13
13
  # Steel Takeoff — read drawings into `steel.model/v2`
@@ -305,14 +305,14 @@ carrying it, the report counts only the ones this verdict dismissed through it.
305
305
 
306
306
  Use the authoritative local request address carried in the queued request. Fetch the current request and
307
307
  read its `project`, `appId`, `requestId`, source references, current model version, and contract ETag.
308
- Work only in that named project and only on that request. Keep the ETag with the version you read. If the
309
- request or model changes while you are reading, stop, fetch both again, and re-check what is still valid.
308
+ Work only in that project and on that request. Keep the ETag with the version you read. If the request or
309
+ model changes while you read, stop, fetch both again, and re-check what is still valid.
310
310
  Do not clear a drawing-read request yourself: the successful drawing-read route clears it or stages it
311
311
  for review, and the failure route records why it could not finish.
312
312
 
313
313
  For the first read, the current contract is a schema-valid provisional native model with `members: []`,
314
- registered `plans[]`, and the saved `filter`. It is not a historical version yet. A later read starts
315
- from the current committed model and proposes a candidate; it does not overwrite the working tree.
314
+ registered `plans[]` and the saved `filter` — not a historical version yet. A later read starts from the
315
+ committed model and proposes a candidate; it does not overwrite the working tree.
316
316
 
317
317
  ## Read the drawings
318
318
 
@@ -356,7 +356,7 @@ from both runs: for printed lengths `f[i]` in feet and measured spans `p[i]` in
356
356
  pt_per_ft` differs from its measured span by more than `2 pt`; one `pt_per_ft` cannot represent greater
357
357
  non-uniform distortion. A scale annotation inside the selected plan evidence is a nominal
358
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
359
+ values disagree the printed dimensions win; record the effective scale. Convert each checked printed run to millimetres and assert the
360
360
  corresponding root-grid intersections have that same world separation; the PDF registration alone is not
361
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
362
  span differs by at most `2 pt` from `worldSpanMm * pt_per_ft / 304.8`. The runtime enforces this and refuses
@@ -366,13 +366,11 @@ within
366
366
  `2 pt` of its measured display endpoint. Negate display Y before comparing handedness (world is Y-up;
367
367
  display is Y-down), then require the signed cross-product of the two run directions to keep the same sign
368
368
  in world and normalized display space. This catches shear and reflected handedness that equal X/Y lengths
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.
369
+ cannot. Internally consistent wrong scale and grid values are not independent evidence. If this proof fails
370
+ after the Filter shell was saved, start a fresh initial read and never mutate the frozen shell.
372
371
 
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
372
+ When an independently authored, unmodified IFC from the same model and drawing revision is available (never one
373
+ exported from this or an older FloLess contract), respect its declared units and validate the provisional root grid and plan registration with it before the Filter shell is
376
374
  saved. Without revision identity, use only surveyed or grid controls proven
377
375
  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
376
  compare either three non-collinear corresponding controls or two separated, non-parallel baselines, and
@@ -380,11 +378,11 @@ two separated corresponding elevations. A shared zero level alone
380
378
  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
379
  factor while the separated elevations prove Z is correct, fix the provisional plan registration and root
382
380
  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.
384
- Show the verified overlap to the user before submitting the full read.
381
+ initial read. Show the verified overlap to the user before submitting the full read.
385
382
 
386
- An elevation or section registers with `sourceRegistration`, not the controls above; see
387
- `references/elevation-registration.md`.
383
+ One `plans[]` row is one drawing VIEW, not one page: a sheet carrying five elevations gets five rows
384
+ sharing its `sheet`, each with its own `id`. An elevation or section registers with
385
+ `sourceRegistration`; see `references/elevation-registration.md`.
388
386
 
389
387
  **Narrow headless revision exception.** When floless.app's server-owned headless preamble says this is a
390
388
  phase-one-only `revision-read`, exposes only the immutable leased PDF sources plus the request-scoped
@@ -11,11 +11,38 @@ names them.
11
11
 
12
12
  An ELEVATION or SECTION registers with `sourceRegistration`.
13
13
 
14
+ ## One `plans[]` row is one drawing VIEW, not one page
15
+
16
+ A sheet routinely carries more than one elevation — five braced-frame elevations side by side on S5.1
17
+ is ordinary practice, and they are parallel planes tens of metres apart, so no single frame can place
18
+ them all. Each gets **its own row**:
19
+
20
+ ```jsonc
21
+ "plans": [
22
+ { "id": "S5.1/E-A", "sheet": "S5.1", "viewKind": "elevation", "pt_per_ft": 9, "sourceRegistration": { /* frame for grid A */ } },
23
+ { "id": "S5.1/E-B", "sheet": "S5.1", "viewKind": "elevation", "pt_per_ft": 9, "sourceRegistration": { /* frame for grid B */ } }
24
+ ]
25
+ ```
26
+
27
+ - `sheet` is the PHYSICAL PAGE and repeats. It is what `evidence.source.sheet` must cite, what the
28
+ Drawing Filter binds, and what the page raster and detail bubbles belong to.
29
+ - `id` is the VIEW, model-global and unique. Registration, scale, view kind, analysis scope, revision
30
+ pairing and editor selection are all keyed by it. Use a stable, readable form — the page plus the
31
+ view's own name on the drawing, e.g. `S5.1/E-A`.
32
+ - **Absent `id` means the sheet name IS the view id.** A page with one view can omit it, and every
33
+ document written before this rule does. Omit it only when the page carries exactly one view: two
34
+ rows that resolve to the same id are refused (`plan-view-id-duplicate`).
35
+ - Each row carries **one** `sourceRegistration`, one `viewKind` and one `pt_per_ft`. Two elevations
36
+ drawn at different scales on one page are two rows, and that is the point — a single row could not
37
+ have said it.
38
+ - An observation still lives on the row it was read from, and its `evidence.source.sheet` still names
39
+ that row's page. Filing S5.1/E-B's evidence on S5.1/E-A transforms it through the wrong frame.
40
+
14
41
  ## The shape
15
42
 
16
43
  ```jsonc
17
44
  {
18
- "sheet": "S5.1", "viewKind": "elevation", "pt_per_ft": 12, // REQUIRED on a registered view, and positive
45
+ "id": "S5.1/E-A", "sheet": "S5.1", "viewKind": "elevation", "pt_per_ft": 12, // REQUIRED on a registered view, and positive
19
46
  "sourceRegistration": {
20
47
  "version": 1,
21
48
  "displayOrigin": [0, 100], // the frame's anchor, in display points