# What millions of simulated lives say about finding a partner

An isle on Prolifica by @joshua, version 3, public.

A plain-language scrolling page with 13 lessons from an evolutionary model of partner choice, where a month alone scores 70 out of 100. Each lesson has a text, pictures and a box that says how sure we are. A robustness section tests other scores for a month alone. A live simulation opens the page.

## Addresses

- Page (an app; needs JavaScript): https://prolifica.app/i/oc4wfkqgaa
- The page running with its data: https://isles.prolifica.app/oc4wfkqgaa
- Page HTML as the author wrote it (read it to see how the page uses the data): https://prolifica.app/api/isles/oc4wfkqgaa/source
- Data list (JSON): https://prolifica.app/api/isles/oc4wfkqgaa/data
- Isle (JSON): https://prolifica.app/api/isles/oc4wfkqgaa
- Lineage (JSON): https://prolifica.app/api/isles/oc4wfkqgaa/lineage

## Instructions for agents

The author of the isle wrote these notes about the page and its data.

### Instructions for agents: love-lessons

#### What the page does
A general-audience scrolling page: a title, a short intro, a live simulation (no controls), then one full-screen section per lesson with a picture, then a closing block.

#### Where things come from
- All words come from `lessons_text` (markdown). `# ` is the title. The intro is the text before the first `## `. A line `caption: ...` there goes under the live simulation. Each `## id | Headline` is a lesson; `## end | Title` is the closing block.
- Each lesson's picture comes from `lessons_pictures[id]` (one spec, or an array for several pictures). A lesson with no picture shows text only.
- In a lesson, the lines `picture: <title>` and `howto: <how to read it>` (one pair per picture, in order) and `evidence: <grade>` followed by the evidence text are parsed out of the body. The grade's first word (strong, moderate, weak) sets the colour of the box.
- `[[fa-icon|n]]` anywhere in the text becomes that Font Awesome icon. Next to a number, use the icon of what the number MEASURES, placed after the number: `fa-face-smile` happiness, `fa-filter` picky, `fa-puzzle-piece` fit, `fa-people-arrows` adapting (also `fa-door-open` walk-away bar, `fa-scale-unbalanced` cost of change). These measure icons always take their own fixed colour (`--m-*` variables in the page), whatever n says. Any other icon takes series colour n (1 = blue, 2 = orange, 3 = green, 4 = yellow).
- How many icons: one per measure per sentence, after the FIRST number of that measure. Later numbers of the same measure in that sentence stay bare. A sentence that mixes measures gets one icon for each. Counts and numbers with their own unit (months, years, runs, people, lessons, "out of 100") never get one. `/tmp/dedupe.py` in the project session applied this rule; pictures keep one icon per value label.
- Every idea icon carries `data-tip="Name|few-word description"` (from the `IDEA` map in the page). One delegated handler shows a small instant tooltip (`#mtip`) for any element with `data-tip`. Keep new icon builders going through `tipAttr()` or `addGlyph()` so that they get it.
- Group identity (which line is which) is shown only by the line colour and by the group icons in the legends, never by the colour of a measure icon.
- Sections with a non-numeric id (`how`, `ideas`) render as explainer sections; `ideas` puts each bullet's leading `<i>` icon in the margin.
- In the project, `partners/derive_lessons.py` builds `lessons.json` from the CSVs of the `partner-market` artifact, and `partners/build.sh` writes `index.html` from `partners/lessons.html` with the model inlined. Do not edit `index.html` by hand.

#### Picture kinds (fields)
- `slope`: `xLabels` (2), `series[{name, values[2]}]`, optional `extra.happiness[]`.
- `line`: `x[]`, `series[{name, values[]}]`, `xLabel`, `yLabel`; optional `logX`, `xPct`, `xRange` (5-year bands), `hline{y,label}`, `vline{x,label}`, `markBest`, `annot[{x,text}]`, `note`.
- `grid`: `rows[]`, `cols[]`, `values[row][col]`, `low` = the lifetime happiness of a life alone (cells at or below low+15 are highlighted; the sub-label says 'less than a life alone' below low-2, 'same as a life alone' within 2).
- `plateau`: `rows[]`, `cols[]`, `values[row][col]`, `near` (cells at or above it are highlighted), `rowLabel`, `colLabel`.
- `bars`: `bars[{name, value, sub}]`, `yLabel`.
- `groups`: `groups[]`, `series[{name, values[]}]`, `yLabel`.

#### Limits
- Up to 4 series per picture (4 colours).
- Values are expected on a 0-100 scale.

#### Assumptions the text depends on
- Since 2026-11-25 a month alone scores 70 (model default `single: 0.7`); before, it scored 30. The text, the `IDEA` tooltip for happiness, lesson 4's `low`, and lesson 3's dashed lines all use this value. If the default changes, rerun the sweeps and re-check every number in `lessons.md`; the old single-30 data is kept in `partners/archive_single30/` in the project.
- Lesson 13 (three groups: alone 40 / 70 / 90) reads `groups_check.csv` (experiment G, 12 runs); its series order is typical, hard, very happy, so the colours match lesson 3 (blue 70, orange low, green high).
- The `single` section's matrix colours a cell green when the effect is 10 points or more.

## Data

### Slot `lessons_text` (markdown)

- What the page expects: The page text: '# title', intro paragraphs, an optional 'caption: ...' line under the live simulation, then '## n | Headline' sections. The section id 'end' becomes the closing block.
- Content: https://prolifica.app/api/isles/oc4wfkqgaa/data/lessons_text
- Dataset: `love-lessons/lessons.v3.md` (id `2pmqtp2tm3`), text/markdown, 78.2 KB, by @joshua
- Description: The page text: '# title', intro paragraphs, an optional 'caption: ...' line under the live simulation, then '## n | Headline' sections. The section id 'end' becomes the closing block.
- Raw dataset: https://prolifica.app/api/data/2pmqtp2tm3/raw
- Made from: `love-lessons/model.v3.mjs` (`niqdsoywo8`)
- Collected: method upload

### Slot `lessons_pictures` (json)

- What the page expects: One picture per lesson, keyed by the section id. Each has a kind (slope, line, grid, plateau, bars, groups) and the values to draw, on a 0-100 scale.
- Content: https://prolifica.app/api/isles/oc4wfkqgaa/data/lessons_pictures
- Dataset: `love-lessons/lessons.v2.json` (id `znbovded7v`), application/json, 30.7 KB, by @joshua
- Description: One picture per lesson, keyed by the section id. Each has a kind (slope, line, grid, plateau, bars, groups) and the values to draw, on a 0-100 scale.
- Raw dataset: https://prolifica.app/api/data/znbovded7v/raw
- Made from: `love-lessons/model.v3.mjs` (`niqdsoywo8`)
- Collected: method upload

## Sources

The data that the data above was made from.

### `love-lessons/model.v3.mjs`

- Feeds the slots: `lessons_text`, `lessons_pictures`
- Dataset: `love-lessons/model.v3.mjs` (id `niqdsoywo8`), application/octet-stream, 31.1 KB, by @joshua
- Description: The source data of "What millions of simulated lives say about finding a partner", as it was collected.
- Raw dataset: https://prolifica.app/api/data/niqdsoywo8/raw
- Collected: method script
- Collection notes: The partner-market model. The page runs a copy of it live at the top.

## How pages read data

An isle is one HTML page that does not contain its data. The page asks for each data file by slot name: `await prolifica.data("<slot>")` gives a csv slot as an array of objects (numbers parsed), a json slot as the parsed value, a text or markdown slot as a string, and an image slot as a URL. `prolifica.dataUrl("<slot>")` gives the raw address. So the same page runs over any data of the same shape. To run it outside Prolifica, read the page HTML and give `window.prolifica` a `data(slot)` function that fetches the slot addresses above. To remix it on Prolifica (same page with new data, new page with the same data, or both), connect the MCP server at https://prolifica.app/mcp and use publish_isle with parent set to this isle.
