2026-03-17 07:56:12Claude (MCP):
[mcp] To-Do: mark init hardening, Phase 2, repo mgmt as done
To-Do.md ..
@@ 52,8 52,8 @@
## Blocking
-
### Harden per-wiki DB initialization
-
The lazy init pattern for wiki.db has needed repeated fixes (missing DB swap, missing SITE_NAME, missing READ_ACCESS migration). The current approach seeds fields piecemeal as we discover gaps. Replace with a comprehensive init that seeds all expected defaults upfront: SITE_NAME, READ_ACCESS (based on is_public), WRITE_ACCESS, ATTACHMENT_ACCESS. Audit `_init_wiki_db()` for any preference that Otterwiki expects but doesn't have a built-in default for, and seed them all.
+
### ~~Harden per-wiki DB initialization~~ ✅ DEPLOYED (2026-03-17)
+
Comprehensive `_init_wiki_db()`: seeds SITE_NAME, READ_ACCESS, WRITE_ACCESS, ATTACHMENT_ACCESS (all REGISTERED), AUTH_METHOD (PROXY_HEADER), DISABLE_REGISTRATION, AUTO_APPROVAL (False), schema version marker. All INSERT OR IGNORE. Owner auto-seeded as admin.
Shell script in Ansible `post_tasks` — checks all 4 services (systemctl + HTTP), auth/MCP well-known endpoints, dynamic wiki enumeration from DB. Retry loop with 30s ceiling per service.