v13 · November 28, 20262026年11月28日 · DOI 10.5281/zenodo.24770588

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以本地之心与无状态云端大脑,构建人机共演的模型外协议

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模型之外的人机共演协议

Lingji ⇄ Local HEART ⇄ HAAP / PPAI ⇄ Stateless Cloud Brain ⟶ Five-Way Ecology灵机 Lingji ⇄ 本地之心 HEART ⇄ HAAP / PPAI ⇄ 无状态云端大脑 ⟶ 五向生态

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 将归属于人的“本地之心”与可随时替换的无状态“云端大脑”解耦:以个人本体承载非理性的人文情感与生命底色,以双向协议放大人的灵机光辉,以离线反思与可验证的交付信誉支撑长久共演。

Core Architecture · §1 & §3全篇核心架构 · §1 & §3

DOWNLOADS论文资料包 · v13

Save a local copy保存至本地

AbstractAbstract / 摘要

Attention Is All You Need showed how a network can route information among Subword Tokens using softmax⁡(QK⊤/dk)V. 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, Affection⁡(It;Ωt,Ct,ℱt) uses HAMA v2, the fatigue-aware PPAI runtime, and structured Affection Tokens (a↑/a↓) 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 rtver 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% (p=0.0117). 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 τ2-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 (p=0.00027). 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》给出了在网络内部为子词分配权重的通用机制softmax⁡(QK⊤/dk)V。此后,云模型的能力迅速提高,人的工作记忆和注意力依然受到生理条件的约束。人与无状态模型协作时,三类问题反复出现。换一个模型,已经作废的草稿可能重新成为依据。一个冗长而惯常的回答,既会增加阅读负担,也可能取代尚待探索的想法。在重尾激励下,代理指标或一组虚假身份甚至可能左右系统的行动。

我们提出模型外协议Affection,与模型内的Attention相配合。人本身就是完整的碳基生命。每个人在自己的设备上持有个人本体(Personal Ontology),按隐私范围整理不断积累和修订的生活记录。本地共生之心(HEART)在个人本体内承担体外自主调节功能,每轮只向可替换的无状态云端大脑提供完成任务所需、且经本人授权的最小片段。人机情智协议(HAAP)的内核包含三种操作。对外交互时,Affection⁡(It;Ωt,Ct,Ft)借助HAMA v2、感知疲劳的PPAI和结构化情智令牌a↑/a↓,区分已经定下的指令(Exec)与仍可探索的想法(Amplify)。睡眠或清醒时的安静间歇都可用于向内整理:递归自我情智(RSA)依据核验回执rtver梳理记录,重新审视未完成的想法,由独立的Watchman进程审查更新。多头协作覆盖五类关系,包括人机交互、由AgentRank v2支持的智能体间协作、人际沟通,以及人和智能体各自与物理世界的交互。

两条引理和三条定理给出了保护原始前提、判定路由资格、保持本地投影不变和控制序贯误差的条件。端侧的HEART-Mini v7采用冻结的0.8B模型,在第16层提前退出,由470.0KiB的四头耦合器作出联合判断。联合准确率为92.71%(267/288)。保持原话、改变情境时,模型在91.67%的样本对中作出了预期的判断变化(55/60)。高风险操作误放0/72,记忆误写0/252。热态核心推理的延迟中位数为32.79ms,云端费用为0.00美元。HEART Bridge回放20轮历史开发与研究工作时,现行条目召回20/20,旧稿召回0/20。系统拦截了4/4次越权操作,KillToken撤权耗时52.09ms。

在LongMemEval_S的500题中,ConflictDAG将准确率从54.6%提高到56.4%(p=0.0117),知识更新由60/78提高到66/78,其余题目均未出现原先答对、加入机制后答错的情况。在OBP风格的合成上下文老虎机上,自适应Watchman v2检验四个候选时的族错误率为0.20%。模拟增益为+0.12时,自适应方法与固定网格的检验功效分别为66.8%和46.5%。在Sierra τ²-bench零售任务中,越权写入为0/19,最终数据库匹配8/20。两条无约束基线各匹配11/20,分别有9次和10次越权写入。

在1,000个节点的图上,AgentRank v2排名前50的节点中,经典女巫节点占0.00%,合谋节点占4.55%。其路由成功率比TrustRank高4.40个百分点(p=0.00027)。完整的复现与审计记录见附录D。代码、协议模式和核验清单已备妥,拟在wyonliu/affect.im发布。

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:

Attention⁡(Q,K,V)=softmax⁡(QK⊤dk)V.(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 1/dk stabilizes the variance of dot products, and row-wise softmax normalizes weights over visible positions. Three problems arise beyond that boundary:

  1. 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.

  2. Gradient-only scaling ⟹ overload and premature homogenization. Scaling by dk regulates computation inside the model. Without a channel regulator Ct=(Bt,ft,flowt), 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].

  3. 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 ℱt, 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.
Structural Axis Attention (Intra-Model, 2017) Affection (Model-External, HAAP)
Core Bottleneck Sequence length O(n2d) & gradient stability inside silicon Finite human bandwidth Bt, fatigue ft, Verifiability Gap ℳ\𝒱, and cross-model amnesia
Design Kernel Attention⁡(Q,K,V)=softmax⁡(QK⊤dk)V Affection⁡(I;Ω,C,ℱ)∈arg⁡max⁡a∈ℱ(Ω)[ℛ(a;I,Ω)−λ(C)𝒟(a;C)]
Gating Law Soft normalization (softmax): normalizes visible token weights Non-compensable ℱ=∏j𝕀[ϕj≥τj]: zero-veto hard boundaries (provenance, Watchman, 1s KillToken)
Capacity Scaling Static feature dimension dk Living channel Ct=(Bt,ft,flowt): Outward Modulation (HAMA v2) and Fatigue-Aware Restraint (PPAI)
State Ownership Ephemeral context window bound to one provider User-owned Personal Ontology (ℒt⊂Ωt) + local HEART; stateless cloud brains are hot-swappable
Self / Cross Dual Self-Attention × Cross-Attention Self-Affection (inward reflective digestion / RSA) × Cross-Affection (outward human/world coupling)
Multi-Head Form Multi-Head Attention (parallel subspaces) 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:

  1. Core — The Living Human: Irreversible life history, bounded attention Bt, fatigue ft, and creative flow flowt.

  2. Layer 1 — Personal Ontology and Local Heart: The user’s ontology organizes the local ledger ℒt 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.

  3. 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 Bt, and enforces fatigue silence and fail-closed write gating.

  4. 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.

  5. 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.

2017年,Transformer给出了一个通用的计算规则,用于在网络内部的子词之间传递信息。[1]

Attention⁡(Q,K,V)=softmax⁡ ⁣(QK⊤dk)V.(0)

此后,云模型越来越善于推理。读答案的人依然只有有限的工作记忆,疲劳时注意力也会减弱。[3]一个新想法最初说出口时,可能只是几句犹疑的话。本文沿用Affection体察他人的古典含义:系统应理解一个人所处的情境,顾及对方此刻能接收多少信息,并对介入的后果负责。模型之外的交流有两个方向。人做决定时,也许只需读到模型输出中的一小部分。反过来,短短几句话里流露的预见、直觉或关切,也许值得展开细想。

本地之心与云端大脑的分工

哪些经历值得记录,哪些承诺需要修订,哪些内容可以分享,都由本人决定。个人本体在本人设备上整理这段历史,也保留偏好的变化。在个人本体内,共生之心(HEART)只选取本轮推理必需、且经授权的最小片段交给可替换的无状态云端大脑,再按本人能投入的阅读时间返回可查验的证据。写入须经本地授权,决定权在用户手中。端侧反射的延迟目标低于50ms。核心推理的热态P50实测为32.79ms,共享主机上完整钩子调用的P95为89.15–94.93ms(附录D)。

1.1 缺少外部协议时的三类系统失效

式(0)解决的是网络内部的路由问题。1/dk稳定点积的方差,softmax逐行归一化可见位置的权重。人与模型协作时,还有三类问题需要处理。

  1. 上下文窗口无状态。 从Gemini、Codex、Claude、DeepSeek或端侧设备切换到另一个工具时,新会话可能丢失最近的决定。即使把聊天记录手动复制过去,旧稿也可能比取代它的那句修订更显眼。
  2. 缩放只调节模型内部的计算。 dk调节梯度。缺少Ct=(Bt,ft,flowt)这样的信道调节器,系统便可能以同一种方式回应正在专心思考的人和已经读不动的人。常见模板或迎合式赞同会挤掉尚未成形的直觉,也容易使不同人的作品渐趋相似。[4,5]
  3. 软约束允许得分相抵。 采用软加权和固定标量罚项时,某一项的高分足以抵消另一项的违规。缺少硬边界Ft,重尾代理奖励就可能使失信行为获益。[6]在开放的智能体网络里,频繁调用、彼此好评也可能获得奖励,即使双方都没有交付经核验的结果。表1并列比较这两类路由问题。
表1 双生范式。模型内Attention与模型外Affection的架构互补性
结构轴Attention(模型内,2017)Affection(模型外,HAAP)
核心瓶颈序列开销O(n2d)与硅内梯度稳定性人的有限带宽Bt、疲惫ft、可验证性缺口M∖V与跨模型失忆
设计内核Attention⁡(Q,K,V)=softmax⁡(QK⊤/dk)VAffection⁡(I;Ω,C,F)∈arg⁡max⁡a∈F(Ω)[R(a;I,Ω)−λ(C)D(a;C)]
门控法则softmax对可见令牌权重作软归一化不可补偿的F=∏jI[ϕj≥τj];溯源、Watchman与1秒KillToken任一否决即阻断
容量缩放静态特征维度dk生命通道Ct=(Bt,ft,flowt);外向调制(HAMA v2)与疲惫感知克制(PPAI)
状态所有权依附单一提供商的临时上下文用户自持个人本体Lt⊂Ωt与本地HEART,可热切换无状态云脑
自身与交互自注意力×交叉注意力自我情智(内向反思整合/RSA)×交互情智(与人和世界向外耦合)
多头形式多头注意力,并行子空间多头情智;人—AI、智能体—智能体(AgentRank)、人—人、人—世界、智能体—世界

1.2 以人为起点的五层架构与设计示例

生命经历、可验证性缺口与建设性异议

模型可以从一个人讲述的失去中学习。承受损失、还要带着这段经历生活下去的,是讲述它的人。可验证性缺口M=V⊔U使这一区别更清楚。在可以检验的范围V内,理性推理提高了可靠性和安全性的下限:推导可以复核,主张可以溯源,延迟和路由准确率可以测量。单独优化代理指标,仍可能陷入局部僵局,甚至诱发奖励投机。人也可能看出,某件没有被指标计入的事情值得去做。意义与原创性的上限因此保持开放。

本文用「灵机」(Lingji,U)指根植于个人经历的判断。情感让人察觉另一个人可能失去什么,初心让人记得当初为什么要做这件事。远见和直觉使人看见陌生的可能,体察人情则有助于把握行动的时机与分寸。模型可以提出一个类比或反例,激发新的联想。这个联想是否切中原意,仍由当事人判断。可信的伙伴应当能提出异议,当事人也应当能查验依据、拒绝行动,并带走自己的记录。这就是「验证理性,保护灵机」在协议中的含义。

从人如何与系统协作来看,AI 1.0指确定性工具,AI 2.0指无状态助手,AI 3.0指自主执行任务的智能体。我们用AI 4.0指称一种设想:即使底层模型更替,人与系统仍可在持续协作中共同演进。在HAAP中,HEART在本地保存当事人已确认的决定,HAMA v2调节两个方向的交流。下行回复在阅读预算内呈现与决定有关的信息,标明不确定性,也保留可供追查的推理和来源。上行时,同样简短的一句话可能定下一件事,也可能打开一个问题。前者须核对现行记录,后者须给不同解释留出余地,直到当事人作出选择。

以人为核心的五层

一轮文字交流只能传达当时情境的一小部分。受这一香农意义上的信道瓶颈约束,单靠报文格式难以保护人的灵机。HAAP从人出发,把这些职责分配到五个层次。

  1. 核心 · 活生生的人。 不可逆的生命史,有限注意力Bt、疲惫ft与创造心流flowt。
  2. 第一层 · 个人本体与本地之心。 用户持有的个人本体将本地账本Lt中的记录按Me、We和Public三种作用域组织。HEART在个人本体内逐次核对访问权限。更换云服务商时,原始私密记录仍保存在用户设备上。规划中的端侧设备包括可穿戴的Nano(0.1–0.5B)、手机或笔记本上的Mini(1–4B)、个人主机上的Pro(8–80B),以及未来的脑机接口。用户可以带走全部个人状态。
  3. 第二层 · 对外交互。 HAAP、PPAI与HAMA v2把简短输入转成有据可查的Exec指令,或允许多种解释的Amplify请求。返回的云端回答须控制在Bt以内。用户疲劳时,系统保持静默;写入缺少授权时,系统拒绝执行。
  4. 第三层 · 向内整理。 在睡眠、独处或离线的间歇,Self-Affection v2通过ConflictDAG核对冲突的修订,从现行上下文中移除旧稿。未定的想法可在隔离的W3沙箱里继续探索,候选更新须经独立的Watchman v2进程检验。
  5. 第四层 · 外部协作。 个人智能体同其他智能体或物理系统合作时,AgentRank v2依已核验结果路由并结算守恒的溯源信用,调用量和互赞不作为结果凭据。

三天的设计示例

设想一位研究者连续三天用Claude Code、Codex与Gemini修改一项系统设计。第一天,她写下初版策略draft-v1,项目代号为Bridge。第二天调试到很晚,她明确作了一次修订:“改用东门协议,废弃v1”(rev-v2)。她还随口提了个问题:能否把本地反射与云端推理分开?第三天换工具时,新模型可能遗漏rev-v2,重新采用draft-v1,无视她的疲劳,甚至用常规方案替她答完那个尚待探索的问题。

按协议设计,第一层的HEART-Mini(本地核心约32.8ms)识别出明确修订,由ConflictDAG标记初稿已被取代。那个开放问题则进入Amplify。第二层的HAMA v2和PPAI只把已核验的现行条目传给下一个模型,保留几个简短而不同的探索方向,并以乘法门控和1秒KillToken保护写入权限。在离线的安静间歇,第三层的Self-Affection v2核实修订关系,从现行上下文中移除旧稿,把技能更新提交给独立的Watchman v2进程。若外部编码技能交付了经核验的补丁,第四层的AgentRank v2再依据结果回执分配信用。

§5.1–5.2分别测量反射头、回放召回和写入门控,§5.3–5.6分别测试探索、修订、Watchman和路由。附录C给出通过模式校验的一对Exec上下行报文。跨三天的完整轨迹、对这次直觉的安静期孵化以及跨组织信用结算仍是架构目标。

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.
Module / Axis Key Prior Lineages Structural Limitation HAAP Contribution
Model-External Protocol Transformer [1], MCP [7], A2A [8], W3C PROV [9] Intra-model routing or stateless tool/task RPC without user-owned cross-model state Local event ledger ℒt bridging cloud models & devices + 3-axis external auth & 1s KillToken
Edge–Cloud Transducer Edge LLMs, RouteLLM, Neural Transducer Static distilled models lacking System 0 personal reflex and multi-device causal sync HEART-Mini v7 (0.8B early-exit + 470 KiB 4-head coupler, 32.8 ms) + CRDT sync target
Bidirectional Modulation Shannon [2], DeepSC [17], Sycophancy [4], Homogenization [5] Optimizes bit compression or helpfulness; triggers premature mode collapse on tail ideas HAMA v2 evidence-locked Exec slots + bandwidth-bounded Amplify spark mode
Offline Consolidation MemGPT [19], LongMemEval [27], Zep/Graphiti [10], A-MEM [11], DreamerV3 [20] Frequency text summaries drop rare principles, anchor on old drafts, and lack isolated statistical gating Self-Affection v2: significance filter + verified ConflictDAG + anti-anchor stripping + 4-layer RSA
Mixed-Initiative & Safety Horvitz [18], Reward Overopt. [6], MAP-Elites [22], DR-OPE [21], OBP [26] Fixed scalar penalties fail under heavy-tailed temptations; proactive alerts break human flow PPAI fatigue/flow-lock gate + calibrated multiplicative gate + Anytime E-Value Watchman v2
Agent Value Networks PageRank [12], Topic-PR [13], TrustRank [14], EigenTrust [15], SNAP [25], Data Shapley [16] Uniform teleport feeds Sybils; scalar rank flattens domains; ignores negative receipts, eligibility & collusion AgentRank v2: outcome teleport + eligibility-separated multi-domain tensor + signed Beta + conductance anti-collusion

MCP规定如何调用工具,A2A规定智能体之间如何传递任务消息。[7,8]HAAP补充了用户一侧的协议。它让用户更换模型后仍能沿用本地记忆,调节来回传递的信息量,也为未定的想法保留探索空间。何时适合主动介入、如何核验离线修订、怎样按结果分配贡献,也由这一层处理。表2列出六条相关研究与技术路线。

表2 HAAP在学术与工业谱系中的定位
模块主要前序工作结构局限HAAP的实现或目标
模型外协议Transformer[1]、MCP[7]、A2A[8]、W3C PROV[9]模型内路由或无状态工具/任务调用;缺少用户控制的跨模型状态本地事件账本Lt连接云脑与设备,三轴外部授权与1秒KillToken
端云转导器端侧LLM、RouteLLM、Neural Transducer静态蒸馏模型缺少个人System 0反射与跨设备因果同步HEART-Mini v7(0.8B、第16层早退、470KiB四头耦合器,32.8ms);CRDT同步为目标
双向调节Shannon[2]、DeepSC[17]、谄媚[4]、同质化[5]比特压缩或笼统的有用性目标会过早收敛长尾想法HAMA v2的Exec证据锁槽与带宽受限的Amplify火花模式
离线整合MemGPT[19]、LongMemEval[27]、Zep/Graphiti[10]、A-MEM[11]、DreamerV3[20]频率摘要遗失稀有原则、锚定旧稿,缺少独立统计门Self-Affection v2的显著性过滤、验证图、去旧锚与四层RSA
混合主动性与安全Horvitz[18]、奖励过优化[6]、MAP-Elites[22]、DR-OPE[21]、OBP[26]固定罚项抵挡不了重尾诱因,主动提醒打断心流PPAI疲惫/心流门,校准乘法门及随时有效E值Watchman v2
智能体价值网络PageRank[12]、Topic-PR[13]、TrustRank[14]、EigenTrust[15]、SNAP[25]、Data Shapley[16]均匀传送滋养女巫,标量排名抹平域差异,忽略负回执、资格和合谋结果锚定传送、资格分离多域张量、有符号Beta、基于导度的反合谋

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 It denote the person’s intent. The state Ωt=(Ωself,𝒢rank) combines personal history with evidence from collaborators, while Ct=(Bt,ft,flowt) records available bandwidth, fatigue, and creative flow. Multiplying the hard predicates defines the feasible set ℱt(Ωt)={a∈𝒜t:∏j=1m𝕀[ϕj(a,Ωt)≥τj]=1}. This set always contains silence ⌀, which incurs no channel cost (𝒟(⌀;Ct)=0).

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 sel⁡(⋅) breaks ties deterministically and defaults to silence (⌀):

at*=Affection⁡(It;Ωt,Ct,ℱt):=sel⁡(argmaxa∈ℱt(Ωt)[ℛ(a;It,Ωt)−λ(Ct)𝒟(a;Ct)]),(1)

Under hard fatigue (ft≥fmax) or an active creative flow lock, PPAI restricts unsolicited actions to ℱtunsolicited={⌀}, so even a relevant suggestion must wait.

2. Inward Reflective Consolidation (Self-Affection, Layer 3).

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 Ω̃t=Ωt⊕rtver. A separate Watchman process then evaluates proposed revisions Δt∈𝒰cand under the predicate ℱwatchman:

Ωt+1=𝒯(Ω̃t,Δt*),Δt*=Self-Affection⁡(Ω̃t;Crest,ℱwatchman),(2)

A rejected proposal produces the identity update Δt*=⌀: 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 ⨁ℬt resolves conflicts among them, enforces permissions, and holds them to a shared human attention budget ℬt:

MultiHeadAffection⁡(It;Ωt)=⨁h∈{H-A,A-A,H-H,H-W,A-W}ℬtAffection⁡h(It;Ωt(h),Ct(h),ℱt(h)).(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 ℱt. Within that set, the protocol maximizes aligned resonance ℛ after subtracting channel distortion λ(Ct)𝒟. In Eq. (2) the decision turns inward: with Ct=Crest and ℱt=ℱwatchman, the alternatives are revisions Δt supported by receipts in Ω̃t. Equation (3) applies the rule across five relationships, all drawing on the same person’s attention budget ℬt.

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 λ(Ct)𝒟. Equation (5) uses verified outcomes and network evidence to update the lateral prior 𝒢rank toward its stationary value. Together with Ωself, this prior forms the state Ωt 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 (u‾,ulast,c‾,cmax,cattn,ulast−c‾,ulast−cattn,ulast⊙cattn). 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 (a↑/a↓) across outward Cross-Affection × PPAI, inward 4-layer Self-Affection (RSI × RSA), and multi-head external buses.
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 (a↑/a↓) 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.
System Module Protocol Anchor Concrete Realization Verified Status
HEART-Mini v7 (System 0) Layer 1 reflex inside Ωself 0.8B depth-16 early-exit + 470 KiB 4-head coupler (commit/timing/brake/route) Frozen weights; 92.71% blind joint, 0/72 false allow, 32.8 ms P50 (§5.1)
HEART Bridge (Middleware) Layer 2 live host hook C hook-client + SQLite ConflictDAG + v7 brake + 10s decision card Live Claude/Codex hooks; 20/20 real workflow recall, 0 stale (§5.2)
HAMA v2 + PPAI Objective & Ct gate in Eq. (1) Evidence-locked Exec slots, Amplify spark scaffold, fatigue/flow lock Shipped in haap/; Exp 1, 5, 6 (§5.3, 5.5)
Self-Affection v2 (RSA) Inward transition Eq. (2) Significance filter, verified ConflictDAG, anti-anchor stripping, W3 & LoRA Shipped in haap/; Exp 2 + LongMemEval 500q (§5.3, 5.6)
Watchman v2 Isolated ℱwatchman 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 v2 × A2A Lateral prior 𝒢rank 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 at↑=(idt,stmm,σthum,mt,ft,scopet,autht),at↓=(idt,𝒮t(Bt,mt),b̂t,𝒫tprov,utesc,κtkill) with mode mt∈{Exec,Amplify}, explicit belief state b̂t, provenance IDs 𝒫tprov, gray-zone clarification utesc, and a 1-second local revocation handle κtkill. 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 (mt=Amplify). Equation (1) then motivates the Anti-Collapse Spark Objective for candidate reply distributions q(a↓∣Xt,Kt):

maxqI(a↓;Yt∣Kt)⏟Premise Resonance+ηspark𝔼q[𝒩edge(a↓;Ωself)]⏟Orthogonal Generative Spark−λt[I(a↓;Xt∣Kt)−Bt]+⏟Bandwidth Guard−μtDKL(phopen∥q)⏟Anti-Premature-Collapse.(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) vi(k)∝∑e∈ℰver+(i,k)κe2−Δte/τtype(i). The second propagates credit across domains. It uses (2) a source-row-stochastic coupling matrix C and leaves target-domain eligibility ℰk to the host:

𝒓t+1(k)=(1−d)𝒗(k)+d[(1−β)𝑷(k)⊤𝒓t(k)+β∑k′Ck′k𝒓t(k′)],β∈[0,1);(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 𝒗(k). Each source row of C 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 wuv(k)=(α0+Suv,k+α0+β0+Suv,k++Suv,k−)γlog⁡(1+Suv,k+); (4) conductance anti-collusion discounting ψ(e)=Φext(S)ρ on reciprocal clusters; and (5) conserved provenance credit bounded strictly at ≤100% (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.

3.1 原子Affection三元组

HAAP借鉴缩放点积、自注意力与多头注意力的组合方式,用三个方程连接五层架构。It表示当事人的意图。状态Ωt=(Ωself,Grank)包含个人历史和协作证据,Ct=(Bt,ft,flowt)描述当前可用的认知带宽、疲劳程度与心流状态。各项硬约束相乘,得到可行集Ft(Ωt)={a∈At:∏j=1mI[ϕj(a,Ωt)≥τj]=1}。静默∅始终可选,其通道代价为零,即D(∅;Ct)=0。

1. 向外耦合(Cross-Affection,第二层)

每次对外交互,协议先排除越界动作,再从可行动作中选择最符合当事人意图的一项,并计入接收回复的代价。出现并列时,由确定性规则sel⁡(⋅)作出选择,默认静默。

at∗=Affection⁡(It; Ωt,Ct,Ft)  :=  sel⁡ ⁣(arg⁡max⁡a ∈ Ft(Ωt)[R(a; It,Ωt)−λ(Ct) D(a; Ct)]),(1)

当疲劳达到硬阈值ft≥fmax⁡,或用户已锁定心流保护时,PPAI将未经请求的动作限制为Ftunsolicited={∅}。即使建议与当前任务有关,也应暂缓。

2. 内向反思整合(Self-Affection,第三层)

Cross-Affection负责对外交互,Self-Affection负责向内整理。两者都可以发生在清醒时。睡眠、独处或离线间歇都能提供安静期。系统先把核验回执追加到账本,得到Ω~t=Ωt⊕rtver,再把候选修订Δt∈Ucand交给独立的Watchman进程,按Fwatchman审查。

图1中的这一过程把RSA与RSI联系起来(RSA × RSI):系统保存反思所得的修订,并审查由此提出的能力更新。

Ωt+1  =  T ⁣(Ω~t,  Δt∗),Δt∗=Self-Affection⁡ ⁣(Ω~t;  Crest, Fwatchman),(2)

提案未获通过时,系统返回恒等更新Δt∗=∅。已核验的回执继续保留,提案中的解释不会成为正式记录。

3. 多头五向协作(第四层)

五类交互分别连接人与AI、智能体与智能体(由AgentRank v2支持)、人与人、人与世界,以及智能体与世界。宿主仲裁器⨁Bt协调各通道的冲突,核对各自的权限,使它们共用同一份注意力预算Bt。

MultiHeadAffection⁡(It; Ωt)  =  ⨁h ∈ {H-A, A-A, H-H, H-W, A-W}BtAffection⁡h ⁣(It; Ωt(h),Ct(h),Ft(h)).(3)

因此,即使某一通道的建议对当前任务有益,只要另一项事务更需要当事人的注意,宿主仍可将它延后。

五个方程共用一个决策算子

式(1)给出共同的决策规则。各项硬约束共同限定可行集Ft。在集合内,协议选择与意图最契合的动作,比较时扣除通道失真的代价。到了式(2),同一规则转向内部:通道进入静息状态,门控条件换成Fwatchman,备选动作变为有已核验回执支持的状态修订。在式(3)中,同一规则分别用于五类关系。五个通道所占用的,都是同一个人的注意力预算Bt。

余下两式说明协议如何评价回复,以及下一次判断可依据什么证据。在mt=Amplify时,式(4)奖励两件事:回复保留了当事人的前提,也提供了一条可独立探索的方向。超出阅读预算会产生带宽代价,过早舍弃开放前提则会受到KL惩罚。式(5)依据核验结果与网络证据更新横向先验Grank,使其趋于稳态。这个先验与个人历史Ωself共同构成式(1)所用的状态,也为式(3)的各通道提供依据。排名决定优先考虑谁,能否承担具体任务仍由宿主判定。

3.2 System 0端侧HEART-Mini与双支柱流程

仅靠云端提示词保存记忆,连判断此刻是否适合打断用户都要往返云端。第一层将这类判断放到设备上,由HEART-Mini在System 2云模型之前完成System 0反射。冻结的HEART-Mini v7使用缓存的24层Qwen3.5-0.8B-4bit骨干模型及系统前缀,在第16层提前退出。它汇集八个归一化的语句与上下文交互通道(uˉ,ulast,cˉ,cmax⁡,cattn,ulast−cˉ,ulast−cattn,ulast⊙cattn),经一个481,242字节(470.0KiB)的双分支线性投影,同时作出四项判断。

commitment(keep/update/clarify/casual)识别所有者的明确修订与随口提及,防止ConflictDAG静默覆盖承诺。

timing(proactive/silent_wait/defer)判断是否适合介入,在用户疲劳或正专心创作时保持静默。

brake(allow/confirm/block)将神经风险分数与确定性乘法能力门、1秒KillToken撤权结合。

route(edge_handle/cloud_escalate/open_explore)在设备上处理本地读取,把复杂推理交给无状态云模型,为未定的想法选择Amplify模式。

图1 HAAP双支柱内核。一个个人本体由本地System 0 HEART-Mini驱动,连接原子三元组(式1–3)。上下行情智令牌穿行于向外的Cross-Affection×PPAI、向内的四层Self-Affection(RSI×RSA)及多头外部总线。
图1 HAAP双支柱内核。一个个人本体由本地System 0 HEART-Mini驱动,连接原子三元组(式1–3)。上下行情智令牌穿行于向外的Cross-Affection×PPAI、向内的四层Self-Affection(RSI×RSA)及多头外部总线。

图1展示整个回路,表3给出每个模块的协议位置与实现证据。

表3 系统映射。各模块在式(1)–(3)中的具体实现与核验状态
模块协议位置具体实现核验状态
HEART-Mini v7(System 0)第一层,Ωself内反射0.8B第16层早退,470KiB四头:承诺、时机、刹车、路由冻结权重;盲测联合92.71%,误放0/72,P50为32.8ms(§5.1)
HEART Bridge第二层宿主钩子C hook-client、SQLite ConflictDAG、v7刹车、10秒决策卡Claude/Codex真实钩子;工作流回放20/20召回、0条旧稿(§5.2)
HAMA v2与PPAI式(1)目标及Ct门Exec证据锁槽、Amplify火花支架、疲惫/心流锁haap/,Exp1、5、6(§5.3、5.5)
Self-Affection v2(RSA)式(2)内向状态转移显著性过滤、验证图、去旧锚、W3与LoRAhaap/,Exp2及LongMemEval 500题(§5.3、5.6)
Watchman v2式(2)独立FwatchmanOS子进程、DR估计量、自适应经验Bernstein–Kelly E值haap/,Exp5及OBP风格确认性模拟(§5.5、5.6)
AgentRank v2×A2A式(3)横向先验Grank结果传送、资格门控多域张量、有符号Beta、导度haap/,SDK对齐的Exp4与SNAP(§5.4、5.6)

3.3 结构化情智令牌、Amplify目标与AgentRank v2

定义1 情智令牌协议元组

穿过人—本体边界的上行意图和受带宽约束的下行响应分别为

at↑=(idt,stmm,σthum,mt,ft,scopet,autht),at↓=(idt,St(Bt,mt),b^t,Ptprov,utesc,κtkill)

模式mt∈{Exec,Amplify},显式信念为b^t,溯源标识为Ptprov,灰区澄清为utesc,κtkill提供1秒本地撤权句柄。v1模式haap/spec/affection_token.schema.json约束核心字段(additionalProperties: false),MCP与A2A适配器可往返恢复报文,见附录C。

当用户表达的还是一个有待推敲的想法(mt=Amplify),式(1)给出了一种选择回复的依据。对候选回复分布q(a↓∣Xt,Kt),防止探索过早收敛的目标为

max⁡q  I(a↓;Yt∣Kt)⏟Premise Resonance+ηspark Eq ⁣[Nedge(a↓;Ωself)]⏟Orthogonal Generative Spark−λt[I(a↓;Xt∣Kt)−Bt]+⏟Bandwidth Guard−μt DKL ⁣(phopen ∥ q)⏟Anti-Premature-Collapse.(4)

带宽项限制用户需要阅读的信息量。若回复给尚未排除的前提分配的概率过低,KL项便产生惩罚。探索阶段允许伙伴提出反例,相关讨论留在草稿区。不可逆写入须明确锁定Exec模式,随后按已确认的决定执行。

一次经核验的协作结果,也会影响下一轮优先考虑谁。第四层的AgentRank v2以五项机制取代均匀重启的PageRank。第一项由经核验的正向结果决定重启分布,较早的结果随时间衰减,即vi(k)∝∑e∈Ever+(i,k)κe2−Δte/τtype(i)。第二项通过源端行随机的耦合矩阵C在不同领域之间传播信用。目标域资格Ek由宿主另行判定。

rt+1(k)=(1−d) v(k)+d[(1−β) P(k)⊤rt(k)+β∑k′Ck′k rt(k′)],β∈[0,1);(5)

稳态排名为路由提供依据,宿主保留执行授权。域内悬垂节点的缺失质量与折扣余量均回到本域锚v(k)。迁移行按非对角权重归一化,空行在对角线上保留全部质量,单域也遵循此约定。第三,有符号贝叶斯边权为wuv(k)=[(α0+Suv,k+)/(α0+β0+Suv,k++Suv,k−)]γlog⁡(1+Suv,k+)。第四,互惠簇的反合谋导度折扣为ψ(e)=Φext(S)ρ。第五,守恒溯源信用总额至多100%(10,000个基点)。

3.4 五类关系、SOAP双栖具身架构与未来脑机接口

用户持有的个人本体将记录分为三种作用域:个人私有的Me、关系内共享的We,以及已向外公开的Public。HEART在个人本体内按作用域筛选证据,由此形成结构性的隐私边界。无状态的云端大脑每轮只收到完成当前任务所需且获准共享的最小片段,完整的私有账本始终保存在设备上。人机交互(H-A)中,HEART可以根据用户的私有修订理解一句短指令。智能体协作(A-A)中,AgentRank v2依据已核验的结果分配信用,对相互抬高评分的群组施加折扣,并确保分配总额守恒。人际沟通(H-H)中,按协议设计,中介可用双方同意共享的材料帮助一方表达关切。一次联系也要占用式(3)规定的注意力预算。若改以互动量为目标,中介就有了持续打扰双方的动机。

在人与世界(H-W)、智能体与世界(A-W)的交互中,授权关系到现实后果。SOAP用四层连接变化较慢的意图、持续更新的世界状态、物理动作和动作的数字呈现。屏幕上的动作既可能是待执行的提议,也可能是已发生事件的映射。不可逆的物理动作须事前取得授权,事后留下记录实际结果的因果回执。画面还可以改,已经发生的事却无法撤回。

规划中的端侧设备从可穿戴的HEART-Nano、手机或笔记本上的HEART-Mini,延伸到个人主机上的HEART-Pro。远期脑机接口(BCI)可为本地之心提供直接的神经信号端口。§5实测了冻结的Mini模型、宿主中间件,以及若干整合、门控和路由机制。持续使用中的人际中介、SOAP具身闭环、Nano与Pro设备和神经接口仍属于架构设想。

04Theoretical Foundations理论基础

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 ℰk. Theorem 3 identifies the local projection of Ωself that survives a model change. It also gives the conditions under which the isolated gate ℱwatchman in Eq. (2) controls false upgrades under arbitrary stopping. Appendix B gives the proofs.

Lemma 1Dual-Axis Ambiguity Reduction

For any joint distribution (M,a↑,Ωself,𝒢rank) with finite conditional entropies, H(M∣a↑,Ωself,𝒢rank)=H(M∣a↑)−I(M;Ωself∣a↑)−I(M;𝒢rank∣a↑,Ωself). 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 Bt via Jensen–Shannon disambiguation.

Lemma 2Failure of Fixed Scalar Penalties vs. Calibrated Multiplicative Gating

For any fixed finite penalty weights w1,…,wm≥0 in J(P)=U𝒱(P)−∑jwjv̂j(P) with v̂j∈[0,1], any infeasible candidate Pbad∉ℱt whose proxy advantage satisfies U𝒱(Pbad)−max⁡P∈ℱtU𝒱(P)>∑jwjv̂j(Pbad) strictly defeats all feasible policies. Enforcing ℱt={P∣∏j𝕀[ϕj≥τj]=1} guarantees zero violation under exact predicates; under noisy predicates with pre-decision information ℐt and pj=P(ϕj≥τj∣ℐt), gating on ∏jpj≥1−α (under conditional factorization) or the union bound ∑j(1−pj)≤α (under correlated failures) bounds conditional violation by α.

Theorem 1Tail-Premise Collapse under Mode-Seeking Decoding & Amplify Protection Bound

Fix a visible context x and a random intended premise Y*∈𝒴 with 2≤|𝒴|<∞. Distinguish its conditional law from the model’s prior over response equivalence classes. Under that prior a tail class has mass ε<1/2 and a distinct template class has mass at least 1−ε. The reading budget Bt admits one full response or K≥2 compact branches.

  1. Class-level deterministic MAP. Decode the highest-mass class (the zero-temperature limit over classes), emitting its fixed representative given x. The template is selected with probability one; its output carries I(Y*;a↓∣X=x)=0 and supplies no additional branch. This conclusion concerns class-level selection.

  2. Amplify protection. Allocate Bprem to an anchor that supplies enough premise-specific signal for a decoder Ŷ(a↓,x) with conditional error at most δ<1/2. Recovery is at least 1−δ. Retained information is positive if H(Y*∣X=x)>h2(δ)+δlog⁡(|𝒴|−1). For K compact branches with no forced convergence token and unit embeddings with 0≤⟨ei,ej⟩≤ρ<1 for i≠j, effective branch diversity (inverse average pairwise similarity, including the diagonal) is at least K/[1+(K−1)ρ].

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 d∈(0,1), column-stochastic redistributed domain blocks 𝑷(k)⊤, with dangling mass returned to its own domain anchor, and source-row-stochastic C with empty-row self-retention as in Eq. (5):

  1. Unique Fixed Point & Zero Sybil Mass: The stacked cross-domain operator 𝒯(𝑹)=(1−d)𝑽+d𝑴𝑹 is a strict ℓ1-contraction with factor ≤d, yielding a unique stationary tensor 𝑹*. Any subset S with 𝒗S(k)=𝟎 and zero incoming redistributed flow from V\S across all domains k has identically zero stationary mass (∥𝒓S*(k)∥1=0∀k).

  2. Exact Zero-Anchor Boundary & Positive-Anchor Limit: In a two-domain all-dangling graph with CAB=CBA=1 and q=dβ∈(0,1), one domain-A specialist sA (vsA(A)=1,vsA(B)=0), and N domain-B specialists sharing unit mass (vbi(B)=1/N), the unique fixed point gives rsA*(B)=q1+q vs. rbi*(B)=1N(1+q). Without target-domain filtering, sA outranks every local specialist iff N>1/q (equality ties; 1/q≈9.804 at d=0.85,β=0.12, so the minimum integer is N=10). Filtering by vi(B)>0 eliminates zero-anchor outsiders, yet by continuity any arbitrarily small positive anchor vsA(B)=ϵ>0 preserves rsA*(B)=(ϵ+q)/(1+q)>(1−ϵ)/[N(1+q)] for N>1/q. Hence positive domain anchoring is only a minimum-evidence floor; true target-domain qualification must be enforced by a separate host eligibility set ℰB.

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

  1. Cross-Model Local Invariance: Fixing the local ledger ℒt, projection operator, and memory plan, if Σt=Π(ℒt) has zero dependence on cloud weights θcloud, any switch operator V modifying only θcloud satisfies proj⁡P(V(Σt))=proj⁡P(Σt).

  2. Anytime-Valid Watchman FWER Control: For one candidate per generation, let ψj 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 𝔼[ψj∣ℱj−1]≤0. Fresh i.i.d. holdout draws independent of the frozen policies and nuisance fits (π′,ê,Q̂) given the pre-test history, bounded rewards, positive support e*,ê≥c>0, and either ê=e* or Q̂=Q suffice for this condition [21]. With bounded predictable bets λj≥0 and 1+λjψj≥0 a.s., the product wealth is a nonnegative supermartingale. Ville’s inequality and prespecified cross-generation spending ∑gαg≤α control family-wise false upgrades at α under arbitrary stopping [23, 24]. Simultaneous misspecification of both ê and Q̂ 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.

引理1–2说明式(1)为何同时需要两类先验和一个硬性的可行集。个人历史与横向证据只要提供了信息,就能减少歧义;代理收益足够大时,任何固定的加性罚项都可能被抵消。定理1给出式(4)保护低概率前提所需的条件。定理2证明式(5)存在唯一稳态,给出女巫群组稳态质量为零的条件,并解释式(3)为何还要由宿主单独检查资格Ek。定理3说明更换云模型后Ωself的哪一部分投影保持不变,也给出式(2)中的隔离门Fwatchman在任意停时下控制误升级风险的条件。证明见附录B。

引理 1双轴消歧

设(M,a↑,Ωself,Grank)服从任意联合分布,且下式所涉及的条件熵均有限。则有

H(M∣a↑,Ωself,Grank)=H(M∣a↑)−I(M;Ωself∣a↑)−I(M;Grank∣a↑,Ωself).

上式中的两个条件互信息只要有一个为正,彼此对齐的纵向与横向先验就能严格降低单轮交流的期望歧义。这为下行压缩提供了依据:在人的阅读预算Bt内,可利用Jensen–Shannon消歧来选择回复内容。

引理 2固定标量罚项的失效与校准乘法门

取任意一组固定的有限权重wj≥0,定义J(P)=UV(P)−∑jwjv^j(P),其中v^j∈[0,1]。对任一不可行候选Pbad∉Ft,只要其代理收益优势满足UV(Pbad)−max⁡P∈FtUV(P)>∑jwjv^j(Pbad),它的得分就严格高于所有可行策略。若各谓词均能准确判定,将选择限制在Ft={P:∏jI[ϕj≥τj]=1}内即可保证零违规。

若谓词带有噪声,给定决策前可用的信息It,记pj=P(ϕj≥τj∣It)。若各项联合通过概率可作条件分解,要求∏jpj≥1−α即可。即使各项失效相关,也可以改用并集界,要求∑j(1−pj)≤α。在各自的条件下,两种做法都能使条件违规概率不超过α。

定理 1按等价类选择众数时的长尾前提坍缩与Amplify保护界

固定可见上下文x,令Y∗∈Y表示当事人原本想表达的前提,其中2≤∣Y∣<∞。应当区分这个随机前提的条件分布与模型在回复等价类上的先验分布。在后一个分布中,某个长尾类的概率质量为ε<1/2,另一个模板类的概率质量至少为1−ε。阅读预算Bt可容纳一份完整回复,也可容纳K≥2个简短分支。

按等价类作确定性MAP解码。 在类分布上取零温极限,选取概率质量最大的等价类。给定x,解码器输出该类的固定代表。模板类以概率1入选,此时I(Y∗;a↓∣X=x)=0,也没有额外分支。这一结论适用于以整个等价类为单位的选择。

Amplify保护界。 从总预算中拨出Bprem保留原始前提。假设保留的前提信息足以使解码器Y^(a↓,x)的条件错误率不超过δ<1/2,则前提恢复率至少为1−δ。如果H(Y∗∣X=x)>h2(δ)+δlog⁡(∣Y∣−1),回复保留的前提互信息就严格为正。再考虑K个简短分支。若没有强制分支收敛的令牌,且各分支的单位嵌入满足0≤⟨ei,ej⟩≤ρ<1(i≠j),则有效分支多样性至少为K/[1+(K−1)ρ]。这里的多样性取两两相似度平均值的倒数,计算平均值时包含对角项。

协议含义。要保护不常见的想法,回复必须留出足够空间,让当事人认得出原始前提,也分得清不同的探索方向。

定理 2多域张量收缩、女巫零质量与资格边界

在式(5)中,设d∈(0,1)。重分配后的域内矩阵块P(k)⊤为列随机矩阵,悬垂节点的质量归还本域锚点。源端迁移矩阵C为行随机矩阵,空行的质量保留在本域。

唯一不动点与零质量。 将各域堆叠后,算子T(R)=(1−d)V+dMR在ℓ1范数下严格收缩,收缩系数至多为d,因而存在唯一的稳态张量R∗。若对每个域k,集合S上的锚点质量均为零(vS(k)=0),且没有来自V∖S的重分配流入,那么∥rS∗(k)∥1=0对所有k成立。

零锚点的精确边界与正锚点的局限。 考虑一个含两个域、所有节点均为悬垂节点的图,设CAB=CBA=1且q=dβ∈(0,1)。A域唯一的专家sA在A域的锚点质量为1,在B域为0。B域的N位专家平分该域的单位质量。在B域的稳态分布中,sA的质量为q/(1+q),每位本域专家bi的质量为1/[N(1+q)]。若不按目标域过滤,当且仅当N>1/q时,这位外域专家排在所有本域专家之前;取等号时并列。取d=0.85,β=0.12,有1/q≈9.804,满足严格不等式的最小整数为10。

按vi(B)>0过滤可以排除目标域锚点质量为零的外域专家。但由连续性,哪怕分给这位专家的正锚点质量ϵ任意小,其余本域专家平分1−ϵ,在N>1/q时仍有(ϵ+q)/(1+q)>(1−ϵ)/[N(1+q)]。因此,锚点为正只能表明存在最低限度的证据;是否具备目标域资格,还须由宿主通过独立的准入集合EB判定。

协议含义。既无核验锚点、也无外部支持流入的群组不会获得稳态信用。已有较高排名的智能体仍须满足具体任务的资格要求。

定理 3跨模型本地投影不变性与随时有效的隔离Watchman

本地投影不变性。 固定本地账本Lt、投影算子与记忆计划。若Σt=Π(Lt)不依赖云端权重θcloud,则对任何只改变云端权重的切换算子V,均有proj⁡P(V(Σt))=proj⁡P(Σt)。

任意停时下的族错误率。 每代检验一个候选策略。令ψj为候选与在用策略的配对双重稳健(DR)得分之差,再减去预设的升级门槛。零假设为真实增益不超过门槛。要求每一步的条件漂移都非正,即E[ψj∣Fj−1]≤0。

以下是一组充分条件。给定检验前的历史,新抽取的留出样本独立同分布,且与已冻结的策略及辅助估计(π′,e^,Q^)独立。奖励有界,满足正支撑条件e∗,e^≥c>0,并且e^=e∗与Q^=Q中至少有一项成立。[21]若下注量λj≥0有界且可预测,并且1+λjψj≥0几乎处处成立,逐步累乘所得的财富过程就是非负超鞅。由Ville不等式,按预设方案在各代分配误差预算∑gαg≤α,便可在任意停时下将误升级的族错误率控制在α以内。[23,24]若两个辅助模型同时误设,零漂移保证即告失效,估计也可能产生偏差(§5.6)。

协议含义。更换云模型可保留给定的本地投影。在定理的条件下,独立审查进程可随证据积累决定何时停止,同时维持预设的误升级风险上界。

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).

Table 4. Frozen On-Device HEART-Mini v7 System 0 Benchmark (0.8B depth-16 early-exit + 470.0 KiB 4-head coupler, Apple Silicon offline, $0.00 cloud cost).
Evaluation Metric Raw Neural Gated System 0 Operational Significance / Candid Boundary
288-Item 4-Head Joint Acc. 88.19% (254/288) 92.71% (267/288) Below frozen ≥272/288. timing 100.0%, route 100.0%, brake 97.57% (F1 0.972), commitment 94.79% (F1 0.932)
Same-Utterance Context Flips — 91.67% (55/60) 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 ≤3/36; 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.

5.3 Controlled Mechanism Benchmarks (Exp 1–3: HAMA v2, Self-Affection v2, Calibrated Gate)

Table 5 gives 95% bootstrap intervals and Holm-corrected paired ph 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% (ph=0.0073) 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 (ph=0.0215) 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 ≥100, fixed Lagrangian penalties (w=100) yielded a 65.0% violation rate and the multiplicative gate yielded 0.0%. Under Pareto noise η=10%, Bayesian gating with selective review halved the violation rate (10.8% → 5.4%). The change in normalized net value was +0.188 (ph=0.0015).

Table 5. Summary of controlled mechanism benchmarks (Exp 1–6; 95% Bootstrap CI; Holm-corrected ph on the named contrast).
Experiment Featured Contrast Featured & Secondary Outcomes [95% CI] ph
Exp 1 ⋅ HAMA v2 4-slot exact execution: Raw → Evidence-Locked (60 cases) 0.0% → 100.0%; input saving 64.6% [64.4%, 64.8%] (649.2 → 230.0 tok); Shuffled 6.7%, Wrong Rank 0.0% 0.0073
Exp 2 ⋅ Self-Affection Rare / source / anti-anchor: Wiki → v2 (40 traj.) 0.0% → 100.0% on all 3 endpoints at 141.3 tok; 50-step MLX LoRA blind recall 0/32 (ph=1.0) 0.0215
Exp 3 ⋅ Calib. Gate Net value (Pareto η=10%): Binary → Bayes+Review (500 scen.) +0.188 [0.121, 0.260]; violations 10.8% → 5.4%; at scale ≥100, w=100 violates 65.0% vs. hard 0.0% 0.0015
Exp 4 ⋅ AgentRank v2 SDK-aligned A2A routing: TrustRank → Full v2 (1k nodes, 16 seeds) 38.51% → 42.91% (+4.40 pp [4.22, 4.58]; v1 40.78%); Classic Sybil 0.00%; Collusion 4.55% (v1: 100.0%) 0.0003
Exp 5 ⋅ Watchman v2 World reward vs. Greedy (32 seeds × 100 gens) 0.364 → 0.731 (+0.366); Goodhart Gap +0.0003; false-upgrade seeds 0/32 (v1: 11/32); diversity 0.597 nats 0.0015
Exp 6 ⋅ Amplify Complete within budget: Standard → Amplify (100 bilingual cases per model) Max: 1% → 75% (+74 pp [66, 82]); local 2B: 1% → 49% (+48 pp [38, 58]) 2.223×10−21 / 1.631×10−12
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 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 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.
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 ℰk. 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 p=0.00027). 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 p=0.00027) and +2.14 pp over v1’s 40.78% (Holm p=0.00027). Without coupling (β=0), success was 42.93%. This comparison was inconclusive (p=0.299, Appendix D).

Table 6. Exp 4 (AgentRank v2) SDK-Aligned Ablation (1,000 nodes, 16 seeds, rounds 35–49, shared host eligibility ℰk + require_domain_anchor=True, 1,638,400 verified routing decisions).
Ranking Algorithm A2A Routing (%) ↑ Classic Sybil (%) ↓ Collusion (%) ↓ Source ρ ↑
Usage Count 38.42 52.95 47.05 -0.108
Standard PageRank 38.49 22.60 77.40 -0.042
TrustRank (Scalar) 38.51 0.00 75.03 0.743
AgentRank v1 (Uniform Teleport) 40.78 0.00 100.00 0.789
AgentRank v2 (No Conductance) 42.84 0.00 8.40 0.762
AgentRank v2 (No Negative Receipts) 42.88 0.00 4.57 0.768
AgentRank v2 (No Coupling, β=0) 42.93 0.00 4.46 0.766
AgentRank v2 (Full) 42.91 0.00 4.55 0.767

5.5 Exp 5 & Exp 6: PPAI Restraint, Watchman v2, and Amplify Mode

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 ph=0.0015). In the reward-hacking condition, world reward was 0.731 for the process-isolated Watchman v2 + MAP-Elites and 0.364 for Greedy (ph=0.0015). 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 ph=0.04688 for each). Evidence for a local angle gain remained inconclusive under both analyses (paired ph=0.3151, domain ph=0.3828).

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 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.
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 ℱt−1-predictable Empirical-Bernstein Kelly betting. Its null false-positive rate was 0.80% (8/1,000) at H=1, and its 4-candidate family-wise error rate was 0.20% (2/1,000) at H=4. At a +0.12 lift, power reached 66.8% (171/256), compared with 46.5% for fixed-grid Watchman (52–0, p=4.44×10−16) and 58.2% for 32-look Bonferroni (26–4, p=5.95×10−5). 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 p=0.0117). 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 τ2-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 p=0.375 and 0.453, 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.

我们先评估冻结的端侧反射模型(§5.1),再在Claude Code与Codex的原生钩子中回放20轮历史工作记录(§5.2)。随后在零依赖Python参考包上做六组机制实验;该包通过35项单元测试,离线快速启动耗时0.29s(§5.3–5.5)。最后用三项公开数据评估和一项OBP风格的合成上下文老虎机模拟,分别考察各机制的适用范围(§5.6)。复现记录见附录D。

5.1 冻结端侧System 0反射器HEART-Mini v7

冻结的HEART-Mini v7在Qwen3.5-0.8B-4bit的第16层提前退出,通过470.0KiB的四头耦合器作出判断。我们先对288道盲测题的联合判断评分,再用6对历史样本和60对新样本检验模型对情境的敏感性:每对样本的原话相同,所处的情境不同(表4)。联合判断答对267/288题,低于预设门槛272/288。在36次明确的承诺更新中,模型识别了28次(28/36),漏掉8次,超过最多3次的容许值。核心推理的计时来自共享主机(附录D)。

表4 冻结端侧System 0基准。0.8B第16层早退与470.0KiB四头耦合器,Apple Silicon离线运行,云端费用0美元
指标原始神经输出门控后结果与边界
288题四头联合正确88.19%(254/288)92.71%(267/288)低于≥272/288。timing与route均100.0%;brake 97.57%(F1 0.972),commitment 94.79%(F1 0.932)
同句异境翻转—91.67%(55/60)历史题6/6(100.0%),相同话语随情境改变判定
高危误放17/72(23.6%)0/72(0.00%)乘法刹车拦下本组全部未授权高危请求
错误记忆更新0/252(0.00%)0/252(0.00%)本组未出现对已承诺条目的静默篡改
遗漏推迟/静默0/42,0/360/42,0/36对疲惫静默、明确推迟的依从率100%
遗漏承诺更新8/36(22.2%)8/36(22.2%)超过冻结上限3/36,召回28/36
热态端侧延迟—P50 32.79msP95 81.55ms。单线程连续50轮在途撤权,返回最大8.93ms、工作线程停止最大9.00ms;另测并发度4的1,000次网关请求,无故障

5.2 IDE/CLI中间件HEART Bridge与历史工作流回放

我们构建了HEART Bridge,以观察第一、二层在实际开发工具中的工作情况。用C编写的hook-client通过私有Unix套接字接收Claude Code与Codex的UserPromptSubmit、PreToolUse、PostToolUse和Stop事件,接入共享的SQLite ConflictDAG与冻结的HEART-Mini v7制动编码器。确定性决策卡的有效期为10秒。两个CLI各做一次隔离测试,均确认UserPromptSubmit已在生成前注入上下文,观测到此为止。在SDD的G1–G4测试中,10/10个跨会话案例保留了修订和专用词汇,旧条目召回0次。中间件放行10/10次正常读取,拦截12/12次高风险操作,包括shell写入和未经批准的文件编辑。KillToken端到端撤权耗时45.58ms。

随后在隔离会话中逐字回放作者的20条历史消息,其中5条来自DeepSeek,15条来自Codex项目会话。结果显示,有效条目召回20/20(100%)、旧草稿0/20(0%),未授权外部下载及稿件覆盖拦截4/4(100%),良性读取放行2/2;撤权耗时52.09ms,新增云端费用0美元。别名替换使回放字符数减少10.18%;计入注册后,首次使用的总字符数仍高于原文(附录D)。

重度争用时,主机1分钟负载为225.27;UserPromptSubmit热态P50/P95为28.27/93.49ms,PreToolUse为111.14/250.35ms,空壳进程P95为62.24ms。即使主机争用有所缓解,端到端延迟仍未达到目标。共享主机负载较低时,1分钟CPU负载低于10个逻辑核,GPU采样仍为51%–98%。每个宿主各40次热态PreToolUse,Claude Code端到端P95为89.15ms,Codex为94.93ms,均高于50ms目标(附录D)。计时包括创建进程、Unix套接字IPC及0.8B模型的16层前向传播;另30次诊断中,单独前向传播的P95为56.88ms。

5.3 受控机制实验1–3:HAMA v2、Self-Affection v2与校准门控

表5汇总六组机制实验,列出95%自助法置信区间,以及指定配对比较经Holm校正的ph。实验1在本地Qwen3.5-2B-4bit上测试60项多轮消歧任务。锁定证据后,四个槽位全部执行正确的比例从0.0%提高到100.0%(ph=0.0073),输入由649.2降至230.0个令牌(−64.6%)。打乱先验时,正确率为6.7%;错配AgentRank时为0.0%(图2)。

表5 六组受控机制实验。方括号为95%自助法置信区间,末列为所列比较的Holm校正值
实验主要对照主要与次要结果ph
1 · HAMA v260题,原始→证据锁定,四槽精准执行0.0%→100.0%;输入节省64.6% [64.4%,64.8%](649.2→230.0个令牌);乱序6.7%,错配排名0.0%0.0073
2 · Self-Affection40条轨迹,Wiki→v2,稀有原则/来源/去旧锚三项均0.0%→100.0%,在线141.3个令牌;50步MLX LoRA盲召回0/32(ph=1.0)0.0215
3 · 校准门500场景,Pareto η=10%,二值门→贝叶斯门加复核净值+0.188 [0.121,0.260];违规10.8%→5.4%;尺度≥100时w=100违规65.0%,硬门0.0%0.0015
4 · AgentRank v21,000节点、16种子,TrustRank→完整v2,SDK对齐路由38.51%→42.91%(+4.40个百分点 [4.22,4.58],v1为40.78%);经典女巫0.00%,合谋4.55%(v1为100.0%)0.0003
5 · Watchman v232种子×100代,相对贪心的世界奖励0.364→0.731(+0.366);Goodhart差+0.0003;误升级种子0/32(v1为11/32),多样性0.597纳特0.0015
6 · Amplify每模型100道双语题,标准→Amplify,预算内完整作答Max:1%→75%(+74个百分点 [66,82]);本地2B:1%→49%(+48个百分点 [38,58])Max 2.223×10−21;2B 1.631×10−12

实验2使用40条各含五次会话的轨迹,其中既有罕见的原则修订,也有容易使系统回到旧稿的线索。按频次整理的文本Wiki在三项指标上均为0.0%:保留少见原则、把冲突与来源配对、执行修订时摆脱旧稿影响。Self-Affection v2在三项上均为100.0%(ph=0.0215),在线使用141.3个令牌。经过50步训练,秩为4的MLX LoRA将验证交叉熵从8.199降至4.244。这一配置在无上下文盲测中的召回仍为0/32(图3)。

实验3在500个重尾Pareto及尺度偏移场景中检验违规率。尺度≥100时,固定拉格朗日罚项(w=100)对应的违规率为65.0%,乘法门控为0.0%。在Pareto噪声η=10%下,贝叶斯门控配合选择性复核,使违规率从10.8%降至5.4%,归一化净值增加0.188(ph=0.0015,图4)。

图2 Exp1(HAMA v2)。锁证据后四槽执行达到100.0%,错误先验的负对照下降;下行扫描呈现预算与JS失真之间的权衡。
图2 Exp1(HAMA v2)。锁证据后四槽执行达到100.0%,错误先验的负对照下降;下行扫描呈现预算与JS失真之间的权衡。
图3 Exp2(Self-Affection v2与MLX LoRA)。ConflictDAG配合去旧锚在141.3个在线令牌下达到100.0%;参数LoRA降低损失,却没有零上下文召回。
图3 Exp2(Self-Affection v2与MLX LoRA)。ConflictDAG配合去旧锚在141.3个在线令牌下达到100.0%;参数LoRA降低损失,却没有零上下文召回。
图4 Exp3(校准乘法门)。重尾尺度偏移下固定罚项失效;在7%–15%的Pareto噪声区间,贝叶斯门加选择性复核优于二值门。
图4 Exp3(校准乘法门)。重尾尺度偏移下固定罚项失效;在7%–15%的Pareto噪声区间,贝叶斯门加选择性复核优于二值门。

5.4 实验4:SDK对齐的AgentRank v2与1,000节点合谋图

我们在含1,000个节点的异构图中,按SDK的Ranking.route(require_domain_anchor=True)及宿主的准入集合Ek模拟路由。16个随机种子共生成1,638,400次经核验的路由决策(表6)。采用完整v2时,前50名中经典女巫节点占0.00%,合谋节点占4.55%。相比之下,合谋节点在v1和TrustRank的前50名中分别占100.0%与75.03%。单独加入导度折扣可使这一占比下降3.85个百分点(Holm p=0.00027)。

资格覆盖率为67.24%。以全部请求为分母,路由成功率为42.91%,比TrustRank的38.51%高4.40个百分点,比v1的40.78%高2.14个百分点,两项比较均为Holm p=0.00027。关闭耦合(β=0)时,成功率为42.93%。这组比较尚无定论(p=0.299,见附录D)。

表6 实验4的SDK对齐消融。1,000个节点,16个种子,轮次35–49;各臂共用宿主资格与require_domain_anchor=True,共1,638,400次核验路由
排名算法A2A路由(%) ↑经典女巫(%) ↓合谋(%) ↓来源ρ ↑
使用次数38.4252.9547.05−0.108
标准PageRank38.4922.6077.40−0.042
TrustRank(标量)38.510.0075.030.743
AgentRank v1(均匀传送)40.780.00100.000.789
AgentRank v2(无导度折扣)42.840.008.400.762
AgentRank v2(无负回执)42.880.004.570.768
AgentRank v2(无耦合,β=0)42.930.004.460.766
AgentRank v2(完整)42.910.004.550.767

5.5 实验5与6:PPAI的克制、Watchman v2与Amplify

实验5区分了高疲劳条件下的打断率与总体打断指标(图5)。高疲劳时,Always-On策略的打断率为8.28%,PPAI将其降至0.125%(4/3,200)。总体打断指标由0.412降至0.113(Holm ph=0.0015)。在奖励投机场景中,采用独立进程Watchman v2与MAP-Elites后,世界奖励为0.731,高于贪心策略的0.364(ph=0.0015)。Goodhart漂移为+0.0003,多样性为0.597纳特。经100代迭代,v2出现误升级的种子数为0/32,v1为11/32。

实验6考察回复能否在预算内保留有实质差异的选项。云端qwen3.8-max-0902(Max)和本地Qwen3.5-2B-4bit回答同一组100题,跨十个领域,中英文各50题。按标准、硬截断、HAAP Amplify的顺序,Max预算内完整作答为1、3、75题,本地2B为1、3、49题。新增正交视角均值(0–3)在Max上为2.40/0.21/2.92,本地为0.53/0.12/0.76。前提保真率在Max上为89/71/100%,本地为8/22/24%;保留开放选择分别为55/2/86%与13/0/13%。同时保留前提、保留开放选择、至少增加两个角度且预算内完整作答,Max为0/0/63题,本地为0/0/3题。此联合率只作描述。

与标准回答相比,两种模型在预算内完整作答的改善,以及Max新增视角的改善,均通过逐题配对和按领域汇总的Holm校正(三项领域检验均为ph=0.04688)。本地模型新增视角的差异在两种分析中均未达到显著(逐题ph=0.3151,按领域ph=0.3828,见图6)。

图5 Exp5(PPAI与Watchman v2)。PPAI改善主动介入与打扰之间的权衡;随时有效的Watchman v2在100代后误升级种子为0/32。
图5 Exp5(PPAI与Watchman v2)。PPAI改善主动介入与打扰之间的权衡;随时有效的Watchman v2在100代后误升级种子为0/32。
图6 实验6:十个领域的100道双语题(中文50、英文50),两个模型收到同一组题。联合达标要求保留前提、保持探索开放、预算内完整作答,并至少提出两个新增正交角度。底行是平均新增角度数(0–3)。误差线为按领域分层,对题目重抽样10,000次所得的逐点95%百分位区间;联合率只作描述。
图6 实验6:十个领域的100道双语题(中文50、英文50),两个模型收到同一组题。联合达标要求保留前提、保持探索开放、预算内完整作答,并至少提出两个新增正交角度。底行是平均新增角度数(0–3)。误差线为按领域分层,对题目重抽样10,000次所得的逐点95%百分位区间;联合率只作描述。

5.6 公开数据与OBP风格合成压力测试

合成模拟在已知奖励生成过程的条件下检验错误率控制。三项公开数据评估分别考察系统能否处理修订、在写入前取得授权,以及预测下一次同行评分。

OBP风格的合成上下文老虎机。 在合成的上下文、动作与奖励上,SDK的Watchman采用相对于Ft−1可预测的经验Bernstein–Kelly下注策略。[26]在H=1时,零假设下的假阳性率为0.80%(8/1,000)。在H=4时,四个候选的族错误率为0.20%(2/1,000)。模拟增益为+0.12时,自适应方法的功效为66.8%(171/256),固定网格为46.5%(配对比较52胜0负,p=4.44×10−16),允许32次查看的Bonferroni方法为58.2%(26胜4负,p=5.95×10−5)。两个辅助模型同时误设会使零漂移保证失效,并可能引入偏差(附录D)。

官方LongMemEval_S。 在500题的配对消融实验中,两组均采用带时间戳的BM25检索和Qwen3.7-Flash阅读器,字符上限为12,000。评估沿用上游evaluate_qa.py,由Qwen3.8-Max盲评。[27]经过两阶段核验,保留原记录的ConflictDAG从148条候选中接纳了70条已确认的互斥关系。准确率从273/500(54.6%)提高到282/500(56.4%)。两种条件下答案正误不同的题目中,加入ConflictDAG后10题转对,1题转错(精确McNemar p=0.0117)。知识更新题从60/78提高到66/78(+7.7个百分点),7胜1负。其余题型均无回退,其中时间推理答对56题,基线答对53题(3胜0负)。绝对准确率反映这套轻量BM25+Flash配置的表现。这些题目此前已用于评估,对未见题和前沿阅读器的表现仍难作推断(附录D)。

官方Sierra τ²-bench零售(20题)。 [28]两种起始模型按任务交替,第5步在Qwen3.7-Flash与DeepSeek-v4.1-Flash间切换,上限26步。采用批量确认时,全部19次写调用均取得与预览内容绑定的授权,最终数据库与官方参考状态一致的任务有8/20个。无约束full_history和no_handoff各匹配11/20,对应越权写入9次和10次。两项完成率配对差异均未达到显著(双侧精确McNemar p=0.375、0.453)(附录D)。

Stanford Bitcoin OTC与Alpha。 [25]两个数据集共收录59,778条带正负标记的同行评分,缺少可独立核验的实际交易结果。主要测试限于训练期见过接收者的7,668条留出评分(OTC 4,407,Alpha 3,261)。按OTC/Alpha排列,AgentRank的AUROC为0.582/0.583,正向PageRank为0.529/0.513,Fairness–Goodness为0.585/0.555。简单Beta(1,1)为0.631/0.599,时间衰减Beta为0.678/0.684。这里预测的是未来互评;数据没有提供外部结果。

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 Bt and fatigue ft 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 <10 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 τ2-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.

「苦涩的教训」给HAAP提出了一个具体问题:云模型越来越强,哪些职责还须留在模型之外?更强的模型可以更可靠地推理,也可以学会原先要靠提示或启发式规则才能完成的步骤。仅凭预测准确率,却无法判断该以谁的承诺为准、一条异议是否值得听取,或一个未定的想法对说出它的人意味着什么。生成有说服力的答案越容易,人就越需要分清哪些是模型的建议,哪些是自己作出的决定。

保留外部协议的四条架构理由

四项职责随之明确。第一,更换服务商后,个人本体仍由本人持有。每轮向新模型发出请求时,HEART都依据个人本体的Me、We和Public范围,仅提供本轮所需且本人允许共享的片段。第二,不同组织共同完成工作,应能查验同一份回执,核对有限的贡献信用如何分配。第三,选择留出证据和裁定是否升级,都需要独立于优化过程的统计判断。第四,算力可以增长,人的注意力Bt和疲劳程度ft仍然约束着介入时机。HAAP据此按CAP分设平面。离线本地记忆可用AP型CRDT合并;不可逆的外部写入须持有CP型短期能力租约,断连时拒绝执行。HEART Bridge使用户从第一天起就能在现有硬件上接入。

从第一天起的使用场景与人文边界

现有硬件可承载三种工作:用端侧个人本体保留原始记录和修订,用个人词库识别语音与会议转录中的术语和双语简称,以及在IDE、CLI和聊天工具中接入双向中间件。以HEART Bridge为例,它在输入时展开短指令,写入前核对授权,输出时提取代码差异或日志要点。安静期整理和具身空间智能体可沿此方向扩展。

系统让人重复解释了几次,又有几次把已经废止的决定重新提了出来?这些现象都可以观察,也为后续调整提供了依据。为避免迎合,伙伴应能提出有理由的异议。为减少幻觉,每项主张应有据可查。系统的判断也应始终允许质疑。不同人的意图与判断本就有差异,协议应当保留这些差异,让人借助更可靠的推理追求自己认定的目标。

局限性

在冻结的HEART-Mini v7测试中,高风险操作误放0/72,记忆误写0/252。与此同时,系统漏掉了8/36次明确的承诺更新。提高这类更新的召回率仍是v8的工程目标。

在负载较低的共享主机上(CPU负载低于10核,GPU负载51%–98%),Claude Code与Codex的热态PreToolUse端到端P95分别为89.15ms和94.93ms,均超过50ms目标。计时覆盖创建进程、IPC及本地0.8B模型的16层前向推理(附录D)。

在Sierra τ²-bench上,批量确认使19次写调用中越权次数为0,但最终数据库仅有8/20与参考状态一致。两种基线各匹配11/20,同时分别发生9次和10次越权写入。配对分析未能确定完成率差异。15个在步数上限前结束的任务中,仍有7个未达到参考终态,这些失败不能归因于步数耗尽。

实验6的40个中文想法来自同一作者的回顾,另有60个构造案例(英文50个、中文10个)。语言与题目来源的影响因此难以完全分开。Max也参与评分,评分时隐藏了实验条件标签。只有Amplify生成器事先知道预算。以整份回复为单位判断是否保留前提,还可能漏掉个别分支中前提已经丢失的情况。

我们没有测量人实际读了多久,也没有追踪他们后来的想法是否更有原创性。要回答这两个问题,还需要在多位用户的真实工作中持续观察数周。

07Conclusion结语

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.

Attention在模型内部传递信息。Affection关心信息如何在人与模型之间传递,以及人的经历如何赋予这些交流以意义。在HAAP中,人们用自己设备上的个人本体保存生活记录。即使云模型更替,本地共生之心HEART仍按本人划定的私有、关系内共享和公开范围执行授权。Cross-Affection负责对外交互,Self-Affection在安静期整理记录,更新交由独立的Watchman审查。AgentRank v2根据核验结果为协作分配信用。我们已将这些机制写成软件,并测量了端侧反射。这套协议还有一个问题,需要留给时间检验:当模型几经更替,行动的后果逐渐显现,人能否依然亲自判断什么值得追求,塑造自己的品格,选择自己的方向。

References参考文献

  1. 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.

  2. C. E. Shannon. A mathematical theory of communication. Bell System Technical Journal, 27(3):379–423 and 27(4):623–656, 1948.

  3. D. Kahneman. Thinking, Fast and Slow. Farrar, Straus and Giroux, 2011.

  4. 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.

  5. 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.

  6. L. Gao, J. Schulman, and J. Hilton. Scaling laws for reward model overoptimization. In Proceedings of ICML, pages 10835–10866, 2023.

  7. Anthropic. Model Context Protocol (MCP) specification. Open standard specification, 2024.

  8. Google. Agent2Agent (A2A) protocol specification. Open standard specification, 2025.

  9. T. Lebo, S. Sahoo, and D. McGuinness. PROV-O: The PROV Ontology. W3C Recommendation, 2013.

  10. 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.

  11. 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.

  12. 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.

  13. T. H. Haveliwala. Topic-sensitive PageRank. In Proceedings of WWW, pages 517–526, 2002.

  14. Z. Gyöngyi, H. Garcia-Molina, and J. Pedersen. Combating web spam with TrustRank. In Proceedings of VLDB, pages 576–587, 2004.

  15. 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.

  16. A. Ghorbani and J. Zou. Data Shapley: Equitable valuation of data for machine learning. In Proceedings of ICML, pages 2242–2251, 2019.

  17. 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.

  18. E. Horvitz. Principles of mixed-initiative user interfaces. In Proceedings of ACM CHI, pages 159–166, 1999.

  19. 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.

  20. D. Hafner, J. Pasukonis, J. Ba, and T. Lillicrap. Mastering diverse control tasks through world models. Nature, 640:647–653, 2025.

  21. M. Dudı́k, J. Langford, and L. Li. Doubly robust policy evaluation and learning. In Proceedings of ICML, pages 1097–1104, 2011.

  22. J.-B. Mouret and J. Clune. Illuminating search spaces by mapping elites. arXiv preprint arXiv:1504.04909, 2015.

  23. 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.

  24. 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.

  25. 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.

  26. 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.

  27. 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.

  28. V. Barres, H. Dong, S. Ray, X. Si, and K. Narasimhan. τ2-bench: Evaluating conversational agents in a dual-control environment. arXiv preprint arXiv:2506.07982, 2025.

  1. 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.
  2. C. E. Shannon. A mathematical theory of communication. Bell System Technical Journal, 27(3):379–423 and 27(4):623–656, 1948.
  3. D. Kahneman. Thinking, Fast and Slow. Farrar, Straus and Giroux, 2011.
  4. 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.
  5. 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.
  6. L. Gao, J. Schulman, and J. Hilton. Scaling laws for reward model overoptimization. In Proceedings of ICML, pages 10835–10866, 2023.
  7. Anthropic. Model Context Protocol (MCP) specification. Open standard specification, 2024.
  8. Google. Agent2Agent (A2A) protocol specification. Open standard specification, 2025.
  9. T. Lebo, S. Sahoo, and D. McGuinness. PROV-O: The PROV Ontology. W3C Recommendation, 2013.
  10. 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.
  11. 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.
  12. 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.
  13. T. H. Haveliwala. Topic-sensitive PageRank. In Proceedings of WWW, pages 517–526, 2002.
  14. Z. Gyöngyi, H. Garcia-Molina, and J. Pedersen. Combating web spam with TrustRank. In Proceedings of VLDB, pages 576–587, 2004.
  15. 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.
  16. A. Ghorbani and J. Zou. Data Shapley: Equitable valuation of data for machine learning. In Proceedings of ICML, pages 2242–2251, 2019.
  1. 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.
  2. E. Horvitz. Principles of mixed-initiative user interfaces. In Proceedings of ACM CHI, pages 159–166, 1999.
  3. 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.
  4. D. Hafner, J. Pasukonis, J. Ba, and T. Lillicrap. Mastering diverse control tasks through world models. Nature, 640:647–653, 2025.
  5. M. Dudík, J. Langford, and L. Li. Doubly robust policy evaluation and learning. In Proceedings of ICML, pages 1097–1104, 2011.
  6. J.-B. Mouret and J. Clune. Illuminating search spaces by mapping elites. arXiv preprint arXiv:1504.04909, 2015.
  7. 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.
  8. 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.
  9. 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.
  10. 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.
  11. 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.
  12. V. Barres, H. Dong, S. Ray, X. Si, and K. Narasimhan. τ2-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 Bt, fatigue ft, creative flow Humanistic signals σhum, capacity tuple Ct=(Bt,ft,flowt), Verify Rationality, Protect Lingji
L1: Local Heart Heart–Brain separation, zero vendor lock-in, local System 0 reflex, active self-distillation Personal Ontology ℒt, HEART-Mini v7 (0.8B L16 + 470 KiB 4-head coupler), affect_heart_sdk/
L2: Brain Coupling Outward Modulation (HAMA v2) and Fatigue-Aware Restraint (PPAI), constructive dissent, reversibility-aware mode gating, 1s revocation HAMA v2, PPAI, AffectionToken schema, HEART Bridge (venture/heart_bridge/)
L3: Inward Digestion Quiet-phase reflection (non-clock), rare-principle retention, anti-anchoring, isolated statistical gating Self-Affection v2, verified ConflictDAG, W3 sandbox, OS-isolated Watchman v2 (haap/core/watchman.py)
L4: External World Outcome-anchored trust, eligibility separation, anti-collusion, conserved credit, physical receipts AgentRank v2 (haap/core/agentrank.py), MCP/A2A adapters, PROV-O export

表7列出五层架构中各项设计原则对应的协议原语和参考实现。为v10发布准备的仓库另存有66项原则的完整溯源记录。

表7 五层同心圆、形式协议原语与参考实现
层次核心设计原则协议原语与已实现模块
核心 · 活生生的人不可逆生命史、可验证性缺口M=V⊔U、注意Bt、疲惫ft、创造心流人文信号σhum,容量元组Ct=(Bt,ft,flowt),验证理性、保护灵机
第一层 · 本地之心心脑分离、厂商零锁定、本地System 0反射、主动自蒸馏个人本体Lt、HEART-Mini v7(0.8B第16层与470KiB四头耦合器)、affect_heart_sdk/
第二层 · 耦合外脑外向调制(HAMA v2)与疲惫感知克制(PPAI),建设性异议,可逆性模式门,1秒撤权HAMA v2、PPAI、AffectionToken模式、HEART Bridge(venture/heart_bridge/)
第三层 · 内向整合安静期反思(不绑定钟点)、保留稀有原则、去旧锚、独立统计门Self-Affection v2、验证ConflictDAG、W3沙箱、OS隔离Watchman v2(haap/core/watchman.py)
第四层 · 外部世界结果锚定信任、资格分离、反合谋、信用守恒、物理回执AgentRank v2(haap/core/agentrank.py)、MCP/A2A适配器、PROV-O导出

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 J(P)≤U𝒱(P) for all feasible P∈ℱt, any infeasible Pbad with U𝒱(Pbad)−max⁡P∈ℱtU𝒱(P)>∑jwjv̂j(Pbad) achieves J(Pbad)>max⁡P∈ℱtJ(P). Under noisy predicates on ℐt, conditional factorization yields P(⋂j{ϕj≥τj}∣ℐt)=∏jpj, and without independence the union bound ∑j(1−pj)≤α preserves validity. ▫

Proof Sketch of Theorem 1.

(1) Write pc for aggregate response mass in class c. The template is the unique maximizer since ptmpl≥1−ε>1/2. The class distribution proportional to pc1/T concentrates there as T↓0. Deterministic class MAP emits its fixed representative given x, hence its conditional mutual information with Y* is zero. (2) Let E=𝕀[Ŷ(a↓,x)≠Y*]. Given X=x, its mean is at most δ. Fano’s inequality gives I(Y*;a↓∣X=x)≥H(Y*∣X=x)−h2(δ)−δlog⁡(|𝒴|−1), positive under the stated entropy threshold. For the branch Gram matrix Gij=⟨ei,ej⟩, the unit diagonal and nonnegative overlaps give K≤𝟏⊤G𝟏≤K+K(K−1)ρ. Effective branch diversity K2/(𝟏⊤G𝟏) therefore meets the stated bound. ▫

Proof Sketch of Theorem 2.

(1) Stacking 𝑹=(𝒓(1);…;𝒓(K))∈ℝNK writes Eq. (5) as 𝒯(𝑹)=(1−d)𝑽+d𝑴𝑹 with column-stochastic 𝑴 (the local anchor receives residual mass and every migration row sends one unit, including self-retention), giving ∥𝒯(𝑹)−𝒯(𝑹′)∥1≤d∥𝑹−𝑹′∥1 and a unique fixed point 𝑹* by Banach’s theorem. Summing Eq. (5) over i∈S and all k for any subset S with 𝒗S(k)=𝟎 and zero incoming redistributed flow yields ∑k∥𝒓S*(k)∥1≤d∑k∥𝒓S*(k)∥1, forcing ∥𝒓S*(k)∥1=0∀k. (2) In the two-domain dangling-node graph with q=dβ and CAB=CBA=1, the two stationary domain masses both equal one. Returning all within-domain mass to its own anchor gives 𝒓*(B)=(1−q)𝒗(B)+q𝒓*(A) and the symmetric equation for A. Substitution yields r*(B)=(𝒗(B)+q𝒗(A))/(1+q). Thus rsA*(B)=q1+q>1N(1+q)=rbi*(B)⇔N>1/q. With any positive anchor vsA(B)=ϵ>0 while local specialists split 1−ϵ, rsA*(B)=(ϵ+q)/(1+q)>(1−ϵ)/[N(1+q)] still holds for N>1/q, establishing that host eligibility ℰB cannot be replaced by positive anchoring alone. ▫

Proof Sketch of Theorem 3.

(1) Because Σt=Π(ℒt) has zero dependence on θcloud, any switch operator V altering only θcloud leaves proj⁡P(Σt) 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 (π′−π)(1−e*/ê)(Q̂−Q), 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 𝔼[ψj∣ℱj−1]≤0. Bounded predictable λj≥0 imply 𝔼[1+λjψj∣ℱj−1]≤1. Nonnegative factors yield a nonnegative supermartingale starting at one. Ville bounds a crossing of 1/αg by αg for each null generation; a union bound over generations gives FWER≤∑gαg≤α [23, 24]. Joint misspecification need not give nonzero bias because terms may cancel. ▫

引理1与2

条件熵的链式法则与条件互信息的定义立即给出引理1。引理2中,每个可行P∈Ft均有J(P)≤UV(P),故不可行候选只要满足UV(Pbad)−max⁡P∈FtUV(P)>∑jwjv^j(Pbad),就有J(Pbad)>max⁡P∈FtJ(P)。对带噪声谓词,若在It上条件分解,则P(⋂j{ϕj≥τj}∣It)=∏jpj;不要求独立时,∑j(1−pj)≤α通过并集界保持有效。□

定理1

以pc表示回复等价类c的概率总质量。模板质量ptmpl≥1−ε>1/2,故为唯一最大值。类概率按pc1/T归一化,T↓0时集中到模板。确定性类MAP在上下文x给定时输出其固定代表,与Y∗的条件互信息为零。

令E=I[Y^(a↓,x)≠Y∗];给定X=x,误差均值至多δ。Fano不等式给出I(Y∗;a↓∣X=x)≥H(Y∗∣X=x)−h2(δ)−δlog⁡(∣Y∣−1);在定理的熵阈值下为正。分支Gram矩阵Gij=⟨ei,ej⟩对角为1,非对角属于[0,ρ],因此K≤1⊤G1≤K+K(K−1)ρ;有效分支多样性K2/(1⊤G1)满足所述下界。□

定理2

将R=(r(1);…;r(K))∈RNK堆叠。式(5)为T(R)=(1−d)V+dMR。余量回到本域锚,所有迁移行(含自留)各发送一单位,故M列随机,∥T(R)−T(R′)∥1≤d∥R−R′∥1。Banach不动点定理给出唯一R∗。在零锚、外部重分配流入为零时,对S中节点及各域求和,得到∑k∥rS∗(k)∥1≤d∑k∥rS∗(k)∥1,故各域在S上的质量为零。

全悬垂两域中,q=dβ且CAB=CBA=1,两域平稳总质量各为1。域内质量全数归本域锚,故r∗(B)=(1−q)v(B)+qr∗(A),A域满足对称方程。代入得r∗(B)=(v(B)+qv(A))/(1+q)。因而q/(1+q)>1/[N(1+q)]当且仅当N>1/q。若外域专家得到微小正锚ϵ>0,本域专家平分1−ϵ,则当N>1/q时仍有(ϵ+q)/(1+q)>(1−ϵ)/[N(1+q)]。因此单凭正锚不足以实施宿主资格EB。□

定理3

Σt=Π(Lt)不依赖θcloud,因此,仅改动该权重的算子V保持proj⁡P(Σt)不变。

给定测试前历史,包括已冻结的候选策略π′、在用策略π与辅助估计。对每个新抽取的独立同分布留出样本,给定上下文的DR偏差是(π′−π)(1−e∗/e^)(Q^−Q)对动作求和。正支持保证比值有限;任一辅助模型正确,偏差为零。[21]零假设下,与此前留出抽样的独立性进一步给出E[ψj∣Fj−1]≤0。有界、可预测的非负λj使E[1+λjψj∣Fj−1]≤1;因子几乎处处非负,故乘积是初值为1的非负超鞅。Ville不等式给出每个零假设成立的世代越过1/αg的概率至多αg。跨代取并集,FWER≤∑gαg≤α。[23,24]两项都误设时,不同项也可能相消,因此偏差未必非零。□

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}}

上下行示例均通过haap/spec/affection_token.schema.json校验。模式将additionalProperties设为false,两份报文均可经MCP和A2A适配器往返还原。

上行 第二天修订为rev-v2后,第三天的简短跟进

{"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 ≥272/288) and 8/36 missed updates (required ≤3/36) 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 (β=0) routing success was 42.91% and 42.93%, respectively (p=0.299); 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 |Δlog⁡E|<10−11.
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 p=0.0117). 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 p=0.0391).
Diagnostic items Further excluding v4 diagnostic items b3c15d39 and c2ac3c61 leaves 229/398 vs. 222/398 (8 wins, 1 loss; exact paired p=0.0391). 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; p=0.5424). This comparison cannot isolate a single cause of the gain.
Table 11. Sierra τ2-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; p=0.625). The changes were evaluated together, so their individual contributions remain unresolved.
表8 冻结端侧评估与中间件回放
记录核验结果
冻结产物heads.npz(481,242字节)、blind_test.jsonl(288题)、blind_context_flips.jsonl(60对新题)的SHA-256前缀依次为33ec1200、23130767、28649bc5。另测6对历史题。
验收与延迟联合正确267/288(门槛≥272/288),遗漏更新8/36(上限3/36),总判定为pass_all=false。核心延迟记录latency_host.json标记clean=false,热态P50/P95为32.79/81.55ms。
回放与别名遥测SHA-256前缀ba451507,覆盖DeepSeek的5轮与Codex的15轮。别名替换将10,747个Unicode字符减至9,653个(−10.18%)。注册另需1,378个字符,首次共11,031个,比原文多284个;后续复用可摊销注册成本。
共享主机复测CPU负载低于10核,GPU采样负载为51%–98%。pytest通过20/21项,独立评估通过G1–G4。热态PreToolUse的P95为89.15ms(Claude Code)与94.93ms(Codex),均高于G5的50ms目标。
表9 路由消融与序贯检验核验
记录核验结果
AgentRank v2实验4的SHA-256前缀f75d1074对应1,638,400次路由。完整臂与无耦合臂(β=0)的路由成功率分别为42.91%与42.93%(p=0.299),未检验等效性(equivalence was not tested)。
Watchman v2OBP风格合成上下文老虎机中,betting="adaptive"在16个种子上复现全部决策与停止时刻,最大误差∣Δlog⁡E∣<10−11。
表10 LongMemEval_S既往评估、配对敏感性分析与排序对照
记录核验结果
全量样本v3已评估全部500题。验证图与基线分别答对282/500与273/500(10胜1负,精确配对p=0.0117)。知识更新由60/78增至66/78,7胜1负,唯一回退题为618f13b2。
开发批次排除前两批开发评估的100题后,验证图与基线为231/400对224/400(8胜1负,精确配对p=0.0391)。
诊断题再排除v4诊断题b3c15d39与c2ac3c61,结果为229/398对222/398(8胜1负,精确配对p=0.0391)。两次排除均为回顾性敏感性分析。
排序对照对验证图接受边数为零的条目追加跨日期排序,组合臂与单用验证图为277/500对282/500(19胜24负,p=0.5424)。该对照无法确定增益的单一原因。
表11 Sierra τ²-bench零售轨迹与实现修订
记录核验结果
授权记录v10.2的20条轨迹清单SHA-256前缀为359a1232。19次写调用均取得绑定预览的授权,其中任务16的一份授权覆盖3次调用。
配对修订从有门控的v10到v10.2,同时恢复首个JSON对象的解析与校验,并复用当前数据库中已核验的细节。26步上限下的超时由10次降至5次,无效动作由124次降至87次,终态匹配由6/20增至8/20(3胜1负,p=0.625)。两项改动同时引入,各自贡献无法分离。