specify-core 0.2.0__tar.gz → 0.3.0rc1__tar.gz

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 (126) hide show
  1. {specify_core-0.2.0 → specify_core-0.3.0rc1}/CHANGELOG.md +486 -5
  2. {specify_core-0.2.0 → specify_core-0.3.0rc1}/Cargo.lock +10 -9
  3. {specify_core-0.2.0 → specify_core-0.3.0rc1}/Cargo.toml +28 -8
  4. {specify_core-0.2.0 → specify_core-0.3.0rc1}/PKG-INFO +26 -22
  5. {specify_core-0.2.0 → specify_core-0.3.0rc1}/README.md +106 -68
  6. specify_core-0.3.0rc1/build.rs +190 -0
  7. specify_core-0.3.0rc1/bundle/app/NOTICE +31 -0
  8. specify_core-0.3.0rc1/bundle/app/assets/ibm-plex-mono-cyrillic-400-normal-BSMlKf0J.woff2 +0 -0
  9. specify_core-0.3.0rc1/bundle/app/assets/ibm-plex-mono-cyrillic-400-normal-CEL4l2ZJ.woff +0 -0
  10. specify_core-0.3.0rc1/bundle/app/assets/ibm-plex-mono-cyrillic-600-normal-CTOM6hUh.woff2 +0 -0
  11. specify_core-0.3.0rc1/bundle/app/assets/ibm-plex-mono-cyrillic-600-normal-fLZuRloM.woff +0 -0
  12. specify_core-0.3.0rc1/bundle/app/assets/ibm-plex-mono-cyrillic-ext-400-normal-DMdlQ8Kv.woff +0 -0
  13. specify_core-0.3.0rc1/bundle/app/assets/ibm-plex-mono-cyrillic-ext-400-normal-xuaO2J-f.woff2 +0 -0
  14. specify_core-0.3.0rc1/bundle/app/assets/ibm-plex-mono-cyrillic-ext-600-normal-9HEixskS.woff +0 -0
  15. specify_core-0.3.0rc1/bundle/app/assets/ibm-plex-mono-cyrillic-ext-600-normal-V-xxqcpd.woff2 +0 -0
  16. specify_core-0.3.0rc1/bundle/app/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff +0 -0
  17. specify_core-0.3.0rc1/bundle/app/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2 +0 -0
  18. specify_core-0.3.0rc1/bundle/app/assets/ibm-plex-mono-latin-600-normal-BgSNZQsw.woff2 +0 -0
  19. specify_core-0.3.0rc1/bundle/app/assets/ibm-plex-mono-latin-600-normal-DWFSQ4vo.woff +0 -0
  20. specify_core-0.3.0rc1/bundle/app/assets/ibm-plex-mono-latin-ext-400-normal-BmRBH3aV.woff2 +0 -0
  21. specify_core-0.3.0rc1/bundle/app/assets/ibm-plex-mono-latin-ext-400-normal-D3D2R8hC.woff +0 -0
  22. specify_core-0.3.0rc1/bundle/app/assets/ibm-plex-mono-latin-ext-600-normal-D38SheWl.woff2 +0 -0
  23. specify_core-0.3.0rc1/bundle/app/assets/ibm-plex-mono-latin-ext-600-normal-DmB0ttJJ.woff +0 -0
  24. specify_core-0.3.0rc1/bundle/app/assets/ibm-plex-mono-vietnamese-400-normal-BulugwFq.woff2 +0 -0
  25. specify_core-0.3.0rc1/bundle/app/assets/ibm-plex-mono-vietnamese-400-normal-DDuiU_S-.woff +0 -0
  26. specify_core-0.3.0rc1/bundle/app/assets/ibm-plex-mono-vietnamese-600-normal-D2EvbN8M.woff2 +0 -0
  27. specify_core-0.3.0rc1/bundle/app/assets/ibm-plex-mono-vietnamese-600-normal-iLQfcSjf.woff +0 -0
  28. specify_core-0.3.0rc1/bundle/app/assets/index-2Kz5UFJL.js +11095 -0
  29. specify_core-0.3.0rc1/bundle/app/assets/index-Dv92XAe_.css +1 -0
  30. specify_core-0.3.0rc1/bundle/app/assets/intent.worker-C1MprrqI.js +3 -0
  31. specify_core-0.3.0rc1/bundle/app/assets/no-bundled-engine-D1H2bWWQ.js +1 -0
  32. specify_core-0.3.0rc1/bundle/app/index.html +14 -0
  33. specify_core-0.3.0rc1/bundle/app/licenses/IBM-Plex-Mono-OFL.txt +93 -0
  34. specify_core-0.3.0rc1/bundle/app/specify-ui-app.json +1 -0
  35. specify_core-0.3.0rc1/bundle/wasm/package.json +21 -0
  36. specify_core-0.3.0rc1/bundle/wasm/specify_core_wasm.js +895 -0
  37. specify_core-0.3.0rc1/bundle/wasm/specify_core_wasm_bg.wasm +0 -0
  38. {specify_core-0.2.0 → specify_core-0.3.0rc1}/crates/specify-core-py/Cargo.toml +2 -2
  39. specify_core-0.3.0rc1/crates/specify-core-py/LICENSE +202 -0
  40. {specify_core-0.2.0 → specify_core-0.3.0rc1}/crates/specify-core-py/README.md +26 -22
  41. {specify_core-0.2.0 → specify_core-0.3.0rc1}/crates/specify-core-py/src/lib.rs +42 -52
  42. {specify_core-0.2.0 → specify_core-0.3.0rc1}/pyproject.toml +1 -1
  43. {specify_core-0.2.0 → specify_core-0.3.0rc1}/python/specify_core/api.py +35 -39
  44. {specify_core-0.2.0 → specify_core-0.3.0rc1}/python/specify_core/existing.py +17 -2
  45. {specify_core-0.2.0 → specify_core-0.3.0rc1}/python/specify_core/rules.py +8 -2
  46. {specify_core-0.2.0 → specify_core-0.3.0rc1}/python/specify_core/writer.py +21 -2
  47. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/answer_file.rs +2 -18
  48. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/api.rs +327 -309
  49. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/bom.rs +210 -88
  50. specify_core-0.3.0rc1/src/carry.rs +1473 -0
  51. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/characteristics.rs +339 -64
  52. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/choices.rs +24 -0
  53. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/cli.rs +204 -225
  54. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/dimensioning.rs +336 -25
  55. specify_core-0.3.0rc1/src/edits.rs +1163 -0
  56. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/existing.rs +826 -69
  57. specify_core-0.3.0rc1/src/feature_table.rs +1585 -0
  58. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/features.rs +106 -21
  59. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/general.rs +3 -2
  60. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/input.rs +35 -15
  61. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/lib.rs +4 -0
  62. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/mcp.rs +405 -330
  63. specify_core-0.3.0rc1/src/open/bundle.rs +30 -0
  64. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/open.rs +487 -187
  65. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/pmi_origin.rs +15 -8
  66. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/pmi_scene/notes.rs +8 -9
  67. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/pmi_scene.rs +293 -125
  68. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/problems.rs +40 -2
  69. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/process.rs +107 -79
  70. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/provenance.rs +36 -130
  71. specify_core-0.3.0rc1/src/resume/truth.rs +23 -0
  72. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/resume.rs +92 -34
  73. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/revision/assembly.rs +7 -115
  74. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/revision/pmi.rs +265 -534
  75. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/revision/tests.rs +1 -101
  76. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/revision.rs +129 -954
  77. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/rule_sources.rs +3 -1
  78. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/rules/datums.rs +14 -1
  79. specify_core-0.3.0rc1/src/rules/general_rows.rs +332 -0
  80. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/rules/holes.rs +22 -1
  81. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/rules/mod.rs +457 -103
  82. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/rules/records.rs +51 -0
  83. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/serve.rs +13 -28
  84. specify_core-0.3.0rc1/src/session.rs +1620 -0
  85. specify_core-0.3.0rc1/src/tolerance_block.rs +662 -0
  86. specify_core-0.3.0rc1/src/writer/apply.rs +2431 -0
  87. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/writer/tests.rs +55 -1
  88. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/writer.rs +1195 -269
  89. specify_core-0.2.0/src/resume/truth.rs +0 -884
  90. specify_core-0.2.0/src/session.rs +0 -1071
  91. {specify_core-0.2.0 → specify_core-0.3.0rc1}/LICENSE +0 -0
  92. {specify_core-0.2.0 → specify_core-0.3.0rc1}/NOTICE +0 -0
  93. {specify_core-0.2.0/crates/specify-core-py → specify_core-0.3.0rc1/bundle/app}/LICENSE +0 -0
  94. {specify_core-0.2.0 → specify_core-0.3.0rc1}/crates/specify-core-py/NOTICE +0 -0
  95. {specify_core-0.2.0 → specify_core-0.3.0rc1}/python/specify_core/__init__.py +0 -0
  96. {specify_core-0.2.0 → specify_core-0.3.0rc1}/python/specify_core/__main__.py +0 -0
  97. {specify_core-0.2.0 → specify_core-0.3.0rc1}/python/specify_core/choices.py +0 -0
  98. {specify_core-0.2.0 → specify_core-0.3.0rc1}/python/specify_core/cli.py +0 -0
  99. {specify_core-0.2.0 → specify_core-0.3.0rc1}/python/specify_core/load.py +0 -0
  100. {specify_core-0.2.0 → specify_core-0.3.0rc1}/python/specify_core/problems.py +0 -0
  101. {specify_core-0.2.0 → specify_core-0.3.0rc1}/python/specify_core/schema/haecceity.pmi-1.json +0 -0
  102. {specify_core-0.2.0 → specify_core-0.3.0rc1}/python/specify_core/schema/haecceity.presentation-1.json +0 -0
  103. {specify_core-0.2.0 → specify_core-0.3.0rc1}/python/specify_core/serve.py +0 -0
  104. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/anchors.rs +0 -0
  105. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/carried.rs +0 -0
  106. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/characteristics/inspection.rs +0 -0
  107. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/characteristics/keys.rs +0 -0
  108. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/extras.rs +0 -0
  109. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/locations.rs +0 -0
  110. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/main.rs +0 -0
  111. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/materials.rs +0 -0
  112. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/mates.rs +0 -0
  113. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/mesh.rs +0 -0
  114. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/part.rs +0 -0
  115. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/pyfmt.rs +0 -0
  116. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/pyjson.rs +0 -0
  117. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/resume/names.rs +0 -0
  118. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/revision/pmi_picture.rs +0 -0
  119. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/revision/treatments.rs +0 -0
  120. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/rules/mates.rs +0 -0
  121. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/rules/py.rs +0 -0
  122. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/rules/turned.rs +0 -0
  123. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/sightlines.rs +0 -0
  124. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/standards.rs +0 -0
  125. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/tolerancing.rs +0 -0
  126. {specify_core-0.2.0 → specify_core-0.3.0rc1}/src/triangulate.rs +0 -0
@@ -6,6 +6,487 @@ All notable changes to specify-core-rust. The format follows
6
6
 
7
7
  ## Unreleased
8
8
 
9
+ To be released as 0.3.0 (every package; see "Lockstep versions").
10
+
11
+ Read first:
12
+
13
+ - **The app and engine ship inside the command** ([ADR P12](https://github.com/pzfreo/draftwright-project/blob/main/adr/P12-specify-ships-whole.md)):
14
+ the release binaries, the Python wheels and the crates.io crate carry the Specify app and its
15
+ WASM engine (about 6 MB more), and `open` and MCP `show` serve them from the binary. Nothing is
16
+ downloaded or cached, the page works offline from the first run, and the app, the engine and
17
+ the command are always one version. `--app`/`SPECIFY_APP_DIR` and `--wasm`/`SPECIFY_WASM_DIR`
18
+ still override, and an `--app`'s session `api` is still checked.
19
+ - **specify-ui moved into this repository,** under `ui/`, with its history: the React components
20
+ (`@draftwright/specify-ui`) and the local app that `open` and MCP `show` serve. Package names are
21
+ unchanged: `specify-core` (crates.io, PyPI), `@draftwright/specify-core-wasm` and
22
+ `@draftwright/specify-ui` (npm). pzfreo/specify-ui is to be archived (kept, so 0.2.1 can still download its app); its changes up to 0.2.0 are in
23
+ its own history and release notes.
24
+ - **The file is the only copy** ([ADR P11](https://github.com/pzfreo/draftwright-project/blob/main/adr/P11-the-file-is-the-only-copy.md)):
25
+ a file's PMI is the state, whoever wrote it (docs/answers.md, "Reopening a file").
26
+ - `analyse` adds the feature table, `table: {rows, file_pmi, decided_none}`: each
27
+ feature-and-kind `stated`, `gap` (with Specify's suggestion) or `decided_none`. Only gaps are
28
+ asked.
29
+ - `existing` is the file's whole PMI, Specify's own included (before, a reopened file's
30
+ `existing` left out what its stored answers explained), each item with its full `text`.
31
+ - **Removed:** conflicts (`resume.conflicts`, `review`'s and MCP `open`/`questions`'
32
+ `conflicts`, `kind: "conflict"`), `keep` (MCP `answer`'s `keep`, `_specify.keep`),
33
+ `resume.foreign` and `resume.present`. What the file states stands; changing it is an
34
+ explicit edit.
35
+ - **Storage:** only answers that leave no PMI behind are stored in the file: decided none,
36
+ choices that are not requirements, and general sizes deliberately omitted on datum faces
37
+ (the payload's `no_pmi`, `_specify.no_pmi` among resumed answers). Unfulfilled approvals
38
+ are reported and their rows stay open. An answer that wrote PMI is
39
+ not stored; the file states it. A file saved by 0.2.x reopens with its other stored answers
40
+ ignored (the file states them) and is stored the new way on the next save.
41
+ - **Lockstep versions.** Every package is released together at one version: 0.3.0 is the next for
42
+ all of them, so `@draftwright/specify-ui` goes from 0.2.0 to 0.3.0 (there is no specify-ui
43
+ 0.2.1). `@draftwright/specify-ui` X depends on `@draftwright/specify-core-wasm` X exactly.
44
+
45
+ ### Added
46
+
47
+ - **The ids are a contract** (docs/ids.md): the part-level ids (`part.material`, `datum.<letter>`,
48
+ `bom.*`, `extra.<name>`, …), the requirement kinds (`hole.position`, `diameter.fit`, …) and the
49
+ added requirement kinds, and measurement ids `length:planes:*` and `location:holes:*`,
50
+ are listed and promised stable; a feature id is a kind and the faces
51
+ it is on, and its face numbers hold for one revision only. `tests/ids_contract.rs` fails when
52
+ the code's ids and the doc's lists differ. The lists are one source each in the code
53
+ (`input::PART_NAMES`, `FEATURE_KINDS`, `DATUM_LETTERS`, `DATUM_CONTROLS`, `bom::KEYS`, public
54
+ but hidden from the docs, for the test). No behaviour change. The file's other PMI items'
55
+ ids, `file_pmi:#<entity>` (the edit list's `{"id": …}` removal), are documented there too:
56
+ the prefix is in the contract, the entity number holds while the file is saved in place.
57
+ - What the file states reads back whole (ADR P11): each `existing` item, and each feature-table
58
+ requirement, has its full notation, `text` (`⌀3.3 H11`, `⌖ ⌀0.3Ⓜ A`, `M2×0.4-6H ↧ 2`), so a
59
+ stated row reads `⌀3.3 H11`, not `Size_Diameter 3.3`; optional structured fields by the
60
+ planner's names (a size's `fit`, with its ISO 286 deviations; a tolerance's `diametral`,
61
+ `zone`, `mmc`, `modifiers`; a thread's `designation`, `spec`, `pitch`, `class`, `hand`,
62
+ depths; a knurl's parameters; a finish's `finish`); and `text_only: true` where the item
63
+ states something those fields don't hold (a datum reference's Ⓜ, a projected zone ...). Also
64
+ in Python's `ExistingPmi` (`text`, `text_only`, `fields`). docs/answers.md, "What the file
65
+ states, read back whole".
66
+ - **A general tolerance given as a block** (#228; docs/questions.md): `part.general_tolerance`
67
+ takes a title block's lines in one line of text, for example `.XX ±.01, .XXX ±.005, fractions
68
+ ±1/64, angles ±1°`, shown back as `.XX ±.01 · .XXX ±.005 · ±1/64 · angles ±1°`. The decimal-place
69
+ lines are written as AP242's default tolerance table in the unit stated (inch notation means
70
+ inches; never converted), fractions and angles in the general tolerance note beside it, and
71
+ nothing else: no ISO class, no dimension. Reopening shows the table as stated, whoever wrote it.
72
+ A different general tolerance in an intent is still refused when the file states one; only an
73
+ explicit change (`writer::write_bytes_changing_general_tolerance`, for the edit list's
74
+ `change`) replaces it, every other entity byte for byte. `none` is now an answer for `part.general_tolerance` and
75
+ `part.surface_finish` (decided none: nothing written, the decision stored).
76
+ - `@draftwright/specify-ui`: a `HostView` interface (ui/docs/host-view.md, specify-core #222) so a host can
77
+ draw the 3D view. `StepDiff` and `SpecifyReview` take an optional `view` prop; without one they use
78
+ today's view, now the interface's default implementation. Faces are identified by STEP entity
79
+ (MapShapes order only for solid-only parts), with a check on load. Labels and drawn PMI stay on the
80
+ default view for now. StepDiff now reports the nearest face under the pointer, since a host reports
81
+ only that; known gap: StepDiff runs no load check yet.
82
+ - `carry OLD NEW -o OUT` (and the MCP tool `carry`) copies an annotated revision's requirements
83
+ onto a new revision, file to file (ADR P11, docs/carry.md). Each feature-and-kind OLD states
84
+ fills NEW's gap through the in-place writer, all or nothing; NEW's own requirements stand,
85
+ with differences reported; one on a feature that moved or changed size is listed to check;
86
+ one not found or ambiguous, one citing a datum that is not carried, one the new geometry
87
+ cannot take, and anything Specify does not understand, is reported not carried with its kind
88
+ and faces; datums are matched by their faces. NEW's own numbering and BOM values stand. The
89
+ report starts with the counts (carried, not carried, to check) and a verdict as `diff`'s:
90
+ `decide` whenever anything is not carried or is to check. Decided-none, characteristic numbers (with their retired numbers)
91
+ and, in an assembly, BOM item numbers and answers carry too: what `diff`'s answers carried
92
+ before 0.3.0. New features with nothing stated are listed as information. In an assembly,
93
+ each matched part's own requirements carry too, through the in-place writer on that part
94
+ (every other part keeps its bytes), each entry naming its part. Not yet: `--base`, WASM and
95
+ Python.
96
+ - `diff` lists, for information, the features new in this revision that the new file's PMI states
97
+ nothing on: "New in this revision with nothing stated: Ø7 × 10 through hole." in the Markdown
98
+ report (and so on the diff page and in MCP's `markdown`), and `new_unstated: [{feature, what}]`
99
+ in `report.json` (left out when empty). It never changes the verdict or `check`.
100
+
101
+ - The edit list (`src/edits.rs`, proposal specify-0.3.0 use case 7): `{fill, change, items:
102
+ {change, remove}, none, accept_suggestions}`, parsed with every malformed part named by its
103
+ path, and validated all or nothing against the file's state (a differing fill, a stale
104
+ `expect`, an unknown id or number, an unsupported item change, contradictory entries). A 0.2
105
+ answers file is read as fills plus nones. `write STEP EDITS.json --check` validates and writes
106
+ nothing; so do MCP `check`, WASM `checkEdits` and Python `api.check_edits`, against the file.
107
+ - Saving edits in place (proposal specify-0.3.0 use cases 3, 4 and 7; ADR P11):
108
+ `write STEP EDITS.json -o OUT` applies an edit list all or nothing, and `--check` now checks it
109
+ against the file's feature table. A save touches only what the list names: every other
110
+ requirement keeps its bytes and its number, whoever wrote it, and a rules change never alters a
111
+ file. A change keeps the number when only its limits change; a different measurement gets a new
112
+ number and the old one is retired; a removed requirement's number is retired; retired numbers
113
+ are never reused. Only decided-none (and how holes are located) and the number history are
114
+ stored. A fill writes only its own row (filling the general tolerance writes its class, not
115
+ the planner's dimensions for other features). A change never adds a location beside one its
116
+ row shares with another feature: such a change is refused, naming it. A change to none takes
117
+ the frame with the basic dimensions only it used. `--check` applies the list in memory, so it
118
+ refuses exactly what `write` would. Every numbered requirement is in the feature table (a
119
+ finish on the whole part on `part.surface_finish`), so any can be removed by number. After
120
+ `session::save_edits`, the session works on the file saved: a later save keeps the edits. Rust: `writer::apply::{apply, apply_bytes, check}`, `session::save_edits`. Not yet:
121
+ changing one requirement by its number (`items.change`).
122
+ - Edits in place on a part of an assembly (Paul, 2026-11-21; as 0.2's `write` could):
123
+ `write STEP EDITS.json --part K -o OUT` (and `--check --part K`), `session::save_part_edits`,
124
+ and `writer::apply::apply_bytes`'s `part` apply a list to one part of a file of several
125
+ parts, or of a part placed more than once, with the same rules as a file of one part. A part
126
+ placed twice is edited once, as its definition. Every other part, placement and instance,
127
+ their PMI and stored answers, keep their bytes (decision D3), and the save refuses rather
128
+ than change them; characteristic numbers are each part's own.
129
+ - Removal without a number: `items.remove` also takes `{"id": "<stated row>"}` (every
130
+ requirement stating it that no other feature's row shares; `part.material`, a requirement
131
+ with no number) and `{"id": "file_pmi:#<entity>"}`, an item of the file's other PMI. The
132
+ feature table gives each file-PMI item that id (`file_pmi[].id`), from the STEP entity its
133
+ number is (or would be) on, so it stays the same while the file is saved in place. A removal
134
+ retires the removed items' numbers, as one by number does.
135
+ - A change keeps what it does not touch: a changed tolerance keeps the file's zone form and
136
+ modifiers (`⌖ ⌀0.3Ⓜ A` changed to 0.2 is `⌖ ⌀0.2Ⓜ A`), and `change` also takes a value field
137
+ by field, `"to": {"value": 3.4}` (a tolerance's value, or a fitted size's nominal: `⌀3.3 H11`
138
+ becomes `⌀3.4 H11`, the class kept, no deviations in its place). A requirement whose text
139
+ holds what no field does (`text_only`) is refused a change, with the reason, rather than
140
+ replanned without those parts. A tolerance row's stated value in the fill form is its
141
+ magnitude alone (`0.3` for `⌖ ⌀0.3Ⓜ A`).
142
+
143
+ ### Changed
144
+
145
+ - **Quiddity 0.5.5.** Published step levels on every part axis get plane-to-plane length rows.
146
+ Independent plane lengths keep their rows. Stated locations on retired levels appear under
147
+ **Other PMI in the file** when they match no measured row. A stated length on tilted planes
148
+ stays on its matching row. Change its tolerance with `"to": "±0.2"` and the row value as
149
+ `expect`. The edit preserves the nominal length and both supports.
150
+ Faces that only support another feature, such as a round boss cap, get no rows of their own.
151
+ Fillets are unchanged from 0.2 and use the general tolerance. Grouped fillet rows come with
152
+ quiddity 0.5.6 radius groups (Paul, 2026-11-22).
153
+
154
+ - **`write` can save with open gaps** (#228, ADR P11). A successful edit list writes
155
+ the requested requirements and lists the remaining gaps under `missing`.
156
+ - **`pmiScene` item ids changed** (ADR P11, D3): a planned dimension's id no longer says how it
157
+ was stated. `planner:specified:dim:…` and `planner:answered:dim:…` are now `planner:dim:…`, and
158
+ the `planner:stored:dim:…:{nominal}:{tolerance}` form read from a file loses its stored mark and
159
+ its nominal and tolerance (`planner:dim:…`), so one requirement has one id from preview to the
160
+ written file, whatever its value. **Hosts that pair callouts with rows by these ids must update
161
+ them.**
162
+ - **An answer to a question Specify doesn't ask is never dropped silently** (decision D11,
163
+ #126). In a file's stored answers (an older file), one whose question is not asked given the
164
+ other stored answers, or a stored "none" where the file now states the requirement, is reported
165
+ once on reopening and left out of the resumed answers, as a stored answer whose requirement is
166
+ gone already was: each is listed in the analysis's new `resume.dropped_answers` (`id`, `value`,
167
+ `reason`) and named in a warning, and the next save lists it in `not_written` and does not store
168
+ it again. In answers given now, an id that names nothing the part has (a feature it does not
169
+ have, or a kind that feature's family has no question of) refuses the whole list, named with
170
+ its reason (`Invalid answers: hole.position:holes:999: unknown feature holes:999`), in the
171
+ rules (`questions`, `apply`, `preview`, `review`) and the writer; before, the rules ignored it.
172
+ An answer to a real question that is merely not asked now is reported in `not_written` as
173
+ before, and is no longer stored (docs/answers.md).
174
+ - **A hole is located per direction** (decision D8): a location dimension locates, along the
175
+ axis it measures, the holes on its located side and every other hole on the same line from
176
+ the same reference; its reference side locates nothing. A hole's location row is stated when
177
+ every direction is located, otherwise a gap whose `missing` lists the directions left; its
178
+ suggestion then adds only those (no position tolerance, no second location in a located
179
+ direction). A datum hole is not asked its location in the directions it is the origin of
180
+ (docs/answers.md).
181
+ - **A general-tolerance answer writes only its note** (ADR P9, decision D1): approving "ISO
182
+ 2768-m" no longer writes the general tolerance's dimensions (every feature's size and
183
+ location, nominal only) as a side effect. Each is written when its own question is approved
184
+ (`hole.function`/`diameter.fit` for a size, `hole.position`/`hole.location` for a hole's
185
+ location); until then the feature table keeps those rows as gaps with their suggestions.
186
+ - **General dimensions have rows** (Paul, 2026-11-21). Plane lengths and hole locations
187
+ without an owning question appear as optional gaps with suggestions such as `14 ±0.2 from B`.
188
+ Approve a row individually or name multiple rows in `accept_suggestions`.
189
+ Answer `none` to record that the dimension is unnecessary. Measurements already in the file
190
+ show as stated.
191
+ - **The local app's review panel** (proposal specify-0.3.0 piece 7; draftwright-project
192
+ proposals/specify-panel.md, accepted with its mock-up). The page lists the part's features from the
193
+ file's feature table, each kind of requirement stated, a gap (with its suggestion as a chip) or
194
+ decided none, and "Other PMI in the file" last. Stated rows have a pencil and a bin, matching and
195
+ uncoloured; change opens one line with the current value first; the bin asks once, in red, and says
196
+ the number is retired. A gap offers Add (pre-filled) and None needed; a decided none offers Undo
197
+ (`clear`). "Other PMI" rows have remove only. Edits are listed in a bar at the bottom and written
198
+ together by Save, as one edit list, all or nothing, or dropped by Discard; each is checked against
199
+ the file (with those already listed) before it joins the bar. Only unsaved edits are highlighted;
200
+ nothing says who wrote a requirement. The general tolerance's line is a row editor (#228): a class,
201
+ or a block of decimal places and their tolerances, an angles line and a note line, written as one
202
+ line of text (`.XX ±.01, .XXX ±.005, angles ±1°`). The part picker opens assembly parts for
203
+ editing and keeps pending edits in one bar, with each entry named for its part. A refused
204
+ None needed explains why on its row. A queued removal can be undone on its row. Notes have
205
+ separate lines. Agent answers can fill gaps. A different answer to a stated row shows a
206
+ discardable refusal with the explicit guarded change to make. Only a staged `change` with
207
+ `to` and `expect` becomes a savable change draft.
208
+ The bar marks when a local edit replaces an agent's answer. **Add all suggestions** queues
209
+ suggestions for the selected part. Save applies the pending edits together, and Undo or
210
+ Discard drops working edits without writing.
211
+ Removed from the app: the questions list and the Answers (JSON) export; the 3D view now
212
+ draws the file's PMI only. Values read as drawn ("⌖ 0.2 A"). Every stated row has the bin; a removal
213
+ sends the numbers, or `{"id": …}` in `items.remove` for a requirement without one. Save with nothing listed says "Nothing to
214
+ save." and writes nothing. `SpecifyReview` no longer says "from the file" (datum chips, stated part
215
+ settings) and its Show menu's "PMI from the file" is "Requirements": origin is never shown.
216
+ `@draftwright/specify-ui`'s worker gains a `check-edits` operation (WASM `checkEdits`). Plane
217
+ lengths appear under “The part”, and hole locations appear with the feature they locate.
218
+ - **Saving is an edit list everywhere** (proposal specify-0.3.0 piece 6, ADR P11): the page, MCP,
219
+ WASM and Python apply an edit list to the file, all or nothing, as `write STEP EDITS.json` does.
220
+ Writing a whole intent from answers is gone from them.
221
+ - **Page contract, session `api` 2** (docs/open.md): `POST save` accepts `{rev, edits}`
222
+ or `{rev, partEdits: [{part, edits}, …]}`. Batch save stages each part and commits the
223
+ file once. A refusal names the part and entry (422), a malformed list returns 400,
224
+ and a stale revision returns 409. Save includes working edits. `POST discard` clears
225
+ one or all working edits. The session holds its lock from the final revision check
226
+ through commit.
227
+ - **MCP:** `check` and `save` accept an edit list for the opened part or a batch in
228
+ `partEdits`. Both combine working answers with explicit edits. `discard` drops working
229
+ answers and refusals without writing. `open` and a successful save return the current
230
+ file's table. Reopening the original after a copy save starts without the saved drafts.
231
+ Another copy requires an edit. Use `check` with `stage: true` to draft explicit changes.
232
+ `write_pmi` and `save`'s `accept_defaults` are removed.
233
+ - **Python:** `api.write(step, edits, output)` applies an edit list (`EditsRefused`, a
234
+ `ValueError` with `failures`, when any entry cannot be applied), and `api.check_edits(step,
235
+ edits)` checks one; the report adds `retired` and `unchanged`. `write(step, intent, output,
236
+ answers=)` was replaced by the edit-list signature.
237
+ - The edit list gains `clear`: it takes back a stored decision that leaves no PMI (a decided
238
+ none, a stored choice), never PMI. A fill of `extra.<name>` adds that requirement, as a 0.2
239
+ answer did; one the file already states is a no-op with the same spec and refused with
240
+ another (remove it by number in the same list to replace it). A 0.2 answers file whose evidence is from another revision is refused as stale
241
+ (`_specify.evidence`), as 0.2's write refused it. MCP `check` refuses as `save` does while
242
+ the session holds unsaved answers.
243
+ - An edit list may fill a choice that is not a requirement and has no feature-table row (how
244
+ holes are located, `part.locating`), checked against its options, or decide it none where
245
+ none is an option; it is stored beside the PMI, and the planner reads it for the rest of the
246
+ list.
247
+ - A part of an assembly is edited through WASM as through `write --part`: `IntentEngine.openPart`
248
+ then `edit`. Its BOM goes in the same list: `fill` of `bom.<field>`, or `accept_suggestions`
249
+ of `bom.<field>` for the BOM's suggestion (what `writePmi`'s `bom` argument did); the BOM is
250
+ appended and every part numbered. A `bom.*` entry on a file with no assembly is refused
251
+ (`bom_no_assembly`).
252
+ - An edit list approves general dimensions through their rows. A thread written without a
253
+ callout reads, in the PMI scene, as its manufacturing data does (`M4×0.7-6H THRU`).
254
+ - Rust: `session::save` (answers) and its approvals are gone; `session::save_edits` takes the
255
+ `rev` the caller saw and refuses a list as `SaveError::Edits(failures)`; `session::check_edits`.
256
+
257
+ - **`diff` reads only the PMI in the two files** ([ADR P11](https://github.com/pzfreo/draftwright-project/blob/main/adr/P11-the-file-is-the-only-copy.md),
258
+ 0.3.0 use case 6): reviewing a requirement change is `specify-core diff OLD NEW` between two
259
+ annotated files. It lists requirements added, removed and changed per feature, with their
260
+ characteristic numbers, and the new file's requirements on a feature that moved or changed
261
+ size, to check. Each file is read alone, whoever wrote it: stored answers are never read to
262
+ compare, so the same requirements pair the same way with or without them (items keep their
263
+ `pmiScene` ids and statuses). A change of limits on the same feature and kind
264
+ is `changed` with both values and the same number; a different measurement is one removed
265
+ and another added, also when the last-resort pairing by kind would have joined them; a datum
266
+ relettered on the same faces is `changed`. The geometric matching, the picture and the
267
+ Markdown report are as before.
268
+ - **Removed:** `diff --answers` and the `answers.json` that `diff` wrote; `open --diff`'s
269
+ `--answers` and its default of carrying the answers stored in OLD (the session is NEW's own);
270
+ MCP `open`'s `old_answers` and `diff`'s `doc` and `answers`; Python `api.diff`'s `answers`;
271
+ the report's `answers`, `migrated`, `unresolved`, `questions` and `problems`, and the
272
+ deprecated `pmi.stored`, `pmi.existing`, `pmi.existing_count`, `pmi.answers_from` and
273
+ `pmi.new_stored`; the `problems` verdict. `check` rows are now `{number, id, requirement,
274
+ feature, changes}`. The `_specify_characteristic_numbers` and `_specify_bom` answer
275
+ transports, which only `diff` produced, are no longer produced (the writer still accepts
276
+ them); carrying requirements and numbers to a new revision is for `carry`.
277
+ - The STEP diff action no longer reads `<part>.answers.json` sidecars or reports them stale.
278
+ - `open` and MCP `show` no longer download anything: the first-run download of the app and
279
+ engine, its cache (`app/` and `wasm/` under the user cache directory, which can be deleted) and
280
+ `app.lock.json` (the pin of a specify-ui release) are gone, and with them the `ureq`, `tar`,
281
+ `dirs` and `tempfile` dependencies. `build.rs` builds in the app from `ui/dist-app` (of the same
282
+ version) and the engine from the wasm-pack `pkg/`, gzipped, under the default `bundled-app`
283
+ feature; a build without them still compiles, and its `open` asks for `--app` (or points to
284
+ `pip install specify-core`). With `--app` and no `--wasm`, an app without its own `wasm/` is
285
+ served the built-in engine. See docs/open.md.
286
+ - One `v*` release builds the engine, the command line, the WASM, the Python package and the UI.
287
+ The command line (cli.yml), the wheels and sdist (python.yml) and the crate (crates.yml) each
288
+ build the app and WASM first (bundle.yml) and carry them; each binary and wheel is checked to
289
+ serve its built-in app with no network (tools/open_smoke.py), the crate takes them while it
290
+ stays under crates.io's 10 MB (about 6.8 MB for 0.3.0), and release.yml tests the app against the
291
+ command with the app built in. No app archive is attached to the release; the command-line
292
+ archives carry a build provenance attestation instead. release.yml publishes
293
+ `@draftwright/specify-ui` (environment `npm`) after its engine.
294
+ - The UI builds and tests against the in-repo WASM build (`file:../crates/specify-core-wasm/pkg`)
295
+ and command (`target/release/specify-core`); its `engines.lock.json` (the WASM and command pins)
296
+ is gone.
297
+ - CI filters pull requests by path: a change only under `ui/` skips the Rust jobs, one that does
298
+ not touch `ui/` or a shared file skips the UI jobs. Main and releases run everything. `ci-ok` is
299
+ the one check to require.
300
+ - `pmiScene` statuses are the feature table's states (ADR P11, D3): `stated` (the file has the
301
+ item, whoever wrote it), `gap` (planned for an open gap in a preview) or `decided_none`, in
302
+ place of `answered` / `default` / `general` / `existing`. The `origin` field is gone; a dimension
303
+ the general tolerance governs has `general: true`. Item ids no longer say how a requirement was
304
+ stated (`planner:dim:hole:9/bore.diameter`, not `planner:specified:…`), and a Specify-written
305
+ file names its numbered requirements as the preview did, so an item keeps its id from preview
306
+ to file. The UI draws stated items as the file's PMI and gaps as Specify's.
307
+ - A value read from the file is labelled `file`, whoever wrote it (ADR P11, D5a): the BOM's
308
+ material source and the process attribute's source (`analysis.process`, `process::of`,
309
+ `process::read`) no longer say `answered` for a value Specify wrote. An accepted, marked process
310
+ suggestion still reads as `default`.
311
+
312
+ - A saved answer with no requirement for it in the file now warns "saved answer {id} ({value}): no
313
+ requirement for this answer in the file; the question is open again", once per answer (ADR
314
+ P11, D6).
315
+ - The reviewed WASM size ceiling is raised from 16,500,000 to **17,000,000** bytes (approved by Paul,
316
+ 2026-11-22, for the 0.3.0 feature set), after the integrated 0.3.0 stack measured 16,568,361 bytes.
317
+
318
+ ### Removed
319
+
320
+ - The command-line whole-intent writer. Use
321
+ `write STEP EDITS.json` and name any suggestions to accept in `accept_suggestions`.
322
+
323
+ - **Answers export** ([ADR P11](https://github.com/pzfreo/draftwright-project/blob/main/adr/P11-the-file-is-the-only-copy.md):
324
+ no export of answers as a record; the file is the only copy): CLI `questions
325
+ --resolve-defaults` and its approval-file option, serve `export_answers`, MCP
326
+ `export_answers`, Rust `api::export_answers` (with `api::Exported` and
327
+ `api::APPROVALS_FORM`), Python `api.export_answers` and WASM `exportAnswers`. Answer files
328
+ written earlier are still read (`--answers`, `write`, `answers_file`).
329
+
330
+ ### WASM API
331
+
332
+ - `IntentEngine.edit(editsJson, project?, payload?)`: an edit list (or a 0.2 answers file)
333
+ applied to the file in memory, all or nothing: `{written: true, bytes, report, source_sha256}`
334
+ (the report with `retired` and `unchanged`), or `{written: false, failures, message}` naming
335
+ every entry that cannot be applied. A part opened with `openPart` is edited in the original
336
+ assembly. Open the returned bytes before the next edit. Optional `project` or `payload`
337
+ replaces the value stored under that name and retains the original part record.
338
+ - `IntentEngine.checkEdits(editsJson)`: the list checked against the file, as `write --check`
339
+ checks it without writing.
340
+ - `IntentEngine.table()`: the feature table, `{rows, file_pmi, decided_none}`.
341
+ - Removed (Specify 0.3.0, "What goes away"): `IntentEngine.writePmi` (writing a whole intent; use
342
+ `edit`), `IntentEngine.acceptDefaults` (the free `acceptDefaults(analysis, answers)` stays, for
343
+ previews). `rematchAnswers` stays: the editor matches the answers its project keeps to the
344
+ part with it.
345
+ - `diff(oldName, oldBytes, newName, newBytes, title, scenes?)`: the unused fifth argument
346
+ (`_answers`) is removed.
347
+
348
+ - `exportAnswers(answers, approved?)` is removed: there is no export of answers as a record
349
+ (ADR P11).
350
+
351
+ ### Fixed
352
+
353
+ - Changing or removing a requirement on a shared feature preserves its other requirements,
354
+ including thread manufacturing data. Scoped saves replace the previous caller project.
355
+ - Carry verifies that numbered requirements are present in its output and reports omissions.
356
+ Kept-thread comparisons include manufacturing data.
357
+ - MCP Save returns the saved feature table and analysis resources follow the session’s saved file.
358
+ - General tolerances can be changed on assembly parts. Typed tolerance blocks and ISO classes
359
+ can be replayed, and free-text lines are kept in the general tolerance note.
360
+
361
+ - A reopened file's preview no longer plans the general dimensions the file already states
362
+ (ADR P11), so the app's inspection list showed them twice, once as planned and once as the
363
+ file's. The file's own rows in that list now read as planned ones: a location dimension is on
364
+ the faces it locates, "from" its reference, and the file's surface texture keeps its number.
365
+ A thread and a tolerance now read as planned there too (`M2×0.4-6H`, `⌖ ⌀0.3 Ⓜ`), from the
366
+ engine's read-back fields; one stating more than its fields hold reads its whole text.
367
+ - The read-only view folds the dimensions a file states under its general tolerance into the
368
+ "N dimensions under ISO 2768-m" row again (they are the file's own now, not planned).
369
+ - A stated ⌀3.3 H11, ⌖ ⌀0.3 Ⓜ and M2×0.4-6H no longer read back as `⌀3.3`, `⌖ 0.3` and
370
+ `internal thread` (a 0.3.0 regression from reading stated PMI from the file, ADR P11).
371
+ - MCP `answer` stages an edit against the current STEP value when a row is already
372
+ stated. Accepting the same value is a no-op. Save checks the stated value before committing.
373
+ - An approval the planner writes nothing for (a ⌀ left to the general tolerance on a datum's own
374
+ faces) is no longer dropped silently: `not_written` says what was approved and that nothing
375
+ of its kind was written, it is stored (`no_pmi`), and on reopening its row is decided on every
376
+ route (the command line's `questions` and `write` and `serve` now take the file's stored
377
+ decisions as answered, as the sessions do), so `questions --open` no longer lists it and a
378
+ plain `write` of the saved file no longer refuses "incomplete".
379
+ - A location the planner shares across several holes is written unless the file already
380
+ locates every one of them: on NIST CTC-05, 263.525 from face 9 to holes 37, 51/53 and 54/56
381
+ was left out because hole 37 (datum B) is located, and the other holes lost their only x
382
+ location.
383
+ - Stated text reads as a drawing does: no float noise (`⌀1.06500000000426` → `⌀1.065`), no
384
+ trailing zeros (`0.016000` → `0.016`), and a dimension with no value in words (`Diameter,
385
+ no value stated`, not `⌀` or `Location_LinearDistance`).
386
+ - A save that changes nothing keeps the file's bytes in an assembly whose parts are written in
387
+ different modes (one with PMI added to, one without replaced); before, only all-Add or
388
+ all-Replace saves did, and the stored-answer blocks were renumbered.
389
+
390
+ - Datum C is no longer asked once datum B is answered none, nor B (or C) once A is: a datum
391
+ without the one before it makes no sense. A letter already given stays asked, so its answer can
392
+ still be seen and removed.
393
+ - Later saves of an `open` (or MCP) session update the copy that session's last save wrote,
394
+ instead of writing a new numbered copy each time. A file the session did not write, or its copy
395
+ once changed or removed by anyone else, is never overwritten: the save takes the next free name.
396
+
397
+ ## 0.2.1 (2026-11-20)
398
+
399
+ Read first:
400
+
401
+ - **No `--app` needed:** `specify-core open` and MCP `show` download the pinned Specify app
402
+ (specify-ui v0.2.0) and the matching WASM engine on first use, verify their SHA-256, and cache
403
+ them. `--app`/`SPECIFY_APP_DIR` and `--wasm`/`SPECIFY_WASM_DIR` still override.
404
+ - **Fixed: saves delete less.** Answers that write no PMI (no coating, a general hole, no
405
+ flatness on a datum) are resumed on reopening instead of asked again, unless the file now says
406
+ otherwise. A general note another tool added is no longer removed when an empty notes answer is
407
+ stored (the known issue in 0.2.0's notes). Edited printed general tolerances, a second flatness,
408
+ another tool's manufacturing process and another tool's hole position answered afresh are kept.
409
+ - **Fixed: a part with a face whose area cannot be computed** (a degenerate face some
410
+ converters write) opens instead of being refused. That face is left out and reported as
411
+ `unmeasured_face`, and the part has no planned dimensions (details under Fixed).
412
+ - **Rust API:** `features::Face.area` and `Face.centroid` are now `Option` (absent for an
413
+ unmeasured face), and the WASM types mark them optional; Rust callers that read them need
414
+ updating. The JSON only leaves them out for faces that used to refuse the whole part.
415
+ - **Conflict handling changes in 0.3.0.** In 0.2.x another tool's requirement is keep-only and
416
+ `not_written` says to change it in that tool; the "use my answer" choice 0.2.0 announced does not
417
+ come in 0.2.x. 0.3.0 treats the file's PMI the same whoever wrote it and lets a person or an AI
418
+ change or remove any of it on purpose (ADR P11).
419
+ - **Known issue:** on a file an older Specify wrote (0.1.7), the editor's live preview can list
420
+ location dimensions that saving then removes, and leave out ones that saving keeps. `write`'s
421
+ "retired characteristic numbers" warning names what a save removed. 0.3.0 is planned to stop
422
+ removing them (ADR P11).
423
+
424
+ ### Added
425
+
426
+ - `open` and MCP `show` can download and cache a pinned Specify app and the release-matched
427
+ WASM engine, with SHA-256 verification and a session API check. Local app and engine overrides
428
+ remain available. `app.lock.json` pins specify-ui v0.2.0 (page contract `api` 1).
429
+ - The page's `config` gives `api`, the version of the page contract (docs/open.md): 1, the
430
+ contract of 0.2.0. It changes only in a minor release, so an app can check it is built for
431
+ the command serving it.
432
+ - The page's `GET file?rev=saved` serves the bytes the session's last save wrote (a copy
433
+ beside the input, or the input after an in-place save, whether the page or an AI client saved),
434
+ with the path in `X-Specify-Path`. It is 404 before a save, and 409 (or 404) if that file has
435
+ changed (or gone) on disk since: other bytes are never served.
436
+
437
+ ### Fixed
438
+
439
+ - A face whose area and centroid cannot be computed (a cylinder bounded by one closed circle,
440
+ as some converters write a degenerate face) no longer refuses the whole part. Its entry in
441
+ `faces` keeps its place (position = `id`) with no `area` or `centroid` and
442
+ `unmeasured: true`; it is left out of every feature that uses it (and of a hole pattern with
443
+ such a member, whatever quiddity reports for it), so of the questions, anchors, diff face
444
+ changes and written PMI. The analysis reports it: an additive `unmeasured_faces` list of
445
+ `{face, reason, detail}`, a `warning` problem with `code: "unmeasured_face"` in the review,
446
+ and a warning in the CLI, serve and MCP. The rest of the part opens, is specified and written.
447
+ Such a part has no planner frame (quiddity needs the solid's volume), so its rule-made
448
+ intent is written without planned dimensions, and a `dimensions_not_planned` problem and a
449
+ warning in the analysis and the write report say so; only that frame failure is tolerated.
450
+ `Face.area` and `Face.centroid` are `Option` in the Rust API. A face whose surface did not
451
+ resolve keeps its refusal, and the mesh lists the face as not triangulated.
452
+ For pzfreo/quiddity#303.
453
+ - Reopening can resume a no-PMI face answer when each file item on its target faces has
454
+ an exact match in the stored answers' plan or the available plan with remaining
455
+ defaults accepted. Datum questions check both versions of the same datum. Part settings
456
+ compare every file entry, including each note, regardless of authorship. Withheld
457
+ answers follow ordinary file-PMI handling and stay in the file for reevaluation.
458
+ That release’s batch approval stored the defaults it took that wrote no PMI.
459
+ - Saves preserve edited printed general-tolerance notes and marked tolerances hidden by
460
+ imported tolerances. If comparison fails, reopening withholds the saved answers while
461
+ protecting the file's readable PMI (with an analysis warning from the CLI, serve, MCP and
462
+ Python; not yet from WASM or the page's session).
463
+ - Reopening a STEP file detects manufacturing-process edits and removals against saved
464
+ answers even after the STEP provenance markers have been stripped. CLI and editor
465
+ rewrites preserve unmarked foreign process attributes, including text outside Specify's
466
+ options. A Keep of Specify's process permits later replacement of the UDA with the
467
+ recorded property-set name and items.
468
+ - A fresh answer no longer replaces another tool's requirement. After a save kept another
469
+ tool's hole position over a contradicted stored answer, reopening read it as the file's
470
+ answer together with Specify's own location dimensions, and answering the question again
471
+ replaced it (CLI, editor `writePmi` and MCP; also in 0.2.0). Such a question is now
472
+ `resume.foreign`, not asked, and its answer is neither written nor stored. A Keep of a
473
+ foreign conflict is no longer stored as permission to replace it. `not_written` names the
474
+ cause: "another tool's requirement holds this question; keep it, or change it in that tool".
475
+ Known limit: a file saved by 0.2.0 after such a Keep still records it, and an answer can
476
+ still replace that requirement.
477
+
478
+ ### WASM API
479
+
480
+ - `AnalysisFace.area` and `AnalysisFace.centroid` are optional, and `AnalysisFace.unmeasured?: boolean` is added: a face whose area and centroid cannot be computed keeps its place in `analysis.faces` with `unmeasured: true` and no area or centroid. Other faces are unchanged. For pzfreo/quiddity#303.
481
+ - `IntentEngine.review` can withhold no-PMI answers where the file states PMI with no
482
+ exact match in either comparison plan.
483
+ `IntentEngine.writePmi` retains those file requirements on save.
484
+
485
+ ### Known limits
486
+
487
+ - When another tool strips all of Specify's markers from a replace-written STEP file and
488
+ leaves no process evidence, rewrites restore saved answers and drop edited items, as in 0.2.0.
489
+
9
490
  ## 0.2.0 (2026-11-19)
10
491
 
11
492
  Read first:
@@ -76,7 +557,7 @@ Read first:
76
557
  person approves it). `api::export_answers`, CLI `questions --resolve-defaults`, serve
77
558
  `export_answers`, WASM `exportAnswers` and Python `api.export_answers` export the answers given
78
559
  plus exactly the defaults approved by part, `{"<part>": {"<id>": value}}` with the value the
79
- person saw (CLI `--accept-defaults FILE`, serve and Python `accept_defaults`, WASM's second
560
+ person saw (the former CLI approval-file option, serve and Python `accept_defaults`, WASM's second
80
561
  argument); without approvals, no defaults. An approval that is not an open question's
81
562
  default, or whose default has changed, is refused naming the part and question (serve adds
82
563
  `expected` and `current`). Another part's approvals do not apply. Open questions and carry
@@ -393,8 +874,8 @@ Read first:
393
874
  ("From the file", "Your answer", or "Proposed: made/bought (…)"). The one `check` is a
394
875
  standard-hardware name on a part recognised with pockets or keyways (proposed made; its reason asks which). Part number and revision
395
876
  carry no suggestion. `bom.stock` is no longer asked: it follows make/buy, is still proposed
396
- by `--bom` and an explicit answer is still written. Suggestions stay out of `default`, so
397
- `--accept-defaults` writes no BOM field.
877
+ by that release's BOM opt-in and an explicit answer is still written. Suggestions stay
878
+ out of `default`. The old PMI default-approval option wrote no BOM field.
398
879
 
399
880
  ### Fixed
400
881
 
@@ -441,7 +922,7 @@ Read first:
441
922
  usage errors are clap's text rather than argparse's, and `-h` and `--help` both give a
442
923
  command's full help. The top-level help now lists `diff`, `open` and `bom`, which were left
443
924
  out to match Python's text, and a prefix of `--help` at the top level (`--he`, `--h`) prints
444
- the help (exit 0). Positionals after an option are taken: `write S A B -o OUT C D` writes both
925
+ the help (exit 0). The writer at that release accepted positional arguments after an option and wrote both
445
926
  pairs and `write S A -o OUT B` the pair `A B`, where argparse left `C D` and `B`
446
927
  unrecognised. The WASM build leaves the command line out (the root crate's default `cli`
447
928
  feature, off for `specify-core-wasm`).
@@ -563,7 +1044,7 @@ Read first:
563
1044
  Plain maps remain compatible and cannot detect changed in-range face identities.
564
1045
  **Re-run `diff` to regenerate changes files from released v0.1.8 and earlier**: their
565
1046
  metadata-free `changes/answers.json` cannot reveal dropped answers, so the literal
566
- old-file `write --accept-defaults` repro still exits 0 on updated tools.
1047
+ the archived CLI’s old-file default-approval repro exited 0 on the updated tools.
567
1048
  Older Specify/editor WASM builds reject new `_specify` maps as `unknown answer ID`;
568
1049
  older CLI and Python installs may accept and ignore `_specify`, without its evidence and
569
1050
  carry-block checks. Old plain files remain compatible with new tools.
@@ -288,8 +288,8 @@ dependencies = [
288
288
 
289
289
  [[package]]
290
290
  name = "haecceity"
291
- version = "0.5.4"
292
- source = "git+https://github.com/pzfreo/quiddity?tag=v0.5.4#f7ed5825b260ecc64221ea5cc00bd7fe9e852bc6"
291
+ version = "0.5.5"
292
+ source = "git+https://github.com/pzfreo/quiddity?tag=v0.5.5#079fe70d706b0774930c72f18d14e18968dc0493"
293
293
  dependencies = [
294
294
  "flate2",
295
295
  "i_overlay",
@@ -592,8 +592,8 @@ dependencies = [
592
592
 
593
593
  [[package]]
594
594
  name = "quiddity"
595
- version = "0.5.4"
596
- source = "git+https://github.com/pzfreo/quiddity?tag=v0.5.4#f7ed5825b260ecc64221ea5cc00bd7fe9e852bc6"
595
+ version = "0.5.5"
596
+ source = "git+https://github.com/pzfreo/quiddity?tag=v0.5.5#079fe70d706b0774930c72f18d14e18968dc0493"
597
597
  dependencies = [
598
598
  "flate2",
599
599
  "haecceity",
@@ -753,7 +753,7 @@ dependencies = [
753
753
 
754
754
  [[package]]
755
755
  name = "specify-core"
756
- version = "0.2.0"
756
+ version = "0.3.0-rc.1"
757
757
  dependencies = [
758
758
  "base64",
759
759
  "clap",
@@ -768,12 +768,13 @@ dependencies = [
768
768
  "serde_json",
769
769
  "sha2",
770
770
  "spade",
771
+ "specify-core",
771
772
  "step-io",
772
773
  ]
773
774
 
774
775
  [[package]]
775
776
  name = "specify-core-py"
776
- version = "0.2.0"
777
+ version = "0.3.0-rc.1"
777
778
  dependencies = [
778
779
  "pyo3",
779
780
  "serde_json",
@@ -782,7 +783,7 @@ dependencies = [
782
783
 
783
784
  [[package]]
784
785
  name = "specify-core-wasm"
785
- version = "0.2.0"
786
+ version = "0.3.0-rc.1"
786
787
  dependencies = [
787
788
  "console_error_panic_hook",
788
789
  "haecceity",
@@ -794,9 +795,9 @@ dependencies = [
794
795
 
795
796
  [[package]]
796
797
  name = "step-io"
797
- version = "0.3.0"
798
+ version = "0.3.1"
798
799
  source = "registry+https://github.com/rust-lang/crates.io-index"
799
- checksum = "c80cd4ee8e13a35d24b48590efc44772f4323d0534d84c3d9fa0621fd82b18c4"
800
+ checksum = "22cc66e033d7f70f04d8d7f962d2d6c001e152d04f16aa7f7ac84cf107eb4dae"
800
801
  dependencies = [
801
802
  "logos",
802
803
  "memchr",