Files
microfish/docs/test-evidence/2026-08-23-baseline.md
Kunthawat Greethong 8b84378fe1 feat: SaaS foundation for CrowdSight
Elevate MiroFish/CrowdSight from single-container dev to a SaaS foundation:

- Local memory backend (Zep-compatible): memory services/models, local graph
  builder + updater, AgentActivity seam, import-boundary isolation; Zep stays
  default, local is opt-in behind MEMORY_BACKEND. Semantic parity not yet proven.
- Durable product persistence: projects/simulations/reports schema (migration
  0007) + tenant/owner-scoped ProductRepository + dual-write + scoped_project
  read-first + ArtifactStore abstraction; durable JobQueue + worker.py.
- SaaS hardening: durable RateLimiter (wired to login), UsageService (LLM
  accounting), redacted AuditService, idempotency, CORS allowlist, safe API
  errors, single-use PasswordResetService + endpoints (covers invite-pending).
- Exactly 3 roles (super_admin/admin/user) with tenant authz policy.
- Admin UI: GET/POST/PATCH /api/admin/users + GET/PUT /api/admin/settings
  (super-admin only, encrypted/masked); AdminView.vue + SettingsView.vue with
  admin/super-admin route guards, th/en i18n.
- Production deploy topology: multi-stage Dockerfile (frontend build + gunicorn
  wsgi + nginx SPA-proxy + supervisord worker), backend/wsgi.py, gunicorn dep.

Backend 197 passed; frontend 10 tests + build green. ruff unavailable (gap).
No commit of credentials; secrets handled via env/.env.example.
Deferred: Zep semantic A/B parity, object storage cutover, mobile QA, EasyPanel
container build of deploy topology.
2026-08-31 13:05:21 +07:00

28 lines
1.2 KiB
Markdown

# Baseline Test Evidence — 2026-08-23
**Repo:** `/Users/kunthawat/Gitea/MiroFish`
**HEAD:** `89d04e7`
**Purpose:** architecture-study baseline; no production implementation changes
## Commands
| Command | Result | Notes |
|---|---|---|
| `git status --short --branch` | PASS | clean at baseline; plan/log artifacts were added after study |
| `git diff --check` | PASS | no whitespace errors |
| `npm run build` | PASS | Vite build succeeded; chunk-size warning and dynamic/static import warning remain |
| `python3 -m compileall -q backend/app backend/run.py backend/scripts` | PASS | syntax-only; host Python is 3.14, project requires `<3.13` |
## Not yet run
- Backend runtime tests (no project test suite/runner configured for the application)
- Authentication/tenant isolation tests (not implemented)
- Zep replacement parity tests (not implemented)
- Thai/English UI visual/E2E tests
- Production Docker/worker/restart tests
- CJK-free build gate (currently expected to fail)
## Verification rule
A future milestone is not complete from code presence alone. Attach command output, relevant fixture counts, and role/locale/worker evidence here or in a dated evidence file before marking it complete.