M3 slice 1: Bare server #16

Closed
opened 2026-11-14 20:55:39 +01:00 by SirStone · 1 comment
Owner

What

A runnable server with nothing game-specific yet: mummy entrypoint, config (public origin, paths, port, bind 127.0.0.1 only), SQLite opened with a migration runner, GET /healthz, logging with secret redaction. Node harness base ported to tools/ (lib, withserver; re-check Node 26 header behaviour for global WebSocket {headers}, fix the stale "Node 22" note). Root devbox.json pins Node 26; devbox run test runs Nim tests first, then Node harnesses. See DESIGN 2, 4.4, 6.6, 10.4, 11.1, 11.3.

Acceptance

  • Server starts under withserver, /healthz returns 200, binds 127.0.0.1 only.
  • Fresh DB gets created and migrated by the runner; re-open is a no-op.
  • A smoke test run via the Node harness passes; it records the Node 26 header check result.
  • A secret passed to the logger never appears in log output (unit test).
  • devbox run test green: Nim first, then Node.
  • No M3 accept group is turned green yet (groundwork for logs, group 9, finished in slice 10).

Decide while building

Config key names, exact DDL for the migration table, redaction mechanism. Record as FIXED (owner-delegated) in DESIGN.

Refs

Map #2. Decisions: #9 Test tools decision, #8 Test tools check, #10 Library check: mummy and db_connector, #12 What M3 done means. DESIGN 2, 4.4, 6.6, 10.4, 11.1, 11.3, 13 (M3).

## What A runnable server with nothing game-specific yet: mummy entrypoint, config (public origin, paths, port, bind 127.0.0.1 only), SQLite opened with a migration runner, `GET /healthz`, logging with secret redaction. Node harness base ported to `tools/` (`lib`, `withserver`; re-check Node 26 header behaviour for global `WebSocket` `{headers}`, fix the stale "Node 22" note). Root `devbox.json` pins Node 26; `devbox run test` runs Nim tests first, then Node harnesses. See DESIGN 2, 4.4, 6.6, 10.4, 11.1, 11.3. ## Acceptance - Server starts under `withserver`, `/healthz` returns 200, binds 127.0.0.1 only. - Fresh DB gets created and migrated by the runner; re-open is a no-op. - A smoke test run via the Node harness passes; it records the Node 26 header check result. - A secret passed to the logger never appears in log output (unit test). - `devbox run test` green: Nim first, then Node. - No M3 accept group is turned green yet (groundwork for logs, group 9, finished in slice 10). ## Decide while building Config key names, exact DDL for the migration table, redaction mechanism. Record as FIXED (owner-delegated) in DESIGN. ## Refs Map #2. Decisions: #9 Test tools decision, #8 Test tools check, #10 Library check: mummy and db_connector, #12 What M3 done means. DESIGN 2, 4.4, 6.6, 10.4, 11.1, 11.3, 13 (M3).
SirStone added the ready-for-agent label 2026-11-14 20:55:39 +01:00
SirStone added a new dependency 2026-11-14 20:56:11 +01:00
SirStone added a new dependency 2026-11-14 20:56:17 +01:00
Author
Owner

Slice complete and merged to main.

Commits:

  • f376efd server: config, migrations, redacted logging, /healthz entrypoint (#16)
  • 65b8f0a tools: Node 26 harness base, smoke and ws-header checks (#16)
  • a3c1ac3 devbox: nodejs 26, sqlite, test runs Nim then Node (#16)
  • 86e7ad3 design: record slice 1 decisions (#16)
  • c89c8ea results: slice 1 test and mutation logs (#16)

Gate: devbox run test + devbox run mutation green on the final tree.

Slice complete and merged to `main`. Commits: - `f376efd` server: config, migrations, redacted logging, /healthz entrypoint (#16) - `65b8f0a` tools: Node 26 harness base, smoke and ws-header checks (#16) - `a3c1ac3` devbox: nodejs 26, sqlite, test runs Nim then Node (#16) - `86e7ad3` design: record slice 1 decisions (#16) - `c89c8ea` results: slice 1 test and mutation logs (#16) Gate: `devbox run test` + `devbox run mutation` green on the final tree.
Sign in to join this conversation.