zob-harness 0.8.0 → 0.9.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 (100) hide show
  1. package/.pi/capabilities/zob-public-runtime-capabilities.json +59 -18
  2. package/.pi/extensions/zob-harness/index.ts +1 -1
  3. package/.pi/extensions/zob-harness/src/core/constants.ts +5 -4
  4. package/.pi/extensions/zob-harness/src/domains/autonomy/autonomous-runtime/dry-run.ts +1107 -0
  5. package/.pi/extensions/zob-harness/src/domains/autonomy/autonomous-runtime/report-writers.ts +325 -0
  6. package/.pi/extensions/zob-harness/src/domains/autonomy/autonomous-runtime/smoke-run.ts +1286 -0
  7. package/.pi/extensions/zob-harness/src/domains/autonomy/autonomous-runtime/types.ts +30 -0
  8. package/.pi/extensions/zob-harness/src/domains/autonomy/autonomous-runtime/validation.ts +184 -0
  9. package/.pi/extensions/zob-harness/src/domains/autonomy/autonomous-runtime.ts +4 -2912
  10. package/.pi/extensions/zob-harness/src/domains/compute/compute-profile.ts +2 -1
  11. package/.pi/extensions/zob-harness/src/domains/goal/goal-todos/constants.ts +19 -0
  12. package/.pi/extensions/zob-harness/src/domains/goal/goal-todos/formatting.ts +148 -0
  13. package/.pi/extensions/zob-harness/src/domains/goal/goal-todos/normalize.ts +476 -0
  14. package/.pi/extensions/zob-harness/src/domains/goal/goal-todos/operations.ts +393 -0
  15. package/.pi/extensions/zob-harness/src/domains/goal/goal-todos/parsing.ts +277 -0
  16. package/.pi/extensions/zob-harness/src/domains/goal/goal-todos/reducer.ts +110 -0
  17. package/.pi/extensions/zob-harness/src/domains/goal/goal-todos.ts +6 -1429
  18. package/.pi/extensions/zob-harness/src/domains/governance/governed-requests.ts +3 -1
  19. package/.pi/extensions/zob-harness/src/domains/governance/merge-queue.ts +3 -1
  20. package/.pi/extensions/zob-harness/src/domains/governance/sandbox/helpers.ts +124 -0
  21. package/.pi/extensions/zob-harness/src/domains/governance/sandbox/runners.ts +444 -0
  22. package/.pi/extensions/zob-harness/src/domains/governance/sandbox/simulation.ts +569 -0
  23. package/.pi/extensions/zob-harness/src/domains/governance/sandbox/types.ts +127 -0
  24. package/.pi/extensions/zob-harness/src/domains/governance/sandbox/validation.ts +273 -0
  25. package/.pi/extensions/zob-harness/src/domains/governance/sandbox.ts +4 -1508
  26. package/.pi/extensions/zob-harness/src/domains/governance/worker-pool.ts +3 -1
  27. package/.pi/extensions/zob-harness/src/domains/governance/workspace-claims.ts +3 -1
  28. package/.pi/extensions/zob-harness/src/domains/orchestration/room.ts +8 -2
  29. package/.pi/extensions/zob-harness/src/domains/promotion/coms.ts +8 -1
  30. package/.pi/extensions/zob-harness/src/runtime/commands/autonomy.ts +188 -0
  31. package/.pi/extensions/zob-harness/src/runtime/commands/compute.ts +165 -0
  32. package/.pi/extensions/zob-harness/src/runtime/commands/daemon.ts +191 -0
  33. package/.pi/extensions/zob-harness/src/runtime/commands/delegates.ts +47 -0
  34. package/.pi/extensions/zob-harness/src/runtime/commands/goal.ts +70 -0
  35. package/.pi/extensions/zob-harness/src/runtime/commands/intent.ts +383 -0
  36. package/.pi/extensions/zob-harness/src/runtime/commands/misc.ts +229 -0
  37. package/.pi/extensions/zob-harness/src/runtime/commands/project-dna.ts +130 -0
  38. package/.pi/extensions/zob-harness/src/runtime/commands/types.ts +3 -0
  39. package/.pi/extensions/zob-harness/src/runtime/commands/zcommit.ts +145 -0
  40. package/.pi/extensions/zob-harness/src/runtime/commands/zlive.ts +1606 -0
  41. package/.pi/extensions/zob-harness/src/runtime/commands/zmode.ts +42 -0
  42. package/.pi/extensions/zob-harness/src/runtime/commands.ts +26 -2299
  43. package/.pi/extensions/zob-harness/src/runtime/events.ts +29 -2
  44. package/.pi/extensions/zob-harness/src/runtime/goal-runtime/commands.ts +194 -0
  45. package/.pi/extensions/zob-harness/src/runtime/goal-runtime/events.ts +81 -0
  46. package/.pi/extensions/zob-harness/src/runtime/goal-runtime/state.ts +662 -0
  47. package/.pi/extensions/zob-harness/src/runtime/goal-runtime/tools.ts +1005 -0
  48. package/.pi/extensions/zob-harness/src/runtime/goal-runtime.ts +5 -1949
  49. package/.pi/extensions/zob-harness/src/runtime/schemas.ts +37 -0
  50. package/.pi/extensions/zob-harness/src/runtime/tools-delegation/helpers.ts +786 -0
  51. package/.pi/extensions/zob-harness/src/runtime/tools-delegation/register.ts +1120 -0
  52. package/.pi/extensions/zob-harness/src/runtime/tools-delegation/types.ts +77 -0
  53. package/.pi/extensions/zob-harness/src/runtime/tools-delegation.ts +1 -1904
  54. package/.pi/extensions/zob-harness/src/runtime/tools-zagent.ts +975 -0
  55. package/.pi/extensions/zob-harness/src/runtime/zob-intro.ts +46 -15
  56. package/.pi/extensions/zob-harness/src/runtime/zobHarness.ts +3 -0
  57. package/.pi/factories/project-dna/batch-manifest.json +1 -1
  58. package/.pi/factories/project-dna/pilot-manifest.json +1 -1
  59. package/.pi/factories/project-dna/smoke-manifest.json +1 -1
  60. package/.pi/skills/zob-zagent-creator/SKILL.md +47 -8
  61. package/.pi/zagents/harness-chief.json +2 -2
  62. package/.pi/zagents/harness-interlocutor.json +61 -0
  63. package/.pi/zagents/hot-add-readonly-test-scout.json +102 -0
  64. package/.pi/zagents/prompts/harness-architect.md +31 -1
  65. package/.pi/zagents/prompts/harness-chief.md +36 -10
  66. package/.pi/zagents/prompts/harness-coms-steward.md +33 -3
  67. package/.pi/zagents/prompts/harness-factory-engineer.md +33 -3
  68. package/.pi/zagents/prompts/harness-implementer.md +33 -2
  69. package/.pi/zagents/prompts/harness-interlocutor.md +92 -0
  70. package/.pi/zagents/prompts/harness-oracle.md +31 -2
  71. package/.pi/zagents/prompts/hot-add-readonly-test-scout.md +51 -0
  72. package/.pi/zteams/agent-factory-pacman-multiplayer.tmux.sh +27 -0
  73. package/.pi/zteams/zob-harness-devs.json +177 -25
  74. package/.pi/zteams/zob-harness-devs.modes.json +10 -1
  75. package/.pi/zteams/zob-harness-devs.tmux.sh +32 -1
  76. package/README.md +29 -8
  77. package/package.json +18 -5
  78. package/scripts/git-ops/commit-policy-smoke.mjs +33 -6
  79. package/scripts/goal-todo/child-goal-ref-smoke.mjs +30 -3
  80. package/scripts/goal-todo/handoff-static-smoke.mjs +31 -3
  81. package/scripts/harness-intake/lib/cli-io.mjs +89 -0
  82. package/scripts/harness-intake/lib/constants.mjs +59 -0
  83. package/scripts/harness-intake/lib/infer-spec.mjs +127 -0
  84. package/scripts/harness-intake/lib/profiles.mjs +458 -0
  85. package/scripts/harness-intake/lib/run-init.mjs +307 -0
  86. package/scripts/harness-intake/lib/scan.mjs +266 -0
  87. package/scripts/harness-intake/lib/tmux.mjs +92 -0
  88. package/scripts/harness-intake/lib/validate.mjs +152 -0
  89. package/scripts/harness-intake/lib.mjs +8 -1521
  90. package/scripts/harness-switch/static-smoke.mjs +1 -1
  91. package/scripts/model-catalog/validate-economy.mjs +3 -1
  92. package/scripts/model-catalog/validate.mjs +3 -1
  93. package/scripts/project-dna/scan/scan.mjs +5 -2
  94. package/scripts/project-dna/scan/validate-scan-artifacts.mjs +3 -1
  95. package/scripts/project-dna/validation/validate-ontology.mjs +3 -1
  96. package/scripts/project-dna/validation/validate-scaffold.mjs +2 -2
  97. package/scripts/zagent-static-smoke.mjs +104 -14
  98. package/scripts/zpeer-static-smoke.mjs +30 -2
  99. package/scripts/zteam-hot-add/smoke.mjs +105 -0
  100. package/scripts/zteam-tools/smoke.mjs +180 -0
@@ -199,7 +199,7 @@
199
199
  ".pi/skills/zob-coms-safety/SKILL.md"
200
200
  ],
201
201
  "docRefs": [
202
- "docs/ZOB_GOAL_TODO_HANDOFF.md",
202
+ "README.md",
203
203
  ".pi/extensions/zob-harness/src/AGENTS.md"
204
204
  ],
205
205
  "noShipNotes": "Explicit Goal TODO handoff to an existing live ZPeer/ZTeam member only; requires active team context, existing TODO refs, and maintainer-provided contextual message. Single/batch handoff records hash-only Goal Room metadata and transient ZPeer delivery; it must not auto-launch teams, persist raw bodies, count stale/offline/append-only refs as success, dispatch anonymous subagents, or mark parent TODOs complete. Receiver returns TODO_CHILD_RESULT.v2 or split/blocker claim for parent/oracle acceptance."
@@ -1026,7 +1026,6 @@
1026
1026
  ".pi/skills/zob-harness/SKILL.md"
1027
1027
  ],
1028
1028
  "docRefs": [
1029
- "reports/context-discovery/design.md",
1030
1029
  "README.md",
1031
1030
  "scripts/README.md"
1032
1031
  ],
@@ -1104,7 +1103,7 @@
1104
1103
  ".pi/skills/zob-compute-profile/SKILL.md"
1105
1104
  ],
1106
1105
  "docRefs": [
1107
- "docs/ZOB_COMPUTE_PROFILE_ROUTING_PLAN.md"
1106
+ ".pi/prompts/compute-preview.md"
1108
1107
  ],
1109
1108
  "noShipNotes": "Metadata-only preview; no child dispatch, network, source writes, or safety/budget bypass."
1110
1109
  },
@@ -1123,7 +1122,7 @@
1123
1122
  ".pi/skills/zob-compute-profile/SKILL.md"
1124
1123
  ],
1125
1124
  "docRefs": [
1126
- "docs/ZOB_COMPUTE_PROFILE_ROUTING_PLAN.md"
1125
+ ".pi/prompts/compute-preview.md"
1127
1126
  ],
1128
1127
  "noShipNotes": "Resolves effective profile and caps only; no live dispatch or approval bypass."
1129
1128
  },
@@ -1142,7 +1141,7 @@
1142
1141
  ".pi/skills/zob-compute-profile/SKILL.md"
1143
1142
  ],
1144
1143
  "docRefs": [
1145
- "docs/ZOB_COMPUTE_PROFILE_ROUTING_PLAN.md"
1144
+ ".pi/prompts/compute-plan.md"
1146
1145
  ],
1147
1146
  "noShipNotes": "Builds metadata-only workflow-shape lanes; no live dispatch, network, source writes, or approval bypass."
1148
1147
  },
@@ -1162,7 +1161,7 @@
1162
1161
  ".pi/skills/zob-oracle/SKILL.md"
1163
1162
  ],
1164
1163
  "docRefs": [
1165
- "docs/ZOB_COMPUTE_PROFILE_ROUTING_PLAN.md"
1164
+ ".pi/prompts/compute-plan.md"
1166
1165
  ],
1167
1166
  "noShipNotes": "Read-only artifact validation; missing caps/oracle/budget evidence remains no-ship."
1168
1167
  },
@@ -1179,7 +1178,7 @@
1179
1178
  ".pi/skills/zob-compute-profile/SKILL.md"
1180
1179
  ],
1181
1180
  "docRefs": [
1182
- "docs/ZOB_COMPUTE_PROFILE_ROUTING_PLAN.md"
1181
+ ".pi/prompts/compute-plan.md"
1183
1182
  ],
1184
1183
  "noShipNotes": "Writes local metadata-only reports under .pi/logs; no child dispatch, network, source writes, or raw bodies."
1185
1184
  },
@@ -1198,7 +1197,7 @@
1198
1197
  ".pi/skills/zob-oracle/SKILL.md"
1199
1198
  ],
1200
1199
  "docRefs": [
1201
- "docs/ZOB_PROJECT_DNA_CODE_KNOWLEDGE_GRAPH_PLAN.md"
1200
+ ".pi/prompts/project-dna.md"
1202
1201
  ],
1203
1202
  "noShipNotes": "Read-only readiness audit from repo-local artifacts; no source scan or backend write."
1204
1203
  },
@@ -1217,7 +1216,7 @@
1217
1216
  ".pi/skills/zob-compute-profile/SKILL.md"
1218
1217
  ],
1219
1218
  "docRefs": [
1220
- "docs/ZOB_PROJECT_DNA_CODE_KNOWLEDGE_GRAPH_PLAN.md"
1219
+ ".pi/prompts/project-dna.md"
1221
1220
  ],
1222
1221
  "noShipNotes": "Builds metadata-only agentic workflow plans from manifest v2; no source scan, child dispatch, network, source write, or backend write."
1223
1222
  },
@@ -1235,7 +1234,7 @@
1235
1234
  ".pi/skills/zob-project-dna/SKILL.md"
1236
1235
  ],
1237
1236
  "docRefs": [
1238
- "docs/ZOB_PROJECT_DNA_CODE_KNOWLEDGE_GRAPH_PLAN.md"
1237
+ ".pi/prompts/project-dna.md"
1239
1238
  ],
1240
1239
  "noShipNotes": "Returns bounded cited context from existing scan artifacts only; no external project scan, no child dispatch, no backend write."
1241
1240
  },
@@ -1254,7 +1253,7 @@
1254
1253
  ".pi/skills/zob-oracle/SKILL.md"
1255
1254
  ],
1256
1255
  "docRefs": [
1257
- "docs/ZOB_PROJECT_DNA_CODE_KNOWLEDGE_GRAPH_PLAN.md"
1256
+ ".pi/prompts/project-dna.md"
1258
1257
  ],
1259
1258
  "noShipNotes": "Metadata-only multi-source context merge; source isolation preserved; durable promotion remains approval-gated."
1260
1259
  },
@@ -1271,7 +1270,7 @@
1271
1270
  ".pi/skills/zob-oracle/SKILL.md"
1272
1271
  ],
1273
1272
  "docRefs": [
1274
- "docs/ZOB_PROJECT_DNA_CODE_KNOWLEDGE_GRAPH_PLAN.md"
1273
+ ".pi/prompts/project-dna.md"
1275
1274
  ],
1276
1275
  "noShipNotes": "Hash-only proposal append; no raw bodies, no auto-promotion, no external knowledge-backend write."
1277
1276
  },
@@ -1404,6 +1403,48 @@
1404
1403
  ],
1405
1404
  "noShipNotes": "Factory-mode only; requires manifest/checkpoint/sentinel validation."
1406
1405
  },
1406
+ {
1407
+ "name": "zob_zteam_hot_add",
1408
+ "family": "zteam/zagent",
1409
+ "modes": [
1410
+ "plan",
1411
+ "implement",
1412
+ "orchestrator",
1413
+ "factory"
1414
+ ],
1415
+ "skillRefs": [
1416
+ ".pi/skills/zob-zagent-creator/SKILL.md",
1417
+ ".pi/skills/zob-coms-v2-live/SKILL.md",
1418
+ ".pi/skills/zob-harness/SKILL.md"
1419
+ ],
1420
+ "docRefs": [
1421
+ ".pi/extensions/zob-harness/src/runtime/tools-zagent.ts",
1422
+ ".pi/extensions/zob-harness/src/runtime/schemas.ts",
1423
+ ".pi/extensions/zob-harness/src/domains/coms/zagents.ts"
1424
+ ],
1425
+ "noShipNotes": "Agent-executable governed ZTeam/ZAgent hot-add. Defaults to plan-only/no-spawn with action=plan and spawnCount=0; action=apply still writes only promptRef/prompt, ZAgent manifest, and ZTeam membership after exact apply_confirmation=<team_id> and never launches. action=launch is explicit and requires exact launch_confirmation_phrase: LAUNCH ZTEAM <team_id> ZAGENT <zagent_id> IN TMUX <session_name>; it requires existing ZTeam/ZAgent manifests, existing membership, existing tmux session, absent target window, safe ids/window/session, and bounded cwd. Launch creates only one scoped tmux new-window in the existing session and send-keys a single ZOB_ZTEAM_ID/ZOB_ZAGENT_ID pi command for the target ZAgent; it never creates sessions, kills/closes/reloads windows, or touches unrelated agents. It polls local ZPeer lease/registry presence with bounded timeout and returns liveProofBlocked unless presence is online. Durable ledgers remain local-only/hash-only/body-free; raw request, generated prompt body, launch command, output, and diffs are not persisted."
1426
+ },
1427
+ {
1428
+ "name": "zob_zteam_remove",
1429
+ "family": "zteam/zagent",
1430
+ "modes": [
1431
+ "plan",
1432
+ "implement",
1433
+ "orchestrator",
1434
+ "factory"
1435
+ ],
1436
+ "skillRefs": [
1437
+ ".pi/skills/zob-zagent-creator/SKILL.md",
1438
+ ".pi/skills/zob-coms-v2-live/SKILL.md",
1439
+ ".pi/skills/zob-harness/SKILL.md"
1440
+ ],
1441
+ "docRefs": [
1442
+ ".pi/extensions/zob-harness/src/runtime/tools-zagent.ts",
1443
+ ".pi/extensions/zob-harness/src/runtime/schemas.ts",
1444
+ ".pi/extensions/zob-harness/src/domains/coms/zagents.ts"
1445
+ ],
1446
+ "noShipNotes": "Agent-executable governed ZTeam/ZAgent remove/delete/close planner. Defaults to plan-only/no-spawn with action=plan, spawnCount=0, closeCount=0, and bodyStored=false/promptBodiesStored=false/outputBodiesStored=false in durable records. action=apply preserves existing file-delete semantics and requires exact confirmation phrase: REMOVE ZTEAM <team_id> ZAGENT <zagent_id> SCOPE <membership|manifest|prompt|manifest_and_prompt>. action=close_tmux is explicit and requires exact close_confirmation_phrase: CLOSE ZTEAM <team_id> ZAGENT <zagent_id> TMUX WINDOW <session_name>; it validates safe team/agent/session/window ids, bounded cwd paths, existing tmux session, and existing target window. It sends only scoped tmux send-keys C-u /quit C-m to the selected window, waits bounded for local ZPeer presence offline/none and/or target window disappearance, and if force_close_window=true may use targeted tmux kill-window only for that selected window. It never creates sessions, kills sessions, uses broad process termination, reloads, closes all, or touches unrelated windows/agents. Durable ledgers remain local-only/hash-only/body-free; raw tmux commands, raw output, diffs, prompts, and secrets are not persisted."
1447
+ },
1407
1448
  {
1408
1449
  "name": "zob_zcommit_run",
1409
1450
  "family": "git/commit",
@@ -1626,7 +1667,7 @@
1626
1667
  "AGENTS.md",
1627
1668
  ".pi/skills/zob-zagent-creator/SKILL.md"
1628
1669
  ],
1629
- "noShipNotes": "Project-local ZTeam bundle UX for .pi/zteams/ only. ZTeam members are full-session Pi/ZPeer identities tied to live coordination, not delegate subagents; launch-plan is plan/metadata only and must not spawn processes; reset sends Pi /new to existing scoped tmux agent windows without close/start. Persisted command metadata must remain hash/body-free."
1670
+ "noShipNotes": "Project-local ZTeam bundle UX for .pi/zteams/ only. ZTeam members are full-session Pi/ZPeer identities tied to live coordination, not delegate subagents; launch-plan and hot-add default to plan/metadata only and must not spawn processes. Hot-add supports explicit team ids or current-context inference from ZOB_ZTEAM_ID, active ZAgent, ZPeer team/active room, or repo conventions. Hot-add apply requires --apply --confirm <team-id>; optional tmux-window launch planning requires --tmux-window --launch-confirm <team-id>; raw natural-language ask is hashed only in durable records; generated ZAgents include promptRef/prompt, explicit tools/paths/gates; live presence checks use local lease/registry evidence and tmux windows are not presence proof; persisted command metadata must remain hash/body-free. Reset sends Pi /new and reload sends Pi /reload to existing scoped tmux agent windows without close/start; quit calls only the scoped launcher close for the current or explicit team."
1630
1671
  },
1631
1672
  {
1632
1673
  "name": "rules_status",
@@ -1669,7 +1710,7 @@
1669
1710
  ],
1670
1711
  "docRefs": [
1671
1712
  "AGENTS.md",
1672
- "docs/ZOB_GOAL_TODO_HANDOFF.md"
1713
+ "README.md"
1673
1714
  ],
1674
1715
  "noShipNotes": "Manages active goal/TODO metadata only. `/goal todo handoff` is explicit team-only ZPeer/ZTeam TODO handoff requiring existing TODO refs and a maintainer-provided contextual message; batch handoff is bounded and parent-owned, stores only hash/body-free Goal Room metadata, uses transient ZPeer delivery, and never auto-launches teams or completes TODOs."
1675
1716
  },
@@ -1686,7 +1727,7 @@
1686
1727
  ],
1687
1728
  "docRefs": [
1688
1729
  "AGENTS.md",
1689
- "docs/ZOB_GOAL_TODO_HANDOFF.md"
1730
+ "README.md"
1690
1731
  ],
1691
1732
  "noShipNotes": "Alias for goal TODO metadata only. `/todo handoff` follows `/goal todo handoff` semantics: explicit team-only ZPeer/ZTeam handoff, custom contextual maintainer message required, hash-only durable metadata, transient live delivery, receiver claim returns for parent/oracle acceptance, and no auto-completion."
1692
1733
  },
@@ -1743,7 +1784,7 @@
1743
1784
  ".pi/skills/zob-compute-profile/SKILL.md"
1744
1785
  ],
1745
1786
  "docRefs": [
1746
- "docs/ZOB_COMPUTE_PROFILE_ROUTING_PLAN.md",
1787
+ ".pi/prompts/compute-preview.md",
1747
1788
  "AGENTS.md"
1748
1789
  ],
1749
1790
  "noShipNotes": "Slash preview/resolve only; metadata-only, no child dispatch, no network, no source writes."
@@ -1758,7 +1799,7 @@
1758
1799
  ".pi/skills/zob-compute-profile/SKILL.md"
1759
1800
  ],
1760
1801
  "docRefs": [
1761
- "docs/ZOB_COMPUTE_PROFILE_ROUTING_PLAN.md",
1802
+ ".pi/prompts/compute-preview.md",
1762
1803
  "AGENTS.md"
1763
1804
  ],
1764
1805
  "noShipNotes": "Alias for /compute; metadata-only and cannot bypass approval/budget/oracle gates."
@@ -1773,7 +1814,7 @@
1773
1814
  ".pi/skills/zob-project-dna/SKILL.md"
1774
1815
  ],
1775
1816
  "docRefs": [
1776
- "docs/ZOB_PROJECT_DNA_CODE_KNOWLEDGE_GRAPH_PLAN.md",
1817
+ ".pi/prompts/project-dna.md",
1777
1818
  "AGENTS.md"
1778
1819
  ],
1779
1820
  "noShipNotes": "Slash readiness/plan/query only; plan is metadata-only from manifest v2, query reads existing repo-local scan artifacts, and neither scans external projects nor writes a backend."
@@ -387,5 +387,5 @@ export {
387
387
  } from "./src/domains/factory/quarantine.js";
388
388
 
389
389
  export default function zobHarness(pi: ExtensionAPI): void {
390
- return zobHarnessRuntime(pi);
390
+ zobHarnessRuntime(pi);
391
391
  }
@@ -53,6 +53,7 @@ export const ZOB_WORKSPACE_CLAIM_TOOLS = ["zob_workspace_claim", "zob_workspace_
53
53
  export const ZOB_WORKER_POOL_TOOLS = ["zob_worker_pool_plan", "zob_worker_pool_status", "zob_worker_pool_owner_request", "zob_worker_pool_owner_decision"] as const;
54
54
  export const ZOB_MERGE_QUEUE_TOOLS = ["zob_merge_candidate_submit", "zob_merge_queue_decide", "zob_merge_queue_list"] as const;
55
55
  export const ZOB_ZCOMMIT_TOOLS = ["zob_zcommit_run"] as const;
56
+ export const ZOB_ZAGENT_TOOLS = ["zob_zteam_hot_add", "zob_zteam_remove"] as const;
56
57
  export const ZOB_DELEGATION_READ_TOOLS = ["zob_delegation_catalog", "get_delegation_run", "await_delegation_run"] as const;
57
58
  export const ZOB_MISSION_CONTROL_READ_TOOLS = ["zob_coms_readiness", "zob_mission_control_snapshot"] as const;
58
59
  export const ZOB_MISSION_CONTROL_PROPOSAL_TOOLS = ["zob_mission_control_propose_command"] as const;
@@ -68,11 +69,11 @@ export const ZOB_AUTONOMOUS_FACTORY_TOOLS = ["zob_autonomous_dry_run", "zob_auto
68
69
 
69
70
  export const MODE_TOOLS: Record<ModeName, string[]> = {
70
71
  explore: ["read", "grep", "find", "ls", "bash", "delegate_agent", "delegate_task", "zob_coms_list", "zob_coms_get", "zob_coms_await", "zpeer_ask", "zob_goal_room_list", "zob_workspace_claims_list", "zob_worker_pool_status", "zob_merge_queue_list", ...ZOB_RUNTIME_GOAL_TOOLS, ...ZOB_DELEGATION_READ_TOOLS, ...ZOB_ZCOMMIT_TOOLS, ...ZOB_AUTONOMOUS_READ_TOOLS, ...ZOB_MISSION_CONTROL_READ_TOOLS, ...ZOB_CONTEXT_READ_TOOLS, ...ZOB_COMPUTE_READ_TOOLS, ...ZOB_PROJECT_DNA_READ_TOOLS],
71
- plan: ["read", "grep", "find", "ls", "delegate_agent", "delegate_task", "orchestrate_run", "chain_run", ...ZOB_RUNTIME_GOAL_TOOLS, ...ZOB_DELEGATION_READ_TOOLS, ...ZOB_ZCOMMIT_TOOLS, ...ZOB_COMS_TOOLS, ...ZOB_GOAL_ROOM_TOOLS, ...ZOB_GOVERNED_REQUEST_TOOLS, ...ZOB_WORKSPACE_CLAIM_TOOLS, ...ZOB_WORKER_POOL_TOOLS, ...ZOB_MERGE_QUEUE_TOOLS, ...ZOB_MISSION_CONTROL_READ_TOOLS, ...ZOB_MISSION_CONTROL_PROPOSAL_TOOLS, ...ZOB_CONTEXT_READ_TOOLS, ...ZOB_CONTEXT_PROPOSAL_TOOLS, ...ZOB_COMPUTE_READ_TOOLS, ...ZOB_COMPUTE_REPORT_TOOLS, ...ZOB_PROJECT_DNA_READ_TOOLS, ...ZOB_PROJECT_DNA_PROPOSAL_TOOLS],
72
- implement: ["read", "bash", "edit", "write", "grep", "find", "ls", "delegate_agent", "delegate_task", ...ZOB_RUNTIME_GOAL_TOOLS, ...ZOB_DELEGATION_READ_TOOLS, ...ZOB_ZCOMMIT_TOOLS, ...ZOB_COMS_TOOLS, ...ZOB_GOAL_ROOM_TOOLS, ...ZOB_GOVERNED_REQUEST_TOOLS, ...ZOB_WORKSPACE_CLAIM_TOOLS, ...ZOB_WORKER_POOL_TOOLS, ...ZOB_MERGE_QUEUE_TOOLS, ...ZOB_MISSION_CONTROL_READ_TOOLS, ...ZOB_MISSION_CONTROL_PROPOSAL_TOOLS, ...ZOB_CONTEXT_READ_TOOLS, ...ZOB_CONTEXT_PROPOSAL_TOOLS, ...ZOB_COMPUTE_READ_TOOLS, ...ZOB_COMPUTE_REPORT_TOOLS, ...ZOB_PROJECT_DNA_READ_TOOLS, ...ZOB_PROJECT_DNA_PROPOSAL_TOOLS],
72
+ plan: ["read", "grep", "find", "ls", "delegate_agent", "delegate_task", "orchestrate_run", "chain_run", ...ZOB_RUNTIME_GOAL_TOOLS, ...ZOB_DELEGATION_READ_TOOLS, ...ZOB_ZCOMMIT_TOOLS, ...ZOB_ZAGENT_TOOLS, ...ZOB_COMS_TOOLS, ...ZOB_GOAL_ROOM_TOOLS, ...ZOB_GOVERNED_REQUEST_TOOLS, ...ZOB_WORKSPACE_CLAIM_TOOLS, ...ZOB_WORKER_POOL_TOOLS, ...ZOB_MERGE_QUEUE_TOOLS, ...ZOB_MISSION_CONTROL_READ_TOOLS, ...ZOB_MISSION_CONTROL_PROPOSAL_TOOLS, ...ZOB_CONTEXT_READ_TOOLS, ...ZOB_CONTEXT_PROPOSAL_TOOLS, ...ZOB_COMPUTE_READ_TOOLS, ...ZOB_COMPUTE_REPORT_TOOLS, ...ZOB_PROJECT_DNA_READ_TOOLS, ...ZOB_PROJECT_DNA_PROPOSAL_TOOLS],
73
+ implement: ["read", "bash", "edit", "write", "grep", "find", "ls", "delegate_agent", "delegate_task", ...ZOB_RUNTIME_GOAL_TOOLS, ...ZOB_DELEGATION_READ_TOOLS, ...ZOB_ZCOMMIT_TOOLS, ...ZOB_ZAGENT_TOOLS, ...ZOB_COMS_TOOLS, ...ZOB_GOAL_ROOM_TOOLS, ...ZOB_GOVERNED_REQUEST_TOOLS, ...ZOB_WORKSPACE_CLAIM_TOOLS, ...ZOB_WORKER_POOL_TOOLS, ...ZOB_MERGE_QUEUE_TOOLS, ...ZOB_MISSION_CONTROL_READ_TOOLS, ...ZOB_MISSION_CONTROL_PROPOSAL_TOOLS, ...ZOB_CONTEXT_READ_TOOLS, ...ZOB_CONTEXT_PROPOSAL_TOOLS, ...ZOB_COMPUTE_READ_TOOLS, ...ZOB_COMPUTE_REPORT_TOOLS, ...ZOB_PROJECT_DNA_READ_TOOLS, ...ZOB_PROJECT_DNA_PROPOSAL_TOOLS],
73
74
  oracle: ["read", "grep", "find", "ls", "bash", "delegate_agent", "delegate_task", "zob_coms_list", "zob_coms_get", "zob_coms_await", "zpeer_ask", "zob_goal_room_list", "zob_workspace_claims_list", "zob_worker_pool_status", "zob_merge_queue_list", ...ZOB_RUNTIME_GOAL_TOOLS, ...ZOB_DELEGATION_READ_TOOLS, ...ZOB_ZCOMMIT_TOOLS, ...ZOB_AUTONOMOUS_READ_TOOLS, ...ZOB_MISSION_CONTROL_READ_TOOLS, ...ZOB_CONTEXT_READ_TOOLS, ...ZOB_COMPUTE_READ_TOOLS, ...ZOB_PROJECT_DNA_READ_TOOLS],
74
- orchestrator: ["read", "grep", "find", "ls", "delegate_agent", "delegate_task", "orchestrate_run", "chain_run", ...ZOB_RUNTIME_GOAL_TOOLS, ...ZOB_DELEGATION_READ_TOOLS, ...ZOB_ZCOMMIT_TOOLS, ...ZOB_COMS_TOOLS, ...ZOB_GOAL_ROOM_TOOLS, ...ZOB_GOVERNED_REQUEST_TOOLS, ...ZOB_WORKSPACE_CLAIM_TOOLS, ...ZOB_WORKER_POOL_TOOLS, ...ZOB_MERGE_QUEUE_TOOLS, ...ZOB_MISSION_CONTROL_READ_TOOLS, ...ZOB_MISSION_CONTROL_PROPOSAL_TOOLS, ...ZOB_CONTEXT_READ_TOOLS, ...ZOB_CONTEXT_PROPOSAL_TOOLS, ...ZOB_COMPUTE_READ_TOOLS, ...ZOB_COMPUTE_REPORT_TOOLS],
75
- factory: ["read", "bash", "edit", "write", "grep", "find", "ls", "delegate_agent", "delegate_task", "orchestrate_run", "factory_run", "factory_quarantine_review", "factory_quarantine_activate", "factory_quarantine_verify_activation", "chain_run", ...ZOB_RUNTIME_GOAL_TOOLS, ...ZOB_DELEGATION_READ_TOOLS, ...ZOB_ZCOMMIT_TOOLS, ...ZOB_AUTONOMOUS_READ_TOOLS, ...ZOB_AUTONOMOUS_FACTORY_TOOLS, ...ZOB_COMS_TOOLS, ...ZOB_GOAL_ROOM_TOOLS, ...ZOB_GOVERNED_REQUEST_TOOLS, ...ZOB_WORKSPACE_CLAIM_TOOLS, ...ZOB_WORKER_POOL_TOOLS, ...ZOB_MERGE_QUEUE_TOOLS, ...ZOB_MISSION_CONTROL_READ_TOOLS, ...ZOB_MISSION_CONTROL_PROPOSAL_TOOLS, ...ZOB_CONTEXT_READ_TOOLS, ...ZOB_CONTEXT_PROPOSAL_TOOLS, ...ZOB_COMPUTE_READ_TOOLS, ...ZOB_COMPUTE_REPORT_TOOLS, ...ZOB_PROJECT_DNA_READ_TOOLS, ...ZOB_PROJECT_DNA_PROPOSAL_TOOLS],
75
+ orchestrator: ["read", "grep", "find", "ls", "delegate_agent", "delegate_task", "orchestrate_run", "chain_run", ...ZOB_RUNTIME_GOAL_TOOLS, ...ZOB_DELEGATION_READ_TOOLS, ...ZOB_ZCOMMIT_TOOLS, ...ZOB_ZAGENT_TOOLS, ...ZOB_COMS_TOOLS, ...ZOB_GOAL_ROOM_TOOLS, ...ZOB_GOVERNED_REQUEST_TOOLS, ...ZOB_WORKSPACE_CLAIM_TOOLS, ...ZOB_WORKER_POOL_TOOLS, ...ZOB_MERGE_QUEUE_TOOLS, ...ZOB_MISSION_CONTROL_READ_TOOLS, ...ZOB_MISSION_CONTROL_PROPOSAL_TOOLS, ...ZOB_CONTEXT_READ_TOOLS, ...ZOB_CONTEXT_PROPOSAL_TOOLS, ...ZOB_COMPUTE_READ_TOOLS, ...ZOB_COMPUTE_REPORT_TOOLS],
76
+ factory: ["read", "bash", "edit", "write", "grep", "find", "ls", "delegate_agent", "delegate_task", "orchestrate_run", "factory_run", "factory_quarantine_review", "factory_quarantine_activate", "factory_quarantine_verify_activation", "chain_run", ...ZOB_RUNTIME_GOAL_TOOLS, ...ZOB_DELEGATION_READ_TOOLS, ...ZOB_ZCOMMIT_TOOLS, ...ZOB_ZAGENT_TOOLS, ...ZOB_AUTONOMOUS_READ_TOOLS, ...ZOB_AUTONOMOUS_FACTORY_TOOLS, ...ZOB_COMS_TOOLS, ...ZOB_GOAL_ROOM_TOOLS, ...ZOB_GOVERNED_REQUEST_TOOLS, ...ZOB_WORKSPACE_CLAIM_TOOLS, ...ZOB_WORKER_POOL_TOOLS, ...ZOB_MERGE_QUEUE_TOOLS, ...ZOB_MISSION_CONTROL_READ_TOOLS, ...ZOB_MISSION_CONTROL_PROPOSAL_TOOLS, ...ZOB_CONTEXT_READ_TOOLS, ...ZOB_CONTEXT_PROPOSAL_TOOLS, ...ZOB_COMPUTE_READ_TOOLS, ...ZOB_COMPUTE_REPORT_TOOLS, ...ZOB_PROJECT_DNA_READ_TOOLS, ...ZOB_PROJECT_DNA_PROPOSAL_TOOLS],
76
77
  // Vanilla is handled specially by applyMode: all currently available Pi tools are enabled.
77
78
  vanilla: [],
78
79
  };