founding tail cannot import matou-app MA1 (communityspace): fleet is Go 1.23, MA1 needs Go ≥1.25.5 #1555
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#1555
Loading…
Add table
Add a link
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?
Symptom
The founding pipeline tail cannot create the community's three any-sync spaces (idss #1519, spec #1495 stories 25/27, ADR 0226 amendment) because it cannot import matou-app MA1.
Root cause
MA1 is published and public —
github.com/matou-collective/matou-app/backend/communityspace(nested public module, pseudo-versionv0.0.0-20260916204102-a6eb69e5fd0d, exposingCreateCommunitySpaces(ctx, creator, mnemonic, ownerAID)andDeriveSpaceKeySet). But itsgo.moddeclaresgo 1.25.5, and the whole IDSS fleet is pinned to Go 1.23 (go.mod:go 1.23.7/toolchain go1.23.8;flake.nix:pkgs.go_1_23in bothdevShells.defaultanddevShells.go-ci, ADR 0040 — the pin is deliberate and shared by operators, CI and Sandcastle).Reproduced with the fleet toolchain (GOTOOLCHAIN=local, as the nix pin enforces):
So any file in the fleet module that imports MA1 fails the
nix develop .#go-cipre-push gate. ADR 0226 amendment decision 2 explicitly rejects re-deriving in TypeScript or spawning a bundled matou-app command on stdin — the sanctioned design is an in-process Go import of MA1 — so there is no in-scope workaround inside idss #1519.A second gap rides with it: IDSS today has no any-sync SDK client (internal/anysync only backs up the gateway's Mongo/MinIO stores; internal/clan/anysync.go only renders the node set). MA1's
communityspace.SpaceCreatoris the caller's to supply — "the IDSS founding tail passes the platform's client." So the adapter needs a network-connected any-sync client built over the coordinator's public ports, pulling the any-sync/libp2p dependency closure into the fleet module.Proposed fix (the enabling work #1519 waits on)
flake.nix(go_1_23→ ago_1_25/go_1_26from the pinned nixpkgs, both dev shells),flake.lockif needed,go.modgo/toolchain. Blast radius to weigh: every fleet Go build, the VM guest image module dialect (flake.nix notes it must stay in step), operator dev shells, reproducibility — this is a fleet-wide infra decision, not a vertical-slice change, hence its own ticket.go get github.com/matou-collective/matou-app/backend/communityspace).communityspace.SpaceCreator(CreateSpaceWithKeys / MakeSpaceShareable / GetSigningKey) over the coordinator address opened by any-sync-on-the-gateway (T9), so the founding tail can callCreateCommunitySpaces.Once (1)–(3) land, re-arm idss #1519 (its seam is
internal/foundingorchestrator tests with a scripted any-sync answer + a residue assertion) to wire the realSpaceCreatorinto the tail.Found while working
idss #1519 (spaces-at-the-tail). This issue is the blocker; #1519 is
agent-blockedpending it.Triage:
enhancement+ready-for-sessionDiagnosis verified against HEAD (
0bc96e1d):go.mod→go 1.23.7/toolchain go1.23.8;flake.nixpinspkgs.go_1_23in bothdevShells.default(L207) anddevShells.go-ci(L233), tied to ADR 0040's reproducibility contract. Confirmed.matou-app/communityspace/SpaceCreatorappear nowhere in the Go tree,go.mod, orflake.nix. Confirmed.internal/anysync/isbackup.go/backup_test.go(gateway Mongo/MinIO backup only);internal/clan/anysync.gorenders the node set only. Confirmed. Thecommunityspace.SpaceCreatorthe caller must supply has no home yet.So this is genuine enabling work #1519 waits on, not a regression — hence
enhancement.Ruled by agent under ADR 0174 — veto anytime
The call being ruled: does bumping the fleet Go toolchain off ADR 0040's
go_1_23pin need Ben's authorization first?Ruling: no — proceed with the bump to the minimum satisfying version (≥ 1.25.5, from a nixpkgs rev that carries the attr in both dev shells). It is a two-way door:
flake.nix+flake.lock+go.modgo/toolchain; a single revert commit restores 1.23.nix develop .#go-cipre-push gate plusgo build ./.../go test ./...across the module prove the fleet still compiles and tests green on the new toolchain; the VM-guest module dialect "stays in step" check is a build assertion, not a judgement.Ben's veto is asynchronous; it never needs to arrive before the work proceeds.
Why
ready-for-sessionand notready-for-agent: the ruling clears the authorization gate, but execution + proof need an interactive session's standing, not a headless swarm worker:flake.nix+flake.lock, with the VM-guest image dialect that must stay in step) — verification spans both dev shells and the guest build, wider than one swarm seam.internal/foundingorchestrator tests with a scripted any-sync answer + residue assertion — belongs to #1519, and is deliberately re-armed after 1–3 land).There is no one-way-door residue (no Ben's-hands, Ben's-eyes, or irreversible ruling), so this is not
ready-for-human.Agent brief (for the session)
Goal: unblock #1519 by making the fleet able to import matou-app MA1 (
github.com/matou-collective/matou-app/backend/communityspace) and callCreateCommunitySpaces.Do, in order:
flake.nixgo_1_23→ the lowestgo_1_2x(≥ 1.25.5) present in a pinned nixpkgs rev, in bothdevShells.defaultanddevShells.go-ci(keep the two identical, ADR 0040); updateflake.lock; setgo.modgo/toolchainto match. Keep the VM-guest module dialect in step (see flake.nix's own note).go get github.com/matou-collective/matou-app/backend/communityspace@v0.0.0-20260916204102-a6eb69e5fd0d(pseudo-version from the issue), pulling the any-sync/libp2p closure;go mod tidy.communityspace.SpaceCreator(CreateSpaceWithKeys/MakeSpaceShareable/GetSigningKey) as a network any-sync client over the coordinator address opened by any-sync-on-the-gateway (T9), so the founding tail can pass it intoCreateCommunitySpaces(ctx, creator, mnemonic, ownerAID)(DeriveSpaceKeySetalso available from MA1).Prove:
nix develop .#go-ci -c go build ./...and... go test ./...green on the new toolchain across the module; the guest-image build stays in step; the client dials a live coordinator. Note the resolved Go version and nixpkgs rev in the PR.Then: re-arm #1519 (drop its
agent-blocked) to wire the realSpaceCreatorinto theinternal/foundingtail against its scripted-answer + residue seam.Watch (blast radius to report in the PR): every fleet Go build, CI, Sandcastle's own gate, operator dev shells, the VM-guest image dialect, and
flake.lockreproducibility — a bump that green-builds the module can still shift these; call out anything it moves.Reversibility contract: if anything downstream breaks, one revert commit on
flake.nix/flake.lock/go.modrestores the 1.23 pin.Close report — #1555 (Ruled by agent under ADR 0174, veto anytime)
What landed (commit
63840519): the fleet Go toolchain crosses 1.23 → 1.25.5, the compiler only — so the founding tail can import matou-app MA1 (communityspace, idss #1519).flake.nix—go+golangci-lintin both dev shells (default,go-ci;e2einherits) now come from clan-core's own already-locked nixpkgs (go_1_25= 1.25.11,golangci-lint= 2.12.2). This is the same one-package-crosses pattern the guest netbird overlay already uses, and adds zero new flake inputs.go.modgo 1.25.5/toolchain go1.25.11;go.workgo 1.25.5..golangci.yml— migrated to schema v2 (a golangci-lint built with go 1.23 hard-refuses a go 1.25.5 module). See the ruling below on the check-set.Why this is NOT the ticket's assumed whole-nixpkgs bump. There is no
buildGoModuleanywhere — the shipped Go binaries are built by this toolchain and the gateway image fetches the pre-built agent by pin (agent-pin.json). So the image module dialect is orthogonal to the compiler: the guest + gateway images,pinned-qemu, and the netbird lockstep all stay on this flake's 24.11 pin (rev50ab793, byte-unchanged — verified the image outputs still evaluate). The guest-dialect blast radius the ticket flagged, and the drive it would need to prove, are avoided.Ruling 1 (the crossing). Two-way door: revertible config, offline-provable, on no one-way-door line — sourcing go/golangci-lint from an already-locked input is reproducible and reversible.
Ruling 2 (the linter check-set). golangci-lint 1.62 → 2.12 rode in by necessity. v2 folds gosimple/stylecheck/quickfix into the
staticchecklinter and turns on the QF (quickfix) + ST (stylecheck) families the prior toolchain never ran (15 fleet + 2 broker new findings — all style nits on 7-week-stable code). An infra bump must not silently tighten the Standards contract, sostaticcheck.checksis pinned to the pre-bump effective set — correctness (SA) + gosimple (S) + unused (U), minus-QF*/-ST*and the one newly-strict gosimple-S1016. Opting into QF/ST is a separate, deliberate Standards ticket (I did not refactor ~10 unrelated production files under a toolchain ticket).Scope — parts 2 & 3 are #1519's, by design. The ticket's steps 2 (add MA1 + the any-sync/libp2p closure) and 3 (build the network
SpaceCreatorclient) are the vertical slice, not the infra decision. #1519's own acceptance already says it "imports matou-app's space-creation package" and creates the spaces "over the public any-sync ports" — i.e. it pulls the closure atomically with the client it builds, and proves that client against a live any-sync coordinator (a drive), which cannot be proven offline in a two-way-door session. Committing the ~any-sync+libp2p closure here, held only by a stub, would inflate every fleet build for zero production use. So this ticket lands the enabling infra (the reason it was minted as its own ticket) and hands the slice to #1519, now unblocked.Proof the blocker is resolved (a probe, reverted — no closure committed): MA1 was temporarily
go get'd into the real fleet module — it imports and compiles,communityspace.DeriveSpaceKeySetruns offline (pure BIP39/SLIP derivation, a passing test), and the whole fleet still builds with the closure present (MVS bumpedx/crypto0.36→0.47,x/text,x/sys, otel — no dependency conflict). Then reverted.Offline gate (the exact commit state): full
nix develop .#go-cigate GREEN —gofmt+go build/vet/test+golangci-lint+ dev-tag build/vet on the fleet AND broker;.#go-ciserves go 1.25.11 + golangci-lint 2.12.2; guest/gateway image outputs still evaluate on the unchanged 24.11 pin.Closing as done. #1519 is unblocked — I'll note it there.
fmt.Fprintfbanner writes in set_release_channel.go fail errcheck (#1661 regression, 039b0c35) #1662