|
| 1 | +{ |
| 2 | + "category": "ai", |
| 3 | + "mode": "allowlist", |
| 4 | + "governed": [ |
| 5 | + "Agent", |
| 6 | + "Tool", |
| 7 | + "Skill" |
| 8 | + ], |
| 9 | + "_note": "The `ai` category is dominated by embedder/knowledge/model/runtime DTOs; the authorable metadata types are Agent, Tool, Skill (allowlist). Seeded from docs/audits/2026-06-{agent,tool,skill}schema-property-liveness.md (file:line evidence). Framework provenance/lock fields (_lock*, _provenance, _packageId, protection) are auto-classified by the gate (ADR-0010).", |
| 10 | + "schemas": { |
| 11 | + "Agent": { |
| 12 | + "_note": "agent-runtime.ts is the runtime consumer; AgentPreview is display-only (not a runtime reader).", |
| 13 | + "props": { |
| 14 | + "name": { |
| 15 | + "status": "live", |
| 16 | + "evidence": "packages/services/service-ai/src/agent-runtime.ts", |
| 17 | + "note": "core identity." |
| 18 | + }, |
| 19 | + "label": { |
| 20 | + "status": "live", |
| 21 | + "note": "display/core." |
| 22 | + }, |
| 23 | + "avatar": { |
| 24 | + "status": "live", |
| 25 | + "note": "display." |
| 26 | + }, |
| 27 | + "role": { |
| 28 | + "status": "live", |
| 29 | + "evidence": "agent-runtime.ts", |
| 30 | + "note": "persona → system prompt; also derives chatbot picker description." |
| 31 | + }, |
| 32 | + "instructions": { |
| 33 | + "status": "live", |
| 34 | + "evidence": "agent-runtime.ts", |
| 35 | + "note": "system prompt." |
| 36 | + }, |
| 37 | + "model": { |
| 38 | + "status": "live", |
| 39 | + "evidence": "packages/services/service-ai/src/agent-runtime.ts:264", |
| 40 | + "note": "PARTIAL — model/temperature/maxTokens applied; model.provider + model.topP are DEAD (provider comes from the configured adapter)." |
| 41 | + }, |
| 42 | + "skills": { |
| 43 | + "status": "live", |
| 44 | + "evidence": "agent-runtime.ts", |
| 45 | + "note": "Agent→Skill→Tool; contributes tools + prompt." |
| 46 | + }, |
| 47 | + "tools": { |
| 48 | + "status": "live", |
| 49 | + "evidence": "agent-runtime.ts", |
| 50 | + "note": "legacy direct-tool fallback." |
| 51 | + }, |
| 52 | + "active": { |
| 53 | + "status": "live", |
| 54 | + "evidence": "agent-runtime.ts", |
| 55 | + "note": "gates listing + 403 on chat." |
| 56 | + }, |
| 57 | + "planning": { |
| 58 | + "status": "live", |
| 59 | + "evidence": "packages/services/service-ai/src/agent-runtime.ts", |
| 60 | + "note": "PARTIAL — only planning.maxIterations is live (3 call sites); planning.strategy/allowReplan are DEAD." |
| 61 | + }, |
| 62 | + "access": { |
| 63 | + "status": "dead", |
| 64 | + "evidence": "packages/services/service-ai/src/routes/agent-routes.ts:109", |
| 65 | + "note": "'who can chat' is a no-op — the chat route hardcodes ['ai:chat','ai:agents'] regardless. Latent access-control gap (ADR-0049 #1884: enforce or remove)." |
| 66 | + }, |
| 67 | + "permissions": { |
| 68 | + "status": "dead", |
| 69 | + "evidence": "agent-routes.ts:109 (hardcoded perms)", |
| 70 | + "note": "display-only; not enforced. Security gap." |
| 71 | + }, |
| 72 | + "visibility": { |
| 73 | + "status": "dead", |
| 74 | + "evidence": "no runtime reader", |
| 75 | + "note": "defaults 'organization' but gates nothing." |
| 76 | + }, |
| 77 | + "tenantId": { |
| 78 | + "status": "dead", |
| 79 | + "evidence": "no runtime reader", |
| 80 | + "note": "not read at runtime." |
| 81 | + }, |
| 82 | + "knowledge": { |
| 83 | + "status": "dead", |
| 84 | + "evidence": "no runtime reader; AgentPreview.tsx:213 reads knowledge.sources but spec defines {topics,indexes}", |
| 85 | + "note": "shape drift; RAG is wired via service-knowledge, not agent.knowledge." |
| 86 | + }, |
| 87 | + "lifecycle": { |
| 88 | + "status": "experimental", |
| 89 | + "evidence": "no runtime reader (StateMachine)", |
| 90 | + "note": "aspirational autonomy — prune or keep as roadmap (ADR-0049 enforce-or-remove)." |
| 91 | + }, |
| 92 | + "memory": { |
| 93 | + "status": "experimental", |
| 94 | + "evidence": "no runtime reader", |
| 95 | + "note": "aspirational autonomy (shortTerm/longTerm/reflectionInterval)." |
| 96 | + }, |
| 97 | + "guardrails": { |
| 98 | + "status": "experimental", |
| 99 | + "evidence": "no runtime reader", |
| 100 | + "note": "aspirational — real limits enforced by an unrelated quota service, not these." |
| 101 | + }, |
| 102 | + "structuredOutput": { |
| 103 | + "status": "experimental", |
| 104 | + "evidence": "no runtime reader", |
| 105 | + "note": "aspirational." |
| 106 | + } |
| 107 | + } |
| 108 | + }, |
| 109 | + "Tool": { |
| 110 | + "_note": "Tool metadata is WRITE-ONLY — projected one-way from the code-built ToolRegistry into metadata for Studio display (plugin.ts:813). No code reads `tool` metadata back; the runtime contract is a separate AIToolDefinition. The LIVE props are live via that same-named AIToolDefinition surface, not via metadata read-back.", |
| 111 | + "props": { |
| 112 | + "name": { |
| 113 | + "status": "live", |
| 114 | + "evidence": "packages/services/service-ai/src/adapters/vercel-adapter.ts:46", |
| 115 | + "note": "selection + LLM function key." |
| 116 | + }, |
| 117 | + "label": { |
| 118 | + "status": "live", |
| 119 | + "note": "display." |
| 120 | + }, |
| 121 | + "description": { |
| 122 | + "status": "live", |
| 123 | + "evidence": "packages/services/service-ai/src/adapters/vercel-adapter.ts:46", |
| 124 | + "note": "sent to the LLM." |
| 125 | + }, |
| 126 | + "parameters": { |
| 127 | + "status": "live", |
| 128 | + "evidence": "packages/services/service-ai/src/adapters/vercel-adapter.ts:46", |
| 129 | + "note": "LLM function schema." |
| 130 | + }, |
| 131 | + "objectName": { |
| 132 | + "status": "live", |
| 133 | + "evidence": "packages/services/service-ai/src/tools/action-tools.ts:535", |
| 134 | + "note": "action-tool dispatch." |
| 135 | + }, |
| 136 | + "outputSchema": { |
| 137 | + "status": "experimental", |
| 138 | + "evidence": "tools/action-tools.ts:437 (keys folded into description only)", |
| 139 | + "note": "docstring claims output validation + chaining, but no validation exists." |
| 140 | + }, |
| 141 | + "category": { |
| 142 | + "status": "dead", |
| 143 | + "evidence": "listing/preview tag only; enum drift vs AIToolDefinition free-string", |
| 144 | + "note": "not sent to the model." |
| 145 | + }, |
| 146 | + "requiresConfirmation": { |
| 147 | + "status": "dead", |
| 148 | + "evidence": "tools/action-tools.ts:239 (HITL re-derives from action.ai.requiresConfirmation)", |
| 149 | + "note": "never read off the def — redundant mirror." |
| 150 | + }, |
| 151 | + "permissions": { |
| 152 | + "status": "dead", |
| 153 | + "evidence": "tool.form.ts only; not on AIToolDefinition, no consumer" |
| 154 | + }, |
| 155 | + "active": { |
| 156 | + "status": "dead", |
| 157 | + "evidence": "never set by any registration path" |
| 158 | + }, |
| 159 | + "builtIn": { |
| 160 | + "status": "dead", |
| 161 | + "evidence": "never set by any registration path" |
| 162 | + } |
| 163 | + } |
| 164 | + }, |
| 165 | + "Skill": { |
| 166 | + "_note": "skill-registry.ts + agent-runtime.ts are the runtime consumers.", |
| 167 | + "props": { |
| 168 | + "name": { |
| 169 | + "status": "live", |
| 170 | + "evidence": "packages/services/service-ai/src/skill-registry.ts" |
| 171 | + }, |
| 172 | + "label": { |
| 173 | + "status": "live", |
| 174 | + "evidence": "packages/services/service-ai/src/skill-registry.ts:247", |
| 175 | + "note": "injected into the agent system prompt." |
| 176 | + }, |
| 177 | + "description": { |
| 178 | + "status": "live", |
| 179 | + "evidence": "packages/services/service-ai/src/skill-registry.ts:247", |
| 180 | + "note": "injected into prompt." |
| 181 | + }, |
| 182 | + "instructions": { |
| 183 | + "status": "live", |
| 184 | + "evidence": "packages/services/service-ai/src/skill-registry.ts:247", |
| 185 | + "note": "injected into prompt." |
| 186 | + }, |
| 187 | + "tools": { |
| 188 | + "status": "live", |
| 189 | + "evidence": "packages/services/service-ai/src/skill-registry.ts:206", |
| 190 | + "note": "tool-contribution path incl. action_* wildcard expand." |
| 191 | + }, |
| 192 | + "triggerConditions": { |
| 193 | + "status": "live", |
| 194 | + "evidence": "packages/services/service-ai/src/skill-registry.ts:153", |
| 195 | + "note": "THE activation gate — AND of {field,operator,value}." |
| 196 | + }, |
| 197 | + "active": { |
| 198 | + "status": "live", |
| 199 | + "evidence": "packages/services/service-ai/src/skill-registry.ts:93", |
| 200 | + "note": "inactive skills dropped." |
| 201 | + }, |
| 202 | + "triggerPhrases": { |
| 203 | + "status": "dead", |
| 204 | + "evidence": "no intent/phrase matcher; only populates the slash-command palette summary (toSummary)", |
| 205 | + "note": "schema frames them as activating the skill, but nothing matches user text — intent routing unimplemented." |
| 206 | + }, |
| 207 | + "permissions": { |
| 208 | + "status": "dead", |
| 209 | + "evidence": "no code restricts a skill by skill.permissions; naming drift (preview calls it requiredPermissions)", |
| 210 | + "note": "enforce-or-remove + fix naming (ADR-0049)." |
| 211 | + } |
| 212 | + } |
| 213 | + } |
| 214 | + } |
| 215 | +} |
0 commit comments