zob-harness 0.3.1 → 0.5.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.
- package/.pi/agents/harness-factory-designer.md +47 -0
- package/.pi/agents/harness-intake-oracle.md +54 -0
- package/.pi/agents/harness-intake-orchestrator.md +40 -0
- package/.pi/agents/harness-interpreter.md +45 -0
- package/.pi/agents/harness-session-miner.md +45 -0
- package/.pi/agents/harness-skill-command-analyst.md +43 -0
- package/.pi/agents/harness-source-cartographer.md +40 -0
- package/.pi/agents/harness-workflow-pattern-miner.md +40 -0
- package/.pi/agents/zob-team-architect.md +45 -0
- package/.pi/capabilities/zob-public-runtime-capabilities.json +72 -14
- package/.pi/extensions/zob-harness/AGENTS.md +21 -21
- package/.pi/extensions/zob-harness/src/AGENTS.md +20 -20
- package/.pi/extensions/zob-harness/src/domains/autonomy/interactive-autonomy.ts +14 -14
- package/.pi/extensions/zob-harness/src/domains/delegation/output-contracts.ts +37 -37
- package/.pi/extensions/zob-harness/src/domains/factory/agentic-plan.ts +1 -1
- package/.pi/extensions/zob-harness/src/domains/goal/goal-todo-types.ts +20 -0
- package/.pi/extensions/zob-harness/src/domains/goal/goal-todos.ts +60 -5
- package/.pi/extensions/zob-harness/src/domains/intent/intent-classifier.ts +418 -0
- package/.pi/extensions/zob-harness/src/domains/project-dna/project-dna.ts +1 -1
- package/.pi/extensions/zob-harness/src/domains/telemetry/chronicle.ts +1 -1
- package/.pi/extensions/zob-harness/src/factory/AGENTS.md +14 -14
- package/.pi/extensions/zob-harness/src/orchestration/AGENTS.md +13 -13
- package/.pi/extensions/zob-harness/src/runtime/AGENTS.md +14 -14
- package/.pi/extensions/zob-harness/src/runtime/commands.ts +384 -0
- package/.pi/extensions/zob-harness/src/runtime/events.ts +38 -3
- package/.pi/extensions/zob-harness/src/runtime/goal-runtime.ts +376 -0
- package/.pi/extensions/zob-harness/src/runtime/mode-intent.ts +10 -10
- package/.pi/extensions/zob-harness/src/runtime/plan-capture.ts +4 -4
- package/.pi/extensions/zob-harness/src/runtime/state.ts +2 -10
- package/.pi/extensions/zob-harness/src/runtime/tools-delegation.ts +57 -7
- package/.pi/extensions/zob-harness/src/topology/AGENTS.md +12 -12
- package/.pi/extensions/zob-harness/src/utils/AGENTS.md +12 -12
- package/.pi/factories/harness-intake-agent-team/README.md +79 -0
- package/.pi/factories/harness-intake-agent-team/batch-manifest.json +19 -0
- package/.pi/factories/harness-intake-agent-team/factory.json +127 -0
- package/.pi/factories/harness-intake-agent-team/pilot-manifest.json +20 -0
- package/.pi/factories/harness-intake-agent-team/schemas/artifact-contracts.schema.json +28 -0
- package/.pi/factories/harness-intake-agent-team/schemas/factory-candidates.schema.json +27 -0
- package/.pi/factories/harness-intake-agent-team/schemas/inferred-run-spec.schema.json +44 -0
- package/.pi/factories/harness-intake-agent-team/schemas/sources-index.schema.json +30 -0
- package/.pi/factories/harness-intake-agent-team/schemas/team-candidates.schema.json +28 -0
- package/.pi/factories/harness-intake-agent-team/schemas/validation.schema.json +17 -0
- package/.pi/factories/harness-intake-agent-team/smoke-manifest.json +25 -0
- package/.pi/factories/harness-intake-agent-team/templates/generated-agent.md +22 -0
- package/.pi/factories/harness-intake-agent-team/templates/kickoff.md +13 -0
- package/.pi/factories/harness-intake-agent-team/validators/validate-no-secrets.mjs +20 -0
- package/.pi/factories/harness-intake-agent-team/validators/validate-quarantine.mjs +20 -0
- package/.pi/factories/harness-intake-agent-team/validators/validate-run.mjs +9 -0
- package/.pi/routing/intent-classifier.json +29 -0
- package/.pi/skills/harness-intake/SKILL.md +100 -0
- package/.pi/skills/zob-coms-safety/SKILL.md +4 -2
- package/.pi/skills/zob-coms-v2-live/SKILL.md +4 -3
- package/.pi/skills/zob-goal-todo-tree/SKILL.md +49 -4
- package/.pi/skills/zob-harness/SKILL.md +2 -1
- package/.pi/skills/zob-owner-pool-drill-writer/SKILL.md +4 -4
- package/.pi/skills/zob-owner-pool-launcher/SKILL.md +7 -7
- package/.pi/skills/zob-zagent-creator/SKILL.md +3 -3
- package/.pi/teams/harness-intake-team.json +114 -0
- package/CONTRIBUTING.md +3 -1
- package/README.md +135 -10
- package/examples/harness-intake-fixtures/claude-code-mini/.claude/agents/reviewer.md +7 -0
- package/examples/harness-intake-fixtures/claude-code-mini/.claude/agents/specifier.md +7 -0
- package/examples/harness-intake-fixtures/claude-code-mini/.claude/commands/review.md +7 -0
- package/examples/harness-intake-fixtures/claude-code-mini/.claude/commands/spec.md +9 -0
- package/examples/harness-intake-fixtures/claude-code-mini/.claude/sessions/session-001.md +10 -0
- package/examples/harness-intake-fixtures/claude-code-mini/CLAUDE.md +22 -0
- package/package.json +40 -1
- package/scripts/README.md +10 -1
- package/scripts/goal-todo/child-goal-ref-smoke.mjs +2 -0
- package/scripts/goal-todo/handoff-static-smoke.mjs +32 -0
- package/scripts/harness-intake/infer-run-spec.mjs +34 -0
- package/scripts/harness-intake/launch.mjs +32 -0
- package/scripts/harness-intake/lib.mjs +1521 -0
- package/scripts/harness-intake/scan-sources.mjs +30 -0
- package/scripts/harness-intake/tmux-launch.mjs +48 -0
- package/scripts/harness-intake/validate-run.mjs +28 -0
- package/scripts/intent-classifier/smoke.mjs +135 -0
- package/scripts/package-surface/validate-capability-refs.mjs +112 -0
- package/scripts/project-dna/query/query-context.mjs +1 -1
- package/scripts/project-dna/query/query-steward.mjs +1 -1
- package/scripts/release/preview.mjs +195 -0
- 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
|
-
"
|
|
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
|
-
"
|
|
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
|
-
"
|
|
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
|
-
"
|
|
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
|
-
"
|
|
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
|
-
"
|
|
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,10 +1427,42 @@
|
|
|
1407
1427
|
],
|
|
1408
1428
|
"docRefs": [
|
|
1409
1429
|
"AGENTS.md",
|
|
1410
|
-
"
|
|
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
|
},
|
|
1434
|
+
{
|
|
1435
|
+
"name": "intent-classifier",
|
|
1436
|
+
"family": "intent-routing",
|
|
1437
|
+
"modes": [
|
|
1438
|
+
"all"
|
|
1439
|
+
],
|
|
1440
|
+
"skillRefs": [
|
|
1441
|
+
".pi/skills/zob-harness/SKILL.md"
|
|
1442
|
+
],
|
|
1443
|
+
"docRefs": [
|
|
1444
|
+
"README.md",
|
|
1445
|
+
".pi/routing/intent-classifier.json",
|
|
1446
|
+
".pi/extensions/zob-harness/src/domains/intent/intent-classifier.ts",
|
|
1447
|
+
".pi/extensions/zob-harness/src/runtime/commands.ts"
|
|
1448
|
+
],
|
|
1449
|
+
"noShipNotes": "Slash UX for optional intent routing only: status|regex|model-strict [model]|model-fallback [model]|test. The owner-facing path selects current/available Pi models, similar to /model, without requiring endpoint/API-key flags. autoSwitchIntents controls direct mode switching and this project enables explore, plan, implement, oracle, factory, orchestrator, and vanilla by default. model-strict uses fallback=unknown and must not silently fall back to regex; model-fallback is explicit regex fallback. Advanced http-json endpoint metadata is hidden/optional for custom experiments only. Ledgers never store raw test text or API keys, and the classifier never approves secrets, destructive commands, commits, deploys, session reads, or no-ship state."
|
|
1450
|
+
},
|
|
1451
|
+
{
|
|
1452
|
+
"name": "intent",
|
|
1453
|
+
"family": "intent-routing",
|
|
1454
|
+
"modes": [
|
|
1455
|
+
"all"
|
|
1456
|
+
],
|
|
1457
|
+
"skillRefs": [
|
|
1458
|
+
".pi/skills/zob-harness/SKILL.md"
|
|
1459
|
+
],
|
|
1460
|
+
"docRefs": [
|
|
1461
|
+
"README.md",
|
|
1462
|
+
".pi/extensions/zob-harness/src/runtime/commands.ts"
|
|
1463
|
+
],
|
|
1464
|
+
"noShipNotes": "Alias for /intent-classifier with the same safety/privacy behavior."
|
|
1465
|
+
},
|
|
1414
1466
|
{
|
|
1415
1467
|
"name": "stop",
|
|
1416
1468
|
"family": "runtime-control",
|
|
@@ -1481,7 +1533,7 @@
|
|
|
1481
1533
|
".pi/skills/zob-harness/SKILL.md"
|
|
1482
1534
|
],
|
|
1483
1535
|
"docRefs": [
|
|
1484
|
-
"
|
|
1536
|
+
".pi/extensions/zob-harness/src/runtime/compaction-policy.ts",
|
|
1485
1537
|
"README.md",
|
|
1486
1538
|
".pi/extensions/zob-harness/src/runtime/auto-compaction.ts"
|
|
1487
1539
|
],
|
|
@@ -1589,12 +1641,15 @@
|
|
|
1589
1641
|
"all"
|
|
1590
1642
|
],
|
|
1591
1643
|
"skillRefs": [
|
|
1592
|
-
".pi/skills/zob-goal-todo-tree/SKILL.md"
|
|
1644
|
+
".pi/skills/zob-goal-todo-tree/SKILL.md",
|
|
1645
|
+
".pi/skills/zob-coms-v2-live/SKILL.md",
|
|
1646
|
+
".pi/skills/zob-coms-safety/SKILL.md"
|
|
1593
1647
|
],
|
|
1594
1648
|
"docRefs": [
|
|
1595
|
-
"AGENTS.md"
|
|
1649
|
+
"AGENTS.md",
|
|
1650
|
+
"docs/ZOB_GOAL_TODO_HANDOFF.md"
|
|
1596
1651
|
],
|
|
1597
|
-
"noShipNotes": "Manages active goal/TODO metadata only."
|
|
1652
|
+
"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
1653
|
},
|
|
1599
1654
|
{
|
|
1600
1655
|
"name": "todo",
|
|
@@ -1603,12 +1658,15 @@
|
|
|
1603
1658
|
"all"
|
|
1604
1659
|
],
|
|
1605
1660
|
"skillRefs": [
|
|
1606
|
-
".pi/skills/zob-goal-todo-tree/SKILL.md"
|
|
1661
|
+
".pi/skills/zob-goal-todo-tree/SKILL.md",
|
|
1662
|
+
".pi/skills/zob-coms-v2-live/SKILL.md",
|
|
1663
|
+
".pi/skills/zob-coms-safety/SKILL.md"
|
|
1607
1664
|
],
|
|
1608
1665
|
"docRefs": [
|
|
1609
|
-
"AGENTS.md"
|
|
1666
|
+
"AGENTS.md",
|
|
1667
|
+
"docs/ZOB_GOAL_TODO_HANDOFF.md"
|
|
1610
1668
|
],
|
|
1611
|
-
"noShipNotes": "Alias for goal TODO metadata only."
|
|
1669
|
+
"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
1670
|
},
|
|
1613
1671
|
{
|
|
1614
1672
|
"name": "todos",
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Directory scope
|
|
2
2
|
|
|
3
|
-
-
|
|
4
|
-
- `index.ts`
|
|
5
|
-
-
|
|
6
|
-
-
|
|
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:
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
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
|
-
-
|
|
20
|
-
- `index.ts`
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
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
|
-
#
|
|
25
|
+
# Local validation
|
|
26
26
|
|
|
27
|
-
- Baseline
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
-
|
|
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.
|