@christang/keel 5.227.0 → 5.228.0

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keel",
3
- "version": "5.227.0",
3
+ "version": "5.228.0",
4
4
  "description": "Keel OpenSpec execution discipline: stateless continuity, task capsules, deterministic gates, and expectation alignment for Codex and Claude Code.",
5
5
  "author": {
6
6
  "name": "TanglmChris",
@@ -1,4 +1,4 @@
1
- <!-- keel:start version=5.227.0 -->
1
+ <!-- keel:start version=5.228.0 -->
2
2
  ## Keel Bootstrap
3
3
 
4
4
  - Start every session with `keel context`; OpenSpec artifacts and Git are the durable authority, and memory or transcripts may only inform.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@christang/keel",
3
- "version": "5.227.0",
3
+ "version": "5.228.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@christang/keel",
9
- "version": "5.227.0",
9
+ "version": "5.228.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@fission-ai/openspec": "^1.4.1"
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@christang/keel",
3
3
  "displayName": "Keel",
4
4
  "description": "Keel OpenSpec execution discipline CLI for Claude Code, Codex, and OpenCode.",
5
- "version": "5.227.0",
5
+ "version": "5.228.0",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keel",
3
- "version": "5.227.0",
3
+ "version": "5.228.0",
4
4
  "description": "Keel OpenSpec execution discipline: stateless continuity, task capsules, deterministic gates, and expectation alignment for Codex and Claude Code.",
5
5
  "author": {
6
6
  "name": "TanglmChris",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keel",
3
- "version": "5.227.0",
3
+ "version": "5.228.0",
4
4
  "description": "Keel OpenSpec execution discipline: stateless continuity, task capsules, deterministic gates, and expectation alignment for Codex and Claude Code.",
5
5
  "author": {
6
6
  "name": "TanglmChris",
@@ -35,10 +35,10 @@ os.environ["KEEL_UPDATE_CLAUDE"] = str(Path(tempfile.gettempdir()) / "keel-suite
35
35
  os.environ["KEEL_UPDATE_CODEX"] = str(Path(tempfile.gettempdir()) / "keel-suite-has-no-codex")
36
36
 
37
37
 
38
- PACKAGE_VERSION = "5.227.0"
38
+ PACKAGE_VERSION = "5.228.0"
39
39
 
40
40
 
41
- PROTOCOL_VERSION = "5.227.0"
41
+ PROTOCOL_VERSION = "5.228.0"
42
42
 
43
43
 
44
44
  LEGACY_MANAGED_START = "<!-- keel:start version=2.1 -->"
@@ -812,8 +812,8 @@ def validate_tick_task_names_main_checkout_scenario() -> int:
812
812
  if from_a.returncode != 0:
813
813
  report(f"{label} keel tick task failed in a worktree: {from_a.stderr!r}")
814
814
  return 1
815
- if repo_of(from_a.stdout) != main or directory_of(from_a.stdout) != main:
816
- report(f"{label} the job printed from a worktree does not name the main checkout {main!r}: "
815
+ if repo_of(from_a.stdout) != main or directory_of(from_a.stdout) != "/":
816
+ report(f"{label} the job printed from a worktree does not name the main checkout {main!r} after --repo and / as WorkingDirectory: "
817
817
  f"--repo {repo_of(from_a.stdout)!r}, WorkingDirectory {directory_of(from_a.stdout)!r}")
818
818
  return 1
819
819
  for tree in (wa, wb):
@@ -824,8 +824,8 @@ def validate_tick_task_names_main_checkout_scenario() -> int:
824
824
  if from_main.returncode != 0:
825
825
  report(f"{label} keel tick task failed in the main checkout: {from_main.stderr!r}")
826
826
  return 1
827
- if repo_of(from_main.stdout) != main or directory_of(from_main.stdout) != main:
828
- report(f"{label} the job printed from the main checkout does not name it: {from_main.stdout!r}")
827
+ if repo_of(from_main.stdout) != main or directory_of(from_main.stdout) != "/":
828
+ report(f"{label} the job printed from the main checkout does not name the main checkout {main!r} after --repo and / as WorkingDirectory: {from_main.stdout!r}")
829
829
  return 1
830
830
  for needle in ("<integer>300</integer>", "<string>tick</string>", "launchctl bootstrap", "Keel creates nothing"):
831
831
  if needle not in from_main.stdout:
@@ -904,8 +904,8 @@ def validate_tick_task_without_patrol_scenario() -> int:
904
904
  return 1
905
905
  repo = named(printed.stdout, r"<string>--repo</string>\s*<string>(.*?)</string>")
906
906
  directory = named(printed.stdout, r"<key>WorkingDirectory</key>\s*<string>(.*?)</string>")
907
- if repo != main or directory != main:
908
- report(f"{label} the job printed in {where} does not name the main checkout {main!r}: --repo {repo!r}, WorkingDirectory {directory!r}")
907
+ if repo != main or directory != "/":
908
+ report(f"{label} the job printed in {where} does not name the main checkout {main!r} after --repo and / as WorkingDirectory: --repo {repo!r}, WorkingDirectory {directory!r}")
909
909
  return 1
910
910
  if os.path.realpath(wa) in printed.stdout:
911
911
  report(f"{label} the job printed in {where} names the worktree {os.path.realpath(wa)!r}: {printed.stdout!r}")
package/src/core/tick.js CHANGED
@@ -328,7 +328,9 @@ function task(where) {
328
328
  "<dict>",
329
329
  " <key>Label</key>", ` <string>${xml(label)}</string>`,
330
330
  " <key>ProgramArguments</key>", " <array>", ...args.map((arg) => ` <string>${xml(arg)}</string>`), " </array>",
331
- " <key>WorkingDirectory</key>", ` <string>${xml(repo)}</string>`,
331
+ // The job names its repository after --repo and runs from the root, so no
332
+ // tool that waits for a checkout to be idle counts a tick as a holder (#524).
333
+ " <key>WorkingDirectory</key>", ` <string>${xml(path.parse(repo).root || "/")}</string>`,
332
334
  " <key>EnvironmentVariables</key>", " <dict>", " <key>PATH</key>", ` <string>${xml(launchdPath(process.env.PATH))}</string>`, " </dict>",
333
335
  " <key>StartInterval</key>", ` <integer>${INTERVAL_SECONDS}</integer>`,
334
336
  " <key>StandardOutPath</key>", ` <string>${xml(path.join(logs, "tick.log"))}</string>`,
@@ -346,12 +348,12 @@ function renderTask(job) {
346
348
  // role's bound worktree on every run; otherwise the worktree is named, and
347
349
  // the job stops working if that worktree moves (#503).
348
350
  const where = job.patrolless
349
- ? `in ${job.stable ? "the main checkout" : "the worktree"} ${job.repo}; keel/config.yaml declares no \`patrol:\`, so each run resumes ended sessions and carries hand-overs out and runs no patrol${job.stable ? "" : `, and the job stops working if that worktree is moved or pruned (${job.why})`}`
351
+ ? `for ${job.stable ? "the main checkout" : "the worktree"} ${job.repo}; keel/config.yaml declares no \`patrol:\`, so each run resumes ended sessions and carries hand-overs out and runs no patrol${job.stable ? "" : `, and the job stops working if that worktree is moved or pruned (${job.why})`}`
350
352
  : job.stable
351
- ? `in the main checkout ${job.repo}, and the tick runs each declared patrol in the worktree its role is bound to when due, so binding a role elsewhere needs no new job`
352
- : `in the worktree ${job.repo}, because ${job.why}; the job stops working if that worktree is moved or pruned, so declare the \`patrol:\` in the main checkout and print it again`;
353
+ ? `for the main checkout ${job.repo}, and the tick runs each declared patrol in the worktree its role is bound to when due, so binding a role elsewhere needs no new job`
354
+ : `for the worktree ${job.repo}, because ${job.why}; the job stops working if that worktree is moved or pruned, so declare the \`patrol:\` in the main checkout and print it again`;
353
355
  return [
354
- `launchd job for \`keel tick\` (label ${job.label}): it calls \`keel tick\` every ${job.interval} s ${where}. Keel creates nothing: install it with the two commands below.`,
356
+ `launchd job for \`keel tick\` (label ${job.label}): it calls \`keel tick\` every ${job.interval} s ${where}, and runs from the filesystem root so the repository's checkout is never its working directory. Keel creates nothing: install it with the two commands below.`,
355
357
  "",
356
358
  job.plist,
357
359
  "",