Skip to content

lane-y: Red Queen design — MAP-Elites archive over room lineages, candor as adversarial critic - #6

Merged
SuperInstance merged 1 commit into
masterfrom
red-queen-design
Sep 21, 2026
Merged

SuperInstance merged 1 commit into
masterfrom
red-queen-design

Conversation

@SuperInstance

Copy link
Copy Markdown
Owner

What this is

Design-only lane (no implementation). Adds the Red Queen loop design doc + 5 RED acceptance tests that pin the v0.1 contract.

docs/RED-QUEEN-DESIGN.md — MAP-Elites quality-diversity archive over room lineages, with candor as the adversarial critic:

  1. Archive — behavior descriptors from candor readings of commune transcripts: strain mean μ (successor-displacement needle) × re-twist rate ρ, 5×5 grid. Candor signature {shear|re-twist|flat} rides as a derived overlay — seam designed now, wired when candor v0 lands. Cell ownership = lineage survival; displacement = D1 death (sealed, achieved/, becomes breeding parent — never deleted).
  2. Critic loop — candor.critique() returns fitness AND a defect report citing actual transcript line indexes; the report delivers to the room through the existing WAL-fact channel (values-ledger WalFact.transcriptRef). The critic that teaches, not just kills.
  3. Crossing — D2 rules verbatim: two distinct sealed ledgers, hash-verified, weaker-parent-wins with cited lineage, child boots dormant-origin. Archive adds niche exogamy (parents from distinct cells). Flicker refusal at the archive layer: sealed metrics frozen, re-entry only via fresh descendant evidence.
  4. Anti-Goodhart — three concrete attacks + the measurement that catches each: performed twist (probe rotation + held-out windows), niche flooding (novelty gate vs incumbent), report gaming (fitness never consumes report windows).
  5. Smallest first build — one-evening v0.1: three pure never-throwing modules under workers/room-worker/src/red-queen/ (archive, critic, crossing) + JSON persistence.
  6. Acceptance tests — tests/red-queen-acceptance.test.mjs: 5 tests, RED by design, contract-labeled failures; same file goes green on implementation.

All claims cite real files by line: commune-harness.mjs (runMode, A6(c2) flicker rule), values-ledger.ts (entry shape, verifyLedgerAgainstSources, dormant revival), candor.mjs (TwistField law, thresholds, PROBE, needle), D2-generational-inheritance.md (sealed ledger, weaker-wins, lineage.jsonl), midden dream ch.3 (exogamy, understory) + ch.4 §III (performed twist).

Test status

node --test tests/red-queen-acceptance.test.mjs
# tests 5 / pass 0 / fail 5  ← RED by design, contract messages clean

Design lane — failure is the deliverable. Green means the archive is real.

… candor as adversarial critic

Design-only lane (lane-y-red-queen-design). Adds docs/RED-QUEEN-DESIGN.md:
archive behavior descriptors (candor strain mean mu x re-twist rate rho,
5x5 grid), cell ownership = lineage survival with D1 displacement,
critic loop (score kills, defectReport teaches, WAL-fact delivery seam),
D2 crossing under niche exogamy, three anti-Goodhart limits (performed
twist / niche flooding / report gaming) with their measurements, and the
one-evening v0.1 build spec (archive/critic/crossing, pure + never-throws).

tests/red-queen-acceptance.test.mjs pins the contract with 5 RED tests
(dedupe-by-cell, defect report cites line numbers, parent==child refused,
dormant-stays-dormant without fresh evidence, dump round-trips JSON).
All design claims cite commune-harness.mjs, values-ledger.ts, candor.mjs,
D2-generational-inheritance.md, and midden dream chapters by line.
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