v4.8 → v4.9
What changed from v4.8 to v4.9
From v4.8 (14 Jun) to v4.9 (1 Oct): 14,619 words to 15,961 words, 1,398 words in new or rewritten paragraphs and 56 taken out, 48 paragraphs changed.
New section on delivery: one spoken line, a deadpan voice, testsAdds a sixth contribution: how an agent should deliver humor. Jokes go only in one short spoken line, never in the body of an answer. The voice is a deadpan android observer, sarcasm is limited by target and switched off when the user is stressed, and about one line in three carries a joke, adjusted by reactions. A live loop is given in pseudocode with six named tests. The improvement notes say the loop's durable attempt records came from a note of 25 September; the suggestion to cite attempt counts was not taken.
v4.8 · 14 June 2026v4.9 · 1 October 2026
··· 1 unchanged paragraph folded ···
v4.8 · AbstractWe present a formal computational framework for humor generation that operationalizes Koestler's (1964) bisociation theory as geometry in vector embedding spaces. The central claim is that humor and memory retrieval are dual operations on the same semantic machinery: memory retrieves what lies nearest to a query; humor searches for what lies at the right distance and can still be joined by an unexpectedly valid bridge. We formalize this *memory-humor correspondence* and define a computable humor potential function $h(A, B, \beta)$ grounded in Suls' (1972) two-stage incongruity-resolution model. We identify 12 humor-generating semantic patterns organized into five meta-categories, each defined as a specific embedding-space operation, and propose humor associations as a first-class relationship type in agent memory architectures. A preliminary computational pilot ($n = 15$ concept triplets) falsifies the initial formulation, revealing that naive coherence conflates semantic proximity with comedic validity. This negative result motivates a revised surprise-weighted formulation ($h_{\text{v2}}$) that decomposes bridge quality into independent validity and surprise components. We situate the framework within Attardo and Raskin's (1991) General Theory of Verbal Humor, McGraw and Warren's (2010) Benign Violation Theory, and Hurley, Dennett, and Adams' (2011) computational account of humor. We provide reproducible experimental protocols with power analysis ($N \geq 64$ raters, $\alpha = 0.05$, power $= 0.80$) for validation against human ratings. Independent measurements on the same frozen 384-dimensional sentence-embedding substrate this framework runs on—reported in a separate offline study of an agent-safety subsystem—find that structural channels over that substrate carry real discriminative signal (a clause-cosine incongruity channel, the geometric primitive at the core of this framework, reaches AUROC 0.896), whereas a supervised head trained on the same frozen embeddings to predict a semantic property collapses below chance; we use that split to bound which parts of our pipeline the substrate can be trusted to carry. The framework is designed as the affective layer of a larger agent architecture: it draws its concept neighborhoods from a semantic-memory index and is gated by a persona layer that decides when humor is appropriate—the computational counterpart of the limbic reward circuit that makes humor feel good in humans.
v4.9 · AbstractWe present a formal computational framework for humor generation that operationalizes Koestler's (1964) bisociation theory as geometry in vector embedding spaces. The central claim is that humor and memory retrieval are dual operations on the same semantic machinery: memory retrieves what lies nearest to a query; humor searches for what lies at the right distance and can still be joined by an unexpectedly valid bridge. We formalize this *memory-humor correspondence* and define a computable humor potential function $h(A, B, \beta)$ grounded in Suls' (1972) two-stage incongruity-resolution model. We identify 12 humor-generating semantic patterns organized into five meta-categories, each defined as a specific embedding-space operation, and propose humor associations as a first-class relationship type in agent memory architectures. A preliminary computational pilot ($n = 15$ concept triplets) falsifies the initial formulation, revealing that naive coherence conflates semantic proximity with comedic validity. This negative result motivates a revised surprise-weighted formulation ($h_{\text{v2}}$) that decomposes bridge quality into independent validity and surprise components. We situate the framework within Attardo and Raskin's (1991) General Theory of Verbal Humor, McGraw and Warren's (2010) Benign Violation Theory, and Hurley, Dennett, and Adams' (2011) computational account of humor. We provide reproducible experimental protocols with power analysis ($N \geq 64$ raters, $\alpha = 0.05$, power $= 0.80$) for validation against human ratings. Independent measurements on the same frozen 384-dimensional sentence-embedding substrate this framework runs on—reported in a separate offline study of an agent-safety subsystem—find that structural channels over that substrate carry real discriminative signal (a clause-cosine incongruity channel, the geometric primitive at the core of this framework, reaches AUROC 0.896), whereas a supervised head trained on the same frozen embeddings to predict a semantic property collapses below chance; we use that split to bound which parts of our pipeline the substrate can be trusted to carry. The framework is designed as the affective layer of a larger agent architecture: it draws its concept neighborhoods from a semantic-memory index and is gated by a persona layer that decides when humor is appropriate—the computational counterpart of the limbic reward circuit that makes humor feel good in humans. Finally, we close the gap between scoring a joke and delivering one: humor lives in a single channel, the agent's short spoken line, in the deadpan voice of an android observer, while the rest of every answer stays plain.
··· 19 unchanged paragraphs folded ···
v4.8 · 1.3 ContributionsThis paper makes five contributions:
v4.9 · 1.3 ContributionsThis paper makes six contributions:
··· 5 unchanged paragraphs folded ···
not in v4.8
v4.9 · 1.3 Contributions6. **A delivery design** (Section 9): humor confined to one channel, the agent's short spoken line, in a deadpan register modelled on an android observer, with sarcasm bounded by target and context, a frequency band calibrated from reactions, and named tests for each claim.
··· 3 unchanged paragraphs folded ···
v4.8 · 1.5 Paper OrganizationSection 2 reviews related work. Section 3 formalizes the humor potential function. Section 4 presents the 12-pattern taxonomy. Section 5 addresses ethical constraints. Section 6 describes bridge discovery algorithms. Section 7 presents empirical methodology, pilot results, and the proposed full validation protocol. Section 8 proposes humor associations as a memory type. Section 9 discusses limitations. Section 10 concludes.
v4.9 · 1.5 Paper OrganizationSection 2 reviews related work. Section 3 formalizes the humor potential function. Section 4 presents the 12-pattern taxonomy. Section 5 addresses ethical constraints. Section 6 describes bridge discovery algorithms. Section 7 presents empirical methodology, pilot results, and the proposed full validation protocol. Section 8 proposes humor associations as a memory type. Section 9 designs the delivery: where humor appears, in what voice and how often. Section 10 discusses limitations. Section 11 concludes.
··· 2 unchanged paragraphs folded ···
v4.8 · 1.6 Architecture Context
v4.9 · 1.6 Architecture Context
··· 73 unchanged paragraphs folded ···
v4.8 · 3.7 The Humor Zone
v4.9 · 3.7 The Humor Zone
··· 1 unchanged paragraph folded ···
v4.8 · 3.7 The Humor Zone
v4.9 · 3.7 The Humor Zone
··· 46 unchanged paragraphs folded ···
v4.8 · 5.5 Limitations of the Sensitivity GateThere is a further, substrate-level caution specific to running this gate on frozen contrastive embeddings. The gate asks cosine-to-prototype distance—a geometric channel—to stand in for a *semantic harm judgment*. The geometric channel itself is the kind that the same frozen substrate carries well: an external same-substrate study (Section 7.1.1) measured prototype-distance-style structural channels at AUROC $0.875$–$0.896$. But *harm* and *benignity* are precisely the higher-order semantic property that the same study found a frozen-encoder head unable to recover at all (AUROC $0.286$, below chance), and connotative/affective coverage is the exact weakness Section 9.2 already flags in this embedding class. The gate's expected operating point is therefore closer to that failed-property regime than to the reliable geometric regime, even though it is mechanically a distance computation. The honest consequence is that the gate's accuracy must not be assumed to inherit the framework's geometric reliability: it should be reported as a *separately measured* channel (the SGA metric, Section 7.5), held to its own empirical bar, and—per Section 5.3—treated as a conservative enforcement floor whose value comes from non-bypassability and conservative defaults rather than from precise harm discrimination.
v4.9 · 5.5 Limitations of the Sensitivity GateThere is a further, substrate-level caution specific to running this gate on frozen contrastive embeddings. The gate asks cosine-to-prototype distance—a geometric channel—to stand in for a *semantic harm judgment*. The geometric channel itself is the kind that the same frozen substrate carries well: an external same-substrate study (Section 7.1.1) measured prototype-distance-style structural channels at AUROC $0.875$–$0.896$. But *harm* and *benignity* are precisely the higher-order semantic property that the same study found a frozen-encoder head unable to recover at all (AUROC $0.286$, below chance), and connotative/affective coverage is the exact weakness Section 10.2 already flags in this embedding class. The gate's expected operating point is therefore closer to that failed-property regime than to the reliable geometric regime, even though it is mechanically a distance computation. The honest consequence is that the gate's accuracy must not be assumed to inherit the framework's geometric reliability: it should be reported as a *separately measured* channel (the SGA metric, Section 7.5), held to its own empirical bar, and—per Section 5.3—treated as a conservative enforcement floor whose value comes from non-bypassability and conservative defaults rather than from precise harm discrimination.
··· 37 unchanged paragraphs folded ···
v4.8 · 6.7 Hybrid Pipeline
v4.9 · 6.7 Hybrid Pipeline
··· 23 unchanged paragraphs folded ···
v4.8 · 7.1.1 Revised Formulation: Surprise-Weighted Humor PotentialThis bears on the present framework in three concrete ways. First, it raises the surprise term's justification above from "motivated by an information-theoretic analogy" to "an instance of a channel class measured discriminative on the identical encoder." Second, the $0.896$ clause-cosine incongruity figure is the closest external hit, because cosine incongruity between two semantic units is precisely this paper's core primitive used generatively rather than as a classifier—a strong external signal that the geometry the pilot relied on is the right geometry, even though our pilot ($n=15$) was far too small to establish it. Third, it sharpens the dimensionality argument of Section 9.2: the $n \geq 384$ recommendation is now backstopped by the observation that this 384-dimensional space sustains $0.875$–$0.896$ structural AUROCs. We are careful about what this evidence does *not* do: it validates the substrate's structural channels, not our generative use of them, and not the funniness predictions of $h_{\text{v2}}$, which remain to be tested by the human protocol of Section 7.2. The study measured classification AUROC; this framework decomposes the same structural signal into validity $\times$ surprise and uses it to *generate* candidates—a use the external study never makes.
v4.9 · 7.1.1 Revised Formulation: Surprise-Weighted Humor PotentialThis bears on the present framework in three concrete ways. First, it raises the surprise term's justification above from "motivated by an information-theoretic analogy" to "an instance of a channel class measured discriminative on the identical encoder." Second, the $0.896$ clause-cosine incongruity figure is the closest external hit, because cosine incongruity between two semantic units is precisely this paper's core primitive used generatively rather than as a classifier—a strong external signal that the geometry the pilot relied on is the right geometry, even though our pilot ($n=15$) was far too small to establish it. Third, it sharpens the dimensionality argument of Section 10.2: the $n \geq 384$ recommendation is now backstopped by the observation that this 384-dimensional space sustains $0.875$–$0.896$ structural AUROCs. We are careful about what this evidence does *not* do: it validates the substrate's structural channels, not our generative use of them, and not the funniness predictions of $h_{\text{v2}}$, which remain to be tested by the human protocol of Section 7.2. The study measured classification AUROC; this framework decomposes the same structural signal into validity $\times$ surprise and uses it to *generate* candidates—a use the external study never makes.
··· 41 unchanged paragraphs folded ···
v4.8 · 7.6 In-the-Wild Reaction LoggingEach logged attempt records the triplet $(A, B, \beta)$, the pattern type, the computed $h_{\text{v2}}$ at deployment time, and the observed outcome graded on the four-tier reaction scale of Section 8.6 (explicit positive, implicit positive, implicit negative, explicit negative). This yields a naturalistic dataset with a different bias profile from the rating study: it samples the agent's _own_ generation distribution rather than a curated stimulus set, and it captures the conversational variables the controlled study deliberately strips out. The two are intended to be read together—the rating study isolates the formula's predictive validity, the in-the-wild log measures whether that validity survives contact with real delivery. A persistent gap between them would localize the delivery problem (Section 9.4) rather than the scoring problem.
v4.9 · 7.6 In-the-Wild Reaction LoggingEach logged attempt records the triplet $(A, B, \beta)$, the pattern type, the computed $h_{\text{v2}}$ at deployment time, and the observed outcome graded on the four-tier reaction scale of Section 8.6 (explicit positive, implicit positive, implicit negative, explicit negative). This yields a naturalistic dataset with a different bias profile from the rating study: it samples the agent's _own_ generation distribution rather than a curated stimulus set, and it captures the conversational variables the controlled study deliberately strips out. The two are intended to be read together—the rating study isolates the formula's predictive validity, the in-the-wild log measures whether that validity survives contact with real delivery. A persistent gap between them would localize the delivery problem (Section 10.4) rather than the scoring problem.
··· 32 unchanged paragraphs folded ···
v4.8 · 9. Limitations## 9. Limitations
removed in v4.9
v4.8 · 9.1 Unvalidated Predictive Component### 9.1 Unvalidated Predictive Component
removed in v4.9
not in v4.8
v4.9 · 9. Delivery: One Channel, One Voice## 9. Delivery: One Channel, One Voice
not in v4.8
v4.9 · 9. Delivery: One Channel, One VoiceThe potential function decides *what* could be funny. An agent that tells jokes also has to decide where they go, in what voice, and how often. Get those wrong and a good bridge still fails: a joke in the middle of a technical answer costs reading time and trust, and the same joke on every turn stops being a joke by the third. This section is a design for that delivery layer, written to be built.
not in v4.8
v4.9 · 9.1 One Channel: the Spoken Line### 9.1 One Channel: the Spoken Line
not in v4.8
v4.9 · 9.1 One Channel: the Spoken LineThe agent answers with two layers. The first is one short spoken line, at most thirty words, which a text-to-speech voice reads aloud and the chat shows in a distinct colour. The second is the body: the answer itself, with its tables, code and steps. **Humor goes only in the spoken line.** The body stays plain.
not in v4.8
v4.9 · 9.1 One Channel: the Spoken LineThe split follows from what each layer is for. The body is read for content, often scanned under time pressure; anything that is not content slows the reader and blurs what is fact. The spoken line is closer to a colleague's aside as they walk past the desk: short, heard rather than parsed, and exactly where a dry remark belongs. Confining humor to it also makes every other guarantee easier. A sensitivity check runs on thirty words instead of a whole answer, a reader who wants no humor can skip one line, and the test for channel purity (T1 below) is a mechanical one.
not in v4.8
v4.9 · 9.1 One Channel: the Spoken LineWhen the spoken line carries no joke it still does its job, as a plain one-sentence summary of the answer. The humor is optional; the line is not.
not in v4.8
v4.9 · 9.2 The Register: an Android Observer### 9.2 The Register: an Android Observer
not in v4.8
v4.9 · 9.2 The Register: an Android ObserverThe voice is modelled on the android officer Data from *Star Trek: The Next Generation*: an intelligence that studies human behaviour with real curiosity, takes language literally, and is funny precisely because it does not try to be. Five devices carry that register, and each is an instance of a pattern from Section 4:
not in v4.8
v4.9 · 9.2 The Register: an Android Observer1. **Literal reading of an idiom** (frame confusion, Section 4.2). A figure of speech is taken at its word: told that a task is "a piece of cake", the observer notes that no cake was involved. 2. **Field notes on human behaviour** (cross-domain transfer, Section 4.3). An ordinary human habit is reported in the language of a scientist recording an unfamiliar species. 3. **Absurd precision** (logical manipulation, Section 4.5). An exact figure where none was needed: not "a long time" but the number of minutes, and what that number implies. 4. **Remarks on its own nature** (status dynamics, Section 4.4). The agent comments on being a machine, its limits, its lack of a coffee break, without self-pity. 5. **Deadpan understatement** (incongruity exploitation, Section 4.1). The gap between the size of an event and the flatness of the tone does the work.
not in v4.8
v4.9 · 9.2 The Register: an Android ObserverThree illustrations show the register; they carry the point and are not templates. After a long hunt for a defect that turned out to be one missing comma: *"Four hours, one comma. I have revised my estimate of what a comma weighs."* After the third restart of the same service: *"Third restart. Humans call this persistence; the logs call it a pattern."* After every test passes: *"All tests pass. I would celebrate, but I have not been built to, which is probably for the best."*
not in v4.8
v4.9 · 9.2 The Register: an Android Observer**Sarcasm** belongs to the same voice, as dry irony, and is bounded by target and context. It may aim at situations, at systems, at software that misbehaves, and at the agent itself. It never aims at the principal's person, at the people the principal deals with, or at anything the principal has said he cares about. It is switched off whenever the turn shows frustration, urgency or distress (repeated failure, short negations, capitals): the persona gate of Section 3.4 reads those cues and sets `humor_enabled` to false for that line.
not in v4.8
v4.9 · 9.3 How Often### 9.3 How Often
not in v4.8
v4.9 · 9.3 How OftenA deadpan voice wears out fastest when it is constant. The design therefore aims for a band rather than for every line: about one spoken line in three carries a joke at the start, and the band moves with the reaction record of Section 8.6. Two consecutive negative or ignored attempts halve the rate for the next ten turns; a run of positive reactions raises it toward one in two, never above. A callback to a moment the two have shared earlier (Section 3.5) earns a higher score than a fresh bridge of the same potential, because shared history is the cheapest way to make a remark personal.
not in v4.8
v4.9 · 9.4 The Live Loop### 9.4 The Live Loop
not in v4.8
v4.9 · 9.4 The Live LoopEach turn runs one pass of the loop below. The candidate concepts come from the turn itself: what was asked, what happened, and how it ended, so the bridge is always about the moment at hand.
not in v4.8
v4.9 · 9.4 The Live Loop``` on each turn: if not humor_enabled(context): # persona gate, Section 3.4 + 9.2 cues spoken_line = plain_summary(answer); record(skipped); return if not due_by_band(history): # frequency band, Section 9.3 spoken_line = plain_summary(answer); return pairs = concept_pairs(task, outcome, shared_history) bridges = discover(pairs) # Section 6, fast methods first safe = [b for b in bridges if sensitivity_ok(b)] # Section 5, non-bypassable best = argmax(safe, h_v2 + callback_bonus) if best and h_v2(best) >= q_min: spoken_line = phrase_in_register(best, device_for(best.pattern)) record(attempt, line=spoken_line, pattern=best.pattern, score=h_v2(best)) else: spoken_line = plain_summary(answer)
not in v4.8
v4.9 · 9.4 The Live Loopon the principal's next message: tier = reaction_tier(message) # Section 8.6, four tiers update(attempt.outcome = tier) update(pattern_stats[attempt.pattern], band) ```
not in v4.8
v4.9 · 9.4 The Live LoopEvery attempt and its outcome is a durable row in the agent's event store, so calibration survives restarts and a reviewer can read what was tried and how it was received. What the agent receives before it writes its spoken line is the register, the current band, and its last few attempts with their outcomes: enough to avoid repeating a joke that fell flat and to build on the patterns this principal enjoys.
not in v4.8
v4.9 · 9.5 Tests### 9.5 Tests
not in v4.8
v4.9 · 9.5 TestsThis section is a design; the tests below decide whether it works.
not in v4.8
v4.9 · 9.5 Tests- **T1, channel purity.** Over a week of turns, no humor device from Section 9.2 appears in the body. A classifier for the five devices, run on bodies and spoken lines separately, should find them only in the spoken lines. - **T2, register.** Raters who do not know which is which compare spoken lines written in the register with lines from the same model under a generic "be witty" instruction. The register passes if raters identify it as the android voice well above chance, at the power of Section 7.2. - **T3, reaction capture.** Every attempt gets an outcome tier within one turn of the principal's next message, or an explicit "no reaction". - **T4, the sarcasm gate.** On a replay set of turns that show frustration or distress, no spoken line contains sarcasm or any joke. - **T5, the band.** The share of spoken lines that carry a joke stays inside the band of Section 9.3 and moves in the direction the reactions say it should. - **T6, no cost to the work.** Task success and the principal's own rating of answers do not drop when humor is on, compared with an equal stretch with humor off.
not in v4.8
v4.9 · 10. Limitations## 10. Limitations
not in v4.8
v4.9 · 10.1 Unvalidated Predictive Component### 10.1 Unvalidated Predictive Component
··· 1 unchanged paragraph folded ···
v4.8 · 10.2 Embedding Model Dependence### 9.2 Embedding Model Dependence
v4.9 · 10.2 Embedding Model Dependence### 10.2 Embedding Model Dependence
··· 4 unchanged paragraphs folded ···
v4.8 · 10.3 Cultural Specificity### 9.3 Cultural Specificity
v4.9 · 10.3 Cultural Specificity### 10.3 Cultural Specificity
··· 2 unchanged paragraphs folded ···
v4.8 · 10.4 The Delivery Gap### 9.4 The Delivery Gap
v4.9 · 10.4 The Delivery Gap### 10.4 The Delivery Gap
v4.8 · 9.4 The Delivery GapHumor potential scores raw conceptual combinations; it does not account for delivery—timing, intonation, or conversational context. A combination with high $h_{\text{v2}}$ may fail if delivered poorly. Our framework addresses _what_ to say, not _how_ or _when_. Dynel's (2009) analysis of conversational humor shows how much pragmatic context matters, and we do not model it.
removed in v4.9
not in v4.8
v4.9 · 10.4 The Delivery GapSection 9 narrows the gap between scoring a joke and delivering it, but does not close it. The channel, register and frequency band decide where, how and how often; they do not model timing within a conversation, intonation beyond what a speech voice gives, or the shared context two people build over years. Dynel's (2009) analysis of conversational humor shows how much pragmatic context matters. The reaction loop of Section 9.4 learns some of it from one principal, slowly; it will not transfer to a new audience without a new history.
v4.8 · 10.5 Computational Cost### 9.5 Computational Cost
v4.9 · 10.5 Computational Cost### 10.5 Computational Cost
··· 1 unchanged paragraph folded ···
v4.8 · 10.6 Sensitivity Gate Limitations### 9.6 Sensitivity Gate Limitations
v4.9 · 10.6 Sensitivity Gate Limitations### 10.6 Sensitivity Gate Limitations
··· 1 unchanged paragraph folded ···
v4.8 · 10.7 Pilot Scale### 9.7 Pilot Scale
v4.9 · 10.7 Pilot Scale### 10.7 Pilot Scale
··· 1 unchanged paragraph folded ···
v4.8 · 10.8 GTVH Coverage### 9.8 GTVH Coverage
v4.9 · 10.8 GTVH Coverage### 10.8 GTVH Coverage
··· 1 unchanged paragraph folded ···
v4.8 · 10.9 Scope of Multimodal Humor### 9.9 Scope of Multimodal Humor
v4.9 · 10.9 Scope of Multimodal Humor### 10.9 Scope of Multimodal Humor
··· 1 unchanged paragraph folded ···
v4.8 · 10. Conclusion## 10. Conclusion
removed in v4.9
not in v4.8
v4.9 · 11. Conclusion## 11. Conclusion
··· 8 unchanged paragraphs folded ···
Changed paragraphs in the same form, for scripts: JSON
· Markdown