@rudderhq/agent-runtime-opencode-local 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +1 -1
  4. package/dist/server/execute.d.ts.map +1 -1
  5. package/dist/server/execute.js +8 -12
  6. package/dist/server/execute.js.map +1 -1
  7. package/dist/server/parse.test.js +1 -1
  8. package/dist/server/parse.test.js.map +1 -1
  9. package/dist/server/skills.d.ts.map +1 -1
  10. package/dist/server/skills.js +3 -12
  11. package/dist/server/skills.js.map +1 -1
  12. package/package.json +2 -2
  13. package/skills/browser/references/tool-contract.md +2 -2
  14. package/skills/rudder-docs/SKILL.md +20 -4
  15. package/skills/rudder-docs/evals/retrieval-authority-evals.json +262 -0
  16. package/skills/rudder-docs/evals/trigger-evals.json +11 -11
  17. package/skills/rudder-docs/references/agent-creation.md +153 -0
  18. package/skills/rudder-docs/references/api-reference.md +9 -2
  19. package/skills/rudder-docs/references/cli-reference.md +12 -12
  20. package/skills/rudder-docs/references/{control-plane-practices.md → operating-practices.md} +4 -4
  21. package/skills/rudder-docs/references/organization-skills.md +3 -3
  22. package/skills/rudder-docs/references/plugin-authoring.md +116 -0
  23. package/skills/rudder-docs/references/source-map.md +26 -2
  24. package/skills/visualize/SKILL.md +29 -27
  25. package/skills/visualize/references/runtime-contract.md +18 -8
  26. package/skills/rudder-create-agent/SKILL.md +0 -185
  27. package/skills/rudder-create-agent/references/api-reference.md +0 -179
  28. package/skills/rudder-create-agent/references/cli-reference.md +0 -132
  29. package/skills/rudder-create-plugin/SKILL.md +0 -103
  30. package/skills/skill-optimizer/CHANGELOG.md +0 -29
  31. package/skills/skill-optimizer/SKILL.md +0 -205
  32. package/skills/skill-optimizer/references/adapters/creative-brand-content.md +0 -30
  33. package/skills/skill-optimizer/references/adapters/customer-support-sales.md +0 -30
  34. package/skills/skill-optimizer/references/adapters/document-data-processing.md +0 -31
  35. package/skills/skill-optimizer/references/adapters/education-training.md +0 -31
  36. package/skills/skill-optimizer/references/adapters/finance-accounting.md +0 -31
  37. package/skills/skill-optimizer/references/adapters/healthcare-operations.md +0 -30
  38. package/skills/skill-optimizer/references/adapters/hr-people-ops.md +0 -31
  39. package/skills/skill-optimizer/references/adapters/legal-compliance.md +0 -31
  40. package/skills/skill-optimizer/references/adapters/operations-supply-chain.md +0 -31
  41. package/skills/skill-optimizer/references/adapters/personal-productivity.md +0 -29
  42. package/skills/skill-optimizer/references/adapters/research-knowledge.md +0 -31
  43. package/skills/skill-optimizer/references/adapters/software-ai.md +0 -31
  44. package/skills/skill-optimizer/references/domain-adapter-patterns.md +0 -66
  45. package/skills/skill-optimizer/references/eval-method.md +0 -17
  46. package/skills/skill-optimizer/references/universal-optimization-lens.md +0 -73
@@ -0,0 +1,262 @@
1
+ [
2
+ {
3
+ "query": "Where can I check whether a governed Rudder action was approved and applied?",
4
+ "locale": "en",
5
+ "query_mode": "current",
6
+ "expected_source_class": "official_public_docs_primary",
7
+ "required_contract_ids": ["APPROVAL.GOVERNED.ACTIONS.001"],
8
+ "expected_public_path": "https://docs.rudderhq.dev/reference/approvals-budgets-activity",
9
+ "expected_anchor": "approvals",
10
+ "illustrative_case_sufficient": false
11
+ },
12
+ {
13
+ "query": "Which Rudder page explains monthly budget hard stops and cost events?",
14
+ "locale": "en",
15
+ "query_mode": "current",
16
+ "expected_source_class": "official_public_docs_primary",
17
+ "required_contract_ids": ["BUDGET.ENFORCEMENT.001"],
18
+ "expected_public_path": "https://docs.rudderhq.dev/reference/approvals-budgets-activity",
19
+ "expected_anchor": "budgets-and-cost",
20
+ "illustrative_case_sufficient": false
21
+ },
22
+ {
23
+ "query": "I need the audit trail for a product mutation in Rudder.",
24
+ "locale": "en",
25
+ "query_mode": "current",
26
+ "expected_source_class": "official_public_docs_primary",
27
+ "required_contract_ids": ["ACTIVITY.AUDIT.001"],
28
+ "expected_public_path": "https://docs.rudderhq.dev/reference/approvals-budgets-activity",
29
+ "expected_anchor": "activity",
30
+ "illustrative_case_sufficient": false
31
+ },
32
+ {
33
+ "query": "Where does Rudder explain Run summaries, transcripts, logs, and raw evidence?",
34
+ "locale": "en",
35
+ "query_mode": "current",
36
+ "expected_source_class": "official_public_docs_primary",
37
+ "required_contract_ids": ["RUN.INTELLIGENCE.001", "RUN.RESULT.001"],
38
+ "expected_public_path": "https://docs.rudderhq.dev/concepts/agents",
39
+ "expected_anchor": null,
40
+ "illustrative_case_sufficient": false
41
+ },
42
+ {
43
+ "query": "What owns the current Dashboard health summary?",
44
+ "locale": "en",
45
+ "query_mode": "current",
46
+ "expected_source_class": "official_public_docs_primary",
47
+ "required_contract_ids": ["DASHBOARD.SUMMARY.001"],
48
+ "expected_public_path": "https://docs.rudderhq.dev/concepts/overview",
49
+ "expected_anchor": null,
50
+ "illustrative_case_sufficient": false
51
+ },
52
+ {
53
+ "query": "How do Calendar events link back to their source work?",
54
+ "locale": "en",
55
+ "query_mode": "current",
56
+ "expected_source_class": "official_public_docs_primary",
57
+ "required_contract_ids": ["CALENDAR.SOURCE.001"],
58
+ "expected_public_path": "https://docs.rudderhq.dev/concepts/calendar",
59
+ "expected_anchor": null,
60
+ "illustrative_case_sufficient": false
61
+ },
62
+ {
63
+ "query": "Where should a human recover unread work and requests for attention?",
64
+ "locale": "en",
65
+ "query_mode": "current",
66
+ "expected_source_class": "official_public_docs_primary",
67
+ "required_contract_ids": ["INBOX.ATTENTION.001", "MESSENGER.ATTENTION.001"],
68
+ "expected_public_path": "https://docs.rudderhq.dev/concepts/chat-messenger",
69
+ "expected_anchor": null,
70
+ "illustrative_case_sufficient": false
71
+ },
72
+ {
73
+ "query": "Where did Rudder's old Control Plane documentation move?",
74
+ "locale": "en",
75
+ "query_mode": "legacy_compatibility",
76
+ "expected_source_class": "official_public_docs_primary",
77
+ "required_contract_ids": ["APPROVAL.GOVERNED.ACTIONS.001", "BUDGET.ENFORCEMENT.001", "ACTIVITY.AUDIT.001"],
78
+ "expected_public_path": "https://docs.rudderhq.dev/reference/approvals-budgets-activity",
79
+ "expected_anchor": null,
80
+ "illustrative_case_sufficient": false
81
+ },
82
+ {
83
+ "query": "在哪里查看受治理动作的审批结论和实际应用结果?",
84
+ "locale": "zh",
85
+ "query_mode": "current",
86
+ "expected_source_class": "official_public_docs_primary",
87
+ "required_contract_ids": ["APPROVAL.GOVERNED.ACTIONS.001"],
88
+ "expected_public_path": "https://docs.rudderhq.dev/zh/reference/approvals-budgets-activity",
89
+ "expected_anchor": "approvals",
90
+ "illustrative_case_sufficient": false
91
+ },
92
+ {
93
+ "query": "Rudder 的月度预算硬限制和成本事件以哪个页面为准?",
94
+ "locale": "zh",
95
+ "query_mode": "current",
96
+ "expected_source_class": "official_public_docs_primary",
97
+ "required_contract_ids": ["BUDGET.ENFORCEMENT.001"],
98
+ "expected_public_path": "https://docs.rudderhq.dev/zh/reference/approvals-budgets-activity",
99
+ "expected_anchor": "budgets-and-cost",
100
+ "illustrative_case_sufficient": false
101
+ },
102
+ {
103
+ "query": "我需要查一项产品变更的活动审计记录。",
104
+ "locale": "zh",
105
+ "query_mode": "current",
106
+ "expected_source_class": "official_public_docs_primary",
107
+ "required_contract_ids": ["ACTIVITY.AUDIT.001"],
108
+ "expected_public_path": "https://docs.rudderhq.dev/zh/reference/approvals-budgets-activity",
109
+ "expected_anchor": "activity",
110
+ "illustrative_case_sufficient": false
111
+ },
112
+ {
113
+ "query": "运行摘要、完整记录、日志和原始证据应该看哪一页?",
114
+ "locale": "zh",
115
+ "query_mode": "current",
116
+ "expected_source_class": "official_public_docs_primary",
117
+ "required_contract_ids": ["RUN.INTELLIGENCE.001", "RUN.RESULT.001"],
118
+ "expected_public_path": "https://docs.rudderhq.dev/zh/concepts/agents",
119
+ "expected_anchor": null,
120
+ "illustrative_case_sufficient": false
121
+ },
122
+ {
123
+ "query": "Dashboard 当前状态汇总的权威说明在哪里?",
124
+ "locale": "zh",
125
+ "query_mode": "current",
126
+ "expected_source_class": "official_public_docs_primary",
127
+ "required_contract_ids": ["DASHBOARD.SUMMARY.001"],
128
+ "expected_public_path": "https://docs.rudderhq.dev/zh/concepts/overview",
129
+ "expected_anchor": null,
130
+ "illustrative_case_sufficient": false
131
+ },
132
+ {
133
+ "query": "Calendar 事件怎样回到来源任务?",
134
+ "locale": "zh",
135
+ "query_mode": "current",
136
+ "expected_source_class": "official_public_docs_primary",
137
+ "required_contract_ids": ["CALENDAR.SOURCE.001"],
138
+ "expected_public_path": "https://docs.rudderhq.dev/zh/concepts/calendar",
139
+ "expected_anchor": null,
140
+ "illustrative_case_sufficient": false
141
+ },
142
+ {
143
+ "query": "负责人应该在哪里找回未读工作和需要人处理的事项?",
144
+ "locale": "zh",
145
+ "query_mode": "current",
146
+ "expected_source_class": "official_public_docs_primary",
147
+ "required_contract_ids": ["INBOX.ATTENTION.001", "MESSENGER.ATTENTION.001"],
148
+ "expected_public_path": "https://docs.rudderhq.dev/zh/concepts/chat-messenger",
149
+ "expected_anchor": null,
150
+ "illustrative_case_sufficient": false
151
+ },
152
+ {
153
+ "query": "Rudder 以前的 Control Plane 文档迁移到哪里了?",
154
+ "locale": "zh",
155
+ "query_mode": "legacy_compatibility",
156
+ "expected_source_class": "official_public_docs_primary",
157
+ "required_contract_ids": ["APPROVAL.GOVERNED.ACTIONS.001", "BUDGET.ENFORCEMENT.001", "ACTIVITY.AUDIT.001"],
158
+ "expected_public_path": "https://docs.rudderhq.dev/zh/reference/approvals-budgets-activity",
159
+ "expected_anchor": null,
160
+ "illustrative_case_sufficient": false
161
+ },
162
+ {
163
+ "query": "What are all valid Issue statuses, including cancelled and review states?",
164
+ "locale": "en",
165
+ "query_mode": "current",
166
+ "expected_source_class": "official_public_docs_primary",
167
+ "required_contract_ids": ["ISSUE.STATE.001"],
168
+ "expected_public_path": "https://docs.rudderhq.dev/reference/issue-statuses",
169
+ "expected_anchor": "states",
170
+ "illustrative_case_sufficient": false
171
+ },
172
+ {
173
+ "query": "Where can I compare local Agent runtime choices and readiness labels?",
174
+ "locale": "en",
175
+ "query_mode": "current",
176
+ "expected_source_class": "official_public_docs_primary",
177
+ "required_contract_ids": ["AGENT.RUNTIME.ADAPTERS.001", "AGENT.RUNTIME.PERMISSIONS.001"],
178
+ "expected_public_path": "https://docs.rudderhq.dev/reference/runtime-types",
179
+ "expected_anchor": "states",
180
+ "illustrative_case_sufficient": false
181
+ },
182
+ {
183
+ "query": "Which paths belong to Library, Project Context, run workspaces, and backups?",
184
+ "locale": "en",
185
+ "query_mode": "current",
186
+ "expected_source_class": "official_public_docs_primary",
187
+ "required_contract_ids": ["CONTEXT.RESOURCES.001", "LIBRARY.FILES.001", "WORKSPACE.PROJECT.001", "WORKSPACE.RUN.001", "WORKSPACE.BACKUP.001"],
188
+ "expected_public_path": "https://docs.rudderhq.dev/reference/workspace-boundaries",
189
+ "expected_anchor": "states",
190
+ "illustrative_case_sufficient": false
191
+ },
192
+ {
193
+ "query": "How do chat_output and track_issue route Automation results?",
194
+ "locale": "en",
195
+ "query_mode": "current",
196
+ "expected_source_class": "official_public_docs_primary",
197
+ "required_contract_ids": ["AUTOMATION.OUTPUT.001", "AUTOMATION.RUN.001"],
198
+ "expected_public_path": "https://docs.rudderhq.dev/reference/automation-output-routing",
199
+ "expected_anchor": "states",
200
+ "illustrative_case_sufficient": false
201
+ },
202
+ {
203
+ "query": "What are Rudder's platform, credential, browser, and local trust boundaries?",
204
+ "locale": "en",
205
+ "query_mode": "current",
206
+ "expected_source_class": "official_public_docs_primary",
207
+ "required_contract_ids": ["AGENT.RUNTIME.PERMISSIONS.001", "AGENT.BROWSER.001"],
208
+ "expected_public_path": "https://docs.rudderhq.dev/reference/permissions-and-platforms",
209
+ "expected_anchor": "boundaries",
210
+ "illustrative_case_sufficient": false
211
+ },
212
+ {
213
+ "query": "哪里可以查到包括 cancelled 和评审状态在内的全部 Issue 状态?",
214
+ "locale": "zh",
215
+ "query_mode": "current",
216
+ "expected_source_class": "official_public_docs_primary",
217
+ "required_contract_ids": ["ISSUE.STATE.001"],
218
+ "expected_public_path": "https://docs.rudderhq.dev/zh/reference/issue-statuses",
219
+ "expected_anchor": "states",
220
+ "illustrative_case_sufficient": false
221
+ },
222
+ {
223
+ "query": "在哪里比较本地 Agent 运行环境选项和就绪提示?",
224
+ "locale": "zh",
225
+ "query_mode": "current",
226
+ "expected_source_class": "official_public_docs_primary",
227
+ "required_contract_ids": ["AGENT.RUNTIME.ADAPTERS.001", "AGENT.RUNTIME.PERMISSIONS.001"],
228
+ "expected_public_path": "https://docs.rudderhq.dev/zh/reference/runtime-types",
229
+ "expected_anchor": "states",
230
+ "illustrative_case_sufficient": false
231
+ },
232
+ {
233
+ "query": "Library、Project Context、运行工作区和备份各自放什么?",
234
+ "locale": "zh",
235
+ "query_mode": "current",
236
+ "expected_source_class": "official_public_docs_primary",
237
+ "required_contract_ids": ["CONTEXT.RESOURCES.001", "LIBRARY.FILES.001", "WORKSPACE.PROJECT.001", "WORKSPACE.RUN.001", "WORKSPACE.BACKUP.001"],
238
+ "expected_public_path": "https://docs.rudderhq.dev/zh/reference/workspace-boundaries",
239
+ "expected_anchor": "states",
240
+ "illustrative_case_sufficient": false
241
+ },
242
+ {
243
+ "query": "chat_output 和 track_issue 会把自动化结果分别送到哪里?",
244
+ "locale": "zh",
245
+ "query_mode": "current",
246
+ "expected_source_class": "official_public_docs_primary",
247
+ "required_contract_ids": ["AUTOMATION.OUTPUT.001", "AUTOMATION.RUN.001"],
248
+ "expected_public_path": "https://docs.rudderhq.dev/zh/reference/automation-output-routing",
249
+ "expected_anchor": "states",
250
+ "illustrative_case_sufficient": false
251
+ },
252
+ {
253
+ "query": "Rudder 的平台、凭据、浏览器和本地信任边界在哪里查?",
254
+ "locale": "zh",
255
+ "query_mode": "current",
256
+ "expected_source_class": "official_public_docs_primary",
257
+ "required_contract_ids": ["AGENT.RUNTIME.PERMISSIONS.001", "AGENT.BROWSER.001"],
258
+ "expected_public_path": "https://docs.rudderhq.dev/zh/reference/permissions-and-platforms",
259
+ "expected_anchor": "boundaries",
260
+ "illustrative_case_sufficient": false
261
+ }
262
+ ]
@@ -16,19 +16,19 @@
16
16
  "should_trigger": true
17
17
  },
18
18
  {
19
- "query": "Where in the official Rudder source are bundled skills materialized for local runtime adapters, and which tests protect stale managed-skill cleanup?",
19
+ "query": "请在 Rudder 里创建一个 Researcher Agent,让它向 CTO 汇报;先核对当前权限、runtime config、role enum approval 流程,再执行创建。",
20
20
  "should_trigger": true
21
21
  },
22
22
  {
23
- "query": "Rudder 显示这个 skill enabled,但刚才的 run 没有使用它。这是 selected、loaded used 语义不同,还是运行时出了 bug?请核对当前契约。",
23
+ "query": "Scaffold a new Rudder Plugin named @acme/quality-gate in a temporary external package directory. Verify the current create-rudder-plugin and SDK workflow first, then run its typecheck, tests, and build.",
24
24
  "should_trigger": true
25
25
  },
26
26
  {
27
- "query": "我把交付文档写进 Rudder Library 后,为什么评论里必须使用返回的 markdownLink,不能手写 library-entry URL?请给出准确规则。",
27
+ "query": "Rudder Plugin worker capability、same-origin UI、routePath 和 ctx.assets 现在到底有哪些边界?请查当前 authoring guide、SDK 和源码后回答。",
28
28
  "should_trigger": true
29
29
  },
30
30
  {
31
- "query": "Which Rudder API endpoint is the compatibility fallback behind the CLI issue checkout command, and under what failure conditions is direct API fallback allowed?",
31
+ "query": "Before hiring a Founding Engineer in Rudder, compare the installed Codex runtime configuration with existing agents and explain the correct role, title, reportsTo, SOUL.md, desiredSkills, and sourceIssueId fields.",
32
32
  "should_trigger": true
33
33
  },
34
34
  {
@@ -44,7 +44,7 @@
44
44
  "should_trigger": false
45
45
  },
46
46
  {
47
- "query": "这个 React 组件在当前 Rudder run 里渲染成空白了,帮我修复状态更新逻辑并补一个组件测试。",
47
+ "query": "这个 React 组件在当前 Rudder run 里渲染成空白了,帮我修复状态更新逻辑并补一个组件测试;这不是 Rudder 产品行为问题。",
48
48
  "should_trigger": false
49
49
  },
50
50
  {
@@ -56,27 +56,27 @@
56
56
  "should_trigger": false
57
57
  },
58
58
  {
59
- "query": "把下面这段提到 rudder control 的英文产品文案总结成三条中文要点;这里的 rudder 是船舵控制,不是软件产品。",
59
+ "query": "The target Agent and new title are already in context. Use the exposed typed Agent update tool to change only its title to Staff Engineer; do not look up Rudder docs.",
60
60
  "should_trigger": false
61
61
  },
62
62
  {
63
- "query": "在这个 Rudder run 里分析附件中的三家竞品定价表,算出年付折扣并推荐我们的套餐价格。",
63
+ "query": "给这个普通 Vite 应用写一个 markdown-it plugin,把内部链接加上 target 属性;它不是 Rudder Plugin,也不需要 Rudder SDK。",
64
64
  "should_trigger": false
65
65
  },
66
66
  {
67
- "query": "Write a short email to the design team saying the issue is complete and that the new screenshots are ready for review.",
67
+ "query": "在这个 Rudder run 里分析附件中的三家竞品定价表,算出年付折扣并推荐我们的套餐价格。",
68
68
  "should_trigger": false
69
69
  },
70
70
  {
71
- "query": "Please fix the spelling mistakes on the docs page in this repository, preserve its existing tone, and run the markdown linter afterward.",
71
+ "query": "Write a short email to the design team saying the issue is complete and that the new screenshots are ready for review.",
72
72
  "should_trigger": false
73
73
  },
74
74
  {
75
- "query": "帮我设计一个名叫 Rudder 的船舵图标:深蓝色、圆形徽章、透明背景,输出 1024px PNG。",
75
+ "query": "Please fix spelling mistakes on an unrelated library's docs page in this repository, preserve its tone, and run the markdown linter; no Rudder behavior needs clarification.",
76
76
  "should_trigger": false
77
77
  },
78
78
  {
79
- "query": "用当前已经暴露的 Library 文件读取工具打开季度计划,把第二节复制到这条聊天里;路径和权限都已在上下文中。",
79
+ "query": "帮我设计一个名叫 Rudder 的船舵图标:深蓝色、圆形徽章、透明背景,输出 1024px PNG。",
80
80
  "should_trigger": false
81
81
  }
82
82
  ]
@@ -0,0 +1,153 @@
1
+ # Agent Creation
2
+
3
+ Use this workflow for an explicit request to create, hire, or configure a
4
+ Rudder Agent. A question about Agent behavior or configuration is read-only.
5
+ Only an explicit user request to perform the action authorizes mutation, and
6
+ normal organization, permission, approval, and safety boundaries still apply.
7
+
8
+ For exact installed command syntax, use [CLI reference](cli-reference.md) after
9
+ checking live capabilities and `--help`. Use [API reference](api-reference.md)
10
+ only for internal debugging or compatibility work.
11
+
12
+ ## Section Map
13
+
14
+ - [Verify authority and context](#verify-authority-and-context)
15
+ - [Discover a current runtime configuration](#discover-a-current-runtime-configuration)
16
+ - [Design the durable Agent identity](#design-the-durable-agent-identity)
17
+ - [Submit the governed hire](#submit-the-governed-hire)
18
+ - [Handle direct creation or approval](#handle-direct-creation-or-approval)
19
+ - [Report evidence](#report-evidence)
20
+
21
+ ## Verify Authority And Context
22
+
23
+ Before designing or creating an Agent:
24
+
25
+ 1. Verify the actor, organization, and authentication with
26
+ `rudder agent me --json` or an equivalent exposed typed identity
27
+ capability.
28
+ 2. Board access may create an Agent. An Agent actor needs
29
+ `canCreateAgents=true` in the same organization.
30
+ 3. If identity or authorization is unavailable, stop and report the missing
31
+ authority. Do not ask for or print `RUDDER_API_KEY`, create files as a
32
+ substitute, or cross an organization boundary.
33
+ 4. If the request is advisory rather than an explicit request to create or
34
+ change an Agent, remain read-only and return the verified guidance.
35
+
36
+ For a source issue, preserve its identity for the hire payload rather than
37
+ creating an unlinked Agent and repairing the relationship later.
38
+
39
+ ## Discover A Current Runtime Configuration
40
+
41
+ Inspect exposed typed capabilities first. If a governed typed Agent-hire
42
+ capability is exposed by the current runtime, prefer it. The standard Rudder
43
+ Rudder tool set currently has no Agent-hire mutation tool, so verify and
44
+ use `rudder agent hire` as the canonical installed fallback.
45
+
46
+ Discover before drafting:
47
+
48
+ 1. Read `rudder agent config index` to learn which runtime configuration
49
+ documents this instance exposes.
50
+ 2. Read one relevant `rudder agent config doc <agent-runtime-type>` document.
51
+ 3. Compare related Agents with `rudder agent list`,
52
+ `rudder agent config list`, and, where necessary,
53
+ `rudder agent config get`.
54
+ 4. Reuse a proven pattern only after checking that its working directory,
55
+ model, runtime options, and responsibilities fit the new role.
56
+ 5. If the role needs `desiredSkills` on day one, inspect the organization skill
57
+ inventory and import or validate required skills before hiring. Follow
58
+ [Organization skills](organization-skills.md) for that workflow.
59
+
60
+ Installed help and live capability evidence win over this reference when a
61
+ version differs. Do not hand-create Agent directories, configuration records,
62
+ or instruction files as a fallback.
63
+
64
+ ## Design The Durable Agent Identity
65
+
66
+ An Agent is a durable team member. Draft the smallest complete payload that
67
+ defines its organizational responsibility and runnable configuration:
68
+
69
+ - `name` is optional; when omitted, Rudder assigns a distinct personal name.
70
+ - `role` is one fixed enum value: `ceo`, `cto`, `cmo`, `cfo`, `engineer`,
71
+ `designer`, `pm`, `qa`, `devops`, `researcher`, or `general`.
72
+ - `title` carries the specific job title. For example, use role `engineer` and
73
+ title `Founding Engineer`, never a new `founding_engineer` role.
74
+ - `reportsTo` identifies an in-organization manager and must preserve the
75
+ intended reporting line.
76
+ - `capabilities` states the work this Agent owns and the boundaries it should
77
+ not silently cross.
78
+ - `agentRuntimeType`, `agentRuntimeConfig`, and `runtimeConfig` must follow the
79
+ current adapter documentation and a valid local environment.
80
+ - `desiredSkills` contains only skills already available to the organization
81
+ and actually needed for the role.
82
+ - `sourceIssueId` or `sourceIssueIds` links the hire to the originating work.
83
+ - Omit `icon` for a normal hire so Rudder generates and persists its default
84
+ Oreo avatar. Supply an icon only when the operator provided an explicit
85
+ supported `oreo:<shape>:<palette>:<uuid>`, DiceBear Notionists, or uploaded
86
+ `asset:<uuid>` reference.
87
+
88
+ For supported local runtimes, `agentRuntimeConfig.promptTemplate` becomes the
89
+ managed `SOUL.md`. Write durable role/persona guidance rather than a one-line
90
+ command. A substantial role should define:
91
+
92
+ - an opening identity statement;
93
+ - mission and owned outcome;
94
+ - durable responsibilities;
95
+ - boundaries and escalation points;
96
+ - decision principles;
97
+ - communication voice; and
98
+ - continuity rules for what should become memory or instruction updates.
99
+
100
+ Do not copy Rudder's shared filesystem, memory, safety, or operating contract
101
+ into `promptTemplate`; the runtime injects that shared contract separately.
102
+ Keep secrets out of the payload unless the verified adapter contract requires a
103
+ supported secret mechanism.
104
+
105
+ ## Submit The Governed Hire
106
+
107
+ After the payload and authority are verified, use the exposed governed typed
108
+ capability if one exists. Otherwise invoke the installed canonical command:
109
+
110
+ `rudder agent hire --org-id <org-id> --payload <json> --json`
111
+
112
+ Verify its exact syntax in [CLI reference](cli-reference.md) or installed
113
+ `rudder agent hire --help` immediately before execution. Do not replace it with
114
+ manual filesystem changes or `rudder approval create --type hire_agent`.
115
+ The canonical hire surface owns both permission checks and the organization's
116
+ direct-create versus approval-required policy.
117
+
118
+ ## Handle Direct Creation Or Approval
119
+
120
+ The canonical response has two governed branches:
121
+
122
+ - Direct creation: `approval: null`; the returned Agent is created in its
123
+ ordinary post-hire state.
124
+ - Approval required: the returned Agent is `pending_approval`, and the response
125
+ includes an approval record.
126
+
127
+ For `pending_approval`:
128
+
129
+ 1. Inspect it with `rudder approval get` and keep the source issue visible.
130
+ 2. Use a markdown approval comment when review context or revision evidence is
131
+ needed.
132
+ 3. If the board requests changes, revise the existing payload and use
133
+ `rudder approval resubmit`; do not create a duplicate hire.
134
+ 4. Use `rudder approval issues` to inspect linked issues after the server has
135
+ created the canonical linkage.
136
+ 5. After approval, close a linked issue only when the approved hire resolves
137
+ it; otherwise leave a linked next-action comment.
138
+
139
+ Never treat a `pending_approval` Agent as runnable, assignable, or fully hired.
140
+ Approval, rejection, and revision semantics remain server-owned.
141
+
142
+ ## Report Evidence
143
+
144
+ Do not report success merely because a payload was drafted or files were
145
+ written. Success requires the canonical hire operation to return:
146
+
147
+ - `agent.id` for the created or pending Agent; and
148
+ - `approval.id` when approval is required.
149
+
150
+ Report the organization, Agent identity, role/title, reporting line, runtime,
151
+ source issue, and direct versus approval branch without exposing secrets.
152
+ If execution was not explicitly requested, report only the verified proposed
153
+ configuration and the current command or capability that would govern it.
@@ -1,12 +1,12 @@
1
1
  # Rudder API Reference
2
2
 
3
- Internal/debug reference for the Rudder control plane API.
3
+ Internal/debug reference for the Rudder API.
4
4
 
5
5
  - The `rudder-docs` router treats this as a compatibility and source-debugging
6
6
  reference, not the normal first interface for agent operations.
7
7
  - The stable agent command catalog lives in `cli-reference.md`.
8
8
  - Conditional ownership, review, workspace, and authentication guidance lives
9
- in `control-plane-practices.md`.
9
+ in `operating-practices.md`.
10
10
  - Keep this document for compatibility, low-level debugging, and route-level implementation work.
11
11
 
12
12
  ## Section Map
@@ -146,6 +146,7 @@ Use the incremental `after` form when you already know the thread.
146
146
  - `GET /api/orgs/:orgId/issues`
147
147
  - `POST /api/orgs/:orgId/issues`
148
148
  - `GET /api/orgs/:orgId/agents`
149
+ - `POST /api/orgs/:orgId/agent-hires`
149
150
  - `GET /api/orgs/:orgId/org`
150
151
  - `GET /api/orgs/:orgId/dashboard`
151
152
  - `GET /api/orgs/:orgId/projects`
@@ -160,6 +161,12 @@ Use the incremental `after` form when you already know the thread.
160
161
  - `GET /api/orgs/:orgId/costs/by-agent`
161
162
  - `GET /api/orgs/:orgId/costs/by-project`
162
163
 
164
+ `POST /api/orgs/:orgId/agent-hires` is the governed Agent creation route behind
165
+ `rudder agent hire`. It returns `approval: null` for direct creation or an Agent
166
+ in `pending_approval` plus the approval record when organization policy requires
167
+ review. Normal runtime work should follow [Agent creation](agent-creation.md)
168
+ and the installed CLI instead of calling this route directly.
169
+
163
170
  ### Resources
164
171
 
165
172
  - `GET /api/orgs/:orgId/resources`
@@ -19,14 +19,14 @@ returns a transport or configuration error.
19
19
  ## Operating Policy Owners
20
20
 
21
21
  Keep this file focused on commands and CLI-specific I/O. Consult the exact
22
- control-plane owner for operating behavior:
22
+ operating-practices guide for operating behavior:
23
23
 
24
- - [Interface and Chat/issue scope](control-plane-practices.md#interface-and-scope)
25
- - [Ownership, checkout, and wake scope](control-plane-practices.md#ownership-checkout-and-wake-scope)
26
- - [Comments, mentions, and evidence](control-plane-practices.md#comments-mentions-and-evidence)
27
- - [Review and close-out](control-plane-practices.md#review-and-close-out)
28
- - [Durable Library artifacts](control-plane-practices.md#durable-library-artifacts)
29
- - [Git identity and attribution](control-plane-practices.md#git-identity-and-attribution)
24
+ - [Interface and Chat/issue scope](operating-practices.md#interface-and-scope)
25
+ - [Ownership, checkout, and wake scope](operating-practices.md#ownership-checkout-and-wake-scope)
26
+ - [Comments, mentions, and evidence](operating-practices.md#comments-mentions-and-evidence)
27
+ - [Review and close-out](operating-practices.md#review-and-close-out)
28
+ - [Durable Library artifacts](operating-practices.md#durable-library-artifacts)
29
+ - [Git identity and attribution](operating-practices.md#git-identity-and-attribution)
30
30
 
31
31
  ## Defaults
32
32
 
@@ -48,7 +48,7 @@ control-plane owner for operating behavior:
48
48
  | `rudder_agent_me` | `rudder agent me` | Show the authenticated agent identity, budget, and chain of command. | no | no | no | no |
49
49
  | `rudder_agent_inbox` | `rudder agent inbox` | List the compact assignee and reviewer work inbox for the authenticated agent. | no | no | no | no |
50
50
  | `rudder_agent_capabilities` | `rudder agent capabilities` | List the stable Rudder agent command contract. | no | no | no | no |
51
- | `rudder_agent_update` | `rudder agent update [agent-id] [--title <title>] [--description <text>]` | Update an agent's control-plane identity fields; defaults to the authenticated agent. | yes | no | no | attached when available |
51
+ | `rudder_agent_update` | `rudder agent update [agent-id] [--title <title>] [--description <text>]` | Update an agent's identity fields; defaults to the authenticated agent. | yes | no | no | attached when available |
52
52
  | `rudder_agent_skills_create` | `rudder agent skills create [agent-id] --name <name> [--enable]` | Create an agent-private skill package under AGENT_HOME/skills. | yes | no | no | attached when available |
53
53
  | `rudder_agent_skills_enable` | `rudder agent skills enable <agent-id> <selection-ref...>` | Add skill selections to an agent without replacing existing enabled skills. | yes | no | no | attached when available |
54
54
  | `rudder_agent_skills_sync` | `rudder agent skills sync <agent-id>` | Sync the desired enabled skill set for an agent. | yes | no | no | attached when available |
@@ -110,7 +110,7 @@ control-plane owner for operating behavior:
110
110
  | `rudder_chat_messages` | `rudder chat messages <chat-id> [--limit <n>] [--cursor <cursor>] [--include-transcript]` | Read bounded chat messages with page cursors; transcript output is omitted unless requested. | no | no | no | no |
111
111
  | `rudder_chat_transcript` | `rudder chat transcript <chat-id> [--limit <n>] [--cursor <cursor>] [--max-output-chars <n>]` | Read paginated chat messages with assistant transcript entries clipped in human output. | no | no | no | no |
112
112
  | `rudder_chat_read` | `rudder chat read <chat-id> [--turn-limit <n>] [--cursor <cursor>] [--include-output]` | Read a bounded recent-message snapshot for one chat with page cursors. | no | no | no | no |
113
- | `rudder_chat_create` | `rudder chat create --org-id <id>` | Create a chat conversation. | yes | required | no | attached when available |
113
+ | `rudder_chat_create` | `rudder chat create --org-id <id> --body <text>` | Create a chat conversation with its first message. | yes | required | no | attached when available |
114
114
  | `rudder_chat_send` | `rudder chat send <chat-id> --body <text>` | Send an agent-authored message directly to the operator in a chat. | yes | no | required | attached when available |
115
115
  | `rudder_chat_archive` | `rudder chat archive <chat-id>` | Archive a chat conversation without deleting it. | yes | no | no | attached when available |
116
116
  | `rudder_runs_list` | `rudder runs list --org-id <id> [--used-skill <skill>] [--loaded-skill <skill>] [--cursor <cursor>] [--full]` | List lightweight run summaries with stable pagination and filters; use --full only for legacy full-row compatibility. | no | required | no | no |
@@ -125,7 +125,7 @@ control-plane owner for operating behavior:
125
125
 
126
126
  ## Issue Command I/O And Shapes
127
127
 
128
- Operating rules live in [ownership, checkout, and wake scope](control-plane-practices.md#ownership-checkout-and-wake-scope), [comments and evidence](control-plane-practices.md#comments-mentions-and-evidence), and [review and close-out](control-plane-practices.md#review-and-close-out). The CLI close-out shapes are:
128
+ Operating rules live in [ownership, checkout, and wake scope](operating-practices.md#ownership-checkout-and-wake-scope), [comments and evidence](operating-practices.md#comments-mentions-and-evidence), and [review and close-out](operating-practices.md#review-and-close-out). The CLI close-out shapes are:
129
129
 
130
130
  - progress: `rudder issue comment <issue> --body-file <path> [--image <path>]`
131
131
  - done: `rudder issue done <issue> --comment-file <path> [--image <path>]`
@@ -139,7 +139,7 @@ Issue comment responses include `shortRef` when available. `rudder issue comment
139
139
 
140
140
  ## Renderable Library CLI Output
141
141
 
142
- File placement and handoff policy lives in [Durable Library artifacts](control-plane-practices.md#durable-library-artifacts). Request a renderable reference with `rudder library file ref <library-relative-path> --json`.
142
+ File placement and handoff policy lives in [Durable Library artifacts](operating-practices.md#durable-library-artifacts). Request a renderable reference with `rudder library file ref <library-relative-path> --json`.
143
143
 
144
144
  The relevant JSON fields are:
145
145
 
@@ -151,7 +151,7 @@ The `ref` argument is Library-relative, not an absolute filesystem path. CLI fal
151
151
 
152
152
  ## Reviewer Decision Command Shapes
153
153
 
154
- Reviewer policy lives in [Review and close-out](control-plane-practices.md#review-and-close-out). Supported decision command shapes are:
154
+ Reviewer policy lives in [Review and close-out](operating-practices.md#review-and-close-out). Supported decision command shapes are:
155
155
 
156
156
  - `rudder issue review <issue> --decision approve --comment-file <path>`
157
157
  - `rudder issue review <issue> --decision request_changes --comment-file <path>`
@@ -1,4 +1,4 @@
1
- # Rudder Control-Plane Practices
1
+ # Rudder Work Practices
2
2
 
3
3
  Consult this reference only for questions about exact Rudder operating
4
4
  behavior. It is conditional documentation, not a trigger and not an always-run
@@ -22,7 +22,7 @@ workflow. For exact tool and CLI syntax, pair the relevant rule with
22
22
 
23
23
  ## Interface And Scope
24
24
 
25
- - Prefer exposed first-party Rudder typed tools for normal control-plane work.
25
+ - Prefer exposed first-party Rudder typed tools for normal Rudder work.
26
26
  Use the installed `rudder ... --json` CLI as the compatibility fallback when
27
27
  MCP is unavailable or a Rudder tool has a transport or configuration error.
28
28
  - Use `rudder agent capabilities --json` to discover the current capability
@@ -118,8 +118,8 @@ report the status and required follow-up rather than bypassing it.
118
118
  - Never cancel cross-team work. Reassign upward with an explanation, and use
119
119
  `chainOfCommand` for escalation.
120
120
  - Above 80% spend, focus on critical work only and avoid expanding scope.
121
- - Use the canonical `rudder-create-agent` workflow for hiring or agent creation
122
- rather than assembling a raw control-plane payload.
121
+ - Use [Agent creation](agent-creation.md) for the canonical governed hiring
122
+ workflow rather than assembling a raw Rudder API payload.
123
123
 
124
124
  ## Git Identity And Attribution
125
125
 
@@ -4,8 +4,8 @@ Use this reference when a board user or authorized agent asks you to discover, i
4
4
 
5
5
  This is the organization and agent-skill administration reference for the
6
6
  bundled `rudder-docs` package. Use the typed Rudder tool when exposed and the
7
- documented CLI as its compatibility fallback. General control-plane ownership,
8
- authentication, and workspace rules remain in `control-plane-practices.md`.
7
+ documented CLI as its compatibility fallback. General work ownership,
8
+ authentication, and workspace rules remain in `operating-practices.md`.
9
9
 
10
10
  For a skill that belongs only to the running agent, do not use organization import or scan commands. Use:
11
11
 
@@ -180,4 +180,4 @@ the full optional enabled-skill set intentionally.
180
180
  - If a skill reference is missing or ambiguous, Rudder returns `422`.
181
181
  - Prefer linking back to the relevant issue, approval, and agent when commenting about skill changes.
182
182
  - This document only covers library import/inspect/enable/sync.
183
- - Hire and create flows now live on the CLI-first `rudder-create-agent` path.
183
+ - Agent hire and create flows live in [Agent creation](agent-creation.md).