diff --git a/.github/workflows/generated-allen-audio.yml b/.github/workflows/generated-allen-audio.yml new file mode 100644 index 0000000..a8a2242 --- /dev/null +++ b/.github/workflows/generated-allen-audio.yml @@ -0,0 +1,26 @@ +name: Generated Allen audio +on: + pull_request: + paths: + - 'om/allen-audio/**' + - 'public/audio/allen-chirp.wav' + - 'public/js/allen-audio.js' + - '.github/workflows/generated-allen-audio.yml' + push: + branches: [main] + paths: + - 'om/allen-audio/**' + - 'public/audio/allen-chirp.wav' + - 'public/js/allen-audio.js' + - '.github/workflows/generated-allen-audio.yml' +permissions: + contents: read +jobs: + artifact-hashes: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + # Hashes committed bytes only; the arm64 omc pin and the aienux oracle run in om/allen-audio/check.sh. + - name: Check the Omega-generated sound and script against their sidecars + working-directory: om/allen-audio + run: sha256sum -c allen-chirp.wav.sha256 allen-audio.js.sha256 diff --git a/.github/workflows/generated-hive.yml b/.github/workflows/generated-hive.yml index d4a0bb5..6dd39a3 100644 --- a/.github/workflows/generated-hive.yml +++ b/.github/workflows/generated-hive.yml @@ -6,6 +6,8 @@ on: - 'om/alpha-page/**' - 'public/js/alpha.js' - 'public/alpha/**' + - 'om/allen-intro/**' + - 'public/js/allen-intro.js' - 'public/js/hive.js' - 'public/js/turing-look.js' - 'crates/site-builder/**' @@ -17,6 +19,8 @@ on: - 'om/alpha-page/**' - 'public/js/alpha.js' - 'public/alpha/**' + - 'om/allen-intro/**' + - 'public/js/allen-intro.js' - 'public/js/hive.js' - 'public/js/turing-look.js' - 'crates/site-builder/**' @@ -35,3 +39,5 @@ jobs: run: cargo test --manifest-path crates/site-builder/Cargo.toml components::hive::tests::served_scripts_match_their_omega_generated_sha256 -- --exact - name: Check generated Alpha page and source run: cargo test --manifest-path crates/site-builder/Cargo.toml components::alpha::tests -- --nocapture + - name: Check generated Allen consent aside and script + run: cargo test --manifest-path crates/site-builder/Cargo.toml components::allen_intro::tests::allen_intro_artifacts_match_their_omega_generated_sha256 -- --exact diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 2f8b1bd..3263337 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -99,6 +99,8 @@ jobs: run: cargo test --release -p site-builder the_embedded_skeleton_matches_its_recorded_sha256 - name: Check the committed Alpha artifacts run: cargo test --release -p site-builder components::alpha::tests + - name: Check the committed Allen consent aside and script digests + run: cargo test --release -p site-builder allen_intro_artifacts_match_their_omega_generated_sha256 - name: Build static site with pure Rust engine run: cargo run --release --manifest-path crates/site-builder/Cargo.toml -- build dist - name: Upload Pages artifact diff --git a/AGENTS.md b/AGENTS.md index 076c051..cd54075 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -69,13 +69,14 @@ Open `http://127.0.0.1:8080/` after the preview server starts. GitHub Pages serv - Every page gets its head rewritten by `seo::enrich`: canonical on `https://www.aienos.com`, Open Graph and Twitter cards, hreflang, JSON-LD, `rel="alternate" type="text/markdown"`, `rel="describedby"` to `/llms.txt`, and robots snippet directives. Do not duplicate those tags in a component. - Every page also gets a Markdown mirror at the same path with `.md` (`/` becomes `/index.md`), with YAML frontmatter and a `## Sitemap` section. The mirror is generated from the final HTML; do not hand-write one. - Voice: Drake writes this site alone, in first person singular (I, me, my). Never a plural first-person word (the list is the regex in `voice::plural`). Where agents did the work, say so ("my agents", "I build this with AI agents"); never credit Drake with an agent's work, and never imply a team. Shared human claims use "everyone" or "people". `components::voice::verify_singular_voice` fails the build on any plural first-person word in rendered `dist` text (`.html` visible text, `.md`, `.txt`). Not counted: markup, scripts, styles, link targets, path/identifier parts (`how-we-did-it`), `50 us`, and on the ledger pages (`voice::LEDGER_PAGES`) text found verbatim in `data/now.tsv`, which is a dated record. Quotes of other people go in `voice::ALLOW` as (file, exact phrase); keep it small. Repository descriptions render on /agents/, so fix the GitHub description, not just `agent-repos.json`. -- Copy rules: no em dashes, no en dashes, no outside fonts or unconditional third-party scripts/trackers. The sole tracking exception is X pixel `rfrlz`, loaded from the first-party `public/js/allen-intro.js` only after explicit consent to the Allen introduction. Never embed `uwt.js` as a script source in HTML, inline its bootstrap, or preconnect/prefetch X hosts. The verifier rejects outside script sources on every emitted HTML page; `node scripts/test-allen-intro.cjs` exercises refusal, consent, reload and revocation. +- Allen speaks in his own voice: a plural pronoun in his speech means Allen and the visitor, not Drake plus a team. Only elements marked exactly `data-speaker="allen"` are removed before the plural check (`voice::ALLEN_SPEECH`, tested with negative controls: untagged copy, lookalike attributes, marker text and unclosed elements still fail). Tag Allen's speech and nothing else; Drake's page copy stays under the rule. +- Copy rules: no em dashes, no en dashes, no outside fonts or unconditional third-party scripts/trackers. The sole tracking exception is X pixel `rfrlz`, loaded from the first-party `public/js/allen-intro.js` only after the visitor chooses Say hi to Allen. Never embed `uwt.js` as a script source in HTML, inline its bootstrap, or preconnect/prefetch X hosts. The verifier rejects outside script sources on every emitted HTML page; `node scripts/test-allen-intro.cjs` exercises refusal, consent, reload and revocation. - Keep one source for machine-readable state. `status.json`, the status section, and the current-state lines in `llms.txt` all read `components::status::layer_states()`. - Tests live beside the code in `#[cfg(test)]` modules. Add a test when a rule can regress silently. -- The final shared `components::allen_intro::enrich` pass in `seo::enrich` adds one local consent loader, a native modal dialog and a privacy link to generated, hand-written and translated pages. `404.html` gets the same pass. `/privacy/` stays readable without an automatic modal and provides review and refusal controls. No and Escape persist refusal, with no automatic re-prompt. Stored Yes permits one initialization per document; refusal of an active pixel reloads without it. Local storage holds the choice; a session-storage refusal and `#allen-intro-no` protect reload if persistent storage fails. Storage clearing or another browser resets the choice, not consent. +- The final shared `components::allen_intro::enrich` pass in `seo::enrich` adds one local consent loader, Allen's hello aside and a privacy link to generated, hand-written and translated pages. `404.html` gets the same pass. The hello is a non-blocking `role="complementary"` aside (`aria-live="polite"`), never a modal: no backdrop, no `showModal`, focus moves only when the visitor asks via Review my choice. Allen calls Drake by name; the copy never mentions ads or how the visitor arrived. Memory consent (links to `/aien/?mode=remember` and `?mode=anonymous`) and X consent (Say hi / No thanks buttons) stay separate controls; one tap never means both. Global Privacy Control suppresses the pixel offer except on explicit Review; anonymous `/allen/` never loads the pixel. The Who can see me right now? panel is local-only (resource timing, navigator fields; no network, storage, hashing or IP lookup). The aside markup, Allen's words and `public/js/allen-intro.js` are generated by seeded Omega: edit `om/allen-intro/intro.om`, run `sh om/allen-intro/check.sh` (pinned `om/hive-page/omc`; `OMEGA_ACCEPT_CHANGE=1` to accept), and commit `intro.html`, the script and their sha256 sidecars; `components::allen_intro` only embeds the aside, and a unit test (also run in Pages and `generated-hive.yml`) re-hashes both artifacts. The visual layer uses only `window.aienAllenIntro` and `aien-allen-intro` events. A page with its own welcome marks `[data-allen-intro-defer]` and calls `aienAllenIntro.greet()` after it, so Allen's greeting follows the door instead of covering it. It auto-appears once per browser: first display writes `aien-allen-intro-seen` (session storage when local storage fails), chosen or not, and unanswered means No. `/privacy/` stays readable without it and provides review and refusal controls. No thanks, the close button and Escape persist refusal. Stored Yes permits one initialization per document; refusal of an active pixel reloads without it. Local storage holds the choice; a session-storage refusal and `#allen-intro-no` protect reload if persistent storage fails. Storage clearing or another browser resets the choice and the greeting, never consent. - Every page shows how to reach Drake: the header nav ends with the `aien-nav-reach` group (the `/contact/` page and a plain "Follow me on X" link to `https://x.com/mdrakestapleton` with an inline SVG mark, no widget or script), and the footer carries the `aien-reach-foot` line (X, `drake@aienos.com`, `/allen/`, GitHub aien-dev). Generated pages get both from `components::navbar` and `components::footer`; `components::contact::enrich` in `seo::enrich` adds them to hand-written and `/zh-CN/` pages (Chinese labels there), and `contact::verify` fails the build if any HTML page in `dist` lacks either. -- CSP coordination: no inline allen-intro scripts. An edge CSP for a page that enables this feature needs `script-src 'self' https://static.ads-twitter.com` and `connect-src` / `img-src` permissions for `https://analytics.twitter.com`, `https://analytics.x.com` and `https://t.co` (in addition to its first-party sources). These are the hosts named by the official loader inspected on 2026-10-26, not a wildcard allowance. CSP permissions are static, not conditional consent: `allen-intro.js` enforces consent before any X load. Do not loosen a no-JS edge board CSP; explicitly exclude that board from enrichment if introduced. `allen-intro.js` is outside the separate Hive/Turing Omega-generation change, by agreement with that lane. -- Before publishing a consent change, build `dist`, run `node scripts/test-allen-intro.cjs dist/js/allen-intro.js`, and verify in a real browser with cache disabled and requests observed before navigation: unknown/No/Escape and reload produce no X requests and no `window.twq`; saying hello requests the exact loader and configures `rfrlz` once. Test at mobile width 390, verify modal focus and keyboard dismissal, and run a guard-bypass negative control. Intercepted X requests prove gating, not X ingestion. The public project board and storage of check-ins are deferred pending Drake's storage decision; never collect entries under the pixel consent. +- CSP coordination: no inline allen-intro scripts. An edge CSP for a page that enables this feature needs `script-src 'self' https://static.ads-twitter.com` and `connect-src` / `img-src` permissions for `https://analytics.twitter.com`, `https://analytics.x.com` and `https://t.co` (in addition to its first-party sources). These are the hosts named by the official loader inspected on 2026-10-26, not a wildcard allowance. CSP permissions are static, not conditional consent: `allen-intro.js` enforces consent before any X load. Do not loosen a no-JS edge board CSP; explicitly exclude that board from enrichment if introduced. `allen-intro.js` is generated: it is written on fd 3 by `om/allen-intro/intro.om` beside the aside markup; never hand-edit the artifact, edit the `.om` and run `om/allen-intro/check.sh`. +- Before publishing a consent change, build `dist`, run `node scripts/test-allen-intro.cjs dist/js/allen-intro.js`, and verify in a real browser with cache disabled and requests observed before navigation: unknown/No/Escape and reload produce no X requests and no `window.twq`; Say hi requests the exact loader and configures `rfrlz` once; a reload does not show Allen again. Test at mobile width 390, verify the page stays interactive, focus is not stolen and Escape dismisses, and run a guard-bypass negative control. Intercepted X requests prove gating, not X ingestion. The public project board and storage of check-ins are deferred pending Drake's storage decision; never collect entries under the pixel consent. - Only after consent, retain the landing URL's `twclid` under browser-local `aien-allen-intro-twclid`; remove it on refusal. Drake chose pixel-only operation; server Conversion API work is deferred until the introduction flow has a backend. The single `eventIds` constant in `allen-intro.js` holds `pageVisit` and `introducedToAllen`, empty until Drake supplies the real IDs. Empty means no custom event. Configured IDs send one visit per consenting document and one introduced-to-Allen event per explicit introduction document, each with its own `crypto.randomUUID()` `conversion_id`. A future backend must forward that exact ID for deduplication, read `X_PIXEL_TOKEN` only from its private environment, and never expose the token in static output. - Hive's shell and browser client are generated by seeded Omega, never written in Rust or hand-edited in `public/js/`. `om/hive-page/check.sh` composes `contract.om`, `hive.om` and `hive-js.om`: stdout emits `main.html`, fd 3 emits `hive.js`. The shared contract owns ids, poll/freshness bounds and the board route; append entries rather than renumbering. `hive.om` owns the section order (`meta`, eight pipe-separated fields), shell controls, aria wiring and bounded panels. `om/hive-render/render.om` owns feed-derived rows, native details, manifests and messages. The browser only DOMParser-parses same-origin `/hive/board/` and morphs keyed nodes in place, preserving native open state, selection, focus, search and scroll. It never renders JSON or constructs feed markup. `turing-look.js` has its separate Omega generator. Commit sources, artifacts and hashes together; run the generation gate twice, site-builder tests and `scripts/test-hive-cosmic.py`. Neither served JS file is hand-edited. - `.github/workflows/generated-hive.yml` runs only the skeleton-hash and generated-script-hash tests on x86_64 for relevant pull requests and main pushes. It does not run `omc`, regenerate artifacts or change the full-suite-on-Spark policy. diff --git a/README.md b/README.md index f13a9cd..7dde29d 100644 --- a/README.md +++ b/README.md @@ -15,15 +15,23 @@ Live: [https://www.aienos.com](https://www.aienos.com), rebuilt hourly from the The homepage opens with "AienOS is an owned experimental machine for turning search into verified understanding" (`crates/site-builder/src/components/home_loop.rs`) and goes on to the loop, the story, the receipts behind each claim, how the pieces fit together, the research, an interactive terminal, the current status of each layer, and where to follow the work. Other pages: `/start/` (the newcomer route through what AIENOS is, what exists today, how to check the evidence, how to reproduce or contribute, and where the author and Interplane fit), `/progress/`, `/blog/`, `/research/status/`, `/machine/`, `/discovery/` and the hubs `/experiments/`, `/evidence/` and `/philosophy/`. The build also writes `status.json`, `research-status.json` and `llms.txt`; `status.json` and `llms.txt` come from the same code as the homepage status section, and `research-status.json` is `crates/site-builder/data/research_status.json`. The homepage status section says "Public release" is PLANNED, with no supported release or installer yet. -## Introduce yourself to Allen: consent-first X pixel +## Allen says hi: consent-first X pixel -Every built page gets one first-party `/js/allen-intro.js` loader from the final shared document pass, including hand-written pages, translations and the 404 page. Nothing from X is loaded until the visitor explicitly chooses **Introduce yourself to Allen** (or has a saved Yes). The unchanged official X base code configures pixel `rfrlz` once per document. **No** and Escape dismiss the native modal, remember refusal, and do not initialize `twq` or make an X tracking request. The browser tab stays open. `/privacy/` explains what X receives, normal hosting logs, browser-local storage, and how to refuse after consenting. It is readable without an automatic popup. +Every built page gets one first-party `/js/allen-intro.js` loader from the final shared document pass, including hand-written pages, translations and the 404 page. On a visitor's first page Allen appears in a bottom corner (the bottom edge on mobile) and types out Drake's static, client-rendered greeting ("Hi, I'm Aien (you say it like Ian). It's nice to meet you! ..."). It is a non-blocking `role="complementary"` aside with `aria-live="polite"`: no backdrop, no modal, no focus theft, and it never mentions ads. Reduced motion skips the slide and typing. It auto-appears only once per browser: first display records `aien-allen-intro-seen` in local storage (session storage if local storage is unavailable, so once per tab session), chosen or not. Not answering means no consent. It does not auto-appear on `/privacy/` or on the `/allen/` chat page. A page with a welcome of its own (the home door) marks `[data-allen-intro-defer]` and calls `aienAllenIntro.greet()` afterwards; deferral does not spend the once-only greeting. -Run `node scripts/test-allen-intro.cjs` (Node's built-in test runner, verification only) alongside the Rust suite and `build dist`. To exercise the built asset use `node scripts/test-allen-intro.cjs dist/js/allen-intro.js`. Browser verification must observe requests before navigation with cache disabled; check absence of X requests and `window.twq` before consent, after No and after reload, then require the exact loader URL and `config('rfrlz')` after saying hello. Check keyboard focus, Escape and mobile width 390. An intercepted loader tests gating, not ingestion by X. Confirm the real deployed pixel separately with [X Pixel Helper](https://chrome.google.com/webstore/detail/twitter-pixel-helper/jepminnlebllinfmkhfbkpckogoiefpd). +The aside's markup and `public/js/allen-intro.js` are generated by seeded Omega from `om/allen-intro/intro.om` (`sh om/allen-intro/check.sh` writes both with sha256 sidecars; the Rust builder embeds the aside and a test re-hashes both). Never hand-edit either artifact. + +Memory and X consent are separate controls, so one tap never means both. **Tell Aien my name** links to `/aien/?mode=remember`, where `/allen/` shows its own memory-consent step; **Chat anonymously** links to `/aien/?mode=anonymous`. The X pixel ask is its own line with **Say hi** and **No thanks**. Nothing from X is loaded until the visitor chooses **Say hi** (or has a saved Yes), and never while `/allen/` is in anonymous mode (`#allen` without `data-mode="remembered"`). The unchanged official X base code configures pixel `rfrlz` once per document. **No thanks**, the close button and Escape remember refusal and do not initialize `twq`; after **No thanks** Allen offers an anonymous chat. If the browser sends Global Privacy Control, the greeting does not offer the pixel at all; only **Review my choice** on `/privacy/` offers it. + +The **Who can see me right now?** expander lists the outside origins this document actually loaded (resource timing plus a `PerformanceObserver`; 0 before consent, the X origins after **Say hi**, each labelled as Drake's pixel) and what the browser tells every site (user agent, platform, language, timezone, screen size, referrer, Do Not Track, Global Privacy Control, cookies enabled). It is computed and shown locally, never sent or stored: no fingerprint hash, extension probing or IP lookup. It says what it cannot see and links to EFF Cover Your Tracks and Blacklight without embedding them. + +Allen's visual layer drives this through `window.aienAllenIntro` (`text`, `status()`, `sayHi()`, `noThanks()`, `dismiss()`, `review()`, `greet()`, `who()`, `onTrackers(fn)`) and the document `aien-allen-intro` event (`show`, `hide`, `reply-no`, `consent`). Memory consent is not part of that interface. `/privacy/` explains what X receives, normal hosting logs, browser-local storage, and how to refuse after consenting. + +Run `node scripts/test-allen-intro.cjs` (Node's built-in test runner, verification only) alongside the Rust suite and `build dist`. To exercise the built asset use `node scripts/test-allen-intro.cjs dist/js/allen-intro.js`. Browser verification must observe requests before navigation with cache disabled; check absence of X requests and `window.twq` before consent, after No and after reload, then require the exact loader URL and `config('rfrlz')` after Say hi. Check that the who-can-see panel reads 0 before consent and lists the X origins after, that a reload does not show Allen again, that the page stays clickable while he shows, keyboard reach, Escape and mobile width 390. An intercepted loader tests gating, not ingestion by X. Confirm the real deployed pixel separately with [X Pixel Helper](https://chrome.google.com/webstore/detail/twitter-pixel-helper/jepminnlebllinfmkhfbkpckogoiefpd). No new CSP is installed by this feature. If an edge adds one, the Allen introduction needs `script-src 'self' https://static.ads-twitter.com`; `connect-src` and `img-src` need the first-party origin plus `https://analytics.twitter.com`, `https://analytics.x.com`, and `https://t.co`. The official loader inspected on 2026-10-26 names those endpoints; do not permit all X subdomains. CSP permissions cannot vary after a button click: the first-party script is the consent gate. A separate no-JS board should keep its strict CSP and not receive the allen-intro loader. -The community board, project links, leave-times and storage of public check-ins are **deferred**, pending Drake's storage decision. Saying hello here consents only to the pixel and publishes no public entry. +The community board, project links, leave-times and storage of public check-ins are **deferred**, pending Drake's storage decision. Saying hi here consents only to the pixel and publishes no public entry. For consenting visitors only, `allen-intro.js` retains the landing URL's `twclid` in browser local storage (`aien-allen-intro-twclid`); No removes it. Drake chose pixel-only operation for now: the server Conversion API is deferred until the introduction flow has a backend. There is no conversion endpoint, server-side send or `X_PIXEL_TOKEN` in the site bundle. diff --git a/crates/site-builder/src/components/allen.rs b/crates/site-builder/src/components/allen.rs index f48449a..3625bdd 100644 --- a/crates/site-builder/src/components/allen.rs +++ b/crates/site-builder/src/components/allen.rs @@ -272,7 +272,8 @@ mod tests { assert!(function_body(script, "greeting").contains("message('allen', 'Aien')")); assert_eq!(script.matches("dataset.speaker").count(), 1, "only message() marks a speaker"); assert!(!function_body(script, "humanMessage").contains("speaker")); - assert!(!SKELETON.contains("data-speaker"), "Drake's page copy is never marked as Aien's"); + assert_eq!(SKELETON.matches("data-speaker=\"allen\"").count(), 1, "only the initially empty live reply is marked as Allen's"); + assert!(SKELETON.contains("id=\"allen-answer\" class=\"allen-answer\" data-speaker=\"allen\"")); } #[test] @@ -284,8 +285,8 @@ mod tests { ] { assert_eq!(SKELETON.matches(&format!(" id=\"{id}\"")).count(), 1, "exactly one #{id} in the skeleton"); } - assert!(SKELETON.contains("running on a DGX Spark in Drake's house")); - assert!(SKELETON.contains("No prompts or IP addresses are logged.")); + assert!(SKELETON.contains("Timing below is measured from this reply.")); + assert!(SKELETON.contains("Remembering you is a separate choice")); assert!(!SKELETON.contains('\u{2014}') && !SKELETON.contains('\u{2013}'), "no em or en dash"); } @@ -350,4 +351,28 @@ mod tests { assert!(!line.contains("filter") && !line.contains("box-shadow") && !line.contains("transition: all"), "compositor-only motion: {line}"); } } + + #[test] + fn the_presence_keeps_transport_and_consent_boundaries() { + let script = include_str!("../../../../public/js/allen-presence.js"); + let want = recorded(include_str!("../../../../om/allen-presence/presence.sha256")); + assert_eq!(format!("{:x}", Sha256::digest(script.as_bytes())), want); + for banned in ["innerHTML", "outerHTML", "insertAdjacentHTML", "fetch(", "localStorage", "sessionStorage", "eval("] { + assert!(!script.contains(banned), "the presence delegates effects, never uses {banned}"); + } + assert!(script.contains("api.on('human',event => replaceReply(event.text,'Drake'))")); + assert_eq!(script.matches("replaceReply(event.text,'Drake')").count(), 1); + assert!(script.contains("api.on('card',event =>")); + assert!(script.contains("node:event.node")); + assert!(script.contains("prefers-reduced-motion: reduce")); + assert!(!script.contains("AllenAudio.enter("), "the native tube is silent; the home door owns gesture-gated chirp playback"); + assert!(script.contains("window.allenPresence=Object.freeze({ready,enter,scene:() => scene,panes:() => panes})")); + assert!(script.contains("opening:homeDoor?'idle':'dusk'")); + assert!(script.contains("window.visualViewport")); + assert!(script.contains("allen-pane-request")); + assert!(SKELETON.contains("id=\"allen-session\" class=\"allen-session\" aria-label=\"Session history and privacy\" hidden")); + for id in ["allen-universe", "allen-enter", "allen-copy", "allen-regenerate", "allen-history", "allen-projects", "allen-mute", "allen-mic", "allen-speak", "allen-voice-privacy"] { + assert_eq!(SKELETON.matches(&format!("id=\"{id}\"")).count(), 1); + } + } } diff --git a/crates/site-builder/src/components/allen_intro.rs b/crates/site-builder/src/components/allen_intro.rs index 9dd76cb..5864030 100644 --- a/crates/site-builder/src/components/allen_intro.rs +++ b/crates/site-builder/src/components/allen_intro.rs @@ -1,25 +1,13 @@ use maud::{html, Markup}; -pub const HEAD: &str = ""; +pub const HEAD: &str = ""; -fn dialog() -> Markup { - html! { - dialog id="aien-allen-intro" role="dialog" aria-modal="true" aria-labelledby="allen-intro-title" aria-describedby="allen-intro-intro allen-intro-consent" { - h2 id="allen-intro-title" { "Say hello to Allen?" } - p id="allen-intro-intro" { - "Hey, you just clicked an ad. I just want you to know that if you didn't intend to click an ad, that's cool. Just click No and this popup will close. Nothing will be tracked by my X pixel. Your browser may not let me close a page I didn't open." - } - p id="allen-intro-consent" { - "But if you did want to see it, do you mind if I track you and know you were here? Allen is my AI. Introduce yourself to Allen by saying hello below. Saying hello means you consent to the X conversion pixel, so X receives information about your visit and helps me reach the right people. This doesn't open a chat or publish your identity." - } - div class="allen-intro-actions" { - button id="allen-intro-no" type="button" autofocus { "No" } - button id="allen-intro-yes" type="button" { "Introduce yourself to Allen" } - } - p { a href="/privacy/" { "Privacy, what X receives, and your choice" } } - } - } -} +/// Allen's consent aside, generated by seeded Omega (`om/allen-intro/intro.om`, run by +/// `om/allen-intro/check.sh` on arm64). Every structural and copy decision lives there, +/// including Drake's greeting, the separate memory links and X buttons, and the +/// local-only "Who can see me right now?" panel. Allen's speech carries +/// `data-speaker="allen"` for the voice rule. This builder only embeds the bytes. +pub const INTRO: &str = include_str!("../../../../om/allen-intro/intro.html"); /// Final shared document pass covers generated, hand-written and translated pages. /// Idempotence prevents duplicate loaders if an already-enriched page is copied. @@ -29,13 +17,17 @@ pub fn enrich(mut page: String) -> String { page.insert_str(end, HEAD); } if !page.contains("href=\"/privacy/\"") { - let link = "
"; + let link = ""; let end = page.rfind("").or_else(|| page.rfind("