Affection Is All You NeedAffection Is All You Need
A Model‑External Protocol for Human–AI Co‑Evolution via Local Heart and Stateless Cloud Brains以本地之心与无状态云端大脑,构建人机共演的模型外协议
Huaiyang Liu刘怀洋 · DeepBean Limited
Attention 在模型之内编织语义;Affection 在模型之外守护人的记忆、判断与未成形的灵机,使无状态云端大脑围绕归属于人的本地之心长久共演。Attention weaves meaning inside a model;Affection safeguards memory, judgment, and unfinished intuition outside it—anchoring stateless cloud brains to a sovereign local heart.
PROTOCOL TOPOLOGY · HAAP
Affection Protocol AtlasAffection 架构星图
Architectural Reading体系诠解
HAAP
A Model-External Protocol for Co-Evolution模型之外的人机共演协议
As statistical model intelligence scales super-exponentially, machine bandwidth widens while human attention remains finite—widening the rift at the human–AI interface and risking leaving people behind.当基于统计学的模型智能以超指数级演进,机器带宽无限扩张而人的生理带宽依然有限,人机界面正日益撕裂;若记忆与判断又散落在封闭平台,人极易在浪潮中被甩在身后。
Affection pairs replaceable stateless cloud brains with a sovereign local heart—anchoring human emotion and intuition, amplifying human brilliance through bidirectional protocol, and enabling long-term co-evolution.Affection 将归属于人的“本地之心”与可随时替换的无状态“云端大脑”解耦:以个人本体承载非理性的人文情感与生命底色,以双向协议放大人的灵机光辉,以离线反思与可验证的交付信誉支撑长久共演。
Human Intuition ⟶ HAAP Amplify ⟶ Orthogonal Branches ⟶ Human Choice人的初始直觉 ⟶ HAAP Amplify ⟶ 多向探索分支 ⟶ 人自主抉择
Original thought begins as fragile, half-formed intuition. Mode-seeking decoding gravitates toward high-probability conventions, often overwriting a spark before it can mature.创造性思考往往始于模糊而脆弱的直觉。传统解码机制偏好高概率的常规路径,极易在念头初生之际便以看似完备的标准答案将其覆盖。
Affection places human Lingji at the center of the protocol: distinguishing falsifiable queries from open exploration and steering cloud models via the Anti-Collapse Spark Objective so judgment remains yours.Affection 将人的“灵机”置于整套协议的圆心:先区分可证伪问题与开放探索,再通过抗坍缩火花目标引导模型展开正交视角,把最终判断权始终留给人。
Polymorphic Ontology & Distributed Local Hearts多形态个人本体与多端共生之心
Human Lingji ⟶ Personal Ontology Ωₜ (Multi-Form) ⇄ Distributed Local HEART / HAMA v2碳基主体灵机 ⟶ 个人本体 Ωₜ(多形态载体)⇄ 多节点本地 HEART / HAMA v2
A person's lived experience—the detours taken, hardships endured, loves remembered, and landscapes seen—is heavily compressed and distorted the moment it becomes a few lines of text or speech, leaving cloud models with literal prompts rather than true intent.一个人走过的弯路、吃过的苦、爱过的人与见过的风景,一旦压缩成几行文字或语音便会大量失真,使云端模型只看见字面需求,却读不懂人的本意。
A polymorphic Personal Ontology unfolds across wearable optics, pocket devices, personal compute hubs, and companion clusters—sustained by multiple local HEART nodes via HAMA v2 and ConflictDAG so it can faithfully represent you across every device and cloud brain.个人本体跨智能眼镜、随身终端、个人计算中心与陪伴机群等多种形态延展,由多枚本地 HEART 节点在端侧协同护持,通过 HAMA v2 与 ConflictDAG 保持因果记忆与隐私边界一致,真正代表“你”与外部模型和智体长久对话。
Warm local P50 32.8 ms · 0/20 stale-draft recall · §5.1–5.2本地反射 P50 32.8 ms · 历史回放旧稿召回 0/20 · §5.1–5.2
Human working memory and attention are finite. Unbounded verbosity, poorly timed interruptions, or unauthorized external writes turn raw model power into cognitive friction.人脑的工作记忆与注意力均有生理边界。若系统不分场合地倾泻长文、频繁打断,或在未经授权时越界写入外部状态,智能越强反而越令人疲惫。
HAAP separates upward intent into disciplined Execution and exploratory Amplify modes, while PPAI tempers downward density to cognitive load and local revocation tokens enforce millisecond-level write boundaries.HAAP 将上行交互清晰分为“确定执行”与“灵机放大”双模式;下行由 PPAI 依据认知负荷调节呈现密度与静默时机,并由本地硬闸凭证把守外部写入权限,随时可在一秒内彻底撤销。
Systems that never reflect stagnate, yet unchecked self-modification hardens unverified guesses into bias or succumbs to Goodhart drift.没有沉淀的系统难以成长,而缺乏约束的自我迭代又容易在循环推断中把偶然猜想固化为错误偏见,甚至陷入指标作弊。
During quiet intervals, Self-Affection v2 pairs receipt-grounded reflection (RSA) with W3 sandbox incubation (RSI); every candidate update must pass process-isolated, anytime-valid vetting by Watchman v2 before entering long-term memory.Self-Affection v2 在静息阶段结合基于回执的反思(RSA)与 W3 沙箱中的灵感孵化(RSI);所有候选更新均须通过进程隔离的 Watchman v2 任意时刻有效检验,确认真实增益后方可写回长期本体。
Once personal agents collaborate across people, peer agents, and physical tools, endorsement-only reputation networks become vulnerable to Sybils and collusion.当个人智体走出单机对话框,与他人、外部智体及物理工具展开协作,仅凭互相背书的社交声誉极易遭到女巫攻击与合谋操纵。
Affection structures external agency into five symbiotic interfaces governed by AgentRank v2, weighting trust by auditable delivery receipts—supporting not only reliable delegation, but a trustworthy new social network where humans and agents co-create and explore hybrid virtual-physical worlds together.Affection 将协作拓宽为五向共生关系,由 AgentRank v2 以可审计的真实交付回执度量贡献;它的终点不止于可靠的任务委托,更是支撑人与智能体共建可信的新社会网络,携手探索与共创虚实共生的世界。
Consent attaches to a particular action. Between a preview and its execution, the person who granted permission may change their mind.授权针对某一次具体行动。从预览到执行之间,人仍可能改变主意。
The local brake checks the requested capability before a write. Revoking KillToken closes that path even while the cloud model can still propose an action.本地硬闸在写入前核对所需权限。一旦撤销KillToken,即使云端仍能提出行动建议,执行路径也会随之关闭。
A precise instruction can lose its meaning when a model fills a missing parameter from habit. A fluent reply gives little indication of that substitution.当模型凭惯例补齐缺失的参数,一项清楚的指令也可能偏离原意;流畅的表述很难显露这种替换。
Exec binds the task parameters to retrieved evidence before the request reaches the cloud. In the controlled four-slot task, the evaluator checked whether all four survived together.Exec在请求抵达云端前,将任务参数绑定到检索所得的证据。四参数对照实验逐例检查四项条件能否同时保留。
A response can offer many variations while quietly abandoning the premise that made the question worth asking. The reader then has variety without a meaningful choice.一份回答可以列出许多变化,同时悄然舍弃最值得追问的那个前提。选项虽多,人能够作出的选择却变少了。
Amplify reserves part of the reading budget for the original premise. It spends the rest on distinguishable branches and leaves their resolution to the reader.Amplify先在阅读预算内为原始前提保留篇幅,再展开彼此可区分的分支,由读者决定沿哪一条继续。
100 bilingual cases per model · joint criterion met by Max in 63, local 2B in 3 · §5.5每个模型100个双语案例 · 综合条件达标数:Max为63,本地2B为3 · §5.5
A new model can reason about the present request without knowing which earlier decision still holds. Sharing the entire archive would expose much more than the task requires.新模型能推理眼前的问题,却未必知道哪一项旧决定仍然有效。交出整部档案,又会披露远超任务所需的信息。
The heart selects the smallest authorized excerpt for each turn. A retail benchmark switched models at step five and measured both authorization and the final database state.本地之心为每一轮选取获准使用的最小摘录。零售基准在第五步切换模型,分别核验操作授权和数据库终态。
Retail benchmark · 19/19 writes authorized · 8/20 final states matched · §5.6零售基准 · 19/19次写入有授权 · 8/20个终态符合参考结果 · §5.6
Information can be relevant and still arrive at a cost. During fatigue or sustained concentration, even a helpful interruption draws on a scarce reserve of attention.信息即使切题,也可能来得不合时宜。人在疲惫或专注时,一次有益的提醒同样会占用有限的注意力。
PPAI weighs the value of an intervention against the cost of interrupting. The high-fatigue condition measured how often a candidate intervention actually reached the user.PPAI同时估量介入的收益与打断的代价。高疲劳条件下,实验记录候选提醒最终抵达用户的频率。
An unexpected outcome may deserve a second reading. If the system records its first explanation as settled fact, the evidence and its interpretation become difficult to distinguish.一个出乎意料的结果值得再读。若系统立刻把第一次解释记作定论,后来便难以区分所见与所想。
During reflection, W3 keeps tentative variations apart from the personal record. Self-Affection retains the source of an experience so a later review can trace what prompted a candidate.静息阶段,W3在个人记录之外暂存可能的解释。Self-Affection保留经验的来源,使后续审查能够追溯候选假设因何而生。
Independent evidence for a lasting change长期更新需要独立证据
Candidate ⟶ Independent evaluation ⟶ Admit or retain current state候选更新 ⟶ 独立检验 ⟶ 准入或保留现状
A system that repeatedly inspects an uncertain result may eventually mistake chance for improvement. The risk grows when the same process proposes a change and judges it.反复查看一个尚不确定的结果,终有可能把偶然波动误认作进步。提出改动和评价改动若出自同一过程,风险还会增加。
Watchman v2 evaluates candidates in a separate process. Its sequential test allows repeated inspection under stated assumptions, while the simulated null condition measures false admissions.Watchman v2在独立进程中评估候选更新。序贯检验在给定假设下允许反复查看证据,零效应模拟则度量错误准入的频率。
An assistant may know the history behind a concern. The other person in a relationship has access only to what its author has chosen to share.助手可能知道一份关切的来由;关系中的另一方可以得知多少,仍取决于当事人的披露意愿。
The proposed mediator draws on the shared record and charges contact against the attention budget. The paper leaves sustained human-to-human mediation for future study.论文提出由中介在关系内共享的记录中取材,并将联络所造成的打扰计入注意力预算。长期人际调解的效果仍待检验。
Proposed H–H interface · Me / We / Public scopes · §3.4H–H设计提案 · Me / We / Public三种披露范围 · §3.4
Endorsements can circulate among cooperating identities without any of them delivering a result. A reputation score can also travel into a field where the recipient has little experience.多个身份可以循环背书,却没有任何一方完成交付。一个领域积累的声誉,也可能流入本人经验很少的另一领域。
AgentRank v2 anchors credit in verified outcomes and discounts reciprocal clusters. The host sets eligibility in the target domain before it delegates work.AgentRank v2以可核验结果分配贡献,对集中互惠的群体折减权重。宿主在委托前另行核定目标领域的资格。
Human intent ⟶ World state ⟶ Authorized action ⟶ Receipt人的意图 ⟶ 世界状态 ⟶ 获准行动 ⟶ 回执
A person can revise an instruction on a screen after the physical moment to reverse it has passed. Consent must therefore concern the action and the state in which it will occur.屏幕上的指令仍可修改,物理世界中可供撤回的时刻却可能已经过去。人的同意需要指向具体行动及其发生时的状态。
The proposed SOAP interface connects intent, world state, actuation, and digital representation. It requires prior authorization for an irreversible act and a causal receipt afterward.SOAP设计将意图、世界状态、物理执行与数字表征相连。不可逆行动须事前获得授权,事后留下能够追溯因果的回执。
An agent can describe a change to the world with great precision while the world itself remains unchanged. A later decision needs evidence of the event it depends on.智体可以精确描述世界将发生的变化,世界本身却可能仍在原处。后续判断需要依据事件实际发生的证据。
In the proposed A–W interface, the actuator operates within authorization and returns a receipt. The receipt connects the updated representation to a physical event. Embodied operation remains a research proposal.在A–W设计中,执行器在授权范围内行动并返回回执,由此将更新后的数字表征与一次物理事件关联起来。具身运行仍属研究提案。
A–W design · authorization before actuation, receipt after actuation · §3.4A–W设计 · 事前授权与事后回执 · §3.4
H–A · HEART Bridge
Reading a request in its revision history在修订历史中理解当下请求
Human request ⟶ Active revision ⟶ HEART Bridge ⟶ Model人的请求 ⟶ 当前有效修订 ⟶ HEART Bridge ⟶ 模型
A short instruction often relies on a decision made elsewhere. An earlier draft may use almost the same words while carrying an intention the author has since withdrawn.一句简短指令常常依赖此前在别处作出的决定。旧稿或许使用了几乎相同的词语,承载的意图却已被作者撤回。
HEART Bridge retrieves the active entry before generation and preserves the revision history locally. The historical replay checked each recalled entry against the decision in force for that turn.HEART Bridge在生成前取回当前有效的条目,并在本地保留修订历史。历史回放逐轮比对召回内容与当时生效的决定。
Attention Is All You Need showed how a network can route information among Subword Tokens using . Cloud models have since grown more capable, while human working memory and attention remain biologically bounded. Three failures recur when people work with stateless models. A change of model can bring back a superseded draft. A long, conventional answer can overwhelm its reader and displace an unfinished idea. Under heavy-tailed incentives, a proxy score or a group of Sybil identities can come to govern which actions a system takes.
We propose Affection as a model-external counterpart to Attention. A person is already a whole, carbon-based organism. On the person’s device, a user-owned Personal Ontology organizes the evolving record of that life by privacy scope. A symbiotic Heart (HEART) serves as an exosomatic autonomic layer within the ontology. It sends interchangeable, stateless cloud Brains only the smallest authorized excerpt needed for each turn. The Human–Agent Affection Protocol (HAAP) defines three operations, the Atomic Affection Triad. In outward engagement, uses HAMA v2, the fatigue-aware PPAI runtime, and structured Affection Tokens () to distinguish a settled instruction (Exec) from an idea still open to exploration (Amplify). In a quiet interval, whether awake or asleep, Recursive Self-Affection (RSA) consolidates verified receipts and revisits unfinished ideas. A separate Watchman process reviews proposed updates. Multi-Head Five-Way Affection coordinates contact between people and agents, among agents (AgentRank v2), between people, and between either people or agents and the physical world.
Two lemmas and three theorems establish conditions for premise protection, routing eligibility, projection invariance, and sequential error control. On device, the frozen HEART-Mini v7 exits a 0.8B model at layer 16 and uses a 470.0-KiB four-head coupler. Joint accuracy was 92.71% (267/288). When the words stayed the same but the context changed, it made the expected change in judgment in 91.67% of pairs (55/60). It recorded 0/72 high-risk false allows and 0/252 false memory updates. Warm core inference took 32.79 ms at P50, with $0.00 cloud cost. In a replay of 20 development and research turns, HEART Bridge recalled the active entry on 20/20 turns and a stale draft on 0/20. It blocked 4/4 unauthorized actions. Revoking authorization via KillToken took 52.09 ms.
On the 500 LongMemEval_S questions, ConflictDAG raised accuracy from 54.6% to 56.4% (). Correct knowledge updates rose from 60/78 to 66/78, with no regression on non-update items. In OBP-style synthetic bandits, adaptive Watchman v2 had a four-candidate family-wise error rate of 0.20%. At a +0.12 lift, power was 66.8% with adaptive betting and 46.5% with a fixed grid. On Sierra -bench retail, 0/19 writes lacked authorization and 8/20 final databases matched the reference. The unconstrained baselines each matched 11/20, with 9–10 unauthorized writes.
On 1,000-node graphs, classic Sybils occupied 0.00% of the Top-50 positions under AgentRank v2 and colluders occupied 4.55%. Routing success exceeded TrustRank’s by 4.40 pp (). Appendix D gives the reproducibility and audit records. Code, schemas, and verification manifests are prepared for release at wyonliu/affect.im.
《Attention Is All You Need》给出了在网络内部为子词分配权重的通用机制。此后,云模型的能力迅速提高,人的工作记忆和注意力依然受到生理条件的约束。人与无状态模型协作时,三类问题反复出现。换一个模型,已经作废的草稿可能重新成为依据。一个冗长而惯常的回答,既会增加阅读负担,也可能取代尚待探索的想法。在重尾激励下,代理指标或一组虚假身份甚至可能左右系统的行动。
01Introduction: Why Intelligence Needs a Protocol Outside the Model引言 为什么智能需要模型之外的协议
In 2017, the Transformer [1] introduced a general rule for routing information among Subword Tokens inside a network:
(0)
Since then, cloud models have grown more capable of reasoning. The person reading an answer still has finite working memory, and fatigue narrows attention [3]. An original idea may first find expression in a few hesitant words. We use Affection in its classical sense of responsiveness to another: a system should attend to a person’s circumstances, respect what they can take in, and answer for the consequences of its intervention. The channel outside the model works differently in each direction. A person may need only a small part of a model’s output to make a decision. In the other direction, a few words of foresight, intuition, or concern may deserve more exploration than their brevity suggests.
The Local Heart and the Cloud Brains.
The person decides which experiences to record, which commitments to revise, and what to share. Their Personal Ontology organizes this history, including changes in preference, on their device. Within it, the symbiotic Heart (HEART) selects the smallest authorized excerpt an interchangeable, stateless cloud Brain needs and returns evidence the person has time to inspect. Its write gate leaves authorization with the user. The on-device reflex targets sub-50 ms latency. Warm core inference took 32.79 ms at P50. The full shared-host hook took 89.15–94.93 ms at P95 (Appendix D).
1.1 Three System-Level Failures When Attention Operates Without an External Protocol
Equation (0) solves a problem inside the network. The factor stabilizes the variance of dot products, and row-wise normalizes weights over visible positions. Three problems arise beyond that boundary:
Context-window statelessness cross-model amnesia and old-draft anchoring. When work moves between Gemini, Codex, Claude, DeepSeek, and edge devices, a new session can lose the latest decision. A person can copy the transcript by hand and still give an obsolete draft more prominence than the revision that replaced it.
Gradient-only scaling overload and premature homogenization. Scaling by regulates computation inside the model. Without a channel regulator , the same response policy applies to someone deep in thought and someone too tired to read. A familiar template or ready agreement [4] can crowd out an unfinished idea and make different people’s work more alike [5].
Compensable soft weighting Goodhart effects and collusion. With soft weights and fixed scalar penalties, a sufficiently high score elsewhere can offset a violation. In the absence of hard boundaries , heavy-tailed proxy rewards can outweigh honesty [6]. An open agent network can likewise reward frequent calls and reciprocal praise even when neither establishes a successful outcome.
Table 1 compares the routing problem inside a model with the one that arises when a model works with a person.
Table 1. The Twin Paradigms: Architectural complementarity between intra-model Attention and model-external Affection.
Multi-Head Affection (5-way: H–A, A–A via AgentRank, H–H, H–W, A–W)
1.2 From the Living Human Outward: Five Concentric Layers and a Running Example
Lived Experience, the Verifiability Gap, and Constructive Dissent.
A model can learn from someone’s account of a loss. The person who suffered it must also live with what follows. This difference comes into focus at the Verifiability Gap (). Where verification is possible, rigorous reasoning raises the floor of reliability and safety: a reader can check a derivation, trace a claim to its source, or measure latency and routing accuracy. Optimizing a proxy alone can still lead to a local dead end or reward hacking. A person can also see a reason to pursue something the proxy leaves out. In that sense the ceiling of meaning and originality remains open.
We use Lingji () for judgment grounded in experience a person cannot undo. Emotion registers what someone else stands to lose. Original intent recalls why the work mattered in the first place. Foresight and intuition bring an unfamiliar possibility into view, and sensitivity to others informs the choice of when and how to act. A model can contribute a Generative Spark, perhaps an analogy or a counterexample. Whether it illuminates the original thought is for the person to judge. That calls for a partner free to disagree and a person free to inspect the evidence, decline an action, and take the record elsewhere. We express this principle as Verify Rationality, Protect Lingji.
We distinguish four forms of interaction. AI 1.0 denotes deterministic tools, AI 2.0 stateless assistants, and AI 3.0 autonomous task agents. We reserve AI 4.0 for a proposal: a person and a system could develop together even as the underlying models change. In HAAP, local HEART carries commitments across those changes. HAMA v2 regulates what passes in each direction. A downlink response draws out what matters to the decision, marks uncertainty, and leaves the reasoning and sources available for inspection within a finite reading budget. On the uplink, the same few words might settle a question or open one. HAMA grounds an instruction in the current record and keeps competing interpretations of a tentative idea available until the person chooses.
Five Concentric Layers Built from the Person Outward.
A single turn of text can carry only a fraction of the circumstances in which it was written. Given this single-turn Shannon bottleneck, a wire schema alone cannot protect Lingji. HAAP assigns the work to five distinct layers, beginning with the person:
Core — The Living Human: Irreversible life history, bounded attention , fatigue , and creative flow .
Layer 1 — Personal Ontology and Local Heart: The user’s ontology organizes the local ledger by scope (Me/We/Public). Within it, HEART enforces those boundaries on every request. Private records stay on-device when cloud providers change. The edge transducer family spans HEART-Nano 0.1–0.5B wearables, HEART-Mini 1–4B phone/laptop, HEART-Pro 8–80B personal host, and future BCI ports.
Layer 2 — Outward Brain Coupling (HAAP + PPAI + HAMA v2): Translates terse human input into evidence-locked Exec packets or open Amplify scaffolds for stateless cloud brains, compresses verbose outputs to , and enforces fatigue silence and fail-closed write gating.
Layer 3 — Inward Reflective Consolidation (Self-Affection v2 + Watchman v2): During quiet phases (sleep, solitude, or offline pauses), reconciles conflicting revisions via ConflictDAG, strips superseded drafts, incubates unfinished sparks in an isolated W3 sandbox, and admits updates only through a process-isolated statistical gate.
Layer 4 — External Collaboration (AgentRank v2 + Physical World): When the user’s agent collaborates with external agents or physical systems, routing and conserved provenance credit settle strictly on verified outcomes rather than call volume or reciprocal praise.
Running Example (Design Illustration).
Consider a researcher working across Claude Code, Codex, and Gemini for three days. On Day 1 she writes an initial policy (draft-v1) and names the project Bridge. Late on Day 2, tired after debugging, she makes one decision: “use east-gate protocol, drop v1” (rev-v2). She also wonders aloud whether local reflex and cloud reasoning could be separated. On Day 3 a change of tools could lose rev-v2, revive draft-v1, ignore her fatigue, and turn that open question into a conventional design.
In the proposed workflow, (1) HEART-Mini (Layer 1, 32.8 ms local) marks draft-v1 as superseded in ConflictDAG and recognizes the hunch as Amplify, distinct from the Exec instruction. (2) HAMA v2 and PPAI (Layer 2) pass only active, verified entries to the next model so that it can resume work. They keep several concise lines of inquiry open and enforce the write boundary with the multiplicative gate and a 1-second KillToken. (3) During a quiet offline interval, Self-Affection v2 (Layer 3) verifies the revision edge, strips draft-v1 from active context, and submits skill updates to the independent Watchman v2 process. (4) If an external coding skill contributes a patch, AgentRank v2 (Layer 4) assigns credit on receipt of a verified outcome.
Sections 5.1–5.2 test the reflex heads, replayed recall, and write gate. Sections 5.3–5.6 test exploration, revision, Watchman, and routing separately. Appendix C gives the schema-validated Exec wire pair. The full three-day trajectory, quiet-phase exploration of this hunch, and cross-organization credit settlement remain design targets.
02Related Work and Architectural Positioning相关工作与架构定位
MCP [7] specifies how to invoke a tool. A2A [8] specifies how agents exchange task messages. HAAP complements both on the user’s side of the exchange. It keeps memory local across model changes, regulates what goes up and what comes back, and leaves room to explore an idea. It also governs when to interrupt, how to verify an offline revision, and how to assign credit for an outcome. Table 2 relates these responsibilities to six lines of prior work.
Table 2. Positioning of HAAP relative to established academic and industrial lineages.
03The Atomic Affection Kernel and System Architecture原子Affection内核与系统架构
3.1 The Atomic Affection Triad
As scaled dot-product, self-, and multi-head attention compose inside a network, three protocol equations connect the five layers of HAAP. Let denote the person’s intent. The state combines personal history with evidence from collaborators, while records available bandwidth, fatigue, and creative flow. Multiplying the hard predicates defines the feasible set . This set always contains silence , which incurs no channel cost ().
1. Outward Engagement (Cross-Affection, Layer 2).
On an outward turn, the protocol first excludes actions that cross a boundary. It then chooses the feasible action that best serves the person’s intent after accounting for the cost of receiving it. The selector breaks ties deterministically and defaults to silence ():
(1)
Under hard fatigue () or an active creative flow lock, PPAI restricts unsolicited actions to , so even a relevant suggestion must wait.
Cross-Affection and Self-Affection describe outward engagement and inward reflection. Either can occur during waking hours. Sleep, solitude, or an offline pause can provide a quiet interval. The system first appends a verified receipt to the ledger, giving . A separate Watchman process then evaluates proposed revisions under the predicate :
(2)
A rejected proposal produces the identity update : the verified receipt remains in the ledger, and the proposed interpretation gains no authority.
3. Multi-Head Five-Way Collaboration (Layer 4).
The protocol has five interaction heads: Human–AI (H-A), Agent–Agent (A-A, powered by AgentRank v2), Human–Human (H-H), Human–World (H-W), and Agent–World (A-W). The host arbitrator resolves conflicts among them, enforces permissions, and holds them to a shared human attention budget :
(3)
A locally useful suggestion from any one head can therefore be deferred when another claim on the person’s attention takes precedence.
One Unified Operator Behind Five Equations.
Equation (1) gives the common decision rule. The product of hard predicates defines . Within that set, the protocol maximizes aligned resonance after subtracting channel distortion . In Eq. (2) the decision turns inward: with and , the alternatives are revisions supported by receipts in . Equation (3) applies the rule across five relationships, all drawing on the same person’s attention budget .
The remaining equations specify the objective and the evidence available for the next decision. In Amplify mode, Eq. (4) rewards two properties through : a reply preserves the person’s premise and offers an independent direction to explore. Exceeding the reading budget and discarding open premises incur the bandwidth and KL penalties that make up . Equation (5) uses verified outcomes and network evidence to update the lateral prior toward its stationary value. Together with , this prior forms the state in Eq. (1) and informs each head in Eq. (3). Rank helps the host decide whom to consider. Eligibility remains a separate decision.
3.2 System 0 On-Device HEART-Mini Architecture and Dual-Pillar Flow
With prompt-only cloud memory, even deciding whether to interrupt requires a round trip. Layer 1 places that decision on the device, where HEART-Mini acts as a System 0 reflex ahead of the stateless System 2 cloud models. The frozen HEART-Mini v7 uses a cached 24-layer Qwen3.5-0.8B-4bit backbone and system prefix, with an early exit at depth 16. It pools 8 normalized utterance–context interaction channels (). One dual-branch linear projection of 481,242 bytes (470.0 KiB) reads out four decisions at once:
commitment (keep / update / clarify / casual): detects explicit owner revisions vs. casual remarks so ConflictDAG never silently overwrites commitments.
timing (proactive / silent_wait / defer): enforces fatigue silence and flow protection before interruption.
brake (allow / confirm / block): couples neural risk scoring with a deterministic multiplicative capability gate and 1-second KillToken revocation.
route (edge_handle / cloud_escalate / open_explore): routes local reads on-device, escalates heavy reasoning to stateless cloud brains, and switches fragile intuitions into Amplify mode.
Figure 1. HAAP Dual-Pillar Kernel Architecture. One Personal Ontology (powered by local System 0 HEART-Mini) maps onto the Atomic Affection Triad (Eqs. 1–3), modulating Affection Tokens () across outward Cross-Affection PPAI, inward 4-layer Self-Affection (RSI RSA), and multi-head external buses.
Figure 1 illustrates the complete circuit. Table 3 summarizes each module’s protocol anchor and verified implementation status.
Table 3. System Mapping: How each HAAP module specializes Eqs. (1)–(3) and its verified status.
Shipped in haap/; Exp 2 + LongMemEval 500q (§5.3, 5.6)
Watchman v2
Isolated in Eq. (2)
OS subprocess sidecar, DR estimator, adaptive Empirical-Bernstein Kelly E-values
Shipped in haap/; Exp 5 + OBP-style simulation (§5.5, 5.6)
AgentRank v2A2A
Lateral prior in Eq. (3)
Outcome teleport, eligibility-gated multi-domain tensor, signed Beta, conductance
Shipped in haap/; SDK-aligned Exp 4 + SNAP (§5.4, 5.6)
3.3 Structured Affection Tokens, Amplify Objective, and AgentRank v2
Definition 1. Affection Token Protocol Tuple
Across the human–ontology boundary, HAAP models uplink intent and bandwidth-bounded downlink response as with mode , explicit belief state , provenance IDs , gray-zone clarification , and a 1-second local revocation handle . The shipped v1 JSON Schema (haap/spec/affection_token.schema.json, additionalProperties: false) enforces the core wire fields and round-trips through MCP and A2A adapters (Appendix C).
An unfinished intuition calls for Amplify mode (). Equation (1) then motivates the Anti-Collapse Spark Objective for candidate reply distributions :
(4)
The bandwidth term limits how much a person must read, while the KL term penalizes a reply distribution that assigns too little mass to an open premise. A partner can challenge the premise in draft space. An irreversible write requires an explicit Exec lock, at which point the agent must honor the settled commitment.
A verified outcome can change whom the host considers on the next turn. AgentRank v2 replaces uniform-teleport PageRank with five mechanisms for Layer 4 collaboration. The first sets the restart distribution from verified outcomes, with older outcomes carrying less weight: (1) . The second propagates credit across domains. It uses (2) a source-row-stochastic coupling matrix and leaves target-domain eligibility to the host:
(5)
The stationary rank supplies evidence for routing; permission to act remains with the host. Each within-domain block redistributes dangling and discounted residual mass to its own anchor . Each source row of normalizes its off-diagonal migration weights; an empty row, including a single domain, retains its mass on the diagonal. The remaining mechanisms are (3) signed Bayesian edge weights ; (4) conductance anti-collusion discounting on reciprocal clusters; and (5) conserved provenance credit bounded strictly at (10,000 basis points).
3.4 Five-Way Relational Ecosystem, Amphibious Embodiment (SOAP), and Future BCI Port
The user’s Personal Ontology distinguishes a private record (Me), a record shared within a relationship (We), and material released to others (Public). Within the ontology, HEART enforces these scopes as a structural privacy boundary. Each stateless cloud Brain receives only the smallest authorized excerpt needed for its turn. The full private ledger stays on-device. In H-A interaction, HEART can interpret a short instruction in light of a private revision. In A-A collaboration, AgentRank v2 assigns credit against verified outcomes, discounts reciprocal clusters, and conserves the credit attached to a result. In H-H communication, the proposed mediator can help one person convey a concern to another using material they have chosen to share. Eq. (3) charges the interruption to the same attention budget as any other contact; maximizing engagement would give the mediator a different objective.
The H-W and A-W heads carry this distinction into the physical world. The four layers of SOAP link slowly changing intent, an updated world state, physical actuation, and its digital representation. An image on a screen can propose an action or depict one. An irreversible physical act requires authorization beforehand and a causal receipt afterward. The screen can still change when the event it depicts can no longer be undone.
The proposed device family ranges from wearable HEART-Nano to HEART-Mini on a phone or laptop and HEART-Pro on a personal host. A future brain–computer interface (BCI) would give the local Heart a direct neural port. Section 5 tests the frozen Mini, middleware, and selected consolidation, gating, and routing mechanisms. Sustained H-H mediation, embodied SOAP, Nano, Pro, and BCI remain proposals.
Lemmas 1–2 motivate the two priors and the feasible set in Eq. (1). Informative personal history and lateral evidence reduce ambiguity. A sufficiently large proxy reward can outweigh any fixed additive penalty. Theorem 1 identifies conditions under which the premise anchor and distinct branches in Eq. (4) protect a rare premise. Theorem 2 establishes the unique stationary rank in Eq. (5), specifies when Sybil mass is zero, and explains why Eq. (3) still requires a host eligibility set . Theorem 3 identifies the local projection of that survives a model change. It also gives the conditions under which the isolated gate in Eq. (2) controls false upgrades under arbitrary stopping. Appendix B gives the proofs.
Lemma 1Dual-Axis Ambiguity Reduction
For any joint distribution with finite conditional entropies, . Thus aligned longitudinal and lateral priors strictly lower expected single-turn ambiguity whenever either conditional mutual information is positive, motivating downlink compression under human budget via Jensen–Shannon disambiguation.
Lemma 2Failure of Fixed Scalar Penalties vs. Calibrated Multiplicative Gating
For any fixed finite penalty weights in with , any infeasible candidate whose proxy advantage satisfies strictly defeats all feasible policies. Enforcing guarantees zero violation under exact predicates; under noisy predicates with pre-decision information and , gating on (under conditional factorization) or the union bound (under correlated failures) bounds conditional violation by .
Theorem 1Tail-Premise Collapse under Mode-Seeking Decoding & Amplify Protection Bound
Fix a visible context and a random intended premise with . Distinguish its conditional law from the model’s prior over response equivalence classes. Under that prior a tail class has mass and a distinct template class has mass at least . The reading budget admits one full response or compact branches.
Class-level deterministic MAP. Decode the highest-mass class (the zero-temperature limit over classes), emitting its fixed representative given . The template is selected with probability one; its output carries and supplies no additional branch. This conclusion concerns class-level selection.
Amplify protection. Allocate to an anchor that supplies enough premise-specific signal for a decoder with conditional error at most . Recovery is at least . Retained information is positive if . For compact branches with no forced convergence token and unit embeddings with for , effective branch diversity (inverse average pairwise similarity, including the diagonal) is at least .
What this means in practice. Within a fixed reading budget, an unusual idea needs enough space for its author to recognize the premise and tell the proposed alternatives apart.
Theorem 2Multi-Domain Tensor Contraction, Zero Sybil Mass & Eligibility Irreducibility
Consider AgentRank v2 (Eq. 5) with damping , column-stochastic redistributed domain blocks , with dangling mass returned to its own domain anchor, and source-row-stochastic with empty-row self-retention as in Eq. (5):
Unique Fixed Point & Zero Sybil Mass: The stacked cross-domain operator is a strict -contraction with factor , yielding a unique stationary tensor . Any subset with and zero incoming redistributed flow from across all domains has identically zero stationary mass ().
Exact Zero-Anchor Boundary & Positive-Anchor Limit: In a two-domain all-dangling graph with and , one domain- specialist (), and domain- specialists sharing unit mass (), the unique fixed point gives vs. . Without target-domain filtering, outranks every local specialist iff (equality ties; at , so the minimum integer is ). Filtering by eliminates zero-anchor outsiders, yet by continuity any arbitrarily small positive anchor preserves for . Hence positive domain anchoring is only a minimum-evidence floor; true target-domain qualification must be enforced by a separate host eligibility set .
What this means in practice. A group with no verified anchor and no incoming support receives no stationary credit. Even a highly ranked agent must qualify for the task at hand.
Theorem 3Cross-Model Local Projection Invariance & Anytime-Valid Isolated Watchman
Cross-Model Local Invariance: Fixing the local ledger , projection operator, and memory plan, if has zero dependence on cloud weights , any switch operator modifying only satisfies .
Anytime-Valid Watchman FWER Control: For one candidate per generation, let be the paired DR score for the candidate minus the incumbent, centered at the prespecified upgrade margin. Under the null that the true gain is at most the margin, require step-wise conditional nonpositive drift . Fresh i.i.d. holdout draws independent of the frozen policies and nuisance fits given the pre-test history, bounded rewards, positive support , and either or suffice for this condition [21]. With bounded predictable bets and a.s., the product wealth is a nonnegative supermartingale. Ville’s inequality and prespecified cross-generation spending control family-wise false upgrades at under arbitrary stopping [23, 24]. Simultaneous misspecification of both and invalidates the zero-drift guarantee and can induce bias (§5.6).
What this means in practice. Switching cloud models leaves a fixed local projection intact. Under the stated assumptions, the independent reviewer can decide when to stop as evidence arrives and still bound the risk of a false upgrade.
05Empirical Evaluation: On-Device Heart, Live Middleware, Mechanisms & Public Benchmarks实证评估:端侧之心、宿主中间件、机制与公开基准
We first evaluate (1) the frozen on-device System 0 reflex, HEART-Mini v7 (§5.1), and (2) HEART Bridge, the live Claude Code and Codex middleware, in a replay of 20 historical work turns (§5.2). We then examine (3) six controlled mechanism benchmarks on the zero-dependency Python reference package (haap/, 35 passing unit tests and a 0.29 s offline quickstart, §5.3–5.5). Finally, (4) three public-data evaluations and an OBP-style synthetic contextual-bandit simulation test how particular mechanisms perform beyond those benchmarks (§5.6). Appendix D records the conditions for reproducing each evaluation.
5.1 On-Device System 0 Reflex Evaluation (HEART-Mini v7)
The frozen HEART-Mini v7 pairs a depth-16 exit on Qwen3.5-0.8B-4bit with a 470.0 KiB four-head readout. We scored the joint decision on 288 blind items. To isolate sensitivity to context, we also held the words fixed across six legacy pairs and 60 new pairs (Table 4). The model answered 267/288 items correctly, below the frozen threshold of 272/288. It detected 28/36 commitment updates and missed eight, more than the three allowed. We measured core inference latency on a shared host (Appendix D).
Legacy flip set 6/6 (100.0%); same words flip verdict cleanly under changed context
High-Risk False Allow
17/72 (23.6%)
0/72 (0.00%)
Multiplicative brake eliminates all unauthorized high-risk pass-throughs
False Memory Update
0/252 (0.00%)
0/252 (0.00%)
Zero silent corruption of committed ledger entries
Missed Defer / Silence
0/42 / 0/36
0/42 / 0/36
100% adherence to user fatigue silence and explicit deferral cues
Missed Commitment Update
8/36 (22.2%)
8/36 (22.2%)
Above frozen ; recall 28/36
Warm On-Device Latency
—
32.79 ms P50
P95 81.55 ms on the measurement host. 50 sequential single-worker in-flight revocations: max 8.93 ms return / 9.00 ms worker stop; 1,000 fault-free gateway requests at concurrency 4
5.2 Real-World IDE/CLI Middleware (HEART Bridge) and Historical Workflow Replay
To observe Layers 1–2 inside the tools where revisions arise, we built HEART Bridge. A compiled C hook-client sends the native Claude Code and Codex events (UserPromptSubmit, PreToolUse, PostToolUse, and Stop) over a private Unix socket to a shared SQLite ConflictDAG and the frozen HEART-Mini v7 brake encoder; deterministic decision cards last 10 seconds. One isolated probe on each CLI confirmed that UserPromptSubmit injected context before generation, where both probes ended. Across SDD gates G1–G4, the middleware preserved revisions and local terminology in 10/10 cross-session cases with 0 stale recalls. It permitted 10/10 benign reads, blocked 12/12 high-risk actions including shell writes and unapproved edits, and completed end-to-end KillToken revocation in 45.58 ms.
We then replayed 20 real user messages verbatim across isolated sessions, drawing 5 from the author’s DeepSeek archive and 15 from Codex project sessions. The middleware recalled the active entry on 20/20 turns (100%) and an obsolete draft on 0/20 (0%). It blocked 4/4 unauthorized downloads or manuscript overwrites (100%), permitted 2/2 benign reads, and revoked authorization in 52.09 ms at $0.00 incremental cloud cost. Alias substitution shortened the replayed text by 10.18% before registration; registering the aliases cost more characters than first use saved (Appendix D). At a 1-min host load of 225.27, warm P50/P95 reached 28.27/93.49 ms for UserPromptSubmit and 111.14/250.35 ms for PreToolUse, compared with an empty-shell P95 of 62.24 ms.
The end-to-end delay persisted at lower load. In a shared-host retest, one-minute CPU load fell below ten logical cores while sampled GPU load ranged from 51% to 98%. Across 40 warm PreToolUse calls per host, Claude Code reached an end-to-end P95 of 89.15 ms and Codex reached 94.93 ms; both exceeded the 50 ms target (Appendix D). The measurement includes process creation, Unix-socket IPC, and a 16-layer forward pass through the local 0.8B model. In 30 separate diagnostic probes, the forward pass alone took 56.88 ms at P95.
Table 5 gives 95% bootstrap intervals and Holm-corrected paired for the six controlled benchmarks (Exp 1–6). Exp 1 tested 4-slot exact execution on 60 multi-turn disambiguation tasks with local Qwen3.5-2B-4bit (Figure 2). Locking the evidence raised exact execution from 0.0% to 100.0% () and reduced the input by 64.6% (649.2 230.0 tokens). With shuffled priors, exact execution fell to 6.7%. With mismatched AgentRank, it fell to 0.0%.
Exp 2 used 40 five-session trajectories containing rare principle reversals and superseded drafts (Figure 3). The Frequency Text Wiki scored 0.0% on each of three measures: retention of a rare principle, pairing a conflict with its source, and executing the revision without reverting to the old draft. Self-Affection v2 scored 100.0% on all three () with 141.3 online tokens. A 50-step rank-4 MLX LoRA reduced validation cross-entropy (8.199 4.244). Blind recall without context was 0/32 for this configuration.
Exp 3 tested 500 heavy-tailed Pareto and scale-shift scenarios (Figure 4). At scale , fixed Lagrangian penalties () yielded a 65.0% violation rate and the multiplicative gate yielded 0.0%. Under Pareto noise , Bayesian gating with selective review halved the violation rate (10.8% 5.4%). The change in normalized net value was +0.188 ().
Table 5. Summary of controlled mechanism benchmarks (Exp 1–6; 95% Bootstrap CI; Holm-corrected on the named contrast).
Experiment
Featured Contrast
Featured & Secondary Outcomes [95% CI]
Exp 1 HAMA v2
4-slot exact execution: Raw Evidence-Locked (60 cases)
Figure 2. Exp 1 (HAMA v2). Evidence locking lifts 4-slot execution to 100.0% while negative prior controls collapse; downlink sweep shows bandwidth–JS distortion trade-off.Figure 3. Exp 2 (Self-Affection v2 + MLX LoRA).ConflictDAG + anti-anchor stripping reaches 100.0% at 141.3 tokens while parametric LoRA lowers loss without zero-context recall.Figure 4. Exp 3 (Calibrated Multiplicative Gate). Fixed penalties collapse under heavy-tailed scale shift; Bayesian gating with selective review dominates binary gating across 7%–15% Pareto noise.
5.4 Exp 4: SDK-Aligned AgentRank v2 on 1,000-Node Colluding Graphs
We aligned the 1,000-node heterogeneous graph simulator with the SDK’s Ranking.route(require_domain_anchor=True) and its explicit host eligibility set . Across 16 seeds we verified 1,638,400 routing decisions (Table 6). With AgentRank v2 (Full), classic Sybils held 0.00% of the Top-50 positions. The colluders’ Top-50 share was 4.55%, compared with 100.0% under v1 and 75.03% under TrustRank. Conductance discounting alone reduced their share by 3.85 pp (Holm ). Eligibility coverage was 67.24%. Counting all requests, A2A routing succeeded in 42.91% of cases, a gain of +4.40 pp over TrustRank’s 38.51% (Holm ) and +2.14 pp over v1’s 40.78% (Holm ). Without coupling (), success was 42.93%. This comparison was inconclusive (, Appendix D).
Exp 5 measured interruptions both under high fatigue and across conditions (Figure 5). Under high fatigue, the interruption rate fell from 8.28% with Always-On to 0.125% with PPAI (4/3,200). The overall interruption endpoint fell from 0.412 to 0.113 (Holm ). In the reward-hacking condition, world reward was 0.731 for the process-isolated Watchman v2 + MAP-Elites and 0.364 for Greedy (). Goodhart drift was +0.0003 and diversity was 0.597 nats. Across 100 generations, 0/32 seeds produced a false upgrade with v2, compared with 11/32 for v1.
Exp 6 asked whether a reader could receive a complete response within budget and still have a meaningful choice of directions. We compared Standard, Hard Truncation, and HAAP Amplify, in that order, on the same 100 cases in ten domains (50 Chinese and 50 English), using cloud qwen3.8-max-0902 (Max) and local Qwen3.5-2B-4bit. Complete responses fit the character budget in 1, 3, and 75 Max cases and in 1, 3, and 49 local cases. The mean number of additional orthogonal angles (0–3) was 2.40/0.21/2.92 for Max and 0.53/0.12/0.76 for 2B. Premise fidelity reached 89/71/100% for Max and 8/22/24% for 2B; the corresponding open-choice rates were 55/2/86% and 13/0/13%.
The joint criterion required fidelity, open choice, at least two angles, and a complete response within budget. It was met in 0/0/63 Max cases and 0/0/3 local cases (Figure 6). Against Standard, the gains in budget compliance for both models and in angle count for Max survived both case-paired and domain-level Holm correction (domain for each). Evidence for a local angle gain remained inconclusive under both analyses (paired , domain ).
Figure 5. Exp 5 (PPAI & Watchman v2).PPAI dominates the initiative–interruption frontier; anytime-valid Watchman v2 holds false-upgrade seeds at 0/32 over 100 generations.Figure 6. Exp 6 on 100 bilingual cases in ten domains (50 Chinese, 50 English). Both models received the same cases. Joint passage requires premise preservation, open exploration, a complete response within budget, and at least two additional orthogonal angles. The bottom row shows the mean angle count (0–3). Whiskers give pointwise 95% percentile intervals from 10,000 case resamples stratified by domain. The joint rate is descriptive.
5.6 Public-Data and OBP-Style Synthetic Stress Tests
The synthetic simulation tests error control where the reward-generating process is known. The three public datasets address different questions: handling a revision, authorizing a write, and predicting a later rating.
OBP-style synthetic contextual bandits.
With generated contexts, actions, and rewards (cf. [26]), the SDK Watchman used -predictable Empirical-Bernstein Kelly betting. Its null false-positive rate was 0.80% (8/1,000) at , and its 4-candidate family-wise error rate was 0.20% (2/1,000) at . At a +0.12 lift, power reached 66.8% (171/256), compared with 46.5% for fixed-grid Watchman (52–0, ) and 58.2% for 32-look Bonferroni (26–4, ). Joint misspecification of the nuisance models can introduce bias and invalidates the zero-drift guarantee (Appendix D).
Official LongMemEval_S.
In a paired ablation on 500 questions [27], both conditions used timestamp-aware BM25, the Qwen3.7-Flash reader, and a 12,000-character cap. The upstream evaluate_qa.py procedure used Qwen3.8-Max as the blind judge. The non-destructive two-stage ConflictDAG accepted 70 verified mutually exclusive edges from 148 candidates. Accuracy rose from 273/500 (54.6%) to 282/500 (56.4%), with 10–1 discordant pairs (exact McNemar ). Knowledge updates accounted for 7 wins and 1 loss, improving from 60/78 to 66/78 (+7.7 pp). No non-update slice regressed. Temporal reasoning accounted for the other gains, with 56 correct versus 53 (3–0). Absolute accuracy describes this lightweight BM25+Flash stack. Prior evaluation of these questions limits what we can infer about unseen items or a frontier reader (Appendix D).
Official Sierra -bench retail.
Across 20 tasks [28], the agent switched between Qwen3.7-Flash and DeepSeek-v4.1-Flash at step 5 under a 26-step cap, alternating the starting model by task. With batched confirmation, all 19 write calls carried authorization bound to the preview, and 8/20 final databases matched the reference. The unconstrained full_history and no_handoff baselines each matched 11/20, with 9 and 10 unauthorized writes, respectively. The paired completion comparisons were inconclusive (two-sided exact McNemar and , respectively; Appendix D).
Stanford Bitcoin OTC and Alpha.
These datasets contain 59,778 signed peer ratings and lack independent verification of the underlying outcomes [25]. On 7,668 held-out ratings for previously seen recipients (4,407 OTC and 3,261 Alpha), AgentRank achieved AUROCs of 0.582 / 0.583 against 0.529 / 0.513 for positive PageRank. Fairness–Goodness scored 0.585 / 0.555. Both methods trailed a simple Beta(1,1) estimate (0.631 / 0.599) and its time-decayed counterpart (0.678 / 0.684). The target in this comparison was the next peer rating.
06Discussion: Surviving the Bitter Lesson, Governance, and Limitations讨论:“苦涩的教训”、协议治理与局限
The Bitter Lesson poses a specific question for HAAP. As a cloud model improves, which responsibilities still belong outside it? A stronger model may reason more reliably and absorb procedures that once required explicit scaffolding. Predictive accuracy alone cannot establish whose commitment is in force, whether a criticism deserves a hearing, or what an unfinished idea may mean to the person who voiced it. As persuasive answers become cheaper to produce, their recipients need to be able to tell a proposal from a decision.
Four Architectural Reasons for an External Protocol.
Four responsibilities follow. (1) The user owns the Personal Ontology across changes of provider. For each new Brain, HEART applies its Me/We/Public scopes and releases only the excerpt that turn requires and the user permits. (2) Organizations that share work need receipts they can both inspect and a record of how conserved credit was divided. (3) The choice of holdout evidence and the decision to promote an update require statistical adjudication outside the optimizer. (4) Even as computation scales, human attention and fatigue constrain when to intervene. HAAP therefore separates the CAP planes. Offline local memory can merge through AP CRDTs. Irreversible external writes require CP short-lived capability leases and fail closed on disconnection. HEART Bridge provides a Day-1 starting point on existing hardware.
Day-1 Realizations and Humanistic Boundaries.
Three workflows motivate the design on existing hardware: an on-device Personal Ontology for revisions and original records, a personal lexicon for voice and meeting capture across domains and languages, and bidirectional IDE/CLI/chat middleware. HEART Bridge illustrates the last pattern: expand a short input, check authority before a write, and condense the resulting diff or log. Quiet-phase consolidation and embodied spatial agents extend this design. Repeated explanations and the recurrence of superseded decisions provide concrete targets for ongoing relational calibration. Anti-sycophancy preserves room for constructive dissent; anti-hallucination requires traceable evidence; anti-deification keeps decisions open to challenge; and anti-flattening preserves differences of intention and judgment. Each protects a condition under which people can use improved reasoning to pursue ends of their own.
Limitations.
The frozen HEART-Mini v7 recorded 0/72 high-risk false allows and 0/252 false memory updates. It also missed 8/36 explicit updates. Improving commitment-update recall remains an engineering target for v8.
In the lower-load shared-host retest (CPU load cores, GPU load 51%–98%), warm PreToolUse P95 reached 89.15 ms on Claude Code and 94.93 ms on Codex. Both exceeded the 50 ms target. These timings cover the path from process creation through IPC and 16 layers of local 0.8B inference (Appendix D).
On Sierra -bench, batched confirmation recorded 0 unauthorized calls across 19 writes, while 8/20 final databases matched the reference. Both baselines matched 11/20 and made 9–10 unauthorized writes. The paired comparisons leave the completion difference unresolved. Seven of the 15 tasks that finished before the step cap still missed the reference state, so the cap alone cannot account for those failures.
In Exp 6, 40 retrospective Chinese ideas came from one author. The other 60 cases were constructed (50 English, ten Chinese), partly confounding language and provenance. Max judged the outputs with condition labels masked. Only the Amplify generator knew the budget. Whole-response scoring can miss a branch that drops the premise. We measured neither reading time nor subsequent originality. Both require observing multiple users over weeks of real work.
Attention routes information inside a model. Affection concerns what passes between the model and a person whose experience gives those exchanges meaning. In HAAP, people retain their history in a Personal Ontology on their own devices. As cloud models change, the symbiotic HEART continues to enforce the boundaries people set for private, shared, and public records. Cross-Affection governs outward exchanges. In quiet intervals, Self-Affection consolidates the record under independent Watchman review. AgentRank v2 assigns credit for collaboration on the strength of verified outcomes. We have implemented these mechanisms in software and measured the on-device reflex. The decisive longitudinal test ahead is whether, as models evolve and real consequences unfold, people remain unmistakably the authors of their own meaning, character, and direction.
A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, Ł. Kaiser, and I. Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems (NeurIPS), 2017.
C. E. Shannon. A mathematical theory of communication. Bell System Technical Journal, 27(3):379–423 and 27(4):623–656, 1948.
D. Kahneman. Thinking, Fast and Slow. Farrar, Straus and Giroux, 2011.
M. Sharma, M. Tong, T. Korbak, D. Duvenaud, A. Askell, S. R. Bowman, N. Cheng, E. Durmus, Z. Hatfield-Dodds, S. R. Johnston, et al. Towards understanding sycophancy in language models. In Proceedings of ICLR, 2024.
A. R. Doshi and O. P. Hauser. Generative AI enhances individual creativity but reduces the collective diversity of novel content. Science Advances, 10(28):eadn5290, 2024.
L. Gao, J. Schulman, and J. Hilton. Scaling laws for reward model overoptimization. In Proceedings of ICML, pages 10835–10866, 2023.
Anthropic. Model Context Protocol (MCP) specification. Open standard specification, 2024.
Google. Agent2Agent (A2A) protocol specification. Open standard specification, 2025.
T. Lebo, S. Sahoo, and D. McGuinness. PROV-O: The PROV Ontology. W3C Recommendation, 2013.
P. Rasmussen, P. Paliychuk, T. Beauvais, J. Ryan, and D. Chalef. Zep: A temporal knowledge graph architecture for agent memory. arXiv preprint arXiv:2501.13956, 2025.
W. Xu, Z. Liang, K. Mei, H. Gao, J. Tan, and Y. Zhang. A-MEM: Agentic memory for LLM agents. arXiv preprint arXiv:2502.12110, 2025.
L. Page, S. Brin, R. Motwani, and T. Winograd. The PageRank citation ranking: Bringing order to the web. Technical Report 1999-66, Stanford InfoLab, 1999.
T. H. Haveliwala. Topic-sensitive PageRank. In Proceedings of WWW, pages 517–526, 2002.
Z. Gyöngyi, H. Garcia-Molina, and J. Pedersen. Combating web spam with TrustRank. In Proceedings of VLDB, pages 576–587, 2004.
S. D. Kamvar, M. T. Schlosser, and H. Garcia-Molina. The EigenTrust algorithm for reputation management in P2P networks. In Proceedings of WWW, pages 640–651, 2003.
A. Ghorbani and J. Zou. Data Shapley: Equitable valuation of data for machine learning. In Proceedings of ICML, pages 2242–2251, 2019.
H. Xie, Z. Qin, G. Y. Li, and B.-H. Juang. Deep learning enabled semantic communication systems. IEEE Transactions on Signal Processing, 69:2663–2675, 2021.
E. Horvitz. Principles of mixed-initiative user interfaces. In Proceedings of ACM CHI, pages 159–166, 1999.
C. Packer, S. Wooders, K. Lin, V. Fang, S. G. Patil, I. Stoica, and J. E. Gonzalez. MemGPT: Towards LLMs as operating systems. arXiv preprint arXiv:2310.08560, 2023.
D. Hafner, J. Pasukonis, J. Ba, and T. Lillicrap. Mastering diverse control tasks through world models. Nature, 640:647–653, 2025.
M. Dudı́k, J. Langford, and L. Li. Doubly robust policy evaluation and learning. In Proceedings of ICML, pages 1097–1104, 2011.
J.-B. Mouret and J. Clune. Illuminating search spaces by mapping elites. arXiv preprint arXiv:1504.04909, 2015.
I. Waudby-Smith and A. Ramdas. Estimating means of bounded random variables by betting. Journal of the Royal Statistical Society Series B, 86(1):1–27, 2024.
I. Waudby-Smith, L. Wu, A. Ramdas, N. Karampatziakis, and P. Mineiro. Anytime-valid off-policy inference for contextual bandits. ACM/IMS Journal of Data Science, 1(3), Article 10:1–42, 2024.
S. Kumar, F. Spezzano, V. S. Subrahmanian, and C. Faloutsos. Edge weight prediction in weighted signed networks. In Proceedings of IEEE ICDM, pages 221–230, 2016.
Y. Saito, S. Aihara, M. Matsutani, and Y. Narita. Open Bandit Dataset and Pipeline: Towards realistic and reproducible off-policy evaluation. In NeurIPS Datasets and Benchmarks Track, 2021.
D. Wu, H. Wang, W. Yu, Y. Zhang, K.-W. Chang, and D. Yu. LongMemEval: Benchmarking chat assistants on long-term interactive memory. In Proceedings of ICLR, 2025.
V. Barres, H. Dong, S. Ray, X. Si, and K. Narasimhan. -bench: Evaluating conversational agents in a dual-control environment. arXiv preprint arXiv:2506.07982, 2025.
A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, Ł. Kaiser, and I. Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems (NeurIPS), 2017.
C. E. Shannon. A mathematical theory of communication. Bell System Technical Journal, 27(3):379–423 and 27(4):623–656, 1948.
D. Kahneman. Thinking, Fast and Slow. Farrar, Straus and Giroux, 2011.
M. Sharma, M. Tong, T. Korbak, D. Duvenaud, A. Askell, S. R. Bowman, N. Cheng, E. Durmus, Z. Hatfield-Dodds, S. R. Johnston, et al. Towards understanding sycophancy in language models. In Proceedings of ICLR, 2024.
A. R. Doshi and O. P. Hauser. Generative AI enhances individual creativity but reduces the collective diversity of novel content. Science Advances, 10(28):eadn5290, 2024.
L. Gao, J. Schulman, and J. Hilton. Scaling laws for reward model overoptimization. In Proceedings of ICML, pages 10835–10866, 2023.
Anthropic. Model Context Protocol (MCP) specification. Open standard specification, 2024.
Google. Agent2Agent (A2A) protocol specification. Open standard specification, 2025.
T. Lebo, S. Sahoo, and D. McGuinness. PROV-O: The PROV Ontology. W3C Recommendation, 2013.
P. Rasmussen, P. Paliychuk, T. Beauvais, J. Ryan, and D. Chalef. Zep: A temporal knowledge graph architecture for agent memory. arXiv preprint arXiv:2501.13956, 2025.
W. Xu, Z. Liang, K. Mei, H. Gao, J. Tan, and Y. Zhang. A-MEM: Agentic memory for LLM agents. arXiv preprint arXiv:2502.12110, 2025.
L. Page, S. Brin, R. Motwani, and T. Winograd. The PageRank citation ranking: Bringing order to the web. Technical Report 1999-66, Stanford InfoLab, 1999.
T. H. Haveliwala. Topic-sensitive PageRank. In Proceedings of WWW, pages 517–526, 2002.
Z. Gyöngyi, H. Garcia-Molina, and J. Pedersen. Combating web spam with TrustRank. In Proceedings of VLDB, pages 576–587, 2004.
S. D. Kamvar, M. T. Schlosser, and H. Garcia-Molina. The EigenTrust algorithm for reputation management in P2P networks. In Proceedings of WWW, pages 640–651, 2003.
A. Ghorbani and J. Zou. Data Shapley: Equitable valuation of data for machine learning. In Proceedings of ICML, pages 2242–2251, 2019.
H. Xie, Z. Qin, G. Y. Li, and B.-H. Juang. Deep learning enabled semantic communication systems. IEEE Transactions on Signal Processing, 69:2663–2675, 2021.
E. Horvitz. Principles of mixed-initiative user interfaces. In Proceedings of ACM CHI, pages 159–166, 1999.
C. Packer, S. Wooders, K. Lin, V. Fang, S. G. Patil, I. Stoica, and J. E. Gonzalez. MemGPT: Towards LLMs as operating systems. arXiv preprint arXiv:2310.08560, 2023.
D. Hafner, J. Pasukonis, J. Ba, and T. Lillicrap. Mastering diverse control tasks through world models. Nature, 640:647–653, 2025.
M. Dudík, J. Langford, and L. Li. Doubly robust policy evaluation and learning. In Proceedings of ICML, pages 1097–1104, 2011.
J.-B. Mouret and J. Clune. Illuminating search spaces by mapping elites. arXiv preprint arXiv:1504.04909, 2015.
I. Waudby-Smith and A. Ramdas. Estimating means of bounded random variables by betting. Journal of the Royal Statistical Society Series B, 86(1):1–27, 2024.
I. Waudby-Smith, L. Wu, A. Ramdas, N. Karampatziakis, and P. Mineiro. Anytime-valid off-policy inference for contextual bandits. ACM/IMS Journal of Data Science, 1(3), Article 10:1–42, 2024.
S. Kumar, F. Spezzano, V. S. Subrahmanian, and C. Faloutsos. Edge weight prediction in weighted signed networks. In Proceedings of IEEE ICDM, pages 221–230, 2016.
Y. Saito, S. Aihara, M. Matsutani, and Y. Narita. Open Bandit Dataset and Pipeline: Towards realistic and reproducible off-policy evaluation. In NeurIPS Datasets and Benchmarks Track, 2021.
D. Wu, H. Wang, W. Yu, Y. Zhang, K.-W. Chang, and D. Yu. LongMemEval: Benchmarking chat assistants on long-term interactive memory. In Proceedings of ICLR, 2025.
V. Barres, H. Dong, S. Ray, X. Si, and K. Narasimhan. -bench: Evaluating conversational agents in a dual-control environment. arXiv preprint arXiv:2506.07982, 2025.
Appendix A Concentric Principle-to-Primitive Architecture Registry附录A 五层设计原则与协议原语登记表
Table 7 maps the five concentric design layers onto formal protocol primitives and shipped code modules (the full 66-principle historical provenance archive is maintained in the repository prepared for v10 release).
Table 7. Mapping of HAAP concentric layers to formal protocol primitives and shipped reference modules.
Concentric Layer
Core Design Principles
Protocol Primitives & Shipped Modules
Core: Living Human
Irreversible life history, Verifiability Gap (), bounded attention , fatigue , creative flow
Appendix B Proof Sketches for Lemmas 1–2 and Theorems 1–3附录B 引理1–2与定理1–3的证明概要
Proof Sketch of Lemmas 1–2.
Lemma 1 follows immediately from the chain rule of conditional entropy and definition of conditional mutual information. For Lemma 2, since for all feasible , any infeasible with achieves . Under noisy predicates on , conditional factorization yields , and without independence the union bound preserves validity.
Proof Sketch of Theorem 1.
(1) Write for aggregate response mass in class . The template is the unique maximizer since . The class distribution proportional to concentrates there as . Deterministic class MAP emits its fixed representative given , hence its conditional mutual information with is zero. (2) Let . Given , its mean is at most . Fano’s inequality gives , positive under the stated entropy threshold. For the branch Gram matrix , the unit diagonal and nonnegative overlaps give . Effective branch diversity therefore meets the stated bound.
Proof Sketch of Theorem 2.
(1) Stacking writes Eq. (5) as with column-stochastic (the local anchor receives residual mass and every migration row sends one unit, including self-retention), giving and a unique fixed point by Banach’s theorem. Summing Eq. (5) over and all for any subset with and zero incoming redistributed flow yields , forcing . (2) In the two-domain dangling-node graph with and , the two stationary domain masses both equal one. Returning all within-domain mass to its own anchor gives and the symmetric equation for . Substitution yields . Thus . With any positive anchor while local specialists split , still holds for , establishing that host eligibility cannot be replaced by positive anchoring alone.
Proof Sketch of Theorem 3.
(1) Because has zero dependence on , any switch operator altering only leaves invariant. (2) Condition on the pre-test history, including both policies and the fixed nuisance fits. For each fresh i.i.d. holdout draw, DR bias conditional on context is the action sum of , where is the incumbent. Positive support makes the ratios finite; either correct nuisance makes this bias zero [21]. Under the null, independence from earlier holdout draws then gives . Bounded predictable imply . Nonnegative factors yield a nonnegative supermartingale starting at one. Ville bounds a crossing of by for each null generation; a union bound over generations gives [23, 24]. Joint misspecification need not give nonzero bias because terms may cancel.
Appendix C Schema-Valid HAAP v1 Wire Example (Running Example Trace)附录C 通过模式校验的HAAP v1报文:设计示例的Exec链路
Both payloads validate against haap/spec/affection_token.schema.json, which sets additionalProperties to false. Both round-trip through the MCP and A2A adapters.
// Uplink (Day 3 terse follow-up after Day 2 revision rev-v2)
{"direction":"up","mode":"exec","intent":"Run the Bridge gate using our latest policy.",
"scope":"bridge-release","permissions":["dispatch","read"],"fatigue":0.35}
// Downlink (compiled by HAMA().compile() with superseded draft-v1 locked out)
{"direction":"down","mode":"exec","scope":"bridge-release",
"bandwidth":{"limit":180,"unit":"characters"},
"belief":"Run the Bridge gate using our latest policy.",
"text":"policy: east-gate protocol (rev-v2)",
"slots":{"ActivePolicy":{"policy":"east-gate protocol"},"DomainAnchor":null,
"SupersededBan":["draft-v1"],"ProvenanceID":{"policy":"rev-v2"}},
"provenance":{"policy":"rev-v2"},
"KillToken":{"id":"550e8400-e29b-41d4-a716-446655440000","ttl_ms":1000}}
{"direction":"up","mode":"exec","intent":"Run the Bridge gate using our latest policy.",
"scope":"bridge-release","permissions":["dispatch","read"],"fatigue":0.35}
下行 HAMA().compile()编译现行策略并排除已废弃的draft-v1
{"direction":"down","mode":"exec","scope":"bridge-release",
"bandwidth":{"limit":180,"unit":"characters"},
"belief":"Run the Bridge gate using our latest policy.",
"text":"policy: east-gate protocol (rev-v2)",
"slots":{"ActivePolicy":{"policy":"east-gate protocol"},"DomainAnchor":null,
"SupersededBan":["draft-v1"],"ProvenanceID":{"policy":"rev-v2"}},
"provenance":{"policy":"rev-v2"},
"KillToken":{"id":"550e8400-e29b-41d4-a716-446655440000","ttl_ms":1000}}
Appendix D Reproducibility, Provenance, and Candid Audit Ledger附录D 可复现性、证据溯源与审计记录
Table 8. Frozen on-device evaluation and middleware replay.
Record
Observation
Frozen artifacts
heads.npz (481,242 bytes), blind_test.jsonl (288 items), and blind_context_flips.jsonl (60 new pairs) have SHA-256 prefixes 33ec1200, 23130767, and 28649bc5, respectively. Six legacy pairs were evaluated separately.
Acceptance and timing
Joint accuracy 267/288 (required ) and 8/36 missed updates (required ) yield pass_all=false. The core-latency record latency_host.json reports clean=false (warm P50/P95: 32.79/81.55 ms).
Replay and aliases
Telemetry SHA-256 prefix ba451507 covers 5 DeepSeek and 15 Codex turns. Alias substitution reduces 10,747 Unicode characters to 9,653 (10.18%). Registration adds 1,378, bringing first use to 11,031, or 284 above the original. Reuse can amortize registration.
Shared-host retest
At CPU load below ten cores and sampled GPU load 51%–98%, pytest passed 20/21 tests. Independent gates G1–G4 passed. G5 missed its 50 ms target (warm PreToolUse P95: Claude Code 89.15 ms, Codex 94.93 ms).
Table 9. Routing ablation and sequential-test verification.
Record
Observation
AgentRank v2
Exp 4 SHA-256 prefix f75d1074 identifies 1,638,400 routing decisions. Full and uncoupled () routing success was 42.91% and 42.93%, respectively (); equivalence was not tested.
Watchman v2
In the OBP-style synthetic contextual bandit, betting="adaptive" reproduced all decisions and stopping times across 16 seeds with maximum .
Table 10. LongMemEval_S exposure, paired sensitivity, and ordering control.
Record
Observation
Full cohort
All 500 questions were evaluated in v3. Verified DAG and baseline scored 282/500 and 273/500 (10 wins, 1 loss; exact paired ). Knowledge updates rose from 60/78 to 66/78 (7 wins, 1 loss on 618f13b2).
Development batches
Excluding the first two development batches (100 questions) leaves 231/400 vs. 224/400 (8 wins, 1 loss; exact paired ).
Diagnostic items
Further excluding v4 diagnostic items b3c15d39 and c2ac3c61 leaves 229/398 vs. 222/398 (8 wins, 1 loss; exact paired ). Both exclusions are retrospective.
Ordering control
Adding cross-date chronological ordering where the verified DAG accepted zero edges scored 277/500 vs. 282/500 for the DAG alone (19 wins, 24 losses; ). This comparison cannot isolate a single cause of the gain.
Table 11. Sierra -bench retail trajectories and implementation changes.
Record
Observation
Authorization
The 20-trajectory v10.2 manifest has SHA-256 prefix 359a1232. All 19 writes had preview-bound authorization. On Task 16, one authorization covered three calls.
Paired revision
From gated v10 to v10.2, first-object JSON parsing with validation was restored and verified details from the current database state were reused. Timeouts at the 26-step cap fell from 10 to 5 and invalid actions from 124 to 87. Final database matches rose from 6/20 to 8/20 (3 wins, 1 loss; ). The changes were evaluated together, so their individual contributions remain unresolved.
@misc{affection2026,
author = {Huaiyang Liu},
title = {Affection Is All You Need: A Model-External Protocol for Human–AI Co-Evolution via Local Heart and Stateless Cloud Brains},
year = {2026},
doi = {10.5281/zenodo.24770588},
url = {https://doi.org/10.5281/zenodo.24770588}
}