Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

fix(mcp): list_write_conflicts refuses out-of-grant sources and bounds its window to the source's own requests (#6643 follow-up)

garrytan32c230fcceb0
diff --git a/docs/architecture/key-files/canonical-reconciliation.md b/docs/architecture/key-files/canonical-reconciliation.md
index 48a04975f1..15168dc3e3 100644
--- a/docs/architecture/key-files/canonical-reconciliation.md
+++ b/docs/architecture/key-files/canonical-reconciliation.md
@@ -17,5 +17,5 @@
- `src/core/persistence/sync-slices.ts` — #6349 path-sliced staging for a managed target that exceeds the cursor bound with no commit axis to stage on (a first sync, a `--full` tree walk, one commit above the bound). `sliceEntries` cuts the whole resolved manifest in `(phase, code-unit path)` order: every import slice, then bounded deletion slices, the longest prefix the bound admits. The slice cursor `{ phase, after, head, target }` lives in `op_checkpoints` (`managed-sync-slice`, keyed by source, incarnation and the run's cursor options so a resumed invocation with other exclusions starts over), written or cleared by the slice's checkpoint in the same transaction that leaves `last_commit` untouched until the last slice settles; `sync-discovery.ts` resumes an unfinished target pinned at its recorded commit.
- **`src/core/persistence/sync-discovery.ts`** + **`sync-origin.ts`** — managed owner-only Git discovery with source-relative exclusions and one-statement page identity/revision/liveness snapshots. #6517: `selectOriginClaimant` (sync-origin.ts) is the one origin rule, applied by the discovery census and by `assertSyncPageOrigin` at preparation and publication: a live page wins over tombstones, several live pages refuse `page_identity_changed` naming the soft-delete exit (`sharedOriginExit`), a single tombstone may be reused, several tombstones stay ambiguous. Reserved skillpack paths (`skills/` at any depth and `skillpack.json`, `src/core/skill-reserved-paths.ts`) never enter discovery: the shared skill publisher owns them and `managedImportContent` refuses them, so a seeded pack cannot block a sync. Nested full discovery filters source scope before slicing paths. Windows separator aliases retain their page identity; ambiguous aliases refuse, while POSIX backslashes/case remain exact. Under `source-root` mode a stored `<scope>/<path>` origin (the Git-root form older write-through minted from the slug, recognized because `<path>` names the page slug) is accepted as `<path>` at discovery, freeze, preparation and the page-origin query, and an import rewrites it in place; when both readings name existing files the stored origin refuses with `detail: ambiguous_source_path`. A genuine origin mismatch refuses with `detail: sync_origin_mismatch` and the filled paths. Deletions must be absent from the pinned Git target or their explicitly selected working tree. Deleting a file that no page records as its origin (for example a skipped slug twin) while its slug's page keeps another origin commits an explicit no-op receipt (`unownedDeletion`, outcome reason `unowned_deleted_path`) that preserves that live page or tombstone; freeze and publication re-prove that no page owns the path and that the file is still absent. Existing cursors reuse their accepted manifests, with unknown old deletion provenance refused rather than rewritten. Active Git holds of the source are re-screened when their blob or working bytes changed, the file left, a `sources retry-held` request names them, the hold predates the current `RECOVERY_VERSION`, or the code is `frontmatter_slug_conflict`, `file_too_large`, `rename_held` or `parser_regression`; holds of now-excluded paths are released at the checkpoint. #6278 (B7): `retryTaken` lists every scheduled path the discovery read (screened as an entry, as a candidate, or no longer eligible); `sync-run.ts` clears them in the transaction that saves the fresh cursor. A held rename destination (or a held path renamed again) carries the hold's `renameFrom` when the old page is unchanged, else `renameHeld` (held as `rename_held` / `rename_source_changed`), and a full walk never deletes an origin a hold's `rename_from` names. Imports whose origin has no page claim their slug together: a live page whose own file is still in the tree keeps the slug, otherwise the file named like the slug (else the first path) wins, and the losers leave the manifest and are reported as `slugCollisions` (the library path's `slug_collision` skip) instead of failing the run. A winner whose slug is held by a page with a vanished or deleted origin takes that page over (`renameFrom`, same slug). A Git-detected rename to an unoccupied slug becomes one import carrying `renameFrom` in place of a delete plus a create. Origins for one slug that differ only by case or separator spelling refuse, except a case-only respelling whose old file the same sync removes. Code files keep exact per-origin identity. On Windows a path containing `:` is reported in `SyncDiscovery.fileRefusals` (code `colon_slug_windows_write_through`, with its filled `gbrain sync --source <id> --no-pull` hint) and kept out of the run and its origin checks, so one such file no longer fails the whole sync (#5032).
- `src/core/persistence/file-claims.ts` — the recorded-origin census shared by reconcile and the shared-origin delete (#6517): `fileClaimCandidatesSql` (the paged same-name query, 100 rows per batch below the source's highest page id, served by the v219 name indexes; `source_path` in any spelling or a `file:` URI; tombstones excluded) and `findLiveFileClaimants`, realpath deciding each candidate. In `page-prepare.ts`, a `delete_page` whose file another live page records (`prepareFileTarget` with `sharedOrigin`, before the byte comparison) owns no file: a soft delete publishes database-only with receipt `write_through.skipped: 'shared_origin'` and a warning ("hidden … does not erase", the `gbrain sync --source <id> --no-pull --full` that imports the kept file into the survivor), `validate` re-runs the census under the publication guards (`validateSharedOrigin`: the file moved or removed, or a different claimant set, refuses `source_changed` and never removes the file), and the surviving slug is named only when `slugDisclosable` (authority.ts: the local owner, or a remote writer whose prefix grant, delegated namespace and visibility cover it). A purge of a shared-origin page refuses and names the soft delete. Tests: `test/page-prepare-shared-origin-6517.test.ts`, `test/sync-origin-live-wins-6517.test.ts`, `test/e2e/managed-sync-shared-origin-6517.test.ts`.
-- `src/core/persistence/drift-conflicts.ts` — the `source_changed` / `file_database_drift` conflict pile (#6643). `auditDriftConflicts` groups conflict receipts by slug over a bounded window of request sequences (default 100,000, at most 1,000,000), paginated by slug with a `complete` flag; it backs `gbrain sources reconcile <source> --audit --conflicts` (`reconcile-audit.ts`) and MCP `list_write_conflicts` (`ops/persistence.ts`). Remote callers get database-derived fields only, with source grant, slug fence and visibility filtered in the aggregating SQL; `liveFileDrift` (the `prepareFileTarget` comparison) and `driftClass` (the `reconcile-additive.ts` verdict) run only for a trusted local caller on the canonical owner. `submitMaintenance` (`prepared-maintenance.ts`, `maintenanceDriftRefusal`) refuses a drifted page before admission, and `synthesize_concepts` skips a drifted concept before spend, recording it in `dream.concepts.drift_skips` (per-entry atomic updates, released when the sides agree). Tests: `test/maintenance-file-drift-6643.test.ts` (PGLite; Postgres via `test/e2e/maintenance-file-drift-6643-postgres.test.ts`).
+- `src/core/persistence/drift-conflicts.ts` — the `source_changed` / `file_database_drift` conflict pile (#6643). `auditDriftConflicts` groups conflict receipts by slug over a bounded window of request sequences (default 100,000, at most 1,000,000), paginated by slug with a `complete` flag; it backs `gbrain sources reconcile <source> --audit --conflicts` (`reconcile-audit.ts`) and MCP `list_write_conflicts` (`ops/persistence.ts`). The window ends at the source's own newest request (current incarnation, the `(source_incarnation, sequence)` index; a cursor never reads past it), and a source the caller may not read returns before anything is computed; the MCP op refuses an out-of-grant `source_id` through `resolveRequestedScope`. Remote callers get database-derived fields only, with source grant, slug fence and visibility filtered in the aggregating SQL; `liveFileDrift` (the `prepareFileTarget` comparison) and `driftClass` (the `reconcile-additive.ts` verdict) run only for a trusted local caller on the canonical owner. `submitMaintenance` (`prepared-maintenance.ts`, `maintenanceDriftRefusal`) refuses a drifted page before admission, and `synthesize_concepts` skips a drifted concept before spend, recording it in `dream.concepts.drift_skips` (per-entry atomic updates, released when the sides agree). Tests: `test/maintenance-file-drift-6643.test.ts` (PGLite; Postgres via `test/e2e/maintenance-file-drift-6643-postgres.test.ts`).
- `src/core/repair/file-drift.ts` — `gbrain repair file-drift` (#6643): explicit-only, preview-bound resolution of drifted pages through `reconcileCanonical` with one side preferred (`preferSideDecisions`) inside reconcile's protections; `driftExceptions` lists where the result differs from the preferred side. The preview writes a private artifact under `configDir()/repair-previews/file-drift/<hash>.json` and saves the approved set; apply runs `runReconcileApply` per page under request ids derived from the hash and slug, so an interrupted apply resumes. `--all-drifted` refuses mixed drift classes unless `--class` keeps one. `reconcile-prepare.ts` keeps the file bytes when they already parse to the result digest. Doctor `maintenance_write_drift` (`src/commands/doctor/checks/maintenance-drift.ts`) counts what remains.
diff --git a/docs/mcp/TOOL_REFERENCE.md b/docs/mcp/TOOL_REFERENCE.md
index 84337ff789..9ee91802b5 100644
--- a/docs/mcp/TOOL_REFERENCE.md
+++ b/docs/mcp/TOOL_REFERENCE.md
@@ -270,7 +270,7 @@ List your currently authorized write receipts in one source, newest first. Usefu
## `list_write_conflicts`
-Pages whose writes keep ending in a `source_changed` conflict, grouped by slug (#6643): receipt counts, drift receipts (`file_database_drift`), first and last seen, producers, and the last committed write's time. Remote callers get database-derived fields only, filtered by their source grant, slug fence and page visibility before anything is counted; whether the canonical file still differs (`still_present`) is checked only for the trusted local CLI on the canonical owner host and reads `{ value: null, reason: "remote_caller" }` here. Read-only. The resolution is a host-side, explicit-only repair (`gbrain repair file-drift`), so relay `next_actions` to the brain host's operator.
+Pages whose writes keep ending in a `source_changed` conflict, grouped by slug (#6643): receipt counts, drift receipts (`file_database_drift`), first and last seen, producers, and the last committed write's time. Remote callers get database-derived fields only, filtered by their source grant, slug fence and page visibility before anything is counted; whether the canonical file still differs (`still_present`) is checked only for the trusted local CLI on the canonical owner host and reads `{ value: null, reason: "remote_caller" }` here. A `source_id` outside the caller's grant is refused `permission_denied`, whether or not that source exists. The `window` sequences are bounded by the source's own requests (its current incarnation), so they say nothing about writes in other sources. Read-only. The resolution is a host-side, explicit-only repair (`gbrain repair file-drift`), so relay `next_actions` to the brain host's operator.
| Parameter | Type | Guidance |
| --- | --- | --- |
diff --git a/src/core/behavior-change-notice.ts b/src/core/behavior-change-notice.ts
index f04360dc17..8f693db300 100644
--- a/src/core/behavior-change-notice.ts
+++ b/src/core/behavior-change-notice.ts
@@ -545,6 +545,7 @@ export const BEHAVIOR_CHANGES: ReadonlyArray<{ since: string; text: ChangeText }
// #6643 PR B (conflict pile).
{ since: '0.60.217.0', text: '`synthesize_concepts` now checks each concept page against its canonical file before it calls a model or admits a write. A concept whose file differs from the database (`file_database_drift`) is skipped on every cycle, recorded in `dream.concepts.drift_skips` and released once the file and database agree, and the phase reports `warn` naming `gbrain sources reconcile <source> --brain host --audit --conflicts` and `gbrain repair file-drift`. Before, it paid for a narrative per drifted concept every cycle and left another `source_changed` conflict receipt.' },
{ since: '0.60.217.0', text: 'A maintenance write (a dream-cycle page publication) to a page whose canonical file differs from the database now refuses `source_changed` with detail `file_database_drift` before admission and leaves no request row, instead of being admitted and ending as a conflict receipt. A replay of an earlier request with the same id still returns its receipt.' },
+ { since: '0.60.230.0', text: 'MCP `list_write_conflicts` now refuses a `source_id` outside the caller\'s grant with `permission_denied` (whether or not the source exists), like other source-scoped reads, instead of returning an empty report; its `window` sequences end at the source\'s own newest request (current incarnation) instead of the brain-wide newest, so they no longer reflect writes in other sources.' },
{ since: '0.60.217.0', text: 'Doctor has a new `maintenance_write_drift` check: it warns when pages behind recent `file_database_drift` conflict receipts (or recorded concept skips) still have a canonical file that differs from the database, and names the read-only `--audit --conflicts` listing and the explicit-only `gbrain repair file-drift` preview. New: `gbrain sources reconcile <source> --audit --conflicts`, MCP `list_write_conflicts` (read scope; database-derived fields only for remote callers) and `gbrain repair file-drift --prefer file|database`.' },
// #6650 (fact-fence adoption exits). `since` is a placeholder equal to the branch's VERSION until the merge-slot stamp.
{ since: '0.60.218.0', text: 'Fencing a legacy fact into a fence row a partial earlier run left behind now rebuilds that row from the stored fact: the published row carries the fact\'s own visibility, kind, validity, confidence and speaker attribution instead of the leftover cell\'s, a leftover private row is never reused for a world fact (the world fact gets its own row), and a newly fenced fact keeps its `attributed_to`. Before, a leftover row with a different visibility made the adoption refuse every time, a leftover row with the same visibility overwrote the fact\'s kind, dates and confidence, and every adoption cleared the fact\'s speaker attribution.' },
diff --git a/src/core/ops/persistence.ts b/src/core/ops/persistence.ts
index ec067ebc53..95273bb392 100644
--- a/src/core/ops/persistence.ts
+++ b/src/core/ops/persistence.ts
@@ -2,7 +2,7 @@
import { OperationError, opError, type Operation, type OperationContext } from './contract.ts';
import { invalidParam, readFix } from './op-fix.ts';
import { isValidSourceId } from '../source-id.ts';
-import { enforceBoundClientOpAllowList, enforceClientSlugFence, enforceSubagentSlugFence, normalizeSlugPrefix, parseSourceIdParam, readPolicyOpts } from './context.ts';
+import { enforceBoundClientOpAllowList, enforceClientSlugFence, enforceSubagentSlugFence, normalizeSlugPrefix, parseSourceIdParam, readPolicyOpts, resolveRequestedScope } from './context.ts';
import { hasScope } from '../scope.ts';
import { normalizeTokenScopes } from '../legacy-token-scope.ts';
import { parseWriteRequestId } from '../persistence/preconditions.ts';
@@ -218,6 +218,8 @@ export const persistenceOperations: Operation[] = [
cliHints: { name: 'write-conflicts' },
handler: async (ctx, params) => {
const sourceId = parseSourceIdParam(params.source_id ?? ctx.sourceId, 'list_write_conflicts') ?? 'default';
+ // A remote caller naming a source outside its grant is refused like every source-scoped read (permission_denied, whether or not it exists).
+ if (params.source_id !== undefined) resolveRequestedScope(ctx, sourceId);
const limit = params.limit ?? 25;
if (typeof limit !== 'number' || !Number.isInteger(limit) || limit < 1 || limit > 100) throw invalidParam(ctx, 'list_write_conflicts', 'limit', 'limit must be an integer from 1 to 100.', { example: 25 });
if (params.cursor !== undefined && typeof params.cursor !== 'string') throw opError('invalid_params', 'Invalid conflict cursor.', "Pass `cursor` exactly as the previous response's `next` value.");
diff --git a/src/core/persistence/drift-conflicts.ts b/src/core/persistence/drift-conflicts.ts
index 675ee963e8..399d38f76e 100644
--- a/src/core/persistence/drift-conflicts.ts
+++ b/src/core/persistence/drift-conflicts.ts
@@ -179,10 +179,12 @@ function validSlug(slug: string): boolean { try { validateSlug(slug); return tru
const likeEscape = (value: string) => value.replace(/[\\%_]/g, char => `\\${char}`);
/**
- * Conflict receipts of one source grouped by slug. The rows scanned are the
- * newest `window` request sequences (through the first page's high-water mark,
- * which the cursor carries so later pages read the same window); `complete` is
- * true only when the window reaches the oldest receipt and no slug is left.
+ * Conflict receipts of one source (its current incarnation) grouped by slug. The rows scanned are the
+ * newest `window` request sequences up to the source's own newest request (the
+ * first page's high-water mark, which the cursor carries so later pages read the
+ * same window, never past the source's own newest); `complete` is true only when
+ * the window reaches the source's oldest receipt and no slug is left. A source the
+ * caller may not read, or one not registered, returns the same empty report.
*/
export async function auditDriftConflicts(engine: BrainEngine, sourceId: string, access: ConflictAuditAccess,
options: { limit?: number; cursor?: string; window?: number } = {}): Promise<ConflictAuditReport> {
@@ -194,17 +196,26 @@ export async function auditDriftConflicts(engine: BrainEngine, sourceId: string,
{ fix: readFix('Lists the registered sources and their IDs.', { argv: ['gbrain', 'sources', 'list', '--json'] }) });
}
const cursor = parseCursor(options.cursor);
- const [bounds] = await engine.executeRaw<{ top: string | null; bottom: string | null }>(
- 'SELECT (SELECT max(sequence) FROM persistence_requests)::text AS top, (SELECT min(sequence) FROM persistence_requests)::text AS bottom');
- const through = cursor?.through ?? BigInt(bounds?.top ?? '0');
+ const empty = (): ConflictAuditReport => ({ source_id: sourceId, group_by: 'slug', window: { from_sequence: '0', through_sequence: '0', covers_history: true },
+ conflicts: [], next: null, complete: true, totals: { slugs: 0, receipts: 0, still_present: 0, checked: 0 }, next_actions: [] });
+ // A source this caller may not read reads exactly like an unregistered one, and nothing below is computed for it.
+ if (access.sourceIds && !access.sourceIds.includes(sourceId)) return empty();
+ // The window is bounded by this source's own requests (its current incarnation, the request table's
+ // (source_incarnation, sequence) index), so its sequences never reveal write activity in other sources.
+ const [bounds] = await engine.executeRaw<{ incarnation: string; top: string | null; bottom: string | null }>(
+ `SELECT s.incarnation::text AS incarnation,
+ (SELECT max(r.sequence) FROM persistence_requests r WHERE r.source_incarnation=s.incarnation)::text AS top,
+ (SELECT min(r.sequence) FROM persistence_requests r WHERE r.source_incarnation=s.incarnation)::text AS bottom
+ FROM sources s WHERE s.id=$1`, [sourceId]);
+ if (!bounds) return empty();
+ const top = BigInt(bounds.top ?? '0');
+ const through = cursor && cursor.through < top ? cursor.through : top;
const floor = through - BigInt(window);
- const coversHistory = bounds?.bottom == null || BigInt(bounds.bottom) > floor;
- const report: ConflictAuditReport = { source_id: sourceId, group_by: 'slug',
- window: { from_sequence: String(floor > 0n ? floor + 1n : 1n), through_sequence: String(through), covers_history: coversHistory },
- conflicts: [], next: null, complete: false, totals: { slugs: 0, receipts: 0, still_present: 0, checked: 0 }, next_actions: [] };
- if (access.sourceIds && !access.sourceIds.includes(sourceId)) { report.complete = true; return report; }
- const params: unknown[] = [sourceId, String(floor), String(through)];
- const where = [`r.source_id=$1`, `r.sequence > $2::bigint`, `r.sequence <= $3::bigint`, `r.state='conflict'`, `r.error_code='source_changed'`];
+ const coversHistory = bounds.bottom == null || BigInt(bounds.bottom) > floor;
+ const report: ConflictAuditReport = { ...empty(), complete: false,
+ window: { from_sequence: String(floor > 0n ? floor + 1n : 1n), through_sequence: String(through), covers_history: coversHistory } };
+ const params: unknown[] = [sourceId, String(floor), String(through), bounds.incarnation];
+ const where = [`r.source_id=$1`, `r.source_incarnation=$4::uuid`, `r.sequence > $2::bigint`, `r.sequence <= $3::bigint`, `r.state='conflict'`, `r.error_code='source_changed'`];
const prefixes = access.slugPrefixes?.map(normalizeSlugPrefix).filter(Boolean);
if (prefixes) {
if (!prefixes.length) { report.complete = true; return report; }
diff --git a/test/maintenance-file-drift-6643.test.ts b/test/maintenance-file-drift-6643.test.ts
index c9450fe6dc..0a3ff6812c 100644
--- a/test/maintenance-file-drift-6643.test.ts
+++ b/test/maintenance-file-drift-6643.test.ts
@@ -225,8 +225,26 @@ for (const backend of testBackends()) describe(`#6643 maintenance file drift (${
expect(JSON.stringify(reader)).not.toContain(root);
const fenced = await listConflicts.handler(remote({ boundSlugPrefixes: ['people/'] }), { source_id: sourceId }) as { conflicts: Array<{ slug: string }> };
expect(fenced.conflicts.map(row => row.slug)).toEqual(['people/alice-example']);
- const elsewhere = await listConflicts.handler(remote({ allowedSources: ['other-source'] }), { source_id: sourceId }) as { conflicts: unknown[]; totals: { slugs: number } };
- expect(elsewhere).toMatchObject({ conflicts: [], totals: { slugs: 0 } });
+ // A source outside the grant is refused like every source-scoped read, the same whether it exists or not (no existence oracle).
+ for (const named of [sourceId, 'unregistered-example']) {
+ await expect(listConflicts.handler(remote({ allowedSources: ['other-source'] }), { source_id: named })).rejects.toMatchObject({ code: 'permission_denied' });
+ }
+ // The window is bounded by this source's own requests: writes in another source do not move it.
+ const before = await listConflicts.handler(remote({}), { source_id: sourceId }) as { window: Record<string, unknown>; next: string | null };
+ const other = `d6643-other-${randomUUID().slice(0, 8)}`;
+ await engine.executeRaw('UPDATE persistence_brain SET enabled=false WHERE singleton=1');
+ await engine.executeRaw('INSERT INTO sources(id,name,local_path) VALUES($1,$1,$2)', [other, join(root, '..', 'other')]);
+ await engine.executeRaw('UPDATE persistence_brain SET enabled=true WHERE singleton=1');
+ await engine.executeRaw(`INSERT INTO persistence_requests(principal_kind,principal_id,request_id,operation,source_id,source_incarnation,slug,digest,intent,authority,intent_bytes,terminal_reservation,state)
+ SELECT 'local_cli','other',gen_random_uuid(),'put_page',$1,(SELECT incarnation FROM sources WHERE id=$1),'notes/n-'||g,'d','{}'::jsonb,'{}'::jsonb,1,16384,'committed'
+ FROM generate_series(1,5) g`, [other]);
+ const [{ top }] = await engine.executeRaw<{ top: string }>('SELECT max(sequence)::text AS top FROM persistence_requests');
+ const after = await listConflicts.handler(remote({}), { source_id: sourceId }) as { window: Record<string, unknown> };
+ expect(after.window).toEqual(before.window);
+ expect(after.window.through_sequence).not.toBe(top);
+ // A cursor naming a later sequence is clamped to the source's own newest request.
+ const forged = await listConflicts.handler(remote({}), { source_id: sourceId, cursor: `${top}:` }) as { window: Record<string, unknown> };
+ expect(forged.window.through_sequence).toBe(before.window.through_sequence);
}), 240_000);
test('--all-drifted refuses mixed drift classes unless --class keeps one', () => fixture(async ({ root, sourceId, ctx }) => {
diff --git a/test/operations-source-isolation-matrix.test.ts b/test/operations-source-isolation-matrix.test.ts
index e6ab34508a..053ff2f280 100644
--- a/test/operations-source-isolation-matrix.test.ts
+++ b/test/operations-source-isolation-matrix.test.ts
@@ -105,7 +105,7 @@ const MATRIX: Row[] = [
{ name: 'entity', mode: 'skip', reason: 'MEMORY_VERBS conformance suite owns it; LLM-shaped output' },
{ name: 'synthesize', mode: 'skip', reason: 'LLM-dependent; keyless envs cannot run it — verbs conformance owns the error path' },
{ name: 'think', mode: 'skip', reason: 'LLM-dependent; think-source-isolation-pglite e2e owns its scoping' },
- { name: 'list_write_conflicts', mode: 'skip', reason: 'needs source_changed conflict receipts from a bound canonical checkout; test/maintenance-file-drift-6643.test.ts owns its source-grant and slug-fence filtering' },
+ { name: 'list_write_conflicts', mode: 'skip', reason: 'needs source_changed conflict receipts from a bound canonical checkout; test/maintenance-file-drift-6643.test.ts owns its out-of-grant refusal, source-scoped window and slug-fence filtering' },
{ name: 'search_by_image', mode: 'skip', reason: 'needs image-embedding infra; cross-modal suites own it' },
{ name: 'volunteer_context', mode: 'skip', reason: 'session/reflex machinery; volunteer-context suites own scoping' },
{ name: 'context_pack', mode: 'skip', reason: 'verbs conformance owns it; budget-packed composite of scoped reads' },