feat(cellular): region ticks of up to 4,096 lives for testing (schema 68)
Foundation / checks (checks) (push) Successful in 5s
Foundation / checks (client) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 4s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (network) (push) Successful in 4s
Foundation / checks (postgres) (push) Successful in 5s
Foundation / checks (tsan) (push) Successful in 4s
Foundation / postgres-tools (push) Successful in 31s
Foundation / server-image (push) Successful in 4m29s
Foundation / image (push) Successful in 5m43s
Foundation / checks (checks) (push) Successful in 5s
Foundation / checks (client) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 4s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (network) (push) Successful in 4s
Foundation / checks (postgres) (push) Successful in 5s
Foundation / checks (tsan) (push) Successful in 4s
Foundation / postgres-tools (push) Successful in 31s
Foundation / server-image (push) Successful in 4m29s
Foundation / image (push) Successful in 5m43s
ADR-0182 section 17. The plan's 2,000-organism cap became the rules-12 key region.organism_cap, which was parsed but never enforced; the real bound was max_cellular_tick_lives = 256 (ADR-0106), which rules 13's organism cap could not exceed. The bound is now 4,096, for testing limits only; the DEV tuning file keeps 256. - max_cellular_tick_lives (4,096) bounds the raw region path: step, owner state, batch trace (cellular_batch_bytes_for) and current checkpoint traces. max_cellular_frozen_lives (256) keeps cohort populations, population batches, migration traces and pre-v3 cellular traces, whose database checks are fixed. - Tuning: reproduction.organism_cap and wildlife_cap accept up to 4,096. - Schema 68: the trace checker under the current publishers (cellular_births_v45) accepts 4,096 intents, births and mutations per tick; spawn_wildlife takes up to 256 cells a command. - Region view and portal: the lineage archive's fill (births of 65,536, genomes of 4,096), at which a region stops ticking. - PostgreSQL suite: 256 wildlife spawned in one command, then a 289-life tick published and recovered exactly. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -900,7 +900,7 @@ async function regionPage(region, params) {
|
||||
releaseNote));
|
||||
|
||||
// Actions: wildlife, bubbles, schedules and the command log.
|
||||
const spawnCount = h('input', { type: 'number', min: 1, max: 64, value: 10, class: 'count' });
|
||||
const spawnCount = h('input', { type: 'number', min: 1, max: 256, value: 10, class: 'count' });
|
||||
const spawnReason = reasonInput(), spawnNote = h('div', { class: 'note' });
|
||||
const bubbleCount = h('input', { type: 'number', min: 1, max: 256, value: 20, class: 'count' });
|
||||
const bubbleAmount = amountInputs(), bubbleReason = reasonInput(), bubbleNote = h('div', { class: 'note' });
|
||||
@@ -1495,12 +1495,15 @@ async function regionPage(region, params) {
|
||||
const deposits = Number(raw.deposits_total);
|
||||
const r = rate();
|
||||
k.tick.set(fmtInt(tick), pace.stalled ? `not advancing for ${fmtDuration((now - pace.movedAt) / 1000)}` : `${r.toFixed(1)} ticks/s`, pace.stalled ? 'warn' : '');
|
||||
// The lineage archive never forgets: at its limits the region stops ticking.
|
||||
const archive = raw.archive ? Math.max(Number(raw.archive[0]) / Number(raw.archive[1]), Number(raw.archive[2]) / Number(raw.archive[3])) : 0;
|
||||
const archiveText = raw.archive ? ` · archive ${Math.floor(archive * 100)}% (${fmtInt(raw.archive[0])} births, ${fmtInt(raw.archive[2])} genomes)` : '';
|
||||
if (raw.caps) {
|
||||
// Births stop at the organism cap; wildlife buds stop at the wildlife cap.
|
||||
const cap = Number(raw.caps[0]), wildCap = Number(raw.caps[1]) || cap, lives = players + wild;
|
||||
const full = lives >= cap ? 'bad' : lives >= wildCap ? 'warn' : '';
|
||||
const full = lives >= cap || archive >= 0.95 ? 'bad' : lives >= wildCap || archive >= 0.8 ? 'warn' : '';
|
||||
k.cells.set(`${fmtInt(lives)} / ${fmtInt(cap)}`,
|
||||
`${fmtInt(players)} players · ${fmtInt(wild)} wildlife${wildCap < cap ? ` · wildlife stop at ${fmtInt(wildCap)}` : ''}`,
|
||||
`${fmtInt(players)} players · ${fmtInt(wild)} wildlife${wildCap < cap ? ` · wildlife stop at ${fmtInt(wildCap)}` : ''}${archiveText}`,
|
||||
lives ? full : 'warn', lives / cap, full);
|
||||
} else {
|
||||
k.cells.set(fmtInt(players + wild), `${fmtInt(players)} players · ${fmtInt(wild)} wildlife`, players + wild ? '' : 'warn');
|
||||
|
||||
Reference in New Issue
Block a user