bootstrap: skeleton — the monorepo skeleton, Nix dev shells, and CI #23
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.
Blocks
#165 engine-adapters: store-runtime-ledgers — the runtime ledgers become state-directory documents
Matou/idss
#171 engine-adapters: idp-adapter — real kanidm behind the member orchestrator's idp port
Matou/idss
#173 engine-adapters: notifier-smtp — alert email from notify@mail.matou.nz; the family closes
Matou/idss
#806 observability: logstream-hub — the Go log-stream hub behind its follow-function seam
Matou/idss
Reference
Matou/idss#23
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?
Parent
Wayfinder map: #7 — the engineering foundation (PROCESS.md Phase 2½, emitted as DAG root slices).
What to build
The monorepo skeleton every other slice builds inside, per ADR 0040 as amended by ADR 0047. Five codebases scaffold:
app/(the Quasar Electron operator app, plus the bundled per-platform Go helper as a build target — the clan seam's founding decision has the app embed the seam, so the helper binary is first-class from day one),dashboard/(the Quasar SPA web dashboard),control-plane/(Go),agent/(Go), andbroker/(the fifth codebase, Go — the Matou-run rental broker that lives in the repo but deploys to Matou infrastructure and never runs inside a community fleet, ADR 0047). Alongside them the shared UI-kit package (which implements the wireframes'data-field/data-action/data-statuscontract) and the OpenAPI-spec package are first-class workspace members.A root Nix flake provides dev shells only — pinning Go, Node/pnpm, and the clan CLI so operators, developers, and Sandcastle agents all get identical toolchains. Nix is the pin, not the build system: inside the shell, ordinary tooling runs everything — pnpm workspaces for TypeScript,
go.workfor Go, vitest andgo testfor tests. CI is Forgejo Actions on git.matou.nz. Every task manifest's seam command must run insidenix develop, so this slice is what makes that entry point real.Notes: this slice roots the whole DAG — every feature slice depends on it directly or transitively. Cross-OS Electron packaging (per-OS runners) is a known deferred cost due when founding ships installers (ADR 0040), not part of this slice. CODING-STANDARDS.md already exists as the Standards review contract; this slice makes the repo it describes.
Acceptance criteria
nix developis entered, then a single dev shell provides pinned Go, Node/pnpm, and the clan CLI, and the same shell is what CI and Sandcastle enter.app/,dashboard/,control-plane/,agent/, andbroker/all exist as buildable workspace members, with the shared UI-kit and OpenAPI-spec as first-class packages.go.workresolves both Go modules andgo testruns.nix developand runs the per-language test commands.data-field/data-action/data-statusfields the wireframes declare.Blocked by
None — can start immediately.
Task manifest
clanpackage + fake adapter behind DDR 0010 #25clanpackage + fake adapter behind DDR 0010enrollpackage + in-memory fake #26enrollpackage + in-memory fakebrandkitpackage + golden corpus #27brandkitpackage + golden corpusDone — the monorepo skeleton is built and committed (
0fe6cde). It roots the DAG per ADR 0040 as amended by ADR 0047.What shipped
app/(+ the bundled per-platform Go helper build target atapp/helper/),dashboard/,control-plane/,agent/,broker/— plus the shared ui-kit and openapi-spec packages as first-class workspace members.go.work: the root module.(control-plane + agent +app/helper+ the sharedinternal/protocolwire types — one module, per ADR 0040 "agent/control-plane share a Go module natively") andbroker/(its own module — Matou-side, never in a fleet, ADR 0047).pnpm-workspace.yaml) + vitest for TS;go.work+go testfor Go.flake.nix) — dev shells only, pinning Go 1.23, Node 22/pnpm, golangci-lint and the clan CLI (from clan-core). The one shell CI, Sandcastle and humans all enter..forgejo/workflows/ci.yml) entersnix develop --command scripts/seam-smoke.sh— the seam that makes every task manifest'snix develop -c <seam>real.dataAttrs()mapsdata-field/data-action/data-status. TheOc*Vue primitives + full Quasar shells are the shell slice's job.eslint.config.mjs,.prettierrc.json,.golangci.yml, stricttsconfig.base.json.Acceptance criteria — all satisfied. The Go+TS seams were run locally GREEN:
go build/vet/test(both modules);pnpm -r build(tsc) +pnpm -r test(vitest, 7 tests) +pnpm lint(eslint).nix developitself, the clan CLI, and golangci-lint aren't installed in the build sandbox — they're provided by the dev shell, so they execute in CI. Firstnix developgeneratesflake.lock(no nix binary here to pre-generate it).Non-breaking: the Sandcastle harness's
npm cipath is intact —package.json/package-lock.jsonchanged only additively (root lint devDeps +lintscript);npm ci --dry-runclean.Evidence: the commit
0fe6cdeonmain; the seam isscripts/seam-smoke.sh. STATUS.md,docs/slices/bootstrap.yaml(status: done) andmap.htmlupdated in the same commit. With this merged, theclan-seam/enroll-seam/brandkit-seamandshellroot slices unblock.