Repository navigation
Conversation
Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
… one-time PIN leaves M2 Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
…nfiguration (P5 O11 M2) Each wrangler call the deploy tool makes (deploy, secret list, secret put) now carries --name <config.worker> and CLOUDFLARE_ACCOUNT_ID=<config.account>, through workerWrangler, which refuses a call bringing its own target flag and, before Access or wrangler is touched, a configuration whose host is not its Worker's. Each call prints the target it checked. redeploy-check redeploys through deployHub, so it takes the same check. Before this, every call relied on wrangler.jsonc's name, so a staging configuration would have pushed its variables onto the production Worker. deploy/staging.json is the staging hub: Worker desk-hub-staging, org ssfskim-staging. The README covers both deployments and names the host as $HUB in its commands. Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
…owner policy vs access-sync, probe's throwaway org, login methods) Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
…es production cannot also make Machine service tokens are named desk-<org>-<machine> account-wide and machine names may hold '-', so ssfskim-staging with machine x named the same token as production's ssfskim with machine staging-x. No production token name starts desk-staging-. A test pins that neither org's token prefix begins the other's, and the target suite now stubs the global fetch to throw, so none of its tests can reach Cloudflare. Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
…way org is staging-prefixed and cleaned up Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
test/support/no-network.ts, a setupFiles entry of the desk-hub vitest config, wraps the global fetch so every suite reaches its own Miniflare hubs and stand-ins on loopback and nothing else: a test that forgets to inject a fake (deployHub defaults to the global fetch) is refused before a request leaves, instead of calling Cloudflare. target.test.ts drops its per-file stub and pins the refusal, a direct fetch and a deploy given no fake account, which fails at its first Access call with no wrangler run. Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
…, account or log Review fixes (O11 M2). Wrangler 4.151 also reads its target from its environment and files: WRANGLER_CI_OVERRIDE_NAME renames the Worker outright, CLOUDFLARE_ENV/ACCOUNT_ID/API_* pick a section, account or API, .env and .env.local beside wrangler.jsonc are loaded into its environment, an account_id in wrangler.jsonc beats CLOUDFLARE_ACCOUNT_ID, and a .wrangler/deploy/config.json redirect swaps the configuration. The runner now: - runs wrangler in an allow-listed environment (wranglerEnv: what locates the system, the login and the network) plus what the tool sets, with WRANGLER_LOG_SANITIZE=true and WRANGLER_WRITE_LOGS=false forced, since a secret put carries a credential; - passes wrangler.jsonc by path and --env-file /dev/null on every call, and refuses a caller's --cwd, --env-file and --profile beside the earlier target flags; - refuses, before Access or wrangler is touched, a wrangler.jsonc with another account_id and a deploy redirect. deployArgs refuses a repeated --config, which parseArgs would otherwise resolve to the last. Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
…n) and the wrangler target discovery Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
… restored) Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
SSFSKIM
added a commit
that referenced
this pull request
Oct 27, 2026
…ment's M1 and M2 records joined Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)
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.
P5 O11 M2, the staging hub (
docs/doperpowers/plans/2026-10-27-p5-o11-hub-v2.md, M2).What this lands
--name <config.worker> --config <app>/wrangler.jsonc --env-file /dev/null, and wrangler runs in an allow-listed environment. No inheritedWRANGLER_*orCLOUDFLARE_*variable reaches it, and neither does a.envfile. Wrangler 4.151 can retarget a deploy throughWRANGLER_CI_OVERRIDE_NAME,CLOUDFLARE_ENV, anaccount_idor a redirect file. Logs are sanitized and never written to disk.--cwd,--env-file,--profile, a repeated--config, a foreignaccount_idor a deploy-config redirect are each refused before Access or wrangler is touched. So is a config whose host isn't its Worker's.wrangler target …line.apps/desk-hub/deploy/staging.jsondeploys Workerdesk-hub-stagingunder orgstaging-ssfskim. The README covers both deployments.fetchreach loopback only.HOMEkeeps working, as reviewer-medium traced. Only an environment-onlyCLOUDFLARE_API_TOKENlogin would stop working, and it would fail closed.desk-hub, one-time PIN dropped, the org idstaging-ssfskim,access-syncowning the people policy from M3).Validation Evidence
test/deploy/passes 46 of 46. The target and runner suites pass 19 of 19; they failed 9 of 19 before the fix. Typecheck and eslint on the touched files are clean (/tmp/dsk-scripts/p5-o11/task-2-report.md).curl -sI -X POST https://desk-hub-staging.opencognita-platform.workers.dev/machine/enrollshowsx-desk-build: hub@3a5b522b [email protected].desk-hub-staging: 4 on the first deploy, then 2 on each probe deploy. The script counted 0 naming another Worker.x-desk-build: hub@3486527c [email protected]is the same before and after.updated_at) are byte-identical before and after. The account'sdesk-hub*names changed only by staging's 2 apps and 3 policies.desk-hubis allowed, read-only included.deployment probe --config deploy/staging.json --test-org staging-probe-1passed A4, A5, E2, E3 and A1 on staging, under a throwaway org.m2-probe-1-sweep.json).staging-ssfskim, and/api/meconfirmed it.scripts/ci-gate.sh /tmp/maws-o11-m2 --gates static,unit,probeson15e171ce5: GREEN, https://github.com/SSFSKIM/MAWS/actions/runs/40434492697 (plan, static, probes, unit 1–4/4 success).Owner item
One-time PIN login for a second member is the owner's decision at P5 acceptance 12. Our Access apps name no login methods, so Cloudflare offers every method the account has. A staging-only PIN would need production's apps to start naming their methods.
Residue
/tmp/dsk-scripts/deploy-staging.sh,m2-probe-staging.sh,m2-prod-baseline.sh) live outside the repository because they read the secrets directory. A durable home for them is the desk's call.Sminos-Session: desk-sminos-orchestrator#b4948247 (doperpowers on macbook)