Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aienos.com/blob/main/crates/site-builder/src/components/machine.rs # aienos.com Source of www.aienos.com, served from my own hardware Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aienos.com / crates / site-builder / src / components / machine.rs` 449 lines ยท 22038 bytes Raw Blame History 1 //! /machine/ : "The Machine", the main research narrative. 2 //! 3 //! Wording comes from the PRE-APPROVED synthesis handoff 4 //! (~/handoffs/2026-10-01-research-synthesis-handoff.md). Every level, 5 //! verdict and implementation class on this page is rendered from the one 6 //! canonical record, data/research_status.json, through 7 //! components::research_status. No status word is written here by hand. 8 9 use maud::{html, Markup}; 10 11 use super::boxlink; 12 use super::machines::render_real_machines; 13 use super::narrative::{class_badge, status_badge, SLOGAN, TURING_FORMULA}; 14 use super::research_status::{ 15 data, evidence_box, render_implementation, render_research_status_summary, ty2_headline, 16 ImplementationRow, TuringRow, 17 }; 18 19 pub const TITLE: &str = "The Machine | AienOS"; 20 pub const DESCRIPTION: &str = "One machine across five physical bodies: the closed loop from search to verified understanding, the Turing as its accounting layer, and what exists today."; 21 pub const URL: &str = "https://www.aienos.com/machine/"; 22 23 /// Anchor of the homepage loop diagram (NARR-HOME, components/home_loop.rs). 24 pub const HOME_LOOP_HREF: &str = "/#loop-title"; 25 26 const MISSION: &str = "AienOS is an owned experimental machine for turning search into verified understanding. Aien proposes structure. Omega makes that structure explicit and checkable. The machine tests it against reality under authority. The Turing measures what was actually learned. Cortex keeps the evidence. Then the next search begins from what survived."; 27 28 const LOOP_STAGES: [&str; 11] = [ 29 "Observe", 30 "Propose", 31 "Formalize", 32 "Verify", 33 "Authorize", 34 "Execute", 35 "Measure", 36 "Score", 37 "Preserve evidence", 38 "Learn", 39 "Search again", 40 ]; 41 42 /// Record ids this page reads. A missing id fails the build run and every 43 /// test, so a renamed row cannot silently drop a badge. 44 const TY2: &str = "TY-2"; 45 const YIELD_TJ: &str = "TURING-YIELD-TJ"; 46 const ENERGY: &str = "ENERGY-ATTRIBUTION"; 47 const EXP_003: &str = "EXP-003"; 48 const GENERAL_DISCOVERY: &str = "GENERAL-DISCOVERY"; 49 const CEGIS: &str = "CEGIS"; 50 const BAYES: &str = "Bayesian cost prediction (belief/estimation)"; 51 const EGRAPH: &str = "Equality saturation"; 52 53 fn trow(id: &str) -> &'static TuringRow { 54 data().turing_row(id).unwrap_or_else(|| panic!("research status row {id} missing")) 55 } 56 57 /// The quantity card's link: the row's evidence on the forge. 58 fn card_foot(row: &TuringRow) -> Markup { 59 let (href, target) = evidence_box(&row.link, &row.evidence); 60 boxlink::foot(&href, target) 61 } 62 63 fn irow(id: &str) -> &'static ImplementationRow { 64 data() 65 .implementation_row(id) 66 .unwrap_or_else(|| panic!("research status implementation row {id} missing")) 67 } 68 69 fn section_lead() -> Markup { 70 html! { 71 header class="narr-header" { 72 p class="narr-kicker" { "The Machine" } 73 h1 class="narr-title" { "Turning search into verified understanding" } 74 blockquote class="narr-mission" { 75 p { (super::omega::link_first(MISSION)) } 76 } 77 p class="narr-slogan" { (SLOGAN) } 78 p { 79 "Suggestions and explanations have different epistemic roles. Neural systems generate hypotheses. Explicit artifacts suit inspection and verification. Physical execution provides contact with reality, measurement determines gain, and evidence provides continuity." 80 } 81 } 82 } 83 } 84 85 fn section_loop() -> Markup { 86 html! { 87 section id="loop" class="narr-section" aria-labelledby="loop-heading" { 88 h2 id="loop-heading" { "The closed loop" } 89 p { 90 "The meaningful artifact of this project is a closed epistemic loop. Each pass runs through eleven steps, and the last step feeds the first." 91 } 92 ol class="narr-loop" aria-label="The closed epistemic loop, in order" { 93 @for stage in LOOP_STAGES.iter() { 94 li { (stage) } 95 } 96 } 97 p { 98 "In the design, each step has an owner. Aien suggests. Omega formalizes, synthesizes and verifies. FORGE realizes the verified program, and the physical machine executes it." 99 } 100 p { 101 "The Turing then measures explanatory gain, Cortex preserves the evidence, and Aien and Omega use that evidence to improve the next search. ATLAS carries the lineage across hardware, and AienOS provides the owned, persistent substrate underneath." 102 } 103 p { 104 "AEGIS and ARGUS sit around the loop. AEGIS guards the boundary of proof and authority, so nothing executes without permission. ARGUS observes what actually happens. Neither one is a step that work passes through in sequence." 105 } 106 p { 107 "This describes the design. The list under What exists today says which parts run now. " 108 a href=(HOME_LOOP_HREF) { "See the loop diagram on the homepage." } 109 } 110 } 111 } 112 } 113 114 fn section_turing() -> Markup { 115 html! { 116 section id="turing" class="narr-section" aria-labelledby="turing-heading" { 117 h2 id="turing-heading" { "The Turing keeps the accounts" } 118 p { 119 "The Turing is the epistemic accounting layer of Aien. It measures net held-out explanatory compression: one operational component of machine understanding. It is not a general intelligence score." 120 } 121 p { 122 "For a baseline B, a candidate explanation M, sealed observations D and a scoring profile P, with L meaning description length:" 123 } 124 figure class="narr-formula" aria-label="The Turing formula" { 125 pre { code class="language-text" { (TURING_FORMULA) } } 126 } 127 p { 128 "A candidate earns positive Turings only if it shrinks the description of unseen data by more than its own complexity costs." 129 } 130 ul class="narr-ledger" { 131 li { strong { "Charged: " } "memorization, unnecessary complexity and bad predictions." } 132 li { strong { "Prohibited: " } "post-hoc selection. Test contamination invalidates the measurement." } 133 li { strong { "Rewarded: " } "compact structure that generalizes." } 134 } 135 p { 136 "The question it answers: what did the machine discover that continued to work on reality it had not seen? " 137 a href="/turing/" { "Explore the Turing." } 138 } 139 } 140 } 141 } 142 143 fn section_quantities() -> Markup { 144 let ty2 = trow(TY2); 145 let yield_tj = trow(YIELD_TJ); 146 let energy = trow(ENERGY); 147 html! { 148 section id="quantities" class="narr-section" aria-labelledby="quantities-heading" { 149 h2 id="quantities-heading" { "Three quantities" } 150 ul class="narr-cards" { 151 li class="narr-card" { 152 h3 { "Turing gain (T)" } 153 p { 154 "Did the machine learn explanatory structure? Gain is net held-out explanatory compression after paying for the explanation." 155 } 156 p class="narr-figure" { 157 (status_badge(ty2)) " Run TY-2 recorded " (ty2_headline()) " against an order-1 baseline on held-out seeds." 158 } 159 p { 160 "The re-check used the same tool, so it is a self re-derivation and still awaits an independent one. This result certifies the instrument; it does not show that Aien discovered anything." 161 } 162 (card_foot(ty2)) 163 } 164 li class="narr-card" { 165 h3 { "Turing yield (T/J) " (status_badge(yield_tj)) } 166 p { 167 "What physical resources did that gain cost? Yield will divide Turings by joules, and may separate evaluation yield from discovery yield, the more important of the two." 168 } 169 p { (yield_tj.plain) } 170 p { (status_badge(energy)) " Energy attribution. " (energy.plain) } 171 p { 172 "No yield figure exists, and none will be claimed until energy attribution and the Turing receipt are joined under the qualifying protocol." 173 } 174 (card_foot(yield_tj)) 175 } 176 li class="narr-card" { 177 h3 { "Search and verification gap" } 178 p { 179 "How hard was the explanation to discover compared with verifying it once found? The idea to test: discovered explanatory structure reduces the cost of future search, through prediction, compression, abstraction, reusable procedure, reduced search and faster discovery." 180 } 181 p { "This is a research direction. No result on it exists yet." } 182 (card_foot(trow(GENERAL_DISCOVERY))) 183 } 184 } 185 } 186 } 187 } 188 189 fn section_cortex() -> Markup { 190 html! { 191 section id="cortex" class="narr-section" aria-labelledby="cortex-heading" { 192 h2 id="cortex-heading" { "Evidence that teaches: Cortex" } 193 p { 194 "Cortex exists to preserve the evidence needed to make future search better. That means evidence continuity: verified explanations, failed hypotheses, counterexamples, validity regions, measurement receipts, experimental conditions, search traces, physical costs, uncertainty and provenance." 195 } 196 p { 197 "Today Cortex is an append-only store that records what the World did. Search history, counterexamples and costs are what it is meant to hold next; its current standing is listed under " 198 a href="#today" { "What exists today" } 199 "." 200 } 201 p { "With that evidence in place, Aien will be able to ask:" } 202 ul class="narr-questions" { 203 li { "What did I already try?" } 204 li { "Why did it fail?" } 205 li { "Under what regime did it work?" } 206 li { "What evidence supports this abstraction?" } 207 li { "What representation changes reduced search before?" } 208 } 209 } 210 } 211 } 212 213 fn section_ladder() -> Markup { 214 html! { 215 section id="research-ladder" class="narr-section" data-source="research_status.json" aria-labelledby="ladder-heading" { 216 h2 id="ladder-heading" { "The discovery ladder" } 217 p { 218 "Each rung is a stronger claim about what the machine has shown, and each rests on the rung below. The ladder is drawn from the research status record, the same record behind the full status page, so this page never states a result by hand." 219 } 220 (render_research_status_summary()) 221 } 222 } 223 } 224 225 fn section_rsi() -> Markup { 226 html! { 227 section id="self-improvement" class="narr-section" aria-labelledby="rsi-heading" { 228 h2 id="rsi-heading" { "Self-improvement, measured" } 229 p { 230 "The interesting version of recursive self-improvement is narrower than a machine that modifies itself. Experience leads to a measured explanation, then a reusable abstraction, reduced search, better candidate selection, a verified improvement and the next generation." 231 } 232 p { "A self-modification will count only if it survives verification and measurement." } 233 p class="narr-keystone" { 234 "The keystone question: can a persistent machine accumulate verified explanatory structure in a way that measurably improves its ability to discover further structure?" 235 } 236 ul class="narr-questions" { 237 li { "Does T increase?" } 238 li { "Does T/J improve?" } 239 li { "Does search cost fall?" } 240 li { "Does verification remain trustworthy?" } 241 li { "Do representation changes transfer?" } 242 li { "Do interventions become more informative?" } 243 li { "Does learned structure survive new domains?" } 244 li { "Does the system preserve its failures?" } 245 li { "Can independent scorers reproduce the evidence?" } 246 } 247 } 248 } 249 } 250 251 fn section_connections() -> Markup { 252 html! { 253 section id="connections" class="narr-section" aria-labelledby="connections-heading" { 254 h2 id="connections-heading" { "Connections to other research" } 255 p { "Each of these is a connection or an opportunity. Where the research status record has a matching entry, its badge sits beside the name." } 256 dl class="narr-connections" { 257 dt { "Petri nets and reaction systems" } 258 dd { 259 "The World lifecycle work already has a state model, reachable-state exploration, invariants, shortest counterexample traces, mutants and differential checking against the real World code. Formal concurrency theory may offer reachability, liveness and deadlock analysis, partial-order reduction and invariant proofs. The World keeps its own name; it is not being relabelled a Petri net." 260 } 261 dt { "Counterexample-guided synthesis (CEGIS) " (class_badge(irow(CEGIS))) } 262 dd { 263 "Omega's search already runs candidate, transform, verify, accept or reject, and records the trace and cost. The opportunity: turn a failed candidate into a semantic counterexample, generalize it into a constraint, eliminate a whole family of candidates, and measure how much search that saves." 264 } 265 dt { "Bayesian adaptive search " (class_badge(irow(BAYES))) } 266 dd { 267 "A Bayesian cost model for choosing between verified realizations is being tried against recorded signals, and its failed attempts stay on the record. A future direction is safe contextual exploration. Exploration must stay explicitly authorized, and production authority is never inferred from prediction confidence." 268 } 269 dt { "Active causal discovery " (status_badge(trow(EXP_003))) } 270 dd { 271 "EXP-003 is designed as the move from passive prediction to active inquiry: hold competing explanations, predict their consequences, choose the intervention that best separates them, run one authorized experiment and update belief. " 272 (trow(EXP_003).plain) 273 } 274 dt { "E-graphs and equality saturation " (class_badge(irow(EGRAPH))) } 275 dd { 276 "A research reference for treating rewritten expressions, basis changes, coordinate systems and equivalent implementations as one discovery. Omega has no e-graph code." 277 } 278 } 279 } 280 } 281 } 282 283 fn section_today() -> Markup { 284 html! { 285 section id="today" class="narr-section" aria-labelledby="today-heading" { 286 h2 id="today-heading" { "What exists today" } 287 p { 288 "This list is drawn from the research status record, built from a check of the code on the main branches of Omega and AienOS. Built work and open research questions are kept apart, and each entry opens to show its limits and evidence." 289 } 290 (render_implementation(data())) 291 p class="narr-more" { 292 a href="/research/status/#implementation" { "The same list on the research status page, beside every experiment." } 293 } 294 } 295 } 296 } 297 298 fn section_nature() -> Markup { 299 html! { 300 section id="nature" class="narr-section" aria-labelledby="nature-heading" { 301 h2 id="nature-heading" { "Nature invented the loop" } 302 p { 303 "Evolution runs variation, selection and retention. The immune system runs variation, binding and amplification. Science runs hypothesis, experiment and theory. Aien runs proposal, verification, evidence and memory." 304 } 305 p { 306 "These are analogies and not equivalences. What they share is a pattern: expensive generation paired with decisive filtering, where retained structure changes what gets generated next." 307 } 308 p { 309 "Nature invented the loop. This work proposes a unit for one measurable thing the loop can produce: explanatory structure that survives unseen reality. The aim is to make the loop explicit, persistent, owned, auditable, metered, reproducible and bounded by authority." 310 } 311 p { a href="/discovery/" { "Next: Scientific Discovery, the examinations ahead." } } 312 } 313 } 314 } 315 316 pub fn render_machine() -> Markup { 317 html! { 318 article class="narr-page" { 319 div class="narr-column" { 320 (section_lead()) 321 (render_real_machines()) 322 (section_loop()) 323 (section_turing()) 324 (section_quantities()) 325 (section_cortex()) 326 (section_ladder()) 327 (section_rsi()) 328 (section_connections()) 329 (section_today()) 330 (section_nature()) 331 } 332 } 333 } 334 } 335 336 #[cfg(test)] 337 mod tests { 338 use super::*; 339 use crate::components::narrative::check::stray_status_words; 340 use crate::layouts::base::render_page_layout; 341 342 fn page() -> String { 343 render_page_layout(TITLE, DESCRIPTION, URL, "article", html! {}, render_machine()).into_string() 344 } 345 346 /// Every piece of markup on /machine/ that is allowed to carry a status 347 /// word: the shared components and every data-driven badge and sentence. 348 fn data_renderings() -> Vec { 349 let d = data(); 350 let mut v = vec![ 351 render_research_status_summary().into_string(), 352 render_implementation(d).into_string(), 353 // The real-machines section is rendered from data/machines.json. 354 render_real_machines().into_string(), 355 ]; 356 for r in &d.turing_rows { 357 v.push(status_badge(r).into_string()); 358 v.push(html! { (r.plain) }.into_string()); 359 } 360 for r in &d.implementation_rows { 361 v.push(class_badge(r).into_string()); 362 } 363 v.push(html! { (ty2_headline()) }.into_string()); 364 v 365 } 366 367 #[test] 368 fn slogan_is_present() { 369 assert!( 370 page().contains( 371 "Weights suggest. Programs explain. Verification decides. Evidence teaches. The Turing keeps score." 372 ), 373 "slogan missing from /machine/" 374 ); 375 } 376 377 #[test] 378 fn turing_formula_is_present() { 379 let p = page(); 380 assert!( 381 p.contains("T(M; B, D, P) = [L(B) + L(D | B)] - [L(M) + L(D | M)]"), 382 "Turing formula line missing from /machine/" 383 ); 384 assert!(p.contains("one operational component of machine understanding")); 385 assert!(!p.contains("how much a machine understood")); 386 } 387 388 /// The TY-2 figure is a gain. The block (p or li) that holds it must not 389 /// mention yield. The figure itself comes from the data. 390 #[test] 391 fn gain_figure_is_never_called_yield() { 392 let p = page(); 393 let fig = ty2_headline(); 394 let mut found = false; 395 let mut from = 0; 396 while let Some(rel) = p[from..].find(fig) { 397 found = true; 398 let at = from + rel; 399 let start = ["", ""] 401 .iter() 402 .filter_map(|t| p[at..].find(*t).map(|e| at + e)) 403 .min() 404 .unwrap_or(p.len()); 405 let block = p[start..end].to_lowercase(); 406 assert!(!block.contains("yield"), "TY-2 gain figure sits next to the word yield: {block}"); 407 from = at + fig.len(); 408 } 409 assert!(found, "TY-2 gain figure missing from /machine/"); 410 } 411 412 /// The research-ladder section holds the ladder rendered by 413 /// research_status::render_ladder (class rs-ladder, one rs-step per level) 414 /// and the link to the full status page. 415 #[test] 416 fn research_ladder_section_renders_the_canonical_ladder() { 417 let p = page(); 418 let start = p.find("id=\"research-ladder\"").expect("research-ladder section missing"); 419 let end = start + p[start..].find("").expect("research-ladder section not closed"); 420 let section = &p[start..end]; 421 assert!(section.contains(&render_research_status_summary().into_string()), "ladder markup differs from render_research_status_summary"); 422 assert!(section.contains("class=\"rs-ladder\""), "rs-ladder markup missing from research-ladder"); 423 assert_eq!(section.matches("class=\"rs-step ").count(), data().ladder.len(), "ladder steps missing"); 424 assert!(section.contains("href=\"/research/status/\""), "link to the full status page missing"); 425 } 426 427 /// What exists today is the canonical implementation list, verbatim. 428 #[test] 429 fn today_section_renders_the_canonical_implementation_list() { 430 let p = page(); 431 assert!(p.contains(&render_implementation(data()).into_string())); 432 assert!(!p.contains("status-badge"), "old hand-kept badge markup is back"); 433 } 434 435 /// No status word on /machine/ may come from anywhere but the data. 436 #[test] 437 fn no_hand_written_status_words() { 438 let body = render_machine().into_string(); 439 let stray = stray_status_words(&body, &data_renderings()); 440 assert!(stray.is_empty(), "hand-written status words on /machine/: {stray:?}"); 441 } 442 443 #[test] 444 fn no_em_or_en_dashes() { 445 let p = page(); 446 assert!(!p.contains('\u{2014}'), "em dash in /machine/"); 447 assert!(!p.contains('\u{2013}'), "en dash in /machine/"); 448 } 449 }