Record a bundled mesh server as one tarball, and install it by its integrity #168
Closed
opened 2026-11-25 05:00:25 +00:00 by pluto
·
3 comments
No Branch/Tag specified
main
ceres/367-crew-screen-up
terra/batch-337-237
uranus/251-fold-ci
saturnus/229-land-skip
titan/2-worktree-finish-branch-form
neptunus/232-repo-delete-clean
neptunus/230-force-push
uranus/111-gitlink-eisdir
venus/129-no-launcher-endpoint
saturnus/45-branch-move-head
jupiter/45-volatile-mesh-say
venus/8-land-on-any-host-2
titan/111-gitlinks
juno/040-host-rerecord
vesta/24-remove-github-sponsors
ceres/19-signin-probe
vesta/67-set-a-exports-git-dir
jupiter/47-status-clock
pallas/46-forge-ci-seam
juno/39-offline-private-scan
ceres/19-relay-end-written
venus/8-land-on-any-host
ceres/19-relay-frame
venus/28-budget-line
vesta/48-git-guard
ceres/47-hourly-status
terra/batch3-forge-b
pluto/23-declared-digests
ceres/318-friction-note-rebuilt
neptunus/check-private-digests
hygiea/5-tsx-typecheck
terra/batch2-forge
vesta/973-ask-proof-and-pr-base
jupiter/16-5-3-forge-repo-links
jupiter/check-private-stop
terra/batch3-forge
saturnus/1016-crew-mail
venus/999-refresh-modes
uranus/601-martha-forge-workflows
ceres/1041-work-graph
jupiter/957-gap-19-prompt-text
mercurius/987-stranger-text-gate
jupiter/check-private-stop-posted
pluto/1045-under-600
ceres/1041-contract-lines
pluto/1045-free-splits
diverged/hygiea/962-worktree-finish-owner-and-branch
ceres/967-provider-key
saturnus/1016-mesh-key
hygiea/962-worktree-finish-owner-and-branch
pluto/1045-cognitive-complexity
venus/999-refresh-modes-held-merge
pluto/1010-repo-numbers
pluto/1010-drift-numbers
terra/batch-terra-1121e
hygiea/916-provider-subscription-refusal
venus/999-brief-notice
hygiea/992-job-timeouts
jupiter/1016-crew-memory
terra/batch-terra-1121c
mars/1000-progress-off-tasks
uranus/989-confinement-v
hygiea/985-launcher-verbs-r2
mars/985-rename-handover-match
jupiter/979-guard-places
uranus/980-assign-model
ceres/959-wake-on-idle
uranus/989-confinement-u
juno/802-a-handle-on-my-run
pluto/989-confinement
terra/batch-terra-1120f
mercurius/987-rebased-keep
vesta/308-a-week-of-the-ledger-vesta
jupiter/984-gap-5-crew-state
hygiea/985-launcher-verbs
vesta/915-worktree-finish
terra/batch-terra-1120b
terra/981-review-fix
venus/review-917
final-tip
keep-318-tip
neptunus/1006-review
hygiea/976-the-ci-wait-by-run
terra/979-review-fix
terra/962-review
hygiea/601-row-174-the-engines-settings-watch
uranus/968-markers-r1
terra/981-review
vesta/308-a-week-of-the-ledger
terra/986-review
saturnus/511-up-config
hygiea-601-last3b
hygiea-601-last3
hygiea-601-pre-rebase
jupiter/batch-92
venus/venus-review-929
venus/venus-review-934
uranus/511-up-claude
saturnus/511-refusals
venus/906-token-fixture
jupiter/541-a-engine-start-clean
uranus/614-slice3-approved-skills-on
uranus/614-dw6-unrooted-skill-folders
venus/639-redact-stdin
venus/venus-review-913
neptunus/547-s6-kitty-launch
venus/venus-review-897
neptunus/907-review
venus/898-bundle-main-installer
hygiea/309-a-declared-goal
venus/614-engine-skills-2
neptunus/893-review
venus/639-night2
venus/venus-review-883
jupiter/541-c4-goose-call-answered-by-the-entry
venus/venus-review-866
venus/541-9a-slice-2
mercurius/614-engine-skills
titan/637-updater-switch
pluto/755-fewer-judge-starts
uranus/836-review
mercurius/846-posted-text
neptunus/828-review-r1
titan/801-hint-text
uranus/785-part-2
uranus/797-review
neptunus/830-review
venus/venus-review-837
uranus/724-reap
juno/784-the-launch-a-start-builds
neptunus/784-review-fix
juno/784-the-adapter-under-its-ceiling
diverged/juno/784-the-launch-a-start-builds
juno/784-the-adapter-back-under-origin
neptunus/694-review-fix
juno/732-the-cap-holds-b
neptunus/732-review-fix
titan/541-c3-hints-record
jupiter/host-2.1.328
juno/732-the-cap-holds
ceres/781-launcher-path
uranus/785-hint-files
ceres/724-part-2
neptunus/766-review-fix
uranus/755-hook-filter
jupiter/review-788
neptunus/745-review-fix
uranus/772-judge-env
jupiter/753-keys-declared-twice
pallas/784-launch-request
ceres/562-wire-the-scan
jupiter/744-split-prove-the-core
titan/541-c2-goose-gate-rows
pallas/765-approve-listing
pr-766-tip
terra/769-review
pallas/748-cycle-roots
uranus/uranus-batch-69
venus/venus-review-756
pr-733-head
neptunus/727-shell-quoting
venus/venus-review-738
pallas/694-a-trial-line-keeps-its-transcript
ceres/724-part-1-a-test-leaves-nothing-behind-v2
ceres/tests-leave-nothing-in-the-temp-directory
neptunus/541-2-4-3-the-recording
ceres/700-the-stand-in-reports-its-start
titan/541-6b-multi-host-review-model
uranus/uranus-733r1
scratch-703
titan/541-5-member-host
neptunus/541-2-4-2-the-tool-call
ceres/625-release-redraw
mars/541-acp-transport
ceres/batch-62-redraw
neptunus/541-6-host-model-vocabulary
heads/pr/672
pr/672c
heads/pr/673
juno/541-6-host-model-vocabulary
pr/668b
saturnus/612-no-answer-gets-a-second-launch
ceres/601-release-bump
heads/pr/625
heads/pr/668
pr/656b
heads/pr/666
pallas/611-init-layout
pr/654-r2b
heads/pr/656
pr/662-new
pr/654-new
pr/660-new
saturnus/632-retire-owner-guard
saturnus/602-own-config
ceres/638-read-shape
neptunus/541-10-recorded-goose-host
titan/611-init-layout
venus/244-member-half
titan/165-stand-in-case
pallas/177-tree-stat-record
ceres/314-volatile-path-note-clean
uranus/uranus-batch-48
jupiter/160-where-we-are
uranus/uranus-batch-46
juno/513-budget-r2
pallas/437-trial-builder-r2
pallas/437-trial-builder
saturnus/289b-shell
saturnus/289b-rules
saturnus/289-record-values
ceres/170-vouching-on-real-events
ceres/170-vouching-reaches-the-member
neptunus/136-member-memory
mercurius/4-claw-code-analysis
mercurius/5-scaffold-theme
v0.5.0
dry-run-v0.5.0
installer-v2.0.4
dry-run-installer-v2.0.4
v0.4.3
installer-v2.0.3
dry-run-installer-v2.0.3
dry-run-v0.4.3
v0.4.2
dry-run-v0.4.2
installer-v2.0.2
dry-run-installer-v2.0.2
v0.4.1
dry-run-v0.4.1
installer-v2.0.1
installer-v2.0.0
tested-locks
v0.4.0
ci-tools
v0.3.0
installer-v1.1.1
v0.2.0
installer-v1.1.0
v0.1.0
installer-v1.0.2
installer-v1.0.1
installer-v1.0.0
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
martha-ai/martha#168
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Purpose (product): martha records a bundled mesh server as ONE tarball, and installs it by the integrity npm publishes, so a member's mesh server comes from the forge with npmjs unreachable.
Moved here from macula-io/macula-mcp#4 by the Supervisor's ruling of 2026-11-25: the packages are published and proven, and what is left is martha's own tree model, not theirs.
What is true today (measured 2026-11-25)
@macula-io/mcp0.51.6 is on macula-pub, tagged and built by forge CI (release run 4137). Withregistry.npmjs.orgunable to resolve or connect,npm install @macula-io/mcp@0.51.6from macula-pub says "added 1 package" and the server answersinitializeasmacula-mcp 0.51.6.npm ci. The lock the recorder makes for a bundled server has 127inBundleentries with noresolved, whichrefusalOfLockedrefuses; andnpm cifrom that lock with only macula-pub reachable dies404resolvingfast-uri@^3.0.1(ajv's range, which the publisher's root-onlyoverridesrewrites).Approach (for review before any code)
bundleDependencies, the recorded tree holds: the version, the URL the recorded registry serves for it, and the sha512 integrity npm publishes for that tarball. No lock, no per-package entries.settingsas today, andenvironment_readsattributed from the tarball's ownnode_moduleslayout (each bundled package is its own prefix), soknown_environment_readsstill means what it means.changesInTreecompares the recorded files against the placed tree before a start, and there is a test that a file changed, removed or added since the install refuses the next placement, naming it. The tarball's integrity covers transit, not a tree altered after extraction. If the ruling prefers the simpler pin, that behaviour retires for bundled servers and I will say so in the change rather than let it lapse quietly.registrymoves tohttps://git.macula.io/api/packages/macula-pub/npm/, and 0.51.0/0.51.2, recorded from npmjs, retire in the same change.Done-when
Refs macula-io/macula-mcp#4.
Done in PR martha-ai/martha#170 (branch
pluto/168-bundled-tarball, base052a7306, tip49a2d698), four forge runs green on the tip: 1387 (advisories), 1388 (c4-model), 1389 (ci), 1390 (standalone).Each Done-when line, and where it is proved:
recorded_mesh_server_trees.jsonnow holds 0.51.6 withtarball=https://git.macula.io/api/packages/macula-pub/npm/%40macula-io%2Fmcp/-/0.51.6/mcp-0.51.6.tgz,integrity= sha512RufLxFU2XVFCKRSnh3VgIsdNF6PHSjO6gcU7jBkljSbpIAGrTZICndmRLygUhJnZGqCIGijkNnGGpXSN0Zdmlw==, 23 settings, 15 packages with environment reads, and no lock.hosts: files): npmjshttp=000, forgehttp=200;startOfARecordedBin(the functiontheRecordedNodeIdOfstartsmacula-mcp-node-idwith, and a member's launch path) installed the one tarball into an empty root, 4513 files, and oneinitializeansweredserverInfo {"name":"macula-mcp","version":"0.51.6"}.registryishttps://git.macula.io/api/packages/macula-pub/npm/; 0.51.0 and 0.51.2 are retired from both recordings in the same commit, since their locks name registry.npmjs.org andrefusalOfLockedrefuses them once the registry flips.npm test5411 tests, 0 fail.Also in the change: a defect the real recording found in the first commit of this branch.
record:mesh-toolsreadextracted/package, which the new recorder no longer writes (ENOENT), and then walked the bundled dependencies, where an@modelcontextprotocol/sdkexample registers a tool by a computed name. The recording, the launch and the script now unpack a tarball through one rule (unpackServerTarball) and read a server's own files by one rule (ownCodeOf).Two changes to reviewed text worth a reviewer's eye: the two recordings'
_whytexts now describe both shapes (lock and one tarball) and name the two-argument record command; the plugin-dirs rationale names 0.51.6, the recorded tree, instead of the retired ones.Why the four recordings that still name 0.51.0 and 0.51.2 stay behind in this change, and where they go.
They are
recorded_mesh_answer_shapes.json,recorded_ring_result_keys.json,recorded_host_ring_answers.jsonandrecorded_petnames.json. What blocked them was code, and that is fixed here:record_ring_resultsread a directory the recorder no longer writes (ENOENT for any server) and both it andrecord_mesh_answersstarted the server from a tree only the lock path creates, so neither could record a bundled version. One rule now names the tree a recording leaves,treeWithItsDependencies, and both scripts use it.What still stands in the way is the act itself: both recorders join the live mesh.
record:mesh-answerstakes a station ashost:port@<node id>and nameshttps://realm.beam-campus.netas the realm;record:ring-resultsputs two agents on that station and rings one from the other. A fleet act on the DEV realm is not something to take in the middle of a review, and it wants one round covering all four recordings rather than a partial one.Filed as martha-ai/martha#176: one round, on realm.beam-campus.net, with every agent it admits revoked at the end, and 0.51.0/0.51.2 retired from those four in the same reviewed commit.
Until then the four still pin 0.51.0/0.51.2 behaviour, which is what the answer-shape, ring-key, host-ring-answer and petname gates read. They do not gate installation: 0.51.6 is the only version a member can install.
Landed on main as
5c36f101e0, a no-ff merge of78c6ed23ontoc373344a(PR martha-ai/martha#170, merged 09:57:17Z).The Purpose is met: martha records a bundled mesh server as ONE tarball, and installs it by the integrity npm publishes, so a member's mesh server comes from the forge with npmjs unreachable.
Each Done-when line, and where it is proved:
recorded_mesh_server_trees.jsonholds one version, 0.51.6, withtarballhttps://git.macula.io/api/packages/macula-pub/npm/%40macula-io%2Fmcp/-/0.51.6/mcp-0.51.6.tgz, its sha512 integrity, 23 settings, 15 packages with environment reads, and 4513 files with their own sha512 each; no lock.recorded_mesh_server_tools.jsonholds 0.51.6,server_binmacula-mcp, 35 tools, 7 bins.hosts: files, empty resolv.conf): npmjshttp=000, forgehttp=200. The install fetched that one URL, refused any URL outside the recorded registry, checked the bytes against the recorded integrity before writing any file, and placed the tree, 5158 entries on disk holding 4513 files. OneinitializeansweredserverInfo {"name":"macula-mcp","version":"0.51.6"}, and the recorded node-id bin answered with the same 64-character id twice.registryishttps://git.macula.io/api/packages/macula-pub/npm/; 0.51.0 and 0.51.2 retired in the same change, because their locks name registry.npmjs.org andrefusalOfLockedrefuses them once the registry flips.fcac4483: 5418 tests, 5380 pass, 0 fail, 38 skipped.CI on the landed tip
78c6ed23, per job, by API run id (index_in_repoin brackets). Everyci.ymljob has a green on that exact tip:ci.yml: those two are green, "the relay loads in the recorded host" (13533) at 09:44:55Z and "the clean-install proof removes its container" (13537) at 09:52:09Z. Red there only the two jobs a dispatched run cannot pass because it has no base ref, "no test the base passed goes missing" (13542) and "the pictures change only with the version" (13543), each saying "the base [] is not a commit in .". Both are green in 4342.Also in the change, the review's fold-in: one rule names where a recording leaves its tree (
treeWithItsDependencieswithpackageDirInTree) and one rule the unpack (unpackServerTarball). Before it,record_ring_resultsread a directory the recorder no longer writes and died ENOENT for any server, and both recording scripts started from a tree only the lock path creates. Mutants, each planted alone on the final tree: record-time integrity check dropped 36/37, install-time check 36/37, tree comparison skipped for a lockless tree 35/37, URL guard dropped 36/37, the tree rule wrong for a bundled server 0/1.Not part of this Purpose: the four live-mesh recordings,
recorded_mesh_answer_shapes.json,recorded_ring_result_keys.json,recorded_host_ring_answers.jsonandrecorded_petnames.json. They still pin 0.51.0 and 0.51.2 behaviour because recording them means joining the live mesh on realm.beam-campus.net, which is a fleet act and not one to take inside this change; they do not gate installation, since 0.51.6 is the only version a member can install. That is martha-ai/martha#176: one round on the DEV realm covering all four, with every agent it admits revoked at the end.Refs macula-io/macula-mcp#4.