Repository navigation
feat(plugin_release): 新增 sync——「源码即生产」下真正的发布动作 - #43
Merged
Merged
Conversation
负责人 2026-08-15 拍板:接受「源码即生产」,生产检出由一条手动命令更新,不做 会话启动自动 pull(永远最新的代价是行为在你不知情时改变,且与入口「不建设轮询 与自动化」的克制取向相冲)。 运行端实时读生产检出,因此 git pull 落地的那一刻新 Session 就读到新正文——安装 只是让 plugin list 的版本账目不说谎。sync 四步: 1. 前置:生产检出必须干净且在 main。停在别的分支或有未提交改动直接拒绝,并指向 agent-plugins-work/<分支> 的 worktree。这是第 2 层,不是提醒。 2. git fetch + merge --ff-only,报告 HEAD 变化。 3. 报告本次生效的行为变化:只看 plugins/ 下的差异,逐插件列出版本变化与改动的 正文文件。这不是「将会安装什么」,而是新 Session 立刻读到的差异。 4. 刷新缓存账目并做指纹验收;账目对不上即报错——行为已按新正文生效,但账目在 说谎。 默认演练:先看清这次会生效什么,再决定要不要落地。生效时机因此可控。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This was referenced Aug 15, 2026
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.
背景
负责人 2026-08-15 拍板:接受「源码即生产」,生产检出由一条手动命令更新。
否掉了会话启动自动
pull——永远最新的代价是行为在你不知情时改变(合并了一个有问题的 PR,下一个会话立刻吃到),且与入口「不建设轮询与自动化」的克制取向相冲。为什么 sync 才是发布动作
运行端实时读生产检出,所以
git pull落地的那一刻新 Session 就读到新正文。安装只是让plugin list的版本账目不说谎。四步:
main。否则直接拒绝,并指向agent-plugins-work/<分支>的 worktree。这是第 2 层,不是提醒。fetch+merge --ff-only,报告 HEAD 变化plugins/下的差异,逐插件列出版本变化与改动的正文文件第 3 步是重点:它回答的不是「将会安装什么」,而是新 Session 立刻会读到什么差异。
默认演练——先看清这次会生效什么,再决定要不要落地:
拒绝路径
配套的制度正文与选型面见 agent-plugins PR #5。
35 项测试通过。