Skip to content

cleanup: retire personal-account wrangler.toml - #566

Merged
neuromechanist merged 2 commits into
devfrom
feature/cleanup-neuromechanist-wrangler
May 22, 2026
Merged

neuromechanist merged 2 commits into
devfrom
feature/cleanup-neuromechanist-wrangler

Conversation

@neuromechanist

Copy link
Copy Markdown
Contributor

Summary

User confirmed 2026-05-18: "nothing should use neuromechanist; SCCN account only." This PR removes the personal-account residual now that Epic #314's DNS cutover (Phase 9) and api.nemar.org migration to SCCN are stable.

Changes

Deleted:

  • `backend/wrangler.toml` — the personal-account config that previously served the legacy `api.osc.earth/nemar` URL in MAINTENANCE_MODE=read-only. The Worker itself can be torn down on Cloudflare separately when convenient; deleting the config from the repo prevents future operators from re-deploying it.

Updated:

  • `backend/src/index.ts` — scheduled-cleanup comment points at wrangler-sccn.toml
  • `backend/src/middleware/maintenance.ts` — MAINTENANCE_MODE docstring points at wrangler-sccn.toml
  • `CLAUDE.md` — backend infrastructure section consolidates to SCCN; explicit retirement note

Intentionally retained:

Test plan

  • Backend typecheck clean
  • Grep audit confirms only intentional `neuromechanist` references remain (legacy URL migration + CLAUDE.md retirement notice)

Follow-up (separate, outside this PR)

  • Tear down the Cloudflare Worker on the personal account itself (the file removal here is only about source control; the deployed Worker is independent)
  • Optional: 301 redirect from `api.osc.earth/nemar` to `api.nemar.org` for any straggling old-CLI traffic

@neuromechanist

Copy link
Copy Markdown
Contributor Author

Review (pr-review-toolkit:code-reviewer)

Critical: none.

Important — both fixed in e8cb651:

  1. `backend/src/middleware/maintenance.ts:5` comment claimed `MAINTENANCE_MODE` is in `wrangler-sccn.toml`, but it's not actually set there (the deleted `wrangler.toml` did set it). Updated to "add MAINTENANCE_MODE to wrangler-sccn.toml [vars] and redeploy".
  2. `backend/package.json` scripts (`dev`, `deploy`, `db:migrate`, etc.) used bare `wrangler` with no `-c` flag. With `wrangler.toml` deleted, wrangler would fall back to the root `wrangler.jsonc` (the unrelated static-site worker). Now all scripts explicitly pass `-c wrangler-sccn.toml`.

Strengths confirmed:

  • All references to the deleted file are updated; CI deploy workflow already used the SCCN config exclusively.
  • Intentional retention of `neuromechanist.workers.dev` in `config.ts` for the auto-migration shim is correctly out of scope.
  • The `api.osc.earth/nemar` legacy URL line in CLAUDE.md is now accurate.

Note: the diff against current dev shows ~21 files because dev advanced significantly during the AWS quarantine outage. The PR's actual net change is the 4 documented files + their corollaries from #570 hotfix landing on dev.

@neuromechanist
neuromechanist merged commit 7cb3bad into dev May 22, 2026
8 of 9 checks passed
@neuromechanist
neuromechanist deleted the feature/cleanup-neuromechanist-wrangler branch May 22, 2026 19:03

This branch had an error being deployed

1 failed deployment
npm — e8cb651b Deployed May 22, 2026 by neuromechanist via publish #1055
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