Repository navigation
feat(evolution): member-scoped attribution, clusters and patches (#814) - #823
Merged
Shadow-Azure merged 5 commits intoDec 5, 2026
Conversation
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.
变更
实现 issue #814:归因、聚类与 edit patch 共享成员身份。
probe_reports;self case 只归上报成员。新增evolution_run_candidate_probesrun 级关联记录全部报告(唯一键 run+case+member),evolution_run_candidates.probe_id只保留首个指针。对象级报告只在候选集合为空时兜底;单成员/历史缓存键与路径不变。member_id;LLM 审查校验禁止跨成员合并,超限分批与降级桶都按(type, member);probe_clusters.member_id持久化(migration 0044)。CandidateTrace.member由簇成员解析;allowed_paths只含该成员sub_dir,prompt/commit 写该成员;对象级保留并集兜底。member_id=null的历史报告/簇/轮次只读兼容,不重写;评测仍是 run 级一个分数。检视修复
已按 检视记录 修复:
bad_cases/probe_reports的外部表外键按 0006/0020 约定加has_table守卫,运行期bootstrap_external_tables=False不再依赖外部表;补 run+case+member 唯一键,cache key 变化时原地更新关联而不是留两行。_source_sub_dir,更新 repair 注释。设计/原型对齐
实现按
plans/fullstack-design/18§5.2/§5.4、07§5.5.2/§5.5.4 与plans/ui-prototype-v2/design-v2.md§7.1.1 落地;UI 行为与plans/ui-prototype-v2/harness-evolution.html的 member-scope 原型一致。真实应用冒烟
本地启动真实 API + Web(demo fixture + SQLite),种子数据为 2 个成员、2 个 bad case、3 份归因报告(1 个 discovery case 产生 2 份成员报告)、2 个成员簇、0 个跨成员簇;1440×1000,浅色主题。截图只含 demo 数据,不含生产凭据。
da40229d)e850df5b)冒烟断言:Before 为 main 真实应用,2 条报告(discovery 对象级 + self 成员)、1 个混合簇;After 为 PR head 真实应用,2 个成员、2 个 bad case、3 份报告(discovery 产生 2 份成员报告)、1 个多成员 case、2 个成员簇、0 跨成员簇。第 4 步 discovery case 显示
2 份成员报告,成员分别为code-generator与codespec-subagent-driven-development;第 5 步按成员分组、每簇单成员 chip。两者同为 1440×1000、浅色主题、同一 demo run/工作区。验证
api-static、build-lane、db-sqlite、mysql (5.7)、mysql (8.4)、unit-tests-api3/3、unit-tests-web、e2e4/4、e2e-integration、flow-online、docs-flow、web-static、deploy-contract全部通过(heade850df5b)pnpm test:web -- src/pages/evolution929 passed / 1 skipped;pnpm test:api全量 2784 passed;pnpm test:db27 passedpnpm test:e2e -- --pattern "783"、--pattern "m10-06"通过;pnpm typecheck、typecheck:api、contract:check、lint:api、verify:flow-online、verify:docs通过已知限制
member_id=null不重写。This pull request was produced by dsh-superagent under the ZTGolem account.