From 36ad8bf9a86fd013d560a9dc07b0786185bfc91c Mon Sep 17 00:00:00 2001 From: vijayakrishnans Date: Mon, 2 Nov 2026 06:17:44 +0000 Subject: [PATCH] PK12: a local build reaches the backend a login targets intent.yaml pinned api-edge-prod.oruncloud.workers.dev while `orun auth login` signs in to api.orunbase.com, so `orun baseline new --local --run-hooks` stopped at 01-product's providers check. Pin the documented host, the same api-edge Worker, and hold it in testing/coverage.test.sh. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01LBnxs4n67SC86Y69H4VNnU --- intent.yaml | 2 +- testing/coverage.test.sh | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/intent.yaml b/intent.yaml index a733d1b..e56e396 100644 --- a/intent.yaml +++ b/intent.yaml @@ -8,7 +8,7 @@ metadata: execution: state: - backendUrl: https://api-edge-prod.oruncloud.workers.dev + backendUrl: https://api.orunbase.com # Declared, enforced tenancy: the workspace claim is sent on every remote op # (including the credential-free CI OIDC exchange) so the platform can # enforce claim ⊆ authorized. Declaring it implies strict mode — a diff --git a/testing/coverage.test.sh b/testing/coverage.test.sh index aa653f3..c2711b6 100755 --- a/testing/coverage.test.sh +++ b/testing/coverage.test.sh @@ -249,6 +249,16 @@ else: or "inputs.environment" not in str(_env.get("DISPATCH_ENVIRONMENT", "")): bad("ci.yml's plan step must take DISPATCH_COMPONENT / DISPATCH_ENVIRONMENT from inputs in env") +# THE BACKEND A PRODUCT PINS IS THE ONE A LOGIN TARGETS. A stored `orun auth +# login` is bound to its backend and refuses any other URL, and `--backend-url` +# does not reach the build's hooks, so a local build stops at 01-product's +# providers check when this names another host for the same API. +backend = ((yaml.safe_load((root / "intent.yaml").read_text()) or {}) + .get("execution", {}).get("state", {}).get("backendUrl")) +if backend != "https://api.orunbase.com": + bad(f"intent.yaml pins backendUrl {backend!r}; it must be " + f"https://api.orunbase.com, the host `orun auth login` signs in to") + if problems: print("FAIL: the blueprint and this repository disagree about what a product is:", file=sys.stderr)