@oathe/oathe 0.2.3 → 0.3.2
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/NOTICE +3 -4
- package/README.md +15 -45
- package/assets/oathe-hero.svg +92 -0
- package/bin/oathe.mjs +401 -59
- package/docs/PRIVACY.md +13 -5
- package/notch/Oathe Notch.app/Contents/Info.plist +13 -0
- package/notch/Oathe Notch.app/Contents/MacOS/OatheNotch +0 -0
- package/notch/Oathe Notch.app/Contents/_CodeSignature/CodeResources +115 -0
- package/notch/README.md +88 -0
- package/package.json +13 -4
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/.cursor-plugin/plugin.json +36 -0
- package/plugin/.mcp.json +1 -4
- package/plugin/commands/verify.md +18 -0
- package/plugin/hooks/frame-note.mjs +5 -3
- package/plugin/hooks/heartbeat.mjs +21 -25
- package/plugin/hooks/lib.mjs +96 -33
- package/plugin/hooks/render-board.mjs +47 -7
- package/src/activation.mjs +126 -0
- package/src/atif.mjs +4 -13
- package/src/blocks.mjs +113 -8
- package/src/board-render.mjs +55 -29
- package/src/config.mjs +100 -15
- package/src/context.mjs +4 -8
- package/src/doctor.mjs +96 -15
- package/src/fence.mjs +85 -0
- package/src/fslock.mjs +51 -0
- package/src/harnesses/catalog.mjs +180 -0
- package/src/harnesses/claude.mjs +196 -0
- package/src/harnesses/codex.mjs +188 -0
- package/src/harnesses/cursor.mjs +234 -0
- package/src/harnesses/dialects.mjs +52 -0
- package/src/harnesses/harness.mjs +203 -0
- package/src/harnesses/surfaces.mjs +71 -0
- package/src/home.mjs +107 -0
- package/src/init.mjs +101 -21
- package/src/launch-env.mjs +1 -51
- package/src/launch.mjs +36 -105
- package/src/manifest.mjs +7 -3
- package/src/mcp/connection.mjs +218 -0
- package/src/mcp/oathe-tools.mjs +380 -141
- package/src/notch.mjs +160 -0
- package/src/pager.mjs +178 -0
- package/src/paths.mjs +13 -1
- package/src/plans.mjs +10 -2
- package/src/registry.mjs +110 -0
- package/src/runtime/discharge.mjs +1 -1
- package/src/runtime/provider.mjs +10 -7
- package/src/runtime/simple-cage.mjs +18 -9
- package/src/runtime/sql-acceptance-lane.mjs +1 -1
- package/src/session-host.mjs +8 -6
- package/src/sessions.mjs +168 -0
- package/src/setup.mjs +494 -0
- package/src/speaker.mjs +65 -0
- package/src/statements.mjs +113 -0
- package/src/substrate.mjs +44 -0
- package/src/successor.mjs +1 -1
- package/src/traces.mjs +8 -8
- package/src/uninstall.mjs +10 -2
- package/src/verifier.mjs +135 -47
- package/src/verify-dispatch.mjs +169 -0
- package/src/welcome.mjs +32 -0
- package/src/wire.mjs +64 -0
- package/src/workspace-resolver.mjs +178 -0
- package/src/workspace.mjs +16 -5
- package/vendor/ddl/001_core.sql +1 -1
- package/vendor/ddl/004_delegation.sql +1 -1
- package/vendor/ddl/006_dependency.sql +1 -1
- package/vendor/ddl/008_effect_receipt.sql +1 -1
- package/vendor/ddl/009_verified_edge.sql +1 -1
- package/vendor/ddl/011_confirm.sql +2 -2
- package/vendor/ddl/manifest.json +8 -8
- package/assets/handoff-splash.png +0 -0
- 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
|
|
5
|
-
|
|
6
|
-
|
|
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,33 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
**Auto save across your harnesses.**
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-

|
|
8
|
-
|
|
9
|
-
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.**
|
|
10
|
-
|
|
11
|
-
That's oathe.
|
|
5
|
+

|
|
12
6
|
|
|
13
|
-
|
|
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.
|
|
14
8
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
You need Node ≥ 22 and a running Postgres. Every command below is real and exercised by the
|
|
18
|
-
test suite and a clean-container proof.
|
|
19
|
-
|
|
20
|
-
```bash
|
|
21
|
-
npm install -g @oathe/oathe@latest
|
|
22
|
-
|
|
23
|
-
cd your-project
|
|
24
|
-
oathe init # local substrate up (createdb + schema), both installed harnesses onboarded
|
|
25
|
-
oathe claude # a normal interactive session — the board shows, nothing auto-resumes
|
|
26
|
-
```
|
|
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.
|
|
27
10
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
What Oathe reads, stores, and sends: [docs/PRIVACY.md](docs/PRIVACY.md). The full
|
|
31
|
-
technical reference: [docs/PACKAGE.md](docs/PACKAGE.md).
|
|
11
|
+
[](https://github.com/oathe-ai/oathe/actions/workflows/ci.yml) [](LICENSE) [](https://discord.gg/sjrdWEj4W8)
|
|
32
12
|
|
|
33
13
|
## What gets saved
|
|
34
14
|
|
|
@@ -40,10 +20,10 @@ oathe goes up a layer of abstraction:
|
|
|
40
20
|
| Saved | Why it matters |
|
|
41
21
|
| --- | --- |
|
|
42
22
|
| The task and who owns it | The next agent continues *assigned work*, not the last sentence someone typed |
|
|
43
|
-
| Progress and evidence |
|
|
44
|
-
| Side-effect receipts |
|
|
45
|
-
|
|
|
46
|
-
| 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 |
|
|
47
27
|
|
|
48
28
|
Model context is a cache. Attention is everything.
|
|
49
29
|
|
|
@@ -60,7 +40,7 @@ task claimed
|
|
|
60
40
|
→ attempt 2 (Codex) gets a compiled bundle + a checkpoint
|
|
61
41
|
→ attempt 2 inspects the diff and reruns the test before trusting anything
|
|
62
42
|
→ work completes; the agent files a completion statement + evidence report.
|
|
63
|
-
→ a checker that didn't write
|
|
43
|
+
→ a checker that didn't write the code verifies the agent did exactly what it states
|
|
64
44
|
→ only then is the task settled
|
|
65
45
|
```
|
|
66
46
|
|
|
@@ -81,27 +61,17 @@ Two rules carry most of the weight:
|
|
|
81
61
|
|
|
82
62
|
Honest labels, kept current in [ROADMAP.md](ROADMAP.md):
|
|
83
63
|
|
|
84
|
-
- **Working:** durable tasks and attempts, death-and-recovery with a freshly compiled briefing, non-author verification, effect receipts (partial)
|
|
85
|
-
- **
|
|
86
|
-
- **Planned:** automatic pickup of interrupted work, cloud continuation, third-party
|
|
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.
|
|
87
67
|
|
|
88
68
|
Known limitations are disclosed in the roadmap, including the ones that are semi-embarrassing.
|
|
89
69
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
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.
|
|
70
|
+
<!-- QUICKSTART: fill from the actual pushed code — real install, real commands, real test run. Do not publish invented commands. -->
|
|
93
71
|
|
|
94
|
-
##
|
|
95
|
-
|
|
96
|
-
Claim work in-session through the `oathe_*` tools (or from the terminal):
|
|
72
|
+
## Under the hood
|
|
97
73
|
|
|
98
|
-
|
|
99
|
-
oathe claim fix-login "users can sign in again"
|
|
100
|
-
oathe note fix-login "found the stale token check"
|
|
101
|
-
oathe done fix-login "guard rewritten, test added" src/auth.test.js
|
|
102
|
-
oathe verify fix-login # a NON-author engine judges it from your recorded session traces
|
|
103
|
-
oathe ls # the board; `oathe uninstall` removes exactly what init recorded
|
|
104
|
-
```
|
|
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.
|
|
105
75
|
|
|
106
76
|
## Contributing
|
|
107
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">> </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">>_ 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>
|