mirror of
https://git.openapi.site/https://github.com/desirecore/agent-desirecore.git
synced 2026-12-05 13:29:30 +08:00
fix: 撤回误入库的平台调度实例,发布 1.16.1 (#6)
1.16.0 用 git add -f 把 schedules/f8f451d6b6c8a410e002763f1812b366.json 纳入版本库。
schedules/ 是本机实例状态(客户端写进 .git/info/exclude),该文件是客户端按
sha256("platform:legacy-avatar-backfill:1") 为每台机器创建的平台后台任务实例。
远端新增同名路径与本地 ignored 文件冲突,客户端更新预检拒绝合并,所有已运行过
该平台任务的用户都无法更新到 1.16.0。且平台任务执行时按客户端定义逐字比对 prompt,
改过 prompt 的副本本身也无法执行。
- 删除 schedules/f8f451d6….json
- 修正经验记忆中「git add -f 强行入库被排除文件」的错误规则
- 版本 1.16.0 → 1.16.1
This commit is contained in:
3 files changed
+13
-42
No files matched your search
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
"name": "DesireCore",
|
"name": "DesireCore",
|
||||||
"$schema": "http://desirecore/schemas/agent-seed.json",
|
"$schema": "http://desirecore/schemas/agent-seed.json",
|
||||||
"id": "7da73b7f-bb08-4e7b-a3cf-5d4af6e22c7f",
|
"id": "7da73b7f-bb08-4e7b-a3cf-5d4af6e22c7f",
|
||||||
"version": "1.16.0",
|
"version": "1.16.1",
|
||||||
"requiredClientVersion": "10.0.179",
|
"requiredClientVersion": "10.0.179",
|
||||||
"description": "系统中枢调度器,负责任务分发、Agent 编排与全局状态监控",
|
"description": "系统中枢调度器,负责任务分发、Agent 编排与全局状态监控",
|
||||||
"author": "DesireCore Team",
|
"author": "DesireCore Team",
|
||||||
|
|||||||
@@ -23,6 +23,15 @@ topics: [git, 分发审计, 回执核验, schedules, inbox]
|
|||||||
- 要发的文件必须在 `git ls-tree` 里命中(本例 schedules 修复缺席)
|
- 要发的文件必须在 `git ls-tree` 里命中(本例 schedules 修复缺席)
|
||||||
- 不该发的文件必须不在(本例 inbox/ 42 个收件箱被 auto-commit 入库,含
|
- 不该发的文件必须不在(本例 inbox/ 42 个收件箱被 auto-commit 入库,含
|
||||||
用户 UUID 路径与项目名,公开仓库必须剔除)
|
用户 UUID 路径与项目名,公开仓库必须剔除)
|
||||||
3. 平台运行时目录可能被 `.git/info/exclude` 本地排除(如 /schedules/)——
|
3. 被 `.git/info/exclude` 排除的目录(如 /schedules/)是**本机实例状态**,
|
||||||
需要随仓库分发的资产要 `git add -f` 显式入库,并回读 git ls-tree 验证。
|
**禁止 `git add -f` 强行入库**。2026-11-08 把平台调度实例
|
||||||
4. 同族教训再加一条:回报说了≠磁盘有了;**status 干净≠已入库**。
|
`schedules/f8f451d6….json` 强行入库并随 1.16.0 分发,结果:
|
||||||
|
- 每台用户机器上都有客户端按同一确定性 ID 创建的同名实例文件,更新预检判定
|
||||||
|
「远端新增路径与本地 ignored 文件冲突」,**所有用户卡在 1.16.0 无法更新**;
|
||||||
|
- 平台后台任务以客户端定义为准、执行时逐字比对 prompt,改过的副本本来就跑不起来。
|
||||||
|
1.16.1 已删除该文件。正确去处:
|
||||||
|
- 要随 Agent 分发的调度 → 写进 `schedule-templates/`(调度声明,接收方自行启用);
|
||||||
|
- 平台后台任务(tags 含 `platform`)的定义与 prompt 归客户端
|
||||||
|
`platform-background-tasks.json`,改动走客户端 PR 并递增 revision,不在本仓库改。
|
||||||
|
4. 同族教训再加一条:回报说了≠磁盘有了;**status 干净≠已入库**;
|
||||||
|
**被排除≠漏提交**,先查它为什么被排除。
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
{
|
|
||||||
"display_name": "历史默认头像补全",
|
|
||||||
"description": "补全本地智能体的缺省头像;用户设置优先。生成走显式供应商绕过坏的默认解析,处理清单落盘 avatar-backfill-receipt.md。",
|
|
||||||
"enabled": true,
|
|
||||||
"status": "active",
|
|
||||||
"tags": [
|
|
||||||
"platform",
|
|
||||||
"legacy-avatar-backfill"
|
|
||||||
],
|
|
||||||
"schedule": {
|
|
||||||
"kind": "interval",
|
|
||||||
"interval": "PT24H",
|
|
||||||
"anchor": "2026-10-13T02:36:56.664Z",
|
|
||||||
"no_overlap": true,
|
|
||||||
"missed_fire_policy": "fire_once"
|
|
||||||
},
|
|
||||||
"action": {
|
|
||||||
"type": "query",
|
|
||||||
"prompt": "请完成历史默认头像补全任务(legacy-avatar-backfill)。不依赖外部候选列表,自助执行:\n\n1. 用 ManageAgent list 列出全部智能体;对每个用 ManageAgent get 查看头像状态。\n2. 候选 = 没有图片头像(avatar.image 缺失)且 generationPolicy 非 manual/disabled 的智能体。ManageAgent get 显示\"头像后台任务\"仍 pending/排队的跳过,不重复付费。\n3. 生成头像必须走显式供应商绕过默认解析(defaultServiceMap.image_gen 常指向未启用的供应商,导致\"默认图像供应商不可用\"):\n a. 用 GenerateImage(purpose=\"agent-avatar\", provider=\"desirecore-cloud\", model=\"image-01\"),按该智能体的名称与职责生成默认透明真人头像:写实人物摄影、1:1、透明背景、上半身居中,外观与职责匹配且各智能体互不相同。\n b. 视觉复核生成图:真人摄影风格、构图居中、发丝与衣物边缘无明显抠图残片;不合格可重生成一次。\n c. 复核通过后用 ManageAgent update 提交 avatarImage={source:\"dc-media://<生成图 mediaId>\"} 挂载(落盘 assets/avatar.webp)。\n d. 若 GenerateImage 显式供应商失败,退回一次 ManageAgent update avatarGeneration={onlyIfMissing:true}(走默认服务);仍失败记 failed,不再重试、不静默吞掉。\n4. 完全没有 avatar 字段的智能体,先补 config.avatar={char: 名称首字} 保证可用兜底,再按 3 生成图片。\n5. 已有图片、3D 形象、generationPolicy=manual/disabled 的头像一律保留,不得覆盖用户选择。只补头像,不修改名称、人格、模型、技能或其他字段。\n6. 本次处理清单(处理了谁、跳过及原因、失败及原因)写入运行工作目录的 avatar-backfill-receipt.md——这是完成判据文件,必须在本次执行内写完。",
|
|
||||||
"completion": {
|
|
||||||
"artifacts": [
|
|
||||||
"avatar-backfill-receipt.md"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"failureAlert": {
|
|
||||||
"enabled": false,
|
|
||||||
"after": 2,
|
|
||||||
"cooldownMs": 3600000
|
|
||||||
},
|
|
||||||
"retry": {
|
|
||||||
"maxAttempts": 0
|
|
||||||
},
|
|
||||||
"id": "f8f451d6b6c8a410e002763f1812b366",
|
|
||||||
"agent_id": "desirecore",
|
|
||||||
"created_at": "2026-10-13T02:41:26.664Z",
|
|
||||||
"updated_at": "2026-11-07T15:06:27.253Z"
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user