swarm: Go toolchain in the Sandcastle sandbox + pre-push lint gate — no more un-linted Go slices #198
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#198
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?
What happened (2026-07-30 evening)
The swarm drained #191–#195 impressively, but both post-burst seam reds trace to one cause: the Sandcastle sandbox has no Go toolchain, so Go-heavy slices ship verified by "careful review" only (#195's closing note says exactly this). Two lint defects reached main un-linted — #193's staticcheck SA4010 dead store and #195's revive shadowed-builtin — each costing a red seam cycle and a human-pushed fix (
8fb0b96,64afe3b).What to build
Close the gap so a Go-touching slice cannot ship un-linted. Two complementary options — implement (1); (2) is the belt-and-braces backstop:
go+golangci-lintthe seam runs (ideally by enteringnix develop, ADR 0040 — CI, Sandcastle and humans in the same shell is already the stated rule; the sandbox is the one place it doesn't hold). Workers can then rungo build/vet/test+golangci-linton what they touched before pushing.Mind the constraints that shaped the current sandbox (offline-safe
--frozen-lockfileinstalls, the electron-binary denial) — the Go toolchain must come from the pinned dev shell, not ad-hoc downloads.Acceptance criteria
nix developpins exactly (no version-drift findings like local golangci v1.64.8 vs the CI pin)Task manifest
Triage
Category: enhancement (already applied)
State: →
ready-for-agentRedundancy check: searched
.sandcastle/Dockerfileand the rest of.sandcastle/for an existing Go toolchain /golangci-lint/nix developinvocation in the worker sandbox — none found. The gap the issue describes is real and unaddressed.Prior rejection check: no
.out-of-scope/directory exists in this repo yet, so nothing to check against.Design gate: not applicable — this is sandbox/CI tooling, no UX flow or wireframe involved.
Human-decision gate: the issue's task manifest carries an empty
needs_human_decision— no judgement call blocks an agent from picking this up.The issue body already contains a complete task manifest (implements_seam, interface, seam, acceptance, out_of_scope) and Given/When/Then acceptance criteria, which satisfies this repo's agent-brief bar. Treating the issue body as the authoritative brief; no separate brief comment needed.
filesand member-orbitnextcloudstop naming the same software twice #222Done in
b37ac0a(on origin/main).Both fronts the issue names:
.sandcastle/Dockerfileinstalls single-user Nix; the gate enters a new leandevShells.go-ci(go_1_23 + golangci-lint, no clan-cli) inflake.nix, sonix develop .#go-ci -c <stages>resolves the exact flake.lock-pinned versions the seam runs (ADR 0040 — no ad-hoc download, no version drift; AC #3). The Nix install is non-fatal so a hiccup never halts the swarm..sandcastle/git-hooks/pre-push(wired viagit config core.hooksPathinmain.mtsonSandboxReady, active only underOURCLOUD_SANDBOX=1so a human/host push is never gated) runs the Go seam stages (go build/vet/test+golangci-lint, main module + broker + dev-tag build) over any change touching*.go/go.*/.golangci.yml. A red stage blocks the push (worker-visible), main stays green. A TS-only change skips the Go stages entirely (AC #2). A Go change with no toolchain present fails closed (AC #1 held even before the image warms).Evidence:
.sandcastle/gate-lib.shholds the pure logic, driven offline by.sandcastle/tests/gate-lib-test.sh— 15 checks (lang detection, a deliberate red-lint slice caught pre-push, a TS-only slice skipped, pre-push range parsing), all passing. Plus a manual end-to-end hook run over a throwaway repo confirmed host-skip / red-blocks / green-allows / docs-skip.Note for the first Go-touching swarm run: the Nix install +
.#go-cishell can only be proven on a real host image build (not available inside the worker sandbox). If it reports a warm/pin issue, checknix develop .#go-ci -c go versionmatches the seam pin; until then a Go push fails closed (blocked, not red-on-main) — the intended degrade.git worktree repairkilled run 1649's sibling worker #239git worktree repairkilled run 1649's sibling worker #239dashgetter in the three provision/re-apply drives #1251userthemerootdiris derived from the DEFAULTuploaddirbefore config.php is merged, and a theme it cannot see is sile… #1330defer res.Body.Close()in internal/controlapi/updates_i18n_seam_test.go:47 (from #2129/6caf5c25) #2153defer res.Body.Close()in internal/controlapi/updates_i18n_seam_test.go:47 (from #2129/6caf5c25) #2153