harnessed 4.32.5 → 4.32.6

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.
@@ -11,7 +11,8 @@
11
11
  // compares its stdout to the TS builder.
12
12
  //
13
13
  // Phase 15 repo-aware: resolves the active repo's slot from
14
- // workflows.json[repoKey(cwd)] (legacy current-workflow.json as a fallback).
14
+ // workflows.json[repoKey(cwd)]. No legacy current-workflow.json fallback
15
+ // (removed 4.32.6 — it leaked cross-repo; see readWorkflow).
15
16
  // Root: HARNESSED_ROOT_OVERRIDE if set, else <homedir>/.claude/harnessed.
16
17
  import { createHash } from 'node:crypto'
17
18
  import { existsSync, mkdirSync, readdirSync, readFileSync, statSync, writeFileSync } from 'node:fs'
@@ -105,8 +106,8 @@ function shouldEmitPc(root, repoRoot, sid, pc) {
105
106
  }
106
107
  }
107
108
 
108
- // Phase 35 — try the session-scoped slot first, then the bare repoKey slot, then
109
- // the legacy singleton (dual-write anchor). `keys` is ordered most→least specific.
109
+ // Phase 35 — try the session-scoped slot first, then the bare repoKey slot.
110
+ // `keys` is ordered most→least specific. No legacy-singleton fallback (see below).
110
111
  // 4.22.0 — also surfaces the intent sidecar (same key order) for the freestyle nag.
111
112
  function readWorkflow(root, keys) {
112
113
  let wf = null
@@ -141,13 +142,13 @@ function readWorkflow(root, keys) {
141
142
  }
142
143
  }
143
144
  } catch {}
144
- if (!wf) {
145
- try {
146
- const legacyPath = join(root, 'current-workflow.json')
147
- wf = JSON.parse(readFileSync(legacyPath, 'utf8'))
148
- ledgerAgeMs = ageOf(legacyPath)
149
- } catch {}
150
- }
145
+ // NO legacy `current-workflow.json` fallback here (removed 4.32.6): the
146
+ // pre-Phase-15 global singleton carries no repo identity, so an unconditional
147
+ // fallback leaked one repo's workflow-state into EVERY repo lacking a slot —
148
+ // an independent new project would get a phantom <workflow-state> every turn.
149
+ // Migration of a genuine pre-Phase-15 root is owned by readStoreRaw
150
+ // (workflowStore.ts), which only reads the singleton when workflows.json is
151
+ // wholly absent; the hot-path hook only ever reads the per-repo store.
151
152
  return { wf, intent, ledgerAgeMs }
152
153
  }
153
154
 
package/dist/cli.mjs CHANGED
@@ -38,7 +38,7 @@ var init_package = __esm({
38
38
  "package.json"() {
39
39
  package_default = {
40
40
  name: "harnessed",
41
- version: "4.32.5",
41
+ version: "4.32.6",
42
42
  description: "AI coding harness package manager + composition orchestrator",
43
43
  type: "module",
44
44
  license: "Apache-2.0",