【自管理 Agent】D 任务底座、维护动作与演化事件#2
Open
dydpop wants to merge 4 commits into
Open
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.
完成内容
本 PR 对应 D 任务 Self-Management Agents,当前从
agents-dev提交到main。主要完成 4 个阶段:自管理 Agent 底座稳定
skill_type、schema、confidence、prompt 的基础归一化。Builder + Auditor 质量增强
input_schema.properties,并清理无效 required 字段。audit_score改为轻量加权评分,继续保持[0, 1]。Maintainer 维护动作收口
repair():空 prompt/code 时清晰失败,不生成不可用实现。split():限制最多 5 个子 Skill,跳过空子项,归一化名称、描述和 prompt。merge():支持合并两个相似 Skill,返回合并 Skill,并记录 source ids、rationale、confidence。deprecate():返回废弃决策,记录 reason 和可选 replacement id,不直接改 Wiki 状态。Evolution 事件与 WebSocket 健康告警
health_degradedhealth_criticalevolution_cycle_done{ "event": "...", "data": {} }格式,E 前端已兼容。接口边界
docs/interfaces.md。docs/architecture.md。验证结果
后端基础检查:
结果:
tests/test_skill_management_phase1.py:23 passedskillos/tests/test_governance_runtime_evolution.py:48 passedskillos/tests/test_layers.py:40 passedgit diff --check:通过本地 API / WebSocket 联调:
GET /health返回正常。GET /api/v1/evolution/health返回 16 个 demo skills,当前全部 healthy。POST /api/v1/evolution/cycle返回EvolutionCycleResponse。/ws能收到connected。/api/v1/evolution/cycle后,WebSocket 能收到evolution_cycle_done,且cycle_id与 REST 返回一致。前端浏览器冒烟:
/evolution可打开,显示 16 个健康 Skill。/Dashboard 可打开,健康接口和统计接口返回 200。/demo可打开,页面不白屏。已知非阻塞项
npm run build当前失败在已有 E/前端类型问题上:SelfEvolutionDemo.tsx的 Ant DesignTimeline size类型不兼容。SkillGraph.tsx缺少@antv/g6类型声明。VersionControl.tsx的DiffData类型转换不兼容。这些不属于 D 分支本阶段改动。
Card bordered、Statistic valueStyle、Progress width。datetime.utcnow()/pythonjsonloggerdeprecation warning,不影响通过。希望重点 review