Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
832a940
feat: deliver 067G design workflows and verified installer scope
Nov 7, 2026
0458520
feat: deliver 068B exact surface modeling and native inspection
Nov 7, 2026
dbf973d
docs: record verified 068B installer and upgrade evidence
Nov 7, 2026
57f544e
perf: deliver 069D incremental rebuild and exact context reuse
Nov 7, 2026
3ee0af2
perf: verify 069D delivery and streamline Obsidian path checks
Nov 7, 2026
ed18303
perf: deliver 070A multicore scheduling SIMD and memory residency
Nov 7, 2026
fa18e1c
docs: record verified 070A installer and upgrade evidence
Nov 7, 2026
91ed17b
fix: add Claude reconnection and adaptive RAM worker policies
Nov 7, 2026
2597823
docs: record verified 071D reconnect and resource delivery
Nov 7, 2026
d9bba97
072A Remove fixed edit and history quotas
Nov 8, 2026
ba1410b
Document 072A local verification and installer delivery
Nov 8, 2026
0a77095
Record final 072A candidate regression evidence
Nov 8, 2026
edbb7bb
073B Scope rebuild dependencies and add exact extrusion workflow
Nov 8, 2026
f65619c
Document verified 073B local installer delivery
Nov 8, 2026
4ad1b6a
074B Expand incremental rebuild and exact geometry authoring
Nov 8, 2026
33528d9
Record verified 074B local release evidence
Nov 8, 2026
79fa423
075D Refresh current agent guides across providers and existing chats
Nov 8, 2026
4870937
Record 075D onboarding audit and local delivery
Nov 8, 2026
4418507
Clarify design brief guidance and record quality investigation
Nov 10, 2026
8316cac
fix(resources): size Linux budgets from MemAvailable, not free pages
Nov 12, 2026
b63e93d
fix(studio): reserve an 8 MiB main stack
Nov 12, 2026
e40dd74
test(resources): expect no decoded cache entries without persistent r…
Nov 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
169 changes: 168 additions & 1 deletion CMakeLists.txt

Large diffs are not rendered by default.

41 changes: 34 additions & 7 deletions docs/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,35 @@ authority. Load `agent_onboard{topic:"exploded_views"}` and see
046B profile regions: a sketch with several non-touching closed loops extrudes
(`native_solid` extrude, all end conditions; legacy extrude), revolves
(`revolve_surface` solid:1) and sweeps (section, solid:1) as faces with holes by
even-odd containment. Each feature publishes one solid; choose one of several
even-odd containment. Default loops/single mode publishes one solid; choose one of several
regions with `native.regions:[{entity}|{point}]` (format 48). Crossing,
touching, branched, zero-area or self-intersecting loops and open chains
without a selection reject naming the entities. See
[profile regions](PROFILE_REGIONS_046B.md).

073B extrusion adds exact region discovery through
`sketch_inspect{name,native_regions:true}`, directed `p.start_offset`, and thin
walls through `p.thickness` with `native.thin_side`. Closed simple boundaries
use `inside|outside|symmetric`; supported open paths use `left|right|symmetric`.
The initial thin domain is straight polylines or a single arc/circle without
holes; unsupported or invalid offsets reject explicitly. Multiple selected
regions remain separate editable features in one atomic batch. Explicit union
features can join them to selected targets; do not silently drop solids or
retarget assembly occurrences. New semantics require document format 58.
See [073B scope and verification](iterations/073B.md).

074B explicitly extends these defaults. Use `native.region_mode:"arrangement"`
and point selectors for exact cells from crossing curves, `result_mode:"bodies"`
to retain multiple solids, and `boolean_mode:"all"` for one Boolean over all
explicit inputs. Native thin offsets use `thin_method:"offset"` and
`thin_join:"arc"|"intersection"`. Contour fillets use `radius_domain:"contour"`
with complete explicit tangent-edge selection and radius stations. Point-anchored
references and body selection are editable derived definitions; ambiguous,
boundary and stale-digest selections reject. Surface compatibility, closed
networks and parametric seam alignment are opt-in. These new semantics require
source59; consult [074B contracts and limits](iterations/074B.md).
`doc_info{detail:"evaluation"}` explains the last evaluation without changing it.

046B motion clearance: `motion_info{name,clearance:{pairs|scope,threshold_mm,max_subdivisions}}`
measures exact clearance over a fresh bake, read-only. A stale bake rejects
with `MOTION_BAKE_STALE`; re-bake with `motion.bake` first. `continuous_certified`
Expand All @@ -169,8 +192,8 @@ evidence at that revision and inspect the current revision before writing. See
045A protects work at capacity limits. `doc_save` no longer fails when the
optional saved-geometry cache is full: excess entries are omitted and recompute
on open, reported in `saved_geometry`, and a failed save states its reason.
The iteration journal stays a hard limit (512 nodes / 4 MiB, never automatically pruned):
commit receipts add `history_capacity` from 75%, and `history_round_trip` when
072A removes the old 512-node/4 MiB editing walls without pruning history.
Commit receipts report actual `history_storage` and `history_round_trip` when
an `assembly.drive` only returns to the previous pose. Look at temporary poses
read-only with `assembly_info{drive|sweep}` or `doc_preview` plus
`snapshot{candidate_id,expected_revision}`; commit a drive only for a pose the
Expand Down Expand Up @@ -734,12 +757,17 @@ Reports use indexed connectivity without silently welding/healing. `closed_orien

## Capacity and performance

Documents are limited to 4 MiB on load, 1024 features and 256 parameters. Sketches have 256 entries per shared feature-definition scope and 256 in the legacy document scope, with 4096 total; occurrences reuse the definition scope. Aggregate sketch guards are 32768 entities, 65536 constraints and 131072 scalar coordinates. A sketch accepts 128 entities and 256 constraints. Use `sketch.set{name,owner_feature,sketch}` with an existing definition ID or unique feature name; the local sketch name has 1..96 characters. All sketch edit/remove commands accept the same owner selector. Features, projections and queries use the explicit canonical reference `part:<feature-id>::<local-name>`; unqualified names only select legacy document sketches. Definition renames preserve ownership; explicitly remove its sketches before deleting a definition. Ownership is metadata, not a geometric dependency. Scoped sketches require document format50; legacy global sketches keep their prior format. JSON nesting is limited to 64; mathematical expressions to 2048 characters. These are request limits, not a bound on all possible boolean or solver runtime.
Document/history storage grows subject to actual resource availability; the old 4 MiB logical quota is removed in 072A. Feature and parameter authoring currently support 1024 features and 256 parameters. Sketches have 256 entries per shared feature-definition scope and 256 in the legacy document scope, with 4096 total; occurrences reuse the definition scope. Aggregate sketch guards are 32768 entities, 65536 constraints and 131072 scalar coordinates. A sketch accepts 128 entities and 256 constraints. Use `sketch.set{name,owner_feature,sketch}` with an existing definition ID or unique feature name; the local sketch name has 1..96 characters. All sketch edit/remove commands accept the same owner selector. Features, projections and queries use the explicit canonical reference `part:<feature-id>::<local-name>`; unqualified names only select legacy document sketches. Definition renames preserve ownership; explicitly remove its sketches before deleting a definition. Ownership is metadata, not a geometric dependency. Scoped sketches require document format50; legacy global sketches keep their prior format. JSON nesting is limited to 64; mathematical expressions to 2048 characters. These are request limits, not a bound on all possible boolean or solver runtime.

Mesh buffers, reports and BVHs are cached per session revision and selected feature ID. One geometry recompute handles the whole batch. Version-27 documents retain immutable iteration deltas and shared large source strings, with persistent undo/redo. Limits are 512 nodes, 131072 replay operations and the total 4 MiB document cap; excess capacity rejects the mutation atomically. Existing documents acquire only their first observed baseline. Evaluated meshes and usage snapshots are excluded from the journal. See [persistent iterations](ITERATION_HISTORY.md). The old hand-written SIMD routines are retained as source archaeology but are disabled until ABI/numerical parity and profiling justify them.
Mesh buffers, reports and BVHs are cached per session revision and selected feature ID. One geometry recompute handles the whole batch. Version-27 documents retain immutable iteration deltas and shared large source strings, with persistent undo/redo. 072A removes the old fixed node/replay/total-document quotas. Actual allocation, invalid data or storage failures still reject atomically. Existing documents acquire only their first observed baseline. Evaluated meshes and usage snapshots are excluded from the journal. See [persistent iterations](ITERATION_HISTORY.md). The old hand-written SIMD routines are retained as source archaeology but are disabled until ABI/numerical parity and profiling justify them.

## 0.3 additions

The versioned sections below retain historical additions. Their tool counts,
product versions and original default domains are historical, not the current
capability ceiling. Current `agent_onboard`, tool schemas and the explicit
074B/source59 contracts above govern new work.

`assembly_info`, `tube_inspect`, `compute_info` and `compute_benchmark` bring the tool count to 17. `doc_apply` accepts `assembly.add`, `assembly.edit`, `assembly.remove`, and tube features with a top-level `bends` array. Mesh tools accept `node` for world-space instances or `id` for local part definitions, never both. Full contracts and examples are in [MECHANICAL.md](MECHANICAL.md). Version-2 `.ark` documents preserve the assembly hierarchy and bend programs. The compute backend is optional, with explicit capability reporting and CPU fallback.

## 0.4 preview operation
Expand Down Expand Up @@ -849,8 +877,7 @@ document, and session edits still require the current revision for safe batches.
`import_mesh{path,name?,weld_mm?,expected_revision?}` is the 34th tool. It
reads `.stl` or `.obj` once and stores a `mesh_body`. `weld_mm` is optional and
must lie in `(0, 1]`. The file is not linked. Caps are 12288 vertices, 4096
triangles, coordinates within 1e6 mm, a 32 MiB source file, and the existing
4 MiB document limit. OBJ faces with more than three corners are fanned from
triangles, coordinates within 1e6 mm and a 32 MiB source file. OBJ faces with more than three corners are fanned from
the first vertex and are limited to 64 corners. Binary STL is recognized when
the file length is `84 + 50 * count`; otherwise the text form is read.

Expand Down
17 changes: 11 additions & 6 deletions docs/ASYNC_AUTHORING_051A.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ The evaluator has no live-session, window or graphics context access. Its copy
has no shared activity ledger or pending saved-native-geometry custody. Original
commands and checks execute on the private candidate, with progress from the
normal evaluation observer. A successful result must supply an existing
`PreparedTransfer` within the existing 128 MiB candidate allocation limit. There
is no fallback that recomputes against a newer drawing or reports an uncached
`PreparedTransfer` with complete validated geometry. Since 072A, candidate-cache
memory uses an adaptive soft retention target: an already allocated validated
transfer is not rejected for exceeding a fixed edit-size quota, and the newest
candidate survives cache maintenance even above that target. Real allocation
failures remain explicit, atomic failures. There is no fallback that recomputes
against a newer drawing or reports an uncached
candidate as committed.

Studio retains synchronous editor completion semantics while pumping a live
Expand All @@ -33,12 +37,12 @@ host API omitted one). They cannot silently apply against the preceding
request's newer state.

The host-only completion helper feeds the original request through normal
`AgentSession::call` transaction, actor/motivation, journal-capacity, failure
`AgentSession::call` transaction, actor/motivation, journal-validation, failure
capture and usage-preservation rules. Dispatch consumes the prepared candidate;
the journal still describes the original commands and the checks already ran on
that candidate. Publication preserves usage and activity received after capture.
Failure to append history rolls the prepared geometry back. A stale, cancelled,
invalid or over-capacity result remains a failed result.
invalid or allocation-failed result remains a failed result.

Cancellation uses the existing native RPC cancellation scope with its existing
request limit. Evaluation-pool tasks capture that scope when scheduled, so their
Expand All @@ -55,8 +59,9 @@ Local verification:
recipe mismatch, same-revision replacement epoch, concurrent edits, immediate
cancel (including a ready result cancelled at publication), rejection with
history suppression, malformed arguments, no-op preservation of ordinary and
compacted journals/undo/redo, journal-capacity failure after successful
preparation, parameter-driven evaluated geometry, and shutdown.
compacted journals/undo/redo, history growth beyond the former fixed node quota,
journal-validation failure after successful preparation, parameter-driven
evaluated geometry, and shutdown.
- `studio-async-authoring-ui` drives actual queued window messages during a HUD
rebuild, checks orbit/zoom/selection and unchanged live authoring before
publication, captures the live scene, and checks successful geometry, a stale
Expand Down
85 changes: 85 additions & 0 deletions docs/BODY_AUTHORING_074B.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# Face anchors and explicit body selection — 074B

**B.01/B.02/B.03/D.02 — Verificado no escopo local.** The native G2/G7 contracts
have focused local coverage. The rebuild-evidence panel and body-authoring
controls passed normal/compact Studio tests. Broader milestone qualification,
complete release gates and distribution remain separate.

The **Exact solids** tool group includes **Anchor a face reference** and
**Select solid bodies**. Both start from a current exact solid definition and
create a named, editable feature with that source as its explicit input. Open
surface sheets are outside these NativeSolid operations.

For a face anchor, choose a published source face or all current faces and enter
an alias plus a point in source-definition coordinates. Coordinate fields retain
expressions. Native validation requires the point to lie strictly inside exactly
one current face, or one verified descendant of the selected split face. It does
not choose the nearest face. Boundaries, ambiguity and unavailable lineage are
rejected. Curved faces can be anchored; this alone does not create a missing
planar frame descriptor. The result preserves the complete source geometry and
adds the semantic alias.

For body selection, choose either checkboxes from the producer's current body
inventory or one interior point per retained solid. Listed body identities are
bound to the exact source B-rep digest; a subsequent incompatible source change
rejects stale IDs. Interior points retain coordinate expressions and are checked
again against the current source. Points on boundaries, outside every solid,
inside overlapping solids or repeated within the same solid reject explicitly.
If a source does not publish a current body inventory, only point selection is
offered; Studio does not invent body IDs.

**Preview** evaluates a retained exact candidate and displays its actual geometry.
The review reports the result's solid count and volume; body selection also
reports retained and explicitly omitted volume. **Apply** publishes that same
candidate once; **Cancel** leaves source/revision unchanged. The original source
feature remains editable even when some bodies are omitted from the new result.
One Undo reverses the accepted feature.

Revision, document epoch and the current immutable source owner are checked
between source selection, native reads, preparation, image capture and Apply.
Candidate evidence is read synchronously and its custody is restored before any
progress/UI message loop. Source report/topology reads use metadata without
expanding the stored display-mesh JSON. No reference is silently rebound.

Source semantics are version 59 when these operations are used. This is
independent of the physical document container version.

The new UI harness is `--self-test-body-authoring-ui`. It uses synthetic split
solids and checks native face aliases, expressions, exact body IDs, point-based
selection, preview/Cancel/Apply/Undo, persistence, compact controls, stale-epoch
rejection and boundary failure. The companion `--self-test-rebuild-diagnostics-ui`
checks the read-only **Why was it rebuilt?** panel, including feature IDs/reasons,
normal/compact layout and separate preparation/publication evidence. Final
results and screenshots belong in the iteration verification record.

The first central Studio checkpoint (`20261108T163336299Z`) passed both rebuild
panel runs, 52 checks each. Normal/compact report captures and the first anchor
form/exact-candidate captures were inspected. The initial body UI run reached
valid anchor creation, source-expression regeneration and two Undo operations,
then its full-document string oracle failed: Undo intentionally keeps ID
allocation counters monotonic. The corrected test compares the complete
canonical authored document after normalizing only those checked monotonic
counters and uses actual newly assigned IDs for later results. This was a test
expectation correction; production Undo and native tolerances were unchanged.

The corrected central checkpoint `dev-tests-20261108T164649319Z.xml` passed all
eight selected UI runs. Body authoring passed **110 checks per run** and rebuild
diagnostics **52 per run**, for 324 checks across these four runs. Captures of the
normal anchor controls/candidate, compact body checkboxes/candidate, compact
point-expression controls/candidate and normal/compact rebuild reports were
visually inspected. The compact dialogs fit the 960 × 640 work-area override;
the real candidate image, scrollable evidence and Apply/Cancel controls remain
available.

The body fixture retains two 640 mm3 source solids. The face alias keeps their
1280 mm3 geometry; changing the driving height from 4 to 6 updates the anchored
point and total volume to 1920 mm3. Selecting either published ID or an interior
witness retains one 640 mm3 solid. Widening the unselected region keeps the
point-selected result at 640 mm3 and reports 960 mm3 explicitly omitted from the
result. Stale-epoch Apply and a boundary witness reject without publication.

Local evidence is under `out/release-068B/ui-checks/`, with prefixes
`body-authoring-normal-074b.png`, `body-authoring-compact-074b.png`,
`rebuild-diagnostics-normal-074b.png` and
`rebuild-diagnostics-compact-074b.png`. These are synthetic fixtures and native
Studio controls, with no live user drawing/session used as test data.
29 changes: 29 additions & 0 deletions docs/BOOLEAN_PERFORMANCE_074B.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Batched Boolean work — 074B

**A.04/B.03 — Verificado no escopo local.** `native.boolean_mode:"all"`
combines the complete explicitly selected argument set through the native
Boolean builder. Parallel mode follows the native thread allowance. The legacy
ordered sequence remains the default for existing recipes; no intermediate
failed solid is accepted or omitted to make a batch pass.

The same final 074B runtime evaluated sixteen overlapping exact boxes, changing
one input width. Both paths produce a valid single solid with analytic volume
7000 mm³ and bounds [0,0,0,70,10,10]. Native disk-result caching was disabled;
each configuration had two warmup edits and five measured edits, with one
feature worker and four CPU threads permitted. Medians include full `doc_apply`:

| Mode | Native thread allowance | Complete apply |
|---|---:|---:|
| Existing ordered sequence | 1 | 269.59 ms |
| All arguments in one native Boolean | 1 | 209.30 ms |
| All arguments in one native Boolean | 4 | 180.10 ms |

This demonstrates a benefit for this input set, not a general guarantee for
small or arbitrary Boolean operations. Thread allowance is a configured ceiling,
not a measurement that every core remained occupied. Different construction
histories may legitimately have different face partitions and lineage; the new
mode is explicit and uses conditional source59.

Full samples, runtime hashes, settings and failures are retained under
`out/performance-074b/boolean-*-final.json`, with the analytic checks summarized
in `storage-boolean-final.json`. Earlier checkpoints remain separately retained.
Loading
Loading