Review: westside-admin#3 (board 1091) — Tenant-scoped query helper — 2026-05-04

review-1091-2026-05-04 Doc

review approved

Scope Review: westside-admin#3 (board item 1091) — Tenant-scoped Drizzle query helper

Verdict

APPROVED. Forgejo comment issue #3 comment 16208 is the canonical record.

Findings (summary)

  • Template completeness: all template-issue-feature sections present.
  • File targets verified: tenant.ts, scopedDb.ts not yet in ~/westside-admin/src/lib/server/. Repo scaffolding (#6) closed.
  • Traceability: story:admin-row-crud + arch:scoped-db labels consistent across siblings. Backing notes verified after pal-e-docs recovery.
  • Decomposition: not needed. 4 files, 6 contained ACs, single repo. Within 5-minute rule.
  • Dependencies: hard-deps on #1 (in todo) and #6 (closed). Blocks #4 and #29.

Non-blocking recommendations

  • [BODY] Anchor AC #3 (TypeScript distinguishes tenant vs. system tables) to a concrete expectTypeOf test against alembicVersion — prevents the yak-shaving risk PM flagged.
  • [BODY] Add eslint.config.js to File Targets > Modify alongside package.json — canonical enforcement for the AC #4 lint check is no-restricted-imports, not just an npm grep script.

Sequencing note

Hard-dep #1 must merge before #3 starts. Recommend serializing #1 → #3 rather than parallel dispatch.

Outage Note

Filed retroactively after 7-min pal-e-docs outage; Forgejo comment 16208 is the real-time record.
  • Forgejo issue: forgejo_admin/westside-admin#3
  • Board item: 1091 on board-westside-admin