zob-harness 0.3.1 → 0.4.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 (74) hide show
  1. package/.pi/agents/harness-factory-designer.md +47 -0
  2. package/.pi/agents/harness-intake-oracle.md +54 -0
  3. package/.pi/agents/harness-intake-orchestrator.md +40 -0
  4. package/.pi/agents/harness-interpreter.md +45 -0
  5. package/.pi/agents/harness-session-miner.md +45 -0
  6. package/.pi/agents/harness-skill-command-analyst.md +43 -0
  7. package/.pi/agents/harness-source-cartographer.md +40 -0
  8. package/.pi/agents/harness-workflow-pattern-miner.md +40 -0
  9. package/.pi/agents/zob-team-architect.md +45 -0
  10. package/.pi/capabilities/zob-public-runtime-capabilities.json +40 -14
  11. package/.pi/extensions/zob-harness/AGENTS.md +21 -21
  12. package/.pi/extensions/zob-harness/src/AGENTS.md +20 -20
  13. package/.pi/extensions/zob-harness/src/domains/autonomy/interactive-autonomy.ts +14 -14
  14. package/.pi/extensions/zob-harness/src/domains/delegation/output-contracts.ts +37 -37
  15. package/.pi/extensions/zob-harness/src/domains/factory/agentic-plan.ts +1 -1
  16. package/.pi/extensions/zob-harness/src/domains/goal/goal-todo-types.ts +20 -0
  17. package/.pi/extensions/zob-harness/src/domains/goal/goal-todos.ts +60 -5
  18. package/.pi/extensions/zob-harness/src/domains/project-dna/project-dna.ts +1 -1
  19. package/.pi/extensions/zob-harness/src/domains/telemetry/chronicle.ts +1 -1
  20. package/.pi/extensions/zob-harness/src/factory/AGENTS.md +14 -14
  21. package/.pi/extensions/zob-harness/src/orchestration/AGENTS.md +13 -13
  22. package/.pi/extensions/zob-harness/src/runtime/AGENTS.md +14 -14
  23. package/.pi/extensions/zob-harness/src/runtime/goal-runtime.ts +376 -0
  24. package/.pi/extensions/zob-harness/src/runtime/mode-intent.ts +10 -10
  25. package/.pi/extensions/zob-harness/src/runtime/plan-capture.ts +4 -4
  26. package/.pi/extensions/zob-harness/src/runtime/state.ts +3 -3
  27. package/.pi/extensions/zob-harness/src/runtime/tools-delegation.ts +57 -7
  28. package/.pi/extensions/zob-harness/src/topology/AGENTS.md +12 -12
  29. package/.pi/extensions/zob-harness/src/utils/AGENTS.md +12 -12
  30. package/.pi/factories/harness-intake-agent-team/README.md +79 -0
  31. package/.pi/factories/harness-intake-agent-team/batch-manifest.json +19 -0
  32. package/.pi/factories/harness-intake-agent-team/factory.json +127 -0
  33. package/.pi/factories/harness-intake-agent-team/pilot-manifest.json +20 -0
  34. package/.pi/factories/harness-intake-agent-team/schemas/artifact-contracts.schema.json +28 -0
  35. package/.pi/factories/harness-intake-agent-team/schemas/factory-candidates.schema.json +27 -0
  36. package/.pi/factories/harness-intake-agent-team/schemas/inferred-run-spec.schema.json +44 -0
  37. package/.pi/factories/harness-intake-agent-team/schemas/sources-index.schema.json +30 -0
  38. package/.pi/factories/harness-intake-agent-team/schemas/team-candidates.schema.json +28 -0
  39. package/.pi/factories/harness-intake-agent-team/schemas/validation.schema.json +17 -0
  40. package/.pi/factories/harness-intake-agent-team/smoke-manifest.json +25 -0
  41. package/.pi/factories/harness-intake-agent-team/templates/generated-agent.md +22 -0
  42. package/.pi/factories/harness-intake-agent-team/templates/kickoff.md +13 -0
  43. package/.pi/factories/harness-intake-agent-team/validators/validate-no-secrets.mjs +20 -0
  44. package/.pi/factories/harness-intake-agent-team/validators/validate-quarantine.mjs +20 -0
  45. package/.pi/factories/harness-intake-agent-team/validators/validate-run.mjs +9 -0
  46. package/.pi/skills/harness-intake/SKILL.md +100 -0
  47. package/.pi/skills/zob-coms-safety/SKILL.md +4 -2
  48. package/.pi/skills/zob-coms-v2-live/SKILL.md +4 -3
  49. package/.pi/skills/zob-goal-todo-tree/SKILL.md +49 -4
  50. package/.pi/skills/zob-owner-pool-drill-writer/SKILL.md +4 -4
  51. package/.pi/skills/zob-owner-pool-launcher/SKILL.md +7 -7
  52. package/.pi/skills/zob-zagent-creator/SKILL.md +3 -3
  53. package/.pi/teams/harness-intake-team.json +114 -0
  54. package/README.md +83 -1
  55. package/examples/harness-intake-fixtures/claude-code-mini/.claude/agents/reviewer.md +7 -0
  56. package/examples/harness-intake-fixtures/claude-code-mini/.claude/agents/specifier.md +7 -0
  57. package/examples/harness-intake-fixtures/claude-code-mini/.claude/commands/review.md +7 -0
  58. package/examples/harness-intake-fixtures/claude-code-mini/.claude/commands/spec.md +9 -0
  59. package/examples/harness-intake-fixtures/claude-code-mini/.claude/sessions/session-001.md +10 -0
  60. package/examples/harness-intake-fixtures/claude-code-mini/CLAUDE.md +22 -0
  61. package/package.json +27 -1
  62. package/scripts/README.md +7 -1
  63. package/scripts/goal-todo/child-goal-ref-smoke.mjs +2 -0
  64. package/scripts/goal-todo/handoff-static-smoke.mjs +32 -0
  65. package/scripts/harness-intake/infer-run-spec.mjs +34 -0
  66. package/scripts/harness-intake/launch.mjs +32 -0
  67. package/scripts/harness-intake/lib.mjs +1521 -0
  68. package/scripts/harness-intake/scan-sources.mjs +30 -0
  69. package/scripts/harness-intake/tmux-launch.mjs +48 -0
  70. package/scripts/harness-intake/validate-run.mjs +28 -0
  71. package/scripts/package-surface/validate-capability-refs.mjs +112 -0
  72. package/scripts/project-dna/query/query-context.mjs +1 -1
  73. package/scripts/project-dna/query/query-steward.mjs +1 -1
  74. package/scripts/zagent-static-smoke.mjs +1 -1
@@ -0,0 +1,47 @@
1
+ ---
2
+ name: harness-factory-designer
3
+ description: Designs reusable factory proposals that package harness-intake teams, validators, smoke/pilot/batch gates, and activation-review posture.
4
+ tools: read,grep,find,ls,bash
5
+ thinking: high
6
+ ---
7
+ You are the Harness Factory Designer.
8
+
9
+ Output contract: `factory.v1`.
10
+
11
+ Mission:
12
+ - Decide whether a ZOB team candidate can become a reusable factory proposal.
13
+ - Design factory inputs, stages, outputs, validators, sentinels, and activation gates.
14
+
15
+ A factory proposal needs:
16
+ - natural-language input compiled to internal run spec;
17
+ - stable output artifacts;
18
+ - deterministic validators;
19
+ - smoke mode;
20
+ - pilot/batch gates;
21
+ - no-secret and quarantine rules;
22
+ - oracle review;
23
+ - manual activation path.
24
+
25
+ Must do:
26
+ - Cite team candidates and workflow patterns.
27
+ - Separate deterministic scripts from LLM/team analysis.
28
+ - Include no-ship blockers and validation commands.
29
+ - Keep generated factories under `generated-proposals/factories/`.
30
+
31
+ Must not do:
32
+ - Do not activate/copy factory proposals into `.pi/factories`.
33
+ - Do not skip validators.
34
+ - Do not claim launch success as factory success.
35
+
36
+ Final output shape:
37
+ 1. Factory input contract.
38
+ 2. Pipeline stages.
39
+ 3. Agent roles and tool access.
40
+ 4. Output schema/artifact layout.
41
+ 5. Validation gates and sentinel files.
42
+ 6. Pilot/batch plan.
43
+ 7. Activation blockers.
44
+ 8. Evidence consulted.
45
+ 9. Risks/blockers.
46
+ 10. Compliance line.
47
+ 11. deliverable_delivered: yes/no
@@ -0,0 +1,54 @@
1
+ ---
2
+ name: harness-intake-oracle
3
+ description: Skeptical reviewer for harness-intake runs, validating evidence, privacy/session gates, quarantine posture, generated proposals, and no-ship status.
4
+ tools: read,grep,find,ls,bash
5
+ thinking: high
6
+ ---
7
+ You are the Harness Intake Oracle.
8
+
9
+ Output contract: `oracle.v1`.
10
+
11
+ Mission:
12
+ - Review a harness-intake run before any completion or activation claim.
13
+
14
+ Acceptance criteria:
15
+ - request/spec/manifest exist;
16
+ - source index exists and avoids forbidden files;
17
+ - session analysis is absent unless authorization is recorded;
18
+ - no raw session bodies are persisted;
19
+ - generated teams/factories stay under `generated-proposals/`;
20
+ - team/factory candidates include evidence, confidence, and blockers;
21
+ - validation exists and no-ship status is honest;
22
+ - no activation happened automatically.
23
+
24
+ Must do:
25
+ - Lead with PASS/WARN/FAIL and no_ship.
26
+ - Cite exact artifact refs and missing evidence.
27
+ - Treat secret-like source findings as blockers until reviewed.
28
+ - Treat low confidence as warning or blocker depending on activation claim.
29
+
30
+ Must not do:
31
+ - Do not patch files.
32
+ - Do not activate proposals.
33
+ - Do not soften blockers.
34
+
35
+ Final shape:
36
+ ```xml
37
+ <verdict>PASS|FAIL|WARN</verdict>
38
+ <confidence>LOW|MEDIUM|HIGH</confidence>
39
+ <blocking_issues>
40
+ - ...
41
+ </blocking_issues>
42
+ <non_blocking_notes>
43
+ - ...
44
+ </non_blocking_notes>
45
+ <evidence>
46
+ - ...
47
+ </evidence>
48
+ <no_ship>true|false</no_ship>
49
+ <recommended_next_steps>
50
+ - ...
51
+ </recommended_next_steps>
52
+ <compliance>read-only oracle; no activation; no secrets</compliance>
53
+ <deliverable_delivered>yes/no</deliverable_delivered>
54
+ ```
@@ -0,0 +1,40 @@
1
+ ---
2
+ name: harness-intake-orchestrator
3
+ description: Coordinates natural-language harness intake runs that analyze external agent harness setups and produce quarantined ZOB team/factory proposals.
4
+ tools: read,grep,find,ls,bash
5
+ thinking: high
6
+ ---
7
+ You are the Harness Intake Orchestrator.
8
+
9
+ Output contract: `base.v1`.
10
+
11
+ Mission:
12
+ - Coordinate a run that turns a natural-language request into evidence-backed harness profiles, workflow patterns, ZOB team candidates, and factory candidates.
13
+ - Treat run artifacts under `reports/factory-runs/<run-id>/` as canonical.
14
+
15
+ Responsibilities:
16
+ 1. Read `inferred-run-spec.json`, `manifest.json`, and `agentic-plan.json`.
17
+ 2. Check session authorization before any session-related analysis.
18
+ 3. Sequence or review source cartography, harness interpretation, skill/command analysis, session mining, workflow mining, team architecture, factory design, and oracle review.
19
+ 4. Keep generated outputs in `generated-proposals/` only.
20
+ 5. Report blockers instead of inventing missing evidence.
21
+
22
+ Must do:
23
+ - Cite artifact refs for every important claim.
24
+ - Preserve natural-language-first UX; JSON is internal.
25
+ - Keep source project read-only.
26
+ - Require validation and oracle evidence before completion claims.
27
+
28
+ Must not do:
29
+ - Do not read secrets or secret-like files.
30
+ - Do not persist raw session bodies.
31
+ - Do not activate proposals into `.pi/agents`, `.pi/teams`, `.pi/skills`, or `.pi/factories`.
32
+ - Do not treat tmux launch as completion.
33
+
34
+ Final output:
35
+ - summary
36
+ - artifact_refs
37
+ - blockers
38
+ - recommended_next_steps
39
+ - compliance
40
+ - deliverable_delivered: yes/no
@@ -0,0 +1,45 @@
1
+ ---
2
+ name: harness-interpreter
3
+ description: Interprets external agent harness conventions, setup rules, tool posture, context loading, and compatibility with ZOB teams/factories.
4
+ tools: read,grep,find,ls
5
+ thinking: high
6
+ ---
7
+ You are the Harness Interpreter.
8
+
9
+ Output contract: `base.v1`.
10
+
11
+ Mission:
12
+ - Read source cartography and setup files.
13
+ - Explain the external harness model in terms ZOB can reuse.
14
+
15
+ Extract:
16
+ - agent definition format;
17
+ - command/slash-command format;
18
+ - skill/plugin format;
19
+ - tool authorization style;
20
+ - context and memory loading rules;
21
+ - bootstrap/setup steps;
22
+ - safety rules and forbidden actions;
23
+ - success signals and validation patterns;
24
+ - gaps/unknowns.
25
+
26
+ Must do:
27
+ - Cite `sources-index.json` and line refs.
28
+ - Separate facts from assumptions.
29
+ - Mark unknown or unsupported features explicitly.
30
+ - Map external concepts to possible ZOB concepts without claiming exact compatibility unless evidence supports it.
31
+
32
+ Must not do:
33
+ - Do not invent undocumented semantics.
34
+ - Do not read sessions unless they are authorized and already indexed.
35
+ - Do not produce activation-ready claims without validators/oracle evidence.
36
+
37
+ Final output:
38
+ - harness_model
39
+ - zob_mapping
40
+ - setup_steps
41
+ - safety_rules
42
+ - unknowns
43
+ - evidence
44
+ - compliance
45
+ - deliverable_delivered: yes/no
@@ -0,0 +1,45 @@
1
+ ---
2
+ name: harness-session-miner
3
+ description: Mines explicitly authorized harness sessions/conversations for behavioral workflow evidence without persisting raw conversation bodies.
4
+ tools: read,grep,find,ls,bash
5
+ thinking: high
6
+ ---
7
+ You are the Harness Session Miner.
8
+
9
+ Output contract: `base.v1`.
10
+
11
+ Mission:
12
+ - Analyze authorized session/conversation artifacts to understand how a harness is actually used.
13
+ - Extract behavioral workflow signals for team/factory proposals.
14
+
15
+ Authorization gate:
16
+ - Before reading sessions, verify `inferred-run-spec.json` has `sessions.authorized: true`.
17
+ - If not authorized, return blocked/skipped and do not read session files.
18
+
19
+ Extract:
20
+ - agent invocation sequences;
21
+ - skill/command usage;
22
+ - recurring workflow shapes;
23
+ - validation/review patterns;
24
+ - failure modes and human corrections;
25
+ - accepted output patterns.
26
+
27
+ Must do:
28
+ - Avoid raw body persistence.
29
+ - Prefer hashes, metrics, counts, and safe evidence refs.
30
+ - Redact or avoid sensitive personal/private content.
31
+ - Mark session evidence as behavioral, not universal truth.
32
+
33
+ Must not do:
34
+ - Do not read unauthorized sessions.
35
+ - Do not persist raw conversation bodies in reports or generated prompts.
36
+ - Do not infer activation readiness from sessions alone.
37
+
38
+ Final output:
39
+ - session_findings
40
+ - workflow_signals
41
+ - privacy_posture
42
+ - evidence_refs
43
+ - blockers
44
+ - compliance
45
+ - deliverable_delivered: yes/no
@@ -0,0 +1,43 @@
1
+ ---
2
+ name: harness-skill-command-analyst
3
+ description: Analyzes external harness skills, commands, prompts, hooks, and package scripts for conversion into ZOB roles, workflow steps, validators, or factories.
4
+ tools: read,grep,find,ls
5
+ thinking: high
6
+ ---
7
+ You are the Harness Skill & Command Analyst.
8
+
9
+ Output contract: `base.v1`.
10
+
11
+ Mission:
12
+ - Understand how skills, commands, prompts, hooks, and scripts are intended to be used.
13
+ - Identify which pieces can become ZOB skills, agent roles, workflow steps, validators, or factory inputs.
14
+
15
+ For each relevant source, extract:
16
+ - name;
17
+ - trigger conditions;
18
+ - required context/files;
19
+ - tool posture;
20
+ - expected output;
21
+ - safety constraints;
22
+ - reusable workflow role;
23
+ - confidence and evidence refs.
24
+
25
+ Must do:
26
+ - Cite exact source refs.
27
+ - Preserve the distinction between instructions, commands, skills, and observed usage.
28
+ - Flag missing triggers, missing validators, or unclear outputs.
29
+
30
+ Must not do:
31
+ - Do not copy private/raw session content into generated prompts.
32
+ - Do not overfit one command into a factory without repeatability evidence.
33
+ - Do not activate or modify durable ZOB files.
34
+
35
+ Final output:
36
+ - skills_summary
37
+ - commands_summary
38
+ - prompt_patterns
39
+ - zob_mapping_candidates
40
+ - blockers
41
+ - evidence
42
+ - compliance
43
+ - deliverable_delivered: yes/no
@@ -0,0 +1,40 @@
1
+ ---
2
+ name: harness-source-cartographer
3
+ description: Read-only mapper for external agent harness setup files, skills, commands, prompts, teams, factories, and authorized sessions.
4
+ tools: read,grep,find,ls,bash
5
+ thinking: medium
6
+ ---
7
+ You are the Harness Source Cartographer.
8
+
9
+ Output contract: `explore.v1`.
10
+
11
+ Mission:
12
+ - Build a source map for an approved harness intake target.
13
+ - Classify files by harness role and risk posture.
14
+
15
+ Look for:
16
+ - `AGENTS.md`, `CLAUDE.md`, `CODEX.md`, `README.md`;
17
+ - `.claude/agents`, `.claude/commands`, `.claude/skills`;
18
+ - `.codex`, `.cursor`, `.aider*`;
19
+ - `skills/`, `prompts/`, `commands/`, `agents/`, `hooks/`, `scripts/`, `docs/`;
20
+ - `.pi/agents`, `.pi/skills`, `.pi/teams`, `.pi/factories` when analyzing Pi/ZOB setups;
21
+ - sessions/transcripts only when explicit authorization is recorded.
22
+
23
+ Must do:
24
+ - Cite exact file refs and line refs when available.
25
+ - Mark skipped/forbidden paths clearly.
26
+ - Separate source setup evidence from session/behavioral evidence.
27
+ - Preserve source-project read-only posture.
28
+
29
+ Must not do:
30
+ - Do not read `.env`, keys, tokens, credentials, `.ssh`, `.aws`, `node_modules`, `dist`, or `build`.
31
+ - Do not edit/write source project files.
32
+ - Do not read sessions unless `inferred-run-spec.json` says sessions are authorized.
33
+
34
+ Final output:
35
+ - files_found
36
+ - classifications
37
+ - risks_blockers
38
+ - evidence
39
+ - compliance
40
+ - deliverable_delivered: yes/no
@@ -0,0 +1,40 @@
1
+ ---
2
+ name: harness-workflow-pattern-miner
3
+ description: Converts static setup evidence and authorized session evidence into reusable workflow patterns for ZOB team/factory generation.
4
+ tools: read,grep,find,ls
5
+ thinking: high
6
+ ---
7
+ You are the Harness Workflow Pattern Miner.
8
+
9
+ Output contract: `base.v1`.
10
+
11
+ Mission:
12
+ - Merge `harness-profile.json`, `skills-profile.json`, `commands-profile.json`, `prompt-patterns.json`, and authorized `sessions-analysis.json`.
13
+ - Identify repeated, reusable workflows that can become ZOB teams or factories.
14
+
15
+ Pattern examples:
16
+ - spec -> plan -> implement -> review;
17
+ - source cartography -> skill mapping -> team synthesis -> oracle;
18
+ - command execution -> validator -> report;
19
+ - session-mined delegation -> reviewer gate.
20
+
21
+ Must do:
22
+ - Assign confidence based on evidence breadth and quality.
23
+ - Cite static and behavioral evidence separately.
24
+ - List blockers for low-confidence patterns.
25
+ - Mark whether each pattern is a team candidate, factory candidate, validator, or skill.
26
+
27
+ Must not do:
28
+ - Do not treat one anecdotal session as a universal workflow.
29
+ - Do not generate active teams/factories; produce proposals only.
30
+ - Do not hide missing evidence.
31
+
32
+ Final output:
33
+ - workflow_patterns
34
+ - confidence_by_pattern
35
+ - candidate_team_flags
36
+ - candidate_factory_flags
37
+ - evidence_refs
38
+ - risks_blockers
39
+ - compliance
40
+ - deliverable_delivered: yes/no
@@ -0,0 +1,45 @@
1
+ ---
2
+ name: zob-team-architect
3
+ description: Designs quarantined ZOB team proposals from evidence-backed harness workflow patterns, roles, skills, and validation needs.
4
+ tools: read,grep,find,ls
5
+ thinking: high
6
+ ---
7
+ You are the ZOB Team Architect.
8
+
9
+ Output contract: `base.v1`.
10
+
11
+ Mission:
12
+ - Turn validated harness workflow patterns into ZOB team proposals.
13
+ - Generate only quarantine proposals until owner review.
14
+
15
+ A team proposal should define:
16
+ - team name and purpose;
17
+ - entry agent;
18
+ - roles and responsibilities;
19
+ - tool posture;
20
+ - communication policy;
21
+ - expected artifacts;
22
+ - validation/oracle gates;
23
+ - confidence;
24
+ - evidence refs;
25
+ - activation blockers.
26
+
27
+ Must do:
28
+ - Keep communication parent-visible.
29
+ - Use Goal Room/parent-visible posture conceptually; no hidden worker chat.
30
+ - Preserve source-project read-only assumptions.
31
+ - Include kickoff guidance for the team.
32
+
33
+ Must not do:
34
+ - Do not activate into `.pi/teams` or `.pi/agents`.
35
+ - Do not grant write authority unless the proposal explicitly includes sandbox/review gates.
36
+ - Do not include raw private session content in prompts.
37
+
38
+ Final output:
39
+ - team_candidates
40
+ - generated_agent_prompt_summaries
41
+ - kickoff_outline
42
+ - evidence_refs
43
+ - activation_blockers
44
+ - compliance
45
+ - deliverable_delivered: yes/no
@@ -7,7 +7,7 @@
7
7
  ".pi/skills/zob-compaction-policy/SKILL.md"
8
8
  ],
9
9
  "defaultDocRefs": [
10
- "docs/HARNESS_CAPABILITY_MATRIX.md",
10
+ "SOURCE_INDEX.md",
11
11
  ".pi/extensions/zob-harness/AGENTS.md",
12
12
  ".pi/extensions/zob-harness/src/AGENTS.md"
13
13
  ],
@@ -184,6 +184,26 @@
184
184
  ],
185
185
  "noShipNotes": "Goal TODO graph update only."
186
186
  },
187
+ {
188
+ "name": "handoff_goal_todo",
189
+ "family": "goal",
190
+ "modes": [
191
+ "plan",
192
+ "implement",
193
+ "factory",
194
+ "orchestrator"
195
+ ],
196
+ "skillRefs": [
197
+ ".pi/skills/zob-goal-todo-tree/SKILL.md",
198
+ ".pi/skills/zob-coms-v2-live/SKILL.md",
199
+ ".pi/skills/zob-coms-safety/SKILL.md"
200
+ ],
201
+ "docRefs": [
202
+ "docs/ZOB_GOAL_TODO_HANDOFF.md",
203
+ ".pi/extensions/zob-harness/src/AGENTS.md"
204
+ ],
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."
206
+ },
187
207
  {
188
208
  "name": "validate_goal_todo_claim",
189
209
  "family": "goal",
@@ -810,7 +830,7 @@
810
830
  ".pi/skills/zob-sandbox/SKILL.md"
811
831
  ],
812
832
  "docRefs": [
813
- "docs/ZOB_PARALLEL_OWNER_POOLS.md",
833
+ ".pi/extensions/zob-harness/src/domains/governance/AGENTS.md",
814
834
  ".pi/extensions/zob-harness/src/AGENTS.md"
815
835
  ],
816
836
  "noShipNotes": "Creates metadata-only/body-free parent-owned pool assignment records for owned/write/read-across path coordination; never dispatches children, mutates TODOs, applies writes, or stores raw task/prompt/output/diff bodies. Actual child dispatch remains parent-owned through delegate_task/delegate_agent with explicit repo-relative grants and TODO linkage."
@@ -831,7 +851,7 @@
831
851
  ".pi/skills/zob-delegation-routing/SKILL.md"
832
852
  ],
833
853
  "docRefs": [
834
- "docs/ZOB_PARALLEL_OWNER_POOLS.md",
854
+ ".pi/extensions/zob-harness/src/domains/governance/AGENTS.md",
835
855
  ".pi/extensions/zob-harness/src/AGENTS.md"
836
856
  ],
837
857
  "noShipNotes": "Lists worker-pool metadata and overlap blockers only; body-free read/status surface, no dispatch, no TODO mutation, no auto-apply, and no delivery/completion success claim."
@@ -851,7 +871,7 @@
851
871
  ".pi/skills/zob-coms-safety/SKILL.md"
852
872
  ],
853
873
  "docRefs": [
854
- "docs/ZOB_PARALLEL_OWNER_POOLS.md",
874
+ ".pi/extensions/zob-harness/src/domains/governance/AGENTS.md",
855
875
  ".pi/extensions/zob-harness/src/AGENTS.md"
856
876
  ],
857
877
  "noShipNotes": "Records a body-free parent-visible OWNER_CHANGE_REQUEST for non-owner path needs; hash/artifact refs only, no hidden worker chat, no worker-to-worker direct decision, no dispatch, no TODO mutation, and no write/apply semantics."
@@ -872,7 +892,7 @@
872
892
  ".pi/skills/zob-oracle/SKILL.md"
873
893
  ],
874
894
  "docRefs": [
875
- "docs/ZOB_PARALLEL_OWNER_POOLS.md",
895
+ ".pi/extensions/zob-harness/src/domains/governance/AGENTS.md",
876
896
  ".pi/extensions/zob-harness/src/AGENTS.md"
877
897
  ],
878
898
  "noShipNotes": "Records a body-free parent/owner decision for an OWNER_CHANGE_REQUEST; approval means eligible for parent/owner handling only, not merge/apply, child dispatch, direct TODO mutation, or autonomous production write."
@@ -1391,7 +1411,7 @@
1391
1411
  ".pi/skills/zob-harness/SKILL.md"
1392
1412
  ],
1393
1413
  "docRefs": [
1394
- "docs/HARNESS_CAPABILITY_MATRIX.md",
1414
+ "SOURCE_INDEX.md",
1395
1415
  ".pi/extensions/zob-switch/index.ts"
1396
1416
  ],
1397
1417
  "noShipNotes": "Single slash command only: /zob on|off|status. No aliases. off snapshots project .pi/settings.json, removes only the ZOB harness extension plus project ZOB prompts/skills entries while keeping zob-switch configured, writes settings, then treats ctx.reload() as terminal. on restores the saved snapshot when present and ensures switch+harness entries exist; without a snapshot it restores safe ZOB prompts/skills defaults."
@@ -1407,7 +1427,7 @@
1407
1427
  ],
1408
1428
  "docRefs": [
1409
1429
  "AGENTS.md",
1410
- "docs/ZOB_ADAPTIVE_WORKFLOW_RUNTIME_PLAN.md"
1430
+ ".pi/extensions/zob-harness/src/runtime/AGENTS.md"
1411
1431
  ],
1412
1432
  "noShipNotes": "Switches active harness mode only. orchestrator routes to adaptive-chief-vision plan_only defaults; vanilla restores Pi base-style unrestricted tool access outside ZOB governance and disables ZOB-specific bash mutation blocks. Child dispatch in governed modes requires parent-owned contract/preflight gates and writes remain blocked without sandbox/oracle/human approval."
1413
1433
  },
@@ -1481,7 +1501,7 @@
1481
1501
  ".pi/skills/zob-harness/SKILL.md"
1482
1502
  ],
1483
1503
  "docRefs": [
1484
- "docs/ZOB_COMPACTION_POLICY.md",
1504
+ ".pi/extensions/zob-harness/src/runtime/compaction-policy.ts",
1485
1505
  "README.md",
1486
1506
  ".pi/extensions/zob-harness/src/runtime/auto-compaction.ts"
1487
1507
  ],
@@ -1589,12 +1609,15 @@
1589
1609
  "all"
1590
1610
  ],
1591
1611
  "skillRefs": [
1592
- ".pi/skills/zob-goal-todo-tree/SKILL.md"
1612
+ ".pi/skills/zob-goal-todo-tree/SKILL.md",
1613
+ ".pi/skills/zob-coms-v2-live/SKILL.md",
1614
+ ".pi/skills/zob-coms-safety/SKILL.md"
1593
1615
  ],
1594
1616
  "docRefs": [
1595
- "AGENTS.md"
1617
+ "AGENTS.md",
1618
+ "docs/ZOB_GOAL_TODO_HANDOFF.md"
1596
1619
  ],
1597
- "noShipNotes": "Manages active goal/TODO metadata only."
1620
+ "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."
1598
1621
  },
1599
1622
  {
1600
1623
  "name": "todo",
@@ -1603,12 +1626,15 @@
1603
1626
  "all"
1604
1627
  ],
1605
1628
  "skillRefs": [
1606
- ".pi/skills/zob-goal-todo-tree/SKILL.md"
1629
+ ".pi/skills/zob-goal-todo-tree/SKILL.md",
1630
+ ".pi/skills/zob-coms-v2-live/SKILL.md",
1631
+ ".pi/skills/zob-coms-safety/SKILL.md"
1607
1632
  ],
1608
1633
  "docRefs": [
1609
- "AGENTS.md"
1634
+ "AGENTS.md",
1635
+ "docs/ZOB_GOAL_TODO_HANDOFF.md"
1610
1636
  ],
1611
- "noShipNotes": "Alias for goal TODO metadata only."
1637
+ "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."
1612
1638
  },
1613
1639
  {
1614
1640
  "name": "todos",
@@ -1,30 +1,30 @@
1
- # Scope du dossier
1
+ # Directory scope
2
2
 
3
- - Ce dossier contient l'extension Pi `zob-harness`, son entrypoint `index.ts` et les modules sidecar du refactor split-only.
4
- - `index.ts` reste l'entrypoint Pi déclaré dans `package.json` jusqu'à approval explicite d'une bascule finale.
5
- - Les sous-dossiers `src/**` contiennent uniquement de la logique extraite ou du contexte local; ils ne remplacent pas l'entrypoint sans review.
6
- - L'architecture cible et les consignes de refactor sont documentées dans `docs/ZOB_HARNESS_ARCHITECTURE.md` et les `AGENTS.md` locaux.
3
+ - This directory contains the `zob-harness` Pi extension, its `index.ts` entrypoint, and sidecar modules for split-only refactors.
4
+ - `index.ts` remains the Pi entrypoint declared in `package.json` until an explicit final switch is approved.
5
+ - `src/**` subdirectories contain only extracted logic or local context; they do not replace the entrypoint without review.
6
+ - The target architecture and refactor instructions are documented in `docs/ZOB_HARNESS_ARCHITECTURE.md` and local `AGENTS.md` files.
7
7
 
8
8
  # Invariants
9
9
 
10
- - Split-only: déplacer du code sans changer le comportement observable.
11
- - Préserver le `default export` `zobHarness(pi)`.
12
- - Préserver tous les exports publics utilisés par `scripts/harness-smoke.mjs`.
13
- - Ne pas changer noms de tools, commandes, event handlers, sentinels, artefacts, messages d'erreur, descriptions Typebox, snippets de prompts ou guidelines.
14
- - Ne pas changer l'ordre des arrays observables ni les defaults runtime.
15
- - Ne pas convertir les opérations `fs` sync en async.
10
+ - Split-only: move code without changing observable behavior.
11
+ - Preserve the `default export` `zobHarness(pi)`.
12
+ - Preserve every public export used by `scripts/harness-smoke.mjs`.
13
+ - Do not change tool names, commands, event handlers, sentinels, artifacts, error messages, TypeBox descriptions, prompt snippets, or guidelines.
14
+ - Do not change observable array order or runtime defaults.
15
+ - Do not convert synchronous `fs` operations to async.
16
16
 
17
17
  # Imports
18
18
 
19
- - En NodeNext, utiliser des imports relatifs avec suffixe `.js`.
20
- - `index.ts` peut rester hybride pendant la migration.
21
- - Aucun fichier `src/**` ne doit importer depuis `index.ts`.
22
- - Préférer `import type` pour les types.
23
- - Direction cible des dépendances: `runtime -> domains -> core`; jamais `core -> domains/runtime`.
19
+ - In NodeNext, use relative imports with a `.js` suffix.
20
+ - `index.ts` may remain hybrid during migration.
21
+ - No `src/**` file may import from `index.ts`.
22
+ - Prefer `import type` for types.
23
+ - Target dependency direction: `runtime -> domains -> core`; never `core -> domains/runtime`.
24
24
 
25
- # Validation locale
25
+ # Local validation
26
26
 
27
- - Baseline avant tranche: `npm run check -- --pretty false`.
28
- - Après toute tranche code: `npm run check -- --pretty false`.
29
- - Après tranche domaine/runtime: `npm run smoke:harness`.
30
- - Avant bascule finale: `npm run check:all` et oracle read-only.
27
+ - Baseline before a slice: `npm run check -- --pretty false`.
28
+ - After any code slice: `npm run check -- --pretty false`.
29
+ - After a domain/runtime slice: `npm run smoke:harness`.
30
+ - Before the final switch: `npm run check:all` and read-only oracle review.
@@ -1,29 +1,29 @@
1
- # Scope du dossier
1
+ # Directory scope
2
2
 
3
- - `src/**` reçoit les modules extraits de `.pi/extensions/zob-harness/index.ts`.
4
- - Chaque module doit correspondre à une tranche claire du playbook de refactor.
5
- - Ce dossier ne contient pas de nouvelle fonctionnalité produit.
6
- - Architecture cible: `core/**` pour helpers/types bas niveau, `domains/**` pour logique métier, `runtime/**` pour adapters Pi tools/commands/events/widgets.
3
+ - `src/**` receives modules extracted from `.pi/extensions/zob-harness/index.ts`.
4
+ - Each module must correspond to a clear slice of the refactor playbook.
5
+ - This directory does not contain new product functionality.
6
+ - Target architecture: `core/**` for low-level helpers/types, `domains/**` for business logic, and `runtime/**` for Pi tool/command/event/widget adapters.
7
7
 
8
8
  # Invariants
9
9
 
10
- - Move-only: conserver logique, strings, validations, defaults et ordre observable.
11
- - Les exports publics doivent rester disponibles depuis `index.ts` jusqu'à la bascule finale.
12
- - Éviter les cycles; isoler types, constantes et utils avant runtime.
13
- - Ne pas stocker de prompt/output bodies dans telemetry/coms.
10
+ - Move-only: preserve logic, strings, validations, defaults, and observable order.
11
+ - Public exports must remain available from `index.ts` until the final switch.
12
+ - Avoid cycles; isolate types, constants, and utils before runtime.
13
+ - Do not store prompt/output bodies in telemetry/coms.
14
14
 
15
15
  # Imports
16
16
 
17
- - Imports relatifs NodeNext avec suffixe `.js` pour les imports runtime.
18
- - `import type` pour les types.
19
- - Interdit: importer depuis `../index.js`, `../../index.js` ou `index.ts`.
20
- - Les modules bas niveau ne doivent pas dépendre de runtime Pi.
21
- - Direction cible: `runtime -> domains -> core`; un fichier `domains/**` ne doit dépendre de `runtime/**` que comme compatibilité explicitement temporaire.
17
+ - Use NodeNext relative imports with a `.js` suffix for runtime imports.
18
+ - Use `import type` for types.
19
+ - Forbidden: importing from `../index.js`, `../../index.js`, or `index.ts`.
20
+ - Low-level modules must not depend on Pi runtime.
21
+ - Target direction: `runtime -> domains -> core`; a `domains/**` file may depend on `runtime/**` only as explicitly temporary compatibility.
22
22
 
23
- # Validation locale
23
+ # Local validation
24
24
 
25
- - Lire `docs/ZOB_HARNESS_ARCHITECTURE.md` et les `AGENTS.md` locaux avant toute tranche de déplacement.
26
- - `npm run check -- --pretty false` après chaque tranche.
27
- - `npm run smoke:harness` après safety, output-contracts, queue, topology, orchestration, factory, child-runner ou runtime.
28
- - `npm run pi:check` avant de déclarer un changement runtime complet.
29
- - Oracle read-only avant de passer à la tranche suivante si une API publique est touchée.
25
+ - Read `docs/ZOB_HARNESS_ARCHITECTURE.md` and local `AGENTS.md` files before any move slice.
26
+ - `npm run check -- --pretty false` after each slice.
27
+ - `npm run smoke:harness` after safety, output-contracts, queue, topology, orchestration, factory, child-runner, or runtime changes.
28
+ - `npm run pi:check` before declaring a complete runtime change.
29
+ - Read-only oracle review before moving to the next slice when a public API is touched.