πŸ—‚οΈ Technical Due Diligence β€” Midshift

Key

RatingSeverityStatus
🟒 Green β€” 4 to 5πŸ”΄ Criticalβœ… Yes
🟑 Amber β€” 3🟠 High❌ No
πŸ”΄ Red β€” 1 to 2🟑 Medium◐ Partial
●●●○○ β€” score out of 5βšͺ Low

Assessment of the midshift-audit repository (single commit 3789df6, "Midshift source for audit", 2026-10-06), carried out 2026-10-07. Start with the executive summary.

πŸ”΄ ●●○○○ Overall: 2 / 5 β€” Red (as delivered); 3 / 5 Amber once the two Critical S-effort fixes are deployed and verified.

FileModuleRatingRAGTop risk
14-executive-summary.mdExecutive Summary & Overall Assessment●●○○○ 2 / 5πŸ”΄ RedSelf-promotion to admin via users RLS policy πŸ”΄ (Critical)
01-product-overview.mdProduct & Domain Overview●●●●○ 4 / 5🟒 GreenSingle-tenant deployment model limits a SaaS scale thesis 🟠 (High if that is the thesis)
02-tech-stack.mdTechnology Stack & Codebase Complexity●●●○○ 3 / 5🟑 AmberNext.js exact-pinned at 16.2.0 with critical advisories πŸ”΄ (Critical)
03-architecture.mdArchitecture & Design●●●○○ 3 / 5🟑 AmberBrowser-side writes bypass server-side discipline and approval-reset rules 🟠 (High)
04-domain-and-business-rules.mdDomain Model & Business Rules●●●○○ 3 / 5🟑 AmberApprovals can be left standing or self-granted within a job 🟠 (High)
05-code-quality.mdCode Quality & Standards●●●●○ 4 / 5🟒 GreenComplex core write paths with ~1% API test coverage 🟠 (High)
06-technical-debt.mdTechnical Debt & Maintainability●●●○○ 3 / 5🟑 AmberRiskiest code (auth, fat handlers) is the least tested 🟠 (High)
07-testing.mdTesting & QA●●●○○ 3 / 5🟑 AmberRoutes untested against the real implementation; harness re-implements auth 🟠 (High)
08-dependencies-licensing.mdDependencies & Licensing●●○○○ 2 / 5πŸ”΄ RedCritical Next.js RCE on a used code path; abandoned xlsx parsing uploads πŸ”΄ (Critical)
09-security.mdSecurity & DevSecOps●●○○○ 2 / 5πŸ”΄ RedAny signed-in user can set their own role to admin πŸ”΄ (Critical)
10-dev-practices.mdSource Control, CI/CD & Development Practices●●●○○ 3 / 5🟑 AmberNo evidenced code review; no security scanning in CI 🟠 (High)
11-delivery-and-key-person-risk.mdDelivery Metrics & Key-Person Risk●○○○○ 1 / 5πŸ”΄ RedBus factor of one across code, operations and IP πŸ”΄ (Critical)
12-documentation.mdDocumentation Review●●●○○ 3 / 5🟑 AmberFresh-deployment migration instructions are wrong 🟠 (High)
13-integrations.mdIntegrations●●●○○ 3 / 5🟑 AmberNo monitoring; missing CRON_SECRET silently disables purge and alerts 🟠 (High)

Evidence conventions: [Observed] verified with a cited file or command; [Inferred] reasoned from indirect evidence; [Unavailable] could not be assessed, with the access needed. The consolidated access-request list is in the executive summary.