repo-harness 0.9.2 → 0.10.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/AGENTS.md +15 -8
- package/CLAUDE.md +15 -8
- package/README.es.md +17 -20
- package/README.fr.md +17 -21
- package/README.ja.md +16 -20
- package/README.md +37 -31
- package/README.zh-CN.md +19 -20
- package/SKILL.md +15 -404
- package/agents/fleet/deep-reasoner.md +14 -0
- package/agents/fleet/explorer.md +17 -0
- package/agents/fleet/fast-worker.md +14 -0
- package/agents/fleet/gatekeeper.md +17 -0
- package/agents/fleet/harness-evaluator.md +16 -0
- package/agents/fleet/root-cause-prover.md +17 -0
- package/assets/AGENTS.md +14 -6
- package/assets/CLAUDE.md +14 -6
- package/assets/hooks/AGENTS.md +2 -2
- package/assets/hooks/CLAUDE.md +2 -2
- package/assets/hooks/codex-delegation-advisor.sh +212 -35
- package/assets/hooks/hook-input.sh +67 -1
- package/assets/hooks/lib/workflow-state.sh +172 -72
- package/assets/hooks/post-bash.sh +4 -0
- package/assets/hooks/post-edit-guard.sh +1 -21
- package/assets/hooks/pre-edit-guard.sh +129 -2
- package/assets/hooks/projection.json +1 -3
- package/assets/hooks/prompt-guard.sh +117 -20
- package/assets/hooks/session-start-context.sh +68 -8
- package/assets/hooks/stop-orchestrator.sh +222 -3
- package/assets/hooks/subagent-start-context.sh +433 -15
- package/assets/initializer-question-pack.v4.json +2 -3
- package/assets/partials/04-project-structure.partial.md +4 -4
- package/assets/partials/05-workflow.partial.md +4 -6
- package/assets/partials/08-orchestration.partial.md +1 -1
- package/assets/partials-agents/02-operating-mode.partial.md +4 -4
- package/assets/partials-agents/03-orchestration.partial.md +1 -1
- package/assets/partials-agents/04-task-protocol.partial.md +2 -2
- package/assets/partials-agents/08-deep-docs.partial.md +3 -3
- package/assets/reference-configs/agentic-development-flow.md +22 -8
- package/assets/reference-configs/ai-workflows.md +0 -1
- package/assets/reference-configs/changelog-versioning.md +0 -1
- package/assets/reference-configs/coding-standards.md +0 -1
- package/assets/reference-configs/design-options.md +192 -0
- package/assets/reference-configs/development-protocol.md +0 -1
- package/assets/reference-configs/document-generation.md +1 -1
- package/assets/reference-configs/evaluator-rubric.md +0 -1
- package/assets/reference-configs/external-tooling.md +166 -121
- package/assets/reference-configs/git-strategy.md +0 -1
- package/assets/reference-configs/global-working-rules.md +11 -2
- package/assets/reference-configs/harness-overview.md +76 -8
- package/assets/reference-configs/hook-operations.md +8 -8
- package/assets/reference-configs/release-deploy.md +1 -2
- package/assets/reference-configs/spa-day-protocol.md +0 -2
- package/assets/reference-configs/sprint-contracts.md +33 -3
- package/assets/reference-configs/ux-feature-guard.md +144 -0
- package/assets/reference-configs/workflow-orchestration.md +0 -1
- package/assets/skill-commands/AGENTS.md +3 -0
- package/assets/skill-commands/CLAUDE.md +3 -0
- package/assets/skill-commands/manifest.json +2 -2
- package/assets/skill-commands/repo-harness-architecture/SKILL.md +2 -1
- package/assets/skill-commands/repo-harness-capability/SKILL.md +1 -1
- package/assets/skill-commands/repo-harness-check/SKILL.md +3 -8
- package/assets/skill-commands/repo-harness-deploy/SKILL.md +3 -2
- package/assets/skill-commands/repo-harness-init/SKILL.md +1 -1
- package/assets/skill-commands/repo-harness-migrate/SKILL.md +3 -3
- package/assets/skill-commands/repo-harness-plan/SKILL.md +4 -3
- package/assets/skill-commands/repo-harness-prd/SKILL.md +1 -1
- package/assets/skill-version.json +7 -3
- package/assets/skills/merge-gate/SKILL.md +39 -0
- package/assets/skills/merge-gate/agents/claude.md +15 -0
- package/assets/skills/merge-gate/agents/openai.yaml +4 -0
- package/assets/templates/contract.template.md +1 -1
- package/assets/templates/design-brief.template.md +47 -3
- package/assets/templates/helpers/architecture-event.ts +15 -2
- package/assets/templates/helpers/architecture-queue.sh +4 -1
- package/assets/templates/helpers/archive-architecture-request.sh +168 -28
- package/assets/templates/helpers/archive-workflow.sh +173 -15
- package/assets/templates/helpers/capability-config.ts +4 -0
- package/assets/templates/helpers/capability-resolver.ts +47 -82
- package/assets/templates/helpers/capture-plan.sh +5 -8
- package/assets/templates/helpers/check-agent-tooling.sh +306 -334
- package/assets/templates/helpers/check-brain-manifest.sh +0 -7
- package/assets/templates/helpers/check-context-files.sh +0 -0
- package/assets/templates/helpers/check-deploy-sql-order.sh +330 -54
- package/assets/templates/helpers/check-skill-version.ts +0 -0
- package/assets/templates/helpers/check-task-sync.sh +5 -0
- package/assets/templates/helpers/check-task-workflow.sh +5 -17
- package/assets/templates/helpers/codex-handoff-resume.sh +1 -1
- package/assets/templates/helpers/contract-run.ts +37 -2
- package/assets/templates/helpers/contract-worktree.sh +198 -43
- package/assets/templates/helpers/ensure-task-workflow.sh +94 -38
- package/assets/templates/helpers/install-agent-fleet.sh +137 -76
- package/assets/templates/helpers/maintenance-triage.sh +0 -0
- package/assets/templates/helpers/merge-gate.ts +661 -0
- package/assets/templates/helpers/new-plan.sh +2 -2
- package/assets/templates/helpers/new-spec.sh +0 -0
- package/assets/templates/helpers/new-sprint.sh +0 -0
- package/assets/templates/helpers/plan-to-todo.sh +19 -6
- package/assets/templates/helpers/prepare-codex-handoff.sh +0 -0
- package/assets/templates/helpers/prepare-handoff.sh +0 -0
- package/assets/templates/helpers/refresh-current-status.sh +19 -19
- package/assets/templates/helpers/run-bounded-verifier-command.ts +88 -0
- package/assets/templates/helpers/ship-worktrees.sh +159 -14
- package/assets/templates/helpers/summarize-failures.sh +0 -0
- package/assets/templates/helpers/switch-plan.sh +2 -5
- package/assets/templates/helpers/validate-harness-profile-benchmark.ts +39 -0
- package/assets/templates/helpers/verify-contract.sh +229 -12
- package/assets/templates/helpers/verify-sprint.sh +104 -29
- package/assets/templates/helpers/workflow-contract.ts +117 -30
- package/assets/templates/plan.template.md +2 -2
- package/assets/templates/review.template.md +18 -4
- package/assets/workflow-contract.v1.json +58 -6
- package/install.ps1 +21 -5
- package/install.sh +28 -4
- package/package.json +8 -5
- package/scripts/AGENTS.md +10 -2
- package/scripts/CLAUDE.md +10 -2
- package/scripts/architecture-event.ts +15 -2
- package/scripts/architecture-queue.sh +4 -1
- package/scripts/archive-architecture-request.sh +168 -28
- package/scripts/archive-workflow.sh +173 -15
- package/scripts/capability-config.ts +4 -0
- package/scripts/capability-resolver.ts +47 -82
- package/scripts/capture-plan.sh +5 -8
- package/scripts/check-agent-tooling.sh +306 -334
- package/scripts/check-brain-manifest.sh +0 -7
- package/scripts/check-ci.sh +4 -1
- package/scripts/check-deploy-sql-order.sh +330 -54
- package/scripts/check-npm-release.sh +1 -0
- package/scripts/check-tarball-install-smoke.sh +7 -2
- package/scripts/check-task-sync.sh +5 -0
- package/scripts/check-task-workflow.sh +5 -17
- package/scripts/codex-handoff-resume.sh +1 -1
- package/scripts/contract-run.ts +37 -2
- package/scripts/contract-worktree.sh +198 -43
- package/scripts/create-project-dirs.sh +3 -1
- package/scripts/ensure-task-workflow.sh +94 -38
- package/scripts/hook-dispatch-diet-report.ts +121 -6
- package/scripts/init-project.sh +3 -1
- package/scripts/install-agent-fleet.sh +137 -76
- package/scripts/lib/project-init-lib.sh +121 -54
- package/scripts/merge-gate.ts +661 -0
- package/scripts/new-plan.sh +2 -2
- package/scripts/plan-to-todo.sh +19 -6
- package/scripts/refresh-current-status.sh +19 -19
- package/scripts/run-bdd2-evals.ts +1368 -0
- package/scripts/run-bounded-verifier-command.ts +88 -0
- package/scripts/run-harness-profile-benchmark.ts +1157 -0
- package/scripts/run-skill-evals.ts +479 -36
- package/scripts/ship-worktrees.sh +159 -14
- package/scripts/switch-plan.sh +2 -5
- package/scripts/sync-codex-installed-copies.sh +194 -23
- package/scripts/sync-helper-sources.ts +152 -0
- package/scripts/sync-hook-sources.ts +104 -112
- package/scripts/validate-harness-profile-benchmark.ts +39 -0
- package/scripts/verify-contract.sh +229 -12
- package/scripts/verify-sprint.sh +104 -29
- package/scripts/workflow-contract.ts +117 -30
- package/src/cli/chatgpt-browser/file-policy.ts +6 -27
- package/src/cli/commands/adopt-plan.ts +80 -111
- package/src/cli/commands/capability-context.ts +2 -12
- package/src/cli/commands/global-runtime.ts +280 -61
- package/src/cli/commands/init.ts +151 -78
- package/src/cli/commands/install.ts +3 -1
- package/src/cli/commands/mcp.ts +52 -4
- package/src/cli/commands/run.ts +19 -1
- package/src/cli/commands/state.ts +65 -0
- package/src/cli/commands/status.ts +55 -1
- package/src/cli/commands/validators.ts +1 -1
- package/src/cli/hook/circuit-breaker.ts +234 -0
- package/src/cli/hook/diff-fingerprint.ts +157 -111
- package/src/cli/hook/minimal-change-context.ts +4 -2
- package/src/cli/hook/prompt-router.ts +75 -0
- package/src/cli/hook/runtime.ts +176 -23
- package/src/cli/hook/session-context-budget.ts +397 -0
- package/src/cli/hook/state-snapshot.ts +900 -57
- package/src/cli/hook/workflow-profile.ts +309 -0
- package/src/cli/hook-entry.ts +57 -15
- package/src/cli/index.ts +198 -94
- package/src/cli/installer/install-profile.ts +984 -0
- package/src/cli/installer/managed-entries.ts +29 -6
- package/src/cli/installer/targets/claude.ts +2 -2
- package/src/cli/installer/targets/codex.ts +2 -2
- package/src/cli/installer/types.ts +3 -1
- package/src/cli/mcp/auth.ts +27 -16
- package/src/cli/mcp/codegraph-adapter.ts +42 -11
- package/src/cli/mcp/coding-tools.ts +640 -0
- package/src/cli/mcp/coding-workspaces.ts +495 -0
- package/src/cli/mcp/general-repo-access/authority.ts +580 -0
- package/src/cli/mcp/general-repo-access.ts +33 -613
- package/src/cli/mcp/instructions.ts +7 -2
- package/src/cli/mcp/oauth.ts +179 -30
- package/src/cli/mcp/policy.ts +24 -27
- package/src/cli/mcp/process-sessions.ts +764 -0
- package/src/cli/mcp/reader-tools.ts +14 -204
- package/src/cli/mcp/server.ts +126 -21
- package/src/cli/mcp/setup.ts +380 -53
- package/src/cli/mcp/tools.ts +29 -35
- package/src/cli/mcp/transports/http.ts +330 -75
- package/src/cli/mcp/types.ts +10 -9
- package/src/cli/repo-adoption/reclaim-runtime.ts +3 -1
- package/src/cli/repo-adoption/target.ts +58 -0
- package/src/cli/runtime/helper-runner.ts +285 -45
- package/src/cli/runtime/write-all-sync.ts +26 -0
- package/src/core/adoption/gitignore-plan.ts +5 -0
- package/src/{effects → core/adoption}/managed-block.ts +1 -1
- package/src/core/adoption/operations.ts +4 -0
- package/src/core/adoption/plan.ts +14 -120
- package/src/core/adoption/rollback.ts +20 -0
- package/src/core/adoption/standard-plan.ts +788 -0
- package/src/core/source-projection.ts +228 -0
- package/src/effects/fs-transaction.ts +366 -24
- package/src/effects/process-runner.ts +2 -1
- package/src/effects/repo-registry.ts +248 -26
- package/assets/hooks/codex.hooks.template.json +0 -77
- package/assets/hooks/settings.template.json +0 -62
- package/assets/templates/helpers/migrate-project-template.sh +0 -54
- package/assets/templates/helpers/migrate-workflow-docs.ts +0 -413
- package/scripts/mcp-rollout-gate.ts +0 -658
- package/scripts/migrate-project-template.sh +0 -1178
- package/scripts/migrate-workflow-docs.ts +0 -413
package/AGENTS.md
CHANGED
|
@@ -17,7 +17,7 @@ This repository self-hosts the `repo-harness` contract; the former `repo-harness
|
|
|
17
17
|
- `.ai/harness/policy.json` for the machine-readable workflow contract
|
|
18
18
|
- `.ai/context/context-map.json` for progressive context loading
|
|
19
19
|
- `docs/architecture/index.md` for umbrella architecture status, drift requests, snapshots, and diagram links
|
|
20
|
-
- `docs/reference-configs/agentic-development-flow.md` for
|
|
20
|
+
- `docs/reference-configs/agentic-development-flow.md` for parent-agent/Waza routing and P1/P2/P3 rules
|
|
21
21
|
|
|
22
22
|
## Operating Rules
|
|
23
23
|
|
|
@@ -25,7 +25,7 @@ This repository self-hosts the `repo-harness` contract; the former `repo-harness
|
|
|
25
25
|
- Use `tasks/notes/<plan-stem>.notes.md` only for non-obvious slice decisions, deviations, tradeoffs, and open questions; `<plan-stem>` is the active plan filename without `plan-` and `.md` (for example `20260531-0045-governance-workflow`). Do not use notes as durable memory or a task log, and archive/promote them deliberately when the slice closes.
|
|
26
26
|
- Treat hook execution as central-first: trusted repos run `~/.repo-harness/hooks/` (bash shim) or the packaged CLI copy; this self-host repo pins `"hook_source": "repo"` in `.ai/harness/policy.json` so `.ai/hooks/` stays the live development runtime, with `assets/hooks/` as the product source mirrored on install. User-level `~/.claude/settings.json` and `~/.codex/hooks.json` are the host adapters.
|
|
27
27
|
- Keep the umbrella hierarchy explicit: architecture owns stable truth, capability contracts own local agent context, `tasks/workstreams/<domain>/<capability>/` owns durable progress, and `tasks/todos.md` owns only deferred medium/long-term goals with tradeoff and revisit trigger.
|
|
28
|
-
- Treat `.ai/context/capabilities.json` as the source of truth for capability prefixes; `agent-context-blocks.txt` and nested agent files are
|
|
28
|
+
- Treat `.ai/context/capabilities.json` as the source of truth for capability prefixes; `agent-context-blocks.txt` and nested agent files are initialization inputs only, never runtime resolver authority.
|
|
29
29
|
- Keep architecture drift handling split: `architecture-queue.sh` writes architecture requests/events, `workstream-sync.sh` maintains durable capability workstreams, and `context-contract-sync.sh` only updates controlled local `CLAUDE.md`/`AGENTS.md` architecture blocks.
|
|
30
30
|
- Keep `assets/workflow-contract.v1.json` and `.ai/harness/workflow-contract.json` in sync.
|
|
31
31
|
- Keep `CLAUDE.md` and `AGENTS.md` short; put detailed guidance in `docs/reference-configs/`.
|
|
@@ -33,22 +33,29 @@ This repository self-hosts the `repo-harness` contract; the former `repo-harness
|
|
|
33
33
|
- Treat `.ai/harness/checks/*.latest.{json,md}` and `.ai/harness/runs/` as ignored runtime evidence cache; commit durable conclusions in `tasks/reviews/`, `tasks/contracts/`, `tasks/notes/`, or `docs/researches/` instead.
|
|
34
34
|
- Treat architecture/spec/research docs as the human reading entrypoint. Before closing a workflow, promote durable conclusions into `docs/architecture/`, `docs/researches/`, `docs/spec.md`, or `tasks/lessons.md`; then archive fulfilled plan/contract/review/notes/todo artifacts so root workflow surfaces represent active work only. `.rgignore` hides archived workflow artifacts and runtime evidence from default `rg` searches; use explicit paths or `rg -uu` for audits.
|
|
35
35
|
- Treat `_ref/` as an occasional ignored external reference checkout cache, not a commit surface or daily workflow. Agents may read or refresh it for comparison; when it influences a decision, cite the source repo plus commit/tag and path in `tasks/notes/` or `docs/researches/`.
|
|
36
|
-
- Treat `deploy/` as the trackable deployment and operations surface for runbooks, submission materials, release checklists, helper scripts, ordered SQL files under `deploy/sql
|
|
36
|
+
- Treat `deploy/` as the trackable deployment and operations surface for runbooks, submission materials, release checklists, helper scripts, ordered SQL files, and env examples; follow `.ai/harness/policy.json#operations.deploy_sql` for configured SQL roots and naming modes, otherwise keep SQL directly under `deploy/sql/` with 4-digit ascending prefixes.
|
|
37
37
|
- Treat `_ops/` as ignored local operations state for secrets, real env files, provider state, artifacts, logs, and scratch files; do not commit or agent-edit `_ops/*`.
|
|
38
38
|
- Treat contract-level task execution as worktree-first: `repo-harness run plan-to-todo --plan <approved-plan>` starts `repo-harness run contract-worktree start --plan <approved-plan>` when policy enables it, and completed blocks finish through Waza `/check` plus `repo-harness run contract-worktree finish`.
|
|
39
39
|
- Treat the EXECUTION_BOUNDARY anti-extras clause as mandatory on every delegated runner surface (contract worker prompts, the Codex delegation advisor hook, subagent start context, and MCP `codex-goal` documents): absent requirements are forbidden design space, not permission to improve, and unrequested extras fail closed.
|
|
40
40
|
- After Codex Plan mode, Waza `/think`, or `repo-harness-plan` produces a decision-complete work-package plan, capture it with `repo-harness run capture-plan --artifact-level work-package --slug <slug> --title <title>` so `plans/` becomes the file-backed source of truth; if the user has already approved implementation, capture with `--status Approved --execute --promotion-reason <merge_boundary|rollback_boundary|verification_boundary|risk_boundary|human_decision_boundary|worktree_boundary>` or run `repo-harness run plan-to-todo --plan <active-plan>`.
|
|
41
41
|
- Promote work into a top-level `plans/plan-*.md` only when `Artifact Level: work-package` is justified by a merge/PR unit, rollback surface, independent verification boundary, review/acceptance boundary, high-risk surface, or otherwise cannot remain a checklist item in the current active plan or sprint backlog. Inline sprint rows and checklist rows stay in the sprint backlog or active plan `## Task Breakdown`; contract rows may expand into plan -> contract -> review -> notes only through the work-package gate.
|
|
42
42
|
- If current repo state conflicts with the task, open an isolated `codex/<task-slug>` worktree, finish there, run Waza `/check`-style validation, then merge back to `main` without absorbing unrelated dirty changes.
|
|
43
|
-
- Route product discovery to
|
|
43
|
+
- Route product discovery and complex/design planning to the parent agent: use `geju` for pre-contract framing, complete P1/P2/P3 with the parent agent's own capabilities, and freeze the accepted direction into the plan and contract. Route daily small/medium planning, bug hunts, and checks to Waza `/think`, `/hunt`, and `/check`. Route a proactive multi-direction visual/UX choice mid-task to the design-options convention (`repo-harness docs show design-options`).
|
|
44
44
|
- Codex automation profile is runtime-referenced, not vendored: required skills are `health`, `check`, and `diagram-design` from `~/.codex/skills`.
|
|
45
|
-
-
|
|
46
|
-
-
|
|
45
|
+
- Keep durable repo knowledge in `docs/researches/`, `tasks/lessons.md`, and the canonical workflow artifacts.
|
|
46
|
+
- Treat `.ai/harness/brain-manifest.json` and `repo-harness run sync-brain-docs` as explicit operator-invoked export surfaces only; hooks and workflow checks must not read, write, or gate on external brain-vault state.
|
|
47
47
|
- Treat Waza as Codex-first: `~/.codex/skills` is the Codex runtime source; `~/.agents/skills` is skills CLI staging/cache only. Update by staging upstream Waza, copying the eight managed `SKILL.md` files into Codex, and verifying with `cmp`.
|
|
48
48
|
- Use `docs/reference-configs/external-tooling.md` and `bash scripts/check-agent-tooling.sh --host both --check-updates` for environment checks; this self-host repo vendors CodeGraph as a dev dependency while generated downstream repos keep the global MCP default unless local policy opts in.
|
|
49
|
-
- When changing
|
|
49
|
+
- When changing adoption planner or transaction code, verify `repo-harness adopt --repo . --dry-run` and a fixture apply use the same TS operation model.
|
|
50
50
|
- Treat repo-local `.claude/settings.json` and `.codex/hooks.json` hook adapters as retired legacy config; migration may back them up locally, but they are not product deliverables.
|
|
51
51
|
|
|
52
|
+
## Code Optimization Principles
|
|
53
|
+
|
|
54
|
+
- Reason from first principles: identify observable conditions, controllable inputs, the invariant, and the actual pressure point before changing structure.
|
|
55
|
+
- Keep one source of truth for each datum; every other representation must be a deterministic projection with a drift check.
|
|
56
|
+
- Do not add steady-state compatibility code, dual authority, semantic fallbacks, aliases, or shadow parsers. Explicit one-shot migrations must fail closed and remove the retired path in the same work-package.
|
|
57
|
+
- Create shared components only for observed reuse or a cross-module invariant. Prefer an existing monorepo workspace only when independently meaningful consumers need the shared package; do not convert this single-package repo without that boundary.
|
|
58
|
+
|
|
52
59
|
## Required Checks
|
|
53
60
|
|
|
54
61
|
```bash
|
|
@@ -58,7 +65,7 @@ bash scripts/check-architecture-sync.sh
|
|
|
58
65
|
bash scripts/check-task-sync.sh
|
|
59
66
|
repo-harness run check-task-workflow --strict
|
|
60
67
|
bun scripts/inspect-project-state.ts --repo . --format text
|
|
61
|
-
|
|
68
|
+
bun src/cli/index.ts adopt --repo . --dry-run
|
|
62
69
|
```
|
|
63
70
|
|
|
64
71
|
<!-- BEGIN ARCHITECTURE CONTRACT -->
|
package/CLAUDE.md
CHANGED
|
@@ -17,7 +17,7 @@ This repository self-hosts the `repo-harness` contract; the former `repo-harness
|
|
|
17
17
|
- `.ai/harness/policy.json` for the machine-readable workflow contract
|
|
18
18
|
- `.ai/context/context-map.json` for progressive context loading
|
|
19
19
|
- `docs/architecture/index.md` for umbrella architecture status, drift requests, snapshots, and diagram links
|
|
20
|
-
- `docs/reference-configs/agentic-development-flow.md` for
|
|
20
|
+
- `docs/reference-configs/agentic-development-flow.md` for parent-agent/Waza routing and P1/P2/P3 rules
|
|
21
21
|
|
|
22
22
|
## Operating Rules
|
|
23
23
|
|
|
@@ -25,7 +25,7 @@ This repository self-hosts the `repo-harness` contract; the former `repo-harness
|
|
|
25
25
|
- Use `tasks/notes/<plan-stem>.notes.md` only for non-obvious slice decisions, deviations, tradeoffs, and open questions; `<plan-stem>` is the active plan filename without `plan-` and `.md` (for example `20260531-0045-governance-workflow`). Do not use notes as durable memory or a task log, and archive/promote them deliberately when the slice closes.
|
|
26
26
|
- Treat hook execution as central-first: trusted repos run `~/.repo-harness/hooks/` (bash shim) or the packaged CLI copy; this self-host repo pins `"hook_source": "repo"` in `.ai/harness/policy.json` so `.ai/hooks/` stays the live development runtime, with `assets/hooks/` as the product source mirrored on install. User-level `~/.claude/settings.json` and `~/.codex/hooks.json` are the host adapters.
|
|
27
27
|
- Keep the umbrella hierarchy explicit: architecture owns stable truth, capability contracts own local agent context, `tasks/workstreams/<domain>/<capability>/` owns durable progress, and `tasks/todos.md` owns only deferred medium/long-term goals with tradeoff and revisit trigger.
|
|
28
|
-
- Treat `.ai/context/capabilities.json` as the source of truth for capability prefixes; `agent-context-blocks.txt` and nested agent files are
|
|
28
|
+
- Treat `.ai/context/capabilities.json` as the source of truth for capability prefixes; `agent-context-blocks.txt` and nested agent files are initialization inputs only, never runtime resolver authority.
|
|
29
29
|
- Keep architecture drift handling split: `architecture-queue.sh` writes architecture requests/events, `workstream-sync.sh` maintains durable capability workstreams, and `context-contract-sync.sh` only updates controlled local `CLAUDE.md`/`AGENTS.md` architecture blocks.
|
|
30
30
|
- Keep `assets/workflow-contract.v1.json` and `.ai/harness/workflow-contract.json` in sync.
|
|
31
31
|
- Keep `CLAUDE.md` and `AGENTS.md` short; put detailed guidance in `docs/reference-configs/`.
|
|
@@ -33,22 +33,29 @@ This repository self-hosts the `repo-harness` contract; the former `repo-harness
|
|
|
33
33
|
- Treat `.ai/harness/checks/*.latest.{json,md}` and `.ai/harness/runs/` as ignored runtime evidence cache; commit durable conclusions in `tasks/reviews/`, `tasks/contracts/`, `tasks/notes/`, or `docs/researches/` instead.
|
|
34
34
|
- Treat architecture/spec/research docs as the human reading entrypoint. Before closing a workflow, promote durable conclusions into `docs/architecture/`, `docs/researches/`, `docs/spec.md`, or `tasks/lessons.md`; then archive fulfilled plan/contract/review/notes/todo artifacts so root workflow surfaces represent active work only. `.rgignore` hides archived workflow artifacts and runtime evidence from default `rg` searches; use explicit paths or `rg -uu` for audits.
|
|
35
35
|
- Treat `_ref/` as an occasional ignored external reference checkout cache, not a commit surface or daily workflow. Agents may read or refresh it for comparison; when it influences a decision, cite the source repo plus commit/tag and path in `tasks/notes/` or `docs/researches/`.
|
|
36
|
-
- Treat `deploy/` as the trackable deployment and operations surface for runbooks, submission materials, release checklists, helper scripts, ordered SQL files under `deploy/sql
|
|
36
|
+
- Treat `deploy/` as the trackable deployment and operations surface for runbooks, submission materials, release checklists, helper scripts, ordered SQL files, and env examples; follow `.ai/harness/policy.json#operations.deploy_sql` for configured SQL roots and naming modes, otherwise keep SQL directly under `deploy/sql/` with 4-digit ascending prefixes.
|
|
37
37
|
- Treat `_ops/` as ignored local operations state for secrets, real env files, provider state, artifacts, logs, and scratch files; do not commit or agent-edit `_ops/*`.
|
|
38
38
|
- Treat contract-level task execution as worktree-first: `repo-harness run plan-to-todo --plan <approved-plan>` starts `repo-harness run contract-worktree start --plan <approved-plan>` when policy enables it, and completed blocks finish through Waza `/check` plus `repo-harness run contract-worktree finish`.
|
|
39
39
|
- Treat the EXECUTION_BOUNDARY anti-extras clause as mandatory on every delegated runner surface (contract worker prompts, the Codex delegation advisor hook, subagent start context, and MCP `codex-goal` documents): absent requirements are forbidden design space, not permission to improve, and unrequested extras fail closed.
|
|
40
40
|
- After Codex Plan mode, Waza `/think`, or `repo-harness-plan` produces a decision-complete work-package plan, capture it with `repo-harness run capture-plan --artifact-level work-package --slug <slug> --title <title>` so `plans/` becomes the file-backed source of truth; if the user has already approved implementation, capture with `--status Approved --execute --promotion-reason <merge_boundary|rollback_boundary|verification_boundary|risk_boundary|human_decision_boundary|worktree_boundary>` or run `repo-harness run plan-to-todo --plan <active-plan>`.
|
|
41
41
|
- Promote work into a top-level `plans/plan-*.md` only when `Artifact Level: work-package` is justified by a merge/PR unit, rollback surface, independent verification boundary, review/acceptance boundary, high-risk surface, or otherwise cannot remain a checklist item in the current active plan or sprint backlog. Inline sprint rows and checklist rows stay in the sprint backlog or active plan `## Task Breakdown`; contract rows may expand into plan -> contract -> review -> notes only through the work-package gate.
|
|
42
42
|
- If current repo state conflicts with the task, open an isolated `codex/<task-slug>` worktree, finish there, run Waza `/check`-style validation, then merge back to `main` without absorbing unrelated dirty changes.
|
|
43
|
-
- Route product discovery to
|
|
43
|
+
- Route product discovery and complex/design planning to the parent agent: use `geju` for pre-contract framing, complete P1/P2/P3 with the parent agent's own capabilities, and freeze the accepted direction into the plan and contract. Route daily small/medium planning, bug hunts, and checks to Waza `/think`, `/hunt`, and `/check`. Route a proactive multi-direction visual/UX choice mid-task to the design-options convention (`repo-harness docs show design-options`).
|
|
44
44
|
- Codex automation profile is runtime-referenced, not vendored: required skills are `health`, `check`, and `diagram-design` from `~/.codex/skills`.
|
|
45
|
-
-
|
|
46
|
-
-
|
|
45
|
+
- Keep durable repo knowledge in `docs/researches/`, `tasks/lessons.md`, and the canonical workflow artifacts.
|
|
46
|
+
- Treat `.ai/harness/brain-manifest.json` and `repo-harness run sync-brain-docs` as explicit operator-invoked export surfaces only; hooks and workflow checks must not read, write, or gate on external brain-vault state.
|
|
47
47
|
- Treat Waza as Codex-first: `~/.codex/skills` is the Codex runtime source; `~/.agents/skills` is skills CLI staging/cache only. Update by staging upstream Waza, copying the eight managed `SKILL.md` files into Codex, and verifying with `cmp`.
|
|
48
48
|
- Use `docs/reference-configs/external-tooling.md` and `bash scripts/check-agent-tooling.sh --host both --check-updates` for environment checks; this self-host repo vendors CodeGraph as a dev dependency while generated downstream repos keep the global MCP default unless local policy opts in.
|
|
49
|
-
- When changing
|
|
49
|
+
- When changing adoption planner or transaction code, verify `repo-harness adopt --repo . --dry-run` and a fixture apply use the same TS operation model.
|
|
50
50
|
- Treat repo-local `.claude/settings.json` and `.codex/hooks.json` hook adapters as retired legacy config; migration may back them up locally, but they are not product deliverables.
|
|
51
51
|
|
|
52
|
+
## Code Optimization Principles
|
|
53
|
+
|
|
54
|
+
- Reason from first principles: identify observable conditions, controllable inputs, the invariant, and the actual pressure point before changing structure.
|
|
55
|
+
- Keep one source of truth for each datum; every other representation must be a deterministic projection with a drift check.
|
|
56
|
+
- Do not add steady-state compatibility code, dual authority, semantic fallbacks, aliases, or shadow parsers. Explicit one-shot migrations must fail closed and remove the retired path in the same work-package.
|
|
57
|
+
- Create shared components only for observed reuse or a cross-module invariant. Prefer an existing monorepo workspace only when independently meaningful consumers need the shared package; do not convert this single-package repo without that boundary.
|
|
58
|
+
|
|
52
59
|
## Required Checks
|
|
53
60
|
|
|
54
61
|
```bash
|
|
@@ -58,7 +65,7 @@ bash scripts/check-architecture-sync.sh
|
|
|
58
65
|
bash scripts/check-task-sync.sh
|
|
59
66
|
repo-harness run check-task-workflow --strict
|
|
60
67
|
bun scripts/inspect-project-state.ts --repo . --format text
|
|
61
|
-
|
|
68
|
+
bun src/cli/index.ts adopt --repo . --dry-run
|
|
62
69
|
```
|
|
63
70
|
|
|
64
71
|
<!-- BEGIN ARCHITECTURE CONTRACT -->
|
package/README.es.md
CHANGED
|
@@ -85,7 +85,7 @@ artifacts.
|
|
|
85
85
|
## Novedades
|
|
86
86
|
|
|
87
87
|
Las notas de versión viven en [`docs/CHANGELOG.md`](docs/CHANGELOG.md). La línea
|
|
88
|
-
actual es `0.
|
|
88
|
+
actual es `0.10.0`.
|
|
89
89
|
|
|
90
90
|
## Cómo funciona
|
|
91
91
|
|
|
@@ -172,20 +172,20 @@ flowchart TD
|
|
|
172
172
|
## Bucles largos de producto
|
|
173
173
|
|
|
174
174
|
Para trabajo Greenfield y Brownfield, adelanta la discovery y el juicio de
|
|
175
|
-
engineering plan en
|
|
175
|
+
engineering plan en el parent agent antes de pedirle a Codex que haga loops de
|
|
176
176
|
ejecución:
|
|
177
177
|
|
|
178
|
-
1.
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
178
|
+
1. Antes de crear un contract, el parent agent invoca `geju` para abrir el marco y
|
|
179
|
+
después completa P1/P2/P3 con sus propias capacidades repo/runtime. Fija la
|
|
180
|
+
intención de producto, la arquitectura, los riesgos, el falsifier y el evidence
|
|
181
|
+
contract aceptados en los development documents.
|
|
182
182
|
2. Convierte esos documentos en un PRD Sprint bajo `plans/prds/`, con un
|
|
183
183
|
backlog ordenado y sub-plans detallados para cada execution slice.
|
|
184
184
|
3. Crea un Codex Goal que apunte a ese archivo de sprint. repo-harness puede
|
|
185
185
|
entonces proyectar cada sprint item por el flow normal plan -> contract ->
|
|
186
186
|
worktree -> verification.
|
|
187
187
|
|
|
188
|
-
Ese handoff mantiene precisos los loops largos:
|
|
188
|
+
Ese handoff mantiene precisos los loops largos: el parent agent se ocupa del juicio
|
|
189
189
|
amplio al inicio, el PRD Sprint es la durable source of truth, y Codex Goal mode
|
|
190
190
|
retoma contra un sprint concreto en vez de reinterpretar el chat original.
|
|
191
191
|
|
|
@@ -200,8 +200,9 @@ recomienda al aplicar el settings merge.
|
|
|
200
200
|
|
|
201
201
|
### Instalar el CLI
|
|
202
202
|
|
|
203
|
-
La ruta por defecto no requiere Node.js: el instalador usa Bun
|
|
204
|
-
Bun no existe
|
|
203
|
+
La ruta por defecto no requiere Node.js: el instalador usa Bun >= 1.1.35 como
|
|
204
|
+
runtime. Si Bun no existe o es anterior, lo instala o actualiza antes de
|
|
205
|
+
instalar el CLI `repo-harness`.
|
|
205
206
|
|
|
206
207
|
```bash
|
|
207
208
|
# macOS / Linux
|
|
@@ -212,7 +213,7 @@ irm https://raw.githubusercontent.com/Ancienttwo/repo-harness/main/install.ps1 |
|
|
|
212
213
|
```
|
|
213
214
|
|
|
214
215
|
<details>
|
|
215
|
-
<summary>¿Ya tienes Bun? Usa Bun primero, o npx como fallback</summary>
|
|
216
|
+
<summary>¿Ya tienes Bun >= 1.1.35? Usa Bun primero, o npx como fallback</summary>
|
|
216
217
|
|
|
217
218
|
```bash
|
|
218
219
|
# Bun (recomendado)
|
|
@@ -264,7 +265,7 @@ El comando debería terminar imprimiendo `=== Migration Report ===`, e incluir:
|
|
|
264
265
|
- `Host hook adapters are user-level:`: recordatorio de instalar los global adapters y de confiar en `~/.codex/hooks.json`
|
|
265
266
|
- `Workflow migration:`: el plan de creación o refresco de las repo-local harness surfaces
|
|
266
267
|
- `Helper runtime:`: la cadena de herramientas operativa que obtendrás tras aplicar
|
|
267
|
-
- `--- External Tooling ---`:
|
|
268
|
+
- `--- External Tooling ---`: la guía de planning parent/Geju, la readiness de Waza y CodeGraph y las advisory de instalación/actualización
|
|
268
269
|
|
|
269
270
|
### Los dos comandos siguientes
|
|
270
271
|
|
|
@@ -419,8 +420,8 @@ Guards habituales:
|
|
|
419
420
|
|
|
420
421
|
## Release actual
|
|
421
422
|
|
|
422
|
-
- npm package: `repo-harness@0.
|
|
423
|
-
- Generated workflow stamp: `repo-harness@0.
|
|
423
|
+
- npm package: `repo-harness@0.10.0`
|
|
424
|
+
- Generated workflow stamp: `repo-harness@0.10.0+template@0.10.0`
|
|
424
425
|
- GitHub repository: `Ancienttwo/repo-harness`
|
|
425
426
|
- Release history: [`docs/CHANGELOG.md`](docs/CHANGELOG.md)
|
|
426
427
|
|
|
@@ -435,10 +436,6 @@ Gracias a [TW93](https://x.com/HiTw93), autor de Waza. Los skills centrales
|
|
|
435
436
|
`think`, `hunt`, `check` y `health` dan forma al ritmo diario de planning, bug
|
|
436
437
|
hunt y verification de `repo-harness`.
|
|
437
438
|
|
|
438
|
-
Gracias a [Garry Tan](https://x.com/garrytan), autor de gstack y gbrain. Ambos
|
|
439
|
-
influyeron en el workflow de product discovery, plan/design review, release
|
|
440
|
-
documentation, knowledge sync y handoff retrieval.
|
|
441
|
-
|
|
442
439
|
Gracias a [Peter Steinberger](https://x.com/steipete), autor de Oracle
|
|
443
440
|
(`@steipete/oracle`, MIT). Es el motor de consult de navegador GPT Pro / ChatGPT
|
|
444
441
|
Web por defecto de `chatgpt-browser`: el provider Oracle ejecuta el binario oracle
|
|
@@ -545,7 +542,7 @@ bun test
|
|
|
545
542
|
bash scripts/check-task-sync.sh
|
|
546
543
|
bash scripts/check-task-workflow.sh --strict
|
|
547
544
|
bun scripts/inspect-project-state.ts --repo . --format text
|
|
548
|
-
|
|
545
|
+
bun src/cli/index.ts adopt --repo . --dry-run
|
|
549
546
|
bash scripts/check-agent-tooling.sh --host both --check-updates
|
|
550
547
|
bun run benchmark:skills --eval route-workflow-check
|
|
551
548
|
```
|
|
@@ -582,7 +579,7 @@ bun run benchmark:skills --eval repair-agents-task-sync
|
|
|
582
579
|
- Scaffolding scripts:
|
|
583
580
|
- `scripts/init-project.sh`
|
|
584
581
|
- `scripts/create-project-dirs.sh`
|
|
585
|
-
-
|
|
582
|
+
- Canonical adoption planner: `src/core/adoption/standard-plan.ts`
|
|
586
583
|
|
|
587
584
|
## Generated vs Self-Hosted Hook Projection
|
|
588
585
|
|
|
@@ -620,7 +617,7 @@ bash scripts/check-architecture-sync.sh
|
|
|
620
617
|
bash scripts/check-task-sync.sh
|
|
621
618
|
bash scripts/check-task-workflow.sh --strict
|
|
622
619
|
bun scripts/inspect-project-state.ts --repo . --format text
|
|
623
|
-
|
|
620
|
+
bun src/cli/index.ts adopt --repo . --dry-run
|
|
624
621
|
bash scripts/check-agent-tooling.sh --host both --check-updates
|
|
625
622
|
bun run benchmark:skills --eval route-workflow-check
|
|
626
623
|
```
|
package/README.fr.md
CHANGED
|
@@ -85,7 +85,7 @@ l'emportent.
|
|
|
85
85
|
## Nouveautés
|
|
86
86
|
|
|
87
87
|
Les notes de version vivent dans [`docs/CHANGELOG.md`](docs/CHANGELOG.md). La
|
|
88
|
-
ligne actuelle est `0.
|
|
88
|
+
ligne actuelle est `0.10.0`.
|
|
89
89
|
|
|
90
90
|
## Comment ça marche
|
|
91
91
|
|
|
@@ -174,20 +174,20 @@ flowchart TD
|
|
|
174
174
|
## Longues boucles produit
|
|
175
175
|
|
|
176
176
|
Pour le travail Greenfield comme Brownfield, avancez la discovery et le jugement
|
|
177
|
-
d'engineering plan dans
|
|
177
|
+
d'engineering plan dans le parent agent avant de demander à Codex de boucler sur
|
|
178
178
|
l'exécution :
|
|
179
179
|
|
|
180
|
-
1.
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
180
|
+
1. Avant la création d'un contract, le parent agent invoque `geju` pour ouvrir le
|
|
181
|
+
cadre, puis réalise P1/P2/P3 avec ses propres capacités repo/runtime. Il fige
|
|
182
|
+
l'intention produit, l'architecture, les risques, le falsifier et l'evidence
|
|
183
|
+
contract acceptés dans les development documents.
|
|
184
184
|
2. Transformez ces documents en PRD Sprint sous `plans/prds/`, avec un backlog
|
|
185
185
|
ordonné et des sub-plans détaillés pour chaque execution slice.
|
|
186
186
|
3. Créez un Codex Goal qui pointe vers ce fichier de sprint. repo-harness peut
|
|
187
187
|
ensuite projeter chaque sprint item dans le flow normal plan -> contract ->
|
|
188
188
|
worktree -> verification.
|
|
189
189
|
|
|
190
|
-
Ce handoff rend les longues boucles plus précises :
|
|
190
|
+
Ce handoff rend les longues boucles plus précises : le parent agent porte le
|
|
191
191
|
jugement large en amont, le PRD Sprint devient la durable source of truth, et
|
|
192
192
|
Codex Goal mode reprend sur un sprint concret au lieu de réinterpréter le chat
|
|
193
193
|
initial.
|
|
@@ -203,9 +203,9 @@ lors de l'application d'un settings merge.
|
|
|
203
203
|
|
|
204
204
|
### 1. Installer le CLI
|
|
205
205
|
|
|
206
|
-
Le chemin par défaut ne demande pas Node.js : l'installateur utilise Bun
|
|
207
|
-
runtime. Si Bun est absent
|
|
208
|
-
`repo-harness`.
|
|
206
|
+
Le chemin par défaut ne demande pas Node.js : l'installateur utilise Bun >=
|
|
207
|
+
1.1.35 comme runtime. Si Bun est absent ou plus ancien, il l'installe ou le met
|
|
208
|
+
à niveau avant d'installer le CLI `repo-harness`.
|
|
209
209
|
|
|
210
210
|
```bash
|
|
211
211
|
# macOS / Linux
|
|
@@ -216,7 +216,7 @@ irm https://raw.githubusercontent.com/Ancienttwo/repo-harness/main/install.ps1 |
|
|
|
216
216
|
```
|
|
217
217
|
|
|
218
218
|
<details>
|
|
219
|
-
<summary>Vous avez déjà Bun ? Utilisez Bun en priorité, ou npx en fallback</summary>
|
|
219
|
+
<summary>Vous avez déjà Bun >= 1.1.35 ? Utilisez Bun en priorité, ou npx en fallback</summary>
|
|
220
220
|
|
|
221
221
|
```bash
|
|
222
222
|
# Bun (recommandé)
|
|
@@ -276,7 +276,7 @@ La commande doit se terminer par `=== Migration Report ===` et inclure :
|
|
|
276
276
|
- `Host hook adapters are user-level:` : rappel d'installer les global adapters, et de faire confiance à `~/.codex/hooks.json`
|
|
277
277
|
- `Workflow migration:` : le plan de création ou de rafraîchissement des repo-local harness surfaces
|
|
278
278
|
- `Helper runtime:` : la chaîne d'outils opérationnels obtenue après application
|
|
279
|
-
- `--- External Tooling ---` : le
|
|
279
|
+
- `--- External Tooling ---` : le guide de planning parent/Geju, la readiness Waza et CodeGraph et les conseils d'installation/mise à jour advisory
|
|
280
280
|
|
|
281
281
|
Si la sortie du dry-run est incorrecte, arrêtez-vous ici et lisez
|
|
282
282
|
[`docs/reference-configs/hook-operations.md`](docs/reference-configs/hook-operations.md).
|
|
@@ -424,8 +424,8 @@ Guards courants :
|
|
|
424
424
|
|
|
425
425
|
## Release actuelle
|
|
426
426
|
|
|
427
|
-
- npm package : `repo-harness@0.
|
|
428
|
-
- Generated workflow stamp : `repo-harness@0.
|
|
427
|
+
- npm package : `repo-harness@0.10.0`
|
|
428
|
+
- Generated workflow stamp : `repo-harness@0.10.0+template@0.10.0`
|
|
429
429
|
- GitHub repository : `Ancienttwo/repo-harness`
|
|
430
430
|
- Release history : [`docs/CHANGELOG.md`](docs/CHANGELOG.md)
|
|
431
431
|
|
|
@@ -440,10 +440,6 @@ Merci à [TW93](https://x.com/HiTw93), auteur de Waza. Les skills centraux
|
|
|
440
440
|
`think`, `hunt`, `check` et `health` structurent le rythme quotidien de planning,
|
|
441
441
|
bug hunt et verification de `repo-harness`.
|
|
442
442
|
|
|
443
|
-
Merci à [Garry Tan](https://x.com/garrytan), auteur de gstack et gbrain. Ils ont
|
|
444
|
-
influencé le workflow de product discovery, plan/design review, release
|
|
445
|
-
documentation, knowledge sync et handoff retrieval.
|
|
446
|
-
|
|
447
443
|
Merci à [Peter Steinberger](https://x.com/steipete), auteur d'Oracle
|
|
448
444
|
(`@steipete/oracle`, MIT). C'est le moteur de consult navigateur GPT Pro /
|
|
449
445
|
ChatGPT Web par défaut de `chatgpt-browser` : le provider Oracle lance le binaire
|
|
@@ -551,7 +547,7 @@ bun test
|
|
|
551
547
|
bash scripts/check-task-sync.sh
|
|
552
548
|
bash scripts/check-task-workflow.sh --strict
|
|
553
549
|
bun scripts/inspect-project-state.ts --repo . --format text
|
|
554
|
-
|
|
550
|
+
bun src/cli/index.ts adopt --repo . --dry-run
|
|
555
551
|
bash scripts/check-agent-tooling.sh --host both --check-updates
|
|
556
552
|
bun run benchmark:skills --eval route-workflow-check
|
|
557
553
|
```
|
|
@@ -588,7 +584,7 @@ bun run benchmark:skills --eval repair-agents-task-sync
|
|
|
588
584
|
- Scaffolding scripts:
|
|
589
585
|
- `scripts/init-project.sh`
|
|
590
586
|
- `scripts/create-project-dirs.sh`
|
|
591
|
-
-
|
|
587
|
+
- Canonical adoption planner: `src/core/adoption/standard-plan.ts`
|
|
592
588
|
|
|
593
589
|
## Generated vs Self-Hosted Hook Projection
|
|
594
590
|
|
|
@@ -626,7 +622,7 @@ bash scripts/check-architecture-sync.sh
|
|
|
626
622
|
bash scripts/check-task-sync.sh
|
|
627
623
|
bash scripts/check-task-workflow.sh --strict
|
|
628
624
|
bun scripts/inspect-project-state.ts --repo . --format text
|
|
629
|
-
|
|
625
|
+
bun src/cli/index.ts adopt --repo . --dry-run
|
|
630
626
|
bash scripts/check-agent-tooling.sh --host both --check-updates
|
|
631
627
|
bun run benchmark:skills --eval route-workflow-check
|
|
632
628
|
```
|
package/README.ja.md
CHANGED
|
@@ -75,7 +75,7 @@ review、checks、handoff と食い違う場合は、source artifacts を優先
|
|
|
75
75
|
## What's New
|
|
76
76
|
|
|
77
77
|
リリースノートは [`docs/CHANGELOG.md`](docs/CHANGELOG.md) にあります。現在の
|
|
78
|
-
ラインは `0.
|
|
78
|
+
ラインは `0.10.0` です。
|
|
79
79
|
|
|
80
80
|
## 仕組み
|
|
81
81
|
|
|
@@ -156,19 +156,19 @@ flowchart TD
|
|
|
156
156
|
## 長期プロダクト Loop
|
|
157
157
|
|
|
158
158
|
Greenfield と Brownfield の作業では、Codex に実行 loop を任せる前に、
|
|
159
|
-
discovery と engineering-plan judgment を
|
|
159
|
+
discovery と engineering-plan judgment を parent agent 側で前倒しします。
|
|
160
160
|
|
|
161
|
-
1.
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
161
|
+
1. contract を作る前に parent agent が `geju` で視野を広げ、その後、自身の
|
|
162
|
+
repo/runtime 能力で P1/P2/P3 を完了します。合意した product intent、
|
|
163
|
+
architecture、risks、falsifier、evidence contract を development documents
|
|
164
|
+
に固定します。
|
|
165
165
|
2. それらの documents を `plans/prds/` 配下の PRD Sprint に変換し、
|
|
166
166
|
各 execution slice に ordered backlog と detailed sub-plans を持たせます。
|
|
167
167
|
3. Codex Goal を作成し、その sprint file を指します。repo-harness はその後、
|
|
168
168
|
各 sprint item を通常の plan -> contract -> worktree -> verification flow
|
|
169
169
|
へ投射できます。
|
|
170
170
|
|
|
171
|
-
この handoff により、長期 loop は精密になります。
|
|
171
|
+
この handoff により、長期 loop は精密になります。parent agent が広い前置判断を担い、
|
|
172
172
|
PRD Sprint が durable source of truth となり、Codex Goal mode は元の chat を再解釈する
|
|
173
173
|
のではなく、具体的な sprint に対して resume します。
|
|
174
174
|
|
|
@@ -181,8 +181,8 @@ PRD Sprint が durable source of truth となり、Codex Goal mode は元の cha
|
|
|
181
181
|
|
|
182
182
|
### CLI をインストールする
|
|
183
183
|
|
|
184
|
-
既定の経路では Node.js は不要です。installer は Bun を runtime として使います。
|
|
185
|
-
Bun
|
|
184
|
+
既定の経路では Node.js は不要です。installer は Bun >= 1.1.35 を runtime として使います。
|
|
185
|
+
Bun が見つからない場合や古い場合は、先に Bun をインストールまたは更新してから `repo-harness` CLI をインストールします。
|
|
186
186
|
|
|
187
187
|
```bash
|
|
188
188
|
# macOS / Linux
|
|
@@ -193,7 +193,7 @@ irm https://raw.githubusercontent.com/Ancienttwo/repo-harness/main/install.ps1 |
|
|
|
193
193
|
```
|
|
194
194
|
|
|
195
195
|
<details>
|
|
196
|
-
<summary>Bun がすでにある場合は Bun を優先し、npx を fallback として使えます</summary>
|
|
196
|
+
<summary>Bun >= 1.1.35 がすでにある場合は Bun を優先し、npx を fallback として使えます</summary>
|
|
197
197
|
|
|
198
198
|
```bash
|
|
199
199
|
# Bun(推奨)
|
|
@@ -246,7 +246,7 @@ repo-harness adopt
|
|
|
246
246
|
- `Host hook adapters are user-level:`:global adapters のインストールを促し、`~/.codex/hooks.json` を信頼するよう注意する
|
|
247
247
|
- `Workflow migration:`:repo-local harness surfaces の作成またはリフレッシュ計画
|
|
248
248
|
- `Helper runtime:`:適用後に得られる操作ツールチェーン
|
|
249
|
-
- `--- External Tooling ---`:
|
|
249
|
+
- `--- External Tooling ---`:parent/Geju planning の指針、Waza と CodeGraph の readiness、advisory なインストール/更新のヒント
|
|
250
250
|
|
|
251
251
|
### 続けて実行する 2 つのコマンド
|
|
252
252
|
|
|
@@ -398,8 +398,8 @@ hook がブロックしたときは、まず terminal の構造化された出
|
|
|
398
398
|
|
|
399
399
|
## 現在の Release
|
|
400
400
|
|
|
401
|
-
- npm package:`repo-harness@0.
|
|
402
|
-
- Generated workflow stamp:`repo-harness@0.
|
|
401
|
+
- npm package:`repo-harness@0.10.0`
|
|
402
|
+
- Generated workflow stamp:`repo-harness@0.10.0+template@0.10.0`
|
|
403
403
|
- GitHub repository:`Ancienttwo/repo-harness`
|
|
404
404
|
- Release history:[`docs/CHANGELOG.md`](docs/CHANGELOG.md)
|
|
405
405
|
|
|
@@ -413,10 +413,6 @@ decision rationale を重視する Geju の実践は、彼の貢献と示唆に
|
|
|
413
413
|
`check`、`health` という中核 skill は、`repo-harness` の日々の planning、
|
|
414
414
|
bug hunt、verification のリズムを形作っています。
|
|
415
415
|
|
|
416
|
-
[Garry Tan](https://x.com/garrytan) による gstack と gbrain にも感謝します。
|
|
417
|
-
これらは product discovery、plan/design review、release documentation、
|
|
418
|
-
knowledge sync、handoff retrieval の workflow 設計に影響を与えています。
|
|
419
|
-
|
|
420
416
|
[Peter Steinberger](https://x.com/steipete) による Oracle(`@steipete/oracle`、MIT)にも
|
|
421
417
|
感謝します。これは `chatgpt-browser` の既定の GPT Pro / ChatGPT Web ブラウザ consult
|
|
422
418
|
エンジンで、Oracle provider が外部の oracle バイナリを spawn して `gptpro` consult を
|
|
@@ -519,7 +515,7 @@ bun test
|
|
|
519
515
|
bash scripts/check-task-sync.sh
|
|
520
516
|
bash scripts/check-task-workflow.sh --strict
|
|
521
517
|
bun scripts/inspect-project-state.ts --repo . --format text
|
|
522
|
-
|
|
518
|
+
bun src/cli/index.ts adopt --repo . --dry-run
|
|
523
519
|
bash scripts/check-agent-tooling.sh --host both --check-updates
|
|
524
520
|
bun run benchmark:skills --eval route-workflow-check
|
|
525
521
|
```
|
|
@@ -556,7 +552,7 @@ bun run benchmark:skills --eval repair-agents-task-sync
|
|
|
556
552
|
- Scaffolding scripts:
|
|
557
553
|
- `scripts/init-project.sh`
|
|
558
554
|
- `scripts/create-project-dirs.sh`
|
|
559
|
-
-
|
|
555
|
+
- Canonical adoption planner: `src/core/adoption/standard-plan.ts`
|
|
560
556
|
|
|
561
557
|
## Generated vs Self-Hosted Hook Projection
|
|
562
558
|
|
|
@@ -594,7 +590,7 @@ bash scripts/check-architecture-sync.sh
|
|
|
594
590
|
bash scripts/check-task-sync.sh
|
|
595
591
|
bash scripts/check-task-workflow.sh --strict
|
|
596
592
|
bun scripts/inspect-project-state.ts --repo . --format text
|
|
597
|
-
|
|
593
|
+
bun src/cli/index.ts adopt --repo . --dry-run
|
|
598
594
|
bash scripts/check-agent-tooling.sh --host both --check-updates
|
|
599
595
|
bun run benchmark:skills --eval route-workflow-check
|
|
600
596
|
```
|