feat(crewing): Phase 5b — appraisal (flagged) #74
No reviewers
Labels
No labels
bug
claude-failed
claude-pr
claude-queue
claude-working
epic
feature
interactive
portal
triaged
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: shad0w/pelagia-portal#74
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/crewing-appraisal"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Crewing — Phase 5b (Appraisal)
Final slice of Phase 5. The appraisal lifecycle
raise → verify → approveacross three role-gated surfaces, per §5.4/§8.14. Stacks on #73 (verification); basefeat/crewing-verification. BehindNEXT_PUBLIC_CREWING_ENABLED. Completes Phase 5.What's in
Appraisal(onCrewAssignment) +AppraisalStatus(DRAFT → SUBMITTED → MPO_VERIFIED → MANAGER_APPROVED;→ REJECTED);ratingsJSON (competence/conduct/safety);CrewActionType += APPRAISAL_SUBMITTED/VERIFIED/APPROVED/REJECTED.lib/appraisal-state-machine.ts:verify(SUBMITTED→MPO_VERIFIED, MPO/Manager),approve(MPO_VERIFIED→MANAGER_APPROVED, Manager); orthogonal reject.raiseAppraisal(raise_appraisal— PM/site staff),verifyAppraisal(verify_appraisal— MPO),approveAppraisal(approve_appraisal— Manager); reject paths require remarks; notificationsAPPRAISAL_FOR_VERIFICATION/APPRAISAL_FOR_APPROVAL.Tests & docs
appraisal-state-machine.test.ts(4). Integration:appraisal.test.ts(4) — raise→verify→approve, MPO reject, permission gating (MPO can't raise, site staff can't verify, MPO can't approve).type-checkclean; full unit (245) + integration (205) green (verified withRESEND_API_KEYunset, mimicking CI).CLAUDE.mdupdated; wiki §12 marks Phase 5 complete.This completes Phase 5 (I + H). Remaining roadmap: Phase 6 — payroll (Pay-status tab + Approvals "Wage"), dashboards, notifications (J, M).
🤖 Generated with Claude Code
Closes Epic H — Appraisal (#82).
a2366bd9d9toc14a22588e