diff --git a/.planning/phases/36-granular-mcp-oauth-api-token-scope-picker/36-REVIEW-DISPOSITION.md b/.planning/phases/36-granular-mcp-oauth-api-token-scope-picker/36-REVIEW-DISPOSITION.md index f380b96c..e31a57f2 100644 --- a/.planning/phases/36-granular-mcp-oauth-api-token-scope-picker/36-REVIEW-DISPOSITION.md +++ b/.planning/phases/36-granular-mcp-oauth-api-token-scope-picker/36-REVIEW-DISPOSITION.md @@ -5,7 +5,8 @@ titles: json findings: - id: WR-01 severity: warning - disposition: open + disposition: fixed + source: 36-REVIEW-FIX.md (2f2c33e6) title: "Missing request sequence guard in `ApiTokenCreateDialog.vue` `loadScopes()`" - id: IN-01 severity: info @@ -19,7 +20,8 @@ findings: severity: info disposition: open title: "Static DOM `panelId` and mount-only `expanded` initialization in `ScopePicker.vue`" -open: 4 +fixed: 1 +open: 3 total: 4 recorded: "2026-11-24" --- @@ -28,7 +30,7 @@ recorded: "2026-11-24" | Finding | Severity | Disposition | Source | |---------|----------|-------------|--------| -| WR-01 | warning | open | - | +| WR-01 | warning | fixed | `36-REVIEW-FIX.md` (`2f2c33e6`) | | IN-01 | info | open | - | | IN-02 | info | open | - | | IN-03 | info | open | - | diff --git a/.planning/phases/36-granular-mcp-oauth-api-token-scope-picker/36-REVIEW-FIX.md b/.planning/phases/36-granular-mcp-oauth-api-token-scope-picker/36-REVIEW-FIX.md new file mode 100644 index 00000000..c65fb89b --- /dev/null +++ b/.planning/phases/36-granular-mcp-oauth-api-token-scope-picker/36-REVIEW-FIX.md @@ -0,0 +1,49 @@ +--- +phase: 36-granular-mcp-oauth-api-token-scope-picker +status: fixed +fix_scope: critical_warning +iteration: 1 +review_source: 36-REVIEW.md +fixed: 1 +skipped: 0 +out_of_scope: 3 +fixed_at: "2026-11-24" +--- + +# Phase 36: Code Review Fix Report + +**Phase:** `36-granular-mcp-oauth-api-token-scope-picker` +**Source Review:** `36-REVIEW.md` +**Fix Scope:** `critical_warning` (`--fix` without `--all`: Critical + Warning findings only) +**Iteration:** 1 +**Status:** `fixed` (`1/1` in-scope findings resolved; `3` info findings left out-of-scope) + +## Fixed Findings + +### WR-01: Missing request sequence guard in `ApiTokenCreateDialog.vue` `loadScopes()` + +- **Severity:** Warning +- **Commit:** `2f2c33e6` (`fix(36): guard stale scope catalog responses in ApiTokenCreateDialog`) +- **Files Modified:** + - `admin/src/components/account/ApiTokenCreateDialog.vue` + - `admin/tests/account/ApiTokenCreateDialog.test.ts` + - `modules/boardwalk/dist/index.html` & rebuilt assets +- **What Changed:** + - Added a monotonically incremented `loadSeq` guard in `ApiTokenCreateDialog.vue`, mirroring `ConnectView.vue`. + - `loadScopes()` captures `const seq = ++loadSeq`, ignores stale settlements when `seq !== loadSeq || !props.open`, and only clears `scopesLoading.value = false` in `finally` when `seq === loadSeq`. + - The `watch(() => props.open)` close branch increments `loadSeq += 1` and resets `scopesLoading`, `scopesFailed`, and `scopes`, and `onBeforeUnmount` increments `loadSeq += 1` to invalidate any in-flight load. + - Added two regression tests in `admin/tests/account/ApiTokenCreateDialog.test.ts` covering both late-settling stale responses (verifying open `ScopePicker` and Custom draft are preserved) and early-settling stale failures (verifying the loading skeleton remains visible until the active request settles). + - Rebuilt embedded SPA assets in `modules/boardwalk/dist`. +- **Verification:** + - `npm --prefix admin run typecheck` — **PASS** + - `npm --prefix admin run test -- tests/account/ApiTokenCreateDialog.test.ts` — **PASS** (`26/26` tests) + - `npm --prefix admin run build && scripts/check-admin-dist.sh` — **PASS** (`modules/boardwalk/dist matches a fresh build`) + - `go test -short ./modules/boardwalk/...` — **PASS** + +## Out of Scope (`info` — pass `--all` to include) + +| Finding | Severity | Summary | +|---------|----------|---------| +| IN-01 | info | Fallback scope catalog recompilation in `warnUncoveredBackendWriteTools` when `cabana` is not activated on `app` | +| IN-02 | info | Accordion toggle buttons during search are no-ops without `disabled` / `aria-disabled` | +| IN-03 | info | Static `scope-group-panel-${index}` DOM IDs and mount-only `expanded` initialization in `ScopePicker.vue` |