Skip to content

chore: sync latest dev into epic #1671 - #1700

Merged
neuromechanist merged 4 commits into
feature/issue-1671-epic-bru-upload-fixesfrom
chore/issue-1671-sync-dev-6271fa7
Oct 9, 2026
Merged

neuromechanist merged 4 commits into
feature/issue-1671-epic-bru-upload-fixesfrom
chore/issue-1671-sync-dev-6271fa7

Conversation

@neuromechanist

Copy link
Copy Markdown
Contributor

Syncs the current origin/dev snapshot (6271fa79, including the CI-owned 0.10.16-dev4 bump and password-sign-in retirement) into epic #1671 while preserving the epic's ADR numbering: upload-save remains ADR 0094, stable manifest URLs ADR 0095, admin search/edit ADR 0096, and password retirement is ADR 0097. Cross-references now point to the correct decisions.

Adds migration 0094 to close the migration-first password-hash window. It installs a replay-safe guard for the prior Worker's pending, unverified CLI-signup insert before clearing any hash written between migrations 0093 and 0094. No live D1 migration or deployment was run.

Validation passed: backend bun test (6,183 passed, 0 failed; 138,999 expectations), root auth/ADR tests (79 passed; 263 expectations), focused migration/tier-email tests (15 passed; 60 expectations), bun run typecheck, bun run lint, Biome on changed test files, bun run migrations:d1-check (96 migrations; D1 catalog matches bun:sqlite), and git diff --check.

Three independent reviewers found and resolved the migration-first write gap, ADR cross-reference collision, test fixture break, and replay-safety gap. Final reviews found no remaining actionable findings. This PR updates the epic branch only; epic-to-dev finalization remains deferred.

neuromechanist and others added 4 commits October 9, 2026 13:13
NEMAR has no password sign-in any more. POST /auth/signup and
POST /auth/retrieve-key answer 410 with a sentence naming nemar auth
login, nemar auth retrieve-key is a hidden stub that does the same,
and the bcrypt service and bcryptjs are removed. Mail, pages and hints
that named retrieve-key now name nemar auth login. regenerate-key tells
people to use login -k and exits non-zero on failure.

Migration 0093 sets every stored users.password_hash to NULL. The
column stays, nullable and classified secret. API keys, /auth/login,
email verification, emailed key regeneration and the device flow are
untouched. ADR 0095 records the decision and amends ADR 0047.
@neuromechanist

Copy link
Copy Markdown
Contributor Author

Independent review record (2026-10-09): the contract review found no remaining ADR or branch-ancestry issue; the latest origin/dev snapshot is the sync merge's second parent. The migration review initially found that old /auth/signup could write a new hash between migration 0093 and Worker deployment; migration 0094 now installs a matching database guard before re-clearing, and remains safe to replay. The test review initially found a tier-email fixture with the retired hash shape and missing replay coverage; the fixture is now hashless, and the migration test exercises trigger-only partial application, replay cleanup, repeat application, and rejection of a later signup-shaped insert. All findings were resolved; the final independent passes found no further actionable issue.

Validation: full backend suite (6,183 passed, 0 failed; 138,999 expectations), root auth/ADR suite (79 passed), focused migration/tier-email suite (15 passed), typecheck, lint, Biome on changed tests, and local real-D1 migration replay (96 migrations; schema catalog matches bun:sqlite). No live D1 migration or deployment was run.

@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown

📦 Package Preview

Your package is ready to test!

bun install -g nemar-cli@PR1700

Version: 0.10.16-PR1700.8860235
Commit: 8860235


🤖 Updated on each push.

@neuromechanist
neuromechanist merged commit 41188e9 into feature/issue-1671-epic-bru-upload-fixes Oct 9, 2026
14 checks passed
@neuromechanist
neuromechanist deleted the chore/issue-1671-sync-dev-6271fa7 branch October 9, 2026 21:21

This branch was previously deployed

1 inactive deployment
npm — 88602352 Deployed Oct 9, 2026 by neuromechanist via publish #3327
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