diff --git a/crates/site-builder/data/research_status.json b/crates/site-builder/data/research_status.json new file mode 100644 index 00000000..635d41b2 --- /dev/null +++ b/crates/site-builder/data/research_status.json @@ -0,0 +1,274 @@ +{ + "as_of": "2026-10-01", + "source_table": "AIEN research status table (consolidated), generated 2026-10-01 by SCOUT (LT-TRUTH)", + "source_commits": { + "omega": "38919c8", + "aienos": "4a116e5", + "aien_architecture": "8d24c6d", + "aienos_com": "d43200c" + }, + "evidence_hierarchy": "code > tests > receipts > frozen profiles > qualification records > docs > website prose", + "abbreviations": [ + { "short": "QS", "long": "omega docs/turing/TURING_SCIENTIFIC_QUALIFICATION_STATE.md" }, + { "short": "TY2", "long": "omega docs/turing/TURING_YIELD_TY2_RESULT.md" }, + { "short": "explainer", "long": "aien-architecture explainer (#67)" } + ], + "caveats": [ + "Nothing was built, run or re-scored for this table. \"Receipt exists\" means the file is on main, not that it was rerun.", + "Brownian sealed records are in the private aien-sealed repo and were not read. Those rows rest on omega docs (doc-level evidence)." + ], + "turing_definition": "The Turing measures net held-out explanatory compression: one operational component of machine understanding.", + "allowed_statuses": ["PASS", "FAIL", "INCOMPLETE", "BLOCKED", "PARTIAL", "NOT ESTABLISHED", "NOT STARTED"], + "allowed_ladder_states": ["achieved", "partial", "not achieved", "not attempted"], + "allowed_classes": ["Implemented", "Partially implemented", "Experimental", "Planned", "Research hypothesis"], + "current_level": { + "level": "L2", + "summary": "L2, Brownian scope only, instrument certification", + "outside_scope": "Outside Brownian scope the ceiling is L1.", + "note": "TY-2 does not change the ceiling.", + "meaning": "The scorer behaves as specified on known stochastic cases. It does not mean AIEN discovered anything.", + "limitations": "L2 rests on private sealed records not re-verified here.", + "evidence": "QS sections 1 and 6; QS:114-115; QS written at 62f5ba5, updated at 8a56ace, reconciled 07004a8; main 38919c8" + }, + "ladder": [ + { "level": "L0", "name": "Definition", "state": "achieved", "detail": "Achieved", "basis": "QS:101 \"met\"; definition only" }, + { "level": "L1", "name": "Compression bridge, EXP-001R", "state": "achieved", "detail": "Achieved (tested regime, amended overlap gate, unsigned)", "basis": "QS:102; EXP-001R final_receipt.json" }, + { "level": "L2", "name": "Known stochastic structure, EXP-002A-B-C", "state": "achieved", "detail": "Achieved for Brownian scope only, as instrument certification; doc-level (sealed records unread)", "basis": "QS:103, QS:114" }, + { "level": "L3", "name": "Invariant or unifying structure", "state": "not achieved", "detail": "Not achieved (interventional replication PASS, EXP-002D INCOMPLETE)", "basis": "QS:104" }, + { "level": "L4", "name": "Active experimental choice, EXP-003", "state": "not achieved", "detail": "Not achieved (blocked, not frozen)", "basis": "QS:105" }, + { "level": "L5", "name": "Energy attribution", "state": "partial", "detail": "Partial (protocol and fixture tests; no timed run)", "basis": "QS:106" }, + { "level": "L6", "name": "Turing yield T/J", "state": "not achieved", "detail": "Not achieved (blocked on L5)", "basis": "QS:107" }, + { "level": "L7+", "name": "Sensitivity, replication, multiple domains", "state": "not attempted", "detail": "Not attempted (L7, L8, L9)", "basis": "QS:108-110" } + ], + "attempts": [ + { + "id": "EXP-001", + "beside": "L1", + "outcome": "FAIL", + "summary": "First attempt at the compression bridge. Failed its overlap audit (S2), so no measurement was produced. Kept on the record, not deleted.", + "led_to": "EXP-001R" + } + ], + "turing_rows": [ + { + "id": "CAL-0", + "title": "CAL-0 calibration freeze", + "status": "PASS", + "status_detail": "PASS (freeze receipt TURING_PROFILE_V1_FROZEN=PASS) for EXP-001R; EXP-001 v1.0 freeze also passed, then its experiment failed", + "plain": "The measuring apparatus was locked down before any data was scored, so the rules could not be bent after the fact.", + "scope": "freeze of apparatus, profile v1.1, candidates, blinding", + "claim_level": "none by itself (precondition)", + "receipt": "calibration/experiments/EXP-001R/freeze_receipt.json", + "commit": "freeze C_f 8e6c5acd; receipt commit dee3eda5; PRs #97 45be6c84, #98 990ba326 (v1.0 freeze d3cba292, PR #94)", + "date": "2026-09-30", + "limitations": "Frozen by receipt not git tag (D7); receipts unsigned (D6); candidate and evaluator share one OS user in separate jails (D8); PROTOCOL_CONFORMANCE.md item 50 stale (\"open O3\")", + "next_dependency": "none", + "evidence": "freeze_receipt.json lines 2-4; QS section 2 row CAL-0" + }, + { + "id": "EXP-001", + "title": "EXP-001 compression bridge, first attempt", + "status": "FAIL", + "status_detail": "FAIL, terminal (S2 overlap audit; S1 and S3-S9 NOT_REACHED)", + "plain": "The first attempt failed its own overlap check, so it produced no measurement. The failure is kept on the record.", + "scope": "compression bridge, first attempt", + "claim_level": "none (no measurement produced)", + "receipt": "calibration/experiments/EXP-001/final_receipt.json, overlap_audit.json", + "commit": "result d5c97ce9, PR #95 e605a585", + "date": "2026-09-30", + "limitations": "Gate crumb_digest failed, \"1 shared\". Kept, not deleted", + "next_dependency": "superseded by EXP-001R", + "evidence": "final_receipt.json: verdict FAIL, criterion S2, code OVERLAP" + }, + { + "id": "EXP-001R", + "title": "EXP-001R compression bridge, successor", + "status": "PASS", + "status_detail": "PASS (S1-S9; EXP_001_COMPRESSION_BRIDGE=PASS)", + "plain": "The successor run passed all nine criteria on about 12.4 million events. It used an overlap gate that was rewritten after EXP-001 failed.", + "scope": "successor, profile v1.1, two sealed groups 6,168,907 + 6,199,000 events (12,367,907 total)", + "claim_level": "L1", + "receipt": "calibration/experiments/EXP-001R/final_receipt.json, REPORT.md, scorer_independent.json, uncertainty.json", + "commit": "result 190ff891, PR #99 806a9d6a", + "date": "run 2026-09-30 04:08Z", + "limitations": "Used an AMENDED overlap gate G6 (Turing-profile-v1.1.toml:145) declared before data but written after EXP-001 failed on the old gate. Independent scorer matched 312 of 312 values, but it is a second scorer, not independent replication. Per-crumb bootstrap (D4). Unsigned", + "next_dependency": "L8 replication (not attempted)", + "evidence": "final_receipt.json criteria and notes; QS section 2" + }, + { + "id": "TY-2", + "title": "TY-2 Turing gain", + "status": "PASS", + "status_detail": "PASS (verdict=PASS)", + "headline": "2,559,679.825 bits of Turing gain", + "not_yield": "This is a gain in bits, not a yield. Yield is T/J (Turings per joule), and T/J is not established: no energy was measured.", + "plain": "On held-out data, the candidate model C described the events in about 2.56 million fewer bits than the order-1 baseline B, about 0.4387 bits per event.", + "scope": "held-out predictive compression, Turing Yield profile V0; candidate C (op + previous 4 outcomes) vs baseline B (order-1); fit seeds 1-7, held-out 8-10; 5,834,845 held-out events of crumbline control-learner search events", + "claim_level": "information part of H5 only; sits below the L1 chain (separate profile)", + "receipt": "evidence/TURING_YIELD/ty2_heldout_receipt.txt", + "commit": "scoring code 487de8d7 (TY-1); PR #85 f0dc0af9; verify log PR #88 1b75aa81", + "date": "run 2026-09-29", + "limitations": "Ideal code length only, no decodable bitstream. Verify uses the same tool (self re-derivation, not independent). Not a scientific discovery measure. No energy. Post hoc op+prev1..5 scored higher (+2,722,851.799), not counted. Check: dl_b_ub 7484024867446 minus dl_c_ub 4924345042631 = 2559679824815", + "next_dependency": "H4 then TY-7", + "evidence": "receipt fields t_microbits, dl_b_ub, dl_c_ub, verdict; tools/turing_yield.c:319; src/turing/ty_qrecord.c:343" + }, + { + "id": "EXP-002A", + "title": "EXP-002A Brownian Wave 1", + "status": "PASS", + "status_detail": "PASS (Brownian Wave 1, sealed), doc-level only", + "plain": "Scorer certification on known random-motion cases. Passed under a successor profile; the first profile was blocked.", + "scope": "scorer certification on known stochastic cases; PASS under a successor profile (first profile BLOCKED)", + "claim_level": "contributes to L2", + "receipt": "PRIVATE aien-sealed R3-49, results-v1.3 @6a90109, erratum @6b893de (not read)", + "commit": "profile commitments omega #100-#103, history #104", + "date": "2026-09-30", + "limitations": "Not publicly reproducible until BRN-10 seals; omega does not re-verify sealed records; erratum changed record text, no verdict", + "next_dependency": "BRN-10 seal", + "evidence": "QS:26, QS:45; architecture explainer:27,47-48" + }, + { + "id": "EXP-002B", + "title": "EXP-002B Brownian Wave 1", + "status": "PASS", + "status_detail": "PASS without its Occam curve; Occam curve PASS separately under v1.3; doc-level only", + "plain": "Passed, with its Occam curve passing separately under a later profile. Evidence is at document level only.", + "scope": "scorer certification on known stochastic cases; PASS under a successor profile (first profile BLOCKED)", + "claim_level": "contributes to L2", + "receipt": "PRIVATE aien-sealed R3-49, results-v1.3 @6a90109, erratum @6b893de (not read)", + "commit": "profile commitments omega #100-#103, history #104", + "date": "2026-09-30", + "limitations": "Not publicly reproducible until BRN-10 seals; omega does not re-verify sealed records; erratum changed record text, no verdict", + "next_dependency": "BRN-10 seal", + "evidence": "QS:26; explainer:28-29" + }, + { + "id": "EXP-002C", + "title": "EXP-002C Brownian Wave 1", + "status": "PASS", + "status_detail": "PASS under v1.2; repeated PASS on fresh sealed worlds under v1.3; doc-level only", + "plain": "Passed, then passed again on fresh sealed worlds. Evidence is at document level only.", + "scope": "scorer certification on known stochastic cases; PASS under a successor profile (first profile BLOCKED)", + "claim_level": "contributes to L2", + "receipt": "PRIVATE aien-sealed R3-49, results-v1.3 @6a90109, erratum @6b893de (not read)", + "commit": "profile commitments omega #100-#103, history #104", + "date": "2026-09-30", + "limitations": "Not publicly reproducible until BRN-10 seals; omega does not re-verify sealed records; erratum changed record text, no verdict", + "next_dependency": "BRN-10 seal", + "evidence": "QS:26; explainer:30" + }, + { + "id": "EXP-002D", + "title": "EXP-002D hostile rules", + "status": "INCOMPLETE", + "status_detail": "INCOMPLETE", + "plain": "One hostile rule could not be evaluated with the Wave 1 prediction format. No wrong verdicts on the rules that were evaluated.", + "scope": "one hostile rule not evaluable with the Wave 1 prediction format; 0 wrong verdicts on rules evaluated", + "claim_level": "L3 not met", + "receipt": "aien-sealed (not read)", + "commit": "none", + "date": "2026-09-30", + "limitations": "Wave 1 format cannot evaluate that rule", + "next_dependency": "Wave 2 contract", + "evidence": "QS:27, QS:105; explainer:31,49" + }, + { + "id": "EXP-003", + "title": "EXP-003 active experimental choice", + "status": "BLOCKED", + "status_detail": "BLOCKED, not frozen", + "plain": "Not run. Its contract is still a draft and must wait for the Brownian records to be sealed.", + "scope": "active experimental choice (protocol section near .tex line 760)", + "claim_level": "L4 not met", + "receipt": "none", + "commit": "none", + "date": "n/a", + "limitations": "Wave 2 contract is a DRAFT in aien-sealed PR #1, not accepted or frozen; must seal after BRN-10. Earlier selector kill test FAILED (chooser reframed as record-keeping)", + "next_dependency": "Wave 2 contract acceptance plus BRN-10", + "evidence": "QS:29, QS:105; architecture RESEARCH.md:183" + }, + { + "id": "ENERGY-ATTRIBUTION", + "title": "Physical energy attribution (H4)", + "status": "PARTIAL", + "status_detail": "PARTIAL: protocol pre-registered, code and fixture tests only, no timed run", + "plain": "The plan for measuring energy is written down and the code has fixture tests, but no timed run on real hardware has happened.", + "scope": "TY energy attribution stages 1 and 2", + "claim_level": "L5 partial", + "receipt": "none (no energy file under evidence/)", + "commit": "protocol 99c1f696; boundaries 4386897f; PR #86 071a1e17", + "date": "2026-09-29", + "limitations": "TURING_YIELD_ENERGY_PROTOCOL_V0.md:5 \"PRE-REGISTERED ... before any timed run\"; tests/turing/test_ty_energy*.c are fixtures. Evidence is thinner than \"partial\" suggests", + "next_dependency": "silicon timed run", + "evidence": "QS H4 row; tools/ty_energy_run.sh, tools/ty_energy_reduce.c" + }, + { + "id": "TURING-YIELD-TJ", + "title": "Turing yield T/J (H5 physical part)", + "status": "NOT STARTED", + "status_detail": "NOT STARTED (blocked on H4)", + "plain": "Turings per joule cannot be computed until energy is measured, so this has not started.", + "scope": "n/a", + "claim_level": "L6 not met", + "receipt": "none", + "commit": "none", + "date": "n/a", + "limitations": "TY2 states no energy was measured; T/J (TY-7) uses the denominator in profile section 10. DIRAC-0 reports NOT_RUN", + "next_dependency": "H4", + "evidence": "QS:24; TY2 last bullets; architecture DIRAC-0-SPEC.md:158" + }, + { + "id": "BROWNIAN-CEILING", + "title": "Brownian claim ceiling", + "status": "PARTIAL", + "status_detail": "L2 only, instrument certification; L3 not met", + "plain": "In the Brownian scope the strongest claim is that the instrument behaves as specified on known cases. No report may say AIEN discovered a physical law.", + "scope": "Brownian scope", + "claim_level": "L2", + "receipt": "n/a", + "commit": "n/a", + "date": "2026-10-01", + "limitations": "QS:114 \"behaves as specified on known stochastic cases, not that AIEN discovered anything\". Rule: no report may say AIEN discovered a physical law (explainer:57-59)", + "next_dependency": "EXP-002D, EXP-003, BRN-10, replication", + "evidence": "QS section 6; explainer:7,21,57-59" + }, + { + "id": "GENERAL-DISCOVERY", + "title": "General scientific discovery claim", + "status": "NOT ESTABLISHED", + "status_detail": "NOT ESTABLISHED", + "plain": "No general claim of scientific discovery is made. Outside the Brownian scope the ceiling stays at L1.", + "scope": "all", + "claim_level": "none; outside Brownian scope the ceiling stays L1", + "receipt": "none", + "commit": "none", + "date": "n/a", + "limitations": "L9 (multiple domains) not attempted; TY-2 does not change ceiling. Rev 6 claim A proved on paper, B open conjecture, C untested hypothesis", + "next_dependency": "L3 to L9", + "evidence": "QS section 1 and 6; DISCOVERY_CURRENT_STATE.md:18-20" + } + ], + "implementation_rows": [ + { "id": "Resident World / reactions", "class": "Implemented", "status_detail": "Implemented (host reference)", "scope": "one shared object world; reactions wake on object and field-mask change; budgets, quarantine, causal crumbs", "claim_level": "host reference only", "receipt": "tests/runtime/rx_r12_resident.c, rx_r13_living.c, rx_r14_recovery.c; evidence/R16/22d7a79a...json (R16_ORCHESTRATOR_RETIRED=PASS); evidence/R15/", "commit": "last touch bc60f86; R16 omega#112 3dd5eaa", "date": "2026-09/10", "limitations": "R16 merged with evidence-immutable CI failing (inventory.json edited in place); R15 G8 attempt 1 FAIL 0.832, attempt 2 PASS file exists (value not verified); whole-product orchestrator retirement deferred", "next_dependency": "runtime program lanes", "evidence": "src/runtime/rx_world.h:2-8,73" }, + { "id": "Lifecycle modeling", "class": "Implemented", "status_detail": "Implemented (host-only)", "scope": "explicit state machine of wake/admit/run/commit/invalidate/fail/reclaim/cancel; SPEC, AS_BUILT, mutant profiles", "claim_level": "host only", "receipt": "tests/model/model_check.c, receipt.sh via make test-proof; no LG receipt committed under evidence/", "commit": "PR #174 0d8b057", "date": "n/a", "limitations": "4 reactions in fixed tree; CPU only; no CANCEL against rx_world", "next_dependency": "store LG receipt", "evidence": "tests/model/world_model.h:1-25; mk/proof.mk:9,26" }, + { "id": "State-space exploration", "class": "Implemented", "status_detail": "Implemented (bounded)", "scope": "BFS over reachable model states, shortest violation trace", "claim_level": "test code, not shipped runtime", "receipt": "via make test-proof; counterexample replays I2, I4 in world_diff.c", "commit": "0d8b057", "date": "n/a", "limitations": "bounded by WM_EXT_MAX and WM_TICK_MAX; no stored run result", "next_dependency": "none stated", "evidence": "tests/model/world_explore.c:1-6" }, + { "id": "Differential checking", "class": "Implemented", "status_detail": "Implemented (host-only)", "scope": "AS_BUILT model vs real rx_world, all op sequences to depth N; TSan target", "claim_level": "host only", "receipt": "make test-proof logs; no committed receipt", "commit": "0d8b057", "date": "n/a", "limitations": "depth bounded; settled states only; visor/search differential unchecked", "next_dependency": "none stated", "evidence": "tests/model/world_diff.c:1-30,701-702" }, + { "id": "Semantic / program artifacts: program id", "class": "Implemented", "status_detail": "Implemented, narrow", "scope": "program identity v2 = canonical body + contract hash; unary u64 ADD/SUB/MUL/AND/OR chains", "claim_level": "narrow", "receipt": "tests/program/test_program_id.c; evidence/PROGRAM_ID/ (2 receipts)", "commit": "omega#75; 9d17fcc", "date": "2026-09-29", "limitations": "cannot name matvec or Omega-X; omega_program_realize declared (omega_program.h:117) with no definition per 2026-09-29 audit (not rechecked); M6 self-host is a fixed output", "next_dependency": "general compiler", "evidence": "src/omega_program.h:41,44,117" }, + { "id": "Semantic / program artifacts: action graph IR", "class": "Implemented", "status_detail": "Implemented", "scope": "goal to typed graph to resident reactions; workflow fusion into MetaSkills", "claim_level": "host", "receipt": "tests/runtime/rx_action_graph.c, rx_workflow_fusion.c; evidence/ACTION_GRAPH/, WORKFLOW_FUSION/", "commit": "omega#51 df0ce76, #61 ceb68d6; d9ed2e8", "date": "2026-09", "limitations": "fusion means fewer reactions and CPU, not faster", "next_dependency": "none stated", "evidence": "src/runtime/rx_graph.h:181-196" }, + { "id": "Verification infrastructure", "class": "Implemented", "status_detail": "Implemented", "scope": "per-milestone gate scripts, content-addressed receipts, evidence immutability CI", "claim_level": "host", "receipt": "evidence/omega_verify_qualification_receipt.json; evidence/SHA256SUMS; .github/workflows/evidence-immutable.yml", "commit": "5c23ec9", "date": "n/a", "limitations": "no shared receipt schema across repos; immutability check bypassed once (R16); no common harness", "next_dependency": "shared schema", "evidence": "src/omega_evidence.h:48-74" }, + { "id": "Search traces (M23)", "class": "Implemented", "status_detail": "Implemented (corpus half)", "scope": "records every candidate the program search touches; byte-identical replay; sealed holdout commitment", "claim_level": "corpus only", "receipt": "evidence/M23/receipts/m23-corpus-ee498211...json PASS (3072 steps, commit 12b4d6e)", "commit": "a0e59f4", "date": "n/a", "limitations": "training half waits on M22; hooks off by default; nothing consumes the corpus", "next_dependency": "M22", "evidence": "spec/searchtrace/M23_SEARCH_TRACE_CORPUS_V1.md:1-30" }, + { "id": "CEGIS", "class": "Partially implemented", "status_detail": "Partially implemented, unverified (treat as not established)", "scope": "only the word appears in synthesis path; no dedicated module or test found", "claim_level": "none", "receipt": "none", "commit": "none", "date": "n/a", "limitations": "scout did not read the matching lines", "next_dependency": "read src/omega_synthesis.c, omega_realize_synth.c", "evidence": "grep hits in those two files" }, + { "id": "Bayesian cost prediction (belief/estimation)", "class": "Experimental", "status_detail": "Experimental", "scope": "Kalman filter, mixtures, predictors, v4 families vs recorded signals", "claim_level": "experimental", "receipt": "docs/estimation/receipts/est23-v1 FAIL, est23-v2 FAIL, est3c-v3, est-v4/RESULT.md (family G1 lag PASS, 3 void attempts kept)", "commit": "omega#105; est-v4 PR #153 6ff7c30", "date": "2026-09-30/10-01", "limitations": "v1 and v2 FAIL on record (heavy tails, idle regime); v4 selects among screen-passers on one-step log score; EST-5 uncertainty-aware cost model not found as code; rx_costmodel is matvec only. Architecture: EST-3 v1-v3 FAIL, v4 no verdict, EST-4..10 blocked", "next_dependency": "declared loaded period; EST-5", "evidence": "docs/estimation/EST3C_FORENSICS.md:3,97-119; est-v4/RESULT.md" }, + { "id": "Capabilities / authority", "class": "Implemented", "status_detail": "Implemented (with conflict)", "scope": "capability roots, 64-bit generations, capability graph, skill router; aienos C authority with containment", "claim_level": "host", "receipt": "tests/runtime/rx_capability_graph.c, rx_capability_query.c, tests/effect/test_effect_cap64.c; evidence/CAPABILITY_QUERY, EFFECT_CAP64; aienos native/capability tests; 7 Rust tests", "commit": "omega#53 670bf98, #71 8e7a445", "date": "2026-09", "limitations": "Rust and C authorities coexist (CONFLICTING per audit); Effect Broker partial (Rust only); machine identity has 3 shapes", "next_dependency": "pick one authority", "evidence": "src/runtime/rx_capq.h:227-263; aienos_cap.h:70-91" }, + { "id": "Evidence receipts", "class": "Partially implemented", "status_detail": "Partially implemented", "scope": "digest-named JSON receipts, run commit and dirty flag; aienos Rust evidence tool (capture, verify, rollback)", "claim_level": "partial", "receipt": "evidence/*.json; aienos ck_gates_*.json; 36 Rust tests in aienos-evidence", "commit": "5c23ec9", "date": "n/a", "limitations": "no shared schema; BuildIdentity planned (TRUST-1), not code", "next_dependency": "shared schema, BuildIdentity", "evidence": "src/omega_evidence.h:48-74; TURING_CURRENT_STATE.md rows Provenance, BuildIdentity" }, + { "id": "Turing measurement machinery", "class": "Implemented", "status_detail": "Implemented (instrument); science partial", "scope": "field, selector, replay, compression stream (tc_*), Turing Yield units (ty_*) including energy attribution code", "claim_level": "instrument", "receipt": "tests/turing/test_turing.c, test_tc.c, test_ty_energy.c, test_tc_eval.sh; ty2_heldout_receipt.txt", "commit": "a0e59f4", "date": "n/a", "limitations": "science state is in Table 1; chooser failed kill test, now record-keeping only; TURING not wired into live runtime (QS:31 NOT STARTED)", "next_dependency": "live wiring, H4", "evidence": "QS:19-29; TY2:1-17" }, + { "id": "Cortex components", "class": "Implemented", "status_detail": "Implemented (host reference, omega C) plus Rust twin", "scope": "omega: append-only digest-chained store, journal, single writer, promote, recall, World recording (single process). aienos: Rust store, record, status, verification", "claim_level": "host, single process; \"implemented, not qualified\" per architecture", "receipt": "tests/runtime/rx_cortex_canon.c; 2 Rust tests in aienos-cortex store.rs", "commit": "omega 00160d9 (M20)", "date": "n/a", "limitations": "two implementations (C vs Rust, CONFLICTING); thin Rust tests; no Visor consumer; predictive memory (EST-8) PLANNED", "next_dependency": "resolve duplicate, qualification", "evidence": "rx_cortex.h:1-14,170-225; ROADMAP.md:313" }, + { "id": "General causal discovery", "class": "Research hypothesis", "status_detail": "Research hypothesis", "scope": "none", "claim_level": "none", "receipt": "none", "commit": "none", "date": "n/a", "limitations": "grep \"causal discovery\" in omega: 0 hits; only \"causal crumbs\" (provenance)", "next_dependency": "n/a", "evidence": "omega grep" }, + { "id": "Full active experimentation", "class": "Research hypothesis", "status_detail": "Research hypothesis (blocked)", "scope": "appears only as EXP-003 spec", "claim_level": "none", "receipt": "none", "commit": "none", "date": "n/a", "limitations": "policy interface in protocol .tex:20,45,1281 only", "next_dependency": "EXP-003", "evidence": "QS:29" }, + { "id": "Equality saturation", "class": "Research hypothesis", "status_detail": "Research hypothesis", "scope": "none", "claim_level": "none", "receipt": "none", "commit": "none", "date": "n/a", "limitations": "only prior-art text, no e-graph code", "next_dependency": "n/a", "evidence": "docs/turing/TURING_PRIOR_ART_MATRIX.md:25,55,147" }, + { "id": "General representation discovery", "class": "Research hypothesis", "status_detail": "Research hypothesis", "scope": "none", "claim_level": "none", "receipt": "none", "commit": "none", "date": "n/a", "limitations": "0 hits; related only fixed realization families src/algebra/realize_*.c and narrow omega_discovery.c (not read in detail)", "next_dependency": "n/a", "evidence": "omega grep" }, + { "id": "SUSY / Zeta rediscovery", "class": "Research hypothesis", "status_detail": "Research hypothesis", "scope": "none", "claim_level": "none", "receipt": "none", "commit": "none", "date": "n/a", "limitations": "0 hits in omega", "next_dependency": "n/a", "evidence": "omega grep" }, + { "id": "Full Physics Zero", "class": "Planned", "status_detail": "Planned", "scope": "specification and plan only; M35 PHYSICS_ZERO_REAL_LAB PLANNED; no AIEN-P0 clean lineage", "claim_level": "none", "receipt": "none", "commit": "none", "date": "n/a", "limitations": "README.md:30 lists it as spec/plan only", "next_dependency": "M35", "evidence": "README.md:30; QS:92; architecture ROADMAP.md:74" }, + { "id": "Self-accelerating RSI via measured abstraction", "class": "Planned", "status_detail": "Planned (doctrine term)", "scope": "no code symbol", "claim_level": "none", "receipt": "none", "commit": "none", "date": "n/a", "limitations": "RSI promotion discipline is spec only; full RSI integration out of scope for R16", "next_dependency": "later phases", "evidence": "TURING_CURRENT_STATE.md:56; spec/path-semantic-object.md:462-463; docs/r16-operator-brief.md:532" } + ] +} diff --git a/crates/site-builder/src/components/evidence.rs b/crates/site-builder/src/components/evidence.rs index 153f18f2..a16702eb 100644 --- a/crates/site-builder/src/components/evidence.rs +++ b/crates/site-builder/src/components/evidence.rs @@ -1,13 +1,17 @@ use maud::{html, Markup}; +use super::research_status as rs; + pub fn render_evidence() -> Markup { // Every figure below traces to a merged public record, checked against // github.com/aien-dev on 2026-10-01 before publication: // Gate 14: aien-dev/omega PR #111, merged 2026-09-30 (CDT), // combined receipt binding Omega 8024e9a + Physics // e95e3ed, 230 checks, 0 failures. - // Turing yield: aien-dev/omega PR #88, merged 2026-09-29, - // TY-2 verify log re-verified, T = 2,559,679.825 bits. + // TY-2 card: every field except environment and URL is read from + // data/research_status.json (row TY-2). It is a Turing + // gain in bits, not a yield; the verify log in omega + // PR #88 is a self re-derivation with the same tool. // C kernel: aien-dev/aienos PR #194 (UEFI boot, QEMU) and // PR #195 (NVMe, ARGUS, sealed Store), 2026-10-01. // M5 NOT_QUALIFIED: aien-dev/aienos PR #187, merged 2026-09-30 (CDT), @@ -30,16 +34,16 @@ pub fn render_evidence() -> Markup { "aien-dev/omega · PR #111", ), ( - "VERIFIED", - "badge-blue", - "T = 2,559,679.825 bits", - "Turing yield, re-verified end to end", - "The TY-2 verification log, checked again from the public record: a measured quantity of machine understanding in the project's own unit, reproducible by anyone.", - "2026-09-29", + rs::ty2_status(), + "badge-green", + rs::ty2_headline(), + rs::ty2_title(), + rs::ty2_plain(), + rs::ty2_date(), "Omega verification suite, turing-yield CI on main", - "TY-2 verify log re-verification", - "The recorded Turing yield reproduces exactly from the public log under the frozen profile.", - "Discovery. That is the job of the EXP-002 experiment series, which is still running.", + rs::ty2_receipt(), + rs::ty2_scope(), + rs::ty2_limitations(), "https://github.com/aien-dev/omega/pull/88", "aien-dev/omega · PR #88", ), diff --git a/crates/site-builder/src/components/mod.rs b/crates/site-builder/src/components/mod.rs index eda1948b..edc4efa7 100644 --- a/crates/site-builder/src/components/mod.rs +++ b/crates/site-builder/src/components/mod.rs @@ -8,6 +8,7 @@ pub mod install; pub mod matrix; pub mod navbar; pub mod research; +pub mod research_status; pub mod status; pub mod story; pub mod terminal; diff --git a/crates/site-builder/src/components/research.rs b/crates/site-builder/src/components/research.rs index e41912a4..29516a60 100644 --- a/crates/site-builder/src/components/research.rs +++ b/crates/site-builder/src/components/research.rs @@ -1,10 +1,12 @@ use maud::{html, Markup, PreEscaped}; +use super::research_status as rs; + pub fn render_research() -> Markup { let papers = [ ( "Computing Machinery and Understanding", - "The formal paper. The Turing is defined, the measurement protocol is frozen, and the first measurements are published with sealed data and receipts anyone can recompute.", + rs::paper_note(), "Formal paper", "/research/computing-machinery-and-understanding", "Read the paper", @@ -61,7 +63,9 @@ pub fn render_research() -> Markup { "One Turing is one bit of net held-out description-length improvement: a short explanation that predicts things it has never seen earns Turings. Guessing earns nothing. Memorizing earns nothing, because the test data is new." } p style="color: var(--text-secondary); font-size: 15px; line-height: 1.6; margin-bottom: 20px;" { - "It is the meter this whole project runs on, and the first real measurement is already on the books." + (rs::current_level_sentence()) + " " + a href="/research/status/" style="color: var(--accent-green); font-weight: 600;" { "See the full research ladder." } } div style="display: flex; gap: 12px; flex-wrap: wrap;" { a href="/turing/" style="background: var(--accent-green); color: var(--bg-base); border-radius: 4px; padding: 8px 16px; font-family: var(--font-mono); font-size: 13px; font-weight: 700;" { diff --git a/crates/site-builder/src/components/research_status.rs b/crates/site-builder/src/components/research_status.rs new file mode 100644 index 00000000..b5cb103b --- /dev/null +++ b/crates/site-builder/src/components/research_status.rs @@ -0,0 +1,1001 @@ +//! The canonical research status source for the site. +//! +//! Every research status shown on aienos.com that is rendered by this +//! builder comes from one data file, `data/research_status.json`, which +//! holds the rows of the consolidated research status table word for word. +//! The file is compiled in with `include_str!` and parsed with serde_json, +//! then validated. A malformed file, an unknown status word, or a ladder +//! that contradicts its own current level makes the build and the tests +//! fail. Statuses change when the evidence changes, not when the copy does. + +use std::sync::OnceLock; + +use maud::{html, Markup}; +use serde::Deserialize; + +/// The raw data file, compiled into the binary. +pub const RAW: &str = include_str!("../../data/research_status.json"); + +/// The only status words a Turing row may carry. +pub const ALLOWED_STATUSES: [&str; 7] = [ + "PASS", + "FAIL", + "INCOMPLETE", + "BLOCKED", + "PARTIAL", + "NOT ESTABLISHED", + "NOT STARTED", +]; + +/// The only states a ladder step may carry. +pub const ALLOWED_LADDER_STATES: [&str; 4] = + ["achieved", "partial", "not achieved", "not attempted"]; + +/// The only classes an implementation row may carry, in display order. +pub const ALLOWED_CLASSES: [&str; 5] = [ + "Implemented", + "Partially implemented", + "Experimental", + "Planned", + "Research hypothesis", +]; + +/// The ladder levels, in order, exactly as the protocol defines them. +pub const LADDER_LEVELS: [&str; 8] = ["L0", "L1", "L2", "L3", "L4", "L5", "L6", "L7+"]; + +#[derive(Debug, Clone, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct StatusData { + pub as_of: String, + pub source_table: String, + pub source_commits: SourceCommits, + pub evidence_hierarchy: String, + pub abbreviations: Vec, + pub caveats: Vec, + pub turing_definition: String, + pub allowed_statuses: Vec, + pub allowed_ladder_states: Vec, + pub allowed_classes: Vec, + pub current_level: CurrentLevel, + pub ladder: Vec, + pub attempts: Vec, + pub turing_rows: Vec, + pub implementation_rows: Vec, +} + +#[derive(Debug, Clone, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct SourceCommits { + pub omega: String, + pub aienos: String, + pub aien_architecture: String, + pub aienos_com: String, +} + +#[derive(Debug, Clone, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct Abbreviation { + pub short: String, + pub long: String, +} + +#[derive(Debug, Clone, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct CurrentLevel { + pub level: String, + pub summary: String, + pub outside_scope: String, + pub note: String, + pub meaning: String, + pub limitations: String, + pub evidence: String, +} + +#[derive(Debug, Clone, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct LadderStep { + pub level: String, + pub name: String, + pub state: String, + pub detail: String, + pub basis: String, +} + +#[derive(Debug, Clone, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct Attempt { + pub id: String, + pub beside: String, + pub outcome: String, + pub summary: String, + pub led_to: String, +} + +#[derive(Debug, Clone, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct TuringRow { + pub id: String, + pub title: String, + pub status: String, + pub status_detail: String, + pub plain: String, + #[serde(default)] + pub headline: Option, + #[serde(default)] + pub not_yield: Option, + pub scope: String, + pub claim_level: String, + pub receipt: String, + pub commit: String, + pub date: String, + pub limitations: String, + pub next_dependency: String, + pub evidence: String, +} + +#[derive(Debug, Clone, Deserialize)] +#[serde(deny_unknown_fields)] +pub struct ImplementationRow { + pub id: String, + pub class: String, + pub status_detail: String, + pub scope: String, + pub claim_level: String, + pub receipt: String, + pub commit: String, + pub date: String, + pub limitations: String, + pub next_dependency: String, + pub evidence: String, +} + +impl StatusData { + pub fn turing_row(&self, id: &str) -> Option<&TuringRow> { + self.turing_rows.iter().find(|r| r.id == id) + } + + pub fn implementation_row(&self, id: &str) -> Option<&ImplementationRow> { + self.implementation_rows.iter().find(|r| r.id == id) + } + + pub fn step(&self, level: &str) -> Option<&LadderStep> { + self.ladder.iter().find(|s| s.level == level) + } +} + +/// Parse and validate a data file. Used for the compiled-in file and, +/// in tests, for deliberately broken copies. +pub fn parse(raw: &str) -> Result { + if raw.contains('\u{2014}') || raw.contains('\u{2013}') { + return Err("research status data contains an em dash or en dash".to_string()); + } + let data: StatusData = + serde_json::from_str(raw).map_err(|e| format!("research status data does not parse: {e}"))?; + validate(&data)?; + Ok(data) +} + +/// Structural and honesty checks on the data. Any failure stops the build. +pub fn validate(d: &StatusData) -> Result<(), String> { + if d.allowed_statuses != ALLOWED_STATUSES { + return Err("allowed_statuses in the data file differs from the fixed set".to_string()); + } + if d.allowed_ladder_states != ALLOWED_LADDER_STATES { + return Err("allowed_ladder_states in the data file differs from the fixed set".to_string()); + } + if d.allowed_classes != ALLOWED_CLASSES { + return Err("allowed_classes in the data file differs from the fixed set".to_string()); + } + + let levels: Vec<&str> = d.ladder.iter().map(|s| s.level.as_str()).collect(); + if levels != LADDER_LEVELS { + return Err(format!("ladder levels must be exactly {:?}, found {:?}", LADDER_LEVELS, levels)); + } + for s in &d.ladder { + if !ALLOWED_LADDER_STATES.contains(&s.state.as_str()) { + return Err(format!("ladder step {} has unknown state {:?}", s.level, s.state)); + } + } + + // The stated current level must be the top of the unbroken run of + // achieved steps from L0. A partial step above it does not count. + let mut top: Option<&str> = None; + for s in &d.ladder { + if s.state == "achieved" { + top = Some(s.level.as_str()); + } else { + break; + } + } + if top != Some(d.current_level.level.as_str()) { + return Err(format!( + "current_level {} does not match the highest unbroken achieved step {:?}", + d.current_level.level, top + )); + } + // No step above a gap may claim to be achieved. + let first_gap = d.ladder.iter().position(|s| s.state != "achieved"); + if let Some(g) = first_gap { + if let Some(s) = d.ladder[g..].iter().find(|s| s.state == "achieved") { + return Err(format!("ladder step {} is marked achieved above an unachieved step", s.level)); + } + } + + let mut seen: Vec<&str> = Vec::new(); + for r in &d.turing_rows { + if seen.contains(&r.id.as_str()) { + return Err(format!("turing row {} appears more than once", r.id)); + } + seen.push(&r.id); + if !ALLOWED_STATUSES.contains(&r.status.as_str()) { + return Err(format!("turing row {} has status {:?} outside the allowed set", r.id, r.status)); + } + } + + let mut seen_impl: Vec<&str> = Vec::new(); + for r in &d.implementation_rows { + if seen_impl.contains(&r.id.as_str()) { + return Err(format!("implementation row {} appears more than once", r.id)); + } + seen_impl.push(&r.id); + if !ALLOWED_CLASSES.contains(&r.class.as_str()) { + return Err(format!("implementation row {} has class {:?} outside the allowed set", r.id, r.class)); + } + } + + for a in &d.attempts { + let row = d + .turing_row(&a.id) + .ok_or_else(|| format!("attempt {} has no matching turing row", a.id))?; + if row.status != a.outcome { + return Err(format!("attempt {} outcome {} disagrees with its row status {}", a.id, a.outcome, row.status)); + } + if d.step(&a.beside).is_none() { + return Err(format!("attempt {} sits beside unknown level {}", a.id, a.beside)); + } + if d.turing_row(&a.led_to).is_none() { + return Err(format!("attempt {} leads to unknown row {}", a.id, a.led_to)); + } + } + Ok(()) +} + +/// The compiled-in data, parsed once. Panics (failing the build run and +/// every test that touches it) if the file is broken. +pub fn data() -> &'static StatusData { + static DATA: OnceLock = OnceLock::new(); + DATA.get_or_init(|| parse(RAW).unwrap_or_else(|e| panic!("{e}"))) +} + +fn ty2() -> &'static TuringRow { + data().turing_row("TY-2").expect("TY-2 row missing from research status data") +} + +// ------------------------------------------------------------------ +// Lookups used by the older hand-written components (status, evidence, +// research). They return &'static str so those components keep their +// existing shapes. +// ------------------------------------------------------------------ + +pub fn ty2_status() -> &'static str { + ty2().status.as_str() +} +pub fn ty2_title() -> &'static str { + ty2().title.as_str() +} +pub fn ty2_headline() -> &'static str { + ty2().headline.as_deref().expect("TY-2 row needs a headline") +} +pub fn ty2_plain() -> &'static str { + ty2().plain.as_str() +} +pub fn ty2_date() -> &'static str { + ty2().date.as_str() +} +pub fn ty2_receipt() -> &'static str { + ty2().receipt.as_str() +} +pub fn ty2_scope() -> &'static str { + ty2().scope.as_str() +} +pub fn ty2_limitations() -> &'static str { + ty2().limitations.as_str() +} + +/// Map an implementation class onto the homepage layer vocabulary +/// (IMPLEMENTED, QUALIFIED, EXPERIMENTAL, BLOCKED, PLANNED). Never maps +/// anything to QUALIFIED: no row in the table carries that word. +pub fn layer_status_for_class(class: &str) -> &'static str { + match class { + "Implemented" => "IMPLEMENTED", + "Partially implemented" | "Experimental" => "EXPERIMENTAL", + _ => "PLANNED", + } +} + +fn instrument_row(d: &StatusData) -> &ImplementationRow { + d.implementation_row("Turing measurement machinery") + .expect("Turing measurement machinery row missing") +} + +/// Homepage layer status for the Turing instrument, from a given data set. +pub fn turing_instrument_status_for(d: &StatusData) -> &'static str { + layer_status_for_class(&instrument_row(d).class) +} + +pub fn turing_instrument_status() -> &'static str { + turing_instrument_status_for(data()) +} + +/// One sentence for the homepage layer list: the instrument row plus the +/// current level, its limits and the TY-2 gain, all from a given data set. +pub fn turing_instrument_note_for(d: &StatusData) -> String { + let row = instrument_row(d); + let t = d.turing_row("TY-2").expect("TY-2 row missing from research status data"); + format!( + "{}. Current level: {}. {} {} TY-2 recorded {}. {}", + row.status_detail, + d.current_level.summary, + d.current_level.limitations, + d.current_level.outside_scope, + t.headline.as_deref().unwrap_or(""), + t.not_yield.as_deref().unwrap_or("") + ) + .trim_end() + .to_string() +} + +pub fn turing_instrument_note() -> &'static str { + static NOTE: OnceLock = OnceLock::new(); + NOTE.get_or_init(|| turing_instrument_note_for(data())) +} + +/// Experiment roll call for the homepage layer list, e.g. +/// "EXP-001 FAIL, EXP-001R PASS, ... EXP-003 BLOCKED." +pub fn experiments_note_for(d: &StatusData) -> String { + let parts: Vec = d + .turing_rows + .iter() + .filter(|r| r.id.starts_with("EXP-")) + .map(|r| { + if r.status_detail.contains("doc-level") { + format!("{} {} (doc-level)", r.id, r.status) + } else { + format!("{} {}", r.id, r.status) + } + }) + .collect(); + format!("{}. Failures stay on the record.", parts.join(", ")) +} + +pub fn experiments_note() -> &'static str { + static NOTE: OnceLock = OnceLock::new(); + NOTE.get_or_init(|| experiments_note_for(data())) +} + +/// The research paper card line on the homepage. +pub fn paper_note() -> &'static str { + static NOTE: OnceLock = OnceLock::new(); + NOTE.get_or_init(|| { + let d = data(); + format!("The formal paper. {} Current level: {}.", d.turing_definition, d.current_level.summary) + }) +} + +/// The current level in one sentence, for embedding in other pages. +pub fn current_level_sentence() -> &'static str { + static NOTE: OnceLock = OnceLock::new(); + NOTE.get_or_init(|| { + let c = &data().current_level; + format!("Current level: {}. {} {}", c.summary, c.outside_scope, c.note) + }) +} + +// ------------------------------------------------------------------ +// Rendering +// ------------------------------------------------------------------ + +fn slug(s: &str) -> String { + let mut out = String::new(); + for ch in s.chars() { + if ch.is_ascii_alphanumeric() { + out.push(ch.to_ascii_lowercase()); + } else if !out.ends_with('-') { + out.push('-'); + } + } + out.trim_matches('-').to_string() +} + +fn badge_modifier(status: &str) -> &'static str { + match status { + "PASS" => "pass", + "FAIL" => "fail", + "INCOMPLETE" => "incomplete", + "BLOCKED" => "blocked", + "PARTIAL" => "partial", + "NOT ESTABLISHED" => "not-established", + "NOT STARTED" => "not-started", + _ => "unknown", + } +} + +fn badge(status: &str) -> Markup { + html! { + span class=(format!("rs-badge rs-badge--{}", badge_modifier(status))) { + (status) + } + } +} + +/// The research ladder as a staircase. The list is in reading order +/// L0 to L7+ for screen readers; CSS draws it climbing upward. +pub fn render_ladder(d: &StatusData) -> Markup { + let current = d.current_level.level.as_str(); + html! { + div class="rs-ladder" { + p class="rs-current" { + strong { "Current level: " (d.current_level.summary) "." } + " " (d.current_level.outside_scope) " " (d.current_level.note) + } + p class="rs-current-meaning" { (d.current_level.meaning) } + p class="rs-ladder-hint" { "Read from the bottom up. Each step rests on the one below it. Filled steps are achieved, half-filled steps are partial, hollow steps are not achieved." } + ol class="rs-stairs" { + @for (i, step) in d.ladder.iter().enumerate() { + li class=(format!("rs-step rs-step--{}", slug(&step.state))) data-level=(step.level) data-state=(step.state) style=(format!("--i: {};", i)) { + span class="rs-step-mark" aria-hidden="true" {} + div class="rs-step-body" { + div class="rs-step-head" { + span class="rs-step-level" { (step.level) } + span class="rs-step-name" { (step.name) } + @if step.level == current { + span class="rs-here" { "Current level" } + } + } + p class="rs-step-state" { (step.state) } + p class="rs-step-detail" { (step.detail) } + p class="rs-step-basis" { "Evidence: " (step.basis) } + @for a in d.attempts.iter().filter(|a| a.beside == step.level) { + div class="rs-attempt" data-attempt=(a.id) { + div class="rs-attempt-head" { + (badge(&a.outcome)) + strong { (a.id) } + span { "failed attempt, kept on the record" } + } + p { (a.summary) " Led to " (a.led_to) "." } + } + } + } + } + } + } + } + } +} + +/// One card per Turing row. +pub fn render_cards(d: &StatusData) -> Markup { + html! { + div class="rs-cards" { + @for r in &d.turing_rows { + article class=(format!("rs-card rs-card--{}", badge_modifier(&r.status))) id=(format!("rs-{}", slug(&r.id))) data-row=(r.id) data-status=(r.status) { + div class="rs-card-top" { + (badge(&r.status)) + span class="rs-card-id" { (r.id) } + } + h3 class="rs-card-title" data-role="result-label" { (r.title) } + @if let Some(h) = &r.headline { + p class="rs-card-headline" data-role="result-label" { (h) } + } + @if let Some(n) = &r.not_yield { + p class="rs-card-callout" { (n) } + } + p class="rs-card-plain" { (r.plain) } + dl class="rs-facts" { + div { dt { "Status" } dd { (r.status_detail) } } + div { dt { "Scope" } dd { (r.scope) } } + div { dt { "Claim level" } dd { (r.claim_level) } } + div { dt { "Limitations" } dd { (r.limitations) } } + div { dt { "Next dependency" } dd { (r.next_dependency) } } + div { dt { "Evidence" } dd class="rs-mono" { (r.evidence) } } + div { dt { "Receipt" } dd class="rs-mono" { (r.receipt) } } + div { dt { "Commit" } dd class="rs-mono" { (r.commit) } } + div { dt { "Date" } dd { (r.date) } } + } + } + } + } + } +} + +fn class_blurb(class: &str) -> &'static str { + match class { + "Implemented" => "Code and tests exist. Each entry says how far that goes.", + "Partially implemented" => "Some of it exists. The missing part is named.", + "Experimental" => "Being tried. Results so far, including failures, are on the record.", + "Planned" => "Written down as a plan or specification. No code yet.", + "Research hypothesis" => "Not built. An idea to test, not a feature.", + _ => "", + } +} + +/// The implementation list, grouped by class. Research hypotheses get +/// their own visibly different group. +pub fn render_implementation(d: &StatusData) -> Markup { + html! { + div class="rs-impl" { + @for class in ALLOWED_CLASSES { + @let rows = d.implementation_rows.iter().filter(|r| r.class == class).collect::>(); + @if !rows.is_empty() { + section class=(format!("rs-group rs-group--{}", slug(class))) data-class=(class) { + h3 class="rs-group-title" { (class) span class="rs-group-count" { " (" (rows.len()) ")" } } + p class="rs-group-blurb" { (class_blurb(class)) } + ul class="rs-impl-list" { + @for r in &rows { + li class="rs-impl-item" data-impl=(r.id) { + div class="rs-impl-head" { + span class="rs-impl-name" { (r.id) } + span class="rs-impl-status" { (r.status_detail) } + } + p class="rs-impl-scope" { (r.scope) } + details class="rs-impl-more" { + summary { "Limits and evidence" } + dl class="rs-facts" { + div { dt { "Claim level" } dd { (r.claim_level) } } + div { dt { "Limitations" } dd { (r.limitations) } } + div { dt { "Next dependency" } dd { (r.next_dependency) } } + div { dt { "Evidence" } dd class="rs-mono" { (r.evidence) } } + div { dt { "Receipt" } dd class="rs-mono" { (r.receipt) } } + div { dt { "Commit" } dd class="rs-mono" { (r.commit) } } + div { dt { "Date" } dd { (r.date) } } + } + } + } + } + } + } + } + } + } + } +} + +/// Compact block other pages can embed: the current level and the ladder, +/// with a link to the full status page. +pub fn render_research_status_summary() -> Markup { + let d = data(); + html! { + div class="rs-embed" { + (render_ladder(d)) + p class="rs-embed-link" { + a href="/research/status/" { "Every experiment, its receipt and its limits" } + } + } + } +} + +/// Body of the generated /research/status/ page. +pub fn render_research_status_page() -> Markup { + let d = data(); + let c = &d.source_commits; + html! { + div class="container rs-page" { + header class="rs-page-head" { + p class="rs-kicker" { "Research status" } + h1 class="rs-page-title" { "Where the research stands" } + p class="rs-standfirst" { (d.turing_definition) } + p class="rs-standfirst" { + "Every status on this page is rendered from one data file, built from the consolidated research status table. Failed and incomplete experiments are shown, not hidden. " + "As of " (d.as_of) "." + } + nav class="rs-toc" aria-label="On this page" { + a href="#ladder" { "The ladder" } + a href="#experiments" { "Experiments" } + a href="#implementation" { "What is built" } + a href="#sources" { "Sources" } + a href="/research-status.json" { "Data file (JSON)" } + } + } + + section id="ladder" class="rs-section" { + h2 class="rs-h2" { "The research ladder" } + (render_ladder(d)) + } + + section id="experiments" class="rs-section" { + h2 class="rs-h2" { "Experiment status" } + p class="rs-section-lede" { + "One card per result. The badge is the verdict; the lines below say what it covers, what it does not, and what it waits on." + } + (render_cards(d)) + } + + section id="implementation" class="rs-section" { + h2 class="rs-h2" { "What is built and what is still an idea" } + p class="rs-section-lede" { + "Implemented work and research hypotheses are kept apart. A hypothesis listed here is a question, not a feature." + } + (render_implementation(d)) + } + + section id="sources" class="rs-section rs-sources" { + h2 class="rs-h2" { "Sources and caveats" } + p { (d.source_table) "." } + p { + "Repository commits read: omega " span class="rs-mono" { (c.omega) } + ", aienos " span class="rs-mono" { (c.aienos) } + ", aien-architecture " span class="rs-mono" { (c.aien_architecture) } + ", aienos.com " span class="rs-mono" { (c.aienos_com) } "." + } + p { "Evidence ranks: " span class="rs-mono" { (d.evidence_hierarchy) } "." } + ul { + @for cv in &d.caveats { + li { (cv) } + } + li { (d.current_level.limitations) " Evidence for the current level: " span class="rs-mono" { (d.current_level.evidence) } } + } + h3 class="rs-h3" { "Abbreviations" } + dl class="rs-facts" { + @for a in &d.abbreviations { + div { dt { (a.short) } dd class="rs-mono" { (a.long) } } + } + } + } + } + } +} + +#[cfg(test)] +mod tests { + use super::*; + + /// Turing row ids from the consolidated table, Table 1. + const TABLE_TURING_IDS: [&str; 13] = [ + "CAL-0", + "EXP-001", + "EXP-001R", + "TY-2", + "EXP-002A", + "EXP-002B", + "EXP-002C", + "EXP-002D", + "EXP-003", + "ENERGY-ATTRIBUTION", + "TURING-YIELD-TJ", + "BROWNIAN-CEILING", + "GENERAL-DISCOVERY", + ]; + + /// Ladder states from the consolidated table. Changing a state in the + /// data file without changing it here fails `ladder_matches_table`. + const TABLE_LADDER: [(&str, &str); 8] = [ + ("L0", "achieved"), + ("L1", "achieved"), + ("L2", "achieved"), + ("L3", "not achieved"), + ("L4", "not achieved"), + ("L5", "partial"), + ("L6", "not achieved"), + ("L7+", "not attempted"), + ]; + + fn real() -> StatusData { + parse(RAW).expect("real data must parse") + } + + /// The markup of one ladder step, from its opening attribute to . + fn step_html<'a>(html: &'a str, level: &str) -> &'a str { + let key = format!("data-level=\"{level}\""); + let start = html.find(&key).unwrap_or_else(|| panic!("no step {level}")); + let end = html[start..].find("").expect("step not closed") + start; + &html[start..end] + } + + fn card_html<'a>(html: &'a str, id: &str) -> &'a str { + let key = format!("data-row=\"{id}\""); + let start = html.find(&key).unwrap_or_else(|| panic!("no card {id}")); + let end = html[start..].find("").expect("card not closed") + start; + &html[start..end] + } + + fn result_labels(card: &str) -> Vec { + let key = "data-role=\"result-label\">"; + let mut out = Vec::new(); + let mut rest = card; + while let Some(i) = rest.find(key) { + let after = &rest[i + key.len()..]; + let end = after.find('<').unwrap_or(after.len()); + out.push(after[..end].to_string()); + rest = &after[end..]; + } + out + } + + fn achieved_levels_in(html: &str) -> Vec { + let mut out = Vec::new(); + let mut rest = html; + while let Some(i) = rest.find("data-level=\"") { + let after = &rest[i + "data-level=\"".len()..]; + let end = after.find('"').unwrap(); + let level = after[..end].to_string(); + let tail = &after[end..]; + if tail.starts_with("\" data-state=\"achieved\"") { + out.push(level); + } + rest = tail; + } + out + } + + /// The "not achieved" check, as a function so a mutated copy can be + /// shown to fail it. + fn check_not_achieved(html: &str) -> Result<(), String> { + for level in ["L3", "L4", "L6"] { + if !step_html(html, level).contains(">not achieved<") { + return Err(format!("{level} is not rendered as not achieved")); + } + } + Ok(()) + } + + /// The TY-2 label check, as a function so a mutated copy can be shown + /// to fail it. + fn check_ty2_card(html: &str) -> Result<(), String> { + let card = card_html(html, "TY-2"); + let labels = result_labels(card); + if labels.is_empty() { + return Err("TY-2 card has no result label".to_string()); + } + if labels.iter().any(|l| l.to_lowercase().contains("turing yield")) { + return Err("TY-2 result label says Turing yield".to_string()); + } + if !labels.iter().any(|l| l.contains("gain")) { + return Err("TY-2 result label does not say gain".to_string()); + } + if !card.contains("T/J") || !card.contains("not established") { + return Err("TY-2 card does not say T/J is not established".to_string()); + } + Ok(()) + } + + #[test] + fn data_file_parses() { + let d = real(); + assert_eq!(d.as_of, "2026-10-01"); + assert_eq!(d.source_commits.omega, "38919c8"); + // Counterexample: a truncated file must not parse. + assert!(parse(&RAW[..RAW.len() / 2]).is_err()); + // Counterexample: an unknown field must not parse. + let extra = RAW.replacen("\"as_of\"", "\"surprise\": 1, \"as_of\"", 1); + assert!(parse(&extra).is_err()); + } + + #[test] + fn every_table_turing_row_present_exactly_once() { + let d = real(); + for id in TABLE_TURING_IDS { + let n = d.turing_rows.iter().filter(|r| r.id == id).count(); + assert_eq!(n, 1, "row {id} appears {n} times"); + } + assert_eq!(d.turing_rows.len(), TABLE_TURING_IDS.len(), "unexpected extra turing rows"); + // Counterexample: duplicating a row must be rejected. + let mut dup = d.clone(); + dup.turing_rows.push(dup.turing_rows[0].clone()); + assert!(validate(&dup).is_err()); + } + + #[test] + fn no_status_outside_allowed_set() { + let d = real(); + for r in &d.turing_rows { + assert!(ALLOWED_STATUSES.contains(&r.status.as_str()), "{} has {}", r.id, r.status); + } + for r in &d.implementation_rows { + assert!(ALLOWED_CLASSES.contains(&r.class.as_str()), "{} has {}", r.id, r.class); + } + // Counterexample: the old site word VERIFIED is not allowed. + let mut bad = d.clone(); + bad.turing_rows.iter_mut().find(|r| r.id == "TY-2").unwrap().status = "VERIFIED".into(); + assert!(validate(&bad).is_err()); + // Counterexample: an implementation class outside the set. + let mut bad2 = d.clone(); + bad2.implementation_rows[0].class = "Qualified".into(); + assert!(validate(&bad2).is_err()); + } + + #[test] + fn ladder_matches_table() { + let d = real(); + for (level, state) in TABLE_LADDER { + assert_eq!(d.step(level).unwrap().state, state, "ladder {level}"); + } + assert_eq!(d.current_level.level, "L2"); + // Counterexample: flipping L3 to achieved breaks the current level rule. + let mut up = d.clone(); + up.ladder[3].state = "achieved".into(); + assert!(validate(&up).is_err()); + // Counterexample: claiming L6 while L3 is open is rejected. + let mut skip = d.clone(); + skip.ladder[6].state = "achieved".into(); + assert!(validate(&skip).is_err()); + } + + #[test] + fn rendered_ladder_marks_exactly_the_achieved_levels() { + let d = real(); + let html = render_ladder(&d).into_string(); + let want: Vec = d + .ladder + .iter() + .filter(|s| s.state == "achieved") + .map(|s| s.level.clone()) + .collect(); + assert_eq!(achieved_levels_in(&html), want); + assert_eq!(want, vec!["L0", "L1", "L2"]); + check_not_achieved(&html).unwrap(); + assert!(html.contains("Current level: L2, Brownian scope only, instrument certification")); + + // Counterexample: a test copy with L3 flipped to achieved renders a + // different achieved set and fails the not-achieved check. + let mut up = d.clone(); + up.ladder[3].state = "achieved".into(); + let bad = render_ladder(&up).into_string(); + assert_ne!(achieved_levels_in(&bad), vec!["L0", "L1", "L2"]); + assert!(check_not_achieved(&bad).is_err()); + } + + #[test] + fn exp001_failure_is_on_the_ladder_and_its_card() { + let d = real(); + let ladder = render_ladder(&d).into_string(); + let l1 = step_html(&ladder, "L1"); + assert!(l1.contains("data-attempt=\"EXP-001\"")); + assert!(l1.contains(">FAIL<")); + assert!(l1.contains("EXP-001R")); + let cards = render_cards(&d).into_string(); + let card = card_html(&cards, "EXP-001"); + assert!(card.contains("data-status=\"FAIL\"")); + assert!(card.contains(">FAIL<")); + // Counterexample: an attempt whose outcome disagrees with its row. + let mut hidden = d.clone(); + hidden.turing_rows.iter_mut().find(|r| r.id == "EXP-001").unwrap().status = "PASS".into(); + assert!(validate(&hidden).is_err()); + } + + #[test] + fn ty2_card_says_gain_not_yield() { + let d = real(); + let html = render_cards(&d).into_string(); + check_ty2_card(&html).unwrap(); + // Counterexample: relabelling TY-2 as yield fails the check. + let mut bad = d.clone(); + bad.turing_rows.iter_mut().find(|r| r.id == "TY-2").unwrap().title = "TY-2 Turing yield".into(); + assert!(check_ty2_card(&render_cards(&bad).into_string()).is_err()); + // Counterexample: dropping the not-yield statement fails the check. + let mut quiet = d.clone(); + quiet.turing_rows.iter_mut().find(|r| r.id == "TY-2").unwrap().not_yield = None; + assert!(check_ty2_card(&render_cards(&quiet).into_string()).is_err()); + } + + /// Research hypothesis rows from the consolidated table, Table 2. + const TABLE_HYPOTHESES: [&str; 5] = [ + "General causal discovery", + "Full active experimentation", + "Equality saturation", + "General representation discovery", + "SUSY / Zeta rediscovery", + ]; + + fn group_html<'a>(html: &'a str, class: &str) -> Option<&'a str> { + let key = format!("data-class=\"{class}\""); + let start = html.find(&key)?; + let end = html[start..].find("")? + start; + Some(&html[start..end]) + } + + /// The grouping check, as a function so a mutated copy can be shown + /// to fail it: every table hypothesis renders inside the hypothesis + /// group and inside no other group. + fn check_grouping(html: &str) -> Result<(), String> { + let hyp = group_html(html, "Research hypothesis").ok_or("hypothesis group missing")?; + for id in TABLE_HYPOTHESES { + let marker = format!("data-impl=\"{}\"", id.replace('/', "/")); + let plain = format!("data-impl=\"{id}\""); + let inside = hyp.contains(&plain) || hyp.contains(&marker); + if !inside { + return Err(format!("{id} is not in the research hypothesis group")); + } + for class in ALLOWED_CLASSES.iter().filter(|c| **c != "Research hypothesis") { + if let Some(g) = group_html(html, class) { + if g.contains(&plain) || g.contains(&marker) { + return Err(format!("{id} also renders under {class}")); + } + } + } + } + Ok(()) + } + + #[test] + fn research_hypotheses_are_grouped_apart() { + let d = real(); + check_grouping(&render_implementation(&d).into_string()).unwrap(); + // Counterexample: a copy that reclassifies SUSY / Zeta as + // Implemented renders it in the wrong group and fails the check. + let mut bad = d.clone(); + bad.implementation_rows + .iter_mut() + .find(|r| r.id == "SUSY / Zeta rediscovery") + .unwrap() + .class = "Implemented".into(); + assert!(check_grouping(&render_implementation(&bad).into_string()).is_err()); + } + + #[test] + fn rendered_output_has_no_em_or_en_dash() { + let page = render_research_status_page().into_string(); + let embed = render_research_status_summary().into_string(); + for s in [ + page.as_str(), + embed.as_str(), + turing_instrument_note(), + experiments_note(), + paper_note(), + current_level_sentence(), + ] { + assert!(!s.contains('\u{2014}'), "em dash in rendered output"); + assert!(!s.contains('\u{2013}'), "en dash in rendered output"); + } + // Counterexample: a data file carrying an em dash is rejected. + let dashed = RAW.replacen("Definition", "Definition \u{2014} zero", 1); + assert!(parse(&dashed).is_err()); + } + + /// The homepage lookup check, as a function so a mutated copy can be + /// shown to fail it. + fn check_homepage(d: &StatusData) -> Result<(), String> { + if turing_instrument_status_for(d) != "IMPLEMENTED" { + return Err(format!("instrument status is {}, table says Implemented", turing_instrument_status_for(d))); + } + let note = turing_instrument_note_for(d); + if note.to_lowercase().contains("turing yield") || !note.contains("gain") { + return Err("instrument note does not say gain, or says Turing yield".to_string()); + } + if !note.contains("sealed records not re-verified") { + return Err("instrument note drops the sealed-records limitation".to_string()); + } + let exp = experiments_note_for(d); + for want in ["EXP-001 FAIL", "EXP-002D INCOMPLETE", "EXP-003 BLOCKED"] { + if !exp.contains(want) { + return Err(format!("experiments note is missing {want}")); + } + } + Ok(()) + } + + #[test] + fn homepage_lookups_never_upgrade() { + let d = real(); + check_homepage(&d).unwrap(); + assert_eq!(turing_instrument_note(), turing_instrument_note_for(&d)); + assert_eq!(experiments_note(), experiments_note_for(&d)); + assert_ne!(layer_status_for_class("Research hypothesis"), "IMPLEMENTED"); + // Counterexample: instrument row reclassified as a hypothesis. + let mut hyp = d.clone(); + hyp.implementation_rows + .iter_mut() + .find(|r| r.id == "Turing measurement machinery") + .unwrap() + .class = "Research hypothesis".into(); + assert!(check_homepage(&hyp).is_err()); + // Counterexample: EXP-003 quietly upgraded to PASS. + let mut up = d.clone(); + up.turing_rows.iter_mut().find(|r| r.id == "EXP-003").unwrap().status = "PASS".into(); + assert!(check_homepage(&up).is_err()); + // Counterexample: TY-2 headline relabelled as yield. + let mut y = d.clone(); + y.turing_rows.iter_mut().find(|r| r.id == "TY-2").unwrap().headline = + Some("2,559,679.825 bits of Turing yield".into()); + assert!(check_homepage(&y).is_err()); + } +} diff --git a/crates/site-builder/src/components/status.rs b/crates/site-builder/src/components/status.rs index 2c8547e3..4c48e9b3 100644 --- a/crates/site-builder/src/components/status.rs +++ b/crates/site-builder/src/components/status.rs @@ -1,5 +1,7 @@ use maud::{html, Markup}; +use super::research_status as rs; + /// The canonical public state of the project. This list is the single /// source of truth: the homepage status section, /status.json, and /// /llms.txt all render from it. Statuses are a small fixed set: @@ -27,8 +29,8 @@ pub fn layer_states() -> Vec { }, LayerState { name: "Turing instrument", - status: "QUALIFIED", - note: "The frozen measurement profile (EXP-001 calibration) holds, and the TY-2 yield log re-verified at T = 2,559,679.825 bits. Qualified for the calibration scope; discovery claims are the separate experiment program below.", + status: rs::turing_instrument_status(), + note: rs::turing_instrument_note(), receipt_label: Some("aien-dev/omega · PR #88"), receipt_url: Some("https://github.com/aien-dev/omega/pull/88"), }, @@ -49,7 +51,7 @@ pub fn layer_states() -> Vec { LayerState { name: "Turing experiments (EXP-001 / 002 / 003)", status: "EXPERIMENTAL", - note: "Validation runs under frozen, published protocols. Milestones and failures both get receipts.", + note: rs::experiments_note(), receipt_label: Some("aien-dev/omega · PR #119"), receipt_url: Some("https://github.com/aien-dev/omega/pull/119"), }, @@ -203,6 +205,7 @@ pub fn llms_txt() -> String { out.push_str(&format!("- {}: {}. {}\n", layer.name, layer.status, layer.note)); } out.push_str("\nMachine-readable state: https://www.aienos.com/status.json\n\n"); + out.push_str(&format!("Research status: {} Full ladder and experiment cards: https://www.aienos.com/research/status/ (data: https://www.aienos.com/research-status.json)\n\n", rs::current_level_sentence())); out.push_str("## Links\n\n"); out.push_str("- Homepage: https://www.aienos.com/\n"); out.push_str("- Current status: https://www.aienos.com/#status\n"); diff --git a/crates/site-builder/src/main.rs b/crates/site-builder/src/main.rs index 726b6c9e..5b648b2d 100644 --- a/crates/site-builder/src/main.rs +++ b/crates/site-builder/src/main.rs @@ -28,7 +28,7 @@ fn copy_dir_all(src: &Path, dst: &Path) -> std::io::Result<()> { } fn generate_sitemap_and_robots(dist: &Path) { - let sitemap = "\n\n https://aienos.com/1.0\n https://aienos.com/blog0.8\n https://aienos.com/blog/aien-v3-research-plan0.9\n https://aienos.com/post-llm-case/0.9\n https://aienos.com/research/0.9\n https://aienos.com/research/computing-machinery-and-understanding0.9\n https://aienos.com/research/computing-machinery-and-understanding-emergence0.8\n https://aienos.com/research/the-stapleton-doctrine0.8\n https://aienos.com/turing/0.9\n https://aienos.com/licensing/0.5\n\n"; + let sitemap = "\n\n https://aienos.com/1.0\n https://aienos.com/blog0.8\n https://aienos.com/blog/aien-v3-research-plan0.9\n https://aienos.com/post-llm-case/0.9\n https://aienos.com/research/0.9\n https://aienos.com/research/status/0.9\n https://aienos.com/research/computing-machinery-and-understanding0.9\n https://aienos.com/research/computing-machinery-and-understanding-emergence0.8\n https://aienos.com/research/the-stapleton-doctrine0.8\n https://aienos.com/turing/0.9\n https://aienos.com/licensing/0.5\n\n"; let sitemap_path = dist.join("sitemap.xml"); fs::write(&sitemap_path, sitemap).expect("Failed to write sitemap.xml"); @@ -123,6 +123,25 @@ fn build_pure_rust_site(dist: &Path) { .expect("Failed to write post index.html"); println!(" [PAGE] Emitted /blog/{} (index.html)", components::blog::POST_SLUG); + // Research status: ladder, experiment cards, and implementation list, + // all rendered from data/research_status.json. The data file itself is + // published next to it so machines read the same source. + let research_status = render_page_layout( + "Research status | AIEN OS", + "Where the AIEN research stands: the qualification ladder, every experiment with its verdict, receipt and limits, and what is built versus still a hypothesis.", + "https://aienos.com/research/status/", + "website", + html! {}, + components::research_status::render_research_status_page(), + ); + let research_status_dir = dist.join("research/status"); + fs::create_dir_all(&research_status_dir).expect("Failed to create research/status dir"); + fs::write(research_status_dir.join("index.html"), research_status.into_string()) + .expect("Failed to write research/status/index.html"); + fs::write(dist.join("research-status.json"), components::research_status::RAW) + .expect("Failed to write research-status.json"); + println!(" [PAGE] Emitted /research/status (index.html) and /research-status.json"); + generate_sitemap_and_robots(dist); } @@ -155,7 +174,10 @@ fn verify_site(dist: &Path) { assert!(blog_index.exists(), "Missing blog/index.html"); let blog_post = dist.join("blog/aien-v3-research-plan/index.html"); assert!(blog_post.exists(), "Missing blog/aien-v3-research-plan/index.html"); - for page in [&blog_index, &blog_post] { + let research_status = dist.join("research/status/index.html"); + assert!(research_status.exists(), "Missing research/status/index.html"); + assert!(dist.join("research-status.json").exists(), "Missing research-status.json"); + for page in [&blog_index, &blog_post, &research_status] { let page_content = fs::read_to_string(page) .unwrap_or_else(|_| panic!("Failed to read {}", page.display())); assert!( diff --git a/public/assets/style.css b/public/assets/style.css index f6bdbe97..f4c7b887 100644 --- a/public/assets/style.css +++ b/public/assets/style.css @@ -15,6 +15,16 @@ --text-muted: #8ea0b5; --font-sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; + /* Research status (generated /research/status/ page) */ + --rs-pass: #00e599; + --rs-pass-bg: rgba(0, 229, 153, 0.12); + --rs-fail: #f87171; + --rs-fail-bg: rgba(248, 113, 113, 0.08); + --rs-warn: #f5a623; + --rs-warn-bg: rgba(245, 166, 35, 0.1); + --rs-blocked: #fca5a5; + --rs-open: #94a3b8; + --rs-stair: clamp(4px, 2vw, 28px); } * { @@ -651,3 +661,489 @@ p { padding: 18px 14px 16px; } } + +/* ------------------------------------------------------------------ + Research status: ladder, experiment cards, implementation list. + Rendered from crates/site-builder/data/research_status.json. + Status is always written as text; colour and line style only repeat it. + ------------------------------------------------------------------ */ +.rs-page { + padding-top: 56px; + padding-bottom: 88px; + max-width: 1100px; + line-height: 1.65; +} + +.rs-kicker { + font-family: var(--font-mono); + font-size: 12px; + font-weight: 600; + letter-spacing: 0.08em; + text-transform: uppercase; + color: var(--accent-green); + margin-bottom: 10px; +} + +.rs-page-title { + font-size: clamp(30px, 6vw, 44px); + font-weight: 700; + letter-spacing: -0.02em; + line-height: 1.15; + margin-bottom: 16px; +} + +.rs-standfirst { + max-width: 720px; + color: var(--text-secondary); + font-size: 17px; + margin-bottom: 10px; +} + +.rs-toc { + display: flex; + flex-wrap: wrap; + gap: 8px 18px; + margin-top: 18px; + font-family: var(--font-mono); + font-size: 13px; +} + +.rs-toc a, +.rs-embed-link a { + color: var(--accent-green); + font-weight: 600; +} + +.rs-section { + margin-top: 64px; +} + +.rs-h2 { + font-size: 26px; + font-weight: 700; + letter-spacing: -0.01em; + margin-bottom: 12px; +} + +.rs-h3 { + font-size: 17px; + font-weight: 700; + margin: 24px 0 8px; +} + +.rs-section-lede { + max-width: 720px; + color: var(--text-secondary); + margin-bottom: 24px; +} + +.rs-mono { + font-family: var(--font-mono); + font-size: 12.5px; + overflow-wrap: anywhere; +} + +/* Badges */ +.rs-badge { + display: inline-flex; + align-items: center; + padding: 3px 9px; + border-radius: 4px; + border: 1px solid transparent; + font-family: var(--font-mono); + font-size: 11px; + font-weight: 700; + letter-spacing: 0.06em; + text-transform: uppercase; + white-space: nowrap; +} + +.rs-badge--pass { color: var(--rs-pass); background: var(--rs-pass-bg); border-color: rgba(0, 229, 153, 0.4); } +.rs-badge--fail { color: var(--bg-base); background: var(--rs-fail); border-color: var(--rs-fail); } +.rs-badge--incomplete { color: var(--rs-warn); background: var(--rs-warn-bg); border-color: var(--rs-warn); } +.rs-badge--partial { color: var(--rs-warn); background: var(--rs-warn-bg); border: 1px dashed var(--rs-warn); } +.rs-badge--blocked { color: var(--rs-blocked); background: var(--rs-fail-bg); border: 1px dashed var(--rs-fail); } +.rs-badge--not-established, +.rs-badge--not-started, +.rs-badge--unknown { color: var(--rs-open); background: transparent; border: 1px dashed var(--rs-open); } + +/* Ladder */ +.rs-current { + font-size: 18px; + color: var(--text-primary); + max-width: 760px; +} + +.rs-current strong { + color: var(--accent-green); +} + +.rs-current-meaning, +.rs-ladder-hint { + color: var(--text-secondary); + max-width: 760px; + margin-top: 6px; +} + +.rs-ladder-hint { + font-size: 14px; + color: var(--text-muted); +} + +.rs-stairs { + list-style: none; + display: flex; + flex-direction: column-reverse; + gap: 10px; + margin: 24px 0 0; + padding: 0; +} + +.rs-step { + display: grid; + grid-template-columns: 20px minmax(0, 1fr); + gap: 12px; + margin-left: calc(var(--i) * var(--rs-stair)); +} + +.rs-step-mark { + width: 18px; + height: 18px; + margin-top: 17px; + border-radius: 50%; + border: 2px solid var(--rs-open); +} + +.rs-step--achieved .rs-step-mark { background: var(--rs-pass); border-color: var(--rs-pass); } +.rs-step--partial .rs-step-mark { background: linear-gradient(to top, var(--rs-warn) 50%, transparent 50%); border-color: var(--rs-warn); } +.rs-step--not-achieved .rs-step-mark { background: transparent; border-style: dashed; } +.rs-step--not-attempted .rs-step-mark { background: transparent; border-style: dotted; } + +.rs-step-body { + min-width: 0; + padding: 14px 18px; + border-radius: 8px; + border: 1px solid var(--border-subtle); + background: var(--bg-card); +} + +.rs-step--achieved .rs-step-body { border-left: 4px solid var(--rs-pass); } +.rs-step--partial .rs-step-body { border-left: 4px dashed var(--rs-warn); } +.rs-step--not-achieved .rs-step-body, +.rs-step--not-attempted .rs-step-body { + background: transparent; + border-style: dashed; +} + +.rs-step-head { + display: flex; + flex-wrap: wrap; + align-items: baseline; + gap: 4px 10px; +} + +.rs-step-level { + font-family: var(--font-mono); + font-weight: 700; + color: var(--text-primary); +} + +.rs-step-name { + font-weight: 600; + color: var(--text-primary); +} + +.rs-step--not-achieved .rs-step-name, +.rs-step--not-attempted .rs-step-name { + color: var(--text-secondary); +} + +.rs-here { + font-family: var(--font-mono); + font-size: 11px; + font-weight: 700; + letter-spacing: 0.06em; + text-transform: uppercase; + color: var(--bg-base); + background: var(--accent-green); + border-radius: 4px; + padding: 2px 8px; +} + +.rs-step-state { + font-family: var(--font-mono); + font-size: 11.5px; + font-weight: 700; + letter-spacing: 0.06em; + text-transform: uppercase; + margin-top: 4px; + color: var(--rs-open); +} + +.rs-step--achieved .rs-step-state { color: var(--rs-pass); } +.rs-step--partial .rs-step-state { color: var(--rs-warn); } + +.rs-step-detail { + color: var(--text-secondary); + font-size: 15px; + margin-top: 4px; +} + +.rs-step-basis { + color: var(--text-muted); + font-family: var(--font-mono); + font-size: 12px; + margin-top: 4px; + overflow-wrap: anywhere; +} + +.rs-attempt { + margin-top: 12px; + padding: 12px 14px; + border-radius: 6px; + border: 1px solid var(--rs-fail); + background: var(--rs-fail-bg); + color: var(--text-secondary); + font-size: 14.5px; +} + +.rs-attempt-head { + display: flex; + flex-wrap: wrap; + align-items: center; + gap: 6px 10px; + margin-bottom: 4px; + color: var(--text-primary); +} + +.rs-attempt-head span:last-child { + color: var(--text-secondary); + font-size: 13px; +} + +.rs-embed-link { + margin-top: 16px; + font-family: var(--font-mono); + font-size: 13px; +} + +/* Experiment cards */ +.rs-cards { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); + gap: 20px; +} + +.rs-card { + min-width: 0; + display: flex; + flex-direction: column; + gap: 12px; + padding: 22px; + border-radius: 10px; + border: 1px solid var(--border-subtle); + background: var(--bg-card); +} + +.rs-card--fail { border-color: var(--rs-fail); } +.rs-card--blocked, +.rs-card--not-started, +.rs-card--not-established { border-style: dashed; } + +.rs-card-top { + display: flex; + align-items: center; + justify-content: space-between; + gap: 10px; +} + +.rs-card-id { + font-family: var(--font-mono); + font-size: 12px; + color: var(--text-muted); + overflow-wrap: anywhere; + text-align: right; +} + +.rs-card-title { + font-size: 18px; + font-weight: 700; + line-height: 1.3; +} + +.rs-card-headline { + font-family: var(--font-mono); + font-size: 20px; + font-weight: 700; + color: var(--text-primary); + overflow-wrap: anywhere; +} + +.rs-card-callout { + padding: 10px 12px; + border-left: 3px solid var(--rs-warn); + background: var(--rs-warn-bg); + color: var(--text-primary); + font-size: 14.5px; +} + +.rs-card-plain { + color: var(--text-secondary); + font-size: 15px; +} + +.rs-facts { + display: flex; + flex-direction: column; + gap: 8px; + padding-top: 12px; + border-top: 1px solid var(--border-subtle); + font-size: 13.5px; +} + +.rs-facts > div { + display: grid; + grid-template-columns: 8.5em minmax(0, 1fr); + gap: 10px; +} + +.rs-facts dt { + color: var(--text-muted); + font-family: var(--font-mono); + font-size: 11.5px; + letter-spacing: 0.04em; + text-transform: uppercase; + padding-top: 2px; +} + +.rs-facts dd { + color: var(--text-secondary); + overflow-wrap: anywhere; + min-width: 0; +} + +/* Implementation list */ +.rs-impl { + display: flex; + flex-direction: column; + gap: 28px; +} + +.rs-group { + padding: 20px 22px; + border-radius: 10px; + border: 1px solid var(--border-subtle); + background: var(--bg-surface); +} + +.rs-group--research-hypothesis { + border: 1px dashed var(--rs-open); + background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(148, 163, 184, 0.04) 12px 24px); +} + +.rs-group--planned { + border-style: dashed; +} + +.rs-group-title { + font-size: 18px; + font-weight: 700; +} + +.rs-group-count { + color: var(--text-muted); + font-weight: 500; +} + +.rs-group-blurb { + color: var(--text-secondary); + font-size: 14.5px; + margin: 2px 0 14px; +} + +.rs-impl-list { + list-style: none; + padding: 0; + margin: 0; + display: flex; + flex-direction: column; +} + +.rs-impl-item { + padding: 14px 0; + border-top: 1px solid var(--border-subtle); + min-width: 0; +} + +.rs-impl-head { + display: flex; + flex-wrap: wrap; + align-items: baseline; + gap: 4px 12px; +} + +.rs-impl-name { + font-weight: 700; + color: var(--text-primary); + overflow-wrap: anywhere; +} + +.rs-impl-status { + font-family: var(--font-mono); + font-size: 12px; + color: var(--text-muted); +} + +.rs-impl-scope { + color: var(--text-secondary); + font-size: 14.5px; + margin-top: 4px; +} + +.rs-impl-more { + margin-top: 8px; +} + +.rs-impl-more summary { + cursor: pointer; + font-family: var(--font-mono); + font-size: 12.5px; + color: var(--accent-green); +} + +.rs-impl-more .rs-facts { + margin-top: 10px; +} + +.rs-sources p, +.rs-sources li { + color: var(--text-secondary); + font-size: 14.5px; + max-width: 820px; + margin-bottom: 8px; + overflow-wrap: anywhere; +} + +.rs-sources ul { + padding-left: 20px; +} + +@media (max-width: 600px) { + .rs-page { + padding-top: 36px; + } + + .rs-facts > div { + grid-template-columns: minmax(0, 1fr); + gap: 2px; + } + + .rs-card, + .rs-group { + padding: 18px 16px; + } + + .rs-step-body { + padding: 12px 14px; + } +}