Fix Cloudflare Pages deploy from the pnpm workspace root - #10
Merged
Conversation
Blazenetic
marked this pull request as ready for review
August 28, 2026 16:24
Blazenetic
force-pushed
the
cursor/cloudflare-pages-workspace-deploy-b0c4
branch
from
August 30, 2026 10:19
8dc4e41 to
c7d792d
Compare
The rebase onto current main kept wrangler.toml but omitted ADR 0010 and the session note while leaving links to both. Restore those files and keep the coding-agent start pointer on the post-Phase-5 review. Co-authored-by: Blazenetic <blazenetic@proton.me>
The previous 9f9641f workflow was cancelled by concurrency while an older rebase SHA was still running. Empty commit so quality and e2e run on the current documentation restore. Co-authored-by: Blazenetic <blazenetic@proton.me>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
The first Cloudflare Pages / Workers Builds deploy failed after a successful
pnpm build. The host rannpx wrangler deployfrom the repository root, and Wrangler 4.x refused to auto-detect a package inside a pnpm workspace.This PR commits a repository-root
wrangler.tomlthat namesapps/observatory/distand no Worker script, so the default dashboard deploy command has an explicit target. The static-release runbook now records the dashboard settings. The policy gate checks the Wrangler target. There is still no Worker script, Pages Function or application backend, and Wrangler is not added to the lockfile.The branch was rebased onto current
main(a63181c). That rewrite kept the Wrangler target but dropped ADR 0010 and the session handover while leaving links to both. Those files are restored; the coding-agent start pointer stays on the post-Phase-5 review.Scientific-integrity check
No model path, sampler, evidence class or header contract changed. The Phase 5 source candidate is not rebound.
Verification
pnpm checkon the original head; static-release policy re-checked after the restorenpx wrangler@4.127.1 deployat a workspace root without config — reproduced the original detection errornpx wrangler@4.127.1 deploy --dry-runfrom/with the committed config — readapps/observatory/distand exited 096fb6a1— retriggered. The9f9641frun completed every quality step, then the workflow was cancelled by concurrency while an older rebase SHA was still in flight. e2e did not finish on that SHA.Evidence
Cloudflare deploy log from 2026-08-28: build succeeded (
pnpm run build/ Vite), then:Local reproduction with Wrangler 4.127.1 matched that error when no config was present. After this change, the same Wrangler version dry-ran from the workspace root and reported:
Known limits / next slice
Redeploy the existing Cloudflare project after merge. The dashboard project name must match
thinking-machine-observatory(or changewrangler.tomlto match the dashboard name). A live URL, observed headers and candidate commit still have to be attached before a deployed-origin evidence record can pass. This branch does not claim a live Cloudflare deploy.Do not set the Cloudflare root directory to
apps/observatory; the workspace install has to run from/.