repo-harness 0.23.0 → 0.24.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 +15 -4
- package/CLAUDE.md +15 -4
- package/README.es.md +16 -604
- package/README.fr.md +16 -601
- package/README.ja.md +16 -600
- package/README.md +62 -133
- package/README.zh-CN.md +16 -542
- package/SKILL.md +0 -1
- package/agents/engineers/profiles/verification-evals-checks.json +0 -1
- package/agents/engineers/profiles/workflow-engine-contract-assets.json +0 -1
- package/agents/engineers/sops/verification-evals-checks.md +1 -1
- package/agents/engineers/sops/workflow-engine-contract-assets.md +1 -1
- package/agents/fleet/gatekeeper.md +3 -1
- package/assets/herdr/webhook-notify/notify.mjs +182 -3
- package/assets/herdr/webhook-notify/pane-status.mjs +74 -0
- package/assets/reference-configs/agentic-development-flow.md +33 -2
- package/assets/reference-configs/document-generation.md +1 -1
- package/assets/reference-configs/external-tooling.md +172 -85
- package/assets/reference-configs/global-working-rules.md +3 -1
- package/assets/reference-configs/harness-overview.md +15 -22
- package/assets/reference-configs/heartbeat-triage.md +2 -2
- package/assets/reference-configs/herdr-notify.md +35 -0
- package/assets/reference-configs/hook-operations.md +206 -43
- package/assets/reference-configs/issue-pipeline.md +61 -0
- package/assets/reference-configs/release-deploy.md +11 -4
- package/assets/reference-configs/sprint-contracts.md +25 -1
- package/assets/skill-commands/manifest.json +22 -2
- package/assets/skill-commands/repo-harness-architecture/references/worker.md +39 -24
- package/assets/skill-commands/repo-harness-check/SKILL.md +3 -0
- package/assets/skill-commands/repo-harness-check/references/architecture-evidence.md +13 -18
- package/assets/skill-commands/repo-harness-check/references/review-comment-triage.md +65 -0
- package/assets/skill-version.json +2 -2
- package/assets/skills/repo-harness-cross-review/references/generic-review.md +4 -2
- package/assets/skills/repo-harness-herdr-portal/SKILL.md +62 -0
- package/assets/skills/repo-harness-herdr-portal/references/messaging.md +46 -0
- package/assets/skills/repo-harness-herdr-portal/references/spawn.md +144 -0
- package/assets/skills/repo-harness-product/SKILL.md +12 -3
- package/assets/skills/repo-harness-product/references/goal.md +57 -32
- package/assets/skills/repo-harness-product/references/prd.md +7 -4
- package/assets/skills/repo-harness-product/references/sprint.md +31 -47
- package/assets/skills/repo-harness-setup/SKILL.md +3 -2
- package/assets/skills/repo-harness-setup/references/ci-scope.md +138 -0
- package/assets/skills/repo-harness-test/references/authoring.md +3 -3
- package/assets/skills/repo-harness-test/references/running.md +9 -9
- package/assets/templates/helpers/capability-resolver.ts +88 -332
- package/assets/templates/runtime.gitignore +1 -0
- package/assets/templates/sprint.template.md +1 -1
- package/assets/tool-catalog.v1.json +16 -2
- package/assets/workflow-contract.v1.json +7 -13
- package/dist/hook-entry.js +7464 -9089
- package/dist/operator-ui/assets/ArchitectureWorkspace-Cjh_Bxx3.js +1 -0
- package/dist/operator-ui/assets/index-CV9Tl9pN.js +18 -0
- package/dist/operator-ui/assets/{index-DY7Cw9qc.css → index-DDqPSgxK.css} +1 -1
- package/dist/operator-ui/index.html +2 -2
- package/package.json +6 -8
- package/references/pm-boundary.md +33 -59
- package/scripts/acceptance-receipt.ts +52 -331
- package/scripts/archive-workflow.sh +2 -18
- package/scripts/capability-resolver.ts +21 -84
- package/scripts/check-agent-tooling.sh +1 -2
- package/scripts/check-ci.sh +31 -27
- package/scripts/check-protected-paths.ts +31 -0
- package/scripts/check-state-boundaries.ts +0 -3
- package/scripts/check-tarball-install-smoke.sh +6 -15
- package/scripts/ci-edge-audit.ts +54 -15
- package/scripts/ci-path-consumers.ts +93 -16
- package/scripts/codex-handoff-resume.sh +2 -3
- package/scripts/contract-worktree.sh +0 -1391
- package/scripts/decision-trail.ts +157 -0
- package/scripts/heartbeat-triage.sh +0 -78
- package/scripts/init-project.sh +4 -3
- package/scripts/lib/path-values.ts +57 -8
- package/scripts/lib/project-init-lib.sh +17 -113
- package/scripts/recovery-view-cli.ts +1 -3
- package/scripts/replay-ci-coverage.ts +63 -23
- package/scripts/report-ci.ts +10 -11
- package/scripts/run-bounded-verifier-command.ts +31 -29
- package/scripts/run-skill-evals.ts +1 -1
- package/scripts/select-ci-coverage.ts +26 -9
- package/scripts/select-test-suite.ts +1 -1
- package/scripts/ship-worktrees.sh +17 -373
- package/scripts/sync-helper-sources.ts +14 -50
- package/scripts/test-file-durations.json +1 -44
- package/scripts/workflow-contract.ts +1 -1
- package/src/cli/commands/architecture-projection.ts +30 -2
- package/src/cli/commands/brain.ts +165 -2
- package/src/cli/commands/capability-context.ts +36 -30
- package/src/cli/commands/catch-up.ts +45 -0
- package/src/cli/commands/doctor.ts +4 -3
- package/src/cli/commands/fleet.ts +8 -320
- package/src/cli/commands/global-runtime.ts +17 -79
- package/src/cli/commands/herdr.ts +25 -2
- package/src/cli/commands/init-hook.ts +69 -45
- package/src/cli/commands/init.ts +22 -151
- package/src/cli/commands/mcp.ts +2 -13
- package/src/cli/commands/publication.ts +19 -448
- package/src/cli/commands/run.ts +15 -6
- package/src/cli/commands/state.ts +45 -1
- package/src/cli/hook/agent-notice.ts +284 -0
- package/src/cli/hook/board-slice-context.ts +1 -11
- package/src/cli/hook/handler-contract.ts +2 -0
- package/src/cli/hook/handler-registry.ts +27 -11
- package/src/cli/hook/hook-protocol.ts +8 -4
- package/src/cli/hook/mutation-bash.ts +165 -0
- package/src/cli/hook/mutation-guard.ts +28 -21
- package/src/cli/hook/mutation-protected-dirs.ts +6 -0
- package/src/cli/hook/protected-path-notice.ts +149 -0
- package/src/cli/hook/return-channel.ts +24 -7
- package/src/cli/hook/route-registry.ts +13 -5
- package/src/cli/hook/runtime.ts +1 -0
- package/src/cli/hook/session-context-budget.ts +2 -0
- package/src/cli/hook/session-context.ts +16 -24
- package/src/cli/hook/standing-orders-context.ts +38 -0
- package/src/cli/hook/stop-handler.ts +32 -89
- package/src/cli/hook/subagent-context.ts +4 -13
- package/src/cli/index.ts +22 -16
- package/src/cli/installer/global-context.ts +554 -0
- package/src/cli/installer/install-profile.ts +22 -4
- package/src/cli/installer/managed-entries.ts +1 -0
- package/src/cli/installer/uninstall.ts +6 -10
- package/src/cli/installer/waza-rules.ts +140 -0
- package/src/cli/mcp/auth.ts +0 -6
- package/src/cli/mcp/fleet-tools.ts +3 -272
- package/src/cli/mcp/instructions.ts +1 -9
- package/src/cli/mcp/oauth.ts +3 -22
- package/src/cli/mcp/policy.ts +2 -16
- package/src/cli/mcp/server.ts +4 -25
- package/src/cli/mcp/setup.ts +10 -17
- package/src/cli/mcp/state-tools.ts +0 -10
- package/src/cli/mcp/tools.ts +1 -11
- package/src/cli/mcp/transports/http.ts +15 -58
- package/src/cli/mcp/transports/stdio.ts +0 -5
- package/src/cli/mcp/types.ts +1 -1
- package/src/cli/runtime/candidate-reconciliation.ts +4 -0
- package/src/core/adoption/standard-plan.ts +8 -5
- package/src/core/architecture/module-view.ts +3 -15
- package/src/core/architecture/projection.ts +93 -1
- package/src/core/capabilities/registry.ts +66 -249
- package/src/core/decision/pane-status.d.mts +9 -0
- package/src/core/decision/pane-status.mjs +74 -0
- package/src/core/dev-activity/brief.ts +95 -0
- package/src/core/dev-activity/decode.ts +5 -5
- package/src/core/dev-activity/projection.ts +3 -17
- package/src/core/dev-activity/types.ts +3 -6
- package/src/core/engineers/agent-runtime-effect.ts +5 -22
- package/src/core/engineers/engineering-overlay.ts +8 -32
- package/src/core/engineers/principal-claim.ts +1 -123
- package/src/core/engineers/profile-binding.ts +4 -9
- package/src/core/engineers/scheduling.ts +0 -205
- package/src/core/evidence/checkpoint.ts +100 -3
- package/src/core/fleet/board.ts +1 -2
- package/src/core/fleet/task-offer.ts +0 -28
- package/src/core/fleet/task-reply.ts +0 -21
- package/src/core/operator/architecture.ts +6 -6
- package/src/core/operator/organization-snapshot.ts +8 -12
- package/src/core/operator/repository-snapshot.ts +0 -2
- package/src/core/publication/feedback.ts +4 -233
- package/src/core/publication/publication-lifecycle.ts +1 -63
- package/src/core/skill-surface/waza-shared-rules.json +4 -0
- package/src/core/state/attempt-ledger.ts +6 -2
- package/src/core/state/coordination-identity.ts +4 -447
- package/src/core/state/project-board-slice.ts +1 -8
- package/src/core/state/project-board.ts +8 -77
- package/src/core/state/project-continuation-envelope.ts +6 -115
- package/src/core/state/project-effective-state.ts +3 -183
- package/src/core/state/project-state-snapshot.ts +0 -4
- package/src/core/state/sprint-backlog-rows.ts +1 -31
- package/src/core/state/types.ts +8 -64
- package/src/core/tools/catalog.ts +1 -1
- package/src/core/upgrade/legacy-inventory.ts +3 -3
- package/src/effects/architecture/archctx-provider.ts +183 -55
- package/src/effects/architecture/model-reader.ts +78 -124
- package/src/effects/architecture/projection-writer.ts +44 -0
- package/src/effects/artifact-retention.ts +5 -5
- package/src/effects/capabilities/archcontext-owners.ts +46 -6
- package/src/effects/dev-activity/collector.ts +4 -52
- package/src/effects/engineers/agent-runtime-effect-store.ts +4 -34
- package/src/effects/engineers/binding-store.ts +3 -390
- package/src/effects/engineers/claim-actor-store.ts +2 -78
- package/src/effects/engineers/dependency-authority.ts +5 -6
- package/src/effects/engineers/engineering-overlay.ts +6 -21
- package/src/effects/engineers/profile-store.ts +11 -23
- package/src/effects/engineers/scheduling.ts +6 -223
- package/src/effects/evidence/attested-import.ts +10 -2
- package/src/effects/evidence/checkpoint-store.ts +34 -15
- package/src/effects/evidence/event-log.ts +82 -27
- package/src/effects/evidence/recovery-materializer.ts +24 -17
- package/src/effects/fleet/acquire.ts +7 -787
- package/src/effects/fleet/task-inbox.ts +46 -378
- package/src/effects/hook-state-file.ts +42 -0
- package/src/effects/locking/exclusive-directory-lock.ts +0 -20
- package/src/effects/operator/docs-graph.ts +33 -18
- package/src/effects/operator/repository-snapshot-worker.ts +0 -4
- package/src/effects/operator/repository-snapshot.ts +6 -15
- package/src/effects/operator/server.ts +9 -15
- package/src/effects/process-group-launcher.ts +7 -1
- package/src/effects/publication/feedback-store.ts +3 -245
- package/src/effects/publication/feedback.ts +3 -694
- package/src/effects/publication/publication-lifecycle.ts +6 -984
- package/src/effects/publication/publication-receipt.ts +21 -690
- package/src/effects/refactor/recommendations.ts +1 -1
- package/src/effects/review/diff-fingerprint.ts +1 -1
- package/src/effects/state/attempt-ledger-store.ts +102 -4
- package/src/effects/state/coordination-claim-token.ts +3 -228
- package/src/effects/state/coordination-cutover.ts +2 -2
- package/src/effects/state/coordination-lease-liveness-store.ts +4 -43
- package/src/effects/state/coordination-lease-store.ts +6 -261
- package/src/effects/state/coordination-worktree-topology.ts +1 -8
- package/src/effects/state/resolve-continuation-envelope.ts +0 -8
- package/src/effects/state/resolve-effective-state.ts +158 -318
- package/src/effects/strategy/context.ts +1 -1
- package/src/effects/terminal/herdr-decision.ts +92 -0
- package/src/operator-web/App.tsx +10 -19
- package/src/operator-web/Board.tsx +1 -2
- package/src/operator-web/ModuleGraph.tsx +5 -5
- package/src/operator-web/OrganizationSummary.tsx +0 -34
- package/src/operator-web/RepositoryWorkspace.tsx +1 -14
- package/src/operator-web/app.css +1 -2
- package/src/operator-web/dev-activity.ts +0 -1
- package/src/operator-web/fixture.ts +3 -15
- package/src/operator-web/fixtures/dev-activity.ts +2 -5
- package/src/operator-web/fleet-api.ts +3 -7
- package/src/operator-web/i18n.ts +2 -40
- package/src/operator-web/types.ts +4 -10
- package/assets/hermes/README.md +0 -88
- package/assets/hermes/repo-harness-pm/__init__.py +0 -81
- package/assets/hermes/repo-harness-pm/plugin.yaml +0 -9
- package/assets/hermes/setup.py +0 -154
- package/assets/hermes/test_adapter.py +0 -63
- package/assets/hermes/verify.py +0 -116
- package/assets/initializer-question-pack.v4.json +0 -556
- package/assets/initializer-question-pack.v4.schema.json +0 -169
- package/assets/partials/01-header.partial.md +0 -10
- package/assets/partials/02-iron-rules.partial.md +0 -30
- package/assets/partials/03-philosophy.partial.md +0 -53
- package/assets/partials/04-project-structure.partial.md +0 -56
- package/assets/partials/05-workflow.partial.md +0 -79
- package/assets/partials/06-cloudflare.partial.md +0 -20
- package/assets/partials/07-footer.partial.md +0 -38
- package/assets/partials/08-orchestration.partial.md +0 -54
- package/assets/partials/09-compact-instructions.partial.md +0 -11
- package/assets/partials/_assembly-order.md +0 -40
- package/assets/partials-agents/01-header.partial.md +0 -8
- package/assets/partials-agents/02-operating-mode.partial.md +0 -43
- package/assets/partials-agents/03-orchestration.partial.md +0 -47
- package/assets/partials-agents/04-task-protocol.partial.md +0 -67
- package/assets/partials-agents/05-coding-constraints.partial.md +0 -20
- package/assets/partials-agents/06-quality-safety.partial.md +0 -24
- package/assets/partials-agents/07-cloudflare.partial.md +0 -9
- package/assets/partials-agents/08-deep-docs.partial.md +0 -32
- package/assets/pipeline-record.v2.schema.json +0 -1216
- package/assets/templates/helpers/acceptance-receipt.ts +0 -1994
- package/assets/templates/helpers/archive-workflow.sh +0 -938
- package/assets/templates/helpers/capability-config.ts +0 -367
- package/assets/templates/helpers/capture-plan.sh +0 -29
- package/assets/templates/helpers/change-assessment.ts +0 -241
- package/assets/templates/helpers/check-agent-tooling.sh +0 -2159
- package/assets/templates/helpers/check-brain-manifest.sh +0 -244
- package/assets/templates/helpers/check-context-files.sh +0 -50
- package/assets/templates/helpers/check-deploy-sql-order.sh +0 -393
- package/assets/templates/helpers/check-skill-version.ts +0 -185
- package/assets/templates/helpers/check-task-sync.sh +0 -24
- package/assets/templates/helpers/check-task-workflow.sh +0 -25
- package/assets/templates/helpers/classify-historical-plans.ts +0 -254
- package/assets/templates/helpers/codex-handoff-resume.sh +0 -66
- package/assets/templates/helpers/contract-run.ts +0 -1010
- package/assets/templates/helpers/contract-worktree-runtime.ts +0 -118
- package/assets/templates/helpers/contract-worktree.sh +0 -2142
- package/assets/templates/helpers/cutover-closure.ts +0 -196
- package/assets/templates/helpers/ensure-task-workflow.sh +0 -11
- package/assets/templates/helpers/evidence-gc.ts +0 -283
- package/assets/templates/helpers/factor-lab-check.sh +0 -77
- package/assets/templates/helpers/factor-lab-new.sh +0 -100
- package/assets/templates/helpers/factor-lab-promote.sh +0 -90
- package/assets/templates/helpers/factor-lab-reject.sh +0 -72
- package/assets/templates/helpers/harness-trace-grade.sh +0 -153
- package/assets/templates/helpers/heartbeat-triage.sh +0 -337
- package/assets/templates/helpers/inspect-project-state.ts +0 -290
- package/assets/templates/helpers/install-agent-fleet.sh +0 -370
- package/assets/templates/helpers/maintenance-triage.sh +0 -167
- package/assets/templates/helpers/merge-gate.ts +0 -306
- package/assets/templates/helpers/migrate-verification-plan.ts +0 -221
- package/assets/templates/helpers/new-plan.sh +0 -192
- package/assets/templates/helpers/new-spec.sh +0 -50
- package/assets/templates/helpers/new-sprint.sh +0 -50
- package/assets/templates/helpers/plan-to-todo.sh +0 -17
- package/assets/templates/helpers/prepare-codex-handoff.sh +0 -58
- package/assets/templates/helpers/prepare-handoff.sh +0 -57
- package/assets/templates/helpers/recovery-view-cli.ts +0 -121
- package/assets/templates/helpers/refresh-current-status.sh +0 -548
- package/assets/templates/helpers/run-bounded-verifier-command.ts +0 -243
- package/assets/templates/helpers/runtime-evidence-receipt.ts +0 -60
- package/assets/templates/helpers/select-agent-context-blocks.sh +0 -141
- package/assets/templates/helpers/ship-worktrees.sh +0 -1448
- package/assets/templates/helpers/sprint-backlog.sh +0 -1238
- package/assets/templates/helpers/summarize-failures.sh +0 -93
- package/assets/templates/helpers/switch-plan.sh +0 -150
- package/assets/templates/helpers/sync-brain-docs.sh +0 -381
- package/assets/templates/helpers/validate-harness-profile-benchmark.ts +0 -39
- package/assets/templates/helpers/verification-plan.ts +0 -99
- package/assets/templates/helpers/verify-contract.sh +0 -40
- package/assets/templates/helpers/verify-sprint.sh +0 -40
- package/assets/templates/helpers/workflow-contract.ts +0 -304
- package/assets/templates/helpers/workstream-sync.sh +0 -300
- package/assets/templates/helpers/worktree-merge-lib.sh +0 -106
- package/dist/operator-ui/assets/ArchitectureWorkspace-CR9FiYz3.js +0 -1
- package/dist/operator-ui/assets/index-jrycyCyb.js +0 -18
- package/references/dot-pm-control.md +0 -140
- package/references/pm-operations.md +0 -131
- package/scripts/assemble-template.ts +0 -1146
- package/scripts/check-brain-manifest.sh +0 -244
- package/scripts/contract-run.ts +0 -1010
- package/scripts/initializer-question-pack.ts +0 -177
- package/scripts/me2b-runtime-admission-canary.ts +0 -376
- package/scripts/new-sprint.sh +0 -50
- package/scripts/sprint-backlog.sh +0 -1238
- package/scripts/sync-brain-docs.sh +0 -381
- package/src/cli/commands/delegation.ts +0 -228
- package/src/cli/commands/engineer.ts +0 -831
- package/src/cli/commands/interface-change.ts +0 -139
- package/src/cli/commands/pm.ts +0 -35
- package/src/cli/commands/sprint.ts +0 -229
- package/src/cli/commands/verified-context.ts +0 -141
- package/src/cli/hook/task-inbox-handler.ts +0 -96
- package/src/cli/mcp/engineer-tools.ts +0 -789
- package/src/cli/mcp/pm-server.ts +0 -168
- package/src/core/engineers/delegation.ts +0 -755
- package/src/core/engineers/interface-change.ts +0 -578
- package/src/core/engineers/module-message.ts +0 -522
- package/src/core/engineers/task-freeze.ts +0 -235
- package/src/core/engineers/verified-context.ts +0 -722
- package/src/core/engineers/work-demand.ts +0 -393
- package/src/core/operator/decision-inventory.ts +0 -96
- package/src/core/pm/protocol.ts +0 -96
- package/src/core/state/sprint-row-completion.ts +0 -128
- package/src/core/state/sprint-schema-migration.ts +0 -249
- package/src/core/state/sprint-schema-v1.ts +0 -206
- package/src/core/workflow/artifact-requirement-policy.ts +0 -182
- package/src/core/workflow/operation-readiness.ts +0 -289
- package/src/effects/engineers/acquire.ts +0 -222
- package/src/effects/engineers/bound-task-rotation.ts +0 -30
- package/src/effects/engineers/delegated-run-store.ts +0 -996
- package/src/effects/engineers/interface-change-store.ts +0 -487
- package/src/effects/engineers/module-inbox.ts +0 -770
- package/src/effects/engineers/principal-store.ts +0 -170
- package/src/effects/engineers/principal.ts +0 -76
- package/src/effects/engineers/scheduling-acquire-next.ts +0 -506
- package/src/effects/engineers/scheduling-acquire.ts +0 -181
- package/src/effects/engineers/task-freeze-store.ts +0 -429
- package/src/effects/engineers/task-inbox.ts +0 -65
- package/src/effects/engineers/verified-context-store.ts +0 -580
- package/src/effects/engineers/work-demand-materialization.ts +0 -62
- package/src/effects/engineers/work-demand-store.ts +0 -114
- package/src/effects/pm/host.ts +0 -48
- package/src/effects/pm/operations.ts +0 -209
- package/src/effects/state/coordination-sprint.ts +0 -1261
- package/src/effects/state/owed-capabilities.ts +0 -150
- package/src/effects/state/sprint-schema-migration.ts +0 -469
package/AGENTS.md
CHANGED
|
@@ -6,21 +6,20 @@
|
|
|
6
6
|
- Read the current request and repo-local agent context, work on a branch, make bounded commits, verify once, then report the PR outcome.
|
|
7
7
|
- Read `tasks/lessons.md` at session start and apply its active lessons. Current repo state and evidence override a lesson.
|
|
8
8
|
- Finish the main task first. Fix a small problem found on the way directly. For a large problem, open a GitHub issue before you work on it.
|
|
9
|
-
- Write output text (docs, PR descriptions, commit messages, reports) in ASD-STE100 Simplified Technical English: short sentences, one idea per sentence, active voice, approved-dictionary words; write Chinese output the same way, with short sentences and one idea per sentence.
|
|
10
9
|
- Ordinary tasks use the PR description: goal, scope, changes, verification, risk and rollback. No mandatory plan/contract/review/notes chain; notes are only for non-obvious decisions.
|
|
11
10
|
- Keep four hard boundaries: main publication, deletion, credentials/permissions, and release/production operations.
|
|
12
11
|
- Only when the current task explicitly authorizes main publication may a model squash-merge after automated checks pass and GitHub has no outstanding change requests or unresolved review threads; an explicit no-merge instruction always wins. Push/tag still require task authorization; credentials/permissions, other deletion and release/production retain their separate approval boundaries. Record authorized publication, the provider-confirmed merge SHA and parent SHA, `git revert <squash-commit>`, and the daily report. Do not create rollback tags.
|
|
13
12
|
- Default worktrees are at `/tmp/<repo>-wt-<slug>` (Windows: `os.tmpdir()`). Commit or push before a reboot or a tmp cleanup.
|
|
14
13
|
- Closeout and sweep remove only merged, clean and unowned worktrees. To keep one, give it an unmerged commit, keep it dirty, or mark or lease it. Details: [agentic-development-flow](docs/reference-configs/agentic-development-flow.md).
|
|
15
14
|
- Automatically delete only merged, clean worktrees/branches; ask the user for every other deletion. Credentials/permissions (including confirmation bypass) and release/production operations require user approval.
|
|
16
|
-
-
|
|
15
|
+
- Select independent review by the diff's [Review by risk](docs/reference-configs/agentic-development-flow.md#review-by-risk) tier: none for low, one fresh-context review for medium, gatekeeper plus cross-model review for high; ordinary steps record diagnostics without approval loops.
|
|
17
16
|
- When you delegate, investigate first, then split work by write ownership. Give each parallel writer its own worktree from a clean source. Implementation sub-agents edit only their scope. They do not run build, typecheck or tests. They commit early in their own worktree and return early. In a shared checkout they do not commit; the parent commits. Evidence roles run the named check that is their task and do not commit. The parent agent owns task management, conflict resolution, build, typecheck, tests and integration. After integration, the parent removes each sub-agent worktree and branch whose commits are in the task branch and whose checkout is clean. It also removes the intermediate build output and temporary files that the work created. Other deletion still needs the user.
|
|
18
17
|
- Model division and cross-model dispatch/review follow [Herdr Dispatch](docs/reference-configs/herdr-notify.md#herdr-dispatch).
|
|
19
18
|
- GitHub operations (PRs, reviews, merges, labels, releases, comments) go only through the gh/git CLI or the GitHub API. Never use simulated browser clicks on github.com: the account can be banned.
|
|
20
19
|
- When one PR changes both test assertions and implementation code, run one read-only review focused on tests bent to fit a bug (on-demand, not a restored gate; dispatch per the herdr guide).
|
|
21
20
|
- `.archcontext/model/` owns architecture boundaries; read `docs/architecture/` on demand and update only real responsibility changes. Architecture diagnostics do not block work or author nested agent instructions.
|
|
22
|
-
- When a branch changes a capability's responsibility, entrypoints, relations or flows,
|
|
23
|
-
- Preserve `agents/fleet/`, release checklists and downstream `assets/templates
|
|
21
|
+
- When a branch changes a capability's responsibility, entrypoints, relations or flows, follow `repo-harness-architecture` (`assets/skill-commands/repo-harness-architecture/references/worker.md`). Handle architecture debt in the model and human prose. The archctx rolling writer publishes generated regions and the projection manifest; do not apply and commit them in a feature PR.
|
|
22
|
+
- Preserve `agents/fleet/`, release checklists and downstream `assets/templates`. `.ai/harness/workflow-contract.json` is the opt-in marker. `assets/workflow-contract.v1.json` is the contract.
|
|
24
23
|
- `_ops/` is ignored private operations state: never commit or agent-edit it. `_ref/` is an ignored reference cache; cite influential revisions. Follow deploy SQL policy, otherwise use ascending 4-digit files under `deploy/sql/`.
|
|
25
24
|
|
|
26
25
|
## GitHub Issue Claims
|
|
@@ -65,6 +64,18 @@
|
|
|
65
64
|
- On resume, verify the live checkout and source artifacts before reusing a result; `tasks/current.md` is an optional local read model.
|
|
66
65
|
- Preserve dirty work and other workers' edits; hand back an ownership conflict instead of discarding their changes.
|
|
67
66
|
|
|
67
|
+
## Writing
|
|
68
|
+
- Write output text (docs, PR descriptions, commit messages, reports, research notes) in ASD-STE100 Simplified Technical English: short sentences, one idea per sentence, active voice, approved-dictionary words. Write Chinese output the same way.
|
|
69
|
+
- Prefer high information density: evidence first, mechanisms and business effect explained, complex reasoning allowed, no explanatory repetition. Lead with the main finding, key number or key mechanism. State known facts and supported conclusions directly, without lead-ins such as "note that", "this shows to some extent" or "it must be stressed". Put the evidence grade in the wording, not in a separate caveat.
|
|
70
|
+
- Give time, subject, action, size and source in one sentence. Keep only the qualifiers that change the fact, the statistics or the inference. Keep text that explains a cause or mechanism, separates confounded causes, or builds a new classification.
|
|
71
|
+
- Delete: comments on your own process or work; a second explanation of a fact that already states its source, scope and meaning; "do not read this as" warnings; repeated disclaimers; step-by-step tutorials and hypothetical teaching examples; prose that repeats a comparison table; repeated summaries and claims about the importance of the result.
|
|
72
|
+
- A conclusion must add a cause, mechanism, constraint, testable prediction or business effect. A restatement of earlier facts is not a conclusion.
|
|
73
|
+
- Prefer real companies, products, contracts, prices and user behavior as examples. Use a table for multi-object or multi-metric comparison. Split sections by question; drop introductions, transitions and summaries that exist only for completeness.
|
|
74
|
+
- Paragraph deletion test: if removing a paragraph leaves the reader's understanding of facts, numbers, mechanism, cause, conditions and conclusion unchanged, remove it. Check first the paragraphs that start with "this shows", "note that", "therefore", "however" or "it must be stressed".
|
|
75
|
+
|
|
76
|
+
## UI
|
|
77
|
+
- Avoid unnecessary secondary labels and descriptions. Let the layout do the explaining.
|
|
78
|
+
|
|
68
79
|
## Codex
|
|
69
80
|
- Own backend implementation and testing; Claude owns frontend implementation and interaction, and the parent coordinates scope and integration.
|
|
70
81
|
- User-level `~/.codex/hooks.json` hooks invoke `repo-harness-hook`; its typed route registry selects one in-process handler. Operator helpers run from the package through `repo-harness run <helper>`.
|
package/CLAUDE.md
CHANGED
|
@@ -6,21 +6,20 @@
|
|
|
6
6
|
- Read the current request and repo-local agent context, work on a branch, make bounded commits, verify once, then report the PR outcome.
|
|
7
7
|
- Read `tasks/lessons.md` at session start and apply its active lessons. Current repo state and evidence override a lesson.
|
|
8
8
|
- Finish the main task first. Fix a small problem found on the way directly. For a large problem, open a GitHub issue before you work on it.
|
|
9
|
-
- Write output text (docs, PR descriptions, commit messages, reports) in ASD-STE100 Simplified Technical English: short sentences, one idea per sentence, active voice, approved-dictionary words; write Chinese output the same way, with short sentences and one idea per sentence.
|
|
10
9
|
- Ordinary tasks use the PR description: goal, scope, changes, verification, risk and rollback. No mandatory plan/contract/review/notes chain; notes are only for non-obvious decisions.
|
|
11
10
|
- Keep four hard boundaries: main publication, deletion, credentials/permissions, and release/production operations.
|
|
12
11
|
- Only when the current task explicitly authorizes main publication may a model squash-merge after automated checks pass and GitHub has no outstanding change requests or unresolved review threads; an explicit no-merge instruction always wins. Push/tag still require task authorization; credentials/permissions, other deletion and release/production retain their separate approval boundaries. Record authorized publication, the provider-confirmed merge SHA and parent SHA, `git revert <squash-commit>`, and the daily report. Do not create rollback tags.
|
|
13
12
|
- Default worktrees are at `/tmp/<repo>-wt-<slug>` (Windows: `os.tmpdir()`). Commit or push before a reboot or a tmp cleanup.
|
|
14
13
|
- Closeout and sweep remove only merged, clean and unowned worktrees. To keep one, give it an unmerged commit, keep it dirty, or mark or lease it. Details: [agentic-development-flow](docs/reference-configs/agentic-development-flow.md).
|
|
15
14
|
- Automatically delete only merged, clean worktrees/branches; ask the user for every other deletion. Credentials/permissions (including confirmation bypass) and release/production operations require user approval.
|
|
16
|
-
-
|
|
15
|
+
- Select independent review by the diff's [Review by risk](docs/reference-configs/agentic-development-flow.md#review-by-risk) tier: none for low, one fresh-context review for medium, gatekeeper plus cross-model review for high; ordinary steps record diagnostics without approval loops.
|
|
17
16
|
- When you delegate, investigate first, then split work by write ownership. Give each parallel writer its own worktree from a clean source. Implementation sub-agents edit only their scope. They do not run build, typecheck or tests. They commit early in their own worktree and return early. In a shared checkout they do not commit; the parent commits. Evidence roles run the named check that is their task and do not commit. The parent agent owns task management, conflict resolution, build, typecheck, tests and integration. After integration, the parent removes each sub-agent worktree and branch whose commits are in the task branch and whose checkout is clean. It also removes the intermediate build output and temporary files that the work created. Other deletion still needs the user.
|
|
18
17
|
- Model division and cross-model dispatch/review follow [Herdr Dispatch](docs/reference-configs/herdr-notify.md#herdr-dispatch).
|
|
19
18
|
- GitHub operations (PRs, reviews, merges, labels, releases, comments) go only through the gh/git CLI or the GitHub API. Never use simulated browser clicks on github.com: the account can be banned.
|
|
20
19
|
- When one PR changes both test assertions and implementation code, run one read-only review focused on tests bent to fit a bug (on-demand, not a restored gate; dispatch per the herdr guide).
|
|
21
20
|
- `.archcontext/model/` owns architecture boundaries; read `docs/architecture/` on demand and update only real responsibility changes. Architecture diagnostics do not block work or author nested agent instructions.
|
|
22
|
-
- When a branch changes a capability's responsibility, entrypoints, relations or flows,
|
|
23
|
-
- Preserve `agents/fleet/`, release checklists and downstream `assets/templates
|
|
21
|
+
- When a branch changes a capability's responsibility, entrypoints, relations or flows, follow `repo-harness-architecture` (`assets/skill-commands/repo-harness-architecture/references/worker.md`). Handle architecture debt in the model and human prose. The archctx rolling writer publishes generated regions and the projection manifest; do not apply and commit them in a feature PR.
|
|
22
|
+
- Preserve `agents/fleet/`, release checklists and downstream `assets/templates`. `.ai/harness/workflow-contract.json` is the opt-in marker. `assets/workflow-contract.v1.json` is the contract.
|
|
24
23
|
- `_ops/` is ignored private operations state: never commit or agent-edit it. `_ref/` is an ignored reference cache; cite influential revisions. Follow deploy SQL policy, otherwise use ascending 4-digit files under `deploy/sql/`.
|
|
25
24
|
|
|
26
25
|
## GitHub Issue Claims
|
|
@@ -65,6 +64,18 @@
|
|
|
65
64
|
- On resume, verify the live checkout and source artifacts before reusing a result; `tasks/current.md` is an optional local read model.
|
|
66
65
|
- Preserve dirty work and other workers' edits; hand back an ownership conflict instead of discarding their changes.
|
|
67
66
|
|
|
67
|
+
## Writing
|
|
68
|
+
- Write output text (docs, PR descriptions, commit messages, reports, research notes) in ASD-STE100 Simplified Technical English: short sentences, one idea per sentence, active voice, approved-dictionary words. Write Chinese output the same way.
|
|
69
|
+
- Prefer high information density: evidence first, mechanisms and business effect explained, complex reasoning allowed, no explanatory repetition. Lead with the main finding, key number or key mechanism. State known facts and supported conclusions directly, without lead-ins such as "note that", "this shows to some extent" or "it must be stressed". Put the evidence grade in the wording, not in a separate caveat.
|
|
70
|
+
- Give time, subject, action, size and source in one sentence. Keep only the qualifiers that change the fact, the statistics or the inference. Keep text that explains a cause or mechanism, separates confounded causes, or builds a new classification.
|
|
71
|
+
- Delete: comments on your own process or work; a second explanation of a fact that already states its source, scope and meaning; "do not read this as" warnings; repeated disclaimers; step-by-step tutorials and hypothetical teaching examples; prose that repeats a comparison table; repeated summaries and claims about the importance of the result.
|
|
72
|
+
- A conclusion must add a cause, mechanism, constraint, testable prediction or business effect. A restatement of earlier facts is not a conclusion.
|
|
73
|
+
- Prefer real companies, products, contracts, prices and user behavior as examples. Use a table for multi-object or multi-metric comparison. Split sections by question; drop introductions, transitions and summaries that exist only for completeness.
|
|
74
|
+
- Paragraph deletion test: if removing a paragraph leaves the reader's understanding of facts, numbers, mechanism, cause, conditions and conclusion unchanged, remove it. Check first the paragraphs that start with "this shows", "note that", "therefore", "however" or "it must be stressed".
|
|
75
|
+
|
|
76
|
+
## UI
|
|
77
|
+
- Avoid unnecessary secondary labels and descriptions. Let the layout do the explaining.
|
|
78
|
+
|
|
68
79
|
## Claude Code
|
|
69
80
|
- Own frontend implementation and interaction; Codex owns backend implementation and testing, and the parent coordinates scope and integration.
|
|
70
81
|
- Use Claude Code's available tools within granted permissions; changes to tool grants, hooks or confirmation bypass require approval of the exact change.
|