@voybio/ace-swarm 2.4.6 → 2.4.7

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.
@@ -207,10 +207,11 @@ export function buildServerInstructions(workspaceRoot) {
207
207
  const lines = [
208
208
  "You are operating in an ACE-governed workspace.",
209
209
  coreFiles.length > 0
210
- ? `Ground truth lives in ${coreFiles.join(", ")}.`
211
- : `Ground truth lives in ${ACE_ROOT_REL}/agent-state/* artifacts, not chat history.`,
210
+ ? `Ground truth for task/status/scope/evidence is store-backed under ${coreFiles.join(", ")} (canonical store: ${ACE_ROOT_REL}/agent-state/ace-state.ace).`
211
+ : `Ground truth is store-backed under ${ACE_ROOT_REL}/agent-state/* artifacts (canonical store: ${ACE_ROOT_REL}/agent-state/ace-state.ace), not chat history.`,
212
+ "`ace compact` and the automatic lifecycle sweep intentionally remove the loose agent-state/*.md files from disk after folding them into the store — this is expected, not data loss. Read them back with `ace read agent-state/TASK.md` (or the read_workspace_file / recall_context MCP tools); never recreate swept files.",
212
213
  stateDirs.length > 0
213
- ? `Durable artifacts belong under ${stateDirs.map((entry) => `${entry}/`).join(", ")}.`
214
+ ? `Durable artifacts belong under ${stateDirs.map((entry) => `${entry}/`).join(", ")} and are persisted into the store; the loose copies are sweep inputs, not the source of truth.`
214
215
  : undefined,
215
216
  "Before significant work, call recall_context to load current task, scope, and status.",
216
217
  "Use route_task and get_agent_instructions for role guidance; do not self-assign by guesswork.",
@@ -243,6 +244,7 @@ export function buildHostInstructionText(host, workspaceRoot) {
243
244
  "Ground truth:",
244
245
  "- ACE MCP tools are the authoritative interface for task state and lifecycle updates.",
245
246
  "- `agent-state/ace-state.ace` is the canonical store path; visible `agent-state/*` files are compatibility projections or sweep inputs.",
247
+ "- `ace compact` and the automatic lifecycle sweep intentionally remove loose `agent-state/*` files from disk after folding them into the store — this is expected, not data loss. Do NOT recreate them; retrieve their content via `ace read <path>` or the `read_workspace_file` / `recall_context` MCP tools.",
246
248
  "- `.agents/ACE/tasks/todo.md` is the human-facing todo surface.",
247
249
  "- Hook context is store-backed in `agent-state/ace-state.ace` and consumed without extra workspace projections.",
248
250
  "",
package/dist/cli.js CHANGED
@@ -1696,7 +1696,10 @@ async function main() {
1696
1696
  const savedKb = Math.round((result.before - result.after) / 1024);
1697
1697
  console.log(`Store compacted: ${result.before} → ${result.after} bytes (saved ${savedKb}KB)`);
1698
1698
  if (result.sweep) {
1699
- console.log(`Sweep: cached ${result.sweep.cached_files}, removed ${result.sweep.removed_files}, semantic GC removed ${result.sweep.removed_semantic_cache_files}`);
1699
+ console.log(`Sweep: folded ${result.sweep.cached_files} artifact(s) into the store, freed ${result.sweep.removed_files} loose file(s) from disk, semantic GC removed ${result.sweep.removed_semantic_cache_files}`);
1700
+ if (result.sweep.removed_files > 0) {
1701
+ console.log(" Swept files are stored, not lost — read them back with `ace read <path>` (e.g. `ace read agent-state/TASK.md`). Do not recreate them.");
1702
+ }
1700
1703
  }
1701
1704
  return;
1702
1705
  }
@@ -1739,7 +1742,7 @@ async function main() {
1739
1742
  console.log(`Cached files: ${result.cached_files}`);
1740
1743
  console.log(`Kept projected files: ${result.kept_projected_files}`);
1741
1744
  console.log(`Skipped files: ${result.skipped_files}`);
1742
- console.log(`Removed files: ${result.removed_files}`);
1745
+ console.log(`Removed files: ${result.removed_files} (folded into the store, not lost — read back with \`ace read <path>\`; do not recreate)`);
1743
1746
  console.log(`Semantic cache GC removed files: ${result.removed_semantic_cache_files}`);
1744
1747
  console.log(`Staging GC removed entries: ${stagingGc.removed_entries}`);
1745
1748
  if (result.warnings.length > 0) {
@@ -73,6 +73,8 @@ ACE_HERMES_ROOT=/path/to/hermes-agent HERMES_PYTHON=/path/to/python \
73
73
  ace tui --provider llama.cpp --base-url http://localhost:8080 --model gemma-3-4b-it --hermes
74
74
 
75
75
  # Compact the store and sweep loose generated artifacts
76
+ # (the sweep removes loose agent-state/*.md from disk on purpose after storing
77
+ # them — not data loss; read them back with `ace read <path>`, don't recreate)
76
78
  ace compact
77
79
  ace compact --no-sweep
78
80
 
@@ -88,7 +88,7 @@ ace compact --no-sweep # store rewrite only
88
88
  ace compact # store rewrite plus loose generated-artifact sweep
89
89
  ```
90
90
 
91
- The default command runs a sweep after compaction: eligible loose generated ACE artifacts are ingested into the store and removed from disk. Use `--no-sweep` when only the container rewrite is intended. Back up the store and active goal directory before maintenance on a critical workspace.
91
+ The default command runs a sweep after compaction: eligible loose generated ACE artifacts are ingested into the store and removed from disk. This removal is by design and is not data loss — the content lives in the store and is read back with `ace read <path>` (e.g. `ace read agent-state/TASK.md`) or the `read_workspace_file` / `recall_context` MCP tools. Agents should not recreate swept files. The same sweep also runs automatically on a lifecycle cadence (silently, with a short min-age guard), so loose `agent-state/*` files disappearing between sessions is expected. Use `--no-sweep` when only the container rewrite is intended. Back up the store and active goal directory before maintenance on a critical workspace.
92
92
 
93
93
  ### Repair
94
94
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voybio/ace-swarm",
3
- "version": "2.4.6",
3
+ "version": "2.4.7",
4
4
  "description": "ACE Framework MCP server and CLI — single-file ACEPACK state, local-model serving, agent orchestration, and host compliance enforcement.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",