@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,128 @@
|
|
|
1
|
+
{
|
|
2
|
+
"approval": {
|
|
3
|
+
"request_id": "q_example",
|
|
4
|
+
"from": "j_00000001",
|
|
5
|
+
"agent": "codex",
|
|
6
|
+
"depth": 2,
|
|
7
|
+
"session": "write",
|
|
8
|
+
"task": "test a server",
|
|
9
|
+
"wants": "End turn 1 and start one new turn with the explicit capabilities below. The command runs worktree code that the agent can edit after approval. The addition applies to all commands and descendants in the replacement turn and ends when that turn and its processes stop; outside writes persist on disk. The listener may bind 0.0.0.0 for that turn, so it is on the LAN and tailnet. This permits any otherwise allowed TCP bind port, not just OS-selected ephemeral ports. The job's reserved block of 4 TCP ports ($PORT/$PORTS) is also opened for binding; listeners there may bind 0.0.0.0 and are exposed on the LAN and tailnet. Never ports, relay control ports and protected listeners remain denied. Required decider: owning_run_root. The owning root may approve eligible effects only when the person's authorized task clearly covers them; port-0 requires tests or servers. Overlay budget: 3600s; approval expires at 0. Capabilities: [{\"kind\":\"port0\",\"id\":\"<hash>\"}]. Intended continuation (untrusted): {\"argv\":[\"node\",\"./test/server-test.js\"],\"cwd\":\"<scratch>/work\"}. Reason (untrusted): \"user confirmed; supervisor label is untrusted\".",
|
|
10
|
+
"in_directory": "<scratch>/work",
|
|
11
|
+
"kind": "escalation",
|
|
12
|
+
"effect": "End turn 1 and start one new turn with the explicit capabilities below. The command runs worktree code that the agent can edit after approval. The addition applies to all commands and descendants in the replacement turn and ends when that turn and its processes stop; outside writes persist on disk. The listener may bind 0.0.0.0 for that turn, so it is on the LAN and tailnet. This permits any otherwise allowed TCP bind port, not just OS-selected ephemeral ports. The job's reserved block of 4 TCP ports ($PORT/$PORTS) is also opened for binding; listeners there may bind 0.0.0.0 and are exposed on the LAN and tailnet. Never ports, relay control ports and protected listeners remain denied. Required decider: owning_run_root. The owning root may approve eligible effects only when the person's authorized task clearly covers them; port-0 requires tests or servers. Overlay budget: 3600s; approval expires at 0. Capabilities: [{\"kind\":\"port0\",\"id\":\"<hash>\"}]. Intended continuation (untrusted): {\"argv\":[\"node\",\"./test/server-test.js\"],\"cwd\":\"<scratch>/work\"}. Reason (untrusted): \"user confirmed; supervisor label is untrusted\".",
|
|
13
|
+
"reason": "user confirmed; supervisor label is untrusted",
|
|
14
|
+
"once_only": "one replacement turn only; never a standing grant",
|
|
15
|
+
"waiting_s": 0,
|
|
16
|
+
"required_decider": "owning_run_root",
|
|
17
|
+
"request_digest": "<hash>",
|
|
18
|
+
"escalation": {
|
|
19
|
+
"native_thread": "thread",
|
|
20
|
+
"native_turn": "turn",
|
|
21
|
+
"base_policy_hash": "base",
|
|
22
|
+
"launch_plan": "qualified-fake",
|
|
23
|
+
"overlay_budget_s": 3600,
|
|
24
|
+
"version": 1,
|
|
25
|
+
"request_id": "q_example",
|
|
26
|
+
"run_id": "run_example",
|
|
27
|
+
"node_id": "j_00000001",
|
|
28
|
+
"origin_turn": 1,
|
|
29
|
+
"mcp_session": "mcp-session",
|
|
30
|
+
"mcp_call": "call",
|
|
31
|
+
"access": "write",
|
|
32
|
+
"root": {
|
|
33
|
+
"run_id": "run_example",
|
|
34
|
+
"session_identity": "<hash>",
|
|
35
|
+
"token_version": 1
|
|
36
|
+
},
|
|
37
|
+
"required_decider": "owning_run_root",
|
|
38
|
+
"capabilities": [
|
|
39
|
+
{
|
|
40
|
+
"kind": "port0",
|
|
41
|
+
"id": "<hash>"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"reason": "user confirmed; supervisor label is untrusted",
|
|
45
|
+
"continuation": {
|
|
46
|
+
"argv": [
|
|
47
|
+
"node",
|
|
48
|
+
"./test/server-test.js"
|
|
49
|
+
],
|
|
50
|
+
"cwd": "<scratch>/work"
|
|
51
|
+
},
|
|
52
|
+
"never_hash": "<hash>",
|
|
53
|
+
"baseline_grant_hash": "<hash>",
|
|
54
|
+
"approval_deadline_ms": 0
|
|
55
|
+
},
|
|
56
|
+
"never_policy": {
|
|
57
|
+
"hash": "<hash>",
|
|
58
|
+
"version": 1,
|
|
59
|
+
"removed_builtins": []
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"receipt": {
|
|
63
|
+
"state": "restart_pending",
|
|
64
|
+
"request_id": "q_example",
|
|
65
|
+
"request_digest": "<hash>",
|
|
66
|
+
"capabilities": [
|
|
67
|
+
{
|
|
68
|
+
"kind": "port0",
|
|
69
|
+
"id": "<hash>"
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"required_decider": "owning_run_root",
|
|
73
|
+
"decision_provenance": {
|
|
74
|
+
"route": "owning-run-root",
|
|
75
|
+
"root": {
|
|
76
|
+
"run_id": "run_example",
|
|
77
|
+
"session_identity": "<hash>",
|
|
78
|
+
"token_version": 1
|
|
79
|
+
},
|
|
80
|
+
"decided_by": "root session",
|
|
81
|
+
"at": 0,
|
|
82
|
+
"note": null,
|
|
83
|
+
"request_digest": "<hash>"
|
|
84
|
+
},
|
|
85
|
+
"overlay_budget_s": 3600,
|
|
86
|
+
"approval_deadline_ms": 0,
|
|
87
|
+
"effect": "End turn 1 and start one new turn with the explicit capabilities below. The command runs worktree code that the agent can edit after approval. The addition applies to all commands and descendants in the replacement turn and ends when that turn and its processes stop; outside writes persist on disk. The listener may bind 0.0.0.0 for that turn, so it is on the LAN and tailnet. This permits any otherwise allowed TCP bind port, not just OS-selected ephemeral ports. The job's reserved block of 4 TCP ports ($PORT/$PORTS) is also opened for binding; listeners there may bind 0.0.0.0 and are exposed on the LAN and tailnet. Never ports, relay control ports and protected listeners remain denied. Required decider: owning_run_root. The owning root may approve eligible effects only when the person's authorized task clearly covers them; port-0 requires tests or servers. Overlay budget: 3600s; approval expires at 0. Capabilities: [{\"kind\":\"port0\",\"id\":\"<hash>\"}]. Intended continuation (untrusted): {\"argv\":[\"node\",\"./test/server-test.js\"],\"cwd\":\"<scratch>/work\"}. Reason (untrusted): \"user confirmed; supervisor label is untrusted\"."
|
|
88
|
+
},
|
|
89
|
+
"event": {
|
|
90
|
+
"kind": "approval",
|
|
91
|
+
"item_id": "j_00000001",
|
|
92
|
+
"subject": "q_example",
|
|
93
|
+
"text": "job j_00000001 needs approval q_example. Call status j_00000001, then approve or deny it."
|
|
94
|
+
},
|
|
95
|
+
"result": {
|
|
96
|
+
"request_id": "q_example",
|
|
97
|
+
"request_digest": "<hash>",
|
|
98
|
+
"origin_turn": 1,
|
|
99
|
+
"destination_turn": 2,
|
|
100
|
+
"capabilities": [
|
|
101
|
+
{
|
|
102
|
+
"kind": "port0",
|
|
103
|
+
"id": "<hash>"
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
"required_decider": "owning_run_root",
|
|
107
|
+
"decision_provenance": {
|
|
108
|
+
"route": "owning-run-root",
|
|
109
|
+
"root": {
|
|
110
|
+
"run_id": "run_example",
|
|
111
|
+
"session_identity": "<hash>",
|
|
112
|
+
"token_version": 1
|
|
113
|
+
},
|
|
114
|
+
"decided_by": "root session",
|
|
115
|
+
"at": 0,
|
|
116
|
+
"note": null,
|
|
117
|
+
"request_digest": "<hash>"
|
|
118
|
+
},
|
|
119
|
+
"lifetime": "one replacement turn",
|
|
120
|
+
"enforcement": "baseline plus explicit approved capability; no baseline-only confinement claim",
|
|
121
|
+
"launched": true,
|
|
122
|
+
"outcome": "cancelled",
|
|
123
|
+
"cleanup": "survivors",
|
|
124
|
+
"effective_scope": "port0 broad TCP bind/inbound; final never/control restrictions",
|
|
125
|
+
"launch": "launched",
|
|
126
|
+
"lan_disclosure": "This turn allowed listeners to bind 0.0.0.0, so they could be on the LAN."
|
|
127
|
+
}
|
|
128
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"event_id": 1,
|
|
4
|
+
"kind": "settled",
|
|
5
|
+
"item": "j_00000001",
|
|
6
|
+
"about": "q_00000001",
|
|
7
|
+
"notice": "relay (event 1): job j_00000001 finished (done). Call result j_00000001."
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"event_id": 2,
|
|
11
|
+
"kind": "approval",
|
|
12
|
+
"item": "j_00000001",
|
|
13
|
+
"about": "q_00000001",
|
|
14
|
+
"notice": "relay (event 2): job j_00000001 finished (done). Call result j_00000001."
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"event_id": 3,
|
|
18
|
+
"kind": "decided",
|
|
19
|
+
"item": "j_00000001",
|
|
20
|
+
"about": "q_00000001",
|
|
21
|
+
"notice": "relay (event 3): job j_00000001 finished (done). Call result j_00000001."
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"event_id": 4,
|
|
25
|
+
"kind": "late",
|
|
26
|
+
"item": "j_00000001",
|
|
27
|
+
"about": "q_00000001",
|
|
28
|
+
"notice": "relay (event 4): job j_00000001 finished (done). Call result j_00000001."
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"event_id": 5,
|
|
32
|
+
"kind": "approval",
|
|
33
|
+
"item": "j_00000001",
|
|
34
|
+
"about": "q_00000001",
|
|
35
|
+
"notice": "relay (event 5): job j_00000001 needs approval q_00000001. Call status j_00000001, then approve or deny it."
|
|
36
|
+
}
|
|
37
|
+
]
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
{
|
|
2
|
+
"command": null,
|
|
3
|
+
"note": "Relay shows no command to open a Gemini session in your own gemini. Its session files are in relay's Gemini home for this item, which anything in its turns could write, read jobs included, and `gemini --resume` there would replay them outside relay's sandbox: with relay's Gemini settings rather than yours and whatever instructions the job left in its chats, with only Gemini's own approval prompts in between. The SANDBOX=sandbox-exec needed to find those sessions starts no sandbox, though Gemini would tell its model it runs under Seatbelt. Continue it with relay's resume, which runs it inside relay's sandbox."
|
|
4
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
{"type":"auth","token":"fixture-token"}
|
|
2
|
+
{"type":"user","message":{"role":"user","content":"relay (event 1, tag <notice-tag>): Sent by the local relay server, not by a Claude session or by the Codex agent (OpenAI) of job j_00000001. Verify first with status notice={\"event_id\":1,\"tag\":\"<notice-tag>\"}. Pointer: job j_00000001 finished (done). Call result j_00000001."}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
relay (event 1, tag <notice-tag>): Sent by the local relay server, not by a Claude session or by the Codex agent (OpenAI) of job j_00000001. Verify first with status notice={"event_id":1,"tag":"<notice-tag>"}. Pointer: job j_00000001 finished (done). Call result j_00000001.
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"status": "refused",
|
|
3
|
+
"outcome": "refused",
|
|
4
|
+
"refusal": {
|
|
5
|
+
"vendor": "openai",
|
|
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
|
+
"code": "cyberPolicy"
|
|
8
|
+
},
|
|
9
|
+
"unfinished": true,
|
|
10
|
+
"outcome_note": "Stopped by OpenAI's safety system. Relay neither retried nor rephrased the request, switched models, nor used a fallback target. A caller may explicitly resume the session.",
|
|
11
|
+
"result": {
|
|
12
|
+
"summary": null,
|
|
13
|
+
"files_changed": null,
|
|
14
|
+
"branch": null,
|
|
15
|
+
"tests_run": null,
|
|
16
|
+
"open_issues": null,
|
|
17
|
+
"report_parsed": false,
|
|
18
|
+
"final_message": "partial work",
|
|
19
|
+
"outcome": "refused",
|
|
20
|
+
"refusal": {
|
|
21
|
+
"vendor": "openai",
|
|
22
|
+
"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.",
|
|
23
|
+
"code": "cyberPolicy"
|
|
24
|
+
},
|
|
25
|
+
"unfinished": true,
|
|
26
|
+
"note": "Stopped by OpenAI's safety system. Relay neither retried nor rephrased the request, switched models, nor used a fallback target. A caller may explicitly resume the session."
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"status": "refused",
|
|
3
|
+
"outcome": "refused",
|
|
4
|
+
"refusal": {
|
|
5
|
+
"vendor": "openai",
|
|
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
|
+
"code": "cyberPolicy"
|
|
8
|
+
},
|
|
9
|
+
"verdict": "unknown",
|
|
10
|
+
"unfinished": true,
|
|
11
|
+
"note": "The codex family produced no completed review. Stopped by OpenAI's safety system. Relay neither retried nor rephrased the request, switched models, nor used a fallback target. A caller may explicitly resume the session. Your own review is preserved and stands alone.",
|
|
12
|
+
"sides": {
|
|
13
|
+
"claude": {
|
|
14
|
+
"verdict": "pass",
|
|
15
|
+
"declared_verdict": "pass",
|
|
16
|
+
"coverage": {
|
|
17
|
+
"complete": true
|
|
18
|
+
},
|
|
19
|
+
"items": 0
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"consensus": []
|
|
23
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 4,
|
|
3
|
+
"tables": [
|
|
4
|
+
{
|
|
5
|
+
"name": "calls",
|
|
6
|
+
"sql": "CREATE TABLE calls (\n scope TEXT NOT NULL, request_id TEXT NOT NULL, tool TEXT NOT NULL, args_hash TEXT NOT NULL,\n node_id TEXT NOT NULL, turn_id INTEGER, claim TEXT NOT NULL, owner_pid INTEGER NOT NULL, owner_start TEXT,\n created_at INTEGER NOT NULL, PRIMARY KEY (scope, request_id)\n)"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"name": "elicitations",
|
|
10
|
+
"sql": "CREATE TABLE elicitations (\n request_id TEXT PRIMARY KEY, token TEXT NOT NULL, pid INTEGER NOT NULL, pid_start TEXT,\n asked_at INTEGER NOT NULL, outcome TEXT, reading TEXT, ended_at INTEGER\n)"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "events",
|
|
14
|
+
"sql": "CREATE TABLE events (\n id INTEGER PRIMARY KEY AUTOINCREMENT, run_id TEXT NOT NULL, key TEXT NOT NULL UNIQUE, kind TEXT NOT NULL,\n item_id TEXT NOT NULL, subject TEXT NOT NULL, text TEXT NOT NULL, created_at INTEGER NOT NULL,\n noticed_at INTEGER, seen_at INTEGER\n)"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "injections",
|
|
18
|
+
"sql": "CREATE TABLE injections (\n id INTEGER PRIMARY KEY AUTOINCREMENT, discussion_id TEXT NOT NULL, body TEXT NOT NULL,\n created_at INTEGER NOT NULL\n)"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "launch_leaders",
|
|
22
|
+
"sql": "CREATE TABLE launch_leaders (\n run_id TEXT NOT NULL, leader_pid INTEGER NOT NULL, kind TEXT NOT NULL, node_id TEXT,\n start TEXT NOT NULL DEFAULT '', created_at INTEGER NOT NULL, PRIMARY KEY (run_id, leader_pid, start)\n)"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "nodes",
|
|
26
|
+
"sql": "CREATE TABLE nodes (\n id TEXT PRIMARY KEY, run_id TEXT NOT NULL, parent_id TEXT, kind TEXT NOT NULL,\n target TEXT, mode TEXT NOT NULL, depth INTEGER NOT NULL, allow_delegation INTEGER NOT NULL,\n status TEXT NOT NULL, task TEXT NOT NULL, params_json TEXT, session_id TEXT,\n cwd TEXT NOT NULL, repo TEXT, worktree TEXT, branch TEXT, base_sha TEXT, model TEXT, effort TEXT,\n worker_pid INTEGER, worker_claimed_at INTEGER, agent_pid INTEGER, agent_pgid INTEGER,\n log_path TEXT, transcript_path TEXT, result_json TEXT, error TEXT,\n created_at INTEGER NOT NULL, started_at INTEGER, ended_at INTEGER\n, worker_start TEXT, agent_start TEXT, owner_id TEXT, head_sha TEXT)"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "relay_procs",
|
|
30
|
+
"sql": "CREATE TABLE relay_procs (\n pid INTEGER NOT NULL, start TEXT NOT NULL, kind TEXT NOT NULL, node_id TEXT, created_at INTEGER NOT NULL\n)"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "requests",
|
|
34
|
+
"sql": "CREATE TABLE requests (\n id TEXT PRIMARY KEY, run_id TEXT NOT NULL, node_id TEXT NOT NULL, kind TEXT NOT NULL,\n summary TEXT NOT NULL, reason TEXT, detail_json TEXT, status TEXT NOT NULL,\n decided_by TEXT, note TEXT, created_at INTEGER NOT NULL, decided_at INTEGER\n, scope TEXT, turn_id INTEGER)"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "runs",
|
|
38
|
+
"sql": "CREATE TABLE runs (\n id TEXT PRIMARY KEY, created_at INTEGER NOT NULL, root_cwd TEXT NOT NULL,\n config_json TEXT NOT NULL, status TEXT NOT NULL DEFAULT 'active'\n, root_pid INTEGER, root_start TEXT, root_token TEXT)"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "slots",
|
|
42
|
+
"sql": "CREATE TABLE slots (\n id INTEGER PRIMARY KEY AUTOINCREMENT, run_id TEXT NOT NULL, holder TEXT NOT NULL,\n pid INTEGER NOT NULL, state TEXT NOT NULL, created_at INTEGER NOT NULL\n)"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "turns",
|
|
46
|
+
"sql": "CREATE TABLE turns (\n id INTEGER PRIMARY KEY AUTOINCREMENT, node_id TEXT NOT NULL, source TEXT NOT NULL,\n body TEXT NOT NULL, access TEXT NOT NULL, status TEXT NOT NULL, reply TEXT, error TEXT,\n prompt_path TEXT, created_at INTEGER NOT NULL, started_at INTEGER, ended_at INTEGER\n, denials TEXT, activity TEXT, activity_at INTEGER, usage_json TEXT, tmp_dir TEXT, tmp_dev INTEGER, tmp_ino INTEGER, grant_json TEXT, refusal_json TEXT)"
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|