diff --git a/docs/release-control/v6/internal/subsystems/ai-runtime.md b/docs/release-control/v6/internal/subsystems/ai-runtime.md
index 63e41c393e..f7cef10c5e 100644
--- a/docs/release-control/v6/internal/subsystems/ai-runtime.md
+++ b/docs/release-control/v6/internal/subsystems/ai-runtime.md
@@ -210,6 +210,13 @@ event, task, metrics-history, and snapshot-tree context for VMware-backed
resources must stay reachable through those same shared read/query surfaces
and canonical resource links rather than through a VMware-only AI tool or
provider-local incident adapter.
+That same VMware AI rule also now includes mention resolution. Frontend
+Assistant mention payloads for VMware-backed `agent`, `vm`, `storage`, and
+canonical `app-container` resources must preserve the shared unified resource
+ID coming from `/api/resources`, and backend prefetch/runtime code must
+resolve those mentions through canonical read-state lookups rather than
+reconstructing provider-local IDs in the UI or adding VMware-only read routes
+under `/api/vmware/*` for Assistant context.
That same AI tool ownership also applies to recovery-backed storage reads.
When `internal/ai/tools/adapters.go` returns recovery points with malformed
persisted metadata omitted at the shared recovery-store boundary, the storage
diff --git a/docs/release-control/v6/internal/subsystems/api-contracts.md b/docs/release-control/v6/internal/subsystems/api-contracts.md
index 371556590c..a905493f48 100644
--- a/docs/release-control/v6/internal/subsystems/api-contracts.md
+++ b/docs/release-control/v6/internal/subsystems/api-contracts.md
@@ -724,6 +724,14 @@ provider-local routes. Phase 1 must not add public `/api/vmware/resources`,
`/api/vmware/history`, `/api/vmware/alerts`, or VMware-specific recovery
transport just because the internal poller now projects VMware-backed
resources into the shared canonical inventory.
+That same shared API contract now also owns Assistant mention transport for
+those canonical resources. `frontend-modern/src/api/aiChat.ts`,
+`internal/api/ai_handler.go`, and `internal/api/ai_handlers.go` must preserve
+structured mention payloads for canonical `agent`, `vm`, `storage`, and
+`app-container` resources as shared unified-resource IDs plus shared mention
+types, so VMware-backed reads stay on `/api/ai/*` and `/api/resources*`
+instead of introducing VMware-only mention payloads or provider-local
+inventory reads under `/api/vmware/*`.
That same backend API boundary now also owns the negative space around
assistant control. Wiring native TrueNAS app actions into
`internal/api/router.go`, `internal/api/ai_handler.go`, or adjacent backend
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.md
index 09fa7e122a..a34b4420b4 100644
--- a/docs/release-control/v6/internal/subsystems/unified-resources.md
+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md
@@ -868,6 +868,13 @@ policy requires governed handling, the shared label helper now prefers the
canonical AI-safe summary for every redacted or local-only resource and only
falls back to the canonical redacted label if that governed summary is
missing, so path-only and IP-only redactions do not regress to raw identity
+tokens in chat context. That same unified-resource contract now also owns the
+canonical mention identity path for shared Assistant reads: chat surfaces must
+carry the backend-issued unified resource ID for canonical `agent`, `vm`,
+`storage`, and `app-container` records, and backend mention resolution must be
+able to recover those resources by canonical ID and canonical name through the
+shared read-state instead of relying on provider-local route families or
+frontend reconstruction of VMware- or TrueNAS-specific coordinates.
leakage or over-redaction.
The frontend unified-resource hook now trusts backend canonical `policy` and
`aiSafeSummary` values directly, so the canonical summary value stays
diff --git a/frontend-modern/src/api/__tests__/aiChatMentions.test.ts b/frontend-modern/src/api/__tests__/aiChatMentions.test.ts
new file mode 100644
index 0000000000..4d3679814c
--- /dev/null
+++ b/frontend-modern/src/api/__tests__/aiChatMentions.test.ts
@@ -0,0 +1,78 @@
+import { beforeEach, describe, expect, it, vi } from 'vitest';
+
+vi.mock('@/utils/apiClient', () => ({
+ apiFetchJSON: vi.fn(),
+ apiFetch: vi.fn(),
+}));
+
+vi.mock('@/utils/logger', () => ({
+ logger: {
+ debug: vi.fn(),
+ info: vi.fn(),
+ warn: vi.fn(),
+ error: vi.fn(),
+ },
+}));
+
+import { AIChatAPI } from '@/api/aiChat';
+import { apiFetch } from '@/utils/apiClient';
+
+describe('AIChatAPI mention payloads', () => {
+ const apiFetchMock = vi.mocked(apiFetch);
+
+ beforeEach(() => {
+ apiFetchMock.mockReset();
+ });
+
+ it('preserves canonical storage mention ids in the shared chat request body', async () => {
+ apiFetchMock.mockResolvedValueOnce({
+ ok: true,
+ body: {
+ getReader: () => ({
+ read: vi.fn().mockResolvedValueOnce({ done: true, value: undefined }),
+ releaseLock: vi.fn(),
+ }),
+ },
+ } as unknown as Response);
+
+ await AIChatAPI.chat(
+ 'check @NVMe Primary',
+ undefined,
+ undefined,
+ vi.fn(),
+ undefined,
+ [
+ {
+ id: 'storage-vmware-1',
+ name: 'NVMe Primary',
+ type: 'storage',
+ node: 'Lab VC',
+ },
+ ],
+ );
+
+ expect(apiFetchMock).toHaveBeenCalledWith(
+ '/api/ai/chat',
+ expect.objectContaining({
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json',
+ Accept: 'text/event-stream',
+ },
+ body: JSON.stringify({
+ prompt: 'check @NVMe Primary',
+ session_id: undefined,
+ model: undefined,
+ mentions: [
+ {
+ id: 'storage-vmware-1',
+ name: 'NVMe Primary',
+ type: 'storage',
+ node: 'Lab VC',
+ },
+ ],
+ }),
+ }),
+ );
+ });
+});
diff --git a/frontend-modern/src/api/aiChat.ts b/frontend-modern/src/api/aiChat.ts
index c3916b129d..61507a3bae 100644
--- a/frontend-modern/src/api/aiChat.ts
+++ b/frontend-modern/src/api/aiChat.ts
@@ -14,7 +14,7 @@ export interface ChatSession {
message_count: number;
}
-export type ChatMentionType = 'vm' | 'system-container' | 'app-container' | 'agent';
+export type ChatMentionType = 'vm' | 'system-container' | 'app-container' | 'agent' | 'storage';
export interface ChatMention {
id: string;
diff --git a/frontend-modern/src/components/AI/Chat/MentionAutocomplete.tsx b/frontend-modern/src/components/AI/Chat/MentionAutocomplete.tsx
index c764dc3f48..aac95dd0c7 100644
--- a/frontend-modern/src/components/AI/Chat/MentionAutocomplete.tsx
+++ b/frontend-modern/src/components/AI/Chat/MentionAutocomplete.tsx
@@ -5,7 +5,7 @@ import { getSimpleStatusIndicator } from '@/utils/status';
export interface MentionResource {
id: string;
label: string;
- type: 'vm' | 'system-container' | 'app-container' | 'agent';
+ type: 'vm' | 'system-container' | 'app-container' | 'agent' | 'storage';
status?: string;
node?: string;
}
@@ -117,6 +117,17 @@ export function MentionAutocomplete(props: MentionAutocompleteProps) {
/>
);
+ case 'storage':
+ return (
+
+ );
default:
return (