Skip to content
Draft
Show file tree
Hide file tree
Changes from 40 commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
c8020b3
ooo: complete auto session execution started for grade A Seed
lee3Q Nov 29, 2026
60fe174
feat(cloud): add zero-daemon cloud sandbox runtime and workspace-loca…
lee3Q Nov 29, 2026
cc94095
docs: record cloud runtime verification status
lee3Q Nov 29, 2026
52c5b09
fix(cloud): harden portable bundle recovery
lee3Q Nov 29, 2026
e8d3f17
fix(cloud): harden checkpoint and import boundaries
lee3Q Nov 29, 2026
896b3fe
test(task2-chatgpt-work-cloud-runtime): complete verification & harde…
lee3Q Nov 29, 2026
58797a9
test(task2-chatgpt-work-cloud-runtime): complete verification & harde…
lee3Q Nov 29, 2026
a32a16a
test(task2-chatgpt-work-cloud-runtime): complete verification & harde…
lee3Q Nov 29, 2026
0b03a62
test(cloud): close round four verification gaps
lee3Q Nov 29, 2026
1a18bb1
test(task2-chatgpt-work-cloud-runtime): complete verification & harde…
lee3Q Nov 29, 2026
c0d893b
test(cloud): add real process recovery journeys
lee3Q Nov 29, 2026
fa2b5ae
test(task2-chatgpt-work-cloud-runtime): complete verification & harde…
lee3Q Nov 29, 2026
16e686a
test(cloud): complete maintainer readiness hardening
lee3Q Nov 30, 2026
fbbc5c3
fix(cloud): close round nine isolation and rollback gaps
lee3Q Nov 30, 2026
b44f9e3
test(task2-chatgpt-work-cloud-runtime): complete verification & harde…
lee3Q Nov 30, 2026
c9d3083
test(task2-chatgpt-work-cloud-runtime): complete verification & harde…
lee3Q Nov 30, 2026
b7aaf16
test(task2-chatgpt-work-cloud-runtime): complete verification & harde…
lee3Q Nov 30, 2026
0c0e703
test(task2-chatgpt-work-cloud-runtime): complete verification & harde…
lee3Q Nov 30, 2026
0bd4a2e
test(task2-chatgpt-work-cloud-runtime): complete verification & harde…
lee3Q Nov 30, 2026
24a30b0
test(task2-chatgpt-work-cloud-runtime): complete verification & harde…
lee3Q Nov 30, 2026
49fdd63
test(task2-chatgpt-work-cloud-runtime): complete verification & harde…
lee3Q Nov 30, 2026
34a5461
test(task2-chatgpt-work-cloud-runtime): complete verification & harde…
lee3Q Nov 30, 2026
f48f2b7
test(task2-chatgpt-work-cloud-runtime): complete verification & harde…
lee3Q Nov 30, 2026
b8b040c
test(task2-chatgpt-work-cloud-runtime): complete verification & harde…
lee3Q Nov 30, 2026
ec5ac3b
test(task2-chatgpt-work-cloud-runtime): complete verification & harde…
lee3Q Nov 30, 2026
88679cb
Merge remote-tracking branch 'origin/main' into feat/cloud-sandbox-ru…
lee3Q Nov 30, 2026
427e8eb
Merge remote-tracking branch 'origin/main' into feat/cloud-sandbox-ru…
lee3Q Nov 30, 2026
c9fcabd
Merge remote-tracking branch 'origin/main' into feat/cloud-sandbox-ru…
lee3Q Nov 30, 2026
932e76b
Merge remote-tracking branch 'origin/main' into feat/cloud-sandbox-ru…
lee3Q Nov 30, 2026
7aeeffd
fix(cloud): harden trust boundary and crash recovery
lee3Q Nov 30, 2026
3312432
chore: remove prohibited root work state files
lee3Q Nov 30, 2026
e641d45
fix(cloud): harden bundle and host-turn boundaries
lee3Q Nov 30, 2026
55a4917
fix(cloud): make crash recovery replay safe
lee3Q Nov 30, 2026
41e66bf
fix(cloud): harden bundle publish recovery boundaries
lee3Q Nov 30, 2026
a6b6757
fix(cloud): close round five runtime regressions
lee3Q Nov 30, 2026
4ff2f07
fix(cloud): harden round six edge cases
lee3Q Nov 30, 2026
0bacebf
fix(cloud): validate quoted patch paths
lee3Q Nov 30, 2026
e3cbed0
ci: always collect Windows worker evidence
lee3Q Nov 30, 2026
a801fe0
test(hv2-ouroboros-cloud-3129-security-and-work-integration): complet…
lee3Q Nov 30, 2026
3d6675a
fix(cloud): harden crash recovery and import replay
lee3Q Dec 1, 2026
41ebd0e
fix(cloud): bound detached output drain
lee3Q Dec 1, 2026
0f15e97
ci: preserve Windows worker evidence after cancellation
lee3Q Dec 1, 2026
94af23b
fix(mcp): await owning task during job cancellation
lee3Q Dec 1, 2026
1abf2da
fix(cloud): ignore hunk lines as patch headers
lee3Q Dec 1, 2026
152a3ad
fix(cloud): confine import journal recovery paths
lee3Q Dec 1, 2026
37075e9
chore(fix_pr3129_octal_path_rollback): checkpoint verified stage
Dec 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,10 @@ jobs:

- name: Run targeted Windows detached worker regressions
id: detached-worker-tests
# Continue after an earlier Windows step fails so this evidence step
# still produces its JUnit report and the scope reporter can identify
# the worker regression precisely.
if: ${{ always() && !cancelled() }}
shell: pwsh
env:
HOME: ${{ runner.temp }}/ooo-detached-worker/home
Expand Down Expand Up @@ -360,7 +364,12 @@ jobs:
passed = len(cases) - failed - skipped
lines += [f"Observed: {passed} passed, {failed} failed/error, {skipped} skipped.", "",
"| Observation | Result | Detail |", "|---|---|---|"]
invalid = not cases or passed == 0 or failed > 0
invalid = (
os.environ["OOO_WORKER_TEST_OUTCOME"] != "success"
or not cases
or passed == 0
or failed > 0
)
checks = (
("Console association", "test_venv_worker_completes_without_allocating_a_console_window"),
("Visible window", "test_venv_worker_completes_without_a_visible_console_window"),
Expand All @@ -378,6 +387,7 @@ jobs:
elif skip is not None:
status = "UNSUPPORTED / NOT VERIFIED"
detail = skip.get("message") or skip.text or "Observation unavailable."
invalid = True
print(f"::warning::{label}: {status}: {detail}")
else:
status, detail = "PASS", "Legacy positive control and candidate assertions passed."
Expand Down
24 changes: 24 additions & 0 deletions docs/cli-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,37 @@ ouroboros [OPTIONS] COMMAND [ARGS]...
| `seed` | Generate or inspect seed specifications |
| `workflow-ir` | Inspect workflow intermediate representation |
| `zcode` | Convenience wrapper for Zcode (bundles `start`, `qa`, `run` with Zcode pre-selected; for global config use `setup --runtime zcode`) |
| `cloud` | Run a workspace-local zero-daemon workflow and export/import portable state bundles |

> **Shorthand entry points:** `ooo` and `ouroboros` both launch the main CLI.
> `ozo` is a standalone shorthand that launches only the Zcode convenience commands
> (equivalent to `ouroboros zcode ...`).

---

## `ouroboros cloud`

Run a deterministic host-turn workflow in a managed cloud sandbox without a
background daemon, runtime socket, writable HOME/XDG directory, or private Git
authentication. State is stored under `<workspace>/.ouroboros-cloud/`.

```bash
ouroboros cloud init --workspace . --seed "Build a report"
ouroboros cloud plan --workspace . 'python -m compileall -q src' 'uv run pytest tests/unit/cloud -q'
ouroboros cloud next --workspace .
ouroboros cloud record-evidence tests passed --workspace . --step 0
ouroboros cloud verify --workspace .
```

`cloud bundle export` creates a deterministic, checksum-manifested tar bundle.
For Git workspaces it also includes an execution patch tied to the recorded
base revision. `cloud bundle import` verifies the manifest and refuses to
apply that patch if local `HEAD` moved or the patch no longer applies.
Imported plans require `ouroboros cloud approve --workspace <path>` before
`cloud next` can execute their commands.

---


## `ouroboros auto`

Expand Down
83 changes: 83 additions & 0 deletions docs/guides/cloud-runtime.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
# Cloud Sandbox / Zero-Daemon Runtime

The portable runtime keeps its durable workflow state in
`<workspace>/.ouroboros-cloud/state.json`. It does not use `HOME`, XDG state,
private GitHub credentials, background daemons, or runtime sockets.

Environment detection is available through `ouroboros.cloud.detect_environment`.
It recognizes workspaces mounted below `/workspace`, `CODEX_CLOUD`, unavailable HOME/XDG directories,
`GIT_TERMINAL_PROMPT=0`, and explicit daemon/socket restrictions. It evaluates
`XDG_CONFIG_HOME` and `XDG_DATA_HOME` independently, including their HOME-based
defaults. These facts are diagnostic inputs; the portable driver always remains
usable when they are restricted.

The host-shell driver is deterministic: planned commands run in list order,
once each, from the workspace with `GIT_TERMINAL_PROMPT=0`. Typical use is:

```console
ooo cloud init --workspace . --seed "Build a report"
ooo cloud plan --workspace . 'python -m compileall -q src' 'uv run pytest tests/unit/cloud -q'
ooo cloud next --workspace .
# If a host turn disconnects while the command is running, inspect its effect
# and acknowledge the durable in-flight record instead of replaying it.
ooo cloud recover 0 --workspace .
ooo cloud record-evidence tests passed --workspace .
ooo cloud verify --workspace .
ooo cloud bundle-export portable.tar.gz --workspace .
ooo cloud bundle-import portable.tar.gz --workspace ./restored
ooo cloud approve --workspace ./restored
```

Verification is fail-closed. A valid run has at least one planned step, one
persisted checkpoint, successful return codes, and non-whitespace evidence
covering every planned step. Explicit evidence may target only a completed
step, so a future step cannot be marked observed before its host turn runs.
The most recent 64 verification receipts are retained so repeated host-turn
checks cannot grow the state file without bound. Cloud state mutations and
bundle transfers use a workspace-local file lock, so concurrent host turns
consume each planned step exactly once and an export observes one consistent
state-and-patch snapshot.
Before executing a command, the driver persists an `in_flight` intent. A
disconnect after the command's side effect therefore blocks automatic replay;
the next host turn must inspect the effect and use `cloud recover` to record the
observed result. This gives host turns an explicit at-most-once restart boundary
without pretending that a killed process can know whether its child finished.
Replanning is rejected while that intent exists, so a new plan cannot erase an
unacknowledged side effect.

Bundles contain the JSON state, the generated bootstrap script, and (when the
workspace is a Git checkout) a binary-safe `execution.patch` relative to the
revision recorded when the run was initialized. The patch includes safe,
non-ignored regular files created during the cloud run. A sorted SHA-256
manifest covers every payload, and tar/gzip metadata is normalized so repeated
exports are byte-for-byte identical. Import validates every member, checksum,
and the exact generated bootstrap payload before writing; a corrupted
checkpoint cannot replace a good one. The manifest is a checksum rather than
a cryptographic signature, so imported plans are marked unapproved and
require `cloud approve` before execution.

When a patch is present, import first checks that local `HEAD` still equals the
cloud base revision and runs `git apply --check`. If local `main` advanced or
the patch no longer applies, import fails with a conflict and does not apply
the patch. The state-only legacy bundle form remains readable, but an
execution patch always requires the manifest.
Import also restores the prior patch, checkpoint, and bootstrap targets if a
later target write fails after patch application. State files are capped at
2 MiB and reject non-standard JSON numbers before persistence.

## Live ChatGPT Work check (2026-11-30)

Aside used the configured account and profile and opened a brand-new temporary
ChatGPT Work chat. The cloud host returned:

```text
Linux 3a7e687d67fe 6.18.57 #1 SMP Tue Oct 20 21:56:04 UTC 2026 x86_64 GNU/Linux
{"roundtrip":true}
```

No existing/private chat, account settings, billing, or other service was
opened or changed.

The local restricted-host simulation did complete the equivalent CLI roundtrip
with `env -i`, isolated HOME/XDG directories, `CODEX_CLOUD=1`, and
`GIT_TERMINAL_PROMPT=0`; it ended with `ISOLATED_CLOUD_ROUNDTRIP_OK`.
Loading