@oathe/oathe 0.2.2 → 0.3.1

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 (75) hide show
  1. package/NOTICE +3 -4
  2. package/README.md +14 -45
  3. package/assets/oathe-hero.svg +92 -0
  4. package/bin/oathe.mjs +397 -59
  5. package/docs/PRIVACY.md +13 -5
  6. package/notch/Oathe Notch.app/Contents/Info.plist +13 -0
  7. package/notch/Oathe Notch.app/Contents/MacOS/OatheNotch +0 -0
  8. package/notch/Oathe Notch.app/Contents/_CodeSignature/CodeResources +115 -0
  9. package/notch/README.md +88 -0
  10. package/package.json +13 -4
  11. package/plugin/.claude-plugin/plugin.json +1 -1
  12. package/plugin/.cursor-plugin/plugin.json +36 -0
  13. package/plugin/.mcp.json +1 -4
  14. package/plugin/commands/verify.md +18 -0
  15. package/plugin/hooks/frame-note.mjs +5 -3
  16. package/plugin/hooks/heartbeat.mjs +21 -25
  17. package/plugin/hooks/lib.mjs +96 -33
  18. package/plugin/hooks/render-board.mjs +47 -7
  19. package/src/activation.mjs +126 -0
  20. package/src/atif.mjs +4 -13
  21. package/src/blocks.mjs +113 -8
  22. package/src/board-render.mjs +55 -29
  23. package/src/config.mjs +100 -15
  24. package/src/context.mjs +4 -8
  25. package/src/doctor.mjs +96 -15
  26. package/src/fence.mjs +85 -0
  27. package/src/fslock.mjs +51 -0
  28. package/src/harnesses/catalog.mjs +180 -0
  29. package/src/harnesses/claude.mjs +196 -0
  30. package/src/harnesses/codex.mjs +188 -0
  31. package/src/harnesses/cursor.mjs +234 -0
  32. package/src/harnesses/dialects.mjs +52 -0
  33. package/src/harnesses/harness.mjs +203 -0
  34. package/src/harnesses/surfaces.mjs +71 -0
  35. package/src/home.mjs +107 -0
  36. package/src/init.mjs +101 -21
  37. package/src/launch-env.mjs +1 -51
  38. package/src/launch.mjs +37 -106
  39. package/src/manifest.mjs +7 -3
  40. package/src/mcp/connection.mjs +218 -0
  41. package/src/mcp/oathe-tools.mjs +380 -140
  42. package/src/notch.mjs +154 -0
  43. package/src/pager.mjs +178 -0
  44. package/src/paths.mjs +13 -1
  45. package/src/plans.mjs +10 -2
  46. package/src/registry.mjs +110 -0
  47. package/src/runtime/discharge.mjs +1 -1
  48. package/src/runtime/provider.mjs +10 -6
  49. package/src/runtime/simple-cage.mjs +32 -12
  50. package/src/runtime/sql-acceptance-lane.mjs +1 -1
  51. package/src/session-host.mjs +8 -6
  52. package/src/sessions.mjs +168 -0
  53. package/src/setup.mjs +494 -0
  54. package/src/speaker.mjs +65 -0
  55. package/src/statements.mjs +113 -0
  56. package/src/substrate.mjs +44 -0
  57. package/src/successor.mjs +3 -2
  58. package/src/traces.mjs +8 -8
  59. package/src/uninstall.mjs +10 -2
  60. package/src/verifier.mjs +135 -47
  61. package/src/verify-dispatch.mjs +169 -0
  62. package/src/welcome.mjs +32 -0
  63. package/src/wire.mjs +64 -0
  64. package/src/workspace-resolver.mjs +178 -0
  65. package/src/workspace.mjs +16 -5
  66. package/vendor/ddl/001_core.sql +1 -1
  67. package/vendor/ddl/004_delegation.sql +1 -1
  68. package/vendor/ddl/006_dependency.sql +1 -1
  69. package/vendor/ddl/008_effect_receipt.sql +1 -1
  70. package/vendor/ddl/009_verified_edge.sql +1 -1
  71. package/vendor/ddl/011_confirm.sql +2 -2
  72. package/vendor/ddl/manifest.json +8 -8
  73. package/assets/claude-splash.png +0 -0
  74. package/assets/resume-splash.png +0 -0
  75. package/src/harness.mjs +0 -271
package/NOTICE CHANGED
@@ -1,7 +1,6 @@
1
1
  Oathe
2
2
  Copyright 2026 the Oathe authors
3
3
 
4
- This product bundles vendored schema under vendor/ddl/: the cell-domain DDL,
5
- exported born-clean from the private Oathe runtime monorepo under the
6
- Apache-2.0 license. See vendor/ddl/manifest.json for two-sided per-file
7
- provenance (source and public sha256, transform version, application order).
4
+ This product includes software developed as part of the Oathe project
5
+ (https://github.com/oathe-ai/oathe), licensed under the Apache License,
6
+ Version 2.0.
package/README.md CHANGED
@@ -2,18 +2,13 @@
2
2
 
3
3
  **Auto save across your harnesses.**
4
4
 
5
- [![CI](https://github.com/oathe-ai/oathe/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/oathe-ai/oathe/actions/workflows/ci.yml) [![License](https://img.shields.io/badge/license-Apache--2.0-green.svg)](LICENSE) [![Discord](https://img.shields.io/badge/discord-join-5865F2?logo=discord&logoColor=white)](https://discord.gg/sjrdWEj4W8)
5
+ ![Claude Code hits its usage limit mid-fix; Codex opens in the same repo and Oathe resumes the task — progress, statements, and verification target intact.](assets/oathe-hero.svg)
6
6
 
7
- ![oathe claude: the session opens on the board, the agent claims the task and works — until the model's usage limit cuts it off.](assets/claude-splash.png)
7
+ You're mid-refactor in Claude Code when it hits a usage limit. You open Codex and it picks up the same task checkpointed, what's done, what's left, and a test that decides whether it's actually finished. Nothing pasted, nothing retyped, and the new agent doesn't have to take the old agent's word for anything because models are very good at being wrong AND confident.
8
8
 
9
- ![oathe codex: the next session greets the same board — the task still claimed, completion not asserted, last progress on the row — and Codex picks up in the same workspace.](assets/resume-splash.png)
10
-
11
- You're mid-refactor in Claude Code when it hits a usage limit. What if you could open Codex and it picks up the same task checkpointed, what's done, what's left, and a test that decides whether it's finished. No copy and paste, no re-explaining, and the new agent doesn't have to take the old agent's word for anything because models are getting too good at being wrong AND confident.
12
-
13
- That's oathe.
14
-
15
- Below is exactly how much of it works today, because a reliability project that overstates its own status would be a joke.
9
+ That's the product. Below is exactly how much of it works today, because a reliability project that overstates its own status would be a joke.
16
10
 
11
+ [![CI](https://github.com/oathe-ai/oathe/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/oathe-ai/oathe/actions/workflows/ci.yml) [![License](https://img.shields.io/badge/license-Apache--2.0-green.svg)](LICENSE)
17
12
 
18
13
  ## What gets saved
19
14
 
@@ -25,10 +20,10 @@ oathe goes up a layer of abstraction:
25
20
  | Saved | Why it matters |
26
21
  | --- | --- |
27
22
  | The task and who owns it | The next agent continues *assigned work*, not the last sentence someone typed |
28
- | Progress and evidence | no grep, proper evidence and agent trajectory analysis |
29
- | Side-effect receipts | critical actions get deduplicated etc. (A deploy, payment etc.) that already happened doesn't happen again on retry |
30
- | Definition of done | established before agent work starts, so it can't quietly drift |
31
- | workspace checkpoint | Branch, commit, and work-in-progress bytes survive your session |
23
+ | Progress and evidence | Finished parts don't get rediscovered by archaeology |
24
+ | Side-effect receipts | A payment, deploy, or message that already happened doesn't happen again on retry |
25
+ | The definition of done | assigned before agent work starts, so it can't quietly drift |
26
+ | A workspace checkpoint | Branch, commit, and work-in-progress bytes survive your session |
32
27
 
33
28
  Model context is a cache. Attention is everything.
34
29
 
@@ -45,7 +40,7 @@ task claimed
45
40
  → attempt 2 (Codex) gets a compiled bundle + a checkpoint
46
41
  → attempt 2 inspects the diff and reruns the test before trusting anything
47
42
  → work completes; the agent files a completion statement + evidence report.
48
- → a checker that didn't write any code/take actions verifies the agent did exactly what it states
43
+ → a checker that didn't write the code verifies the agent did exactly what it states
49
44
  → only then is the task settled
50
45
  ```
51
46
 
@@ -66,43 +61,17 @@ Two rules carry most of the weight:
66
61
 
67
62
  Honest labels, kept current in [ROADMAP.md](ROADMAP.md):
68
63
 
69
- - **Working:** durable tasks and attempts, death-and-recovery with a freshly compiled briefing, non-author verification, effect receipts (partial), cross harness handoff.
70
- - **Building:** workspace checkpoints, teammate handoff, the reliability benchmark.
71
- - **Planned:** automatic pickup of interrupted work, cloud continuation, third-party benchmarking.
64
+ - **Working:** durable tasks and attempts, death-and-recovery with a freshly compiled briefing, non-author verification, effect receipts (partial).
65
+ - **Designed:** workspace checkpoints, the Claude→Codex end-to-end path, teammate handoff, the reliability benchmark, per-harness drift monitors (docs, install, and live lanes — proven on a developer machine against Claude Code, Codex, and Cursor; the scheduled workflows go live with this repository).
66
+ - **Planned:** automatic pickup of interrupted work, cloud continuation, third-party conformance.
72
67
 
73
68
  Known limitations are disclosed in the roadmap, including the ones that are semi-embarrassing.
74
69
 
75
- ## Quickstart
76
-
77
- You need Node ≥ 22 and a running Postgres. Every command below is real and exercised by the
78
- test suite and a clean-container proof.
79
-
80
- ```bash
81
- npm install -g @oathe/oathe
82
-
83
- cd your-project
84
- oathe init # local substrate up (createdb + schema), both installed harnesses onboarded
85
- oathe claude # a normal interactive session — the board shows, nothing auto-resumes
86
- ```
87
-
88
- Claim work in-session through the `oathe_*` tools (or from the terminal):
89
-
90
- ```bash
91
- oathe claim fix-login "users can sign in again"
92
- oathe note fix-login "found the stale token check"
93
- oathe done fix-login "guard rewritten, test added" src/auth.test.js
94
- oathe verify fix-login # a NON-author engine judges it from your recorded session traces
95
- oathe ls # the board; `oathe uninstall` removes exactly what init recorded
96
- ```
97
-
98
- Ctrl-C anytime. Open `oathe codex` in the same folder — same board, same claims, other harness.
99
-
100
- What Oathe reads, stores, and sends: [docs/PRIVACY.md](docs/PRIVACY.md). The full
101
- technical reference: [docs/PACKAGE.md](docs/PACKAGE.md).
70
+ <!-- QUICKSTART: fill from the actual pushed code — real install, real commands, real test run. Do not publish invented commands. -->
102
71
 
103
72
  ## Under the hood
104
73
 
105
- A small runtime plus a Postgres schema that carries the invariants. The database is deliberately "load-bearing": the rules that keep work safe (one current attempt per task, receipts before effects, verification before settlement) are enforced where no caller can route around them. Harness adapters are thin; our substrate is strict.
74
+ A small runtime plus a Postgres schema that carries the invariants. The database is deliberately load-bearing: the rules that keep work safe (one current attempt per task, receipts before effects, verification before settlement) are enforced where no caller can route around them. Harness adapters are thin; the substrate is strict.
106
75
 
107
76
  ## Contributing
108
77
 
@@ -0,0 +1,92 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 900 856" font-family="Menlo, 'SF Mono', Consolas, 'Liberation Mono', 'DejaVu Sans Mono', monospace" font-size="13">
2
+ <style>text { white-space: pre; }</style>
3
+ <defs>
4
+ <clipPath id="winTop"><rect x="0" y="0" width="900" height="468" rx="10"/></clipPath>
5
+ <clipPath id="winBot"><rect x="0" y="492" width="900" height="364" rx="10"/></clipPath>
6
+ </defs>
7
+
8
+ <!-- ===== Top window: Claude Code ===== -->
9
+ <g clip-path="url(#winTop)">
10
+ <rect x="0" y="0" width="900" height="468" fill="#111214"/>
11
+ <rect x="0" y="0" width="900" height="32" fill="#1b1c20"/>
12
+ </g>
13
+ <rect x="0.5" y="0.5" width="899" height="467" rx="10" fill="none" stroke="#2a2c33"/>
14
+ <circle cx="22" cy="16" r="6" fill="#ff5f57"/>
15
+ <circle cx="42" cy="16" r="6" fill="#febc2e"/>
16
+ <circle cx="62" cy="16" r="6" fill="#28c840"/>
17
+ <text x="450" y="21" text-anchor="middle" fill="#8b8f98">checkout-service — claude</text>
18
+
19
+ <!-- Claude Code pixel mascot -->
20
+ <g fill="#d97757">
21
+ <rect x="24" y="48" width="40" height="32"/>
22
+ <rect x="26" y="80" width="5" height="8"/>
23
+ <rect x="37" y="80" width="5" height="8"/>
24
+ <rect x="48" y="80" width="5" height="8"/>
25
+ <rect x="59" y="80" width="5" height="8"/>
26
+ </g>
27
+ <rect x="36" y="56" width="4" height="12" fill="#2a1a12"/>
28
+ <rect x="50" y="56" width="4" height="12" fill="#2a1a12"/>
29
+
30
+ <g xml:space="preserve" fill="#d6d8dd">
31
+ <text x="76" y="60"><tspan font-weight="bold" fill="#e8eaef">Claude Code</tspan><tspan fill="#8b8f98"> v2.1.239</tspan></text>
32
+ <text x="76" y="80" fill="#8b8f98">Fable 5 with xhigh effort · Claude Max</text>
33
+ <text x="76" y="100" fill="#8b8f98">~/checkout-service</text>
34
+
35
+ <text x="24" y="136"><tspan fill="#8b8f98">&gt; </tspan><tspan fill="#e8eaef">Customers get double-charged on checkout retries — find and fix it.</tspan></text>
36
+
37
+ <text x="24" y="172"><tspan fill="#4ec97a">● </tspan><tspan>capturePayment omits the order's idempotency key, so a retried request opens a</tspan></text>
38
+ <text x="24" y="192"><tspan> second charge. I'll thread it through the gateway call.</tspan></text>
39
+
40
+ <text x="24" y="220"><tspan fill="#4ec97a">● </tspan><tspan font-weight="bold" fill="#e8eaef">Read</tspan><tspan fill="#6cb6ff">(src/capturePayment.ts, gateway.ts)</tspan></text>
41
+ <text x="24" y="240" fill="#8b8f98"> ⎿ Read 2 files</text>
42
+
43
+ <text x="24" y="268"><tspan fill="#4ec97a">● </tspan><tspan font-weight="bold" fill="#e8eaef">Update</tspan><tspan fill="#6cb6ff">(src/capturePayment.ts)</tspan></text>
44
+ <text x="24" y="288" fill="#8b8f98"> ⎿ Added 1 line, removed 1 line</text>
45
+
46
+ <text x="24" y="312" fill="#8b8f98"> 22 const res = await gateway.charge({</text>
47
+ <rect x="12" y="320" width="876" height="20" fill="#3b1517"/>
48
+ <text x="24" y="334"><tspan fill="#8b8f98"> 23 </tspan><tspan fill="#f47067">- source: order.token,</tspan></text>
49
+ <rect x="12" y="340" width="876" height="20" fill="#13351d"/>
50
+ <text x="24" y="354"><tspan fill="#8b8f98"> 23 </tspan><tspan fill="#7ee787">+ source: order.token, idempotencyKey: order.idempotencyKey,</tspan></text>
51
+ <text x="24" y="374" fill="#8b8f98"> 24 })</text>
52
+
53
+ <text x="24" y="402"><tspan fill="#4ec97a">● </tspan><tspan font-weight="bold" fill="#e8eaef">Bash</tspan><tspan fill="#6cb6ff">(node --test test/payment.idempotency.test.js)</tspan></text>
54
+ <text x="24" y="422" fill="#8b8f98"> ⎿ Running verification…</text>
55
+
56
+ <text x="24" y="450"><tspan fill="#e5a44c">⚠ Claude usage limit reached · resets 1:00 AM · run /upgrade to raise your limit</tspan></text>
57
+ </g>
58
+
59
+ <!-- ===== Bottom window: Codex ===== -->
60
+ <g clip-path="url(#winBot)">
61
+ <rect x="0" y="492" width="900" height="364" fill="#111214"/>
62
+ <rect x="0" y="492" width="900" height="32" fill="#1b1c20"/>
63
+ </g>
64
+ <rect x="0.5" y="492.5" width="899" height="363" rx="10" fill="none" stroke="#2a2c33"/>
65
+ <circle cx="22" cy="508" r="6" fill="#ff5f57"/>
66
+ <circle cx="42" cy="508" r="6" fill="#febc2e"/>
67
+ <circle cx="62" cy="508" r="6" fill="#28c840"/>
68
+ <text x="450" y="513" text-anchor="middle" fill="#8b8f98">checkout-service — codex</text>
69
+
70
+ <g xml:space="preserve" fill="#d6d8dd">
71
+ <text x="24" y="552" fill="#8b8f98">(base) dev@macbook-pro checkout-service % <tspan font-weight="bold" fill="#e8eaef">codex</tspan></text>
72
+
73
+ <rect x="20" y="564" width="420" height="52" rx="6" fill="none" stroke="#3a3f4b"/>
74
+ <text x="34" y="586"><tspan font-weight="bold" fill="#e8eaef">&gt;_ OpenAI Codex</tspan><tspan fill="#8b8f98"> model: gpt-5.6</tspan></text>
75
+ <text x="34" y="606" fill="#8b8f98"> directory: ~/checkout-service</text>
76
+
77
+ <text x="24" y="642"><tspan fill="#4ec97a">● </tspan><tspan font-weight="bold" fill="#e8eaef">oathe</tspan><tspan fill="#8b8f98"> · unfinished work found — </tspan><tspan fill="#e8eaef">handoff from claude-code</tspan></text>
78
+ <text x="24" y="668"><tspan fill="#8b8f98"> work </tspan><tspan>prevent duplicate charge on checkout retry</tspan></text>
79
+ <text x="24" y="688"><tspan fill="#8b8f98"> progress </tspan><tspan>idempotency guard implemented in capturePayment.ts</tspan></text>
80
+ <text x="24" y="708"><tspan fill="#8b8f98"> effects </tspan><tspan fill="#6cb6ff">charge ch_4821</tspan><tspan> already recorded — </tspan><tspan fill="#4ec97a">will not repeat</tspan></text>
81
+ <text x="24" y="728"><tspan fill="#8b8f98"> verify </tspan><tspan fill="#6cb6ff">payment-idempotency</tspan><tspan> contract</tspan></text>
82
+ <text x="24" y="748"><tspan fill="#8b8f98"> next </tspan><tspan>run verification</tspan></text>
83
+
84
+ <rect x="238" y="768" width="44" height="22" rx="5" fill="#1d3b28" stroke="#2ea55f"/>
85
+ <text x="24" y="783"><tspan fill="#4ec97a">❯ </tspan><tspan fill="#e8eaef">Resume this work?</tspan></text>
86
+ <text x="248" y="783" fill="#7ee787">Yes</text>
87
+ <text x="296" y="783" fill="#8b8f98">No</text>
88
+
89
+ <text x="24" y="815"><tspan fill="#4ec97a">● </tspan><tspan>Resuming open oathe claim</tspan></text>
90
+ <text x="24" y="839"><tspan fill="#4ec97a">● </tspan><tspan>Running <tspan fill="#6cb6ff">payment-idempotency</tspan> contract…</tspan></text>
91
+ </g>
92
+ </svg>