Repository navigation
Open
Description
Parent discovery
Tracked under #53 — Discovery: Half-Shell codebase audit and technical-debt dependency map. Smaller follow-up requested directly by the repo owner alongside #60 (payment provider hardening).
Context
The repo already has a reasonably thorough load-testing setup: 7 scripts (scripts/load-*.mjs) plus docs/LOAD_TESTING.md, covering public intake, technician SMS-token actions, and authenticated office traffic — each with single-company and multi-company-fleet variants. This is not a "build from scratch" ask — it's a staleness check after #49–#59 changed the routes and auth model these scripts drive traffic against.
Scope
- Read each
scripts/load-*.mjsagainst the routes it exercises as they exist today, checking for drift since the scripts were last touched — most notably:load-office-actions.mjs/load-multi-office-actions.mjsdrivePOST /api/jobs. Add behavior-level regression coverage for untested production mutation seams #58 added a company-scoped technician-ownership check to that route (a request with atechnician_idnot belonging to the acting company now gets404instead of succeeding) — confirm the load scripts' seeded fixtures still satisfy that, or that they never passtechnician_idat all.- Confirm
requireApiRole's role/session model (Centralize API role authorization and enforce a tested permission matrix #49) hasn't diverged from however these scripts authenticate as dispatcher/admin. - Confirm the SMS outbox/lease changes (Add stale SMS outbox lease recovery and worker resilience #51) don't change expected behavior under the tech-action load script's repeated-link scenario.
- Confirm env vars in
docs/LOAD_TESTING.md(LOAD_BASE_URL,LOAD_COMPANY_SLUG, etc.) match what the scripts actually read today — no silent renames. - Actually run each script once against a local dev server with seeded QA data (
npm run seed:live-qa/npm run seed:load:fleet) to confirm it still executes end-to-end without erroring out before load even starts — not a full break-it stress run, just "does it still work." - Fix anything found stale (a moved route, a renamed env var, a fixture that no longer satisfies a route's current validation) with a minimal, targeted change — this is a maintenance pass, not a rewrite.
Acceptance criteria
- Each load script has been read against its target route(s) as they exist today and confirmed (or fixed) to still match current behavior, particularly Add behavior-level regression coverage for untested production mutation seams #58's new technician-ownership check.
- Each script has been run once end-to-end locally (not necessarily at full load) and confirmed to execute without erroring before the load phase.
-
docs/LOAD_TESTING.mdis updated if anything (env vars, flow descriptions) has drifted. - Any fix is minimal and targeted — no redesign of the load-testing approach itself.
Out of scope
- Designing new stress-test scenarios beyond what already exists.
- Running full break-it load campaigns as part of this issue (that's a manual, on-demand activity per
docs/LOAD_TESTING.md's own "Break-It Strategy" section — this issue is about the scripts being correct and runnable, not about actually finding the app's breaking point).
Metadata
Metadata
Assignees
Labels
No labels
Activity
Merge pull request #70 from diese-tech/claude/load-test-refresh-61
diese-tech commentedon Sep 20, 2026
Reopening — this got auto-closed by PR #70's merge, which wasn't intended. My PR body literally contained the phrase "Does not close #61," and GitHub's closing-keyword parser matches the substring "close #61" regardless of the negation in front of it, so it closed anyway. My mistake for the phrasing.
Per your choice (option 3), this stays open: the static audit + one doc fix from PR #70 stand as partial progress, but the acceptance criterion of actually running each script end-to-end against a local dev server with seeded QA data is still unmet — that needs
SUPABASE_SERVICE_ROLE_KEY, which the connected Supabase MCP tool correctly never exposes. Revisit whenever you're ready to either run it yourself perdocs/LOAD_TESTING.mdor provide that key through a mechanism you trust.Generated by Claude Code
Generated by Claude Code