# NextPath Arizona architecture ## Product promise NextPath helps a person answer three separate questions: - Which kinds of work appear compatible with my interests and constraints? - Which Arizona education or training paths can move me toward that work? - What does current public evidence say about demand for that occupation? It is an exploration and planning tool, not a psychological diagnosis, guarantee of employment, or replacement for a school or career counselor. ## MVP users The application supports teenagers and adults. An age band changes language, education filters, and privacy handling, but does not change the meaning of an interest score. The initial product supports users aged 13 and older. It does not accept an exact birth date, street address, school name, or family income. Registration stores only: - email address and a display name; - age band and Arizona ZIP code; - optional study radius, time, and budget preferences; - assessment answers and saved career comparisons. ZIP code is used for approximate distance calculations. Precise location is neither requested nor stored. Accounts can be exported and deleted. ## Evidence model NextPath keeps personal fit and market opportunity as independent dimensions. A career card may show a market **employability outlook percentage**, but must not describe it as the person's probability of being hired. ### Personal fit The first assessment uses the RIASEC dimensions represented by the O*NET Interest Profiler: - Realistic - Investigative - Artistic - Social - Enterprising - Conventional The question bank, scoring version, and answer scale are versioned. Later adaptive questions may clarify preferences, but must not silently modify the validated scoring formula. ### Arizona employability outlook NextPath publishes two zero-to-100 market indexes. **Employability today** asks what the Arizona market would look like for someone completing the mapped program now. **Five-year outlook** estimates the market at that horizon. They do not account for an individual's grades, experience, interview performance, network, work authorization, or employer decisions and are not hiring probabilities. | Index | Component | Weight | Evidence | | --- | --- | ---: | --- | | Today | Annual demand coverage | 75 | Projected annual Arizona openings divided by the three-year average of exact six-digit CIP completions | | Today | Live posting coverage | 25 | Sampled current occupation postings divided by latest exact six-digit CIP completions | | Five year | Future demand coverage | 75 | Projected annual openings divided by completion supply projected five years from its three-year trend | | Five year | Employment growth signal | 25 | Official projected occupation growth, with -5% mapped to 0 and +20% mapped to 100 | Coverage values are capped at 100 before weighting. Graduate supply uses three IPEDS award years. Its annual trend is capped at plus or minus 10 percent before the five-year projection, preventing one unusual completion year from dominating the result. The UI shows the uncapped demand-to-average-graduates ratio, all historical completion counts, modeled future supply, official job growth, projected openings, and sampled active postings. Each component includes its observation date, geography, source URL, mapping coverage, and confidence value. Missing evidence makes the percentage unavailable instead of silently becoming zero. The UI must label it "rough market estimate—not your chance of being hired." ### Balanced places to study For each recommended occupation, NextPath finds Arizona institutions reporting completions in the exact six-digit CIP program. It ranks up to three options for the user's ZIP with a deliberately balanced score: | Signal | Weight | Evidence | | --- | ---: | --- | | Proximity | 25 | Great-circle distance from the user's Census ZIP-area coordinate to the IPEDS institution coordinate | | Affordability | 25 | Reported annual in-state tuition tier | | Admission access | 20 | Open admissions or the reported admission rate | | Program strength | 30 | 60% exact-program completion volume and 40% institution-wide completion rate | The strength component is a public-data signal, not a third-party rating or a claim about teaching quality. The balanced score prevents a nearby but very expensive/selective institution—or a cheap but distant option with little program evidence—from winning on one dimension alone. The UI displays every component, source year, raw count, distance, and limitation. The user's ZIP is matched locally and is never sent to a geocoding API. ## Data contracts Occupation records use O*NET-SOC identifiers. Education programs use CIP codes. A versioned SOC-to-CIP mapping connects the two. Source adapters normalize data from: - O*NET Web Services and the Interest Profiler; - Arizona Office of Economic Opportunity projections; - BLS OEWS wage and employment data; - IPEDS annual completion files with exact six-digit CIP programs; - Arizona CTE and registered apprenticeship directories; - Ayla's public feed of government and official-source job postings. - Census ZIP Code Tabulation Area representative coordinates. Remote source data is cached with retrieval timestamps and source attribution. Job listings are short-lived examples, are linked to their publisher, and do not become training data or evidence of guaranteed employment. ### Automated catalog expansion The 12 hand-reviewed careers remain regression seeds and the offline fallback, not the production catalog ceiling. The daily Jeannie refresh automatically builds a 75-career catalog by joining the O*NET 31.0 occupation and RIASEC files, the official NCES CIP 2020-to-SOC 2018 crosswalk, Arizona IPEDS 2024 program completions, and Arizona Projections Central records. A generated career is eligible only when it has a complete interest profile, at least one exact six-digit CIP program with Arizona completions, and positive projected annual openings. This keeps every visible recommendation connected to the education and labor evidence used later in the workflow. The NCES crosswalk is a conceptual relationship, not proof that every graduate enters the occupation. NextPath therefore exposes mapping coverage and raw counts instead of presenting the join as an observed placement rate. Operators can set `LAB_NEXTPATH_CATALOG_LIMIT` from 12 through 200; the managed default is 75. Jeannie refreshes the cache daily without credentials or prompts. It combines public IPEDS annual files, Department of Labor-sponsored Projections Central state projections, and Ayla's public feed of government and official hiring sources. Downloaded IPEDS files are cached on the Debian host. The posting count is therefore a visible sample, not the whole Arizona job market. A refresh replaces the cache atomically only after every catalog occupation has complete inputs; failures preserve the last successful snapshot. With no complete snapshot, the results page says the outlook is unavailable rather than presenting a synthetic percentage. Catalog, mapping, and opportunity outputs are generated under a private systemd runtime directory. Jeannie promotes all three persistent files only after the entire refresh succeeds. A download, parsing, rate-limit, or evidence failure therefore leaves the last complete catalog/evidence set in service. ## Recommendation boundary Deterministic code performs assessment scoring, eligibility filtering, geographic matching, and opportunity-score calculation. An optional language model may explain already-ranked results, compare options, or create questions for a counselor. It cannot alter scores, invent programs or jobs, or receive a direct identifier such as email address. Every recommendation explains: - why the occupation matched; - which evidence increased or decreased its opportunity score; - education, licensing, time, and cost constraints; - disadvantages or uncertainties; - one low-risk way to explore the work before committing. ## Service boundaries The MVP is a modular monolith with explicit internal boundaries: ```text web UI / HTTP API | +-- accounts and consent +-- versioned assessment engine +-- occupation catalog and matching +-- Arizona opportunity scoring +-- education and apprenticeship search +-- job-source adapters +-- recommendation explanation +-- provenance and refresh jobs ``` The application starts with a local private data store for family testing. The persistence interface remains independent so a PostgreSQL implementation can replace it before a broader pilot. ## Delivery slices 1. Product, privacy, and evidence contract. 2. Versioned RIASEC assessment kernel with deterministic tests. 3. Registration, sessions, assessment UI, save, export, and deletion. 4. Versioned occupation catalog and personal-fit ranking. 5. Arizona public-data ingestion and transparent employability outlook. 6. Nearby education, CTE, and apprenticeship matching. 7. Fresh example job listings with deduplication and source links. 8. Career comparison and what-if planning. 9. Jeannie deployment, backup, health, and status integration. 10. Counselor/parent share report and accessibility review. Each slice must be usable through a stable interface and independently tested.