Skip to content

Run repair compute on bounded Cloudflare containers - #45

Merged
AyobamiH merged 41 commits into
mainfrom
ops/cloudflare-compute-inventory
Sep 28, 2026
Merged

AyobamiH merged 41 commits into
mainfrom
ops/cloudflare-compute-inventory

Conversation

@AyobamiH

@AyobamiH AyobamiH commented Sep 27, 2026 •

Copy link
Copy Markdown
Owner

Why

The operational Cloudflare branch proved operator PR 10, but normal repair dispatch still depended on the old runner configuration. This lands reusable Cloudflare provisioning and cleanup so ordinary repair jobs can run on the provisioned compute.

Changes

  • Provision separate ephemeral plan/execute runners after durable receipt admission; serialize the two-container fleet and retain pending jobs.
  • Bound startup, perform best-effort cleanup of both containers and registrations, and keep execution/merge gates intact.
  • Pin the Cloudflare runtime, remove incident-only debug routes/workflows, and retain reproducible containment and operator fixture proofs.
  • Move deterministic orchestration/CI and approved ChatGPT review to GitHub-hosted runners. No active workflow selects Blacksmith.
  • Force subscription authentication, remove API model credentials, preserve shared allowance admission, and disable automatic ephemeral repair requeues.
  • Preserve repository enrollment and the private renderer fixture; no installation expansion.

pr-behavior-proof

Claim: GitHub orchestration provisions two separate Cloudflare runner roles, executes real Linux containment on each, and destroys them.
Surface: the authenticated Worker, pinned image, composite lifecycle action and production runner labels.
Scenario: deployed service, real GitHub JIT registrations, compiled containment preflight, cleanup.
Environment/command: Cloudflare containers; node /opt/clawsweeper/dist/repair/containment-preflight.js, through cloudflare-repair-provision.yml.
Evidence: Complete initial lifecycle: https://github.com/AyobamiH/clawsweeper/actions/runs/36353992480. Runs https://github.com/AyobamiH/clawsweeper/actions/runs/36412616259 and https://github.com/AyobamiH/clawsweeper/actions/runs/36413520853 proved deployment, two unique Cloudflare runners, both real containment preflights, proof artifacts, and cleanup. Regression run https://github.com/AyobamiH/clawsweeper/actions/runs/36414478446 provisioned both Cloudflare roles, passed both containment samples, and destroyed the fleet. Run https://github.com/AyobamiH/clawsweeper/actions/runs/36416443010 exposed an ineffective retry window on a transient second-runner start and still completed exact-name cleanup successfully. Head 9a3ee9eed0ca1940a469fdfc5c4b6a924dcdd4d0 makes per-attempt timeouts shorter than the aggregate retry budget. Final exact-head lifecycle and subscription-review run: https://github.com/AyobamiH/clawsweeper/actions/runs/36417057578; it must complete successfully before merge.
Limits: this lifecycle proof does not mutate a target repository. Historical full repair is https://github.com/AyobamiH/clawsweeper/actions/runs/36323734781; operator 44/44 adapter validation is https://github.com/AyobamiH/clawsweeper/actions/runs/36338829679/artifacts/10938660135; clean subscription review is AyobamiH/openclaw-operator#10 (comment). Those historical results do not replace current lifecycle proof.

Validation and review

  • Focused workflow/security/lifecycle validation: 106 checks passed, plus 8 direct retry/cleanup/inference-count checks.
  • Startup-offline and partial-cleanup failure cases exercise the real lifecycle shell with controlled API fixtures.
  • Actionlint, complete static checks, lint, formatting, TypeScript and diff checks pass locally on the updated files.
  • Full hosted pnpm run check passed on current head: https://github.com/AyobamiH/clawsweeper/actions/runs/36414478408. Local full coverage remains affected only by Work Mode /proc process-incarnation visibility; assertions were not weakened.
  • Review findings from run 36355088882 are addressed on head 9a3ee9eed0ca1940a469fdfc5c4b6a924dcdd4d0: dispatch now targets the owned service; GitCrawl intake is skipped unless an already-authorised store is explicitly configured; lifecycle identities are stable across retries; failed-jobs-only reruns refuse stale compute; fixture cleanup is unconditional and deregisters survivors.
  • GitHub-hosted namespace failures are addressed by running repair containment smoke on provisioned Cloudflare roles. The Docker E2E remains deterministic hosted CI and enables nested unprivileged namespaces on its disposable host/container.
  • The hosted review scan now counts inference starts only; allowance observation and read-only sandbox utility invocations are not misclassified as model starts.
  • The subscription-authenticated review in run 36412616259 found two additional medium findings. Head 9a3ee9eed0ca1940a469fdfc5c4b6a924dcdd4d0 adds the missing fixture attempt guard and preserves GitHub deregistration when Cloudflare cleanup preparation fails. The next subscription review found a result-publication owner-scope regression; head 9a3ee9eed0ca1940a469fdfc5c4b6a924dcdd4d0 now includes all validated job-owner roots and a regression assertion. The final hosted automerge proof passed: https://github.com/AyobamiH/clawsweeper/actions/runs/36414478477. CodeQL passed: https://github.com/AyobamiH/clawsweeper/actions/runs/36414478399. A current PR-head/body ClawSweeper review remains required; no merge while actionable findings remain.

OpenClaw Bay is unaffected: server-side compute/dispatch changes preserve the observer data contract and introduce no browser mutation controls. The owner explicitly authorised landing after proof and review.

@AyobamiH
AyobamiH marked this pull request as ready for review September 28, 2026 11:28
@AyobamiH
AyobamiH merged commit 9ff607f into main Sep 28, 2026
22 checks passed
@AyobamiH
AyobamiH deleted the ops/cloudflare-compute-inventory branch September 28, 2026 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant