Commit Graph
1397 Commits
Author SHA1 Message Date
jschoubben b4f9429115 S9 kept-call-hook: a kept call's hook at five minutes waited and at its answer
Builds: design 47 H2 H-A-708 (4)
2026-11-25 17:06:52 +01:00
jschoubben e6da0aeb5f S5 ledger-watch: stdio.WatchLedger and the bundle's mesh/ledger answer
Builds: design 47 H2 H-A-706 (DMC-13), H-A-717 (DQ-50)
2026-11-25 17:06:06 +01:00
jschoubben a123ebd643 S3 ask-once-ts: the TypeScript stdio asks once; the kind stopping goes
Builds: design 47 H2 H-A-570 (2) (3) (4)
2026-11-25 17:05:11 +01:00
jschoubben e5b66a77ba S2 ask-once-go: Ask calls once; the kind stopping goes
Builds: design 47 H2 H-A-570 (2) (3) (4), H-A-624 (3)
2026-11-25 17:04:29 +01:00
jschoubben cedfa71169 S4 ledger-forms: ends-with, ended-days, expires, a reindex naming an instance
Builds: design 47 H2 H-A-634 (3) (4), H-A-685 (1), H-A-690 (1)
2026-11-25 17:02:53 +01:00
mesh-tools bb11615b1a Merge pull request 'Test copies of node-uplink, node-resolver and node-display-session byte for byte (design 08 sign-in-page)' (#214) from feat/sign-in-page into main 2026-11-25 00:20:04 +00:00
jochen 40ac107900 Copy node-resolver byte for byte from mesh-connectivity-contracts
node-resolver.json is copied byte for byte from mesh-networking
modules/mesh-connectivity-contracts/seats/node-resolver/seat.json (11a1195, after its fix giving
routes' answer outside_writes as systemd-resolved does). node_resolver_test.go's decision text now
matches the real definition ("novox/hq ADR 0247, ADR 0687"); its verb list already matched.

This completes C-3 for mesh-sdk: all three test copies are now byte-for-byte copies of their
contracts modules' definitions.

Builds: design 08 sign-in-page §1, §2, §3; lead answer C-3
2026-11-24 21:50:43 +01:00
jochen 7c3e439e32 Copy node-uplink and node-display-session byte for byte from their contracts modules
Code review round 1 found the test copies were not copies: a reconstruction from the holders'
code drifted in a few fields and added ADR 0613 to the decision, which the real definitions do
not carry. node-uplink.json is copied byte for byte from mesh-networking
modules/mesh-connectivity-contracts/seats/node-uplink/seat.json (8d993ea), and
node-display-session.json from mesh-contracts seats/node-display-session/seat.json (3260a68a).
graphical_session_test.go's decision text now matches the real definition
("novox/hq ADR 0208, ADR 0687"). node-resolver.json and node_resolver_test.go wait for
mesh-networking's fix for outside_writes.

Builds: design 08 sign-in-page §1, §3; lead answer C-3
2026-11-24 21:48:49 +01:00
jochen 18c68fda5a Refresh the test copies of node-uplink, node-resolver and node-display-session to their whole definitions
mesh-sdk joins the sign-in-page milestone only to replace its seatlisttest copies with the three
seats' whole definitions, and to update the two tests that assert today's verbs; the seat-name
constants and the package's own code stay untouched (ADR 0613 §5: nothing seat-specific is added
to mesh-sdk).

Builds: design 08 sign-in-page §1, §2, §3, §4
2026-11-24 21:13:21 +01:00
mesh-tools 0cc22bd7a4 Merge pull request 'A module of its own account needs a node-engine that gives a directory's contents (design 47 H2, H-A-554, H-A-556)' (#213) from fix/gitea-runs-as into main 2026-11-23 11:31:53 +00:00
jschoubben 2ef966ca17 A manifest of its own account needs an engine that gives directory contents
A module moved to runs-as reads what it wrote before only once its node-engine
gives a directory's contents the directory's new owner. ManifestNeeds now names
the reader capability directory-contents-owner for every manifest declaring
runs-as, so the module graph orders such a module's move after that engine runs
on its node; the node-engine states it itself.

Builds: design 47 H2 H-A-554 (1), H-A-556
2026-11-23 12:23:58 +01:00
mesh-tools 31a1c5abb0 Merge pull request 'A stopping tool runner's fault is asked again by every caller (design 47 H2, H-A-542, H-A-544, H-A-549)' (#212) from fix/runner-stopping into main 2026-11-23 11:10:48 +00:00
jschoubben b3509e7d31 process: a reply's error-kind is read from its bytes, and tested so (H-A-549 (1))
Review round 2: the row for a stopping tool runner built its fault itself, so
requestAsk's reading of error-kind went untested. The reading of a reply (result,
error, error-kind, held) is now readReply, and the kept-call table reads the
runner's raw reply {"error": ..., "error-kind": "stopping"} through it.

Builds: design 47 H2 H-A-549 (1)
2026-11-23 12:09:05 +01:00
jschoubben 07bfc71c33 stdio (TypeScript): the ask's bound is the setting ask-bound; the pause has a seam (H-A-549)
Review round 1: the bound of asking again while the tool runner is stopping is the
setting ask-bound (default 60 s), and the pause and the clock are askPacing, which
the test replaces as the Go test does pause and askNow, so nothing sleeps. Rows
added: past the bound the fault is the caller's, a bare timeout stays a failure.

Builds: design 47 H2 H-A-542, H-A-544, H-A-549
2026-11-23 12:05:15 +01:00
jschoubben fdb85e8bd5 process, stdio: a kept call paces on a stopping tool runner; the ask's bound is a setting (H-A-549)
Review round 1: the process caller read only a reply's error, so a kept call
(CallKept, e.g. seat:git.trees) ended at once on stopping instead of pacing until
the new runner answers. requestAsk now reads error-kind stopping as
busretry.Stopping, which busretry.Fault counts as a transport fault, as away. The
Go stdio Ask's 60 s bound becomes the setting ask-bound (default 60 s), read by
the settings reader.

Builds: design 47 H2 H-A-542, H-A-549
2026-11-23 12:05:15 +01:00
jschoubben 6459dee6aa stdio (TypeScript): a stopping tool runner's fault reaches the bundle as such and is asked again (H-A-544)
As in the Go stdio: the runtime's answer names its typed fault in the error's data
error-kind, kept on the error as errorKind (isStopping); a broker request (mesh/ask)
met by stopping is asked again after a pause at the kept-call pace (the settings
kept-call-pace-first and -max, 1 s doubling to 30 s by default) until the new
runner answers or 60 s end, then the fault is the caller's. A plain refusal is
never asked again; a TypeScript bundle (the forge, the registries' holder) meets a
restarting runner as a Go one does.

Builds: design 47 H2 H-A-542, H-A-544
2026-11-23 11:51:56 +01:00
jschoubben 78a0c4d154 stdio: a stopping tool runner's fault reaches the bundle as such and is asked again (H-A-542)
A call a stopping tool runner did not take reached a bundle as a bare words error,
or, before the runner said so, as a "timeout", so a build step's publish failed
when the runner restarted (main.440). The runtime's answer now names its typed
fault (the error's data error-kind); stdio keeps it (ErrStopping, ErrorKind), and
Ask asks again after a pause at the kept-call pace until the new runner answers or
Ask's own bound ends, then hands the caller ErrStopping. A plain refusal and a bare
timeout are never asked again.

Builds: design 47 H2 H-A-542
2026-11-23 11:45:40 +01:00
mesh-tools 2992d7187f Merge pull request 'The TypeScript sdk's build refuses an undeclared bare import (design 47 H2 H-A-491)' (#211) from fix/ts-declares-blakejs into main 2026-11-23 01:08:40 +00:00
jschoubben a614536509 H-A-491: the build refuses built files that import an undeclared package
The forge's bundle met "Could not resolve blakejs" in the SDK's seal code. blakejs and tweetnacl are declared
dependencies already. The build now runs a check after tsc: every bare import in dist/**/*.js must be a Node built-in,
the package itself, or a declared dependency or peerDependency. The builder runs npm run build before npm pack, so a
package that breaks this is never published. The check lives under src because the builder's workspace holds only
the artifact's paths.

Builds: design 47 H2 H-A-491
2026-11-23 02:04:27 +01:00
mesh-tools 1fa56e1a0e Merge pull request 'A heard entry of the membership carries its consumer's spec (H-A-472, seventh and eighth addenda)' (#210) from fix/heard-issued-spec into main go/v0.1.33 2026-11-22 19:01:42 +00:00
jschoubben ed9e5bd700 membership: a heard entry carries its consumer's whole spec
A part that creates a hearing consumer itself (the tool runner, for a module's
_tools twin) reads the filters, ack wait, max deliver, max ack pending and
deliver policy from the membership instead of computing them, so the grants
part stays the one composer of filters. The fields are omitted when unset: an
older grants part's membership still reads, and an older reader ignores them.
HasSpec says which an entry is, so a reader binds an older entry by name and
creates a newer one from its spec.

Builds: design 47 H2 H-A-472 (seventh addendum, eighth addendum)
2026-11-22 19:12:50 +01:00
mesh-tools a6d22f10fb Merge pull request 'Design 47 H2: the kept call paced, take once, page by cursor, settings, class and caps, check-needs' (#209) from feat/47-H2 into main go/v0.1.32 2026-11-22 03:50:58 +00:00
jschoubben 087e41497e The tests' seat list takes again node-engine, whose have's pipeline description moved
seatlisttest takes again node-engine from mesh-contracts feat/47-H2 ba5a2538,
where only the have's pipeline description changed (a want's run is compared
with the have's run only when the want's branch is the same), no form change.
It is a bootstrapped seat, so the bootstrap copy and its captured contracts
copy are replaced too (ADR 0635 §3), and CAPTURED names the commit. Every
other seat and both parts still equal the group's heads (mesh-contracts
feat/47-H2 ba5a2538, mesh-delivery feat/47-H2 abfe37e6, mesh-networking
feat/47-H2 18e564c0).

Builds: design 47 H2, H-A-452, ADR 0635 §3
2026-11-22 03:15:14 +01:00
jschoubben 78fd003263 The tests' seat list takes again five definitions the group's heads moved, two of them bootstrapped
seatlisttest takes again mesh-builds (its verb publish-queue), mesh-delivery,
mesh-wants (keep-now), node-engine (form 4: the have's run keeps its pipeline,
the composition answer gains drift) and node-packet-filter from the group's
current heads (mesh-contracts feat/47-H2 8f2bed18, mesh-delivery feat/47-H2
abfe37e6, mesh-networking feat/47-H2 18e564c0), so a test judges a manifest
against the seats the running validator judges it against; every other seat
and both parts already equal those heads. The two bootstrapped seats among
them (mesh-delivery, node-engine) are replaced in the bootstrap and its
captured contracts copy too (ADR 0635 §3), and CAPTURED names the commits.

Builds: design 47 H2, H-A-452
2026-11-22 02:58:54 +01:00
jschoubben a323a3fd54 The tests' seat list holds the group's definitions: mesh-recovery and four more seats, eleven taken again
seatlisttest gains mesh-builds, mesh-delivery-view, mesh-grants,
mesh-pipeline-runner and mesh-recovery, which the live list (revision 473)
holds, and takes again the eleven definitions and two parts the group's heads
change (mesh-contracts feat/47-H2 e6ed560e, mesh-delivery feat/47-H2 80ff1afa,
mesh-catalog's form 5 from feat/47-H2-i 5e943280), so a test judges a manifest
against the seats the running validator judges it against. The three
bootstrapped seats among them (mesh-catalog, mesh-delivery, node-engine) are
replaced in the bootstrap and its captured contracts copy too (ADR 0635 §3,
ADR 0636 §7); the service manager's tests take its kernel-log verb, and the
grants module's name, now also a seat's, joins the kept names.

Builds: design 47 H2, H-A-452
2026-11-22 02:29:29 +01:00
jschoubben f90189353c Fold H2's new tests into existing ones: go/ at 327 unit tests (from 331), TypeScript at 48 (from 49)
The eight Go test functions H2 added become subtests of existing tests
(catalogue's state test, the bundle's state test, the views test, the process
state test, the testbus bus test, the seal byte-for-byte test), and four more
are folded beside them (two seal, two process watch); the two TypeScript seal
tests become one, and two more TypeScript tests are folded into their
neighbours. No assertion is lost.

Builds: design 47 H2 §819
2026-11-22 02:25:44 +01:00
jschoubben 7d7a89411c M1 check-needs: a manifest names at its top level the seats a package outside every artifact's from needs
A package no artifact's from holds (the forge module's seatgit whole test) has no artifact to carry its
check-needs, so the module says it once at its level, in the artifact's form (H-A-453 (2)).

Builds: design 47 H2 §800, H-A-453 (2)
2026-11-22 02:24:49 +01:00
jschoubben 4e338436da Kept-call pace read once and atomically: no data race with the kept calls reading it
ReadPace wrote the pace at every Connect and Serve while kept calls on other
goroutines read it. The pace is now held atomically and read once at the
start: a later read of the same pace changes nothing, one of another pace is
refused naming both. KeptPace becomes a function.

Builds: design 47 H2 §782, §775
2026-11-22 02:21:53 +01:00
jschoubben 03e2aca59f S4 page by cursor: a page hands a kept delete as an entry marked deleted with no value
A reader following pages removes the key, so a deleted key never comes back
alive from a bucket with history.

Builds: design 47 H2 §779, H-A-451 (1)
2026-11-22 02:19:27 +01:00
jschoubben ed281663fd S16 addendum: a waiting ask says when it waits again after a nak
Builds: design 47 H2 §777, H-A-410 and its addendum
2026-11-22 01:00:24 +01:00
jschoubben d6cdf3b8f5 S15 TypeScript seals: seal, open and sealAnonymous beside go/seal
The forge module's minting processes are TypeScript and the vault's two steps need ADR 0206's
sealed box and the NaCl anonymous box its intake opens; both now live once in mesh-sdk, proven
byte for byte against the Go package's bytes (tweetnacl 1.0.3 and blakejs 1.2.1 pinned).

Builds: design 47 H2 §808, §822, H-A-407 and its addendum
2026-11-22 00:59:54 +01:00
jschoubben 3ad8ccbc06 S16 QueueWaiting: a holder reads its own seat queue's waiting asks through the runtime
A holder's asks tool answers what waits on its seat's queue; the queue is its own store, so
the read is the owner's, one shared form asked of the tool runner as mesh/queue.waiting.

Builds: design 47 H2 §777, H-A-410
2026-11-22 00:56:35 +01:00
jschoubben 3f8f35a87a S14 kept chunked call: CallChunksKept and CallFileKept pace the ask and carry its id on every chunk
The assigner's compose-candidate ask is chunked, and the one-shot CallFile ended at the
first no responders; the kept call's form now makes the chunked call too.

Builds: design 47 H2 §775, H-A-405 (1), H-A-351
2026-11-22 00:55:25 +01:00
jschoubben c99295c21d The starved setup's line lives in the root package
stdio.SetupStarved holds "mesh: setup starved:" so the delivery SDK reads
it without importing testbus; testbus.SetupStarved names it.

Builds: design 47 H2 §800; H-A-368, H-A-399
2026-11-22 00:52:02 +01:00
jschoubben 5dd0d66acb S10 check-needs names the seats a package's tests need the node to hold
check-needs is a list of seat names (node-build-node), as the marker
file named them, not the value node-modules.

Builds: design 47 H2 §800; H-A-350 DMC-6, H-A-399 (3)
2026-11-22 00:44:18 +01:00
jschoubben e54151336e S13 bootstrap copy of git: take the git seat as D5 defines it
The bootstrapped definition, its test copy and the captured contract file
are replaced by mesh-delivery's seats/git/seat.json at D5 (tags name their
commits, a holder says away), byte for byte.

Builds: design 47 H2 §796, §776; H-A-350 DMC-3
2026-11-22 00:22:57 +01:00
jschoubben 98ed28c1d1 S12 class: a manifest says whether its module is core or a leaf
The gate reads a mover's class from its catalog entry; a module that
names none is a leaf.

Builds: design 47 H2 §810, §814; H-A-394 (1)
2026-11-22 00:21:38 +01:00
jschoubben 7e538e3eae S12 caps in the catalog: a manifest says each kept store that names no cap
The manifest validator refuses a delivery module's state, log or objects
entry with no cap; the catalog reads them from the old sections and the
requires entries alike, so the validator judges one list.

Builds: design 47 H2 §814, §812
2026-11-22 00:20:57 +01:00
jschoubben 134b111e3f Raise the declaration's Version to 2 for drain-bound; manifests state the Version read and written
Version is the declaration's form: drain-bound raises it by one, and a
node-engine refuses only a higher one, so it still takes what a composer
of version 1 writes. A manifest says declaration-reads (the node-engine's)
and declaration-writes (the composer's), so the delivery plan can order
the writer of a Version after every engine that reads it.

Builds: design 47 H2 §813 (12), H-A-388 (2), H-A-358
2026-11-22 00:19:52 +01:00
jschoubben 484e2bba3c S11 prune helper and tools: a kept store is pruned toward its cap at its own writes
A process judges a running sum of what its writes put against the figures
read at the bind and after each prune; a bundle judges the fill the
runtime's put answer carries. Past prune-mark (70 %) the oldest keys by
revision go down to prune-target (50 %), in one journal line; a key kept
under _keep/<key> stays, and no reader counts the keep. The generic tools
<module>_state_prune_now and <module>_state_keep act through the hand-act log.

Builds: design 47 H2 §812, H-A-380, H-A-386
2026-11-22 00:17:36 +01:00
jschoubben fe052c135e Read a state's max-mib in the manifest-reads baseline
Every running node-engine reads a state's max-mib (it writes every
module's bucket cap from it), so the baseline a node-engine that states
nothing is read as stating carries it.

Builds: design 47 H2 §812, §820; H-A-383
2026-11-22 00:06:15 +01:00
jschoubben 450ea7eddc S10 check-needs: a Go artifact declares what its tests need in its manifest
catalogue.Artifact gains check-needs (node-modules), the field that
replaces the marker file in a package's directory; its readers read it
from the manifest.

Builds: design 47 H2 §800; H-A-350 DMC-6
2026-11-22 00:04:53 +01:00
jschoubben eee02a20a9 S7 safe for concurrent use: hold the bus wrappers to it under the race detector
Many goroutines' gets, puts, pages, keys and watches through one bundle's
runtime channel, one process connection's state and one process reader's
pictures run under the race detector; no unguarded call was found, so the
tests hold the wrappers to it.

Builds: design 47 H2 §782; H-A-349 DQ-3
2026-11-22 00:03:19 +01:00
jschoubben e9481928f5 KeptPace from settings: a module's declared pace paces its kept calls
busretry.ReadPace sets the kept-call pace from kept-call-pace-first and
kept-call-pace-max through the one settings reader; process.Connect and a
bundle's Serve read it at their start and refuse a value that is no
duration.

Builds: design 47 H2 §775, §781; H-A-370
2026-11-21 23:59:04 +01:00
jschoubben 139626daab S9 setup bound: a starved setup on the bus says so in one line
A test's setup waits on the bus for half of its level's bound
(MESH_TEST_LEVEL_BOUND), 30 s when unset, and fails with the line
"mesh: setup starved:" a build module reads to run the level again.

Builds: design 47 H2 §800; H-A-368
2026-11-21 23:57:12 +01:00
jschoubben 92cb6a8d6d S4 page by cursor: a state page continues from an opaque cursor in sequence order
The runtime's mesh/state.page takes the cursor the page before answered as
next, so a state is read once however many pages it takes; a key written
again since an earlier page comes marked seen-again.

Builds: design 47 H2 §779
2026-11-21 23:56:07 +01:00
jschoubben 6d290eb46b S6 settings: read a setting by its key in a process and a bundle
The node-engine composes each config value as MESH_CONFIG_<KEY>, in a
process's environment and the module's tool-runner slice alike;
stdio.Setting and SettingDuration read it, the one reader both sides use.

Builds: design 47 H2 §781; H-A-350 DMC-13, H-A-370
2026-11-21 23:23:15 +01:00
jschoubben ab05031e9a Purge a deleted object's leftovers through the runtime's delete
The runtime's objects delete already purges an object's chunks, and purges
them again when asked again: Purge and purgeObject ask it, and no act of
their own is added.

Builds: design 47 H2 §812; H-A-366 (correction)
2026-11-21 23:22:38 +01:00
jschoubben 75287d8ce5 Let a bundle purge a deleted object's leftovers through the runtime
The runtime's objects act purge removes a deleted object's chunks:
busstate.Objects.Purge and TypeScript purgeObject, so the registry's
program opens no connection of its own for it.

Builds: design 47 H2 §812; H-A-366
2026-11-21 23:20:52 +01:00
jschoubben 0c27544582 Let a holder take asks once over a store bound on its own link
process.StateOver gives a State over a key-value store the caller bound
itself, so the node-engine, which serves its seat over its own link, keeps
the asks it took in its own taken state.

Builds: design 47 H2 §775; H-A-364
2026-11-21 23:19:11 +01:00