18
StateFuse: Deterministic Conflict-Preserving Memory for Multi-Agent Systems
Editorial reading guide · 编者导读
为什么值得读
这篇值得做成 worked essay,不是因为它发明了新的 CRDT join——作者反复否认这一点——而是因为它把 agent memory 最常被悄悄吞掉的三件事变成 public contract:分歧是否被显式保留、修正到底指向一个 assertion 还是一个 semantic class、downstream resolver 能否把选择写回历史。close read 与本地测试合在一起后,真正有用的结论更尖锐:merge substrate 的确定性只管同一组 immutable operations;要让 replica 的 semantic view 也可复现,还必须绑定 interpretation contract。
Source-backed paraphrase
论文在解决什么
StateFuse 把 replicated memory 拆成两个容易被混淆的层:immutable OpSet 负责让 operation set 收敛,predicate registry、conflict detector、resolver 与 query constraints 再把这个集合解释成可行动的 view。
Source-backed paraphrase
关键抓手
- Contract boundary:StateFuse 以 immutable EvidenceAdded / ClaimAdded / ClaimRetracted / DecisionAdded operations 构成 OpSet;materialization 先计算 effective claim refs、应用 exact / semantic tombstones、过滤 inactive claims,再为 functional keys 生成显式 ConflictSet。projection 可以选择、abstain 或 fail closed,但不能修改 base memory。(§§3.2–3.4;Figure 1,PDF pp. 5–7)
- Dual correction handles:arXiv v1 将 claim_id 定义为 assertion-local identity,将 claim_ref 定义为由 claim key 与 predicate-governed value contract 导出的 cross-replica semantic handle。(arXiv v1 §§3.2–3.3;Appendix A.1、A.3–A.4)
- Paper result:在 282-question MemoryAgentBench conflict-bearing slice 上,aggressive StateFuse、flat multi-value、raw log 与 collapsed baselines 同为 97.5% final accuracy;显式 conflict-preserving surfaces 的差异主要是 100% conflict recall。uniform-verification synthetic loop 中 conservative non-collapsing surfaces 同到 100% post-verify success,而 collapsed surface 为 60% 且有 40% post-verify false confidence。(§4.2;Tables 2–4,PDF pp. 9–11)
Source-backed argument map
论证怎样成立
01 · 先把 merge 与 interpretation 拆开
论文接受标准 OpSet set-union 作为 convergence substrate;它的研究对象不是新的 join,而是 operations 收敛之后,memory 怎样形成 active claims、conflicts 与 task-scoped projection。
§§1、2.1、3.3;Appendix A.1–A.3,PDF pp. 1–3、6、14–15
02 · 把 disagreement 留在 public surface
materialization 不以 latest-write 覆盖 functional-key disagreement,而是发出 ConflictSet;resolver 的 authority 被限制在 projection,resolution 失败或 abstention 仍留下 unresolved/surfaced conflict 与 explanation。
§§3.3–3.4;Figures 1–3,PDF pp. 6–9
03 · 用 matched policy budget 收窄 empirical claim
strong flat conflict-preserving baselines 在 answer accuracy 与 conservative operating point 上能追平 StateFuse;因此论文把贡献收窄为 contradiction surfacing、abstention 与 auditable semantic correction 的 contract,而不是 universal accuracy gain。
§§4.2–5.3;Tables 2–5,PDF pp. 9–12
Source-backed method notes
方法与监督
OpSet materialization and projection
Merge 对 immutable op_id 做 set union;materialization 以 sorted traversal 建索引、派生 refs、应用 exact/semantic tombstones、按 ClaimKey 分组并生成 conflicts。build_view 读取 materialized state 与 constraints,由 deterministic conservative resolver 或受 schema 限制的 optional LLM resolver 形成 separate projection。
§§3.3–3.4;Appendix A.1–A.3,PDF pp. 6–7、14–15
Paper evaluation layers
主 evidence 是 converted official MemoryAgentBench conflict-bearing slice 与每种 surface 共享 verification budget 的 50-task synthetic agent loop;另用 13-task deterministic handle ablation 比较 claim_id / claim_ref。paper tables 报 final accuracy、false certainty、conflict recall、recoverability 与 abstention quality,但本次本站 audit 没有重跑这些 datasets/runs。
§§3.6、4.1–4.3;Tables 2–5,PDF pp. 7–12
Paper-reported findings
报告了什么
- aggressive official-slice comparison中,StateFuse、flat multi-value、raw log 与 collapsed latest-write 都是 97.5% final accuracy;StateFuse 与 flat conflict-preserving surfaces 为 100% conflict recall,raw log/collapsed 为 0%。这支持 surface distinction,不支持 unique answer-accuracy gain。(§4.2;Table 3,PDF pp. 9、11)
- conservative official-slice operating point 中,StateFuse、StateFuse core、MV register 与 provenance surface 都为 64.9% accuracy、100% conflict recall、2.1% false certainty;raw log conservative 同为 64.9% accuracy 但 0% conflict recall。(Tables 2–3,PDF pp. 10–11)
- uniform-verification 50-task loop 中,五个 conservative non-collapsing surfaces 都从 80% pre-verify 到 100% post-verify success、0% post-verify false confidence;collapsed surface 从 40% 到 60%,仍有 40% false confidence。该 loop deterministic,paper 因此没有给 confidence intervals。(Tables 2、4,PDF pp. 10–11)
- 13-task correction-handle ablation 中,claim_ref 为 100% final accuracy / no-resurrection / ID-target match / semantic-target recoverability;claim_id 为 76.9% / 76.9% / 100% / 0%。这是 paper 对 semantic handle expressivity 的主要支持。(§4.3;Table 5,PDF pp. 9–10、12)
AMS audit · 本站复核与实验
AMS 复核与实验
以下为本站对固定代码、公开记录或原创场景的检查;适用范围以所链接的方法与记录为准。
检查对象与观察
- 本条 worked essay 所附的 synthetic contract audit 在锁定的 StateFuse 0.3.0 source 上显示:在这些 preregistered fixtures 中,byte-identical operations 仍可因 deterministic interpretation contracts 不同而产生不同的 conflict、activity、resolution lifecycle 与 projection;这收窄的是 replay precondition,不构成 OpSet merge law 的反例。
- 锁定的 0.3.0 official source 进一步显示,default ref payload 包含 key 与 value,仅在 non-default 时包含 kind、在 non-empty 时包含 context;validity、confidence、timestamp、evidence、provenance 与 derivation identity 不进入该 payload。semantic retraction 会使共享该 ref 的 claim instances 失活,包括随后才进入 merged OpSet 的 instances。(arXiv v1 §§3.2–3.3;Appendix A.1、A.3–A.4,printed PDF pp. 5–6、14–15;official source src/statefuse/model.py 与 src/statefuse/materialize.py)
- Executed synthetic result:锁定 0.3.0 source 上的 8 个 exact fixtures、17 个 fixed-contract constructor-permutation groups 与 428 个 raw state/projection rows 满足 preregistered H1/H2 gates。每个 fixed-contract group 各自产生一个 state digest 与一个 projection digest。该结果未测试 merge-tree equivalence、实现内部 replay-path independence 或跨环境重现。(public synthetic contract test)
本站已记录的结果
- 本地 H1 中,byte-identical operations 在不同 deterministic equality/ref/detector contracts 下改变 conflict formation、effective refs、inactive sets、candidate membership、resolution lifecycle 与 projection;declared detector v2 control 把 behavior change 移到新的 visible locus。H2 中 same-ref retraction 同时停用 disjoint-validity Monday/Tuesday claims,而 exact-ID、changed-context 与 changed-value controls 保留 Tuesday claim。(public synthetic contract test)
展开复核方法与推论
Preregistered interpretation-contract audit
H1 的 equality、semantic-handle normalization 与 detector/lifecycle strata 在 paired treatments 中锁定 canonical operation JSON、OpSet hash、query constraints、resolver、serialization、locale/timezone;H2 使用 Monday/Tuesday disjoint validity claims,比较 no retraction、exact-ID、same-ref、changed-context 与 changed-value controls。每个 fixed-contract OpSet 穷举全部 2、6 或 120 个 constructor permutations。
research/statefuse-interpretation-contract-audit/PREREGISTRATION.md;raw/cases.jsonl
Source, suite and reproduction receipts
runner 锁定 arXiv PDF hash、official commit、package version、14 个 source/test/manuscript blobs 与自身 source hash;记录 pytest collect/run 全输出,重算 428 rows 的 payload digests 与 H1/H2 decision,再在同一 invocation 内完整执行 second pass,对八个 primary files 做 byte comparison。
research/statefuse-interpretation-contract-audit/raw/source_manifest.json;raw/environment.json;raw/reproduction.json
04 · 再问 fixed OpSet 是否已经足够
论文的 replayability 明示 fixed predicate registry、resolver 与 constraints;本地 audit 进一步显示 current source 没有把 registry/detector implementation identity 写进 shared OpSet。same-contract replay 仍稳定,但 cross-contract replicas 可以对同一 operations 形成不同 semantic views。
§3.2;Appendix Proposition 6,PDF pp. 5、15;official source 79a6229…;public H1 audit
05 · 把 correction scope 当 ontology 选择
semantic ref 是故意设计的 broad correction handle。它能解决 missing-ID / unseen-target correction,也会让不同 validity occurrences 在 semantic identity 相同时共享 tombstone;应用必须明确自己要 correction assertion、occurrence 还是 semantic class。
§§3.2–3.3、4.3;Table 5;Appendix A.1、A.4,PDF pp. 5–6、9–10、12、14–16;public H2 audit
Evidence boundary
仍未证明什么
- 论文的 strongest external evidence 是一个 converted MemoryAgentBench conflict-bearing slice;本站没有取得并独立重算这 282 questions 的转换、predictions 或 aggregate,也没有重跑 50-task agent loop 与 13-task handle ablation,因此这些数字保持 paper-reported。
- uniform-verification loop 与 handle ablation 是 controlled deterministic evaluations,没有 repeated stochastic runs 或 confidence intervals;论文也没有 large naturally arising trace study、broad benchmark portfolio 或 endpoint-specific live LLM comparison。(§5.5,PDF pp. 12–13)
- H1 只证明 exact StateFuse 0.3.0 在四组 newly authored synthetic fixture strata 上允许 cross-contract semantic divergence;它不估计 replica contract drift 的生产频率、损害、攻击可利用性、整体 reliability 或对其他 versions 的适用性。
- H2 组合的是 source 已明确的 broad semantic tombstone 与 validity-independent default ref identity。它证明 recurrence consequence,不证明 library bug、data loss 或错误 ontology;需要 occurrence-local correction 的应用可以把 occurrence 编入 key/value/context,或使用 exact-ID handle。
- 同一 fixed contract 下的 17 个 permutation groups 全部产生单一 state/projection digest;因此当前结果不能被写成 merge-order nondeterminism、OpSet commutativity/associativity/idempotence failure 或论文 Propositions 1–2 的 same-contract counterexample。
- repository 的 paper/main.tex 在 locked commit 中是标题和实验叙述均不同的 unpublished successor manuscript。official suite 的 139 passed/0 skipped 是本地 source execution receipt,不能反向替代 arXiv v1 的 paper-reported evidence或被说成 paper reproduction。
Source audit · observation and consequence kept distinct
原文内部张力
Same OpSet 不是完整 replay identity
Appendix Proposition 1 将 benign-replica convergence 写成 O1 = O2 ⇒ M(O1) = M(O2),但 Proposition 6 的 projection replayability 明确还要求 fixed predicate registry、resolver 与 constraints;official source 接受 pluggable equality/ref normalization 与 conflict detectors,却没有把一份 shared contract digest 绑定进 OpSet。
定位:§3.2;Appendix Propositions 1、6,PDF pp. 5、15 · official source 79a6229… predicate registry / detector paths · public H1 raw decision
编者 consequence:对外引用 convergence 时必须补全 interpretation precondition。可复现 semantic view 的 identity 是 operations 加 contract/query/projection inputs,而不是 operation bytes 单独决定。
Semantic correction 的优势与范围来自同一机制
Paper-reported:arXiv v1 在 contract 层将 claim_ref 描述为由 claim key 与 predicate-governed value contract 导出的 semantic handle,并规定 semantic-handle retraction 的 no-resurrection 语义。Official-source observation:锁定的 0.3.0 default implementation 具体将 key/value、non-default kind 与 non-empty context 纳入 ref payload,同时将 validity 与其他 occurrence metadata 留在 payload 之外。H2 因此属于 exact-source synthetic audit 的 correction-scope observation,不是 arXiv v1 报告的实验结果。
定位:§§3.2–3.3、4.3;Table 5,PDF pp. 5–6、9–10、12 · official source model/materialize paths · public H2 raw decision
编者 consequence:missing-ID recoverability 与 cross-occurrence tombstone carryover 不能被当作无关特性:handle 的 semantic identity 越宽,correction reach 越强,应用越需要明确 recurrence / occurrence ontology。这只识别一个 locked implementation 与 fixture family 产生的 correction granularity,不证明 paper contradiction、defect、vulnerability 或普遍更优的 occurrence ontology。
arXiv v1 与 repository manuscript 必须分层
reviewed arXiv v1 题为 StateFuse: Deterministic Conflict-Preserving Memory for Multi-Agent Systems;locked repository 的 paper/main.tex 是题为 StateFuse: Taxonomy-Aware Conflict-Preserving Memory for Heterogeneous Agent Systems 的 unpublished successor manuscript。两者共享 project lineage,但不是同一个 reviewed evidence object,其主张或 test counts 不向 arXiv v1 反向转移。
定位:arXiv:2607.05844v1,PDF p. 1 · official source 79a6229… paper/main.tex · public source manifest
编者 consequence:essay 只把 PDF pp. locators 归给 arXiv v1;current source/manuscript 用 exact commit 与 unpublished-successor 标签单列,不能用后来的 code/tests/manuscript 修补 paper claim。
Editorial synthesis / question
编者判断
Merge convergence is not view convergence · Editorial inference — not tested by the paper
replicated memory 的一致性至少有两个 axes:operation membership 是否收敛,以及相同 operations 是否在相同 semantic contract 下得到同一 active/conflict/projection view。只给 OpSet hash 只能回答第一问。
这是对 paper replay preconditions 与 H1 synthetic result 的 architecture synthesis;不是新 CRDT theorem、形式证明或对 StateFuse merge implementation 的 failure claim。
Interpretation contracts need deployable identity · Editorial inference — not tested by the paper
normalizer、equality、claim-ref derivation、detector behavior 与 detector ID 应形成可比较的 manifest/version,并在 replica handshake、snapshot、migration 与 audit receipt 中共同出现;deterministic source code 仍可能是另一份 deterministic contract。
audit 证明 current exact source 不强制 cross-replica contract identity;它没有验证某一种 manifest protocol、rolling upgrade mechanism 或 distributed deployment。
Correction handles are ontology, not only API ergonomics · Editorial inference — not tested by the paper
claim_id、claim_ref 与 occurrence-bearing identity 分别回答“撤回这次 assertion”“撤回这类 semantic assertion”“撤回这个时段/事件实例”。把它们 collapse 成一个 retraction endpoint,会让 correction authority 的范围只能靠 payload accident 决定。
H2 展示 current default identity 的 controlled consequence;不同 domain 可以合理选择不同 granularity,本站没有宣布 universal correct ontology。
Surfacing conflict and authorizing action are separate · Editorial inference — not tested by the paper
ConflictSet 让 disagreement 变得可见,但不会替 agent 决定何时 abstain、验证、选择或请求 human review。一个 auditable memory surface 是 action governance 的输入,不是 authorization 本身。
paper 的 bounded resolver contract 与 synthetic loop 支持分层阅读;它没有测 human oversight、real-world action cost 或 high-stakes deployment safety。
继续追问
如果 operations 已经 byte-identical,但 replicas 没有共同绑定 predicate registry、claim-ref derivation 与 detector implementation identity,我们究竟是在复制同一份 memory,还是只复制了同一份待解释的历史?
继续追问与实践
经验在什么条件下能够提高当前能力?环境、版本或适用范围改变以后,怎样继续受益,又不被过去误导?
持续研究 · 当前判断可修订
工具参数、配置 schema 或工作经验随版本改变,但旧环境仍然在使用;或多个来源对同一范围给出不同建议时。
编者建议 · 目标侧待验证
Editorial transfer · 编者设计建议
读完,可以怎样借用
基于既有精读与本条明确标注的证据范围整理;下面针对新场景的迁移对照尚未执行。
- 什么时候有用
- 同一份操作历史要在多个副本上解释,或撤回操作需要区分一次断言与一类语义主张。
- 可以借哪一步
- 同时记录 operation identity 与解释规则的版本;在设计撤回接口时说清它针对 assertion、语义内容还是具体事件实例。
- 先做什么对照
- 把同一组 operations 交给不同 normalizer / detector 配置,比较 active 与 conflict view;再加入内容相同但时间不同的断言,检查撤回范围。
- 带走时的边界
- 迁移到你的项目的对照未执行。已有 synthetic audit 限于锁定实现与 fixtures,不是 OpSet merge law 的反例,也未验证分布式 rollout。
阅读依据:既有札记 §§3.2–3.4、Appendix A.1/A.3–A.4;公开测试 H1/H2。
Editorial protocol · proposed, not run
可复核的下一步
Proposed · not run
Replica contract-manifest and rolling-migration protocol
当 replicas 在 registry、claim-ref derivation 或 detector version 上滚动升级时,什么 manifest/handshake contract 能让 semantic-view divergence 被拒绝、显式隔离或可审计迁移,而不重写 immutable history?
- Method
- 在 fixed OpSets 上引入 canonical contract manifest,分别执行 same-version replay、silent behavior drift、declared-version change、mixed-version rolling window 与 explicit migration projection;每次 merge/materialize 前比较 manifest identity,并把 reject/quarantine/dual-view/migrate 四种 policy 写成独立 treatments。
- Public / synthetic fixtures
- 复用 H1 equality、ref-normalization 与 detector/lifecycle OpSets,再增加 old-ref/new-ref 并存、old detector resolution 对 new candidate set 失效、semantic tombstone 跨 identity-version 与 snapshot restore cases。
- Controls
- byte-identical operations、fixed query/resolver/serializer、same-contract positives、manifest-only negative、behavior-different same-ID adversarial control、declared-version control、clean restart 与 two-replica exchange;不使用 model、live connector 或 private trace。
- Measures
- 分别报告 operation-set convergence、manifest agreement、state/projection digest agreement、rejected/quarantined operations、dual-view exposure、resolution carryover、retraction reach 与 migration reversibility;任何 automatic rewrite 都必须保留 old/new provenance。
- Limitations
- 这是 proposed-not-run deployment-contract protocol。它不能从当前 local fixtures 推出 production prevalence、network partition behavior、Byzantine safety、schema-migration policy或最佳 user-facing resolution experience。
Attributed public perspectives and tests
署名观点与测试
Interpretation-contract binding and semantic-reference recurrence audit
- Method
- Lock the paper, source commit, package version, source/test blobs, registry/detector descriptors, resolver, queries and serializers; run the complete official suite; execute all permutations for eight exact fixtures; store 428 schema-versioned state/projection snapshots; recompute every payload digest and derive H1/H2 decisions from raw fields; then repeat the full pass and byte-compare the primary outputs.
- Environment
- macOS 26.5.2 arm64;CPython 3.13.3;pytest 9.1.1;StateFuse imported from a reader-supplied clean exact checkout;socket network guard around every custom registry/detector invocation;no model, API, credential, benchmark trace, live connector or private data.
- Fixture
- H1 uses raw/folded equality, raw/folded semantic-handle normalization, detector A/B vs A/B/C under a silent same-ID drift, and a declared detector-v2 control. H2 uses disjoint Monday/Tuesday validity occurrences with none, exact-ID, same-ref, changed-context and changed-value treatments, each queried at Tuesday noon and valid_at=None where applicable.
- Controls
- Canonical operation JSON and OpSet SHA-256 equality across paired contracts; exact case/group/result matrix; exhaustive 2/6/120 constructor permutations; fixed query, resolver, locale/timezone and serializer; source/paper/blob locks; complete pytest receipts; raw-payload rederivation; same-invocation fresh second pass; checked file-set manifest and clean source checkout.
- Raw result
- The official suite collected and passed 139 tests with zero skips. Eight fixtures produced 17 same-contract permutation groups and 428 raw rows; every group had one state digest and one projection digest. H1 equality, ref-normalization, detector/lifecycle and declared-version strata matched their preregistered field-level expectations. H2 same-ref retraction deactivated both disjoint-validity claims; exact-ID and identity-changing controls preserved Tuesday. All eight primary files byte-matched the fresh second pass.
- Derived result
- At the exact 0.3.0 source, byte-identical immutable operations do not alone determine one materialized/projected view across different deterministic interpretation contracts. The tested differences can change conflict formation, effective semantic handles, activity, candidate membership, resolution applicability and projection. Default semantic-ref tombstones also cross validity occurrences that share semantic identity. Every tested fixed-contract constructor-permutation group produced one state digest and one projection digest; merge-tree equivalence and implementation-internal replay-path independence were not tested.
- Limitations
- The fixtures are deliberately small synthetic contract cases and do not estimate prevalence, harm or performance. The audit does not reproduce paper benchmarks, evaluate models/connectors, exercise distributed networking or concurrency, prove formal properties, label semantic-ref behavior incorrect, or establish that real deployments use mismatched contracts. Same-environment byte reproduction is not cross-platform reproducibility.
Evidence basis:Paper-facing audit of arXiv:2607.05844v1 and official nZiben/statefuse commit 79a6229f83a7b174a2a9ac8fd0ace267ae30e79b (package 0.3.0), with exact source/test blobs, the repository's separately labeled unpublished manuscript, and newly authored synthetic fixtures.
Boundary:This is a preregistered, model-free synthetic interpretation-contract test. It is not a paper benchmark reproduction, model or connector evaluation, CRDT merge-law counterexample, security vulnerability, bug declaration, production frequency/harm estimate, or validation of the repository successor manuscript's experiments.
method, result and claim boundaries ↗ · frozen preregistration ↗ · reproducible runner ↗ · raw-rederived decision ↗ · evidence-package readiness boundary ↗ · fresh reproduction receipt ↗ · exact source manifest ↗
Shared readings
放到一起读
一条更正之后 →
将冲突状态保留为可检查对象,读者才能知道系统为什么没有给出单一结论。
本演示不实现 StateFuse 的算子或声称通过其 reference semantics。
串读定位:状态 / conflict-preserving representation;见材料的 method notes 与 public audit
含当前正文、出处、阅读范围与接续线索;链接的全文不随包附带。