Complete, Blax Castes holds every setting you would otherwise set by hand on each colonist, slave and prisoner: policies, medical care, schedule, work, loadout, allowed area, combat and medical behaviour, prisoner and slave treatment and the DLC switches. Every way a pawn can join or change status, children included, puts it into the right caste by itself, and a pawn that comes back gets its old caste. Castes travel between colonies as files, show at a glance, and the other Blax mods read and steer them through one API.
Planned 2026-12-01 and reviewed the same day against the decompiled 1.7 code. This file decides what the mod covers and in which order the work goes. Features are grouped by the player problem they solve, never by how long they take.
Status words: **Shipped** (in a release), **Designed** (specced in `docs/design.md`, section named in quotes), **New** (first planned here, no spec yet), **Idea** (in scope, built when its trigger comes).
## Scope
Castes covers the per-pawn settings of humanlike colonists, slaves and prisoners, the join and status-change defaults that put pawns into castes, and the tools to manage, see and move castes. The shared ownership list in `docs/design.md` ("Ownership") is the contract between the Blax mods.
- slave status, trade, suppression, rebellion, slave medicine and the slave interaction modes themselves, Recruit and Convert included, to Blax Slaves (which mode a new slave starts on is Castes', area 1, step 2);
- crimes, sentences and court to Blax Laws, which sets the Maintain only and Release modes on colonists it jailed (the shared ownership list carries that exception);
- guests and visitors to Hospitality, colony-wide modes (emergency, threat swaps) to Better Pawn Control Forked and AAAA.
## 1. What a caste holds
Every new pawn needs about 20 settings by hand, spread over the Assign, Schedule and Work tabs, the health and gear tabs and a few gizmos. A caste should hold all of them, so a pawn is set up the moment it joins.
Shipped in 1.0: apparel, food, drug and reading policy, medical care, schedule, work priorities, and the Weapons Tab Reborn loadout.
Every slot, shipped or planned, answers the same list: when it is written, the Follow rule, the "*" mark, the load check, the former-caste record, duplicate and new caste from pawn, its template entry, its DLC note and "Apply to all members" (`docs/design.md`, "Slot contract"). A slot whose spec leaves one of them open is not ready to build.
1.**Where and how they fight.** Designed, "Allowed area" and "Hostility, self-tend, carried medicine, fire at will". Comes first because area and hostility are the defaults Better Pawn Control (228k) and 1trickPwnyta's Defaults (75k) set that Castes doesn't replace yet, and a Guard caste needs them.
- Allowed area: by name, applied on arrival on any map, with a "Create area" button that makes the area under the caste's name when it's missing. Needs nothing.
- Hostility response, self-tend with a minimum Medicine skill, carried medicine with a warning when the colony runs short, and fire at will as the value each draft starts with (vanilla turns it back on at every draft). Needs nothing.
2.**Prisoner and slave treatment.**
- Prisoner interaction: Designed, "Default prisoner interaction". The interaction mode a captured enemy gets (Reduce resistance, Enslave, Convert), a second mode for prisoners the first one does not fit (an unrecruitable prisoner in a Recruit caste goes to Enslave instead), plus the bloodfeed and hemogen farm toggles. Never written on a colonist you arrest or a slave you imprison, with or without Blax Laws: they keep the mode vanilla gives them (Maintain only for a colonist never held before). Needs: the captured and arrested reasons of the adult join paths (area 2, step 1). Enslave, Reduce will and Convert need Ideology; bloodfeed and hemogen farm need Biotech; Study and Interrogate need Anomaly.
- Slave interaction: New. The mode a new slave starts on: Suppress, No interaction, and Blax Slaves' Recruit and Convert while Slaves is loaded. Vanilla puts every newly enslaved pawn on Suppress (RimWorld/Pawn_GuestTracker.cs:501-503); Castes writes the caste's mode one tick later, on join and assign only, never through the Follow rule. Stored as a defName and resolved with `GetNamedSilentFail`, so `BlaxSlaves_Recruit` and `BlaxSlaves_Convert` work only while Slaves is loaded. Imprison, Emancipate and Execute are never offered, since each acts on the slave once. Castes picks the default, Slaves owns the modes. Needs Ideology. Demand: Slaves' plan sends "policy defaults for new slaves" to Castes, and its Recruit and Convert modes are set by hand on each slave.
3.**DLC settings.** Designed, "DLC switches". Room and apparel requirements, psyfocus target and entropy limit (Royalty); hemogen packs and deathrest auto-wake (Biotech). Each row switches off with a "Needs <DLC>" note without its DLC.
4.**Settings that change with the day and the year.** Both keep several values in one slot and give each member one of them by a rule (its shift, the cold on its map), so every check (the Follow rule, the "*" mark, Reset, "Apply to all members", the former-caste record) compares a member with its own value.
- Shift schedules: up to three timetables per caste, members dealt out in turn, night owls first to the shift that sleeps through midday, "Rebalance" spreads them again. Designed, "Shift schedules".
- Cold-weather apparel: New. A caste can hold a cold-weather apparel policy next to its normal one. A member wears it while vanilla's own test says its map needs warm clothes this twelfth, the test the outfit optimiser uses (`PawnApparelGenerator.CalculateNeededWarmth`, RimWorld/PawnApparelGenerator.cs:1164-1176, called from RimWorld/JobGiver_OptimizeApparel.cs:124): the tile's average temperature for the twelfth is more than 4 degrees below the race's comfortable minimum. So a polar map wears it all year and a hot desert never does. A calendar season gets both wrong: `GenLocalDate.Season` reports PermanentWinter or PermanentSummer on polar and tropical maps (RimWorld/SeasonUtility.cs:29-41) and ignores the biome. The caste's apparel value for a member is the policy for its current need, so joining, "Reset to caste", "Apply to all members", the "*" mark and the previous caste all use it. When a member's twelfth changes (checked in the existing 2500-tick sweep), members on the other policy move; pawns set by hand keep theirs. The second policy is part of the delete guard, the load check and the former-caste record. Demand: the Slave outfit the starter Slave caste uses has no cold protection, which 1.0 already warns about. Players also ask how to swap outfits by season ("Curious about how to set seasonal clothing", Steam discussions, 2020-02-15, https://steamcommunity.com/app/294100/discussions/0/3440124566885187088/) and do it by hand or with Better Pawn Control presets; the search found no mod that switches them by season.
5.**Combat Extended loadout.** New, waits for a Combat Extended 1.7 build. A caste sets the CE loadout (ammo, sidearms, gear) the way it sets the Weapons Tab Reborn loadout, and answers the slot contract like every slot. Demand: Combat Extended has 419k subscribers (Workshop 2890901044, tagged up to 1.6, updated 2026-10-15, read 2026-12-01). Hook: CE's per-pawn loadout setter, bound by reflection; not checked against the code.
Vanilla resets settings on every join and status change, and each path (bought, rescued, born, freed) needs its own default. Castes should know every path and let you override it per pawn.
Shipped in 1.0: five rows (bought as slave, bought as colonist, new colonist, new slave, new prisoner), every status change between colonist, slave and prisoner, the old caste on return within 60 days, leaving on sale or escape, starter castes wired to the rows. Starting colonists go through the new-colonist row: the defaults window can't be opened before the game starts, so there is no starting row.
1.**Adult join paths.** Designed, "Adult join paths". Enslaved, recruited prisoner, captured enemy, wanderer, quest joiner, rescued, lodger arrived and recruited, emancipated, recruited slave, creepjoiner; arrested colonists and imprisoned slaves keep the new-prisoner row under their own reason, so no prisoner mode ever reaches them; a safety net on spawn for paths nobody hooks. Needs: slave rows Ideology, creepjoiner Anomaly. Comes first because the other Blax mods' join reasons land in these rows.
2.**Children.** Designed, "Children". Born (growth vat included), grown into a child as colonist or slave, chosen as colonist or slave in the growth letter, came of age at 13, and a child dropdown on every row. These paths change no faction or status, so their hooks queue the pawn themselves. Growth rows never move a pawn whose caste you picked by hand. Needs Biotech (the child slave row also Ideology).
3.**Join reasons from the other Blax mods.** Castes reads them through the join API (area 5, step 2).
- Blax Slaves: runaway returned, slave recruited, indenture served, bought indentured, contract returned. Designed, "Join reasons from Blax Slaves". Ships with the join API: Slaves has sent runaway returned since its 1.2 and binds both API members by name.
- Blax Laws: `blax.laws.jailed` (the new-prisoner row and no prisoner mode, like every arrest; the former-caste record outlives `formerCasteDays`) and `blax.laws.released` (old caste whatever its age). New, specified in the Laws design ("Castes keeps the caste"); waits for that design to be accepted.
4.**Pre-picks per pawn.** Designed, "Pre-pick in the prisoner and slave tabs". The prisoner tab picks the caste when recruited or enslaved, the slave tab the caste when freed; a pick beats every default. Its store is what the PrePick API (area 5, step 3) writes into.
Turning a running colony into castes, and seeing who is in which, takes too many clicks today.
Shipped in 1.0: the caste manager, the Caste column in the Assign, Schedule and Work tabs, starter castes, "Assign by status", "Apply to all members", "Create Slave outfit", the cold warning and overlap warnings.
Steps:
1.**Tools.** Designed, "Tools": "Caste gizmo", "New caste from pawn", "Policy delete guard", "Ideo conflict warning". Comes first because 1.0 has no manual way to put a prisoner in a caste, and building castes from an existing colony takes a caste per click.
- Caste gizmo on selected pawns, prisoners included.
- "On join" instead of "Defaults": the button above the Caste column becomes "On join" and its window "Caste on join", with the Scribe keys unchanged. Next to a mod called Blax Defaults, a "Defaults" button in Castes sends players to the wrong mod. New, asked for in Blax Defaults' design ("Sibling doc changes").
2.**Seeing castes.** Designed, "Caste colour and inspect line". A colour per caste in the column and the gizmo, and a "Caste: X" line in the inspect pane.
3.**Colony bar grouped by caste.** Idea, waits for demand. [LTO] Colony Groups (231k) has no 1.7 build (last update 2025-07-18, read 2026-12-01). Build it if players ask after the tools ship and no colonist bar mod with groups reaches 1.7.
4.**Own gizmo icon.** Idea, needs art. The vanilla icon works.
## 4. Castes across saves
Every new colony rebuilds the same castes and policies by hand.
1.**Caste templates.** Designed, "Caste templates across saves". Export a caste with the policies it uses to a file, import it in another colony, and start new games from a template set (your castes, the join-row picks and the default caste) instead of the starter set. A template made with DLCs or mods imports without them and reports what it dropped. The file holds one named entry per slot, so a slot built later only adds its entry and older files still import with that slot left alone. Replaces Better Policies (3.9k), Export Agency (16.3k) and Save My Settings (3.8k), partly: the largest demand of any planned area.
The sibling mods read castes and tell Castes why a pawn joined. Every step adds members to `BlaxCastes.CastesApi` and raises its version; existing members never change.
1.**Read-only API (version 1).** Designed, "Read-only API (version 1)". `Version`, `Active`, `CasteIdOf`, `CasteLabels`. Waited on by Zones' sleeping zones by caste, Defaults' caste guard for animals and mechs, and Laws' caste checks.
2.**Join API (version 2).** Designed, "Join API (version 2)". `HintJoinReason`, `NotifyJoined`. Waited on by Slaves' recruit and indenture features and Laws' "Castes keeps the caste". Ships after the adult join paths (area 2, step 1), together with the Blax Slaves reasons (area 2, step 3).
3.**PrePick (version 3).** Designed, "PrePick for the trade row (version 3)". Waited on by Slaves' trade-row caste picker. Needs the pre-pick store (area 2, step 4).
4.**Caste values for sibling features (version 4).** New. A sibling feature needs a value per caste (a checkbox or a choice) that the sibling reads for a pawn and applies itself. Asked for by Slaves' backlog (blood donor and indenture term per caste) and Laws' backlog ("may serve in court"). Castes stores the value: a sibling registers it, Castes keeps it per caste, shows it in the caste manager under the sibling's name, copies it on duplicate and exports it with templates, and keeps the keys of a sibling that is missing, like the names of a DLC that is off. The sibling owns its meaning and applies it. A value read when the pawn joins needs one more read member: Castes applies a join one tick after the status change, so while Slaves decides an indenture inside the trade (`Pawn.PreTraded`), `CasteIdOf` still returns the old caste or none; `PendingCasteIdOf(Pawn)` returns the caste a queued join or a pre-pick will give. Built when the first sibling feature needs one.
5.**Sentence castes for Blax Laws.** New, for Laws' sentence castes, the punishments of daily life. The player marks any number of castes "for sentences"; Laws puts a convict into the one its law row names for N days and back to its old caste when the sentence ends. The next API version adds `bool BeginSentence(Pawn, string casteId, int durationTicks)`, `bool EndSentence(Pawn)` and `int SentenceTicksLeft(Pawn)`. `BeginSentence` writes the former-caste record the restore already handles, and the end tick lives in Castes' save and is checked in the 2500-tick sweep, so a sentence ends even after Laws is removed; Laws' pardon and early release call `EndSentence`. The convict's status doesn't change, so no join hook sees it, and a `NotifyJoined` reason row maps to one caste and carries no end tick, so it can't do this. Castes seeds starter sentence castes: bread and water (vanilla's Paste or Simple food policy), hard labour, no recreation (a Work-only schedule), dry (the "no drugs" drug policy), rags and confinement (the caste's allowed area and work priorities). A "Create rags outfit" button makes the apparel policy the rags caste uses. Confinement also needs the allowed area slot (area 1). A pawn holds one caste, so stacked daily-life punishments need a combined caste. Needs the join API (step 2).
4. Caste templates (area 4). The largest demand of any planned area. The file has one entry per slot, so it waits on no later slot, and every later slot adds its entry.
5. Adult join paths (area 2, step 1), then the join API (area 5, step 2) with the Blax Slaves reasons (area 2, step 3). Slaves already sends a returned runaway, so its reasons land in their own rows from the start.
9. Prisoner and slave treatment (area 1, step 2), after the adult join paths, whose arrested reason keeps prisoner modes off your own arrested colonists and imprisoned slaves.
11. Waiting on a trigger: Combat Extended loadout (a CE 1.7 build), Blax Laws' join reasons (the Laws design accepted), caste values for sibling features (the first sibling feature that needs one), the sentence castes for Laws (after the join API, when Laws builds its sentence castes step), colony bar groups (demand), multiplayer (a 1.7 build of the Multiplayer mod; the groundwork is in place).
Reasons are in `docs/design.md` "Cut": strict sync mode, a baby autofeed slot, creating missing vanilla policies, a bed or sleeping-zone slot (Zones), a trade-dialog picker owned by Castes (Slaves), colony-wide presets and emergency mode, Ideology roles, caste mood, precept or stat rules, appearance bundles, guest defaults, a rule engine for assignment, periodic re-sync. Animals and mechs are Blax Defaults'.
1.**Caste values for sibling features (area 5, step 4).** Castes stores the per-caste values sibling mods register (blood donor, indenture term, may serve in court), built when the first sibling feature needs one, because the player then sets up a caste in one window and duplicate and templates carry its values, while the sibling still owns their meaning and applies them.
2.**Default slave interaction mode (area 1, step 2).** Castes owns the mode a new slave starts on, because it sets every other default a new slave gets; Blax Slaves keeps its Recruit and Convert modes and what they do.
3.**Sentence caste for Blax Laws (area 5, step 5).** Laws' confinement is a sentence that puts the convict into a sentence caste for its time, so Castes builds this step for it after the join API. Widened by Laws' "Decided 2026-12-03" (Blax Laws `docs/features.md`, item 4): several castes marked "for sentences" instead of one confinement caste, with `BeginSentence`, `EndSentence` and `SentenceTicksLeft`, because Laws' punishments of daily life (bread and water, hard labour, no recreation, dry, rags, confinement) all need policies, schedules or areas that are Castes', and Laws writes none of them itself.