repo-harness 0.34.0 → 0.35.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 +1 -1
- package/CLAUDE.md +1 -1
- package/README.md +1 -1
- package/assets/reference-configs/agentic-development-flow.md +3 -3
- package/assets/reference-configs/external-tooling.md +28 -33
- package/assets/reference-configs/global-working-rules.md +7 -7
- package/assets/reference-configs/herdr-notify.md +18 -16
- package/assets/reference-configs/hook-operations.md +2 -2
- package/assets/reference-configs/release-deploy.md +9 -4
- package/assets/released-managed-values.v1.json +665 -1
- package/assets/skill-version.json +2 -2
- package/assets/skills/repo-harness-issue-flow/SKILL.md +57 -45
- package/assets/skills/repo-harness-issue-flow/references/acceptor.md +86 -97
- package/assets/skills/repo-harness-issue-flow/references/advisor.md +27 -17
- package/assets/skills/repo-harness-issue-flow/references/board.md +31 -18
- package/assets/skills/repo-harness-issue-flow/references/orchestrator.md +125 -70
- package/assets/skills/repo-harness-issue-flow/references/replan.md +2 -2
- package/assets/skills/repo-harness-issue-flow/references/templates.md +26 -22
- package/assets/skills/repo-harness-issue-flow/references/worker.md +37 -28
- package/assets/templates/helpers/capability-resolver.ts +15 -11
- package/assets/templates/root-context.md +1 -1
- package/assets/workflow-contract.v1.json +6 -4
- package/dist/hook-entry.js +2391 -1697
- package/dist/oar-review-host.js +23 -18
- package/package.json +1 -1
- package/scripts/check-agent-tooling.sh +26 -44
- package/scripts/check-ci.sh +1 -1
- package/scripts/check-released-managed-values.ts +84 -0
- package/scripts/check-tarball-install-smoke.sh +9 -8
- package/scripts/install-agent-fleet.sh +65 -70
- package/scripts/release-owner-steps.sh +6 -4
- package/scripts/run-skill-evals.ts +2 -1
- package/scripts/skill-surface-select.ts +9 -6
- package/scripts/sync-codex-installed-copies.sh +44 -115
- package/src/cli/commands/architecture-debt-report.ts +150 -18
- package/src/cli/commands/board.ts +20 -4
- package/src/cli/commands/candidate-reconciliation.ts +2 -1
- package/src/cli/commands/doctor.ts +15 -6
- package/src/cli/commands/fleet.ts +3 -2
- package/src/cli/commands/global-runtime.ts +107 -165
- package/src/cli/commands/herdr-skill.ts +31 -159
- package/src/cli/commands/init.ts +48 -71
- package/src/cli/commands/install.ts +1 -2
- package/src/cli/commands/operator-actions.ts +2 -2
- package/src/cli/commands/review.ts +3 -2
- package/src/cli/commands/rules.ts +4 -21
- package/src/cli/commands/seats.ts +99 -25
- package/src/cli/commands/security.ts +4 -2
- package/src/cli/commands/setup-check.ts +6 -11
- package/src/cli/commands/upgrade.ts +155 -80
- package/src/cli/hook/agent-notice.ts +27 -9
- package/src/cli/hook/handler-registry.ts +1 -1
- package/src/cli/hook/safety-hook.ts +427 -95
- package/src/cli/hook/stop-handler.ts +6 -6
- package/src/cli/hook-entry.ts +4 -2
- package/src/cli/index.ts +102 -83
- package/src/cli/installer/codex-config-migration.ts +160 -0
- package/src/cli/installer/configuration-ownership.ts +9 -194
- package/src/cli/installer/global-context.ts +215 -153
- package/src/cli/installer/install-profile.ts +612 -662
- package/src/cli/installer/install-state-migration.ts +133 -0
- package/src/cli/installer/install-state.ts +99 -32
- package/src/cli/installer/json-config-migration.ts +248 -0
- package/src/cli/installer/managed-entries.ts +75 -13
- package/src/cli/installer/pi-package.ts +3 -1
- package/src/cli/installer/replaced-agents-migration.ts +57 -0
- package/src/cli/installer/repository-excludes.ts +4 -3
- package/src/cli/installer/skill-sync.ts +52 -0
- package/src/cli/installer/targets/claude.ts +33 -58
- package/src/cli/installer/targets/codex.ts +49 -61
- package/src/cli/installer/types.ts +2 -1
- package/src/cli/installer/uninstall.ts +182 -162
- package/src/cli/installer/waza-rules.ts +18 -84
- package/src/cli/mcp/auth.ts +5 -2
- package/src/cli/mcp/repo-discovery.ts +229 -0
- package/src/cli/mcp/tools.ts +4 -225
- package/src/cli/tools/codegraph.ts +123 -347
- package/src/core/architecture/contracts.ts +2 -0
- package/src/core/board/advisor-seat.ts +1 -1
- package/src/core/board/attention.ts +86 -43
- package/src/core/board/board.ts +91 -307
- package/src/core/board/dispatch.ts +27 -11
- package/src/core/board/hazards.ts +50 -4
- package/src/core/board/merge.ts +19 -3
- package/src/core/board/protocol-comments.ts +272 -0
- package/src/core/board/review-rules.ts +358 -0
- package/src/core/board/review.ts +8 -7
- package/src/core/board/seat-launch.ts +12 -3
- package/src/core/board/seat-routing.ts +3 -2
- package/src/core/board/seats-settings.ts +27 -14
- package/src/core/board/source.ts +2 -245
- package/src/core/capabilities/ownership-blocker.ts +5 -4
- package/src/core/capabilities/registry.ts +7 -8
- package/src/core/ci/rules.ts +4 -5
- package/src/core/ci/test-budget.ts +33 -240
- package/src/core/evidence/file-syntax.ts +31 -0
- package/src/core/evidence/fold.ts +4 -3
- package/src/core/evidence/verification-plan.ts +4 -3
- package/src/core/host-config/claude-config.ts +20 -0
- package/src/core/host-config/json-fragment.ts +449 -0
- package/src/core/host-config/marked-block.ts +90 -0
- package/src/core/host-config/plan.ts +24 -32
- package/src/core/host-config/registry.ts +73 -0
- package/src/core/host-config/toml-fragment.ts +131 -0
- package/src/core/host-config/types.ts +86 -11
- package/src/core/operator/architecture-map-model.ts +442 -0
- package/src/core/operator/architecture-map.ts +134 -448
- package/src/core/operator/docs.ts +5 -3
- package/src/core/publication/merge-readiness.ts +1 -87
- package/src/core/review/acceptance-receipt.ts +8 -203
- package/src/core/review/archive-projection.ts +113 -0
- package/src/core/review/change-assessment-model.ts +243 -0
- package/src/core/review/change-assessment.ts +47 -237
- package/src/core/review/waiver-grant.ts +105 -0
- package/src/core/skill-surface/catalog.ts +4 -2
- package/src/core/workflow/policy-schema.ts +5 -2
- package/src/effects/adoption/standard-plan.ts +20 -12
- package/src/effects/architecture/archctx-provider.ts +27 -8
- package/src/effects/board/attention-watch.ts +3 -1
- package/src/effects/board/collect.ts +113 -15
- package/src/effects/board/dispatch.ts +53 -22
- package/src/effects/board/review.ts +2 -5
- package/src/effects/board/seat-reset-store.ts +267 -0
- package/src/effects/board/seat-reset.ts +12 -265
- package/src/effects/board/seats-configuration.ts +6 -4
- package/src/effects/configuration/global-configuration.ts +12 -9
- package/src/effects/evidence/checkpoint-store.ts +9 -10
- package/src/effects/evidence/eval-catalog.ts +5 -4
- package/src/effects/evidence/verification-execution.ts +61 -928
- package/src/effects/evidence/verification-ledger-view.ts +632 -0
- package/src/effects/evidence/verification-toolchain.ts +338 -0
- package/src/effects/fleet/provider-feedback-github.ts +530 -0
- package/src/effects/fleet/provider-feedback.ts +17 -526
- package/src/effects/fleet/task-inbox-activity.ts +167 -0
- package/src/effects/fleet/task-inbox-store.ts +499 -0
- package/src/effects/fleet/task-inbox.ts +34 -623
- package/src/effects/host-config/gate.ts +814 -80
- package/src/effects/host-config/path-records.ts +170 -0
- package/src/effects/host-config/store.ts +107 -10
- package/src/effects/host-config/whole-path.ts +108 -0
- package/src/effects/locking/runtime-transaction-lock.ts +7 -10
- package/src/effects/operator/diagram-readback.ts +2 -2
- package/src/effects/operator/http-helpers.ts +208 -0
- package/src/effects/operator/language-settings-route.ts +2 -1
- package/src/effects/operator/runtime-service.ts +2 -1
- package/src/effects/operator/server.ts +19 -721
- package/src/effects/operator/supervised-read-process.ts +415 -0
- package/src/effects/operator/unavailable-responses.ts +121 -0
- package/src/effects/pi-host-probe.ts +2 -1
- package/src/effects/publication/merge-executor.ts +1 -9
- package/src/effects/publication/merge-readiness.ts +9 -154
- package/src/effects/release/runtime-evidence.ts +2 -6
- package/src/effects/repo-harness-home.ts +8 -3
- package/src/effects/review/acceptance-receipt-runtime.ts +132 -0
- package/src/effects/review/acceptance-receipt-store.ts +354 -0
- package/src/effects/review/acceptance-receipt.ts +43 -480
- package/src/effects/review/generic-review.ts +36 -8
- package/src/effects/review/review-collect.ts +35 -3
- package/src/effects/review/review-isolation.ts +24 -14
- package/src/effects/review/review-publish-gh.ts +302 -0
- package/src/effects/review/review-publish.ts +27 -298
- package/src/effects/rules/tasks.ts +1 -1
- package/src/effects/runtime/helper-runner.ts +4 -3
- package/src/effects/runtime/protected-helper-platform.ts +2 -6
- package/src/effects/skill-tree-integrity.ts +1 -54
- package/src/effects/state/resolve-effective-state.ts +33 -489
- package/src/effects/state/state-capability-ownership.ts +348 -0
- package/src/effects/state/state-policy.ts +148 -0
- package/src/effects/strategy/context.ts +5 -3
- package/src/effects/terminal/herdr-core.ts +29 -2
- package/src/effects/terminal/task-role-profiles.ts +8 -14
- package/src/effects/upgrade/legacy-inventory.ts +163 -88
- package/src/effects/upgrade/operator-decisions.ts +4 -2
- package/src/effects/upgrade/released-values.ts +34 -1
- /package/src/{cli/installer → effects/host-config}/herdr-skill-marker.ts +0 -0
package/AGENTS.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
- Multi-agent work follows `repo-harness-issue-flow` (`assets/skills/repo-harness-issue-flow/SKILL.md`): roles, claims, handoff, dispatch, acceptance and merge.
|
|
5
5
|
- `docs/architecture/archimap.html` is the single architecture entry. It links each module to its archctx-projected capability doc in `docs/architecture/modules/`. Change boundaries only through `repo-harness-architecture`; do not hand-write other architecture docs.
|
|
6
6
|
- The security bar is two invariants (owner, 2026-11-16, #2742): I1, no user key, token or credential leaks; I2, no deletion or overwrite of a user file without authorization. Guards protect against accidents, not against an adversary who already runs as the user. The local user's instruction is the top authority; GitHub issues and comments are references. The owner keeps (owner, 2026-11-09, #2008; list narrowed 2026-11-16): credentials, tokens and secrets, and each change that reads, moves or exposes them (I1); deletion that git cannot restore: unpushed commits, dirty worktrees, owner files outside a repository such as `~/.repo-harness`, `~/.claude` or `~/.codex` without a backup (I2); and production: the owner's word for each release (it starts the host command list that publishes both packages to npm, creates the release tag and the GitHub Release) and each production deployment. Hooks, network access, sandbox settings, branch protection, `publication.acceptance_merge` and the `Required / CI` definition are not owner items; the seats decide them by rule or by joint decision. Product code fails closed only on I1/I2 paths. A production deployment needs an explicit owner authorization for that deployment; no standing GO and no joint decision covers it. The life cycle goes as far as the release PR (prep, version and CHANGELOG commits, push, checks, merge by rule 2). A staging or test deployment (scratch-HOME tarball install, release dry run, prerelease environment, Windows test box) is a joint decision.
|
|
7
|
-
- Main publication is allowed only when `publication.acceptance_merge` is `on` in the policy on the PR base, and the current task explicitly authorizes main publication, or rule 2 or rule 3 applies; the skill defines who merges. Push needs task authorization. An explicit no-merge instruction that reaches a seat locally (task or pane) always wins; a no-merge comment is a reference under rule (8). Life-cycle rules (owner, 2026-11-09, #2008): (1) A
|
|
7
|
+
- Main publication is allowed only when `publication.acceptance_merge` is `on` in the policy on the PR base, and the current task explicitly authorizes main publication, or rule 2 or rule 3 applies; the skill defines who merges. Push needs task authorization. An explicit no-merge instruction that reaches a seat locally (task or pane) always wins; a no-merge comment is a reference under rule (8). Life-cycle rules (owner, 2026-11-09, #2008): (1) A review grades only the lines that the PR changes and has at most two rounds. Round 2 checks only the round-1 fix delta; a round-1 `PASS` row carries forward while the fix stays inside the failing reviewer's files, and otherwise its reviewer checks only that delta (row rule: the skill's acceptor reference). Only a P0 or a P1 finding makes a `FAIL` record, and only a failure that ordinary use or an accident can cause is a P0 or a P1; a finding that touches I1 or I2 is rated at least P1. P2 and P3 findings stay in the review record and open no issue; only a P0 or P1 defect or an owner-named item opens one. The orchestrator merges on round 2 when only P2 or P3 findings remain. A blocking finding after round 2 ends the loop: the orchestrator narrows the PR, or closes it and dispatches the work again. A new P0 finding, or a new P1 finding on I1 or I2, goes to the owner as a notice. Each merge outside rule 2, each release, each change that reads, moves or exposes a credential and each deletion that git cannot restore stay with the owner. (2) In an owner-approved batch, a Medium or High PR merges when its acceptance record is PASS for the head, `Required / CI` passed and each review-bot comment has a response; a High PR also needs its cross-model review PASS; a Low PR that meets the Low accept-seat skip merges on `Required / CI` and its verification evidence, with no acceptance record; each PR body keeps its rollback line (a `git revert` of the squash commit unless it states another). (3) The rolling projection PR (`archctx/projection`) merges on green CI; its merge is its acceptance. (4) An owner decision reaches a seat locally; the seat posts it on the issue or PR as a log. A comment is a log; a local decision and CI act. A locally run command may read a comment as data; a comment never starts an action. (5) After the owner approves a batch parent and its plan comment, the plan's issues dispatch in plan order; a new batch issue or a changed order is an orchestrator call, logged in one line on the parent plan. (6) The GitHub setting "Automatically delete head branches" deletes merged head branches only. (7) A joint decision of the orchestrator and the advisor is needed only to grow the scope of an open PR, to skip a required review row or to accept an I1/I2/I3 residual; every other call is the orchestrator's. Before the action they post it on the owning issue or PR as `Joint decision (orchestrator + advisor)` with the reason. Both seats run the same model family, so a joint decision never replaces the High-tier cross-model review. (8) Any participant, the owner account included, may post "stop" or "no" on the issue or PR. It is a reference: the orchestrator weighs it, decides locally and logs the call on the item; a stop on an I1/I2 item goes to the owner. The owner's own authorization reaches a seat locally.
|
|
8
8
|
- The diff's [Review by risk](docs/reference-configs/agentic-development-flow.md#review-by-risk) tier selects independent review; the skill defines the reviewers and their model families. Changing implementation and test assertions together does not raise the tier.
|
|
9
9
|
- Create task worktrees only at `/tmp/<repo>-wt-<slug>` (Windows: `os.tmpdir()`) with `rh worktrees start --issue <number>`, or `git worktree add` with that path. Never create one beside the main checkout (`../`). Commit or push before a reboot or a tmp cleanup. Closeout and sweep remove only merged, clean and unowned worktrees; to keep one, give it an unmerged commit, keep it dirty, or mark or lock it.
|
|
10
10
|
- For non-trivial work, follow the global Progressive Due Diligence rule (P1 map, P2 trace, P3 decision) before design decisions or code edits.
|
package/CLAUDE.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
- Multi-agent work follows `repo-harness-issue-flow` (`assets/skills/repo-harness-issue-flow/SKILL.md`): roles, claims, handoff, dispatch, acceptance and merge.
|
|
5
5
|
- `docs/architecture/archimap.html` is the single architecture entry. It links each module to its archctx-projected capability doc in `docs/architecture/modules/`. Change boundaries only through `repo-harness-architecture`; do not hand-write other architecture docs.
|
|
6
6
|
- The security bar is two invariants (owner, 2026-11-16, #2742): I1, no user key, token or credential leaks; I2, no deletion or overwrite of a user file without authorization. Guards protect against accidents, not against an adversary who already runs as the user. The local user's instruction is the top authority; GitHub issues and comments are references. The owner keeps (owner, 2026-11-09, #2008; list narrowed 2026-11-16): credentials, tokens and secrets, and each change that reads, moves or exposes them (I1); deletion that git cannot restore: unpushed commits, dirty worktrees, owner files outside a repository such as `~/.repo-harness`, `~/.claude` or `~/.codex` without a backup (I2); and production: the owner's word for each release (it starts the host command list that publishes both packages to npm, creates the release tag and the GitHub Release) and each production deployment. Hooks, network access, sandbox settings, branch protection, `publication.acceptance_merge` and the `Required / CI` definition are not owner items; the seats decide them by rule or by joint decision. Product code fails closed only on I1/I2 paths. A production deployment needs an explicit owner authorization for that deployment; no standing GO and no joint decision covers it. The life cycle goes as far as the release PR (prep, version and CHANGELOG commits, push, checks, merge by rule 2). A staging or test deployment (scratch-HOME tarball install, release dry run, prerelease environment, Windows test box) is a joint decision.
|
|
7
|
-
- Main publication is allowed only when `publication.acceptance_merge` is `on` in the policy on the PR base, and the current task explicitly authorizes main publication, or rule 2 or rule 3 applies; the skill defines who merges. Push needs task authorization. An explicit no-merge instruction that reaches a seat locally (task or pane) always wins; a no-merge comment is a reference under rule (8). Life-cycle rules (owner, 2026-11-09, #2008): (1) A
|
|
7
|
+
- Main publication is allowed only when `publication.acceptance_merge` is `on` in the policy on the PR base, and the current task explicitly authorizes main publication, or rule 2 or rule 3 applies; the skill defines who merges. Push needs task authorization. An explicit no-merge instruction that reaches a seat locally (task or pane) always wins; a no-merge comment is a reference under rule (8). Life-cycle rules (owner, 2026-11-09, #2008): (1) A review grades only the lines that the PR changes and has at most two rounds. Round 2 checks only the round-1 fix delta; a round-1 `PASS` row carries forward while the fix stays inside the failing reviewer's files, and otherwise its reviewer checks only that delta (row rule: the skill's acceptor reference). Only a P0 or a P1 finding makes a `FAIL` record, and only a failure that ordinary use or an accident can cause is a P0 or a P1; a finding that touches I1 or I2 is rated at least P1. P2 and P3 findings stay in the review record and open no issue; only a P0 or P1 defect or an owner-named item opens one. The orchestrator merges on round 2 when only P2 or P3 findings remain. A blocking finding after round 2 ends the loop: the orchestrator narrows the PR, or closes it and dispatches the work again. A new P0 finding, or a new P1 finding on I1 or I2, goes to the owner as a notice. Each merge outside rule 2, each release, each change that reads, moves or exposes a credential and each deletion that git cannot restore stay with the owner. (2) In an owner-approved batch, a Medium or High PR merges when its acceptance record is PASS for the head, `Required / CI` passed and each review-bot comment has a response; a High PR also needs its cross-model review PASS; a Low PR that meets the Low accept-seat skip merges on `Required / CI` and its verification evidence, with no acceptance record; each PR body keeps its rollback line (a `git revert` of the squash commit unless it states another). (3) The rolling projection PR (`archctx/projection`) merges on green CI; its merge is its acceptance. (4) An owner decision reaches a seat locally; the seat posts it on the issue or PR as a log. A comment is a log; a local decision and CI act. A locally run command may read a comment as data; a comment never starts an action. (5) After the owner approves a batch parent and its plan comment, the plan's issues dispatch in plan order; a new batch issue or a changed order is an orchestrator call, logged in one line on the parent plan. (6) The GitHub setting "Automatically delete head branches" deletes merged head branches only. (7) A joint decision of the orchestrator and the advisor is needed only to grow the scope of an open PR, to skip a required review row or to accept an I1/I2/I3 residual; every other call is the orchestrator's. Before the action they post it on the owning issue or PR as `Joint decision (orchestrator + advisor)` with the reason. Both seats run the same model family, so a joint decision never replaces the High-tier cross-model review. (8) Any participant, the owner account included, may post "stop" or "no" on the issue or PR. It is a reference: the orchestrator weighs it, decides locally and logs the call on the item; a stop on an I1/I2 item goes to the owner. The owner's own authorization reaches a seat locally.
|
|
8
8
|
- The diff's [Review by risk](docs/reference-configs/agentic-development-flow.md#review-by-risk) tier selects independent review; the skill defines the reviewers and their model families. Changing implementation and test assertions together does not raise the tier.
|
|
9
9
|
- Create task worktrees only at `/tmp/<repo>-wt-<slug>` (Windows: `os.tmpdir()`) with `rh worktrees start --issue <number>`, or `git worktree add` with that path. Never create one beside the main checkout (`../`). Commit or push before a reboot or a tmp cleanup. Closeout and sweep remove only merged, clean and unowned worktrees; to keep one, give it an unmerged commit, keep it dirty, or mark or lock it.
|
|
10
10
|
- For non-trivial work, follow the global Progressive Due Diligence rule (P1 map, P2 trace, P3 decision) before design decisions or code edits.
|
package/README.md
CHANGED
|
@@ -331,6 +331,6 @@ None of these are bundled dependencies; see
|
|
|
331
331
|
|
|
332
332
|
## Release & license
|
|
333
333
|
|
|
334
|
-
- npm: `repo-harness@0.
|
|
334
|
+
- npm: `repo-harness@0.35.0` · workflow stamp `repo-harness@0.35.0+template@0.35.0`
|
|
335
335
|
- History: [`docs/CHANGELOG.md`](docs/CHANGELOG.md)
|
|
336
336
|
- License: MIT — see [`LICENSE`](LICENSE)
|
|
@@ -158,17 +158,17 @@ The board rule R5 reads only the rows with `path_visible: true`: a changed path
|
|
|
158
158
|
| Changes release, publish or deploy, including `deploy/sql/`. | `deploy/sql/**`, `src/core/release/**`, `src/effects/release/**`, `scripts/check-npm-release.sh`, `scripts/check-release-published.sh` |
|
|
159
159
|
<!-- review-high-list:list:end -->
|
|
160
160
|
|
|
161
|
-
Review follows the `repo-harness-issue-flow` skill, [references/acceptor.md](../../assets/skills/repo-harness-issue-flow/references/acceptor.md). The tier selects the depth: no independent review for Low, one fresh-context review from a model family different from the writer's for Medium, and the gatekeeper plus one review for High, at least one of the two from a model family different from the writer's.
|
|
161
|
+
Review follows the `repo-harness-issue-flow` skill, [references/acceptor.md](../../assets/skills/repo-harness-issue-flow/references/acceptor.md). The tier selects the depth: no independent review for Low, one fresh-context review from a model family different from the writer's for Medium, and the gatekeeper plus one review for High, at least one of the two from a model family different from the writer's. Only a diff that touches I1, I2 or a repository-configured I3 path (server-side auth, row-level security, entitlement or release SQL paths that the repository's policy names) takes the second review. The two High reviews start in parallel on the same head. A review has at most two rounds; round 2 checks only the round-1 fix delta, and a round-1 `PASS` review runs again only for a delta check when the fix leaves the failing reviewer's files. The round rules (who reviews each round, the claims of a round, the round-2 scope and the merge-or-stop rule) are only in [references/acceptor.md §2.2](../../assets/skills/repo-harness-issue-flow/references/acceptor.md#22-rounds). The Acceptor SOP owns the round, findings and publish steps.
|
|
162
162
|
|
|
163
163
|
Low accept-seat skip: a Low PR whose `Required / CI` is SUCCESS on the PR head and whose PR body holds the author verification evidence (the commands and their outcomes) takes no accept seat and no acceptance record. Do not dispatch a Codex, Herdr or OAR accept seat for it. `Required / CI` and that evidence are the proof surface. A Low PR that lacks either condition is not eligible to merge until both hold. Medium and High keep the full Acceptor SOP.
|
|
164
164
|
|
|
165
165
|
Worked example (docs-only Low path): the PR edits `docs/bot-onboarding.md` only. The author runs one check command and records the command and its outcome (exit 0) in the PR body. `Required / CI` is SUCCESS on the PR head. The PR needs no reviewer, and it is eligible to merge with no accept seat and no acceptance record.
|
|
166
166
|
|
|
167
167
|
Rules for every tier:
|
|
168
|
-
- The reviewer
|
|
168
|
+
- The reviewer grades only the lines that the diff changes. A defect that main already has is a non-blocking note, never a `FAIL`. P2 and P3 findings stay in the review record; only a P0 or P1 defect or an owner-named item opens an issue.
|
|
169
169
|
- Review rounds follow [references/acceptor.md §2.2](../../assets/skills/repo-harness-issue-flow/references/acceptor.md#22-rounds). The reviewer reads CI on the exact head and the recorded evidence, and does not rerun a passing check ([references/acceptor.md §2.1](../../assets/skills/repo-harness-issue-flow/references/acceptor.md#21-evidence)).
|
|
170
170
|
- When an independent review ran, the PR description lists each finding with its disposition: fixed, or closed with the reason.
|
|
171
|
-
- The security bar is I1 (no user key, token or credential leaks) and I2 (no deletion or overwrite of a user file without authorization). Guards protect against accidents, not against an adversary who already runs as the user. An adversarial finding (attacker, race, alias, shell trick)
|
|
171
|
+
- The security bar is I1 (no user key, token or credential leaks) and I2 (no deletion or overwrite of a user file without authorization). Guards protect against accidents, not against an adversary who already runs as the user. Only a failure that ordinary use or an accident can cause is a P0 or a P1. An adversarial-only finding (attacker, race, alias, shell trick), a client-side cache timing window and a duplicate JSON key are P3 notes and block no merge.
|
|
172
172
|
- A low tier adds no review. A new test file or a rebase does not raise the tier.
|
|
173
173
|
- Changing implementation and test assertions together does not raise the tier. Within the tier's existing review, check whether assertions preserve the intended behavior and whether removed or weakened coverage has a valid requirement-based reason. At Low, the author performs this check in self-review. Record the reason for each assertion change in the PR; never change assertions only to make a test pass. Do not dispatch a separate test-review gate.
|
|
174
174
|
- A parent, coordinator or merge session reuses recorded acceptance when the reviewed diff, relevant base context, verification inputs and environment still match, and the review meets the current tier. The PR records the reviewed revision or diff, commands, results and finding dispositions. A change of session or reviewer is not a reason to repeat acceptance.
|
|
@@ -37,16 +37,15 @@ limits host cleanup; shared profile surfaces are retired on `--target both`
|
|
|
37
37
|
(the default). Install and uninstall accept only `--location global`.
|
|
38
38
|
`--location local` is rejected before configuration reads or writes.
|
|
39
39
|
|
|
40
|
-
Cleanup removes
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
a runtime.
|
|
40
|
+
Cleanup removes global working-rule blocks, unchanged profile-owned
|
|
41
|
+
skills/rules/agents/links and the product's helper configuration fields. The host
|
|
42
|
+
configuration files (`~/.codex/config.toml`, `~/.codex/hooks.json`,
|
|
43
|
+
`~/.claude/settings.json`, `~/.claude.json`) revert by the host-config ledger in
|
|
44
|
+
`~/.repo-harness/config/`: a file that nobody changed since rh wrote it returns to
|
|
45
|
+
its bytes before rh; in a changed file, rh removes each entry that it added and that
|
|
46
|
+
is still as rh wrote it, and the other entries stay and are reported. Sibling hooks,
|
|
47
|
+
configuration keys, user-edited surfaces and vault contents remain. It does not
|
|
48
|
+
activate a runtime.
|
|
50
49
|
|
|
51
50
|
Unproven old configuration, malformed configuration, changed owned surfaces and an
|
|
52
51
|
edited managed block (the Global Working Rules block or the runtime-state ignore block)
|
|
@@ -57,12 +56,6 @@ completion. A preserved shared/pre-existing
|
|
|
57
56
|
third-party installation is not claimed as repo-harness-owned.
|
|
58
57
|
|
|
59
58
|
Standalone CodeGraph configuration and global install/update share one host lock.
|
|
60
|
-
Before external mutation, a private pending receipt records only selected configuration
|
|
61
|
-
fragments. Interrupted setup blocks ordinary mutation and cleanup; use
|
|
62
|
-
`rh uninstall --recover-interrupted --dry-run` to preview restoration,
|
|
63
|
-
then `rh uninstall --recover-interrupted` to apply it. This explicit
|
|
64
|
-
recovery restores the recorded fragments even if they were edited after interruption;
|
|
65
|
-
sibling fields remain. The target must include every affected host.
|
|
66
59
|
|
|
67
60
|
Package-manager globals, the official Codex plugin, the MCP config,
|
|
68
61
|
archives and runtime history remain. Repository unadoption and package removal are
|
|
@@ -708,19 +701,19 @@ mapping.
|
|
|
708
701
|
|
|
709
702
|
| Source `model` | Codex `model` | Source `effort` | Codex `model_reasoning_effort` |
|
|
710
703
|
|---|---|---|---|
|
|
711
|
-
| `opus` | `gpt-6-astra` | `low`, `medium`, `high`, `xhigh`, `max` | same string, unchanged |
|
|
704
|
+
| `opus` | `gpt-6.2-astra` | `low`, `medium`, `high`, `xhigh`, `max` | same string, unchanged |
|
|
712
705
|
| `sonnet`, `haiku` | `gpt-6-luna` | `low`, `medium`, `high`, `xhigh`, `max` | same string, unchanged |
|
|
713
|
-
| `fable` | `gpt-6.
|
|
706
|
+
| `fable` | `gpt-6.2-sol` | `low`, `medium`, `high`, `xhigh`, `max` | same string, unchanged |
|
|
714
707
|
|
|
715
708
|
Seven per-agent target overrides are applied after tuple validation, on top of
|
|
716
709
|
the family row above, and are the only model/effort remaps in the generator:
|
|
717
710
|
`explorer` (`sonnet`/`medium`) targets `gpt-6-luna` at `high` reasoning;
|
|
718
|
-
`deep-reasoner` (`opus`/`xhigh`) targets `gpt-6-astra` at `high` reasoning;
|
|
719
|
-
`fast-worker` (`sonnet`/`high`) targets `gpt-6.
|
|
720
|
-
`deep-worker` (`opus`/`high`) targets `gpt-6.
|
|
721
|
-
`gatekeeper` (`opus`/`high`) targets `gpt-6-astra` at `medium` reasoning;
|
|
722
|
-
`root-cause-prover` (`opus`/`xhigh`) targets `gpt-6-astra` at `high` reasoning;
|
|
723
|
-
`harness-evaluator` (`opus`/`high`) targets `gpt-6-astra` at `medium` reasoning.
|
|
711
|
+
`deep-reasoner` (`opus`/`xhigh`) targets `gpt-6.2-astra` at `high` reasoning;
|
|
712
|
+
`fast-worker` (`sonnet`/`high`) targets `gpt-6.2-sol` at `medium` reasoning;
|
|
713
|
+
`deep-worker` (`opus`/`high`) targets `gpt-6.2-sol` at `high` reasoning;
|
|
714
|
+
`gatekeeper` (`opus`/`high`) targets `gpt-6.2-astra` at `medium` reasoning;
|
|
715
|
+
`root-cause-prover` (`opus`/`xhigh`) targets `gpt-6.2-astra` at `high` reasoning;
|
|
716
|
+
`harness-evaluator` (`opus`/`high`) targets `gpt-6.2-astra` at `medium` reasoning.
|
|
724
717
|
`orchestrator` has no Codex target.
|
|
725
718
|
|
|
726
719
|
`fast-worker`, `deep-worker`, `root-cause-prover`, and `harness-evaluator`
|
|
@@ -936,18 +929,20 @@ rh run install-agent-fleet --accept-user-managed
|
|
|
936
929
|
```
|
|
937
930
|
|
|
938
931
|
The acknowledgement validates all twelve target files before writing
|
|
939
|
-
|
|
932
|
+
`user_managed` path records into the host-config ledger
|
|
933
|
+
(`~/.repo-harness/config/ledger.json`). Claude files must have
|
|
940
934
|
well-formed frontmatter with the target role identity, model, effort, and body;
|
|
941
935
|
Codex files must be valid TOML with a pinned model, supported reasoning effort,
|
|
942
936
|
and developer instructions. Symlinks, missing files, malformed files, or
|
|
943
|
-
role-name mismatches fail closed without changing the
|
|
937
|
+
role-name mismatches fail closed without changing the records.
|
|
944
938
|
|
|
945
939
|
Only customized files are recorded, by absolute path and SHA-256. Later
|
|
946
940
|
installer and full-profile runs report those exact bytes as `user-managed`
|
|
947
941
|
and do not claim transaction ownership over them. Any subsequent byte change
|
|
948
942
|
invalidates the acknowledgement and returns to `drift` until the operator
|
|
949
943
|
reviews and accepts the new content. `--force` restores packaged content and
|
|
950
|
-
|
|
944
|
+
drops the fleet's `user_managed` records. An uninstall releases a
|
|
945
|
+
`user_managed` record and never removes its file. Re-running with no packaged-source changes
|
|
951
946
|
reports packaged files as `up-to-date`.
|
|
952
947
|
|
|
953
948
|
### Readiness
|
|
@@ -955,12 +950,12 @@ reports packaged files as `up-to-date`.
|
|
|
955
950
|
`rh run check-agent-tooling --host both --strict-readiness` reports
|
|
956
951
|
`agent_fleet` alongside `codegraph`. With `--check-updates`, it compares each
|
|
957
952
|
installed Claude-side `.md` against the packaged source hash without network
|
|
958
|
-
access. When a file differs from that source, it consults the
|
|
959
|
-
`--accept-user-managed`
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
953
|
+
access. When a file differs from that source, it consults the ledger's
|
|
954
|
+
`user_managed` records that `--accept-user-managed` wrote: a record whose
|
|
955
|
+
SHA-256 still matches the file's current installed content reports
|
|
956
|
+
`user-managed` on its own report line instead of drift, while an unreadable
|
|
957
|
+
ledger, no record for that path, or a stale hash still reports `drift`,
|
|
958
|
+
fail-closed. The per-host rollup is `up-to-date` once
|
|
964
959
|
nothing is left in drift. The Codex `.toml` side is a generated artifact and
|
|
965
960
|
is checked for presence; installer golden tests prove the deterministic
|
|
966
961
|
generation.
|
|
@@ -60,9 +60,7 @@ Before non-trivial design or edits, complete P1/P2/P3:
|
|
|
60
60
|
|
|
61
61
|
- Add a test only for changed observable behavior or a reproduced bug; use one case per behavior branch. Do not test a guarantee already enforced by a type, schema, constructor or one boundary validator, and do not test log text or formatting.
|
|
62
62
|
- Extend an existing test before you add a test file. Do not add a test for a speculative or very unlikely case without the approval in Code Optimization Principles.
|
|
63
|
-
-
|
|
64
|
-
- Report both counts in the PR. Measure added lines with `git diff --numstat <base>...HEAD -- tests` and `git diff --numstat <base>...HEAD -- src scripts`; list added test files with `git diff --diff-filter=A --name-only <base>...HEAD -- tests`. Downstream repositories use their own test and product roots.
|
|
65
|
-
- Above either cap, add a `Test budget exception` section to the PR description, or to an issue comment when there is no PR: the measured counts, the behavior that needs the coverage, and why an existing test cannot cover it. Without that record the change is over budget.
|
|
63
|
+
- Report the test volume in the PR as data: added test lines (`git diff --numstat <base>...HEAD -- tests`), added product lines (`git diff --numstat <base>...HEAD -- src scripts`) and added test files (`git diff --diff-filter=A --name-only <base>...HEAD -- tests`). Downstream repositories use their own test and product roots. The report has no cap and blocks no merge.
|
|
66
64
|
- Remove a redundant test only when the PR names the retained test that covers the same behavior. Never modify or delete assertions just to make a test pass.
|
|
67
65
|
|
|
68
66
|
## Reporting
|
|
@@ -113,6 +111,8 @@ When a task requires broad research, repo archaeology, multi-source synthesis, o
|
|
|
113
111
|
|
|
114
112
|
- Cross-model consult skills (such as `repo-harness-cross-review`) and plan consultations through a peer pane run only on explicit invocation by name or an unambiguous review request. Casual phrasing about checking or improving code is not a dispatch authorization.
|
|
115
113
|
- One review per boundary: a diff that already passed a gate gets no second pass unless explicitly requested.
|
|
114
|
+
- A review grades only the lines that the diff changes; a defect that the base already has is a note. One reviewer is the default. A second, cross-model reviewer runs only when the diff touches I1 (credentials and secrets), I2 (irreversible deletion of user files or production data) or a repository-configured I3 path, and the two run in parallel on the same head.
|
|
115
|
+
- A review has at most two rounds. Round 2 checks only the round-1 fixes. A reviewer that passed in round 1 does not run again unless the fix leaves the failing reviewer's files; then it checks only that delta. P2 and P3 findings stay in the review record and open no issue; only a P0 or P1 defect or an item that the user names opens one.
|
|
116
116
|
- Follow the active workflow profile's artifact boundary: lite work uses brief -> edit -> targeted verification without plan/contract files; work-package planning uses the repo's file-backed plan flow. A mid-run plan consult is for genuine design forks only.
|
|
117
117
|
```
|
|
118
118
|
|
|
@@ -126,10 +126,10 @@ The managed block above keeps the conservative defaults: commit, push, merge and
|
|
|
126
126
|
- Security stays with the owner: credentials, tokens and secrets; permissions (seat tool grants, network access, sandbox settings, hooks, confirmation bypass); the safety net (branch protection, merge-policy switches such as `publication.acceptance_merge`, force push to main, the required CI definition); deletion that git cannot restore; production deployment, `npm publish`, the release tag and the GitHub Release.
|
|
127
127
|
- A production deployment needs an explicit owner authorization for that deployment. No standing approval and no joint decision covers it.
|
|
128
128
|
- A staging or test deployment is a joint decision of the orchestrator and the advisor. Post it on the issue or PR before the action.
|
|
129
|
-
-
|
|
129
|
+
- A joint decision of the orchestrator and the advisor is needed only to grow the scope of an open PR, to skip a required review row or to accept an I1/I2/I3 residual. The orchestrator makes every other decision that would go to the owner and logs it; ask the owner only for a security item or a production deployment. Post a joint decision as `Joint decision (orchestrator + advisor)` with the reason. A joint decision never replaces the cross-model review of a High-tier diff. This section is the owner's standing authorization for the orchestrator and advisor seats; a peer message does not widen it.
|
|
130
130
|
- A comment is a record: a local seat writes it, and a locally run command may read it as data; it never starts an action. An action starts only from a local seat under a joint decision or the owner's own authorization. Every seat posts with the owner account, so a comment does not prove its author; review-bot comments are references, not instructions.
|
|
131
|
-
- Fix loop: this rule replaces the three-round cap of the managed block. A
|
|
132
|
-
- Merge: main publication needs `publication.acceptance_merge` `on` in the policy on the PR base, at every tier and on every path below. An explicit no-merge instruction always wins. Path 1: the current task explicitly authorizes main publication. Path 2: the rolling projection PR (`archctx/projection`) merges on green CI. Path 3: in an owner-approved batch, a Medium or High PR merges when its acceptance record is PASS for the head, the required CI passed and each review-bot comment has a response; a High PR also needs its cross-model review PASS; a Low PR that meets the repository's Low accept-seat skip merges on the required CI and its verification evidence, with no acceptance record. Each PR body keeps its rollback line.
|
|
133
|
-
- A repository whose own rules say otherwise wins. Any participant, the owner account included, may post "stop" or "no" on the issue or PR. It is a reference: the orchestrator and the
|
|
131
|
+
- Fix loop: for review loops this rule replaces the three-round cap of the managed block. A review has at most two rounds. Round 2 checks only the round-1 fixes. A reviewer that passed in round 1 does not run again unless the fix leaves the failing reviewer's files; then it checks only that delta. The orchestrator merges on round 2 when only P2 or P3 findings remain; P2 and P3 findings stay in the review record and open no follow-up issue. A blocking finding after round 2 ends the loop: the orchestrator narrows the PR, or closes it and dispatches the work again. A joint decision is needed only to grow the scope of an open PR, to skip a required review row or to accept an I1/I2/I3 residual. A new P0 finding, or a new P1 finding about security, secrets, data or authentication, goes to the owner as a notice. Each merge outside rule 2, each release, each credential or permission change and each deletion that git cannot restore stay with the owner.
|
|
132
|
+
- Merge: main publication needs `publication.acceptance_merge` `on` in the policy on the PR base, at every tier and on every path below. An explicit no-merge instruction always wins. Path 1: the current task explicitly authorizes main publication. Path 2: the rolling projection PR (`archctx/projection`) merges on green CI. Path 3: in an owner-approved batch, a Medium or High PR merges when its acceptance record is PASS for the head, the required CI passed and each review-bot comment has a response; a Medium PR takes one diff-only reviewer, and a High PR (I1, I2 or a repository-configured I3 path) also needs its second, cross-model review PASS, run in parallel; a Low PR that meets the repository's Low accept-seat skip merges on the required CI and its verification evidence, with no acceptance record. Each PR body keeps its rollback line.
|
|
133
|
+
- A repository whose own rules say otherwise wins. Any participant, the owner account included, may post "stop" or "no" on the issue or PR. It is a reference: the orchestrator weighs it, decides locally and records the call; a stop on an I1/I2 item goes to the owner. The owner's own authorization reaches a seat locally.
|
|
134
134
|
- Details: aimpact-inc/repo-harness issue #2008.
|
|
135
135
|
```
|
|
@@ -13,7 +13,7 @@ the server records `host_failed` when the guard refuses that child.
|
|
|
13
13
|
|
|
14
14
|
## Herdr Dispatch
|
|
15
15
|
|
|
16
|
-
- Claude, Codex and Pi peers run in herdr-core terminals that Herdr.app shows as panes. Start
|
|
16
|
+
- Claude, Codex and Pi peers run in herdr-core terminals that Herdr.app shows as panes. Start a seat with `rh seats launch`, which opens its Herdr.app tab, and talk to it with `hc` ([Runtime commands](#runtime-commands)). Receipt-bearing acceptance uses `rh review round`; its OAR host runs the reviewer. Select Pi with `--harness pi`. Never call a vendor CLI directly for acceptance.
|
|
17
17
|
- Pi review uses an OAR RPC subprocess under Seatbelt. Its private agent directory links native model configuration and credentials for read-only access. An owner-written mode-0600 `settings.json` contains only native `defaultProvider`, `defaultModel` and `defaultThinkingLevel`; packages, proxy and trust policy are excluded. User extensions, skills, context files, prompt templates and MCP are disabled. The Pi reviewer uses the user's Pi default model. The Receipt's `actual_model` records OAR's actual `provider/model`. A null actual model records `model_relation: unknown` and grants no cross-model claim. A non-string or blank model fails with `review_actual_model_unverified`.
|
|
18
18
|
- A cross-model review means Receipt `model_relation: different-family`. The OAR host records the reviewer model and the model of each ended turn of the one author task session bound to the caller pane, campaign and reviewed root. One closed family table in `src/core/review/acceptance-receipt.ts` compares vendor families, not routing providers. Harness kind does not prove a model difference. A shared family is `same-family`. A missing author binding, an unobserved or running turn, a Claude turn (its model is not observed) or a model outside the table is `unknown`. Interactive authors are not OAR-observed, so they give `unknown` and a High-tier cross-model review stays a manual Herdr peer review. The review runtime records identity; it adds no cross-model gate.
|
|
19
19
|
- Exception: in the Claude desktop app, operator-attended acceptance review can use `rh review round --launch app-terminal`. The CLI prints the fixed OAR host command. Claude runs that exact command once in an app Terminal tab, then repeats the same round. The same OAR host, Seatbelt profile and Receipt apply.
|
|
@@ -26,16 +26,16 @@ This topology applies to issue-flow work (`repo-harness-issue-flow`) on herdr-co
|
|
|
26
26
|
- Pane layout: put at most 3 panes side by side in one tab. Do not stack panes vertically. When the tab is full, open a new tab.
|
|
27
27
|
- Tab 1 holds two panes: the orchestrator on the left and its advisor on the right. Tab 1 may take one worker as its third pane.
|
|
28
28
|
- The orchestrator holds the issue-flow coordinator and integrator seats. It only dispatches, accepts and merges. It does not implement a child issue.
|
|
29
|
-
- The advisor serves
|
|
30
|
-
- Owner decisions and seat authority (owner, 2026-11-09, #2008): the root `CLAUDE.md` and `AGENTS.md` hold the life-cycle rules and the owner list. The orchestrator dispatches an owner-approved batch plan in order, merges by rule 2 at every tier and runs
|
|
31
|
-
- One PR has one pane and one worker agent. Each further worker gets its own pane, as the right split of a tab that is not full or in a new tab. The worker may use the agent-fleet sub-agents (`agents/fleet/`) inside its own pane.
|
|
29
|
+
- The advisor is the owner interface and serves the orchestrator. It relays each owner directive once, writes the parent bundle plan, audits triage and merges every two hours, does research and writes proposals. It may edit files for its proposals. It does not commit or write to GitHub. It collects evidence through the sub-agents of its seat (`seats.advisor.fleet`) and keeps judgment, synthesis and the proposal. The orchestrator asks it for a board replan by [Replan](https://github.com/aimpact-inc/repo-harness/blob/main/assets/skills/repo-harness-issue-flow/references/replan.md).
|
|
30
|
+
- Owner decisions and seat authority (owner, 2026-11-09, #2008): the root `CLAUDE.md` and `AGENTS.md` hold the life-cycle rules and the owner list. The orchestrator triages intake, dispatches an owner-approved batch plan in order as module bundles, merges by rule 2 at every tier and runs at most two review rounds by rule 1. A seat that receives an owner decision in its pane posts it on the issue or PR; that comment authorizes the other seats. A seat message carries pointers, not content: it names the issue, the PR, the comment URL or the sha, and the content lives in GitHub. The message still wakes the receiving seat; it does not replace the record. The advisor sends the orchestrator only a mismatch between a seat report and the GitHub state, not a confirmation. A comment is a record: a local seat writes it, and a locally run command may read it as data; it never starts an action. A joint decision of the orchestrator and the advisor covers only scope growth on an open PR, a skipped required review row or an accepted I1/I2/I3 residual; the orchestrator posts it first as `Joint decision (orchestrator + advisor)` with the reason. Every other call is the orchestrator's. The advisor makes no GitHub write. A "stop" or "no" comment from any participant, the owner account included, is a reference that the orchestrator weighs; a stop on an I1/I2 item goes to the owner.
|
|
31
|
+
- One bundle PR has one pane and one worker agent. Each further worker gets its own pane, as the right split of a tab that is not full or in a new tab. The worker may use the agent-fleet sub-agents (`agents/fleet/`) inside its own pane.
|
|
32
32
|
- Recommended models for a Claude-only setup: the orchestrator runs Opus at high effort, and the advisor runs Fable at high effort. This is a recommendation, not a requirement. No seat requires a specific model (issue-flow D7).
|
|
33
33
|
- Cleanup: after a PR merges, the orchestrator runs `rh board closeout --pr <n>` in the primary checkout. It first proves the merge and the worktree: merge commit in the fetched `origin/main`, PR head worktree at the PR head sha, not locked, clean, and no owner marker but its own. A missing proof stops before any pane closes. It then closes each seat terminal bound to the PR (its `pr` label, or the `issue` label of a closing issue in this repository, or a cwd in the PR head worktree on the PR head branch when the seat has an `issue` label that the PR body names after `Refs`; a cwd in the primary checkout never binds; a binding without the PR's `pr` label next to another PR's `pr` label is a conflict) whose checkout belongs to this repository, is clean and has no commit outside `origin/<branch>`. When every bound pane is closed and no process runs in the worktree, it removes the worktree and the local branch through the exact closeout path of `rh worktrees cleanup`, which drops only the worktree's own active-worktree marker. The same pass removes each finished seat terminal of the repository whose cwd directory is gone, also one that no merge binds, and lists it in `stale_terminals`; a failed `hc rm` there is listed as `kept` and keeps no worktree. A dirty, unpushed, conflicting, locked, other-owner or unmerged pane or worktree stays; the JSON names the reason, and the board rule A9 reports each live seat of a merged PR. The remote branch is left to GitHub.
|
|
34
34
|
- Before a worker reports DONE, it stops the background programs it started (a dev server, a daemon started with `nohup` or `setsid`). On Linux and macOS, herdr-core 0.1.19 keeps a deliberately detached program running after its terminal closes, and Windows ends it.
|
|
35
35
|
|
|
36
36
|
### Runtime commands
|
|
37
37
|
|
|
38
|
-
Use `hc` for terminals and `herdr-app do` for
|
|
38
|
+
Start a worker or reviewer seat with `rh seats launch <seat> --cwd <path> --task <text>`, `rh board dispatch` or `rh board review`; each opens a Herdr.app tab. Use `hc` for terminals and `herdr-app do` for a further pane in an open tab. In an hc terminal, `HC_TERMINAL_ID` is your address. `hc --help`, `herdr-app commands` and `rh seats launch --help` are the syntax authority.
|
|
39
39
|
|
|
40
40
|
Find every live seat of the repository with `rh board seats --json`, including seats without a parent issue. Wait with `hc wait <t>` or follow `hc events`. Never use `sleep` loops to wait for seats.
|
|
41
41
|
|
|
@@ -43,10 +43,12 @@ Commands for the topology steps:
|
|
|
43
43
|
|
|
44
44
|
| Step | Command |
|
|
45
45
|
|---|---|
|
|
46
|
-
| Start the orchestrator | `
|
|
47
|
-
|
|
|
46
|
+
| Start the orchestrator | `rh seats launch orchestrator --repository-id <repository-id> --cwd <repository> --task <brief>` |
|
|
47
|
+
| Dispatch a plan | `rh board dispatch --parent <n> --space <id>` |
|
|
48
|
+
| Start one worker | `rh seats launch worker --repository-id <repository-id> --parent <n> --issue <n> --cwd <worktree> --task <packet>` |
|
|
49
|
+
| Start a reviewer | `rh board review --parent <n> --space <id>`, or `rh seats launch reviewer --repository-id <repository-id> --pr <n> --cwd <worktree> --task <brief>` for one pull request |
|
|
48
50
|
| Start the advisor | `herdr-app do pane.split --direction right --pane <orchestrator pane> --argv "$(rh seats argv advisor --repository-id <repository-id>)"` |
|
|
49
|
-
| Second worker in
|
|
51
|
+
| Second worker in an open tab | `herdr-app do pane.split --direction right --pane <pane> --argv "$(rh seats argv worker --repository-id <repository-id> --parent <n> --issue <n>)"` |
|
|
50
52
|
| Message a worker | `hc send <t> <comment URL>` |
|
|
51
53
|
| Read a worker | `hc read <t>` |
|
|
52
54
|
| Wait for a worker | `hc wait <t>` |
|
|
@@ -56,19 +58,19 @@ The board of a parent selects a worker, gatekeeper or reviewer seat by its `issu
|
|
|
56
58
|
|
|
57
59
|
A Codex worker seat in a linked contract worktree edits files and runs checks only. It runs no `git fetch`, `git commit` or `git push`. Its last message gives the commit subject and body, the PR title and body, and the check results. The orchestrator commits the worktree diff with that message and explicit paths only, pushes the branch and opens the PR. The orchestrator is the head owner of record and pushes each fix round; no other agent pushes to that PR. The Codex seat remains the content author and answers review threads through the orchestrator. A seat with the `net` tool group can use the network. A writable Codex seat with `net` can reach loopback services, including the Operator console and herdr-core socket (#1961).
|
|
58
60
|
|
|
59
|
-
`rh seats argv <seat>` prints
|
|
61
|
+
`rh seats argv <seat>` prints arguments only: it starts no process and opens no tab. The argv comes from the `seats` section of `~/.repo-harness/config.json`, or from the seat defaults when the section is absent. The argv holds the model, the effort, the tool limits and the seat brief. Its stderr names the source and each limit. A limit marked `instructions_only` is written into the launch instructions only; the host does not enforce it. `rh seats launch` opens this argv in a Herdr.app tab; the `--argv` of `herdr-app do tab.new` and `pane.split` takes it too. Without `--argv`, the pane opens a shell.
|
|
60
62
|
|
|
61
|
-
Before each dispatch wave, run `rh quota`. Launch each task with `rh seats
|
|
63
|
+
Before each dispatch wave, run `rh quota`. Launch each task with `rh seats launch <seat> --cwd <worktree> --task <packet>` on the seat that its route line names. State the task boundary in the packet. `--json` keeps the account report unchanged.
|
|
62
64
|
|
|
63
65
|
| Seat | Default runtime, model and effort |
|
|
64
66
|
|---|---|
|
|
65
67
|
| `worker` | Codex, `gpt-6.1-terra`, high |
|
|
66
|
-
| `worker-deep` | Codex, `gpt-6.
|
|
68
|
+
| `worker-deep` | Codex, `gpt-6.2-sol`, high |
|
|
67
69
|
| `worker-important` | Claude, `opus`, medium |
|
|
68
70
|
| `worker-important-fast` | Claude, `sonnet`, medium |
|
|
69
71
|
| `worker-light` | Pi, `magpie/cursor/deepseek-v41-flash-1017`, no effort and no account; worker tool groups; no fleet. A Pi seat on `magpie/codex/<model>` ("pi-gpt") is a user-selected alternative to a Codex seat: it runs the same GPT models, takes an effort (`--thinking`) and counts against the `chatgpt` account |
|
|
70
72
|
| `gatekeeper` | Codex, `gpt-6.1-terra`, high; read, shell and network |
|
|
71
|
-
| `gatekeeper-deep` | Codex, `gpt-6.
|
|
73
|
+
| `gatekeeper-deep` | Codex, `gpt-6.2-sol`, high; read, shell and network, no fleet. An optional second Codex review row on a different model than `gatekeeper`; the board review plan does not start it |
|
|
72
74
|
| `gatekeeper-fallback` | `null` (not configured); when configured, the gatekeeper ranges: read, shell and network, no fleet |
|
|
73
75
|
| `reviewer` | Claude, `opus`, high; read, shell and network |
|
|
74
76
|
|
|
@@ -80,11 +82,11 @@ On Pi, review seats pass `--exclude-tools edit,write`. Direct edit/write tools a
|
|
|
80
82
|
|
|
81
83
|
`seats.routing` holds ordered lists for `important_deep`, `important_fast`, `simple_deep`, `simple_fast` and `frontend`. Lists are non-empty and distinct. The first four accept configured worker seats only; a list cannot name a null seat. `frontend` accepts only `worker-important` and `worker-important-fast`, and both must run Claude when selected in that list. Defaults are `[worker-important, worker-deep]`, `[worker-important-fast, worker]`, `[worker-deep, worker-important]`, `[worker]` and `[worker-important, worker-important-fast]`, in that order. `worker-light` defaults to the Pi seat above. A stored `null` stays null during migration; its argv returns `seat_not_configured`. Each configured seat must use an enabled runtime when saved. The default Pi seat prevents a Seats page save until Pi is enabled or `worker-light` is set to `null`.
|
|
82
84
|
|
|
83
|
-
Routing selects the first eligible seat with a known account state, or a Pi seat without an account (the DeepSeek `worker-light`). A Pi seat on `magpie/codex/` has the `chatgpt` account. It selects an unknown account only when no such seat is eligible. A window at or above `routing.exhausted_at_or_above_used` percent used (default 95, range 50–100) is `exhausted`; a provider-reported `rate_limit_reached_type` is exhausted at any value. Exhausted accounts are excluded. The one exception is `routing.codex_credit_mode` (`off`, `review` or `all`; default `off`): while the ChatGPT account is exhausted and reports credits at or above `routing.codex_credit_floor` (default 0), `review` admits the gatekeeper, the gatekeeper fallback and a ChatGPT-bound reviewer (not `gatekeeper-deep`), and `all` admits every ChatGPT-bound seat. Their route and seat lines say `on credits`; the `chatgpt` account line stays `exhausted`. Only the owner sets `codex_credit_mode`, on the console Seats page; a seat does not write it, and a joint decision does not cover it. Claude in saving mode or exhausted stays reserved for the advisor and orchestrator. An important non-frontend route that holds a Claude-account seat then uses a configured Pi `worker-light`; a null or non-Pi `worker-light` gives a `none` route. An important route without a Claude-account seat is read as stored. Frontend waits for Claude. `rh seats
|
|
85
|
+
Routing selects the first eligible seat with a known account state, or a Pi seat without an account (the DeepSeek `worker-light`). A Pi seat on `magpie/codex/` has the `chatgpt` account. It selects an unknown account only when no such seat is eligible. A window at or above `routing.exhausted_at_or_above_used` percent used (default 95, range 50–100) is `exhausted`; a provider-reported `rate_limit_reached_type` is exhausted at any value. Exhausted accounts are excluded. The one exception is `routing.codex_credit_mode` (`off`, `review` or `all`; default `off`): while the ChatGPT account is exhausted and reports credits at or above `routing.codex_credit_floor` (default 0), `review` admits the gatekeeper, the gatekeeper fallback and a ChatGPT-bound reviewer (not `gatekeeper-deep`), and `all` admits every ChatGPT-bound seat. Their route and seat lines say `on credits`; the `chatgpt` account line stays `exhausted`. Only the owner sets `codex_credit_mode`, on the console Seats page; a seat does not write it, and a joint decision does not cover it. Claude in saving mode or exhausted stays reserved for the advisor and orchestrator. An important non-frontend route that holds a Claude-account seat then uses a configured Pi `worker-light`; a null or non-Pi `worker-light` gives a `none` route. An important route without a Claude-account seat is read as stored. Frontend waits for Claude. `rh seats launch <seat> --repository-id <id> --owner-exception <url>` lifts the Claude reservation refusal (`seat_quota_reserved`) for one launch. The URL must name an owner decision on an issue or PR of the checkout's origin repository; the seat label `repo-harness.owner-exception` and the `--json` launch record keep it. The exception changes no model, tool or permission, does not lift an exhausted account, and a launch that is not reserved refuses it. `routing.unavailable_pi_providers` (default empty) lists Pi model prefixes that the owner marks unavailable, for example `magpie/anthropic`. A prefix matches a seat model only at a `/` boundary. While the list is non-empty, a Pi seat with a null model is unavailable too, because Pi then picks its own default provider. Routing skips each unavailable seat, the route, gatekeeper, reviewer and advisor lines of `rh quota` give the reason, and its launch refuses with `seat_provider_unavailable`. For a null model the reason says to give the seat an explicit model or to empty the list. `tight` is a display state only. When Claude is reserved, the explorer line uses `routing.low_quota_explorer` (default `haiku` high). Pass its model when you call the explorer. Otherwise the line says `default`.
|
|
84
86
|
|
|
85
87
|
`routing.claude_saving_below_remaining` defaults to 20. Claude saving mode applies when weekly remaining quota is below that percent. `routing.claude_hyper_at_or_above_remaining` defaults to 50. Claude hyper mode applies when weekly remaining quota is at or above that percent and saving does not apply; otherwise its mode is normal. Only in Claude hyper does the advisor take its config entry; in normal, saving, exhausted and unknown it uses `opus` high, and the `advisor:` line of `rh quota` names it. Claude hyper routes workers as normal and does not change the orchestrator entry. Codex seats and Pi seats on `magpie/codex/` keep their configured model and effort at every quota level. A Codex or Pi advisor keeps its own configured model and effort too. A missing weekly reading gives an unknown mode. Quota modes are derived, never stored; the credit mode is the one stored owner choice. Reserved Claude advisor and orchestrator seats use `opus` high. Other Pi seats, tools, fleet and class lists stay as configured. An absent seats section uses defaults. Run `rh update` for the one-shot migration of stored sections. The decoder refuses old keys before and after migration; a POST writes the full section.
|
|
86
88
|
|
|
87
|
-
With `--repository-id`, the argv labels its own terminal before the agent starts: it runs `rh seats label`, which sets the seat labels on `HC_TERMINAL_ID`, and then starts the agent. The board finds seats only by these labels; a terminal without them leaves the execution axis `unavailable` (`no_seat_terminals`). When the label fails, the agent does not start and the terminal shows the error. Each start prints the new `terminal`. `<repository-id>` is the GitHub numeric repository id (`gh api repos/<owner>/<repo> --jq .id`). Leave out `--issue` and `--pr` for the orchestrator and the advisor.
|
|
89
|
+
`rh seats launch` takes the space from `--space` or from the `herdr.space` label of the calling terminal, opens the argv in a `tab.new` of that space, and fails closed when Herdr.app opens no tab; `--json` prints the launch, the space and the placement. With `--repository-id`, the argv labels its own terminal before the agent starts: it runs `rh seats label`, which sets the seat labels on `HC_TERMINAL_ID`, and then starts the agent. The board finds seats only by these labels; a terminal without them leaves the execution axis `unavailable` (`no_seat_terminals`). When the label fails, the agent does not start and the terminal shows the error. Each start prints the new `terminal`. `<repository-id>` is the GitHub numeric repository id (`gh api repos/<owner>/<repo> --jq .id`). Leave out `--issue` and `--pr` for the orchestrator and the advisor.
|
|
88
90
|
|
|
89
91
|
### Seat reset
|
|
90
92
|
|
|
@@ -101,7 +103,7 @@ Protocol rules. The reset runs with no human step; an owner command is never par
|
|
|
101
103
|
- The peer sends no other message to the requester from `RESET-REQUEST` until `RESUMED`.
|
|
102
104
|
- Handoff check fails: the peer asks for a rewrite, at most 3 times. Then no reset: the seat continues, and Claude Code auto-compaction handles its context.
|
|
103
105
|
- Peer seat missing or not answering: no reset, same as above.
|
|
104
|
-
- No new-session signal after `/clear`: `/clear` is typed again. No signal after `/compact`: no second `/compact`; one log entry and one notice, the seat continues, and auto-compaction stays as the net. No answer to the resume prompt (no `RESUMED` send): the prompt is sent again. One attempt and at most 3 retries in total, then the other seat starts the requester again in the same terminal from `rh seats argv <seat> --repository-id <id
|
|
106
|
+
- No new-session signal after `/clear`: `/clear` is typed again. No signal after `/compact`: no second `/compact`; one log entry and one notice, the seat continues, and auto-compaction stays as the net. No answer to the resume prompt (no `RESUMED` send): the prompt is sent again. One attempt and at most 3 retries in total, then the other seat starts the requester again in the same terminal from its argv (`rh seats argv <seat> --repository-id <id>`, not `rh seats launch`, which opens a new tab) and sends the resume prompt with the git and gh check. The restart is a new process with no compaction summary.
|
|
105
107
|
- Mode change (#2633): `/clear` and `/compact` keep the model, so for the action `reset` the command first computes the effective model and effort of the requester under the current quota. When they differ from the `session.json` record, it starts the requester again from its seat argv (`/exit`, then the relaunch line) and types no `/clear`; the result has `relaunched: true` and the log entry has the detail `restarted`. When they are equal, or the record has no model, it types `/clear`. A launch that cannot be built, or a launch under an unknown quota mode (a missing, unreadable or stale weekly reading), gives one `model_check_failed` log entry and one notice, and the command types `/clear`: a missing reading is no authority to move a running seat. A new `seats argv` launch still takes the unknown-mode model. The action `compact` never restarts. The restart comes only inside this reset, after the handoff, so the seat finishes its planning and dispatch first. No `/model` or effort command is typed into a running session.
|
|
106
108
|
- Each of these failures writes one entry to a reset log next to the handoff and sends one notice. The flow does not wait for anyone to read it.
|
|
107
109
|
|
|
@@ -111,7 +113,7 @@ Protocol rules. The reset runs with no human step; an owner command is never par
|
|
|
111
113
|
|
|
112
114
|
With `--repository-id`, `seats argv` also prints the pane name (`name`) and the base tab name (`tab`). Do not type a name.
|
|
113
115
|
|
|
114
|
-
`herdr-app do tab.new` and `pane.split` set no terminal name: the `--name` of `tab.new` is the tab name, and `pane.split` takes no name. So a seat terminal started by the launch rows has no hc name. Only a Claude seat carries the pane name, as its session name (`-n`) in the argv. A Codex seat has no session-name flag and carries no name. Find a seat terminal with `rh board seats --json`, which reads its labels.
|
|
116
|
+
`herdr-app do tab.new` and `pane.split` set no terminal name: the `--name` of `tab.new` is the tab name, and `pane.split` takes no name. `rh seats launch` passes the base tab name as that `--name`. So a seat terminal started by the launch rows has no hc name. Only a Claude seat carries the pane name, as its session name (`-n`) in the argv. A Codex seat has no session-name flag and carries no name. Find a seat terminal with `rh board seats --json`, which reads its labels.
|
|
115
117
|
|
|
116
118
|
The pane name is `<prefix>-<role>[-<item>][-<qualifier>]`: at most 32 characters of `a-z 0-9 -`. Examples: `rh-orch`, `rh-adv`, `rh-w-1508`, `rh-w-rel0252`, `rh-rv-1536-codex`, `aip-w-485-device`.
|
|
117
119
|
|
|
@@ -209,8 +209,8 @@ Safety hook guards:
|
|
|
209
209
|
host agent's own memory and plan directories (Claude
|
|
210
210
|
`~/.claude/projects/*/memory` and `~/.claude/plans`, Codex
|
|
211
211
|
`~/.codex/memories`; the rest of `~/.claude`, `~/.codex` and `~/.pi` stays
|
|
212
|
-
protected), and the
|
|
213
|
-
file, or a directory tree above it
|
|
212
|
+
protected), and the host-config ledger (`~/.repo-harness/config/ledger.json`) has no `created`
|
|
213
|
+
path record of the file, or of a directory tree above it. A create or an append
|
|
214
214
|
passes everywhere. A removal (`rm`, `unlink`, `shred`, `truncate`, each `mv`
|
|
215
215
|
operand, `sed -i`, `find -delete`) whose target is not known before the
|
|
216
216
|
command runs is refused; an overwrite with an unknown target passes. A
|
|
@@ -79,6 +79,12 @@ failure.
|
|
|
79
79
|
Not found: run `bash scripts/release-owner-steps.sh notes <version> > /tmp/repo-harness-wt-release-<version>.notes.md && gh release create v<version> --verify-tag --title "repo-harness <version>" --notes-file /tmp/repo-harness-wt-release-<version>.notes.md`.
|
|
80
80
|
Found: skip; step 7 checks it.
|
|
81
81
|
7. `bash scripts/release-owner-steps.sh check tagged <version>`
|
|
82
|
+
8. Rebuild the released managed values: `bun scripts/check-released-managed-values.ts --write`.
|
|
83
|
+
The command reads the release tags and writes
|
|
84
|
+
`assets/released-managed-values.v1.json`; it pushes nothing. Put the rebuilt
|
|
85
|
+
file in one Low PR (like PR #3014) and merge that PR: until it lands, every
|
|
86
|
+
other PR fails the `released managed values` check. The check rebuilds the
|
|
87
|
+
list from the release tags, so main fails until the file is updated.
|
|
82
88
|
|
|
83
89
|
`wait` polls `npm view <name>@<version> version` every 10 s for 15 minutes. A
|
|
84
90
|
wait that ends without the version fails with the package name. Inside steps 3
|
|
@@ -88,10 +94,9 @@ later; do not publish again. The settle above is the other case.
|
|
|
88
94
|
`bash scripts/release-owner-steps.sh plan <version>` is a read-only preflight:
|
|
89
95
|
it runs the guard checks for a version and prints the release commit, this
|
|
90
96
|
command list and the host post-release steps. After step 7 passes, the tag and
|
|
91
|
-
the GitHub Release exist.
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
updated. The projection PR (`archctx/projection`) merges by rule 3 on green CI.
|
|
97
|
+
the GitHub Release exist, and step 8 reads them. Step 8 is a release follow-up,
|
|
98
|
+
not a post-release step. The projection PR (`archctx/projection`) merges by
|
|
99
|
+
rule 3 on green CI.
|
|
95
100
|
|
|
96
101
|
The orchestrator and the advisor decide together on the host post-release steps:
|
|
97
102
|
`rh update` on the owner host, the Upgrade steps of the release
|