[docs] Bootstrap: CLAUDE.md and roadmap #1

Manually merged
mnovak merged 0 commits from docs/bootstrap into main 2026-11-07 12:21:00 +01:00
Owner

Adds CLAUDE.md and docs/ROADMAP.md verbatim from the brief. No code, no other files. main has one empty root commit so the PR has a base branch (the repo was empty).

Adversarial self-review — unclear or contradictory points

  1. Pre-commit hook claimed but absent. CLAUDE.md says "A pre-commit hook enforces it", but the hook and .gitignore only arrive in Phase 1 (step "First"). Until then nothing enforces the rule.
  2. Layout and commands describe a future tree. crates/*, apps/web, ianitor-control, .#ianitor don't exist yet; commands will fail until Phase 1 scaffolds them. Package names (ianitor-control, web) are implied, not stated, for the other crates.
  3. Share links: "stateless" vs "deny list". Section 3 says tokens are validated statelessly by edge, then allows revocation via a deny list — that is state, and it is unclear who owns it (control writes it? edge reloads it?) and how it reaches edge if control is down.
  4. "Edge never decides policy" vs edge enforcement. Edge validates share tokens and forward-auth. Presumably "enforces compiled policy, doesn't author it" — worth one clarifying word.
  5. "Pure: no I/O" core holding the CA. rcgen key generation needs an RNG and keys must be persisted; fine if randomness/storage are injected by control, but that should be explicit.
  6. Apply's 60 s health watch with no health check. The health check is a host field; if a host has none, it's undefined whether apply auto-keeps, fails, or uses a default.
  7. Test-first list mismatch. CLAUDE.md limits tests-first to six risk areas; the phases also demand tests-first for compiler determinism, concurrency, token logging, mTLS — broader than the rule. Phases should win; the rule could say "at least".
  8. When does the two-week clock start? Phase 3 goal already runs Ianitor beside Caddy on two hosts; Phase 4 "Done" says the two-week run starts then. Decision 12 and the v1 gate don't say which.
  9. "All five test layers green" includes load/soak. Layer 5 publishes results "including where Caddy wins" — there's no pass/fail threshold defined, so "green" is undefined for it.
  10. "Web UI only" (decision 5) vs a token-authenticated REST API. Presumably means "no CLI/desktop client", but API tokens and curl examples suggest scripted use is first-class.
  11. Minor: share-link default expiry (7 d) appears only in the UI table, not in the architecture; "every action ≤ 3 clicks" counts "fill" as zero clicks in Add host.

No typos found that needed fixing.

Adds `CLAUDE.md` and `docs/ROADMAP.md` verbatim from the brief. No code, no other files. `main` has one empty root commit so the PR has a base branch (the repo was empty). ## Adversarial self-review — unclear or contradictory points 1. **Pre-commit hook claimed but absent.** CLAUDE.md says "A pre-commit hook enforces it", but the hook and `.gitignore` only arrive in Phase 1 (step "First"). Until then nothing enforces the rule. 2. **Layout and commands describe a future tree.** `crates/*`, `apps/web`, `ianitor-control`, `.#ianitor` don't exist yet; commands will fail until Phase 1 scaffolds them. Package names (`ianitor-control`, `web`) are implied, not stated, for the other crates. 3. **Share links: "stateless" vs "deny list".** Section 3 says tokens are validated statelessly by edge, then allows revocation via a deny list — that is state, and it is unclear who owns it (control writes it? edge reloads it?) and how it reaches edge if control is down. 4. **"Edge never decides policy" vs edge enforcement.** Edge validates share tokens and forward-auth. Presumably "enforces compiled policy, doesn't author it" — worth one clarifying word. 5. **"Pure: no I/O" core holding the CA.** rcgen key generation needs an RNG and keys must be persisted; fine if randomness/storage are injected by control, but that should be explicit. 6. **Apply's 60 s health watch with no health check.** The health check is a host field; if a host has none, it's undefined whether apply auto-keeps, fails, or uses a default. 7. **Test-first list mismatch.** CLAUDE.md limits tests-first to six risk areas; the phases also demand tests-first for compiler determinism, concurrency, token logging, mTLS — broader than the rule. Phases should win; the rule could say "at least". 8. **When does the two-week clock start?** Phase 3 goal already runs Ianitor beside Caddy on two hosts; Phase 4 "Done" says the two-week run *starts* then. Decision 12 and the v1 gate don't say which. 9. **"All five test layers green" includes load/soak.** Layer 5 publishes results "including where Caddy wins" — there's no pass/fail threshold defined, so "green" is undefined for it. 10. **"Web UI only" (decision 5) vs a token-authenticated REST API.** Presumably means "no CLI/desktop client", but API tokens and curl examples suggest scripted use is first-class. 11. **Minor:** share-link default expiry (7 d) appears only in the UI table, not in the architecture; "every action ≤ 3 clicks" counts "fill" as zero clicks in Add host. No typos found that needed fixing.
mnovak added 1 commit 2026-11-07 12:16:19 +01:00
mnovak manually merged commit 7e557f47ae into main 2026-11-07 12:21:00 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mnovak/ianitor#1