repo-harness 0.36.1 → 0.37.1
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 +2 -2
- package/assets/reference-configs/external-tooling.md +62 -53
- package/assets/reference-configs/global-working-rules.md +3 -3
- package/assets/reference-configs/herdr-notify.md +19 -23
- package/assets/reference-configs/hook-operations.md +13 -9
- package/assets/released-managed-values.v1.json +5 -1
- package/assets/skill-commands/manifest.json +48 -24
- package/assets/skill-commands/repo-harness-architecture/references/worker.md +16 -14
- package/assets/skill-commands/repo-harness-check/references/architecture-evidence.md +29 -35
- package/assets/skill-commands/repo-harness-ship/references/worker.md +1 -2
- package/assets/skill-version.json +2 -2
- package/assets/skills/repo-harness-advisor/SKILL.md +14 -10
- package/assets/skills/repo-harness-issue-flow/SKILL.md +9 -11
- package/assets/skills/repo-harness-issue-flow/references/acceptor.md +65 -41
- package/assets/skills/repo-harness-issue-flow/references/advisor.md +32 -22
- package/assets/skills/repo-harness-issue-flow/references/orchestrator.md +57 -25
- package/assets/skills/repo-harness-issue-flow/references/replan.md +6 -2
- package/assets/skills/repo-harness-issue-flow/references/templates.md +38 -3
- package/assets/skills/repo-harness-issue-flow/references/worker.md +16 -8
- package/assets/skills/repo-harness-seat-handoff/SKILL.md +3 -4
- package/assets/templates/helpers/capability-resolver.ts +3 -25
- package/assets/templates/runtime.gitignore +4 -0
- package/dist/hook-entry.js +8564 -1716
- package/dist/oar-review-host.js +46 -17
- package/package.json +4 -4
- package/scripts/axr5-archctx-clean-room.ts +148 -43
- package/scripts/check-cli-manifest.ts +1 -1
- package/scripts/check-managed-runtime.ts +1 -1
- package/scripts/check-protected-paths.ts +38 -7
- package/scripts/check-tarball-install-smoke.sh +89 -0
- package/scripts/contract-worktree-runtime.ts +0 -16
- package/scripts/contract-worktree.sh +3 -18
- package/scripts/lib/axr5-clean-room-runtime.ts +13 -43
- package/scripts/run-skill-routing-eval.ts +4 -3
- package/scripts/select-test-suite.ts +3 -0
- package/src/cli/candidate-runtime-reconciliation.ts +14 -11
- package/src/cli/commands/architecture-setup.ts +1 -18
- package/src/cli/commands/board.ts +27 -12
- package/src/cli/commands/candidate-reconciliation.ts +1 -0
- package/src/cli/commands/doctor.ts +21 -1
- package/src/cli/commands/global-runtime.ts +113 -64
- package/src/cli/commands/herdr-skill.ts +10 -5
- package/src/cli/commands/install.ts +8 -4
- package/src/cli/commands/operator-actions.ts +13 -4
- package/src/cli/commands/refactor-actions.ts +58 -45
- package/src/cli/commands/refactor.ts +346 -122
- package/src/cli/commands/seats.ts +190 -64
- package/src/cli/commands/security.ts +39 -16
- package/src/cli/commands/setup-check.ts +23 -1
- package/src/cli/commands/setup-snapshot.ts +19 -8
- package/src/cli/commands/status.ts +56 -1
- package/src/cli/commands/strategy-actions.ts +2 -1
- package/src/cli/commands/strategy.ts +1 -1
- package/src/cli/hook/agent-notice.ts +25 -5
- package/src/cli/hook/handler-registry.ts +19 -1
- package/src/cli/hook/host-adapter.ts +63 -19
- package/src/cli/hook/mutation-guard.ts +14 -13
- package/src/cli/hook/question-guard.ts +28 -0
- package/src/cli/hook/route-registry.ts +10 -1
- package/src/cli/hook/safety-hook.ts +5 -3
- package/src/cli/hook/stop-handler.ts +13 -58
- package/src/cli/index.ts +114 -23
- package/src/cli/installer/install-profile.ts +32 -16
- package/src/cli/installer/json-config-migration.ts +1 -1
- package/src/cli/installer/managed-entries.ts +4 -1
- package/src/cli/installer/targets/antigravity.ts +83 -46
- package/src/cli/installer/types.ts +3 -0
- package/src/cli/installer/uninstall.ts +20 -12
- package/src/cli/runtime-transaction.ts +27 -28
- package/src/cli/tools/codegraph.ts +201 -55
- package/src/core/architecture/contracts.ts +3 -25
- package/src/core/architecture/projection.ts +36 -31
- package/src/core/board/attention-delivery.ts +69 -21
- package/src/core/board/attention.ts +55 -10
- package/src/core/board/board.ts +22 -9
- package/src/core/board/dispatch.ts +7 -2
- package/src/core/board/model-catalog.ts +26 -6
- package/src/core/board/planner-consult.ts +2 -1
- package/src/core/board/protocol-comments.ts +29 -4
- package/src/core/board/recommended-models.ts +9 -4
- package/src/core/board/review-rules.ts +6 -3
- package/src/core/board/review.ts +45 -16
- package/src/core/board/seat-launch.ts +113 -38
- package/src/core/board/seat-reset.ts +46 -20
- package/src/core/board/seat-routing.ts +8 -4
- package/src/core/board/seats-settings.ts +71 -13
- package/src/core/operator/architecture-map-model.ts +3 -3
- package/src/core/operator/architecture.ts +3 -3
- package/src/core/refactor/provider-contract.ts +323 -96
- package/src/core/review/finding-severity.ts +20 -8
- package/src/core/review/generic-review.ts +3 -3
- package/src/core/review/review-publish.ts +83 -32
- package/src/core/setup/projection.ts +7 -5
- package/src/core/setup/types.ts +1 -1
- package/src/core/skill-surface/catalog.ts +3 -2
- package/src/core/terminal/herdr-core-pin.json +11 -11
- package/src/effects/architecture/archctx-provider.ts +1188 -164
- package/src/effects/architecture/projection-apply.ts +3 -18
- package/src/effects/architecture/providers.ts +1 -2
- package/src/effects/board/agy-catalog-thread.ts +7 -0
- package/src/effects/board/agy-review-session.ts +86 -0
- package/src/effects/board/antigravity-transcript.ts +58 -0
- package/src/effects/board/attention-watch.ts +132 -18
- package/src/effects/board/closeout.ts +7 -19
- package/src/effects/board/collect.ts +9 -9
- package/src/effects/board/dispatch.ts +2 -1
- package/src/effects/board/quota.ts +16 -9
- package/src/effects/board/review.ts +43 -9
- package/src/effects/board/seat-reset-store.ts +143 -51
- package/src/effects/board/seat-reset.ts +216 -131
- package/src/effects/board/seats-configuration.ts +151 -45
- package/src/effects/host-config/gate.ts +153 -30
- package/src/effects/host-config/store.ts +4 -1
- package/src/effects/operator/architecture-map-worker.ts +11 -3
- package/src/effects/operator/architecture.ts +1 -1
- package/src/effects/operator/seats-settings-route.ts +7 -4
- package/src/effects/operator/server.ts +1 -1
- package/src/effects/process-group-launcher.ts +38 -28
- package/src/effects/process-runner.ts +18 -1
- package/src/effects/process-supervisor.ts +15 -1
- package/src/effects/refactor/archctx-provider.ts +379 -126
- package/src/effects/refactor/recommendations.ts +84 -174
- package/src/effects/review/review-collect.ts +158 -19
- package/src/effects/setup/agent-runtime-probe.ts +4 -1
- package/src/effects/strategy/skill.ts +50 -5
- package/src/effects/terminal/herdr-core.ts +2 -1
- package/src/effects/terminal/task-runtime-observation.ts +1 -1
- package/src/pi/extension.ts +30 -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 review grades only the lines that the PR changes and has at most two rounds. Round 2
|
|
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 is a fix check under the skill's acceptor reference §2.2. A round-1 `PASS` row carries forward while the fix stays inside the failing reviewer's files. A fix outside those files takes a delta check. Only a P0 or a P1 finding makes a `FAIL` record. Fail the PR only for a defect that ordinary use or one accident reaches at this head. A P0 or a P1 needs a trigger: the command or input, in a default environment, that reaches the defect. A trigger can be several steps in order. Documented commands, options and settings are ordinary use. A process that ends normally and the state that earlier ordinary use left are also ordinary use. Untrusted input that the tool reads in ordinary use (repository content, PR and issue text, tool output) is ordinary use. A trigger that needs an undocumented override, hand-edited tool state, a second independent fault, or an adversary who already runs as the user (race, alias, shell trick) is not ordinary use, also on an I1 or I2 path. A client-side cache timing window, an unrequested defensive fallback and a duplicate JSON key are P3 notes. A real defect that has no such trigger, or that has a small effect and an easy recovery, is a P2. When the trigger leaks a credential (I1) or deletes or overwrites a user file without authorization (I2), rate the finding 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 review grades only the lines that the PR changes and has at most two rounds. Round 2
|
|
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 is a fix check under the skill's acceptor reference §2.2. A round-1 `PASS` row carries forward while the fix stays inside the failing reviewer's files. A fix outside those files takes a delta check. Only a P0 or a P1 finding makes a `FAIL` record. Fail the PR only for a defect that ordinary use or one accident reaches at this head. A P0 or a P1 needs a trigger: the command or input, in a default environment, that reaches the defect. A trigger can be several steps in order. Documented commands, options and settings are ordinary use. A process that ends normally and the state that earlier ordinary use left are also ordinary use. Untrusted input that the tool reads in ordinary use (repository content, PR and issue text, tool output) is ordinary use. A trigger that needs an undocumented override, hand-edited tool state, a second independent fault, or an adversary who already runs as the user (race, alias, shell trick) is not ordinary use, also on an I1 or I2 path. A client-side cache timing window, an unrequested defensive fallback and a duplicate JSON key are P3 notes. A real defect that has no such trigger, or that has a small effect and an easy recovery, is a P2. When the trigger leaks a credential (I1) or deletes or overwrites a user file without authorization (I2), rate the finding 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.37.1` · workflow stamp `repo-harness@0.37.1+template@0.37.1`
|
|
335
335
|
- History: [`docs/CHANGELOG.md`](docs/CHANGELOG.md)
|
|
336
336
|
- License: MIT — see [`LICENSE`](LICENSE)
|
|
@@ -163,7 +163,7 @@ The board rule R5 reads only the rows with `path_visible: true`: a changed path
|
|
|
163
163
|
| 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` |
|
|
164
164
|
<!-- review-high-list:list:end -->
|
|
165
165
|
|
|
166
|
-
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.
|
|
166
|
+
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. The second High review covers I1, I2 and configured I3 paths (server-side auth, row-level security, entitlement or release SQL paths that the repository's policy names). The two High reviews start in parallel on the same head. 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.
|
|
167
167
|
|
|
168
168
|
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.
|
|
169
169
|
|
|
@@ -173,7 +173,7 @@ Rules for every tier:
|
|
|
173
173
|
- 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.
|
|
174
174
|
- 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)).
|
|
175
175
|
- When an independent review ran, the PR description lists each finding with its disposition: fixed, or closed with the reason.
|
|
176
|
-
- The security bar is I1 (no user key, token or credential leaks) and I2 (no deletion or overwrite of a user file without authorization).
|
|
176
|
+
- The security bar is I1 (no user key, token or credential leaks) and I2 (no deletion or overwrite of a user file without authorization). Fail the PR only for a defect that ordinary use or one accident reaches at this head. A P0 or a P1 needs a trigger: the command or input, in a default environment, that reaches the defect. A trigger can be several steps in order. Documented commands, options and settings are ordinary use. A process that ends normally and the state that earlier ordinary use left are also ordinary use. Untrusted input that the tool reads in ordinary use (repository content, PR and issue text, tool output) is ordinary use. A trigger that needs an undocumented override, hand-edited tool state, a second independent fault, or an adversary who already runs as the user (race, alias, shell trick) is not ordinary use, also on an I1 or I2 path. A client-side cache timing window, an unrequested defensive fallback and a duplicate JSON key are P3 notes. A real defect that has no such trigger, or that has a small effect and an easy recovery, is a P2. When the trigger leaks a credential (I1) or deletes or overwrites a user file without authorization (I2), rate the finding at least P1.
|
|
177
177
|
- A low tier adds no review. A new test file or a rebase does not raise the tier.
|
|
178
178
|
- 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.
|
|
179
179
|
- 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.
|
|
@@ -1074,7 +1074,7 @@ never call the export. They take capability identity from the node id:
|
|
|
1074
1074
|
`capability.<domain>.<name>` gives `<domain>-<name>` and its module document.
|
|
1075
1075
|
Path ownership under `archcontext` comes only from the
|
|
1076
1076
|
package-local archctx `resolve --paths-from` command. One process resolves one batch of
|
|
1077
|
-
paths. It
|
|
1077
|
+
paths. It runs in-process and reads no CodeGraph index. The pre-edit hook,
|
|
1078
1078
|
Effective State, `rh capability resolve match` and `rh capability context` all use
|
|
1079
1079
|
this route. If archctx cannot run, Effective State reports the
|
|
1080
1080
|
`capability_ownership:unavailable` blocker. A model fault or an ownership fault
|
|
@@ -1224,7 +1224,7 @@ root. Inspect
|
|
|
1224
1224
|
another state dir reports an empty state. For initial setup, run `once`. If
|
|
1225
1225
|
the archctx result reports missing code facts, read `data.worktreePath` from
|
|
1226
1226
|
`status`, run `codegraph init -y <worktreePath>`, then run `once` again. Initialize only that
|
|
1227
|
-
writer-owned worktree. Do not
|
|
1227
|
+
writer-owned worktree. Do not index other workspaces.
|
|
1228
1228
|
Inspect facts again if archctx reports a stale index after the base moves; the
|
|
1229
1229
|
command does not invent a repair.
|
|
1230
1230
|
|
|
@@ -1320,33 +1320,26 @@ All delivery points share the id marker. Claude also gets a one-sentence
|
|
|
1320
1320
|
`systemMessage` from the same notice. Codex gets no human line.
|
|
1321
1321
|
|
|
1322
1322
|
Manual projection apply remains available for explicitly authorized adoption
|
|
1323
|
-
and repair. It is not a feature-PR freshness step. archctx
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
`
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
before running `daemon upgrade` through the same managed CLI and Node runtime.
|
|
1344
|
-
Explain that replacing a shared daemon interrupts other clients. After authorized
|
|
1345
|
-
replacement, verify daemon compatibility and inspect this repository's configured
|
|
1346
|
-
CodeGraph index. Request authorization to rebuild only when its authoritative
|
|
1347
|
-
status reports it missing or stale; verify readiness before retrying the blocked
|
|
1348
|
-
operation. CLI upgrade alone does not prove that an index needs rebuilding.
|
|
1349
|
-
Never delete the shared database or all repository indexes as recovery.
|
|
1323
|
+
and repair. It is not a feature-PR freshness step. `archctx@0.18.4` runs every
|
|
1324
|
+
command in-process with no background service and no projection replay.
|
|
1325
|
+
`rh arch projection apply --json` returns its result directly; verify zero drift
|
|
1326
|
+
with `rh arch projection check --json` (or `rh arch sync --check --json`).
|
|
1327
|
+
repo-harness keeps no second candidate, receipt or approval store.
|
|
1328
|
+
|
|
1329
|
+
Managed install and update verify the exact pinned `archctx` and
|
|
1330
|
+
`archctx-contracts` package versions, package-local CodeGraph, compatible Node
|
|
1331
|
+
runtime and `capabilities --json` handshake. ArchContext runs in-process, so
|
|
1332
|
+
install, update and worktree cleanup manage no background service.
|
|
1333
|
+
|
|
1334
|
+
Worktree CodeGraph bootstrap runs `rh arch index seed --timeout-ms <ms> --json`.
|
|
1335
|
+
In a primary checkout with an existing `.codegraph/codegraph.db`, it refreshes
|
|
1336
|
+
the shared base index without initializing a missing primary index. In a linked
|
|
1337
|
+
worktree, it seeds from that shared base and falls back to package-local
|
|
1338
|
+
CodeGraph init only when `index seed` returns `AC_CODE_FACTS_UNAVAILABLE`
|
|
1339
|
+
(`index-missing` or `index-base-building`) on an absent or empty `.codegraph`
|
|
1340
|
+
directory. An occupied, symlinked or `AC_CODE_FACTS_NOT_READY` `.codegraph`
|
|
1341
|
+
directory fails closed without overwriting files.
|
|
1342
|
+
|
|
1350
1343
|
The runtime snapshot excludes `.ai/harness/**`, so concurrent harness receipts
|
|
1351
1344
|
and traces cannot invalidate a provider snapshot.
|
|
1352
1345
|
|
|
@@ -1442,33 +1435,49 @@ semantics. The retired `archcontext-boundaries-v1` format is rejected.
|
|
|
1442
1435
|
|
|
1443
1436
|
## Refactor recommendations
|
|
1444
1437
|
|
|
1445
|
-
repo-harness supplies refactor evidence on demand
|
|
1438
|
+
repo-harness supplies pure-Git refactor evidence on demand through `archctx@0.18.4`
|
|
1439
|
+
in-process commands (`scan`, `decide`, `verify`). No hook scans for it and no
|
|
1446
1440
|
setting enables it. The Bot reads the evidence and decides whether to schedule
|
|
1447
|
-
work or ask the user. Incomplete
|
|
1448
|
-
`codegraph init` hint
|
|
1449
|
-
|
|
1441
|
+
work or ask the user. Incomplete import coverage returns `proof_required` with a
|
|
1442
|
+
`codegraph init` hint (or a `--import-node-limit` hint on
|
|
1443
|
+
`code-facts-import-limit`). The read commands never create an index, model, plan
|
|
1444
|
+
or code edit.
|
|
1450
1445
|
|
|
1451
|
-
Read evidence and
|
|
1446
|
+
Read evidence, record decisions and verify resolutions with:
|
|
1452
1447
|
|
|
1453
1448
|
```bash
|
|
1454
|
-
rh arch refactor recommendations [--
|
|
1455
|
-
rh arch refactor
|
|
1449
|
+
rh arch refactor recommendations [--import-node-limit <n>] [--timeout-ms <ms>] [--json]
|
|
1450
|
+
rh arch refactor list [--status <status>] [--import-node-limit <n>] [--timeout-ms <ms>] [--json]
|
|
1451
|
+
rh arch refactor show <recommendation-id> [--import-node-limit <n>] [--timeout-ms <ms>] [--json]
|
|
1452
|
+
rh arch refactor decide <recommendation-id> accept|defer|reject|acknowledge|waive --reason "<text>" [--kill-symbol <path#sym>...] [--kill-path <path>...] [--kill-relation <id>...] [--import-node-limit <n>] [--timeout-ms <ms>] [--json]
|
|
1453
|
+
rh arch refactor verify <recommendation-id> [--import-node-limit <n>] [--timeout-ms <ms>] [--json]
|
|
1454
|
+
rh arch refactor resolve <recommendation-id> --resolution-digest <sha256:...> --reason "<text>" [--import-node-limit <n>] [--timeout-ms <ms>] [--json]
|
|
1456
1455
|
```
|
|
1457
1456
|
|
|
1458
|
-
`recommendations`
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
same `--import-node-limit` to `decide`
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1457
|
+
`recommendations` returns `repo-harness.refactor-recommendations/v3` with
|
|
1458
|
+
`status` (`recommended`, `no_action`, `proof_required`, `unavailable`),
|
|
1459
|
+
`headSha`, `snapshotDigest`, `scope`, `coverage` (`imports`, `gitHistory`,
|
|
1460
|
+
`reasonCodes`), `findings` (each with `recommendationId`, `detector`, `severity`,
|
|
1461
|
+
`blocking`, `capabilityId`, `affectedNodeIds`, `affectedPaths`, `killList`,
|
|
1462
|
+
`metrics` and bounded `evidence` scalars) and `suppressed`.
|
|
1463
|
+
|
|
1464
|
+
`decide` writes one Git-tracked decision file at
|
|
1465
|
+
`.archcontext/refactor-decisions/<recommendation-id>.json` in one step
|
|
1466
|
+
(`--kill-symbol`, `--kill-path` and `--kill-relation` apply to `accept`). Keep
|
|
1467
|
+
`.archcontext/refactor-decisions/` unignored in `.gitignore` so every clone
|
|
1468
|
+
reads the same decisions. `list` and `show` inspect recorded decision files
|
|
1469
|
+
(`list`'s `openFindings` is best-effort; `recommendations` is the authoritative
|
|
1470
|
+
scan with coverage). Pass the same `--import-node-limit` to `decide`, `verify`
|
|
1471
|
+
and `resolve` when the scan used one.
|
|
1472
|
+
|
|
1473
|
+
`verify` is read-only: it checks `killListChecks` and `metricChecks`, prints
|
|
1474
|
+
`disposition`, `headSha`, `resolutionDigest`, `blockingReasons` and
|
|
1475
|
+
`historicalReceipt`, and exits 0 only when `disposition === "resolved"`.
|
|
1476
|
+
`resolve` requires `--resolution-digest <sha256:...>` from `verify` and updates
|
|
1477
|
+
`.archcontext/refactor-decisions/<recommendation-id>.json` to `resolved`.
|
|
1478
|
+
Because `verify` hashes live `headSha` into live `resolutionDigest`, committing
|
|
1479
|
+
the resolved decision file shifts subsequent live `resolutionDigest` while
|
|
1480
|
+
preserving the committed digest in `historicalReceipt.resolutionDigest`.
|
|
1481
|
+
repo-harness keeps no local delivery state; Git-tracked decision
|
|
1482
|
+
files and ArchContext own the recommendation lifecycle. Execution of an accepted
|
|
1483
|
+
finding uses the normal plan and pull request workflow.
|
|
@@ -27,9 +27,9 @@ Generality: These are general working rules. Do not tailor behavior to any speci
|
|
|
27
27
|
|
|
28
28
|
Before non-trivial design or edits, complete P1/P2/P3:
|
|
29
29
|
|
|
30
|
-
- **P1 — Map:**
|
|
31
|
-
- **P2 — Trace:** follow
|
|
32
|
-
- **P3 — Decide:**
|
|
30
|
+
- **P1 — Map:** read the code that the task touches before you design or edit; rely on observed code, not on filenames or reports.
|
|
31
|
+
- **P2 — Trace:** follow one concrete input to its output and locate the pressure point. Mandatory before a bug fix.
|
|
32
|
+
- **P3 — Decide:** choose the smallest coherent change that preserves the invariant; state what it gives up and what it does not handle.
|
|
33
33
|
|
|
34
34
|
## Code Optimization Principles
|
|
35
35
|
|
|
@@ -26,8 +26,8 @@ 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 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
|
|
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.
|
|
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. With `gh` in `seats.advisor.tools`, it may write to GitHub only with `gh issue comment`, `gh pr comment` (ending each comment with `Seat: advisor <hc address>`), and `gh issue create`; any owner decision it logs still reaches the orchestrator locally (a comment never starts an action). It does not commit, push, merge, close or reopen, label, edit issue or PR bodies, review, release, or send a message to a worker. 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. With `gh` granted, the advisor may post `gh issue comment`, `gh pr comment` (ending with `Seat: advisor <hc address>`) and `gh issue create`; an owner decision it logs still reaches the orchestrator locally, and it makes no other GitHub write and sends no message to a worker. 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
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 (ADR-0006): in a Magpie-First setup, `orchestrator` runs Claude `opus` high and `advisor` runs Pi `magpie/agy-cli/gemini-4-neon` xhigh; in a Native-First setup, `orchestrator` runs Claude `opus` high and `advisor` runs `agy` `gemini-4-neon-high` (or Claude `opus` high). No seat requires a single fixed vendor when configured otherwise.
|
|
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.
|
|
@@ -62,7 +62,7 @@ A native `codex` worker seat in a linked contract worktree edits files and runs
|
|
|
62
62
|
|
|
63
63
|
With `--repository-id`, the same argv starts both tabs and splits through an interactive login shell. The launcher adds its Bun directory and the directories where the caller found `rh` and `hc` to the end of the login shell’s `PATH`. The shell stays alive while `hc` tracks the agent and accepts commands after the agent exits.
|
|
64
64
|
|
|
65
|
-
Before each dispatch wave, run `rh quota`.
|
|
65
|
+
Before each dispatch wave, run `rh quota`. For a manual dispatch, check the route's candidates and their quota. When Opus and Neon are both eligible, normally choose the seat whose account has more weekly quota left. Launch with `rh seats launch <seat> --cwd <worktree> --task <packet>`. State the task boundary in the packet.
|
|
66
66
|
|
|
67
67
|
| Seat | Magpie-First default (runtime, model, effort, fleet) | Native-First default |
|
|
68
68
|
|---|---|---|
|
|
@@ -71,9 +71,10 @@ Before each dispatch wave, run `rh quota`. Launch each task with `rh seats launc
|
|
|
71
71
|
| `council` | L3 member pool `{claude:fable, pi:magpie/agy-cli/gemini-4-carbon, pi:magpie/codex/gpt-6.2-astra}`, read-only, `['explorer']`; opened via `rh seats council` | `{claude:fable, agy:gemini-4-carbon-high, codex:gpt-6.2-astra}` |
|
|
72
72
|
| `worker-opus` | Claude, `opus`, high; worker tools; `['explorer']` | Claude, `opus`, high |
|
|
73
73
|
| `worker-neon` | Pi, `magpie/agy-cli/gemini-4-neon`, high; worker tools; `['explorer']` | `agy`, `gemini-4-neon-high` (when enabled) |
|
|
74
|
+
| `worker-neon-deep` | Pi, `magpie/agy-cli/gemini-4-neon`, xhigh; worker tools; `['explorer']` | `agy`, `gemini-4-neon-xhigh` (when enabled) |
|
|
74
75
|
| `worker-deep` | Pi, `magpie/codex/gpt-6.2-sol`, high; worker tools; `['explorer']` | Codex, `gpt-6.2-sol`, high |
|
|
75
76
|
| `worker` | Pi, `magpie/codex/gpt-6.1-terra`, high; worker tools; `['explorer']` | Codex, `gpt-6.1-terra`, high |
|
|
76
|
-
| `worker-light` | Pi, `zai/glm-5.3-flash` (
|
|
77
|
+
| `worker-light` | Pi, `zai/glm-5.3-flash` (also `magpie/group/deepseek-v4.1-flash` and `magpie/zcode/GLM-5.4`), no effort; worker tools; `[]` | `agy`, `gemini-4-hydrogen` (or `null`) |
|
|
77
78
|
| `gatekeeper` | Pi, `magpie/codex/gpt-6.2-sol`, high; read, shell, network; `[]` | Codex, `gpt-6.2-sol`, high |
|
|
78
79
|
| `gatekeeper-fallback` | Pi, `zai/glm-5.3-flash` (or `null`); read, shell, network; `[]` | `null` (or `agy`, `gemini-4-hydrogen`) |
|
|
79
80
|
| `reviewer` | Claude, `opus`, high; read, shell, network; `[]` | Claude, `opus`, high |
|
|
@@ -84,35 +85,30 @@ All worker seats use worker briefs, labels and pane names. `gatekeeper` and `rev
|
|
|
84
85
|
|
|
85
86
|
On Pi, review seats pass `--exclude-tools edit,write`. Direct edit/write tools are off. The edit limit is `common_commands` because the shell stays available; shell writes remain prohibited by the brief. Codex review seats use the read-only sandbox.
|
|
86
87
|
|
|
87
|
-
`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 `worker-opus` and `worker-neon` when they run Claude or Neon (`magpie/agy-cli/gemini-4-neon` or `gemini-4-neon*`). Defaults are `[worker-opus, worker-neon, worker-deep]`, `[worker-opus, worker-neon, worker, worker-light]`, `[worker-neon, worker-deep]`, `[worker-light, worker]` and `[worker-opus, worker-neon]`, 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`.
|
|
88
|
+
`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 `worker-opus` and `worker-neon` when they run Claude or Neon (`magpie/agy-cli/gemini-4-neon` or `gemini-4-neon*`). Defaults are `[worker-opus, worker-neon-deep, worker-deep]`, `[worker-opus, worker-neon, worker, worker-light]`, `[worker-neon-deep, worker-deep]`, `[worker-light, worker]` and `[worker-opus, worker-neon]`, 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`.
|
|
88
89
|
|
|
89
|
-
Routing evaluates strictly left-to-right across the configured list after excluding reserved or exhausted accounts, selecting the first eligible seat with a known account state (or a Flash API seat without an account such as `zai/glm-5.3-flash` / `deepseek-v4.1-flash`). A Pi seat on `magpie/codex/` has the `chatgpt` account. Pi models with the `magpie/agy-cli/gemini-` prefix and native `agy` models with the `gemini-` prefix use the `agy_gemini` account. Routing selects an unknown account only when no known-state seat in the route 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 `gatekeeper`, `gatekeeper-fallback`, and a ChatGPT-bound `reviewer`, 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 `advisor` and `orchestrator`; routing skips `worker-opus` and selects the next eligible seat in the configured list. `routing.agy_saving_below_remaining` (default `25`, range `0..100`) reserves `agy_gemini` for `advisor` (`Neon`) by excluding
|
|
90
|
+
Routing evaluates strictly left-to-right across the configured list after excluding reserved or exhausted accounts, selecting the first eligible seat with a known account state (or a Flash API seat without an account such as `zai/glm-5.3-flash` / `deepseek-v4.1-flash`). A Pi seat on `magpie/codex/` has the `chatgpt` account. Pi models with the `magpie/agy-cli/gemini-` prefix and native `agy` models with the `gemini-` prefix use the `agy_gemini` account. Routing selects an unknown account only when no known-state seat in the route 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 `gatekeeper`, `gatekeeper-fallback`, and a ChatGPT-bound `reviewer`, 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 `advisor` and `orchestrator`; routing skips `worker-opus` and selects the next eligible seat in the configured list. `routing.agy_saving_below_remaining` (default `25`, range `0..100`) reserves `agy_gemini` for `advisor` (`Neon`) by excluding both Neon worker tiers when `agy_gemini` weekly remaining quota is below that threshold. Frontend waits for an eligible Claude or Neon seat in its own route. `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`.
|
|
90
91
|
|
|
91
|
-
`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 a Claude 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 advisor keeps its own configured model and effort too; a Pi advisor on `magpie/agy-cli/` uses its config entry at 50% or more `agy_gemini` weekly quota remaining and uses `magpie/agy-cli/gemini-4-neon` when the remaining quota is lower or unknown. 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 (`planner` → `council`, `worker-important` → `worker-opus`, `worker-important-fast` → `worker-neon`, `gatekeeper-deep` removed, `agy_saving_below_remaining` added).
|
|
92
|
+
`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 a Claude 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 advisor keeps its own configured model and effort too; a Pi advisor on `magpie/agy-cli/` uses its config entry at 50% or more `agy_gemini` weekly quota remaining and uses `magpie/agy-cli/gemini-4-neon` when the remaining quota is lower or unknown. 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 (`planner` → `council`, `worker-important` → `worker-opus`, `worker-important-fast` → `worker-neon`, `gatekeeper-deep` removed, `agy_saving_below_remaining` added). When the stored section lacks `worker-neon-deep`, `rh update` adds it as `null` and preserves the saved route lists. Turn on the seat in Settings > Seats and add it to the routes you want. The Settings save checks the complete section before it writes.
|
|
92
93
|
|
|
93
94
|
`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.
|
|
94
95
|
|
|
95
96
|
### Seat reset
|
|
96
97
|
|
|
97
|
-
Claude and
|
|
98
|
+
The Claude, Pi and Antigravity `orchestrator` and `advisor` seats can reset each other through a handoff (#1972, #3364, #3416, #3462). With `--repository-id`, `seats argv` sets `REPO_HARNESS_SEAT` and `REPO_HARNESS_SEAT_REPOSITORY` for these two seats. It also sets `REPO_HARNESS_SEAT_MODEL` and `REPO_HARNESS_SEAT_EFFORT` from the effective launch configuration (#2633). Each seat launch unsets these four inherited values before assigning its own. SessionStart uses this identity to record the host, source, transcript path, model and effort in `session.json`. Worker seats do not reset.
|
|
98
99
|
|
|
99
|
-
1.
|
|
100
|
-
2. The
|
|
101
|
-
3. The peer runs `rh seats reset <path> <sha256>` in the background
|
|
102
|
-
4. The requester
|
|
100
|
+
1. At 380,000 context tokens, the Stop hook asks for a handoff. Antigravity can repeat the reminder on a later turn while its request is open. A recorded `NO-RESET` release suppresses further reminders for that request. For Claude and Pi, a transcript below 32 MiB gives `compact`. A transcript at or above 32 MiB gives `reset`. Antigravity always uses `reset`. The hook records the timestamp, transcript path, byte count, action and host (`claude`, `pi` or `antigravity`) in `/tmp/repo-harness-seats/<repository-id>/<seat>/request.json`. A seat can also run `rh seats handoff` to record a request and print the steps.
|
|
101
|
+
2. The requester finishes its current planning and dispatch, then writes `handoff.md` next to the request using the required sections. Antigravity passes the completed Markdown on stdin to `rh seats handoff --write`. The command writes the handoff and prints `RESET-REQUEST <path> <sha256>` for the open request. The requester sends this line to the peer seat and ends its turn. When both seats request a reset, the advisor goes first.
|
|
102
|
+
3. The peer runs `rh seats reset <path> <sha256>` in the background. It locates the requester by the seat and repository labels. A missing, stale, damaged or incomplete handoff gives up to three `REWRITE` messages, then `NO-RESET`. An invalid request gives `NO-RESET` after the peer checks. A missing request gives `request_missing` and sends nothing.
|
|
103
|
+
4. The peer waits for the requester. The reset checks the live foreground using the basename of `hc get`'s `foreground.argv[0]` (`claude`, `pi` or `agy`). A live terminal with `status: null` gives `requester_status_untracked`. A finished terminal gives `requester_exited`. The peer claims the request with an exclusive create of `claim-<requested_at digits>` before it processes the handoff. It removes its claim when the run stops before any key attempt. Once it attempts keys, the claim stays and a second run gives `already_claimed`. The Stop hook, handoff check, and first-key gate use the same request state. A recorded `NO-RESET` makes a retry of that request return `request_released` with `nothing_sent`. A completed reset closes the request. A newer session segment also closes the request and can send `NO-RESET` once. Under the claim, reset checks the request and handoff again immediately before the first key. A changed handoff or a requester that left the original idle or done turn gives `nothing_sent`.
|
|
104
|
+
5. In the same runtime, the peer types `/compact` for a compact request, `/clear` for a Claude reset, or `/new` for a Pi reset. Antigravity always relaunches in the same pane. On a Claude or Pi `reset` request, an eligible model or effort change also relaunches. An unknown quota mode or a failed model check keeps the current model for an in-process reset.
|
|
105
|
+
6. A switch to Claude can relaunch the seat in its pane, including on a compact request. The destination must pass the normal launch checks and confirm its SessionStart integration for the planned executable, flags and checkout. Claude confirms this with a successful repo-harness `SessionStart:startup` hook response in its startup stream. The probe sends no prompt and clears the seat identity. A failed probe gives `seat_reset_destination_unavailable` with `nothing_sent`. Switches to Antigravity (`agy`), Pi, and Codex give the same refusal because these runtimes provide no safe, complete pre-exit SessionStart evidence. Use `rh seats argv <seat> --repository-id <id>` to get the configured runtime's launch command.
|
|
106
|
+
7. The first-key gate checks the configured runtime again and refuses with `seat_reset_runtime_changed` if it changed during preparation. The live SessionStart record must match the source host and transcript, and the requester must still be in the checkout used for preparation. A relaunch after retries waits for a settled turn again. It accepts the new session segment from the earlier keys and uses the handoff already checked for this claim. The peer types `/exit` on Claude or Antigravity, or `/quit` on Pi. After the original parent shell returns to the foreground, it types `sh <reset dir>/relaunch-<requested_at digits>.sh`. Each request has its own script path. The reset types commands with `hc keys` and sends the resume prompt with `hc send`.
|
|
107
|
+
8. The reset sends the prompt after a new transcript appears for `/clear` or `/new` (60 s), a `compact` record appears for the same transcript (300 s), or the destination writes a `startup` record after relaunch (60 s). In the appended transcript, the reset looks for the user prompt, the assistant command `hc send <peer> RESUMED`, and that command's successful tool result. Antigravity records these as `USER_INPUT`, a `PLANNER_RESPONSE` with a `run_command` call, and the result in the next `GENERIC` step. The requester reads the handoff and sends `RESUMED`. After a reset or relaunch, it checks the current state with git and gh. After compaction, it continues from the summary.
|
|
103
108
|
|
|
104
|
-
|
|
109
|
+
The peer sends no other messages between `RESET-REQUEST` and `RESUMED`. With no peer or after `NO-RESET`, the requester continues. Claude and Pi then use their own auto-compaction. A missing compaction signal stops the reset after the first `/compact`. A missing `/clear` or `/new` signal retries that command. A missing `RESUMED` retries the prompt. After one attempt and up to three retries, the reset attempts an in-pane relaunch. A failure after keys may require manual recovery.
|
|
105
110
|
|
|
106
|
-
|
|
107
|
-
- The peer sends no other message to the requester from `RESET-REQUEST` until `RESUMED`.
|
|
108
|
-
- Handoff check fails: the peer asks for a rewrite, at most 3 times. Then no reset: the seat continues, and Claude Code or Pi auto-compaction handles its context.
|
|
109
|
-
- Peer seat missing or not answering: no reset, same as above.
|
|
110
|
-
- A live requester with `status: null` gives `requester_status_untracked` before `hc wait` and any further keys. The error names the foreground program and gives the commands for manual recovery.
|
|
111
|
-
- No new-session signal after `/clear` or `/new`: `/clear` (Claude) or `/new` (Pi) 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. It starts in the existing shell so that the next reset can use that shell again.
|
|
112
|
-
- Mode change (#2633): `/clear`, `/new`, 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. The seat labels identify the requester. Its launch directory selects the primary checkout and registry entry even when `seats reset` runs from `/tmp`. When the model or effort differs from the `session.json` record, it starts the requester again from its seat argv (`/exit` on Claude, `/quit` on Pi, then the relaunch line) and types no `/clear` or `/new`; 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` (Claude) or `/new` (Pi). 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` or `/new`: 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.
|
|
113
|
-
- 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.
|
|
114
|
-
|
|
115
|
-
`seats reset` runs these rules. It types `/compact`, `/clear` or `/new`, `/exit` or `/quit`, and the relaunch line (`sh <reset dir>/relaunch.sh`) with `hc keys`: `hc send` wraps its text in an envelope, so the seat reads a sent slash command as chat text. The reset log `reset-log.jsonl` is the only record of the rewrite and resend counts across runs; one run also stops after one attempt and 3 retries when the log cannot be written. Before the first typed command, a run claims the request with an exclusive create of `claim-<requested_at digits>` next to the handoff. A second run for the same request, also after an uncertain first run, sends nothing (`already_claimed`); a claim that cannot be created types nothing (`claim_failed`). A completed reset adds a `reset` entry with the detail `compacted`, `cleared`, `relaunched` or `restarted`. Each failure first appends its log entry, then posts one `seat.reset_failed` bot event to the notify channels; the run waits at most 5 s in total for the notices at its end. A log entry that cannot be written is reported in the result as `logErrors`. Without a notify config, the log entry records `not_configured`. A handoff path that is not `/tmp/repo-harness-seats/<repository-id>/<seat>/handoff.md` names no seat, so it gives only the command error, with no log entry and no notice.
|
|
111
|
+
The reset log `reset-log.jsonl` tracks rewrites, retries and outcomes. A successful record has detail `compacted`, `cleared`, `relaunched` or `restarted`. Each failure writes a log entry and sends a `seat.reset_failed` notification when configured. The run waits up to 5 s for all notices. The result reports any log write errors in `logErrors`. A path outside the handoff convention gives a command error with no log or notice.
|
|
116
112
|
|
|
117
113
|
### Pane and tab names
|
|
118
114
|
|
|
@@ -29,20 +29,21 @@ Measure `Stop.default` using
|
|
|
29
29
|
`.ai/harness/runs/hook-events.jsonl` `elapsed_ms`. The terminal's Working
|
|
30
30
|
time is the whole turn, not the duration of its currently displayed hook.
|
|
31
31
|
|
|
32
|
-
This table is the one route inventory. It lists the
|
|
32
|
+
This table is the one route inventory. It lists the 8 entries of `ROUTES` in
|
|
33
33
|
`src/cli/hook/route-registry.ts`, in registry order. The Host column follows the
|
|
34
|
-
`hosts` field of each route: Claude installs
|
|
34
|
+
`hosts` field of each route: Claude installs 7 routes, Pi uses 6, Codex installs 5 and Antigravity installs 5.
|
|
35
35
|
Other documents link here. They do not copy this table.
|
|
36
36
|
|
|
37
37
|
| Route | Matcher | Host | Typed handler | Responsibility |
|
|
38
38
|
| --- | --- | --- | --- | --- |
|
|
39
|
-
| `SessionStart.default` | all sessions | Claude, Codex | `session-context` | Emit the Effective State section first, then the edit-guard-scope, architecture-debt and pending-plan sections under one budget. |
|
|
40
|
-
| `PreToolUse.edit` | `Edit\|Write` | Claude, Codex | `mutation-guard` | Safety hook: block an `Edit`, `Write` or Codex `apply_patch` removal or overwrite of an existing user file outside the worktree and temp roots (I2), or input without a parseable target path. See [Safety hook coverage](#safety-hook-coverage). |
|
|
39
|
+
| `SessionStart.default` | all sessions | Claude, Codex, Pi, Antigravity | `session-context` | Emit the Effective State section first, then the edit-guard-scope, architecture-debt and pending-plan sections under one budget. |
|
|
40
|
+
| `PreToolUse.edit` | `Edit\|Write` | Claude, Codex, Pi, Antigravity | `mutation-guard` | Safety hook: block an `Edit`, `Write` or Codex `apply_patch` removal or overwrite of an existing user file outside the worktree and temp roots (I2), or input without a parseable target path. See [Safety hook coverage](#safety-hook-coverage). |
|
|
41
41
|
| `PreToolUse.subagent` | `Agent` | Claude | `return-channel` | Append the return-channel contract and standing orders to a Claude `Agent` prompt. |
|
|
42
|
-
| `PreToolUse.bash` | `Bash` | Claude | `bash-mutation-guard` | Safety hook: deny a credential read (I1), a removal or overwrite of an existing user file outside the worktree and temp roots (I2), and whole-repository recursion (`git clean -x`, `find -delete`, `rm -r` of the root). |
|
|
43
|
-
| `
|
|
42
|
+
| `PreToolUse.bash` | `Bash` | Claude, Pi, Antigravity | `bash-mutation-guard` | Safety hook: deny a credential read (I1), a removal or overwrite of an existing user file outside the worktree and temp roots (I2), and whole-repository recursion (`git clean -x`, `find -delete`, `rm -r` of the root). |
|
|
43
|
+
| `PreToolUse.question` | `AskUserQuestion` (Pi: `ask_user_question`) | Claude, Pi | `question-guard` | Deny blocking question modals (`AskUserQuestion` / `ask_user_question`) only when `REPO_HARNESS_SEAT=orchestrator`, so the orchestrator asks the owner in plain text instead of blocking asynchronous notices. |
|
|
44
|
+
| `UserPromptSubmit.inbox` | all prompts | Claude, Codex, Pi, Antigravity | `agent-notice` | Deliver architecture debt on Codex; Claude emits nothing. |
|
|
44
45
|
| `SubagentStart.context` | subagent start | Codex | `subagent-context` | Record the native role and model observation. Add the bounded child context and standing orders. |
|
|
45
|
-
| `Stop.default` | session stop | Claude, Codex | `stop` | Publish the evidence checkpoint and render handoff and resume. Report protected path changes. Claude can get architecture debt. |
|
|
46
|
+
| `Stop.default` | session stop | Claude, Codex, Pi, Antigravity | `stop` | Publish the evidence checkpoint and render handoff and resume. Report protected path changes. Claude can get architecture debt. |
|
|
46
47
|
|
|
47
48
|
After upgrading the package, reinstall the host adapters. Codex must trust the
|
|
48
49
|
new command tuples once. Old adapters invoke removed routes and get exit 2.
|
|
@@ -122,8 +123,11 @@ The hook identity is the payload `session_id`, `run_id` and `turn_id`. A missing
|
|
|
122
123
|
value stays null. No hook mints or stores an id.
|
|
123
124
|
|
|
124
125
|
`UserPromptSubmit` output is advisory. `PreToolUse.edit` blocks invalid edit
|
|
125
|
-
targets. `PreToolUse.bash` blocks known protected write targets.
|
|
126
|
-
|
|
126
|
+
targets. `PreToolUse.bash` blocks known protected write targets.
|
|
127
|
+
`PreToolUse.question` denies blocking question modals (`AskUserQuestion` /
|
|
128
|
+
`ask_user_question`) only when `REPO_HARNESS_SEAT=orchestrator`. No policy mode
|
|
129
|
+
changes them. Stop and observer handlers never spawn an LLM or a long-running
|
|
130
|
+
worker.
|
|
127
131
|
|
|
128
132
|
## Host and Adoption Operations
|
|
129
133
|
|
|
@@ -102,7 +102,9 @@
|
|
|
102
102
|
"v0.34.0",
|
|
103
103
|
"v0.35.0",
|
|
104
104
|
"v0.35.1",
|
|
105
|
-
"v0.35.2"
|
|
105
|
+
"v0.35.2",
|
|
106
|
+
"v0.36.1",
|
|
107
|
+
"v0.37.0"
|
|
106
108
|
],
|
|
107
109
|
"packageScripts": {
|
|
108
110
|
"check:architecture-sync": [
|
|
@@ -2305,6 +2307,7 @@
|
|
|
2305
2307
|
"## Progressive Due Diligence": [
|
|
2306
2308
|
"sha256:141673ad4479b00c58dd81f2269c26abdf513f9929f98f529830b7c0bcb0a30c",
|
|
2307
2309
|
"sha256:15c465482dcca01e25cbdbdf48d9f5d36b8bd1b5a7051a6ff5f7187552d5a0c2",
|
|
2310
|
+
"sha256:5919a0c534dd2823de7df0634f37016a3d732e6d1c1dbfd2e4680a59f765f812",
|
|
2308
2311
|
"sha256:f50494041e62dfdf778891d306fdfb14cc70415b7dd3efa7fc454d337ac0eed9"
|
|
2309
2312
|
],
|
|
2310
2313
|
"## Reporting": [
|
|
@@ -2325,6 +2328,7 @@
|
|
|
2325
2328
|
"sha256:0867ebf51d139e026dc8c3ebff1e0aff7577ea408be5722974f10caae5afc842",
|
|
2326
2329
|
"sha256:6038a74d11852a4bcc85e23eb34377456df21ebce358c6bb6ab2aa85f7f85a73",
|
|
2327
2330
|
"sha256:731954322da34a273e628f5b8f839f0da2634f87d5c6e165d9321e6d7bdbcdba",
|
|
2331
|
+
"sha256:756d24d99f788fd9ce38095c979594d20b3c3cf66e89d2e2ebee6b9a0c601109",
|
|
2328
2332
|
"sha256:7b27af328e11769155744764affd5c5417b3363e1b059ae964372ee185eff020",
|
|
2329
2333
|
"sha256:e5215b2dc5f3915de77b95b1ef5d7e0932a232e4cf92a386e34a7c9d358e4c4a"
|
|
2330
2334
|
],
|