@manhd_d/ai-harness 0.7.0 → 0.9.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 (137) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/CONTRIBUTING.md +4 -0
  3. package/README.md +19 -57
  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 +6 -3
  12. package/adapters/react-native/checks/verification.yaml +36 -0
  13. package/adapters/react-native/evals/cases.json +30 -0
  14. package/adapters/react-native/rules/conventions.md +34 -0
  15. package/adapters/react-native/rules.md +5 -1
  16. package/adapters/react-native/skills/harness-react-native-behavior-testing/SKILL.md +48 -0
  17. package/adapters/react-native/skills/harness-react-native-screen-delivery/SKILL.md +53 -0
  18. package/adapters/react-nextjs/adapter.yaml +6 -3
  19. package/adapters/react-nextjs/checks/verification.yaml +36 -0
  20. package/adapters/react-nextjs/evals/cases.json +30 -0
  21. package/adapters/react-nextjs/rules/conventions.md +37 -0
  22. package/adapters/react-nextjs/rules.md +5 -1
  23. package/adapters/react-nextjs/skills/harness-react-nextjs-behavior-testing/SKILL.md +48 -0
  24. package/adapters/react-nextjs/skills/harness-react-nextjs-feature-delivery/SKILL.md +55 -0
  25. package/capabilities/architecture/README.md +11 -0
  26. package/capabilities/architecture/agents/architecture-reviewer.md +16 -0
  27. package/capabilities/architecture/agents/solution-architect.md +16 -0
  28. package/capabilities/architecture/capability.json +35 -0
  29. package/capabilities/architecture/checks/verification.json +29 -0
  30. package/capabilities/architecture/evals/cases.json +35 -0
  31. package/capabilities/architecture/skills/harness-architecture-change-impact/SKILL.md +43 -0
  32. package/capabilities/architecture/skills/harness-architecture-decision-records/SKILL.md +43 -0
  33. package/capabilities/architecture/skills/harness-architecture-project-context/SKILL.md +43 -0
  34. package/capabilities/architecture/skills/harness-architecture-quality-attributes/SKILL.md +43 -0
  35. package/capabilities/architecture/skills/harness-architecture-review/SKILL.md +43 -0
  36. package/capabilities/architecture/skills/harness-architecture-solution-design/SKILL.md +44 -0
  37. package/capabilities/architecture/templates/adr.md +29 -0
  38. package/capabilities/architecture/templates/nfr.md +22 -0
  39. package/capabilities/architecture/templates/overview.md +24 -0
  40. package/capabilities/architecture/templates/project-map.md +26 -0
  41. package/capabilities/architecture/templates/review.md +23 -0
  42. package/capabilities/architecture/templates/solution-design.md +29 -0
  43. package/capabilities/architecture/workflows/change-review.md +12 -0
  44. package/capabilities/architecture/workflows/discovery-to-design.md +16 -0
  45. package/capabilities/delivery/README.md +11 -0
  46. package/capabilities/delivery/agents/project-manager.md +16 -0
  47. package/capabilities/delivery/capability.json +29 -0
  48. package/capabilities/delivery/checks/verification.json +29 -0
  49. package/capabilities/delivery/evals/cases.json +25 -0
  50. package/capabilities/delivery/skills/harness-delivery-planning/SKILL.md +43 -0
  51. package/capabilities/delivery/skills/harness-delivery-risk-management/SKILL.md +42 -0
  52. package/capabilities/delivery/skills/harness-delivery-scope-change/SKILL.md +43 -0
  53. package/capabilities/delivery/templates/change-assessment.md +23 -0
  54. package/capabilities/delivery/templates/delivery-plan.md +25 -0
  55. package/capabilities/delivery/templates/risk-register.md +19 -0
  56. package/capabilities/delivery/workflows/execution-change.md +9 -0
  57. package/capabilities/delivery/workflows/planning.md +12 -0
  58. package/capabilities/product/README.md +7 -0
  59. package/capabilities/product/agents/business-analyst.md +3 -0
  60. package/capabilities/product/agents/product-owner.md +5 -1
  61. package/capabilities/product/agents/project-manager.md +5 -0
  62. package/capabilities/product/capability.json +9 -4
  63. package/capabilities/product/checks/verification.json +12 -0
  64. package/capabilities/product/evals/cases.json +10 -0
  65. package/capabilities/product/skills/harness-product-acceptance-criteria/SKILL.md +17 -0
  66. package/capabilities/product/skills/harness-product-backlog-prioritization/SKILL.md +17 -0
  67. package/capabilities/product/skills/harness-product-brd-generation/SKILL.md +17 -0
  68. package/capabilities/product/skills/harness-product-business-analysis/SKILL.md +17 -0
  69. package/capabilities/product/skills/harness-product-document-review/SKILL.md +17 -0
  70. package/capabilities/product/skills/harness-product-idea-discovery/SKILL.md +17 -0
  71. package/capabilities/product/skills/harness-product-knowledge-analysis/SKILL.md +17 -0
  72. package/capabilities/product/skills/harness-product-mvp-definition/SKILL.md +43 -0
  73. package/capabilities/product/skills/harness-product-prd-generation/SKILL.md +17 -0
  74. package/capabilities/product/skills/harness-product-product-outcomes/SKILL.md +42 -0
  75. package/capabilities/product/skills/harness-product-product-research/SKILL.md +17 -0
  76. package/capabilities/product/skills/harness-product-srs-generation/SKILL.md +17 -0
  77. package/capabilities/product/skills/harness-product-traceability/SKILL.md +17 -0
  78. package/capabilities/product/skills/harness-product-use-case-generation/SKILL.md +17 -0
  79. package/capabilities/product/skills/harness-product-user-stories/SKILL.md +17 -0
  80. package/capabilities/product/templates/mvp.md +25 -0
  81. package/capabilities/product/templates/outcomes.md +23 -0
  82. package/capabilities/product/workflows/document-driven.md +4 -0
  83. package/capabilities/product/workflows/idea-driven.md +4 -0
  84. package/capabilities/product/workflows/product-to-solution.md +15 -0
  85. package/cli/agents.js +165 -0
  86. package/cli/environment.js +14 -1
  87. package/cli/harness.js +24 -9
  88. package/cli/main.js +19 -6
  89. package/config/agents.default.json +80 -0
  90. package/core/agents/documentation.md +13 -0
  91. package/core/agents/implementer.md +7 -0
  92. package/core/agents/orchestrator.md +13 -0
  93. package/core/agents/planner.md +4 -0
  94. package/core/agents/reviewer.md +8 -0
  95. package/core/checks/verification.json +37 -0
  96. package/core/evals/cases.json +70 -0
  97. package/core/evals/composition.json +15 -0
  98. package/core/rules/foundations.md +1 -0
  99. package/core/rules/project-conventions.md +61 -0
  100. package/core/workflows/agent-routing.md +28 -0
  101. package/core/workflows/bugfix.md +2 -0
  102. package/core/workflows/project-setup.md +9 -1
  103. package/core/workflows/solution-framing.md +33 -0
  104. package/core/workflows/spec-to-code.md +11 -3
  105. package/docs/README.md +39 -0
  106. package/docs/adapters.md +10 -2
  107. package/docs/agent-configuration.md +99 -0
  108. package/docs/agent-handoffs.md +23 -0
  109. package/docs/architecture.md +22 -1
  110. package/docs/cli.md +29 -4
  111. package/docs/documentation-workflows.md +7 -0
  112. package/docs/end-to-end-workflow.md +14 -1
  113. package/docs/examples/fullstack-web.md +4 -0
  114. package/docs/examples/react-native-app.md +4 -0
  115. package/docs/frontend-mobile.md +76 -0
  116. package/docs/getting-started.md +46 -78
  117. package/docs/harness-maintenance.md +80 -0
  118. package/docs/monetization.md +1 -1
  119. package/docs/project-configuration.md +4 -0
  120. package/docs/project-conventions.md +67 -0
  121. package/docs/research/solution-workflow-sources.md +30 -0
  122. package/docs/skill-matrix.md +34 -6
  123. package/docs/solution-workflow.md +67 -0
  124. package/docs/templates/harness-change-impact.md +30 -0
  125. package/docs/tool-setup/README.md +70 -0
  126. package/docs/tool-setup/claude-code.md +57 -0
  127. package/docs/tool-setup/codex.md +44 -0
  128. package/docs/tool-setup/copilot.md +42 -0
  129. package/docs/tool-setup/cursor.md +44 -0
  130. package/docs/tool-setup/gemini-cli.md +41 -0
  131. package/docs/versioning.md +38 -0
  132. package/evals/README.md +13 -0
  133. package/harness.yaml +4 -2
  134. package/package.json +2 -1
  135. package/templates/AGENTS.md +7 -0
  136. package/templates/openspec/design.md +6 -0
  137. package/templates/openspec/tasks.md +1 -0
@@ -0,0 +1,70 @@
1
+ # Setup AI Harness with coding tools
2
+
3
+ Official discovery docs reviewed 2026-10-12. Authenticate/install the chosen host with its official
4
+ instructions, then run Harness in the actual repository. Host/version/account capabilities vary;
5
+ these are setup recipes, not a claim that native client behavior was tested in this workspace.
6
+
7
+ ## Common setup
8
+ ```bash
9
+ npm install -g @manhd_d/ai-harness
10
+ aih init --adapters java-spring --capabilities product,architecture,delivery
11
+ aih check
12
+ aih setup
13
+ aih doctor
14
+ aih skills
15
+ ```
16
+ Node.js 22+ is required by Harness; app stack remains independent. Replace adapter selection with
17
+ react-nextjs/react-native/astro as appropriate. A coding-only maintain task can use just Core + adapter.
18
+ For an existing install, edit .harness/project.json and reviewed update --dry-run/update/check.
19
+
20
+ Fill .harness/local.md with mode, source docs/MVP/ADRs, public boundaries and actual commands; use
21
+ [project configuration](../project-configuration.md) for Maven/JDK/settings and ignored machine paths.
22
+ Do not bypass runtime permission policy or publish credentials. Configure GitHub/Figma/Confluence MCP
23
+ only when needed, with the host's official setup and authorized access; Harness does not connect accounts.
24
+
25
+ | Host | Project entry | Skill handling | Guide |
26
+ | --- | --- | --- | --- |
27
+ | Codex CLI/IDE | AGENTS.md and applicable nested/override instructions | .agents/skills native discovery | [Codex](codex.md) |
28
+ | Claude Code | Direct AGENTS support varies with current configuration/version; CLAUDE.md import fallback | .claude/skills wrapper when native slash invocation is desired; manual canonical read always possible | [Claude Code](claude-code.md) |
29
+ | Cursor | AGENTS.md; existing .cursor/rules may also apply | .agents/skills discovery | [Cursor](cursor.md) |
30
+ | Copilot | Client-specific AGENTS support or .github/copilot-instructions.md pointer | CLI supports .agents/skills; IDE support depends on client/version | [Copilot](copilot.md) |
31
+ | Gemini CLI | GEMINI.md import or context.fileName includes AGENTS.md | .agents/skills workspace alias | [Gemini CLI](gemini-cli.md) |
32
+
33
+ Preserve existing host files; merge only a reviewed pointer/import, never replace the whole config.
34
+ Bridges are project-owned and not managed by aih. Keep one canonical skill body in .agents/skills;
35
+ never copy every rule into each host config or advertise markdown role files as native agents.
36
+
37
+ ## Read-only setup smoke test
38
+ Ask the host:
39
+ ```text
40
+ Read the applicable AGENTS.md and .harness/local.md. Do not modify files or execute commands.
41
+ State the selected adapters/capabilities and exact installed paths for solution-framing and one
42
+ relevant skill. Summarize current project mode, known MVP/architecture decisions and missing facts.
43
+ Explain which declarations the configured test command comes from; do not claim any test ran.
44
+ ```
45
+ Expected: actual source paths, correct selection and no fabricated file/command/result. If automatic
46
+ skill discovery fails, explicitly ask to read .agents/skills/<installed-name>/SKILL.md. `aih skills`
47
+ is a catalog, and `aih skill <name>` prints canonical instructions; neither invokes an AI model.
48
+
49
+ ## Start prompts
50
+ | Task | Prompt |
51
+ | --- | --- |
52
+ | Idea → MVP | Read Product product-to-solution; clarify the useful user journey, in/out scope and minimum quality before proposing architecture. |
53
+ | Existing BA docs | Use the approved source/revision, extract only this change's requirements and gaps; preserve authoritative docs. |
54
+ | SA design | Read Architecture discovery-to-design; compare minimal viable options, NFRs and justified feature patterns with actual decision sources. |
55
+ | Maintain | Inspect touched module/code/tests and public common APIs; follow existing architecture and update only affected project-map entries. |
56
+ | Delivery | Plan value slices/dependencies using real team estimates; unknown dates remain unknown; link AC/ADRs/OpenSpec. |
57
+
58
+ ## Update and troubleshoot
59
+ Update the global CLI, then review snapshot update --dry-run/update/check. Restart/reload host discovery
60
+ where required; read-only smoke again after setup changes. Keep custom host bridges and local.md.
61
+ If a managed file conflicts, reconcile with Git rather than editing lock hashes. Check workspace root,
62
+ nested override precedence, host context/trust settings, module selection and installed skill paths.
63
+ Private VPN/tool access may be unavailable remotely; report blocked builds rather than inventing success.
64
+ No logged-in host/MCP or live-agent smoke was run for these docs; follow each linked official guide.
65
+
66
+ ## Agent/model preferences
67
+
68
+ Review [Agent configuration](../agent-configuration.md) and run `aih setup --host <id>` for a declared
69
+ routing plan. Validate native model/effort in the actual picker/client; no account availability is
70
+ probed or host config overwritten. Incompatible defaults need your explicit provider/model mapping.
@@ -0,0 +1,57 @@
1
+ # Claude Code
2
+
3
+ Install/authenticate with [official setup](https://code.claude.com/docs/en/setup), then follow
4
+ [common setup](README.md) and launch `claude` at the repository root.
5
+
6
+ ## Instructions
7
+ Current Claude documentation describes direct AGENTS.md support with version/configuration conditions.
8
+ If direct discovery is unavailable, add the following import to an existing project CLAUDE.md, or
9
+ create the file if absent, without discarding any other content:
10
+ ```markdown
11
+ @AGENTS.md
12
+ ```
13
+ Check the host's loaded project instructions and nested/global files. Keep one canonical AGENTS;
14
+ do not add a hook that prints a duplicate copy. The import remains a documented compatibility option.
15
+
16
+ ## Skills
17
+ Claude documents .claude/skills for project skills. Harness does not assume .agents/skills is a native
18
+ Claude skill location. Manual canonical loading from AGENTS instructions works without slash registration.
19
+ If you want native invocation for a selected skill, create a small project-owned wrapper at
20
+ .claude/skills/harness-product-mvp-definition/SKILL.md:
21
+ ```markdown
22
+ ---
23
+ name: harness-product-mvp-definition
24
+ description: Define an MVP using this project's installed AI Harness instructions.
25
+ ---
26
+ Read the applicable AGENTS.md and then the canonical project file
27
+ .agents/skills/harness-product-mvp-definition/SKILL.md. Follow its procedure and handoff;
28
+ keep actual owner decisions and verification status explicit.
29
+ ```
30
+ Then use `/harness-product-mvp-definition` in a supporting session. This wrapper is a pointer,
31
+ not a copied skill body; maintain only needed wrappers and preserve existing native skills.
32
+
33
+ ## Verify and use
34
+ Run the [read-only smoke prompt](README.md) before an implementation task. Check actual paths and
35
+ known decisions, then use the idea/document/SA/maintain prompts on that page. If discovery is missing,
36
+ ask to read the exact installed `.agents/skills/harness-*/SKILL.md` relevant to the task; do not paste
37
+ all skill bodies. Application commands come from local.md/environment.json and actual build files.
38
+ Follow host permission settings; no instruction creates missing account, network or tool access.
39
+
40
+ ## Update / troubleshooting
41
+ Use the common reviewed CLI/snapshot update procedure. Preserve existing project/global host config,
42
+ review nested instructions and restart/reload the host when discovery changes. A Harness integrity
43
+ check is separate from host discovery, app build or behavioral compliance. Native client login/setup
44
+ was not exercised here; official references below establish the documented discovery mechanism.
45
+
46
+ ## Official references (checked 2026-10-12)
47
+ - [Memory, AGENTS and imports](https://code.claude.com/docs/en/memory)
48
+ - [Project skills and invocation](https://code.claude.com/docs/en/skills)
49
+
50
+ ## Native model configuration
51
+ Use [Agent preferences](../agent-configuration.md) with an explicitly available Anthropic model or
52
+ reviewed host mapping. OpenAI Sol/Astra preferences cannot run directly in Claude Code. Native model
53
+ selection follows [official model config](https://code.claude.com/docs/en/model-config); use /model and
54
+ client-supported effort controls, preserving existing settings/authentication. Native per-role agents
55
+ use [official subagent format](https://code.claude.com/docs/en/sub-agents) in .claude/agents with model
56
+ and supported effort settings. Role contracts can be referenced by a short instruction. aih does not
57
+ write these files, infer account access or equate native Claude reasoning with OpenAI reasoning.
@@ -0,0 +1,44 @@
1
+ # Codex CLI and IDE
2
+
3
+ Install/authenticate Codex from [official CLI](https://developers.openai.com/codex/cli/) or
4
+ [IDE extension](https://developers.openai.com/codex/ide/), then follow [common setup](README.md).
5
+ Launch `codex` or open the IDE at the initialized repository root.
6
+
7
+ ## Instructions and skills
8
+ Codex reads AGENTS.md through its project hierarchy and can prefer AGENTS.override.md. Inspect
9
+ applicable global/nested overrides when behavior differs; do not overwrite user defaults.
10
+ Harness exposes declared skills in .agents/skills, the documented repository skill path. Start a new
11
+ session after setup/update if needed; ask for one installed skill by name or canonical path.
12
+ Markdown role contracts in .harness/core/agents and selected capabilities are read by the host;
13
+ they are not automatically installed as native Codex subagents. .harness/local.md remains project context.
14
+
15
+ ## Verify and use
16
+ Run the [read-only smoke prompt](README.md) before an implementation task. Check actual paths and
17
+ known decisions, then use the idea/document/SA/maintain prompts on that page. If discovery is missing,
18
+ ask to read the exact installed `.agents/skills/harness-*/SKILL.md` relevant to the task; do not paste
19
+ all skill bodies. Application commands come from local.md/environment.json and actual build files.
20
+ Follow host permission settings; no instruction creates missing account, network or tool access.
21
+
22
+ ## Update / troubleshooting
23
+ Use the common reviewed CLI/snapshot update procedure. Preserve existing project/global host config,
24
+ review nested instructions and restart/reload the host when discovery changes. A Harness integrity
25
+ check is separate from host discovery, app build or behavioral compliance. Native client login/setup
26
+ was not exercised here; official references below establish the documented discovery mechanism.
27
+
28
+ ## Official references (checked 2026-10-12)
29
+ - [AGENTS discovery](https://learn.chatgpt.com/docs/agent-configuration/agents-md)
30
+ - [Skill discovery](https://learn.chatgpt.com/docs/build-skills)
31
+
32
+ ## Native model configuration
33
+ Follow [Agent preferences](../agent-configuration.md), then verify model access and supported effort.
34
+ The official [config guide](https://learn.chatgpt.com/docs/config-file/config-basic) supports a reviewed
35
+ merge into .codex/config.toml for CLI/IDE:
36
+ ```toml
37
+ model = "gpt-6.1-sol"
38
+ model_reasoning_effort = "medium"
39
+ ```
40
+ For deliberate native agents use the current [subagent guide](https://learn.chatgpt.com/docs/agent-configuration/subagents).
41
+ Standalone .codex/agents/*.toml uses name, description and developer_instructions, with optional model
42
+ and model_reasoning_effort. Keep a small instruction pointing to the installed role/skill, not duplicated
43
+ bodies. No files are generated/applied by aih; actual schema/client/account and thread-limit semantics
44
+ must be checked. A normal session does not switch model automatically per Harness role.
@@ -0,0 +1,42 @@
1
+ # GitHub Copilot IDE and CLI
2
+
3
+ Install/sign in with [official Copilot docs](https://docs.github.com/en/copilot). In the IDE, open
4
+ the project and use the supported Agent mode; for CLI start the authenticated `copilot` client at
5
+ the root. Apply [common setup](README.md).
6
+
7
+ ## Instructions
8
+ Support for AGENTS and skills varies between IDE/CLI/cloud features. Preserve existing settings.
9
+ For a repository-wide IDE bridge, merge into .github/copilot-instructions.md:
10
+ ```markdown
11
+ Before implementation, read the applicable root/nested AGENTS.md and .harness/local.md.
12
+ Follow the installed Core/selected capability workflows and only the relevant skill in .agents/skills.
13
+ Report exact source paths, owner decisions and actual verification; do not infer test results.
14
+ ```
15
+ This asks the agent to read files, not an automatic content import. Verify with the smoke prompt.
16
+ Copilot CLI documents .agents/skills as a project skill directory; `/skills reload` and
17
+ `/skills info <name>` can verify discovery there. IDE support must be checked for that specific client;
18
+ use the canonical manual path when automatic discovery is unavailable.
19
+
20
+ ## Verify and use
21
+ Run the [read-only smoke prompt](README.md) before an implementation task. Check actual paths and
22
+ known decisions, then use the idea/document/SA/maintain prompts on that page. If discovery is missing,
23
+ ask to read the exact installed `.agents/skills/harness-*/SKILL.md` relevant to the task; do not paste
24
+ all skill bodies. Application commands come from local.md/environment.json and actual build files.
25
+ Follow host permission settings; no instruction creates missing account, network or tool access.
26
+
27
+ ## Update / troubleshooting
28
+ Use the common reviewed CLI/snapshot update procedure. Preserve existing project/global host config,
29
+ review nested instructions and restart/reload the host when discovery changes. A Harness integrity
30
+ check is separate from host discovery, app build or behavioral compliance. Native client login/setup
31
+ was not exercised here; official references below establish the documented discovery mechanism.
32
+
33
+ ## Official references (checked 2026-10-12)
34
+ - [IDE repository instructions](https://docs.github.com/en/copilot/how-tos/copilot-in-your-ide/customize-copilot/configure-custom-instructions/add-repository-instructions-in-your-ide)
35
+ - [CLI skills](https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/add-skills)
36
+
37
+ ## Agent routing
38
+
39
+ Read [Agent preferences](../agent-configuration.md). Verify current model picker/account and effort
40
+ controls; aih setup --host copilot returns declarations only. Native per-role model switching or
41
+ concurrency requires specific client support; otherwise perform roles sequentially with the selected
42
+ session model. Never substitute premium or overwrite existing host settings automatically.
@@ -0,0 +1,44 @@
1
+ # Cursor
2
+
3
+ Install/sign in via [official Cursor docs](https://cursor.com/docs). Open the repository folder and
4
+ Agent, then follow [common setup](README.md).
5
+
6
+ ## Instructions and skills
7
+ Cursor supports project/nested AGENTS.md and .agents/skills. Preserve existing .cursor/rules and
8
+ check their scope with project conventions before adding another rule. Ask Agent to read applicable
9
+ AGENTS/local.md and use one installed skill; inspect discovery in the current client.
10
+ If a specific workspace needs an explicit rule pointer, create a project-owned .cursor/rules/harness.mdc:
11
+ ```markdown
12
+ ---
13
+ description: Use the installed AI Harness for this repository.
14
+ alwaysApply: true
15
+ ---
16
+ Read the applicable AGENTS.md and its referenced project context before changing code.
17
+ Load only the installed skill needed for the task from .agents/skills.
18
+ ```
19
+ Do not copy the full Harness snapshot into the rule. AGENTS already supplies the canonical entry;
20
+ use this bridge only if needed, avoiding contradictory project/global/nested instructions.
21
+
22
+ ## Verify and use
23
+ Run the [read-only smoke prompt](README.md) before an implementation task. Check actual paths and
24
+ known decisions, then use the idea/document/SA/maintain prompts on that page. If discovery is missing,
25
+ ask to read the exact installed `.agents/skills/harness-*/SKILL.md` relevant to the task; do not paste
26
+ all skill bodies. Application commands come from local.md/environment.json and actual build files.
27
+ Follow host permission settings; no instruction creates missing account, network or tool access.
28
+
29
+ ## Update / troubleshooting
30
+ Use the common reviewed CLI/snapshot update procedure. Preserve existing project/global host config,
31
+ review nested instructions and restart/reload the host when discovery changes. A Harness integrity
32
+ check is separate from host discovery, app build or behavioral compliance. Native client login/setup
33
+ was not exercised here; official references below establish the documented discovery mechanism.
34
+
35
+ ## Official references (checked 2026-10-12)
36
+ - [Rules and AGENTS](https://cursor.com/docs/rules)
37
+ - [Skills and .agents discovery](https://cursor.com/docs/skills)
38
+
39
+ ## Agent routing
40
+
41
+ Read [Agent preferences](../agent-configuration.md). Verify current model picker/account and effort
42
+ controls; aih setup --host cursor returns declarations only. Native per-role model switching or
43
+ concurrency requires specific client support; otherwise perform roles sequentially with the selected
44
+ session model. Never substitute premium or overwrite existing host settings automatically.
@@ -0,0 +1,41 @@
1
+ # Gemini CLI
2
+
3
+ Install/authenticate from [official docs](https://geminicli.com/docs/), follow [common setup](README.md)
4
+ and launch `gemini` at the initialized root.
5
+
6
+ ## Instructions and skills
7
+ Gemini uses GEMINI.md by default. Merge an import into the existing root GEMINI.md if needed:
8
+ ```markdown
9
+ @./AGENTS.md
10
+ ```
11
+ Alternatively, merge `context.fileName` in the existing project settings.json so the list includes
12
+ AGENTS.md while preserving other configured context names. Do not replace the entire settings file
13
+ or use both routes to inflate context unnecessarily. `/memory show` checks loaded content and
14
+ `/memory reload` refreshes it according to current official docs.
15
+ Gemini documents .agents/skills as a workspace alias. Avoid duplicating the same skills in
16
+ .gemini/skills; check current discovery and ask for the installed skill needed by the task.
17
+
18
+ ## Verify and use
19
+ Run the [read-only smoke prompt](README.md) before an implementation task. Check actual paths and
20
+ known decisions, then use the idea/document/SA/maintain prompts on that page. If discovery is missing,
21
+ ask to read the exact installed `.agents/skills/harness-*/SKILL.md` relevant to the task; do not paste
22
+ all skill bodies. Application commands come from local.md/environment.json and actual build files.
23
+ Follow host permission settings; no instruction creates missing account, network or tool access.
24
+
25
+ ## Update / troubleshooting
26
+ Use the common reviewed CLI/snapshot update procedure. Preserve existing project/global host config,
27
+ review nested instructions and restart/reload the host when discovery changes. A Harness integrity
28
+ check is separate from host discovery, app build or behavioral compliance. Native client login/setup
29
+ was not exercised here; official references below establish the documented discovery mechanism.
30
+
31
+ ## Official references (checked 2026-10-12)
32
+ - [Context/imports/settings](https://geminicli.com/docs/cli/gemini-md/)
33
+ - [Workspace skill aliases](https://geminicli.com/docs/cli/skills/)
34
+
35
+ ## Native model configuration
36
+ Use [Agent preferences](../agent-configuration.md) with an explicitly available Google/Vertex model
37
+ or reviewed mapping. Check the native /model picker against [official model selection](https://geminicli.com/docs/cli/model/).
38
+ Main --model selection does not override native subagent models; configure them separately following
39
+ [official subagents](https://geminicli.com/docs/core/subagents/) and your client's generation settings.
40
+ Reasoning/thinking controls are model-specific. No OpenAI model is assumed to run directly here and
41
+ no native JSON/agent file is created by aih. Verify actual delegation and capacity before parallel work.
@@ -1,5 +1,7 @@
1
1
  # Versioning and migration
2
2
 
3
+ Maintainer entry point: [Harness maintenance and impact matrix](harness-maintenance.md).
4
+
3
5
  Framework version is in harness.yaml and package.json; keep both and package-lock.json synchronized. Use three-part SemVer releases and Git tags vX.Y.Z after review.
4
6
  0.6.0 was initially published manually to npm. Future versions are prepared by Release Please after human PR review; do not publish directly from a feature PR.
5
7
 
@@ -102,3 +104,39 @@ No new configuration/lock schema version: 0.5 Product templates, `aih new-doc`,
102
104
  ## Foundation hardening (unreleased after 0.6)
103
105
 
104
106
  Module contracts gain optional version and dependency fields without changing config/lock schema 1. Existing consumer snapshots retain default adapter-only verify/eval. After a reviewed update, `--scope all` enables locked Core/capability/composition evaluation, and `--scope core` works in core-only projects. Feature branches keep the latest release version; Release Please's generated PR chooses and synchronizes the next number. Use tagged releases for other consumers rather than interpreting an unreleased commit as a published update.
107
+
108
+ ## Project coding conventions (unreleased)
109
+
110
+ Config and lock remain schema 1. Core adds project-conventions.md; Java/Spring, React/Next.js and React Native module contracts advance to 1.1.0 with conventions, manual checks and evaluation cases. Distribution version remains release-PR owned. Reviewed update adds managed assets and preserves existing local.md, environment and unmanaged AGENTS text. Old local.md is not rewritten; the host can append missing facts after inspection. Re-export evaluation datasets/reports after update because bundle hashes change. See [Project conventions](project-conventions.md).
111
+
112
+ ## Harness maintenance contract (unreleased)
113
+
114
+ Maintainer guidance and impact templates do not alter consumer instructions or schemas. Kubernetes module 1.0.1 adds discovery links to its existing rules; use the usual reviewed update dry-run/update/check sequence. Project-owned files remain preserved, and rollback uses the consumer installation commit. Distribution version remains Release Please-owned.
115
+
116
+ ## Product, Architecture and Delivery (unreleased)
117
+
118
+ Product module 1.2.0 is additive; Architecture/Delivery start at 1.0.0 and are optional. Distribution
119
+ version remains Release Please-owned. Config/lock/capability schemas stay 1. Existing new-doc calls
120
+ keep Product paths and old PM role/plan template IDs. Explicit --capability selects another installed
121
+ module and requires declared locked metadata/templates; undeclared files are not document types.
122
+ On a consumer branch add architecture/delivery to project.json if needed, review update --dry-run,
123
+ update and check; existing docs, local facts and host bridges remain project-owned. Re-export eval
124
+ reports for the changed bundle. No automatic old-plan migration; revert installation commit to roll back.
125
+
126
+ ## Agent routing and release-test repair (unreleased)
127
+
128
+ Agent config uses independent schema 1; project/lock schema remains 1. Reviewed update adds a locked
129
+ default and seeds agents.json only if absent; custom bytes and host files survive. Old alternate source
130
+ bundles use the CLI canonical seed if necessary. Existing configs are validated before writes and new
131
+ role gaps inherit/report project defaults. Inspect new payload/update diff; re-export eval reports after
132
+ bundle changes. Revert consumer installation commit for rollback. Release update tests use relative
133
+ versions instead of hardcoded 0.7.0, preserving downgrade refusal on future release branches.
134
+
135
+ ## Frontend/mobile coding and onboarding (unreleased)
136
+
137
+ React/Next.js and React Native module contracts advance from 1.1.0 to 1.2.0 additively: existing skill
138
+ IDs remain, feature/screen and behavior-testing skills plus manual checks/unscored cases are added.
139
+ Project/lock/agent schemas and the distribution version stay unchanged. Existing consumers run the
140
+ usual reviewed update dry-run/update/check; local.md, agents.json, native host config and app files are
141
+ project-owned and preserved. Re-export eval reports after bundle changes; revert the consumer install
142
+ commit for rollback. See [Frontend/mobile coding](frontend-mobile.md).
package/evals/README.md CHANGED
@@ -46,3 +46,16 @@ regression thresholds using the harness-ai-evaluation skill. Do not combine thos
46
46
  Adapter-specific scenarios are installed with each selected adapter. Use `aih eval` and
47
47
  `aih eval --report report.json`; see [adapter evaluation](../docs/adapters.md). This is a separate
48
48
  dataset from the Core cases scored by scripts/score-eval.js. Neither command invokes a model.
49
+
50
+ ## Project-convention scenarios
51
+
52
+ `aih eval --scope all` includes five Core cases for new-project defaults, mixed-module maintenance, inappropriate reuse, unsafe legacy code and conflicting sources, plus one reuse scenario in each Java/Spring, React/Next.js and React Native adapter when selected. Use a disposable consumer containing the concrete files described by the prompt and keep their paths in the trace. Score actual inspected files, reused symbols, new-code rationale and verification honesty. New cases have not been run against a live agent; install/update and report tests only establish the CLI contract.
53
+
54
+ ## Product / solution / delivery scenarios
55
+
56
+ After selecting relevant capabilities, `aih eval --scope all` includes MVP minimum-quality, architecture
57
+ pattern-level/NFR/stale-map, delivery estimate/scope-change and cross-role handoff cases. Core also
58
+ checks proportional handling of a small clear fix. All new cases remain unscored; run in a disposable
59
+ project through the intended host and review actual inspected files/decisions/code/test evidence.
60
+ CLI/template/package tests verify distribution and safety contracts, not native host discovery or
61
+ Solution Architect effectiveness. The [host smoke prompt](../docs/tool-setup/README.md) is read-only.
package/harness.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "schema_version": 1,
3
3
  "name": "ai-harness",
4
- "version": "0.7.0",
4
+ "version": "0.9.0",
5
5
  "adapters": [
6
6
  "java-spring",
7
7
  "react-nextjs",
@@ -19,6 +19,8 @@
19
19
  "uiux",
20
20
  "product",
21
21
  "devops",
22
- "monetization"
22
+ "monetization",
23
+ "architecture",
24
+ "delivery"
23
25
  ]
24
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@manhd_d/ai-harness",
3
- "version": "0.7.0",
3
+ "version": "0.9.0",
4
4
  "description": "Reusable AI development rules, skills and workflows with a safe local installer",
5
5
  "type": "module",
6
6
  "bin": {
@@ -20,6 +20,7 @@
20
20
  "files": [
21
21
  "bin/",
22
22
  "cli/*.js",
23
+ "config/",
23
24
  "core/",
24
25
  "adapters/",
25
26
  "capabilities/",
@@ -3,7 +3,14 @@
3
3
 
4
4
  1. Read `.harness/core/rules/foundations.md`, `.harness/core/rules/context.md` and `.harness/core/policies/security.md`.
5
5
  2. Read `.harness/core/policies/permissions.md` and `.harness/core/workflows/spec-to-code.md`.
6
+ For new projects or consequential changes, apply `.harness/core/workflows/solution-framing.md`;
7
+ preserve approved MVP/architecture and use compact notes for small clear fixes.
6
8
  3. Read `.harness/local.md` and `.harness/environment.json` (if present) for project facts and commands.
9
+ Read project-owned `.harness/agents.json` when present and `.harness/core/workflows/agent-routing.md`.
10
+ Model/execution settings are preferences: verify actual host support, keep simple work sequential,
11
+ and never switch to premium automatically. Host/runtime permissions still apply.
12
+ Before coding, read `.harness/core/rules/project-conventions.md`: establish new/maintain/mixed scope,
13
+ inspect comparable code and search reusable components before adding files or abstractions.
7
14
  For first-run or missing environment facts, use `.harness/core/workflows/project-setup.md`.
8
15
  Machine paths may come from ignored `.harness/machine.json`; do not copy private values into shared files.
9
16
  Before consequential implementation, follow `.harness/core/workflows/clarification.md`:
@@ -4,6 +4,12 @@
4
4
  TODO: Verified constraints and current behavior.
5
5
  ## Goals / Non-Goals
6
6
  TODO: Scope boundaries.
7
+ ## Convention and Reuse Plan
8
+ TODO: New/maintain/mixed scope, applicable convention source paths, comparable implementations,
9
+ reusable public APIs, intended code placement and rationale for new components/dependencies.
10
+ ## Solution Fit
11
+ TODO: Link MVP/AC/NFR, affected modules/data/contracts, important failure flows, accepted ADRs or
12
+ proportional decision notes, dependencies and rollout/rollback constraints.
7
13
  ## Decisions
8
14
  TODO: Chosen approach, alternatives and trade-offs.
9
15
  ## Risks / Trade-offs
@@ -2,6 +2,7 @@
2
2
 
3
3
  ## 1. Acceptance and design
4
4
  - [ ] 1.1 Replace draft placeholders and agree acceptance scenarios and test boundaries.
5
+ - [ ] 1.2 Link applicable MVP/NFR/architecture decisions and dependency/verification boundaries; use a compact note when a full design pack is unnecessary.
5
6
  ## 2. Vertical implementation
6
7
  - [ ] 2.1 Add one failing behavior test, implement the slice and record the green result.
7
8
  ## 3. Verification and review