Skip to content

fix(company): bypass staffing for fully staffed teams - #23

Open
myfastcat wants to merge 1 commit into
HKUDS:mainfrom
myfastcat:hiring
Open

fix(company): bypass staffing for fully staffed teams#23
myfastcat wants to merge 1 commit into
HKUDS:mainfrom
myfastcat:hiring

Conversation

@myfastcat

Copy link
Copy Markdown

Skip staffing workflow for fully staffed teams

Issue

Company runs opened staffing selection, LLM triage, recruitment, and confirmation even when every role already had an active, non-placeholder employee assigned. This added unnecessary latency and prompted the user to approve staffing that was not changing.

Fix

  • Detect when every role has existing, active, non-placeholder same-role staff.
  • Reuse those employees without opening the staffing preflight or invoking recruiter triage.
  • Do not require recruitment confirmation when an existing_staff proposal only reuses incumbents.
  • Keep manual staffing available through force_manual_preflight.
  • Continue through the normal staffing flow when a role is unstaffed or only has placeholder employees.

Tests

  • Fully staffed teams bypass recruitment and confirmation.
  • Manual staffing preflight remains available.
  • Placeholder-only roles retain staffing preflight.
  • existing_staff without an incumbent still requires confirmation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant