Skip to content

feat: add experimental GitHub Copilot CLI host support - #89

Open
imxyanua wants to merge 6 commits into
EvoMap:mainfrom
imxyanua:codex/copilot-cli
Open

imxyanua wants to merge 6 commits into
EvoMap:mainfrom
imxyanua:codex/copilot-cli

Conversation

@imxyanua

Copy link
Copy Markdown
Contributor

Summary

Adds an experimental Evolver extension for GitHub Copilot CLI 1.0.112 interactive sessions on Windows. Load it from $COPILOT_HOME/extensions/evolver with --experimental and approve hook registration in Copilot.

SDK prompt hook → shared Recipe recall
Native shell events → bind the foreground exit code to the originating message
session.idle → report completed work or discard the interrupted interaction
Manual evolver-distill → exact range reference → private draft
  • Keeps native Stop continuations in the same interaction until session.idle.
  • Skips recall when the user pastes the generated distillation prompt. Manual distillation submits persist: false and publish: false. The CLI displays the Proxy's stored or draft outcome.
  • Adds a packaged layout check and runs the Copilot suite in the hosted Windows Node 22/26 matrix.

Evidence

  • Before: A harness that treated the first agentStop as terminal produced 2 reports and 1 candidate before Ctrl-C. The private IR prompt also went through Recipe recall in the regression test.
  • After: On native Windows CLI 1.0.112, a competing Stop hook continued the interaction after a passing test. Ctrl-C left 0 reports, 0 candidates, and 0 drafts. A completed control yielded 2 reports and 1 candidate after session.idle. On the final bundle, a forced exit before idle kept the report and candidate counts unchanged. Resuming the same session attributed the next check to its own turn. These lifecycle runs used loopback fixtures.
  • The final bundle also ran with GitHub Copilot and Evolver Proxy 2.0.51. It injected a real Hub Recipe, saved a verified candidate, and listed 1 private draft after the manual handoff. The pasted distillation prompt caused 0 recall requests and 0 tool calls. Fixture reports stayed local and publication was disabled.
  • Copilot tests passed on Windows Node 22 and 26. A local full-suite Linux Node 22 attempt timed out in Cursor and failed a Step Code fixture. Upstream CI will exercise the PR head.

Merge Danger

Door: Two-way. Disable the extension by removing its bundle from the profile. Its local work and drafts remain in the profile's separate Evolver state directory.

Blast Radius: Copilot. The shared distillation request keeps the existing persistence default for other hosts. Headless completion is outside this draft's scope.

@evomap-aiqa-bot

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

Copy link
Copy Markdown

Sentinel 已审核此变更,并发现 2 个已核验问题。

无法定位到 diff 的已核验问题

失败或未完成的验证命令仍会被报告为成功回合

🔴 严重程度:高(P1)
toolCompleted 会记录任意安全整数退出码,包括非零失败码,但 settle 只检查 turn.incomplete,没有要求所有 Shell 调用成功完成,也没有检查 call.exit === 0。因此验证命令失败或仍处于 running 状态时...(truncated)

Finding:finding_a8dc419231ce6a9514983984 · 文件:hosts/copilot/dist/adapter.js · 详情:/api/v1/aiqa/findings/finding_a8dc419231ce6a9514983984

当前为 advisory 仓库:这些 item 会逐条保留,但不阻塞合并。

另有 13 个需要人工确认的风险;黄色 advisory 不阻塞合并,建议开发 agent review advisory 评论并逐条确认。

审核覆盖提示: 2 个 hunk/条目缺少完整输入;它们不作为 bug 报告。

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

由 Sentinel 审核 · 目标提交 37ee6b3da946

@evomap-aiqa-bot

Copy link
Copy Markdown

Sentinel 保留了 13 个尚未确认的审核候选。这些黄色条目不阻塞合并;红色 P0/P1 与其他独立硬门禁不受影响。 单一猜测、缺少变更行证据或纯 checklist 的候选会统一降为 P3。
开发 agent:请 review 以下 advisory,并逐条给出“已验证无风险 / 已修复 / 转为后续事项”的结论;不要只做整体确认。

  • [P3] 测试将重复 session.idle 结算当作两次有效报告 — 测试复用同一个 settlement 事件调用两次 host.emit('session.idle', ..., settlement),却断言产生两�...(truncated) · test/hosts/copilot/interactive.test.js · advisory_110942c2a0f5d32517c66a76
  • [P3] assistant.message 中的敏感内容绕过脱敏并进入终端记录 — 工具命令和工具输出分别通过 withoutSecrets() 脱敏,但 assistant.message 的 data.content 直接写...(truncated) · hosts/copilot/dist/adapter.js · advisory_e905132c25a57d551c470be1
  • [P3] Copilot 打包入口依赖的 adapter.js 未列入打包契约 — 当前新增入口明确依赖同目录的 adapter.js,但新增的打包布局契约只声明 extension.mjs 与 b...(truncated) · hosts/copilot/dist/extension.mjs·advisory_475e80bcb0c11bb7eaef7d8c`
  • [P3] Copilot 生命周期事件在适配器与发布链路中语义漂移 — security_boundary_01 指出适配器存在终止与 turn 状态处理问题;release_integrity_01 进一步指出 C...(truncated) · hosts/copilot/dist/adapter.js`、`hosts/copilot/profile.js · advisory_6f6468247acffe70866fd8f9
  • [P3] Copilot 的 terminal 事件被错误映射为 TURN_END,导致原生 shell 检查无法形成��...(truncated) — 新 profile 将 terminal 直接映射为 EVENTS.TURN_END,同时声明 session_start、prompt、terminal、s...(truncated) · hosts/copilot/profile.js·advisory_956bf9ed9d8b7eab864835de`
  • [P3] Copilot 适配器未被纳入发布产物链 — 当前改动只在 CI 中新增了 npm run test:copilot,但发布工作流的 npm run pack 仍需确认是否实��...(truncated) · .github/workflows/release.yml · advisory_0b0294a46d943092504c12c6
  • [P3] 代理持久化策略被默认开启,可能扩大敏感数据保留范围 — profile.persistDistillationInProxy !== false 将缺少该字段的所有 profile 都转换为 true,从而向 proxy...(truncated) · lib/runtime/environment.js · advisory_b90ae3658b36efe5872b39bb
  • [P3] 新增 Copilot 打包路径未接入现有发布校验 — PR 新增了 Copilot 的 pack.json 和专用测试脚本,但现有 validate 脚本仍只执行 claude plugin vali...(truncated) · ``package.json`` · advisory_3b8748481686efb107795cd6`
  • [P3] 未关联 turn/session 的迟到终止事件可结束新 turn — assistant.* 和工具事件会校验 turnId、interactionId 或消息关系,但 abort 无条件修改当前 tu...(truncated) · hosts/copilot/dist/adapter.js · advisory_b369b401d9a3941c1a81828b
  • [P3] 终态上报失败仍清除 turn,导致失败结果无法重试或被错误归档 — 适配器在终态上报失败后仍提前清除当前 turn;同时失败或未完成的验证命令仍会被报告为�...(truncated) · hosts/copilot/dist/adapter.js · advisory_a7d8b811b908bc07ee46b1ce
  • [P3] 评审覆盖状态与切片结果不一致,无法证明打包文件已被完整验证 — size_report 将 6 个 hosts/copilot/dist/* 文件列为 skipped_files,且只统计 12 个 reviewable files;但...(truncated) · ``hosts/copilot/dist/adapter.js、hosts/copilot/dist/extension.mjs`、`hosts/copilot/dist/pack.json...(truncated)` · `advisory_a5f86ccc089d857969e4db8c`
  • [P3] 迟到终止事件可能结束新 turn — 终止事件未关联 turn/session,而当前 turn 状态可能已被清除并复用。旧 turn 的迟到终止事件...(truncated) · hosts/copilot/dist/adapter.js · advisory_584f4ad689251765f59b768c
  • [P3] Copilot 工具参数脱敏对嵌套凭据形式的覆盖范围未证实 — 当前可见代码仅显示命令通过 withoutSecrets(command) 脱敏后写入 turn.calls,但完整的 withoutSe...(truncated) · ``hosts/copilot/dist/adapter.js`` · advisory_b98321fc27108258609b3525`

需要完整证据时,可用行末 finding_key 查询 Sentinel PR review context。

由 Sentinel 审核 · 目标提交 37ee6b3da946

Comment thread hosts/copilot/dist/adapter.js Outdated
const settle = async ({ aborted = false, complete = false } = {}) => {
const turn = current;
if (!turn) return;
current = null;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

终态上报失败后仍提前清除当前 turn

🟠 严重程度:中(P2)
settle() 在等待 terminal 上报成功前先执行 current = null。如果异步 raise('terminal') 拒绝,外层 ordered() 会吞掉失败,但当前 turn 已不可恢复;在 endSession() 路径中,异常还会阻止 session_end 和 session = null。事件 ID 已加入 seen,同一终态事件也无法重放。

Finding:finding_0e8e2340dc426b2fe30ddee3

@evomap-aiqa-bot

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

Copy link
Copy Markdown

Sentinel 已审核此变更,未发现已核验问题,但发现需要人工确认的风险。

另有 8 个需要人工确认的风险;黄色 advisory 不阻塞合并,建议开发 agent review advisory 评论并逐条确认。

审核覆盖提示: 2 个 hunk/条目缺少完整输入;它们不作为 bug 报告。

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

由 Sentinel 审核 · 目标提交 6835d7a5b46c

@evomap-aiqa-bot

Copy link
Copy Markdown

Sentinel 保留了 8 个尚未确认的审核候选。这些黄色条目不阻塞合并;红色 P0/P1 与其他独立硬门禁不受影响。 单一猜测、缺少变更行证据或纯 checklist 的候选会统一降为 P3。
开发 agent:请 review 以下 advisory,并逐条给出“已验证无风险 / 已修复 / 转为后续事项”的结论;不要只做整体确认。

  • [P2] 助手最终回答绕过脱敏并进入终端记录 — assistant.message 的最终回答直接保存原始 data.content,而 settle() 将其直接作为 terminal.answe...(truncated) · hosts/copilot/dist/adapter.js·advisory_fff90b43d9a35479c24ea367`
  • [P3] 测试将重复的 session.idle 事件视为两次有效结算 — 测试先保存一次 session.idle 事件,随后使用同一个事件对象和同一个事件 ID 再次调用 host....(truncated) · ``test/hosts/copilot/interactive.test.js`` · advisory_fd7e335b76887e3221272790`
  • [P3] Copilot 打包契约遗漏 adapter.js 运行时依赖 — 新增入口在第 5 行静态导入同目录的 ./adapter.js,但当前 PR 为 Copilot 新增的打包契约只声��...(truncated) · hosts/copilot/dist/extension.mjs · advisory_4a57843bfd136426112bea37
  • [P3] Copilot terminal 事件可能被错误归一化为回合结束 — 当前 profile 将 terminal 直接映射为 EVENTS.TURN_END,但配套文档同时描述了独立的原生 shell ��...(truncated) · hosts/copilot/profile.js · advisory_1a34a20de57470ae2125d32b
  • [P3] 重复 session.idle 会重复提交同一次交互报告 — 测试把同一个 settlement 事件对象连续派发两次,并明确断言产生两条成功报告。候选存储�...(truncated) · test/hosts/copilot/interactive.test.js · advisory_deea90f8e35c0625419328a9
  • [P3] 单次 session.idle 结算产生两份相同报告 — 新测试在只发送一次 session.idle 的失败和“失败后成功”路径中,明确期望 host.queued 包��...(truncated) · test/hosts/copilot/interactive.test.js · advisory_6d7652f264c5daefad483ca5
  • [P3] 延迟的旧 session 事件可以结算当前新回合 — eventOf() 只按 event.id 去重,并在存在 current 时直接处理生命周期事件;session.idle 没有�...(truncated) · hosts/copilot/dist/adapter.js · advisory_147279408f573e6b5640b618
  • [P3] 架构测试对 Copilot 动态 SDK 依赖形成无替代门禁的豁免 — 新增的 bundledSdk 条件会让架构测试跳过该动态外部包的依赖检查。当前 diff 没有同步增加 ...(truncated) · test/architecture.test.js · advisory_87dd7bb8b1c01c26202d33a9

需要完整证据时,可用行末 finding_key 查询 Sentinel PR review context。

由 Sentinel 审核 · 目标提交 6835d7a5b46c

@evomap-aiqa-bot

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

Copy link
Copy Markdown

Sentinel 正在审核此变更,尚未形成最终结论。

大 PR 拆片审核中

  • Sentinel 判断这个 PR 规模较大,已经拆成多个 slice 分别审核,所以会比普通 PR 花更久。
  • 当前 check 会保持进行中;这不是绿色通过,也不是红色阻塞。
  • Sentinel 会继续完成 slice review、Cross-Slice Verifier 和聚合;如果后续发现红区问题,会更新本 head 的审核结论。
  • 规模等级: large
  • Slice 数量: 9

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

由 Sentinel 审核 · 目标提交 66d803840296

@cursor

cursor Bot commented Nov 17, 2026

Copy link
Copy Markdown

Bugbot needs on-demand usage enabled

Bugbot uses usage-based billing for this team and requires on-demand usage to be enabled.

A team admin can enable on-demand usage in the Cursor dashboard.

@evomap-aiqa-bot

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

Copy link
Copy Markdown

Sentinel 已审核此变更,并发现 1 个已核验问题。

另有 13 个需要人工确认的风险;黄色 advisory 不阻塞合并,建议开发 agent review advisory 评论并逐条确认。

审核覆盖提示: 2 个 hunk/条目缺少完整输入;它们不作为 bug 报告。

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

由 Sentinel 审核 · 目标提交 e4d90e596c25

@evomap-aiqa-bot

Copy link
Copy Markdown

Sentinel 保留了 13 个尚未确认的审核候选。这些黄色条目不阻塞合并;红色 P0/P1 与其他独立硬门禁不受影响。 单一猜测、缺少变更行证据或纯 checklist 的候选会统一降为 P3。
开发 agent:请 review 以下 advisory,并逐条给出“已验证无风险 / 已修复 / 转为后续事项”的结论;不要只做整体确认。

  • [P3] 命令行 Cookie 参数仍可绕过新增脱敏规则 — 新增规则只匹配带显式 Cookie: 或 Set-Cookie: 字段的文本,例如 -H 'Cookie: sid=...'。常见的 c...(truncated) · lib/redact.js · advisory_5710a34463594d665f7faabc
  • [P3] 助手最终回答绕过脱敏边界 — 当前 PR 对 shell 命令和工具输出调用了 withoutSecrets(),但 assistant.message 的 data.content 直��...(truncated) · hosts/copilot/dist/adapter.js · advisory_22cf96339e98032ce369a347
  • [P3] 架构测试对 Copilot 动态依赖形成过窄的豁免 — 当前 PR 新增 bundledSdk 特判后,该入口中的指定动态外部依赖不再受架构层包依赖策略约束...(truncated) · test/architecture.test.js · advisory_638f1e9326f6c691b03b8e40
  • [P3] Copilot terminal 事件可能被错误当作完整回合结束 — 当前 profile 将 terminal 直接映射为 EVENTS.TURN_END,但新增使用说明明确要求适配器配对原生...(truncated) · hosts/copilot/profile.js · advisory_c5447fc424ce91047901a291
  • [P3] 先截断后脱敏会丢失凭据识别上下文 — data.result.content.slice(-2000) 在 withoutSecrets() 之前执行。如果 Cookie:、Authorization: 等识别��...(truncated) · hosts/copilot/dist/adapter.js · advisory_b4b55ca6da71ccdf9dcf63d8
  • [P3] Copilot 打包产物没有经过发布前可加载性校验 — 当前新增的 Copilot 测试在打包前运行,随后只执行通用 npm run pack,没有检查实际生成的 Co...(truncated) · .github/workflows/release.yml · advisory_9facb8b333b7435baeb14a86
  • [P3] Copilot 发布包未声明运行时入口与依赖 — 当前新增的 plugin.json 仅包含名称、描述、版本和仓库元数据,没有声明 adapter.js 为入口�...(truncated) · hosts/copilot/dist/plugin.json · advisory_a1c19751c590f325fae88446
  • [P3] Copilot 发布包的入口、依赖和校验契约未闭合 — 多个切片分别发现:打包扩展入口可能与 adapter.js 路径不匹配、包根入口路径可能不一致�...(truncated) · hosts/copilot/dist/pack.json · advisory_274d8a29defec54601602d9f
  • [P3] 打包后的扩展入口与 adapter.js 路径可能不匹配 — extension.mjs 使用 ./adapter.js,要求适配器与入口位于同一目录;新增打包契约却把它列为 ...(truncated) · hosts/copilot/dist/extension.mjs·advisory_0f08e346d46eee553939bfdf`
  • [P3] 旧回合事件可关闭新回合,且终端事件可能放大状态机错误 — 安全切片已验证:事件去重窗口耗尽后,旧的 session.idle 仍可能结算新的回合。发布切片��...(truncated) · hosts/copilot/dist/adapter.js · advisory_4f31644732592c75b79df5ee
  • [P3] 脱敏规则在不同输入和输出路径上不一致 — 新增脱敏逻辑与多个调用路径没有形成统一边界:命令行 Cookie 参数可能绕过规则,助手最�...(truncated) · lib/redact.js · advisory_b1581de6959a521613e78e25
  • [P3] Copilot 打包契约可能遗漏运行时依赖 — 新增 entries 只声明 hosts/copilot/dist/extension.mjs 与 bin/command.mjs,而根入口通过 hosts/copilot/...(truncated) · ``hosts/copilot/dist/pack.json`` · advisory_c44264be74a71aa30d894b7d`
  • [P3] Copilot 打包契约中的入口路径可能与实际包根不一致 — 新增契约同时使用了相对包根的 extension.mjs、bin/command.mjs,以及带仓库路径的 hosts/copilot...(truncated) · ``test/packed-layout.test.js`` · advisory_0fdbcf7c72c02ea12d13a4fa`

需要完整证据时,可用行末 finding_key 查询 Sentinel PR review context。

由 Sentinel 审核 · 目标提交 e4d90e596c25

return;
}
seen.add(event.id);
if (seen.size > MAX_EVENT_IDS) seen.delete(seen.values().next().value);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

事件去重窗口耗尽后,旧 session.idle 事件可结算新回合

🟠 严重程度:中(P2)
seen 只保留最近 MAX_EVENT_IDS = 4096 个事件 ID;超过上限后最早的 ID 会被删除。旧 session.idle 事件再次到达时会被当成新事件处理,但 eventOf() 没有校验事件所属的 session、turn 或 interaction 是否仍然匹配当前状态,直接调用 settle({ complete: true })。因此旧回合的重放事件可以提前结算当前新回合,生成错误的 answer 或 error terminal 结果。

Finding:finding_2499e7ce6dde0b3556427cce

@evomap-aiqa-bot

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

Copy link
Copy Markdown

Sentinel 已审核此变更,未发现已核验问题,但发现需要人工确认的风险。

另有 14 个需要人工确认的风险;黄色 advisory 不阻塞合并,建议开发 agent review advisory 评论并逐条确认。

审核覆盖提示: 2 个 hunk/条目缺少完整输入;它们不作为 bug 报告。

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

由 Sentinel 审核 · 目标提交 275264fe872c

@evomap-aiqa-bot

Copy link
Copy Markdown

Sentinel 保留了 14 个尚未确认的审核候选。这些黄色条目不阻塞合并;红色 P0/P1 与其他独立硬门禁不受影响。 单一猜测、缺少变更行证据或纯 checklist 的候选会统一降为 P3。
开发 agent:请 review 以下 advisory,并逐条给出“已验证无风险 / 已修复 / 转为后续事项”的结论;不要只做整体确认。

  • [P1] 修复打包遗漏后,extension.mjs 与 adapter.js 的包内路径仍不匹配 — extension.mjs 静态导入同目录的 ./adapter.js,但新增打包契约明确要求产物包含的是根目录 ...(truncated) · hosts/copilot/dist/extension.mjs·advisory_f77f61c9027d4da36163ec36`
  • [P2] 未加引号的 Cookie Header 会吞掉整行后续命令 — 新增兜底正则用 [^\r\n]* 匹配 Cookie 值,因此对 curl -H Cookie:sid=abc https://example.test/status --fai...(truncated) · lib/redact.js·advisory_97b33075effe2be981c3c61b`
  • [P3] 终端上报失败后关闭会话会丢失待发送结果 — settle() 在生成 pendingTerminal 后会先尝试发送 terminal;如果 channel.handle('terminal') 失败,两...(truncated) · hosts/copilot/dist/adapter.js · advisory_a65a22c0d8582211092c762c
  • [P3] 有界事件去重缓存失效后,旧的 session.idle 可结算新回合 — seen 只保留最近 MAX_EVENT_IDS = 4096 个事件。旧的 session.idle 事件 ID 被淘汰后再次重放时,...(truncated) · hosts/copilot/dist/adapter.js · advisory_c4f6643440aad4183890044d
  • [P3] 缺少有效时间戳的旧 session.idle 事件可结算当前回合 — 代码只在 Date.parse(event.timestamp) < current.timestamp 时拒绝旧事件。timestamp 缺失、格式非法或...(truncated) · hosts/copilot/dist/adapter.js · advisory_6bb4a42448b5f6e7a29111c1
  • [P3] 架构测试对 Copilot 动态依赖形成过窄豁免 — 当前 PR 将“该依赖应已被打包”硬编码为测试豁免条件,但测试没有验证 SDK 实际存在于发...(truncated) · test/architecture.test.js · advisory_4066614e776818a9a64e31da
  • [P3] Copilot 发布包的入口、适配器路径与依赖声明不一致 — 服务编排切片修复了打包遗漏,但包内 extension.mjs 与 adapter.js 的引用路径仍不匹配;同��...(truncated) · ``hosts/copilot/dist/extension.mjs、hosts/copilot/dist/adapter.js`、`hosts/copilot/dist/plugin.js...(truncated)` · `advisory_e4b72de28d8508c4e82865d4`
  • [P3] Copilot 插件清单未声明实际运行入口及运行时依赖 — 本次新增了 hosts/copilot/dist/adapter.js,但 plugin.json 仅包含名称、描述、版本、作者、仓库�...(truncated) · hosts/copilot/dist/plugin.json · advisory_90a3611016a993f77694f146
  • [P3] session.shutdown 后仍可重新创建并写入已结束会话 — session.shutdown 和 onSessionEnd 只调用 endSession(),清空 current、结束当前 channel session,但��...(truncated) · hosts/copilot/dist/adapter.js · advisory_a05951ed3c886ff82aa28c74
  • [P3] terminal 事件与 session.idle 结算协议发生跨模块漂移 — release slice 将 terminal 错误映射为回合结束,而安全边界 slice 的会话状态机仍依赖有效的 s...(truncated) · ``hosts/copilot/profile.js、lib/app/distill-run.js、hosts/copilot/dist/adapter.js`` · advisory_d869930cfa5976808b4b3e7e`
  • [P3] terminal 被错误映射为回合结束,可能绕过 session.idle 结算 — 当前 profile 将 Copilot 的 terminal 事件直接归一化为共享层的 EVENTS.TURN_END,但同一 PR 的使��...(truncated) · hosts/copilot/profile.js · advisory_63e4323f1d4f79f107a78ae5
  • [P3] 会话关闭与结果上报的生命周期契约未闭合 — 安全边界 slice 分别发现“上报失败后关闭会话会丢失待发送结果”和“session.shutdown 后仍�...(truncated) · hosts/copilot/dist/adapter.js`、`hosts/copilot/dist/extension.mjs · advisory_1282213b1d8756d47f677f78
  • [P3] 插件清单未声明适配器及其运行时依赖 — 新增的 plugin.json 只有名称、版本和仓库等元数据,没有声明 adapter.js 的入口或其运行时�...(truncated) · hosts/copilot/dist/plugin.json · advisory_4b04b0494cf90bcc7a0fd210
  • [P3] 架构测试的动态依赖豁免会掩盖发布清单缺失 — 架构测试对 Copilot 动态依赖设置了过窄豁免,而 API/安全切片已发现插件清单没有声明实际�...(truncated) · test/architecture.test.js`、`hosts/copilot/dist/plugin.json · advisory_b5bf73fd796d995733e31cbe

需要完整证据时,可用行末 finding_key 查询 Sentinel PR review context。

由 Sentinel 审核 · 目标提交 275264fe872c

@evomap-aiqa-bot

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

Copy link
Copy Markdown

Sentinel 已审核此变更,未发现已核验问题,但发现需要人工确认的风险。

另有 15 个需要人工确认的风险;黄色 advisory 不阻塞合并,建议开发 agent review advisory 评论并逐条确认。

审核覆盖提示: 2 个 hunk/条目缺少完整输入;它们不作为 bug 报告。

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

由 Sentinel 审核 · 目标提交 0257c1a372c8

@evomap-aiqa-bot

Copy link
Copy Markdown

Sentinel 保留了 15 个尚未确认的审核候选。这些黄色条目不阻塞合并;红色 P0/P1 与其他独立硬门禁不受影响。 单一猜测、缺少变更行证据或纯 checklist 的候选会统一降为 P3。
开发 agent:请 review 以下 advisory,并逐条给出“已验证无风险 / 已修复 / 转为后续事项”的结论;不要只做整体确认。

  • [P1] Copilot 入口移至包根目录后无法解析运行时依赖 — 新增打包契约要求产物在根目录包含 extension.mjs,但入口仍按源码目录结构导入 ./adapter.js...(truncated) · hosts/copilot/dist/extension.mjs·advisory_921692c646d63028a524f739`
  • [P2] 裸 Cookie Header 正则会吞掉同一行的非敏感内容 — 新增正则使用 [^\\r\\n]* 作为 Cookie 值的结束条件,会从第一个 Cookie 赋值一直匹配到整行末...(truncated) · lib/redact.js · advisory_53febdc0b5f7e31cd42ede9c
  • [P3] 事件去重窗口耗尽后,旧的 session.idle 可重复结算新回合 — seen 只保存最近 MAX_EVENT_IDS 个 ID。旧 idle ID 被删除后再次收到时,会被当作新事件;idle �...(truncated) · hosts/copilot/dist/adapter.js · advisory_9a529a8cac9a9d09dfc34653
  • [P3] 旧的或无效时间戳的 session.idle 可结算新会话回合 — eventOf() 只在 Date.parse(event.timestamp) < current.timestamp 时拒绝旧事件。缺失或非法时间戳会产...(truncated) · hosts/copilot/dist/adapter.js · advisory_93cf58fa7c39800fc153712c
  • [P3] 终端上报失败后关闭会话会永久丢失结果和 session_end — settle() 最多调用两次 flushTerminal()。当两次 channel.handle('terminal') 都失败时,pendingTerminal...(truncated) · ``hosts/copilot/dist/adapter.js`` · advisory_7d5cac1b2ec213add57cb6b4`
  • [P3] 助手最终回答绕过脱敏并进入终端记录 — assistant.message 的 data.content 被写入 turn.step.answer,而命令和工具输出使用了 withoutSecrets(...(truncated) · ``hosts/copilot/dist/adapter.js`` · advisory_ba5da337e88c1feb33f6a5a0`
  • [P3] 将单次 terminal 事件映射为完整回合结束 — 当前 profile 把 terminal 直接映射为共享层的 EVENTS.TURN_END,而新增适配器说明明确要求先配...(truncated) · hosts/copilot/profile.js · advisory_566ef1f35b555328b4661374
  • [P3] 架构测试对 Copilot 动态 SDK 依赖形成过窄豁免 — 本次修改把特定动态 SDK 导入直接视为 bundledSdk,因此架构测试不再验证该 SDK 是否实际被�...(truncated) · test/architecture.test.js · advisory_f540f0eb84c7c367cd195c8b
  • [P3] Copilot 发布包入口与运行时依赖不一致 — 入口迁移到包根目录后,入口仍无法解析 adapter.js 或其他运行时依赖;同时发布清单未声�...(truncated) · ``hosts/copilot/dist/extension.mjs、hosts/copilot/dist/root/extension.mjs`、`hosts/copilot/dist/p...(truncated)` · `advisory_c7dd047b6e6a3a40c023d6f1`
  • [P3] Copilot 发布包的入口与运行时依赖未形成可验证的打包契约 — 当前新增的 plugin.json 只有元数据,没有声明入口文件;新增的 hosts/copilot/dist/adapter.js 又...(truncated) · hosts/copilot/dist/plugin.json · advisory_3a2b743b80de95d45f80d96a
  • [P3] 发布清单未声明 adapter.js 及其运行时依赖,安装包可能无法加载 — 当前新增的 plugin.json 只有名称、版本、仓库等元数据,没有声明 adapter.js、入口文件或��...(truncated) · hosts/copilot/dist/plugin.json · advisory_e1eaaeedebc24535afa8240e
  • [P3] 无效或类型不匹配的时间戳可使旧会话事件作用于当前回合 — 旧事件仅在 Number.isFinite(current.timestamp) 且 Date.parse(event.timestamp) < current.timestamp 时被拒绝�...(truncated) · hosts/copilot/dist/adapter.js · advisory_3596f3f045b1a9afb12ecc5b
  • [P3] 旧的或无效时间戳 session.idle 可结算当前回合 — 事件去重集合只保留最近 MAX_EVENT_IDS 个 ID;旧事件被淘汰后可再次处理。时间检查只拒绝 ...(truncated) · hosts/copilot/dist/adapter.js · advisory_8b10478699dd4662682092a4
  • [P3] 终端事件的提前结算与上报失败路径可能永久丢失结果 — 一侧将单次 terminal 事件映射为完整回合结束,另一侧的关闭流程在终端上报失败后仍结束...(truncated) · hosts/copilot/dist/adapter.js`、`lib/app/distill-run.js · advisory_f5f713bcd76e360448821aab
  • [P3] 过期或无效的 session.idle 可结算当前或新回合 — session.idle 的时间戳未被严格校验为当前会话/当前回合事件。旧事件可作用于当前回合;��...(truncated) · hosts/copilot/dist/adapter.js · advisory_96146a12db7466a4f9b335fe

需要完整证据时,可用行末 finding_key 查询 Sentinel PR review context。

由 Sentinel 审核 · 目标提交 0257c1a372c8

@imxyanua
imxyanua marked this pull request as ready for review November 17, 2026 11:55
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