ace-swarm 2.1.2 → 2.3.0

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 (121) hide show
  1. package/CHANGELOG.md +52 -1
  2. package/README.md +86 -40
  3. package/assets/.agents/ACE/AGENT_REGISTRY.md +7 -1
  4. package/assets/.agents/ACE/agent-eval/instructions.md +41 -1
  5. package/assets/.agents/ACE/agent-memory/instructions.md +35 -1
  6. package/assets/.agents/ACE/agent-observability/instructions.md +35 -1
  7. package/assets/.agents/ACE/agent-release/instructions.md +34 -1
  8. package/assets/.agents/ACE/agent-security/instructions.md +35 -1
  9. package/assets/.agents/ACE/agent-skeptic/instructions.md +49 -0
  10. package/assets/.agents/ACE/orchestrator/AGENTS.md +11 -0
  11. package/assets/.github/hooks/ace-copilot.json +16 -16
  12. package/assets/agent-state/ACE_WORKFLOW.md +65 -0
  13. package/assets/agent-state/INTERFACE_REGISTRY.md +1 -0
  14. package/assets/agent-state/MODULES/schemas/ACE_RUNTIME_PROFILE.schema.json +79 -0
  15. package/assets/agent-state/MODULES/schemas/VERICIFY_PROCESS_POST_LOG.schema.json +1 -0
  16. package/assets/scripts/ace-hook-dispatch.mjs +447 -0
  17. package/assets/scripts/copilot-hook-dispatch.mjs +1 -265
  18. package/assets/scripts/render-mcp-configs.sh +328 -1
  19. package/assets/tasks/README.md +26 -0
  20. package/dist/ace-autonomy.d.ts +137 -0
  21. package/dist/ace-autonomy.d.ts.map +1 -0
  22. package/dist/ace-autonomy.js +472 -0
  23. package/dist/ace-autonomy.js.map +1 -0
  24. package/dist/ace-context.d.ts +29 -0
  25. package/dist/ace-context.d.ts.map +1 -0
  26. package/dist/ace-context.js +240 -0
  27. package/dist/ace-context.js.map +1 -0
  28. package/dist/ace-internal-tools.d.ts +8 -0
  29. package/dist/ace-internal-tools.d.ts.map +1 -0
  30. package/dist/ace-internal-tools.js +76 -0
  31. package/dist/ace-internal-tools.js.map +1 -0
  32. package/dist/ace-server-instructions.d.ts +12 -0
  33. package/dist/ace-server-instructions.d.ts.map +1 -0
  34. package/dist/ace-server-instructions.js +299 -0
  35. package/dist/ace-server-instructions.js.map +1 -0
  36. package/dist/agent-runtime/role-adapters.d.ts.map +1 -1
  37. package/dist/agent-runtime/role-adapters.js +47 -6
  38. package/dist/agent-runtime/role-adapters.js.map +1 -1
  39. package/dist/helpers.d.ts.map +1 -1
  40. package/dist/helpers.js +90 -0
  41. package/dist/helpers.js.map +1 -1
  42. package/dist/internal-tool-runtime.d.ts +21 -0
  43. package/dist/internal-tool-runtime.d.ts.map +1 -0
  44. package/dist/internal-tool-runtime.js +136 -0
  45. package/dist/internal-tool-runtime.js.map +1 -0
  46. package/dist/local-model-runtime.d.ts +36 -0
  47. package/dist/local-model-runtime.d.ts.map +1 -0
  48. package/dist/local-model-runtime.js +161 -0
  49. package/dist/local-model-runtime.js.map +1 -0
  50. package/dist/model-bridge.d.ts +54 -0
  51. package/dist/model-bridge.d.ts.map +1 -0
  52. package/dist/model-bridge.js +587 -0
  53. package/dist/model-bridge.js.map +1 -0
  54. package/dist/orchestrator-supervisor.d.ts +100 -0
  55. package/dist/orchestrator-supervisor.d.ts.map +1 -0
  56. package/dist/orchestrator-supervisor.js +399 -0
  57. package/dist/orchestrator-supervisor.js.map +1 -0
  58. package/dist/prompts.d.ts.map +1 -1
  59. package/dist/prompts.js +101 -0
  60. package/dist/prompts.js.map +1 -1
  61. package/dist/public-surface.d.ts.map +1 -1
  62. package/dist/public-surface.js +6 -0
  63. package/dist/public-surface.js.map +1 -1
  64. package/dist/resources.d.ts.map +1 -1
  65. package/dist/resources.js +29 -0
  66. package/dist/resources.js.map +1 -1
  67. package/dist/runtime-executor.d.ts.map +1 -1
  68. package/dist/runtime-executor.js +121 -0
  69. package/dist/runtime-executor.js.map +1 -1
  70. package/dist/runtime-profile.d.ts +18 -0
  71. package/dist/runtime-profile.d.ts.map +1 -1
  72. package/dist/runtime-profile.js +39 -3
  73. package/dist/runtime-profile.js.map +1 -1
  74. package/dist/schemas.js +1 -1
  75. package/dist/schemas.js.map +1 -1
  76. package/dist/server.d.ts +5 -1
  77. package/dist/server.d.ts.map +1 -1
  78. package/dist/server.js +9 -1
  79. package/dist/server.js.map +1 -1
  80. package/dist/shared.d.ts +3 -3
  81. package/dist/shared.d.ts.map +1 -1
  82. package/dist/shared.js +1 -0
  83. package/dist/shared.js.map +1 -1
  84. package/dist/tools-agent.d.ts +1 -0
  85. package/dist/tools-agent.d.ts.map +1 -1
  86. package/dist/tools-agent.js +456 -1
  87. package/dist/tools-agent.js.map +1 -1
  88. package/dist/tools-framework.d.ts.map +1 -1
  89. package/dist/tools-framework.js +366 -128
  90. package/dist/tools-framework.js.map +1 -1
  91. package/dist/tools-memory.d.ts.map +1 -1
  92. package/dist/tools-memory.js +80 -0
  93. package/dist/tools-memory.js.map +1 -1
  94. package/dist/tui/agent-runner.d.ts +6 -0
  95. package/dist/tui/agent-runner.d.ts.map +1 -1
  96. package/dist/tui/agent-runner.js +15 -1
  97. package/dist/tui/agent-runner.js.map +1 -1
  98. package/dist/tui/agent-worker.d.ts +3 -1
  99. package/dist/tui/agent-worker.d.ts.map +1 -1
  100. package/dist/tui/agent-worker.js +117 -9
  101. package/dist/tui/agent-worker.js.map +1 -1
  102. package/dist/tui/chat.d.ts +19 -0
  103. package/dist/tui/chat.d.ts.map +1 -1
  104. package/dist/tui/chat.js +108 -0
  105. package/dist/tui/chat.js.map +1 -1
  106. package/dist/tui/index.d.ts +1 -0
  107. package/dist/tui/index.d.ts.map +1 -1
  108. package/dist/tui/index.js +3 -0
  109. package/dist/tui/index.js.map +1 -1
  110. package/dist/vericify-bridge.d.ts +5 -1
  111. package/dist/vericify-bridge.d.ts.map +1 -1
  112. package/dist/vericify-bridge.js +10 -0
  113. package/dist/vericify-bridge.js.map +1 -1
  114. package/dist/vericify-context.d.ts +10 -0
  115. package/dist/vericify-context.d.ts.map +1 -0
  116. package/dist/vericify-context.js +72 -0
  117. package/dist/vericify-context.js.map +1 -0
  118. package/dist/workspace-manager.d.ts.map +1 -1
  119. package/dist/workspace-manager.js +13 -2
  120. package/dist/workspace-manager.js.map +1 -1
  121. package/package.json +2 -1
@@ -3,64 +3,64 @@
3
3
  "SessionStart": [
4
4
  {
5
5
  "type": "command",
6
- "command": "node ./scripts/ace/copilot-hook-dispatch.mjs",
7
- "windows": "node .\\\\scripts\\\\ace\\\\copilot-hook-dispatch.mjs",
6
+ "command": "node ./scripts/ace/ace-hook-dispatch.mjs",
7
+ "windows": "node .\\\\scripts\\\\ace\\\\ace-hook-dispatch.mjs",
8
8
  "timeout": 10
9
9
  }
10
10
  ],
11
11
  "UserPromptSubmit": [
12
12
  {
13
13
  "type": "command",
14
- "command": "node ./scripts/ace/copilot-hook-dispatch.mjs",
15
- "windows": "node .\\\\scripts\\\\ace\\\\copilot-hook-dispatch.mjs",
14
+ "command": "node ./scripts/ace/ace-hook-dispatch.mjs",
15
+ "windows": "node .\\\\scripts\\\\ace\\\\ace-hook-dispatch.mjs",
16
16
  "timeout": 10
17
17
  }
18
18
  ],
19
19
  "PreToolUse": [
20
20
  {
21
21
  "type": "command",
22
- "command": "node ./scripts/ace/copilot-hook-dispatch.mjs",
23
- "windows": "node .\\\\scripts\\\\ace\\\\copilot-hook-dispatch.mjs",
22
+ "command": "node ./scripts/ace/ace-hook-dispatch.mjs",
23
+ "windows": "node .\\\\scripts\\\\ace\\\\ace-hook-dispatch.mjs",
24
24
  "timeout": 10
25
25
  }
26
26
  ],
27
27
  "PostToolUse": [
28
28
  {
29
29
  "type": "command",
30
- "command": "node ./scripts/ace/copilot-hook-dispatch.mjs",
31
- "windows": "node .\\\\scripts\\\\ace\\\\copilot-hook-dispatch.mjs",
30
+ "command": "node ./scripts/ace/ace-hook-dispatch.mjs",
31
+ "windows": "node .\\\\scripts\\\\ace\\\\ace-hook-dispatch.mjs",
32
32
  "timeout": 10
33
33
  }
34
34
  ],
35
35
  "PreCompact": [
36
36
  {
37
37
  "type": "command",
38
- "command": "node ./scripts/ace/copilot-hook-dispatch.mjs",
39
- "windows": "node .\\\\scripts\\\\ace\\\\copilot-hook-dispatch.mjs",
38
+ "command": "node ./scripts/ace/ace-hook-dispatch.mjs",
39
+ "windows": "node .\\\\scripts\\\\ace\\\\ace-hook-dispatch.mjs",
40
40
  "timeout": 10
41
41
  }
42
42
  ],
43
43
  "SubagentStart": [
44
44
  {
45
45
  "type": "command",
46
- "command": "node ./scripts/ace/copilot-hook-dispatch.mjs",
47
- "windows": "node .\\\\scripts\\\\ace\\\\copilot-hook-dispatch.mjs",
46
+ "command": "node ./scripts/ace/ace-hook-dispatch.mjs",
47
+ "windows": "node .\\\\scripts\\\\ace\\\\ace-hook-dispatch.mjs",
48
48
  "timeout": 10
49
49
  }
50
50
  ],
51
51
  "SubagentStop": [
52
52
  {
53
53
  "type": "command",
54
- "command": "node ./scripts/ace/copilot-hook-dispatch.mjs",
55
- "windows": "node .\\\\scripts\\\\ace\\\\copilot-hook-dispatch.mjs",
54
+ "command": "node ./scripts/ace/ace-hook-dispatch.mjs",
55
+ "windows": "node .\\\\scripts\\\\ace\\\\ace-hook-dispatch.mjs",
56
56
  "timeout": 10
57
57
  }
58
58
  ],
59
59
  "Stop": [
60
60
  {
61
61
  "type": "command",
62
- "command": "node ./scripts/ace/copilot-hook-dispatch.mjs",
63
- "windows": "node .\\\\scripts\\\\ace\\\\copilot-hook-dispatch.mjs",
62
+ "command": "node ./scripts/ace/ace-hook-dispatch.mjs",
63
+ "windows": "node .\\\\scripts\\\\ace\\\\ace-hook-dispatch.mjs",
64
64
  "timeout": 10
65
65
  }
66
66
  ]
@@ -20,6 +20,22 @@ executor:
20
20
  turn_timeout_ms: 300000
21
21
  tools:
22
22
  registry_path: "agent-state/runtime-tool-specs.json"
23
+ autonomy:
24
+ orchestrator_preflight: true
25
+ recall_context: true
26
+ state_sources: ["agent-state/TASK.md", "agent-state/SCOPE.md", "agent-state/QUALITY_GATES.md", "agent-state/STATUS.md", "agent-state/HANDOFF.json", "agent-state/EVIDENCE_LOG.md"]
27
+ before_run_checks: []
28
+ stop_checks: []
29
+ review_mode: null
30
+ continuity:
31
+ enabled: true
32
+ source_paths: ["agent-state/TASK.md", "agent-state/SCOPE.md", "agent-state/QUALITY_GATES.md", "agent-state/HANDOFF.json", "agent-state/STATUS.md", "agent-state/DECISIONS.md", "agent-state/RISKS.md", "agent-state/EVIDENCE_LOG.md"]
33
+ max_sources: 6
34
+ max_excerpt_chars: 450
35
+ max_total_chars: 2600
36
+ max_status_events: 6
37
+ max_run_ledger_entries: 4
38
+ include_snapshot: true
23
39
  tracker:
24
40
  kind: "none"
25
41
  config: {}
@@ -35,6 +51,11 @@ observability:
35
51
 
36
52
  Operate under ACE runtime profile `{{runtime.profile_name}}` in `{{runtime.mode}}` mode.
37
53
 
54
+ ## Runtime Intent
55
+ - Use this profile for ACE execution that must stay aligned to file-backed state and managed workspace policy.
56
+ - Treat front matter as execution policy. If a field is `null`, `false`, or empty, do not invent extra runtime machinery.
57
+ - Preserve objective, boundary, evidence, and transition truth inside ACE artifacts rather than chat-local memory.
58
+
38
59
  ## Task
39
60
  {{task}}
40
61
 
@@ -52,6 +73,45 @@ Operate under ACE runtime profile `{{runtime.profile_name}}` in `{{runtime.mode}
52
73
  ## Runtime Tools
53
74
  - Registry: `{{tools.registry_path}}`
54
75
 
76
+ ## Autonomy
77
+ - Orchestrator preflight: `{{autonomy.orchestrator_preflight}}`
78
+ - Recall context: `{{autonomy.recall_context}}`
79
+ - State sources: `{{autonomy.state_sources}}`
80
+ - Before-run checks: `{{autonomy.before_run_checks}}`
81
+ - Stop checks: `{{autonomy.stop_checks}}`
82
+ - Review mode: `{{autonomy.review_mode}}`
83
+
84
+ ## Autonomy Guidance
85
+ - `orchestrator_preflight` means validate ACE truth before substantial work or delegation.
86
+ - `recall_context` means prefer current task, status, handoff, and evidence state over stale thread assumptions.
87
+ - `before_run_checks` are blocking checks. If they fail, stop and surface the failure through ACE evidence and status channels.
88
+ - `stop_checks` are terminal or handoff checks. If they fail, do not continue optimistically.
89
+ - `review_mode` must stay inside existing ACE tools and artifacts; it is an overlay, not a second subsystem.
90
+
91
+ ## Continuity
92
+ - Enabled: `{{continuity.enabled}}`
93
+ - Source paths: `{{continuity.source_paths}}`
94
+ - Max sources: `{{continuity.max_sources}}`
95
+ - Max excerpt chars: `{{continuity.max_excerpt_chars}}`
96
+ - Max total chars: `{{continuity.max_total_chars}}`
97
+ - Max status events: `{{continuity.max_status_events}}`
98
+ - Max run-ledger entries: `{{continuity.max_run_ledger_entries}}`
99
+ - Include snapshot: `{{continuity.include_snapshot}}`
100
+
101
+ ## Continuity Guidance
102
+ - Continuity packets are derived from current ACE truth; they are not a replacement source of truth.
103
+ - Treat the configured budgets as source-side compaction rules for unattended execution and delegation, including recent status and run-ledger visibility.
104
+ - If continuity is disabled, do not synthesize a replacement packet in chat or hidden state.
105
+
106
+ ## ACE Recall
107
+ {{ace_state_recall_md}}
108
+
109
+ ## Context Snapshot
110
+ {{ace_context_snapshot_md}}
111
+
112
+ ## Continuity Packet
113
+ {{ace_continuity_packet_md}}
114
+
55
115
  ## Tracker
56
116
  - Kind: `{{tracker.kind}}`
57
117
 
@@ -64,3 +124,8 @@ Operate under ACE runtime profile `{{runtime.profile_name}}` in `{{runtime.mode}
64
124
  - Preserve ACE state artifacts as the durable source of truth.
65
125
  - Treat Vericify as an optional sidecar, not a required ACE runtime dependency.
66
126
  - Treat this template as additive execution guidance for future unattended flows.
127
+
128
+ ## Failure Handling
129
+ - When the task contract, evidence, or hooks are contradictory, prefer hold/escalation over optimistic continuation.
130
+ - Record blockers in ACE artifacts with owners and evidence refs before handing off or stopping.
131
+ - If the profile is missing capabilities, keep the gap explicit rather than silently broadening the runtime contract.
@@ -19,6 +19,7 @@
19
19
  - `ACE_WORKFLOW.md` is the canonical workspace runtime profile artifact.
20
20
  - Its YAML front matter must validate against `MODULES/schemas/ACE_RUNTIME_PROFILE.schema.json`.
21
21
  - The markdown body after the closing front matter boundary is the active runtime prompt template.
22
+ - The optional `continuity` block only budgets derived packet content; it must not redefine canonical ACE truth outside the existing state artifacts and sidecar-native stores.
22
23
 
23
24
  ## Workspace Session Contract
24
25
 
@@ -148,6 +148,85 @@
148
148
  }
149
149
  }
150
150
  },
151
+ "autonomy": {
152
+ "type": "object",
153
+ "additionalProperties": false,
154
+ "properties": {
155
+ "orchestrator_preflight": {
156
+ "type": "boolean"
157
+ },
158
+ "recall_context": {
159
+ "type": "boolean"
160
+ },
161
+ "state_sources": {
162
+ "type": "array",
163
+ "items": {
164
+ "type": "string",
165
+ "minLength": 1
166
+ }
167
+ },
168
+ "before_run_checks": {
169
+ "type": "array",
170
+ "items": {
171
+ "type": "string",
172
+ "minLength": 1
173
+ }
174
+ },
175
+ "stop_checks": {
176
+ "type": "array",
177
+ "items": {
178
+ "type": "string",
179
+ "minLength": 1
180
+ }
181
+ },
182
+ "review_mode": {
183
+ "type": [
184
+ "string",
185
+ "null"
186
+ ],
187
+ "minLength": 1
188
+ }
189
+ }
190
+ },
191
+ "continuity": {
192
+ "type": "object",
193
+ "additionalProperties": false,
194
+ "properties": {
195
+ "enabled": {
196
+ "type": "boolean"
197
+ },
198
+ "source_paths": {
199
+ "type": "array",
200
+ "items": {
201
+ "type": "string",
202
+ "minLength": 1
203
+ }
204
+ },
205
+ "max_sources": {
206
+ "type": "integer",
207
+ "minimum": 1
208
+ },
209
+ "max_excerpt_chars": {
210
+ "type": "integer",
211
+ "minimum": 1
212
+ },
213
+ "max_total_chars": {
214
+ "type": "integer",
215
+ "minimum": 1
216
+ },
217
+ "max_status_events": {
218
+ "type": "integer",
219
+ "minimum": 1
220
+ },
221
+ "max_run_ledger_entries": {
222
+ "type": "integer",
223
+ "minimum": 1
224
+ },
225
+ "include_snapshot": {
226
+ "type": "boolean"
227
+ }
228
+ }
229
+ },
151
230
  "tracker": {
152
231
  "type": "object",
153
232
  "additionalProperties": false,
@@ -59,6 +59,7 @@
59
59
  "progress",
60
60
  "blocker",
61
61
  "handoff_note",
62
+ "stale_ack",
62
63
  "completion"
63
64
  ]
64
65
  },