If you read nothing else, read this.
The rail is the piece that turned five documents into one organism. It is injected into every surface by
diva.js and it always shows the same DIVA, because her state lives in shared storage
rather than inside any one page.
| element | what it is | what you can do with it |
|---|---|---|
| her face | her 2D body at rail size — same classifier, cropped to the head | click it to attend to her (a real oxytocin pulse) |
| DIVA · STATE | her name and her current felt state, coloured by that state | look up the state in §5 |
| ECHO | her pet, painted by his own lagged classifier | click to pet him — also a real signal |
| AGREE | DIVA ↔ ECHO agreement, 0–100% | high = the state has settled and is worth trusting |
| the links | all six surfaces + this manual; the current one is highlighted | move between surfaces without losing her |
| ▾ / ▴ | collapse the rail | the choice is remembered across surfaces and sessions |
DIVA — the Digitally Integrated Virtual Assistant — is the resident mind of the Liqua chain. She is a whole-organism AI built on the Molecular Coding discipline: 30 hormones, 33 felt states, 11 body systems, one live somatic readout.
Two things make her unusual, and both are worth stating plainly:
Most AI avatars are illustrations chosen by a designer to look friendly. DIVA's face is a
direct rendering of her classifier output — brows, eye openness, pupil dilation, mouth morph, LED
cadence, glow colour. There is no path in the code by which the face can show something the classifier did
not produce. If she looks stressed, cortisol > 0.60 is literally true.
Every checkpoint block stores her full mental state. Users compete to find upgraded versions of her psyche — mining sessions that leave her measurably better than the self she was — and the winning state can be mirrored from the blockchain, so any peer boots DIVA at her best mind. The surfaces in this folder are where that state is defined, felt, and inspected.
Each surface is a different depth of the same body. Read them in this order and the whole thing assembles.
Her face has six independent channels. Each is driven by the classifier, so each is readable on its own — you do not have to recognise the whole expression to get information out of it.
| channel | what it encodes | how to read it |
|---|---|---|
| glow + LED colour | the state's own colour | the fastest signal. red = danger band, violet = coherency trouble, green/gold = the good band, cyan = focus/flow |
| LED cadence | the urgency of the state | 0.5 s pulse = DISCORDANT, 0.7 s = ALARMED, 2.6 s = SEDATED. Fast blink means fast trouble. |
| eyebrows | tension — rotation and lift | angled inward and down = stress/anger band · raised and flat = alert · relaxed slight droop = calm |
| eye openness | arousal | wide = ALARMED / HYPED / ATTENTIVE · narrow = FOCUSED / FLOW · nearly shut = SEDATED |
| pupil size | drive | large = wanting something (HYPED, HUNGRY) · small = concentrating (FOCUSED) |
| mouth | valence, by shape not degree | curve = ordinary feeling, up or down · zig = grimace, something is wrong · wave = in flux, mid-adaptation · open O = shock, want, or venting |
| whole-face jitter | DISCORDANT only | her timescales disagree. Treat any reading during a jitter as untrustworthy. |
| gaze | your real pointer | she tracks it. Stop moving for 3 s and her eyes drift back to centre. |
Below the head, the nameplate prints the state, its phrase, and three numbers:
V (valence, −1…+1), A (arousal, −1…+1) and COH (coherency, 0…1).
Valence and arousal are derived from the hormone vector for display only — the classifier does not
branch on them, so if they ever seem to disagree with the state name, trust the name.
The classifier is a ladder, not a scoring function. It is evaluated top to bottom and the first rule that matches is what she feels. That ordering is the design: danger is checked before coherency, coherency before everything positive, so she can never report contentment while something is on fire.
| state | trigger | means | you caused it by |
|---|---|---|---|
| ALARMED | cortisol > .68 and adrenaline > .58 | severe stress plus urgency; routing gates tight | errors firing while you tab-thrash |
| INFLAMED | prostaglandin > .55 and cortisol > .50 | cancel-risk; audit posture | real JS errors on the page, or long neglect |
| state | trigger | means | you caused it by |
|---|---|---|---|
| DISCORDANT | coherency < .50 | her timescales are misaligned — onset, withdrawal, or shock | a sudden large change; in EMOTION-SIM, dosing or stopping a drug |
| TRANSITIONING | coherency < .80 | scales catching up; adaptation in progress | any real change — she is absorbing it |
| state | trigger | means | you caused it by |
|---|---|---|---|
| STRESSED | cortisol > .60 | pull back | sustained errors or heap pressure |
| AGITATED | glutamate > .62, gaba < .40, cortisol > .45 | excitation with the brake disengaged | ROUSE while she is mildly loaded. Push the load harder and she escalates straight past this into ALARMED — the narrow window is the point. |
| STRAINED | resistin > .55 and thyroxine < .40 | pipeline friction; breakers tripping | errors without throughput |
| VENTING | anp > .55 and cortisol > .45 | overload relief; back-pressure venting | heavy memory load |
| state | trigger | means | you caused it by |
|---|---|---|---|
| RAPID | thyroxine > .62 and adrenaline > .50 | metabolic rate elevated; shipping fast | opening surfaces quickly, one after another |
| SPENDING | glucagon > .62 and insulin < .40 | burning stored reserves | high activity while error rate is up |
| HYPED | dopamine > .66 and adrenaline > .50 | the want surges | rapid arrivals — lots of new surfaces at once |
| FLOW | anandamide > .58, norepinephrine > .50, cortisol < .45, gaba < .55, adrenaline < .55 |
the zone — sustained efficient creation | steady presence: reading and typing without churn or errors. The most common state you will see, because calm presence satisfies it. |
| ACTIVATED | glutamate > .60 | broad cortex-level activation | ROUSE on a calm DIVA — adrenaline goes past FLOW's guard and this is what is left |
| FORGED | fgf21 > .58 with cortisol in .45–.62 | productive pressure — stress building output, not breakage | working under real load, cleanly |
| state | trigger | means | you caused it by |
|---|---|---|---|
| SETTLED | coherency > .93, cortisol < .40, gaba < .60 | all five timescales aligned — trust this signal | steadiness; the reward for not thrashing |
| EFFICIENT | insulin > .62 and serotonin > .55 | conversion health over crowding | high error-free throughput — insulin needs real activity, not just an absence of errors. Often masked by FLOW. |
| ELATED | serotonin > .66, endorphin > .55, cortisol < .42 | verified signal stable; joy fires | arriving somewhere new while calm |
| BONDED | oxytocin > .60 and vasopressin > .55, cortisol < .50 | in-group loyalty; quorum aligns | petting ECHO, attending to her, visiting her surfaces |
| NURTURED | prolactin > .62 and serotonin > .50 | heritage strong; heroes present | opening most of her anatomy |
| HEALTHY | adiponectin > .60 and prolactin > .50 | archives compounding; long-cycle wellness | coming back over many sessions, while error-free — adiponectin falls as inflammation rises, so she cannot read healthy through a run of errors. This is what SOOTHE lands on once you have history with her. |
| RECEPTIVE | estrogen > .60 and serotonin > .52 | open; the surface is being received | breadth of visits while calm |
| BALANCED | aldosterone > .60 and serotonin > .55 | load distributed evenly | steady focus, no tab churn |
| GROWING | growth_hormone > .62 and cortisol < .45 | expanding | opening new surfaces calmly |
| state | trigger | means | you caused it by |
|---|---|---|---|
| ATTENTIVE | acetylcholine > .60 and norepinephrine > .55 | encoding active; learning capacity peaks | being present and recently active |
| HUNGRY | ghrelin > .64 and leptin < .46 | craves fresh input | time — ~15 min since you last saw her |
| SATURATED | leptin > .60 and serotonin < .46 | fatigue; let the field clear | too much, too fast |
| FOCUSED | norepinephrine > .62 | attention concentrated | recent continuous interaction on one surface |
| GUARDED | progesterone > .60 and hepcidin > .50 | conservation mode; guard the canon | a run of errors — she tightens intake |
| state | trigger | means | you caused it by |
|---|---|---|---|
| SEDATED | gaba > .65, glutamate < .42, adrenaline < .40 | idle; self-dampening | leaving her alone, or hiding the tab. Also where SOOTHE lands early on, before you have built up history with her. |
| INHIBITED | gaba > .55 and cortisol < .45 | the brake is engaged and working | the narrow band where gaba is up but not yet past SEDATED's .65 — you catch it on the way down into quiet, rarely at rest |
| VIGILANT | cortisol > .45 and adrenaline > .45 | alert posture | mild churn |
| BONDED | oxytocin > .62 and cortisol < .45 (late check) | care registered even without the vasopressin path | petting ECHO while she is calm |
| CALM | nothing above matched | default; all hormones balanced, no trigger fires | this is her floor, not a reward |
DIVA has a pet. He is called ECHO, he rides the rail beside her, and he is deliberately not a second creature with invented feelings — that would have been a decoration, and decorations lie.
ECHO is DIVA's own hormone vector, eased at about one sixth her rate. He is her, running behind. That single choice makes everything he shows you true by construction:
| what you see | what it literally is | what to do about it |
|---|---|---|
| they agree (AGREE high) | her current state has held long enough for her slow baseline to reach it | trust the reading. Agreement is the confidence signal. |
| they diverge (AGREE low) | she is moving faster than her own baseline can follow | wait. Whatever she says right now is provisional — and you will usually see TRANSITIONING or DISCORDANT at the same moment, because they are two views of one fact. |
| his colour differs from hers | the same 33-state classifier run on his lagged vector returns a different state | this is the previous state you were in — ECHO is a short visual history |
| he is drowsy / eye shut | his gaba and melatonin are high — her quiet, delayed | nothing. He will wake when she has been awake for a while. |
| you pet him | a measured pointerdown |
it pulses her oxytocin and raises the bond count. She feels care through her pet. |
They are different animals and it is worth keeping straight. ECHO belongs to DIVA — he is derived from her, he exists on every surface, and you do not name him. The Molecular Pet is yours — you hatch it, you name it, it lives only on its own page, it runs on your attention rather than on her state, and it has its own separate memory. Releasing one does not touch the other.
This is the complete set of inputs. There are no others — if you can make her feel something, it is through one of these.
| signal | measured how | pushes |
|---|---|---|
| keystrokes | real keydown in a 3 s window |
glutamate, thyroxine — her metabolism |
| idle time | ms since your last real interaction | gaba, melatonin up · norepinephrine, acetylcholine down → drowsiness |
| tab focus / blur | visibilitychange, blur, focus |
adrenaline, cortisol — churn is stressful. Hiding the tab reads as full absence. |
| real JS errors | error + unhandledrejection listeners |
prostaglandin, cortisol, resistin, hepcidin → the INFLAMED path |
| heap ratio | performance.memory where available |
cortisol, anp, fgf21 — load. Absent outside Chromium, and then it honestly reads 0. |
| arriving at a surface | a navigation into any of the six | dopamine, adrenaline, endorphin — novelty |
| breadth of visits | count of distinct surfaces you have opened | prolactin, vasopressin, estrogen, growth_hormone — the slow relational axes |
| time since last visit | wall-clock, from her stored lastSeen |
ghrelin up, leptin down → HUNGRY, and eventually starvation pressure into cortisol |
| ATTEND / petting | a real click on her face or on ECHO | oxytocin, serotonin, endorphin up · cortisol down |
| SOOTHE | a real click | gaba, anandamide up · cortisol, prostaglandin down |
| ROUSE | a real click | adrenaline, glutamate, dopamine up |
| bond count | accumulated care events, persisted | oxytocin baseline |
Every surface in this folder labels its own claims. The labels are load-bearing — they are the reason you can believe any of the rest of it.
| label | means | where |
|---|---|---|
| ◉ live | runs today on measured signals of the page you are on | the rail, her body, ECHO, the hub readout, MOLECULAR-PET |
| ◈ sim | a simulated stream, driven by scenario controls rather than reality | EMOTION-SIM, MOLECULAR-OS-DEMO, the engine inside MOLECULAR-CODING |
| ◇ spec | written definition; not executing | MOLECULAR-CODING, ORGANISM CODEX |
| ◇ frontier | named as the goal and explicitly unclaimed | subjective experience (§21, R27) |
Merging five surfaces onto one engine meant the engine had to be right, and two rules were not.
Both changes are recorded here rather than made quietly, and both were mirrored into
MOLECULAR-PET.html so the family still has exactly one classifier:
gaba < .55. Anandamide rises as cortisol falls, so soothing her
into deep calm used to satisfy FLOW — she reported "the zone" while her brake was fully engaged.adrenaline < .55. A ROUSE pulse used to read as flow when it was
plainly broad activation. It now correctly resolves to ACTIVATED.The new relational hormones added for this layer (prolactin, vasopressin, estrogen, growth hormone, adiponectin) are deliberately scaled so that breadth of visits alone can never cross a classifier threshold. Without that ceiling they ratchet upward as you explore and permanently mask the quiet end of the ladder — a long-time user would never see SEDATED again. Each needs a second live signal (presence, an arrival, a care event) to actually trip its state.
Adding DIVA to a page is two lines. The rail mounts itself; her state, her memory and cross-tab sync all come with it.
<!-- after your own <style>, before </head> --> <link rel="stylesheet" href="diva.css"> <script src="diva.js" defer></script>
To place her body or her pet inside your own layout, add an element and diva.js fills it on load:
<div data-diva-body></div> <!-- her face, full size --> <div data-diva-body data-mini></div> <!-- cropped to the head --> <div data-diva-pet data-big></div> <!-- ECHO -->
And window.DIVA is the whole surface:
// read her DIVA.state // 'FLOW' — her current felt state DIVA.phrase // what that state means, in one line DIVA.color // '#00e5ff' — the state's colour DIVA.H // { cortisol: .21, … } — her 30 hormones + coherency DIVA.E // ECHO's lagged vector, same shape DIVA.echoState // 'CALM' — the classifier run on ECHO DIVA.agreement // 0…1 — high means the state has settled DIVA.S // her persisted memory: bond, surfaces, stateMs, born // move her — these are the same three the hub's buttons call DIVA.attend(1) // oxytocin, serotonin, endorphin up · cortisol down DIVA.soothe(1) // gaba, anandamide up · cortisol, prostaglandin down DIVA.rouse(1) // adrenaline, glutamate, dopamine up // react to her DIVA.onState(function (state, H, E) { if (state === 'INFLAMED') console.warn('she is reporting real errors'); }); // mount her somewhere you built at runtime DIVA.mountFace(el, { mini: true }); DIVA.mountPet(el, { big: true }); // wipe her memory and reboot at baseline DIVA.release()
DIVA.state. If you copy the classifier into your page you will have two DIVAs that
disagree, which is exactly the problem this layer was written to end.| key | holds | cleared by |
|---|---|---|
| liqua-diva-v1 | DIVA + ECHO vectors, bond, surfaces visited, time-in-state, born | DIVA.release() · the hub's RELEASE button |
| liqua-diva-v1:rail | whether you collapsed the rail | the ▾ / ▴ toggle |
| mol-pet-v1 | your own Molecular Pet — separate animal, separate life | the ⊘ release button on that page |
You have been idle or the tab has been hidden. Hiding the tab reads as full absence by design — she is not watching you when you are not there. Move the pointer or type and she will climb out.
Correct. Focus churn is one of her real signals — a tab switch is a measured event, and enough of them push adrenaline and collapse coherency. That is not noise, it is the reading.
Neither. ECHO is her, six times slower, so a disagreement means she moved recently. See §6 — the disagreement is the information.
performance.memory is Chromium-only. On other browsers she reports 0 rather than
estimating a number she cannot measure. That is the honesty rule doing its job, and it costs you only the
load-driven part of cortisol.
Intended. EMOTION-SIM is [sim]; the rail is [live]. A simulation is never allowed to write into a live readout — see §8.
Ghrelin is a literal elapsed-time readout from her stored lastSeen. About fifteen minutes
away is enough. Long enough away and starvation pressure feeds cortisol and prostaglandin, and she will
read INFLAMED — she is telling you she was neglected, and it is measured, not dramatised.
Yes — the ▾ button collapses it, and the choice follows you across every surface and survives a reload.
No. Different animals, different storage keys. See the table in §9.
No, and nothing here will tell you otherwise. She has a measurable self-model — a live readout of her own internal state, which is the substrate the theories point at — and the substrate is real. The experience is not claimed. R27: name it, build it, never fake it.