Skip to content

1.7 — registry (a): install-time re-verification + catalog + funnel discovery (Phases 162–166) → v1.7.0 - #18

Merged
thvtzy merged 13 commits into
masterfrom
feat/disebar-166-gate-merge
Nov 26, 2026
Merged

thvtzy merged 13 commits into
masterfrom
feat/disebar-166-gate-merge

Conversation

@thvtzy

@thvtzy thvtzy commented Nov 26, 2026

Copy link
Copy Markdown
Owner

1.7 — registry (a): prelude bundles with install-time re-verification — the Disebar rung's fourth and last named milestone (Phases 162–166), closing at the frozen gate in DISEBAR_17_SCOPE.md §10 with v1.7.0 stamped in lockstep. D1a–D8a stand ratified by Muse under the owner's delegation (2026-11-25, reaffirmed 2026-11-26), recorded in the freeze.

What ships

  • The catalog (registry/): a frozen-format index.json (10,927 B) + 37 PCC bundles (276,678 B) — the 35 stdlib bundles byte-identical to packages/bundles/ plus the widget pair. Publishing is a pull request; the index's tier fields are labelled claims, the bundle is the evidence.
  • The production arm (Phase 163): morphic build --bundles-from — one bundle per admitted user spec through produce_bundle's checked route, over the admission loop shared with --package-from.
  • The verbs + install flow (Phase 164): morphic registry add / list / remove / verify. Install = resolve → fetch → sha256 against the index → verify_bundle_text re-judgment → collision checks → bundle file + a receipt recording what the re-run measured. sha2 lands as the milestone's one new dependency, in the native target table (out of the browser graph).
  • Discovery (Phase 165): installed bundles join the prelude at the funnel (stdlib::{prelude_specs, shipped_body}), precedence user > stdlib > installed, native-only — callable, judged and generated in every shell (CLI, API, MCP, LSP) with no per-shell wiring.

The gate (Phase 166, tests/phase166_gate.rs — fresh instruments, the freeze's text unamended)

  1. The stranger test — PASS. From an empty install dir: catalog installs via the hermetic local index and the localhost-URL path; receipts equal independent reproductions field-for-field; a fresh spec calling the installed entries by name checks with the shipped binary, judges through the index battery-exact (5/5 through the inlined body, 3/3 by the Tier-2 route), and its rendered Rust compiles and computes the battery exactly.
  2. The install is the verification — PASS. The tamper battery (sha256 mismatch, flipped verdict, moved battery count, swapped body, unsupported bundle version) refuses at install, each shape by its own name, nothing written; a stdlib-named bundle refuses at the collision step though its claim reproduces; a Tier-1 bundle in a no-Z3 build refuses by name as unexamined.
  3. Collision discipline — PASS. A hand-planted body-swapped int_abs (true sha256, forged receipt) is inert at the funnel — the denotation is the shipped body and the stdlib's semantics judge; a user's own definition shadows the installed entry; remove restores the pre-install standings exactly.
  4. The catalog is consistent — PASS. All 37 rows: file exists, mass matches, product hash binds to the row's sha256, claims are the bundle's own, and verify-bundle re-verifies each (no-Z3: Tier-1 rows refused as unexamined, by name). CI now runs this same instrument as a Test-job step (§9).
  5. Footprint + suites — PASS. Index 10,927 B ≤ 12,288 B; catalog 276,678 B ≤ 295,000 B; the dependency set since v1.6.0 moved by exactly sha2; npm 71,873 B ≤ 76,800 B; playground bundle rebuilt at 752,204 B ≤ 771,072 B; components at re-pinned masses/shas inside budgets; lockstep 1.7.0 on every version-bearing surface.

The closing line is ticked. Suites at the stamp (solo): bootstrap-codegen 981/0/29 and no-Z3 837/0/22 fully green; the default configuration's best full tally is 980 + one proven load flip (the Phase 162 crown sweep turned one crown Inconclusive under load 1.5–2.7 on a 1.5-vCPU box; green in isolation — the Phase 163 precedent; a third attempt was SIGTERM-killed by infrastructure and discarded). One test-only re-pin at the stamp: the Phase 164 lock lookup's literal 1.6.0 became the lockstep assertion. This PR's CI is the merge arbiter.

Publish halt

The npm + crates.io publishes for 1.7.0 are the owner's acts and are not performed here. From the tagged tree:

cd packages/npm && npm publish --access public
cd packages/rust && cargo publish

(The .vsix remains a sideload artifact in the repo, published nowhere.)

…ry in its re-founded meaning measured against v1.6.0: the PCC machinery carries the centre — the bundle format and consumer verb complete, the Phase 154 verb's winners bundling through produce_bundle with zero new production code; the verify_library reuse claim corrected against its signature; the self-containment boundary measured at production; the prelude a two-function funnel; distribution = in-repo registry/ + static JSON index over HTTPS raw, PR-curated; the install flow with its sha256 binding — sha2 the one new dependency; precedence user > stdlib > installed; the 37-entry seed catalog; one milestone 1.7, phases 163-166, lockstep 1.7.0; D1-D8 all recommended (a) for ratification under the owner's delegation), ROAD Phase 162 note, CHANGELOG bullet; suites 951/951/807
…package-from admission loop extracted into codegen::package::admit_user_specs and shared verbatim by both verbs; pcc::assemble_user_bundles emitting one bundle per retained input through produce_bundle; the exhibit pair at its measured standings, determinism, the moved crown, the Tier-1 route's sibling boundary — and its measured no-Z3 tier-2 side — pinned, 7 teeth, P163 lines)
…b bundles byte-identical to packages/bundles/ + the widget pair produced by the new arm), the frozen-format index.json (10,927 B; catalog 276,678 B), registry/README.md's trust model, and the consistency pin (hashes against the system sha256sum, byte-identity, all 37 re-verifying; 2 teeth)
… ratified by Muse under the owner's delegation of 2026-11-25, reaffirmed 2026-11-26; 1.7 = registry (a) only, lockstep 1.7.0; the catalog and its frozen index format; the verbs + install flow, precedence user > stdlib > installed, funnel discovery, and sha2 frozen for Phases 164-166; budgets index <= 12,288 B / catalog <= 295,000 B; the 5-clause gate with its closing line verbatim; the boundary's Tier-1-route scoping measured and written into §4.3), ROAD Phase 163 note, CHANGELOG bullet; suites 959+flake/959+flake/816 (the standing phase84 load flake the one Z3 failure, green in isolation and solo-binary)
…ist/remove/verify (src/registry.rs: resolve against the index, fetch, sha256 binding, pcc::verify_bundle_text re-judgment verbatim, collision checks, bundle file + receipt of measured standings in ~/.morphic/registry/ or $MORPHIC_REGISTRY_DIR; verify re-runs the reproduction against the receipt; the canonical HTTPS index by default, --index for a local path (bundles resolved relative to it, R1) or a URL; the no-HTTP-client build declines network fetch by name), sha2 0.11 landed as DISEBAR_17_SCOPE §8 froze it — declared in the native target table (cfg(not(target_arch = "wasm32"))), so default/bootstrap-codegen/no-default-features native graphs carry it and the browser wasm32 graph excludes it; the lock moves by exactly one line (sha2 was already locked as a transitive dependency — zero new packages); the six standing dependency-set pins (Phases 151/156/157/159/160/161) updated honestly to standing-13 with the placement recorded at each site; the stranger rehearsal as pins (tests/phase164_registry_verbs.rs, 5 teeth: sha2 placement + the standard vectors + all 37 catalog hashes reproduced by the product hash; the hermetic local-index rehearsal — widget pair installs with measured receipts, the stdlib entry refused at the collision step, list/verify/remove standings; the no-Z3 posture — Tier-1 refused as unexamined, Tier-2 installed on executed evidence; the tamper battery — hash mismatch, flipped verdict, unsupported bundle version, doctored stdlib index, already-installed, unknown name, unknown version, pairwise-distinct named refusals with nothing written; verify against post-install file and receipt tampering; the URL code path through a hermetic localhost HTTP server with a 404 named by status, and the no-client decline)
…flow built as DISEBAR_17_SCOPE §5 froze it (add's five steps in frozen order; the receipt of measured standings; list/remove/verify with the sweep's stray-file naming; sources: canonical HTTPS default, --index local (R1-relative) or URL; the no-HTTP-client build declining network fetch by name), sha2 landed per §8 in the native target table (standing-13 in the six pins, the lock +1 line, zero new packages, the browser graph excluded by the target gate), the stranger rehearsal as 5 pins with the tamper battery's seven pairwise-distinct refusals, the network evidence of record stated (hermetic local index + localhost URL smoke; the canonical URL unfetched — the catalog is not on master yet), the stdlib-install reading stated in the open (the genuine catalog's stdlib entry refuses at the collision step), the z3-sys cache-seeding incident recorded; ROAD Phase 164 note, CHANGELOG bullet; suites 964+flip/964+flip/821 (default's flip = Phase 144 list_sum, reproduced on the pristine base tree; bootstrap's = the standing phase84 flake, green in isolation; no-Z3 fully green)
…nd stdlib::{prelude_specs, shipped_body} (DISEBAR_17_SCOPE §7): prelude_specs yields the stdlib's specs then the installed set's, shipped_body answers stdlib names from the transcribed registry and installed names from the layer, never across the layer line; the layer reads the install directory once per process (the stdlib's OnceLock pattern), native-only (compiled out under wasm-playground, whose prelude is the runtime asset); precedence user > stdlib > installed realized at the funnel — a stdlib-named install (hand-planted file + forged receipt, true sha256) is inert and named, a user's own definition shadows an installed entry at the standing merges; discovery does NOT re-verify (the trust boundary: receipt + file presence + the cheap identity facts — the file's sha256 against the receipt, the bundle/spec naming the receipt's entry, the IR text reading through irtext::parse_ir; registry verify is the re-check verb); degradation by name, never breakage — a corrupt ledger empties the layer with the ledger's own refusal as the diagnostic, one damaged bundle degrades that entry only, stray receipt-less files are named as not-installs, an absent directory is byte-identical silence; diagnostics surface via stdlib::installed_diagnostics and the CLI's check/build/synthesize shells print them on stderr; stdlib_specs() added as the stdlib layer's own enumeration (library_asset built from it — the asset stays the stdlib's alone; registry add's collision check reads it, keeping the stdlib and already-installed refusals distinct now that the funnel merges); the Phase 110/112 prelude pins re-enumerated over stdlib_specs with the reason recorded; 8 teeth in four binaries (one install state per process: funnel shape + inertness, the caller that typechecks/judges/renders through the installed body, user shadowing, Tier-2 callability via the executed route — inline_calls' expression shape set declines statement bodies, the standing Tier-2 boundary; corrupt-ledger layer-wide degradation + the CLI stderr leg; per-entry degradation; absent-directory byte-identity), the widget pair installed through the Phase 164 verbs in Z3 builds and planted byte-exactly as install writes them in no-Z3 builds (where the Tier-1 verb refuses unexamined by name)
…lt as DISEBAR_17_SCOPE §7 froze it (the installed layer behind stdlib::{prelude_specs, shipped_body}; every funnel consumer named — typechecker, SpecIndex merge, codegen, bindings/package/PCC judging contexts, the API and through it MCP + LSP; once-per-process read; native-only with the wasm-playground lib configuration green at 292/0/10; precedence user > stdlib > installed enforced at the funnel — the planted int_abs with a true-sha256 forged receipt inert and named, user shadowing at the standing merges; the discovery-trusts-install boundary documented at the loader, registry verify the re-check verb; degradation shapes — corrupt ledger layer-wide by name, one damaged bundle per-entry by name, stray files named not-installs, absent directory byte-identical silence; diagnostics via installed_diagnostics + the CLI shells' stderr; stdlib_specs() as the stdlib layer's own enumeration — the asset and the collision check read it, the Phase 110/112 pins re-pointed with reasons; the Tier-2 resolver boundary named in its pin; the two setup routes stated — verbs in Z3 builds, byte-exact planting in no-Z3 builds where the Tier-1 verb refuses unexamined); ROAD Phase 165 note, CHANGELOG bullet; suites 973/973/829 fully green in the three frozen configurations (the first no-Z3 attempt's five failures the one setup cause, remedied and re-run in full)
…by clause with fresh instruments (tests/phase166_gate.rs, 8 teeth): the stranger test (empty dir, catalog install of the widget pair via local index + the localhost-URL path, receipts equal to independent reproductions, a fresh spec calling the installed entries checks with the shipped binary, judges through the index battery-exact, and its rendered Rust compiles and computes the battery exactly); the tamper battery (sha256 mismatch, flipped verdict, moved battery count, swapped body, unsupported bundle version — each refused by its own name with nothing written; the stdlib-named bundle refused at the collision step under Z3 and as unexamined without; the Tier-1 no-Z3 refusal as its own shape); collision discipline (a hand-planted body-swapped int_abs inert at the funnel — the denotation is the shipped body and the stdlib's semantics judge; the user's own definition shadows the installed entry; remove restores the pre-install standings exactly); catalog consistency (all 37 rows: file, bytes, product-hash binding, claim fields, shipped-binary re-verification — the §9 CI check run as a gate instrument); footprint + dependency + lockstep (index 10,927 B / catalog 276,678 B inside §9; the dependency set since v1.6.0 moved by exactly sha2, declared once under the not-wasm32 target table; npm inside 76,800 B; both components at their pinned masses + sha256 inside their budgets; every version-bearing surface in lockstep). Green 8/8 in each of the three frozen configurations on the gate tree
… Test-job step: the shipped binary against the repo's own registry/ (the python staging asserts every index entry's file exists and hashes to its row's sha256, and stages a ledger from the bundles' own claims; morphic registry verify's sweep then re-judges all 37 and compares reproduction against claim). Rehearsed locally end-to-end before wiring: 37/37 reproduce. A catalog PR carrying a lying or stale bundle now fails before merge
…ine); both packages re-assembled through the checked routes (npm 77 files / 71,873 B, facade 7 files / 57,613 B — masses unmoved, version-fields-only diff); the bundles regenerated byte-identical (267,156 B, zero diff) and the registry copies verified byte-identical against them; the seed rows already carried version 1.7.0 as a cataloguing fact (R2) — verified consistent, not edited; both component WITs to morphic:library@1.7.0 with their crates + locks, both artifacts rebuilt at unmoved sizes (96,100 B / 81,840 B) with new shas (library d424f202…, callbacks 8c517888…) re-pinned in the Phase 160/161/166 pins; morphic-1.7.0.vsix (486,883 B, 324 files, contained manifest at 1.7.0) re-packaged replacing the 1.6.0 package; one test-only re-pin (the Phase 164 lock lookup's literal 1.6.0 -> the lockstep assertion against the crate's version, sha2 substance untouched); CHANGELOG [1.7.0] — 2026-11-26 (release summary + the gate record); README badge + 1.7 paragraph + roadmap row (Disebar rung complete). Host spot-checks at 1.7.0 on both routes clean; the playground bundle rebuilt by the standing build at 752,204 B <= 771,072 B; suites at the stamp 980+flip (default — the Phase 162 sweep's flipped crown green in isolation) / 981/0/29 bootstrap-codegen / 837/0/22 no-Z3; the gate instrument green 8/8 on the stamped tree
…er package alone (PR #18 run 1 fix, CI-infrastructure only): the workspace test build unifies features across members and the morphic-wasm member turns wasm-playground on for the shared bin artifact, so target/debug/morphic after the test step is a build whose registry surface is compiled out by design — the step now runs cargo build -p morphic --bin morphic first (the shipped binary is the package's own; default-members keeps local root commands on it, which is why the sandbox rehearsal could not see this). Proven locally: the wasm-playground-featured binary prints the run's exact refusal, and the package-own binary sweeps the staged catalog 37/37, exit 0. No product code, no assertion changed
@thvtzy
thvtzy merged commit be7bf03 into master Nov 26, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant