Title levels on the ladder: principal, senior manager, distinguished, lead split (WP A)

from_title matches a title twice, for the highest people level and the
highest individual grade. A people level wins on its own rung; a grade
above that rung lifts it one rung (Principal Engineering Manager is a
senior manager). Senior Staff is principal, Senior Principal, Distinguished
and Technical Fellow are distinguished; Associate Director, AVP and Senior
Manager are senior managers. lead is now a team lead only (Team Lead, Shift
Lead, Supervisor, Teamleiter); Tech Lead, Lead X and X Lead(er) are staff.
A slash names two levels, so Senior/Staff is staff.

- Jobylon "lead" maps to staff; Recruitee maps student_college, manager,
  senior_manager and executive.
- extract's prompt describes the ladder and its two tracks; enum from LEVELS.
- prep VERSION 2, so the next prep maps every open role again.
- Migration 25 clears seniority_model where it is staff, lead, manager or
  director, so extract reads those roles again, and sets roles.seniority to
  the first filled of model, stated and title.
- The coverage test of tests/test_seniority.py passes; its xfail is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Opus 5.5 committed 2026-09-30 13:11:26 +02:00
1 parent ae978594b4
commit 322db49773
16 files changed
+328 -137

No files matched your search

+3 -2
View File
@@ -2,12 +2,13 @@
#: The embed's `experience`. Only the coarse levels are mapped; "Experienced"
#: sits between "Mid level" and the managerial levels and says too little to
#: place, so it stays unmapped.
#: place, so it stays unmapped. "Lead" is a senior individual ("Lead
#: Engineer"), `staff`, beside the managerial "Manager".
SENIORITY: dict[str, str] = {
"student": "intern", "internship": "intern", "trainee": "intern",
"entry level": "junior", "entry-level": "junior", "junior": "junior",
"graduate": "junior", "mid level": "mid", "mid-level": "mid", "mid": "mid",
"senior": "senior", "lead": "lead", "manager": "manager", "director": "director",
"senior": "senior", "lead": "staff", "manager": "manager", "director": "director",
"executive": "exec", "not applicable": ""}
#: The embed's `employment_type`.
+4 -3
View File
@@ -1,9 +1,10 @@
"""Recruitee's words, for prep."""
#: `experience_code`. `experienced` names no level and is known, so it maps
#: to none.
SENIORITY = {"student_school": "intern", "entry_level": "junior", "mid_level": "mid",
"experienced": ""}
#: to none. A college student is an intern as a school one is.
SENIORITY = {"student_school": "intern", "student_college": "intern",
"entry_level": "junior", "mid_level": "mid", "experienced": "",
"manager": "manager", "senior_manager": "senior_manager", "executive": "exec"}
#: The words of `employment_type_code` (`fulltime_permanent`), which is
#: lowercased and split at "_" and "-"; the first entry found among its words
+1 -1
View File
@@ -29,7 +29,7 @@ from app.storage import Store
#: Raised when the rules in this package change the way a stored word maps,
#: so every open role is mapped again as it is after a table changes.
VERSION = 1
VERSION = 2
#: The state key the last run's `fingerprint` is kept under.
STATE = "prep:tables"