docs(36-04): add Plan 36-04 execution summary
This commit is contained in:
@@ -0,0 +1,103 @@
|
|||||||
|
---
|
||||||
|
phase: 36-granular-mcp-oauth-api-token-scope-picker
|
||||||
|
plan: 04
|
||||||
|
subsystem: testing-release-verification
|
||||||
|
tags: [cabana, pier, vitest, release, sitemap, seo, oauth, mcp, changelog]
|
||||||
|
key-files:
|
||||||
|
created:
|
||||||
|
- modules/cabana/token_scopes_test.go
|
||||||
|
- modules/pier/uncovered_scopes_warning_test.go
|
||||||
|
- admin/tests/app/scopeCatalog.test.ts
|
||||||
|
- admin/tests/scopes/ScopeAccessControl.test.ts
|
||||||
|
- admin/tests/scopes/ScopePicker.test.ts
|
||||||
|
modified:
|
||||||
|
- modules/cabana/account_tokens_test.go
|
||||||
|
- modules/cabana/mcp_admin_consent_test.go
|
||||||
|
- modules/cabana/token_scope_names_test.go
|
||||||
|
- admin/tests/account/ApiTokenCreateDialog.test.ts
|
||||||
|
- admin/tests/views/ConnectView.test.ts
|
||||||
|
- ../sm-sitemap-plugin/go.mod
|
||||||
|
- ../sm-sitemap-plugin/go.sum
|
||||||
|
- ../sm-sitemap-plugin/plugin.yaml
|
||||||
|
- ../sm-sitemap-plugin/README.md
|
||||||
|
- ../sm-seo-plugin/go.mod
|
||||||
|
- ../sm-seo-plugin/go.sum
|
||||||
|
- ../sm-seo-plugin/plugin.yaml
|
||||||
|
- ../sm-seo-plugin/README.md
|
||||||
|
- ../sm-grzybyfunkcjonalne-app/go.mod
|
||||||
|
- ../sm-grzybyfunkcjonalne-app/plugins/golem15/sitemap
|
||||||
|
- ../sm-grzybyfunkcjonalne-app/plugins/golem15/seo
|
||||||
|
- ../sm-grzybyfunkcjonalne-app/scripts/smoke-mcp-oauth.sh
|
||||||
|
decisions:
|
||||||
|
- D-20: User explicitly approved `approve-release-and-proof` at Task 4; cut and pushed tags in dependency order (`summercms.go v0.6.8` -> `sm-sitemap-plugin v0.2.1` -> `sm-seo-plugin v0.2.1`), bumped `sm-grzybyfunkcjonalne-app` pointers (`61f9669`), proved local MCP OAuth E2E with Journal + SEO + Sitemap scopes and zero `pier` boot warnings, and published changelog posts. Production deployment of `grzybyfunkcjonalne.pl` stays out of scope.
|
||||||
|
- D-04 (`plugin.yaml` manifest freshness): Regenerated and verified `plugin.yaml` via `summer plugin:manifest` in both `sm-sitemap-plugin` and `sm-seo-plugin` before tagging `v0.2.1` so marketplace checks and `changelog-post.py publish` pass cleanly.
|
||||||
|
metrics:
|
||||||
|
tasks_completed: 5
|
||||||
|
tasks_total: 5
|
||||||
|
commits: 5
|
||||||
|
completed_date: "2026-11-24"
|
||||||
|
---
|
||||||
|
|
||||||
|
# Phase 36 Plan 04: Tests, Verification, Release Tags & Local E2E Proof Summary
|
||||||
|
|
||||||
|
Completed full Go and Vitest test coverage (including all 7 `backstop` UI contracts), verified all framework and sibling plugin release gates, executed the user-approved patch release train (`v0.6.8` -> `v0.2.1` -> `v0.2.1`), bumped `sm-grzybyfunkcjonalne-app` pointers with an extended local MCP OAuth E2E proof, and published all three changelog posts.
|
||||||
|
|
||||||
|
## Tasks & Commits
|
||||||
|
|
||||||
|
| Task | Repository | Description | Commit / Tag | Status |
|
||||||
|
|------|------------|-------------|--------------|--------|
|
||||||
|
| 1 | `summercms.go` | Go unit & integration tests for `cabana` token scope grouping/coverage and `pier` uncovered write-tool boot warnings | `782f4dc1` | Complete |
|
||||||
|
| 2 | `summercms.go` | Vitest unit & component tests covering all 7 `backstop` scope picker rows | `2661e0f3` | Complete |
|
||||||
|
| 3 | `summercms.go`, `sm-sitemap-plugin`, `sm-seo-plugin` | Full pre-release verification gates (Go vet/test, OpenAPI, admin dist, docs, sibling plugins) | *(verified)* | All PASS |
|
||||||
|
| 4 | *(checkpoint)* | Blocking `checkpoint:decision` — user selected **`approve-release-and-proof`** | *(user approved)* | Approved |
|
||||||
|
| 5a | `summercms.go` | Push `master` and create/push annotated tag `v0.6.8` | `2661e0f3` / `v0.6.8` | Complete |
|
||||||
|
| 5b | `../sm-sitemap-plugin` | Bump `summercms` to `v0.6.8`, update `plugin.yaml` & `README.md`, test, push `main`, tag `v0.2.1` | `91eaaa3` / `v0.2.1` | Complete |
|
||||||
|
| 5c | `../sm-seo-plugin` | Bump `summercms` to `v0.6.8` & `sm-sitemap-plugin` to `v0.2.1`, update `plugin.yaml` & `README.md`, test, push `main`, tag `v0.2.1` | `1f56dba` / `v0.2.1` | Complete |
|
||||||
|
| 5d | `../sm-grzybyfunkcjonalne-app` | Bump submodules + `go.mod`, extend `scripts/smoke-mcp-oauth.sh`, run local E2E proof, commit & push `master` (no production deploy) | `61f9669` | Complete |
|
||||||
|
| 5e | `../sm-summercmsio-app` | Publish user-facing release notes to `summercms.io/changelog` and `/changelog/plugins` | Posts `#86`, `#87`, `#88` | Complete |
|
||||||
|
|
||||||
|
## Verification Gate Results
|
||||||
|
|
||||||
|
- **Framework Go & release gates (Task 3):**
|
||||||
|
- `go vet ./...` & `go test ./...` (including Postgres integration & OpenAPI conformance) — **PASS**
|
||||||
|
- `scripts/check-admin-openapi.sh --check` — **PASS**
|
||||||
|
- `npm --prefix admin run typecheck && npm --prefix admin run test && scripts/check-admin-dist.sh` — **PASS**
|
||||||
|
- `go test ./cmd/summer -run 'TestCommandsDocumented|TestDocsTree' -count=1 && go run ./cmd/summer docs:build --check` — **PASS**
|
||||||
|
- **Plugin release gates (Tasks 3 & 5):**
|
||||||
|
- `../sm-sitemap-plugin`: `summer plugin:manifest --check`, `go vet ./...`, `go test -count=1 ./...` (`16.6s`) — **PASS**
|
||||||
|
- `../sm-seo-plugin`: `summer plugin:manifest --check`, `go vet ./...`, `go test -count=1 ./...` (`125.8s`) — **PASS**
|
||||||
|
- **Local `sm-grzybyfunkcjonalne-app` E2E proof (Task 5):**
|
||||||
|
- `go vet -tags summercms_mcp,nodynamic ./...` — **PASS**
|
||||||
|
- `go test -short ./...` (`0.624s`) — **PASS**
|
||||||
|
- `scripts/smoke-mcp-oauth.sh` — **PASS** (`ok (12 steps)`):
|
||||||
|
- Step 2 (`/.well-known/oauth-protected-resource/mcp`): `200`, `scopes_supported` includes `journal`, `journal:read`, `seo`, `seo:read`, `sitemap`, `sitemap:read`, `offline_access`.
|
||||||
|
- Step 6 (`GET /oauth/mcp/authorize`): `302` requesting `scope=admin:read journal seo sitemap offline_access`.
|
||||||
|
- Step 8 (`GET /gfadmin/api/v1/mcp/consent/{request}`): `200`, `journal`/`seo`/`sitemap` offered with non-empty `plugin_id` and `group`; `admin:read` offered with empty `plugin_id` and `group` (`*` verified empty if present).
|
||||||
|
- Step 8 (`POST`): granted `["journal","seo","sitemap"]` with `offline_access: true` (no `*`, no `admin:read`).
|
||||||
|
- Step 10 (OAuth `tools/list`): `200`, 62 tools visible including `journal_list_posts`, `journal_create_post`, `seo_set_url_seo`, and `sitemap_rebuild` without `*`; `tools/call journal_list_posts` returned `isError: false`.
|
||||||
|
- Step 11 (`g15_` PAT scoped `journal`): `200`, 11 tools including `journal_list_posts`; `tools/call` returned `isError: false`.
|
||||||
|
- Step 12 (password change): `200`, subsequent OAuth `tools/list` returned `401`.
|
||||||
|
- Boot log check: zero `not covered by any non-* TokenScope` warnings in `$TMP/go.log`.
|
||||||
|
|
||||||
|
## Changelog Posts Published
|
||||||
|
|
||||||
|
| Release | Stream | Post ID | URL | Registry Ingest |
|
||||||
|
|---------|--------|---------|-----|-----------------|
|
||||||
|
| `summercms.go v0.6.8` | `/changelog` | `86` | https://summercms.io/changelog/summercms-0-6-8 | N/A |
|
||||||
|
| `sm-sitemap-plugin v0.2.1` | `/changelog/plugins` | `87` | https://summercms.io/changelog/sm-sitemap-plugin-0-2-1 | Hourly ingest (no `~/.config/summercms/registry-token` locally) |
|
||||||
|
| `sm-seo-plugin v0.2.1` | `/changelog/plugins` | `88` | https://summercms.io/changelog/sm-seo-plugin-0-2-1 | Hourly ingest (no `~/.config/summercms/registry-token` locally) |
|
||||||
|
|
||||||
|
## Deviations from Plan
|
||||||
|
|
||||||
|
- **Manifest & README updates in plugin bump commits:** Both `sm-sitemap-plugin` (`91eaaa3`) and `sm-seo-plugin` (`1f56dba`) updated `plugin.yaml` (via `summer plugin:manifest`) and `README.md` alongside `go.mod`/`go.sum`, matching prior `v0.2.0` release commits and satisfying `changelog-post.py`'s `plugin.yaml` freshness gate.
|
||||||
|
|
||||||
|
## Self-Check: PASSED
|
||||||
|
|
||||||
|
- Commits verified:
|
||||||
|
- `summercms.go`: `782f4dc1` (Task 1), `2661e0f3` (Task 2, tagged `v0.6.8`, pushed to `origin`)
|
||||||
|
- `../sm-sitemap-plugin`: `91eaaa3` (tagged `v0.2.1`, pushed to `origin`)
|
||||||
|
- `../sm-seo-plugin`: `1f56dba` (tagged `v0.2.1`, pushed to `origin`)
|
||||||
|
- `../sm-grzybyfunkcjonalne-app`: `61f9669` (pushed to `origin/master`; production NOT deployed)
|
||||||
|
- Local E2E proof (`smoke-mcp-oauth.sh`) passed all 12 steps + zero `pier` uncovered-tool warnings with no secrets printed or logged.
|
||||||
|
- All three changelog entries published (`#86`, `#87`, `#88`) and temporary `/tmp/notes-*.md` files removed.
|
||||||
|
- `.planning/STATE.md` and `.planning/ROADMAP.md` untouched (reserved for orchestrator).
|
||||||
Reference in New Issue
Block a user