mini-console: design + Slice 0 runnable skeleton - #5
Merged
Conversation
Graduate mini-console from roadmap placeholder to a runnable, admin-only
skeleton, and add the design docs that scope the work.
Design docs (docs/design/):
- mini-console.md — full design: operator console + exercise harness, five
new HTTP client libs + reuse of the existing mini-kms client, the security
model, and a slice-by-slice roadmap.
- mini-console-slice0.md — the Slice 0 implementation plan.
DIRECTION.md records mini-kms's client as the deliberate socket-era
exception (relocation considered and declined).
Slice 0 (services/mini-console/):
- Loopback HTTP server (virtual-thread-per-request), paste-the-console-token
login minting a mini-token SessionService session under a distinct
mini-console-session cookie, and an honest Dashboard ("n/a — client not
wired yet" for each service; calls nothing downstream).
- Reuses the family http/ router kit + JsonStore + AdminAuthenticator +
Cookies; no-oracle login, double-submit CSRF, loopback bind, no secrets in
logs, session store written 0600.
- Fires the trip-wire: deletes MiniConsole.IMPLEMENTED (guard-only) and
MiniConsoleTest, replaced by real ConsoleServer/ConsoleConfig tests.
- build.gradle.kts -> application-conventions (deps: mini-token + jackson
only). settings.gradle.kts stale "roadmap placeholder" comment fixed.
mini-client-common is intentionally deferred to Slice 1 (driven by its first
real consumer); /api + OpenAPI are Slice 8. No new authority.
./gradlew build green family-wide.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this is
Graduates mini-console from roadmap placeholder to a runnable, admin-only skeleton, plus the design docs that scope the whole effort.
./gradlew buildis green family-wide.Design docs (
docs/design/)mini-console.md— full design: the two faces (operator console + end-to-end exercise harness), five new HTTP client libs + reuse of the existing mini-kms client, the security model ("no new authority"; the one new downstream-token concentration), and a slice-by-slice roadmap.mini-console-slice0.md— the Slice 0 implementation plan (source-cited).DIRECTION.md— records mini-kms's client as the deliberate socket-era exception: relocating it intolibs/mini-kms-clientwas designed and independently reviewed (mechanically clean) but declined — cosmetic parity for real churn in three shipping services.Slice 0 (
services/mini-console/)SessionServicesession under a distinctmini-console-sessioncookie (never the shared SSO cookie).n/a — client not wired yet (Slice N)for each service; calls nothing downstream and fabricates no health data.http/router kit +JsonStore+AdminAuthenticator+Cookiesverbatim.0600.The trip-wire fires by design
Deletes
MiniConsole.IMPLEMENTED(referenced only by the guard test) andMiniConsoleTest, replacing them with realConsoleServer/ConsoleConfigtests — the module can no longer claim "placeholder."Honest seams / deliberately NOT here
libs/mini-client-commonis deferred to Slice 1, so its API is driven by its first real consumer (the directory client) rather than landing as an unconsumed abstraction./apiJSON surface + OpenAPI/SwaggerUI are Slice 8.Verification
./gradlew build— BUILD SUCCESSFUL, family-wide; 14 console tests pass, no pre-existing regressions../gradlew :services:mini-console:installDistproducesbin/mini-console./healthpublic;/→ 302 →/loginunauthenticated; CSRF+token login → 302 →/; authenticated Dashboard rendersconsole-admin+ "client not wired yet"; token absent from logs;console-sessions.jsonwritten0600.🤖 Generated with Claude Code