Commit Graph
3865 Commits
Author SHA1 Message Date
jschoubben 7ade318cfa mesh-config: one deadline timer for the earliest real deadline, its floor a setting (issue 1982; ADR 0681 §1; A-490l)
The one timer left is set for the earliest of three deadlines: a waiting proposal's end, an unanswered retirement's second
ask, and a rename window's seven-day held finding, which is now judged at its deadline (JudgeHeldWindows) so it comes in a
quiet mesh too. Its floor is the module's setting deadline-floor-seconds (default 60), not a constant.

Tests: an integration test counts asks by key and fails on any `seat:git.*` over the whole run (ADR 0681, How it is checked,
clause 1); a unit test shows an approved proposal records a hand act naming no pull request; another that a stored proposal
naming a pull request is refused on approval, saying why.

Claude-Session: https://claude.ai/code/session_01JG73KHUnBze48rdua8u2sy
2026-11-19 23:08:09 +01:00
jschoubben 7e96d61268 mesh-config: drop the require of the removed meshconfigclient (issue 1982)
The generated client held only the held values' keys and decoder, which the seat no longer has.

Builds: ADR 0681 §1, §6 (the seat keeps no held value, so its generated client goes).

Claude-Session: https://claude.ai/code/session_01JG73KHUnBze48rdua8u2sy
2026-11-19 22:50:57 +01:00
jschoubben 9d43fa4b24 mesh-cli: config no longer passes pull (issue 1982; ADR 0681 §1)
mesh-config's verb takes no pull request argument any more, so `nox config` offers none.

Builds: ADR 0681 §1 (the verb `config` takes no `pull`).

Claude-Session: https://claude.ai/code/session_01JG73KHUnBze48rdua8u2sy
2026-11-19 22:50:25 +01:00
jschoubben cd3ef2fd41 mesh-config: remove the pull request path (issue 1982; ADR 0681 §1, §3, §5, §6)
The mesh knows no pull request (design 47 G, G-1 §38-39). Removed:
- the states `pulls` and `kept` and all code that reads or writes them (pulls.go, the held values a proposal holds, the
  listing of held values), SweepPulls, settlePull, HeardPull and the forge call;
- the consumes of git.pull-merged and git.pull-closed, the invoke of seat:git.pull;
- the config verb's `pull`, `head`, `declares` and `pulls` arguments and its actions `pull-declares` and `held`;
- the indexer's config candidates, which only that path used: the consume of mesh-delivery-indexer.views.config-candidates
  and the invoke of indexer_read_config_candidates (the indexer's state goes in the same group).
A stored proposal that names a pull request is judged not one this module makes, so nothing is set on it.

Builds: ADR 0681 §1 (no pulls or kept, no git events, no seat:git.pull, no `pull` argument, no pull-declares or held), §3, §5, §6;
lead answer A-490l (a stored proposal naming a pull request is refused on its approval).

Claude-Session: https://claude.ai/code/session_01JG73KHUnBze48rdua8u2sy
2026-11-19 22:42:28 +01:00
jschoubben b75481733b mesh-config: read its own states from a watched copy and wake only on an input (issue 1982)
mesh-config sent about 262 requests a second and received about 1,540 since its start: every sources() call (a
resolution pass, and a `delivered`, `manifest-reads-changed` or `manifest-accepted` event, each of which read the sources
whether or not a window or a retirement was open) read every key of its own states by one get each (pulls 1,176 keys,
resolved 447, declared 168, values 101...: about 1,200 requests for an event, 2,800 for a pass), serialised by one lock, so
a delivery's burst of events kept it asking the bus back to back.

- The module's own states are read from mesh-sdk's WatchedStates (one watch per state, its own writes taken into the copy)
  instead of a get per key (ownstates.go, main.go runtimeStore).
- An event judges what it names: `delivered` and `manifest-reads-changed` read no source when no rename window is open,
  `manifest-accepted` reads none when every row is already marked or read again (renames.go windowOpen, retiring.go).
- Open windows and retirements are judged again after each pass, since an entry that answers after the judgement was
  made moves the pass, not the event; the slow reads had hidden that race.
- No timer polls: the five-minute resolution and sweep of every pull request on the forge, and the minute's read of the
  router's record, are gone. The sweep and Decide run once at start (an event said while the module was down is not said
  again), then on git.pull-merged/-closed and operator-channel.decided.mesh-config; an ask ended with no choice also
  takes the retirements from the router's record. One timer is left, a deadline: for the earliest waiting proposal
  (ProposalLasts + 1 h) or unanswered retirement (HeldFinding), set again when either is written (NextDeadline).

Wake-ups kept, each by its record: `delivered` and `manifest-reads-changed` close a rename window (design 32 *A config
value renamed*, ADR 0609 §4); `manifest-accepted` judges one module's retirements (design 32 *A value no longer read*);
`git.pull-merged` and `-closed` settle one pull request's held values (ADR 0502 §7); `decided.mesh-config` takes one ask's
warrant (ADR 0259); a changed view (assignment, want, predefined list, config candidate, catalog revision, entry) moves a
resolution that writes only what moved (ADR 0565 §3).

Builds: ADR 0681 §1 (no polling of the forge: the five-minute look ends); ADR 0580 §1; ADR 0426 §3; design 32 (*A config value renamed*, *A value no longer read*);
lead answer A-490l (hq main, 03-DESIGN/01-to-be/47-milestones/G-22-lead-answers-2.md) for the wake-ups and the one deadline timer.

Claude-Session: https://claude.ai/code/session_01JG73KHUnBze48rdua8u2sy
2026-11-19 22:21:06 +01:00
mesh-tools 282758456c Merge pull request 'The build modules declare what their seat-list reader uses (A-488a, A-488b)' (#705) from fix/build-node-consumes into main 2026-11-19 12:51:11 +00:00
jschoubben 0e9f916806 The three build modules consume the seat list's events and invoke its verb
mesh-build-go and mesh-build-image follow the seat list as mesh-build-node does, so each consumes mesh-catalog.seat-definition-changed and
-removed, and all three invoke seat:mesh-catalog.seat-definitions, which the reader calls.

Builds: design 47 G A-488a, A-488b (hq 57c14047)
Claude-Session: https://claude.ai/code/session_01JG73KHUnBze48rdua8u2sy
2026-11-19 13:49:07 +01:00
jschoubben daa5d3ea5f mesh-build-node consumes the seat list's events, so its runtime's consumer exists
Its runtime follows the seat list (seatlist.Start subscribes to mesh-catalog.seat-definition-changed and -removed); with no consumes
there was no consumer shanks_mesh-build-node_tools, the seat list was never read and the asks of a named asker were given back.

Builds: design 47 G A-488a (hq 25df48ad)
Claude-Session: https://claude.ai/code/session_01JG73KHUnBze48rdua8u2sy
2026-11-19 13:41:12 +01:00
mesh-tools be993cb2c5 Merge pull request 'restic: its secrets belong to the account its processes run as (ADR 0680)' (#703) from fix/restic-secrets-owner into main 2026-11-18 01:18:35 +00:00
jschoubben cd3b8fe8e9 restic: its secrets belong to the account its processes run as
Its processes run as the operator account, so its own secrets are owned by it (design 20 "Whose a process's own secrets are").

Builds: ADR 0680 §1, §4; design 20 "Whose a process's own secrets are"
2026-11-18 01:21:54 +01:00
mesh-tools f0c21ca033 Merge pull request 'feh: the second single-module proof (one comment line)' (#702) from proof/feh-two into main 2026-11-17 19:49:31 +00:00
jschoubben c6ec42bc2e feh: mark the wallpaper file with the second single-module proof
The single-module proof of design 47 G (the operator, 2026-11-17), after pack49:
one change to one leaf module, followed to delivered on g14 and shanks with no hand act.
2026-11-17 20:49:20 +01:00
mesh-tools f65d789052 Merge pull request 'feh: the wallpaper file is replaced at every delivery (single-module proof)' (#701) from proof/feh-one-line into main 2026-11-17 16:02:47 +00:00
jschoubben 62b8251b99 feh: say the wallpaper file is replaced at every delivery, the glossary's word
The single-module proof of design 47 G (the operator, 2026-11-17): one change to one module,
followed through its pipeline to delivered on g14 and shanks.
2026-11-17 17:01:16 +01:00
mesh-tools 90c88fc7b5 Merge pull request 'A-471: the build modules' tests expect the language version in a toolchain report' (#700) from fix/a471-toolchain-language-version into main 2026-11-17 14:56:47 +00:00
jschoubben 740c218139 A-471: mesh-build-go start test expects the language version
Builds: design 47 G A-471 (G-22-lead-answers-2.md)
2026-11-17 15:53:05 +01:00
jschoubben 1481465ec7 A-471: the build modules' tests expect the language version in a toolchain report
The toolchain a build module reports (guard key and toolchain-reported event) names the
language version alone (mesh-delivery-sdk steprun Guard); the build module's own
Toolchain func keeps the installed text. Delivered with or after the sdk change.

Builds: design 47 G A-471 (G-22-lead-answers-2.md)
2026-11-17 15:53:05 +01:00
mesh-tools d2b8f64c94 Merge pull request 'G-24 tests on main: mesh-build-go keeps no step-code bridge, uses a stand-in composer, and runs within its level bounds' (#699) from fix/g24-tests-on-main into main 2026-11-17 14:35:32 +00:00
jschoubben eed95cd63b mesh-build-go: the integration level runs its slowest independent tests side by side, inside its 60 s bound
The level took 67 s locally and 74 s in the pipeline, over IntegrationRun's 60 s. The eight slowest tests share no state and run in
parallel: 31 s locally with the fixture's store and bus. The real-store test makes its work directory under the test temp
directory, not /tmp.

Builds: ADR 0445 §3 (the integration level's 60 s bound)
2026-11-17 15:31:00 +01:00
jschoubben 84106a9338 mesh-build-go: the compose ask's test builds a stand-in composer from its own testdata, reading no other repository
A pipeline's test step places no repository beside the tree and a module's tests read nothing outside their module (lead answer
A-474), so the test no longer needs MESH_CHECK_BESIDE or the node-engine's tree: it fetches a small program of the composer's
contract (testdata/composer) and still proves the build once, the kept composer on the second ask, and the verdict by case.

Builds: design 47 G lead answer A-474 (principles 10 and 9)
2026-11-17 15:31:00 +01:00
jschoubben 9ed13cd9dc mesh-build-go: the empty buildstep bridge goes (G's indexer runs), and the unit level runs its digest tests side by side
The bridge kept a directory for the pre-G indexer's package publishing; its own commit says it goes once G's indexer runs, and
the test of the delivery SDK's step code refuses it. The unit level took 6.3 s over its bound of 5 s in the take-in's pipeline:
the digest tests ran their go commands one after another; the marker table is a subtest per case in a fixture of its own, the
list half a test of its own, and the six slowest independent tests run in parallel (4.6 s locally).

Builds: design 47 G §464, §680 (the build modules keep no copy of the delivery SDK step code); ADR 0445 §3 (the unit level's 5 s bound)
2026-11-17 15:31:00 +01:00
mesh-tools d76c3588e3 Merge pull request 'gate: the start comparison ends only when every head was compared (A-464e)' (#698) from fix/47-G-start-compare into main 2026-11-17 08:22:03 +00:00
jschoubben 377d42f5ea gate: the start comparison ends only when every head was compared (A-464e)
Builds: design 47 G-22 A-464e, A-464
2026-11-17 09:03:29 +01:00
mesh-tools 9ade421e12 Merge pull request 'gate: the source of a watched branch follows every merge, forward only (A-464..A-464d)' (#697) from fix/47-G-untaken-merge into main 2026-11-17 01:13:07 +00:00
jschoubben 46f3dc8cd7 gate: take-in.taken moves a head only forward too (A-464d)
Also corrects the manifest test's comment, which said the gate does not hear merged (A-464).

Builds: design 47 G-22 A-464d, A-464
2026-11-17 02:10:36 +01:00
jschoubben 7da6dd20a1 gate: a head moves only forward and only when it changes (A-464c)
Builds: design 47 G-22 A-464c, A-464
2026-11-17 02:02:07 +01:00
jschoubben c87cf1ace5 gate: the source of a watched branch follows every merge into it (A-464, A-464b)
The forge bridge's merged moves the repository's head and says source-moved; at its start each head is compared with the forge's branch head; gate_source_follow does it for one repository by hand.

Builds: design 47 G-22 A-464, A-464b
2026-11-17 01:59:09 +01:00
mesh-tools 3f3f6789dd Merge pull request 'nats: the tools bundle answers initialize again' (#696) from fix/nats-starts-again into main 2026-11-16 21:29:12 +00:00
jschoubben 8b5cc8be8d nats: the tools bundle answers initialize again (keep days read when asked)
bundleKeepDays read the config value snapshot-keep-days while allTools
listed the tools, before stdio.Serve; a config read waits for the runtime's
channel, which opens only once the bundle serves, so the bundle never
answered initialize and node-tools served none of its tools (novox
2026-11-16 22:21 and 22:26, after the first build from main since A-112).
The setting is now read when nats_snapshots is called.
2026-11-16 22:28:40 +01:00
mesh-tools 7c6aed9d69 Merge pull request 'nats: a tool purges a stream's messages below a sequence' (#695) from fix/nats-stream-purge into main 2026-11-16 21:07:49 +00:00
jschoubben 4f9f307eaf nats: a tool purges a stream's messages below a sequence
A build seat's work queue (SEAT_NODE_BUILD_GO) held about 370 asks of
pipelines nobody waits for, ahead of the one pipeline wanted, and no tool
could empty it short of removing the stream. nats_stream_purge removes the
messages below a given sequence, keeping the rest, the stream and its
consumers; it needs why, reads first, offers dry_run, refuses a purge past
the stream's end and the module-kept data nats_drop owns, and says
stream-purged as its audit event, like the three removal tools.
2026-11-16 22:07:18 +01:00
mesh-tools e87c6cd3b6 Merge pull request 'mesh-build-go: an asked version brings the requirements and sums of its go.mod into the modfile' (#694) from fix/build-go-asked-versions-every-dir into main 2026-11-16 20:10:03 +00:00
jschoubben 73c2286ec9 mesh-build-go: an asked version brings the requirements and sums of its go.mod into the modfile
Kind: a version written into a workspace's modfile without what that version's graph needs, judged against files the build does not use.

Builds: design 47 G (ADR 0573 §2, §4, as written in versions.go: asked versions hold whatever go.mod names)
2026-11-16 21:06:17 +01:00
mesh-tools 3be2f79921 Merge pull request 'mesh-hand-acts: a thirteenth change through its own pipeline' (#693) from probe/thirteenth-pipeline-hand-acts into main 2026-11-16 15:42:06 +00:00
jschoubben cf5ea429a2 mesh-hand-acts: a thirteenth change through its own pipeline 2026-11-16 16:37:58 +01:00
mesh-tools 1419dcef7d Merge pull request 'mesh-hand-acts: a twelfth change through its own pipeline' (#692) from probe/twelfth-pipeline-hand-acts into main 2026-11-16 14:44:00 +00:00
jschoubben 8c96a02a01 mesh-hand-acts: a twelfth change through its own pipeline 2026-11-16 15:43:38 +01:00
mesh-tools 03cc8eac90 Merge pull request 'Design 47 G start: catalog fixes placed by hand and the Go build per module (A-447)' (#691) from fix/47-G-start-merge into main 2026-11-16 14:15:15 +00:00
jschoubben f31d6c645d Merge commit 'cdf16870' into fix/47-G-start-merge 2026-11-16 15:11:01 +01:00
jschoubben bbc9eb7c93 Merge remote-tracking branch 'origin/main' into fix/47-G-start-merge 2026-11-16 15:11:01 +01:00
mesh-tools 1310c28102 Merge pull request 'mesh-hand-acts: an eleventh change through its own pipeline' (#690) from probe/eleventh-pipeline-hand-acts into main 2026-11-16 14:02:55 +00:00
jschoubben affffa9c23 mesh-hand-acts: an eleventh change through its own pipeline 2026-11-16 14:58:00 +01:00
mesh-tools 94f3cde557 Merge pull request 'mesh-hand-acts: a tenth change through its own pipeline' (#689) from probe/tenth-pipeline-hand-acts into main 2026-11-16 13:46:58 +00:00
jschoubben 6962da2f98 mesh-hand-acts: a tenth change through its own pipeline 2026-11-16 14:46:48 +01:00
mesh-tools 0aee792af6 Merge pull request 'mesh-hand-acts: a ninth change through its own pipeline' (#688) from probe/ninth-pipeline-hand-acts into main 2026-11-16 13:32:32 +00:00
jschoubben 86367f65b2 mesh-hand-acts: a ninth change through its own pipeline 2026-11-16 14:32:22 +01:00
mesh-tools 932e5c4e4b Merge pull request 'mesh-hand-acts: an eighth change through its own pipeline' (#687) from probe/eighth-pipeline-hand-acts into main 2026-11-16 13:21:00 +00:00
jschoubben 930c0fb783 mesh-hand-acts: an eighth change through its own pipeline 2026-11-16 14:20:51 +01:00
mesh-tools 79bd15884d Merge pull request 'mesh-hand-acts: a seventh change through its own pipeline' (#686) from probe/seventh-pipeline-hand-acts into main 2026-11-16 13:14:34 +00:00
jschoubben 13a0277f8c mesh-hand-acts: a seventh change through its own pipeline 2026-11-16 14:14:21 +01:00