Fix auth dead-ends locking admins out of user management (admin-auth-gate-fix) #360

Merged
weichen merged 16 commits from feature/admin-auth-gate-fix into main 2026-10-11 14:31:40 +00:00
16 Commits
Author SHA1 Message Date
weichen 78c049912c Record the sync checkpoint
ci / test-pg (pull_request) Successful in 2m2s
ci / test (pull_request) Successful in 4m19s
Why: bind the task validation checkpoint to the latest integration baseline.

Evidence: SELF recursive component checks; sync_base=3ef65a91428cf28e73dd2a23127dda014e455d87; candidate=8ad74350ffff9fc267838cadfa9d52ef36d59dbf.

Impact: task metadata only.

Refs: .task/feature-admin-auth-gate-fix.md
2026-10-11 14:26:28 +00:00
weichen 8ad74350ff Merge authoritative main into the task branch
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=3ef65a91428cf28e73dd2a23127dda014e455d87.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync
2026-10-11 14:26:04 +00:00
weichen e51da35990 Record the sync checkpoint
ci / test-pg (pull_request) Successful in 1m36s
ci / test (pull_request) Successful in 3m56s
Why: bind the task validation checkpoint to the latest integration baseline.

Evidence: SELF recursive component checks; sync_base=53a3effef777c83bd6baa63f8181f34480533559; candidate=4c3169b782c8801ec8e79f3a73faf1ab552b7c16.

Impact: task metadata only.

Refs: .task/feature-admin-auth-gate-fix.md
2026-10-11 14:15:51 +00:00
weichen 4c3169b782 Merge authoritative main into the task branch
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=53a3effef777c83bd6baa63f8181f34480533559.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync
2026-10-11 14:15:24 +00:00
weichen 041bbf0691 Record final combined make test evidence after frontend resolution
ci / test-pg (pull_request) Successful in 1m29s
ci / test (pull_request) Successful in 3m50s
2026-10-11 14:15:08 +00:00
weichen ea65927e1f Record the sync checkpoint
Why: bind the task validation checkpoint to the latest integration baseline.

Evidence: SELF recursive component checks; sync_base=27fa4fda7a0dbdf9228f9575f3fd50ca5974df76; candidate=17c7947a409f35971a03f17bee997112bac20bd6.

Impact: task metadata only.

Refs: .task/feature-admin-auth-gate-fix.md
2026-10-11 14:13:52 +00:00
weichen 17c7947a40 Merge authoritative main into the task branch
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=27fa4fda7a0dbdf9228f9575f3fd50ca5974df76.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync

# Conflicts:
#	modules/frontend
2026-10-11 14:13:18 +00:00
weichen c3a8ec16f7 Re-record combined make test evidence after task-sync
ci / test-pg (pull_request) Successful in 1m31s
ci / test (pull_request) Successful in 5m47s
2026-10-11 14:03:43 +00:00
weichen cbf517a8c4 Record the sync checkpoint
ci / test-pg (pull_request) Successful in 2m42s
ci / test (pull_request) Successful in 3m11s
Why: bind the task validation checkpoint to the latest integration baseline.

Evidence: SELF recursive component checks; sync_base=03b2adfdc218b45ae2a3f8172fea4110783a4e05; candidate=f6d077e2a010fa32f682b18ab1a0dfdedb6d8e40.

Impact: task metadata only.

Refs: .task/feature-admin-auth-gate-fix.md
2026-10-11 14:02:16 +00:00
weichen f6d077e2a0 Merge authoritative main into the task branch
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=03b2adfdc218b45ae2a3f8172fea4110783a4e05.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync
2026-10-11 14:01:53 +00:00
weichen b75d1c5ceb Record combined make test evidence on the task card
ci / test-pg (pull_request) Successful in 1m51s
ci / test (pull_request) Successful in 3m38s
Why: completion claims require tool-written evidence for precheck,
task-sync and tests; the combined run also validates the realigned
backend core pin (Backend#154) and both auth fixes end to end.

Evidence: CMD="make test" make evidence, exit 0 (governance 133 tests,
pins ok, libs/core/backend green, frontend 93/93, ui 106/106).

Impact: none beyond the card.

Refs: task feature/admin-auth-gate-fix.
2026-10-11 13:56:38 +00:00
weichen 833df5030a Advance backend and frontend gitlinks to merged sub-repo mains
Why: the auth fixes landed in sub-repo main via Backend#153/#154 and
Frontend#54; the Dev tree must pin them for combined verification and
release. Also records the first make-test attempt, which failed on
test-pins due to the pre-existing backend core misalignment fixed by
Backend#154.

Evidence: gitlink pins backend 44d45e1 (auth fallback + core repin) and
frontend fcf40ff (gate fix); combined make test evidence follows in the
task card.

Impact: none beyond the recorded pins.

Refs: task feature/admin-auth-gate-fix.
2026-10-11 13:55:07 +00:00
weichen f889b5ed3b Record the sync checkpoint
Why: bind the task validation checkpoint to the latest integration baseline.

Evidence: SELF recursive component checks; sync_base=259270b4e339132219490b95b42d12386f9abe1e; candidate=0f7880cf5c85f32b088c883d5440c5005ab83e94.

Impact: task metadata only.

Refs: .task/feature-admin-auth-gate-fix.md
2026-10-11 13:47:59 +00:00
weichen 0f7880cf5c Merge authoritative main into the task branch
Why: include the current integration baseline before verification.

Evidence: fetched origin/main=259270b4e339132219490b95b42d12386f9abe1e.

Impact: integrate upstream changes without rewriting task history.

Refs: task-sync
2026-10-11 13:47:33 +00:00
weichen 17796113a1 Fix auth dead-ends locking admins out of user management
Why: an admin with a stale API key in localStorage was 401'd on every
request despite a valid session (Bearer precedence), and API-key holders
entering the forced-change gate could never complete it (passwords are
session-owned) while every 401 showed "wrong username or password",
masking the real cause.

Evidence: backend go test ./... and frontend vitest 93/93 green locally
(SELF); sub-repo PRs Backend#153 / Frontend#54 carry GATE CI; combined
make test evidence recorded in the task card.

Impact: pins backend 6681c3b and frontend dc18d6c via gitlinks; fills
the task card with diagnosis, requirements R1-R4 and plan.

Refs: task feature/admin-auth-gate-fix.
2026-10-11 13:47:28 +00:00
weichen 3461e47e88 Record the task card for feature-admin-auth-gate-fix
Why: establish the authorized task workspace and its initial baseline.

Evidence: preserved precheck receipt in .task/feature-admin-auth-gate-fix.md; R0=2e43e71209384b356ebfe664e9f27492fd514977.

Impact: task metadata only; the feature workspace starts at 2e43e71209.

Refs: .task/feature-admin-auth-gate-fix.md
2026-10-11 13:40:32 +00:00