Predict touches for release 0.6.0 items
CI / full-gate (push) Successful in 3s

This commit is contained in:
2026-11-17 01:27:29 +01:00
parent 852137982d
commit 323e2038b6
+83
View File
@@ -34,6 +34,12 @@ surface, so this adds to the plugin API: it ships in a minor, and `HOST_API_VERS
`0.6.0` when 0.6.0 is tagged (AGENTS.md → Rules). Adding is safe for installed plugins; removing it
later would take a major.
Touches:
- `src/plugin-host/plugin-api.ts`: the `export { KratosError }` and `export { HydraError }` lines (small)
- `src/plugin-host/plugin.ts`: `HOST_API_VERSION` (small)
- `src/plugin-host/plugin-api.test.ts`: the barrel's export test (small)
### 72. Delete a group's grants and parent memberships when its last member leaves, by group delete or by removing the member, so re-creating the name restores none.
In `examples/plugins/auth-admin/admin-groups.ts` a group exists exactly while it has a
@@ -56,6 +62,11 @@ admin example removes a deleted group from the groups it was nested in", which t
left with no members no longer exists as a group. `lostToSelf`, in this file, is a place the seats
found hard; if the change touches it, make it easier to read.
Touches:
- `examples/plugins/auth-admin/admin-groups.ts`: `groupsDelete`, `groupsRemoveMember`, `lostToSelf` (small)
- `examples/plugins/auth-admin/admin-groups.test.ts`
### 14. Drop a double-clicked duplicate submit, with no client-side JavaScript.
A second identical POST is expected from a non-technical user, and today creates two
@@ -66,6 +77,14 @@ dropping it. Open: what identifies "the same submission" (a one-time token minte
beats hashing the payload), the window, where the record lives given the host is stateless, and how
a plugin declares a route repeatable.
Touches:
- `src/http/app.ts`: `answerPluginRoute`, `answerBuiltinRoute`, `prepareRequest`, `requestCsrf`
- `src/plugin-host/plugin.ts`: `Route` (small)
- `src/auth/csrf.ts`
- `public/css/styles.css`: lines 323-340 (small)
- `README.md`: `### Routes & handlers`
### 67. Group `src/auth`'s modules into one subfolder per concern, with `bootstrap.ts` staying at `src/auth/bootstrap.ts`.
`src/auth` holds 19 modules over several concerns: the per-request session path (`jwt*`, `jwks`,
@@ -77,6 +96,70 @@ name, and update the folder list in `docs/decisions.md` → "`src/` is grouped b
barrel, so only `src/plugin-host/plugin-api.ts`'s paths change for them. Update the README file
map. Make `src/auth` easier to navigate, a place the seats found hard.
Touches:
- `src/auth/csrf.ts`
- `src/auth/csrf.test.ts`
- `src/auth/denylist.ts`
- `src/auth/denylist.test.ts`
- `src/auth/fetch-timeout.ts`
- `src/auth/fetch-timeout.test.ts`
- `src/auth/flow-view.ts`
- `src/auth/flow-view.test.ts`
- `src/auth/gate.ts`
- `src/auth/gate.test.ts`
- `src/auth/gen-jwks.ts`
- `src/auth/gen-jwks.test.ts`
- `src/auth/guards.ts`
- `src/auth/guards.test.ts`
- `src/auth/hydra-admin.ts`
- `src/auth/hydra-admin.test.ts`
- `src/auth/jwks.ts`
- `src/auth/jwks.test.ts`
- `src/auth/jwt-middleware.ts`
- `src/auth/jwt-middleware.test.ts`
- `src/auth/jwt.ts`
- `src/auth/jwt.test.ts`
- `src/auth/keto-client.ts`
- `src/auth/keto-client.test.ts`
- `src/auth/kratos-admin.ts`
- `src/auth/kratos-admin.test.ts`
- `src/auth/kratos-public.ts`
- `src/auth/kratos-public.test.ts`
- `src/auth/link-header.ts`
- `src/auth/link-header.test.ts`
- `src/auth/login.ts`
- `src/auth/login.test.ts`
- `src/auth/oauth-consent.ts`
- `src/auth/oauth-consent.test.ts`
- `src/auth/oauth-login.ts`
- `src/auth/oauth-login.test.ts`
- `src/auth/routes.ts`
- `src/auth/routes.test.ts`
- `src/auth/bootstrap.ts`: import lines (small)
- `src/auth/bootstrap.test.ts`: import lines (small)
- `src/plugin-host/plugin-api.ts`: the `../auth/` export lines (small)
- `src/plugin-host/plugin.ts`: the `Gate` import (small)
- `src/plugin-host/plugin.test.ts`: the `AUTH_FLOWS` import (small)
- `src/plugin-host/discovery.ts`: the `gate.ts` import (small)
- `src/plugin-host/system.ts`: the three client-type imports (small)
- `src/http/app.ts`: the `../auth/` import lines (small)
- `src/http/app.test.ts`: import lines (small)
- `src/http/app-admin.test.ts`: import lines (small)
- `src/http/app-auth.test.ts`: import lines (small)
- `src/http/app-i18n.test.ts`: import lines (small)
- `src/http/app-plugins.test.ts`: import lines (small)
- `src/http/builtin-route.ts`: the `Gate` import (small)
- `src/ui/chrome.ts`: the `gate.ts` import (small)
- `src/ui/nav.ts`: the `gate.ts` import (small)
- `src/test-tooling/app-harness.ts`: import lines (small)
- `src/server.ts`: the `./auth/` import lines (small)
- `src/function-limits.test.ts`: the `src/auth/` keys (small)
- `src/postgres.test.ts`: the `src/auth/bootstrap.ts` path (small, only if bootstrap's path changes)
- `README.md`: `## Project layout`, `## Users, groups & permissions` (small), `## Building blocks` (small), `### Instant revoke: the optional denylist` (small), `### OAuth2 provider (Hydra)` (small), `## JWT signing key & rotation` (small), `### Scheduled rotation` (small), `### Emergency rotation (key compromise)` (small)
- `package.json`: the `gen-jwks` script (small)
- `compose.yml`: the `src/auth/bootstrap.ts` comment and command (small)
### 19. Run the documented Docker commands on macOS and fix whatever misbehaves.
Needs a Mac. Two suspects, both from `--user "$(id -u):$(id -g)"`: a macOS `id -g` is `20`, which is