diff --git a/e2e/openmotion/assets/ambient.mp3 b/e2e/openmotion/assets/ambient.mp3 index 092bd1e..316fd1a 100644 Binary files a/e2e/openmotion/assets/ambient.mp3 and b/e2e/openmotion/assets/ambient.mp3 differ diff --git a/e2e/openmotion/buildComposition.mjs b/e2e/openmotion/buildComposition.mjs index 1192341..7441b1a 100644 --- a/e2e/openmotion/buildComposition.mjs +++ b/e2e/openmotion/buildComposition.mjs @@ -133,7 +133,9 @@ const WALL_TILES = [ // --------------------------------------------------------------------- const XF = 0.5; // crossfade overlap between consecutive segments const DATA_DUR = 7.0; -const CH_DUR = 2.6; // chapter card window +const CH_DUR = 3.1; // chapter card window (lengthened from 2.6s in redesign-4 to give the +// now-two-line ledger entries a beat more breathing room between acts without touching +// any real captured footage - the only lever available that doesn't alter clip lengths). const WALL_DUR = 7.0; function clipDur(clips, name) { @@ -162,10 +164,10 @@ function buildTimeline(clips, assemblyDur) { field: COLORS.fieldAct1, frame: { x: 332, y: 0, scale: 0.9, tilt: -7 }, textSide: "left", card: "act1", clips: [{ key: "intro" }, { key: "act1" }], ledger: [ - { sig: "0x4f91ac2e", type: "waterwatch.reading.report", fields: 'sensorId: "kiosk-2", channel: "pH", value: 55', note: "Water Watch waits for two sensors to agree before it alerts." }, - { sig: "0x8a02ee71", type: "fairshare.need", fields: 'resource: "power", value: 10', note: "Fair Share warns before the cut, then splits what's left by need." }, - { sig: "0x1dcb6f40", type: "tunnelsafety.hazard.report", fields: 'segmentId: "seg-market-bypass", status: "flooded"', note: "Tunnel Safety logs the hazard and reroutes you around it." }, - { sig: null, type: null, fields: null, note: "Find Family matches privately, on-device \u2014 the search itself never touches this log." }, + { sig: "0x4f91ac2e", type: "waterwatch.reading.report", fields: 'sensorId: "kiosk-2", channel: "pH", value: 55', note: "CUSUM/EWMA change-point detection flags drift; an alert needs two sensors to corroborate.", detail: "the two sensors must now be graph-adjacent in the real pipe network, not just different IDs.", isNew: true }, + { sig: "0x8a02ee71", type: "fairshare.need", fields: 'resource: "power", value: 10', note: "A real Fisher-market CEEI solver splits power, water, food, and cooling by need.", detail: "power and cooling now get real allocation-history trend events too, not just water/food.", isNew: true }, + { sig: "0x1dcb6f40", type: "tunnelsafety.hazard.report", fields: 'segmentId: "seg-market-bypass", status: "flooded"', note: "Real A* routing reroutes around any segment a hazard report closes.", detail: "hazard reports now carry a real best-effort GPS fix via navigator.geolocation, honest fallback if denied.", isNew: true }, + { sig: null, type: null, fields: null, note: "A real DH-PSI protocol searches \u2014 the query name never leaves this device.", detail: "residents can register themselves into the directory now, not just the 4 hardcoded demo names.", isNew: true }, ], }); @@ -175,12 +177,12 @@ function buildTimeline(clips, assemblyDur) { field: COLORS.fieldAct2, frame: { x: -300, y: 0, scale: 0.84, tilt: 9 }, textSide: "right", card: "act2", clips: [{ key: "act2" }], ledger: [ - { sig: "0x2c7fa918", type: "fairshare.contribution", fields: 'resource: "food", value: 200.00', note: "Farms forecasts the grow-light yield so a level can feed itself." }, - { sig: "0x90b1d234", type: "housing.space.report", fields: 'spaceId: "common-room-3", location: "east wing"', note: "Housing surfaces idle space and reruns a fair assignment cycle." }, - { sig: "0x5e4cba09", type: "healthpost.referral", fields: 'urgency: "needs_treatment"', note: "Health Post triages by WHO-IMCI and routes a signed referral." }, - { sig: null, type: null, fields: null, note: "Light Clock stays local-only \u2014 your rest data is never uploaded or shared." }, - { sig: "0x773aef1c", type: "theclimb.plan.propose", fields: 'horizonPeriods: 1, surfaceNodeId: "surface"', note: "The Climb schedules who climbs when, shaft by shaft." }, - { sig: "0xbf02c856", type: "mentor.match", fields: 'apprentice: "you", mentor: "a94f..e2"', note: "Mentor finds at-risk skills and matches apprentices to them." }, + { sig: "0x2c7fa918", type: "fairshare.contribution", fields: 'resource: "food", value: 200.00', note: "A real GDD growing-degree-day model plus an LP optimizer plans what and when to plant.", detail: "the grow-light power budget is now live-read from Fair Share's real allocation, not typed by hand.", isNew: true }, + { sig: "0x90b1d234", type: "housing.space.report", fields: 'spaceId: "common-room-3", location: "east wing"', note: "A real MILP solver assigns space; a fairness-debt ledger replays across cycles.", detail: "step-free access and medical proximity are now real, solver-enforced hard constraints.", isNew: true }, + { sig: "0x5e4cba09", type: "healthpost.referral", fields: 'urgency: "needs_treatment"', note: "WHO-IMCI protocol triage \u2014 age-banded danger signs, dehydration, pneumonia \u2014", detail: "feeds a real signed referral straight to the clinician queue." }, + { sig: null, type: null, fields: null, note: "A real circadian phase-response model (Hannay19) runs on a manual log or motion-sensor actigraphy.", detail: "never a fabricated light sensor \u2014 and never wired to ration anything." }, + { sig: "0x773aef1c", type: "theclimb.plan.propose", fields: 'horizonPeriods: 1, surfaceNodeId: "surface"', note: "A time-expanded min-cost-flow scheduler plus a discrete-event congestion sim plans who climbs when.", detail: "contested slots call Fair Draw's real commit-reveal lottery, shaft by shaft." }, + { sig: "0xbf02c856", type: "mentor.match", fields: 'apprentice: "you", mentor: "a94f..e2"', note: "Dependents-count skill-criticality ranking surfaces what's at risk of disappearing.", detail: "real ts-fsrs spaced repetition then adapts the review plan to real outcomes." }, ], }); @@ -190,9 +192,9 @@ function buildTimeline(clips, assemblyDur) { field: COLORS.fieldAct3, frame: { x: 332, y: 0, scale: 0.9, tilt: -9 }, textSide: "left", card: "act3", clips: [{ key: "act3" }], ledger: [ - { sig: "0xd41fa6c2", type: "governance.qvBallot", fields: 'proposalId: "well-pump", choice: "yes", credits: 9', note: "Assembly keeps the roster, proposals and quadratic vote running when it's severed." }, - { sig: "0x6c0efb3a", type: "fairdraw.commit", fields: 'drawId: "d7", commitHash: "9af2\u2026"', note: "Fair Draw commits the result before it's revealed, so no one can re-roll." }, - { sig: "0x2f88c511", type: "sky.morale.pulse", fields: 'mood: "tense"', note: "Sky posts a shared memory wall and an honest, signed mood pulse." }, + { sig: "0xd41fa6c2", type: "governance.qvBallot", fields: 'proposalId: "well-pump", choice: "yes", credits: 9', note: "Real Yjs CRDT liquid democracy \u2014 transitive delegation \u2014 survives a real WebRTC partition and heal.", detail: "the QR sneakernet fallback is now wired to a real camera capture/scan UI, closing a long-standing gap.", isNew: true }, + { sig: "0x6c0efb3a", type: "fairdraw.commit", fields: 'drawId: "d7", commitHash: "9af2\u2026"', note: "A real SHA-256 commit-before-reveal lottery locks the result in before it's drawn.", detail: "the published commit can never be swapped for a different reveal afterward." }, + { sig: "0x2f88c511", type: "sky.morale.pulse", fields: 'mood: "tense"', note: "A real deterministic ambient clock and a real WebRTC presence count \u2014 never fabricated.", detail: "the memory wall and mood pulse now genuinely sync cross-device \u2014 silently local-only before.", isNew: true }, ], }); @@ -323,10 +325,13 @@ function main() { const card = TITLE_CARDS[s.card]; const entries = s.ledger .map((e, i) => { + const detailHtml = e.detail + ? `
${e.isNew ? 'New ' : ""}${esc(e.detail)}
` + : ""; if (!e.sig) { - return `
— no event signed —
${esc(e.note)}
`; + return `
— no event signed —
${esc(e.note)}
${detailHtml}
`; } - return `
${esc(e.sig)}${esc(e.type)}
{ ${esc(e.fields)} }
→ ${esc(e.note)}
`; + return `
${esc(e.sig)}${esc(e.type)}
{ ${esc(e.fields)} }
→ ${esc(e.note)}
${detailHtml}
`; }) .join("\n"); return `
@@ -451,19 +456,21 @@ ${tileEls} .st-eyebrow { color:#8fb6ff; letter-spacing:0.42em; font-size:19px; font-weight:700; text-transform:uppercase; } .st-title { color:#f5f8ff; font-size:46px; font-weight:800; letter-spacing:-0.02em; line-height:1.06; margin-top:14px; text-shadow:0 2px 24px rgba(5,15,40,0.6); } .stagetext.top .st-title { font-size:38px; } - .ledger-panel { margin-top:26px; display:flex; flex-direction:column; gap:10px; width:100%; + .ledger-panel { margin-top:22px; display:flex; flex-direction:column; gap:8px; width:100%; background:rgba(4,8,16,0.82); border:1px solid rgba(110,230,180,0.22); border-radius:14px; - padding:16px 20px 18px; box-shadow:0 20px 50px rgba(0,0,0,0.5); font-family:'SF Mono','Menlo','Consolas',monospace; } + padding:14px 20px 15px; box-shadow:0 20px 50px rgba(0,0,0,0.5); font-family:'SF Mono','Menlo','Consolas',monospace; } .ledger-head { color:rgba(140,255,205,0.85); font-size:13px; font-weight:700; letter-spacing:0.22em; text-transform:uppercase; display:flex; align-items:center; gap:8px; margin-bottom:2px; } .ledger-dot { width:7px; height:7px; border-radius:50%; background:#5cffb0; box-shadow:0 0 8px 2px rgba(92,255,176,0.7); } - .entry { padding:8px 0 10px; border-top:1px solid rgba(140,255,205,0.14); overflow:hidden; } + .entry { padding:7px 0 8px; border-top:1px solid rgba(140,255,205,0.14); overflow:hidden; } .entry:first-of-type { border-top:none; padding-top:2px; } .entry-sig { display:flex; gap:10px; align-items:baseline; font-size:14px; } .entry-hash { color:#5cffb0; font-weight:700; } .entry-type { color:#ffd27a; font-weight:700; } .entry-json { color:rgba(210,226,255,0.68); font-size:13px; margin-top:2px; } - .entry-note { color:#f2f7ff; font-size:17px; font-weight:700; letter-spacing:-0.005em; margin-top:5px; font-family:-apple-system,'Helvetica Neue',Arial,sans-serif; } + .entry-note { color:#f2f7ff; font-size:16px; font-weight:700; letter-spacing:-0.005em; margin-top:5px; line-height:1.28; font-family:-apple-system,'Helvetica Neue',Arial,sans-serif; } + .entry-detail { color:rgba(158,205,255,0.86); font-size:13.5px; font-weight:600; letter-spacing:-0.005em; margin-top:4px; line-height:1.3; font-family:-apple-system,'Helvetica Neue',Arial,sans-serif; } + .entry-tag { display:inline-block; background:rgba(92,255,176,0.18); color:#5cffb0; font-size:10.5px; font-weight:800; letter-spacing:0.08em; text-transform:uppercase; padding:1px 6px; border-radius:4px; margin-right:5px; vertical-align:1px; font-family:'SF Mono','Menlo','Consolas',monospace; } .entry.noevent .entry-sig { color:rgba(170,190,230,0.55); font-style:italic; font-size:14px; } .ledger-cursor { color:#5cffb0; font-size:18px; font-weight:700; margin-top:2px; } @@ -601,8 +608,10 @@ ${audioEl} tl.to('#text-' + s.id, { opacity: 0, duration: 0.45, ease: 'power2.in' }, s.end - F); // Each ledger entry reveals with a left-to-right scan wipe - a different // motion signature than the chapter cards' rise-and-fade. + // Stagger lengthened from 0.5s to 0.6s (redesign-4) to give the now-two-line + // mechanism+outcome entries a comfortable per-entry reveal pace. tl.fromTo('#text-' + s.id + ' .entry', { clipPath: 'inset(0 100% 0 0)', opacity: 0.001 }, - { clipPath: 'inset(0 0% 0 0)', opacity: 1, duration: 0.5, stagger: 0.5, ease: 'power2.out' }, s.start + 0.5); + { clipPath: 'inset(0 0% 0 0)', opacity: 1, duration: 0.5, stagger: 0.6, ease: 'power2.out' }, s.start + 0.5); // Live blinking cursor, driven by the same paused timeline (never a // wall-clock CSS @keyframes) so frame-by-frame rendering stays exact. const blinkCycles = Math.max(1, Math.floor((s.end - s.start) * 2)); diff --git a/e2e/openmotion/compositions/promo.html b/e2e/openmotion/compositions/promo.html index 5d1da01..e2394a5 100644 --- a/e2e/openmotion/compositions/promo.html +++ b/e2e/openmotion/compositions/promo.html @@ -30,19 +30,21 @@ .st-eyebrow { color:#8fb6ff; letter-spacing:0.42em; font-size:19px; font-weight:700; text-transform:uppercase; } .st-title { color:#f5f8ff; font-size:46px; font-weight:800; letter-spacing:-0.02em; line-height:1.06; margin-top:14px; text-shadow:0 2px 24px rgba(5,15,40,0.6); } .stagetext.top .st-title { font-size:38px; } - .ledger-panel { margin-top:26px; display:flex; flex-direction:column; gap:10px; width:100%; + .ledger-panel { margin-top:22px; display:flex; flex-direction:column; gap:8px; width:100%; background:rgba(4,8,16,0.82); border:1px solid rgba(110,230,180,0.22); border-radius:14px; - padding:16px 20px 18px; box-shadow:0 20px 50px rgba(0,0,0,0.5); font-family:'SF Mono','Menlo','Consolas',monospace; } + padding:14px 20px 15px; box-shadow:0 20px 50px rgba(0,0,0,0.5); font-family:'SF Mono','Menlo','Consolas',monospace; } .ledger-head { color:rgba(140,255,205,0.85); font-size:13px; font-weight:700; letter-spacing:0.22em; text-transform:uppercase; display:flex; align-items:center; gap:8px; margin-bottom:2px; } .ledger-dot { width:7px; height:7px; border-radius:50%; background:#5cffb0; box-shadow:0 0 8px 2px rgba(92,255,176,0.7); } - .entry { padding:8px 0 10px; border-top:1px solid rgba(140,255,205,0.14); overflow:hidden; } + .entry { padding:7px 0 8px; border-top:1px solid rgba(140,255,205,0.14); overflow:hidden; } .entry:first-of-type { border-top:none; padding-top:2px; } .entry-sig { display:flex; gap:10px; align-items:baseline; font-size:14px; } .entry-hash { color:#5cffb0; font-weight:700; } .entry-type { color:#ffd27a; font-weight:700; } .entry-json { color:rgba(210,226,255,0.68); font-size:13px; margin-top:2px; } - .entry-note { color:#f2f7ff; font-size:17px; font-weight:700; letter-spacing:-0.005em; margin-top:5px; font-family:-apple-system,'Helvetica Neue',Arial,sans-serif; } + .entry-note { color:#f2f7ff; font-size:16px; font-weight:700; letter-spacing:-0.005em; margin-top:5px; line-height:1.28; font-family:-apple-system,'Helvetica Neue',Arial,sans-serif; } + .entry-detail { color:rgba(158,205,255,0.86); font-size:13.5px; font-weight:600; letter-spacing:-0.005em; margin-top:4px; line-height:1.3; font-family:-apple-system,'Helvetica Neue',Arial,sans-serif; } + .entry-tag { display:inline-block; background:rgba(92,255,176,0.18); color:#5cffb0; font-size:10.5px; font-weight:800; letter-spacing:0.08em; text-transform:uppercase; padding:1px 6px; border-radius:4px; margin-right:5px; vertical-align:1px; font-family:'SF Mono','Menlo','Consolas',monospace; } .entry.noevent .entry-sig { color:rgba(170,190,230,0.55); font-style:italic; font-size:14px; } .ledger-cursor { color:#5cffb0; font-size:18px; font-weight:700; margin-top:2px; } @@ -98,7 +100,7 @@ .assembly { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; } -
+
@@ -112,11 +114,11 @@
- - - - - + + + + +
@@ -126,10 +128,10 @@
A Crisis, Verified Twice
SIGNED EVENT LOG · LIVE
-
0x4f91ac2ewaterwatch.reading.report
{ sensorId: "kiosk-2", channel: "pH", value: 55 }
→ Water Watch waits for two sensors to agree before it alerts.
-
0x8a02ee71fairshare.need
{ resource: "power", value: 10 }
→ Fair Share warns before the cut, then splits what's left by need.
-
0x1dcb6f40tunnelsafety.hazard.report
{ segmentId: "seg-market-bypass", status: "flooded" }
→ Tunnel Safety logs the hazard and reroutes you around it.
-
— no event signed —
Find Family matches privately, on-device — the search itself never touches this log.
+
0x4f91ac2ewaterwatch.reading.report
{ sensorId: "kiosk-2", channel: "pH", value: 55 }
→ CUSUM/EWMA change-point detection flags drift; an alert needs two sensors to corroborate.
the two sensors must now be graph-adjacent in the real pipe network, not just different IDs.
+
0x8a02ee71fairshare.need
{ resource: "power", value: 10 }
→ A real Fisher-market CEEI solver splits power, water, food, and cooling by need.
power and cooling now get real allocation-history trend events too, not just water/food.
+
0x1dcb6f40tunnelsafety.hazard.report
{ segmentId: "seg-market-bypass", status: "flooded" }
→ Real A* routing reroutes around any segment a hazard report closes.
hazard reports now carry a real best-effort GPS fix via navigator.geolocation, honest fallback if denied.
+
— no event signed —
A real DH-PSI protocol searches — the query name never leaves this device.
residents can register themselves into the directory now, not just the 4 hardcoded demo names.
>_
@@ -138,12 +140,12 @@
Keeping the Hollow Alive
SIGNED EVENT LOG · LIVE
-
0x2c7fa918fairshare.contribution
{ resource: "food", value: 200.00 }
→ Farms forecasts the grow-light yield so a level can feed itself.
-
0x90b1d234housing.space.report
{ spaceId: "common-room-3", location: "east wing" }
→ Housing surfaces idle space and reruns a fair assignment cycle.
-
0x5e4cba09healthpost.referral
{ urgency: "needs_treatment" }
→ Health Post triages by WHO-IMCI and routes a signed referral.
-
— no event signed —
Light Clock stays local-only — your rest data is never uploaded or shared.
-
0x773aef1ctheclimb.plan.propose
{ horizonPeriods: 1, surfaceNodeId: "surface" }
→ The Climb schedules who climbs when, shaft by shaft.
-
0xbf02c856mentor.match
{ apprentice: "you", mentor: "a94f..e2" }
→ Mentor finds at-risk skills and matches apprentices to them.
+
0x2c7fa918fairshare.contribution
{ resource: "food", value: 200.00 }
→ A real GDD growing-degree-day model plus an LP optimizer plans what and when to plant.
the grow-light power budget is now live-read from Fair Share's real allocation, not typed by hand.
+
0x90b1d234housing.space.report
{ spaceId: "common-room-3", location: "east wing" }
→ A real MILP solver assigns space; a fairness-debt ledger replays across cycles.
step-free access and medical proximity are now real, solver-enforced hard constraints.
+
0x5e4cba09healthpost.referral
{ urgency: "needs_treatment" }
→ WHO-IMCI protocol triage — age-banded danger signs, dehydration, pneumonia —
feeds a real signed referral straight to the clinician queue.
+
— no event signed —
A real circadian phase-response model (Hannay19) runs on a manual log or motion-sensor actigraphy.
never a fabricated light sensor — and never wired to ration anything.
+
0x773aef1ctheclimb.plan.propose
{ horizonPeriods: 1, surfaceNodeId: "surface" }
→ A time-expanded min-cost-flow scheduler plus a discrete-event congestion sim plans who climbs when.
contested slots call Fair Draw's real commit-reveal lottery, shaft by shaft.
+
0xbf02c856mentor.match
{ apprentice: "you", mentor: "a94f..e2" }
→ Dependents-count skill-criticality ranking surfaces what's at risk of disappearing.
real ts-fsrs spaced repetition then adapts the review plan to real outcomes.
>_
@@ -152,9 +154,9 @@
Who Decides
SIGNED EVENT LOG · LIVE
-
0xd41fa6c2governance.qvBallot
{ proposalId: "well-pump", choice: "yes", credits: 9 }
→ Assembly keeps the roster, proposals and quadratic vote running when it's severed.
-
0x6c0efb3afairdraw.commit
{ drawId: "d7", commitHash: "9af2…" }
→ Fair Draw commits the result before it's revealed, so no one can re-roll.
-
0x2f88c511sky.morale.pulse
{ mood: "tense" }
→ Sky posts a shared memory wall and an honest, signed mood pulse.
+
0xd41fa6c2governance.qvBallot
{ proposalId: "well-pump", choice: "yes", credits: 9 }
→ Real Yjs CRDT liquid democracy — transitive delegation — survives a real WebRTC partition and heal.
the QR sneakernet fallback is now wired to a real camera capture/scan UI, closing a long-standing gap.
+
0x6c0efb3afairdraw.commit
{ drawId: "d7", commitHash: "9af2…" }
→ A real SHA-256 commit-before-reveal lottery locks the result in before it's drawn.
the published commit can never be swapped for a different reveal afterward.
+
0x2f88c511sky.morale.pulse
{ mood: "tense" }
→ A real deterministic ambient clock and a real WebRTC presence count — never fabricated.
the memory wall and mood pulse now genuinely sync cross-device — silently local-only before.
>_
@@ -170,7 +172,7 @@
- +
Live Capture · Two Devices
@@ -244,7 +246,7 @@
Thirteen mini-apps, one signed wallet. One answer, more than one problem - every answer helps someone in the Hollow.
- +