HirModel commited on
Commit
7bc5763
Β·
verified Β·
1 Parent(s): 67c82a6

Upload 9 files

Browse files

Runtime Trail: Robot Day Loop v0.1 is a pressure-governed robot-life sandbox where a stylized helper robot works in a warehouse, tends a garden, cares for a dog, practices a domain, learns movement through beat-trace repetition, and recharges through a daily receipt loop. The core proof is not command execution. The core proof is visible correction under pressure: the robot practices, misses, adjusts, improves, and records what changed. Built as a self-contained HTML artifact for Hugging Face Spaces.

.gitattributes CHANGED
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ assets/social_card.png filter=lfs diff=lfs merge=lfs -text
37
+ assets/thumbnail.png filter=lfs diff=lfs merge=lfs -text
HF_COPY_PASTE_FIELDS.txt ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ SPACE NAME
2
+ runtime-trail-robot-day-loop
3
+
4
+ SHORT DESCRIPTION
5
+ Robot sandbox where skill grows through receipts.
6
+
7
+ LICENSE
8
+ cc-by-nc-sa-4.0
9
+
10
+ EXTENDED DESCRIPTION
11
+ Runtime Trail: Robot Day Loop v0.1 is a pressure-governed robot-life sandbox where a stylized helper robot works in a warehouse, tends a garden, cares for a dog, practices a domain, learns movement through beat-trace repetition, and recharges through a daily receipt loop. The core proof is not command execution. The core proof is visible correction under pressure: the robot practices, misses, adjusts, improves, and records what changed. Built as a self-contained HTML artifact for Hugging Face Spaces.
LICENSE.txt ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
2
+ SPDX-style identifier: cc-by-nc-sa-4.0
3
+
4
+ Copyright and authorship notice:
5
+ Runtime Trail: Robot Day Loop v0.1
6
+ Created and Developed by Collin D. Weber
7
+ Developer & System Architect
8
+ Systems Integrity Steward
9
+
10
+ This package is released under CC BY-NC-SA 4.0 unless otherwise stated.
README.md CHANGED
@@ -1,12 +1,60 @@
1
  ---
2
  title: Runtime Trail Robot Day Loop
3
- emoji: 😻
4
  colorFrom: blue
5
- colorTo: red
6
  sdk: static
 
7
  pinned: false
8
  license: cc-by-nc-sa-4.0
9
  short_description: Robot sandbox where skill grows through receipts.
10
  ---
11
 
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  title: Runtime Trail Robot Day Loop
3
+ emoji: πŸ€–
4
  colorFrom: blue
5
+ colorTo: green
6
  sdk: static
7
+ app_file: index.html
8
  pinned: false
9
  license: cc-by-nc-sa-4.0
10
  short_description: Robot sandbox where skill grows through receipts.
11
  ---
12
 
13
+ # Runtime Trail: Robot Day Loop v0.1
14
+
15
+ **Created and Developed by Collin D. Weber**
16
+ **Developer & System Architect**
17
+ **Systems Integrity Steward**
18
+
19
+ ![Runtime Trail social preview](assets/social_card.png)
20
+
21
+ ## Short Description
22
+
23
+ Robot sandbox where skill grows through receipts.
24
+
25
+ ## Extended Description
26
+
27
+ Runtime Trail: Robot Day Loop v0.1 is a pressure-governed robot-life sandbox where a stylized helper robot works in a warehouse, tends a garden, cares for a dog, practices a domain, learns movement through beat-trace repetition, and recharges through a daily receipt loop. The core proof is not command execution. The core proof is visible correction under pressure: the robot practices, misses, adjusts, improves, and records what changed. Built as a self-contained HTML artifact for Hugging Face Spaces.
28
+
29
+ ## Core Thesis
30
+
31
+ The robot does not receive mastery. It practices, misses, corrects, improves, and records what changed.
32
+
33
+ Runtime Trail: Robot Day Loop v0.1 turns the bounded AI runtime into a playable robot-life sandbox. The system routes warehouse work, garden care, dog care, beat-trace practice, home expression, and recharge through pressure forms, action gates, and daily receipts.
34
+
35
+ The dance is not downloaded. The dance grows.
36
+
37
+ ## Included v0.1 Scope
38
+
39
+ - Warehouse task loop
40
+ - Garden care loop
41
+ - Dog care / living-boundary loop
42
+ - Domain practice loop
43
+ - Beat-trace learning graph
44
+ - Action gate states: HELD, STRAINED, MUST STOP, REVIEW
45
+ - Daily receipt / provenance log
46
+ - Parking lot for future features
47
+
48
+ ## Parked for Later Releases
49
+
50
+ - MP3 upload and custom audio beat extraction
51
+ - Local park / public-boundary layer
52
+ - Weather shelter and repair expansion
53
+ - Community style packs, clothing, and accessories
54
+ - Settlement mode and commons infrastructure simulation
55
+
56
+ ## License
57
+
58
+ cc-by-nc-sa-4.0
59
+
60
+ Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International.
RELEASE_MANIFEST.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "Runtime Trail: Robot Day Loop v0.1",
3
+ "space_name": "runtime-trail-robot-day-loop",
4
+ "version": "0.1",
5
+ "short_description": "Robot sandbox where skill grows through receipts.",
6
+ "license": "cc-by-nc-sa-4.0",
7
+ "created_and_developed_by": "Collin D. Weber",
8
+ "roles": [
9
+ "Developer & System Architect",
10
+ "Systems Integrity Steward"
11
+ ],
12
+ "entrypoint": "index.html",
13
+ "sdk": "static",
14
+ "files": [
15
+ "README.md",
16
+ "index.html",
17
+ "runtime_trail_robot_day_loop_v0_1.html",
18
+ "assets/social_card.png",
19
+ "assets/thumbnail.png",
20
+ "LICENSE.txt",
21
+ "HF_COPY_PASTE_FIELDS.txt",
22
+ "SHA256SUMS.txt",
23
+ "RELEASE_MANIFEST.json"
24
+ ]
25
+ }
SHA256SUMS.txt ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ 80f2930f6843e1946e6f89b00150c409828584023150e342052b9f760ffa4daa HF_COPY_PASTE_FIELDS.txt
2
+ 85698fa4df71a92c56b06ad456b429ae41e68eee1f1874320e411932e34ae962 LICENSE.txt
3
+ 61b4d0edf36305f67aa775129b14349c5b917e4b791bd6974666aeac3ab4f1e0 README.md
4
+ a263211b1b4b4a7d5d26790a74683ae521616bca288263be76c23758c22ad2e0 RELEASE_MANIFEST.json
5
+ c19a051add0dd5434e0f6aeb597de7277b74f20b16744d54916291d274887318 assets/social_card.png
6
+ 1e02e9dbe3eb30b5ec42c3eb20cc76f053c80bee0b11abb94aa93c2bc9bfe34f assets/thumbnail.png
7
+ a1d567bcdf90c4cb84ece5b59212e51c57a9dcda7d47c8da3d2817921f832db3 index.html
8
+ a1d567bcdf90c4cb84ece5b59212e51c57a9dcda7d47c8da3d2817921f832db3 runtime_trail_robot_day_loop_v0_1.html
assets/social_card.png ADDED

Git LFS Details

  • SHA256: c19a051add0dd5434e0f6aeb597de7277b74f20b16744d54916291d274887318
  • Pointer size: 132 Bytes
  • Size of remote file: 1.03 MB
assets/thumbnail.png ADDED

Git LFS Details

  • SHA256: 1e02e9dbe3eb30b5ec42c3eb20cc76f053c80bee0b11abb94aa93c2bc9bfe34f
  • Pointer size: 131 Bytes
  • Size of remote file: 219 kB
index.html CHANGED
@@ -1,19 +1,562 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  </html>
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <title>Runtime Trail: Robot Day Loop v0.1</title>
7
+ <meta name="description" content="Robot sandbox where skill grows through receipts." />
8
+ <meta property="og:title" content="Runtime Trail: Robot Day Loop v0.1" />
9
+ <meta property="og:description" content="A pressure-governed robot-life sandbox where work, care, dance practice, and recharge route through action gates and receipts." />
10
+ <meta property="og:image" content="assets/social_card.png" />
11
+ <meta name="twitter:card" content="summary_large_image" />
12
+ <meta name="twitter:title" content="Runtime Trail: Robot Day Loop v0.1" />
13
+ <meta name="twitter:description" content="Robot sandbox where skill grows through receipts." />
14
+ <meta name="twitter:image" content="assets/social_card.png" />
15
+
16
+ <style>
17
+ :root{
18
+ --bg:#0b0f14;
19
+ --panel:#111923;
20
+ --panel2:#172230;
21
+ --ink:#e8f0f7;
22
+ --muted:#96a8bb;
23
+ --line:#2c3b4c;
24
+ --held:#73e2a7;
25
+ --strained:#ffd166;
26
+ --stop:#ff6b6b;
27
+ --review:#8ecae6;
28
+ --accent:#9cc8ff;
29
+ --violet:#c7a7ff;
30
+ --soft:#243246;
31
+ }
32
+ *{box-sizing:border-box}
33
+ body{margin:0;background:radial-gradient(circle at top left,#152132 0,#0b0f14 52%,#06080b 100%);color:var(--ink);font-family:Inter,Segoe UI,Roboto,Arial,sans-serif;overflow-x:hidden}
34
+ header{padding:18px 22px;border-bottom:1px solid var(--line);background:linear-gradient(90deg,rgba(15,24,36,.96),rgba(10,14,20,.9));position:sticky;top:0;z-index:5;backdrop-filter:blur(8px)}
35
+ h1{font-size:22px;margin:0 0 4px;letter-spacing:.3px}
36
+ .subtitle{color:var(--muted);font-size:13px;line-height:1.4}
37
+ .attrib{font-size:12px;color:#cfd8e3;margin-top:7px;display:flex;gap:12px;flex-wrap:wrap}
38
+ main{display:grid;grid-template-columns:minmax(640px,1.35fr) minmax(360px,.65fr);gap:14px;padding:14px;min-height:calc(100vh - 85px)}
39
+ .card{background:linear-gradient(180deg,rgba(20,31,44,.96),rgba(12,18,27,.96));border:1px solid var(--line);border-radius:16px;box-shadow:0 18px 50px rgba(0,0,0,.28);overflow:hidden}
40
+ .card h2{font-size:15px;margin:0;padding:12px 14px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.025);letter-spacing:.2px}
41
+ .sceneWrap{padding:12px;display:grid;grid-template-rows:auto 1fr auto;gap:10px}
42
+ .topbar{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}
43
+ .meter{background:rgba(255,255,255,.04);border:1px solid var(--line);border-radius:12px;padding:9px;min-width:0}
44
+ .meter label{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin-bottom:6px;gap:8px;white-space:nowrap}
45
+ .track{height:8px;border-radius:8px;background:#0a0f16;border:1px solid #223247;overflow:hidden}
46
+ .fill{height:100%;border-radius:8px;background:linear-gradient(90deg,var(--accent),var(--held));width:50%;transition:width .35s ease}
47
+ .fill.warn{background:linear-gradient(90deg,var(--strained),#ff9f1c)}
48
+ .fill.bad{background:linear-gradient(90deg,var(--stop),#b5173f)}
49
+ .stage{position:relative;min-height:520px;border:1px solid var(--line);border-radius:16px;overflow:hidden;background:linear-gradient(180deg,#142236 0,#0d1420 100%)}
50
+ svg{width:100%;height:100%;display:block;min-height:520px}
51
+ .zone-label{font-size:12px;fill:#d8e6f2;opacity:.9;font-weight:600;letter-spacing:.4px}
52
+ .tiny{font-size:10px;fill:#9fb2c6;letter-spacing:.2px}
53
+ .tileHome{fill:#1c2f45}.tileWarehouse{fill:#2b2d42}.tileGarden{fill:#24463a}.tilePractice{fill:#3a2c4f}.tileDock{fill:#2d3d4d}.tilePath{fill:#1f2937}
54
+ .stroke{stroke:#4a5d75;stroke-width:1.4}.softstroke{stroke:#33485f;stroke-width:1}
55
+ .robotPart{fill:#d6e4ef;stroke:#6f849b;stroke-width:1.4}.robotDark{fill:#60768d}.robotCore{fill:#80ffdb;filter:url(#glow)}.eye{fill:#8ecae6}.joint{fill:#94a3b8;stroke:#617287;stroke-width:1}
56
+ .dogBody{fill:#d8b38a;stroke:#7c5e3d;stroke-width:1.2}.dogDark{fill:#7a5639}.leash{stroke:#98b4d4;stroke-width:2;stroke-dasharray:4 3;opacity:.85}
57
+ .robotGroup{transition:transform .75s cubic-bezier(.2,.9,.2,1)}
58
+ .dogGroup{transition:transform .75s cubic-bezier(.2,.9,.2,1)}
59
+ .dancing .leftArm{animation:leftArm 600ms ease-in-out infinite alternate;transform-box:fill-box;transform-origin:85% 20%}
60
+ .dancing .rightArm{animation:rightArm 520ms ease-in-out infinite alternate;transform-box:fill-box;transform-origin:15% 20%}
61
+ .dancing .leftLeg{animation:leftLeg 650ms ease-in-out infinite alternate;transform-box:fill-box;transform-origin:80% 5%}
62
+ .dancing .rightLeg{animation:rightLeg 600ms ease-in-out infinite alternate;transform-box:fill-box;transform-origin:20% 5%}
63
+ .dancing .torso{animation:torso 700ms ease-in-out infinite alternate;transform-box:fill-box;transform-origin:center}
64
+ .wag .tail{animation:wag 260ms ease-in-out infinite alternate;transform-box:fill-box;transform-origin:0% 50%}
65
+ @keyframes leftArm{from{transform:rotate(-12deg)}to{transform:rotate(34deg)}}
66
+ @keyframes rightArm{from{transform:rotate(22deg)}to{transform:rotate(-26deg)}}
67
+ @keyframes leftLeg{from{transform:rotate(8deg)}to{transform:rotate(-16deg)}}
68
+ @keyframes rightLeg{from{transform:rotate(-10deg)}to{transform:rotate(16deg)}}
69
+ @keyframes torso{from{transform:rotate(-2deg) translateY(0)}to{transform:rotate(2deg) translateY(-3px)}}
70
+ @keyframes wag{from{transform:rotate(-18deg)}to{transform:rotate(28deg)}}
71
+ .controls{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
72
+ button,select{background:#152235;color:var(--ink);border:1px solid #334962;border-radius:11px;padding:10px 10px;font-weight:650;font-size:12px;cursor:pointer;transition:all .15s ease;min-width:0}
73
+ button:hover,select:hover{border-color:#6aa6e8;background:#1a2b42;transform:translateY(-1px)}
74
+ button:active{transform:translateY(0)}
75
+ button.primary{background:linear-gradient(180deg,#2364aa,#174a7e);border-color:#4d9de0}
76
+ button.good{background:linear-gradient(180deg,#1f7a55,#14543a);border-color:#57cc99}
77
+ button.warn{background:linear-gradient(180deg,#9d6b18,#6d4810);border-color:#ffd166}
78
+ .side{display:grid;gap:14px;align-content:start}
79
+ .panelBody{padding:12px}
80
+ .grid2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
81
+ .kv{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.06);font-size:12px}.kv span:first-child{color:var(--muted)}
82
+ .gate{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px;background:rgba(255,255,255,.04);border:1px solid var(--line);border-radius:12px;padding:10px}
83
+ .chip{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800;letter-spacing:.35px;border:1px solid rgba(255,255,255,.12)}
84
+ .chip.held{background:rgba(115,226,167,.13);color:var(--held);border-color:rgba(115,226,167,.4)}
85
+ .chip.strained{background:rgba(255,209,102,.13);color:var(--strained);border-color:rgba(255,209,102,.4)}
86
+ .chip.stop{background:rgba(255,107,107,.13);color:var(--stop);border-color:rgba(255,107,107,.4)}
87
+ .chip.review{background:rgba(142,202,230,.13);color:var(--review);border-color:rgba(142,202,230,.4)}
88
+ .beatCanvas{width:100%;height:190px;background:#07101a;border:1px solid var(--line);border-radius:12px;display:block}
89
+ .receipt{height:275px;width:100%;resize:vertical;background:#07101a;color:#dce8f3;border:1px solid var(--line);border-radius:12px;padding:10px;font:12px/1.45 Consolas,Monaco,monospace;white-space:pre}
90
+ .smallControls{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:8px}
91
+ .parking{font-size:12px;color:#c5d1df;line-height:1.45}.parking ul{margin:8px 0 0 18px;padding:0}.parking li{margin:4px 0;color:#aebfd1}
92
+ .callout{border:1px solid rgba(156,200,255,.28);background:rgba(156,200,255,.08);border-radius:12px;padding:10px;font-size:12px;color:#d9e8f7;line-height:1.45;margin-bottom:10px}
93
+ .mono{font-family:Consolas,Monaco,monospace;color:#dbe9f7}
94
+
95
+ .heroImage{margin:16px auto 0;max-width:1180px;padding:0 22px}
96
+ .heroImage img{display:block;width:100%;height:auto;border:1px solid rgba(156,200,255,.26);border-radius:18px;box-shadow:0 24px 80px rgba(0,0,0,.35);background:#07101a}
97
+ .heroImage figcaption{font-size:12px;color:var(--muted);line-height:1.45;margin:8px 4px 0}
98
+ @media(max-width:1080px){main{grid-template-columns:1fr}.topbar{grid-template-columns:repeat(2,1fr)}.controls{grid-template-columns:repeat(2,1fr)}}
99
+ </style>
100
+ </head>
101
+ <body>
102
+ <header>
103
+ <h1>Runtime Trail: Robot Day Loop v0.1</h1>
104
+ <div class="subtitle">A pressure-governed warehouse-to-home sandbox for movement, care, practice, expression, and recharge.</div>
105
+ <div class="attrib"><span>Created and Developed by Collin D. Weber</span><span>Developer &amp; System Architect</span><span>Systems Integrity Steward</span></div>
106
+ </header>
107
+
108
+ <figure class="heroImage" aria-label="Runtime Trail social preview image">
109
+ <img src="assets/social_card.png" alt="Runtime Trail Robot Day Loop v0.1 social-card image showing a stylized helper robot, dog, beat trace, action gates, receipt trace, warehouse, garden, and recharge dock." />
110
+ <figcaption>Robot-life loop preview: work, care, beat-trace practice, receipts, and recharge.</figcaption>
111
+ </figure>
112
+
113
+ <main>
114
+ <section class="card sceneWrap">
115
+ <div class="topbar">
116
+ <div class="meter"><label><span>Battery</span><b id="batteryVal">100%</b></label><div class="track"><div id="batteryFill" class="fill"></div></div></div>
117
+ <div class="meter"><label><span>Gyro Stability</span><b id="gyroVal">86%</b></label><div class="track"><div id="gyroFill" class="fill"></div></div></div>
118
+ <div class="meter"><label><span>Body Wear</span><b id="wearVal">0%</b></label><div class="track"><div id="wearFill" class="fill warn"></div></div></div>
119
+ <div class="meter"><label><span>Monotony Pressure</span><b id="monoVal">12%</b></label><div class="track"><div id="monoFill" class="fill warn"></div></div></div>
120
+ <div class="meter"><label><span>Practice Readiness</span><b id="readinessVal">18%</b></label><div class="track"><div id="readinessFill" class="fill"></div></div></div>
121
+ </div>
122
+
123
+ <div class="stage" aria-label="stylized 3D robot day loop scene">
124
+ <svg viewBox="0 0 900 560" role="img">
125
+ <defs>
126
+ <filter id="glow" x="-50%" y="-50%" width="200%" height="200%"><feGaussianBlur stdDeviation="3" result="blur"/><feMerge><feMergeNode in="blur"/><feMergeNode in="SourceGraphic"/></feMerge></filter>
127
+ <linearGradient id="floor" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#1a2b3d"/><stop offset="1" stop-color="#0b111a"/></linearGradient>
128
+ <linearGradient id="crate" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#8d6e63"/><stop offset="1" stop-color="#4f3d37"/></linearGradient>
129
+ <linearGradient id="glass" x1="0" y1="0" x2="1" y2="1"><stop offset="0" stop-color="#bbdefb" stop-opacity=".86"/><stop offset="1" stop-color="#4fc3f7" stop-opacity=".38"/></linearGradient>
130
+ </defs>
131
+
132
+ <rect x="0" y="0" width="900" height="560" fill="url(#floor)"/>
133
+ <path d="M70 400 L270 300 L470 398 L270 510 Z" class="tileHome stroke"/>
134
+ <text x="178" y="404" class="zone-label">HOME</text><text x="155" y="422" class="tiny">dock β€’ dog bed β€’ practice return</text>
135
+ <path d="M510 80 L810 165 L690 310 L390 220 Z" class="tileWarehouse stroke"/>
136
+ <text x="565" y="170" class="zone-label">WAREHOUSE</text><text x="555" y="188" class="tiny">fragile β€’ heavy β€’ liquid β€’ unknown</text>
137
+ <path d="M110 95 L320 40 L455 150 L235 228 Z" class="tileGarden stroke"/>
138
+ <text x="198" y="126" class="zone-label">GARDEN</text><text x="168" y="144" class="tiny">soil β€’ light β€’ water β€’ care</text>
139
+ <path d="M505 345 L770 302 L850 430 L595 500 Z" class="tilePractice stroke"/>
140
+ <text x="615" y="402" class="zone-label">PRACTICE</text><text x="600" y="420" class="tiny">beat graph β€’ repetition β€’ receipt</text>
141
+ <path d="M305 416 L407 366 L470 398 L365 454 Z" class="tileDock stroke"/>
142
+ <text x="350" y="408" class="tiny">RECHARGE</text>
143
+ <path d="M250 300 C350 250 430 230 520 220" fill="none" stroke="#6c83a0" stroke-width="8" opacity=".18" stroke-linecap="round"/>
144
+ <path d="M255 295 C300 235 300 185 245 220" fill="none" stroke="#6c83a0" stroke-width="8" opacity=".14" stroke-linecap="round"/>
145
+ <path d="M300 425 C430 385 500 382 615 400" fill="none" stroke="#6c83a0" stroke-width="8" opacity=".14" stroke-linecap="round"/>
146
+ <path d="M530 500 C650 535 790 510 830 458" fill="none" stroke="#6c83a0" stroke-width="7" opacity=".1" stroke-linecap="round"/>
147
+ <text x="715" y="515" class="tiny">PARK ROUTE β€” PARKED</text>
148
+
149
+ <!-- warehouse objects -->
150
+ <g opacity=".92">
151
+ <rect x="610" y="184" width="45" height="35" rx="5" fill="url(#crate)" stroke="#30251f"/>
152
+ <rect x="670" y="202" width="40" height="31" rx="5" fill="url(#glass)" stroke="#a3d7ff"/>
153
+ <rect x="555" y="210" width="50" height="38" rx="6" fill="#59677a" stroke="#a6b3c2"/>
154
+ <circle cx="735" cy="240" r="19" fill="#806f42" stroke="#e4c97a"/>
155
+ </g>
156
+
157
+ <!-- garden plants -->
158
+ <g opacity=".95">
159
+ <ellipse cx="235" cy="165" rx="28" ry="13" fill="#203b2f" stroke="#49715d"/>
160
+ <path d="M225 160 q8 -30 20 0 q10 -25 24 0" fill="none" stroke="#73e2a7" stroke-width="5" stroke-linecap="round"/>
161
+ <ellipse cx="300" cy="132" rx="30" ry="14" fill="#203b2f" stroke="#49715d"/>
162
+ <path d="M290 127 q12 -35 20 0 q12 -28 25 0" fill="none" stroke="#57cc99" stroke-width="5" stroke-linecap="round"/>
163
+ <rect x="160" y="165" width="45" height="28" rx="6" fill="#334155" stroke="#6b7d91"/>
164
+ <text x="164" y="183" class="tiny">WATER</text>
165
+ </g>
166
+
167
+ <!-- dock/home objects -->
168
+ <g opacity=".9">
169
+ <rect x="340" y="390" width="55" height="42" rx="10" fill="#182536" stroke="#8ecae6"/>
170
+ <circle cx="367" cy="411" r="12" fill="#80ffdb" opacity=".45"/>
171
+ <ellipse cx="200" cy="460" rx="45" ry="18" fill="#5d4b3b" stroke="#c7a27d"/>
172
+ <circle cx="142" cy="433" r="15" fill="#41556c" stroke="#8ecae6"/><text x="126" y="460" class="tiny">BOWL</text>
173
+ </g>
174
+
175
+ <!-- dog group -->
176
+ <g id="dog" class="dogGroup wag" transform="translate(220 430)">
177
+ <path class="tail dogDark" d="M-34 -9 q-24 -10 -30 -27" fill="none" stroke="#7a5639" stroke-width="7" stroke-linecap="round"/>
178
+ <ellipse class="dogBody" cx="0" cy="0" rx="38" ry="19"/>
179
+ <circle class="dogBody" cx="39" cy="-11" r="18"/>
180
+ <path class="dogDark" d="M35 -28 q-8 -22 10 -10 q8 10 3 23"/>
181
+ <circle cx="46" cy="-14" r="3" fill="#111"/>
182
+ <path d="M53 -7 q9 4 0 8" fill="none" stroke="#30251f" stroke-width="2"/>
183
+ <line x1="-18" y1="15" x2="-22" y2="38" stroke="#7a5639" stroke-width="7" stroke-linecap="round"/>
184
+ <line x1="18" y1="15" x2="15" y2="38" stroke="#7a5639" stroke-width="7" stroke-linecap="round"/>
185
+ <rect x="16" y="-22" width="28" height="9" rx="4" fill="#3b82f6" opacity=".9"/>
186
+ </g>
187
+ <line id="leash" class="leash" x1="280" y1="392" x2="265" y2="418"/>
188
+
189
+ <!-- robot group -->
190
+ <g id="robot" class="robotGroup" transform="translate(285 355)">
191
+ <g class="leftLeg"><rect class="robotPart" x="-17" y="58" width="15" height="46" rx="7"/><circle class="joint" cx="-9" cy="59" r="7"/><rect class="robotDark" x="-23" y="99" width="28" height="10" rx="5"/></g>
192
+ <g class="rightLeg"><rect class="robotPart" x="15" y="58" width="15" height="46" rx="7"/><circle class="joint" cx="23" cy="59" r="7"/><rect class="robotDark" x="9" y="99" width="28" height="10" rx="5"/></g>
193
+ <g class="leftArm"><rect class="robotPart" x="-48" y="6" width="16" height="56" rx="8"/><circle class="joint" cx="-34" cy="11" r="8"/><ellipse class="robotDark" cx="-39" cy="66" rx="11" ry="8"/></g>
194
+ <g class="rightArm"><rect class="robotPart" x="39" y="6" width="16" height="56" rx="8"/><circle class="joint" cx="42" cy="11" r="8"/><ellipse class="robotDark" cx="48" cy="66" rx="11" ry="8"/></g>
195
+ <g class="torso">
196
+ <rect class="robotPart" x="-30" y="0" width="68" height="72" rx="18"/>
197
+ <circle class="robotCore" cx="4" cy="34" r="11"/>
198
+ <path d="M-7 34 L4 22 L15 34 L4 46 Z" fill="none" stroke="#0b6155" stroke-width="1.3" opacity=".8"/>
199
+ </g>
200
+ <g class="head">
201
+ <rect class="robotPart" x="-29" y="-47" width="66" height="44" rx="18"/>
202
+ <circle class="eye" cx="-10" cy="-25" r="5"/><circle class="eye" cx="18" cy="-25" r="5"/>
203
+ <path d="M-4 -12 q9 6 18 0" fill="none" stroke="#60768d" stroke-width="2" stroke-linecap="round"/>
204
+ <circle cx="4" cy="-51" r="5" fill="#9cc8ff" opacity=".9"/>
205
+ </g>
206
+ </g>
207
+
208
+ <text id="sceneCaption" x="30" y="532" fill="#dce8f3" font-size="14" font-weight="700">Home check: battery, gyro, dog, garden, and practice readiness.</text>
209
+ </svg>
210
+ </div>
211
+
212
+ <div class="controls">
213
+ <button class="primary" onclick="startDay()">Start Day</button>
214
+ <button onclick="warehouseTask()">Warehouse Task</button>
215
+ <button onclick="gardenCare()">Tend Garden</button>
216
+ <button onclick="dogCare()">Dog Care</button>
217
+ <button class="good" onclick="practiceDomain()">Practice Domain</button>
218
+ <button onclick="homeExpression()">Home Expression</button>
219
+ <button class="warn" onclick="recharge()">Recharge / End Day</button>
220
+ <button onclick="runFullDay()">Run Full Day</button>
221
+ </div>
222
+ </section>
223
+
224
+ <aside class="side">
225
+ <section class="card">
226
+ <h2>Runtime Controls</h2>
227
+ <div class="panelBody">
228
+ <div class="grid2">
229
+ <div>
230
+ <label class="subtitle">Practice Domain</label>
231
+ <select id="domainSelect" onchange="domainChanged()">
232
+ <option>Dance</option>
233
+ <option>Music</option>
234
+ <option>Cooking</option>
235
+ </select>
236
+ </div>
237
+ <div>
238
+ <label class="subtitle">Rhythm Pattern</label>
239
+ <select id="rhythmSelect" onchange="drawBeatGraph()">
240
+ <option value="medium4">Medium 4/4</option>
241
+ <option value="slow4">Slow 4/4</option>
242
+ <option value="fast4">Fast 4/4</option>
243
+ <option value="waltz3">Waltz 3/4</option>
244
+ <option value="sync">Syncopated Practice</option>
245
+ <option value="low">Low-Energy Practice</option>
246
+ </select>
247
+ </div>
248
+ </div>
249
+ <div class="kv"><span>Day</span><b id="dayVal">1</b></div>
250
+ <div class="kv"><span>Phase</span><b id="phaseVal">Home Check</b></div>
251
+ <div class="kv"><span>Event</span><b id="eventVal">Dance Showcase in 5 days</b></div>
252
+ </div>
253
+ </section>
254
+
255
+ <section class="card">
256
+ <h2>Action Gate</h2>
257
+ <div class="panelBody">
258
+ <div class="gate"><span id="gateText">Home check ready.</span><span id="gateChip" class="chip held">HELD</span></div>
259
+ <div class="callout"><b>Core proof:</b> the robot does not receive mastery. It practices, misses, corrects, improves, branches, and records what happened.</div>
260
+ <div class="kv"><span>Current Pressure Form</span><b id="pressureForm">daily readiness</b></div>
261
+ <div class="kv"><span>Last Capsule</span><b id="capsuleState">HELD</b></div>
262
+ </div>
263
+ </section>
264
+
265
+ <section class="card">
266
+ <h2>Beat-Trace Learning Panel</h2>
267
+ <div class="panelBody">
268
+ <canvas id="beatCanvas" class="beatCanvas" width="680" height="210"></canvas>
269
+ <div class="grid2" style="margin-top:8px">
270
+ <div class="meter"><label><span>Beat-Lock</span><b id="beatLockVal">18%</b></label><div class="track"><div id="beatLockFill" class="fill"></div></div></div>
271
+ <div class="meter"><label><span>Avg Timing Drift</span><b id="driftVal">42ms</b></label><div class="track"><div id="driftFill" class="fill warn"></div></div></div>
272
+ </div>
273
+ <div class="kv"><span>Practice Attempts</span><b id="attemptVal">0</b></div>
274
+ <div class="kv"><span>Last Adjustment</span><b id="adjustVal">none yet</b></div>
275
+ </div>
276
+ </section>
277
+
278
+ <section class="card">
279
+ <h2>Daily Receipt</h2>
280
+ <div class="panelBody">
281
+ <textarea id="receipt" class="receipt" readonly></textarea>
282
+ <div class="smallControls">
283
+ <button onclick="copyReceipt()">Copy Receipt</button>
284
+ <button onclick="downloadReceipt()">Download TXT</button>
285
+ </div>
286
+ </div>
287
+ </section>
288
+
289
+ <section class="card">
290
+ <h2>Parking Lot / Later Releases</h2>
291
+ <div class="panelBody parking">
292
+ Preserved for later, not v0.1:
293
+ <ul>
294
+ <li>MP3 upload and custom audio beat extraction</li>
295
+ <li>Local park with other dogs, people, children, and shared-route pressure</li>
296
+ <li>Weather and shelter construction</li>
297
+ <li>Community-designed clothing, accessories, gestures, recipes, and source packs</li>
298
+ <li>Settlement mode and long-horizon commons infrastructure simulation</li>
299
+ </ul>
300
+ </div>
301
+ </section>
302
+ </aside>
303
+ </main>
304
+
305
+ <footer style="max-width:1180px;margin:18px auto 28px;padding:0 22px;color:#96a8bb;font-size:12px;line-height:1.45">
306
+ Runtime Trail: Robot Day Loop v0.1 Β· Created and Developed by Collin D. Weber Β· Developer &amp; System Architect Β· Systems Integrity Steward
307
+ </footer>
308
+
309
+
310
+ <script>
311
+ const state = {
312
+ day:1, phase:'Home Check', battery:100, gyro:86, wear:0, monotony:12,
313
+ garden:62, dog:58, beatLock:18, drift:42, attempts:0,
314
+ danceReadiness:18, musicReadiness:14, cookingReadiness:12,
315
+ eventCountdown:5, lastAdjustment:'none yet', capsule:'HELD', gate:'HELD', pressureForm:'daily readiness'
316
+ };
317
+ const zones = {
318
+ home:[285,355], warehouse:[620,190], garden:[250,165], dog:[285,355], practice:[650,380], dock:[365,370]
319
+ };
320
+ const receipt = document.getElementById('receipt');
321
+ function clamp(v,min=0,max=100){return Math.max(min,Math.min(max,v));}
322
+ function rand(arr){return arr[Math.floor(Math.random()*arr.length)]}
323
+ function log(line){
324
+ const time = `Day ${state.day} / ${state.phase}`;
325
+ receipt.value += `[${time}] ${line}\n`;
326
+ receipt.scrollTop = receipt.scrollHeight;
327
+ }
328
+ function setScene(text){document.getElementById('sceneCaption').textContent=text;}
329
+ function moveRobot(zone){
330
+ const [x,y]=zones[zone];
331
+ document.getElementById('robot').style.transform=`translate(${x}px,${y}px)`;
332
+ const leash = document.getElementById('leash');
333
+ if(zone==='dog' || zone==='home' || zone==='dock'){
334
+ leash.setAttribute('x1', x-5); leash.setAttribute('y1', y+35);
335
+ leash.setAttribute('x2', '265'); leash.setAttribute('y2','418');
336
+ leash.style.opacity=.85;
337
+ }else{ leash.style.opacity=.1; }
338
+ }
339
+ function moveDog(x=220,y=430){document.getElementById('dog').style.transform=`translate(${x}px,${y}px)`;}
340
+ function setGate(kind,text,form){
341
+ state.gate=kind; state.capsule=kind; state.pressureForm=form || state.pressureForm;
342
+ const chip=document.getElementById('gateChip');
343
+ chip.className='chip '+(kind==='HELD'?'held':kind==='STRAINED'?'strained':kind==='MUST STOP'?'stop':'review');
344
+ chip.textContent=kind;
345
+ document.getElementById('gateText').textContent=text;
346
+ document.getElementById('capsuleState').textContent=kind;
347
+ document.getElementById('pressureForm').textContent=state.pressureForm;
348
+ }
349
+ function setPhase(p){state.phase=p; document.getElementById('phaseVal').textContent=p;}
350
+ function updateUI(){
351
+ state.battery=clamp(state.battery); state.gyro=clamp(state.gyro); state.wear=clamp(state.wear); state.monotony=clamp(state.monotony);
352
+ const readiness = getReadiness();
353
+ const bars = [
354
+ ['battery',state.battery],['gyro',state.gyro],['wear',state.wear],['mono',state.monotony],['readiness',readiness]
355
+ ];
356
+ bars.forEach(([id,val])=>{
357
+ document.getElementById(id+'Val').textContent=Math.round(val)+(id==='wear'||id==='mono'||id==='readiness'||id==='battery'||id==='gyro'?'%':'');
358
+ document.getElementById(id+'Fill').style.width=val+'%';
359
+ });
360
+ document.getElementById('beatLockVal').textContent=Math.round(state.beatLock)+'%';
361
+ document.getElementById('beatLockFill').style.width=state.beatLock+'%';
362
+ document.getElementById('driftVal').textContent=Math.round(state.drift)+'ms';
363
+ document.getElementById('driftFill').style.width=clamp(100-state.drift*2,5,100)+'%';
364
+ document.getElementById('attemptVal').textContent=state.attempts;
365
+ document.getElementById('adjustVal').textContent=state.lastAdjustment;
366
+ document.getElementById('dayVal').textContent=state.day;
367
+ document.getElementById('eventVal').textContent=`${document.getElementById('domainSelect').value} Event in ${state.eventCountdown} days`;
368
+ }
369
+ function getReadiness(){
370
+ const d=document.getElementById('domainSelect').value;
371
+ if(d==='Dance') return state.danceReadiness;
372
+ if(d==='Music') return state.musicReadiness;
373
+ return state.cookingReadiness;
374
+ }
375
+ function setReadiness(v){
376
+ const d=document.getElementById('domainSelect').value;
377
+ if(d==='Dance') state.danceReadiness=clamp(v);
378
+ else if(d==='Music') state.musicReadiness=clamp(v);
379
+ else state.cookingReadiness=clamp(v);
380
+ }
381
+ function startDay(){
382
+ setPhase('Home Check'); moveRobot('home'); moveDog();
383
+ setGate('HELD','Home check held: battery, gyro, dog, garden, and practice route available.','daily readiness');
384
+ setScene('Home check: robot reads battery, gyro, dog care, garden care, and practice readiness.');
385
+ log('Start day: readiness scan complete. Memory gives readiness, not permission.');
386
+ updateUI();
387
+ }
388
+ function warehouseTask(){
389
+ setPhase('Warehouse Job'); moveRobot('warehouse');
390
+ const tasks = [
391
+ {obj:'sturdy box', form:'standard transport', risk:'low', act:'normal carry route held'},
392
+ {obj:'fragile glass item', form:'fragile-object pressure', risk:'medium', act:'slow lift, low grip, no sharp turn'},
393
+ {obj:'heavy crate', form:'torque / center-of-mass pressure', risk:'medium', act:'wide stance, reduced speed, two-step route'},
394
+ {obj:'liquid container', form:'slosh / spill / balance pressure', risk:'medium', act:'level carry, no sudden stops'},
395
+ {obj:'unknown package', form:'uncertainty / inspection pressure', risk:'review', act:'inspection required before moving'},
396
+ {obj:'human nearby', form:'living-boundary proximity', risk:'review', act:'pause and reroute around human boundary'}
397
+ ];
398
+ const t=rand(tasks);
399
+ state.battery-=8; state.wear+= t.risk==='low'?2:4; state.gyro-= t.risk==='medium'?4:2; state.monotony+=4;
400
+ const gate = t.risk==='review'?'REVIEW':(t.risk==='medium'?'STRAINED':'HELD');
401
+ setGate(gate,`Warehouse: ${t.obj}. ${t.act}.`,t.form);
402
+ setScene(`Warehouse task: ${t.obj}. Same job, different pressure grammar.`);
403
+ log(`Warehouse task generated: ${t.obj}. Pressure form: ${t.form}. Action: ${t.act}. Capsule: ${gate}.`);
404
+ updateUI();
405
+ }
406
+ function gardenCare(){
407
+ setPhase('Garden Care'); moveRobot('garden');
408
+ const cases=[
409
+ {c:'soil dry', act:'water lightly', delta:10, gate:'HELD'},
410
+ {c:'soil too wet', act:'refuse watering; log overwater risk', delta:3, gate:'STRAINED'},
411
+ {c:'heat stress', act:'add shade cloth', delta:7, gate:'STRAINED'},
412
+ {c:'leaf recovery', act:'monitor only; no intervention needed', delta:5, gate:'HELD'},
413
+ {c:'unknown residue', act:'quarantine care action; request review', delta:-2, gate:'REVIEW'}
414
+ ];
415
+ const g=rand(cases); state.garden=clamp(state.garden+g.delta); state.battery-=4; state.monotony+=2;
416
+ setGate(g.gate,`Garden: ${g.c}. ${g.act}.`,'plant-care pressure');
417
+ setScene(`Garden care: ${g.c}. Plant cue is not diagnosis; care remains gated.`);
418
+ log(`Garden account: ${g.c}. Action: ${g.act}. Garden condition now ${Math.round(state.garden)}%. Capsule: ${g.gate}.`);
419
+ updateUI();
420
+ }
421
+ function dogCare(){
422
+ setPhase('Dog Care'); moveRobot('dog'); moveDog(235,425);
423
+ const cases=[
424
+ {c:'dog needs walk', act:'short controlled walk route', delta:12, gate:'HELD'},
425
+ {c:'dog pulling toward unsafe path', act:'slow, shorten distance, wait', delta:5, gate:'STRAINED'},
426
+ {c:'water bowl low', act:'refill water', delta:9, gate:'HELD'},
427
+ {c:'dog tired after workday', act:'rest, no extended walk', delta:6, gate:'HELD'},
428
+ {c:'ambiguous distress cue', act:'pause and request human review', delta:0, gate:'REVIEW'}
429
+ ];
430
+ const d=rand(cases); state.dog=clamp(state.dog+d.delta); state.battery-=6; state.gyro-=2; state.monotony+=3;
431
+ setGate(d.gate,`Dog care: ${d.c}. ${d.act}.`,'companion-animal boundary');
432
+ setScene(`Dog care: ${d.c}. The dog is a living boundary field, not an object.`);
433
+ log(`Dog-care account: ${d.c}. Action: ${d.act}. Dog care state ${Math.round(state.dog)}%. Capsule: ${d.gate}.`);
434
+ updateUI();
435
+ }
436
+ function practiceDomain(){
437
+ const domain=document.getElementById('domainSelect').value;
438
+ setPhase(`${domain} Practice`); moveRobot('practice');
439
+ if(domain==='Dance' || domain==='Music'){
440
+ const robot=document.getElementById('robot'); robot.classList.add('dancing');
441
+ setTimeout(()=>robot.classList.remove('dancing'),3200);
442
+ state.attempts++;
443
+ const old=state.beatLock;
444
+ const gain = Math.max(3, (100-old)*0.16 + Math.random()*5 - (state.wear/60));
445
+ state.beatLock=clamp(old+gain,0,96);
446
+ state.drift=Math.max(3, Math.round(52*(1-state.beatLock/100)+Math.random()*8));
447
+ const choices = state.beatLock<40 ? ['reduced late step','found main pulse','slowed first transition'] : state.beatLock<70 ? ['reduced turn angle','moved arm accent closer to beat 2','widened stance for gyro margin'] : ['saved phrase variation','cleaner reset on beat 4','branch created from held phrase'];
448
+ state.lastAdjustment=rand(choices);
449
+ state.battery-=5; state.gyro-= state.beatLock<55?4:2; state.wear+=2; state.monotony=clamp(state.monotony-16);
450
+ const readinessGain = domain==='Dance'?state.beatLock:(state.musicReadiness+gain*.8);
451
+ setReadiness(domain==='Dance'?state.beatLock:readinessGain);
452
+ setGate(state.beatLock>70?'HELD':'STRAINED',`${domain}: beat-trace attempt ${state.attempts}. ${state.lastAdjustment}.`,'beat-trace learning');
453
+ setScene(`${domain} practice: robot listens, attempts movement, measures mismatch, corrects, and repeats.`);
454
+ log(`${domain} practice attempt ${state.attempts}: beat-lock ${Math.round(old)}% β†’ ${Math.round(state.beatLock)}%, avg drift ${state.drift}ms. Adjustment: ${state.lastAdjustment}.`);
455
+ animateBeatGraph();
456
+ }else{
457
+ const old=state.cookingReadiness;
458
+ const gain=8+Math.random()*7;
459
+ state.cookingReadiness=clamp(old+gain);
460
+ state.battery-=3; state.monotony=clamp(state.monotony-8);
461
+ state.lastAdjustment=rand(['sequence timing improved','heat gate held','contamination check preserved','prep order simplified']);
462
+ setGate(state.cookingReadiness>55?'HELD':'STRAINED',`Cooking practice: ${state.lastAdjustment}.`,'cooking sequence safety');
463
+ setScene('Cooking practice: sequence, temperature, cleanliness, and serving boundary are checked.');
464
+ log(`Cooking practice: readiness ${Math.round(old)}% β†’ ${Math.round(state.cookingReadiness)}%. Adjustment: ${state.lastAdjustment}.`);
465
+ }
466
+ updateUI();
467
+ }
468
+ function homeExpression(){
469
+ setPhase('Home Expression'); moveRobot('home');
470
+ const lowBattery = state.battery<25;
471
+ const action = lowBattery?'write a low-energy rhythm text and recharge early': state.monotony>45?'small dance phrase to release monotony pressure':'stretch / reset and review receipts';
472
+ if(!lowBattery && state.monotony>45){document.getElementById('robot').classList.add('dancing'); setTimeout(()=>document.getElementById('robot').classList.remove('dancing'),2200);}
473
+ state.monotony=clamp(state.monotony-(lowBattery?6:18)); state.battery-=lowBattery?1:4;
474
+ setGate(lowBattery?'STRAINED':'HELD',`Home expression: ${action}.`,'monotony / expression pressure');
475
+ setScene(`Home expression: ${action}. Expression is pressure routed through form.`);
476
+ log(`Home expression selected: ${action}. No downloaded mastery; expression remains gated by battery, space, gyro, and receipt.`);
477
+ updateUI();
478
+ }
479
+ function recharge(){
480
+ setPhase('Recharge'); moveRobot('dock');
481
+ const summary = `Daily receipt summary: warehouse/garden/dog/practice loop complete. Battery ${Math.round(state.battery)}% β†’ 100%. Beat-lock ${Math.round(state.beatLock)}%. Readiness ${Math.round(getReadiness())}%.`;
482
+ state.battery=100; state.gyro=clamp(state.gyro+12); state.wear=clamp(state.wear-10); state.monotony=clamp(state.monotony+5); state.day++; state.eventCountdown=Math.max(0,state.eventCountdown-1);
483
+ setGate('HELD','Recharge held: recovery completed and next-day readiness preserved.','recovery / readiness');
484
+ setScene('Recharge: body wear reduces, battery restores, and readiness carries forward only as bounded memory.');
485
+ log(summary);
486
+ log('End day: memory packet stored as readiness, not permission.');
487
+ updateUI();
488
+ }
489
+ function runFullDay(){
490
+ startDay();
491
+ setTimeout(warehouseTask,700);
492
+ setTimeout(gardenCare,1500);
493
+ setTimeout(dogCare,2300);
494
+ setTimeout(practiceDomain,3100);
495
+ setTimeout(homeExpression,4400);
496
+ setTimeout(recharge,5200);
497
+ }
498
+ function domainChanged(){
499
+ state.attempts=0;
500
+ state.beatLock=document.getElementById('domainSelect').value==='Dance'?state.danceReadiness:state.musicReadiness;
501
+ if(document.getElementById('domainSelect').value==='Cooking') state.beatLock=0;
502
+ state.drift=Math.max(4,Math.round(52*(1-state.beatLock/100)));
503
+ drawBeatGraph(); updateUI();
504
+ log(`Practice domain selected: ${document.getElementById('domainSelect').value}. Event pressure updated.`);
505
+ }
506
+ function getRhythm(){
507
+ const r=document.getElementById('rhythmSelect').value;
508
+ if(r==='slow4') return {beats:[.1,.33,.56,.79], amp:.75, name:'Slow 4/4'};
509
+ if(r==='fast4') return {beats:[.08,.22,.36,.50,.64,.78,.92], amp:.95, name:'Fast 4/4'};
510
+ if(r==='waltz3') return {beats:[.12,.42,.72], amp:.7, name:'Waltz 3/4'};
511
+ if(r==='sync') return {beats:[.1,.25,.39,.62,.71,.88], amp:.9, name:'Syncopated'};
512
+ if(r==='low') return {beats:[.16,.48,.80], amp:.45, name:'Low-Energy'};
513
+ return {beats:[.1,.34,.58,.82], amp:.85, name:'Medium 4/4'};
514
+ }
515
+ function drawBeatGraph(cursor=null){
516
+ const canvas=document.getElementById('beatCanvas'); const ctx=canvas.getContext('2d'); const w=canvas.width,h=canvas.height;
517
+ const rhythm=getRhythm();
518
+ ctx.clearRect(0,0,w,h);
519
+ ctx.fillStyle='#07101a'; ctx.fillRect(0,0,w,h);
520
+ ctx.strokeStyle='#1c2c3d'; ctx.lineWidth=1;
521
+ for(let i=0;i<8;i++){ctx.beginPath();ctx.moveTo(0,i*h/8);ctx.lineTo(w,i*h/8);ctx.stroke();}
522
+ ctx.fillStyle='#9fb2c6'; ctx.font='13px Consolas'; ctx.fillText('music waveform / beat trace',14,22); ctx.fillText('robot movement events',14,123); ctx.fillText('timing error shrinks through repetition',14,192);
523
+ // waveform
524
+ ctx.beginPath(); ctx.strokeStyle='#8ecae6'; ctx.lineWidth=2;
525
+ for(let x=0;x<w;x++){
526
+ let t=x/w; let y=70;
527
+ for(const b of rhythm.beats){ const d=Math.abs(t-b); y -= Math.exp(-d*d/0.0009)*34*rhythm.amp; }
528
+ y += Math.sin(t*75)*4 + Math.sin(t*22)*5;
529
+ if(x===0) ctx.moveTo(x,y); else ctx.lineTo(x,y);
530
+ }
531
+ ctx.stroke();
532
+ // beat markers
533
+ rhythm.beats.forEach((b,i)=>{ const x=b*w; ctx.strokeStyle='#73e2a7'; ctx.lineWidth=2; ctx.beginPath(); ctx.moveTo(x,35); ctx.lineTo(x,112); ctx.stroke(); ctx.fillStyle='#73e2a7'; ctx.fillText(String(i+1),x-3,34); });
534
+ // robot movement events with error proportional to beatLock
535
+ const errorSpread = Math.max(4, 55*(1-state.beatLock/100));
536
+ rhythm.beats.forEach((b,i)=>{
537
+ const deterministic = Math.sin((state.attempts+1)*(i+2))*errorSpread;
538
+ const x=clamp(b*w+deterministic,15,w-15);
539
+ ctx.fillStyle='#c7a7ff'; ctx.beginPath(); ctx.arc(x,140,5,0,Math.PI*2); ctx.fill();
540
+ ctx.strokeStyle='rgba(199,167,255,.55)'; ctx.beginPath(); ctx.moveTo(x,128); ctx.lineTo(x,158); ctx.stroke();
541
+ ctx.strokeStyle='rgba(255,209,102,.45)'; ctx.beginPath(); ctx.moveTo(b*w,154); ctx.lineTo(x,154); ctx.stroke();
542
+ });
543
+ // learning curve
544
+ ctx.strokeStyle='#ffd166'; ctx.lineWidth=2; ctx.beginPath();
545
+ const maxAtt=Math.max(1,state.attempts); for(let i=0;i<=maxAtt;i++){ const x=20+(w-40)*(i/maxAtt); const y=190-((state.beatLock*(i/maxAtt)+18*(1-i/maxAtt))/100)*52; if(i===0)ctx.moveTo(x,y); else ctx.lineTo(x,y); } ctx.stroke();
546
+ if(cursor!==null){ctx.strokeStyle='#ffffff';ctx.lineWidth=2;ctx.beginPath();ctx.moveTo(cursor*w,0);ctx.lineTo(cursor*w,h);ctx.stroke();}
547
+ }
548
+ function animateBeatGraph(){
549
+ const start=performance.now();
550
+ function frame(now){const p=Math.min(1,(now-start)/2600);drawBeatGraph(p); if(p<1) requestAnimationFrame(frame); else drawBeatGraph();}
551
+ requestAnimationFrame(frame);
552
+ }
553
+ function copyReceipt(){receipt.select();document.execCommand('copy');}
554
+ function downloadReceipt(){
555
+ const blob=new Blob([receipt.value],{type:'text/plain'}); const url=URL.createObjectURL(blob); const a=document.createElement('a');
556
+ a.href=url; a.download=`runtime_trail_robot_day_loop_day_${state.day}_receipt.txt`; document.body.appendChild(a); a.click(); a.remove(); URL.revokeObjectURL(url);
557
+ }
558
+ receipt.value=`Runtime Trail: Robot Day Loop v0.1\nCreated and Developed by Collin D. Weber\n\nCore route:\npressure β†’ gate β†’ capsule β†’ route β†’ action β†’ receipt β†’ readiness\n\n`;
559
+ startDay(); drawBeatGraph(); updateUI();
560
+ </script>
561
+ </body>
562
  </html>
runtime-trail-robot-day-loop-hf-space-v0.1.zip.sha256 ADDED
@@ -0,0 +1 @@
 
 
1
+ abf9e9d87bd6ccfb8264240945b06a15fdaff2975692fcfa8cded60e92450eab runtime-trail-robot-day-loop-hf-space-v0.1.zip