feat(crewing): Phase 4c — sign-off & experience (flagged) #72
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#72
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/crewing-signoff"
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 4c (Sign-off & experience)
Final slice of Phase 4 (the Epic K piece deferred from Phase 2). Stacks on #71 (crewing-admin); base
feat/crewing-admin. BehindNEXT_PUBLIC_CREWING_ENABLED. Completes Phase 4.What's in
CrewActionType += CREW_SIGNED_OFF(migrationcrewing_signoff).signOffCrew(assignmentId, date, remarks)(crewing/crew/actions.ts,sign_off_crew): one transaction — assignment →SIGNED_OFF(+signOffDate); append an internalExperienceRecord(rank, on/off dates, computeddurationMonths); flip the sameCrewMemberEMPLOYEE → EX_HAND(type/sourceEX_HAND) so they return to the Candidates pool as a returning hand;CrewAction CREW_SIGNED_OFF; then auto-raise aSIGN_OFFbackfill requisition viaautoRaiseRequisition./crewing/crew/[id],sign_off_crewholders — site staff / MPO / Manager); on success redirects to the Crew directory.Tests & docs
signoff.test.ts(3) —SIGNED_OFF+ experience +EX_HAND+SIGN_OFFbackfill, already-signed-off guard, permission gating.type-checkclean; full unit (241) + integration (195) green.CLAUDE.mdupdated; wiki §12 marks Phase 4 complete.Single-entity model
Sign-off is the reverse of onboarding/placement on the same
CrewMemberrow — onlystatus(plustype/source) flipsEMPLOYEE → EX_HAND, and all history (assignments, experience, docs) stays on the row, ready for cheap re-recruitment with an interview waiver.This completes Phase 4 (E/F/G + K). Remaining roadmap: Phase 5 (verification + appraisal), Phase 6 (payroll, dashboards, notifications).
🤖 Generated with Claude Code
Closes Epic K — Sign-off & experience (#85).