@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.
Files changed (70) hide show
  1. package/LICENSE +202 -21
  2. package/NOTICE +7 -0
  3. package/README.md +99 -12
  4. package/assets/oathe-hero.svg +92 -0
  5. package/bin/oathe.mjs +376 -0
  6. package/docs/PRIVACY.md +45 -0
  7. package/package.json +32 -23
  8. package/plugin/.claude-plugin/plugin.json +10 -0
  9. package/plugin/.mcp.json +13 -0
  10. package/plugin/hooks/frame-note.mjs +24 -0
  11. package/plugin/hooks/heartbeat.mjs +49 -0
  12. package/plugin/hooks/hooks.json +39 -0
  13. package/plugin/hooks/lib.mjs +83 -0
  14. package/plugin/hooks/render-board.mjs +11 -0
  15. package/plugin/skills/oathe-work/SKILL.md +33 -0
  16. package/src/atif.mjs +633 -0
  17. package/src/blocks.mjs +192 -0
  18. package/src/board-render.mjs +106 -0
  19. package/src/config.mjs +169 -0
  20. package/src/context.mjs +35 -0
  21. package/src/doctor.mjs +108 -0
  22. package/src/harness.mjs +271 -0
  23. package/src/init.mjs +92 -0
  24. package/src/launch-env.mjs +25 -0
  25. package/src/launch.mjs +259 -0
  26. package/src/manifest.mjs +89 -0
  27. package/src/mcp/oathe-tools.mjs +517 -0
  28. package/src/paths.mjs +49 -0
  29. package/src/plans.mjs +50 -0
  30. package/src/runtime/discharge.mjs +57 -0
  31. package/src/runtime/provider.mjs +154 -0
  32. package/src/runtime/simple-cage.mjs +67 -0
  33. package/src/runtime/sql-acceptance-lane.mjs +89 -0
  34. package/src/session-host.mjs +81 -0
  35. package/src/substrate.mjs +337 -0
  36. package/src/successor.mjs +31 -0
  37. package/src/traces.mjs +242 -0
  38. package/src/uninstall.mjs +45 -0
  39. package/src/verifier.mjs +322 -0
  40. package/src/workspace.mjs +47 -0
  41. package/vendor/ddl/001_core.sql +312 -0
  42. package/vendor/ddl/002_claim.sql +438 -0
  43. package/vendor/ddl/003_verification.sql +480 -0
  44. package/vendor/ddl/004_delegation.sql +397 -0
  45. package/vendor/ddl/005_escalation.sql +303 -0
  46. package/vendor/ddl/006_dependency.sql +384 -0
  47. package/vendor/ddl/007_assignment.sql +502 -0
  48. package/vendor/ddl/008_effect_receipt.sql +290 -0
  49. package/vendor/ddl/009_verified_edge.sql +452 -0
  50. package/vendor/ddl/010_parent_child_verification.sql +320 -0
  51. package/vendor/ddl/011_confirm.sql +288 -0
  52. package/vendor/ddl/012_evaluator_lane.sql +444 -0
  53. package/vendor/ddl/013_claim_terminal.sql +279 -0
  54. package/vendor/ddl/014_claim_settlement.sql +327 -0
  55. package/vendor/ddl/015_claim_yield.sql +213 -0
  56. package/vendor/ddl/016_reopened_reclaim.sql +285 -0
  57. package/vendor/ddl/017_claim_yield_causes.sql +357 -0
  58. package/vendor/ddl/018_receiptless_unknown.sql +249 -0
  59. package/vendor/ddl/019_verification_contract_freeze.sql +335 -0
  60. package/vendor/ddl/020_context_compilation.sql +105 -0
  61. package/vendor/ddl/021_execution_attempt_closure.sql +95 -0
  62. package/vendor/ddl/022_verification_clause.sql +106 -0
  63. package/vendor/ddl/023_executor_role.sql +66 -0
  64. package/vendor/ddl/024_executor_role_hardening.sql +439 -0
  65. package/vendor/ddl/025_running_attempt_uniqueness.sql +102 -0
  66. package/vendor/ddl/026_acceptance_authority.sql +230 -0
  67. package/vendor/ddl/027_ownership_return.sql +836 -0
  68. package/vendor/ddl/028_attempt_bind_ownership.sql +173 -0
  69. package/vendor/ddl/manifest.json +183 -0
  70. package/index.js +0 -33
@@ -0,0 +1,173 @@
1
+ -- 028_attempt_bind_ownership.sql — an execution attempt may not be bound beneath
2
+ -- an ownership interval that is no longer valid.
3
+ --
4
+ -- Contract: docs/a1-cell-work-spine-contract.md §1.2 (a claim is an interval of
5
+ -- RESPONSIBILITY; an attempt is the disposable runtime binding beneath it),
6
+ -- PRD 3.0 §5.2 R1/R2 and `:401`/`:414` (the organizational ownership horizon).
7
+ -- FOUNDER RULING R-A35-26 ruling 3, verbatim: *"Add a database-level refusal for
8
+ -- binding an execution attempt to a claim whose ownership interval is no longer
9
+ -- valid. Derive the exact allowed predicate from the authoritative PRD/DDL
10
+ -- ownership-terminal law; do not assume `state='active'` without resolving
11
+ -- `completion_asserted` and `ownership_ended_at`. This guard must cover Lane A,
12
+ -- ScopeAllocator, and direct writers."* Design of record:
13
+ -- the ownership-return design of record §6/C1 as corrected
14
+ -- 2026-08-25; predicate derivation in a3-r0-reconciliation.md §2.
15
+ --
16
+ -- Requires 001_core.sql (cell.execution_attempt and cell.work_claim, and the
17
+ -- biconditional this guard's two spellings rest on). It installs nothing outside
18
+ -- schema `cell` and alters no existing table, verb or trigger.
19
+ --
20
+ -- Re-apply: idempotent (CREATE OR REPLACE FUNCTION / TRIGGER).
21
+ -- Revert: DROP TRIGGER execution_attempt_binds_under_valid_ownership
22
+ -- ON cell.execution_attempt;
23
+ -- DROP FUNCTION cell.enforce_attempt_bind_ownership_is_valid();
24
+ -- (a reverted cell can bind a runtime beneath an interval whose
25
+ -- principal already handed the work away — the state this file exists
26
+ -- to end, not a safe resting place)
27
+ --
28
+ -- WHY THE ENFORCEMENT POINT IS THE SUBSTRATE AND NOT THE ALLOCATOR
29
+ --
30
+ -- The refusal was first designed into `ScopeAllocator.allocate`. MEASURED:
31
+ -- Lane A's bind path never touches ScopeAllocator — the durable executor's
32
+ -- `bindAttempt` INSERTs directly (`src/substrate.mjs:278-285`) and that package
33
+ -- has no the runtime package dependency at all. An allocator-side guard would have
34
+ -- been a guard one of the three writers walks past, which is the shape 002's
35
+ -- header already names as the reason the claim path is a database function:
36
+ -- "unique active ownership must hold for every writer, not only for writers that
37
+ -- remembered to call the library".
38
+ --
39
+ -- MEASURED at f45e9e64, and it is why this is a trigger rather than three
40
+ -- guards: `cell.execution_attempt` carried ZERO triggers (21 triggers across 12
41
+ -- other tables, none on this one); its only FK is existence/org; 025's partial
42
+ -- unique index was the sole bind-time exclusion; and no test in this package
43
+ -- bound an attempt to a non-`active` claim. There was no checker here to repair,
44
+ -- which is why this file's legs are BORN red rather than fixed.
45
+ --
46
+ -- THE PREDICATE, DERIVED
47
+ --
48
+ -- An attempt may bind IFF the claim's ownership interval is valid AT THE
49
+ -- ATTEMPT'S OWN INSTANT:
50
+ --
51
+ -- (a) `wc.state = 'active'`, which is the SAME TEST as
52
+ -- `wc.ownership_ended_at IS NULL` — 001_core.sql:183-184 is a
53
+ -- BICONDITIONAL, so the two select identical row sets and a
54
+ -- `completion_asserted` row with a NULL ownership_ended_at is unstorable.
55
+ -- Both spellings are cited in the refusal below so that a future
56
+ -- relaxation of that CHECK cannot silently widen this guard.
57
+ --
58
+ -- `completion_asserted` is refused with the rest: ownership ended at the
59
+ -- assertion — "the assertion IS the end of the author's responsibility"
60
+ -- (013_claim_terminal.sql:243-246) — and the replacement road is 012/016's
61
+ -- rejection → reopened task → NEW CLAIM (012:326-330, 016:82-85), never a
62
+ -- new attempt on the ended one. `yielded`, `aborted`, `taken_over` and
63
+ -- `expired` are refused for the same reason: all four carry
64
+ -- ownership_ended_at. The three verbless ones stay FC-E/W4 material — this
65
+ -- guard refuses a bind beneath them TODAY without claiming their designs.
66
+ --
67
+ -- (b) `NEW.started_at < wc.ownership_valid_until`, tested at the ROW's own
68
+ -- instant and never a `now()` inside this function. Lane A writes `now()`
69
+ -- in its INSERT and the allocator passes its own clock; either way the
70
+ -- instant the guard reads is the one the row states, because a runtime
71
+ -- must not be able to move a guard by choosing a clock (011:263-287,
72
+ -- 015:162-171). This clause is present because the ruling's own words are
73
+ -- "ownership interval is no longer valid" and `ownership_valid_until` IS
74
+ -- that validity (PRD `:401`, `:414`); the DDL cannot express expiry
75
+ -- (`expired` has no writer, FC-E), so this clause is what stops F2 leg
76
+ -- (a)'s RED state — a claim past its horizon with no terminal — from also
77
+ -- being an EXECUTING state.
78
+ --
79
+ -- WHAT THIS GUARD DOES NOT COVER, STATED RATHER THAN LEFT IMPLICIT
80
+ --
81
+ -- It tests the BIND. A claim that terminalizes MID-FLIGHT leaves a live attempt
82
+ -- beneath an ended interval and there is no substrate refusal for that: an
83
+ -- INSERT-time guard covers 0% of the update path by construction. The reader
84
+ -- that sees it is C3's sweep, which is a reader and not an invariant. Recorded
85
+ -- as the `ATTEMPT-BIND-OWNERSHIP` coverage row's first enumerated exemption
86
+ -- (zero_class: definitional), in falsifiers/rollup/manifest.mjs.
87
+ --
88
+ -- Declared failure vocabulary (FC190-FC199 reserved; 2 codes used). This file
89
+ -- opens a FRESH BLOCK rather than spending 027's two spare codes: the vocabulary
90
+ -- registry is keyed by FILE (tests/test_failure_vocabulary.py:47-94), a file
91
+ -- shares a neighbour's block only when its raises are genuinely the same lane's
92
+ -- rule, and this is not the ownership-return lane — its subject is
93
+ -- cell.execution_attempt, its writers are the executor role and the allocator,
94
+ -- and it fires for claims that never yielded. The nearest precedent is 025,
95
+ -- which took its own file for one rule about binding an execution_attempt.
96
+ -- FC190 ATTEMPT_BIND_OWNERSHIP_ENDED a runtime bound beneath an interval of
97
+ -- responsibility that has already ended
98
+ -- FC191 ATTEMPT_BIND_OWNERSHIP_HORIZON_PASSED a runtime bound at an instant at
99
+ -- or after the claim's own ownership
100
+ -- horizon
101
+
102
+ CREATE OR REPLACE FUNCTION cell.enforce_attempt_bind_ownership_is_valid()
103
+ RETURNS trigger
104
+ LANGUAGE plpgsql
105
+ AS $attempt_bind$
106
+ DECLARE
107
+ v_state text;
108
+ v_ended_at timestamptz;
109
+ v_valid_until timestamptz;
110
+ BEGIN
111
+ SELECT wc.state, wc.ownership_ended_at, wc.ownership_valid_until
112
+ INTO v_state, v_ended_at, v_valid_until
113
+ FROM cell.work_claim wc
114
+ WHERE wc.org_id = NEW.org_id AND wc.work_claim_id = NEW.work_claim_id;
115
+
116
+ IF NOT FOUND THEN
117
+ -- execution_attempt_claim_fkey is the authority on whether the named
118
+ -- claim exists, and it refuses this row at the end of the statement with
119
+ -- the FK's own message. A second, competing refusal here would report an
120
+ -- OWNERSHIP problem for what is a dangling reference — the same reasoning
121
+ -- 003_verification.sql:158-163 gives for standing aside in exactly this
122
+ -- position. This is not a guard declining to decide: the decision is
123
+ -- another constraint's and it is unconditional.
124
+ RETURN NEW;
125
+ END IF;
126
+
127
+ IF v_state IS DISTINCT FROM 'active' THEN
128
+ RAISE EXCEPTION
129
+ 'ATTEMPT_BIND_OWNERSHIP_ENDED:%/%:% — responsibility for this work '
130
+ 'ended at % (state ''%''), and a runtime bound beneath an ended '
131
+ 'interval would execute work whose principal no longer answers for it '
132
+ '(contract §1.2, PRD §5.2). `state = ''active''` and '
133
+ '`ownership_ended_at IS NULL` are the same test here — '
134
+ 'work_claim_active_claim_has_no_ownership_end makes them a '
135
+ 'biconditional — and both are named so a later relaxation of that '
136
+ 'CHECK cannot widen this refusal without a reader noticing. A '
137
+ 'completion assertion IS the end of the author''s responsibility '
138
+ '(013): the road back to execution is a rejection, a reopened task '
139
+ 'and a NEW CLAIM, never a new attempt on the ended one.',
140
+ NEW.org_id, NEW.work_claim_id, NEW.attempt_id,
141
+ coalesce(v_ended_at::text, '<no stamp, which is unstorable here>'),
142
+ v_state
143
+ USING ERRCODE = 'FC190';
144
+ END IF;
145
+
146
+ IF NEW.started_at >= v_valid_until THEN
147
+ RAISE EXCEPTION
148
+ 'ATTEMPT_BIND_OWNERSHIP_HORIZON_PASSED:%/%:% — this attempt starts at '
149
+ '% and the claim''s ownership horizon was %. The organizational '
150
+ 'window in which this principal answers for this work has passed and '
151
+ 'no terminal names it, which is F2 leg (a)''s RED state; binding here '
152
+ 'would make that state an EXECUTING one as well. The instant read is '
153
+ 'the ROW''s own started_at and never this trigger''s clock, so a '
154
+ 'runtime cannot move the guard by choosing when it says it began.',
155
+ NEW.org_id, NEW.work_claim_id, NEW.attempt_id,
156
+ NEW.started_at, v_valid_until
157
+ USING ERRCODE = 'FC191';
158
+ END IF;
159
+
160
+ RETURN NEW;
161
+ END;
162
+ $attempt_bind$;
163
+
164
+ COMMENT ON FUNCTION cell.enforce_attempt_bind_ownership_is_valid IS
165
+ 'FOUNDER RULING R-A35-26 ruling 3: an execution attempt binds only beneath a '
166
+ 'claim whose ownership interval is valid at the attempt''s own instant. A '
167
+ 'BEFORE INSERT trigger and not three call-site guards, because Lane A''s '
168
+ 'bindAttempt, ScopeAllocator.allocate and any direct writer under the '
169
+ 'executor role each issue their own INSERT and only the table sees all three.';
170
+
171
+ CREATE OR REPLACE TRIGGER execution_attempt_binds_under_valid_ownership
172
+ BEFORE INSERT ON cell.execution_attempt
173
+ FOR EACH ROW EXECUTE FUNCTION cell.enforce_attempt_bind_ownership_is_valid();
@@ -0,0 +1,183 @@
1
+ {
2
+ "generated_at": "2026-08-26T22:45:35.173Z",
3
+ "source": {
4
+ "repo": "oathe-runtime-monorepo (private)",
5
+ "commit": null,
6
+ "commit_note": "pre-D0 drop predates commit stamping; per-file source_sha256 pins the exact exported bytes — the commit lands with the next estate regeneration"
7
+ },
8
+ "transform": {
9
+ "version": "export-clean-1",
10
+ "script": "scripts/vendor-ddl.mjs"
11
+ },
12
+ "license": "Apache-2.0",
13
+ "files": [
14
+ {
15
+ "position": 1,
16
+ "name": "001_core.sql",
17
+ "source_sha256": "9537a30072f1aa0dede348f2393602e4631b1b9132a6d6294df286e05a512180",
18
+ "public_sha256": "9537a30072f1aa0dede348f2393602e4631b1b9132a6d6294df286e05a512180"
19
+ },
20
+ {
21
+ "position": 2,
22
+ "name": "002_claim.sql",
23
+ "source_sha256": "975ad95cbb6a3aea36a3631ff57ff333287be1d2fef841cceef4df96a042f512",
24
+ "public_sha256": "975ad95cbb6a3aea36a3631ff57ff333287be1d2fef841cceef4df96a042f512"
25
+ },
26
+ {
27
+ "position": 3,
28
+ "name": "003_verification.sql",
29
+ "source_sha256": "be3d3113adecc4e692134f20f7bbfe42adf503cfccdbc13200e9f511c5102934",
30
+ "public_sha256": "be3d3113adecc4e692134f20f7bbfe42adf503cfccdbc13200e9f511c5102934"
31
+ },
32
+ {
33
+ "position": 4,
34
+ "name": "004_delegation.sql",
35
+ "source_sha256": "e96dc76ab5fd05d222d7987273181c769f735b0b167da39428305fa3537f16a4",
36
+ "public_sha256": "e96dc76ab5fd05d222d7987273181c769f735b0b167da39428305fa3537f16a4"
37
+ },
38
+ {
39
+ "position": 5,
40
+ "name": "005_escalation.sql",
41
+ "source_sha256": "0e479a287d7524276e6ad49e8f25ad944afb9be68a5b8821e7cc99a837e217cd",
42
+ "public_sha256": "0e479a287d7524276e6ad49e8f25ad944afb9be68a5b8821e7cc99a837e217cd"
43
+ },
44
+ {
45
+ "position": 6,
46
+ "name": "006_dependency.sql",
47
+ "source_sha256": "6060070147323f8bdc126454acb890221c3d52c56acd1b267222634d7ccab77e",
48
+ "public_sha256": "6060070147323f8bdc126454acb890221c3d52c56acd1b267222634d7ccab77e"
49
+ },
50
+ {
51
+ "position": 7,
52
+ "name": "007_assignment.sql",
53
+ "source_sha256": "21018bc761a32fd99bed8cacb91f4466e917a52f99810272ea48d5a8c306b4e5",
54
+ "public_sha256": "21018bc761a32fd99bed8cacb91f4466e917a52f99810272ea48d5a8c306b4e5"
55
+ },
56
+ {
57
+ "position": 8,
58
+ "name": "008_effect_receipt.sql",
59
+ "source_sha256": "c4c96d55fcb241005d926c6e06637172a4925007a535abfe2ea3a70ba0abe78d",
60
+ "public_sha256": "c4c96d55fcb241005d926c6e06637172a4925007a535abfe2ea3a70ba0abe78d"
61
+ },
62
+ {
63
+ "position": 9,
64
+ "name": "009_verified_edge.sql",
65
+ "source_sha256": "9c1bcff2d2028b16151fa422237437c820de93e19f6cd76ce21287571ad4e514",
66
+ "public_sha256": "9c1bcff2d2028b16151fa422237437c820de93e19f6cd76ce21287571ad4e514"
67
+ },
68
+ {
69
+ "position": 10,
70
+ "name": "010_parent_child_verification.sql",
71
+ "source_sha256": "78508f5b9c816b166f7bc4d1c5fd4bd83789251a342381f49f771a5f377a2a7b",
72
+ "public_sha256": "78508f5b9c816b166f7bc4d1c5fd4bd83789251a342381f49f771a5f377a2a7b"
73
+ },
74
+ {
75
+ "position": 11,
76
+ "name": "011_confirm.sql",
77
+ "source_sha256": "59a608f8828491bffe9d5e3851c2a17a06f6ac8a97e58271e6b76a743668ab8a",
78
+ "public_sha256": "59a608f8828491bffe9d5e3851c2a17a06f6ac8a97e58271e6b76a743668ab8a"
79
+ },
80
+ {
81
+ "position": 12,
82
+ "name": "012_evaluator_lane.sql",
83
+ "source_sha256": "161cfbcb1b87471bee20a0ba537d190df5c000a3d453362f85ce2fb85dfe2b4f",
84
+ "public_sha256": "161cfbcb1b87471bee20a0ba537d190df5c000a3d453362f85ce2fb85dfe2b4f"
85
+ },
86
+ {
87
+ "position": 13,
88
+ "name": "013_claim_terminal.sql",
89
+ "source_sha256": "8652abc8a6e3479e749081d21afd0ab2f208b97a2c3dba25eca6bc13415c21e6",
90
+ "public_sha256": "8652abc8a6e3479e749081d21afd0ab2f208b97a2c3dba25eca6bc13415c21e6"
91
+ },
92
+ {
93
+ "position": 14,
94
+ "name": "014_claim_settlement.sql",
95
+ "source_sha256": "9bcd7c0b7dbea339e8db39d8b67b8c28eb1ecc83209fe5623649e17a7a0a500d",
96
+ "public_sha256": "9bcd7c0b7dbea339e8db39d8b67b8c28eb1ecc83209fe5623649e17a7a0a500d"
97
+ },
98
+ {
99
+ "position": 15,
100
+ "name": "015_claim_yield.sql",
101
+ "source_sha256": "6f81f1ac5d43534a87b841d7fbe30c4c4edf560eccb68fa2dc0363ac247f8884",
102
+ "public_sha256": "6f81f1ac5d43534a87b841d7fbe30c4c4edf560eccb68fa2dc0363ac247f8884"
103
+ },
104
+ {
105
+ "position": 16,
106
+ "name": "016_reopened_reclaim.sql",
107
+ "source_sha256": "14c76d54a1f5375d14398882ccc7aeb039040837e430dfcc0d5a3254b3edf15b",
108
+ "public_sha256": "14c76d54a1f5375d14398882ccc7aeb039040837e430dfcc0d5a3254b3edf15b"
109
+ },
110
+ {
111
+ "position": 17,
112
+ "name": "017_claim_yield_causes.sql",
113
+ "source_sha256": "bf4bf5f306cc37a922c78b910219076357e7318686a7c8cf1f1d2b48ccd04cc5",
114
+ "public_sha256": "bf4bf5f306cc37a922c78b910219076357e7318686a7c8cf1f1d2b48ccd04cc5"
115
+ },
116
+ {
117
+ "position": 18,
118
+ "name": "018_receiptless_unknown.sql",
119
+ "source_sha256": "9cb984c2fedf34b0a7fc67d81a0feaa4ed8b24f1c03855ecb11c1b3c4c9e0829",
120
+ "public_sha256": "9cb984c2fedf34b0a7fc67d81a0feaa4ed8b24f1c03855ecb11c1b3c4c9e0829"
121
+ },
122
+ {
123
+ "position": 19,
124
+ "name": "019_verification_contract_freeze.sql",
125
+ "source_sha256": "162751180fb4981952dbc52e29cd23bc2c8ee51f895b56e99a18eaa937d3dada",
126
+ "public_sha256": "162751180fb4981952dbc52e29cd23bc2c8ee51f895b56e99a18eaa937d3dada"
127
+ },
128
+ {
129
+ "position": 20,
130
+ "name": "020_context_compilation.sql",
131
+ "source_sha256": "66ba4015332651f4fe8ba4daeb6ac3481f5d09ab87805a1f3cf10be22aceb40a",
132
+ "public_sha256": "66ba4015332651f4fe8ba4daeb6ac3481f5d09ab87805a1f3cf10be22aceb40a"
133
+ },
134
+ {
135
+ "position": 21,
136
+ "name": "021_execution_attempt_closure.sql",
137
+ "source_sha256": "320604f087960504ef9238c68d3a2eb9b732740cd088c0bde36616b704922caf",
138
+ "public_sha256": "37fd774093d9ea1dd8649f9b34946a16d39c3feabd56fe8ab0c792d75aaf5fbe"
139
+ },
140
+ {
141
+ "position": 22,
142
+ "name": "022_verification_clause.sql",
143
+ "source_sha256": "290a02135b8f6b69aa10c9d2c130447ef53fbd0f6da5b19e1221f302b75b6647",
144
+ "public_sha256": "290a02135b8f6b69aa10c9d2c130447ef53fbd0f6da5b19e1221f302b75b6647"
145
+ },
146
+ {
147
+ "position": 23,
148
+ "name": "023_executor_role.sql",
149
+ "source_sha256": "ab55fe5fa5d81e816728d84a1a664ca55c58db2c642986b7d735835e7f59afc3",
150
+ "public_sha256": "ab55fe5fa5d81e816728d84a1a664ca55c58db2c642986b7d735835e7f59afc3"
151
+ },
152
+ {
153
+ "position": 24,
154
+ "name": "024_executor_role_hardening.sql",
155
+ "source_sha256": "590d2880a4333ef306cf9cf526d26766afb671d63fe0cf13fc7f4c4de9f96035",
156
+ "public_sha256": "590d2880a4333ef306cf9cf526d26766afb671d63fe0cf13fc7f4c4de9f96035"
157
+ },
158
+ {
159
+ "position": 25,
160
+ "name": "025_running_attempt_uniqueness.sql",
161
+ "source_sha256": "12b82dbfa178654d384ee91f7aef3318bb3c395b88394f40ef55c1b58d3fae17",
162
+ "public_sha256": "4bb9788351ad35bad24784114fd6932c74d1e3bcb8d57071daf2f483964abae5"
163
+ },
164
+ {
165
+ "position": 26,
166
+ "name": "026_acceptance_authority.sql",
167
+ "source_sha256": "86dccaabbc2db97e03b87d04a2f695deb35a21cbeae781155a0bbb08f52c8511",
168
+ "public_sha256": "b69719d5f0d8e1e6632b6465ca07e4422d0074406326018877ad9e3dd126a2f9"
169
+ },
170
+ {
171
+ "position": 27,
172
+ "name": "027_ownership_return.sql",
173
+ "source_sha256": "aa15552d03d33c02479b86ca12f61133c890f5744895c0f6b3941d75376b24f9",
174
+ "public_sha256": "a03776ecd5942a49b4c772a0148c24cbf165805a65218cafab9c76c3b3d69568"
175
+ },
176
+ {
177
+ "position": 28,
178
+ "name": "028_attempt_bind_ownership.sql",
179
+ "source_sha256": "b373a33ed0cd9c5f6cfa63a21e4ddcff4830302fa12bb93b4d4ba1d31c27d5b8",
180
+ "public_sha256": "8327e90f0da435d47ee094c4f4abd6fb97eb557de92b38f04ba7cf2adbb0d88b"
181
+ }
182
+ ]
183
+ }
package/index.js DELETED
@@ -1,33 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- // Placeholder release — the `oathe` package name is reserved for the
4
- // upcoming Oathe CLI/SDK. For the MCP server available today, see:
5
- // npx oathe-mcp
6
- // https://www.npmjs.com/package/oathe-mcp
7
-
8
- const message = [
9
- "oathe — AI security audits and trust scores for AI agents, MCP servers, and plugins",
10
- "",
11
- "This package is a placeholder; the Oathe CLI/SDK is coming soon.",
12
- "In the meantime, use the MCP server: npx oathe-mcp",
13
- "Learn more: https://oathe.ai",
14
- ].join("\n");
15
-
16
- export const VERSION = "0.0.1";
17
- export const PLACEHOLDER = true;
18
-
19
- // Print the notice when run directly (npx oathe / node index.js)
20
- import { fileURLToPath } from "node:url";
21
- import { realpathSync } from "node:fs";
22
-
23
- const isMain = (() => {
24
- try {
25
- return process.argv[1] && realpathSync(process.argv[1]) === fileURLToPath(import.meta.url);
26
- } catch {
27
- return false;
28
- }
29
- })();
30
-
31
- if (isMain) {
32
- console.log(message);
33
- }