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