@floless/app 0.148.1 → 0.149.1

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.
Files changed (43) hide show
  1. package/bin/floless.mjs +1 -1
  2. package/dist/floless-server.cjs +29115 -18888
  3. package/dist/schemas/drawing-check.profile.v1.schema.json +156 -0
  4. package/dist/schemas/steel.model.v2.schema.json +43 -1
  5. package/dist/schemas/tekla.model.v2.schema.json +6 -2
  6. package/dist/skills/floless-app-steel-model/SKILL.md +54 -11
  7. package/dist/skills/floless-app-steel-model/references/detail-from-a-screenshot.md +9 -5
  8. package/dist/skills/floless-app-steel-takeoff/SKILL.md +128 -15
  9. package/dist/skills/floless-app-vectorize/SKILL.md +7 -4
  10. package/dist/templates/check-drawings.flo +46 -0
  11. package/dist/templates/drawing-check.flo +55 -0
  12. package/dist/templates/tekla-parser.flo +6 -2
  13. package/dist/web/app.css +143 -8
  14. package/dist/web/aware.js +444 -39
  15. package/dist/web/chat.css +189 -12
  16. package/dist/web/chat.js +2203 -772
  17. package/dist/web/commands-drawing-check.js +53 -0
  18. package/dist/web/commands-shell.js +299 -6
  19. package/dist/web/commands-steel.js +1 -0
  20. package/dist/web/commands-tekla-parser.js +3 -0
  21. package/dist/web/commands.js +1 -1
  22. package/dist/web/connections.js +382 -0
  23. package/dist/web/display-units.js +15 -1
  24. package/dist/web/drawing-check-editor.html +289 -0
  25. package/dist/web/drawing-check-editor.js +1242 -0
  26. package/dist/web/drawing-check-overlay.js +36 -0
  27. package/dist/web/filter-ai-proposal.js +32 -13
  28. package/dist/web/index.html +29 -3
  29. package/dist/web/instructor.js +2 -2
  30. package/dist/web/local-discovery.js +144 -2
  31. package/dist/web/model-display-units.js +23 -9
  32. package/dist/web/model-viewport-revit-adapter.js +12 -2
  33. package/dist/web/revit-editor.css +5 -0
  34. package/dist/web/revit-editor.js +141 -20
  35. package/dist/web/steel-editor.html +166 -27
  36. package/dist/web/steel-filter.html +60 -166
  37. package/dist/web/steel-model-v2-commands.js +13 -3
  38. package/dist/web/steel-model-v2-projection.js +20 -0
  39. package/dist/web/steel-units.js +3 -1
  40. package/dist/web/workspaces.js +306 -22
  41. package/launch.mjs +5 -5
  42. package/package.json +3 -1
  43. package/dist/web/filter-ai-context.js +0 -92
@@ -0,0 +1,156 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://floless.io/schemas/drawing-check.profile.v1.schema.json",
4
+ "title": "FloLess Drawing Checker profile contract",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["type", "client", "family", "readerVersion", "producers", "references", "items"],
8
+ "properties": {
9
+ "type": { "const": "drawing-check.profile/v1" },
10
+ "client": { "type": "string", "minLength": 1 },
11
+ "family": { "const": "assembly" },
12
+ "readerVersion": { "type": "string", "minLength": 1 },
13
+ "producers": { "type": "array", "items": { "type": "string" } },
14
+ "references": { "type": "array", "items": { "$ref": "#/$defs/reference" } },
15
+ "items": { "type": "array", "items": { "$ref": "#/$defs/item" } },
16
+ "titleBlock": { "$ref": "#/$defs/titleBlock" }
17
+ },
18
+ "$defs": {
19
+ "relBox": {
20
+ "type": "array", "minItems": 4, "maxItems": 4,
21
+ "items": { "type": "number", "minimum": 0, "maximum": 1 }
22
+ },
23
+ "titleBlockField": {
24
+ "type": "object", "additionalProperties": false,
25
+ "required": ["name", "label", "read", "required", "source"],
26
+ "properties": {
27
+ "name": { "type": "string", "pattern": "^[a-z][a-z0-9-]{0,63}$" },
28
+ "label": { "type": "string", "minLength": 1, "maxLength": 80 },
29
+ "read": { "enum": ["right", "below", "column-above", "column-below"] },
30
+ "required": { "type": "boolean" },
31
+ "labelBox": { "$ref": "#/$defs/relBox" },
32
+ "valueBox": { "$ref": "#/$defs/relBox" },
33
+ "source": { "enum": ["learned", "person"] },
34
+ "support": { "type": "number", "minimum": 0, "maximum": 1 },
35
+ "undecided": { "type": "boolean" }
36
+ }
37
+ },
38
+ "titleBlock": {
39
+ "type": "object", "additionalProperties": false,
40
+ "required": ["fields"],
41
+ "properties": {
42
+ "fields": { "type": "array", "maxItems": 64, "items": { "$ref": "#/$defs/titleBlockField" } },
43
+ "revisions": {
44
+ "type": "object", "additionalProperties": false,
45
+ "required": ["headerLabels", "columns", "direction"],
46
+ "properties": {
47
+ "headerLabels": { "type": "array", "minItems": 2, "maxItems": 12, "items": { "type": "string", "minLength": 1, "maxLength": 80 } },
48
+ "columns": { "type": "array", "minItems": 2, "maxItems": 12, "items": { "type": "number", "minimum": 0, "maximum": 1 } },
49
+ "direction": { "enum": ["up", "down"] }
50
+ }
51
+ },
52
+ "answered": { "type": "array", "maxItems": 128, "items": { "type": "string", "minLength": 1, "maxLength": 400 } },
53
+ "asks": {
54
+ "type": "array", "maxItems": 32,
55
+ "items": {
56
+ "type": "object", "additionalProperties": false,
57
+ "required": ["id", "field", "question", "choices"],
58
+ "properties": {
59
+ "id": { "type": "string", "pattern": "^[a-z][a-z0-9-]{0,63}$" },
60
+ "field": { "type": "string", "pattern": "^[a-z][a-z0-9-]{0,63}$" },
61
+ "question": { "type": "string", "minLength": 1, "maxLength": 300 },
62
+ "choices": {
63
+ "type": "array", "minItems": 2, "maxItems": 8,
64
+ "items": {
65
+ "type": "object", "additionalProperties": false,
66
+ "required": ["id", "label", "field"],
67
+ "properties": {
68
+ "id": { "type": "string", "pattern": "^[a-z][a-z0-9-]{0,63}$" },
69
+ "label": { "type": "string", "minLength": 1, "maxLength": 200 },
70
+ "field": { "$ref": "#/$defs/titleBlockField" }
71
+ }
72
+ }
73
+ }
74
+ }
75
+ }
76
+ }
77
+ }
78
+ },
79
+ "reference": {
80
+ "type": "object", "additionalProperties": false,
81
+ "required": ["sha256", "name", "ext", "pages"],
82
+ "properties": {
83
+ "sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
84
+ "name": { "type": "string", "minLength": 1 },
85
+ "ext": { "const": "pdf" },
86
+ "pages": { "type": "integer", "minimum": 1 }
87
+ }
88
+ },
89
+ "titleField": {
90
+ "type": "object", "additionalProperties": false,
91
+ "required": ["name", "label"],
92
+ "properties": {
93
+ "name": { "type": "string", "minLength": 1 },
94
+ "label": { "type": "string", "minLength": 1 }
95
+ }
96
+ },
97
+ "item": {
98
+ "type": "object", "additionalProperties": false,
99
+ "required": ["id", "label", "family", "rule", "origin", "enabled"],
100
+ "properties": {
101
+ "id": { "type": "string", "minLength": 1 },
102
+ "label": { "type": "string", "minLength": 1 },
103
+ "family": { "const": "assembly" },
104
+ "rule": { "$ref": "#/$defs/rule" },
105
+ "origin": { "enum": ["frequency", "client-standard", "redline"] },
106
+ "frequency": { "type": "number", "minimum": 0, "maximum": 1 },
107
+ "enabled": { "type": "boolean" }
108
+ }
109
+ },
110
+ "rule": {
111
+ "oneOf": [
112
+ {
113
+ "type": "object", "additionalProperties": false,
114
+ "required": ["type", "fields"],
115
+ "properties": {
116
+ "type": { "const": "title-field-filled" },
117
+ "fields": { "type": "array", "items": { "$ref": "#/$defs/titleField" } }
118
+ }
119
+ },
120
+ {
121
+ "type": "object", "additionalProperties": false,
122
+ "required": ["type", "field", "pattern"],
123
+ "properties": {
124
+ "type": { "const": "title-field-pattern" },
125
+ "field": { "$ref": "#/$defs/titleField" },
126
+ "pattern": { "type": "string", "minLength": 1 }
127
+ }
128
+ },
129
+ {
130
+ "type": "object", "additionalProperties": false,
131
+ "required": ["type"],
132
+ "properties": { "type": { "const": "part-marks-on-drawing" } }
133
+ },
134
+ {
135
+ "type": "object", "additionalProperties": false,
136
+ "required": ["type", "massIs", "tolerance"],
137
+ "properties": {
138
+ "type": { "const": "part-list-mass-sum" },
139
+ "massIs": { "enum": ["line-total", "unit"] },
140
+ "tolerance": { "type": "number", "minimum": 0 },
141
+ "includeUnmarked": { "type": "boolean" }
142
+ }
143
+ },
144
+ {
145
+ "type": "object", "additionalProperties": false,
146
+ "required": ["type", "pattern", "display"],
147
+ "properties": {
148
+ "type": { "const": "text-present" },
149
+ "pattern": { "type": "string", "minLength": 1 },
150
+ "display": { "type": "string", "minLength": 1 }
151
+ }
152
+ }
153
+ ]
154
+ }
155
+ }
156
+ }
@@ -318,6 +318,47 @@
318
318
  "candidates": { "$ref": "#/$defs/elevationCandidates", "description": "Carried verbatim from the reader's unknown end when the server places it (#1723). Never used to place anything." }
319
319
  }
320
320
  },
321
+ "answeredElevation": {
322
+ "type": "object",
323
+ "required": ["known", "answered"],
324
+ "additionalProperties": false,
325
+ "description": "ANSWERED BY THE PERSON (#1882). During a read FloLess asked the person this height on a question card it rendered, and the person confirmed the proposed height or typed one; the click is recorded in a server-owned ledger the reader cannot write. Owner ruling 2026-10-02: a person's answer to a question is evidence and lands in the model as given, so `known` is real and the end is resolved. SERVER-AUTHORED ONLY: absent from `$defs/elevation` (what an OBSERVATION carries), and the normalizer strips a reader-written arm before anything reads it.",
326
+ "properties": {
327
+ "known": { "type": "number", "description": "The height the person gave, in world mm." },
328
+ "answered": {
329
+ "type": "object",
330
+ "required": ["by", "via", "requestId", "questionId", "n", "how", "label", "answeredAt"],
331
+ "additionalProperties": false,
332
+ "properties": {
333
+ "by": { "const": "person" },
334
+ "via": { "const": "question-card" },
335
+ "requestId": { "type": "string", "minLength": 1, "maxLength": 200 },
336
+ "questionId": { "type": "string", "minLength": 1, "maxLength": 200 },
337
+ "n": { "type": "integer", "minimum": 1 },
338
+ "how": { "enum": ["confirmed", "typed"] },
339
+ "label": { "type": "string", "minLength": 1, "maxLength": 120, "description": "The question row the person answered, as the card showed it." },
340
+ "shownAs": { "type": "string", "minLength": 1, "maxLength": 40, "description": "confirmed: the proposed height exactly as the card showed it." },
341
+ "typed": { "type": "string", "minLength": 1, "maxLength": 40, "description": "typed: exactly what the person typed." },
342
+ "note": { "type": "string", "minLength": 1, "maxLength": 160, "description": "#1906: the person's own source note for the answer, e.g. \"per 7/S-502\"." },
343
+ "evidence": {
344
+ "type": "array", "minItems": 1, "maxItems": 3,
345
+ "description": "#1906: pictures or PDFs the person attached to the answer on the card, uploaded by the person and pinned by digest in the server-owned ledger.",
346
+ "items": {
347
+ "type": "object", "required": ["attachmentId", "fileName", "mediaType", "digest"], "additionalProperties": false,
348
+ "properties": {
349
+ "attachmentId": { "type": "string", "minLength": 36, "maxLength": 36 },
350
+ "fileName": { "type": "string", "minLength": 1, "maxLength": 240 },
351
+ "mediaType": { "enum": ["image/png", "image/jpeg", "image/webp", "application/pdf"] },
352
+ "digest": { "type": "string", "pattern": "^[0-9a-f]{64}$" }
353
+ }
354
+ }
355
+ },
356
+ "basis": { "const": "read-of-your-picture", "description": "#1906: the person confirmed the read's reading of a picture they had sent." },
357
+ "answeredAt": { "type": "string", "minLength": 1, "maxLength": 40 }
358
+ }
359
+ }
360
+ }
361
+ },
321
362
  "elevation": {
322
363
  "description": "An elevation as an OBSERVATION may state it: proven, or explicitly unknown. Deliberately NOT the canonical member endpoint type — see `canonicalElevation`, which adds the server-authored `assumedElevation` arm. Keeping the two apart is what stops a reader submitting its own number already stamped as server-assumed.",
323
364
  "oneOf": [
@@ -326,10 +367,11 @@
326
367
  ]
327
368
  },
328
369
  "canonicalElevation": {
329
- "description": "A canonical member endpoint elevation: proven, placed-but-not-proven, or unknown. THREE arms rather than two (#1155). `oneOf` is exact-match here, and the arms are disjoint by construction: `knownElevation` closes at `known` alone, so `{known, assumed, why, checked}` matches only `assumedElevation`.",
370
+ "description": "A canonical member endpoint elevation: proven, answered by the person, placed-but-not-proven, or unknown. FOUR arms (#1155, #1882). `oneOf` is exact-match here, and the arms are disjoint by construction: `knownElevation` closes at `known` alone, so `{known, assumed, why, checked}` matches only `assumedElevation` and `{known, answered}` only `answeredElevation`.",
330
371
  "oneOf": [
331
372
  { "$ref": "#/$defs/knownElevation" },
332
373
  { "$ref": "#/$defs/assumedElevation" },
374
+ { "$ref": "#/$defs/answeredElevation" },
333
375
  { "$ref": "#/$defs/memberUnknownElevation" }
334
376
  ]
335
377
  },
@@ -5,6 +5,10 @@
5
5
  "type": "object",
6
6
  "additionalProperties": false,
7
7
  "required": ["type", "origin", "access", "source", "provider", "snapshot", "dependencies", "review", "contractHash"],
8
+ "oneOf": [
9
+ { "properties": { "snapshot": { "properties": { "tiles": { "minimum": 1 } } } } },
10
+ { "properties": { "snapshot": { "properties": { "tiles": { "maximum": 0 } } }, "review": { "properties": { "open": { "minimum": 1 } } } } }
11
+ ],
8
12
  "properties": {
9
13
  "type": { "const": "tekla.model/v2" },
10
14
  "origin": { "const": "imported" },
@@ -34,7 +38,7 @@
34
38
  "properties": {
35
39
  "projectUuid": { "type": "string", "pattern": "^[0-9a-fA-F-]{36}$" }, "generation": { "type": "integer", "minimum": 0 },
36
40
  "revisionId": { "$ref": "#/$defs/hash" }, "manifestRoot": { "$ref": "#/$defs/hash" }, "frame": { "$ref": "#/$defs/frame" },
37
- "entities": { "type": "integer", "minimum": 0 }, "tiles": { "type": "integer", "minimum": 1 }
41
+ "entities": { "type": "integer", "minimum": 0 }, "tiles": { "type": "integer", "minimum": 0 }
38
42
  }
39
43
  },
40
44
  "dependencies": {
@@ -45,7 +49,7 @@
45
49
  "type": "object", "additionalProperties": false,
46
50
  "required": ["schemaVersion", "digest", "findings", "affectedObjects", "open", "state"],
47
51
  "properties": {
48
- "schemaVersion": { "const": "floless.tekla-import-audit/v1" }, "digest": { "$ref": "#/$defs/hash" },
52
+ "schemaVersion": { "enum": ["floless.tekla-import-audit/v1", "floless.tekla-import-audit/v2"] }, "digest": { "$ref": "#/$defs/hash" },
49
53
  "findings": { "type": "integer", "minimum": 0 }, "affectedObjects": { "type": "integer", "minimum": 0 },
50
54
  "open": { "type": "integer", "minimum": 0 }, "state": { "enum": ["needs-review", "no-findings"] }
51
55
  }
@@ -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.13.0
5
+ version: 0.16.0
6
6
  ---
7
7
 
8
8
  # Steel Model — guide a steel drawing set into an editable model
@@ -52,7 +52,10 @@ share one clear item only when every applicable obligation remains represented.
52
52
  Write every visible item in **plain English**. Explain the result the user will see, not the internal
53
53
  mechanism. Do not put skill names, section numbers, schemas, API routes, attestation fields, or other
54
54
  implementation terms in the TODO list. Avoid internal words such as “evidence,” “candidate,”
55
- “manifest,” “ledger,” “registration,” “binding,” “disposition,” “audit,” and “reconcile.” Use the
55
+ “manifest,” “ledger,” “registration,” “binding,” “disposition,” “audit,” “reconcile,” “attestation,”
56
+ “schema,” “API,” “JSON,” and “ETag.” FloLess refuses a saved checklist that uses one of these, a FloLess skill name such as
57
+ `reading-structural-drawings`, or a versioned format name such as `steel.model/v2`; the refusal names every such word and the
58
+ item or summary it is in, so replace exactly those and save once more. Use the
56
59
  ordinary drawing or site meaning instead: “drawing lines the user kept,” “draft 3D model,” “line up
57
60
  the plans,” “attach the callout,” and “check that every drawing item was handled.” Familiar drawing
58
61
  and steel terms are fine when they are the words the user sees on the drawings.
@@ -226,11 +229,23 @@ the user at the editor:
226
229
  it; they never replace its earlier obligations. The server-owned steel manifest is the ledger's
227
230
  inventory, and every page, Filter layer, candidate line, reference/detail/connection marker, member,
228
231
  and new or changed joint stays `open` until it has evidence, an explicit reviewed disposition, or a
229
- named RFI/refusal. Do not summarize an open row away, and do not declare the model complete because it
232
+ named question the user was asked (carried as an RFI when they could not answer it). Do not summarize an open row away, and do not declare the model complete because it
230
233
  looks complete. Completion means the `/revision-read/audit` response is `read-complete` for the exact candidate and
231
234
  attestation submitted, and the published History row carries the matching receipt.
232
235
  A blocked audit is the remaining checklist, not permission to stop enforcing the skill.
233
236
 
237
+ **The read's setup is asked on the read setup card, not in prose** (the takeoff skill's "read setup
238
+ card" section): each plan view's scale, the model origin (straight grid intersections only) and each
239
+ plan view's level. The person's answers are binding: author exactly those values, and if anything
240
+ conflicts, ask that row again with your reason — never change an answer yourself.
241
+
242
+ **A height the person can answer is asked on a height question card, not in prose** (the takeoff
243
+ skill's step 8 has the procedure; group ends answered alike, and read any picture the person sends
244
+ instead of a number before asking again). The person's click on the card is what makes the height theirs in
245
+ the model; a "yes" in the chat is indistinguishable from your own guess and is discarded with it. So
246
+ never finish a read by telling the person to retype heights they already answered — if you asked on a
247
+ card, they are already in the model and the question is closed.
248
+
234
249
  - **Read each framing plan** via **`floless-app-steel-takeoff`** — it runs the filter pre-stage
235
250
  (isolate the steel linework by layer/thickness/colour), the vision read, the AISC/EN/BS lookup
236
251
  via the detailer, authors the model datum plus two labelled registration controls per plan,
@@ -250,7 +265,9 @@ A blocked audit is the remaining checklist, not permission to stop enforcing the
250
265
  actually draws rather than the nearest one that builds: a brace detail is a `brace-gusset`, not a
251
266
  `shear-plate` with different numbers — the two weld to different places, and only the gusset sets the
252
267
  brace back off the member it frames into. A brace detail also needs that member's `memberType` to
253
- say `brace`, or the connection is refused;
268
+ say `brace` before the gusset builds. Set it from the drawing evidence (a brace mark, a diagonal on
269
+ a bracing elevation, a brace schedule row); where the drawings do not say, ask, naming the member
270
+ and where it is, with `brace` as the default because the detail itself is a brace detail. Never leave the connection unbuilt in silence;
254
271
  - `recipe.params` — the numbers on the typical figure itself (plate thickness, weld leg, bolt Ø);
255
272
  - `recipe.schedule[]` — the table that varies those numbers by member size, **which often lives on the
256
273
  sheet the detail points AT rather than the detail's own sheet**, so it only exists if the chain was
@@ -261,7 +278,9 @@ A blocked audit is the remaining checklist, not permission to stop enforcing the
261
278
 
262
279
  A row with a `recipe` is what lets a member end carrying that callout be **built**. A row
263
280
  read from the drawing but whose schedule sheet was missing must be left WITHOUT a schedule and said so —
264
- an invented size band is worse than an end that honestly refuses to build.
281
+ an invented size band is worse than none. Ask for the missing sheet, naming it and the callout that
282
+ points at it. If the user cannot supply it, file an RFI where `floless-app-rfi` allows it; otherwise
283
+ keep the question open in the chat.
265
284
  - **Bind callouts to member ends where the drawing shows it.** A detail bubble on a plan has a leader
266
285
  pointing at a specific connection; that link is legible at read time and guesswork afterwards. Where the
267
286
  leader clearly lands on a member end, set that end's `detail` to the callout text so the end is buildable
@@ -286,7 +305,7 @@ or `mm` — a job shown in millimetres bills in kilograms and tonnes, and the tw
286
305
  one can never sit where the other is expected. Tell the user they can **freeze** those export steps
287
306
  (right-click → Freeze) once the BOM is right, so a re-Run won't overwrite the files.
288
307
 
289
- ### 7. Match each detail to a connection TYPE that models it — or refuse
308
+ ### 7. Match each detail to a connection TYPE that models it — or ask
290
309
 
291
310
  **Before building anything from a detail, decide what KIND of connection it is, and confirm the tool you
292
311
  are about to use actually models that kind.** A detail forced into the wrong type produces geometry that is
@@ -305,9 +324,33 @@ member is supported and which is supporting. Ask, per detail:
305
324
  - **What does the detail dimension that the type cannot hold?** A work-point drop, a plate that follows the
306
325
  supporting member's depth, a fabrication note. Anything unexpressible must be recorded, not dropped.
307
326
 
308
- **If no available type matches, STOP and say so.** An honest "this connection type does not exist yet" is
309
- worth more than an approximation: a connection attached to nothing looks plausible in the model, passes
310
- every dimensional check, and is worse than an absent one because nobody knows to question it.
327
+ **If no available type matches, do not force one. Ask.** A connection forced into the wrong type looks
328
+ plausible in the model, passes every dimensional check, and is worse than an absent one because nobody
329
+ knows to question it. An unmodelled detail does not hold back the model either: the members are modelled
330
+ and published either way, and the detail becomes a question the user can answer without hunting. The ask:
331
+
332
+ - **names the detail as a detailer would**, such as "the brace gusset in 7/S5.2", never a marker id alone;
333
+ - **says where it is**: the sheet, the grid reference, the callout tag, and the members it joins;
334
+ - **says why no available type models it**, in the topology terms above (for example, "the gusset is
335
+ welded to the beam's web between its flanges, and the brace-gusset type only welds at a beam's flange
336
+ tips");
337
+ - **offers the choices, with a default:**
338
+ - **(a) Leave that connection unbuilt but recorded. This is the default.** Record the detail as read,
339
+ with the members it joins, and build nothing from it. If the user cannot answer the question, file
340
+ it as an RFI where `floless-app-rfi` allows it; otherwise keep it open in the chat. In a drawing
341
+ read, the carrier is the detail marker's `candidateDispositions` row of `unresolved`, and its
342
+ `reason` says that the detail was read, which members it joins, and that only a connection type to
343
+ model it is missing. FloLess turns that row into a generic question saying the marker "could not be
344
+ tied to anything in the model", and the question briefing files it as unread coverage, under
345
+ "Callouts that could not be followed", saying the detail "has not been read". When you relay it,
346
+ correct all three: the detail was read, it is not unread coverage, and it is not a callout that could
347
+ not be followed.
348
+ - **(b) Build it as a named approximation, only if the person chooses that.** Use the nearest type and
349
+ record on the connection row that it is an approximation, what it stands in for, and what differs
350
+ from the drawing. Say so every time you report that connection. It still goes through stage 8, and
351
+ the drawn detail stays an open question unless the person says the approximation is the answer.
352
+
353
+ **Ask about every unmodelled detail together**, grouped by detail, not one connection at a time.
311
354
 
312
355
  **Signals you are forcing a fit** — any one of these means stop and re-examine the type, not the numbers:
313
356
 
@@ -395,8 +438,8 @@ So reconcile the inventory each time you build, and treat two of the four outcom
395
438
  - **FAIL — two specified, one built.** No two rows share a part. A pair of plates modelled as a single
396
439
  body has the right total area and the right weight, and cannot be fabricated as drawn.
397
440
  - **WARN — read, never specified.** A detail callout found on the drawings that never became a
398
- `connections[]` row. Not necessarily wrong — you may have refused it under stage 7 — but it gets named,
399
- never silently dropped.
441
+ `connections[]` row. Not necessarily wrong — the callout may not be a connection at all, or it may be a
442
+ detail left unbuilt under stage 7 with its question asked — but it gets named, never silently dropped.
400
443
  - **WARN — built, unnamed.** A part belonging to no connection. Usually debris left by an earlier build;
401
444
  occasionally the only evidence that a recipe is emitting geometry nobody asked for.
402
445
 
@@ -34,7 +34,9 @@ drawing: what attaches to what, where it bears, how many plies exist, and which
34
34
 
35
35
  If no available kind models the detail, do not force it into the nearest-looking type and never create a
36
36
  `custom` mesh from a screenshot. Keep the flat reference image and record what is missing, use a
37
- Favourite only when it genuinely models the connection, or offer to raise an RFI.
37
+ Favourite only when it genuinely models the connection, or ask the user how to proceed, as stage 7 of
38
+ the skill describes. If they cannot answer, file an RFI only where `floless-app-rfi` allows it;
39
+ otherwise keep the question open in the chat.
38
40
 
39
41
  ## 4. Confirm which members do what
40
42
 
@@ -61,9 +63,10 @@ For a brace gusset, establish the work point and plane, brace end cut/setback, p
61
63
  whether it occurs one side or both, bolt or weld layout, HSS slot or angle orientation, and clearances.
62
64
 
63
65
  Engineering authority is, in order: the detail itself, the set's notes and specification, then
64
- `company-rules.md`. If none states an engineering value, do not default it from common practice. Offer
65
- an RFI. The user may direct work to proceed on a named assumption; record that assumption on the
66
- connection row.
66
+ `company-rules.md`. If none states an engineering value, do not default it from common practice. Ask for
67
+ it. If the user cannot supply it, file an RFI only where `floless-app-rfi` allows it; otherwise keep
68
+ the question open in the chat. The user may direct work to proceed on a named assumption; record that
69
+ assumption on the connection row.
67
70
 
68
71
  ## 6. Build a candidate without clobbering existing work
69
72
 
@@ -92,4 +95,5 @@ read. If that write is stale, re-read, rebuild the candidate on the new document
92
95
 
93
96
  After a successful write, summarize only what was built, where it was placed, which drawing detail it
94
97
  uses, and whether the fit checks passed. Do not approve the model. If the user cannot supply a required
95
- engineering value, hand the question to `floless-app-rfi`; never bury it as a silent assumption.
98
+ engineering value, name the open question in this summary, and file it as an RFI only where
99
+ `floless-app-rfi` allows it; otherwise it stays open in the chat. Never bury it as a silent assumption.
@@ -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.64.0
10
+ version: 0.66.0
11
11
  ---
12
12
 
13
13
  # Steel Takeoff — read drawings into `steel.model/v2`
@@ -29,7 +29,10 @@ applicable obligation remains represented.
29
29
  Translate the plan into **plain English** with the real sheet names and counts. The user should see what
30
30
  will be checked and what result to expect, not skill names, section numbers, schemas, API routes,
31
31
  attestation fields, or other internal terms. Avoid “evidence,” “candidate,” “manifest,” “ledger,”
32
- “registration,” “binding,” “disposition,” “audit,” and “reconcile” in the visible list. Say “drawing
32
+ “registration,” “binding,” “disposition,” “audit,” “reconcile,” “attestation,” “schema,” “API,” “JSON,”
33
+ and “ETag” in the visible list. FloLess refuses a saved checklist that uses one of these, a FloLess skill name such as `reading-structural-drawings`, or
34
+ a versioned format name such as `steel.model/v2`; the refusal names every such word and the item or
35
+ summary it is in, so replace exactly those and save once more. Say “drawing
33
36
  lines the user kept,” “draft 3D model,” “line up the plans,” “attach the callout,” or “check that every
34
37
  drawing item was handled.” Familiar drawing and steel terms are fine. Whenever work is active, keep
35
38
  exactly one unchecked item marked **NOW**. As soon as its work is verified, preserve its original wording
@@ -607,8 +610,10 @@ A read often needs a throwaway script — a `.ps1` to probe pages, a `.mjs` to f
607
610
  one of them in the scratch directory the request instruction names** (`request-work/<requestId>/` under
608
611
  the FloLess home). FloLess creates that directory when the drawing set is attached and deletes it when
609
612
  the request settles or is discarded, so nothing there needs tidying up afterwards — and nothing you want
610
- to keep belongs there. It may also be cleared while the read sits idle, so treat what is in it as
611
- disposable between turns.
613
+ to keep beyond the request belongs there. FloLess keeps it until the request settles or is
614
+ discarded, however long the read waits on the person: what you wrote before a break is still there when
615
+ they answer, so reuse it rather than rebuilding it. List and search only inside that directory, never its
616
+ parent `request-work` folder or another request's directory beside it.
612
617
 
613
618
  **Never write a helper into the project folder or beside the drawings.** That folder is the user's own
614
619
  document, not a workspace: a `.ps1` left in it outlives the request that needed it, and the user has no
@@ -748,6 +753,67 @@ audit and at commit. It **cannot** prove you built it before you read the member
748
753
  the discipline; the gate only stops you finishing without it. Writing it afterwards to clear the
749
754
  refusal produces exactly the confident wrong answer the step exists to prevent.
750
755
 
756
+ ### The read setup card: scale, origin and plan levels, answered by the person
757
+
758
+ Every read needs the same setup answers: each plan view's drawing scale (`mm_per_px`), the model
759
+ origin, and each plan view's level (`elevation_mm`). **Ask them on ONE read setup card, never in
760
+ prose.** On the owner's Take 5 read these went wrong in chat: the scale was asked three times, the
761
+ person's origin `K.1/1.1` was silently swapped for `K/1.1`, five messages scattered the levels, and
762
+ the read later changed the person's level by itself. The card fixes all of that: the person settles
763
+ each row once, in one place, and you must use exactly what they settle.
764
+
765
+ 1. `POST …/revision-requests/<id>/setup-questions` with `{ items: [...] }`, one row per thing to settle:
766
+ - **scale**, per plan VIEW: `{ kind: "scale", viewId, page: { sourceHash, pageId }, title,
767
+ measured?: { mmPerPx, standard, evidence } }`. FloLess adds its own `scaleProposals` fit to the
768
+ row itself, with its evidence; never restate it. `measured` is only YOUR OWN fit: `mmPerPx` your
769
+ number, `standard` the nearest standard it is, `evidence` one line saying what you measured
770
+ ("15 printed grid dimensions fit within 0.3 pt"). The card labels the two differently. **Send
771
+ `measured` on every scale row whose `scaleProposals` outcome has no `mmPerPx` and no candidates**:
772
+ FloLess found nothing to offer there, so without yours the person sees only an empty box. Read the
773
+ view's printed scale and check it against at least one printed dimension, and say both in
774
+ `evidence` ("title block prints 1/8\" = 1'-0\"; the 24'-0\" bay between grids 3 and 4 measures
775
+ 24'-0\" at that scale").
776
+ - **origin**: `{ kind: "origin", choices: [{ xAxisId, yAxisId, xLabel, yLabel }], proposed?,
777
+ offGrid?: [{ as, same, why }] }`. Choices are ONLY intersections of the model's straight X and Y
778
+ grid axes (the ids you write, the labels the person sees). A point on a skewed or partial line
779
+ (`K.1/1.1`) goes under `offGrid`, naming the straight choice it is the same point as and why. The
780
+ card states that equivalent before the person can confirm, and what lands is the straight point.
781
+ - **level**, per plan VIEW: `{ kind: "level", viewId, page, title, readings?: [...], noSingleLevel?:
782
+ { why } }`. `readings` are exactly the plan-elevation-proposal readings (step 9 below). A sheet
783
+ with two plan views (an enlarged stair foundation plan and its second-floor plan) gets TWO rows. A
784
+ view with two levels, or `ELEV = VARIES`, gets `noSingleLevel` saying what the drawings say instead
785
+ ("1'-6" TOF west, 0'-0" east"). It is never forced into one number.
786
+ 2. Tell the person the card is in the chat, and wait. Only they can answer: confirm a proposal, type a
787
+ value, answer "no single level" or "none of these" with a note, or send a picture. They may add a
788
+ source note and pictures to any answer. You can do none of these.
789
+ 3. `GET` the same path. Each row has a `status` (`open`, `settled`, `picture`, `needs-new-choices`,
790
+ `superseded`) and the person's `answer`.
791
+ 4. **Author exactly the settled values.** `mm_per_px` equal to the answer at 6 decimals. The answered
792
+ origin intersection at world (0, 0). `elevation_mm` equal to the answered level. NO `elevation_mm`
793
+ on a view answered "no single level". The audit blocks (`setup-answers`) a model that differs, and
794
+ one with a row still open.
795
+ 5. **Never change an answer yourself.** If the drawings or a constraint conflict with one (a level
796
+ that would put a hanger's bottom above its top), ask THAT row again on a new card with
797
+ `conflict: "<one line saying why>"`. The person sees your reason beside their earlier answer, and
798
+ only what they answer next counts.
799
+ 6. **"See snap"**: a row answered with only a picture (`status: "picture"`) is the person's evidence,
800
+ not a value. Look at it with `floless_evidence_read`, then ask that row again with
801
+ `fromEvidence: { questionId, n }` and your reading of it (level: `pictureReading: { value, asRead }`;
802
+ scale: `measured`; origin: `proposed`). The card tags it as your reading of their picture, and one
803
+ Confirm settles it. An origin answered "none of these" asks you to offer the points their note names.
804
+
805
+ **On a first read, ask the setup card BEFORE you write the checkpoint shell**, and write the shell with
806
+ the answered values. The shell freezes what it states, so a row still open must stay WHOLLY unstated:
807
+ no registration field on that plan row, and no grid field at all while the origin is open. A plan row
808
+ you DO state must be complete: its answered scale and level (no `elevation_mm` when the answer is "no single level") AND its two controls (`datum_at`,
809
+ `control2_ref`, `control2_at`), because once saved nothing can be added to it. A row stating only its
810
+ scale or level would leave that view unplaceable for the whole read. If you cannot place the view yet,
811
+ leave the row wholly unstated and author all of it after Save. The shell PUT refuses otherwise. A value
812
+ the saved shell already states can no longer be asked or changed; the card says so to the person.
813
+
814
+ Only a read NOT running in FloLess AI Chat (the setup route answers `409 height-question-needs-chat`)
815
+ asks these in the conversation, with the plan-elevation proposal below.
816
+
751
817
  ### Grid and plan registration
752
818
 
753
819
  Author one top-level model grid in world millimetres — and author its SPACING STRINGS in the units the
@@ -772,7 +838,8 @@ count. If the starting offset is unclear, ask the user where the first line belo
772
838
  and grid line with a link to the drawing; propose zero only as a stated option for them to confirm.
773
839
  `grid.z` is different: its entries are absolute elevations, not cumulative gaps.
774
840
 
775
- Every plan view must declare `viewKind: "plan"`, `sheet`, `elevation_mm`, `mm_per_px` and two
841
+ Every plan view must declare `viewKind: "plan"`, `sheet`, `elevation_mm` (except a view the person
842
+ answered "no single level" on the setup card, which states none), `mm_per_px` and two
776
843
  non-coincident registration controls:
777
844
 
778
845
  - `datum_at`: the display point of the chosen datum intersection;
@@ -797,7 +864,7 @@ one row per plan page: the same fit, computed deterministically over EVERY print
797
864
  between that sheet's grid bubbles instead of the two runs you would pick by eye. Each row's
798
865
  `outcome.action` tells you what to do with it, and you follow that — `author` (use
799
866
  `outcome.mmPerPx`, and say in the chat which standard it is and how many dimension strings agreed),
800
- `ask-and-confirm` (show the user the number and the sheet, and use it only if they confirm —
867
+ `ask-and-confirm` (show the user the number and the sheet ON THE READ SETUP CARD, and use it only if they confirm —
801
868
  **which fact they are confirming depends on `outcome.decidedBy`**, so read that before you describe it),
802
869
  `ask-and-wait` (put the
803
870
  question in the chat with the sheet named and `outcome.candidates` listed — each carries only a standard,
@@ -957,8 +1024,9 @@ same sheet set. Getting the OK does NOT mean "go read members"; the very next th
957
1024
  filter pass below, then hand off the Filter node. Do not let the confirm gate double as permission to
958
1025
  skip the filter** (that collision is exactly how the filter gets skipped and members are read with no filter block).
959
1026
 
960
- Ask the user which labelled grid intersection is global `(0,0,0)` if project knowledge does not say.
961
- Never choose a convenient datum. Preserve the provisional shell's grid, plan order, sheet identity, cut
1027
+ Ask the user which labelled grid intersection is global `(0,0,0)` if project knowledge does not say:
1028
+ on the read setup card (below), never in prose, listing only straight-grid intersections. Never choose
1029
+ a convenient datum. Preserve the provisional shell's grid, plan order, sheet identity, cut
962
1030
  elevations and registration controls byte-for-byte in the first completed candidate.
963
1031
 
964
1032
  ### Find the members on a framing plan
@@ -1205,15 +1273,60 @@ Work in this order:
1205
1273
  - The server then asks the user WITH the reading — the sheet, the callout and the height — instead
1206
1274
  of asking cold, and tells them how to apply it.
1207
1275
  - **Never write a candidate's value as `known`, and never turn one into an observed height** — not
1208
- even after the user says yes in the chat. The server cannot tell an approval from a reading, so a
1209
- candidate becomes a height only when the person applies it in the steel editor (one click on
1210
- *Use*, or typing the right height). Relay the proposal's `ask` verbatim and never pick a
1211
- candidate yourself; a choice lists heights from lowest to highest and none of them is preferred.
1212
-
1213
- 9. **Every plan view you read members from MUST state its own `elevation_mm`.** Without one there is
1276
+ even after the user says yes in the chat. The server cannot tell an approval in prose from a
1277
+ reading. Relay the proposal's `ask` verbatim and never pick a candidate yourself; a choice lists
1278
+ heights from lowest to highest and none of them is preferred.
1279
+
1280
+ **When the person can settle a height, ask it on a HEIGHT QUESTION card — never in prose.** A
1281
+ column's base or top, a hanger's ends, a landing: where the drawings leave an end unresolved and the
1282
+ person on the other side of the chat can say what it is, the answer must reach the model as THEIRS.
1283
+ A "yes, you are correct" in the conversation cannot: nothing can tell it apart from your own guess, so
1284
+ the server discards it with the guesses and the person ends up retyping every height in the editor.
1285
+
1286
+ 1. `POST …/revision-requests/<id>/height-questions` with
1287
+ `{ ends: [ { memberId, end: "from" | "to", label, proposed?: { value, asRead } } ] }` — one row per
1288
+ member end, up to 50. `label` is one plain line the person reads (`W10x33 column at F.2/6 — base`).
1289
+ `proposed` is only what you read or measured: `asRead` with its unit, `value` its world-mm
1290
+ conversion; the server refuses a pair that disagree, so the text shown and the height recorded
1291
+ are always the same height.
1292
+ 2. FloLess shows the person a card in this chat. **Only they can answer it** — Confirm the proposed
1293
+ height, or type their own. You cannot answer, and do not try. Tell them the card is there and
1294
+ wait; they send a short message when they are done.
1295
+ 3. `GET` the same path. Each end has a `status` (`open`, `confirmed`, `typed`, `superseded`) and the
1296
+ recorded height.
1297
+ 4. Submit those ends as you otherwise would (an unknown with `why`/`checked` is fine). The SERVER
1298
+ puts the person's height on the end, marked as their answer; the question is closed, so it is not
1299
+ raised again and **you never tell the person to fix an answered height in the editor**.
1300
+ 5. The audit and publish responses carry `heightAnswers`: `applied` counts the answers that landed,
1301
+ and each `notApplied` row names a member end whose answer did NOT land, with a plain `why` (the
1302
+ drawing states that end's height, the member is already in the published model, …). **Relay every
1303
+ `why` to the person, naming the member and end** — an answer they gave that did not land is never
1304
+ left unsaid.
1305
+
1306
+ Asking again about an end suspends its earlier answer until the new card is answered. Ends of a
1307
+ member already in the published model are refused — those heights change in the steel editor. A
1308
+ read not running in FloLess AI Chat gets `409 height-question-needs-chat`: then ask in the
1309
+ conversation, and the end stays a question on the model as before.
1310
+
1311
+ **Group ends the person will answer alike.** Give them the same `group` (one line, e.g.
1312
+ `"W10x33 column bases"`): the card shows them under one header, and the person can tick the whole
1313
+ group and enter one height for all of them. The person can also add a source note ("per 7/S-502")
1314
+ and pictures to any answer; they travel with the height into the model's provenance and Model
1315
+ notes. You never add a note or a picture, and a question carrying one is refused.
1316
+
1317
+ **"See snap".** An end the person answered with only a picture (`status: "evidence"`) has no height
1318
+ yet. Look at the picture with `floless_evidence_read`, then ask that end again with
1319
+ `fromEvidence: { questionId, n }` (its picture-only answer) and `proposed` set to what you read. The
1320
+ card shows it as your reading of their picture; their Confirm settles it. Until then the publish
1321
+ reports it in `heightAnswers.notApplied` (`picture-not-read`).
1322
+
1323
+ 9. **Every plan view you read members from MUST state its own `elevation_mm`** — unless the person answered
1324
+ "no single level" for it on the setup card, which states none and places each end from its own height. Without one there is
1214
1325
  nowhere to place an unresolved end, and those members leave the model. If the set does not state a
1215
1326
  plan's elevation outright, **ask the user for it before you read members from that sheet** — one
1216
- question per view, never one per member. A plan with no elevation is a question, not something to
1327
+ row per view on the read setup card (above), never one per member and never in prose. The readings
1328
+ below are what that row carries; the plan-elevation proposal is only for a read not running in AI
1329
+ Chat. A plan with no elevation is a question, not something to
1217
1330
  work around, and you never author `elevation_mm` from your own guess.
1218
1331
 
1219
1332
  **But do not ask cold for what the set carries: look at the sheets first, and where you can read a