interplane.Get Omega
Read in your language

aienos.com

Source of www.aienos.com, served from my own hardware

Brought by drakestapleton

branch main Branches Tags History

aienos.com / crates / site-builder / src / components / home_loop.rs

448 lines · 20566 bytes Raw Blame History
1//! Homepage top (NARR-HOME): the central statement, the short public
2//! thesis, the slogan, the canonical loop diagram and the three questions.
3//!
4//! Wording comes from the pre-approved research synthesis handoff
5//! (2026-10-01), sections Mission, 2, 14 and 15. Do not add claims here.
6
7use maud::{html, Markup};
8
9use super::research_status;
10
11/// Central statement, first sentence (the page h1).
12pub const LEAD: &str =
13 "AienOS is an owned experimental machine for turning search into verified understanding.";
14
15/// Central statement, the sentences after the lead.
16pub const LEAD_REST: &str = "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.";
17
18/// The short public thesis, split into readable paragraphs.
19pub const THESIS: [&str; 3] = [
20 "AienOS is an attempt to build persistent machine intelligence as a scientific process. Neural machinery may propose, but proposals have no authority.",
21 "Omega turns them into explicit programs and theories; verification determines whether they are internally valid; the owned machine tests them against physical reality; the Turing measures whether they explain unseen observations after paying for their own complexity; Cortex preserves the evidence; and that verified experience changes the next search.",
22 "Atlas carries the lineage across hardware. The goal is not a machine that sounds as though it understands, but a machine whose growth in explanatory power can be measured, falsified, reproduced, and owned.",
23];
24
25pub const SLOGAN: &str =
26 "Weights suggest. Programs explain. Verification decides. Evidence teaches. The Turing keeps score.";
27
28/// Which band of the diagram a stage belongs to.
29#[derive(Clone, Copy)]
30pub enum Band {
31 /// Generation path: lineage, substrate, proposal, formalization, realization.
32 Generation,
33 /// Contact with the physical world.
34 Reality,
35 /// Evidence feedback: scoring and preservation.
36 Feedback,
37}
38
39impl Band {
40 fn class(self) -> &'static str {
41 match self {
42 Band::Generation => "loop-stage loop-stage-gen",
43 Band::Reality => "loop-stage loop-stage-reality",
44 Band::Feedback => "loop-stage loop-stage-feedback",
45 }
46 }
47 fn label(self) -> &'static str {
48 match self {
49 Band::Generation => "Generation path",
50 Band::Reality => "Contact with reality",
51 Band::Feedback => "Evidence feedback",
52 }
53 }
54}
55
56/// The canonical loop (handoff section 14), in order.
57pub const STAGES: [(&str, &str, Band); 8] = [
58 ("ATLAS", "awakens / lineage", Band::Generation),
59 ("AienOS", "persistent owned substrate", Band::Generation),
60 ("Aien", "proposes / guides search", Band::Generation),
61 ("OMEGA", "formalizes / searches / verifies meaning", Band::Generation),
62 ("FORGE", "realizes", Band::Generation),
63 ("REALITY", "executes / responds", Band::Reality),
64 ("TURING", "scores explanatory gain", Band::Feedback),
65 ("CORTEX", "preserves evidence", Band::Feedback),
66];
67
68/// What the last stage hands back to.
69pub const RETURN_TO: &str = "next Aien / Omega search";
70
71/// The verification and authority perimeter. These surround the loop and
72/// are never stages. Split into the band drawn above and below the loop.
73pub const PERIMETER_TOP: [(&str, &str); 2] = [
74 ("AEGIS", "authority + proof boundaries"),
75 ("ARGUS", "observation / audit"),
76];
77pub const PERIMETER_BOTTOM: [(&str, &str); 2] = [
78 ("Capability system", "controls what may happen"),
79 ("Evidence receipts", "make outcomes reproducible"),
80];
81
82/// Where a question's status comes from. A status word is never written
83/// by hand here: it is read from data/research_status.json through
84/// research_status.rs, so the homepage cannot drift from the research
85/// status page.
86#[derive(Clone, Copy)]
87pub enum QStatus {
88 /// A Turing row in research_status.json, by id. `show_id` puts the row
89 /// id in front of the status word (e.g. "TY-2 PASS").
90 TuringRow { id: &'static str, show_id: bool },
91 /// No row exists for this question: no badge, plain prose only.
92 NoRow,
93}
94
95/// What the homepage shows for one question: badge class, badge label
96/// and note, all taken from the research status data.
97pub struct QShown {
98 pub class: &'static str,
99 pub label: String,
100 pub note: String,
101}
102
103impl QStatus {
104 pub fn shown(self) -> Option<QShown> {
105 match self {
106 QStatus::NoRow => None,
107 QStatus::TuringRow { id, show_id } => {
108 let row = research_status::data()
109 .turing_row(id)
110 .unwrap_or_else(|| panic!("{id} row missing from research status data"));
111 let class = match row.status.as_str() {
112 "NOT STARTED" | "NOT ESTABLISHED" | "BLOCKED" => "home-q-badge status-planned",
113 _ => "home-q-badge status-experimental",
114 };
115 let label = if show_id {
116 format!("{} {}", row.id, row.status)
117 } else {
118 row.status.clone()
119 };
120 let note = match &row.headline {
121 Some(h) => format!("{} recorded {}.", row.id, h),
122 None => row.plain.clone(),
123 };
124 Some(QShown { class, label, note })
125 }
126 }
127 }
128}
129
130/// The three questions (handoff section 15): question, measure, meaning,
131/// status source, plain note (used only when there is no row).
132pub const QUESTIONS: [(&str, &str, &str, QStatus, Option<&str>); 3] = [
133 (
134 "Did it learn anything?",
135 "Turing gain",
136 "Net explanatory structure that survives held-out reality.",
137 QStatus::TuringRow { id: "TY-2", show_id: true },
138 None,
139 ),
140 (
141 "What did it cost to learn?",
142 "Turing yield",
143 "Verified explanatory gain per measured physical resource.",
144 QStatus::TuringRow { id: "TURING-YIELD-TJ", show_id: false },
145 None,
146 ),
147 (
148 "Did what it learned make future discovery easier?",
149 "Search / verification gap",
150 "Whether acquired abstraction would collapse future search complexity.",
151 QStatus::NoRow,
152 Some("An open question I want to study. Nothing here is measured yet."),
153 ),
154];
155
156fn perimeter_band(items: &[(&str, &str)], label: &str) -> Markup {
157 html! {
158 ul class="loop-perimeter-band" aria-label=(label) {
159 @for (name, role) in items {
160 li class="loop-guard" {
161 span class="loop-guard-name" { (name) }
162 span class="loop-guard-role" { (role) }
163 }
164 }
165 }
166 }
167}
168
169pub fn render_home_loop() -> Markup {
170 html! {
171 section id="top" class="home-top bg-grid" aria-labelledby="home-lead" {
172 div class="container" {
173 div class="home-column" {
174 div class="home-badges" {
175 span class="badge badge-amber" { "Sovereign Intelligence · alpha testing" }
176 span class="badge badge-blue" { "Open source · Apache-2.0 WITH LLVM-exception" }
177 }
178
179 p id="alpha-ships" class="home-lead-rest" {
180 strong { "What the Sovereign Intelligence alpha ships today: " }
181 "one command that installs a signed engine and Qwen3.6-35B on an NVIDIA DGX Spark, and one command that removes it. "
182 "The installer, its signature check and the uninstall have run on my Spark in a test tree and a container. A real install with a first token has not run yet. "
183 "The alpha's model will be the Omega LLM, my own model; it does not ship today. "
184 a href="https://interplane.io/drakestapleton/sovereign-intelligence" { "Alpha status and evidence" }
185 "."
186 }
187
188 h1 id="home-lead" class="home-lead" { (LEAD) }
189 p class="home-lead-rest" { (super::omega::link_first(LEAD_REST)) }
190
191 p class="home-lead-rest" {
192 "Want your coding agent to work in Omega? "
193 a href="/agents/#omega-operator" { "Use the Omega Harness operator guide" }
194 "."
195 }
196
197 div class="home-thesis" {
198 @for para in THESIS.iter() {
199 p { (super::omega::link_first(para)) }
200 }
201 }
202 }
203
204 p class="home-slogan" { (SLOGAN) }
205
206 figure class="loop" aria-labelledby="loop-title" {
207 h2 id="loop-title" class="loop-title" { "The loop" }
208 p class="loop-intro" {
209 "Proposals travel the generation path, meet reality, and are scored. The evidence that survives starts the next search. A perimeter of authority, observation and receipts surrounds the whole loop."
210 }
211
212 ul class="loop-legend" aria-label="How to read the diagram" {
213 li class="loop-key loop-key-gen" { "Generation path" }
214 li class="loop-key loop-key-feedback" { "Evidence feedback" }
215 li class="loop-key loop-key-perimeter" { "Verification and authority perimeter" }
216 }
217
218 div class="loop-perimeter" {
219 p class="loop-perimeter-label" {
220 "Perimeter: around the loop, never a stage"
221 }
222 (perimeter_band(&PERIMETER_TOP, "Perimeter, authority and observation"))
223
224 ol class="loop-stages" aria-label="Loop stages, in order" {
225 @for (name, role, band) in STAGES.iter() {
226 li class=(band.class()) {
227 span class="loop-stage-name" { (name) }
228 span class="loop-stage-role" { (role) }
229 span class="loop-stage-band" { (band.label()) }
230 }
231 }
232 }
233
234 p class="loop-return" {
235 span class="loop-return-arrow" aria-hidden="true" { "\u{21BA}" }
236 span { "Back to the " strong { (RETURN_TO) } ": CORTEX evidence feeds the next round." }
237 }
238
239 (perimeter_band(&PERIMETER_BOTTOM, "Perimeter, capabilities and receipts"))
240 }
241 figcaption class="loop-caption" {
242 "ATLAS, AienOS, Aien, OMEGA, FORGE, REALITY, TURING and CORTEX are the stages. AEGIS, ARGUS, the capability system and evidence receipts form the perimeter around them. "
243 a class="omega-link" href="/omega/" { "What Omega is" }
244 ", in plain words, and its GPU half, "
245 a class="omega-link" href="/cudaplusplus/" { "CUDA++" }
246 "."
247 }
248 }
249
250 div class="home-questions" {
251 h2 class="home-questions-title" { "Three questions under the loop" }
252 ol class="home-q-list" {
253 @for (question, measure, meaning, status, note) in QUESTIONS.iter() {
254 @let shown = status.shown();
255 @let note_text: Option<String> = shown
256 .as_ref()
257 .map(|s| s.note.clone())
258 .or_else(|| note.map(|n| n.to_string()));
259 li class="home-q" {
260 p class="home-q-question" { (question) }
261 p class="home-q-measure" {
262 span class="home-q-measure-name" { (measure) }
263 @if let Some(s) = &shown {
264 " "
265 span class=(s.class) { (s.label) }
266 }
267 }
268 p class="home-q-meaning" { (meaning) }
269 @if let Some(n) = &note_text {
270 p class="home-q-note" { (n) }
271 }
272 }
273 }
274 }
275 }
276
277 div class="home-actions" {
278 a class="home-cta home-cta-primary" href="/start/" { "Start here" }
279 a class="home-cta" href="#evidence" { "See the evidence" }
280 a class="home-cta" href="#architecture" { "Explore the architecture" }
281 a class="home-cta home-cta-ghost" href="https://interplane.io/drakestapleton" target="_blank" rel="noopener noreferrer" { "GitHub" }
282 }
283 ul class="home-checks" {
284 li { "C kernel boots via UEFI \u{2713}" }
285 li { "Every status names its evidence or says NOT_RUN \u{2713}" }
286 li { "Failures published, not hidden \u{2713}" }
287 }
288 }
289 }
290 }
291}
292
293#[cfg(test)]
294mod tests {
295 use super::*;
296
297 // Expected strings are written out here on purpose, not read from the
298 // constants above, so editing a constant cannot silently pass the test.
299
300 fn page() -> String {
301 render_home_loop().into_string()
302 }
303
304 fn stage_list(s: &str) -> &str {
305 let start = s.find("<ol class=\"loop-stages\"").expect("stages must be an <ol>");
306 let end = s[start..].find("</ol>").expect("stage list closes") + start;
307 &s[start..end]
308 }
309
310 #[test]
311 fn central_statement_leads_and_thesis_follows() {
312 let s = page();
313 let lead = s
314 .find("AienOS is an owned experimental machine for turning search into verified understanding.")
315 .expect("central statement missing");
316 assert!(s[..lead].contains("<h1"), "central statement must be the h1 lead");
317 assert_eq!(s.matches("<h1").count(), 1, "exactly one h1");
318 for needle in [
319 "Then the next search begins from what survived.",
320 "AienOS is an attempt to build persistent machine intelligence as a scientific process.",
321 "Neural machinery may propose, but proposals have no authority.",
322 "Atlas carries the lineage across hardware.",
323 ] {
324 let at = s.find(needle).unwrap_or_else(|| panic!("missing: {needle}"));
325 assert!(at > lead, "must come after the lead: {needle}");
326 }
327 }
328
329 #[test]
330 fn slogan_present_after_thesis_and_before_loop() {
331 let s = page();
332 let slogan = "Weights suggest. Programs explain. Verification decides. Evidence teaches. The Turing keeps score.";
333 let at = s
334 .find(&format!("<p class=\"home-slogan\">{slogan}</p>"))
335 .expect("slogan missing or not in its display element");
336 assert!(at > s.find("Atlas carries the lineage").unwrap());
337 assert!(at < s.find("<ol class=\"loop-stages\"").unwrap());
338 }
339
340 #[test]
341 fn eight_stages_in_canonical_order() {
342 let s = page();
343 let ol = stage_list(&s);
344 let expected = [
345 ("ATLAS", "awakens / lineage"),
346 ("AienOS", "persistent owned substrate"),
347 ("Aien", "proposes / guides search"),
348 ("OMEGA", "formalizes / searches / verifies meaning"),
349 ("FORGE", "realizes"),
350 ("REALITY", "executes / responds"),
351 ("TURING", "scores explanatory gain"),
352 ("CORTEX", "preserves evidence"),
353 ];
354 assert_eq!(ol.matches("<li").count(), 8, "exactly 8 stages");
355 let mut from = 0;
356 for (name, role) in expected {
357 let needle = format!(
358 "<span class=\"loop-stage-name\">{name}</span><span class=\"loop-stage-role\">{role}</span>"
359 );
360 let at = ol[from..]
361 .find(&needle)
362 .unwrap_or_else(|| panic!("stage {name} missing or out of order"))
363 + from;
364 from = at + needle.len();
365 }
366 }
367
368 #[test]
369 fn return_arrow_follows_the_last_stage() {
370 let s = page();
371 let ol_end = s.find("<ol class=\"loop-stages\"").unwrap() + stage_list(&s).len();
372 let after = &s[ol_end..];
373 let ret = after.find("class=\"loop-return\"").expect("return marker missing");
374 assert!(after[ret..].contains('\u{21BA}'), "return arrow glyph missing");
375 assert!(after[ret..].contains("next Aien / Omega search"), "return target missing");
376 }
377
378 #[test]
379 fn perimeter_is_drawn_outside_the_stage_list() {
380 let s = page();
381 let ol = stage_list(&s);
382 let perim_start = s.find("<div class=\"loop-perimeter\"").expect("perimeter frame missing");
383 for name in ["AEGIS", "ARGUS", "Capability system", "Evidence receipts"] {
384 let needle = format!("<span class=\"loop-guard-name\">{name}</span>");
385 let at = s.find(&needle).unwrap_or_else(|| panic!("perimeter item {name} missing"));
386 assert!(at > perim_start, "{name} must sit inside the perimeter frame");
387 assert!(!ol.contains(name), "{name} must not be a stage");
388 }
389 assert!(!ol.contains("capability"), "capability system must not be a stage");
390 assert!(!ol.contains("receipts"), "evidence receipts must not be a stage");
391 }
392
393 #[test]
394 fn three_questions_directly_under_the_diagram() {
395 let s = page();
396 let fig_end = s.find("</figure>").expect("diagram figure missing");
397 let mut from = fig_end;
398 for q in [
399 "Did it learn anything?",
400 "What did it cost to learn?",
401 "Did what it learned make future discovery easier?",
402 ] {
403 let at = s[from..].find(q).unwrap_or_else(|| panic!("question missing or out of order: {q}")) + from;
404 from = at + q.len();
405 }
406 let checks = s.find("class=\"home-actions\"").unwrap();
407 assert!(from < checks, "questions must sit directly under the diagram");
408 }
409
410 #[test]
411 fn yield_and_gap_are_labelled_unmeasured() {
412 let s = page();
413 let y = s.find("Turing yield").expect("Turing yield missing");
414 let gap = s.find("Search / verification gap").expect("gap missing");
415 assert!(y < gap);
416 // Status words come from research_status.json, never hand-written.
417 let d = research_status::data();
418 let ty2 = d.turing_row("TY-2").expect("TY-2 row");
419 let tj = d.turing_row("TURING-YIELD-TJ").expect("TURING-YIELD-TJ row");
420 let yield_block = &s[y..gap];
421 assert!(
422 yield_block.contains(&format!(">{}<", tj.status)),
423 "yield badge must be the TURING-YIELD-TJ status from the data"
424 );
425 assert!(yield_block.contains(&tj.plain), "yield note must be the data row's plain text");
426 if tj.status == "NOT STARTED" {
427 assert!(yield_block.contains("status-planned"), "unstarted yield must carry the planned style");
428 }
429 let gap_block = &s[gap..s.find("class=\"home-actions\"").unwrap()];
430 assert!(!gap_block.contains("home-q-badge"), "gap has no data row, so no status badge");
431 assert!(gap_block.contains("Nothing here is measured yet."));
432 // Gain is never called yield, and its badge is the TY-2 row.
433 let gain = s.find("Turing gain").expect("Turing gain missing");
434 assert!(
435 s[gain..y].contains(&format!(">TY-2 {}<", ty2.status)),
436 "gain badge must be the TY-2 status from the data"
437 );
438 assert!(!s[gain..y].contains("yield"), "gain block must not mention yield");
439 }
440
441 #[test]
442 fn no_em_or_en_dashes_in_output() {
443 let s = page();
444 assert!(!s.contains('\u{2014}'), "em dash in homepage top");
445 assert!(!s.contains('\u{2013}'), "en dash in homepage top");
446 assert!(!s.contains("&mdash;") && !s.contains("&ndash;"), "dash entity in homepage top");
447 }
448}