@oathe/oathe 0.0.1 → 0.2.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.
- package/LICENSE +202 -21
- package/NOTICE +7 -0
- package/README.md +99 -12
- package/assets/oathe-hero.svg +92 -0
- package/bin/oathe.mjs +376 -0
- package/docs/PRIVACY.md +45 -0
- package/package.json +32 -23
- package/plugin/.claude-plugin/plugin.json +10 -0
- package/plugin/.mcp.json +13 -0
- package/plugin/hooks/frame-note.mjs +24 -0
- package/plugin/hooks/heartbeat.mjs +49 -0
- package/plugin/hooks/hooks.json +39 -0
- package/plugin/hooks/lib.mjs +83 -0
- package/plugin/hooks/render-board.mjs +11 -0
- package/plugin/skills/oathe-work/SKILL.md +33 -0
- package/src/atif.mjs +633 -0
- package/src/blocks.mjs +192 -0
- package/src/board-render.mjs +106 -0
- package/src/config.mjs +169 -0
- package/src/context.mjs +35 -0
- package/src/doctor.mjs +108 -0
- package/src/harness.mjs +271 -0
- package/src/init.mjs +92 -0
- package/src/launch-env.mjs +25 -0
- package/src/launch.mjs +259 -0
- package/src/manifest.mjs +89 -0
- package/src/mcp/oathe-tools.mjs +517 -0
- package/src/paths.mjs +49 -0
- package/src/plans.mjs +50 -0
- package/src/runtime/discharge.mjs +57 -0
- package/src/runtime/provider.mjs +154 -0
- package/src/runtime/simple-cage.mjs +67 -0
- package/src/runtime/sql-acceptance-lane.mjs +89 -0
- package/src/session-host.mjs +81 -0
- package/src/substrate.mjs +337 -0
- package/src/successor.mjs +31 -0
- package/src/traces.mjs +242 -0
- package/src/uninstall.mjs +45 -0
- package/src/verifier.mjs +322 -0
- package/src/workspace.mjs +47 -0
- package/vendor/ddl/001_core.sql +312 -0
- package/vendor/ddl/002_claim.sql +438 -0
- package/vendor/ddl/003_verification.sql +480 -0
- package/vendor/ddl/004_delegation.sql +397 -0
- package/vendor/ddl/005_escalation.sql +303 -0
- package/vendor/ddl/006_dependency.sql +384 -0
- package/vendor/ddl/007_assignment.sql +502 -0
- package/vendor/ddl/008_effect_receipt.sql +290 -0
- package/vendor/ddl/009_verified_edge.sql +452 -0
- package/vendor/ddl/010_parent_child_verification.sql +320 -0
- package/vendor/ddl/011_confirm.sql +288 -0
- package/vendor/ddl/012_evaluator_lane.sql +444 -0
- package/vendor/ddl/013_claim_terminal.sql +279 -0
- package/vendor/ddl/014_claim_settlement.sql +327 -0
- package/vendor/ddl/015_claim_yield.sql +213 -0
- package/vendor/ddl/016_reopened_reclaim.sql +285 -0
- package/vendor/ddl/017_claim_yield_causes.sql +357 -0
- package/vendor/ddl/018_receiptless_unknown.sql +249 -0
- package/vendor/ddl/019_verification_contract_freeze.sql +335 -0
- package/vendor/ddl/020_context_compilation.sql +105 -0
- package/vendor/ddl/021_execution_attempt_closure.sql +95 -0
- package/vendor/ddl/022_verification_clause.sql +106 -0
- package/vendor/ddl/023_executor_role.sql +66 -0
- package/vendor/ddl/024_executor_role_hardening.sql +439 -0
- package/vendor/ddl/025_running_attempt_uniqueness.sql +102 -0
- package/vendor/ddl/026_acceptance_authority.sql +230 -0
- package/vendor/ddl/027_ownership_return.sql +836 -0
- package/vendor/ddl/028_attempt_bind_ownership.sql +173 -0
- package/vendor/ddl/manifest.json +183 -0
- package/index.js +0 -33
package/LICENSE
CHANGED
|
@@ -1,21 +1,202 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright 2026 the oathe authors
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Oathe
|
|
2
|
+
Copyright 2026 the Oathe authors
|
|
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).
|
package/README.md
CHANGED
|
@@ -1,25 +1,112 @@
|
|
|
1
|
-
#
|
|
1
|
+
# oathe
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
**Auto save across your harnesses.**
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
> It currently does nothing beyond printing a notice.
|
|
5
|
+

|
|
7
6
|
|
|
8
|
-
|
|
7
|
+
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.
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
That's oathe.
|
|
10
|
+
|
|
11
|
+
Below is exactly how much of it works today, because a reliability project that overstates its own status would be a joke.
|
|
12
|
+
|
|
13
|
+
[](https://github.com/oathe-ai/oathe/actions/workflows/ci.yml) [](LICENSE)
|
|
14
|
+
|
|
15
|
+
## What gets saved
|
|
16
|
+
|
|
17
|
+
most harnesses save transcripts today.
|
|
18
|
+
when projects are getting bigger and bigger this is insufficient.
|
|
19
|
+
long-running systems are juggling so many tasks that the model loses attention.
|
|
20
|
+
oathe goes up a layer of abstraction:
|
|
21
|
+
|
|
22
|
+
| Saved | Why it matters |
|
|
23
|
+
| --- | --- |
|
|
24
|
+
| The task and who owns it | The next agent continues *assigned work*, not the last sentence someone typed |
|
|
25
|
+
| Progress and evidence | no grep, proper evidence and agent trajectory analysis |
|
|
26
|
+
| Side-effect receipts | critical actions get deduplicated etc. (A deploy, payment etc.) that already happened doesn't happen again on retry |
|
|
27
|
+
| Definition of done | established before agent work starts, so it can't quietly drift |
|
|
28
|
+
| workspace checkpoint | Branch, commit, and work-in-progress bytes survive your session |
|
|
29
|
+
|
|
30
|
+
Model context is a cache. Attention is everything.
|
|
31
|
+
|
|
32
|
+
If a session dies, oathe compiles a context bundle for the next attempt from saved state. It never pretends to recover an agent's hidden reasoning.
|
|
33
|
+
|
|
34
|
+
## How a handoff works
|
|
35
|
+
|
|
36
|
+
```text
|
|
37
|
+
task claimed
|
|
38
|
+
→ attempt 1 (Claude Code) works in a scoped workspace
|
|
39
|
+
→ checkpoint · checkpoint · checkpoint
|
|
40
|
+
→ attempt 1 dies (crash, kill, rate limit, closed laptop)
|
|
41
|
+
→ task survives, still owned
|
|
42
|
+
→ attempt 2 (Codex) gets a compiled bundle + a checkpoint
|
|
43
|
+
→ attempt 2 inspects the diff and reruns the test before trusting anything
|
|
44
|
+
→ work completes; the agent files a completion statement + evidence report.
|
|
45
|
+
→ a checker that didn't write any code/take actions verifies the agent did exactly what it states
|
|
46
|
+
→ only then is the task settled
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Two rules carry most of the weight:
|
|
50
|
+
|
|
51
|
+
1. **tasks outlive agent processes.** Death of an executing agent just creates a new attempt. tasks are durable.
|
|
52
|
+
2. **No agent grades its own homework.** "Done" is a claim; verification by a non-author is what closes work.
|
|
53
|
+
|
|
54
|
+
## What Oathe is not
|
|
55
|
+
|
|
56
|
+
- **Not a harness.** Claude Code, Codex, OpenClaw and friends keep their own prompts, tools, subagents, and UX. Oathe sits underneath.
|
|
57
|
+
- **Not a model router.** Routers pick where a turn runs. Oathe preserves what work exists, what already happened, and what would finish it.
|
|
58
|
+
- **Not transcript sync.** No copying hidden state between vendors.
|
|
59
|
+
- **Not a sandbox.** Oathe bounds and attributes attempt processes; compose it with your harness's sandbox or VM isolation for filesystem security.
|
|
60
|
+
- **Not a memory product.** Transcripts are evidence, never the source of truth.
|
|
61
|
+
|
|
62
|
+
## Status
|
|
63
|
+
|
|
64
|
+
Honest labels, kept current in [ROADMAP.md](ROADMAP.md):
|
|
65
|
+
|
|
66
|
+
- **Working:** durable tasks and attempts, death-and-recovery with a freshly compiled briefing, non-author verification, effect receipts (partial), cross harness handoff.
|
|
67
|
+
- **Building:** workspace checkpoints, teammate handoff, the reliability benchmark.
|
|
68
|
+
- **Planned:** automatic pickup of interrupted work, cloud continuation, third-party benchmarking.
|
|
69
|
+
|
|
70
|
+
Known limitations are disclosed in the roadmap, including the ones that are semi-embarrassing.
|
|
71
|
+
|
|
72
|
+
## Quickstart
|
|
73
|
+
|
|
74
|
+
You need Node ≥ 22 and a running Postgres. Every command below is real and exercised by the
|
|
75
|
+
test suite and a clean-container proof.
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
npm install -g @oathe/oathe
|
|
79
|
+
|
|
80
|
+
cd your-project
|
|
81
|
+
oathe init # local substrate up (createdb + schema), both installed harnesses onboarded
|
|
82
|
+
oathe claude # a normal interactive session — the board shows, nothing auto-resumes
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Claim work in-session through the `oathe_*` tools (or from the terminal):
|
|
11
86
|
|
|
12
87
|
```bash
|
|
13
|
-
|
|
88
|
+
oathe claim fix-login "users can sign in again"
|
|
89
|
+
oathe note fix-login "found the stale token check"
|
|
90
|
+
oathe done fix-login "guard rewritten, test added" src/auth.test.js
|
|
91
|
+
oathe verify fix-login # a NON-author engine judges it from your recorded session traces
|
|
92
|
+
oathe ls # the board; `oathe uninstall` removes exactly what init recorded
|
|
14
93
|
```
|
|
15
94
|
|
|
16
|
-
|
|
95
|
+
Ctrl-C anytime. Open `oathe codex` in the same folder — same board, same claims, other harness.
|
|
96
|
+
|
|
97
|
+
What Oathe reads, stores, and sends: [docs/PRIVACY.md](docs/PRIVACY.md). The full
|
|
98
|
+
technical reference: [docs/PACKAGE.md](docs/PACKAGE.md).
|
|
99
|
+
|
|
100
|
+
## Under the hood
|
|
101
|
+
|
|
102
|
+
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.
|
|
103
|
+
|
|
104
|
+
## Contributing
|
|
17
105
|
|
|
18
|
-
|
|
106
|
+
Start with [CONTRIBUTING.md](CONTRIBUTING.md). Substantial changes begin with a design issue. The most valuable first contribution is a reproducible failure-and-recovery scenario — if we claim a failure mode is handled, the repository should prove it.
|
|
19
107
|
|
|
20
|
-
|
|
21
|
-
- MCP server: https://www.npmjs.com/package/oathe-mcp
|
|
108
|
+
Governance is in [GOVERNANCE.md](GOVERNANCE.md). Report security issues privately per [SECURITY.md](SECURITY.md).
|
|
22
109
|
|
|
23
110
|
## License
|
|
24
111
|
|
|
25
|
-
|
|
112
|
+
[Apache-2.0](LICENSE)
|
|
@@ -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>
|