Skip to content

Drop 16 · Agent Skills as files, RLHF from REINFORCE to PPO, text-to-SQL you can trust, and disparity testing without protected attributes

Latest

Choose a tag to compare

@TarrySingh TarrySingh released this 04 Dec 18:29

The sixteenth drop of Synapsa Commons: free, hands-on AI courses that run anywhere. This one is a catch-up drop: it carries the four lessons planned for 13 and 16 November.

New this week: Agent Skills as files, RLHF from REINFORCE to PPO, text-to-SQL you can trust, and disparity testing without protected attributes

Four new lessons in four areas. Each one is a notebook you do: exercises that check themselves, hidden hints, and a progress board.

Lesson What you build Open
Agent Skills as files (Agents and protocols) A parser and a linter for SKILL.md files written against the Agent Skills specification, a meter for the tokens an agent holds in context when it loads skills progressively rather than all at once, and a scripted skill selector whose accuracy you measure as a library grows from 10 to 50 skills and look-alike skills are added Colab
RLHF from REINFORCE to PPO on a toy steering task (Post-training) The pieces of an RLHF loop in numpy: a policy gradient with a leave-one-out baseline, a KL-shaped reward and PPO's clipped objective with its gradient, on a policy small enough that every expectation can be computed exactly; then a measurement across ten seeds of what each piece buys in gradient variance, reward, distance from the reference policy and reward hacking Colab
Text-to-SQL you can trust (AI engineering) The safety and scoring layer around a text-to-SQL system: a read-only guard that SQLite itself enforces, an executor that sorts every outcome into ok, blocked or error, a comparison of query results instead of query text, and a voting rule that abstains when the samples disagree; then a measurement of what each one catches Colab
Disparity testing without protected attributes (Credit underwriting, module 5) A surname lookup with a fallback row, the BISG update that combines surname probabilities with the make-up of a neighbourhood, probability-weighted approval and pricing rates for a group nobody is labelled in, a bootstrap interval, the attenuation factor that says how much of a real gap the proxy keeps, and a verdict against a materiality line; then a measurement, against an answer key, of how far the proxy pulls a real gap towards zero and when a real gap cannot be told from none Colab

The three track lessons are in lessons/ and the disparity lesson is in the Credit underwriting programme. None needs an API key, a GPU, PyTorch or a download: the skills and text-to-SQL lessons use only the Python standard library (sqlite3 included), the other two add numpy, and all four generate their own data from a fixed seed. The text-to-SQL lesson works on scripted translations, not a language model. The disparity lesson works on simulated populations with an answer key, says that nothing it measures describes a real lender or population, and draws no legal conclusion. The skills and text-to-SQL lessons take about an hour each, the disparity lesson about 75 minutes and the RLHF lesson about 90 minutes.

Also in this drop

  • The Credit underwriting programme now has 5 of its 8 modules built. Its module page describes module 5 as built, matched to the lesson.
  • The front page and the lessons index are regenerated (112 lessons, 8 of them compiled C or C++ exercises).
  • Sources re-checked on 4 December 2026. The Agent Skills specification has not changed since the 4 August 2026 revision the skills lesson is written against, and the Regulation B passages the disparity lesson quotes read as quoted in the current text. All 19 links in the four lessons' "Before you start" boxes are live.
  • Limits still apply. Every graded check has a time limit and a runaway answer fails its own row, on Linux and macOS. On native Windows there is no time or memory limit, so use WSL, Colab or Codespaces there; and one long native call, such as a very large numpy operation, is stopped only when it returns.
  • Worked solutions and full grading come with enrolment on Synapsa, opening in the coming weeks.

Checked before release

  • Today all 112 lessons passed every quality gate on macOS, and every worked solution scores 100%. The four new lessons score 0% when left blank.
  • The four new lessons run to the end unanswered on Python 3.11 and 3.12, and print the same results on both when completed. They were also checked on Linux (an emulated x86 machine) today, with the same results as on macOS; their code has not changed since.
  • Each new lesson went through an independent review and then confirmation rounds until a fresh reviewer found no critical or major problem. A few minor fixes made after the last confirmation have not been re-checked by a fresh reviewer.