dow-prod-tracker/scripts
DJP e80ce5b32f Add workflow logic smoke test (19/19 passing)
Self-contained tsx script that exercises the pure state-machine +
dependency-engine logic against the user's exact 5-stage pipeline
shape (Inputfile → Internal Approval ⇉ Approved/Declined → Delivery)
— no DB needed.

Catches the regression from earlier today where `Cannot transition
from IN_PROGRESS to APPROVED` blocked the NONE-stage Mark Complete
shortcut, plus verifies:
  - Order-based dependency fallback (when no V2 edges are drawn)
  - Multi-branch unblock (approving Internal Approval opens BOTH
    Approved and Declined simultaneously)
  - Downstream-of-downstream stays correctly BLOCKED until its
    specific parent completes (Delivery waits for Approved, not for
    Internal Approval)

Run: npx tsx scripts/test-workflow-logic.ts
Non-zero exit on any failure. 19/19 assertions pass against current
HEAD.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-15 20:28:14 -04:00
..
backfill-embeddings.ts Phase 0: fork rebrand from hp-prod-tracker 2026-04-20 18:21:39 -04:00
backfill-org-ids.ts feat: add pipeline stage resolver and organization access control 2026-03-14 22:43:43 -05:00
backup-db.sh L'Oréal rebuild: restore review workflow, full rename, /api/v1, Box integration 2026-05-12 17:51:53 -04:00
clean-slate.ts Phase 1: Dow-customized Prisma schema + strip HP-only features 2026-04-20 18:35:14 -04:00
create-admin.ts Phase 5: unified versioning + single-asset-per-revision + holding pen 2026-05-12 19:37:06 -04:00
migrate-to-dynamic-pipelines.ts feat: add pipeline stage resolver and organization access control 2026-03-14 22:43:43 -05:00
recompute-deliverable-statuses.ts Keep Deliverable.status in sync with stage state 2026-04-21 19:55:39 -04:00
seed-dates-catalog.ts feat(calendar): implement calendar view with event filtering and detail display 2026-03-12 21:20:11 -05:00
seed-dates.ts feat(calendar): implement calendar view with event filtering and detail display 2026-03-12 21:20:11 -05:00
test-workflow-logic.ts Add workflow logic smoke test (19/19 passing) 2026-05-15 20:28:14 -04:00