← Back to Pull requests

Roam world: bodies that move, grow by plan, armour and hunters, dials panel #185

Closed
unknown closed this pull request without merging on Nov 25, 2026 02:50 UTC
View on GitHub
unknown unknown commented on Nov 24, 2026 21:57 UTC
Author

The roam world: a local lab probe (/roam/, not on the site) where bodies made of bonded cells move as one piece to patches of food. Nothing outside apps/lab/src/roam, apps/lab/roam, experiments/roam and docs/roam-2026-11-23 changes.

What's in it


  • World (apps/lab/src/roam/kernel.ts):

  • - Integer arithmetic only, and matter is exact: food + stores + reservoir always add up to the total, checked in tests and in every report of every run.
    - Every random draw is a hash of seed, step, tile and channel, so a seed gives one history.
    - Bodies grow by a heritable plan, and a larger body can feed on a smaller one by touch.
  • Flow mode: each cell keeps its own store and matter seeps along bonds. Starved cells die, bodies break, lost parts regrow, and dead cells can feed the ground.

  • Kinds of cell chosen by the plan:

  • - shells: don't eat, cheap upkeep, can't be fed on
    - mouths: the only cells that feed by touch
  • Armour rules:

  • - shells crack after a set number of hits from mouths
    - optional toughness levels
    - armoured-speck founders
    - shellBite / shellLeak set what armour costs
  • Page: garden look, plus a dials panel beside the world: 20 sliders with exact number boxes and a plain-words line for each. Settings are kept in the URL hash. Dials at their defaults give the page's usual world exactly (tested).

  • Tools:

  • - experiments/roam/look.ts: headless runs and picture sheets
    - plans.ts / pieces.ts: plan and outline tools
    - swing.ts: classifies armour-vs-hunter runs

    Results (seen seeds 1 and 2 only; notes in docs/roam-2026-11-23/NOTE.md)


  • A half-bite sweep across crack values 0–8,000 failed the test stated before the run: armour and hunters coexist or swing at 4 of 5 crack values on seed 1, and at 0 of 5 on seed 2.

  • The earlier seed-2 swing at 2,000 hits was one lucky history; the note says so.

  • Tougher armour never spreads.

  • No unseen-seed confirmation yet.
  • Checks


  • pnpm typecheck clean.

  • pnpm vitest run apps/lab/test/roam.test.ts apps/lab/test/roam-dials.test.ts: 51 passed.

  • Codex (Sol 6.1, High) review before each commit; the findings were fixed in place.
  • <!-- This is an auto-generated comment: release notes by coderabbit.ai -->
    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

  • New Features

  • - Added a standalone Roam simulation page with controls for starting conditions, arena, cell behavior, color, and simulation speed.
    - Watch the simulation run, pause or reset it, and explore live population metrics, family summaries, and body-shape visualizations.
    - Adjust settings and share them through a settings link; reopening the link restores those choices.
    - Explore different growth, feeding, cell, and shell behaviors in the simulation.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 357 lines (+267 / -90) across 4 files Reviewer: treetopdevs Review duration: 293m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 357 lines diff across 4 files
    0.43
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.352
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #185"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 42.6% (MEDIUM) · Higher = larger blast radius
    42.6%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 16.8% · Safe to merge
    16.8%