← Back to Pull requests

Soft Roam: Roam's bodies off the lattice, with sun, seasons, leaves, hunting senses, big bodies that heal, and speeds that differ #186

Closed
unknown closed this pull request without merging on Nov 26, 2026 21:16 UTC
View on GitHub
unknown unknown commented on Nov 26, 2026 13:20 UTC
Author

What this is

Soft Roam takes Roam's bonded-cell bodies off the lattice: cells are integer fixed-point points joined by springs, moving over the same food and scent fields, drawn as soft blobs. It lives beside Roam as a separate world with a local page at /softroam/. Roam (apps/lab/src/roam/), packages/ and every golden pin are untouched.

Chunk 1 (five commits)

  • Kernel: spring bodies over the food field, exact integer arithmetic, matter residual exactly zero, independent of slot, bucket and iteration order.

  • Mouths, shells, cracking by touch, scent at Roam's length.

  • Garden picture, dials panel, headless look tool (experiments/softroam/look.ts).

  • Note: docs/softroam-2026-11-25/NOTE.md.
  • Chunk 2 (three commits)

    All new rules are optional config keys, absent from the defaults, so earlier worlds hash the same (apps/lab/test/softroam-pins.test.ts).

  • Sun: a day band that sweeps the world, and a yearly swing with a winter floor. Food patches can be gated by light.

  • Leaves: a new cell kind that earns from light, shaded by other leaves on the same tile.

  • Hunting: mouths steer at the nearest cell they could feed on within sight; prey can steer away from a mouth that threatens it.

  • Manners: a truce inside a founder family, and "jaws" (a body holding a mouth cannot be fed on).

  • Release cap: a minimum body size and a cooldown before a body may release.

  • Seasons start: three new founders (armoured grazer, leaf bush, hunter).

  • Contract CONTRACT-2.md, evidence NOTE-2.md: the year swings cell counts 1.5 to 2 times; bodies stay at 12 cells or fewer, no visible pursuit, leaves a few percent.
  • Chunk 3 (two commits): the first four ranked rule changes of NOTE-2

    Again every key is optional and absent from every earlier start; the garden pins and a new pin of the seasons start are unchanged (a 36,000-step seasons run gives chunk 2's digest).

  • heal: braces hold a body together as mother links do, so a cell dying inside a body leaves a hole its mother grows again instead of splitting the body. (The planned regrow cadence was built and dropped: the kernel already regrows lost daughters; splitting was the limit.)

  • steer: one aim per body; the body turns toward prey (or away from a hunter) and every cell with a chase gene steers by it.

  • pack: a mouth may also feed on a body of up to pack cells per mouth of its own body in touch; two bodies that could each eat the other leave each other alone.

  • crowd: a seeing mouth counts other hunters' mouths beside a candidate as extra distance.

  • leafPool / leafPoolMax: a share of upkeep goes to a store only leaves are paid from.

  • patchSeason, winterCost: patches shrink with the year's light; every cell pays more upkeep in the dark of the year.

  • Bodies start (now the page default): herds, groves and pack hunters of 21 to 25 cells, with every chunk 3 key on. Seasons and garden unchanged and selectable.

  • Contract CONTRACT-3.md, evidence NOTE-3.md.
  • What the evidence shows (seeds 1 to 4, three years; each key off in turn on seed 1)

  • About 30% of cells are in bodies of 10+ (chunk 2: 0.1%); without heal, 11% and none reaches 20.

  • winterCost carries the year: swing about 1.45x (1.17x without it), and bodies are 10 to 16% smaller in winter.

  • steer more than doubles feeding on crumbs; pack 6 more than doubles feeding on bodies of 5 to 12.
  • Not achieved, and said so in the note: bodies of 20+ stay rare (0.1 to 1.5% of cells; largest at year 3 is 13 to 19); the big plans can release before they are whole; leaves stay 0.9 to 4.4%; the leaf pool is not shown to matter; patchSeason adds little; armour is almost never cracked; pursuit is shown in a unit test but not judged by eye in the world runs; about 30% of matter lies uneaten.

    Verification (chunk 3)

  • pnpm typecheck clean; all 301 Soft Roam tests pass.

  • Full suite under heavy load: 21 files failed on timeouts; each passes when rerun alone. assembly-destruction-evidence passes now that experiments/ is committed.

  • The page loads headless on the bodies start, steps, keeps a moved chunk 3 dial through a reload from the link; only console error is a missing favicon.

  • Chunk 3 reviewed by Codex Sol 6.1 High four times (contract, kernel, surfaces and note, final pass before commit: no blockers).
  • The 23 CodeRabbit threads from the chunk 1/2 review are still open and have not been triaged in this push.

    Chunk 4 (three commits): speeds that differ, eating told from attacking

    Why every moving body went at one speed: a body cruised at its founder's drive gene and nothing else. Every cell carries its own engine and drag, so size did not matter, nothing a body did changed its push, and the founders have only drives 64 and 96. That gave two cruising speeds (0.029 and 0.044 tiles a step), plus stopped and the hunting cap.

  • pace (kernel, optional): a body slows as its cells' mean store fills, to the share when ready to divide; a body with a steer aim never slows. Replaced the planned graze, which the probe showed would touch 3 to 6 bodies at a time.

  • shellThrust (kernel, optional): shell cells push at a share.

  • Founder drive spread (start option driveSpread): founders' drives drawn from half to twice their type's, inherited.

  • The bodies start turns on pace 0.25, shellThrust 0.5 and a spread of 2, with three new dials. Every earlier start's digest is unchanged, and so is the bodies start's with the three switched off (3abb6fb5 against HEAD), now pinned in softroam-pins.

  • Picture: idle mouths are a dusky rose. A feeding mouth turns hot red, with beads running from prey to mouth and a bite mark on the prey. Cells eating from the ground draw in pale motes. At page scale the rose against the hot red and the grazing sparkles show; the beads and bite mark are only visible zoomed in, and ground eating is rare (about 6 of 438 cells a step). The garden picture pins were re-pinned on purpose; the plain picture is unchanged.

  • Contract CONTRACT-4.md, evidence NOTE-4.md, probe experiments/softroam/speed.ts.
  • Evidence (seen seeds 1 to 4): the moving-speed spread (p90/p10) went from 2.5 and 2.7 to 4.6 and 4.4 on seeds 1 and 2. On seed 3 it only reached 3.2, and seed 4 was already 5.3 with everything off. Failed against the bar set beforehand: the family medians no longer separate, because speed now varies within each family instead of between them. The median body is about two thirds as fast, and the population runs about 15% thinner over 24,000 steps.

    Verification: pnpm typecheck is clean and all 313 Soft Roam tests pass. The full suite was killed at the time limit with the machine at load ~380. Its failures are timeouts in packages chunk 4 doesn't touch (sim-ref injury, bodies-v3, lab execution). A Codex Sol 6.1 High review found no kernel defect. Its test-gap findings are fixed; it counted the failed family bar as a blocker, and that bar is reported, not tuned away.

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    <!-- coderabbit-ai-generated:v1 -->

    Summary by CodeRabbit

    New Features
    Added Soft Roam, a standalone simulation with play, pause, single-step, and reset controls.
    Customize the seed, starting scenario, cell types, shell toughness, simulation speed, and rendering style. Adjust simulation settings and share them through a link.
    Explore seasonal light, leaves, hunting, fear, and body behaviors, including body healing and steering, prey-size limits, and crowd-aware targeting.
    See how seasonal conditions affect food patches and upkeep, with a separate food pool available to leaves.
    View the simulation canvas alongside population, family, movement, and other simulation metrics.

    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: treetopdevs Review duration: 475m
    All Vouch review confidence checks passed
    Residual risk 0.23 = Change Risk (0.57) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.57 · 650 lines diff across 8 files
    0.57
    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.388
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #186"
    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: 57% (MEDIUM) · Higher = larger blast radius
    57%
    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: 22.5% · Safe to merge
    22.5%