@eloxiv/cli 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +12 -2
- package/dist/AgentSkills.d.ts +51 -0
- package/dist/AgentSkills.d.ts.map +1 -0
- package/dist/AgentSkills.js +264 -0
- package/dist/AgentSkills.js.map +1 -0
- package/dist/AgentWeb.d.ts +83 -0
- package/dist/AgentWeb.d.ts.map +1 -0
- package/dist/AgentWeb.js +436 -0
- package/dist/AgentWeb.js.map +1 -0
- package/dist/App.d.ts +213 -0
- package/dist/App.d.ts.map +1 -0
- package/dist/App.js +357 -0
- package/dist/App.js.map +1 -0
- package/dist/Blueprint.d.ts +47 -0
- package/dist/Blueprint.d.ts.map +1 -0
- package/dist/Blueprint.js +241 -0
- package/dist/Blueprint.js.map +1 -0
- package/dist/Brand.d.ts +42 -0
- package/dist/Brand.d.ts.map +1 -0
- package/dist/Brand.js +370 -0
- package/dist/Brand.js.map +1 -0
- package/dist/Changelog.d.ts +22 -0
- package/dist/Changelog.d.ts.map +1 -0
- package/dist/Changelog.js +117 -0
- package/dist/Changelog.js.map +1 -0
- package/dist/Cli.d.ts +17 -0
- package/dist/Cli.d.ts.map +1 -0
- package/dist/Cli.js +810 -0
- package/dist/Cli.js.map +1 -0
- package/dist/DbAdmin.d.ts +18 -0
- package/dist/DbAdmin.d.ts.map +1 -0
- package/dist/DbAdmin.js +91 -0
- package/dist/DbAdmin.js.map +1 -0
- package/dist/Dependencies.d.ts +53 -0
- package/dist/Dependencies.d.ts.map +1 -0
- package/dist/Dependencies.js +132 -0
- package/dist/Dependencies.js.map +1 -0
- package/dist/Deploy.d.ts +39 -0
- package/dist/Deploy.d.ts.map +1 -0
- package/dist/Deploy.js +458 -0
- package/dist/Deploy.js.map +1 -0
- package/dist/Docs.d.ts +71 -0
- package/dist/Docs.d.ts.map +1 -0
- package/dist/Docs.js +240 -0
- package/dist/Docs.js.map +1 -0
- package/dist/Doctor.d.ts +56 -0
- package/dist/Doctor.d.ts.map +1 -0
- package/dist/Doctor.js +368 -0
- package/dist/Doctor.js.map +1 -0
- package/dist/Dossier.d.ts +23 -0
- package/dist/Dossier.d.ts.map +1 -0
- package/dist/Dossier.js +92 -0
- package/dist/Dossier.js.map +1 -0
- package/dist/Emit.d.ts +26 -0
- package/dist/Emit.d.ts.map +1 -0
- package/dist/Emit.js +51 -0
- package/dist/Emit.js.map +1 -0
- package/dist/Errors.d.ts +26 -0
- package/dist/Errors.d.ts.map +1 -0
- package/dist/Errors.js +17 -0
- package/dist/Errors.js.map +1 -0
- package/dist/Evals.d.ts +52 -0
- package/dist/Evals.d.ts.map +1 -0
- package/dist/Evals.js +126 -0
- package/dist/Evals.js.map +1 -0
- package/dist/Files.d.ts +47 -0
- package/dist/Files.d.ts.map +1 -0
- package/dist/Files.js +145 -0
- package/dist/Files.js.map +1 -0
- package/dist/Generate.d.ts +80 -0
- package/dist/Generate.d.ts.map +1 -0
- package/dist/Generate.js +310 -0
- package/dist/Generate.js.map +1 -0
- package/dist/Guards.d.ts +45 -0
- package/dist/Guards.d.ts.map +1 -0
- package/dist/Guards.js +530 -0
- package/dist/Guards.js.map +1 -0
- package/dist/Inspect.d.ts +125 -0
- package/dist/Inspect.d.ts.map +1 -0
- package/dist/Inspect.js +270 -0
- package/dist/Inspect.js.map +1 -0
- package/dist/Keychain.d.ts +57 -0
- package/dist/Keychain.d.ts.map +1 -0
- package/dist/Keychain.js +73 -0
- package/dist/Keychain.js.map +1 -0
- package/dist/Lock.d.ts +13 -0
- package/dist/Lock.d.ts.map +1 -0
- package/dist/Lock.js +145 -0
- package/dist/Lock.js.map +1 -0
- package/dist/Mcp.d.ts +91 -0
- package/dist/Mcp.d.ts.map +1 -0
- package/dist/Mcp.js +128 -0
- package/dist/Mcp.js.map +1 -0
- package/dist/Merge.d.ts +18 -0
- package/dist/Merge.d.ts.map +1 -0
- package/dist/Merge.js +43 -0
- package/dist/Merge.js.map +1 -0
- package/dist/Migrate.d.ts +78 -0
- package/dist/Migrate.d.ts.map +1 -0
- package/dist/Migrate.js +288 -0
- package/dist/Migrate.js.map +1 -0
- package/dist/Plugins.d.ts +36 -0
- package/dist/Plugins.d.ts.map +1 -0
- package/dist/Plugins.js +304 -0
- package/dist/Plugins.js.map +1 -0
- package/dist/Postgres.d.ts +73 -0
- package/dist/Postgres.d.ts.map +1 -0
- package/dist/Postgres.js +294 -0
- package/dist/Postgres.js.map +1 -0
- package/dist/Publish.d.ts +23 -0
- package/dist/Publish.d.ts.map +1 -0
- package/dist/Publish.js +59 -0
- package/dist/Publish.js.map +1 -0
- package/dist/Registry.d.ts +539 -0
- package/dist/Registry.d.ts.map +1 -0
- package/dist/Registry.js +340 -0
- package/dist/Registry.js.map +1 -0
- package/dist/Remote.d.ts +90 -0
- package/dist/Remote.d.ts.map +1 -0
- package/dist/Remote.js +1006 -0
- package/dist/Remote.js.map +1 -0
- package/dist/Run.d.ts +120 -0
- package/dist/Run.d.ts.map +1 -0
- package/dist/Run.js +477 -0
- package/dist/Run.js.map +1 -0
- package/dist/SyncGen.d.ts +118 -0
- package/dist/SyncGen.d.ts.map +1 -0
- package/dist/SyncGen.js +392 -0
- package/dist/SyncGen.js.map +1 -0
- package/dist/Update.d.ts +301 -0
- package/dist/Update.d.ts.map +1 -0
- package/dist/Update.js +627 -0
- package/dist/Update.js.map +1 -0
- package/dist/bin.d.ts +3 -0
- package/dist/bin.d.ts.map +1 -0
- package/dist/bin.js +42 -0
- package/dist/bin.js.map +1 -0
- package/dist/docs/backlog.md +56 -0
- package/dist/docs/ci.md +277 -0
- package/dist/docs/cli.md +696 -0
- package/dist/docs/connectors/google.md +115 -0
- package/dist/docs/connectors/http-openapi.md +7 -0
- package/dist/docs/connectors/mcp.md +8 -0
- package/dist/docs/connectors/microsoft-graph.md +75 -0
- package/dist/docs/connectors/openai.md +25 -0
- package/dist/docs/connectors/slack.md +162 -0
- package/dist/docs/connectors/workos.md +39 -0
- package/dist/docs/contracts/README.md +173 -0
- package/dist/docs/contracts/action-consent.md +92 -0
- package/dist/docs/contracts/action-registry.md +85 -0
- package/dist/docs/contracts/actor.md +100 -0
- package/dist/docs/contracts/agent-resources.md +90 -0
- package/dist/docs/contracts/agent-runtime.md +257 -0
- package/dist/docs/contracts/approvals.md +126 -0
- package/dist/docs/contracts/audit.md +75 -0
- package/dist/docs/contracts/auth-provider.md +74 -0
- package/dist/docs/contracts/calendar-provider.md +46 -0
- package/dist/docs/contracts/client-sdk.md +245 -0
- package/dist/docs/contracts/collab-document.md +151 -0
- package/dist/docs/contracts/command.md +44 -0
- package/dist/docs/contracts/connections.md +235 -0
- package/dist/docs/contracts/context-accounting.md +50 -0
- package/dist/docs/contracts/daemon.md +243 -0
- package/dist/docs/contracts/db-tx.md +53 -0
- package/dist/docs/contracts/delegation.md +68 -0
- package/dist/docs/contracts/device-control.md +103 -0
- package/dist/docs/contracts/directory-provider.md +36 -0
- package/dist/docs/contracts/directory.md +161 -0
- package/dist/docs/contracts/document-source.md +33 -0
- package/dist/docs/contracts/files.md +115 -0
- package/dist/docs/contracts/flags.md +83 -0
- package/dist/docs/contracts/host.md +68 -0
- package/dist/docs/contracts/http-api.md +43 -0
- package/dist/docs/contracts/ingestion.md +130 -0
- package/dist/docs/contracts/ingress.md +141 -0
- package/dist/docs/contracts/invocation.md +260 -0
- package/dist/docs/contracts/local-client.md +110 -0
- package/dist/docs/contracts/locale.md +56 -0
- package/dist/docs/contracts/machine-identity.md +117 -0
- package/dist/docs/contracts/mail-provider.md +49 -0
- package/dist/docs/contracts/memory.md +53 -0
- package/dist/docs/contracts/messaging.md +40 -0
- package/dist/docs/contracts/metering.md +139 -0
- package/dist/docs/contracts/model-provider.md +84 -0
- package/dist/docs/contracts/module-manifest.md +213 -0
- package/dist/docs/contracts/notification-channel.md +90 -0
- package/dist/docs/contracts/notifications.md +123 -0
- package/dist/docs/contracts/outbox.md +80 -0
- package/dist/docs/contracts/privacy.md +110 -0
- package/dist/docs/contracts/progress.md +52 -0
- package/dist/docs/contracts/query-surface.md +108 -0
- package/dist/docs/contracts/readiness.md +63 -0
- package/dist/docs/contracts/release.md +142 -0
- package/dist/docs/contracts/result-rendering.md +61 -0
- package/dist/docs/contracts/sandbox.md +186 -0
- package/dist/docs/contracts/scheduler.md +148 -0
- package/dist/docs/contracts/screen-context.md +81 -0
- package/dist/docs/contracts/search.md +120 -0
- package/dist/docs/contracts/secrets.md +74 -0
- package/dist/docs/contracts/settings.md +109 -0
- package/dist/docs/contracts/sharing.md +77 -0
- package/dist/docs/contracts/slot.md +48 -0
- package/dist/docs/contracts/space.md +67 -0
- package/dist/docs/contracts/storage-adapter.md +45 -0
- package/dist/docs/contracts/storage-backend.md +56 -0
- package/dist/docs/contracts/sync.md +213 -0
- package/dist/docs/contracts/telemetry.md +80 -0
- package/dist/docs/contracts/theme-tokens.md +50 -0
- package/dist/docs/contracts/tool-source.md +58 -0
- package/dist/docs/contracts/versioning.md +99 -0
- package/dist/docs/contracts/view.md +65 -0
- package/dist/docs/contracts/work-items.md +99 -0
- package/dist/docs/contracts/workflow.md +82 -0
- package/dist/docs/decisions.md +163 -0
- package/dist/docs/example-app.md +192 -0
- package/dist/docs/getting-started.md +927 -0
- package/dist/docs/goal.md +54 -0
- package/dist/docs/parity.md +29 -0
- package/dist/docs/performance.md +129 -0
- package/dist/docs/registry/README.md +74 -0
- package/dist/docs/registry/app.md +38 -0
- package/dist/docs/registry/approvals-ui-foldkit.md +28 -0
- package/dist/docs/registry/calendar-ui-foldkit.md +27 -0
- package/dist/docs/registry/calendar.md +35 -0
- package/dist/docs/registry/chat-ui-foldkit.md +30 -0
- package/dist/docs/registry/desktop-rune.md +50 -0
- package/dist/docs/registry/desktop.md +32 -0
- package/dist/docs/registry/eloxiv-action.md +25 -0
- package/dist/docs/registry/eloxiv-connector.md +25 -0
- package/dist/docs/registry/eloxiv-module.md +25 -0
- package/dist/docs/registry/eloxiv-policy.md +25 -0
- package/dist/docs/registry/eloxiv-view.md +25 -0
- package/dist/docs/registry/hello-ui-foldkit.md +29 -0
- package/dist/docs/registry/hello.md +39 -0
- package/dist/docs/registry/home-ui-foldkit.md +27 -0
- package/dist/docs/registry/home.md +29 -0
- package/dist/docs/registry/inbox-ui-foldkit.md +27 -0
- package/dist/docs/registry/mail-ui-foldkit.md +27 -0
- package/dist/docs/registry/mail.md +34 -0
- package/dist/docs/registry/meeting-prep.md +26 -0
- package/dist/docs/registry/members-ui-foldkit.md +28 -0
- package/dist/docs/registry/mobile.md +37 -0
- package/dist/docs/registry/notes-ui-foldkit.md +27 -0
- package/dist/docs/registry/notes.md +26 -0
- package/dist/docs/registry/people-ui-foldkit.md +28 -0
- package/dist/docs/registry/people.md +38 -0
- package/dist/docs/registry/shell-foldkit.md +35 -0
- package/dist/docs/registry/theme.md +25 -0
- package/dist/docs/registry/ui-conformance.md +30 -0
- package/dist/docs/release.md +100 -0
- package/dist/docs/scaffold.md +826 -0
- package/dist/docs/security/threat-model.md +299 -0
- package/dist/docs/upstream/zero-cache-socket-handoff.md +105 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/package.json +48 -3
- package/src/AgentSkills.ts +329 -0
- package/src/AgentWeb.ts +507 -0
- package/src/App.ts +435 -0
- package/src/Blueprint.ts +276 -0
- package/src/Brand.ts +415 -0
- package/src/Changelog.ts +136 -0
- package/src/Cli.ts +1458 -0
- package/src/DbAdmin.ts +115 -0
- package/src/Dependencies.ts +170 -0
- package/src/Deploy.ts +563 -0
- package/src/Docs.ts +309 -0
- package/src/Doctor.ts +424 -0
- package/src/Dossier.ts +148 -0
- package/src/Emit.ts +68 -0
- package/src/Errors.ts +18 -0
- package/src/Evals.ts +153 -0
- package/src/Files.ts +152 -0
- package/src/Generate.ts +402 -0
- package/src/Guards.ts +541 -0
- package/src/Inspect.ts +358 -0
- package/src/Keychain.ts +107 -0
- package/src/Lock.ts +174 -0
- package/src/Mcp.ts +159 -0
- package/src/Merge.ts +70 -0
- package/src/Migrate.ts +331 -0
- package/src/Plugins.ts +347 -0
- package/src/Postgres.ts +353 -0
- package/src/Publish.ts +64 -0
- package/src/Registry.ts +405 -0
- package/src/Remote.ts +1158 -0
- package/src/Run.ts +541 -0
- package/src/SyncGen.ts +570 -0
- package/src/Update.ts +873 -0
- package/src/bin.ts +46 -0
- package/src/index.ts +7 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Update.js","sourceRoot":"","sources":["../src/Update.ts"],"names":[],"mappings":"AAaA,OAAO,EACL,eAAe,EACf,sBAAsB,EACtB,iBAAiB,GAGlB,MAAM,cAAc,CAAA;AACrB,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,QAAQ,EACR,cAAc,EACd,UAAU,EACV,QAAQ,EACR,WAAW,EACX,UAAU,EACV,SAAS,EACT,YAAY,GAEb,MAAM,UAAU,CAAA;AACjB,OAAO,EACL,YAAY,EACZ,SAAS,EACT,UAAU,EACV,eAAe,EACf,cAAc,EACd,SAAS,EACT,SAAS,EACT,aAAa,GAGd,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EACL,MAAM,EACN,cAAc,EACd,eAAe,EACf,YAAY,EACZ,aAAa,EACb,WAAW,EACX,YAAY,EACZ,YAAY,GACb,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACvE,OAAO,EACL,WAAW,EACX,UAAU,EACV,eAAe,EACf,iBAAiB,EACjB,SAAS,EACT,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,YAAY,EACZ,QAAQ,EACR,eAAe,EACf,WAAW,GAIZ,MAAM,eAAe,CAAA;AAStB,MAAM,YAAY,GAAG,CAAC,CAAgB,EAAE,EAAE,CAAC,IAAI,QAAQ,CAAC,EAAE,OAAO,E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CAAC,CAAC,QAAQ,CAAC,EAAE,GAAW,EAAE,KAA4B,EAAE,IAAa;IAChH,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAA;IACjC,MAAM,OAAO,GAAG,KAAK,CAAC,CAAC,aAAa,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;IACjD,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;QAC5B,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAA;QACxC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,CAAA;IAClE,CAAC;IACD,KAAK,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;IAC3B,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;AAC3C,CAAC,CAAC,CAAA"}
|
package/dist/bin.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bin.d.ts","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":""}
|
package/dist/bin.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* The `eloxiv` executable. Runs on Node or Bun.
|
|
4
|
+
*
|
|
5
|
+
* Exit codes: 0 success; 1 a report a script should act on (`diff` found differences, `update` left
|
|
6
|
+
* conflicts or was blocked); 2 any failure, including invalid usage.
|
|
7
|
+
*/
|
|
8
|
+
import { Cause, Effect, Exit, Runtime } from "effect";
|
|
9
|
+
import { CliError, ExitStatus, run } from "./Cli.js";
|
|
10
|
+
import { runtimeProblem } from "./Doctor.js";
|
|
11
|
+
import { redactToken } from "./Registry.js";
|
|
12
|
+
// The runtimes Eloxiv supports (the workspace's engines): an older one is refused before anything runs.
|
|
13
|
+
const unsupported = runtimeProblem();
|
|
14
|
+
if (unsupported !== undefined) {
|
|
15
|
+
console.error(`eloxiv: ${unsupported}`);
|
|
16
|
+
process.exit(2);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Exit once what was written has left: on Node, a write to a pipe is asynchronous, and `process.exit` (which the
|
|
20
|
+
* runtime's exit calls) drops whatever is still queued, so a large report (`update --json` with conflicts, exit 1)
|
|
21
|
+
* would reach a script cut off. An empty write's callback runs after every write before it.
|
|
22
|
+
*/
|
|
23
|
+
const flushed = (onExit) => (code) => void process.stdout.write("", () => process.stderr.write("", () => onExit(code)));
|
|
24
|
+
const teardown = (exit, onExit) => {
|
|
25
|
+
const exitFlushed = flushed(onExit);
|
|
26
|
+
if (Exit.isFailure(exit) && !Cause.hasInterruptsOnly(exit.cause)) {
|
|
27
|
+
const error = Cause.squash(exit.cause);
|
|
28
|
+
if (error instanceof CliError)
|
|
29
|
+
console.error(`eloxiv: ${redactToken(error.message)}`);
|
|
30
|
+
return exitFlushed(error instanceof ExitStatus ? error.code : 2);
|
|
31
|
+
}
|
|
32
|
+
return Runtime.defaultTeardown(exit, exitFlushed);
|
|
33
|
+
};
|
|
34
|
+
if ("Bun" in globalThis) {
|
|
35
|
+
const { BunRuntime, BunServices } = await import("@effect/platform-bun");
|
|
36
|
+
BunRuntime.runMain(run.pipe(Effect.provide(BunServices.layer)), { teardown });
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
const { NodeRuntime, NodeServices } = await import("@effect/platform-node");
|
|
40
|
+
NodeRuntime.runMain(run.pipe(Effect.provide(NodeServices.layer)), { teardown });
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=bin.js.map
|
package/dist/bin.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bin.js","sourceRoot":"","sources":["../src/bin.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,OAAO,WAAW,CAAC,KAAK,YAAY,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IAClE,CAAC;IACD,OAAO,OAAO,CAAC,eAAe,CAAC,IAAI,EAAE,WAAW,CAAC,CAAA;AACnD,CAAC,CAAA;AAED,IAAI,KAAK,IAAI,UAAU,EAAE,CAAC;IACxB,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,CAAA;IACxE,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,CAAiC,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAA;AAC/G,CAAC;KAAM,CAAC;IACN,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,MAAM,MAAM,CAAC,uBAAuB,CAAC,CAAA;IAC3E,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,KAAK,CAAC,CAAiC,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAA;AACjH,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# Backlog for the full build
|
|
2
|
+
|
|
3
|
+
The walking skeleton accepted these limits, after eight rounds of independent review. Each one is a backlog item for the full build, with where it is documented now.
|
|
4
|
+
|
|
5
|
+
| # | Item | What is missing | Documented in |
|
|
6
|
+
| --- | --- | --- | --- |
|
|
7
|
+
| 1 | General constraint-disclosure protection | **Resolved as an accepted limit** (owner decision, 2026-11-16: both residual side channels below are accepted as stated limits). Otherwise resolved: a write's outcome may not depend on a record the caller cannot read. References are guarded (a missing and an unreadable record are refused alike, before the referential check), and setup refuses unique keys a writer could meet unreadable records on, for every action kind, secondary entities and MAKE modules. Tests: the Invocation kit (`packages/testing/src/conformance/Invocation.ts`, "refuses a reference to a record the caller cannot read ...") and `packages/testing/test/setup.test.ts` ("refuses a unique key whose conflicts would disclose records a writer cannot read ..."). Stated limits: a key the caller names in an untargeted or best-effort insert discloses whether a record holds it (refusing such keys refused the normal create path and provider-keyed sync; closing it needs keys namespaced per caller with `recordKey`); deleting a record another references fails while the reference exists, readable or not, and says only that ("refuses deleting a referenced record ... (the stated limit)"; closing it needs cascades under the referencing records' policies or tombstones) | [scaffold.md](scaffold.md) "The action contract" and known gap 11; [security/threat-model.md](security/threat-model.md) PO-14 |
|
|
8
|
+
| 2 | Completion semantics for untargeted writes | Resolved: an untargeted writing action (it `writes`, with no `target`) says what it wrote, `written`: the records of its declared entities it inserted and updated, in its receipt always and in its output when it declares `reportsWritten` (set by the kernel, never the handler; refused on a targeted action). Rows row-level security kept a statement from are neither counted nor named (`packages/testing/test/untargeted-writes.test.ts`, "says what it wrote: only the caller's rows, never the ones row-level security kept it from"; the Invocation kit's untargeted receipt) | [contracts/invocation.md](contracts/invocation.md) "Records" |
|
|
9
|
+
| 3 | Sandbox before MAKE, and the in-process trust limit | Resolved for untrusted code: MAKE modules' handlers run in the sandbox (QuickJS in WebAssembly, no ambient authority) and their statements on a session logged in as their runtime role, never the kernel's connection, so there is no more privileged role to `RESET` to (`packages/testing/test/make-sandbox.test.ts`, every escape refused, also on a session logged in directly; [contracts/sandbox.md](contracts/sandbox.md)). Registry and app modules remain trusted in-process code by design (the boundary stops mistakes, not hostile app code) | [scaffold.md](scaffold.md) known gap 10; [spikes/cedar-policy-to-sql.md](spikes/cedar-policy-to-sql.md) "What this does not cover" |
|
|
10
|
+
| 4 | Policy and grant limitations | Resolved: `eloxiv_ctx.has_grant` answers only for the acting principal (`packages/testing/test/policy-sql.test.ts`, "answers a grant check only for the acting principal, never for another grantee"); `principal.email` is answered in the database and live in sync (the kernel's principal has no other attributes); the compiler adds order comparisons, `like`, `has`, `if-then-else`, literal sets, `containsAll`/`containsAny` and one hop through a declared reference, each fail-closed outside its subset and covered by the differential tests in memory, through the sync transform, in Postgres and through zero-cache; compiled filters are keyed on the policy set's version (`packages/kernel/test/policy-cache.test.ts`) | [scaffold.md](scaffold.md) known gap 11a (and resolved gap 2); [spikes/cedar-policy-to-sql.md](spikes/cedar-policy-to-sql.md) "Limits and follow-ups" |
|
|
11
|
+
| 5 | Child-query authorisation (`related` / `whereExists`) | Resolved: each related table's rows carry its own entity's read filter ([contracts/sync.md](contracts/sync.md), guarantee 4); unreadable children never reach a replica and revoking a child's grant removes it live (`packages/testing/test/sharing-live.test.ts`) | [contracts/sync.md](contracts/sync.md), guarantee 4 (was scaffold.md known gap 3); [spikes/sync-and-rpc.md](spikes/sync-and-rpc.md) |
|
|
12
|
+
| 6 | Outbox dead-letter state | Resolved: a failing delivery (a subscriber's or an event trigger's) is retried under its own delivery policy, then dead-lettered with an operator signal, never retried forever; a policy that could retry forever stops the kernel before it starts; administrators list, retry and discard dead letters (the Outbox kit; `packages/testing/test/dead-letters.test.ts`) | [contracts/outbox.md](contracts/outbox.md) (was scaffold.md known gap 13) |
|
|
13
|
+
| 7 | Per-call MCP idempotency | Resolved: each MCP `tools/call` carries its own key in `params._meta["io.eloxiv/idempotency-key"]` | [contracts/invocation.md](contracts/invocation.md) (was scaffold.md known gap 12) |
|
|
14
|
+
| 8 | Organisation switching | Resolved: the shell's organisation switcher changes what syncs and where writes go, remembers the choice per user, and never shows one organisation's rows once a switch to another is intended (`e2e/org-switch.spec.ts`) | [scaffold.md](scaffold.md) known gap 14 |
|
|
15
|
+
| 9 | Desktop budget CI lane | Resolved: CI's `desktop` jobs build the example app's Tauri host in release mode with its daemon sidecar on Linux, macOS and Windows, run its journey inside the real webview, and assert launch to interactive (p95 of 20 launches, ≤ 1.5 s) with `ELOXIV_BENCH_DESKTOP=1` | [scaffold.md](scaffold.md) "Desktop and React Native in CI" |
|
|
16
|
+
| 10 | React Native runtime proof | Resolved: CI's `react-native` job runs the client SDK in a release React Native app (Metro bundle, Hermes bytecode) on an Android emulator: sign-in, a typed action, another client's row synced into an `expo-sqlite` replica and read back offline by a new process | [scaffold.md](scaffold.md) "Desktop and React Native in CI" |
|
|
17
|
+
| 11 | Atomic migrate-and-harden | Resolved, with one documented window: a module's migrations commit on its owner's session with the module closed (forced row-level security, no policy, no privilege), and the kernel's migrations and every module's hardening commit together afterwards; a failed migration leaves the database as it was, and a failure after a module's migrations committed leaves it closed, never open, until a setup succeeds (`release-atomic.test.ts`, the Release kit's fail-closed test) | [contracts/release.md](contracts/release.md) guarantee 2 |
|
|
18
|
+
| 12 | A sound guard for paths around the authority capability | Resolved (build/guards): the guard reads each file's syntax tree with its scopes (`packages/kernel/test/support/authorityGuard.ts`): helpers, tags and writers are the declarations their names resolve to (through imports, re-exports and aliases), a statement is under a helper only inside its call's arguments (or a wrapper's that passes them on), a handler's own statements are `.sql` of a handler's context however it is named, writers are derived (a function with an unguarded statement; every reference to it is checked, keyed by its `type` argument; one nothing refers to is a finding), system-role helpers are counted through aliases, and every read of a handler's authority, destructured too, must be `bindDeferred`'s first argument. Proven on planted bypasses (`packages/kernel/test/authority-transcripts.test.ts`: “finds a statement outside the helper's arguments, a same-named helper, a renamed writer and a context that is not a handler's”, “finds a handler's authority read raw, however it is taken, and counts system helpers through aliases”), and clean on the kernel | [contracts/invocation.md](contracts/invocation.md) "Authority" |
|
|
19
|
+
| 13 | Organisation-scoped agent memory and resources can retain copies of anonymised personal data | Resolved (build/criteria-closeout): an erasure replaces the person's mentions in the organisation's agent memory and resources with `[erased person]`, in that organisation only (their exact email as a whole token, and their full name as whole words when it has two or more), purges earlier export parts that copied such entries, and an export includes the entries that mention them (`agent.orgMentions`, `packages/testing/test/privacy-org-memory.test.ts`). Stated limit: a one-word name, the words of a name used alone, a nickname or a paraphrase is not found | [contracts/search.md](contracts/search.md) "Derived copies, and how each goes" |
|
|
20
|
+
| 14 | Saved provider results keep a resource's old content | Resolved: an external effect's provider answer is kept only while its module may still need it, and the outcome (state, reconciled, error) always stays, saying why the answer went (`result_cleared`, kernel migration `0240_effect_result_cleared`; `cleared` in `ctx.connections.effect`). Told: cleared once the module's `onDone` callback has run (`told_at`, migration `0215_effect_result_told`), so the answer lives on only in the module's record, which erasure reaches by its subject ("keeps the provider's answer only until the module is told: then the outcome stays and the answer goes"; a callback run again answers what it recorded, calendar and mail 0.2.3, `calendar.test.ts` and `mail.test.ts`). No callback: cleared as soon as the outcome is recorded ("clears the answer of an effect that names no callback once its outcome is recorded"). Callback refused for good (or failing every attempt): kept for the module's own reconciling from the record for `ELOXIV_EFFECT_ANSWER_RETENTION_DAYS` (default 7), then cleared by the retention sweep ("keeps a refused callback's answer for the module's reconciling within the window, then clears it"). In every case an erasure clears each answer still kept that mentions the person (user id, email, full name), whoever owns the effect (source `eloxiv.effectAnswers`; "clears every saved answer that mentions an erased person, whoever owns the effect"). All in `registry/test/effects.test.ts`; mail 0.2.6 and calendar 0.2.5 settle a succeeded effect whose answer was cleared | [contracts/search.md](contracts/search.md) "Derived copies, and how each goes"; [contracts/invocation.md](contracts/invocation.md) "External effects"; [contracts/privacy.md](contracts/privacy.md) |
|
|
21
|
+
| 15 | Agent transcripts quote records as they were | **Resolved as an accepted limit** (owner decision, 2026-11-16). Severity: low. A session's transcript (its owner's alone) keeps tool results quoting records after the records change or are anonymised; it is erased with its owner | [contracts/search.md](contracts/search.md) "Derived copies, and how each goes" |
|
|
22
|
+
| 16 | Sent mail records | **Resolved as an accepted limit** (owner decision, 2026-11-16: the sent-mail recipients and subject are kept until the sender's erasure). Severity: low. `mail.outgoing` keeps the recipients and subject of what was sent (a sent-folder record), erased with its owner, not with a recipient's erasure | [contracts/search.md](contracts/search.md) "Derived copies, and how each goes" |
|
|
23
|
+
| 17 | Work-item titles of live records catch up on their next sync | Resolved (build/backlog-final): a module words each work-item source's titles in the kernel (`defineModule({ workItemTitles })`, from the source's title field: mail 0.2.4's follow-ups and queued drafts, calendar 0.2.3's invitations), and the kernel keeps a live record's items in step on the paths that already cleared a gone record's: after every call's writes (`WorkItems.followRecords`), in the call's transaction, whether or not the module retitled them, and on every setup, which retitles items left from before titles followed records. Tests: `registry/test/effects.test.ts`, "retitles a live record's work item in the call that changes its title, without its module retitling it (backlog 17)"; `registry/test/mail.test.ts`, "has setup bring a live message's follow-up title left from before into step, with no sync (backlog 17)" | [contracts/search.md](contracts/search.md) "Derived copies, and how each goes"; [contracts/work-items.md](contracts/work-items.md) |
|
|
24
|
+
| 18 | File finalisation takes record locks without an `Asserted` | Resolved (build/guards): `files.completeUpload` records its call's authority (`bindDeferred(ctx.authority, "once")`, kernel migration `0175_file_authority`), and the finalize workflow asserts it before it takes the record's lock and makes the file visible, ending the settling transaction with the check at commit; an uploader whose authority no longer holds gets the file rejected and purged, nothing attached or indexed (`packages/testing/test/files-authority.test.ts`: “refuses a file whose uploader's authority ended before it was finalised, and makes one that holds available”) | [contracts/files.md](contracts/files.md) |
|
|
25
|
+
| 19 | Real-model eval runs for people, mail and calendar | Resolved: on `gpt-5-mini` every example module's skill meets its threshold in 5 of 5 whole-suite runs (people as it was; mail 0.1.1 and calendar 0.1.1 tuned, notes 0.6.3's answer patterns fixed), and the `model live` workflow runs the suite on each push to build/** | [progress.md](progress.md) "build/skill-tuning" |
|
|
26
|
+
| 20 | Composition support for the kernel's sync tables | Resolved (build/example-app): a UI item asks for the kernel-provided modules it needs (`meta.eloxiv.kernelModules`, now also `agent` and `spaces`), as modules do, and the composition installs each once (`eloxiv.server.ts`, the agent with the inbox its consent needs) and adds its synced tables, relationships and named queries to `eloxiv.sync.ts` (`inboxTables`, `agentTables`, `spacesTables`, ...). `chat-ui-foldkit` and `approvals-ui-foldkit` 0.1.1 ask for the agent and the inbox (`packages/cli/test/cli.test.ts`, "installs the kernel modules UI items ask for"). Was: `eloxiv generate` composes an app's sync schema (`eloxiv.sync.ts`) from its registry modules only; an app that installs kernel-provided synced modules (the agent, the inbox modules) has nowhere generated to add their tables and queries (`agentTables`, `inboxTables` and their queries in `@eloxiv/client/sync`). Until it has, the example app installs neither, so the reference chat and approval screens (`chat-ui-foldkit`, `approvals-ui-foldkit`) are proven by Story and Scene tests, the chat SDK against the agent conformance kernel and their CLI assembly, not in the example's browser suite; the example would also need a model provider for its agent | [spikes/foldkit-proof.md](spikes/foldkit-proof.md) "The migration", [cli.md](cli.md) "Optional UI items" |
|
|
27
|
+
| 21 | Erasure does not purge zero-cache's client view records at once | Resolved: a client group is recorded as a person's only from a transform or push zero-cache made (its API key, `ELOXIV_ZERO_API_KEY`), from the replica's first connection (the replica pushes nothing of its own), for the first person to claim it (a push naming another's group is refused); the erasure's `zero.cvr` source deletes those groups' instances, clients, queries, desires and rows from their own shard's CVR, in the app's database or the CVR's own (`ELOXIV_ZERO_CVR_URL`); the records stay gone while the person's data changes, and others' replicas, open and new, sync on (`packages/testing/test/zero-cvr-erasure.test.ts`, "purges the person's client groups from the CVR at once, and only theirs; zero-cache serves the others on"; "records a group only for whom zero-cache forwarded its push, and never purges another person's"; "claims the group of a replica opened offline once it connects"). A replica of the purged group still open is served on or refused by timing (contracts/privacy.md); a push whose credential is another person's than the user zero-cache says the connection advertised is refused before anything is recorded, a transform for a group someone else claimed is refused, and where the key is required a call without it is refused first (`zero-cvr-erasure.test.ts`, `zero-api-key.test.ts`) | [contracts/privacy.md](contracts/privacy.md) |
|
|
28
|
+
| 22 | A module does not see an effect's wait, or an outcome it cannot be told | Resolved: the kernel's record of an effect (its wait, attempts and whether its module was told: `reported`, migration 0165) is the caller's to read through `connections.effects` and `ctx.connections.effect(s)`; a report refused for good is recorded `refused`, not retried, and mail's inbox sync settles the messages it still shows as going from that record, as their owner, with no broadened authority (`registry/test/mail-workflows.test.ts`, "shows an effect's wait, and brings a send whose module could not be told up to date from the kernel's record") | [contracts/invocation.md](contracts/invocation.md#external-effects), PR #15 review (Sol 6.1) |
|
|
29
|
+
| 23 | zero-cache loses a reconnecting client's first messages; patched here and in every app from the registry, not upstream | **Resolved: the functional fix is the maintained patch, upstream follow-up approved** (owner decision, 2026-11-16: keep the maintained patch and file upstream; the issue draft is written, and the coordinator posts it after review). Severity: high for users of an unpatched zero until fixed upstream. zero-cache hands each sync socket from one of its processes to another; the sending process kept reading it until the receiver acknowledged the handle, and Node discards what it reads then (the sent handle's `onread` is a no-op). A client that pushes at once after `connected` (its offline writes, on a reconnect) could lose those pushes: they stayed pending and unconfirmed until its next reconnect, which zero-cache's unasked keepalive pongs can put off for ever. Fixed by [`registry/app/patches/@rocicorp__zero@1.11.3.patch`](../registry/app/patches/@rocicorp__zero@1.11.3.patch): `readStop` before a handoff to another process only (in `SINGLE_PROCESS` mode the receiver reads the same socket on; the first version of the patch stopped it there too and a client's first message never arrived). Under contention the offline case of `optimistic.test.ts` failed 7 times in about 104 runs before, 0 in 59 and then 30 after; `zero-handoff.test.ts` runs a reconnect in both of zero-cache's modes (every setup here runs it as several processes: its CLI exits at once under `SINGLE_PROCESS`), in the check job and on Linux, macOS and Windows in the desktop job. Apps: the app item (0.7.0) carries the patch file and its `pnpm.patchedDependencies` entry (`meta.eloxiv.patchedDependencies`), which `eloxiv add` writes and `eloxiv update` merges like a dependency (`packages/cli/test/zero-patch.test.ts` assembles an app outside this repository and installs zero patched); this repository applies the same file. The registry's build takes the zero version from the kernel's dependency, so a kernel on another zero fails the build until the patch is redone or dropped. Needs: the fix upstream (issue text, not filed: [upstream/zero-cache-socket-handoff.md](upstream/zero-cache-socket-handoff.md)); then the app item drops the patch, and `eloxiv update` removes the entry from apps that still have the item's. Apps on another package manager than pnpm (the CLI runs `pnpm install`) apply the patch themselves | [progress.md](progress.md) "build/criteria-367" |
|
|
30
|
+
| 24 | The module-import checker's remaining bypasses | Resolved (build/guards): an app helper a module reaches that loads a computed specifier is a finding at the module's load (directly or through other helpers); `Schema.*` is a contract value only when the contract's `Schema` is Effect's (imported from `effect`, not redeclared); a bare specifier resolves through the tsconfig's `baseUrl` as TypeScript tries it; and a module's files in generated directories (`dist`, `gen`) are checked as its own (`tools/done/test/module-imports.test.ts`: “finds an app helper that computes what it loads, reached from a module directly or through another helper”, “takes Schema.* as a contract value only when the contract's Schema is Effect's”, “resolves a bare specifier through the tsconfig's baseUrl, and checks a module's generated directories”) | `tools/done/src/moduleImports.ts` |
|
|
31
|
+
| 25 | `char(n)`, `uuid` and custom-collation columns compare differently in SQL than as Cedar strings | Resolved by refusing them: Cedar and sync compare strings exactly, so a `character(n)` or `uuid` column (or an array of them) as a policy attribute is refused where policies are validated (`policyScopeProblems`, at the kernel's start and a MAKE install; `packages/kernel/test/policy-string-columns.test.ts`), and setup refuses a policy attribute's column under a non-deterministic collation (`packages/testing/test/entity-columns.test.ts`). Deterministic collations compare equal strings only when their bytes are equal, as Cedar does | [contracts/module-manifest.md](contracts/module-manifest.md#entities) |
|
|
32
|
+
| 26 | The isolation matrix's remaining kinds | Resolved (build/guards): the matrix has checks for large objects (another role's, readable or writable, and `lo_compat_privileges`), foreign data wrappers, servers and user mappings, publications and subscriptions, event triggers (owned by a module's role or running its function), procedural languages (owned, or untrusted and granted) and types in another module's schema, each with a plant it names (the FDW, event trigger and language plants need a superuser and are skipped on a managed host); and after every module's owner creates objects of every kind it may (tables, sequences, views, a materialized view, functions, a security definer, an enum, a domain, a composite type, a large object made for it), all fifteen checks run again (`registry/test/isolation-all.test.ts`: “objects each module's owner creates later in its own schema are out of every other module's reach, by every check”, and the plants under “catches each kind of leak, planted in a rolled-back transaction”) | `packages/testing/src/conformance/IsolationMatrix.ts` |
|
|
33
|
+
| 27 | An in-flight account change can land after a forced sign-out | Resolved (build/auth-hardening): a write of Better Auth's to an account (the user, its accounts, its two-factor secret) made for a request that presented a session is checked at its commit against that session, under the lock a revocation takes (the account-write fence, kernel migration `0201_account_write_fence`): once a sign-out past its bound has revoked the session, the write in flight commits nothing (`packages/testing/test/auth-seam.test.ts`, "past the bound, revokes the session at once: every later request is refused, and the write in flight does not land (backlog 27)"). Stated limit: a `/revoke-other-sessions` still running when its own session is revoked goes on to end the person's other sessions; ending one's own sessions loses nothing | [contracts/invocation.md](contracts/invocation.md) "The guarantee for Better Auth's own routes" |
|
|
34
|
+
| 28 | A signed-in request of Better Auth's waits for a pool connection when its pools are taken | Resolved (build/auth-hardening): Better Auth's pool and the holds' pool are bounded (a request waits at most `signOutWaitMs` for a connection, then answers `503`), people's session lookups (every surface, management included) run on a pool of their own, bounded the same (a lookup that cannot run answers `503`, never `401`), and sign-out on the endings' (`packages/testing/test/auth-seam.test.ts`, "answers 503 within the bound when Better Auth's connections are all taken, and still signs out and serves management (backlog 28)" and "answers 503, never 401, within the bound when people's session lookups cannot run, and signs out once they can (backlog 28)") | [contracts/invocation.md](contracts/invocation.md) "Limits, stated" |
|
|
35
|
+
| 29 | A lock held on Better Auth's whole session table delays refreshes and revocation routes | **Resolved as an accepted limit** (owner decision, 2026-11-16). Severity: low. An administrator's `LOCK TABLE` on `auth.session` makes the activity refresh wait, and a revocation route's ending answer `503` past its bound | [contracts/invocation.md](contracts/invocation.md) "Limits, stated" |
|
|
36
|
+
| 30 | Two follow-ups of one device turn running at once fork its harness session | Resolved: follow-ups of one session run one after another. `devices.sendTurn` with `followUp` locks the followed turn's row, and a turn that already has a follow-up is no longer its session's latest: a second follow-up of it (concurrent or later) is refused (`InvalidInput`, naming the follow-up to continue instead), so two never resume one session at once (`packages/testing/src/conformance/Daemon.ts`, "two follow-ups of one turn never fork its session: one runs, the other is told to follow up the latest") | [contracts/daemon.md](contracts/daemon.md) "Follow-up turns" |
|
|
37
|
+
| 31 | A queued device command cannot be cancelled | Resolved: `devices.cancelCommand`: a queued command never runs; a taken one is checked before the device acts and every second after (`commands/check`), so it does not run, or a running shell command is stopped and reported failed, interrupted; a companion operation already taken and a finished command end as they really end, never reported undone. Tests: DeviceControl kit "a command cancelled before a device takes it never runs; a finished one stays as it was; only its sender or the device's person cancels", "a command cancelled after the device took it, before it acted, never runs", "a running shell command cancelled is stopped and reported failed, interrupted, with what it did left standing" | [contracts/device-control.md](contracts/device-control.md#cancellation) |
|
|
38
|
+
| 32 | ACP harnesses are proven only against the fake ACP agent | **Resolved: a real-harness run is not required** (owner decision, 2026-11-17: the adapter is proven against the fake ACP agent and an offline handshake, and a built integration needs no live proof; bugs found with a real harness are fixed as they come. Earlier, 2026-11-16, the real-harness proof was deferred). Severity: low. No signed-in OpenCode or other ACP agent has run a turn through the adapter; OpenCode's handshake was checked offline (2.2.7). OpenCode runs only turns with workspace tools until its configuration and plugin discovery are isolated. A recorded real run, like Claude Code's and Codex's, is the next step | [contracts/daemon.md](contracts/daemon.md) "Not yet guaranteed" |
|
|
39
|
+
| 33 | zero-cache's initial sync rebuilt its whole replication status before each index | **Resolved: the functional fix is the maintained patch, upstream follow-up approved** (owner decision, 2026-11-16: keep the maintained patch and file upstream; the issue draft is written, and the coordinator posts it after review). The patch, here and in every app from the registry (app item 0.9.0): zero-cache 1.11.3 published a replication-status event before it created each index of a fresh replica (`createLiteIndices` → `publishAndFlush` → `replicationStatusEvent` → `getReplicatedTables`), and each event listed every replicated table's columns again, quadratic in the schema (52 tables with 86 indexes in the full example app: 2.0 s of indexing at zero-cache's `info` logging, about 250 ms of the change-streamer's CPU at `warn`, measured on build/example-app 2026-11-10), on the development cold start's critical path (`dev-cold-start`, docs/performance.md). [`registry/app/patches/@rocicorp__zero@1.11.3.patch`](../registry/app/patches/@rocicorp__zero@1.11.3.patch) lists the tables once for the indexing stage (an index changes no table's columns) and each event only the indexes, deriving the tables' client types from both as before, so every event is unchanged. `packages/testing/test/zero-indexing-status.test.ts` runs zero-cache's own `createLiteIndices` over 20 tables and 60 indexes: every event equals the one computed afresh at that moment (tables becoming syncable as their unique indexes appear), and the tables are listed twice (the stage, the next stage) where unpatched they were listed once per event. Needs: the fix upstream; then the app item drops this part of the patch | This row; backlog 23 (the same patch) |
|
|
40
|
+
| 34 | A send as an alias whose alias check Gmail cannot answer is `unknown` | Resolved: a capability operation reports a failure before it sent anything as `Unavailable` with `dispatched: false`, which the kernel runs again like a rate-limited effect (never `unknown`); Gmail's alias check does (`registry/test/mail-workflows.test.ts`, "runs a send again when it failed before sending anything (Gmail's alias check), and sends it once") | [contracts/mail-provider.md](contracts/mail-provider.md) |
|
|
41
|
+
| 35 | slackAgent loses the run when the process dies right after `agent.send` commits | Resolved: the run a replayed `agent.send` step started is found again from the message its receipt names as created (`ctx.ingress.agentAnswer({ sent })`, read under the sender's chain, `AgentRuntime.runOfMessage`), so the answer is posted once (`registry/test/slack-agent-restart.test.ts`: a SIGKILL between the send's commit and its step's record) | `registry/app/connectors/slack/agent.ts` |
|
|
42
|
+
| 36 | A scheduled send cancelled just before the process dies can stay `scheduled` | Resolved: `ctx.connections.cancel` writes the cancellation with the call's own writes, in its transaction, so `mail.cancelScheduled`'s record and the cancellation commit together or not at all (`registry/test/mail-workflows.test.ts`, "cancels a scheduled send only together with its record: a cancellation whose call fails cancels nothing") | `registry/app/modules/mail/server.ts` |
|
|
43
|
+
| 37 | An Ingress reply posted just before the process dies is recorded `unknown`, and may go unaudited | Resolved: a reply's outcome and its audit record are written in one transaction, and a claim found interrupted is recorded `unknown` with its own audit record (`Interrupted`) in the claim's transaction, never posted again (`registry/test/slack-agent-restart.test.ts`: a SIGKILL after Slack took the post, before its outcome was written) | `packages/kernel/src/ingress/Ingress.ts`, [contracts/ingress.md](contracts/ingress.md) |
|
|
44
|
+
| 38 | Doctor's portable guards read text, not a parse tree | Resolved (build/guards): `eloxiv doctor`'s guards read each code file's syntax tree (`packages/cli/src/Guards.ts`, `readSource`): loads with constant paths (templates and concatenations of constants folded) are checked, and what cannot be resolved fails: a template import with an expression, `require` of a variable or taken as a value (an alias), `createRequire`, `process` through an alias, the global object read by a constant or computed name, and a secret split across strings; comments and strings are never taken for code (`packages/cli/test/guards.test.ts`: “reads loads and the environment from the syntax tree, and fails what it cannot resolve”) | [cli.md](cli.md) "doctor" |
|
|
45
|
+
| 39 | Scheduling's remaining small limits | Resolved (build/scheduling-2): a no-op survives a replay, on the receipt (`packages/testing/test/scheduler.test.ts`, "keeps a run's no-op when its action's step gets the replay receipt"); executions that ended before `0070_run_outcomes` are reconciled with the engine by Retention, then count in streaks and release their events (`packages/testing/test/retention.test.ts`, "records the end of executions that finished before their ends were recorded, then prunes what they read"); a manifest job's failures reach its organisation's operators (`packages/testing/test/scheduler-jobs.test.ts`, "tells the organisation's operators once when a manifest job starts failing"); an event is kept while an automation's run for it has not finished (`packages/testing/test/retention.test.ts`, "keeps an event past retention while an automation's run for it has not finished") | [contracts/scheduler.md](contracts/scheduler.md) "Run history, outcomes and failure streaks", "Kernel maintenance" |
|
|
46
|
+
| 40 | App-state rows are never purged | Resolved: a runner deletes removed entries and acknowledged commands older than a day, in every organisation, as the module's system actor; live entries and pending commands stay, and a removed entry goes only once its version is below the cutoff time (versions start at the time an entry is written), so a key written again never reuses a version ("never gives a key a version it had before, even written again after its removed entry was swept"; `packages/kernel/src/appState/Sweep.ts`; `packages/testing/test/app-state-sweep.test.ts`, "deletes removed entries and acknowledged commands past the retention, in every organisation, and nothing else") | [contracts/screen-context.md](contracts/screen-context.md) "Retention" |
|
|
47
|
+
| 41 | A new session's first complete answer can precede its session fact | Resolved: the session fact is recorded with the session, in every organisation of its person, and for a membership added later (kernel migration `0216_session_facts_at_start`), so it replicates before any query; leaving removes it (`packages/testing/test/session-facts.test.ts`, "records a session's fact when it starts, follows memberships, and goes with the session"; `packages/testing/test/sync-property.test.ts` without recording the fact first); the session start and refreshes take the person's lock and a refresh the sessions' ending locks before reading, and a revocation deletes its facts by trigger, so a refresh racing a sign-out never writes the fact back and a session racing a new membership gets its fact there (`session-facts.test.ts`, both races on two connections); one global lock order (directory locks sorted by organisation, the person's, sessions' request locks; a session's row held only after its request lock) keeps a directory change beside a sign-out, and an email change beside a membership change elsewhere, from deadlocking (`session-facts.test.ts`) | [contracts/sync.md](contracts/sync.md) guarantee 8 |
|
|
48
|
+
| 42 | A claimed domain stays verified after its TXT record is removed | Resolved (build/auth-hardening): every kernel process re-checks verified claims (a day after the last good check; an unanswered lookup retried hourly); a claim whose record is gone lapses at once, one DNS has not answered for three days lapses too, and a lapse is audited; nobody joins by a lapsed claim until it is verified again (kernel migration `0202_domain_checks`; `packages/testing/test/directory-admin.test.ts`, "re-checks a verified domain: unanswered DNS keeps it for a bounded time, a gone record lapses it, and nobody joins by a lapsed one (backlog 42)") | [contracts/directory.md](contracts/directory.md) "Guarantees" |
|
|
49
|
+
| 43 | Account mail is sent once, off the response path | Resolved (build/auth-hardening): verification, reset and change-of-address mail is queued (off the response path) in `eloxiv.account_mail`, its link sealed at rest, sent by any kernel process, tried again with a doubling wait (six attempts, never past its link's hour), given up on a permanent refusal, and sent once (each message claimed just before its send, its outcome written only under that claim, and the same `Message-ID` on every attempt); failures are recorded as a classification and the SMTP code, never the server's text; stated limit: a process that dies in the moment between the answer and the queue's commit loses that message (`packages/testing/test/account-mail.test.ts`). Invitations are sent inside their write, so a failure leaves no invitation | [contracts/actor.md](contracts/actor.md#signing-in) |
|
|
50
|
+
| 44 | People's session tokens are stored as issued | Resolved (build/auth-seam): the store keeps each session token's SHA-256 digest (`sha256:<hex>`), through the auth seam: Better Auth's statements on its session table store and match digests (`hashedSessionTokens`, `packages/kernel/src/auth/SessionTokens.ts`), every provider stores `storedToken(token)`, and a digest presented as a credential names no session (Better Auth's provider refuses one in its `resolve`, the kernel's one lookup of a person's credential); kernel migration `0246_hashed_session_tokens` digests the sessions stored before in place (safe to apply again). Every session and revocation test runs against the digested store, the credential fence and the sign-out hold included (`packages/testing/test/session-tokens.test.ts`, "keeps only a digest: a token read from the database does not authenticate, the token itself does" and "digests the sessions stored before in place, which keep working, and changes nothing when applied again") | [contracts/actor.md](contracts/actor.md#limits) |
|
|
51
|
+
| 45 | A password sign-in already in flight when a reset lands can still finish | Resolved (build/auth-hardening): a session made for a request that presented none (a sign-in) is checked at its commit against the account's last change of password, under the lock a change or reset takes first (the credential fence, kernel migration `0200_credential_fence`): a sign-in that read the old password commits its session before the reset (which then ends it) or is refused, whether or not it presented another session; a two-factor challenge a password check earned is fenced the same way, and a change or reset (not the cleanup of an expired reset token) voids the account's pending ones (`packages/testing/test/account-security.test.ts`, "gives no session to a sign-in that checked the old password when a reset committed before its session (backlog 45)" and "voids a two-factor challenge the old password earned once the password is reset (backlog 45)", "fences a sign-in made while presenting another account's session as one that presents none (backlog 45)", "gives no two-factor challenge to a sign-in that checked the old password when a reset committed before it (backlog 45)", "keeps two-factor challenges when an expired reset token is cleaned up: that is no change of password (backlog 45)") | [contracts/actor.md](contracts/actor.md#signing-in) |
|
|
52
|
+
| 46 | A reload in the instant after Sign out can leave the person signed in | Resolved (build/auth-hardening): the shell keeps the revocation (and forgets the stored session) before the signed-out state shows (`shell-foldkit` 0.4.2: `KeepSignOut`, then `KeptSignOut`), so a reload from the instant the sign-in form appears finds the revocation and finishes it, whatever order the runtime renders and runs Commands in (`registry/test/shell-foldkit.test.ts`, "keeps the revocation before it shows signed out, then signs out at once, closes the replica, and retries a revocation the server did not confirm"; in the browser, `e2e/sign-out.spec.ts`, "a sign-out interrupted by a reload, from the instant it shows, is still revoked when the shell starts again", which reads storage at the instant the form appears) | [e2e/sign-out.spec.ts](../e2e/sign-out.spec.ts) |
|
|
53
|
+
| 47 | The budgets calibration misses I/O contention, and the whole-app kernel start has little headroom on Node | Resolved (build/backlog-final): the runner's speed counts disk and database I/O (`ioMs`: files written and synced, a PostgreSQL table written in many commits, indexed and read, with setup's kind of DDL; the host's ratio is the larger of it and the contention workload's), and the kernel's ratio is the larger of its apps', each to its own reference, so a contended host whose CPU measures fast is measured again and, still slow, inconclusive, while a kernel that got slower on a healthy host still fails (`bench/test/calibration.test.ts`, "takes a host whose disk and database are contended for slow, though its CPU workloads measure fast" and "still fails a kernel that got slower when the host's disk and database measure healthy"). The I/O reference is provisional (this machine's) until a merge-tier run records the reference runner's. Where the whole example app's start goes, and the cheap win taken (the registry's checks once per process, not on each of start's three builds: 2,557 to 2,367 ms here), in [performance.md](performance.md) "Where the kernel's start goes"; the 2,000 ms budget is unchanged. Follow-up (build/flakes-3): merge tier 43798305676 still failed the kernel start (2,152 ms) on a host whose I/O measured 1.40 times the reference, because the runner's speed was the smaller of the host's and the kernel's ratios and the whole example app's Node reference (1,878 ms) sits at 94 % of the budget; the kernel now only has to start slower than its reference to bear out a slow host (`bench/test/calibration.test.ts`, "takes a host whose I/O measures 1.40 times the reference for slow when the kernel start misses its budget") | [performance.md](performance.md) "A slow machine is not a regression"; [bench/src/calibration.ts](../bench/src/calibration.ts) |
|
|
54
|
+
| 48 | The client-error bound counts per calendar minute | Resolved (build/flakes; owner, 2026-11-15: keep the fixed window): the contract says what the code does, at most `CLIENT_ERRORS_PER_MINUTE` (30) reports a person per calendar minute, so up to 60 in any 60 seconds across a boundary (the Telemetry contract's `reportClientError` and [contracts/telemetry.md](contracts/telemetry.md)). The test floods inside one minute and requires exactly 30 kept, then 5 refused (`packages/testing/test/client-errors.test.ts`, "refuses a report that carries free text, and keeps at most the bound a person a minute") | [contracts/telemetry.md](contracts/telemetry.md) |
|
|
55
|
+
| 49 | Test files share MAKE modules' cluster-wide roles | Resolved (build/flakes): the race is closed. A MAKE module's roles are the cluster's, named for the module, and a preview drops them when it ends unless its own database installed the module; a setup now holds the module's role lock (`MAKE_ROLE_LOCK`, which previews, installs and rollbacks already take) from creating its roles until it has referenced them, taking the locks all or none in sorted order, and the MAKE lifecycle passes on the lock it holds (`holdMakeRoleLocks`, `SetupOptions.makeRoleLocksHeld`). So a preview can no longer drop a role another database's setup has created and not yet used (`role "eloxiv_mod_mk_todos" does not exist`, build/main run 43690678628): `packages/testing/test/make-role-race.test.ts`, "a preview elsewhere never drops a role a setup has created and not yet used: neither loses it", holds a setup between creating the roles and using them while a preview of the same module name runs in another database (it failed with `role "eloxiv_own_mk_race_todos" does not exist` before). Two apps on one cluster still share a module's roles (a stated limit); roles named per app or per install are a later option, needing the catalogue functions that bind a session's role to its module by name (`record_migration`, `make_call_of`) to read that binding elsewhere | [contracts/sandbox.md](contracts/sandbox.md) limits |
|
|
56
|
+
| 50 | MAKE's refusals of a draft whose shape is wrong give a model nothing to act on | **Resolved** (build/owner-decisions): `make.draft` checks the source against the MAKE source schema itself and words every problem with its path, what was given and what belongs there, described from the schema (`["source"]["manifest"]["actions"]["x.add"] is a string: write an object with description, input, output (optional: …) there`, `… ["description"] is missing: write a string there`), never a bare `Expected object` or `Missing key` (`packages/kernel/src/make/Repair.ts`; `packages/testing/test/make-authoring.test.ts`, "a value of the wrong shape or a missing key is refused with its path, what was given and what belongs there"). No eval, limit or threshold changed. Found by PR #86's real-model runs: the version bump in `registry/test/make-real-model.test.ts` (gpt-5-mini, 300k tokens) passed every lane, but its two costliest runs used 196k and 221k tokens, because `make.draft` answered `SchemaError(Expected object)` and a bare `Missing key`, which name neither the path nor what belongs there. Wording that says where and what (as #86 did for a misplaced empty key, `make-authoring.test.ts`) would add headroom under the limit. The limit, the threshold and the eval stay as they are | [contracts/sandbox.md](contracts/sandbox.md); progress.md criterion 13 |
|
package/dist/docs/ci.md
ADDED
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
# CI
|
|
2
|
+
|
|
3
|
+
What runs when, and why. The workflow is `.github/workflows/ci.yml`; its first job, **plan and format**, decides what
|
|
4
|
+
the rest do (`tools/done/src/ci.ts plan`, rules in `tools/done/src/ciPlan.ts`) and writes its decisions to the run's
|
|
5
|
+
summary; its last, **ci**, passes only when every job the plan selected passed and every other was skipped, so one
|
|
6
|
+
check is the whole run (`tools/done/src/ciVerdict.ts`). `mise run ci:plan -- --base <rev> [--head <rev>] [--tier
|
|
7
|
+
push|merge]` prints what a change would run.
|
|
8
|
+
|
|
9
|
+
## Tiers
|
|
10
|
+
|
|
11
|
+
| Tier | When | What |
|
|
12
|
+
| --- | --- | --- |
|
|
13
|
+
| Per push | A pull request into anything but `main` (topic branches into `build/main`): opened, pushed to, reopened, ready for review, edited (a retarget re-plans) | Format; lint and boundaries (`mise run lint`); typecheck and build of the affected packages; the affected tests, the same files on Bun and on Node; the strict done gate on Bun and on Node (`done`); the Rust crates (`rust`) when a Rust input changed; the Rune host's live journey on Bun and on Node (`rune-journey`) when a Rust input or one of its own changed; the packaged Rune host on Linux, macOS and Windows (`desktop-rune-package`) only when the item's packaging or this workflow changed. Documentation alone: the format check only |
|
|
14
|
+
| Merge | A push to `main`, a pull request into `main` (`build/main`'s own draft pull request: every push to `build/main`), a run by hand | Every merge-tier job: the full check on Bun and on Node (`mise run check` without its benchmarks: lint, typecheck, build, every test, Playwright); the strict done gate on Bun and on Node (`done`); the performance budgets on Bun and on Node (`budgets (bun)`, `budgets (node)`: `mise run bench`, each on a runner of its own, docs/performance.md); desktop (Linux, macOS, Windows with the kernel on Bun, and Linux with the kernel on Node); React Native (kernel on Bun and on Node); the mobile host on an Android emulator (kernel on Bun and on Node) and its iOS simulator attempt; managed PostgreSQL emulated (Bun and Node); live Google on Bun and on Node when its own inputs changed in this push (live Neon runs only by hand, below); the Rust crates on Linux, macOS and Windows (`rust`) when theirs changed; the Rune journey (`rune-journey`) and the packaged Rune host (`desktop-rune-package`) when theirs changed. Nothing, only when this push changed documentation alone and the run before it passed; only the gate job (its tests on both runtimes) and the strict done gate when that documentation includes what a gate reads |
|
|
15
|
+
| Live | Nightly (03:23 UTC), or by hand with `scope: live` | Live Google on Bun and on Node, whatever changed; the nightly job also starts `slack-live.yml`. Both on `build/main` while it exists, else `main` (only on a definite 404 for `build/main`; any other lookup error fails the nightly job) |
|
|
16
|
+
|
|
17
|
+
`slack-live.yml` runs nightly (started by ci.yml's nightly job), by hand, and on a push to `main` or `build/main`
|
|
18
|
+
that changes what it exercises (its `paths`, checked against the import graph by `tools/done/test/ci-plan.test.ts`).
|
|
19
|
+
It runs the Messaging kit against the real workspace with the kernel and the test runner on Bun and then on Node, one
|
|
20
|
+
after the other in its one serialized job (they share the workspace, the app's Request URL and the configuration
|
|
21
|
+
token); each lane passes only on its report: the four cases passed, none skipped (`--live slack --no-skips`). First
|
|
22
|
+
run on both: 43810691037.
|
|
23
|
+
|
|
24
|
+
## The strict done gate (`done`)
|
|
25
|
+
|
|
26
|
+
Criterion 1 and the completion rule (docs/goal.md) need `mise run done`, the definition-of-done gate in strict mode
|
|
27
|
+
(`ELOXIV_DONE_STRICT=1`: an open ledger row, an unregistered contract or a module field declared twice fails), to pass
|
|
28
|
+
in CI on both runtimes. The job `done (strict, bun and node)` runs it on Bun and then on Node (the task goes through
|
|
29
|
+
`tools/scripts/test.sh`, so `ELOXIV_RUNTIME=node` runs Node's Vitest), and each passes only on its report: every test
|
|
30
|
+
of `tools/done` passed, none skipped (`ci.ts report --project tools/done --no-skips`). The plan runs it on the merge
|
|
31
|
+
tier whenever that tier runs anything, beside the gate job for documentation a gate reads included, and per push
|
|
32
|
+
whenever code or documentation the gate reads changed (the gate reads every package, the registry, the examples,
|
|
33
|
+
`tools/`, `docs/parity.json`, `docs/progress.md`, `docs/decisions.md`, `docs/contracts/`, the documentation pages
|
|
34
|
+
it checks and the feature ledger: `namedPaths`; it does not read `docs/backlog.md`, so a change to that alone runs
|
|
35
|
+
nothing). The per-push and merge tiers' test jobs still run the same gate non-strict. First
|
|
36
|
+
run: 43810687036 (by hand, `only=done`), 177 of 177 on Bun and on Node, 0 skipped.
|
|
37
|
+
`model-live.yml` keeps its own triggers.
|
|
38
|
+
|
|
39
|
+
## The Rust crates (`rust`)
|
|
40
|
+
|
|
41
|
+
`rust (linux)`, `rust (macos)` and `rust (windows)` run `mise run rust:check` on the Rune desktop host's Cargo
|
|
42
|
+
workspace (`registry/app/desktop-rune`): `cargo fmt --check`, `cargo clippy --workspace --all-targets -- -D warnings`
|
|
43
|
+
and `cargo test --workspace`, the last being the screens against a fake `/client/v1` and the native MAKE renderer in
|
|
44
|
+
Rune's headless `Runtime` (no window, no GPU), and the generated protocol types against the contracts' JSON Schemas
|
|
45
|
+
(`ELOXIV_REQUIRE_SCHEMAS=1`: missing schemas fail rather than skip). Linux installs `libxkbcommon-dev` and
|
|
46
|
+
`libwayland-dev`; Rust comes from mise; `Swatinem/rust-cache` keeps the workspace's `target/` per OS. The plan selects
|
|
47
|
+
it on either tier only when a Rust input changed (`RUST_ROOTS` in `tools/done/src/ciPlan.ts`: the workspace and
|
|
48
|
+
`packages/contracts/schema/`), or when everything runs; never for documentation. On the merge tier after a run not
|
|
49
|
+
known to have passed, it runs for any change but documentation, and for an event that changed nothing (an edit of the\npull request's body cancels the run its opening started): an earlier push's Rust change may be unproven. Its live journey (`cargo test --test
|
|
50
|
+
journey`) skips here: the runner that starts the real system sets its variables, in its own job.
|
|
51
|
+
|
|
52
|
+
## The Rune journey (`rune-journey`)
|
|
53
|
+
|
|
54
|
+
`rune journey (linux, bun)` and `rune journey (linux, node)` run
|
|
55
|
+
[`registry/test/desktop-rune-journey.test.ts`](../registry/test/desktop-rune-journey.test.ts) with
|
|
56
|
+
`ELOXIV_RUNE_JOURNEY=1` (without it the file is skipped, saying why; with it and no `cargo`, it fails). The runner
|
|
57
|
+
starts PostgreSQL's database, the kernel (the registry app with MAKE, `registry/test/fixtures/desktop-rune-app`),
|
|
58
|
+
zero-cache and the app's daemon from source (`registry/app/desktop-rune/sidecar/daemon.ts` on Bun, `daemon-node.ts` on
|
|
59
|
+
Node, the job's runtime), installs a MAKE module in globex (Alice asks, Dana approves), points the app's agent at a scripted
|
|
60
|
+
OpenAI-compatible model (`startScriptedChatModel`), plays the system browser for the desktop sign-in (email sign-in,
|
|
61
|
+
`approveDesktopSignIn`, the daemon's callback), runs `cargo test --locked -p
|
|
62
|
+
eloxiv-desktop-rune --test journey` (debug: the same artefacts as `cargo test`, cached by `Swatinem/rust-cache`) and
|
|
63
|
+
asserts every `JOURNEY` check `ok`, then that Bob's own replica received the host's greeting. The host's app runs in
|
|
64
|
+
Rune's headless `Runtime`: no window, no GPU, no display server. Its report must show the file ran with nothing
|
|
65
|
+
skipped (`ci.ts report --no-skips`). The plan selects it on either tier when a Rust input changed or one of its own
|
|
66
|
+
inputs did (`JOB_ROOTS["rune-journey"]`: the runner, its fixture app and the daemon's entries, through their imports:
|
|
67
|
+
the daemon, the client, the kernel, the registry app), or when everything runs; and, like `rust`, on the merge tier
|
|
68
|
+
for any change but documentation, or an event that changed nothing, after a run not known to have passed.
|
|
69
|
+
|
|
70
|
+
## The packaged Rune host (`desktop-rune-package`)
|
|
71
|
+
|
|
72
|
+
`desktop-rune package (linux)`, `(macos)` and `(windows)` build the example app's installers with
|
|
73
|
+
[`tools/scripts/desktop-rune-lane.ts`](../tools/scripts/desktop-rune-lane.ts) `package` (the app's own
|
|
74
|
+
`desktop-rune/scripts/package.ts`: cargo-packager 0.11.8, installed by the job and cached with the cargo home; the
|
|
75
|
+
daemon sidecar built for the runner's target): `.deb` and AppImage, `.app` and `.dmg`, an NSIS installer. They are
|
|
76
|
+
uploaded (`desktop-rune-installers-<os>`), then installed as a person would (`install`: `apt-get install` of the
|
|
77
|
+
`.deb` and the AppImage unpacked by its own runtime; the dmg mounted and its `.app` copied out; the installer run
|
|
78
|
+
silently, per user). `check` starts the kernel and zero-cache and launches each installed copy headed (Xvfb on Linux):
|
|
79
|
+
it must reach interactive with its sidecar answering `/health`, then be quit (SIGTERM; a close request on Windows) and
|
|
80
|
+
killed outright once (the stdin lifeline), the sidecar gone each time; on Linux once more against a kernel on Node.
|
|
81
|
+
`mise run bench` with `ELOXIV_BENCH_DESKTOP_HOST=rune` then measures launch to interactive of the installed copy
|
|
82
|
+
(three rounds of 20 launches, the median of their p95s, against "Desktop launch to interactive ≤ 1.5 s"; a miss on a
|
|
83
|
+
runner the calibration rates slow is re-measured and, still slow, inconclusive, decision 13), and the job asserts it
|
|
84
|
+
was measured. Signing and notarisation run only when their secrets are set (`APPLE_SIGNING_IDENTITY`,
|
|
85
|
+
`APPLE_CERTIFICATE`, `APPLE_CERTIFICATE_PASSWORD`, `APPLE_ID`, `APPLE_PASSWORD`, `APPLE_TEAM_ID`;
|
|
86
|
+
`WINDOWS_CERTIFICATE` with `WINDOWS_CERTIFICATE_PASSWORD`, or `WINDOWS_SIGN_COMMAND`); without them the installers are
|
|
87
|
+
unsigned and the package step says so. The AppImage step's tools (AppRun, linuxdeploy, its AppImage plugin) are
|
|
88
|
+
fetched by `package.ts` at pinned versions and checked against their SHA-256 sums, and the NSIS ApplicationID plugin
|
|
89
|
+
is checked before the installer is accepted. The plan selects it on the merge tier when a Rust input changed or one of
|
|
90
|
+
its own did (`JOB_ROOTS["desktop-rune-package"]`: the lane and what it starts, the example app as a whole, `bench.sh`),
|
|
91
|
+
when everything runs, and after a run not known to have passed like `rust`; per push only when the item's packaging
|
|
92
|
+
(`package.ts`, `measure-launch.ts`, `build-sidecar.ts`, `app.json`, its icon and entitlements, in the registry or the
|
|
93
|
+
example app), the lane or this workflow changed (`isPackagingInput`), or the changes cannot be known.
|
|
94
|
+
|
|
95
|
+
The definition of done (docs/goal.md) needs every check to pass on Bun and on Node: the per-push tier runs every
|
|
96
|
+
affected test on both, and the merge tier the whole suite on both, and every lane that starts a kernel on both:
|
|
97
|
+
|
|
98
|
+
| Lane | Kernel on Bun | Kernel on Node |
|
|
99
|
+
| --- | --- | --- |
|
|
100
|
+
| Full check (`check`), budgets, managed PostgreSQL emulated, React Native | `check (bun)`, `budgets (bun)`, `managed postgres (emulated, bun)`, `react native (hermes, android, bun)` | the same jobs with `node` |
|
|
101
|
+
| Live Google (`live connector (google)`) | plan key `live-google`: the job's first lane | `live-google-node`: its second lane, in the same job after the first (they share the test account and Gmail's per-user quota, and one job holds one place in the account's concurrency group); it runs even when the first failed |
|
|
102
|
+
| Live Neon (by hand only) | `live-neon`: `live postgres (neon, bun)` | `live-neon-node`: `live postgres (neon, node)`, side by side, each with a Neon branch of its own. On no tier (owner, 2026-11-22): run them by hand, `gh workflow run ci.yml --ref <branch> -f only=live-neon,live-neon-node`, when the managed-host setup changes; the emulated managed-PostgreSQL job runs the same suites as `neondb_owner` on the merge tier |
|
|
103
|
+
| Desktop | `desktop`: `desktop (linux)`, `desktop (macos)`, `desktop (windows)` | `desktop-node`: `desktop (linux, node kernel)`: the same host, journey and launch budget against a kernel on Node. The host's daemon sidecar is a Bun-compiled binary on every lane (decision 7), so only the kernel changes |
|
|
104
|
+
|
|
105
|
+
## The mobile lanes (`mobile`, `mobile-ios`)
|
|
106
|
+
|
|
107
|
+
On the merge tier, like React Native. `mobile (expo, android, bun | node)` builds the example's Expo host
|
|
108
|
+
(`examples/hello-app/mobile`, the registry's [`mobile`](registry/mobile.md) item) as a release APK for the lane
|
|
109
|
+
(bundled with `EXPO_PUBLIC_ELOXIV_E2E_URL`, `EXPO_PUBLIC_ELOXIV_E2E_PUSH_TOKEN` and `EXPO_PUBLIC_ELOXIV_ALLOW_HTTP=1`,
|
|
110
|
+
which alone lets a release build reach the lane's plain-HTTP kernel and gives it Android's cleartext permission),
|
|
111
|
+
boots an Android 15 emulator and runs [`tools/scripts/mobile-harness.ts`](../tools/scripts/mobile-harness.ts) with the
|
|
112
|
+
example's kernel on the matrix runtime. The harness drives the real screens as a person would (uiautomator finds each
|
|
113
|
+
control by its `testID`, which React Native exposes as the resource id; `adb shell input` taps and types) and checks
|
|
114
|
+
the server's side in the database: sign-in with a two-factor code, a second client's greeting arriving live, an
|
|
115
|
+
optimistic greeting on screen while the server's write is held back and then saved, a refused one dropped with words
|
|
116
|
+
for people (never the kernel's raw error), an organisation switch with none of the other organisation's rows on
|
|
117
|
+
screen, notifications turned on through the OS's own permission prompt (the installation registered, push added to the
|
|
118
|
+
decision categories with email kept), a chat turn whose held call is approved from the chat's card and runs once, its
|
|
119
|
+
consent notification handed twice and shown once in the shade, then tapped (it opens that exact request, naming what it
|
|
120
|
+
runs, and decides nothing) and its own conversation opened from it, a second held call from its notification's Approve
|
|
121
|
+
button with the app's process gone (the app starts, checks the notification is for the signed-in person and this
|
|
122
|
+
installation, and opens the request with Approve preselected: nothing is decided, the consent still pending and the
|
|
123
|
+
mail unsent after a pause, until the person confirms it in the app; then it decides through the person's session:
|
|
124
|
+
Android gets no decision token; the kernel's idempotency record shows Alice's `consent.approve`, remembered once), a
|
|
125
|
+
deep link into another organisation and a foreign one refused, a cold launch
|
|
126
|
+
from a deep link, an offline cold start that shows the remembered organisation's last synced rows at once (marked offline, none of the other organisation's) with a greeting written offline saved once back online, and sign-out removing the installation and
|
|
127
|
+
clearing the person's notifications from the shade. Screenshots (with the uiautomator dump of each moment),
|
|
128
|
+
`results.json` and logcat are uploaded.
|
|
129
|
+
|
|
130
|
+
How the notification gets there, honestly: the kernel's push channel sends it over FCM HTTP v1 to the FCM protocol
|
|
131
|
+
fake, as it would to Google, and the harness checks that real message (data-only, no collapse key, the decision with
|
|
132
|
+
no token, the recipient and installation). The emulator has no Firebase project and receives no FCM message, so the app
|
|
133
|
+
built for the lane registers a fixed device token (known to the fake), and the harness hands it the message's `data` as
|
|
134
|
+
the fake received it (each handed message once); the app shows it as expo-notifications shows a data-only message
|
|
135
|
+
(`src/e2e.ts`: named by its `tag`), as a local notification. From the shade on it is a pushed notification's path. React
|
|
136
|
+
Native pauses the app's timers in the background, so the harness hands notifications over while the app is in front,
|
|
137
|
+
then leaves it. Not exercised, so unproven here: Google's delivery to a device, expo-notifications' native Firebase
|
|
138
|
+
receiver and its background presentation (where a resend the person dismissed can show again), and a native token
|
|
139
|
+
rotation (the app registers a rotated token for the person who opted in; covered by the unit tests only).
|
|
140
|
+
|
|
141
|
+
`mobile (expo, ios simulator, attempt)` builds the same app for the iOS simulator on Blacksmith's macOS 15 runner
|
|
142
|
+
(`expo prebuild`, CocoaPods, `xcodebuild` without signing) and launches it once, passing only when the app reports its
|
|
143
|
+
sign-in screen to a listener on the runner (`src/e2e.ts` `reportScreen`; a live process with an error screen or a blank
|
|
144
|
+
view does not pass), with a screenshot. It was written without a Mac to try it on: the whole job continues on error,
|
|
145
|
+
setup included, and the summary reports setup, build and the sign-in screen separately, so it never fails a run. The
|
|
146
|
+
lane is unproven until a run is observed passing, and nothing on iOS counts as proven until then.
|
|
147
|
+
|
|
148
|
+
## By hand, for named lanes (`only`)
|
|
149
|
+
|
|
150
|
+
`gh workflow run ci.yml --ref <branch> -f only=<keys>` runs exactly the plan's job keys named (comma- or
|
|
151
|
+
space-separated, for example `live-google-node,desktop-node`), whatever changed, and skips every other; a live key
|
|
152
|
+
still needs its secrets. A name that is not a job key fails the plan job, so a typo never runs nothing and passes.
|
|
153
|
+
The keys are `JOBS` in `tools/done/src/ciPlan.ts` (the run's summary lists them). The workflow's concurrency group
|
|
154
|
+
includes `only`, so runs by hand for different lanes of one branch do not cancel each other. This proves a lane
|
|
155
|
+
without a whole merge tier; it never stands in for one.
|
|
156
|
+
|
|
157
|
+
## Releases (`release.yml`)
|
|
158
|
+
|
|
159
|
+
A workflow of its own, outside the tiers, in three jobs ([release.md](release.md)). `build`, with no publishing authority, checks that a pushed `v*` tag is on `main` and names every public package's version, builds, packs and verifies the `@eloxiv/*` tarballs, and at once hands the tarballs and their digests on. `smoke`, with no publishing authority either, checks a downloaded copy against those digests, installs it into an empty app, loads each package on Node and Bun, starts each daemon executable on its own runtime, and dry-runs the publish. `publish`, only on such a tag, after smoke and in the `npm-release` environment, alone gets the OIDC token: it installs nothing, checks the digests and publishes the tarballs to npm with trusted publishing (no token), with provenance while the repository is public, on a GitHub-hosted runner because npm accepts no other. A run by hand runs `build` and `smoke` only. Per push and on the merge tier, `tools/done/test/release.test.ts` (in the done gate and the tests) checks the packages' metadata, npm's packing of their entry points, and this workflow's shape.
|
|
160
|
+
|
|
161
|
+
## Per push: the pull request's own changes, no history
|
|
162
|
+
|
|
163
|
+
The changed files are the pull request's cumulative changes against its base, `git diff base...head` (from the fork
|
|
164
|
+
point, so what the branch merged from its base is not its change), and the jobs test the merge result (the plan job
|
|
165
|
+
checks out the merge commit and passes it to every job, so they cannot drift from it). Nothing about earlier runs is
|
|
166
|
+
read. Because the changes are cumulative, a push of documentation after a code push still runs that code's tests.
|
|
167
|
+
|
|
168
|
+
- **Documentation only** runs nothing but the format check (in the plan job): `docs/**`, `repos/**`, top-level `*.md`
|
|
169
|
+
and `.changeset/*.md`, except what code reads.
|
|
170
|
+
- **Documentation a gate reads is that gate's input**, found by scanning code for repository paths it names literally
|
|
171
|
+
(`namedPaths`, whether or not the path exists: a gate input deleted or renamed while its reader still names it is
|
|
172
|
+
exactly what must run): today `docs/decisions.md`, `docs/parity.json`, `docs/progress.md`,
|
|
173
|
+
`docs/research/agent-native-feature-ledger.md` and `docs/contracts/` (tools/done). A change to one runs that gate's
|
|
174
|
+
tests.
|
|
175
|
+
- **Shared roots run everything**: `pnpm-lock.yaml`, `pnpm-workspace.yaml`, `package.json`, `.npmrc`, `mise.toml`,
|
|
176
|
+
`tsconfig.base.json`, `turbo.json`, `vitest.config.ts`, `.github/workflows/ci.yml`, `tools/vitest/`,
|
|
177
|
+
`tools/scripts/test.sh`, `tools/scripts/pg.sh`, and every module of the plan's own code (a test walks `ci.ts`'s
|
|
178
|
+
imports). So do any file the plan cannot attribute to a package, a lint input or a merge-tier job's script, a
|
|
179
|
+
deleted Vitest or Playwright config, and a changed test file the plan's inventory does not have. A rename is both its
|
|
180
|
+
paths; a deletion, its old path.
|
|
181
|
+
- **The affected tests**: every test of the projects Turborepo lists as affected (the packages that own a changed file
|
|
182
|
+
and every package that depends on them, `turbo ls --filter=...{./<dir>}`; the workspace root depends on no
|
|
183
|
+
workspace package, so that graph is the packages' own); the tests, or projects, whose code names a changed path
|
|
184
|
+
literally (the CLI's tests read `registry/public/r/`); and the definition-of-done gate (`tools/done`, a few
|
|
185
|
+
seconds), whenever code changed. They run on Bun and on Node, the same files, in up to four shards of about three
|
|
186
|
+
minutes each (the longest first, each to the shard with the least so far, by measured per-file times).
|
|
187
|
+
|
|
188
|
+
## Merge tier: everything, unless a documentation push follows a passing run
|
|
189
|
+
|
|
190
|
+
Every merge-tier job runs, with one exception. When both of these hold:
|
|
191
|
+
|
|
192
|
+
1. the files this push changed (`before..after` of the push; for a pull request's synchronize, its previous head to
|
|
193
|
+
its new one; for an edit that did not retarget it, nothing) are all documentation (`docs/**`, `repos/**`, top-level
|
|
194
|
+
`*.md`, `.changeset/*.md`); and
|
|
195
|
+
2. the most recent CI run for the branch, this one aside, is for exactly that previous head, completed, and concluded
|
|
196
|
+
`success` in its latest attempt; is the same kind of run, against the same base commit, as its title records it
|
|
197
|
+
(the workflow's `run-name`: the event, the pull request, its base branch and base SHA, the dispatch scope); and its
|
|
198
|
+
final `ci` job passed in that attempt (`tools/done/src/ciHistory.ts`). A run in progress, failed, cancelled, for
|
|
199
|
+
another head, of another kind (a nightly or by-hand live run, a push) or against a base that has moved since is
|
|
200
|
+
not, and an older run is never looked for instead;
|
|
201
|
+
|
|
202
|
+
then (a) documentation no code reads runs nothing, and (b) documentation a gate reads (docs/progress.md,
|
|
203
|
+
docs/parity.json, docs/decisions.md, docs/contracts/, the feature ledger: the code scan's list, `namedPaths`) runs
|
|
204
|
+
only the **gate** job: that gate's tests (the definition-of-done gate's) on Bun and then on Node in one cheap job, the
|
|
205
|
+
format check being the plan job's. The final `ci` job takes that job as the selected set.
|
|
206
|
+
|
|
207
|
+
Anything else runs everything: documentation with a code file; an error or rate limit from the API, a response not
|
|
208
|
+
shaped as documented; an unknown previous head (a pull request opened, reopened or made ready; a new branch); an edit
|
|
209
|
+
that retargets the pull request (a fresh run for its new base and tier); a force-push (the previous head not an
|
|
210
|
+
ancestor of the new one); no earlier run. No per-job records, no stored annotations, no expiry.
|
|
211
|
+
|
|
212
|
+
**Live jobs** run on the merge tier only when one of their own inputs changed in this push (`JOB_ROOTS`: what each
|
|
213
|
+
starts, walked through the import graph with the Vitest configs and setup files its tests load; `mise exec -- node
|
|
214
|
+
tools/done/src/ci.ts map` prints them), or when the changes cannot be known, and in the live tier always. They never
|
|
215
|
+
skip on the strength of an earlier proof. A live job whose secrets are not set is skipped by the plan (the plan job
|
|
216
|
+
sees whether each is set, never its value, and notes it in the summary), so a run without credentials is never a
|
|
217
|
+
passing job; `slack-live.yml`
|
|
218
|
+
keeps its own gate step, which passes without its secrets and says so. A live job that runs passes only on its Vitest
|
|
219
|
+
JSON report: the credentialed tests passed, at least as many as its last green runs did (`ciReport.ts`).
|
|
220
|
+
|
|
221
|
+
## Every run
|
|
222
|
+
|
|
223
|
+
- A test step passes on its Vitest JSON report, not its exit code (`ci.ts report`): every file it was given ran, none
|
|
224
|
+
failed and at least one test passed. Vitest exits 0 when everything skipped or a filter matched nothing.
|
|
225
|
+
- No plan output or context is spliced into anything a shell runs: they reach a step through `env:`, and the affected
|
|
226
|
+
packages reach Turborepo as arguments (`ci.ts turbo`). A test checks every workflow's steps (`run`, `shell`,
|
|
227
|
+
`working-directory`, `defaults.run`, and the `with:` inputs an action runs as a script: `script`, `run`, `command`,
|
|
228
|
+
`args`, ...) and the repository's composite actions (there are none today). It does not read third-party actions'
|
|
229
|
+
own code.
|
|
230
|
+
|
|
231
|
+
## Accepted limits
|
|
232
|
+
|
|
233
|
+
- **A broken base is the base's own CI's to show.** A topic's per-push run tests its own changes merged into the base
|
|
234
|
+
as it is; if the base itself is broken (its own CI failing or still running), the topic's run need not show it.
|
|
235
|
+
- **On `build/main` any code push runs the whole merge tier** (the full check on both runtimes, the desktop hosts,
|
|
236
|
+
React Native, managed PostgreSQL emulated): skipping per job, by what a change can affect, is gone. Only a push of
|
|
237
|
+
documentation alone, after a run that passed, runs less: nothing, or the gate job for documentation a gate reads.
|
|
238
|
+
- **A documentation push after a cancelled or still-running run runs everything** (the concurrency group cancels the
|
|
239
|
+
older run of the same ref): rapid pushes cost a full run.
|
|
240
|
+
- **Editing a pull request into `main`** (its title or body) re-plans: nothing runs if the run before for that head
|
|
241
|
+
passed and nothing else is in flight; otherwise everything.
|
|
242
|
+
- A topic branch's push does not run Playwright, the benchmarks, the desktop hosts, React Native, managed PostgreSQL
|
|
243
|
+
or the live services: they run when the change reaches `build/main` (its pull request into `main`).
|
|
244
|
+
- Nightly needs this workflow on `main` (GitHub schedules only the default branch's workflows). Until then the live
|
|
245
|
+
tier runs by hand (`gh workflow run ci.yml --ref build/main -f scope=live`).
|
|
246
|
+
- **A nightly or by-hand live run in between costs a documentation push its shortcut**: it is the branch's newest
|
|
247
|
+
run, of another kind, so everything runs.
|
|
248
|
+
- **A green `ci` does not prove the live services for code inherited unchanged**: live jobs run on the merge tier
|
|
249
|
+
only when their own inputs changed in that push. The nightly live tier is the proof.
|
|
250
|
+
- **The run history is read as GitHub answers it**, newest by creation time; any error or unexpected answer from the
|
|
251
|
+
API runs everything, and the fields of each entry are not checked one by one.
|
|
252
|
+
- **A pull request with several merge bases with its base** (criss-cross merges) is planned from the one
|
|
253
|
+
`git diff base...head` picks.
|
|
254
|
+
- **The gate-input scan sees only paths a gate's code names literally**: a path built at run time
|
|
255
|
+
(`join("docs", name)`) is not seen, so editing that file alone after a passing run would not run the gate.
|
|
256
|
+
|
|
257
|
+
## Measured (2026-11-10, pull request 16)
|
|
258
|
+
|
|
259
|
+
Before, every push ran all ten jobs: about 65 to 92 runner-minutes (run 42795115935: `check (node)` 16.4 min,
|
|
260
|
+
`check (bun)` 13.9, live Neon 23.4, React Native 15.5 and desktop Windows 9.5 on GitHub-hosted runners, desktop Linux
|
|
261
|
+
and macOS 3 and 3.5, managed PostgreSQL 1.7 and 1.8, live Google 2.8), about 24 minutes to the last result.
|
|
262
|
+
|
|
263
|
+
Per push, now (probe pull requests into this branch, closed afterwards; runners busy that afternoon):
|
|
264
|
+
|
|
265
|
+
| Pull request's change | Run | Jobs | Runner-minutes | Wall |
|
|
266
|
+
| --- | --- | --- | --- | --- |
|
|
267
|
+
| Documentation only | 42886906587 | plan and format, ci | 1.1 | 1.3 min |
|
|
268
|
+
| One connector (google, its version bumped, republished, the headless example updated) | 42886922008 | plan, static, 3 Bun and 4 Node shards, ci | 29.0 | 6.6 min |
|
|
269
|
+
| One kernel file | 42886934322 | plan, static, 4 and 4 shards, ci | 53.2 | 9.4 min |
|
|
270
|
+
| A shared root (this pull request: everything) | 42886791631 | plan, static, 4 and 4 shards, ci | 55.2 | 10.5 min |
|
|
271
|
+
|
|
272
|
+
On `build/main` (simulated with `ci:plan --tier merge`), after a passing run: a push of documentation no code reads
|
|
273
|
+
runs the plan job alone (about 1 runner-minute); a push of docs/progress.md alone (86ae480d, the push that started
|
|
274
|
+
this work) runs the plan job, the gate job (the definition-of-done gate's 7 test files on Bun and on Node) and the
|
|
275
|
+
final job, an estimated 3 to 4 runner-minutes; any code push runs the whole merge tier: the full check on both
|
|
276
|
+
runtimes, the desktop hosts, React Native and managed PostgreSQL (about 65 to 70 runner-minutes, as before this pull
|
|
277
|
+
request), and the live jobs only when their own inputs changed (live Neon, about 23 more, has since moved to by hand only).
|