@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.
- package/NOTICE +3 -4
- package/README.md +14 -45
- package/assets/oathe-hero.svg +92 -0
- package/bin/oathe.mjs +397 -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 +37 -106
- package/src/manifest.mjs +7 -3
- package/src/mcp/connection.mjs +218 -0
- package/src/mcp/oathe-tools.mjs +380 -140
- package/src/notch.mjs +154 -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 -6
- package/src/runtime/simple-cage.mjs +32 -12
- 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 +3 -2
- 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/claude-splash.png +0 -0
- package/assets/resume-splash.png +0 -0
- package/src/harness.mjs +0 -271
package/src/wire.mjs
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
// oathe — the wire: one pg_notify per successful speech act, so an ambient surface (the
|
|
2
|
+
// notch feed, `oathe notch --serve`) hears a write the moment it lands instead of polling.
|
|
3
|
+
// The substrate stays the one source of truth — an event is a NUDGE, never a record: the
|
|
4
|
+
// feed recomputes its frame from durable facts on every wake, and a lost notification costs
|
|
5
|
+
// at most one heartbeat of staleness. Reads never emit (a feed that echoed its own reads
|
|
6
|
+
// would ring forever).
|
|
7
|
+
//
|
|
8
|
+
// Emission is fail-soft BY RULING exception: the speech act must stand even when the wire
|
|
9
|
+
// is down — but the failure is reported visibly on stderr, never swallowed.
|
|
10
|
+
|
|
11
|
+
export const WIRE_CHANNEL = 'oathe_wire';
|
|
12
|
+
|
|
13
|
+
/** WRITE tools only — the kind is the speech act's own name in the past tense. */
|
|
14
|
+
export const WIRE_KINDS = Object.freeze({
|
|
15
|
+
oathe_claim: 'claimed',
|
|
16
|
+
oathe_statement: 'progress',
|
|
17
|
+
oathe_amend: 'amended',
|
|
18
|
+
oathe_yield: 'yielded',
|
|
19
|
+
oathe_done: 'asserted',
|
|
20
|
+
oathe_verify: 'verify_dispatched',
|
|
21
|
+
oathe_pickup: 'restored',
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* The acts whose speaker session is EVIDENCE on the claim — linkTrace rides these and
|
|
26
|
+
* only these. oathe_verify is excluded on purpose: dispatching judgment is not working
|
|
27
|
+
* the task, and a bystander's transcript must never enter the evidence under judgment.
|
|
28
|
+
*/
|
|
29
|
+
export const LINKABLE = Object.freeze(new Set(
|
|
30
|
+
Object.keys(WIRE_KINDS).filter((name) => name !== 'oathe_verify')));
|
|
31
|
+
|
|
32
|
+
/** ONE wording for the restored-state receipt — the pickup result and the feed both speak it. */
|
|
33
|
+
export function restoredReceipt(taskId) {
|
|
34
|
+
return `🎉 Oathe restored your session state — '${taskId}' picked back up.`;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* The wire kinds that surface as an ephemeral NOTICE on the glass — one wording each, one
|
|
39
|
+
* tone each: sage is a receipt riding the act, amber is a deviation that changes what you
|
|
40
|
+
* do next (the verifier rejecting a completion — founder ruling 2026-08-30). The reopened
|
|
41
|
+
* task also stands in the breach list, so the notice can fade without losing the fact.
|
|
42
|
+
* @returns {{text: string, tone: 'sage'|'amber'}|null}
|
|
43
|
+
*/
|
|
44
|
+
export function noticeFor(kind, taskId, via = null) {
|
|
45
|
+
if (kind === 'restored') return { text: restoredReceipt(taskId), tone: 'sage' };
|
|
46
|
+
if (kind === 'rejected') return { text: `✗ '${taskId}' reopened — verification rejected.`, tone: 'amber' };
|
|
47
|
+
if (kind === 'settled') return { text: `✓ '${taskId}' verified — settled.`, tone: 'sage' };
|
|
48
|
+
if (kind === 'verify_failed') return { text: `✗ verification of '${taskId}' failed${via ? ` (${via})` : ''} — retry from the glass.`, tone: 'amber' };
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export async function emit(client, { kind, task_id, via, app }) {
|
|
53
|
+
try {
|
|
54
|
+
await client.query('SELECT pg_notify($1, $2)',
|
|
55
|
+
[WIRE_CHANNEL, JSON.stringify({
|
|
56
|
+
kind, task_id: task_id ?? null, via: via ?? null,
|
|
57
|
+
app: app ?? null, // the act's living app {bundle, pid} — a homeless task still knows where it is spoken from
|
|
58
|
+
at: new Date().toISOString(),
|
|
59
|
+
})]);
|
|
60
|
+
} catch (e) {
|
|
61
|
+
process.stderr.write(`oathe wire: emit failed (${String(e?.message || e).slice(0, 120)}) `
|
|
62
|
+
+ '— the write stands; the glass catches up on its heartbeat\n');
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
// oathe — the ONE workspace-resolution ladder. Every surface that must answer "which folder is
|
|
2
|
+
// this session about?" — the MCP server, hooks, CLI verbs, doctor — resolves through here,
|
|
3
|
+
// lazily, never at process startup:
|
|
4
|
+
//
|
|
5
|
+
// 1. OATHE_WORKSPACE_DIR (explicit binding; an unexpanded ${...} template is skipped)
|
|
6
|
+
// 2. harness project-dir env vars (the catalog sweep — CLAUDE_PROJECT_DIR, CURSOR_PROJECT_DIR)
|
|
7
|
+
// 3. MCP roots (the protocol's own answer, when the client offers one)
|
|
8
|
+
// 4. process cwd (refused for / and the home directory — a home-dir board is
|
|
9
|
+
// silently wrong, and fail-loud beats a wrong default)
|
|
10
|
+
// 5. OATHE_WORKSPACE_UNRESOLVED (naming every input received verbatim, and the fix)
|
|
11
|
+
//
|
|
12
|
+
// Every skipped rung leaves a diagnostic; the winner's `source` names the rung that decided.
|
|
13
|
+
// A resolution also carries `synthetic` (R-BOARD-SCOPE): whether the directory is one a
|
|
14
|
+
// harness stages for folderless sessions — derived HERE (describe) and threaded everywhere.
|
|
15
|
+
|
|
16
|
+
import fs from 'node:fs';
|
|
17
|
+
import os from 'node:os';
|
|
18
|
+
import { fileURLToPath } from 'node:url';
|
|
19
|
+
|
|
20
|
+
import { isSyntheticWorkspace, projectDirEnvVars } from './harnesses/catalog.mjs';
|
|
21
|
+
import { workspaceRef, workspaceRoot } from './workspace.mjs';
|
|
22
|
+
|
|
23
|
+
export class WorkspaceResolveError extends Error {
|
|
24
|
+
constructor(code, message, details = {}) {
|
|
25
|
+
super(message);
|
|
26
|
+
this.name = 'WorkspaceResolveError';
|
|
27
|
+
this.code = code;
|
|
28
|
+
this.details = details;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export class WorkspaceResolver {
|
|
33
|
+
/**
|
|
34
|
+
* @param {{env?: NodeJS.ProcessEnv, cwd?: () => string, rootsProvider?: (() => Promise<Array<{uri: string}>>)|null,
|
|
35
|
+
* timeoutMs?: number, home?: string}} o
|
|
36
|
+
* rootsProvider — pass one ONLY when the connected client declared the roots capability.
|
|
37
|
+
*/
|
|
38
|
+
constructor({ env = process.env, cwd = () => process.cwd(), rootsProvider = null, timeoutMs = 2000, home = os.homedir() } = {}) {
|
|
39
|
+
this.env = env;
|
|
40
|
+
this.cwd = cwd;
|
|
41
|
+
this.rootsProvider = rootsProvider;
|
|
42
|
+
this.timeoutMs = timeoutMs;
|
|
43
|
+
this.home = home;
|
|
44
|
+
this.cached = null;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* The facts of ONE directory — root, ref, synthetic — derived here and nowhere else. Every
|
|
49
|
+
* accepted rung goes through it, and so does every surface handed a directory by its
|
|
50
|
+
* harness outright (hooks, activation, the CLI) rather than through the ladder. So does the
|
|
51
|
+
* ONE refusal: `/` and the home directory are never a workspace — a board minted there
|
|
52
|
+
* would be silently wrong, and a fence written there would land in `~`.
|
|
53
|
+
* @returns {{dir: string, root: string, ref: string, synthetic: boolean}}
|
|
54
|
+
* @throws {WorkspaceResolveError} OATHE_WORKSPACE_UNRESOLVED for `/` and the home directory
|
|
55
|
+
*/
|
|
56
|
+
static describe({ dir, home = os.homedir() }) {
|
|
57
|
+
const real = realdir(dir);
|
|
58
|
+
if (real === '/' || real === realdir(home)) {
|
|
59
|
+
throw new WorkspaceResolveError('OATHE_WORKSPACE_UNRESOLVED',
|
|
60
|
+
`workspace refused: '${dir}' is ${real === '/' ? 'the filesystem root' : 'your home directory'} — `
|
|
61
|
+
+ 'almost certainly not the project, and a board minted there would be silently wrong'
|
|
62
|
+
+ ' (fix: run from inside the project, or set OATHE_WORKSPACE_DIR)', { dir });
|
|
63
|
+
}
|
|
64
|
+
return { dir, root: workspaceRoot(dir), ref: workspaceRef(dir), synthetic: isSyntheticWorkspace({ dir, home }) };
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/** Forget the cached resolution (e.g. on notifications/roots/list_changed). */
|
|
68
|
+
invalidate() {
|
|
69
|
+
this.cached = null;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @returns {Promise<{dir: string, root: string, ref: string, synthetic: boolean, source: string,
|
|
74
|
+
* diagnostics: string[]}>}
|
|
75
|
+
* @throws {WorkspaceResolveError} OATHE_WORKSPACE_UNRESOLVED when no rung yields a directory
|
|
76
|
+
*/
|
|
77
|
+
async resolve() {
|
|
78
|
+
if (!this.cached) this.cached = this.#resolveOnce();
|
|
79
|
+
try {
|
|
80
|
+
return await this.cached;
|
|
81
|
+
} catch (e) {
|
|
82
|
+
this.cached = null; // a refusal is not a cache entry — the next call re-consults
|
|
83
|
+
throw e;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
async #resolveOnce() {
|
|
88
|
+
const diagnostics = [];
|
|
89
|
+
// A rung's directory is accepted through describe(); its refusal (/, home) becomes this
|
|
90
|
+
// rung's diagnostic and the ladder moves on — the final refusal names them all.
|
|
91
|
+
const accept = (dir, source) => {
|
|
92
|
+
try {
|
|
93
|
+
return { ...WorkspaceResolver.describe({ dir, home: this.home }), source, diagnostics };
|
|
94
|
+
} catch (e) {
|
|
95
|
+
if (e?.code !== 'OATHE_WORKSPACE_UNRESOLVED') throw e;
|
|
96
|
+
diagnostics.push(`${source}: ${e.message}`);
|
|
97
|
+
return null;
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
// Rungs 1–2: the explicit binding, then each harness's declared project-dir variable.
|
|
102
|
+
const envRungs = [['OATHE_WORKSPACE_DIR', this.env.OATHE_WORKSPACE_DIR],
|
|
103
|
+
...projectDirEnvVars().map(([, envVar]) => [envVar, this.env[envVar]])];
|
|
104
|
+
for (const [name, value] of envRungs) {
|
|
105
|
+
if (value === undefined || value === '') continue;
|
|
106
|
+
if (value.includes('${')) {
|
|
107
|
+
diagnostics.push(`${name} ignored: unexpanded template '${value}' — the harness never substituted it`);
|
|
108
|
+
continue;
|
|
109
|
+
}
|
|
110
|
+
if (realdir(value) === null) {
|
|
111
|
+
diagnostics.push(`${name} ignored: '${value}' is not an existing directory`);
|
|
112
|
+
continue;
|
|
113
|
+
}
|
|
114
|
+
const accepted = accept(value, name);
|
|
115
|
+
if (accepted) return accepted;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// Rung 3: the MCP client's own answer.
|
|
119
|
+
if (this.rootsProvider === null) {
|
|
120
|
+
diagnostics.push('roots: the client offers no roots capability');
|
|
121
|
+
} else {
|
|
122
|
+
try {
|
|
123
|
+
const roots = await this.#withTimeout(this.rootsProvider(), this.timeoutMs);
|
|
124
|
+
const fileRoot = (roots ?? []).find((r) => String(r?.uri ?? '').startsWith('file://'));
|
|
125
|
+
if (fileRoot) {
|
|
126
|
+
const dir = fileURLToPath(fileRoot.uri);
|
|
127
|
+
if (realdir(dir) === null) {
|
|
128
|
+
diagnostics.push(`roots: '${dir}' is not an existing directory`);
|
|
129
|
+
} else {
|
|
130
|
+
const accepted = accept(dir, 'roots');
|
|
131
|
+
if (accepted) return accepted;
|
|
132
|
+
}
|
|
133
|
+
} else {
|
|
134
|
+
diagnostics.push('roots: the client returned no file:// root');
|
|
135
|
+
}
|
|
136
|
+
} catch (e) {
|
|
137
|
+
diagnostics.push(`roots: ${String(e?.message || e)}`);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
// Rung 4: the process cwd — describe() refuses / and the home directory.
|
|
142
|
+
const cwd = this.cwd();
|
|
143
|
+
if (realdir(cwd) === null) {
|
|
144
|
+
diagnostics.push(`cwd: '${cwd}' is not an existing directory`);
|
|
145
|
+
} else {
|
|
146
|
+
const accepted = accept(cwd, 'cwd');
|
|
147
|
+
if (accepted) return accepted;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
throw new WorkspaceResolveError('OATHE_WORKSPACE_UNRESOLVED',
|
|
151
|
+
'no workspace directory could be resolved for this session:\n'
|
|
152
|
+
+ diagnostics.map((d) => ` - ${d}`).join('\n')
|
|
153
|
+
+ '\n fix: set OATHE_WORKSPACE_DIR to the project directory, or start the session from '
|
|
154
|
+
+ 'inside the project', { diagnostics });
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
#withTimeout(promise, ms) {
|
|
158
|
+
let timer = null;
|
|
159
|
+
return Promise.race([
|
|
160
|
+
promise,
|
|
161
|
+
new Promise((_, reject) => {
|
|
162
|
+
// The timer stays ref'd on purpose: a roots provider that never answers must not let
|
|
163
|
+
// the event loop drain before the bound fires — the ladder needs its turn.
|
|
164
|
+
timer = setTimeout(() => reject(new Error(`roots/list timed out after ${ms}ms`)), ms);
|
|
165
|
+
}),
|
|
166
|
+
]).finally(() => clearTimeout(timer));
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/** The real path of an existing directory, or null. */
|
|
171
|
+
function realdir(dir) {
|
|
172
|
+
try {
|
|
173
|
+
const real = fs.realpathSync(dir);
|
|
174
|
+
return fs.statSync(real).isDirectory() ? real : null;
|
|
175
|
+
} catch {
|
|
176
|
+
return null;
|
|
177
|
+
}
|
|
178
|
+
}
|
package/src/workspace.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// belongs to (git-root realpath + origin-remote url when present; plain dir realpath otherwise),
|
|
3
3
|
// carried in the claim's contract_ref convention because adding DDL is out of scope for this
|
|
4
4
|
// package (the vendored cell DDL owns schema numbering — the additive workspace_ref column is the
|
|
5
|
-
// flagged
|
|
5
|
+
// flagged as an upstream ask).
|
|
6
6
|
|
|
7
7
|
import crypto from 'node:crypto';
|
|
8
8
|
import fs from 'node:fs';
|
|
@@ -36,12 +36,23 @@ function originUrl(root) {
|
|
|
36
36
|
return null;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
/** @returns {string}
|
|
40
|
-
export function
|
|
39
|
+
/** @returns {string} the workspace root realpath: the git root when there is one, else the dir. */
|
|
40
|
+
export function workspaceRoot(cwd) {
|
|
41
|
+
const real = fs.realpathSync(cwd);
|
|
42
|
+
const root = gitRoot(real);
|
|
43
|
+
return root === null ? real : fs.realpathSync(root);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/** @returns {string} the identity string the ref hashes — one derivation, both facts. */
|
|
47
|
+
export function workspaceIdentity(cwd) {
|
|
41
48
|
const real = fs.realpathSync(cwd);
|
|
42
49
|
const root = gitRoot(real);
|
|
43
|
-
|
|
50
|
+
return root === null
|
|
44
51
|
? `dir:${real}`
|
|
45
52
|
: `git:${fs.realpathSync(root)}|origin:${originUrl(root) ?? ''}`;
|
|
46
|
-
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** @returns {string} `ws-<12hex>` — stable for every path inside one workspace */
|
|
56
|
+
export function workspaceRef(cwd) {
|
|
57
|
+
return `ws-${crypto.createHash('sha256').update(workspaceIdentity(cwd)).digest('hex').slice(0, 12)}`;
|
|
47
58
|
}
|
package/vendor/ddl/001_core.sql
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
--
|
|
13
13
|
-- Two standing rules for everything below:
|
|
14
14
|
--
|
|
15
|
-
-- 1. Enforcement lives HERE, not in a service. The
|
|
15
|
+
-- 1. Enforcement lives HERE, not in a service. The source system's measured lesson
|
|
16
16
|
-- (STF-1 / migrations 0047 / 0073) is that a rule with a CLI gate and no
|
|
17
17
|
-- substrate trigger gets bypassed by direct publish — 23 historical
|
|
18
18
|
-- `verified` settles did exactly that. A rule this file does not enforce is
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
-- Contract: docs/a1-cell-work-spine-contract.md §2.3 as amended, FOUNDER RULING
|
|
5
5
|
-- R5, PRD §13.4 as amended — "the delegator's authority to create work in the
|
|
6
6
|
-- target scope is checked in the SAME TRANSACTION as the task/dependency
|
|
7
|
-
-- creation, against a grants table with a substrate-level check (the
|
|
7
|
+
-- creation, against a grants table with a substrate-level check (the source system's
|
|
8
8
|
-- proven pattern — STF-1, 0047, 0073 triggers). No new authorization service is
|
|
9
9
|
-- introduced." Requires 001_core.sql.
|
|
10
10
|
--
|
|
@@ -77,7 +77,7 @@ CREATE TABLE IF NOT EXISTS cell.dep_edge (
|
|
|
77
77
|
-- The signer, the kind, and the stamp — all three NOT NULL exactly when the
|
|
78
78
|
-- edge is satisfied. "Who released this, on what basis, when" is the
|
|
79
79
|
-- question the Mac's void events could not answer, which is why they had
|
|
80
|
-
-- zero readers
|
|
80
|
+
-- zero readers system-wide.
|
|
81
81
|
settled_by text,
|
|
82
82
|
settle_kind text,
|
|
83
83
|
settled_at timestamptz,
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
-- `unknown` becomes permanent by construction — which is why `evidence_lost` was
|
|
23
23
|
-- REJECTED as a terminal: it mints an unobserved fact. The receipt row is the
|
|
24
24
|
-- durable pre-image, written before the effect, surviving the process that wrote
|
|
25
|
-
-- it. The
|
|
25
|
+
-- it. The source system's own `slack_post_marker` is the measured precedent: built,
|
|
26
26
|
-- tested, and zero rows, because nothing made it mandatory.
|
|
27
27
|
--
|
|
28
28
|
-- The sequence this table stands under (strategy §2):
|
|
@@ -217,7 +217,7 @@ $reader_check$;
|
|
|
217
217
|
|
|
218
218
|
-- ------------------------------------- §4.2 the declare-time evaluability guard
|
|
219
219
|
--
|
|
220
|
-
-- Fail-closed, per the
|
|
220
|
+
-- Fail-closed, per the source system's own guard doctrine (migrations 0073/0081).
|
|
221
221
|
-- Declaring a `verified` edge whose dep_key matches no registered checker FAILS
|
|
222
222
|
-- loudly, unless the declarer acknowledges the debt — which mints the typed
|
|
223
223
|
-- event naming its owner and due date, rather than passing silently.
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
-- is the shape `cell.unverified_past_verify_by` already uses.
|
|
48
48
|
--
|
|
49
49
|
-- 4. A NULL VERDICT PROJECTS `indeterminate`. MEASURED: 217 NULL-verdict rows in
|
|
50
|
-
-- the
|
|
50
|
+
-- the source system. `verdict` is nullable for exactly that case — the contract's
|
|
51
51
|
-- §1.4 clause 3 names it — and the projection is a VIEW so that no reader gets
|
|
52
52
|
-- to decide for itself what a missing verdict meant. Deciding it locally is
|
|
53
53
|
-- how a non-decision becomes an approval (L13).
|
|
@@ -236,7 +236,7 @@ $consume$;
|
|
|
236
236
|
--
|
|
237
237
|
-- `indeterminate` is the answer for a consumed token with no verdict, and it is
|
|
238
238
|
-- computed here so that no reader can reach its own conclusion about what a
|
|
239
|
-
-- missing verdict meant. 217 rows in the
|
|
239
|
+
-- missing verdict meant. 217 rows in the source system are exactly this shape.
|
|
240
240
|
-- ---------------------------------------------------------------------------
|
|
241
241
|
CREATE OR REPLACE VIEW cell.v_confirm_verdict AS
|
|
242
242
|
SELECT
|
package/vendor/ddl/manifest.json
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
"source": {
|
|
4
4
|
"repo": "oathe-runtime-monorepo (private)",
|
|
5
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
|
|
6
|
+
"commit_note": "pre-D0 drop predates commit stamping; per-file source_sha256 pins the exact exported bytes — the commit lands with the next regeneration from source"
|
|
7
7
|
},
|
|
8
8
|
"transform": {
|
|
9
|
-
"version": "export-clean-
|
|
9
|
+
"version": "export-clean-2",
|
|
10
10
|
"script": "scripts/vendor-ddl.mjs"
|
|
11
11
|
},
|
|
12
12
|
"license": "Apache-2.0",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"position": 1,
|
|
16
16
|
"name": "001_core.sql",
|
|
17
17
|
"source_sha256": "9537a30072f1aa0dede348f2393602e4631b1b9132a6d6294df286e05a512180",
|
|
18
|
-
"public_sha256": "
|
|
18
|
+
"public_sha256": "fa2e00bb84e4c7c5581c3f244e7a009bd0134a2d993c26dc10ea74ee42e13c70"
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
"position": 2,
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"position": 4,
|
|
34
34
|
"name": "004_delegation.sql",
|
|
35
35
|
"source_sha256": "e96dc76ab5fd05d222d7987273181c769f735b0b167da39428305fa3537f16a4",
|
|
36
|
-
"public_sha256": "
|
|
36
|
+
"public_sha256": "31e93bde29cd8f88665676729a35a7337cd1111ed85590d2e757f77c6d8d1280"
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
"position": 5,
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"position": 6,
|
|
46
46
|
"name": "006_dependency.sql",
|
|
47
47
|
"source_sha256": "6060070147323f8bdc126454acb890221c3d52c56acd1b267222634d7ccab77e",
|
|
48
|
-
"public_sha256": "
|
|
48
|
+
"public_sha256": "afb564f20edf154607457d6e13005deebd1099558b4db2792a41a35c45f3d485"
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
"position": 7,
|
|
@@ -57,13 +57,13 @@
|
|
|
57
57
|
"position": 8,
|
|
58
58
|
"name": "008_effect_receipt.sql",
|
|
59
59
|
"source_sha256": "c4c96d55fcb241005d926c6e06637172a4925007a535abfe2ea3a70ba0abe78d",
|
|
60
|
-
"public_sha256": "
|
|
60
|
+
"public_sha256": "77b061c0a5c5beb63170f01bce848ba4cdbc9f38dc4c32ac6d1e78075675f2a8"
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
"position": 9,
|
|
64
64
|
"name": "009_verified_edge.sql",
|
|
65
65
|
"source_sha256": "9c1bcff2d2028b16151fa422237437c820de93e19f6cd76ce21287571ad4e514",
|
|
66
|
-
"public_sha256": "
|
|
66
|
+
"public_sha256": "83b285b538e407f1e6cc04f1bc0ac6d512187d7c59a787b91c0027a11a2806d2"
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
"position": 10,
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"position": 11,
|
|
76
76
|
"name": "011_confirm.sql",
|
|
77
77
|
"source_sha256": "59a608f8828491bffe9d5e3851c2a17a06f6ac8a97e58271e6b76a743668ab8a",
|
|
78
|
-
"public_sha256": "
|
|
78
|
+
"public_sha256": "882e7bcc1759447af04de2f50ee5dd506eed3b9b3ef4ac807a4e6e0c1cd4d249"
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
"position": 12,
|
package/assets/claude-splash.png
DELETED
|
Binary file
|
package/assets/resume-splash.png
DELETED
|
Binary file
|