Repository navigation
open-compute 0.1.9
0.1.9 publishes @open-compute/sdk, adds the weekly Cloudflare upstream-refresh pipeline, and hardens the self-hosted runtime around deployment admission, Cron recovery, operator proxies, Wrangler uploads, and zero-copy AI Search ingestion. It is for operators who need deterministic single-machine recovery and for developers who manage open-compute from Node.js or Bun.
What's new
@open-compute/sdkpublished. The new public npm package is released jointly with thisocdtag under the sameX.Y.Z.createOpenComputeClient({ apiToken, baseURL })exposes exactly the 140 management operationsocdhas qualified against the pinned Cloudflare OpenAPI subset, plus 19 open-compute-only vendor operations underclient.openCompute(capabilities, system status, scheduler, cache, image capacity, upgrade check, Worker endpoints, Durable Object inventory, and KV/D1 backups). Every standard method delegates to the pinned officialcloudflare@7.1.0implementation, so authentication, retries, pagination, multipart upload, andAPIErrorparsing match the official client. Workers resource limits reach users through the officialworkers.scripts.settings.get/edittypes.- The client cannot fall back to Cloudflare.
baseURLis mandatory, absolute, canonical, and must end in/client/v4; plain HTTP is accepted only for loopback test addresses; no ambient credential variables are read; anddefaultHeaderscannot overrideAuthorizationor platform-internal headers. The Dashboard now consumes the same closed capability surface. - The capability inventory is completed.
GET /open-compute/capabilitiesnow advertisesGET /open-compute/upgrade/checkandGET /accounts/{account_id}/queues/{queue_id}/metrics: routesocdalready served but the authority had never registered. Both are also in the SDK surface. - Weekly upstream refresh. A read-only scanner, three-way classification fixtures, and a scheduled workflow compare the pinned OpenAPI, official SDK, and Wrangler identities and classify each candidate as
ready,blocked, orbreakingagainst a single tracking issue. Discovery never moves a formal pin, auto-merges, tags, or publishes. - Operator-owned outbound honors one frozen proxy policy. AI providers, target and release checks, and remote S3 use the first configured
HTTPS_PROXY,https_proxy,ALL_PROXY,all_proxy,HTTP_PROXY, orhttp_proxy, withNO_PROXYsupport. Loopback and platform-internal traffic always stays direct; tenant egress is unchanged. Unsupported proxy schemes, credentials, and invalid values fail startup instead of silently bypassing the proxy. - Manual AI Search sources. The namespaced
open-compute:manualsource streams an exact immutable revision from an authenticated loopback provider into the existing parser and indexing pipeline. Source bytes are verified by size and SHA-256 and are never copied into AI Search object storage; official Cloudflare AI Search routes and types are unchanged.
Workerd
The third_party/workerd submodule revision is unchanged from 0.1.8: d711abf405f2d56b6518a863bb5dbcace14289f1, with the formal pin v1.20260905.0-open-compute-p3.d711abf4. workerd --version still prints workerd 2026-09-05; that date string is not the pin identity, so an unchanged version output here means no runtime upgrade, not a failed one.
SDK
- Package:
@open-compute/sdk@0.1.9, published to the npm registry; install withnpm install @open-compute/sdk. - Pins: official
cloudflare@7.1.0(npm tarball identity recorded inrelease.json), Cloudflare OpenAPI revisionb8687f42e28fbfcb296a350f7dbf16349ea900af, API surface digest recorded alongside the package identity inrelease.json. - Surface change: initial publication; 140 standard operations and 19
openComputevendor operations. The full operation-to-official-method mapping lives in the repository surface report and drives the website API reference. - Pairing: only an
ocdof the sameX.Y.Zrelease is qualified; a version mismatch fails closed rather than silently aliasing requests.
Fixed
- Wrangler 4.127.1 uploads containing
package_dependenciesnow pass the shared strict Script/Versions metadata decoder. The field remains build provenance only and does not change persisted deployment identity or tenant runtime state; malformed entries and unknown fields are still rejected. - Cron transport-unknown outcomes now consume a durable attempt, keep a fixed 15-minute deadline, and terminalize when retry, deadline, or activation-drain bounds are exhausted. Restarts no longer reset the budget or leave a deployment drain blocked forever.
- A deployment becomes active only after a probe succeeds against one exact workerd startup generation. Unexpected exits uniquely attributable to an active deployment quarantine it and roll back to the newest dispatchable predecessor; ambiguous concurrent incidents recover the runtime without guessing a culprit. Status and support bundles expose bounded, redacted assessment and last-exit evidence.
- The committed OpenAPI authority, capability inventory, and SDK surface now canonicalize through one prettier form across the generator, byte-reproducibility checks, and the pre-commit hook, removing drift between regenerated and committed bytes.
Before you upgrade
- Stop
ocdand take a current snapshot before replacing the binary. First startup transactionally applies control V3/V4, scheduler V2, and AI Search V2 migrations. Once opened by 0.1.9, the data directory must not be reopened by 0.1.8. - Control V3 deliberately quarantines pre-0.1.9 deployments as
DEPLOYMENT_ADMISSION_REQUIREDand clears their active pointers because they have no generation-bound runtime assessment. Keep Worker sources available and redeploy each Worker after upgrade; no old deployment is silently grandfathered into the new admission model. - Existing builtin and R2 AI Search locators and derived index state are migrated to the current tagged locator schema. Manual sources are opt-in and require an explicit
[ai.source_providers.<id>]loopback provider configuration; source bytes are not imported during migration. - Review the service environment before restart. A non-empty proxy variable is now authoritative and must be a canonical credential-free
http://host:port; remove unintended inherited proxy values or configureNO_PROXYbefore upgrading. - Scheduler state is migrated in place with bounded attempts and deadlines. Existing claimed runs retain their durable identity and can become terminal under the new bound rather than retrying indefinitely.
Install or upgrade
An existing receipt-managed installation can upgrade directly:
ocd upgrade 0.1.9For a new system-wide installation, download and review the installer before elevating it:
curl -fsSL -o install.sh https://raw.githubusercontent.com/elliothux/open-compute/v0.1.9/scripts/install.sh
less install.sh
sudo env OPEN_COMPUTE_RELEASE_TAG=v0.1.9 sh install.sh
sudo /usr/local/bin/ocd setup --yes --systemFor the default user-owned installation, run the reviewed installer without sudo, then run ocd setup --yes. Verify with ocd --version, ocd config check, ocd doctor, and ocd capabilities --json.
Downloads
| Host | Asset |
|---|---|
| macOS on Apple silicon | ocd-v0.1.9-darwin-arm64 |
| Linux on ARM64 | ocd-v0.1.9-linux-arm64 |
| Linux on x86-64 | ocd-v0.1.9-linux-x64 |
The release also contains release.json (which now carries the SDK package identity) and SHA256SUMS. Every executable embeds the formally pinned v1.20260905.0-open-compute-p3.d711abf4 runtime and the Pyodide 314.0.6_2026-08-17_2 bundle. The SDK tarball is distributed through npm and is not duplicated as a GitHub asset. Windows and Intel macOS remain source-build-only targets.
Security
There are no published security advisories specific to 0.1.9. Management-plane credentials keep their boundaries: deployer and admin tokens never enter tenant isolates, internal listeners stay loopback-only and capability-scoped, and per-generation internal tokens never appear in argv, environment, logs, status, metrics, errors, or tenant-visible responses. The mandatory-baseURL design keeps the SDK from defaulting any request to api.cloudflare.com. Manual providers are loopback-only and credential references are never persisted with instances; operator proxy credentials are rejected; deployment crash evidence is bounded and redacted before persistence or support-bundle export.
Known limitations
- Pre-1.0: an official compatibility claim exists only for an
ocdand@open-compute/sdkof the sameX.Y.Z. - Selected routes the pinned official SDK does not implement are intentionally absent from the SDK surface even though
ocdsupports them (PUT …/workers/scripts/{script_name}/usage-modelandPUT …/r2/buckets/{bucket_name}); the exclusion is recorded in the selection manifest and the SDK never hand-forges an official method. - The first npm publish is bootstrapped with an explicitly authorized, short-lived
NPM_ACCESS_TOKEN; npm provenance via trusted publishing is deferred and tracked as follow-up work. - Current upstream drift stays
blockedper the refresh contract and does not move pins: schema HEAD adds optional AI Searchuse_ocr/custom_metadatafields and a Queue createjurisdictionfield thatcloudflare@7.1.0does not yet express, and Wrangler 4.131.2 awaits its own coordinated evidence review against the pinned 4.127.1. - The operator proxy supports one credential-free HTTP proxy origin, HTTP absolute-form requests, and HTTPS
CONNECT; SOCKS, PAC/WPAD, proxy authentication, custom interception CAs, and OS proxy discovery are not supported. - Manual AI Search providers are loopback HTTP only and do not scan, reconcile, or delete upstream content. The caller must provide the exact revision for each upsert.
- When one unexpected workerd exit has multiple tenant deployments in flight, 0.1.9 records ambiguous attribution and restores service but does not quarantine any tenant automatically.
Verification
The frozen 0.1.9 candidate passed the repository build, frontend check, 273 JavaScript tests, formatting and static checks, Rust 1.98 checks, dependency boundaries, 90.03% Rust line coverage (134604/149514), and one complete 52-process/1532-case workspace Gate against the formally pinned workerd. Focused evidence covers strict Wrangler metadata, durable Cron retry/drain recovery, generation-bound deployment admission and rollback, proxy routing and bypasses, and the full manual-source provider-to-search path. The SDK matrix adds generator byte-drift and --check reproducibility, dual-module ESM/CJS and declaration builds, tarball allowlist and exact-dependency inspection, isolated Node ESM/CJS/Bun and TypeScript consumer smokes, negative compile fixtures proving unsupported modules, siblings, leaf methods, and raw generic requests stay unreachable, and one real-process ocd Cloudflare SDK Gate covering JSON, multipart upload, binary download, pagination, bodyless POST, retry/timeout/APIError, path encoding, vendor methods, and request-trace equivalence against the full official client. The tag-triggered workflow independently runs macOS coverage and the workspace Gate, Linux controlled egress, packaging for all three targets, npm publication with registry read-back, and GitHub Draft publication only after every required job succeeds. See the full diff from 0.1.8.
Thanks
Thanks to @ben7th for reporting the Wrangler package_dependencies deployment failure and providing the concrete client/version reproduction that led to the shared strict-decoder fix.