Skip to content

Add and document the SOP bunker sim with expeditions and save/load - #340

Merged
hyperpolymath merged 9 commits into
mainfrom
coderabbit/document-pull-request-functions/676f663e
Oct 11, 2026
Merged

hyperpolymath merged 9 commits into
mainfrom
coderabbit/document-pull-request-functions/676f663e

Conversation

@coderabbitai

@coderabbitai coderabbitai Bot commented Oct 11, 2026

Copy link
Copy Markdown
Contributor

Add the playable Standard Operating Psychopathy browser game with utility-driven inmate AI, construction and wiring, power and gas simulation, disasters, CRT-style rendering, and audio. Include surface expeditions, newcomer arrivals, autosave/manual save/load and JSON import/export, plus smoke and DOM test harnesses.

Document AI, world, rendering, UI, audio, and persistence functions. Validate world saves, normalize restored statistics, defer expedition returns when the gate is blocked, and bind the development server to localhost.

Scope exceeds the task title “Generate docstrings for PR #339”: the eight-commit range adds the entire game alongside documentation and fixes.

Validation: commit history reports four 28,800-tick smoke runs and a passing DOM boot test. Validation was not rerun for this metadata task.

View coding task

hyperpolymath and others added 8 commits October 10, 2026 22:55
…nt sim

Post-apocalyptic colony sim built from the provided architecture prototype
(Sheltered x Oxygen Not Included x BoomTown), restyled as an NDW-era
institutional surveillance terminal (amber CRT, hard sans, motorik audio).

- Conative Utility AI: affective needs -> scored directives (eat/sleep/dig/
  crank/repair/flee/sabotage), no state machines
- Blackboard cognitive layer (dig orders, hazards, electrical nodes)
- Dual-layer renderer: physical dollhouse + Gunpoint-style Crosslink wiring
- Power graph with components, batteries, relay-hold; O2/gas diffusion
- Economy: farms (food), generator burns dug Oel (power), caches, digging
- Erdbeben events, device damage/repair, trait-driven psychotic breaks
- Headless smoke harness (validated 120-day survival) + jsdom DOM test

Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
- Save/load: versioned JSON Akte (world + inmates + scheduler state),
  localStorage with safe wrapper, autosave every 1200 ticks, manual
  SICHERN/LADEN, file export/import; world.serialize/loadFrom and
  InmateAI.serialize/fromData rebuild the full simulation state.
- Surface expeditions: LUFTSCHLEUSE (airlock, ceiling row only, single)
  sends one subject topside via the new 'expedition' directive; they
  return after 500-800 ticks with weighted loot (Öl/Rationen/Metall/
  Beton) and an 18% injury chance. Airlock panel with candidate select,
  away countdown and signature-cached rendering.
- Colony growth: newcomers arrive at the airlock on a timer; a powered
  FUNKTURM (radio, 30W) halves the interval. MAX_INMATES 6.
- main.js split into headless-safe step() + browser loop; UI guards for
  audio; smoke test gains phase 2 covering airlock placement, expedition
  lifecycle, arrivals, and a save->corrupt->load->continue roundtrip.
- Verified: 4x 28800-tick smoke runs + DOM boot test green.

Co-authored-by: arena-agent <297053741+arena-agent@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Signed-off-by: Jonathan D.A. Jewell <6759885+hyperpolymath@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Signed-off-by: Jonathan D.A. Jewell <6759885+hyperpolymath@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Signed-off-by: Jonathan D.A. Jewell <6759885+hyperpolymath@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Signed-off-by: Jonathan D.A. Jewell <6759885+hyperpolymath@users.noreply.github.com>
@coderabbitai
coderabbitai Bot requested a review from hyperpolymath as a code owner October 11, 2026 17:53
@coderabbitai

coderabbitai Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor Author

Important

Review skipped

This PR was authored by the user configured for CodeRabbit reviews. CodeRabbit does not review PRs authored by this user. It's recommended to use a dedicated user account to post CodeRabbit review feedback.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: cd89edba-5498-415d-a29b-aa799bc6bf84

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

…76f663e

Signed-off-by: Jonathan D.A. Jewell <6759885+hyperpolymath@users.noreply.github.com>
@hyperpolymath
hyperpolymath enabled auto-merge (squash) October 11, 2026 18:00
@hyperpolymath
hyperpolymath merged commit 01657ff into main Oct 11, 2026
22 of 24 checks passed
@hyperpolymath
hyperpolymath deleted the coderabbit/document-pull-request-functions/676f663e branch October 11, 2026 18:01
@coderabbitai

coderabbitai Bot commented Oct 11, 2026

Copy link
Copy Markdown
Contributor Author

Add Carrot credits or activate Agent usage billing to use Autofix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant