You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Epic: Migrate NEMAR infrastructure from personal to SCCN Cloudflare account #314
Migrate all NEMAR backend infrastructure from personal Cloudflare account (shirazi-10f / yooz-labs) to the SCCN institutional Cloudflare account for long-term sustainability and institutional ownership.
Current State
Backend: Cloudflare Worker nemar-api on personal account
API URL: api.osc.earth/nemar (personal domain zone)
D1 Database: nemar-db on personal account
Docs: MkDocs configured for nemar-cli.pages.dev (not deployed to nemar.org)
Citation Dashboard: Static site on neuromechanist.github.io (personal GitHub Pages)
changed the title [-]Migrate backend from personal to SCCN Cloudflare account[/-][+]Epic: Migrate NEMAR infrastructure from personal to SCCN Cloudflare account[/+]on Mar 21, 2026
Phase 9 (Phase 9: Update CLI default API URL and backward compatibility #330) — CLI DEFAULT_API_URL flipped to https://api.nemar.org; silent migration shim rewrites legacy URLs in stored configs; auth.ts imports DEFAULT_API_URL instead of duplicating; CI dev-injection sed pattern updated to target SCCN dev. PR Phase 9: Flip CLI default API URL to api.nemar.org #352 (dc42f4d). Published as nemar-cli@dev = 0.8.0-dev.613. Manual test: whoami + dataset list --mine against api.nemar.org succeed; migration shim verified end-to-end.
Backend version fix — /health and / were returning version: "0.1.0"; now read from root package.json (single source of truth via ../../package.json import). scripts/bump-version.sh keeps backend/package.json in lockstep and asserts equality post-bump. PR fix: backend reports actual version on /health and / #353 (0005d38). https://api.nemar.org/health now reports 0.8.0-dev.
Decisions recorded
Dev D1 strategy: clean sandbox, NOT a recurring prod mirror. Catalog table sync is fine (public data, idempotent). Repro real bugs against prod with one-shot date-stamped copies, never recurring.
Version source of truth: root package.json for both CLI and backend runtime. backend/package.json is private tooling-only.
Remaining
Phase 10 (Phase 10: Update CI/CD, webhooks, and org secrets #331) — CI/CD tokens, GitHub webhooks (nemarDatasets org), org secrets, catalog-sync.yml URLs. Catalog-sync is the priority since it currently still posts to personal-account URLs.
The SCCN migration moved prod, but the personal Cloudflare account ([email protected], 10f166f3…) was never torn down — its old NEMAR Workers kept running on cron. This was the root cause of the repo-deletion incident (#883).
Deleted from the personal account (nemar-only; osa-worker, hed-bot/hedit, wg-mesh, printlab and the 3 non-nemar R2 buckets left intact):
Per-worker secrets (incl. GITHUB_ADMIN_PAT, AWS_*, ENCRYPTION_KEY, EZID_*, ZENODO_*, NEMAR_*, GITHUB_WEBHOOK_SECRET, TEST_BYPASS_TOKEN) went with the workers.
Follow-up: any secret value above that is shared with prod was sitting on an unmanaged account — consider rotating those in SCCN (the GitHub admin PAT is already rotated). Tracked toward #885 (Infisical).
Migration complete. Prod runs on SCCN; the personal-account leftover (last blocking piece) is fully torn down via Phase 11 (#332): all nemar-* workers + D1s + Vectorize indexes + secrets removed, api.osc.earth/nemar → 404. Any residual README/CLAUDE.md URL polish can be handled ad hoc; no need to keep the epic open. Closing.
Activity
[-]Migrate backend from personal to SCCN Cloudflare account[/-][+]Epic: Migrate NEMAR infrastructure from personal to SCCN Cloudflare account[/+]Add maintenance mode middleware (#342)
neuromechanist commentedon Apr 18, 2026
Progress update — 2026-04-18
Closed phases:
NEMAR Archive <[email protected]>+ reply-to[email protected], env-configurable via PR Make email sender/reply-to env-configurable for SCCN #345Safety audit (2026-04-18):
Remaining phases:
api.osc.earth/nemar→api.nemar.org← nextPre-Phase-8 checklist:
ENCRYPTION_KEYvalue on SCCN matches personal (out-of-band — secret unreadable)api.nemar.orgsubdomain on nemar.org zoneneuromechanist commentedon Apr 26, 2026
Status update — 2026-04-25
Phases 8 and 9 are done; backend version-tracking fix shipped on top.
Completed since last update
api.nemar.orgbound as Workers Custom Domain on the SCCNnemar-apiworker. PR Phase 8: Bind api.nemar.org custom domain on SCCN worker #351 (a1e1bd8).DEFAULT_API_URLflipped tohttps://api.nemar.org; silent migration shim rewrites legacy URLs in stored configs;auth.tsimportsDEFAULT_API_URLinstead of duplicating; CI dev-injection sed pattern updated to target SCCN dev. PR Phase 9: Flip CLI default API URL to api.nemar.org #352 (dc42f4d). Published asnemar-cli@dev=0.8.0-dev.613. Manual test:whoami+dataset list --mineagainstapi.nemar.orgsucceed; migration shim verified end-to-end./healthand/were returningversion: "0.1.0"; now read from rootpackage.json(single source of truth via../../package.jsonimport).scripts/bump-version.shkeepsbackend/package.jsonin lockstep and asserts equality post-bump. PR fix: backend reports actual version on /health and / #353 (0005d38).https://api.nemar.org/healthnow reports0.8.0-dev.Decisions recorded
package.jsonfor both CLI and backend runtime.backend/package.jsonis private tooling-only.Remaining
catalog-sync.ymlURLs. Catalog-sync is the priority since it currently still posts to personal-account URLs.0.8.0on dev (script syncs both), PR dev->main, npmlatesttag publishes.Address PR review: drop task refs, fix legacy default
Phase 10: flip CI/CD to SCCN account (#331) (#354)
neuromechanist commentedon Jul 1, 2026
Personal-account NEMAR teardown completed (2026-07-01)
The SCCN migration moved prod, but the personal Cloudflare account (
[email protected],10f166f3…) was never torn down — its old NEMAR Workers kept running on cron. This was the root cause of the repo-deletion incident (#883).Deleted from the personal account (nemar-only; osa-worker, hed-bot/hedit, wg-mesh, printlab and the 3 non-nemar R2 buckets left intact):
nemar-api,nemar-api-dev,nemar-cli,nemar-cli-dev(crons0 3 * * *removed first, then deleted)nemar-db,nemar-db-devnemar-dataset-index,nemar-dataset-index-devGITHUB_ADMIN_PAT,AWS_*,ENCRYPTION_KEY,EZID_*,ZENODO_*,NEMAR_*,GITHUB_WEBHOOK_SECRET,TEST_BYPASS_TOKEN) went with the workers.Verified:
api.osc.earth/nemar/*→ 404;api.osc.earth/osa/→ 200 (OSA unaffected).Follow-up: any secret value above that is shared with prod was sitting on an unmanaged account — consider rotating those in SCCN (the GitHub admin PAT is already rotated). Tracked toward #885 (Infisical).
neuromechanist commentedon Jul 1, 2026
Migration complete. Prod runs on SCCN; the personal-account leftover (last blocking piece) is fully torn down via Phase 11 (#332): all
nemar-*workers + D1s + Vectorize indexes + secrets removed,api.osc.earth/nemar→ 404. Any residual README/CLAUDE.md URL polish can be handled ad hoc; no need to keep the epic open. Closing.