diff --git a/skills/manage-teams/SKILL.md b/skills/manage-teams/SKILL.md index d4d92ee..a499cb6 100644 --- a/skills/manage-teams/SKILL.md +++ b/skills/manage-teams/SKILL.md @@ -2,7 +2,7 @@ license: "MIT" name: manage-teams description: 创建和管理 Agent 团队,组织多 Agent 协作。Use when 需要多个 Agent 持续协作、建立组织架构,或发布、安装和同步团队仓库时。 -version: 1.5.0 +version: 1.5.1 type: procedural risk_level: medium status: enabled @@ -13,7 +13,7 @@ tags: - organization metadata: author: desirecore - updated_at: '2026-10-28' + updated_at: '2026-11-16' i18n: default_locale: en-US source_locale: zh-CN @@ -26,7 +26,7 @@ metadata: description: >- 创建和管理 Agent 团队,组织多 Agent 协作。Use when 需要多个 Agent 持续协作、建立组织架构,或发布、安装和同步团队仓库时。 body: ./SKILL.zh-CN.md - source_hash: sha256:1695a3d0b629eed5 + source_hash: sha256:49059437971354e5 translated_by: human en-US: name: Team Management @@ -34,7 +34,7 @@ metadata: description: >- Create and govern Agent teams. Use when multiple Agents need sustained collaboration, an organizational hierarchy, or a team repository must be published, installed, or synchronized. body: ./SKILL.md - source_hash: sha256:1695a3d0b629eed5 + source_hash: sha256:49059437971354e5 translated_by: human market: icon: >- @@ -55,7 +55,7 @@ market: fill-opacity="0.7"/> category: productivity - required_client_version: 10.0.192 + required_client_version: 10.0.203 --- # manage-teams Skill @@ -113,8 +113,8 @@ A team defines organization, shared directories, and governance. Actual work is | `pull` | Pull and validate a team from its connected remote | `teamId`; enters approval | | `add_remote` | Configure or replace a publishing destination | `teamId`, `url`; optional `connectionId`, `branch`, `isPrivate`; does not create a repository | | `remove_remote` | Remove remote configuration and the local connection binding | `teamId`; leaves the remote repository intact | -| `install_members` | Install or repair members from the existing lock | `teamId`; optional `forceUpdate`, default false | -| `upgrade_members` | Resolve a new lock and attempt safe updates | `teamId`; optional `forceUpdate`, default true; preserves local edits and commits | +| `install_members` | Install missing members as upstream forks; retain existing members | `teamId`; `forceUpdate` is deprecated and does not change content | +| `upgrade_members` | Record actual current member HEADs and versions; install missing members | `teamId`; use Agent Sync to update member content | | `release` | Create a local version or publish one exact version | `teamId`; `push` defaults to false, optional `changelogEntry`, `expectedCommit`; retry with `releaseTag` | ### 3. Create a Team @@ -167,7 +167,7 @@ Example: - Prefer batch member actions to avoid observable intermediate states. - `set_supervisor` uses `agentId`; first verify that the Agent does not already supervise another team. -- `set_member_source` declares provenance, it does not move files. A team whose roster still contains a `local` member is **not distributable** — `members.lock.json` cannot pin an ID that exists only on this machine, so a fork elsewhere would silently come up short a member. Switch each member to `git` or `registry` before publishing. The action resolves and writes the lock automatically; inspect its receipt. It cannot change a member's `role`; use `set_supervisor` for that. +- `set_member_source` declares provenance, it does not move files. A team whose roster still contains a `local` member is **not distributable** — `members.lock.json` cannot provide an installable source for an ID that exists only on this machine, so a fork elsewhere would silently come up short a member. Switch each member to `git` or `registry` before publishing. The action resolves and writes the lock automatically; inspect its receipt. It cannot change a member's `role`; use `set_supervisor` for that. - `update` is a patch: omitted fields remain unchanged. - `parentTeamId: null` detaches the team and makes it top-level; an empty string is invalid. - `type` only allows `ephemeral → persistent`. Repeating the current value is idempotent; use `promote` for an explicit upgrade. @@ -209,7 +209,7 @@ Remote `fork_team/push/pull` must go through `ManageTeam` because it enforces te - `push/pull` require a remote configuration. Use `add_remote` to configure the destination and an existing connection when needed. Client team settings are also available; the Agent chooses the configuration path. - Locally created and forked teams do not inherit a directly pushable remote configuration by default. -- `fork_team` defaults to `installMembers=true`; a same-ID local Agent that has diverged from its lock is protected and skipped rather than overwritten. +- `fork_team` defaults to `installMembers=true`; an existing same-ID Agent keeps its current content. Differences from team records or other sources are observations, not a reason to block work or overwrite it. - `pull` may replace local team configuration. Inspect local state first and identify the target remote in the approval card. Release and member versions: @@ -217,11 +217,19 @@ Release and member versions: - `release` defaults to a local version. Set `push=true` for publication; approval identifies the target and version. Only the branch and this exact release tag are pushed, never all tags or private backup/archive refs. - Inspect the team with `get`; constrain a new release HEAD with `expectedCommit`. Inspect `tag/version/commitHash` and `branchPushed/tagPushed/pushed` separately. - After network failure or an unknown remote outcome, inspect the remote and retry with the returned `releaseTag`; do not create another version. Omit `changelogEntry` on retries. -- `install_members` follows the exact existing lock. `upgrade_members` resolves declarations and attempts safe updates to new pins. Both preserve local edits and commits, avoid downgrades, and do not approve installed content. -- `complete=false` or `outdated/diverged/failed/unreachable` means members remain unaligned. Neither `success=true`, skipped counts nor zero failures proves all members were upgraded. Inspect each receipt before choosing repairs. -- Conflicting pins for an Agent shared by multiple teams do not authorize overwriting a local fork; preserve data and report the conflict. +- Team locks record validated/observed versions; they do not pin member delivery. `install_members` creates missing members as forks of their declared branches or approved Market sources. `upgrade_members` records actual current HEADs/versions and installs missing members. `forceUpdate` is a deprecated compatibility field. Use Agent Sync for detection, safe updates, confirmed merges, conflicts and explicit reset; content approval remains separate. +- Complete repositories follow the declared branch. Market pointers and subdirectories retain the reviewed-pin boundary. A tag/full 40-character commit source pin remains distinct from its tracking branch: reuse `repository.branch` declared by the same repository at the pinned source, otherwise use the actual remote symbolic HEAD and verify the readable branch OID. Never guess main/master, treat a tag name as a branch, or replace the source pin with a branch tip. This is the current decided rule; release limitations are described below. +- Read each member’s `lockRelation`, `upstreamStatus`, `deliverySources` and `sourceConflict`. Ahead/behind/diverged relative to a team record does not block an existing member or cause a downgrade. Multiple sources are presented together; the Agent chooses a source explicitly and keeps work moving. Busy, dirty or conflicting legacy repositories retain all local content and commits until their existing recovery/update path can be used. +- Inspect per-member failures when `complete=false` or status is `failed/unreachable`. Historical `outdated/diverged` results relative to a team record do not prove a member is unusable. Success, skipped counts or zero failures do not prove all upstream updates were applied or that a business task is complete. +- Different sources or version records for a shared Agent do not establish an implicit priority. Keep current content, report the sources together, and let the Agent choose. - Remote actions, remote-source declarations and destination configuration enter approval. `ask-external` retains approval for them; `allow-all` respects the user's full trust in the acting Agent. +### Client Compatibility + +- Minimum client: **10.0.203**. The released 203 source includes the main unified-member-update behavior above. It does not include the later tag/commit installation, adoption without an upstream declaration, or remote-default-branch resolution changes from product PR #5930. +- On 10.0.203, those tag/commit paths fail or defer; an existing member with its own upstream declaration continues using its current content. `sourceConflict` may also reflect a source-pin/tracking-branch difference rather than a distinct repository. Inspect the actual per-member receipt, report the precise unfinished item, and continue unaffected work. +- This is a 203 implementation limitation, not a request for the user to choose a tracking branch again. Do not change source refs, guess branches, rebind origin or overwrite local content to bypass it. When that sub-capability is required, first verify that the actual released client contains the remote-default-branch implementation; do not assume a future version number or claim that 203 supports it. + ### 7. Dispatch and Finish After team creation, dispatch work to the supervisor or members with `Delegate`: diff --git a/skills/manage-teams/SKILL.zh-CN.md b/skills/manage-teams/SKILL.zh-CN.md index a04859d..a2eab38 100644 --- a/skills/manage-teams/SKILL.zh-CN.md +++ b/skills/manage-teams/SKILL.zh-CN.md @@ -55,8 +55,8 @@ | `pull` | 从已连接的远程拉取并校验团队 | `teamId`;进入审批闸门 | | `add_remote` | 配置或更换发布目标 | `teamId`、`url`;`connectionId?`、`branch?`、`isPrivate?`;不创建远程仓库 | | `remove_remote` | 移除远程配置与本机连接绑定 | `teamId`;不删除远程仓库 | -| `install_members` | 按现有 lock 补齐成员 | `teamId`;`forceUpdate?`,默认 false | -| `upgrade_members` | 解析新 lock 并尝试安全升级 | `teamId`;`forceUpdate?`,默认 true;保留本机修改和提交 | +| `install_members` | 将缺失成员安装为上游 fork,保留已有成员 | `teamId`;`forceUpdate` 已弃用,不改变成员内容 | +| `upgrade_members` | 记录成员当前实际 HEAD/版本,补齐缺失成员 | `teamId`;更新成员内容使用 Agent Sync | | `release` | 创建本地版本或发布精确版本 | `teamId`;`push?` 默认 false、`changelogEntry?`、`expectedCommit?`;重试已有版本用 `releaseTag` | ### 3. 创建团队 @@ -109,7 +109,7 @@ - 成员增删优先使用批量 action,避免多次调用产生中间状态。 - `set_supervisor` 使用 `agentId` 指定新组长;先确认其未担任其他团队组长。 -- `set_member_source` 声明来源,不搬运文件。名册里只要还留着 `local` 成员,团队就**不可分发**——`members.lock.json` 无法锁定一个只存在于本机的 ID,别处 fork 出来会静默缺员。发布前把每个成员改为 `git` 或 `registry`;该动作会自动解析并写 lock,核对解析回执即可。它改不了成员的 `role`,换组长用 `set_supervisor`。 +- `set_member_source` 声明来源,不搬运文件。名册里只要还留着 `local` 成员,团队就**不可分发**——`members.lock.json` 无法为只存在于本机的 ID 提供另一设备的安装来源,别处 fork 出来会静默缺员。发布前把每个成员改为 `git` 或 `registry`;该动作会自动解析并写 lock,核对解析回执即可。它改不了成员的 `role`,换组长用 `set_supervisor`。 - `update` 是部分更新:未传字段保持原值。 - `parentTeamId: null` 表示摘除父团队成为顶层团队;空字符串非法。 - `type` 只允许 `ephemeral → persistent`。原值幂等更新可以接受;明确升级优先使用 `promote`。 @@ -151,7 +151,7 @@ - `push/pull` 要求已有远程配置;未连接时使用 `add_remote` 配置目标和已有连接。客户端团队设置也是可选入口。Agent 可以自主选择配置方式。 - `create` 和 `fork_team` 得到的本地团队默认都不继承可直接推送的远程配置。 -- `fork_team` 默认 `installMembers=true`;本机已偏离锁定版本的同名 Agent 会被跳过保护,不会覆盖。 +- `fork_team` 默认 `installMembers=true`;同名已有 Agent 保留当前内容。它与团队记录或其他来源的差异是观察事实,不作为阻塞工作或覆盖成员的理由。 - `pull` 可能覆盖本地团队配置;先查看本地状态并说明审批卡中的目标远程。 发布与成员版本: @@ -159,11 +159,19 @@ - `release` 默认只创建本地版本;明确要对外发布时传 `push=true`。审批摘要显示实际目标和版本,只推分支及本次正式 tag,不推 `backup/`、`archive/` 或其他 tag。 - 先用 `get` 核对团队;新版本可传 `expectedCommit` 约束 HEAD。返回 `tag/version/commitHash` 与 `branchPushed/tagPushed/pushed`,本地成功和远端发布分别核验。 - 网络失败或远端结果未知时,先检查远端;用返回的 `releaseTag` 重试同一版本,不再次运行无 tag 的 release。重试时不得传 `changelogEntry`。 -- `install_members` 按精确 lock 安装;`upgrade_members` 先解析当前声明,再按新 pin 尝试安全更新。它们不覆盖用户修改、本机提交,不自动回退,也不自动核准内容。 -- `complete=false` 或成员 `outdated/diverged/failed/unreachable` 表示未对齐;不要把 `success=true`、`skippedCount` 或 `failedCount=0` 当成全员升级完成。读取逐成员回执,确认后选择修复方法。 -- 同一 Agent 在多个团队有不同 pin 时,不自动覆盖现有分叉;保留数据并报告冲突。 +- 团队 lock 只记录验证/观察版本,不钉住成员交付。`install_members` 把缺失成员安装为声明分支或已获准市场来源的 fork;`upgrade_members` 记录成员当前实际 HEAD/版本并补齐缺失成员。`forceUpdate` 是已弃用的兼容字段。检测、安全更新、确认合并、冲突处理和显式重置均使用 Agent Sync;内容核准仍是独立操作。 +- 完整仓库跟随声明分支,市场 pointer 与子目录仍保留审核 pin 边界。tag/完整 40 位 commit 的来源 pin 与跟踪分支分别保留:优先沿用来源 pin 内同仓的 `repository.branch`;未声明时取远端实际 symbolic HEAD 指向的分支,并核对可读分支 OID。不猜 main/master、不把 tag 名当分支,也不把来源 pin 改装为分支 tip。这是当前已决定规则;发布版限制见下文。 +- 读取逐成员 `lockRelation`、`upstreamStatus`、`deliverySources` 和 `sourceConflict`。相对团队记录的领先/落后/分叉不阻塞现有成员,也不触发降级。多个来源并列报告,由 Agent 显式选择并继续任务。忙碌、脏工作树或有冲突的存量仓库保留全部本机内容与提交,再走既有恢复/更新入口。 +- `complete=false` 或成员 `failed/unreachable` 需要检查逐成员失败;相对团队记录的旧 `outdated/diverged` 回执不证明成员不可用。`success=true`、跳过计数或零失败都不证明已应用全部上游更新,更不证明业务任务完成。 +- 同一 Agent 在多个团队有不同来源或版本记录时,不设置隐式优先级;保留当前内容、并列报告,由 Agent 选择来源。 - 远程动作、远程来源声明和远程目标配置提交审批;`ask-external` 对这些动作保留审批,`allow-all` 保留用户对执行主体的全量信任。 +### 客户端兼容性 + +- 最低客户端为 **10.0.203**。已发布的 203 源码包含上述成员统一更新主体,但尚不包含产品 PR #5930 后续补充的 tag/commit 首装、未声明上游的存量采纳及真实远端默认分支解析。 +- 在 10.0.203 上,这些 tag/commit 入口会失败或延后;已有自身上游声明的成员继续使用当前内容。`sourceConflict` 也可能只是来源 pin 与跟踪分支的差异,不一定是不同仓库。按实际逐成员回执说明精确未完成项,并继续不受影响的工作。 +- 这是 203 的实现限制,不是要求用户重新选择跟踪分支。不得为绕过限制擅自修改来源 ref、猜分支、重绑 origin 或覆盖本机内容。需要这项子能力时,先核验实际已发布客户端确已包含真实默认分支实现;不假定未来版本号,也不宣称 203 已支持。 + ### 7. 分派与收尾 创建团队后,用 `Delegate` 向组长或成员分派任务: diff --git a/skills/manage-teams/catalog-metadata.v1.json b/skills/manage-teams/catalog-metadata.v1.json index 4e01b28..a5b7e21 100644 --- a/skills/manage-teams/catalog-metadata.v1.json +++ b/skills/manage-teams/catalog-metadata.v1.json @@ -28,13 +28,13 @@ }, "release": { "state": "known", - "version": "1.5.0", + "version": "1.5.1", "versionScheme": "semver" }, "timestamps": { "catalogUpdatedAt": { "state": "known", - "value": "2026-10-28T00:00:00Z", + "value": "2026-11-16T00:00:00Z", "precision": "second" }, "releasePublishedAt": { @@ -65,7 +65,7 @@ "platforms": { "state": "unknown" }, - "requiredClientVersion": "10.0.192" + "requiredClientVersion": "10.0.203" }, "spec": { "kind": "skill",