P0: config.example.toml, decisions DEC-2..8, card log, board and TODO
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1802f97d94
commit
2687ef5c33
6 files changed
+131
-39
No files matched your search
@@ -7,22 +7,22 @@ Design: [`plan.md`](plan.md) · Review fixes: [`plan/review.md`](plan/review.md)
|
||||
## Before starting
|
||||
|
||||
- [x] Resolve **DEC-1**: binary and CLI are `slinuxm`
|
||||
- [ ] Accept or override the proposed decisions DEC-2 to DEC-7
|
||||
- [x] Accept or override the proposed decisions DEC-2 to DEC-7 (all accepted)
|
||||
|
||||
## Phase 0 — Foundation · [card](plan/workstreams/P0-foundation.md)
|
||||
|
||||
- [ ] **P0-1** devenv: `pkg-config`, `systemd` (libsystemd.pc), `build`/`run`/`token` scripts. No openssl. `pkg-config --libs libsystemd` works in the shell.
|
||||
- [ ] **P0-2** `Cargo.toml` with `[[bin]] name = "slinuxm"` and every dependency pinned for all phases. rustls-only features. Release profile set to lto + strip.
|
||||
- [ ] **P0-3** Time-boxed API spike to confirm rmcp, zbus_systemd, systemd-journal and bollard APIs. Findings go in the card. Update DEC-8.
|
||||
- [ ] **P0-4** `config.rs`: figment layering (defaults < TOML < `SKYG_*` env with `__` nesting < CLI). Add `otel.headers`, `otel.metrics.*` allowlists and `limits.*`. Validate the auth-disabled + non-loopback combination.
|
||||
- [ ] **P0-5** `config.example.toml` covering every key, with comments
|
||||
- [ ] **P0-6** Shared DTOs in `src/sources/mod.rs` with serde + schemars derives and RFC3339 timestamps. Service-only fields are `Option`.
|
||||
- [ ] **P0-7** Source traits plus in-memory fakes (`src/sources/fake.rs`)
|
||||
- [ ] **P0-8** `error.rs`: `AppError` mapped to HTTP status + JSON body and to MCP `ErrorData`
|
||||
- [ ] **P0-9** `src/state.rs`: `AppState` (sources, optional DB pool, config, `CancellationToken`)
|
||||
- [ ] **P0-10** Stub every module with its final signatures. `main.rs` dispatches `serve` / `token` / `--print-config` to them.
|
||||
- [ ] **P0-11** Unit tests for config precedence and validation
|
||||
- [ ] **Gate:** `slinuxm serve --print-config` prints effective config. Build, clippy, fmt and test are clean. `cargo tree -i openssl` is empty.
|
||||
- [x] **P0-1** devenv: `pkg-config`, `systemd` (libsystemd.pc), `build`/`run`/`token` scripts. No openssl. `pkg-config --libs libsystemd` works in the shell.
|
||||
- [x] **P0-2** `Cargo.toml` with `[[bin]] name = "slinuxm"` and every dependency pinned for all phases. rustls-only features. Release profile set to lto + strip.
|
||||
- [x] **P0-3** Time-boxed API spike to confirm rmcp, zbus_systemd, systemd-journal and bollard APIs. Findings go in the card. Update DEC-8.
|
||||
- [x] **P0-4** `config.rs`: figment layering (defaults < TOML < `SKYG_*` env with `__` nesting < CLI). Add `otel.headers`, `otel.metrics.*` allowlists and `limits.*`. Validate the auth-disabled + non-loopback combination.
|
||||
- [x] **P0-5** `config.example.toml` covering every key, with comments
|
||||
- [x] **P0-6** Shared DTOs in `src/sources/mod.rs` with serde + schemars derives and RFC3339 timestamps. Service-only fields are `Option`.
|
||||
- [x] **P0-7** Source traits plus in-memory fakes (`src/sources/fake.rs`)
|
||||
- [x] **P0-8** `error.rs`: `AppError` mapped to HTTP status + JSON body and to MCP `ErrorData`
|
||||
- [x] **P0-9** `src/state.rs`: `AppState` (sources, optional DB pool, config, `CancellationToken`)
|
||||
- [x] **P0-10** Stub every module with its final signatures. `main.rs` dispatches `serve` / `token` / `--print-config` to them.
|
||||
- [x] **P0-11** Unit tests for config precedence and validation
|
||||
- [x] **Gate:** `slinuxm serve --print-config` prints effective config. Build, clippy, fmt and test are clean. `cargo tree -i openssl` is empty.
|
||||
|
||||
## Phase 1 — Sources + auth (parallel)
|
||||
|
||||
|
||||
Reference in new issue
Block a user