@floless/app 0.137.3 → 0.138.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.
Files changed (47) hide show
  1. package/dist/floless-server.cjs +47890 -27033
  2. package/dist/internal-workflows/floless-rfi-gmail-send/.floless-owner.json +1 -0
  3. package/dist/internal-workflows/floless-rfi-gmail-send/floless-rfi-gmail-send.flo +32 -0
  4. package/dist/schemas/steel.model.v2.schema.json +218 -27
  5. package/dist/skills/floless-app-knowledge/SKILL.md +5 -2
  6. package/dist/skills/floless-app-rfi/SKILL.md +410 -0
  7. package/dist/skills/floless-app-routines/SKILL.md +7 -2
  8. package/dist/skills/floless-app-routines/references/routines-api.md +14 -5
  9. package/dist/skills/floless-app-steel-model/SKILL.md +34 -32
  10. package/dist/skills/floless-app-steel-takeoff/SKILL.md +498 -34
  11. package/dist/skills/floless-app-steel-takeoff/references/elevation-registration.md +6 -6
  12. package/dist/skills/floless-app-tweak-contract/SKILL.md +6 -2
  13. package/dist/templates/floless-workspace-knowledge.flo +20 -4
  14. package/dist/templates/steel-model.flo +27 -15
  15. package/dist/web/app.css +559 -131
  16. package/dist/web/app.js +216 -54
  17. package/dist/web/aware.js +982 -128
  18. package/dist/web/checkpoint-standard.js +218 -0
  19. package/dist/web/commands-filter.js +23 -0
  20. package/dist/web/commands-shell.js +237 -5
  21. package/dist/web/commands-steel.js +172 -47
  22. package/dist/web/connection-review-client.js +2 -2
  23. package/dist/web/display-units.js +243 -0
  24. package/dist/web/grid-core.js +474 -58
  25. package/dist/web/grid-display.js +344 -0
  26. package/dist/web/index.html +106 -66
  27. package/dist/web/instructor-reporter.js +5 -0
  28. package/dist/web/instructor.js +175 -33
  29. package/dist/web/json-schema-subset.js +145 -25
  30. package/dist/web/steel-3d-core.js +237 -151
  31. package/dist/web/steel-3d-view.js +366 -113
  32. package/dist/web/steel-catalog-picker.js +98 -15
  33. package/dist/web/steel-detail-refs.js +1 -1
  34. package/dist/web/steel-editor.html +6479 -921
  35. package/dist/web/steel-filter.html +404 -57
  36. package/dist/web/steel-model-adapter.js +1 -1
  37. package/dist/web/steel-model-commands.js +72 -66
  38. package/dist/web/steel-model-v2-client-validation.js +10 -3
  39. package/dist/web/steel-model-v2-commands.js +269 -77
  40. package/dist/web/steel-model-v2-projection.js +18 -17
  41. package/dist/web/steel-plan-transform.js +52 -9
  42. package/dist/web/steel-plan-view-id.js +1 -7
  43. package/dist/web/steel-read-confidence.js +454 -5
  44. package/dist/web/steel-units.js +39 -0
  45. package/dist/web/steel-view-generation.js +21 -7
  46. package/dist/web/workspaces.js +2178 -497
  47. package/package.json +5 -1
@@ -0,0 +1 @@
1
+ {"appId":"floless-rfi-gmail-send","owner":"floless.app","schemaVersion":1,"workflowVersion":"1.0.0"}
@@ -0,0 +1,32 @@
1
+ app: floless-rfi-gmail-send
2
+ version: 1.0.0
3
+ publisher: floless
4
+ display-name: FloLess RFI Gmail delivery
5
+ changelog:
6
+ - version: 1.0.0
7
+ summary: Send one server-composed RFI through the connected Gmail account with duplicate-safe recovery.
8
+ description: |
9
+ Submit one server-composed RFI through the Google account connected to AWARE.
10
+ FloLess stages the fixed recipient, subject, body, and attempt identity just for
11
+ this run; the workflow has no user-editable mail fields.
12
+ exposes-as-agent: false
13
+ requires:
14
+ - google-workspace@2.0.0
15
+ layout: linear
16
+ nodes:
17
+ - id: send
18
+ agent: google-workspace
19
+ command: gmail.send
20
+ description: Submit the staged RFI through the connected Gmail account. AWARE records the stable attempt identity so an interrupted result can be classified without silently sending a duplicate.
21
+ config:
22
+ to: ["{{ config.to }}"]
23
+ cc: []
24
+ bcc: []
25
+ subject: "{{ config.subject }}"
26
+ body: "{{ config.body }}"
27
+ content-type: text
28
+ attempt-id: "{{ config['attempt-id'] }}"
29
+ safety:
30
+ transaction-group: floless-rfi-gmail-send
31
+ snapshot: false
32
+ connections: []
@@ -12,17 +12,28 @@
12
12
  "const": "native",
13
13
  "description": "All Steel Model contracts are authored natively in this format."
14
14
  },
15
+ "environment": {
16
+ "enum": ["US", "UK"],
17
+ "description": "Which steel catalogue every designation in this model resolves against. ABSENT MEANS US, so every contract written before this field stays valid and byte-unchanged. It lives on the CONTRACT rather than beside the project's display units, and that placement is the point: display units are a pure view preference that never reaches an export, while the environment decides a member's real thicknesses, its mass, its default grade and the profile string handed to IFC and Tekla. Carried here, changing it moves the contract bytes — so the approval hash drifts and Run re-gates through the machinery that already exists, rather than a second parallel rule that would have to be kept correct on its own."
18
+ },
15
19
  "members": {
16
20
  "type": "array",
21
+ "maxItems": 10000,
17
22
  "items": { "$ref": "#/$defs/member" },
18
23
  "description": "Model-level physical members in world millimetres. Member ids are unique across the whole model."
19
24
  },
25
+ "provisional_members": {
26
+ "type": "array",
27
+ "maxItems": 10000,
28
+ "items": { "$ref": "#/$defs/provisionalMember" },
29
+ "description": "Read-derived member entities whose exact drawing geometry is preserved in one source view but whose world transform is unresolved. They are never physical members or runtime geometry."
30
+ },
20
31
  "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
32
  "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
33
  "target_confidence": { "type": "number", "minimum": 0, "maximum": 100, "description": "User's per-read confidence target (%)." },
23
34
  "active": { "type": "integer", "description": "Index into plans of the active VIEW — a row, not a page; one page may hold several." },
24
35
  "palette": { "type": "array", "items": { "type": "string" }, "description": "Default per-index profile colours." },
25
- "weights": { "type": "object", "additionalProperties": { "type": ["number", "null"] }, "description": "profile -> plf, from the AISC lookup. null for an unresolved profile." },
36
+ "weights": { "type": "object", "additionalProperties": { "type": ["number", "null"] }, "description": "profile -> KILOGRAMS PER METRE, from the catalogue lookup. null for an unresolved profile — a PRESENT answer meaning 'marked as this section and not a catalogue one', never 'unknown'. Metric like every other quantity in this contract: a mass map that carried lb/ft could not be folded with a UK catalogue's kg/m without a conversion nobody would remember to make, which is precisely how a model comes to render correctly and price wrongly. Imperial BOM columns convert at their own display edge." },
26
37
  "profile_colors": { "type": "object", "additionalProperties": { "type": "string" }, "description": "profile -> #hex user overrides." },
27
38
  "member_styles": { "type": "object", "additionalProperties": true, "description": "Draft-only 2D display state: member type -> line {weight,dash}." },
28
39
  "sheet_previews": { "type": "object", "additionalProperties": { "type": "string" }, "description": "sheet -> base64 JPEG full-sheet preview. CONFIDENTIAL — never committed." },
@@ -108,24 +119,170 @@
108
119
  "member_types": { "type": "array", "description": "User-defined member-type registry rows. No member ids." }
109
120
  },
110
121
  "$defs": {
111
- "elevation": {
112
- "description": "An endpoint elevation. Unknown is part of the type, never an overloaded null. A member with an unknown endpoint is retained and surfaced as an RFI, and refuses to export rather than substituting a guessed elevation. `rfiRef` is optional because the engineering fact can be known before an RFI record exists.",
113
- "oneOf": [
114
- {
115
- "type": "object",
116
- "required": ["known"],
117
- "additionalProperties": false,
118
- "properties": { "known": { "type": "number", "description": "Elevation in world mm (Z-up), matching contract-to-scene's scene space." } }
119
- },
120
- {
122
+ "displayPoint": {
123
+ "type": "object", "required": ["x", "y"], "additionalProperties": false,
124
+ "properties": { "x": { "type": "number" }, "y": { "type": "number" } }
125
+ },
126
+ "provisionalDrawingTarget": {
127
+ "type": "object",
128
+ "required": ["sourceHash", "pageId", "elementId", "sheet", "page", "ext", "pageBounds", "region"],
129
+ "additionalProperties": false,
130
+ "properties": {
131
+ "sourceHash": { "type": "string", "minLength": 1, "maxLength": 200 },
132
+ "pageId": { "type": "string", "minLength": 1, "maxLength": 200 },
133
+ "elementId": { "type": "string", "minLength": 1, "maxLength": 200 },
134
+ "sheet": { "type": "string", "minLength": 1, "maxLength": 40 },
135
+ "page": { "type": "integer", "minimum": 1 },
136
+ "ext": { "type": "string", "pattern": "^[a-zA-Z0-9]{1,8}$" },
137
+ "pageBounds": { "type": "array", "items": { "type": "number" }, "minItems": 4, "maxItems": 4 },
138
+ "region": { "type": "array", "items": { "type": "number" }, "minItems": 4, "maxItems": 4 }
139
+ }
140
+ },
141
+ "provisionalMember": {
142
+ "type": "object",
143
+ "required": ["id", "profile", "provenance", "geometry"],
144
+ "additionalProperties": false,
145
+ "properties": {
146
+ "id": { "type": "string", "minLength": 1, "maxLength": 200 },
147
+ "profile": { "type": "string", "maxLength": 200 },
148
+ "provenance": { "enum": ["read", "revision-read"] },
149
+ "material": { "type": "string", "maxLength": 200 },
150
+ "role": { "enum": ["beam", "column"] },
151
+ "memberType": { "type": "string", "maxLength": 200 },
152
+ "geometry": { "oneOf": [{ "$ref": "#/$defs/placementEvidenceGroup" }, {
121
153
  "type": "object",
122
- "required": ["unknown"],
154
+ "required": ["kind", "viewId", "observationId", "lineageIds", "fromDisplay", "toDisplay", "transform", "why", "checked", "drawingTarget"],
123
155
  "additionalProperties": false,
124
156
  "properties": {
125
- "unknown": { "const": true },
126
- "rfiRef": { "type": "string", "minLength": 1, "description": "Optional reference to the RFI raised for this unknown." }
157
+ "kind": { "const": "view-frame" },
158
+ "viewId": { "type": "string", "minLength": 1, "maxLength": 200 },
159
+ "observationId": { "type": "string", "minLength": 1, "maxLength": 200 },
160
+ "lineageIds": { "type": "array", "items": { "$ref": "#/$defs/hash" }, "minItems": 2, "maxItems": 2 },
161
+ "fromDisplay": { "$ref": "#/$defs/displayPoint" },
162
+ "toDisplay": { "$ref": "#/$defs/displayPoint" },
163
+ "transform": { "type": "object", "required": ["status", "reasons"], "additionalProperties": false, "properties": { "status": { "const": "unresolved" }, "reasons": { "type": "array", "items": { "const": "view-unregistered-unstarted" }, "minItems": 1, "maxItems": 1 } } },
164
+ "why": { "type": "string", "minLength": 1, "maxLength": 600 },
165
+ "checked": { "type": "array", "items": { "$ref": "#/$defs/checkedPage" }, "minItems": 1, "maxItems": 20 },
166
+ "drawingTarget": { "$ref": "#/$defs/provisionalDrawingTarget" }
127
167
  }
128
- }
168
+ }] }
169
+ }
170
+ },
171
+ "placementTrace": {
172
+ "type": "object", "additionalProperties": false,
173
+ "required": ["viewId", "observationId", "lineageIds", "fromDisplay", "toDisplay", "endpoints", "scaleInvalid", "drawingTarget"],
174
+ "properties": {
175
+ "viewId": { "type": "string", "minLength": 1, "maxLength": 200 },
176
+ "observationId": { "type": "string", "minLength": 1, "maxLength": 200 },
177
+ "lineageIds": { "type": "array", "items": { "$ref": "#/$defs/hash" }, "minItems": 2, "maxItems": 2 },
178
+ "fromDisplay": { "$ref": "#/$defs/displayPoint" }, "toDisplay": { "$ref": "#/$defs/displayPoint" },
179
+ "endpoints": { "type": "array", "minItems": 2, "maxItems": 2, "items": {
180
+ "type": "object", "additionalProperties": false, "required": ["observationEnd", "memberEnd", "lineageId"],
181
+ "properties": { "observationEnd": { "enum": [0, 1] }, "memberEnd": { "enum": [0, 1] }, "lineageId": { "$ref": "#/$defs/hash" } }
182
+ } },
183
+ "scaleInvalid": { "type": "boolean" }, "drawingTarget": { "$ref": "#/$defs/provisionalDrawingTarget" }
184
+ }
185
+ },
186
+ "placementEndpointFact": {
187
+ "type": "object", "additionalProperties": false, "required": ["end", "elevation", "why", "checked"],
188
+ "properties": {
189
+ "end": { "enum": [0, 1] }, "elevation": { "enum": ["settled", "unknown"] },
190
+ "why": { "type": "string", "minLength": 1, "maxLength": 600 },
191
+ "checked": { "type": "array", "minItems": 1, "maxItems": 32, "items": { "$ref": "#/$defs/checkedPage" } },
192
+ "point": { "$ref": "#/$defs/workPointKnown" }, "basisHash": { "$ref": "#/$defs/hash" }
193
+ }
194
+ },
195
+ "placementConflict": {
196
+ "type": "object", "additionalProperties": false, "required": ["end", "readings", "spreadMm", "allowedMm", "population", "widestPair"],
197
+ "properties": {
198
+ "end": { "enum": [0, 1] }, "readings": { "type": "integer", "minimum": 2, "maximum": 16 },
199
+ "spreadMm": { "type": "number", "exclusiveMinimum": 0 }, "allowedMm": { "type": "number", "minimum": 0 },
200
+ "population": { "enum": ["complete", "mixed", "elevation-less"] },
201
+ "widestPair": { "type": "array", "minItems": 2, "maxItems": 2, "items": {
202
+ "type": "object", "additionalProperties": false, "required": ["observationId", "lineageId"],
203
+ "properties": { "observationId": { "type": "string", "minLength": 1, "maxLength": 200 }, "lineageId": { "$ref": "#/$defs/hash" } }
204
+ } }
205
+ }
206
+ },
207
+ "placementEvidenceGroup": {
208
+ "type": "object", "additionalProperties": false,
209
+ "required": ["kind", "groupId", "memberId", "affectedEnds", "reasons", "traces", "why", "checked", "endpointFacts", "conflicts"],
210
+ "properties": {
211
+ "kind": { "const": "view-frame-group" },
212
+ "groupId": { "type": "string", "minLength": 1, "maxLength": 216 }, "memberId": { "type": "string", "minLength": 1, "maxLength": 200 },
213
+ "affectedEnds": { "type": "array", "minItems": 1, "maxItems": 2, "uniqueItems": true, "items": { "enum": [0, 1] } },
214
+ "reasons": { "type": "array", "minItems": 1, "maxItems": 2, "uniqueItems": true, "items": { "enum": ["view-scale-invalid", "cross-view-conflict"] } },
215
+ "traces": { "type": "array", "minItems": 1, "maxItems": 32, "items": { "$ref": "#/$defs/placementTrace" } },
216
+ "why": { "type": "string", "minLength": 1, "maxLength": 600 },
217
+ "checked": { "type": "array", "minItems": 1, "maxItems": 32, "uniqueItems": true, "items": { "$ref": "#/$defs/checkedPage" } },
218
+ "endpointFacts": { "type": "array", "minItems": 2, "maxItems": 2, "items": { "$ref": "#/$defs/placementEndpointFact" } },
219
+ "conflicts": { "type": "array", "maxItems": 2, "items": { "$ref": "#/$defs/placementConflict" } }
220
+ }
221
+ },
222
+ "checkedPage": {
223
+ "type": "object",
224
+ "required": ["sourceHash", "pageId", "sheet"],
225
+ "additionalProperties": false,
226
+ "description": "One page that was READ while trying to resolve a gap. Identity AND label, deliberately: `sourceHash`+`pageId` are what the audit verifies against the server-owned manifest, so a checked page cannot be invented; `sheet` is a snapshot of that page's name, and it is the durable half - the manifest is deleted when a read is committed and no contract structure maps a pageId back to a sheet name, so without it a published question could not say which drawing it is about.",
227
+ "properties": {
228
+ "sourceHash": { "type": "string", "minLength": 1, "description": "SHA-256 of the attached source document." },
229
+ "pageId": { "type": "string", "minLength": 1, "description": "Manifest page id." },
230
+ "sheet": { "type": "string", "minLength": 1, "maxLength": 40, "description": "The sheet name as the manifest recorded it, validated against the manifest at audit time." }
231
+ }
232
+ },
233
+ "gapFacts": {
234
+ "type": "object",
235
+ "additionalProperties": false,
236
+ "description": "Why something could not be resolved, and where the reader looked. These are FACTS, not a question: the server derives the RFI from them. Stating them is what separates an honest gap, which publishes with an RFI, from silence, which is refused.",
237
+ "properties": {
238
+ "why": { "type": "string", "minLength": 1, "maxLength": 600, "description": "Plain English: what the set DOES say, and why it does not settle this. A blank or template value is silence and is refused by the audit." },
239
+ "checked": { "type": "array", "maxItems": 20, "items": { "$ref": "#/$defs/checkedPage" }, "description": "The pages actually read. Absent or empty is silence." }
240
+ }
241
+ },
242
+ "knownElevation": {
243
+ "type": "object",
244
+ "required": ["known"],
245
+ "additionalProperties": false,
246
+ "description": "A proven elevation: a number and nothing else. Split out of `elevation` by #1155 so `canonicalElevation` can add a third arm without duplicating this one — two copies of an arm drift, and a drift here is a height nobody notices.",
247
+ "properties": { "known": { "type": "number", "description": "Elevation in world mm (Z-up), matching contract-to-scene's scene space." } }
248
+ },
249
+ "unknownElevation": {
250
+ "type": "object",
251
+ "required": ["unknown"],
252
+ "additionalProperties": false,
253
+ "description": "No elevation at all. NOTE what this costs downstream, because it is why #1155 exists: `contractToScene` leaves such a member OUT of the scene and names it in `skippedDetail` with reason `unknown-elevation` (`server/steel-scene-unknown-elevation.test.ts`). Since #1156a the exports that write a FILE build everything else and report the omission; only a bake into a live CAD model still refuses, because omitting a member there would delete parts already built from it (`server/host-bake-gate.ts`). An unknown endpoint does not place a member low — it removes it from the model. Owner ruling 2026-09-06: a member is always built. So this arm is what the reader may still say, and what the server converts to `assumedElevation` wherever it can name a plan to place the member on.",
254
+ "properties": {
255
+ "unknown": { "const": true },
256
+ "rfiRef": { "type": "string", "minLength": 1, "description": "Optional reference to the RFI raised for this unknown." },
257
+ "why": { "type": "string", "minLength": 1, "maxLength": 600, "description": "See $defs/gapFacts. Optional in the schema, required by the audit - silence is the one content refusal left." },
258
+ "checked": { "type": "array", "maxItems": 20, "items": { "$ref": "#/$defs/checkedPage" }, "description": "See $defs/gapFacts." }
259
+ }
260
+ },
261
+ "assumedElevation": {
262
+ "type": "object",
263
+ "required": ["known", "assumed", "why", "checked"],
264
+ "additionalProperties": false,
265
+ "description": "PLACED, BUT NOT PROVEN (#1155). The member is built — `known` is a real number every consumer can read — and the document says out loud that the drawings did not settle it. Owner ruling 2026-09-06: *\"We must assure that we still create beams with questions if not solved and modified, removing them from the model will end up where we are now. That model is half empty.\"* SERVER-AUTHORED ONLY: this arm is deliberately absent from `$defs/elevation`, which is what an OBSERVATION carries, so a reader cannot pre-stamp its own number as server-assumed. `why` and `checked` are REQUIRED here — unlike on `unknownElevation`, where they are optional so stored documents stay valid — because nothing stored has ever carried this arm, so there is no legacy to protect and silence would defeat the question this arm exists to raise.",
266
+ "properties": {
267
+ "known": { "type": "number", "description": "Where the server placed it, in world mm. Not evidence of anything; see `why`." },
268
+ "assumed": { "const": true },
269
+ "why": { "type": "string", "minLength": 1, "maxLength": 600, "description": "Plain English: what the set does say, and why it does not settle this endpoint. Read by `gapFactsStated`, which refuses a blank or template value." },
270
+ "checked": { "type": "array", "minItems": 1, "maxItems": 20, "items": { "$ref": "#/$defs/checkedPage" }, "description": "The pages actually read. At least one, and the audit additionally requires one the manifest holds — a question pointing at a drawing nobody read is worse than no question." }
271
+ }
272
+ },
273
+ "elevation": {
274
+ "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.",
275
+ "oneOf": [
276
+ { "$ref": "#/$defs/knownElevation" },
277
+ { "$ref": "#/$defs/unknownElevation" }
278
+ ]
279
+ },
280
+ "canonicalElevation": {
281
+ "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`.",
282
+ "oneOf": [
283
+ { "$ref": "#/$defs/knownElevation" },
284
+ { "$ref": "#/$defs/assumedElevation" },
285
+ { "$ref": "#/$defs/unknownElevation" }
129
286
  ]
130
287
  },
131
288
  "workPoint": {
@@ -136,7 +293,7 @@
136
293
  "properties": {
137
294
  "x": { "type": "number", "description": "World mm, +X." },
138
295
  "y": { "type": "number", "description": "World mm, +Y. (contract-to-scene flips display Y; world coordinates here are already flipped.)" },
139
- "z": { "$ref": "#/$defs/elevation" }
296
+ "z": { "$ref": "#/$defs/canonicalElevation" }
140
297
  }
141
298
  },
142
299
  "workPointKnown": {
@@ -316,7 +473,7 @@
316
473
  "type": "object",
317
474
  "required": ["version", "displayOrigin", "worldOrigin", "worldU", "worldV", "controls"],
318
475
  "additionalProperties": false,
319
- "description": "Versioned display-to-world frame for a non-plan drawing view. The enclosing view pt_per_ft is the sole scale authority.",
476
+ "description": "Versioned display-to-world frame for a non-plan drawing view. The enclosing view mm_per_px is the sole scale authority.",
320
477
  "properties": {
321
478
  "version": { "const": 1 },
322
479
  "displayOrigin": { "$ref": "#/$defs/point2" },
@@ -379,6 +536,7 @@
379
536
  },
380
537
  "bf": { "type": "boolean", "description": "Bottom-flange flag." },
381
538
  "rfi": { "type": "boolean", "description": "True when the SIZE is unresolved (excluded from the BOM). A boolean about the profile — unrelated to elevation.rfiRef." },
539
+ "profileResolution": { "$ref": "#/$defs/gapFacts", "description": "Why the SIZE is unresolved and which pages were read, when `rfi` is true. A sibling rather than a field on `profile`, because `profile` is a required string and this object cannot hang off it." },
382
540
  "mf": { "type": "boolean", "description": "Moment-frame member (persistent flag)." },
383
541
  "verified": { "type": "boolean", "description": "True = a human confirmed this member." },
384
542
  "source": {
@@ -393,7 +551,7 @@
393
551
  "properties": {
394
552
  "type": { "enum": ["lateral", "vertical"] },
395
553
  "floor": { "enum": ["above", "below"] },
396
- "offset": { "type": "number", "description": "Signed perpendicular distance (INCHES) from the work-line to the DRAWN symbol line. Display-only." },
554
+ "offset": { "type": "number", "description": "Signed perpendicular distance in MILLIMETRES from the work-line to the DRAWN symbol line. Display-only — the 3D bake, IFC and Tekla export never read it. Millimetres like every other length in this contract; the editor converts for its own ft-in field." },
397
555
  "lowerEnd": { "enum": [0, 1], "description": "Optional override of which work-point is the lower (double-arrowhead) end." }
398
556
  }
399
557
  },
@@ -422,14 +580,14 @@
422
580
  "type": "object",
423
581
  "required": ["sheet", "viewKind"],
424
582
  "additionalProperties": false,
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.",
583
+ "description": "One DRAWING VIEW (#938), which for a plan view is a horizontal CUT PLANE. It no longer owns members: `elevation_mm` 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
584
  "properties": {
427
585
  "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
586
  "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." },
429
587
  "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." },
430
588
  "title": { "type": "string" },
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." },
432
- "pt_per_ft": { "type": "number", "description": "Display points per foot (the drawing scale). Still needed: observations record local geometry in display px." },
589
+ "elevation_mm": { "type": "number", "description": "This view's horizontal cut elevation, in world MILLIMETRES — the same space as every member endpoint and the model grid, so a cut plane and the members it cuts are finally comparable without a conversion. Member endpoint elevations remain explicit values and are never inferred from this view setting. Renamed from `elevation_in` when it stopped being inches: a field whose unit changed while its name did not is the one thing a stale reader cannot notice." },
590
+ "mm_per_px": { "type": "number", "description": "MILLIMETRES PER DISPLAY PIXEL — the drawing scale. Still needed: observations record local geometry in display px, and this is what turns those px into world mm. Renamed from `pt_per_ft` (display points per FOOT) when the contract went fully metric: a scale measured per foot cannot describe a metric sheet at all, which is why a 1:100 drawing finds no standard in the imperial scale fitter and is refused outright. Multiply a px distance by this to get millimetres." },
433
591
  "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)." },
434
592
  "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." },
435
593
  "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)." },
@@ -471,12 +629,12 @@
471
629
  "source": { "$ref": "#/$defs/observationSource" },
472
630
  "local": {
473
631
  "type": "object",
474
- "required": ["wp", "pt_per_ft"],
632
+ "required": ["wp", "mm_per_px"],
475
633
  "additionalProperties": false,
476
634
  "description": "The observed geometry and its units: display pixels plus the sheet scale needed to interpret them.",
477
635
  "properties": {
478
636
  "wp": { "type": "array", "items": { "$ref": "#/$defs/point2" }, "minItems": 2, "maxItems": 2, "description": "Work-point endpoints in THIS sheet's display space." },
479
- "pt_per_ft": { "type": "number", "exclusiveMinimum": 0, "description": "The sheet scale the px above are measured in." }
637
+ "mm_per_px": { "type": "number", "exclusiveMinimum": 0, "description": "The sheet scale, in millimetres per display pixel, that the px above are measured in. Must equal the enclosing view's — an observation recorded at a different scale is refused rather than re-projected." }
480
638
  }
481
639
  },
482
640
  "provenance": { "enum": ["auto-read", "revision-read", "manual"], "description": "How this evidence was produced." },
@@ -510,6 +668,36 @@
510
668
  "confidence": { "type": "number", "minimum": 0, "maximum": 100, "description": "Per-field confidence, 0-100 — the same scale as target_confidence." }
511
669
  }
512
670
  },
671
+ "observedElevation": {
672
+ "description": "An endpoint elevation as the READER may state it from #1099 onward: the length token quoted exactly as the sheet draws it plus the datum it is measured from, `at` a named datum, or an explicit unknown. Deliberately NOT the shared `elevation` $def, which is also the canonical member Z — canonical geometry stays millimetres. UNREFERENCED IN THIS BUILD (#1097): wiring it into `observedElevationField` would make token observations schema-valid while the root still forbids `datums[]`, and normalization would then read a good token as a MISSING elevation. #1099 wires it, the write-boundary guards and the version flip together.",
673
+ "oneOf": [
674
+ {
675
+ "type": "object",
676
+ "required": ["drawn", "datumId", "mode"],
677
+ "additionalProperties": false,
678
+ "properties": {
679
+ "drawn": { "type": "string", "minLength": 1, "description": "The length token verbatim, as drawn. Never converted, never tidied." },
680
+ "datumId": { "type": "string", "minLength": 1 },
681
+ "mode": { "enum": ["absolute", "relative"] }
682
+ }
683
+ },
684
+ {
685
+ "type": "object",
686
+ "required": ["at"],
687
+ "additionalProperties": false,
688
+ "properties": { "at": { "type": "string", "minLength": 1, "description": "The member is drawn AT this datum; no token is invented." } }
689
+ },
690
+ {
691
+ "type": "object",
692
+ "required": ["unknown"],
693
+ "additionalProperties": false,
694
+ "properties": {
695
+ "unknown": { "const": true },
696
+ "rfiRef": { "type": "string", "minLength": 1 }
697
+ }
698
+ }
699
+ ]
700
+ },
513
701
  "observedElevationField": {
514
702
  "type": "object",
515
703
  "required": ["value", "confidence"],
@@ -569,9 +757,9 @@
569
757
  "properties": {
570
758
  "on": { "type": "boolean", "description": "Grid visible (2D + 3D). Default true." },
571
759
  "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." },
572
- "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." },
760
+ "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. A token may be feet-inches (\"25'-0\\\"\"), bare inches (\"6\\\"\"), metres (\"7.5m\") or bare/suffixed millimetres (\"6000\", \"6000mm\") — write a metric job in millimetres, because feet-inches resolves only to 1/16\\\" and a 6000 mm bay written that way reads back as 6000.75." },
573
761
  "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." },
574
- "z": { "type": "string", "description": "Absolute level elevations, comma-separated." },
762
+ "z": { "type": "string", "description": "Absolute level elevations, comma-separated. Same token grammar as `x`/`y`; write a metric job in millimetres (\"0, 4200\") rather than feet-inches, which resolves only to 1/16\\\"." },
575
763
  "labels_x": { "type": "string", "description": "Whitespace-separated label overrides for X lines; blank = auto 1,2,3…" },
576
764
  "labels_y": { "type": "string", "description": "Whitespace-separated label overrides for Y lines; blank = auto A,B,C…" },
577
765
  "labels_z": { "type": "array", "items": { "type": "string", "maxLength": 40 }, "description": "Editable level labels aligned to the authored Z entries." },
@@ -811,13 +999,14 @@
811
999
  "viewObjects": {
812
1000
  "type": "object",
813
1001
  "additionalProperties": false,
814
- "description": "The objects-pane's persistent visibility state. NOTE the two different namespaces: `hidden`/`solo` are profile/legend GROUP KEYS (not ids, and deliberately not reference-checked), while `isolated`/`connHidden` are references and are tagged.",
1002
+ "description": "The objects-pane's persistent visibility state. NOTE the two different namespaces: `hidden`/`solo` are profile/legend GROUP KEYS (not ids, and deliberately not reference-checked), while `isolated`/`connHidden` are references and are tagged. `ghostUnselected` is a view preference only: it never stores a selection snapshot.",
815
1003
  "properties": {
816
1004
  "v": { "type": "integer" },
817
1005
  "hidden": { "type": "array", "items": { "type": "string" }, "description": "Profile/legend group keys hidden via the legend." },
818
1006
  "solo": { "type": "array", "items": { "type": "string" }, "description": "Profile/legend group keys isolated via the legend." },
819
1007
  "isolated": { "type": ["array", "null"], "items": { "$ref": "#/$defs/sceneRef" }, "description": "Isolate-selected set, or null for off." },
820
- "connHidden": { "type": "array", "items": { "$ref": "#/$defs/jointPartRef" }, "description": "Explicit per-PART connection hides." }
1008
+ "connHidden": { "type": "array", "items": { "$ref": "#/$defs/jointPartRef" }, "description": "Explicit per-PART connection hides." },
1009
+ "ghostUnselected": { "type": "boolean", "description": "Whether objects outside the current live selection are ghosted. Absent means off for saved views created before this preference existed." }
821
1010
  }
822
1011
  },
823
1012
  "viewGenerated": {
@@ -875,6 +1064,8 @@
875
1064
  "props": { "type": "array", "items": { "type": "string" }, "description": "Checked property registry keys to show as labels." },
876
1065
  "placement": { "enum": ["start", "mid", "end"] },
877
1066
  "selected_only": { "type": "boolean" },
1067
+ "for_all": { "type": "boolean", "description": "Label all members. Absent derives from neither selected_only nor on_selection being enabled; true takes precedence over both." },
1068
+ "on_selection": { "type": "boolean", "description": "Also label the current selection. May combine with the frozen selected_only ids; absent means false." },
878
1069
  "vis2d": { "type": "boolean", "description": "Show the label chips on the 2D plan. Absent means on. Property selection is shared across 2D and 3D; visibility is per view." },
879
1070
  "vis3d": { "type": "boolean", "description": "Show the label chips in the 3D view. Absent means on, for the same reason as vis2d." },
880
1071
  "ids": { "type": "array", "items": { "type": "string", "minLength": 1 }, "description": "Member ids the labels pin to, used only when selected_only is true." }
@@ -2,7 +2,7 @@
2
2
  name: floless-app-knowledge
3
3
  description: This skill should be used when there is a pending floless `knowledge-organize` or `knowledge-adjust` request — the user pressed Organize on a floless.app project's Knowledge step, or asked to reshape that project's knowledge base. Also triggers on asks like "organize my project knowledge base", "compile the project wiki", "drain my knowledge-organize request", or "fold these shop standards into the project's knowledge". It teaches the host AI to claim the server-owned organize lock, project the enabled reference sources into that project's vault, compile a cross-linked LLM-wiki into the server-minted generation directory, and publish it — never writing the server-owned manifest, pointer, or lock.
4
4
  metadata:
5
- version: 0.2.0
5
+ version: 0.2.1
6
6
  ---
7
7
 
8
8
  # Organize a project's Knowledge Base
@@ -181,7 +181,10 @@ GET <base>/api/workspace-projects/<projectId>/knowledge?q=<the subject you're ab
181
181
  a fabricator's preference — and cite the `slug`/`title` you relied on so the user can trace it. This
182
182
  is the guardrail: *reliably-consulted context*, not a mechanical run-gate. You must actually consult it.
183
183
  - When a summary looks decisive and you need the full page, read it from the project route
184
- `GET <base>/api/projects/<projectId>/knowledge/page/<slug>` (plain-text body).
184
+ `GET <base>/api/projects/<projectId>/knowledge/page/<slug>?generation=<generationId>` (plain-text
185
+ body), passing the same `generation.generationId` the feed returned. Without `?generation=` the
186
+ route serves whatever is current, and an Organize pass that lands mid-task would hand you a page the
187
+ feed never ranked — the pin you record afterwards would then cite a generation you did not read.
185
188
 
186
189
  ### Identity propagation — thread the KB's identity into every subagent
187
190