Skip to content

Commit d2823af

Browse files
B2JK-Industryclaude
andcommitted
docs(README): reconcile counts to live state + document /admin/review
Pre-PKO DD pass to align README's "Current state" block with actual shipped surface. Numbers updated to live counts (post-cleanup pass). - 616 / 616 vitest across 72 files (was 635/635 across 80) - 85 API routes (was 81 — +reviewer queue + admin/review) - 48 page routes (was 76, original was static-pages-incl-dynamic; new count is page.tsx files which is what reviewers grep for) - Date stamp: 2026-04-22 → 2026-05-15 Added "AI mission reviewer queue" to the shipped core loop section, documenting the /admin/review surface + the /api/admin/review[/:id] REST endpoints + the role-gated UI vs ADMIN_SECRET bearer paths. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 5c40952 commit d2823af

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ active.
1212
> preserved at the `xp-arena-final-v1.0` tag. Pre-merge feature branches
1313
> are preserved under `archive/*` tags — see "Repo history" below.
1414
15-
## Current state (2026-04-22)
15+
## Current state (2026-05-15)
1616

17-
Production on https://watt-city.vercel.app. 635 / 635 vitest across 80
18-
files, 14 Playwright specs (~600 E2E assertions), 81 API routes,
19-
76 static pages, 4 locales (423 keys each, zero drift).
17+
Production on https://watt-city.vercel.app. 616 / 616 vitest across
18+
72 files, 14 Playwright specs (~600 E2E assertions), 85 API routes,
19+
48 page routes, 4 locales (423 keys each, zero drift).
2020

2121
**Shipped core loop**
2222
- **Hourly AI rotation**: fresh Sonnet/Haiku game every hour, single-flight
@@ -37,6 +37,12 @@ files, 14 Playwright specs (~600 E2E assertions), 81 API routes,
3737
50 000 W$), credit score 0–100 (+1 on-time / −5 miss / −20 default
3838
after 3 consecutive misses), early repayment bonus.
3939
- **9 evergreen minigames** + **daily AI challenge** with a top-3 Hall-of-Fame.
40+
- **AI mission reviewer queue** at `/admin/review` — operator UI to
41+
approve / request-changes / reject every live AI mission, with a
42+
permanent audit log. Aligned with the governance flow shown in the
43+
PKO Internal Review deck §09. Role-gated (`role === "admin"`) for
44+
UI; REST endpoint `/api/admin/review[/:id]` accepts ADMIN_SECRET
45+
Bearer for scripted ops.
4046
- **Parent observer flow** (V4.6): parent-link bridge (invite code +
4147
consent), `/rodzic` dashboard, GDPR-K gating for under-16 accounts.
4248
- **Teacher/classroom flow**: `/nauczyciel` class dashboard, invite
@@ -239,8 +245,8 @@ rotation, language switch, mobile.
239245

240246
## Tests
241247

242-
`pnpm test` runs the vitest suite (635/635 across 80 files as of
243-
2026-04-22 — research bucket, rotation idempotency, resource yield math,
248+
`pnpm test` runs the vitest suite (616/616 across 72 files as of
249+
2026-05-15 — research bucket, rotation idempotency, resource yield math,
244250
ledger dedupe, building place/upgrade/demolish, tick catch-up with 30-day
245251
cap, amortization formula, default after 3 misses, cron auth matrix,
246252
rate-limit keying, mailer fallback, awardXP lock, parent-link redeem).

0 commit comments

Comments
 (0)