harnessed 5.0.9 → 5.0.11

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/CHANGELOG.md CHANGED
@@ -7,6 +7,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [5.0.11] - 2026-11-03
11
+
12
+ ### Fixed
13
+
14
+ - `harnessed setup` no longer fails the `planning-with-files` component on the codex host. The npx skill pack's target set was not declared, so the ownership guard refused it as unproven before it could check the installed state. The manifest now declares `installs_skills: [planning-with-files]`, so the component is detected as already installed (or installs normally on a fresh host) and setup no longer exits 1.
15
+
16
+ ### Removed
17
+
18
+ - The optional `stop-hook-recover` component (Tool-Call Auto-Recovery Stop hook) has been removed. Its manifest, the `harnessed stop-hook` internal subcommand and the generated `bin/harnessed-stop-hook.mjs` are gone; `harnessed setup` no longer offers it and `harnessed install stop-hook-recover` no longer resolves. The `stop-hook` hook identity is kept internally, so a registration left behind by an earlier install is still recognized and removed by the unified `harnessed uninstall` and is still flagged by `harnessed doctor`.
19
+
20
+ ## [5.0.10] - 2026-11-02
21
+
22
+ ### Fixed
23
+
24
+ - The `BREAK-LOOP` stop directive no longer tells the agent to run a `break-loop` skill. Harnessed never shipped that skill on any host, so a strict agent (codex) treated the directive as an unsatisfiable precondition, stopped the workflow and asked the user for a skill that does not exist. The directive now states the stop rule itself — re-scope the subtask, fix the blocker, or escalate to the user — which is the rule the shipped `task` / `verify-*` workflow docs already carry.
25
+ - The `playwright-cli` manifest no longer pins one exact version. It installs `^0.1.22` and verifies by capability (a 0.1.x patch of at least 0.1.22, plus the Chromium metadata the CLI needs), so a host that already carries a newer 0.1.x patch is no longer reported as a failed component. Older 0.1.x releases, pre-releases and other minors are still rejected.
26
+
10
27
  ## [5.0.9] - 2026-11-02
11
28
 
12
29
  ### Fixed
@@ -471,7 +471,7 @@ function buildWorkflowStateBlock(wf, forward, ledgerAgeMs) {
471
471
  }
472
472
  for (const l of loops) {
473
473
  lines.push(
474
- `BREAK-LOOP: sub '${l.sub}' failed ${l.count}x \u2014 stop retrying, run break-loop skill`,
474
+ `BREAK-LOOP: sub '${l.sub}' failed ${l.count}x \u2014 stop retrying: re-scope the subtask, fix the blocker, or escalate to the user`,
475
475
  )
476
476
  }
477
477
  for (const e of ledger) {
@@ -65,7 +65,7 @@ var init_package = __esm({
65
65
  'package.json'() {
66
66
  package_default = {
67
67
  name: 'harnessed',
68
- version: '5.0.9',
68
+ version: '5.0.11',
69
69
  description: 'AI coding harness package manager + composition orchestrator',
70
70
  type: 'module',
71
71
  license: 'Apache-2.0',
@@ -14,7 +14,7 @@ var init_package = __esm({
14
14
  'package.json'() {
15
15
  package_default = {
16
16
  name: 'harnessed',
17
- version: '5.0.9',
17
+ version: '5.0.11',
18
18
  description: 'AI coding harness package manager + composition orchestrator',
19
19
  type: 'module',
20
20
  license: 'Apache-2.0',
package/dist/cli.mjs CHANGED
@@ -40,7 +40,7 @@ var init_package = __esm({
40
40
  "package.json"() {
41
41
  package_default = {
42
42
  name: "harnessed",
43
- version: "5.0.9",
43
+ version: "5.0.11",
44
44
  description: "AI coding harness package manager + composition orchestrator",
45
45
  type: "module",
46
46
  license: "Apache-2.0",
@@ -6861,7 +6861,7 @@ async function runCheckpointFail(sub, opts, deps = defaultRunDeps) {
6861
6861
  const looped = loops.find((l) => l.sub === sub);
6862
6862
  if (looped) {
6863
6863
  deps.error(
6864
- `[harnessed] BREAK-LOOP: sub '${sub}' failed ${looped.count}x (>= ${LOOP_THRESHOLD2}). Stop retrying \u2014 run the break-loop skill for root-cause analysis and capture the lesson to .planning/.`
6864
+ `[harnessed] BREAK-LOOP: sub '${sub}' failed ${looped.count}x (>= ${LOOP_THRESHOLD2}). Stop retrying: re-scope the subtask, fix the blocker, or escalate to the user, and capture the lesson to .planning/.`
6865
6865
  );
6866
6866
  }
6867
6867
  const attempts = latest?.sub_progress?.find((e) => e.sub === sub)?.fail_count ?? 0;
@@ -6927,7 +6927,7 @@ async function runCheckpointReopen(sub, opts, deps = defaultRunDeps) {
6927
6927
  const looped = detectLoop2(latest?.sub_progress ?? []).find((l) => l.sub === sub);
6928
6928
  if (looped) {
6929
6929
  deps.error(
6930
- `[harnessed] BREAK-LOOP: sub '${sub}' has been sent back / failed ${looped.count}x (>= ${LOOP_THRESHOLD2}). Stop retrying \u2014 run the break-loop skill for root-cause analysis and capture the lesson to .planning/.`
6930
+ `[harnessed] BREAK-LOOP: sub '${sub}' has been sent back / failed ${looped.count}x (>= ${LOOP_THRESHOLD2}). Stop retrying: re-scope the subtask, fix the blocker, or escalate to the user, and capture the lesson to .planning/.`
6931
6931
  );
6932
6932
  }
6933
6933
  deps.log(
@@ -8938,6 +8938,9 @@ var init_hookEntry = __esm({
8938
8938
  init_runtime();
8939
8939
  COMPILED_HOOK_IDENTITIES = [
8940
8940
  "inject-state",
8941
+ // retired in 5.0.11 — no manifest ships this hook any more; the identity is
8942
+ // kept so legacy registrations can still be recognized and stripped.
8943
+ // Removal planned after 2027-02-03 (3-month window, see the doc comment).
8941
8944
  "stop-hook",
8942
8945
  "check-docs",
8943
8946
  "update-reminder"
@@ -19703,7 +19706,7 @@ function buildWorkflowStateBlock(wf, forward, ledgerAgeMs) {
19703
19706
  }
19704
19707
  for (const l of loops) {
19705
19708
  lines.push(
19706
- `BREAK-LOOP: sub '${l.sub}' failed ${l.count}x \u2014 stop retrying, run break-loop skill`
19709
+ `BREAK-LOOP: sub '${l.sub}' failed ${l.count}x \u2014 stop retrying: re-scope the subtask, fix the blocker, or escalate to the user`
19707
19710
  );
19708
19711
  }
19709
19712
  for (const e of ledger) {
@@ -22892,7 +22895,6 @@ var init_refreshOwnedUpdate = __esm({
22892
22895
  ["cc-hooks", "update-reminder"],
22893
22896
  ["optional", "perturn-inject"],
22894
22897
  ["optional", "perturn-inject-invalidate"],
22895
- ["optional", "stop-hook-recover"],
22896
22898
  ["cc-hooks", "dashboard-autospawn"]
22897
22899
  ];
22898
22900
  }
@@ -26244,27 +26246,6 @@ var init_setup = __esm({
26244
26246
  }
26245
26247
  });
26246
26248
 
26247
- // src/cli/stopHookCmd.ts
26248
- var stopHookCmd_exports = {};
26249
- __export(stopHookCmd_exports, {
26250
- registerStopHook: () => registerStopHook
26251
- });
26252
- function registerStopHook(program2) {
26253
- program2.command("stop-hook").description("(internal) Stop hook \u2014 auto-recovers mode-B tool-call corruption (issue #6)").action(async () => {
26254
- try {
26255
- const mjs = join(getAssetsRoot(), "bin", "harnessed-stop-hook.mjs");
26256
- if (!existsSync(mjs)) return;
26257
- await import(pathToFileURL(mjs).href);
26258
- } catch {
26259
- }
26260
- });
26261
- }
26262
- var init_stopHookCmd = __esm({
26263
- "src/cli/stopHookCmd.ts"() {
26264
- init_assetsRoot();
26265
- }
26266
- });
26267
-
26268
26249
  // src/uninstallers/lib/runOrPreview.ts
26269
26250
  function dryRunGate(ctx) {
26270
26251
  if (ctx.opts.dryRun) return { aborted: true, reason: "dry-run" };
@@ -27935,7 +27916,6 @@ var { registerRollback: registerRollback2 } = await Promise.resolve().then(() =>
27935
27916
  var { registerRun: registerRun2 } = await Promise.resolve().then(() => (init_run2(), run_exports));
27936
27917
  var { registerSetup: registerSetup2 } = await Promise.resolve().then(() => (init_setup(), setup_exports));
27937
27918
  var { registerStatus: registerStatus2 } = await Promise.resolve().then(() => (init_status(), status_exports));
27938
- var { registerStopHook: registerStopHook2 } = await Promise.resolve().then(() => (init_stopHookCmd(), stopHookCmd_exports));
27939
27919
  var { registerUninstall: registerUninstall2 } = await Promise.resolve().then(() => (init_uninstall(), uninstall_exports));
27940
27920
  var { registerUpdate: registerUpdate2 } = await Promise.resolve().then(() => (init_update(), update_exports));
27941
27921
  var { registerWorkflows: registerWorkflows2 } = await Promise.resolve().then(() => (init_workflows(), workflows_exports));
@@ -28026,7 +28006,6 @@ registerUpdate2(program);
28026
28006
  registerReleasePreflight2(program);
28027
28007
  registerRetro2(program);
28028
28008
  registerInjectState2(program);
28029
- registerStopHook2(program);
28030
28009
  registerEval2(program);
28031
28010
  registerCheckDocs2(program);
28032
28011
  registerFacts2(program);