docs(phase-32.2): complete phase
This commit is contained in:
@@ -71,6 +71,10 @@ Validated in Phase 19.6.1: Backend Administrators screen
|
||||
|
||||
- [x] Backend admin users and roles are managed in the admin SPA (Settings → System), WinterCMS-style, with `backend.manage_users` / `backend.manage_roles`, server-side privilege rules (superuser-only flag, ceilings, self-edit, outranking, last-superuser lock) and a generic record-action seam; `scripts/check-phase19.6.1.sh` is the fail-closed gate (UAT 26/26 and security 33/33 closed, 2026-10-22)
|
||||
|
||||
Validated in Phase 32.2: MCP OAuth with administrator subjects
|
||||
|
||||
- [x] An administrator signs in to an MCP connector over OAuth through the admin SPA consent screen at `/connect`; sm-oauthserver-plugin's off-by-default backend-subject mode (`mcp.subject: backend`) issues grants capped like `g15_` tokens, listed and revocable on My account and an admin-wide screen, and revoked in the save's transaction when backend access changes; user mode unchanged. Live on grzybyfunkcjonalne.pl (UAT 3/3 and security 32/33 closed with 0 blocking, 2026-11-21)
|
||||
|
||||
### Active
|
||||
|
||||
Framework kernel
|
||||
@@ -193,6 +197,7 @@ Validated in Phase 18.1: Payment Gateway Subscriptions
|
||||
| PHP OIDC parity is recorded at the WavePath cutover, not in Phase 19.4 (D-14 amended) | The harness ships and replays Go-side; recording needs the live PHP site, and WavePath's provider must not move until the replay is green | — Pending (todo `2026-10-19-record-php-oidc-parity-against-wavepath`) |
|
||||
| Administrators and Roles live in cabana as an internal pseudo-plugin; privilege rules run in the save transaction; contributed Administrators Runs are wrapped with `guardOutranked` | WinterCMS screens were missing and 19.7 needs the record-action seam; a delegated editor must not outrank the target or capture a code-declared role | ✓ Good (Phase 19.6.1 UAT 26/26, 2026-10-22) |
|
||||
| MCP OAuth advertises one scope list, puts the MCP subject on the request, and stores one consent row per user and client (Phase 32.1) | Declared member-token scopes join the wristband and pier lists; an empty wristband list stays the five fixed names. `Implies` expands only for OAuth MCP subjects. A decision replaces the stored scopes, revoke deletes that client's MCP codes, and the one-time backfill rolls back as a no-op | ✓ Good (framework v0.5.2, sm-oauthserver-plugin v0.1.4, sm-user-plugin v0.1.16; vue-oauth-layer v0.1.0 is local only, 2026-10-28) |
|
||||
| MCP OAuth for administrators is a backend-subject mode of sm-oauthserver-plugin with consent in the admin SPA (Phase 32.2, `notes/2026-11-20-mcp-oauth-backend-subject.md`) | Blog-only apps have no frontend users; administrator grants leave `user_id` NULL, pier caps them like personal tokens, and `BackendAccessRevokedEvent` revokes them in the saving transaction; the release decision is asked directly, not as a UAT row | ✓ Good (framework v0.6.7, sm-oauthserver-plugin v0.1.8, grzybyfunkcjonalne.pl live, 2026-11-21) |
|
||||
|
||||
## Evolution
|
||||
|
||||
@@ -212,4 +217,4 @@ This document evolves at phase transitions and milestone boundaries.
|
||||
4. Update Context with current state
|
||||
|
||||
---
|
||||
*Last updated: 2026-10-28 after Phase 32.1 completion*
|
||||
*Last updated: 2026-11-21 after Phase 32.2 completion*
|
||||
|
||||
@@ -1712,7 +1712,7 @@ Plans:
|
||||
**Requirements**: TBD
|
||||
**Depends on:** Phase 32.1 (MCP OAuth for plugin apps), Phase 19.7 (generic MCP module)
|
||||
**Repos:** `summercms.go`, `sm-oauthserver-plugin`, `sm-grzybyfunkcjonalne-app`
|
||||
**Plans:** 5/5 plans executed
|
||||
**Plans:** 5/5 plans complete
|
||||
|
||||
**Success Criteria** (what must be TRUE):
|
||||
1. With the backend-subject mode on, `/oauth/mcp/authorize` recognises a signed-in administrator from the cabana cookie session, sends an anonymous browser through the admin login and back, and shows a server-rendered, branded consent page; the issued grant carries the administrator (`BackendUserID`) and no frontend user. With the mode off (the default), every existing flow and test of `sm-oauthserver-plugin` and sm-bm-app passes unchanged.
|
||||
|
||||
@@ -1,19 +1,20 @@
|
||||
---
|
||||
msd_state_version: "1.0"
|
||||
milestone: v1.0
|
||||
current_phase: 30
|
||||
current_phase_name: Płytarium cutover
|
||||
current_phase: "19.3"
|
||||
current_phase_name: Framework transport and infrastructure for WavePath
|
||||
status: planning
|
||||
stopped_at: Phase 32.2 context gathered
|
||||
last_updated: "2026-11-20T19:39:15.961Z"
|
||||
last_activity: 2026-11-19
|
||||
last_activity_desc: "Completed quick task 261119-kj8: sm-user-plugin JWT blacklist sweep as scheduled command"
|
||||
state_head: b70071060c600f37c2d24cb230c21601031e53d1
|
||||
stopped_at: Phase 32.2 complete, ready to plan Phase 19.3
|
||||
last_updated: "2026-11-21T18:14:38.148Z"
|
||||
last_activity: 2026-11-21
|
||||
last_activity_desc: Phase 32.2 complete, transitioned to Phase 19.3
|
||||
state_head: 66a3ee8eeb7e12904731a17e8238ebfa6e3cfe0b
|
||||
progress:
|
||||
total_phases: 53
|
||||
completed_phases: 37
|
||||
total_plans: 304
|
||||
completed_plans: 293
|
||||
total_plans: 309
|
||||
completed_plans: 298
|
||||
percent: 77
|
||||
gsd_state_version: "1.0"
|
||||
milestone_name: milestone
|
||||
---
|
||||
@@ -22,17 +23,17 @@ milestone_name: milestone
|
||||
|
||||
## Project Reference
|
||||
|
||||
See: .planning/PROJECT.md (updated 2026-10-22)
|
||||
See: .planning/PROJECT.md (updated 2026-11-21)
|
||||
|
||||
**Core value:** An existing WinterCMS-shaped app can be ported plugin by plugin to a single Go binary without its frontend noticing: the PHP version's API contract is the acceptance test.
|
||||
**Current focus:** Phase 35 — Mail templates and layouts editor
|
||||
**Current focus:** Phase 19.3 — Framework transport and infrastructure for WavePath
|
||||
|
||||
## Current Position
|
||||
|
||||
Phase: 30 — Płytarium cutover
|
||||
Phase: 19.3 — Framework transport and infrastructure for WavePath
|
||||
Plan: Not started
|
||||
Status: Ready to plan
|
||||
Last activity: 2026-11-19 — Completed quick task 261119-kj8: sm-user-plugin JWT blacklist sweep as scheduled command
|
||||
Last activity: 2026-11-21 — Phase 32.2 complete, transitioned to Phase 19.3
|
||||
|
||||
Progress: [████████░░] 77%
|
||||
|
||||
@@ -40,7 +41,7 @@ Progress: [████████░░] 77%
|
||||
|
||||
**Velocity:**
|
||||
|
||||
- Total plans completed: 124
|
||||
- Total plans completed: 129
|
||||
- Average duration: 21 min
|
||||
- Total execution time: 104 min
|
||||
|
||||
@@ -69,6 +70,7 @@ Progress: [████████░░] 77%
|
||||
| 19.5 | 5 | - | - |
|
||||
| 19.6.1 | 5 | - | - |
|
||||
| 35 | 9 | - | - |
|
||||
| 32.2 | 5 | - | - |
|
||||
|
||||
**Recent Trend:**
|
||||
|
||||
@@ -374,6 +376,7 @@ Progress: [████████░░] 77%
|
||||
Decisions are logged in PROJECT.md Key Decisions table.
|
||||
Recent decisions affecting current work:
|
||||
|
||||
- [Phase 32.2]: Administrator MCP OAuth is an off-by-default backend-subject mode of sm-oauthserver-plugin (v0.1.8, framework v0.6.7); grzybyfunkcjonalne.pl runs it with `oidc.enabled: false` and `SUMMER_GOLEM15__OAUTHSERVER__MCP__RESOURCE` set. Follow-up: plugin test failure messages must not print tokens (SECURITY T-32.2-26).
|
||||
- [Phase 15]: 15-03: `/_journal/api/v1` public GETs; writes require backend-audience JWT and PHP `{error}` strings; JOURNAL-005 draft 404; Typesense Gate off by default (D-12/D-14/D-15/D-17). Do not add Journal to fonoteka.go tide (D-16).
|
||||
- [Phase 14.2.1]: D-10 Go tables are `golem15_translate_*` (execute Task 2 `golem15-prefix`, 2026-10-06). PHP pin still uses `winter_translate_*`; do not copy those names into Go DDL.
|
||||
- [Phase 14.1]: 14.1-01 Task 1 `ship-shared-full` — create `golem15_user_oauth_identities` in the shared sm-user-plugin with the full PHP column set (locked D-01 and D-07).
|
||||
@@ -1266,6 +1269,6 @@ Items acknowledged and carried forward from previous milestone close:
|
||||
|
||||
## Session Continuity
|
||||
|
||||
Last session: 2026-11-20T19:39:14.066Z
|
||||
Stopped at: Phase 32.2 context gathered
|
||||
Resume file: .planning/phases/32.2-mcp-oauth-with-administrator-subjects/32.2-CONTEXT.md
|
||||
Last session: 2026-11-21
|
||||
Stopped at: Phase 32.2 complete, ready to plan Phase 19.3
|
||||
Resume file: None
|
||||
|
||||
@@ -246,8 +246,8 @@
|
||||
],
|
||||
"next": {
|
||||
"command": "/msd:progress --next",
|
||||
"label": "Advance to the next step",
|
||||
"reason": "Phase 31 of 52 · executing"
|
||||
"label": "Advance to the next step (plan phase 19.3)",
|
||||
"reason": "Phase 19.3 of 53 — needs a plan"
|
||||
},
|
||||
"updated_at": "2026-11-13T12:15:09.452Z"
|
||||
"updated_at": "2026-11-21T18:14:38.197Z"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user