repo-harness 0.19.2 → 0.19.4
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/README.es.md +2 -2
- package/README.fr.md +2 -2
- package/README.ja.md +2 -2
- package/README.md +2 -2
- package/README.zh-CN.md +2 -2
- package/assets/reference-configs/external-tooling.md +31 -8
- package/assets/skill-version.json +2 -2
- package/assets/templates/helpers/archive-workflow.sh +3 -0
- package/assets/templates/helpers/ensure-task-workflow.sh +2 -2
- package/assets/templates/helpers/heartbeat-triage.sh +1 -1
- package/assets/templates/helpers/install-agent-fleet.sh +18 -10
- package/assets/templates/helpers/sprint-backlog.sh +2 -2
- package/dist/hook-entry.js +6348 -6107
- package/dist/operator-ui/assets/index-BtBBFakS.css +1 -0
- package/dist/operator-ui/assets/index-f7BlYVSB.js +9 -0
- package/dist/operator-ui/index.html +2 -2
- package/package.json +3 -3
- package/scripts/akn00-native-execution-admission.ts +196 -0
- package/scripts/archive-workflow.sh +3 -0
- package/scripts/axr5-archctx-clean-room.ts +1 -1
- package/scripts/axr6-stop-host-cycle.ts +3 -3
- package/scripts/axr7-consumer-e2e.ts +1 -1
- package/scripts/check-tarball-install-smoke.sh +7 -0
- package/scripts/ensure-task-workflow.sh +2 -2
- package/scripts/heartbeat-triage.sh +1 -1
- package/scripts/install-agent-fleet.sh +18 -10
- package/scripts/lib/project-init-lib.sh +2 -2
- package/scripts/me2b-runtime-admission-canary.ts +45 -13
- package/scripts/skill-surface-select.ts +12 -3
- package/scripts/sprint-backlog.sh +2 -2
- package/scripts/sync-codex-installed-copies.sh +7 -26
- package/src/cli/commands/architecture-projection.ts +3 -1
- package/src/cli/commands/capability-context.ts +11 -0
- package/src/cli/commands/fleet.ts +23 -1
- package/src/cli/commands/global-runtime.ts +6 -3
- package/src/cli/hook/mutation-observed.ts +3 -2
- package/src/cli/hook/stop-handler.ts +43 -15
- package/src/cli/hook-entry.ts +4 -0
- package/src/cli/installer/install-profile.ts +1 -1
- package/src/cli/installer/managed-entries.ts +2 -1
- package/src/cli/mcp/engineer-tools.ts +47 -0
- package/src/cli/mcp/oauth.ts +30 -23
- package/src/cli/mcp/server.ts +10 -2
- package/src/cli/mcp/tools.ts +2 -1
- package/src/cli/mcp/transports/http.ts +8 -1
- package/src/core/architecture/projection.ts +57 -2
- package/src/core/fleet/board.ts +53 -24
- package/src/core/fleet/task-inbox-layout.ts +12 -0
- package/src/core/fleet/task-reply.ts +280 -0
- package/src/core/hook-work-budget.ts +5 -0
- package/src/core/operator/automation-summary.ts +87 -0
- package/src/core/operator/collaboration-snapshot.ts +25 -9
- package/src/core/operator/decision-inventory.ts +96 -0
- package/src/core/operator/fleet-snapshot.ts +20 -4
- package/src/core/operator/observation-identity.ts +4 -0
- package/src/core/operator/organization-snapshot.ts +139 -0
- package/src/core/operator/planning-snapshot.ts +117 -0
- package/src/core/operator/repository-snapshot.ts +39 -0
- package/src/core/operator/task-activity.ts +135 -0
- package/src/core/operator/task-context.ts +117 -0
- package/src/core/operator/task-history.ts +56 -0
- package/src/core/refactor/policy.ts +1 -1
- package/src/effects/architecture/archctx-provider.ts +79 -10
- package/src/effects/architecture/projection-acceptance.ts +173 -16
- package/src/effects/architecture/projection-continuation.ts +55 -0
- package/src/effects/architecture/projection-orchestrator.ts +9 -6
- package/src/effects/automation/budget-store.ts +2 -1
- package/src/effects/automation/campaign-step.ts +3 -3
- package/src/effects/engineers/binding-store.ts +4 -12
- package/src/effects/engineers/claim-actor-store.ts +9 -9
- package/src/effects/engineers/principal-store.ts +10 -12
- package/src/effects/engineers/task-inbox.ts +65 -0
- package/src/effects/engineers/verified-context-store.ts +137 -3
- package/src/effects/evidence/atomic-append.ts +7 -0
- package/src/effects/fleet/acquire.ts +19 -6
- package/src/effects/fleet/board.ts +14 -2
- package/src/effects/fleet/task-inbox-layout-migration.ts +417 -0
- package/src/effects/fleet/task-inbox-layout.ts +68 -0
- package/src/effects/fleet/task-inbox.ts +438 -36
- package/src/effects/operator/automation-summary.ts +146 -0
- package/src/effects/operator/collaboration-worker.ts +14 -8
- package/src/effects/operator/collaboration.ts +162 -50
- package/src/effects/operator/fleet-collector-process.ts +23 -6
- package/src/effects/operator/server.ts +395 -195
- package/src/effects/operator/task-activity.ts +46 -0
- package/src/effects/operator/task-context.ts +43 -0
- package/src/effects/operator/task-history.ts +105 -0
- package/src/effects/operator/task-read-process.ts +54 -0
- package/src/effects/publication/merge-readiness.ts +41 -9
- package/src/effects/refactor/recommendations.ts +2 -2
- package/src/effects/repo-registry.ts +3 -3
- package/src/effects/state/coordination-canonical-source.ts +4 -2
- package/src/effects/state/coordination-lease-store.ts +7 -19
- package/src/operator-web/App.tsx +295 -207
- package/src/operator-web/AutomationSummary.tsx +153 -0
- package/src/operator-web/OrganizationSummary.tsx +67 -0
- package/src/operator-web/PlanningView.tsx +53 -0
- package/src/operator-web/TaskEvidence.tsx +132 -0
- package/src/operator-web/TaskHistory.tsx +49 -0
- package/src/operator-web/fixture.ts +150 -17
- package/src/operator-web/i18n.ts +374 -4
- package/src/operator-web/repository-snapshot.ts +27 -0
- package/src/operator-web/styles.css +117 -9
- package/src/operator-web/task-activity.ts +11 -0
- package/src/operator-web/task-context.ts +11 -0
- package/src/operator-web/task-history.ts +12 -0
- package/src/operator-web/task-location.ts +30 -0
- package/src/operator-web/types.ts +111 -12
- package/src/operator-web/useObservationRefresh.ts +59 -0
- package/dist/operator-ui/assets/index-B8ckyb8w.js +0 -9
- package/dist/operator-ui/assets/index-BpvUpmy-.css +0 -1
- package/src/effects/operator/task-diff-worker.ts +0 -7
package/README.es.md
CHANGED
|
@@ -702,8 +702,8 @@ repositorio adopte la misma política.
|
|
|
702
702
|
|
|
703
703
|
## Versión actual
|
|
704
704
|
|
|
705
|
-
- Paquete npm: `repo-harness@0.19.
|
|
706
|
-
- Sello de workflow generado: `repo-harness@0.19.
|
|
705
|
+
- Paquete npm: `repo-harness@0.19.4`
|
|
706
|
+
- Sello de workflow generado: `repo-harness@0.19.4+template@0.19.4`
|
|
707
707
|
- Repositorio de GitHub: `Ancienttwo/repo-harness`
|
|
708
708
|
- Notas de versión e historial: [`docs/CHANGELOG.md`](docs/CHANGELOG.md)
|
|
709
709
|
|
package/README.fr.md
CHANGED
|
@@ -697,8 +697,8 @@ adopte la même policy.
|
|
|
697
697
|
|
|
698
698
|
## Release actuelle
|
|
699
699
|
|
|
700
|
-
- Package npm : `repo-harness@0.19.
|
|
701
|
-
- Generated workflow stamp : `repo-harness@0.19.
|
|
700
|
+
- Package npm : `repo-harness@0.19.4`
|
|
701
|
+
- Generated workflow stamp : `repo-harness@0.19.4+template@0.19.4`
|
|
702
702
|
- Dépôt GitHub : `Ancienttwo/repo-harness`
|
|
703
703
|
- Notes et historique de release : [`docs/CHANGELOG.md`](docs/CHANGELOG.md)
|
|
704
704
|
|
package/README.ja.md
CHANGED
|
@@ -694,8 +694,8 @@ commit script や hooks に組み込まないでください。
|
|
|
694
694
|
|
|
695
695
|
## 現在の Release
|
|
696
696
|
|
|
697
|
-
- npm package:`repo-harness@0.19.
|
|
698
|
-
- Generated workflow stamp:`repo-harness@0.19.
|
|
697
|
+
- npm package:`repo-harness@0.19.4`
|
|
698
|
+
- Generated workflow stamp:`repo-harness@0.19.4+template@0.19.4`
|
|
699
699
|
- GitHub repository:`Ancienttwo/repo-harness`
|
|
700
700
|
- Release notes and history:[`docs/CHANGELOG.md`](docs/CHANGELOG.md)
|
|
701
701
|
|
package/README.md
CHANGED
|
@@ -665,8 +665,8 @@ repo-harness commit scripts or hooks unless that repo adopts the same policy.
|
|
|
665
665
|
|
|
666
666
|
## Current Release
|
|
667
667
|
|
|
668
|
-
- npm package: `repo-harness@0.19.
|
|
669
|
-
- Generated workflow stamp: `repo-harness@0.19.
|
|
668
|
+
- npm package: `repo-harness@0.19.4`
|
|
669
|
+
- Generated workflow stamp: `repo-harness@0.19.4+template@0.19.4`
|
|
670
670
|
- GitHub repository: `Ancienttwo/repo-harness`
|
|
671
671
|
- Release notes and history: [`docs/CHANGELOG.md`](docs/CHANGELOG.md)
|
|
672
672
|
|
package/README.zh-CN.md
CHANGED
|
@@ -630,8 +630,8 @@ commit script 或 hook,除非目标仓库采用同样的 policy。
|
|
|
630
630
|
|
|
631
631
|
## 当前 Release
|
|
632
632
|
|
|
633
|
-
- npm package:`repo-harness@0.19.
|
|
634
|
-
- Generated workflow stamp:`repo-harness@0.19.
|
|
633
|
+
- npm package:`repo-harness@0.19.4`
|
|
634
|
+
- Generated workflow stamp:`repo-harness@0.19.4+template@0.19.4`
|
|
635
635
|
- GitHub repository:`Ancienttwo/repo-harness`
|
|
636
636
|
- Release notes 和 history:[`docs/CHANGELOG.md`](docs/CHANGELOG.md)
|
|
637
637
|
|
|
@@ -637,16 +637,18 @@ mapping.
|
|
|
637
637
|
|
|
638
638
|
| Source `model` | Codex `model` | Source `effort` | Codex `model_reasoning_effort` |
|
|
639
639
|
|---|---|---|---|
|
|
640
|
-
| `opus` | `gpt-
|
|
641
|
-
| `sonnet`, `haiku` | `gpt-
|
|
642
|
-
| `fable` | `gpt-
|
|
640
|
+
| `opus` | `gpt-6-astra` | `low`, `medium`, `high`, `xhigh`, `max` | same string, unchanged |
|
|
641
|
+
| `sonnet`, `haiku` | `gpt-6-luna` | `low`, `medium`, `high`, `xhigh`, `max` | same string, unchanged |
|
|
642
|
+
| `fable` | `gpt-6-sol` | `low`, `medium`, `high`, `xhigh`, `max` | same string, unchanged |
|
|
643
643
|
|
|
644
|
-
|
|
644
|
+
Five per-agent target overrides are applied after tuple validation, on top of
|
|
645
645
|
the family row above, and are the only model/effort remaps in the generator:
|
|
646
|
-
`fast-worker` (`opus`/`medium`) targets `gpt-6-
|
|
647
|
-
`deep-worker` (`opus`/`high`)
|
|
648
|
-
`gpt-6-astra` at `medium` reasoning
|
|
649
|
-
|
|
646
|
+
`fast-worker` (`opus`/`medium`) targets `gpt-6-sol` at `medium` reasoning;
|
|
647
|
+
`deep-worker` (`opus`/`high`) targets `gpt-6-sol` at `xhigh` reasoning;
|
|
648
|
+
`gatekeeper` (`opus`/`high`) targets `gpt-6-astra` at `medium` reasoning;
|
|
649
|
+
`root-cause-prover` and `harness-evaluator` (`opus`/`high`) target `gpt-6-sol`
|
|
650
|
+
at `high` reasoning.
|
|
651
|
+
Every other agent's Codex model and effort follow the family row unchanged.
|
|
650
652
|
|
|
651
653
|
`fast-worker`, `deep-worker`, `root-cause-prover`, and `harness-evaluator`
|
|
652
654
|
receive `sandbox_mode = "workspace-write"`; every other role receives
|
|
@@ -1007,6 +1009,27 @@ letter into its terminal job receipt, and is byte-idempotent on the same signal
|
|
|
1007
1009
|
and approval reference. `status --json` reports unresolved or invalid
|
|
1008
1010
|
acceptance evidence, and the strict architecture gate fails closed on either;
|
|
1009
1011
|
the command never chooses or infers an architecture decision.
|
|
1012
|
+
|
|
1013
|
+
For accepted apply, acceptance records an exact request intent before invoking
|
|
1014
|
+
ArchContext and the original result before running refresh actions. A retry
|
|
1015
|
+
with this pending evidence uses the provider's `projection-apply-readback-v1`
|
|
1016
|
+
capability. Readback returns the immutable committed receipt, original refresh
|
|
1017
|
+
signals, and a freshly verified current fixed point without changing provider
|
|
1018
|
+
delivery state. The same candidate, approval reference, request, and snapshot
|
|
1019
|
+
must still match. If the provider proves the exact request has no committed
|
|
1020
|
+
receipt, only an intent without a recorded result may retry apply; the provider
|
|
1021
|
+
checks the receipt again within its writer lock before writing. Errors and
|
|
1022
|
+
missing capabilities never authorize another apply.
|
|
1023
|
+
|
|
1024
|
+
To recover an older interrupted accept that has no local intent, run
|
|
1025
|
+
`repo-harness architecture-projection accept --recover --signal-id <sha256> --approval-reference <original-event-id> --json`.
|
|
1026
|
+
This explicit command only resumes a committed apply. It fails if the provider
|
|
1027
|
+
has no receipt, and never creates an apply or poisons a fresh candidate with an
|
|
1028
|
+
unrecoverable intent. Adoption recovery is unsupported and fails closed; it is
|
|
1029
|
+
not converted into apply. Pending evidence remains content-bound local runtime
|
|
1030
|
+
state after completion; the final acceptance receipt is the resolution authority.
|
|
1031
|
+
The readback capability must be present in both the packaged CLI and its daemon;
|
|
1032
|
+
installing a new CLI alone does not upgrade a running daemon.
|
|
1010
1033
|
If a candidate's exact reason set is only `verified-flow-proof-changed`, use
|
|
1011
1034
|
`repo-harness architecture-projection reconcile --signal-id <sha256> --json`
|
|
1012
1035
|
after refreshing the configured CodeGraph index. Reconciliation runs the same
|
|
@@ -491,6 +491,9 @@ rewrite_archive_projection_file() {
|
|
|
491
491
|
awk \
|
|
492
492
|
-v source_path="${archive_projection_sources[$index]}" \
|
|
493
493
|
-v destination_path="${archive_projection_destinations[$index]}" '
|
|
494
|
+
# Executable acceptance criteria are frozen authority, not navigation.
|
|
495
|
+
/^## / { verification_plan = ($0 ~ /^## Verification Plan[[:space:]]*$/) }
|
|
496
|
+
verification_plan { print; next }
|
|
494
497
|
{
|
|
495
498
|
remaining = $0
|
|
496
499
|
rendered = ""
|
|
@@ -1016,8 +1016,8 @@ ARCHITECTURE_INDEX_EOF
|
|
|
1016
1016
|
"provider": "archctx",
|
|
1017
1017
|
"proposal_author": "local",
|
|
1018
1018
|
"stages": {
|
|
1019
|
-
"scan": { "provider_version": "0.5.
|
|
1020
|
-
"verify": { "provider_version": "0.5.
|
|
1019
|
+
"scan": { "provider_version": "0.5.13", "required_features": ["module-statistics-v1", "refactor-assessment-v1", "recommendation-v3"] },
|
|
1020
|
+
"verify": { "provider_version": "0.5.13", "required_features": ["refactor-resolution-v1"] }
|
|
1021
1021
|
},
|
|
1022
1022
|
"workflow_routing": {
|
|
1023
1023
|
"module_refactor": "work_package",
|
|
@@ -179,7 +179,7 @@ run_workflow_check() {
|
|
|
179
179
|
if [[ "$status" -eq 0 ]]; then
|
|
180
180
|
add_entry "workflow-check" "pass" "check-task-workflow.sh --strict passed" "$output"
|
|
181
181
|
else
|
|
182
|
-
summary="$(
|
|
182
|
+
summary="$(first_line <<<"$output")"
|
|
183
183
|
add_entry "workflow-check" "fail" "${summary:-check-task-workflow.sh --strict failed}" "$output"
|
|
184
184
|
fi
|
|
185
185
|
}
|
|
@@ -16,8 +16,14 @@ bun_version_is_supported() {
|
|
|
16
16
|
|
|
17
17
|
RUNTIME_BIN=""
|
|
18
18
|
BUN_VERSION=""
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
# A caller that already validated its Bun hands it over explicitly; only a
|
|
20
|
+
# standalone invocation discovers Bun by name.
|
|
21
|
+
if [[ -n "${REPO_HARNESS_BUN_BIN:-}" ]]; then
|
|
22
|
+
BUN_CANDIDATES=("$REPO_HARNESS_BUN_BIN")
|
|
23
|
+
else
|
|
24
|
+
BUN_CANDIDATES=("$(command -v bun 2>/dev/null || true)" "${HOME}/.bun/bin/bun")
|
|
25
|
+
fi
|
|
26
|
+
for candidate in "${BUN_CANDIDATES[@]}"; do
|
|
21
27
|
[[ -n "$candidate" && -x "$candidate" ]] || continue
|
|
22
28
|
candidate_version="$("$candidate" --version 2>/dev/null || true)"
|
|
23
29
|
[[ -n "$BUN_VERSION" ]] || BUN_VERSION="$candidate_version"
|
|
@@ -136,19 +142,21 @@ function buildFamilyEffortMap(sourceLabel, targetModel, targetLabel) {
|
|
|
136
142
|
}
|
|
137
143
|
|
|
138
144
|
const MODEL_EFFORT_MAP = {
|
|
139
|
-
opus: buildFamilyEffortMap("Opus", "gpt-
|
|
140
|
-
sonnet: buildFamilyEffortMap("Sonnet", "gpt-
|
|
141
|
-
haiku: buildFamilyEffortMap("Haiku", "gpt-
|
|
142
|
-
fable: buildFamilyEffortMap("Fable", "gpt-
|
|
145
|
+
opus: buildFamilyEffortMap("Opus", "gpt-6-astra", "GPT-6 Astra"),
|
|
146
|
+
sonnet: buildFamilyEffortMap("Sonnet", "gpt-6-luna", "GPT-6 Luna"),
|
|
147
|
+
haiku: buildFamilyEffortMap("Haiku", "gpt-6-luna", "GPT-6 Luna"),
|
|
148
|
+
fable: buildFamilyEffortMap("Fable", "gpt-6-sol", "GPT-6 Sol"),
|
|
143
149
|
};
|
|
144
150
|
|
|
145
151
|
// Per-agent Codex target overrides — the only model/effort remaps in the fleet.
|
|
146
|
-
//
|
|
147
|
-
//
|
|
152
|
+
// Execution and diagnostic roles use Sol or Luna; the gatekeeper uses Astra.
|
|
153
|
+
// Explorer and deep-reasoner follow the family default.
|
|
148
154
|
const AGENT_TARGET_OVERRIDES = {
|
|
149
|
-
"fast-worker": { model: "gpt-6-
|
|
150
|
-
"deep-worker": { model: "gpt-6-
|
|
155
|
+
"fast-worker": { model: "gpt-6-sol", effort: "medium", targetDescription: "GPT-6 Sol at medium reasoning" },
|
|
156
|
+
"deep-worker": { model: "gpt-6-sol", effort: "xhigh", targetDescription: "GPT-6 Sol at xhigh reasoning" },
|
|
151
157
|
gatekeeper: { model: "gpt-6-astra", effort: "medium", targetDescription: "GPT-6 Astra at medium reasoning" },
|
|
158
|
+
"root-cause-prover": { model: "gpt-6-sol", effort: "high", targetDescription: "GPT-6 Sol at high reasoning" },
|
|
159
|
+
"harness-evaluator": { model: "gpt-6-sol", effort: "high", targetDescription: "GPT-6 Sol at high reasoning" },
|
|
152
160
|
};
|
|
153
161
|
|
|
154
162
|
function readSource(agent) {
|
|
@@ -486,7 +486,7 @@ backlog_counts() {
|
|
|
486
486
|
|
|
487
487
|
next_pending_row() {
|
|
488
488
|
local file="$1"
|
|
489
|
-
backlog_rows "$file" | awk -F '\t' '$2 == "[ ]" { print;
|
|
489
|
+
backlog_rows "$file" | awk -F '\t' '!found && $2 == "[ ]" { print; found = 1 }'
|
|
490
490
|
}
|
|
491
491
|
|
|
492
492
|
# Mint one persisted task id: 32 random bytes rendered as lowercase hex. A task
|
|
@@ -1043,7 +1043,7 @@ cmd_start_task() {
|
|
|
1043
1043
|
echo "sprint-backlog: task reference '$task_ref' is ambiguous (${match_count} backlog rows match); fix duplicate indices or task names first" >&2
|
|
1044
1044
|
exit 1
|
|
1045
1045
|
fi
|
|
1046
|
-
target_row="$(backlog_rows "$sprint_file" | TASK_REF="$task_ref" awk -F '\t' '$1 == ENVIRON["TASK_REF"] || $3 == ENVIRON["TASK_REF"] { print;
|
|
1046
|
+
target_row="$(backlog_rows "$sprint_file" | TASK_REF="$task_ref" awk -F '\t' '!found && ($1 == ENVIRON["TASK_REF"] || $3 == ENVIRON["TASK_REF"]) { print; found = 1 }')"
|
|
1047
1047
|
|
|
1048
1048
|
local target_index target_status target_task target_mode target_acceptance
|
|
1049
1049
|
target_index="$(printf '%s' "$target_row" | cut -f1)"
|