Phase 8 P1b-a — freeze offline-locked auth spec (Thinking)
Freeze the offline-locked auth design for Knowtation so P1b-b can build mechanically against a fixed spec (RULE #8 + SD-3 Thinking→Auto split). Design only — no implementation files beyond this spec.
Closes precondition P1b (OPEN per Phase 8-a §1) at the design layer.
Deliverables (per handover prompt): - docs/PHASE-8-P1B-OFFLINE-LOCKED-AUTH-SPEC.md (681 lines, 12 sections) - §1 gap recap + owner - §2 env gate KNOWTATION_OFFLINE_LOCKED_AUTH=enabled (default off; fail-closed on misconfig) - §3 local credential store: DATA_DIR/hub_local_credentials.json, Argon2id OWASP 2024 params (t>=3, m>=64MiB, p=4), timing-safe verify, 0600 perms - §4 first-admin bootstrap: setup-token (Mechanism A) + CLI interactive (Mechanism B) - §5 JWT sub=local:<userId>, provider=local, role-store parity with hub_roles.json; self-hosted empty-roleMap default-admin DISABLED for offline-locked - §6 gateway+bridge route parity; OAuth strategies never registered when gate on; every OAuth route returns 403 before any network egress - §7 rate limiting (5/15min per username + 20/min global), lockout, 8 audit events, no-secret log rule (passphrase/hash/token/jwt never in logs) - §8 CLI/MCP token issuance (auth token command); MCP OAuth 2.1 limitation documented - §9 seven-tier test matrix with file names - §10 Scooling impact note: src/phase8/offlineConnectedMatrices.ts sign_in_auth cell flips open_precondition→available in P1b-verify (5c), not here - §11 env gate + compile-time OFFLINE_LOCKED_AUTH_CODE_SHIPPED flag (double-lock)
Non-goals: no production code, no env flip, no Scooling posture flip, no SD-8, no bundling with Phase 2F-b or Track C. Hosted path unaffected.
Branch: feat/phase-8-p1b-offline-locked-auth-spec off Muse main @ sha256:8f2c3eae... Tier 1 commit (Knowtation AGENTS.md pre-authorizes feature-branch commits). No PR to main (SD-11 — docs-only). Merge waits for P1b-b code bundle or operator request.
Stop here and ask operator for Tier 3 merge approval per handover prompt.
Semantic Changes
60 symbols
0 comments
muse hub commit comment sha256:9aece8b053e178f55c512cea977bede27dd67132ce3427e74497ff5cc40f44c8 --body "your comment"
No comments yet. Be the first to start the discussion.