tickmarkr 1.37.0 → 1.40.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.
Files changed (73) hide show
  1. package/README.md +25 -23
  2. package/dist/adapters/claude-code.js +4 -4
  3. package/dist/adapters/codex.js +1 -1
  4. package/dist/adapters/fake.d.ts +2 -2
  5. package/dist/adapters/fake.js +29 -11
  6. package/dist/adapters/grok.js +5 -5
  7. package/dist/adapters/model-lints.d.ts +4 -4
  8. package/dist/adapters/model-lints.js +1 -1
  9. package/dist/adapters/prompt.js +8 -13
  10. package/dist/adapters/registry.d.ts +8 -8
  11. package/dist/adapters/registry.js +17 -17
  12. package/dist/adapters/types.d.ts +4 -4
  13. package/dist/adapters/types.js +3 -2
  14. package/dist/brand.d.ts +2 -0
  15. package/dist/brand.js +17 -0
  16. package/dist/cli/commands/approve.js +3 -3
  17. package/dist/cli/commands/compile.js +1 -1
  18. package/dist/cli/commands/doctor.js +3 -3
  19. package/dist/cli/commands/init.js +57 -19
  20. package/dist/cli/commands/plan.js +12 -1
  21. package/dist/cli/commands/profile.js +6 -6
  22. package/dist/cli/commands/resume.d.ts +4 -1
  23. package/dist/cli/commands/resume.js +4 -1
  24. package/dist/cli/commands/run.d.ts +4 -1
  25. package/dist/cli/commands/run.js +9 -1
  26. package/dist/cli/commands/status.js +2 -1
  27. package/dist/cli/commands/unlock.js +1 -1
  28. package/dist/cli/commands/version.d.ts +1 -0
  29. package/dist/cli/commands/version.js +8 -0
  30. package/dist/cli/index.d.ts +6 -3
  31. package/dist/cli/index.js +13 -18
  32. package/dist/compile/gsd.js +1 -1
  33. package/dist/compile/index.js +9 -3
  34. package/dist/compile/native.d.ts +2 -0
  35. package/dist/compile/native.js +12 -4
  36. package/dist/config/config.d.ts +9 -6
  37. package/dist/config/config.js +15 -13
  38. package/dist/drivers/herdr.js +5 -5
  39. package/dist/drivers/index.d.ts +2 -2
  40. package/dist/drivers/subprocess.js +12 -5
  41. package/dist/drivers/types.js +4 -6
  42. package/dist/gates/acceptance.d.ts +1 -0
  43. package/dist/gates/acceptance.js +25 -5
  44. package/dist/gates/baseline.d.ts +2 -2
  45. package/dist/gates/llm.js +12 -9
  46. package/dist/gates/review.d.ts +2 -2
  47. package/dist/gates/review.js +27 -8
  48. package/dist/gates/run-gates.d.ts +2 -2
  49. package/dist/gates/run-gates.js +2 -2
  50. package/dist/graph/graph.d.ts +2 -2
  51. package/dist/graph/graph.js +4 -16
  52. package/dist/graph/schema.d.ts +2 -0
  53. package/dist/graph/schema.js +16 -1
  54. package/dist/plan/prompt.js +1 -1
  55. package/dist/plan/scope.d.ts +2 -2
  56. package/dist/plan/scope.js +5 -5
  57. package/dist/route/preference.d.ts +4 -4
  58. package/dist/route/router.d.ts +3 -3
  59. package/dist/run/consult.d.ts +5 -2
  60. package/dist/run/consult.js +31 -7
  61. package/dist/run/daemon.js +31 -18
  62. package/dist/run/git.d.ts +1 -1
  63. package/dist/run/git.js +5 -9
  64. package/dist/run/journal.d.ts +2 -2
  65. package/dist/run/journal.js +4 -4
  66. package/dist/run/lock.js +11 -11
  67. package/dist/run/merge.d.ts +2 -2
  68. package/dist/run/merge.js +3 -3
  69. package/dist/run/reconcile.js +1 -1
  70. package/package.json +2 -2
  71. package/schema/rungraph.schema.json +4 -0
  72. package/skills/tickmarkr-auto/SKILL.md +23 -2
  73. package/skills/tickmarkr-loop/SKILL.md +23 -2
@@ -12,7 +12,7 @@ Use this for any spec that `tickmarkr compile` accepts. It is SDD-agnostic: use
12
12
  When working in a multi-agent terminal environment, decide your role before starting:
13
13
 
14
14
  - **Orchestrator:** your session was started to execute the mission. Rename your own tab/pane ORCHESTRATOR and run the loop below.
15
- - **Supervisor with a live orchestrator:** do not start a second run. Relay the mission to the existing orchestrator with a verified send, then supervise it as OVERSEER.
15
+ - **Supervisor with a live orchestrator:** do not start a second run. Relay the mission to the existing orchestrator with a [verified handoff](#verified-handoffs-agent-to-agent-messaging), then supervise it as OVERSEER.
16
16
  - **Primary session without an orchestrator:** rename your own tab OVERSEER, spawn one child orchestration session with `--permission-mode bypassPermissions`, label its tab ORCHESTRATOR, give it the mission and these rules verbatim, then supervise it. Do not drive a duplicate single-tier run yourself.
17
17
 
18
18
  Outside a multi-agent terminal environment, run the loop directly.
@@ -29,9 +29,30 @@ Outside a multi-agent terminal environment, run the loop directly.
29
29
 
30
30
  Proceed through the loop without seeking routine confirmation. Stop only for a blocked agent interaction, a genuinely unresolved stalled task, or a designed human gate. Diagnose from the journal and available evidence before escalating; if a harness defect is fixed and verified, resume the run.
31
31
 
32
+ ## Binary preflight (before compile or run)
33
+
34
+ Before `tickmarkr compile` or `tickmarkr run`, compare the installed binary against the repository's `package.json` version:
35
+
36
+ 1. Run `tickmarkr version` (one line, machine-parseable).
37
+ 2. Read the `version` field from the repository's `package.json`.
38
+ 3. If the binary is **older on major.minor** than the repo (e.g. binary `1.36.x` vs repo `1.38.x`), **stop immediately** and tell the operator to update the global install (`npm i -g tickmarkr@latest`) or link the repo binary. Do not compile, plan, or run on hope.
39
+
40
+ A stale binary silently skips daemon gates shipped in newer releases — the v1.38 run exposed this when a global `1.36.0` binary missed the daemon tip-verify gate entirely (OBS-38). Preflight failure is always stop-and-report; never proceed-and-hope.
41
+
42
+ ## Verified handoffs (agent-to-agent messaging)
43
+
44
+ When relaying missions between agents in a multi-agent terminal, **never use bare send-text** (`herdr agent send` / pane send-text) — it writes text without pressing Enter, so handoffs sit unsubmitted (OBS-39).
45
+
46
+ Use one of:
47
+
48
+ - `herdr pane run <pane> "<message>"` — text plus Enter in the target shell
49
+ - `herdr notification show "<message>"` — OS-level delivery for the operator
50
+
51
+ After sending, **confirm delivery** by reading the target pane and verifying the message landed (input empty, agent status `working`, or notification acknowledged). Never report "briefed" or "relayed" without read-back confirmation.
52
+
32
53
  ## The loop
33
54
 
34
- 1. **Prepare** — start from the requested spec. Check `git status`, confirm no tickmarkr run is active, and work from a non-main branch.
55
+ 1. **Prepare** — start from the requested spec. Run the [binary preflight](#binary-preflight-before-compile-or-run). Check `git status`, confirm no tickmarkr run is active, and work from a non-main branch.
35
56
  2. **Compile** — run `tickmarkr compile <spec>`. Correct compilation errors in the spec, never in the generated graph.
36
57
  3. **Plan** — run `tickmarkr plan`. Review the routing table, capability-floor warnings, and every human gate, including work that each gate blocks.
37
58
  4. **Run** — run `tickmarkr run`. Watch the run journal for its terminal event rather than repeatedly polling agents. Resolve blocked interactions in the agent session; do not turn them into proxy questions.