This website is built using Docusaurus, a modern static website generator.
This repo builds https://humanbehaviorpatterns.org/ and serves as the
documentation/presentation layer for canonical Python models and experiments
implemented in sibling repos including EvolvedCooperation and
LearnedCooperation.
Current required code-backed mappings:
spatial_altruismpage/section here <->spatial_altruism/inEvolvedCooperationcooperative_huntingpage/section here <->cooperative_hunting/inEvolvedCooperationdocs/learned-cooperation/repeated-prisoners-dilemma/ppo-study.mdhere <->LearnedCooperation/docs/learning-selection-interaction/interaction-evolved-learned-cooperation/predpreygrass.mdand.../darwin-baldwin-trial-log.mdhere <->predpreygrass/evolutionary/(trial log, canonical sourcepredpreygrass/evolutionary/RESULTS.md) andpredpreygrass/non_evolutionary/drive_conditioned_environment/inPredPreyGrass
The higher-level learned-cooperation pages also frame the
LearnedCooperation repeated Prisoner's Dilemma experiment family:
docs/learned-cooperation/learned-cooperation.mddocs/learned-cooperation/prisoners-dilemma/prisoners-dilemma.mddocs/learned-cooperation/repeated-prisoners-dilemma/repeated-prisoners-dilemma.md
When an implementation changes in a source repo, review and update the matching page here. When the website explanation changes here, keep it faithful to the Python implementation there.
npm installCI uses npm ci for reproducible installs from package-lock.json.
npm run startThis command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
npm run buildThis command generates static content into the build directory and creates the archive redirects used by the site.
Deployment is handled by GitHub Actions when changes are pushed to main.
The workflow lives at .github/workflows/deploy-to-github-pages.yml. It uses Node 24, installs dependencies with npm ci, builds with npm run build, verifies build/CNAME, uploads build/ as a GitHub Pages artifact, and deploys it with actions/deploy-pages.
Check deployment status in GitHub under Actions -> Deploy Site To GitHub Pages.
Scholarly papers should be linked by canonical DOI, arXiv, publisher, proceedings, or author/institution URLs rather than vendored as local PDFs. See ASSET_PROVENANCE.md for the static asset policy and PDF audit record.
Developed with AI coding assistance from Claude (Anthropic), which does the implementation, with Codex (OpenAI) acting as an independent second opinion, peer-reviewing Claude's nontrivial code changes.