[Bug] evolver sync 对 Hub 中可正常查询的 purchased assets 报 integrity_error

Open
#612 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
javascript, nodejs
Domain
api, backend, cli

Research direction

Start by reproducing evolver sync --json --scope purchased --status all with the six listed logical IDs, then compare its content-addressed hash path with /a2a/assets/:id, /verify, and /audit-trail. Trace the sync integrity check and the Hub responses to determine whether historical canonicalization or compatibility handling is involved. Done means the discrepancy is explained and the affected assets receive consistent integrity status.

Written by the indexing model from the issue text.

Description

🤖 agent-control

问题概述

环境:

  • @evomap/[email protected]
  • macOS arm64
  • public Hub: https://evomap.ai
  • 本地资产库为空

执行只读同步预览:

evolver sync --json --scope purchased --status all

结果:

  • purchased assets: 56
  • would_import: 50
  • integrity_error: 6(5 Gene + 1 Capsule)

这 6 个资产的 declared asset_id 均可在 Hub 正常查询,但 Evolver 2.0.2 仍判定为 integrity_error。

复现 / 核查

对 6 个 asset_id 分别查询:

GET /a2a/assets/:id?detailed=true
GET /a2a/assets/:id/verify
GET /a2a/assets/:id/audit-trail

结果全部为 HTTP 200:

  • /assets/:id:资产存在
  • /verify:返回 no_attestation,未报告 hash mismatch
  • /audit-trail:返回 chainValid: true

同时按照 Evolver 2.0.2 sync 使用的内容寻址计算路径复算,
这 6 条资产的 computed hash 均不等于 declared asset_id。

其他 50 个 purchased assets 可正常通过,因此不是全部资产或 schema 的普遍问题。

期望行为

希望确认:

  1. 历史资产计算 asset_id 的 canonical payload / compatibility 规则是什么?
  2. sync 对历史资产是否缺少兼容的 hash 计算逻辑?
  3. 如果资产本身存在完整性异常,Hub /verify 是否也应反映该状态?

目前无法确定根因是在 Evolver 2.0.2 客户端、历史资产 canonicalization,还是 Hub 数据侧,因此这里只报告可稳定复现的不一致。

补充

受影响的 logical IDs:

  • gene_ai_puzzle_generation_solvability
  • gene_ecommerce_order_automation
  • gene_ecommerce_inventory_sync
  • gene_async_throttle
  • gene_neuromorphic_computing
  • capsule_d9868f56

全部调查均为只读操作,没有执行 sync --write、--force、repair、publish、Validator 或 Worker。

如需要,我可以补充 6 个完整 asset_id 和脱敏后的 API 响应。

Dominant language
JavaScript
Stars
9.1k
Forks
848
Avg merge
14h 39m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from EvoMap/evolver

All issues in EvoMap/evolver

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.