Repository navigation
fix(reuse): resend an agent's own report without reported_by too - #91
Merged
Merged
Conversation
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>
|
Sentinel 已审核此变更,未发现需要报告的问题。 GitHub CI 未通过。 此状态来自当前 CI gate,不是 Sentinel finding;请以最新 CI attempt 的日志为准。 开发 agent 查询详情: 调用 MCP 工具 由 Sentinel 审核 · 目标提交 74f13ad90672 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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, andreported_by.Why
The Hub's
reuseEvidenceSchemais.strict()and accepts onlytier,applied,check,abortedandstage(evomap-hubsrc/schemas/a2a.js, origin/main). An agent's own report (agentReportedReportOf) carriesreported_by: 'agent'as well assource: 'reported'. Because the resend removed onlysource, 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
noneand weigh 0 in the Hub's scoring, so no score was lost. The fix stops a guaranteed rejection on every such report.Not changed
sourcefirst, 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.Tests
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