Repository navigation
support poc generation - #1
Merged
Merged
Conversation
旧版管线的 finding 不带 qualification_gate_passed/disposition/cvss4_vector schema,被 _finding_qualification_passed 全部静默筛掉,--only-gen-pocs 直接 空跑退出且无任何告警。 - findings.py: 新增 legacy 准入——无 gate schema 标记且 critic verdict 为 confirm 的 finding 以 legacy_confirm 资格进入 PoC 生成;带 schema 的 finding 仍走严格 gate,confirm 不能绕过 - 三个 loader (group/standalone/chain) 统一走 _admit_finding,record 增加 qualification 溯源字段 - load_finding_records 增加可选 stats 出参,统计 considered/admitted_*/ skipped_* 计数 - poc_gen node 把 stats 写入 state (poc_selection_stats),cli 在 only-gen 模式输出 legacy 准入提示与筛选统计,不再静默空跑 - 新增 6 个测试(legacy 准入/跳过/schema 优先/group legacy/node stats/ cli 输出),全套 447 tests OK
Bug: --only-gen-pocs 首个 finding 的 plan_poc 三次尝试全部失败, 模型依次猜了 空kind/differential/crash 均被 validate_oracle_spec 拒绝, 随后交互式 RuntimeRecovery 在 nohup 下拿不到 stdin 直接终止整个批次。 - prompts.POC_PLAN 原来完全没写 OracleSpec schema,模型只能盲猜 kind; 现在新增 oracle_spec_schema() 契约,物化为 workdir/oracle_schema.json (遵循 prompt 只传路径、不内联 JSON 的约定),prompt 内写明合法 kind 枚举并禁止 crash/differential 等臆造 kind - recovery.py: ZEROMDASH_NONINTERACTIVE=1 时跳过交互式恢复提示,打印 警告并返回已记录的失败结果,单个 finding/subtask 失败不再拖死批次 - 新增 2 测试(plan prompt 契约 + 非交互恢复跳过),全套 449 tests OK
用户决定: PoC 生成应覆盖所有 severity>=medium 且 confirm 的 finding, 不再按字母序默认截断 8 个(旧行为导致只有 patch-* 被处理,spec/vuln 全被跳过)。 - findings.py: _admit_finding 增加 severity 地板(medium/high/critical), gate 通过或 legacy confirm 之外还须 severity>=medium;新增 skipped_low_severity 统计 - config.py: max_findings 默认 8 -> -1(不截断),显式正数仍按上限截断 - service.run: 仅当 max_findings>=0 时截断 - cli: legacy 提示文案改为 confirm-verdict + severity>=medium - 新增 5 测试(low/medium/缺 severity 跳过、gate low 跳过、uncapped/cap), 全套 454 tests OK - 真实 documentdb workspace 验证: 53 个 finding 中 11 个准入 (6 patch + 3 spec + 2 vuln),26 个 low severity 跳过 - patch 已先在测试机 git apply 验证(454 tests OK + 真实准入集合一致)后提交
基于 documentdb 12 个 validated PoC 的实战环境方案蒸馏: - 目标形态识别(服务端扩展/独立server/网关代理/嵌入式库/纯协议客户端) - runtime(官方镜像)与 observer(源码观测构建)分离的环境策略矩阵 - PG 扩展 ASan、Rust 网关 panic=abort、Go race、嵌入式 C harness、纯协议 五类构建配方 - oracle 观测配置(sanitizer/signal/output/state_invariant/markers) - benign/fixed reference/stock-vs-observer 三类对照 - 分层调试 playbook(沙箱→构建→可达性→profile→oracle→稳定性) - 证据与 environment_manifest 必备字段 挂载方式: prepare_environment_and_debugger 中英文 role card 显式引用 skills/database-repro-environment/SKILL.md,presets 物化时自动进入各 sub_workspace/skills/(已在测试机用 render_into 验证物化与 AGENTS.md 引用)。 新增 2 测试(skill 可被发现且 summary<=280、role card 引用存在), 全套 456 tests OK;patch 已先在测试机 apply 验证后提交。
新增 subtask_concurrency、chain_subtask_concurrency、poc_task_concurrency 三类任务的独立并发槽位配置,支持从 agent-config YAML 中解析并传递到各任务节点。实现 TaskPipeline 任务流水线类,用于 bounded 执行完整任务(含反馈重试循环),支持槽位控制、事件日志记录和上下文传递。重构图结构,将 subtask 和 chain_subtask 节点改为基于任务流水线的节点,替换原有的条件边调度,使各类任务拥有独立的并发控制,避免父图并发限制的影响。同时更新 CLI 配置解析、文档说明及相关测试,适配新的任务并发管理机制。
Chore: preserve current work before privacy rewrite Bug: summary 将 findings、primitives、observations 和结果文件路径全部 内联进 prompt,linux-ipmi-kcs 输入达到 1,168,155 字符,超过 Codex turn/start 的 1,048,576 字符上限,三次重试均在模型执行前失败。 - 新增 summary_inputs helper,将汇总数据集和 manifest.json 写入 log/summary_inputs/,prompt 仅传递记录数量、JSON 路径和报告规则 - 普通 summary 与 gather summary 统一采用文件引用,要求 agent 按 ID/字段分批读取,完整覆盖输入,避免再次集中输出大块数据 - 结果文件索引同步外置,保留 canonical 覆盖 legacy、排除未发布 hypothesis artifacts 的规则及现有资格过滤、排序和报告校验 - 更新中英文 README 与 workspace 布局说明 - 新增 3 个回归测试,覆盖大型输入、重试、结果索引和 gather 汇总; 174 个相关测试通过 - 实际失败输入离线重放:prompt 极端情况下减少 95% +,各类记录和结果文件索引完整保留
- introduce review_oracle_mismatch phase and codex backend - allow verification to use injectable OracleMatcher - review hard oracle mismatches before rejecting observations - add prompts and tests for structured marker observations
- resolve node focus before building the invocation - append mandatory execution constraints to the prompt when focus exists - reuse the computed focus value for the retry invocation chore: update gitignore and bump version - ignore artifacts and docs/security directories - bump project version to 0.2.0
- add English role preset for read-only evidence review - add zh_CN role preset for read-only evidence review - restrict review scope to supplied records and preserve original evidence
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.
No description provided.