↗Prince Jewu.
Working offline prototype

MAPSF-GH.
Evidence, assumptions, and a trace.

An early policy simulation project exploring Ghana youth-employment scenarios through a five-layer architecture and seven deterministic agent roles.

Python 3.10+Zero external runtime dependenciesBM25Monte Carlo sensitivityStructured reports

What this project is today: a runnable research-inspired prototype using invented demonstration inputs. It is not a trained ML model, an autonomous LLM system, a causal estimate, or a validated forecast for Ghana.

Can a policy scenario
explain its own outputs?

The starting problem is practical: a youth-skills policy involves assumptions about uptake, completion, placement, job retention, access, and cost. A single headline output can hide how strongly the result depends on those choices.

MAPSF-GH makes the assumptions explicit, runs a paired baseline and policy scenario, and records the execution. Retrieval supplies context with source IDs; it cannot silently replace numerical inputs.

For my ML learning journey, the valuable engineering lessons are evidence handling, reproducible experiments, separation of retrieval from calculation, and evaluation before claims.

Five layers.
Clear responsibilities.

LayerCurrent implementationBoundary
1. IngestionScenario JSON, input validation, and provenance fields.No automatic PDF or DOCX ingestion.
2. RetrievalOverlapping local text chunks ranked with BM25; quoted context and source IDs.Lexical retrieval only. No embeddings, reranker, or generated answer.
3. OrchestrationSeven sequential roles passing structured state and writing a trace.Deterministic Python roles, not seven LLM instances.
4. SimulationAggregate stock-flow calculations, baseline comparison, seeded sensitivity analysis.No causal identification or calibrated population model.
5. ReportingHTML and Markdown reports, annual CSV, JSON results, and input hash.Software outputs do not establish empirical validity.

Seven roles.
One inspectable handoff.

  1. Policy Analyst

    Classifies the policy intent and retrieves relevant local context.

  2. Economic Modelling

    Calculates baseline and policy employment paths and an earnings proxy.

  3. Demographic Simulation

    Allocates gains across illustrative cohorts and describes access differences.

  4. Fiscal Impact

    Calculates gross expenditure, tax proxies, net costs, and cost per job-year.

  5. Risk & Sensitivity

    Runs seeded Monte Carlo perturbations and one-at-a-time assumption changes.

  6. Stakeholder Response

    Records rule-based consultation hypotheses, not observed public sentiment.

  7. Synthesis & Report

    Combines outputs, competing considerations, limits, and unanswered evaluation questions.

Test the arithmetic.
Then question the model.

The existing project verification record documents ten passing tests. The checks cover software behaviour; they do not validate a policy recommendation.

  • Hand-calculated first-year arithmetic and stock bounds.
  • Zero-intervention and displacement behaviour.
  • Cohort conservation and retention calculations.
  • Input validation, provenance gates, and retrieval abstention.
  • Sensitivity direction and completion of all seven roles.
  • Byte-identical JSON across repeated runs with identical inputs.

Factual accuracy, historical fidelity, policy relevance, and fairness scores remain unmeasured. Future validation needs reviewed data, historical holdouts, and expert review.

Results with the
assumptions still attached.

These first-year figures come from the bundled synthetic scenario. They illustrate the calculations and are not observed Ghana employment statistics.

SYNTHETIC ENROLMENT800

1,000 places × 0.8 uptake

SYNTHETIC ADDITIONAL EMPLOYMENT306

800 × 0.75 completion × 0.6 placement × (1 − 0.15 displacement)

SYNTHETIC GROSS COSTGHS 3.4m

800 × GHS 4,000 + GHS 200,000 overhead

Open the full synthetic sample report ↗

The Monte Carlo ranges reflect selected input perturbations, not statistical confidence intervals. Differences from the baseline are modelled scenario differences, not identified causal effects.

From a runnable scaffold
to better evidence.

Explore the ML learning lab ↗
  • Acquire and review period-specific public data before calibration.
  • Build a retrieval evaluation set and compare lexical and dense retrieval.
  • Introduce historical holdouts and baseline comparisons.
  • Keep any future LLM-generated prose separate from numerical calculations.
  • Document identification assumptions before making causal claims.
  • Add expert review and examine demographic coverage and uncertainty dependence.

These are future development directions, not completed project features. The public Python learning exercise offers an inspectable code sample: download the exercise. It is separate from MAPSF-GH. The MAPSF-GH source is not public yet; the synthetic report shows example outputs and assumptions, not independently reproducible evidence. No public code-release claim is made.