zob-harness 0.9.0 → 0.9.2

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 (84) hide show
  1. package/.pi/capabilities/zob-public-runtime-capabilities.json +16 -17
  2. package/.pi/extensions/zob-harness/index.ts +1 -1
  3. package/.pi/extensions/zob-harness/src/domains/autonomy/autonomous-runtime/dry-run.ts +1107 -0
  4. package/.pi/extensions/zob-harness/src/domains/autonomy/autonomous-runtime/report-writers.ts +325 -0
  5. package/.pi/extensions/zob-harness/src/domains/autonomy/autonomous-runtime/smoke-run.ts +1286 -0
  6. package/.pi/extensions/zob-harness/src/domains/autonomy/autonomous-runtime/types.ts +30 -0
  7. package/.pi/extensions/zob-harness/src/domains/autonomy/autonomous-runtime/validation.ts +184 -0
  8. package/.pi/extensions/zob-harness/src/domains/autonomy/autonomous-runtime.ts +4 -2912
  9. package/.pi/extensions/zob-harness/src/domains/compute/compute-profile.ts +2 -1
  10. package/.pi/extensions/zob-harness/src/domains/coms/coms-v2/registry.ts +24 -3
  11. package/.pi/extensions/zob-harness/src/domains/coms/coms-v2/types.ts +1 -0
  12. package/.pi/extensions/zob-harness/src/domains/coms/coms-v2/zpeer.ts +5 -3
  13. package/.pi/extensions/zob-harness/src/domains/delegation/child-runner.ts +28 -3
  14. package/.pi/extensions/zob-harness/src/domains/goal/goal-todos/constants.ts +19 -0
  15. package/.pi/extensions/zob-harness/src/domains/goal/goal-todos/formatting.ts +148 -0
  16. package/.pi/extensions/zob-harness/src/domains/goal/goal-todos/normalize.ts +476 -0
  17. package/.pi/extensions/zob-harness/src/domains/goal/goal-todos/operations.ts +393 -0
  18. package/.pi/extensions/zob-harness/src/domains/goal/goal-todos/parsing.ts +277 -0
  19. package/.pi/extensions/zob-harness/src/domains/goal/goal-todos/reducer.ts +110 -0
  20. package/.pi/extensions/zob-harness/src/domains/goal/goal-todos.ts +6 -1429
  21. package/.pi/extensions/zob-harness/src/domains/governance/governed-requests.ts +3 -1
  22. package/.pi/extensions/zob-harness/src/domains/governance/merge-queue.ts +3 -1
  23. package/.pi/extensions/zob-harness/src/domains/governance/sandbox/helpers.ts +124 -0
  24. package/.pi/extensions/zob-harness/src/domains/governance/sandbox/runners.ts +444 -0
  25. package/.pi/extensions/zob-harness/src/domains/governance/sandbox/simulation.ts +569 -0
  26. package/.pi/extensions/zob-harness/src/domains/governance/sandbox/types.ts +127 -0
  27. package/.pi/extensions/zob-harness/src/domains/governance/sandbox/validation.ts +273 -0
  28. package/.pi/extensions/zob-harness/src/domains/governance/sandbox.ts +4 -1508
  29. package/.pi/extensions/zob-harness/src/domains/governance/worker-pool.ts +3 -1
  30. package/.pi/extensions/zob-harness/src/domains/governance/workspace-claims.ts +3 -1
  31. package/.pi/extensions/zob-harness/src/domains/orchestration/room.ts +8 -2
  32. package/.pi/extensions/zob-harness/src/domains/promotion/coms.ts +8 -1
  33. package/.pi/extensions/zob-harness/src/runtime/commands/autonomy.ts +188 -0
  34. package/.pi/extensions/zob-harness/src/runtime/commands/compute.ts +165 -0
  35. package/.pi/extensions/zob-harness/src/runtime/commands/daemon.ts +191 -0
  36. package/.pi/extensions/zob-harness/src/runtime/commands/delegates.ts +47 -0
  37. package/.pi/extensions/zob-harness/src/runtime/commands/goal.ts +70 -0
  38. package/.pi/extensions/zob-harness/src/runtime/commands/intent.ts +383 -0
  39. package/.pi/extensions/zob-harness/src/runtime/commands/misc.ts +229 -0
  40. package/.pi/extensions/zob-harness/src/runtime/commands/project-dna.ts +130 -0
  41. package/.pi/extensions/zob-harness/src/runtime/commands/types.ts +3 -0
  42. package/.pi/extensions/zob-harness/src/runtime/commands/zcommit.ts +145 -0
  43. package/.pi/extensions/zob-harness/src/runtime/commands/zlive.ts +1606 -0
  44. package/.pi/extensions/zob-harness/src/runtime/commands/zmode.ts +42 -0
  45. package/.pi/extensions/zob-harness/src/runtime/commands.ts +26 -3109
  46. package/.pi/extensions/zob-harness/src/runtime/events.ts +67 -33
  47. package/.pi/extensions/zob-harness/src/runtime/goal-runtime/commands.ts +194 -0
  48. package/.pi/extensions/zob-harness/src/runtime/goal-runtime/events.ts +81 -0
  49. package/.pi/extensions/zob-harness/src/runtime/goal-runtime/state.ts +662 -0
  50. package/.pi/extensions/zob-harness/src/runtime/goal-runtime/tools.ts +1005 -0
  51. package/.pi/extensions/zob-harness/src/runtime/goal-runtime.ts +5 -1949
  52. package/.pi/extensions/zob-harness/src/runtime/tools-delegation/helpers.ts +786 -0
  53. package/.pi/extensions/zob-harness/src/runtime/tools-delegation/register.ts +1120 -0
  54. package/.pi/extensions/zob-harness/src/runtime/tools-delegation/types.ts +77 -0
  55. package/.pi/extensions/zob-harness/src/runtime/tools-delegation.ts +1 -1904
  56. package/.pi/extensions/zob-harness/src/runtime/zob-intro.ts +46 -15
  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/README.md +29 -8
  61. package/package.json +14 -5
  62. package/scripts/git-ops/commit-policy-smoke.mjs +33 -6
  63. package/scripts/goal-todo/child-goal-ref-smoke.mjs +30 -3
  64. package/scripts/goal-todo/handoff-static-smoke.mjs +31 -3
  65. package/scripts/harness-intake/lib/cli-io.mjs +89 -0
  66. package/scripts/harness-intake/lib/constants.mjs +59 -0
  67. package/scripts/harness-intake/lib/infer-spec.mjs +127 -0
  68. package/scripts/harness-intake/lib/profiles.mjs +458 -0
  69. package/scripts/harness-intake/lib/run-init.mjs +307 -0
  70. package/scripts/harness-intake/lib/scan.mjs +266 -0
  71. package/scripts/harness-intake/lib/tmux.mjs +92 -0
  72. package/scripts/harness-intake/lib/validate.mjs +152 -0
  73. package/scripts/harness-intake/lib.mjs +8 -1521
  74. package/scripts/harness-switch/static-smoke.mjs +1 -1
  75. package/scripts/model-catalog/validate-economy.mjs +3 -1
  76. package/scripts/model-catalog/validate.mjs +3 -1
  77. package/scripts/project-dna/scan/scan.mjs +5 -2
  78. package/scripts/project-dna/scan/validate-scan-artifacts.mjs +3 -1
  79. package/scripts/project-dna/validation/validate-ontology.mjs +3 -1
  80. package/scripts/project-dna/validation/validate-scaffold.mjs +2 -2
  81. package/scripts/zagent-static-smoke.mjs +30 -2
  82. package/scripts/zpeer-local-e2e-smoke.mjs +18 -0
  83. package/scripts/zpeer-static-smoke.mjs +40 -5
  84. package/scripts/zteam-hot-add/smoke.mjs +30 -2
@@ -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
  },
@@ -1711,7 +1710,7 @@
1711
1710
  ],
1712
1711
  "docRefs": [
1713
1712
  "AGENTS.md",
1714
- "docs/ZOB_GOAL_TODO_HANDOFF.md"
1713
+ "README.md"
1715
1714
  ],
1716
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."
1717
1716
  },
@@ -1728,7 +1727,7 @@
1728
1727
  ],
1729
1728
  "docRefs": [
1730
1729
  "AGENTS.md",
1731
- "docs/ZOB_GOAL_TODO_HANDOFF.md"
1730
+ "README.md"
1732
1731
  ],
1733
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."
1734
1733
  },
@@ -1785,7 +1784,7 @@
1785
1784
  ".pi/skills/zob-compute-profile/SKILL.md"
1786
1785
  ],
1787
1786
  "docRefs": [
1788
- "docs/ZOB_COMPUTE_PROFILE_ROUTING_PLAN.md",
1787
+ ".pi/prompts/compute-preview.md",
1789
1788
  "AGENTS.md"
1790
1789
  ],
1791
1790
  "noShipNotes": "Slash preview/resolve only; metadata-only, no child dispatch, no network, no source writes."
@@ -1800,7 +1799,7 @@
1800
1799
  ".pi/skills/zob-compute-profile/SKILL.md"
1801
1800
  ],
1802
1801
  "docRefs": [
1803
- "docs/ZOB_COMPUTE_PROFILE_ROUTING_PLAN.md",
1802
+ ".pi/prompts/compute-preview.md",
1804
1803
  "AGENTS.md"
1805
1804
  ],
1806
1805
  "noShipNotes": "Alias for /compute; metadata-only and cannot bypass approval/budget/oracle gates."
@@ -1815,7 +1814,7 @@
1815
1814
  ".pi/skills/zob-project-dna/SKILL.md"
1816
1815
  ],
1817
1816
  "docRefs": [
1818
- "docs/ZOB_PROJECT_DNA_CODE_KNOWLEDGE_GRAPH_PLAN.md",
1817
+ ".pi/prompts/project-dna.md",
1819
1818
  "AGENTS.md"
1820
1819
  ],
1821
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
  }