From b0d43e4c4450d6de82f9e78c2e383038f4874ae6 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 12 Aug 2026 01:30:17 +0000 Subject: [PATCH] fix(spec): scoped-context.ts sudo() note no longer cites retired captureBefore #6656 retired plugin-audit's `captureBefore` pre-image stash and PR #7081 deleted its last consumer limb, so the `sudo()` exclusion note in IScopedContext's evidence-bar docblock (packages/spec/src/contracts/ scoped-context.ts:64) asserted a world that no longer exists. Repoint the sentence at `resolveLookupTitles`, the other real `api.sudo()` caller in plugin-audit, rather than naming the retired mechanism. Fixes #7709 --- packages/spec/src/contracts/scoped-context.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/spec/src/contracts/scoped-context.ts b/packages/spec/src/contracts/scoped-context.ts index 3442fe5656..8814cb6f86 100644 --- a/packages/spec/src/contracts/scoped-context.ts +++ b/packages/spec/src/contracts/scoped-context.ts @@ -61,7 +61,7 @@ * - `create` (an `insert` alias), `deleteById`, `execute` — no call site at * all outside those fixtures. * - `sudo()`. The one exclusion with a real cross-package caller — plugin-audit's - * `persistAuditTrailRow` and its `captureBefore` snapshot both reach + * `persistAuditTrailRow` and `resolveLookupTitles` both reach * `api.sudo()` — and it is excluded ON PURPOSE rather than for lack of * evidence, which is why it is called out instead of listed above. Every * one of those callers holds the value as `any` (`api: any`,