Skip to content

fix(reuse): resend an agent's own report without reported_by too - #91

Merged
forrestlinfeng merged 1 commit into
mainfrom
claude/reuse-evidence-hub-schema
Nov 18, 2026
Merged

forrestlinfeng merged 1 commit into
mainfrom
claude/reuse-evidence-hub-schema

Conversation

@forrestlinfeng

Copy link
Copy Markdown
Contributor

What

When the Hub refuses a reuse report with validation_error, the plugin resends it once (added in 0464ced). The resend now drops both of the plugin's own evidence annotations: source, and reported_by.

Why

The Hub's reuseEvidenceSchema is .strict() and accepts only tier, applied, check, aborted and stage (evomap-hub src/schemas/a2a.js, origin/main). An agent's own report (agentReportedReportOf) carries reported_by: 'agent' as well as source: 'reported'. Because the resend removed only source, the Hub refused it a second time and the report was settled as rejected. Every agent-reported reuse report (MCP hosts, and hosts whose checks are not observed) therefore ended rejected.

These reports are tier none and weigh 0 in the Hub's scoring, so no score was lost. The fix stops a guaranteed rejection on every such report.

Not changed

  • Host-observed reports still go out with source first, as 0464ced chose, so they need no change once the Hub learns the field. Until then, each one takes a 400 and then a resend.
  • Reports rejected before v1.0.10 are not re-driven, as 0464ced decided.

Tests

  • New test: an agent's own report, refused for source, is resent with only the five evidence keys the Hub knows, and is settled as sent.
  • npm test: 1187 pass, 0 fail.

🤖 Generated with Claude Code

The Hub's reuse evidence schema is strict and knows neither `source` nor
`reported_by`. A refused report was resent without `source` only, so an
agent's own report, which also carries `reported_by: agent`, was refused
again and settled as rejected every time. Drop both on the resend.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@evomap-aiqa-bot

evomap-aiqa-bot Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Sentinel 已审核此变更,未发现需要报告的问题。

GitHub CI 未通过。 此状态来自当前 CI gate,不是 Sentinel finding;请以最新 CI attempt 的日志为准。

开发 agent 查询详情: 调用 MCP 工具 sentinel_pr_review_context,传入 owner_repo="evomap/evolver-agent-plugin"、pr_number=91、head_sha="74f13ad906722ad079f719010f0c215d14fda075",并按条目追加 finding_id 或 finding_key。

由 Sentinel 审核 · 目标提交 74f13ad90672

@forrestlinfeng
forrestlinfeng merged commit 41ee589 into main Nov 18, 2026
21 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant