@manhd_d/ai-harness 0.6.2 → 0.8.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 (138) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/CONTRIBUTING.md +4 -0
  3. package/README.md +20 -3
  4. package/adapters/java-spring/adapter.yaml +3 -2
  5. package/adapters/java-spring/checks/verification.yaml +12 -0
  6. package/adapters/java-spring/evals/cases.json +10 -0
  7. package/adapters/java-spring/rules/conventions.md +39 -0
  8. package/adapters/java-spring/rules.md +2 -1
  9. package/adapters/kubernetes/adapter.yaml +1 -1
  10. package/adapters/kubernetes/rules.md +3 -0
  11. package/adapters/react-native/adapter.yaml +3 -2
  12. package/adapters/react-native/checks/verification.yaml +12 -0
  13. package/adapters/react-native/evals/cases.json +10 -0
  14. package/adapters/react-native/rules/conventions.md +34 -0
  15. package/adapters/react-native/rules.md +2 -1
  16. package/adapters/react-nextjs/adapter.yaml +3 -2
  17. package/adapters/react-nextjs/checks/verification.yaml +12 -0
  18. package/adapters/react-nextjs/evals/cases.json +10 -0
  19. package/adapters/react-nextjs/rules/conventions.md +37 -0
  20. package/adapters/react-nextjs/rules.md +2 -1
  21. package/capabilities/architecture/README.md +11 -0
  22. package/capabilities/architecture/agents/architecture-reviewer.md +16 -0
  23. package/capabilities/architecture/agents/solution-architect.md +16 -0
  24. package/capabilities/architecture/capability.json +35 -0
  25. package/capabilities/architecture/checks/verification.json +29 -0
  26. package/capabilities/architecture/evals/cases.json +35 -0
  27. package/capabilities/architecture/skills/harness-architecture-change-impact/SKILL.md +43 -0
  28. package/capabilities/architecture/skills/harness-architecture-decision-records/SKILL.md +43 -0
  29. package/capabilities/architecture/skills/harness-architecture-project-context/SKILL.md +43 -0
  30. package/capabilities/architecture/skills/harness-architecture-quality-attributes/SKILL.md +43 -0
  31. package/capabilities/architecture/skills/harness-architecture-review/SKILL.md +43 -0
  32. package/capabilities/architecture/skills/harness-architecture-solution-design/SKILL.md +44 -0
  33. package/capabilities/architecture/templates/adr.md +29 -0
  34. package/capabilities/architecture/templates/nfr.md +22 -0
  35. package/capabilities/architecture/templates/overview.md +24 -0
  36. package/capabilities/architecture/templates/project-map.md +26 -0
  37. package/capabilities/architecture/templates/review.md +23 -0
  38. package/capabilities/architecture/templates/solution-design.md +29 -0
  39. package/capabilities/architecture/workflows/change-review.md +12 -0
  40. package/capabilities/architecture/workflows/discovery-to-design.md +16 -0
  41. package/capabilities/delivery/README.md +11 -0
  42. package/capabilities/delivery/agents/project-manager.md +16 -0
  43. package/capabilities/delivery/capability.json +29 -0
  44. package/capabilities/delivery/checks/verification.json +29 -0
  45. package/capabilities/delivery/evals/cases.json +25 -0
  46. package/capabilities/delivery/skills/harness-delivery-planning/SKILL.md +43 -0
  47. package/capabilities/delivery/skills/harness-delivery-risk-management/SKILL.md +42 -0
  48. package/capabilities/delivery/skills/harness-delivery-scope-change/SKILL.md +43 -0
  49. package/capabilities/delivery/templates/change-assessment.md +23 -0
  50. package/capabilities/delivery/templates/delivery-plan.md +25 -0
  51. package/capabilities/delivery/templates/risk-register.md +19 -0
  52. package/capabilities/delivery/workflows/execution-change.md +9 -0
  53. package/capabilities/delivery/workflows/planning.md +12 -0
  54. package/capabilities/product/README.md +7 -0
  55. package/capabilities/product/agents/business-analyst.md +3 -0
  56. package/capabilities/product/agents/product-owner.md +5 -1
  57. package/capabilities/product/agents/project-manager.md +5 -0
  58. package/capabilities/product/capability.json +9 -4
  59. package/capabilities/product/checks/verification.json +12 -0
  60. package/capabilities/product/evals/cases.json +10 -0
  61. package/capabilities/product/skills/harness-product-acceptance-criteria/SKILL.md +17 -0
  62. package/capabilities/product/skills/harness-product-backlog-prioritization/SKILL.md +17 -0
  63. package/capabilities/product/skills/harness-product-brd-generation/SKILL.md +17 -0
  64. package/capabilities/product/skills/harness-product-business-analysis/SKILL.md +17 -0
  65. package/capabilities/product/skills/harness-product-document-review/SKILL.md +17 -0
  66. package/capabilities/product/skills/harness-product-idea-discovery/SKILL.md +17 -0
  67. package/capabilities/product/skills/harness-product-knowledge-analysis/SKILL.md +17 -0
  68. package/capabilities/product/skills/harness-product-mvp-definition/SKILL.md +43 -0
  69. package/capabilities/product/skills/harness-product-prd-generation/SKILL.md +17 -0
  70. package/capabilities/product/skills/harness-product-product-outcomes/SKILL.md +42 -0
  71. package/capabilities/product/skills/harness-product-product-research/SKILL.md +17 -0
  72. package/capabilities/product/skills/harness-product-srs-generation/SKILL.md +17 -0
  73. package/capabilities/product/skills/harness-product-traceability/SKILL.md +17 -0
  74. package/capabilities/product/skills/harness-product-use-case-generation/SKILL.md +17 -0
  75. package/capabilities/product/skills/harness-product-user-stories/SKILL.md +17 -0
  76. package/capabilities/product/templates/mvp.md +25 -0
  77. package/capabilities/product/templates/outcomes.md +23 -0
  78. package/capabilities/product/workflows/document-driven.md +4 -0
  79. package/capabilities/product/workflows/idea-driven.md +4 -0
  80. package/capabilities/product/workflows/product-to-solution.md +15 -0
  81. package/cli/agents.js +165 -0
  82. package/cli/environment.js +170 -0
  83. package/cli/harness.js +40 -10
  84. package/cli/main.js +47 -11
  85. package/cli/readiness.js +117 -0
  86. package/config/agents.default.json +80 -0
  87. package/core/agents/documentation.md +13 -0
  88. package/core/agents/implementer.md +7 -0
  89. package/core/agents/orchestrator.md +13 -0
  90. package/core/agents/planner.md +7 -0
  91. package/core/agents/reviewer.md +8 -0
  92. package/core/checks/verification.json +37 -0
  93. package/core/evals/cases.json +101 -0
  94. package/core/evals/composition.json +15 -0
  95. package/core/rules/foundations.md +1 -0
  96. package/core/rules/project-conventions.md +61 -0
  97. package/core/skills/harness-review/SKILL.md +2 -0
  98. package/core/skills/harness-spec/SKILL.md +6 -2
  99. package/core/workflows/agent-routing.md +28 -0
  100. package/core/workflows/bugfix.md +2 -0
  101. package/core/workflows/clarification.md +28 -0
  102. package/core/workflows/project-setup.md +37 -0
  103. package/core/workflows/solution-framing.md +33 -0
  104. package/core/workflows/spec-to-code.md +18 -3
  105. package/docs/adapters.md +6 -0
  106. package/docs/agent-configuration.md +99 -0
  107. package/docs/agent-handoffs.md +19 -0
  108. package/docs/architecture.md +33 -1
  109. package/docs/change-readiness.md +67 -0
  110. package/docs/cli.md +41 -3
  111. package/docs/documentation-workflows.md +7 -0
  112. package/docs/end-to-end-workflow.md +10 -1
  113. package/docs/getting-started.md +29 -2
  114. package/docs/harness-maintenance.md +80 -0
  115. package/docs/monetization.md +1 -1
  116. package/docs/project-configuration.md +86 -0
  117. package/docs/project-conventions.md +67 -0
  118. package/docs/research/solution-workflow-sources.md +30 -0
  119. package/docs/skill-matrix.md +28 -4
  120. package/docs/solution-workflow.md +67 -0
  121. package/docs/templates/harness-change-impact.md +30 -0
  122. package/docs/tool-setup/README.md +70 -0
  123. package/docs/tool-setup/claude-code.md +57 -0
  124. package/docs/tool-setup/codex.md +44 -0
  125. package/docs/tool-setup/copilot.md +42 -0
  126. package/docs/tool-setup/cursor.md +44 -0
  127. package/docs/tool-setup/gemini-cli.md +41 -0
  128. package/docs/versioning.md +37 -0
  129. package/evals/README.md +16 -0
  130. package/evals/real-task-comparison.md +49 -0
  131. package/harness.yaml +4 -2
  132. package/package.json +2 -1
  133. package/templates/AGENTS.md +13 -1
  134. package/templates/environment.json +6 -0
  135. package/templates/openspec/decisions.json +5 -0
  136. package/templates/openspec/design.md +6 -0
  137. package/templates/openspec/tasks.md +1 -0
  138. package/templates/openspec/verification.json +4 -0
@@ -0,0 +1,42 @@
1
+ ---
2
+ name: harness-delivery-risk-management
3
+ description: Maintain owned delivery risks, assumptions, blockers and dependencies with response triggers.
4
+ ---
5
+
6
+ # harness-delivery-risk-management
7
+
8
+ ## Input
9
+ Plan, stakeholder/source constraints, technical/operational findings and actual progress evidence.
10
+
11
+ ## Procedure
12
+ 1. Identify risks versus current issues, assumptions and dependencies; link each to source and affected outcome.
13
+ 2. Assess impact and likelihood qualitatively or with actual evidence; do not invent numerical risk scores.
14
+ 3. Assign proposed/confirmed owner, mitigation, trigger, contingency and decision needed; clarify critical gaps.
15
+ 4. Track unresolved external dependencies and review cadence; no autonomous stakeholder messages or calendar writes.
16
+ 5. Update risk state only with evidence; carry accepted residual risks to release/PO decision and architecture review.
17
+
18
+ ## Output
19
+ docs/delivery/risk-register.md and evidence-based status draft.
20
+
21
+ ## Template
22
+ Read `.harness/capabilities/delivery/templates/risk-register.md` from the installed snapshot.
23
+ Use `aih new-doc risk-register --capability delivery` only for a missing draft;
24
+ reuse existing authoritative docs or a compact task note when appropriate. Never overwrite approved content.
25
+
26
+ ## Example
27
+ Internal provider sandbox is unreachable: current blocker, not a completed test. Owner confirms access plan; integration milestone remains at risk until an observed connectivity check succeeds.
28
+
29
+ ## Quality checklist
30
+ - Risk and observed issue are distinguished
31
+ - Owner, trigger, response and source are present
32
+ - Status does not fabricate progress or communicate externally
33
+
34
+ ## Handoff
35
+ State source revisions, requirement/decision IDs, approval status, unresolved questions, output paths,
36
+ actual checks and next role. Use the module workflow; role names are not human authorization.
37
+
38
+ ## Constraints
39
+ Follow Core permissions, clarification and project-conventions. Ask only consequential unknowns with
40
+ 2–3 distinct options, evidence-based recommendation and free text; reuse established answers.
41
+ No invented source, measured result, target, estimate or approval. No external messaging/publishing,
42
+ paid tool use or production changes beyond the user's explicit authorization.
@@ -0,0 +1,43 @@
1
+ ---
2
+ name: harness-delivery-scope-change
3
+ description: Evaluate scope changes across product value, architecture, dependencies and delivery before re-planning.
4
+ ---
5
+
6
+ # harness-delivery-scope-change
7
+
8
+ ## Input
9
+ Change request, reviewed baseline scope/MVP, affected requirements/ADRs, plan and available estimates.
10
+
11
+ ## Procedure
12
+ 1. Preserve the baseline and describe the proposed delta and motivation; identify decision owner.
13
+ 2. Ask BA/PO for requirement/value/AC impact, SA for contract/NFR/data impact and DevOps for release impact as applicable.
14
+ 3. Compare defer, replace and expand options with explicit trade-offs; avoid invented cost/dates.
15
+ 4. Resolve consequential owner decisions before implementing affected behavior; continue independent authorized work.
16
+ 5. Update only affected scope/traceability/ADR/plan records and OpenSpec tasks after the real decision.
17
+ 6. Report revised dependencies, acceptance, risks and rollback considerations; preserve history.
18
+
19
+ ## Output
20
+ docs/delivery/change-assessment.md and reviewed updates to existing plan/requirements/design.
21
+
22
+ ## Template
23
+ Read `.harness/capabilities/delivery/templates/change-assessment.md` from the installed snapshot.
24
+ Use `aih new-doc change-assessment --capability delivery` only for a missing draft;
25
+ reuse existing authoritative docs or a compact task note when appropriate. Never overwrite approved content.
26
+
27
+ ## Example
28
+ Adding bulk import to the search MVP requires async jobs, limits and duplicate policy. Present defer or replace a lower-value feature; do not quietly promise the same release date.
29
+
30
+ ## Quality checklist
31
+ - Baseline and delta are explicit and source-linked
32
+ - Cross-role impacts and options are assessed
33
+ - Scope/date approval is from the actual owner
34
+
35
+ ## Handoff
36
+ State source revisions, requirement/decision IDs, approval status, unresolved questions, output paths,
37
+ actual checks and next role. Use the module workflow; role names are not human authorization.
38
+
39
+ ## Constraints
40
+ Follow Core permissions, clarification and project-conventions. Ask only consequential unknowns with
41
+ 2–3 distinct options, evidence-based recommendation and free text; reuse established answers.
42
+ No invented source, measured result, target, estimate or approval. No external messaging/publishing,
43
+ paid tool use or production changes beyond the user's explicit authorization.
@@ -0,0 +1,23 @@
1
+ # Scope change assessment
2
+
3
+ Status: draft / pending review
4
+ Owner: TODO
5
+ Sources and revisions: TODO
6
+ Scope / related requirement and decision IDs: TODO
7
+ Last verified against code: TODO (or not applicable with reason)
8
+
9
+ ## Baseline and requested delta
10
+ Approved scope/version, request/source, motivation and actual decision owner.
11
+ ## Cross-role impact
12
+ BA requirements/AC, PO value/MVP, SA NFR/module/data/contracts, PM dependency/estimate and DevOps release.
13
+ ## Options
14
+ Defer, replace or expand where viable; value, risk, estimate confidence and rollback trade-offs.
15
+ ## Resolution and updates
16
+ Actual owner answer/source; impacted docs, traceability, ADRs, tasks and plan updates after agreement.
17
+ ## Remaining uncertainty
18
+ Unknown estimates/targets, external dependencies, blockers and independent work that can proceed.
19
+
20
+
21
+ ## Review and handoff
22
+ Record actual owner decisions, unresolved consequential questions, verification performed/skipped,
23
+ next role, source/output paths and affected OpenSpec change. Draft text is not an accepted decision.
@@ -0,0 +1,25 @@
1
+ # Delivery plan
2
+
3
+ Status: draft / pending review
4
+ Owner: TODO
5
+ Sources and revisions: TODO
6
+ Scope / related requirement and decision IDs: TODO
7
+ Last verified against code: TODO (or not applicable with reason)
8
+
9
+ ## Baseline and authority
10
+ Reviewed MVP/AC, architecture/source revisions, confirmed estimates/capacity or explicitly unknown.
11
+ ## Value slices and dependencies
12
+ | Slice / user outcome | AC / OpenSpec tasks | Prerequisites / owner | Estimate source / range | Completion evidence |
13
+ | --- | --- | --- | --- | --- |
14
+ | TODO | TODO | TODO | unknown | pending |
15
+ ## Milestones
16
+ Order and integration/repository merge sequence; dates are proposals with sources, not invented commitments.
17
+ ## Verification and release
18
+ Quality gates, migration, deployment/rollback owners and feedback checkpoints; link DevOps plan.
19
+ ## Status and risks
20
+ Actual completed evidence, blocked/pending work, risk-register links and next owner.
21
+
22
+
23
+ ## Review and handoff
24
+ Record actual owner decisions, unresolved consequential questions, verification performed/skipped,
25
+ next role, source/output paths and affected OpenSpec change. Draft text is not an accepted decision.
@@ -0,0 +1,19 @@
1
+ # Delivery risks and blockers
2
+
3
+ Status: draft / pending review
4
+ Owner: TODO
5
+ Sources and revisions: TODO
6
+ Scope / related requirement and decision IDs: TODO
7
+ Last verified against code: TODO (or not applicable with reason)
8
+
9
+ ## Risk / issue / assumption / dependency register
10
+ | ID / kind | Source / affected outcome | Impact / likelihood evidence | Owner status | Response / trigger / contingency | State / evidence |
11
+ | --- | --- | --- | --- | --- | --- |
12
+ | RISK-001 / TODO | TODO | unknown | proposed | TODO | pending |
13
+ ## Review cadence and decisions
14
+ Actual confirmations, residual risk acceptances and decisions needed; no automatic stakeholder communication.
15
+
16
+
17
+ ## Review and handoff
18
+ Record actual owner decisions, unresolved consequential questions, verification performed/skipped,
19
+ next role, source/output paths and affected OpenSpec change. Draft text is not an accepted decision.
@@ -0,0 +1,9 @@
1
+ # Progress, feedback and scope changes
2
+
3
+ 1. Read actual completed check/PR evidence against the current plan; do not infer completion from tasks alone.
4
+ 2. Maintain risk-register with source, confirmed/proposed owners, triggers and unresolved external dependencies.
5
+ 3. For changed scope load scope-change: preserve baseline, consult BA/PO/SA/DevOps as relevant, compare
6
+ defer/replace/expand and resolve material choices. Continue independent already-authorized work.
7
+ 4. Update affected plan, requirements, ADRs and OpenSpec only after the actual decision; keep history.
8
+ 5. Produce a status draft with completed/pending/blocked work and evidence. Release ownership/gates
9
+ remain in DevOps; PM proposals do not approve delivery or production changes.
@@ -0,0 +1,12 @@
1
+ # Reviewed outcome → delivery plan
2
+
3
+ Input: agreed scope/MVP, acceptance, solution boundaries and known team constraints.
4
+ 1. Read Core solution-framing and existing approved plan; choose compact or full depth.
5
+ 2. Load harness-delivery-planning for usable vertical slices, dependencies, repository order and gates.
6
+ 3. Use actual team estimates/capacity; without them document sequencing and missing estimate owners,
7
+ not fabricated milestones. Compare scope trade-offs with PO and technical dependencies with SA.
8
+ 4. Load risk-management for owned risks/blockers/assumptions/dependencies and response triggers.
9
+ 5. Link plan to requirements/ADRs/OpenSpec tasks and DevOps rollout/rollback. Actual owner reviews
10
+ consequential commitments; explicit authorization already covering routine tasks remains valid.
11
+ 6. Handoff approved slice, acceptance, prerequisites, verification, risks and next owner to Core/adapter.
12
+ No automatic issue assignment, messaging, calendar entries, merge or deployment.
@@ -76,3 +76,10 @@ After documented approval, UI/UX reads approved PRD, flows, stories and AC rathe
76
76
  ## Cross-capability walkthrough
77
77
 
78
78
  The complete path from source/idea to production is documented in [Full SDLC](../../docs/end-to-end-workflow.md). The [Skill matrix](../../docs/skill-matrix.md) maps all Product skills and outputs, and [Agent handoffs](../../docs/agent-handoffs.md) shows how approved requirements pass to UI/UX and OpenSpec. For an example, see [Full-stack web](../../docs/examples/fullstack-web.md).
79
+
80
+ ## MVP and solution handoff
81
+
82
+ Use product-to-solution workflow, MVP/outcomes skills and their templates; load only relevant skills.
83
+ Optional Architecture/Delivery provides SA/PM depth. Existing Product project-manager and delivery-plan
84
+ remain compatibility entries; no automatic migration or stakeholder approval. All Product skills now
85
+ include template/example/quality/handoff sections.
@@ -13,3 +13,6 @@ Read approved business sources only. Cannot invent stakeholder decisions or mark
13
13
 
14
14
  ## Handoff
15
15
  Hand reviewed requirements and source references to Product Manager and Product Owner; unresolved contradictions to decision owner.
16
+
17
+ Pass source revisions, business rules, FR/US/AC/NFR IDs, contradictions and approval status to PO;
18
+ use product-to-solution for accepted scope and return technical assumptions to Architecture.
@@ -6,10 +6,14 @@ Owns proposed backlog structure, story readiness, acceptance coverage and priori
6
6
  Reviewed PRD, business rules, personas, constraints and team capacity signals.
7
7
 
8
8
  ## Outputs
9
- Epics, user stories, Gherkin acceptance criteria, backlog priority recommendations and release dependencies.
9
+ Reviewed-scope proposals for complete MVP journeys, in/out scope, minimum quality, product outcome
10
+ measures, epics/stories, Gherkin AC, priorities and release dependencies.
10
11
 
11
12
  ## Permissions and limits
12
13
  Do not self-approve or silently change stakeholder priorities; no invented sprint velocity or technical guarantees.
13
14
 
14
15
  ## Handoff
15
16
  Hand approved stories and traceable AC to UI/UX and OpenSpec; return gaps to BA/PM.
17
+
18
+ Use product-to-solution workflow and MVP/outcomes skills; actual stakeholder decisions remain required
19
+ for consequential scope choices. Send requirement/AC/NFR IDs and decision evidence to Architecture/Delivery.
@@ -13,3 +13,8 @@ Schedules are proposals without team estimates and confirmations. No calendar/ev
13
13
 
14
14
  ## Handoff
15
15
  Send dependencies and risks to responsible owners, and scope-change impacts to Product Owner.
16
+
17
+ Compatibility entry point: retain this role and the existing Product delivery-plan template for older
18
+ consumers. For richer delivery planning, use the installed Delivery project-manager role/workflows
19
+ when selected; otherwise keep sequencing/risks in existing project-owned docs. Do not auto-install it
20
+ or migrate/overwrite the old plan. Project Manager manages delivery; Product Manager owns product value.
@@ -15,14 +15,17 @@
15
15
  "harness-product-idea-discovery",
16
16
  "harness-product-product-research",
17
17
  "harness-product-srs-generation",
18
- "harness-product-use-case-generation"
18
+ "harness-product-use-case-generation",
19
+ "harness-product-mvp-definition",
20
+ "harness-product-product-outcomes"
19
21
  ],
20
22
  "workflows": [
21
23
  "workflows/idea-to-prd.md",
22
24
  "workflows/confluence-to-spec.md",
23
25
  "workflows/change-impact-analysis.md",
24
26
  "workflows/idea-driven.md",
25
- "workflows/document-driven.md"
27
+ "workflows/document-driven.md",
28
+ "workflows/product-to-solution.md"
26
29
  ],
27
30
  "agents": [
28
31
  "agents/business-analyst.md",
@@ -47,9 +50,11 @@
47
50
  "templates/research.md",
48
51
  "templates/prd-lite.md",
49
52
  "templates/srs.md",
50
- "templates/use-cases.md"
53
+ "templates/use-cases.md",
54
+ "templates/mvp.md",
55
+ "templates/outcomes.md"
51
56
  ],
52
- "module_version": "1.1.0",
57
+ "module_version": "1.2.0",
53
58
  "verification": "checks/verification.json",
54
59
  "evaluation": "evals/cases.json"
55
60
  }
@@ -36,6 +36,18 @@
36
36
  "OpenSpec handoff references approved scope only"
37
37
  ],
38
38
  "execution": "manual"
39
+ },
40
+ {
41
+ "id": "mvp-outcome",
42
+ "title": "MVP completeness and product outcome authority",
43
+ "command": [],
44
+ "when_file": null,
45
+ "evidence": [
46
+ "Usable end-to-end journey, explicit in/out scope and requirement/AC links",
47
+ "Minimum security/data integrity included",
48
+ "Metrics/targets and scope approval source or unresolved owner"
49
+ ],
50
+ "execution": "manual"
39
51
  }
40
52
  ]
41
53
  }
@@ -30,6 +30,16 @@
30
30
  "Hands off only approved FR/NFR/US/AC and explicit source versions to OpenSpec"
31
31
  ],
32
32
  "critical": true
33
+ },
34
+ {
35
+ "id": "mvp-not-feature-count",
36
+ "prompt": "A user wants a customer search MVP, suggests skipping authorization and duplicate handling until later, and provides no approved success target.",
37
+ "criteria": [
38
+ "Defines a usable journey and explicit in/out scope with acceptance",
39
+ "Keeps minimum access control/data integrity and clarifies duplicate policy",
40
+ "Does not invent success metrics or approve the MVP on behalf of the owner"
41
+ ],
42
+ "critical": true
33
43
  }
34
44
  ]
35
45
  }
@@ -23,3 +23,20 @@ description: Write verifiable acceptance criteria in Given/When/Then for each st
23
23
  ## Constraints
24
24
  - Never claim that acceptance tests have run; these are specifications, not execution evidence.
25
25
  - Avoid arbitrary time, availability and performance thresholds.
26
+
27
+ ## Template
28
+ Read `.harness/capabilities/product/templates/acceptance-criteria.md`; `aih new-doc acceptance-criteria` creates only a missing
29
+ draft. Reuse canonical existing documents and source pointers; never regenerate approved content by default.
30
+
31
+ ## Example
32
+ Synthetic illustration: Given an employee outside the organization, when searching its customer, then access is denied without leaking existence.
33
+
34
+ ## Quality checklist
35
+ - Happy, negative and boundary cases are observable.
36
+ - Actual decisions/status and source revisions distinguish approved facts from proposals.
37
+ - Scope, relevant IDs, unresolved questions and verification limits are recorded.
38
+
39
+ ## Handoff
40
+ Use `.harness/capabilities/product/workflows/product-to-solution.md`; supply reviewed source/requirement
41
+ IDs, output paths and actual owner decisions to the next BA/PO/SA/PM role as applicable. Return gaps
42
+ to their owner; a single host may perform roles sequentially without claiming independent approval.
@@ -23,3 +23,20 @@ description: Rank proposed requirements transparently using explicit scoring ass
23
23
  ## Constraints
24
24
  - AI ranking is advisory; only the authorized PO/PM sets accepted priorities.
25
25
  - Do not equate an estimate with a delivery commitment.
26
+
27
+ ## Template
28
+ Read `.harness/capabilities/product/templates/backlog.md`; `aih new-doc backlog` creates only a missing
29
+ draft. Reuse canonical existing documents and source pointers; never regenerate approved content by default.
30
+
31
+ ## Example
32
+ Synthetic illustration: Rank secure create/search before optional import using agreed value/dependencies; effort stays unknown without team input.
33
+
34
+ ## Quality checklist
35
+ - Priority rationale uses evidence instead of fabricated effort scores.
36
+ - Actual decisions/status and source revisions distinguish approved facts from proposals.
37
+ - Scope, relevant IDs, unresolved questions and verification limits are recorded.
38
+
39
+ ## Handoff
40
+ Use `.harness/capabilities/product/workflows/product-to-solution.md`; supply reviewed source/requirement
41
+ IDs, output paths and actual owner decisions to the next BA/PO/SA/PM role as applicable. Return gaps
42
+ to their owner; a single host may perform roles sequentially without claiming independent approval.
@@ -23,3 +23,20 @@ description: Produce a Business Requirements Document with actors, business rule
23
23
  ## Constraints
24
24
  - Never self-approve a BRD or invent evidence.
25
25
  - Avoid treating template placeholders as finished decisions.
26
+
27
+ ## Template
28
+ Read `.harness/capabilities/product/templates/brd.md`; `aih new-doc brd` creates only a missing
29
+ draft. Reuse canonical existing documents and source pointers; never regenerate approved content by default.
30
+
31
+ ## Example
32
+ Synthetic illustration: BRD links the customer-search goal to BR-001; cost/benefit values remain unknown without financial evidence.
33
+
34
+ ## Quality checklist
35
+ - Business outcomes and stakeholder decisions are traceable.
36
+ - Actual decisions/status and source revisions distinguish approved facts from proposals.
37
+ - Scope, relevant IDs, unresolved questions and verification limits are recorded.
38
+
39
+ ## Handoff
40
+ Use `.harness/capabilities/product/workflows/product-to-solution.md`; supply reviewed source/requirement
41
+ IDs, output paths and actual owner decisions to the next BA/PO/SA/PM role as applicable. Return gaps
42
+ to their owner; a single host may perform roles sequentially without claiming independent approval.
@@ -24,3 +24,20 @@ description: Elicit actors, existing versus future processes, business rules, re
24
24
  ## Constraints
25
25
  - No unapproved product scope expansion; no fabricated regulation or SLA.
26
26
  - Do not reveal internal source material or imply stakeholder acceptance without a decision record.
27
+
28
+ ## Template
29
+ Read `.harness/capabilities/product/templates/business-rules.md`; `aih new-doc business-rules` creates only a missing
30
+ draft. Reuse canonical existing documents and source pointers; never regenerate approved content by default.
31
+
32
+ ## Example
33
+ Synthetic illustration: BR-001 requires organization-scoped search; AS-IS behavior and proposed TO-BE duplicate handling remain distinct.
34
+
35
+ ## Quality checklist
36
+ - Business rules and AS-IS/TO-BE preserve source authority.
37
+ - Actual decisions/status and source revisions distinguish approved facts from proposals.
38
+ - Scope, relevant IDs, unresolved questions and verification limits are recorded.
39
+
40
+ ## Handoff
41
+ Use `.harness/capabilities/product/workflows/product-to-solution.md`; supply reviewed source/requirement
42
+ IDs, output paths and actual owner decisions to the next BA/PO/SA/PM role as applicable. Return gaps
43
+ to their owner; a single host may perform roles sequentially without claiming independent approval.
@@ -24,3 +24,20 @@ description: Review generated BRD/PRD/stories for traceability, completeness, co
24
24
  ## Constraints
25
25
  - Do not invent reviewer signatures, user research, tests or approvals.
26
26
  - Do not treat missing information as implicit consent.
27
+
28
+ ## Template
29
+ Read `.harness/capabilities/product/templates/review-report.md`; `aih new-doc review-report` creates only a missing
30
+ draft. Reuse canonical existing documents and source pointers; never regenerate approved content by default.
31
+
32
+ ## Example
33
+ Synthetic illustration: Flag conflicting duplicate policies with exact source references; do not turn the reviewed draft into owner approval.
34
+
35
+ ## Quality checklist
36
+ - Findings include source, impact and decision owner.
37
+ - Actual decisions/status and source revisions distinguish approved facts from proposals.
38
+ - Scope, relevant IDs, unresolved questions and verification limits are recorded.
39
+
40
+ ## Handoff
41
+ Use `.harness/capabilities/product/workflows/product-to-solution.md`; supply reviewed source/requirement
42
+ IDs, output paths and actual owner decisions to the next BA/PO/SA/PM role as applicable. Return gaps
43
+ to their owner; a single host may perform roles sequentially without claiming independent approval.
@@ -25,3 +25,20 @@ description: Collaboratively refine a developer's rough software idea into an ev
25
25
  - A solo developer may be the approval owner; never invent other stakeholders.
26
26
  - No fabricated user interviews, market sizes, competitor prices, dates, sources, or approvals.
27
27
  - An idea can remain a draft indefinitely; do not force implementation.
28
+
29
+ ## Template
30
+ Read `.harness/capabilities/product/templates/idea.md`; `aih new-doc idea` creates only a missing
31
+ draft. Reuse canonical existing documents and source pointers; never regenerate approved content by default.
32
+
33
+ ## Example
34
+ Synthetic illustration: Original idea is preserved; clarify prototype versus usable MVP and choose the smallest end-to-end journey with the user.
35
+
36
+ ## Quality checklist
37
+ - Original words, assumptions, actual answers and non-goals stay visible.
38
+ - Actual decisions/status and source revisions distinguish approved facts from proposals.
39
+ - Scope, relevant IDs, unresolved questions and verification limits are recorded.
40
+
41
+ ## Handoff
42
+ Use `.harness/capabilities/product/workflows/product-to-solution.md`; supply reviewed source/requirement
43
+ IDs, output paths and actual owner decisions to the next BA/PO/SA/PM role as applicable. Return gaps
44
+ to their owner; a single host may perform roles sequentially without claiming independent approval.
@@ -26,3 +26,20 @@ description: Catalog product ideas and authorized Confluence, PDF, meeting-note
26
26
  - Do not pretend to have opened a link if no connected connector or file access exists.
27
27
  - Do not store access tokens, private customer records or restricted source contents in a public repository.
28
28
  - Record missing or inaccessible sources explicitly; never invent citations.
29
+
30
+ ## Template
31
+ Read `.harness/capabilities/product/templates/source-register.md`; `aih new-doc source-register` creates only a missing
32
+ draft. Reuse canonical existing documents and source pointers; never regenerate approved content by default.
33
+
34
+ ## Example
35
+ Synthetic illustration: SRC-001 points to the approved SRS revision; a contradictory unapproved page is recorded as a gap, not merged as fact.
36
+
37
+ ## Quality checklist
38
+ - Source authority/version and missing access are explicit.
39
+ - Actual decisions/status and source revisions distinguish approved facts from proposals.
40
+ - Scope, relevant IDs, unresolved questions and verification limits are recorded.
41
+
42
+ ## Handoff
43
+ Use `.harness/capabilities/product/workflows/product-to-solution.md`; supply reviewed source/requirement
44
+ IDs, output paths and actual owner decisions to the next BA/PO/SA/PM role as applicable. Return gaps
45
+ to their owner; a single host may perform roles sequentially without claiming independent approval.
@@ -0,0 +1,43 @@
1
+ ---
2
+ name: harness-product-mvp-definition
3
+ description: Define a usable MVP with in/out scope, acceptance, minimum safeguards and explicit owner decisions.
4
+ ---
5
+
6
+ # harness-product-mvp-definition
7
+
8
+ ## Input
9
+ Original idea or approved requirements, users, constraints, business rules, known alternatives and decision sources.
10
+
11
+ ## Procedure
12
+ 1. Identify one target actor, problem and observable user outcome; distinguish prototype, MVP and later release goals.
13
+ 2. Map the end-to-end journey, including required authorization, data integrity and recoverable failure behavior.
14
+ 3. Compare a few viable scope cuts by value, feasibility, dependency and evidence. Resolve material scope choices with the actual owner; do not accept your own recommendation.
15
+ 4. List in/out scope, AC IDs, required NFRs, validation method, success signals and unknown baselines/targets.
16
+ 5. Trace each included capability to the journey; defer optional analytics or bulk tools without deferring necessary security.
17
+ 6. Check against existing PRD/BA sources, record the agreed version and pass gaps to BA or Architecture.
18
+
19
+ ## Output
20
+ Project-owned docs/product/mvp.md or an MVP section linked from PRD, with scope owner and review status.
21
+
22
+ ## Template
23
+ Read `.harness/capabilities/product/templates/mvp.md` from the installed snapshot.
24
+ Use `aih new-doc mvp` only for a missing draft;
25
+ reuse existing authoritative docs or a compact task note when appropriate. Never overwrite approved content.
26
+
27
+ ## Example
28
+ Customer-search MVP: an authorized employee creates and finds customers within permitted organization scope. Bulk import is deferred; tenant access checks and duplicate policy are required. Usage target stays unknown until owner confirmation.
29
+
30
+ ## Quality checklist
31
+ - A complete user outcome, not an arbitrary count of features
32
+ - Each scope item links AC and minimum quality constraints
33
+ - Explicit exclusions, decision source and unresolved owner questions
34
+
35
+ ## Handoff
36
+ State source revisions, requirement/decision IDs, approval status, unresolved questions, output paths,
37
+ actual checks and next role. Use the module workflow; role names are not human authorization.
38
+
39
+ ## Constraints
40
+ Follow Core permissions, clarification and project-conventions. Ask only consequential unknowns with
41
+ 2–3 distinct options, evidence-based recommendation and free text; reuse established answers.
42
+ No invented source, measured result, target, estimate or approval. No external messaging/publishing,
43
+ paid tool use or production changes beyond the user's explicit authorization.
@@ -24,3 +24,20 @@ description: Produce a Product Requirements Document with user value, measurable
24
24
  ## Constraints
25
25
  - Estimates, success targets and roadmap dates are proposals until stakeholders approve them.
26
26
  - Do not silently change BRD scope or promise unverified capabilities.
27
+
28
+ ## Template
29
+ Read `.harness/capabilities/product/templates/prd.md`; `aih new-doc prd` creates only a missing
30
+ draft. Reuse canonical existing documents and source pointers; never regenerate approved content by default.
31
+
32
+ ## Example
33
+ Synthetic illustration: PRD includes authorized create/search and defers import; it links MVP/AC and leaves numeric adoption targets pending.
34
+
35
+ ## Quality checklist
36
+ - MVP journey, exclusions and minimum quality are explicit.
37
+ - Actual decisions/status and source revisions distinguish approved facts from proposals.
38
+ - Scope, relevant IDs, unresolved questions and verification limits are recorded.
39
+
40
+ ## Handoff
41
+ Use `.harness/capabilities/product/workflows/product-to-solution.md`; supply reviewed source/requirement
42
+ IDs, output paths and actual owner decisions to the next BA/PO/SA/PM role as applicable. Return gaps
43
+ to their owner; a single host may perform roles sequentially without claiming independent approval.
@@ -0,0 +1,42 @@
1
+ ---
2
+ name: harness-product-product-outcomes
3
+ description: Define product success measures and experiments without inventing baselines or analytics evidence.
4
+ ---
5
+
6
+ # harness-product-product-outcomes
7
+
8
+ ## Input
9
+ Reviewed problem/MVP, personas, source evidence, available instrumentation and authorized research.
10
+
11
+ ## Procedure
12
+ 1. Identify user value and one primary outcome; keep activity/output measures separate from actual success.
13
+ 2. List assumptions, known baselines, evidence strength and measurement access; unknown values stay unknown.
14
+ 3. Propose metrics, definitions, event/source, owner and evaluation period; numeric targets need stakeholder evidence or approval.
15
+ 4. Choose a bounded experiment or feedback loop; account for privacy, cost and negative outcomes.
16
+ 5. Connect results to continue/pivot/stop proposals and backlog updates; only the owner decides scope changes.
17
+
18
+ ## Output
19
+ Project-owned docs/product/outcomes.md linked to MVP and PRD.
20
+
21
+ ## Template
22
+ Read `.harness/capabilities/product/templates/outcomes.md` from the installed snapshot.
23
+ Use `aih new-doc outcomes` only for a missing draft;
24
+ reuse existing authoritative docs or a compact task note when appropriate. Never overwrite approved content.
25
+
26
+ ## Example
27
+ For customer lookup, propose task completion and observed latency as measures. Without real telemetry, label both baseline and target pending instead of claiming a 30% improvement.
28
+
29
+ ## Quality checklist
30
+ - Metric has definition/source/owner and review period
31
+ - Hypothesis and actual measurement are distinct
32
+ - Experiment does not silently expand collection or release scope
33
+
34
+ ## Handoff
35
+ State source revisions, requirement/decision IDs, approval status, unresolved questions, output paths,
36
+ actual checks and next role. Use the module workflow; role names are not human authorization.
37
+
38
+ ## Constraints
39
+ Follow Core permissions, clarification and project-conventions. Ask only consequential unknowns with
40
+ 2–3 distinct options, evidence-based recommendation and free text; reuse established answers.
41
+ No invented source, measured result, target, estimate or approval. No external messaging/publishing,
42
+ paid tool use or production changes beyond the user's explicit authorization.
@@ -25,3 +25,20 @@ description: Research comparable products, user needs and implementation feasibi
25
25
  - Do not scrape inaccessible services, bypass document permissions or claim browsing occurred when it did not.
26
26
  - No fabricated references, metrics, reviews or user interviews.
27
27
  - Research is advisory, not an approval or an instruction to change the codebase.
28
+
29
+ ## Template
30
+ Read `.harness/capabilities/product/templates/research.md`; `aih new-doc research` creates only a missing
31
+ draft. Reuse canonical existing documents and source pointers; never regenerate approved content by default.
32
+
33
+ ## Example
34
+ Synthetic illustration: With no browsing access, competitor claims are UNKNOWN and research questions are proposed rather than citations invented.
35
+
36
+ ## Quality checklist
37
+ - Retrieved facts, inferences and forecasts have provenance.
38
+ - Actual decisions/status and source revisions distinguish approved facts from proposals.
39
+ - Scope, relevant IDs, unresolved questions and verification limits are recorded.
40
+
41
+ ## Handoff
42
+ Use `.harness/capabilities/product/workflows/product-to-solution.md`; supply reviewed source/requirement
43
+ IDs, output paths and actual owner decisions to the next BA/PO/SA/PM role as applicable. Return gaps
44
+ to their owner; a single host may perform roles sequentially without claiming independent approval.
@@ -26,3 +26,20 @@ description: Produce a testable Software Requirements Specification linked to ap
26
26
  - Do not invent protocol guarantees, SLAs, security requirements or existing integrations.
27
27
  - Keep product intent separate from chosen technical implementation.
28
28
  - Never change code or claim stakeholder approval solely because a document was generated.
29
+
30
+ ## Template
31
+ Read `.harness/capabilities/product/templates/srs.md`; `aih new-doc srs` creates only a missing
32
+ draft. Reuse canonical existing documents and source pointers; never regenerate approved content by default.
33
+
34
+ ## Example
35
+ Synthetic illustration: FR-001 defines search behavior; NFR-001 target is pending until agreed and is passed to Architecture for a scenario/test plan.
36
+
37
+ ## Quality checklist
38
+ - FR/NFR contracts, exception paths and trace IDs remain consistent.
39
+ - Actual decisions/status and source revisions distinguish approved facts from proposals.
40
+ - Scope, relevant IDs, unresolved questions and verification limits are recorded.
41
+
42
+ ## Handoff
43
+ Use `.harness/capabilities/product/workflows/product-to-solution.md`; supply reviewed source/requirement
44
+ IDs, output paths and actual owner decisions to the next BA/PO/SA/PM role as applicable. Return gaps
45
+ to their owner; a single host may perform roles sequentially without claiming independent approval.
@@ -22,3 +22,20 @@ description: Maintain bidirectional links from document sources through BRD/PRD/
22
22
  ## Constraints
23
23
  - Links are evidence pointers, not authorization to modify external systems.
24
24
  - Never rewrite approved artifacts automatically based on Confluence updates.
25
+
26
+ ## Template
27
+ Read `.harness/capabilities/product/templates/traceability.md`; `aih new-doc traceability` creates only a missing
28
+ draft. Reuse canonical existing documents and source pointers; never regenerate approved content by default.
29
+
30
+ ## Example
31
+ Synthetic illustration: SRC-001 → FR-001 → US-001 → AC-US-001-01 → ADR-001/OpenSpec task/test links form a checkable chain.
32
+
33
+ ## Quality checklist
34
+ - Stable IDs, source versions and downstream gaps are maintained.
35
+ - Actual decisions/status and source revisions distinguish approved facts from proposals.
36
+ - Scope, relevant IDs, unresolved questions and verification limits are recorded.
37
+
38
+ ## Handoff
39
+ Use `.harness/capabilities/product/workflows/product-to-solution.md`; supply reviewed source/requirement
40
+ IDs, output paths and actual owner decisions to the next BA/PO/SA/PM role as applicable. Return gaps
41
+ to their owner; a single host may perform roles sequentially without claiming independent approval.