Skip to content

Latest commit

 

History

History
318 lines (211 loc) · 17.5 KB

compile.md

File metadata and controls

318 lines (211 loc) · 17.5 KB

Reference: source map — compile

Verified-Against: 683a3c0a (2026-09-09).

Audience: agent · Diátaxis: reference · Kind: contract

Census of admission, source analysis, ROP, and the shared isolation runner. Narrative stays on compilation and isolation. Not a CAD tree.

Index: workspace source map. Domain coverage stays on engineering domains.

Source map

Admission compiler plus CAD / Modelica kit / admitted Modelica / CalculiX @3 isolated verticals, extracted from the authority pipeline

Recurrent hexagonal pattern: compile.seal-admission@3 → ReopenAdmittedCompilationSource → IsolatedCodeRunner. CAD execute and admitted Modelica. Not the Modelica kit, not CalculiX @3

Exact code-owned empty local-runtime config; startup rejects symlink, link-count, content or native override drift before loading Microsandbox

Compile kernel: isolation/ (request/receipt + local runtime identity), admission/ (technical-compilation/2.0 + compile.seal-admission@3), source/ (language-neutral analysis + named CAD levers), rop/ (resolved-operation-plan), brief/ (approved-brief graph). Used by CAD and Modelica. Not a CAD tree

Inbound compile ports: technical-source capture, compilation preview, reopen admitted compilation

Outbound compile ports: admission/source/draft/profile/basis readers plus IsolatedCodeRunner and ephemeral backend. Microsandbox adapter lives in adapters/shared/execution/

Shared reopen-admitted-compilation-source, brokered isolated runner, technical-compilation preview

Compile adapters: admission/, captures/, plans/, executors/, source/ (project-brief frontend). initial-technical-source-analysis-composition remains one CAD+Modelica registry. Architecture SysML composition lives under adapters/architecture/agent-seal/

deno task verify:generic:core

Stable local gate for the closed multi-target compiler/proposal contracts, generic isolated-execution domain, broker, filesystem output CAS, non-Build123d profile fixture and production import boundaries; it does not exercise a real local microVM or engineering run

Provider-neutral facts and diagnostics derived from one exact native source; never authority

Hexagonal port from exact native source text to a provider-neutral SourceAnalysisBundle; callers never supply the source fingerprint

Profile-registry-owned capture and exact replay of technical source plus parser-backed analysis before compilation; callers cannot select language, analyzer, provider, tool or execution arguments

V2 technical-compilation-input/2.0 and technical-compilation/2.0: exact Thread/SysML/source fingerprints, explicit symbol-to-element bindings and server-owned profiles produce deterministic target-local review projections. Current Build123d profile 3.1.0 adds non-semantic standalone module comment annotations to the exact direct scalar-leaf workspace-closure lowering and requires a parser-reported finite module-level numeric parameter bound through parameterizes and causally reaching the unique result; it has no legacy-profile reader or compatibility path

Two predicates: analysis-reachable named literals (capture-time handle, no SysML bind) and geometry-affecting levers (reachable + unique parameterizes). Missing bind is binding.missing, not source.no-named-numeric-lever

Agent-facing technical-source-capture-review/4.0: hoists parser and levers beside the opaque technical-source-analysis-capture-locator/4.0. Compilation accepts only result.reference

Server-owned unique compile join: one catalog profile per source role; represents/parameterizes only when the SysML target is unique. Does not invent a lever or an AttributeUsage

Named immutable admitted-compilation execution operation. assembleCompilationAdmissionRunOperation binds exactly one compilationAdmission thread-entity artifact on the current review basis. Not a historical creation ref. Callers pass the registered operation identity; CAD, Modelica and SPICE ids stay in those domains. Used by Build123d, admitted Modelica and admitted SPICE run reviews

Agent-facing compile gaps: names and recoveries for binding.missing / source.no-named-numeric-lever. Not part of technical-compilation/2.0; sealed documents stay closed

Provider-free preview command/result seam: callers submit exact identities and opaque capture references, never source bytes, parser results, basis records or profile catalogues

Reopens an exact non-latest Thread/SysML basis, captured sources and the code-owned profile catalogue; compiles inward and persists only ready-for-review drafts through content-addressed outward ports

Provider-free exact-basis adapter: verifies project declaration, full Thread lineage, unique active architecture v3 tip, seed/capture CAS and byte consumptions; emits exact Package, PartDefinition, PartUsage, AttributeUsage, RequirementUsage and ConstraintUsage identities

Reopens an opaque technical-source reference through its exact profile/frontend replay and supplies verified bytes plus analysis to the inward compiler

Immutable server-owned compiler-profile catalogue. Build123d is profile 3.1.0 over the qualified closed subset with direct scalar-leaf workspace-closure lowering (Box/Cylinder/Cone/Sphere/Torus/Ellipsoid/Wedge/Rectangle/Circle/Ellipse/RegularPolygon/Pos/Rot/Compound, named Pos/Rot bindings and Plane.XY\|…\|ZY * shape, scale, fillet, chamfer, extrude, offset, revolve, math pi/e/tau) plus the causal named-lever admission invariant. Modelica modelica-closed-subset-v2 compiles bounded generic .mo source with its exact experiment annotation for compile.seal-admission@3. CalculiX compilation stays fail-closed: the agent never writes .inp

Closed composition that pairs the initial Build123d source profile with its exact frontend, analyzer version and two CAS stores; callers cannot substitute a different parser identity

Technical compilation foundation, basis/seal, and preview. One admission CAS is shared by the reopen reader and compile.seal-admission@3. Preview is not admission authority.

Content-addressed canonical JSON store for ready-for-review drafts only; validates project/document/reference hashes and exact save/readback while keeping filesystem paths outside application contracts

Closed canonical MRTR grammar for registered compile.seal-admission@3; signs the exact draft, basis, source-capture references, bindings and profile identities without granting execution authority

Provider-free registered sealer: after human MRTR it reopens draft, Thread/SysML basis, sources and profiles, then publishes one exact admission-capture document in the Thread. It neither calls a provider nor grants downstream execution authority

Closed request/receipt contracts for code execution by value: exact source/output bytes, policy/profile references, requested limits with per-limit assurance, content-addressed outputs and explicit teardown assurance; no backend handle or path

Public isolated-runner, per-producer-generation tri-state publication and marker-gated reader seams; commit is reconciled under a run lock as published, absent or outcome unknown without exposing backend leases or filesystem paths

Technology-neutral disposable-backend lifecycle; output inventory metadata is explicitly untrusted and opaque lease/output handles cannot cross the broker

Filesystem output CAS: durable shared blobs and complete byte-free receipt precede one run/generation marker; orphan blobs remain invisible and ACK loss is reconciled. Batch abort removes its staging; run abort refuses a present/ambiguous marker, durably fences that producer generation, then removes its staging

Fail-closed broker: validates the code-owned manifest and external bytes, closes teardown, stages and rereads outputs, then resolves commit ambiguity without retrying execution inside the broker; an unknown publication blocks release

Code-owned identity for Microsandbox local 0.6.8: attached lifecycle, no network, digest-pinned OCI image and honest per-limit assurance; the record is review evidence, not a runtime capability

Local OCI/microVM adapter behind the neutral backend port: SDK and native runtime artifacts pinned and hashed, exact image/config readback, no shell, fixed direct wrapper and paths, disabled deny-all network, one /tmp mount, bounded logs/output and run-label cleanup proven by zero remaining sandboxes

Inward port for the recurrent admitted-file microVM entry: reopen compile.seal-admission@3 as exact source bytes for one compilation target. No worker, image, or caller source text

Shared use case plus isolatedRequestFromAdmittedSource. Used by design.execute-build123d@1 and simulate.run-admitted-modelica@1

Project-control module for exact source capture, provider-free compilation preview and conditionally exposed Build123d, isolated-geometry-seal, admitted-Modelica and fixed qualified-Modelica execution reviews

Port for one exact DT-normalized acquisition tuple; copied bytes and content-match attestation only. It is not a provider-native run envelope; each vertical must prove that envelope-to-tuple mapping

Adapter-neutral, collision-safe reference to one exact approved-brief source capture and analysis; a CAS locator, never evidence or authority

Promotes only explicit V2 brief gate dependencies into declared assertions evidenced by the exact approved-baseline document

Inspectable server-owned causal-plan contract with immutable inputs and versioned semantic-to-provider lowering; generic resolver/admission wiring is not yet active

Closed resolved-operation-plan/2.0 schema, exact CalculiX @2/@3 resource profiles and one-action recovery policy; no provider I/O

Server-owned resolver: reopens exact MRTR, qualified method, thread basis, proof/case and source artefacts while deriving one queued-run plan

CAS plan sealer/reader used both at queue time and by the plan-inspection control surface; not a generic execute-plan API

ROP resolver and capture-backed sealer. Injects the shared FEA proof, requirements, and catalog-offer CAS instances; optional CalculiX local profile is sealed into the plan only when supplied.

Closed local reader for FEA proof, sensitivity-catalog-offer, and requirements-capture namespaces; rejects foreign URI/media-type/digest combinations. R08 moved this helper next to the ROP sealer.

Conservative canonical-brief frontend: item symbols plus explicit V2 gate dependencies; no prose inference

Exact approved-brief JSON capture/readback before local analysis, followed by analysis CAS capture/readback

Bare constructor-argument numerics that reach result. Span + value, never an invented name

Unique parameterizes CAD levers and unnamed constructor literals from a sealed compilation document. No CAS, no name join