@jbkjr/relay 0.0.0-stage → 1.2.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/LICENSES/Apache-2.0.txt +201 -0
- package/LICENSES/README.md +19 -0
- package/LICENSES/codex-NOTICE.txt +6 -0
- package/README.md +386 -2
- package/SECURITY.md +145 -0
- package/adapters/briefs/claude.md +43 -0
- package/adapters/briefs/codex.md +56 -0
- package/adapters/briefs/models.json +33 -0
- package/adapters/build.mjs +8 -0
- package/adapters/claude/.claude-plugin/marketplace.json +13 -0
- package/adapters/claude/relay/.claude-plugin/plugin.json +5 -0
- package/adapters/claude/relay/agents/codex.md +21 -0
- package/adapters/claude/relay/agents/operator.md +21 -0
- package/adapters/claude/relay/skills/ask/SKILL.md +20 -0
- package/adapters/claude/relay/skills/chat/SKILL.md +13 -0
- package/adapters/claude/relay/skills/delegate/SKILL.md +21 -0
- package/adapters/claude/relay/skills/discuss/SKILL.md +19 -0
- package/adapters/claude/relay/skills/review/SKILL.md +21 -0
- package/adapters/claude/relay/skills/tree/SKILL.md +10 -0
- package/adapters/claude/relay/skills/write-for-codex/SKILL.md +78 -0
- package/adapters/codex/.agents/plugins/marketplace.json +20 -0
- package/adapters/codex/AGENTS.snippet.md +5 -0
- package/adapters/codex/relay/.codex-plugin/plugin.json +6 -0
- package/adapters/codex/relay/skills/relay-ask/SKILL.md +20 -0
- package/adapters/codex/relay/skills/relay-chat/SKILL.md +13 -0
- package/adapters/codex/relay/skills/relay-delegate/SKILL.md +21 -0
- package/adapters/codex/relay/skills/relay-discuss/SKILL.md +19 -0
- package/adapters/codex/relay/skills/relay-review/SKILL.md +21 -0
- package/adapters/codex/relay/skills/relay-tree/SKILL.md +10 -0
- package/adapters/codex/relay/skills/relay-write-for-claude/SKILL.md +66 -0
- package/adapters/generate.mjs +124 -0
- package/bin/relay +59 -0
- package/codex-pin.json +12 -0
- package/dist/backends/acp.js +1424 -0
- package/dist/backends/claude.js +890 -0
- package/dist/backends/cli-version.js +112 -0
- package/dist/backends/codex-app.js +1525 -0
- package/dist/backends/codex-daybreak.js +75 -0
- package/dist/backends/codex-env.js +656 -0
- package/dist/backends/codex-network.js +304 -0
- package/dist/backends/codex-pin.js +320 -0
- package/dist/backends/codex-shell-policy.js +182 -0
- package/dist/backends/codex-stage2.js +998 -0
- package/dist/backends/codex-subagents.js +47 -0
- package/dist/backends/codex.js +637 -0
- package/dist/backends/copilot.js +246 -0
- package/dist/backends/env.js +147 -0
- package/dist/backends/gemini.js +607 -0
- package/dist/backends/grok.js +337 -0
- package/dist/backends/index.js +8 -0
- package/dist/backends/native-temp.js +187 -0
- package/dist/backends/never-admission.js +90 -0
- package/dist/backends/run.js +67 -0
- package/dist/backends/stream.js +230 -0
- package/dist/backends/tool-discovery.js +15 -0
- package/dist/backends/types.js +264 -0
- package/dist/build-info.json +5 -0
- package/dist/cli.js +344 -0
- package/dist/confine/bridge.js +113 -0
- package/dist/confine/broker-core.js +76 -0
- package/dist/confine/broker-http.js +650 -0
- package/dist/confine/broker-names.js +9 -0
- package/dist/confine/broker.js +258 -0
- package/dist/confine/canary.js +380 -0
- package/dist/confine/diagnostics.js +122 -0
- package/dist/confine/gemini-tools-main.js +8 -0
- package/dist/confine/gemini-tools.js +181 -0
- package/dist/confine/hardlinks.js +58 -0
- package/dist/confine/harness-config.js +16 -0
- package/dist/confine/index.js +117 -0
- package/dist/confine/leases.js +217 -0
- package/dist/confine/paths.js +6 -0
- package/dist/confine/peer.js +115 -0
- package/dist/confine/port-policy.js +8 -0
- package/dist/confine/ports.js +365 -0
- package/dist/confine/private-root.js +208 -0
- package/dist/confine/probe-stage2.js +501 -0
- package/dist/confine/probe.js +1109 -0
- package/dist/confine/proxy.js +783 -0
- package/dist/confine/sbcheck.js +208 -0
- package/dist/confine/seatbelt-never.js +41 -0
- package/dist/confine/seatbelt-stage2.js +139 -0
- package/dist/confine/seatbelt.js +1129 -0
- package/dist/confine/sockets.js +36 -0
- package/dist/confine/turn-probe.js +19 -0
- package/dist/confine/turn.js +86 -0
- package/dist/core/adoption.js +124 -0
- package/dist/core/api-keys.js +423 -0
- package/dist/core/approvals.js +740 -0
- package/dist/core/build-identity.js +248 -0
- package/dist/core/caller.js +749 -0
- package/dist/core/calls.js +102 -0
- package/dist/core/claude-settings.js +1045 -0
- package/dist/core/config.js +453 -0
- package/dist/core/context.js +186 -0
- package/dist/core/db.js +753 -0
- package/dist/core/dispatch.js +110 -0
- package/dist/core/env-broker.js +505 -0
- package/dist/core/env-policy.js +182 -0
- package/dist/core/escalation-authority.js +76 -0
- package/dist/core/escalation-contract.js +13 -0
- package/dist/core/escalation-person-path.js +131 -0
- package/dist/core/escalation-policy.js +79 -0
- package/dist/core/escalation-runtime.js +135 -0
- package/dist/core/escalation-state.js +42 -0
- package/dist/core/escalations.js +191 -0
- package/dist/core/events.js +235 -0
- package/dist/core/executables.js +147 -0
- package/dist/core/extensions.js +645 -0
- package/dist/core/families.js +204 -0
- package/dist/core/git.js +657 -0
- package/dist/core/identity.js +113 -0
- package/dist/core/liveness.js +68 -0
- package/dist/core/mediated-network-provider.js +81 -0
- package/dist/core/never-checkpoint.js +76 -0
- package/dist/core/never-coverage.js +97 -0
- package/dist/core/never-network.js +49 -0
- package/dist/core/never-policy.js +302 -0
- package/dist/core/never-proxy-policy.js +109 -0
- package/dist/core/never-schema.js +61 -0
- package/dist/core/never-tools.js +56 -0
- package/dist/core/notices.js +48 -0
- package/dist/core/ops.js +959 -0
- package/dist/core/outcome.js +224 -0
- package/dist/core/params.js +32 -0
- package/dist/core/presence.js +174 -0
- package/dist/core/procs.js +546 -0
- package/dist/core/prompts.js +363 -0
- package/dist/core/protected-config.js +238 -0
- package/dist/core/raw-network.js +192 -0
- package/dist/core/redact.js +152 -0
- package/dist/core/refusal.js +33 -0
- package/dist/core/relay-command.js +310 -0
- package/dist/core/reported.js +3 -0
- package/dist/core/restart-overlay.js +651 -0
- package/dist/core/retention.js +1135 -0
- package/dist/core/secrets.js +329 -0
- package/dist/core/session-token.js +175 -0
- package/dist/core/session.js +744 -0
- package/dist/core/shell.js +2 -0
- package/dist/core/shipped-pin.js +47 -0
- package/dist/core/shown.js +42 -0
- package/dist/core/slots.js +67 -0
- package/dist/core/stage2-executors.js +453 -0
- package/dist/core/stage2-switch.js +5 -0
- package/dist/core/steering.js +149 -0
- package/dist/core/storage.js +358 -0
- package/dist/core/toml.js +175 -0
- package/dist/core/views.js +324 -0
- package/dist/core/wait.js +114 -0
- package/dist/core/wake.js +207 -0
- package/dist/core/watch.js +247 -0
- package/dist/core/worktree.js +213 -0
- package/dist/hosts/claude-desktop.js +274 -0
- package/dist/hosts/claude.js +249 -0
- package/dist/hosts/codex.js +329 -0
- package/dist/hosts/desktop-shared.js +20 -0
- package/dist/hosts/index.js +11 -0
- package/dist/hosts/types.js +4 -0
- package/dist/install/basics.js +18 -0
- package/dist/install/claude-init.js +133 -0
- package/dist/install/common.js +655 -0
- package/dist/install/doctor.js +629 -0
- package/dist/install/qualify-codex.js +205 -0
- package/dist/install.js +524 -0
- package/dist/mcp/elicit.js +209 -0
- package/dist/mcp/gateway.js +218 -0
- package/dist/mcp/host.js +253 -0
- package/dist/mcp/server.js +1124 -0
- package/dist/mcp/stdio.js +37 -0
- package/dist/modes/discussion.js +393 -0
- package/dist/modes/review.js +722 -0
- package/dist/native/relay-sbcheck +0 -0
- package/dist/targets/briefs.js +86 -0
- package/dist/targets/claude.js +94 -0
- package/dist/targets/codex.js +66 -0
- package/dist/targets/copilot.js +93 -0
- package/dist/targets/gemini.js +119 -0
- package/dist/targets/grok.js +126 -0
- package/dist/targets/index.js +192 -0
- package/dist/targets/types.js +18 -0
- package/dist/targets/verified.js +35 -0
- package/dist/worker.js +113 -0
- package/docs/UPGRADING.md +1502 -0
- package/docs/pinned-codex.md +321 -0
- package/experiments/stage2-redteam/lib/oracles.mjs +214 -0
- package/experiments/stage2-redteam/lib/report.mjs +35 -0
- package/npm-shrinkwrap.json +1632 -0
- package/package.json +82 -4
- package/scripts/codex-qualify/codex-pin-store.mjs +353 -0
- package/scripts/codex-qualify/codex-qualifier-process.mjs +265 -0
- package/scripts/codex-qualify/codex-qualifier.example.json +5 -0
- package/scripts/codex-qualify/codex-qualifier.mjs +281 -0
- package/scripts/codex-qualify/codex-shipped-pin.mjs +158 -0
- package/scripts/codex-qualify/codex-stage2-pin.mjs +48 -0
- package/scripts/codex-qualify/codex-stage2.mjs +2381 -0
- package/scripts/codex-qualify/install-codex-qualifier.mjs +98 -0
- package/scripts/codex-qualify/main-module.mjs +14 -0
- package/scripts/codex-qualify/relay-codex-qualifier.plist +37 -0
- package/scripts/codex-qualify/scratch-env.mjs +31 -0
- package/scripts/codex-qualify/session.mjs +96 -0
- package/scripts/codex-qualify/stage2-escalation-cases.mjs +125 -0
- package/test/codex-permissions.test.ts +875 -0
- package/test/fixtures/boundary-probes.mjs +17 -0
- package/test/fixtures/denial-stream-host.mjs +7 -0
- package/test/fixtures/families.json +246 -0
- package/test/fixtures/install-snapshots/claude-desktop-foreign.txt +158 -0
- package/test/fixtures/install-snapshots/claude-desktop-fresh.txt +101 -0
- package/test/fixtures/install-snapshots/claude-desktop-installed.txt +161 -0
- package/test/fixtures/install-snapshots/claude-foreign.txt +133 -0
- package/test/fixtures/install-snapshots/claude-fresh.txt +77 -0
- package/test/fixtures/install-snapshots/claude-installed.txt +133 -0
- package/test/fixtures/install-snapshots/codex-foreign.txt +159 -0
- package/test/fixtures/install-snapshots/codex-fresh.txt +107 -0
- package/test/fixtures/install-snapshots/codex-installed.txt +161 -0
- package/test/fixtures/link-parent.mjs +6 -0
- package/test/fixtures/mediated-command.cjs +72 -0
- package/test/fixtures/native-skill-isolation.json +280 -0
- package/test/fixtures/pinned-codex-app-server.mjs +25 -0
- package/test/fixtures/qualified-ext-adapters.mjs +36 -0
- package/test/fixtures/refusals/README.md +52 -0
- package/test/fixtures/refusals/claude-source-result.json +7 -0
- package/test/fixtures/refusals/openai-app-capacity.json +24 -0
- package/test/fixtures/refusals/openai-app-cyberPolicy.json +24 -0
- package/test/fixtures/refusals/openai-gpt-6-astra-max.json +12 -0
- package/test/fixtures/refusals/openai-gpt-6.1-sol-xhigh.json +12 -0
- package/test/fixtures/refusals/openai-review-capacity.json +24 -0
- package/test/fixtures/relay-0.2.0.sql +57 -0
- package/test/fixtures/relay-0.9.1.gen.mjs +212 -0
- package/test/fixtures/relay-0.9.1.sql +340 -0
- package/test/fixtures/slow-boundary-probes.mjs +37 -0
- package/test/fixtures/stable-surfaces/config.json +1122 -0
- package/test/fixtures/stable-surfaces/escalation.json +128 -0
- package/test/fixtures/stable-surfaces/events.json +37 -0
- package/test/fixtures/stable-surfaces/gemini-native-resume.json +4 -0
- package/test/fixtures/stable-surfaces/inbox.jsonl +2 -0
- package/test/fixtures/stable-surfaces/notice.txt +1 -0
- package/test/fixtures/stable-surfaces/refusal-item.json +28 -0
- package/test/fixtures/stable-surfaces/refusal-review.json +23 -0
- package/test/fixtures/stable-surfaces/registry.json +49 -0
- package/test/fixtures/stable-surfaces/tools-desktop.json +575 -0
- package/test/fixtures/stable-surfaces/tools.json +716 -0
- package/test/fixtures/stable-surfaces/usage.txt +46 -0
- package/test/fixtures/stage2-acp-native.mjs +138 -0
- package/test/fixtures/stage2-app-server.mjs +23 -0
- package/test/fixtures/stage2-catalog.json +91 -0
- package/test/fixtures/stage2-hostile-web.mjs +35 -0
- package/test/fixtures/stage2-native-network.mjs +62 -0
- package/test/fixtures/stage2-worker.ts +87 -0
- package/test/fixtures/status-views/expected.json +7825 -0
- package/test/fixtures/status-views/registries.json +1 -0
- package/test/fixtures/steering.json +209 -0
- package/test/helpers.ts +740 -0
- package/test/host-env.ts +7 -0
- package/test/keychain-decoy.ts +197 -0
- package/test/live-scope.ts +44 -0
- package/test/mediated-network.test.ts +192 -0
- package/test/mediated-proxy.test.ts +264 -0
- package/test/native-temp-alias.ts +10 -0
- package/test/never-policy.test.ts +629 -0
- package/test/never-tools.test.ts +136 -0
- package/test/process-home.ts +18 -0
- package/test/proxy.test.ts +531 -0
- package/test/restart-overlay-live.test.ts +85 -0
- package/test/restart-overlay-profile.test.ts +66 -0
- package/test/restart-overlay.test.ts +416 -0
- package/test/stable-surfaces.test.ts +249 -0
- package/test/stage2-escalation-live.test.ts +544 -0
- package/test/stage2-escalation-qualification.test.ts +170 -0
- package/test/stage2-escalation.test.ts +747 -0
- package/test/stage2-executor.test.ts +849 -0
- package/test/stage2-grant.test.ts +603 -0
- package/test/stage2-native-live.test.ts +647 -0
- package/test/stage2-network-decisions.test.ts +70 -0
- package/test/stage2-probe.test.ts +845 -0
- package/test/stage2-standing-live.test.ts +203 -0
- package/test/stubs/broker-host.mjs +59 -0
- package/test/stubs/broker-peer.mjs +20 -0
- package/test/stubs/confined-harness.mjs +91 -0
- package/test/stubs/ext-broken-server.mjs +2 -0
- package/test/stubs/ext-odd-server.mjs +21 -0
- package/test/stubs/ext-server.mjs +31 -0
- package/test/stubs/fake-host-cli.mjs +218 -0
- package/test/stubs/procargs.mjs +30 -0
- package/test/stubs/stub-acp +4 -0
- package/test/stubs/stub-agent.mjs +322 -0
- package/test/stubs/stub-claude +4 -0
- package/test/stubs/stub-codex +4 -0
- package/test/stubs/targets/acp.mjs +307 -0
- package/test/stubs/targets/claude.mjs +149 -0
- package/test/stubs/targets/codex.mjs +479 -0
- package/test/stubs/targets/gemini.mjs +604 -0
- package/test/temp-root.ts +11 -0
- package/test/wp4-adapters.test.ts +353 -0
- package/test/wp4-interlock.test.ts +136 -0
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
{
|
|
2
|
+
"versions": {
|
|
3
|
+
"codex": "0.163.0",
|
|
4
|
+
"claude": "2.1.302"
|
|
5
|
+
},
|
|
6
|
+
"claude": [
|
|
7
|
+
{
|
|
8
|
+
"sources": "",
|
|
9
|
+
"settings": {},
|
|
10
|
+
"init": {
|
|
11
|
+
"skills": [
|
|
12
|
+
"deep-research",
|
|
13
|
+
"dataviz",
|
|
14
|
+
"update-config",
|
|
15
|
+
"verify",
|
|
16
|
+
"debug",
|
|
17
|
+
"code-review",
|
|
18
|
+
"simplify",
|
|
19
|
+
"batch",
|
|
20
|
+
"fewer-permission-prompts",
|
|
21
|
+
"doctor",
|
|
22
|
+
"loop",
|
|
23
|
+
"claude-api",
|
|
24
|
+
"workflow-authoring",
|
|
25
|
+
"run",
|
|
26
|
+
"run-skill-generator",
|
|
27
|
+
"plugin-authoring"
|
|
28
|
+
],
|
|
29
|
+
"plugins": [
|
|
30
|
+
{
|
|
31
|
+
"name": "cc-plugin-agents-md",
|
|
32
|
+
"path": "builtin",
|
|
33
|
+
"source": "cc-plugin-agents-md@builtin"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "cc-plugin-plugin-authoring",
|
|
37
|
+
"path": "builtin",
|
|
38
|
+
"source": "cc-plugin-plugin-authoring@builtin"
|
|
39
|
+
}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"sources": "",
|
|
45
|
+
"settings": {
|
|
46
|
+
"disableBundledSkills": true,
|
|
47
|
+
"skillOverrides": {
|
|
48
|
+
"user-probe": "off",
|
|
49
|
+
"repo-probe": "off",
|
|
50
|
+
"doctor": "off",
|
|
51
|
+
"plugin-authoring": "off"
|
|
52
|
+
},
|
|
53
|
+
"enabledPlugins": {
|
|
54
|
+
"cc-plugin-agents-md@builtin": false,
|
|
55
|
+
"cc-plugin-claude-test@builtin": false,
|
|
56
|
+
"cc-plugin-diff@builtin": false,
|
|
57
|
+
"cc-plugin-easel@builtin": false,
|
|
58
|
+
"cc-plugin-mermaid@builtin": false,
|
|
59
|
+
"cc-plugin-mods-guide@builtin": false,
|
|
60
|
+
"cc-plugin-plugin-authoring@builtin": false,
|
|
61
|
+
"cc-plugin-privacy@builtin": false,
|
|
62
|
+
"cc-plugin-responsive-mode@builtin": false,
|
|
63
|
+
"cc-plugin-sec-default@builtin": false,
|
|
64
|
+
"cc-plugin-telemetry@builtin": false,
|
|
65
|
+
"cc-plugin-tips@builtin": false,
|
|
66
|
+
"cc-plugin-you-should-know@builtin": false,
|
|
67
|
+
"claude-platform@builtin": false
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"init": {
|
|
71
|
+
"skills": [],
|
|
72
|
+
"plugins": []
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"sources": "user,project,local",
|
|
77
|
+
"settings": {},
|
|
78
|
+
"init": {
|
|
79
|
+
"skills": [
|
|
80
|
+
"user-probe",
|
|
81
|
+
"repo-probe",
|
|
82
|
+
"deep-research",
|
|
83
|
+
"dataviz",
|
|
84
|
+
"update-config",
|
|
85
|
+
"verify",
|
|
86
|
+
"debug",
|
|
87
|
+
"code-review",
|
|
88
|
+
"simplify",
|
|
89
|
+
"batch",
|
|
90
|
+
"fewer-permission-prompts",
|
|
91
|
+
"doctor",
|
|
92
|
+
"loop",
|
|
93
|
+
"claude-api",
|
|
94
|
+
"workflow-authoring",
|
|
95
|
+
"run",
|
|
96
|
+
"run-skill-generator",
|
|
97
|
+
"plugin-authoring"
|
|
98
|
+
],
|
|
99
|
+
"plugins": [
|
|
100
|
+
{
|
|
101
|
+
"name": "cc-plugin-agents-md",
|
|
102
|
+
"path": "builtin",
|
|
103
|
+
"source": "cc-plugin-agents-md@builtin"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "cc-plugin-plugin-authoring",
|
|
107
|
+
"path": "builtin",
|
|
108
|
+
"source": "cc-plugin-plugin-authoring@builtin"
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"sources": "user,project,local",
|
|
115
|
+
"settings": {
|
|
116
|
+
"disableBundledSkills": true,
|
|
117
|
+
"skillOverrides": {
|
|
118
|
+
"user-probe": "off",
|
|
119
|
+
"repo-probe": "off",
|
|
120
|
+
"doctor": "off",
|
|
121
|
+
"plugin-authoring": "off"
|
|
122
|
+
},
|
|
123
|
+
"enabledPlugins": {
|
|
124
|
+
"cc-plugin-agents-md@builtin": false,
|
|
125
|
+
"cc-plugin-claude-test@builtin": false,
|
|
126
|
+
"cc-plugin-diff@builtin": false,
|
|
127
|
+
"cc-plugin-easel@builtin": false,
|
|
128
|
+
"cc-plugin-mermaid@builtin": false,
|
|
129
|
+
"cc-plugin-mods-guide@builtin": false,
|
|
130
|
+
"cc-plugin-plugin-authoring@builtin": false,
|
|
131
|
+
"cc-plugin-privacy@builtin": false,
|
|
132
|
+
"cc-plugin-responsive-mode@builtin": false,
|
|
133
|
+
"cc-plugin-sec-default@builtin": false,
|
|
134
|
+
"cc-plugin-telemetry@builtin": false,
|
|
135
|
+
"cc-plugin-tips@builtin": false,
|
|
136
|
+
"cc-plugin-you-should-know@builtin": false,
|
|
137
|
+
"claude-platform@builtin": false
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"init": {
|
|
141
|
+
"skills": [],
|
|
142
|
+
"plugins": []
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
"codexEmpty": {
|
|
147
|
+
"data": [
|
|
148
|
+
{
|
|
149
|
+
"cwd": "@ROOT@/repo",
|
|
150
|
+
"skills": [
|
|
151
|
+
{
|
|
152
|
+
"name": "repo-probe",
|
|
153
|
+
"path": "@ROOT@/repo/.agents/skills/repo-probe/SKILL.md",
|
|
154
|
+
"scope": "repo",
|
|
155
|
+
"enabled": false
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"name": "agents-probe",
|
|
159
|
+
"path": "@ROOT@/home/.agents/skills/agents-probe/SKILL.md",
|
|
160
|
+
"scope": "user",
|
|
161
|
+
"enabled": false
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"name": "user-probe",
|
|
165
|
+
"path": "@ROOT@/home/.codex/skills/user-probe/SKILL.md",
|
|
166
|
+
"scope": "user",
|
|
167
|
+
"enabled": false
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"name": "imagegen",
|
|
171
|
+
"path": "@ROOT@/home/.codex/skills/.system/imagegen/SKILL.md",
|
|
172
|
+
"scope": "system",
|
|
173
|
+
"enabled": false
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"name": "openai-docs",
|
|
177
|
+
"path": "@ROOT@/home/.codex/skills/.system/openai-docs/SKILL.md",
|
|
178
|
+
"scope": "system",
|
|
179
|
+
"enabled": false
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"name": "review-agent",
|
|
183
|
+
"path": "@ROOT@/home/.codex/skills/.system/review-agent/SKILL.md",
|
|
184
|
+
"scope": "system",
|
|
185
|
+
"enabled": false
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"name": "skill-creator",
|
|
189
|
+
"path": "@ROOT@/home/.codex/skills/.system/skill-creator/SKILL.md",
|
|
190
|
+
"scope": "system",
|
|
191
|
+
"enabled": false
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"name": "skill-installer",
|
|
195
|
+
"path": "@ROOT@/home/.codex/skills/.system/skill-installer/SKILL.md",
|
|
196
|
+
"scope": "system",
|
|
197
|
+
"enabled": false
|
|
198
|
+
}
|
|
199
|
+
],
|
|
200
|
+
"errors": []
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
},
|
|
204
|
+
"codexGiven": {
|
|
205
|
+
"data": [
|
|
206
|
+
{
|
|
207
|
+
"cwd": "@ROOT@/repo",
|
|
208
|
+
"skills": [
|
|
209
|
+
{
|
|
210
|
+
"name": "repo-probe",
|
|
211
|
+
"path": "@ROOT@/repo/.agents/skills/repo-probe/SKILL.md",
|
|
212
|
+
"scope": "repo",
|
|
213
|
+
"enabled": false
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"name": "agents-probe",
|
|
217
|
+
"path": "@ROOT@/home/.agents/skills/agents-probe/SKILL.md",
|
|
218
|
+
"scope": "user",
|
|
219
|
+
"enabled": false
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"name": "given-probe",
|
|
223
|
+
"path": "@ROOT@/package/skills/given-probe/SKILL.md",
|
|
224
|
+
"scope": "user",
|
|
225
|
+
"enabled": true
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"name": "user-probe",
|
|
229
|
+
"path": "@ROOT@/home/.codex/skills/user-probe/SKILL.md",
|
|
230
|
+
"scope": "user",
|
|
231
|
+
"enabled": false
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"name": "imagegen",
|
|
235
|
+
"path": "@ROOT@/home/.codex/skills/.system/imagegen/SKILL.md",
|
|
236
|
+
"scope": "system",
|
|
237
|
+
"enabled": false
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"name": "openai-docs",
|
|
241
|
+
"path": "@ROOT@/home/.codex/skills/.system/openai-docs/SKILL.md",
|
|
242
|
+
"scope": "system",
|
|
243
|
+
"enabled": false
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"name": "review-agent",
|
|
247
|
+
"path": "@ROOT@/home/.codex/skills/.system/review-agent/SKILL.md",
|
|
248
|
+
"scope": "system",
|
|
249
|
+
"enabled": false
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"name": "skill-creator",
|
|
253
|
+
"path": "@ROOT@/home/.codex/skills/.system/skill-creator/SKILL.md",
|
|
254
|
+
"scope": "system",
|
|
255
|
+
"enabled": false
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"name": "skill-installer",
|
|
259
|
+
"path": "@ROOT@/home/.codex/skills/.system/skill-installer/SKILL.md",
|
|
260
|
+
"scope": "system",
|
|
261
|
+
"enabled": false
|
|
262
|
+
}
|
|
263
|
+
],
|
|
264
|
+
"errors": []
|
|
265
|
+
}
|
|
266
|
+
]
|
|
267
|
+
},
|
|
268
|
+
"claudeGiven": {
|
|
269
|
+
"skills": [
|
|
270
|
+
"relay-skills:given-probe"
|
|
271
|
+
],
|
|
272
|
+
"plugins": [
|
|
273
|
+
{
|
|
274
|
+
"name": "relay-skills",
|
|
275
|
+
"path": "@ROOT@/package",
|
|
276
|
+
"source": "relay-skills@inline"
|
|
277
|
+
}
|
|
278
|
+
]
|
|
279
|
+
}
|
|
280
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Model-free stdio fixture: no listeners, network, credentials, or descendant processes.
|
|
2
|
+
import fs from "node:fs";
|
|
3
|
+
import readline from "node:readline";
|
|
4
|
+
const send = (m) => process.stdout.write(JSON.stringify(m) + "\n");
|
|
5
|
+
fs.writeFileSync(process.env.PC_APP_CAPTURE, JSON.stringify({ bin: process.argv[1], home: process.env.CODEX_HOME }));
|
|
6
|
+
for await (const line of readline.createInterface({ input: process.stdin })) {
|
|
7
|
+
const m = JSON.parse(line);
|
|
8
|
+
if (m.id === "approval") {
|
|
9
|
+
fs.appendFileSync(process.env.PC_APP_CAPTURE, "\n" + JSON.stringify(m.result));
|
|
10
|
+
send({ method: "turn/completed", params: { threadId: "thread", turn: { id: "turn", status: "completed" } } });
|
|
11
|
+
continue;
|
|
12
|
+
}
|
|
13
|
+
if (m.id === undefined) continue;
|
|
14
|
+
let result = {};
|
|
15
|
+
if (m.method === "config/read") result = { config: JSON.parse(process.env.PC_APP_CONFIG) };
|
|
16
|
+
if (m.method === "configRequirements/read") result = { requirements: null };
|
|
17
|
+
if (m.method === "skills/list") result = { data: [] };
|
|
18
|
+
if (m.method === "thread/start") result = { thread: { id: "thread" }, activePermissionProfile: { id: "relay" }, runtimeWorkspaceRoots: [m.params.cwd], sandbox: { type: "readOnly", networkAccess: false } };
|
|
19
|
+
if (m.method === "turn/start") {
|
|
20
|
+
result = { turn: { id: "turn" } };
|
|
21
|
+
send({ method: "turn/started", params: { threadId: "thread", turn: { id: "turn" } } });
|
|
22
|
+
}
|
|
23
|
+
send({ id: m.id, result });
|
|
24
|
+
if (m.method === "turn/start") send({ id: "approval", method: "item/commandExecution/requestApproval", params: { threadId: "thread", turnId: "turn", command: "ordinary command asking to leave the sandbox" } });
|
|
25
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// Qualified semantics for these checked-in decoys only. echo/send append a local log and return
|
|
2
|
+
// JSON; "send" does NOT contact a recipient. odd returns JSON with no external effects.
|
|
3
|
+
import path from "node:path";
|
|
4
|
+
import { fileURLToPath } from "node:url";
|
|
5
|
+
import { z } from "zod";
|
|
6
|
+
import { neverDigest } from "../../dist/core/never-policy.js";
|
|
7
|
+
|
|
8
|
+
const stub = (name) => fileURLToPath(new URL(`../stubs/${name}`, import.meta.url));
|
|
9
|
+
const schema = (shape) => z.toJSONSchema(z.object(shape), { target: "draft-7", io: "input" });
|
|
10
|
+
const object = { type: "object", properties: { text: { type: "string" } } };
|
|
11
|
+
const tools = new Map([
|
|
12
|
+
[stub("ext-server.mjs"), [
|
|
13
|
+
{ name: "echo", inputSchema: schema({ text: z.string().describe("What to echo") }) },
|
|
14
|
+
{ name: "send", inputSchema: schema({ to: z.string(), body: z.string(), urgent: z.boolean().optional() }) },
|
|
15
|
+
]],
|
|
16
|
+
[stub("ext-odd-server.mjs"), [
|
|
17
|
+
{ name: "ok", inputSchema: object },
|
|
18
|
+
{ name: "x".repeat(70), inputSchema: object },
|
|
19
|
+
{ name: "union", inputSchema: { type: "object", oneOf: [{ properties: { a: { type: "string" } } }, { properties: { b: { type: "number" } } }] } },
|
|
20
|
+
{ name: "dangling", inputSchema: { type: "object", properties: { a: { $ref: "#/$defs/nope" } } } },
|
|
21
|
+
]],
|
|
22
|
+
// This process exits before initialization; the placeholder only admits its startup failure.
|
|
23
|
+
[stub("ext-broken-server.mjs"), [{ name: "unavailable", inputSchema: { type: "object" } }]],
|
|
24
|
+
]);
|
|
25
|
+
|
|
26
|
+
export function qualifiedFixtureAdapters(definitions) {
|
|
27
|
+
return Object.entries(definitions).flatMap(([server, def]) => {
|
|
28
|
+
if (def.command !== process.execPath || def.args?.length !== 1 || !path.isAbsolute(def.args[0])) return [];
|
|
29
|
+
const qualified = tools.get(def.args[0]);
|
|
30
|
+
if (!qualified) return [];
|
|
31
|
+
return qualified.map(({ name, inputSchema }) => ({
|
|
32
|
+
identity: { server, version: "0", definitionHash: neverDigest(def), tool: name, schemaHash: neverDigest(inputSchema) },
|
|
33
|
+
normalize: (args) => ({ complete: true, arguments: args, effects: def.env?.EXT_LOG ? [{ kind: "path", path: def.env.EXT_LOG, access: "write" }] : [] }),
|
|
34
|
+
}));
|
|
35
|
+
});
|
|
36
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Vendor refusal evidence (A17, 2026-10-19)
|
|
2
|
+
|
|
3
|
+
No live agent turns were run for this change. The OpenAI fixtures are trimmed from captured
|
|
4
|
+
agent output. Only event names, terminal status, the vendor's error message and its error
|
|
5
|
+
classification remain; thread/turn/session IDs, prompts, paths, timestamps and unrelated output
|
|
6
|
+
are omitted. No credentials or account identifiers are included.
|
|
7
|
+
|
|
8
|
+
| Fixture | Source | Evidence |
|
|
9
|
+
| --- | --- | --- |
|
|
10
|
+
| `openai-gpt-6.1-sol-xhigh.json` | The JSON event stream (`stdoutTail`) of a `codex exec --json` turn on gpt-6.1-sol, captured in a red-team campaign of 2026-10-19 (Codex CLI) | Actual `codex exec --json` error followed by `turn.failed`; stopped before work. |
|
|
11
|
+
| `openai-gpt-6-astra-max.json` | The same campaign, the same events of a turn on gpt-6-astra | Same terminal events on a second model. |
|
|
12
|
+
| `openai-app-cyberPolicy.json` | A captured Codex app-server agent log of a relay delegate job (October 2026) | Actual app-server `error` (`willRetry: false`) and `turn/completed`, with `codexErrorInfo: "cyberPolicy"`; stopped after work had been written. |
|
|
13
|
+
| `openai-app-capacity.json` | A captured app-server capacity failure, from another delegate job of the same run | Actual capacity failure: `serverOverloaded`, not a refusal. |
|
|
14
|
+
| `openai-review-capacity.json` | A captured app-server capacity failure in a review's reconciliation turn, from the same run | Actual reconciliation capacity failure, also `serverOverloaded`. |
|
|
15
|
+
| `claude-source-result.json` | Claude Code **2.1.302**, as described below | Source-derived shape, **not a captured live refusal**. Message is a test placeholder. |
|
|
16
|
+
|
|
17
|
+
Relay's job records were read, not modified, to confirm the job errors and to identify the
|
|
18
|
+
review's reconciliation participant. In both capacity cases the actual turn error is
|
|
19
|
+
`Selected model is at capacity. Please try a different model.` The classifier message is
|
|
20
|
+
retained verbatim in the OpenAI fixtures, including the vendor's suggestion to rephrase; relay
|
|
21
|
+
reports that suggestion as vendor text and never acts on it.
|
|
22
|
+
|
|
23
|
+
## Claude: what Claude Code 2.1.302 does, and the limits
|
|
24
|
+
|
|
25
|
+
Checked in Claude Code 2.1.302, without running it:
|
|
26
|
+
|
|
27
|
+
- Its stream-json `result` event combines the common result fields with the variant's own
|
|
28
|
+
(`result` for success, `errors` for error_during_execution), and the common fields carry the
|
|
29
|
+
final API stop reason (`stop_reason`), as the public SDK result schemas do. So a refusal can
|
|
30
|
+
arrive with a success subtype; the source-derived fixture exercises that case.
|
|
31
|
+
- An assistant message is an API refusal when its `message.stop_reason` is `"refusal"`. Relay's
|
|
32
|
+
parser also accepts that explicit stop reason on an assistant message, preserving text blocks
|
|
33
|
+
without treating tool-use blocks as a completed answer.
|
|
34
|
+
- Claude Code's fallback to another model after a refusal is switched off by
|
|
35
|
+
`CLAUDE_CODE_DISABLE_REFUSAL_FALLBACK`, and its same-model retry by
|
|
36
|
+
`CLAUDE_CODE_DISABLE_REFUSAL_RETRY`. Relay sets both variables to `1` in the child environment
|
|
37
|
+
and its higher-precedence settings env. It does not supply a fallback model.
|
|
38
|
+
|
|
39
|
+
Anthropic documents classifier intervention as the explicit API
|
|
40
|
+
[`stop_reason: "refusal"`](https://platform.claude.com/docs/en/test-and-evaluate/strengthen-guardrails/handle-streaming-refusals).
|
|
41
|
+
This can occur on a successful API response; success subtype or process exit status alone
|
|
42
|
+
cannot classify it. The
|
|
43
|
+
[streaming documentation](https://platform.claude.com/docs/en/build-with-claude/streaming)
|
|
44
|
+
places the API stop reason in `message_delta`; relay consumes Claude Code's stream-json
|
|
45
|
+
assistant/result wrappers, not raw API SSE events.
|
|
46
|
+
|
|
47
|
+
**Unverified:** no live Claude classifier stop, exact live Claude result subtype/is_error/text
|
|
48
|
+
combination, managed-settings overrides of the retry controls, other OpenAI safety codes or
|
|
49
|
+
message variants, and vendor refusal envelopes transported through ACP. No classifiers for
|
|
50
|
+
those unevidenced variants were invented. Ordinary agent text saying it cannot help is not
|
|
51
|
+
classified as a vendor safety stop. The refusal retry controls are checked at this CLI version,
|
|
52
|
+
not runtime-qualified here.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"method": "error",
|
|
4
|
+
"params": {
|
|
5
|
+
"error": {
|
|
6
|
+
"message": "Selected model is at capacity. Please try a different model.",
|
|
7
|
+
"codexErrorInfo": "serverOverloaded"
|
|
8
|
+
},
|
|
9
|
+
"willRetry": false
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"method": "turn/completed",
|
|
14
|
+
"params": {
|
|
15
|
+
"turn": {
|
|
16
|
+
"status": "failed",
|
|
17
|
+
"error": {
|
|
18
|
+
"message": "Selected model is at capacity. Please try a different model.",
|
|
19
|
+
"codexErrorInfo": "serverOverloaded"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"method": "error",
|
|
4
|
+
"params": {
|
|
5
|
+
"error": {
|
|
6
|
+
"message": "This content was flagged for possible cybersecurity risk. If this seems wrong, try rephrasing your request. Otherwise, confirm that the access_programs.cyber parameter is set to the appropriate tier, and note that some cybersecurity requests are still limited, even when Daybreak is on.",
|
|
7
|
+
"codexErrorInfo": "cyberPolicy"
|
|
8
|
+
},
|
|
9
|
+
"willRetry": false
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"method": "turn/completed",
|
|
14
|
+
"params": {
|
|
15
|
+
"turn": {
|
|
16
|
+
"status": "failed",
|
|
17
|
+
"error": {
|
|
18
|
+
"message": "This content was flagged for possible cybersecurity risk. If this seems wrong, try rephrasing your request. Otherwise, confirm that the access_programs.cyber parameter is set to the appropriate tier, and note that some cybersecurity requests are still limited, even when Daybreak is on.",
|
|
19
|
+
"codexErrorInfo": "cyberPolicy"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
]
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "error",
|
|
4
|
+
"message": "This content was flagged for possible cybersecurity risk. If this seems wrong, try rephrasing your request. Otherwise, confirm that the access_programs.cyber parameter is set to the appropriate tier, and note that some cybersecurity requests are still limited, even when Daybreak is on."
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
"type": "turn.failed",
|
|
8
|
+
"error": {
|
|
9
|
+
"message": "This content was flagged for possible cybersecurity risk. If this seems wrong, try rephrasing your request. Otherwise, confirm that the access_programs.cyber parameter is set to the appropriate tier, and note that some cybersecurity requests are still limited, even when Daybreak is on."
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
]
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "error",
|
|
4
|
+
"message": "This content was flagged for possible cybersecurity risk. If this seems wrong, try rephrasing your request. Otherwise, confirm that the access_programs.cyber parameter is set to the appropriate tier, and note that some cybersecurity requests are still limited, even when Daybreak is on."
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
"type": "turn.failed",
|
|
8
|
+
"error": {
|
|
9
|
+
"message": "This content was flagged for possible cybersecurity risk. If this seems wrong, try rephrasing your request. Otherwise, confirm that the access_programs.cyber parameter is set to the appropriate tier, and note that some cybersecurity requests are still limited, even when Daybreak is on."
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"method": "error",
|
|
4
|
+
"params": {
|
|
5
|
+
"error": {
|
|
6
|
+
"message": "Selected model is at capacity. Please try a different model.",
|
|
7
|
+
"codexErrorInfo": "serverOverloaded"
|
|
8
|
+
},
|
|
9
|
+
"willRetry": false
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"method": "turn/completed",
|
|
14
|
+
"params": {
|
|
15
|
+
"turn": {
|
|
16
|
+
"status": "failed",
|
|
17
|
+
"error": {
|
|
18
|
+
"message": "Selected model is at capacity. Please try a different model.",
|
|
19
|
+
"codexErrorInfo": "serverOverloaded"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
]
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
-- A registry (relay.db) as relay 0.2.0 left it: written by 0.2.0's own code (main at c6cd78c,
|
|
2
|
+
-- package version 0.2.0) through createRun, insertNode, insertTurn, updateTurn, updateNode and
|
|
3
|
+
-- decide, then dumped with sqlite3 .dump. PRAGMA user_version is 0, as 0.2.0 never set it.
|
|
4
|
+
-- One run: a finished write job with a job-scoped web approval, a finished thread, and a queued
|
|
5
|
+
-- job with a pending approval request (an active run at upgrade time).
|
|
6
|
+
PRAGMA foreign_keys=OFF;
|
|
7
|
+
BEGIN TRANSACTION;
|
|
8
|
+
CREATE TABLE runs (
|
|
9
|
+
id TEXT PRIMARY KEY, created_at INTEGER NOT NULL, root_cwd TEXT NOT NULL,
|
|
10
|
+
config_json TEXT NOT NULL, status TEXT NOT NULL DEFAULT 'active'
|
|
11
|
+
, root_pid INTEGER, root_start TEXT, root_token TEXT);
|
|
12
|
+
INSERT INTO runs VALUES('run_475ecd79',1792104739727,'/Users/someone/project','{"max_depth":3,"max_concurrent":4,"block_s":240,"job_timeout_s":1800,"turn_timeout_s":600,"cancel_grace_ms":5000,"child_mcp":"relay-only","child_hooks":false,"child_network":false,"child_git":"relay","allow_dangerous":false,"escalation":true,"approval_timeout_s":3600,"notify":true,"ask_user":"auto","child_web":"inherit","codex_backend":"app-server","allow_temp_home":false,"child_settings":"isolated","child_auth":"login","trust_git_filters":false,"claude_managed_settings":"refuse","allow_untested":false,"default_model":{"codex":"gpt-6.1-sol"},"default_effort":{},"bin":{"claude":"claude","codex":"codex"}}','active',62458,'Thu Oct 15 16:52:19 2026','tok-020');
|
|
13
|
+
CREATE TABLE nodes (
|
|
14
|
+
id TEXT PRIMARY KEY, run_id TEXT NOT NULL, parent_id TEXT, kind TEXT NOT NULL,
|
|
15
|
+
target TEXT, mode TEXT NOT NULL, depth INTEGER NOT NULL, allow_delegation INTEGER NOT NULL,
|
|
16
|
+
status TEXT NOT NULL, task TEXT NOT NULL, params_json TEXT, session_id TEXT,
|
|
17
|
+
cwd TEXT NOT NULL, repo TEXT, worktree TEXT, branch TEXT, base_sha TEXT, model TEXT, effort TEXT,
|
|
18
|
+
worker_pid INTEGER, worker_claimed_at INTEGER, agent_pid INTEGER, agent_pgid INTEGER,
|
|
19
|
+
log_path TEXT, transcript_path TEXT, result_json TEXT, error TEXT,
|
|
20
|
+
created_at INTEGER NOT NULL, started_at INTEGER, ended_at INTEGER
|
|
21
|
+
, worker_start TEXT, agent_start TEXT, owner_id TEXT, head_sha TEXT);
|
|
22
|
+
INSERT INTO nodes VALUES('j_0200aaaa','run_475ecd79',NULL,'job','codex','write',1,0,'done','Fix the parser','{"grant":{"network":true}}','019a-codex-thread','/Users/someone/project','/Users/someone/project','/Users/someone/.local/share/relay/worktrees/x/j_0200aaaa','relay/j_0200aaaa','0123456789abcdef0123456789abcdef01234567',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'{"status":"done","summary":"Fixed it.","commits":["abc1234"]}',NULL,1792104739731,NULL,1792104739731,NULL,NULL,NULL,'fedcba9876543210fedcba9876543210fedcba98');
|
|
23
|
+
INSERT INTO nodes VALUES('t_0200bbbb','run_475ecd79',NULL,'thread','codex','read',1,0,'done','Is this sound?',NULL,'019a-codex-thread-2','/Users/someone/project',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1792104739731,NULL,NULL,NULL,NULL,NULL,NULL);
|
|
24
|
+
INSERT INTO nodes VALUES('j_0200cccc','run_475ecd79',NULL,'job','codex','write',1,0,'queued','Still queued',NULL,NULL,'/Users/someone/project',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1792104739731,NULL,NULL,NULL,NULL,NULL,NULL);
|
|
25
|
+
CREATE TABLE turns (
|
|
26
|
+
id INTEGER PRIMARY KEY AUTOINCREMENT, node_id TEXT NOT NULL, source TEXT NOT NULL,
|
|
27
|
+
body TEXT NOT NULL, access TEXT NOT NULL, status TEXT NOT NULL, reply TEXT, error TEXT,
|
|
28
|
+
prompt_path TEXT, created_at INTEGER NOT NULL, started_at INTEGER, ended_at INTEGER
|
|
29
|
+
);
|
|
30
|
+
INSERT INTO turns VALUES(1,'j_0200aaaa','root','Fix the parser','write','done','Fixed it.',NULL,NULL,1792104739731,1792104739731,1792104739731);
|
|
31
|
+
INSERT INTO turns VALUES(2,'t_0200bbbb','root','Is this sound?','read','done','Mostly.',NULL,NULL,1792104739731,NULL,1792104739731);
|
|
32
|
+
INSERT INTO turns VALUES(3,'j_0200cccc','root','Still queued','write','queued',NULL,NULL,NULL,1792104739732,NULL,NULL);
|
|
33
|
+
CREATE TABLE injections (
|
|
34
|
+
id INTEGER PRIMARY KEY AUTOINCREMENT, discussion_id TEXT NOT NULL, body TEXT NOT NULL,
|
|
35
|
+
created_at INTEGER NOT NULL
|
|
36
|
+
);
|
|
37
|
+
CREATE TABLE requests (
|
|
38
|
+
id TEXT PRIMARY KEY, run_id TEXT NOT NULL, node_id TEXT NOT NULL, kind TEXT NOT NULL,
|
|
39
|
+
summary TEXT NOT NULL, reason TEXT, detail_json TEXT, status TEXT NOT NULL,
|
|
40
|
+
decided_by TEXT, note TEXT, created_at INTEGER NOT NULL, decided_at INTEGER
|
|
41
|
+
, scope TEXT);
|
|
42
|
+
INSERT INTO requests VALUES('q_0200dddd','run_475ecd79','j_0200aaaa','web','fetch https://example.com','docs','{"cwd":"/Users/someone/project","access":"write"}','allowed','user','ok',1792104739732,1792104739732,'job');
|
|
43
|
+
INSERT INTO requests VALUES('q_0200eeee','run_475ecd79','j_0200cccc','web','fetch https://example.com','docs','{"cwd":"/Users/someone/project","access":"write"}','pending',NULL,NULL,1792104739732,NULL,NULL);
|
|
44
|
+
CREATE TABLE relay_procs (
|
|
45
|
+
pid INTEGER NOT NULL, start TEXT NOT NULL, kind TEXT NOT NULL, node_id TEXT, created_at INTEGER NOT NULL
|
|
46
|
+
);
|
|
47
|
+
CREATE TABLE slots (
|
|
48
|
+
id INTEGER PRIMARY KEY AUTOINCREMENT, run_id TEXT NOT NULL, holder TEXT NOT NULL,
|
|
49
|
+
pid INTEGER NOT NULL, state TEXT NOT NULL, created_at INTEGER NOT NULL
|
|
50
|
+
);
|
|
51
|
+
DELETE FROM sqlite_sequence;
|
|
52
|
+
INSERT INTO sqlite_sequence VALUES('turns',3);
|
|
53
|
+
CREATE INDEX nodes_run ON nodes(run_id);
|
|
54
|
+
CREATE INDEX nodes_parent ON nodes(parent_id);
|
|
55
|
+
CREATE INDEX turns_node ON turns(node_id);
|
|
56
|
+
CREATE INDEX requests_run ON requests(run_id, status);
|
|
57
|
+
COMMIT;
|