Weld 0.20.2 acceptance and evidence

Copy Markdown View Source

This ledger maps the complete Part 2 acceptance contract to the current source. Runtime QC records the exact source commit, toolchain and command exit status for each executed gate.

Source and test disposition

The comparison baseline is 7897ba6457d3ba725ee3a843bc863f2c38e90411; the completion checkpoint is 0ff6f9ef7a66048abaf00f4f24e5464ca2d90c37. Those 0.20.0 results are historical. Version 0.20.2 (2026-11-26) retains the complete acceptance contract, the 0.20.1 regressions for equivalent public Hex declarations and invalid-plan diagnostics, and adds focused coverage of signed candidate registry isolation, exact archive consumption, wrong-key refusal and publication restrictions. Historical checkpoint passes do not qualify the current source.

  • baseline-test-paths.tsv records all 161 retained baseline test paths.
  • baseline-test-disposition.tsv maps all 171 baseline lexical declarations to current coverage and explains changed schema/command assertions. Seven rows are shell test statements inside a fixture, not independent ExUnit tests.
  • module-disposition.tsv maps all 71 baseline implementation files to current ownership and distinguishes removals already present at the checkpoint.
  • command-disposition.tsv maps all 30 old task names to the unified command registry. Only lib/mix/tasks/weld.ex is a public task; no aliases are restored.

The current code also adds literal-fact pure tests, schema/environment/scope contracts, inventory and source watch adversaries, exact archive/HTTP tests, independent OS-process concurrency, recovery, semantic proof tampering and native signed-registry consumption. Test names are retained where behavior is retained; obsolete embedded-report and rebuild-handoff expectations are replaced by explicit schema 2 contracts, not by relaxed success conditions.

Runtime QC updated assertions for schema 2. Live guard tests require the quoted refresh command and the rejection specific to each Hex command. The native artifact plan checks unique target membership through output_inventory and separately checks mix.exs source provenance. The mutable graph destination test expects the source-inventory rejection for doc, which is excluded from observations, and retains the output-overlap assertion for mix.lock. Both cases still verify that source bytes survive rejection. Run lookup tests check the run directory and the location of its staged project.

A01–A40 coverage

All paths in the test column ending in _test are under test/weld/ with the .exs suffix. Code names are Weld modules unless a script is named. Consult the runtime QC index for execution status. A36 additionally requires the actual external checkouts and toolchains. A37 requires runtime measurements in addition to static accounting.

IDRequired behaviorImplementationTests / reproducible evidence source
A01Read-only commands, CWD, JSON and pre-effect validationCLI; Commands; Output; Shell.GCcli_subprocess_v2_test; cli_v2_contract_test; ergonomics_contract_test; mix_tasks_test
A02Closed schema, explicit root/globs and duplicate identitiesCore.Manifest; Manifest; Workspace.Discoveryschema_v2_contract_test; workspace_snapshot_v2_test; manifest_test; workspace_test; nested_workspace_coordinates_test
A03Isolated bounded environment/helper probesWorkspace.Probe; Workspace; Shell.Runner; Shell.Snapshotworkspace_snapshot_v2_test; workspace_test; source_project_test; runner_contract_test
A04One batch facts value and deterministic orderingCommands.batch; Workspace; Core.Compiler; Core.ReleaseOrderworkspace_snapshot_v2_test; artifact_plan_test; release_plan_test; cli_v2_contract_test
A05Literal pure compilation, graph views and topologyCore.Compiler; Core.Facts; Core.Selection; Graph; Graph.Viewcore_compiler_test; core_facts_test; graph_scope_v2_test; graph_live_test; plan_test
A06One common inventory and three policiesPlan.Inventory; Layout.Components; Layout.Flat; Layout.Preserve; Layout.Renderartifact_plan_test; monolith_plan_test; projector_package_mode_test; core_compiler_test
A07Aliases, requirements, boundaries, all scopes and cyclesGraph; Plan.Boundary; Core.Selection; Core.ReleaseOrdergraph_scope_v2_test; git_dependency_portability_test; plan_test; release_plan_test; artifact_plan_test; workspace_snapshot_v2_test
A08Compiler ownership separate from dependency membershipPlan.Inventory; Core.Selection; Plan.Boundaryartifact_plan_test; source_consumption_test; plan_test
A09Exact full/live targets, native callbacks and detached behaviorShell.Materializer; Shell.Native; Layout.Preserve; Layout.Livesource_project_test; native_package_metadata_test; projector_monolith_test; graph_live_test; source_consumption_test; scripts/qc/qualify_layouts.exs
A10Native sources, pins, modes, missing paths and installed buildCore.Inputs; Plan.Inventory; Shell.Snapshot; Shell.Hex; SmokeAppcore_facts_test; snapshot_contract_test; verification_integrity_test; hex_consumption_contract_test; test/fixtures/native_hex
A11Config companions/imports, lexical scope and installed privConfig.Generator; Layout.Render; Shell.Materializerconfig_generator_test; projector_config_cache_test; bootstrap_relocation_test; projector_package_mode_test
A12Flat collisions, deduplication, remaps, migrations, helpers and OTP app identityLayout.FilePlan; Layout.Flat; Layout.Flat.Migrations; Layout.Flat.TestHelpermonolith_plan_test; monolith_otp_app_identity_test; monolith_config_spike_test; monolith_test_helper_spike_test; core_identity_test
A13Exact docs inputs/hooks and bounded static rendering claimsLayout.Support; DocsPreview; DocsSmoke; Verifierdocs_options_test; docs_smoke_test; docs_preview_test; ergonomics_and_docs_smoke_test; scripts/qc/browser_docs.mjs
A14Complete provenance, roles, watches and package membershipCore.Inputs; Plan.Inventory; Core.Inventory; Shell.Hexinventory_contract_test; core_compiler_test; artifact_plan_test; verification_integrity_test; hex_archive_contract_test
A15Input-class isolation, cache keys and relevant invalidationPlan.Inventory; Shell.Snapshot; Projector; Receiptcore_compiler_test; snapshot_contract_test; projector_config_cache_test; projector_test; source_project_test
A16Two actual Git trees, old/new contributors and conservative unknownAffected; Git; Plan.Inventoryaffected_test; artifact_plan_test; nested_workspace_coordinates_test
A17Semantic diff, modes, planned links and hidden membershipShell.Diff; Core.Inventory; Plan.Inventoryergonomics_contract_test; ergonomics_and_docs_smoke_test; monolith_plan_test
A18Exact complete cache reuse and live structural refreshProjector; Receipt; Shell.Materializer; Layout.Liveprojector_test; projector_config_cache_test; source_project_test; graph_live_test
A19Explicit eligible proof reuse, fresh and corrupt proof refusalRelease; ReleaseInputs; ReleaseStatusrelease_test; bundle_integrity_test; scripts/qc/prepare_reuse.exs
A20Canonical vectors, schema closure, UTF-8, modes and relocationCore.Identity; Plan.Inventory; Core.Inventorycore_identity_test; inventory_contract_test; core_compiler_test; bundle_integrity_test
A21Independent cache-free identities and strict immutable evidenceRelease; ReleaseStatus; ReleaseReceipt; Shell.Hexrelease_test; bundle_integrity_test; docs_preview_test; nested_workspace_coordinates_test
A22Lock freeze then complete boundary rechecksVerifier; Projector.recheck_inputs!; Hashqualification_contract_test; verification_integrity_test; verifier_test; snapshot_contract_test
A23Domain separation and operational settings excluded from proofCore.Identity; Plan.Inventory; ReleaseInputscore_identity_test; core_compiler_test; inventory_contract_test; qualification_contract_test
A24Owned safe paths, special/link refusal and recoverable activationOutput; Shell.Materializer; Shell.GCoutput_test; state_safety_test; verification_integrity_test; ergonomics_contract_test
A25Detached path/Git/exact Hex consumers, native and bootstrapSmokeApp; Shell.Hex; Release; Shell.Nativesource_consumption_test; bootstrap_relocation_test; smoke_app_test; hex_consumption_contract_test; scripts/qc/qualify_layouts.exs; scripts/qc/installed_weld.exs
A26OS-process leases, killed owners, lock bounds and GC racesOutput; Shell.GC; Release; Verifierstate_safety_test; output_test; qualification_contract_test; release_workflow_018_test
A27Independent source baseline and actual test identitiesVerifier baseline mirror and ExUnit formattercomponent_tests_test; monolith_test_helper_spike_test; qualification_contract_test; verifier_test
A28All gate outcomes, explicit skips and bounded subprocess isolationVerifier.gate_specs; Shell.Runner; SmokeAppqualification_contract_test; runner_contract_test; verifier_test; smoke_app_test
A29Frozen docs and archive roundtrip; browser proof separateDocsPreview; DocsSmoke; Shell.Hex; Verifierdocs_preview_test; docs_smoke_test; hex_archive_contract_test; scripts/qc/browser_docs.mjs
A30Actual tar inspection, ordinary resolver and HTTP body hashesShell.Hex; SmokeApp; Verifierhex_archive_contract_test; hex_transport_contract_test; hex_consumption_contract_test; scripts/qc/loopback_transport.sh
A31Prepare boundaries, immutable pins and valid prior pointerRelease; ReleaseStatus; Outputrelease_test; state_safety_test; bundle_integrity_test; qualification_contract_test
A32Git object proof, annotated receipts, ref CAS and atomic pushGit; Release; ReleaseReceipt; ReleaseStatusrelease_workflow_018_test; bundle_integrity_test; scripts/git_ref_contract.py
A33Not-sent/unknown/staged/conflict states and query-only reconcileShell.Hex; Release; ReleaseStatushex_publication_fault_test; hex_transport_contract_test; release_workflow_018_test; scripts/qc/authenticated_conformance.exs
A34Tag-only verification and exact idempotent archivesGit; ReleaseReceipt; ReleaseStatus; Release.archive!bundle_integrity_test; release_workflow_018_test; release_test
A35Pure boundary, one renderer/codec and dependency directionCore.*; Layout.*; Config.Generator; Shell.*core_compiler_test; scripts/qc/architecture_check.exs; compiled Mix xref commands
A36Actual MedEx/Opus/RTC/Fabric consumer qualificationGeneric compiler, native preserve and exact archive harness; no repo-specific hacksExternal committed producer/consumer checkouts plus scripts/qc/signed_hex_consumer.exs and guides/consumer_repo_integration.md
A37Source/dependency counts and real comparable measurementsscripts/qc/static_check.py; benchmark.py; benchmark_driver.exsStatic accounting executed; record representative and scaling benchmark runs per tested revision; final long soak manual after ordinary QC
A38Complete registry, quoted recommendations, exits and partial batchesCLI; Commands; Mix.Tasks.Weld; Errorcli_v2_contract_test; cli_subprocess_v2_test; mix_tasks_test; explain_task_test
A39Archive/path corruption, secret redaction and bounded effectsShell.Hex; Shell.Runner; Output; Hash; Shell.Snapshothex_archive_contract_test; hex_publication_fault_test; runner_contract_test; state_safety_test; bundle_integrity_test
A40Publication dependency order, constraints and no-check behaviorCore.ReleaseOrder; Graph; Commands.release_planrelease_plan_test; graph_scope_v2_test; cli_v2_contract_test

G01–G12 execution and skip policy

Verifier.verify!/2 owns the sequence for both verify and prepare. after_gate failure injection does not create evidence of execution when a gate was not run. Only the policy skips listed here are allowed. Failure records keep all gate IDs, identify the failed gate and mark downstream gates blocked; missing runtime is never a successful gate or a permitted skip.

GateExecutor / evidencePermitted skip
G01Common materializer; complete planned project membership and source inputsNone
G02Dev/test deps.get, dev/test/prod metadata reprobes; frozen lock/projectNone
G03Independent source mirror suites; actual ExUnit test identity/state listNo selected source suites when component tests are off and layout is not flat
G04Dependency compile plus project compile with warnings as errorsNone
G05Artifact/native tests and provenance-mapped source identitiesNone; zero tests accepted only if no candidate test sources exist
G06One docs build, normalized frozen docs and static Mermaid checkNone; browser rendering remains a separate check
G07Configured ordinary path-consumer smokeSmoke not configured; flat configured smoke is rejected by schema
G08One Hex build; exact package metadata/files/modes/checksums/raw tarhex_build: false
G09Isolated real Hex dry run; captured actual rebuilt bytes equal G08Hex disabled or explicit hex_publish_check: false
G10Exact tar through signed ordinary Hex registry; lock/cache digest, compile/start/smokeHex disabled only
G11Frozen docs unchanged; one docs archive and exact unpack roundtrip when Hex enabledNone; archive is null only for non-Hex policy
G12Final complete project/source/lock/package/docs/gate revalidationNone

The portable qualification proof binds the source revision, compiler, plan, project/package/docs IDs, raw archive hashes, resolved lock, explicit public context, toolchain and registry trust, including the public signing-key digest when a candidate registry is selected. Timings, local paths, transport tuning, logs and mutable pointers are operational records outside portable identity.

Reproducible checks and explicit limitations

Run the full sequence in AGENTS.md, all fast, slow and integration lanes in scripts/test_ci.exs, and the additional architecture/consumer/native/browser/ conformance commands in guides/testing_strategy.md and scripts/qc/README.md. static_check.py reports source counts, retained paths, pin retention, seven independent canonical-vector arithmetic checks and conservative lexical checks. It is not an Elixir parser, compiler, formatter or xref substitute.

The source accounting target is no more than 9,900 production physical lines, 55 implementation files and one public Mix task. Consult source-metrics.md for measured current counts and the documented size exception. Do not minify or move production logic into QC scripts to alter those numbers. Runtime timing and memory thresholds are separate pending experiments.

The pinned exact-byte transport and durable outcomes are implemented. The current public adapter conservatively refuses public writes when it cannot prove staged absence or authenticate the exact raw docs archive digest. This is a production capability limit, not a runtime gate that automatically turns green. The authorized sandbox contract driver reports receiver evidence and actual adapter reads separately and never enables production publication.

Only the final long synthetic soak is handed to the maintainer after ordinary QC and any source repairs. A soak result alone does not establish release readiness. No production upload, real release tag or remote push is authorized by these instructions.