Assessments
convex/requests.test.ts
| Test | Result |
|---|---|
| assessment library and assigned assessments › only admins maintain the library, and an assessment needs a role with requirements | Passed |
| assessment library and assigned assessments › assigns self and manager assessments to people in the role, skipping duplicates and people outside it | Passed |
| assessment library and assigned assessments › a peer assessment goes to the chosen colleague, who alone can complete it | Passed |
| assessment library and assigned assessments › people outside the request can’t see it; managers can cancel open ones | Passed |
| assessment library and assigned assessments › rejects unapproved assessments, past due dates and methods the assessment doesn’t allow | Passed |
| assessment library and assigned assessments › saved guidance must match the role’s requirements and is copied into assigned assessments | Passed |
| assessment governance › drafts are edited, submitted, then approved by a different admin; only approved ones are listed | Passed |
| assessment governance › the separate-approver rule follows its setting | Passed |
| assessment governance › a revision is a new draft version that replaces the approved one when approved | Passed |
| assessment governance › only never-assigned drafts can be deleted, and members can’t govern | Passed |
| generating assessments from SFIA › previews roles with their SFIA levels and saves generated assessments as drafts | Passed |
| SFIA import › previews and applies a spreadsheet: adds, updates by code, keeps skills not in the file, flags broken levels | Passed |
| replacing a skill › moves every use of the old skill to the new one and deletes it | Passed |
| SFIA 9 starter data › seeds the 147 SFIA 9 codes without descriptions and no roles; every capability link fits SFIA 9 levels | Passed |
| AI guidance batching › splits a large role into batches of assessment.guidanceBatchSize and merges the guidance | Passed |
| AI guidance batching › never runs more AI calls at once than llm.maxParallelCalls | Passed |
| AI guidance batching › reports a reply cut off at llm.maxTokens, and logs its cost | Passed |
| capability traceability › traces a capability to its skills, the roles requiring them, role holders and their levels | Passed |
| a new organisation before setup › offers only Overview and the base theme until it is set up, then the configured menu and theme | Passed |
| setting up an organisation › captures the approval mode, stores the AI key, and reports what’s still to do | Passed |
| roles from HR job titles via ESCO › suggests ESCO occupations for unmapped HR titles and creates a role mapped to the title, in its HR team | Passed |
| org chart status › shows each person’s role readiness and where their latest assessment stands | Passed |
| capability maturity evidence › is ‘not assessed’ with no level until someone is rated in its skills, and reports the evidence | Passed |
| capability bands › come from each capability’s band; a domain keeps one band; bands must be in capability.tiers | Passed |
Assessment guidance
convex/lib/guidance.test.ts
| Test | Result |
|---|---|
| parseGuidance › accepts one complete entry per requirement and trims blanks | Passed |
| parseGuidance › rejects missing, extra, duplicate and empty entries | Passed |
Scores and maturity
convex/lib/scoring.test.ts
| Test | Result |
|---|---|
| effectiveLevel › uses latest per assessor and weights by method | Passed |
| effectiveLevel › returns null when never assessed | Passed |
| effectiveLevel › throws on unknown method instead of guessing | Passed |
| roleFit › is ineligible when a MUST is unmet | Passed |
| roleFit › ranks eligible candidates first | Passed |
| capability maturity › computes coverage and maps to CMMI level | Passed |
| capability maturity › counts agents as a fraction of a person, capped as a share of the bench | Passed |
| capability maturity › rejects malformed thresholds | Passed |
| completeness › is current over target, capped, and 0 when nothing is linked | Passed |
Roles from job titles
convex/lib/assignments.test.ts
| Test | Result |
|---|---|
| deriveAssignments (roles come from HR job titles) › matches titles case- and spacing-insensitively | Passed |
| deriveAssignments (roles come from HR job titles) › ignores unmapped titles and people removed from the HR system | Passed |
ESCO occupations
convex/lib/esco.test.ts
| Test | Result |
|---|---|
| ESCO occupations › render as a job description with essential and optional skills apart | Passed |
| ESCO occupations › reject occupations without essential skills or a description in the configured language | Passed |
| ESCO occupations › config is required in full | Passed |
| mergeCandidates › keeps the AI’s order but never lets its extras crowd out the title’s own results | Passed |
Skills read from job descriptions
convex/lib/extraction.test.ts
| Test | Result |
|---|---|
| parseExtraction › accepts valid RFC2119 rows | Passed |
| parseExtraction › reports every invalid row | Passed |
| parseExtraction › rejects a skill that is both required and prohibited | Passed |
| parseExtraction › reads technologies by name, one row each, and checks their 1-5 level | Passed |
| parseExtraction › treats missing technologies as none | Passed |
| parseExtraction › rejects non-JSON | Passed |
SFIA spreadsheet import
convex/lib/sfiaImport.test.ts
| Test | Result |
|---|---|
| parseSfiaSheets › finds the skills sheet below a title row and reads levels that have descriptions | Passed |
| parseSfiaSheets › decodes Excel’s _xHHHH_ escapes, so line breaks aren’t shown as _x000D_ | Passed |
| parseSfiaSheets › reports bad rows instead of skipping them | Passed |
Technologies
convex/technologies.test.ts
| Test | Result |
|---|---|
| technology skills › are catalogued 1–5 with SFIA tags, added by JD extraction, and kept while in use | Passed |
| technology skills › imports the Thoughtworks radar on demand, once, into its quadrants | Passed |
Mentors
convex/mentors.test.ts
| Test | Result |
|---|---|
| mentors › sets, clears and refuses loops | Passed |
| mentors › assigns synthetic mentors who are more senior, keeping existing ones | Passed |

