Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ authors:
affiliation: Better To Best Research Hub
email: BetterToBestResearch@gmail.com
- name: "Claude (Anthropic)"
version: 5.9.2
version: 5.9.3
doi: 10.17605/OSF.IO/QWTE2
url: "https://bettertobest.github.io/compassionism-simulation/"
repository-code: "https://github.com/BetterToBest/compassionism-simulation"
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ The simulation is a single HTML file with no build tooling — runs directly fro

- Test in Chrome, Firefox, and Safari
- **New in v4.20:** `npm install` once (it installs jsdom, the only dev dependency, pinned in `package.json`), then `npm test`, which runs `node harness.js validate`, `node harness.js unit` and `node domtest.js`. GitHub Actions runs the same three on every push and pull request (`.github/workflows/checks.yml`); a red check means a figure, a unit test, or page/harness parity broke. *(v5.3: the engine has one copy. `harness.js` reads it out of `index.html` when it loads, so an engine change is made once, in `index.html`; `dev/tools/port_engine.py` and the five listed differences between the two files are retired. `domtest.js` still compares the page with the script `harness.js` runs.)* If your change moves the seed-42 figures on purpose, update `validate`'s documented values in the same pull request and say why.
- **New in v4.13:** run `node domtest.js` for any change touching markup, CSS classes, or a render function. It takes ~3 minutes (<!-- count:domtest -->158<!-- /count --> checks; `domtest` fails if this number is stale, and `node domtest.js --write-counts` refreshes it, as `node harness.js unit --write-counts` does for the <!-- count:unit -->384<!-- /count --> unit tests) and asserts DOM behaviour the existing checklist cannot see — the two defects it was written to catch had both been live for eight releases precisely because every prior check read the file rather than running it. It does **not** cover CSS layout, tooltip positioning, or Chart.js output; those still need a human look at a few zoom levels and viewport widths after deploying.
- **New in v4.13:** run `node domtest.js` for any change touching markup, CSS classes, or a render function. It takes ~3 minutes (<!-- count:domtest -->159<!-- /count --> checks; `domtest` fails if this number is stale, and `node domtest.js --write-counts` refreshes it, as `node harness.js unit --write-counts` does for the <!-- count:unit -->384<!-- /count --> unit tests) and asserts DOM behaviour the existing checklist cannot see — the two defects it was written to catch had both been live for eight releases precisely because every prior check read the file rather than running it. It does **not** cover CSS layout, tooltip positioning, or Chart.js output; those still need a human look at a few zoom levels and viewport widths after deploying.
- Ensure seeded RNG produces identical output before and after your change, for a fixed configuration (seed `42`, Full Integration, 20 years — record Median BLEI, BLEI Poverty, and Gini as regression metrics) — unless your change is intentionally a mechanics fix, in which case say so explicitly in the PR
- Do not introduce external dependencies beyond the existing Chart.js CDN (the page) and jsdom (dev-only, v4.20)
- Follow existing code style: vanilla JS, CSS variables, inline documentation, `CFG` object for all calibration constants
Expand Down Expand Up @@ -453,7 +453,7 @@ If you're contributing code (a pull request touching `index.html` or a harness s

---

*Better To Best Research Hub · Compassionism Framework Simulation v5.9.2*
*Better To Best Research Hub · Compassionism Framework Simulation v5.9.3*
*Principal Investigator: Duke Johnson (pseudonymous)*
<!-- v4.11 note: this signature line had read "v4.8" since that release — missed by both the
v4.9 and v4.10 version-bump sweeps, the same class of small staleness gap this document
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ node domtest.js # drives index.html in a headless DOM (a few minutes)

Every `harness.js` study mode also accepts `--agents=N`, the population per run (default 500). For example, `node harness.js largen 500 headline --agents=5000` reruns the headline figures at 5,000 agents per run, in about five minutes on one CPU core.

The same three run automatically on every push (`.github/workflows/checks.yml`). CONTRIBUTING.md explains what each covers and what none of them can see. Today `unit` runs <!-- count:unit -->384<!-- /count --> tests and `domtest` <!-- count:domtest -->158<!-- /count --> checks; each run fails if these numbers are stale, and `--write-counts` (for either) refreshes them.
The same three run automatically on every push (`.github/workflows/checks.yml`). CONTRIBUTING.md explains what each covers and what none of them can see. Today `unit` runs <!-- count:unit -->384<!-- /count --> tests and `domtest` <!-- count:domtest -->159<!-- /count --> checks; each run fails if these numbers are stale, and `--write-counts` (for either) refreshes them.

---

Expand Down
4 changes: 4 additions & 0 deletions domtest.js
Original file line number Diff line number Diff line change
Expand Up @@ -1221,6 +1221,10 @@ function phase14(done) {
const sc = require(path.join(path.dirname(FILE), 'dev', 'tools', 'check_stale_claims.js')).run();
check('v5.2.2 (audit A2): no retired claim reappears on a public page (dev/tools/check_stale_claims.js; the replication page\'s version history and the notes headed as describing the v4.22 engine are history and skipped)', sc.pass,
sc.pass ? sc.claims + ' retired claims, ' + sc.files + ' files' : sc.hits.slice(0, 4).join('; '));
/* v5.9.3: the simulation page's guided sections must not start before the page's own script has parsed the release panels (REL.data, set in its DOMContentLoaded
* handler); starting on a bare timer raced it and left every chart and card below the headline blank on a slow load. */
const sp = fs.readFileSync(path.join(path.dirname(FILE), 'site', 'simpage.js'), 'utf8');
check('v5.9.3: site/simpage.js starts only once REL.data exists (waits for DOMContentLoaded while it is null; no bare timer race)', /readyState === 'loading' \|\| !REL\.data\) doc\.addEventListener\('DOMContentLoaded'/.test(sp), 'start line');
phase15(done); })
.catch(e => { check('v5.2.1: the figure check runs', false, String(e && e.stack || e).slice(0, 300)); phase15(done); });
}
Expand Down
12 changes: 6 additions & 6 deletions earlier-engine.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<link rel="icon" type="image/png" sizes="32x32" href="https://bettertobest.github.io/research-hub/assets/favicon-32.png">
<link rel="icon" type="image/png" sizes="16x16" href="https://bettertobest.github.io/research-hub/assets/favicon-16.png">
<link rel="apple-touch-icon" sizes="180x180" href="https://bettertobest.github.io/research-hub/assets/favicon-180.png">
<title>Compassionism Framework Simulation v5.9.2, the earlier engine | Better To Best Research Hub</title>
<title>Compassionism Framework Simulation v5.9.3, the earlier engine | Better To Best Research Hub</title>
<meta name="description" content="Open agent-based simulation of the Compassionism framework (CCO, PTF, PTH, SZH, CIP): 500 simulated adults over 20 years, with the programme and without it, in three environments. Basic living covered (BLEI), poverty, savings, work, prices and cost, averaged over 500 paired runs, and a live run in the browser.">

<!-- Open Graph / Facebook -->
Expand Down Expand Up @@ -39,7 +39,7 @@
<meta name="twitter:creator" content="@Author_Duke_J">
<meta name="twitter:site" content="@Author_Duke_J">
<script type="application/ld+json">
{"@context":"https://schema.org","@type":"SoftwareApplication","name":"Compassionism Framework Simulation","description":"Research-oriented exploratory agent-based model of the Compassionism framework (CCO, PTF, PTH, SZH, CIP) as specified on the Research Hub: Basic Units issued by a Source, essential-service businesses splitting their earnings, community businesses and housing, open enrolment; results against no programme in three environments, 500 paired runs, with a live run in the browser.","url":"https://bettertobest.github.io/compassionism-simulation/","softwareVersion":"5.9.2","identifier":"https://doi.org/10.17605/OSF.IO/QWTE2","author":{"@type":"Organization","name":"Better To Best Research Hub","url":"https://bettertobest.github.io/research-hub/"},"license":"https://www.apache.org/licenses/LICENSE-2.0","isAccessibleForFree":true}
{"@context":"https://schema.org","@type":"SoftwareApplication","name":"Compassionism Framework Simulation","description":"Research-oriented exploratory agent-based model of the Compassionism framework (CCO, PTF, PTH, SZH, CIP) as specified on the Research Hub: Basic Units issued by a Source, essential-service businesses splitting their earnings, community businesses and housing, open enrolment; results against no programme in three environments, 500 paired runs, with a live run in the browser.","url":"https://bettertobest.github.io/compassionism-simulation/","softwareVersion":"5.9.3","identifier":"https://doi.org/10.17605/OSF.IO/QWTE2","author":{"@type":"Organization","name":"Better To Best Research Hub","url":"https://bettertobest.github.io/research-hub/"},"license":"https://www.apache.org/licenses/LICENSE-2.0","isAccessibleForFree":true}
</script>
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.1/dist/chart.umd.js" integrity="sha384-dug+JxfBvklEQdJ4AYuBBAIScUz0bVN73xpy273gcAwHjb3qI0fXmuYNaNfdyYJG" crossorigin="anonymous"></script>
<style>
Expand Down Expand Up @@ -330,7 +330,7 @@
<div style="display:flex;align-items:center;gap:.6rem">
<img src="https://bettertobest.github.io/research-hub/assets/bettertobest-mark-muted-originals.svg" alt="Better To Best Research Hub" width="32" height="32" style="flex-shrink:0">
<div>
<div class="hd-title">Compassionism Framework Simulation <span style="font-size:11px;font-weight:400;color:var(--text3);margin-left:4px" class="meta-ver">v5.9.2</span></div>
<div class="hd-title">Compassionism Framework Simulation <span style="font-size:11px;font-weight:400;color:var(--text3);margin-left:4px" class="meta-ver">v5.9.3</span></div>
<div class="hd-sub">
All five architectures ·
<a class="abbr-link" href="https://bettertobest.github.io/research-hub/wiki/glossary.html#cco" target="_blank" rel="noopener" data-tip="Creative Currency Octaves">CCO</a> ·
Expand Down Expand Up @@ -746,7 +746,7 @@ <h3>System comparison — final-year results &nbsp;<span style="font-weight:400;

<footer>
<div>
<span>Compassionism Simulation <span class="meta-ver">v5.9.2</span> · <a href="https://bettertobest.github.io/research-hub/">Better To Best Research Hub</a> · Code: Apache License 2.0 · Content: CC BY 4.0</span>
<span>Compassionism Simulation <span class="meta-ver">v5.9.3</span> · <a href="https://bettertobest.github.io/research-hub/">Better To Best Research Hub</a> · Code: Apache License 2.0 · Content: CC BY 4.0</span>
<span style="display:block;margin-top:3px"><a href="https://bettertobest.github.io/research-hub/basic-living-economic-index.html">BLEI Paper</a> · <a href="https://bettertobest.github.io/compassionism-simulation/replication.html">Replication</a> · <a href="https://bettertobest.github.io/research-hub/wiki/">Wiki &amp; Docs</a> · <a href="https://doi.org/10.17605/OSF.IO/QWTE2" target="_blank" rel="noopener">DOI: 10.17605/OSF.IO/QWTE2</a></span>
</div>
<div style="text-align:right">
Expand All @@ -762,7 +762,7 @@ <h3>System comparison — final-year results &nbsp;<span style="font-weight:400;
if(typeof Chart==='undefined'){window.Chart=function(ctx,cfg){this.data=cfg&&cfg.data;this.options=cfg&&cfg.options;this.update=function(){};this.destroy=function(){};};window.Chart.__missing=true;
document.addEventListener('DOMContentLoaded',function(){var n=document.createElement('p');n.className='fd-note';n.setAttribute('role','status');n.textContent='Charts are unavailable because the Chart.js library did not load (offline, or blocked). All figures and tables below still work.';var o=document.getElementById('fd-old')||document.querySelector('.layout');if(o&&o.parentNode)o.parentNode.insertBefore(n,o);});}
/* ═══════════════════════════════════════════════════════════════════════
* COMPASSIONISM FRAMEWORK SIMULATION v5.9.2
* COMPASSIONISM FRAMEWORK SIMULATION v5.9.3
* Better To Best Research Hub · Source code: Apache License 2.0 (as of
* v4.8 — see the LICENSE-CODE note below); content/documentation
* elsewhere in this project remains CC BY 4.0. Authors: Duke Johnson &
Expand Down Expand Up @@ -2343,7 +2343,7 @@ <h3>System comparison — final-year results &nbsp;<span style="font-weight:400;
* Update here only; all exports, headers, and citation strings reference
* this object instead of hardcoding version/DOI strings. */
var META = {
VERSION:'5.9.2',
VERSION:'5.9.3',
DOI:'https://doi.org/10.17605/OSF.IO/QWTE2',
CITATION:'Johnson, D. & Claude (Anthropic). (2026). Compassionism Framework Simulation. Better To Best Research Hub. https://doi.org/10.17605/OSF.IO/QWTE2 (source code: Apache License 2.0 as of v4.8; content/documentation: CC BY 4.0)',
URL:'https://bettertobest.github.io/compassionism-simulation/'
Expand Down
24 changes: 12 additions & 12 deletions findings.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Findings explorer | Compassionism Framework Simulation v5.9.2</title>
<title>Findings explorer | Compassionism Framework Simulation v5.9.3</title>
<meta name="description" content="The Compassionism Simulation's findings, release by release: the headline results, a guided read of each one with a chart, and every table behind them with downloads. 500 simulated adults and their children over 20 or 40 years, with Compassionism and with no program, in three environments.">
<meta name="author" content="Duke Johnson, Claude (Anthropic)">
<meta name="robots" content="index, follow, max-image-preview:large">
<meta name="sim-version" content="5.9.2">
<meta name="sim-version" content="5.9.3">
<link rel="canonical" href="https://bettertobest.github.io/compassionism-simulation/findings.html">
<meta property="og:type" content="article">
<meta property="og:url" content="https://bettertobest.github.io/compassionism-simulation/findings.html">
Expand All @@ -18,10 +18,10 @@
<meta name="theme-color" content="#1D9E75">
<link rel="icon" type="image/svg+xml" href="https://bettertobest.github.io/research-hub/assets/favicon.svg">
<link rel="icon" type="image/png" sizes="32x32" href="https://bettertobest.github.io/research-hub/assets/favicon-32.png">
<link rel="stylesheet" href="site/findings.css?v=5.9.2">
<link rel="stylesheet" href="site/findings.css?v=5.9.3">
<link rel="preload" href="data/manifest.json" as="fetch" crossorigin>
<script type="application/ld+json">
{"@context":"https://schema.org","@type":"Dataset","name":"Compassionism Framework Simulation: findings","softwareVersion":"5.9.2","url":"https://bettertobest.github.io/compassionism-simulation/findings.html",
{"@context":"https://schema.org","@type":"Dataset","name":"Compassionism Framework Simulation: findings","softwareVersion":"5.9.3","url":"https://bettertobest.github.io/compassionism-simulation/findings.html",
"description":"Release data of the Compassionism Framework Simulation: 500 paired runs of 500 simulated adults and their children, with Compassionism and with no program, in three environments over 20 or 40 years.",
"creator":[{"@type":"Person","name":"Duke Johnson"},{"@type":"Organization","name":"Claude (Anthropic)"}],"license":"https://creativecommons.org/licenses/by/4.0/","identifier":"https://doi.org/10.17605/OSF.IO/QWTE2",
"distribution":[{"@type":"DataDownload","encodingFormat":"application/json","contentUrl":"https://bettertobest.github.io/compassionism-simulation/data/manifest.json"}]}
Expand Down Expand Up @@ -161,19 +161,19 @@ <h2 class="fx-h2" id="tables-h">All tables of the panel <a class="fx-anchor" hre
</div></main>

<footer><div class="wrap">
<p>Compassionism Simulation <span class="meta-ver">v5.9.2</span> &middot; <a href="https://bettertobest.github.io/research-hub/">Better To Best Research Hub</a> &middot; Code: Apache License 2.0 &middot; Content: CC BY 4.0</p>
<p>Compassionism Simulation <span class="meta-ver">v5.9.3</span> &middot; <a href="https://bettertobest.github.io/research-hub/">Better To Best Research Hub</a> &middot; Code: Apache License 2.0 &middot; Content: CC BY 4.0</p>
<p><a href="./">Simulation</a> &middot; <a href="suite.html">Visual suite</a> &middot; <a href="compare.html">Compare designs</a> &middot; <a href="replication.html">Replication framework</a> &middot; <a href="https://github.com/BetterToBest/compassionism-simulation">GitHub</a> &middot; <a href="https://doi.org/10.17605/OSF.IO/QWTE2">DOI: 10.17605/OSF.IO/QWTE2</a></p>
<p class="cite">Suggested citation: Johnson, D. &amp; Claude (Anthropic). (2026). Compassionism Framework Simulation. Better To Best Research Hub. <a href="https://doi.org/10.17605/OSF.IO/QWTE2">https://doi.org/10.17605/OSF.IO/QWTE2</a></p>
</div></footer>

<script src="site/charts.js?v=5.9.2"></script>
<script src="site/findings.js?v=5.9.2"></script>
<script src="site/studies.js?v=5.9.2"></script>
<script src="site/notes.js?v=5.9.2"></script>
<script src="site/charts.js?v=5.9.3"></script>
<script src="site/findings.js?v=5.9.3"></script>
<script src="site/studies.js?v=5.9.3"></script>
<script src="site/notes.js?v=5.9.3"></script>
<script src="site/round2.js?v=5.9.0"></script>
<script src="site/cb.js?v=5.9.2"></script>
<script src="site/totop.js?v=5.9.2" defer></script>
<script src="site/stickynav.js?v=5.9.2" defer></script>
<script src="site/cb.js?v=5.9.3"></script>
<script src="site/totop.js?v=5.9.3" defer></script>
<script src="site/stickynav.js?v=5.9.3" defer></script>
<script>
/* The explorer: loads data/manifest.json, opens the current release (or ?v=), and renders the three layers from it. The address carries the release,
* the environment, the horizon and the section, so any view can be shared. Everything shown comes from the release file (site/findings.js). */
Expand Down
Loading