Commit Graph

19 Commits

Author SHA1 Message Date
Wyatt Fang 4f8403e4e5 fix(codestable): unify epic goal execution authorization 2026-07-16 12:49:41 +08:00
Wyatt Fang 525f185a79 release: CodeStable 1.0.4 2026-07-15 21:58:14 +08:00
dafang c4fd6eead6 feat(codestable): formalize host-agnostic skill contracts 2026-07-14 21:08:46 +08:00
dafang db36f82225 fix: preserve packaged skills and runtime versions 2026-07-14 13:24:08 +08:00
dafang 69d63ebe09 fix: align plugin docs with canonical repository 2026-07-14 11:41:22 +08:00
dafang 2248241634 feat: add risk-tiered feature lanes 2026-07-14 11:37:15 +08:00
dafang 00c78b38a6 release: CodeStable 1.0.3 2026-07-11 10:39:45 +08:00
Wyatt Fang 30fecaae5e release(codestable): ship skill workflow v1.0.2 (#41)
收敛 CodeStable 主入口、runtime preflight、goal driver 与 skill 工程化评测闭环。

- 根 cs 对行动请求同轮直转,咨询与介绍保持非执行
- feature/issue/refactor/epic/docs 按仓库事实恢复,旧 stage skill 保留兼容薄壳
- repo-local runtime 支持版本检测、安全自动同步和显式 refresh-runtime
- 完成 Codex/Claude marketplace 1.0.2、升级文档和回归/评测证据

验证:215 tests passed;package/runtime/diff checks passed;独立 review 与 QA 无 unresolved blocking/important findings。
2026-07-10 15:23:56 +08:00
Wyatt Fang cd7e1d33f0 refactor: package CodeStable plugin distribution (#34)
* refactor: package codestable plugin distribution

* docs: restore README workflow details

* refactor: remove browser bridge from distribution

---------

Co-authored-by: QA Bot <qa@example.invalid>
2026-07-02 09:56:21 +08:00
dafang a705c640e5 fix: stop installing protected main push hooks 2026-06-29 17:38:56 +08:00
dafang d1a5d2269b docs: standardize task agent terminology 2026-06-29 16:23:57 +08:00
dafang 060c8c5326 docs: clarify QA and acceptance agent boundaries 2026-06-29 16:01:15 +08:00
dafang 7b58fb2f11 fix: dod-runner 顶层优先去重 + cs-code-review OCR 限定范围排除产物
两个从 goal 执行中暴露的问题:

1) DoD 命令重复执行(上个 commit 的回归):collect_commands 把顶层 +
   step-level 都读并合并,checklist 两处都有同组命令时会执行两遍。
   改为「顶层优先」——顶层 dod.commands 存在即唯一源,不再叠加 step;
   仅当无顶层时 fallback step-level。既不重复又向后兼容。
   测试改 test_top_level_takes_precedence_no_duplicate(顶层+step 同 id
   只执行一次)。

2) OCR 横向扫描 .codestable 等非 feature 文件:ocr review 默认 workspace
   模式审 untracked,业务项目 .codestable/(goal 执行包,未 gitignore)被
   横扫污染结果。ocr 第三方无 --exclude,故在 cs-code-review 环节B 加两道
   控制——调用时优先 ref 范围(--from/--to 排除 untracked 产物);结果过滤
   兜底:丢弃 .codestable/、. 开头目录、gitignore 命中路径的 finding。

测试:62 passed。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-29 14:15:10 +08:00
dafang efe818f95f Merge branch 'worktree-fix+dod-runner-schema' 2026-06-29 14:01:09 +08:00
dafang 4645a4316c fix: dod-runner 识别顶层 dod.commands(权威 schema),兼容 step-level
权威 checklist schema(cs-feat-design/reference.md「DoD Contract」)定义
dod 为顶层字段(与 steps/checks 同级),dod.commands 是机读权威源。但
codestable-dod-runner.py 的 collect_commands 只遍历 steps[*].dod.commands
(step-level),读不到顶层 → 返回 skipped。goal/gate 执行时表现为 DoD 命令
被跳过,迫使使用者把命令挪到 step 下绕过,违背 schema。

修复:collect_commands 先读顶层 dod.commands(权威),再兼容 step-level
(向后兼容已挪到 step 下的 checklist),两者合并。

测试:新增 tests/test_codestable_dod_runner.py 5 例——顶层命令被执行
(回归)、step-level 仍支持、顶层+step 合并、non-core 失败仅 warning、
无命令 skipped。全套通过。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-29 14:00:24 +08:00
dafang 1635acd41b fix: branch-guard 跟随真实 worktree + owner-publish 默认取 upstream remote
两个影响 fork+worktree 工作流的缺陷:

Bug1(真 bug):PreToolUse hook 传 --root=CLAUDE_PROJECT_DIR(主仓库),
guard_payload 据此判 branch=main,且 worktree 位于主仓库子目录、被编辑文件
被当主仓库实现文件 → 在 worktree typed 分支改实现文件也被误拦,worktree
执行正道走不通。修复:guard 按"被操作对象的真实 worktree"判定——
新增 worktree_of()/collect_raw_paths()/edit_impl_paths_on_protected();
Edit/Write 逐文件按其 worktree 分支判定(typed 放行);Bash 用 payload.cwd
的 worktree;拿不到时兜底回退原 root,不削弱既有保护。

Bug2(易用性):owner-publish begin 默认对比 origin/main,fork 用户 origin
常是上游镜像,合规发布通道不可用。修复:--remote 默认取当前分支 upstream
的 remote(回退 origin);不匹配/fetch 失败的报错加 fork 引导。

测试:tests +5(worktree root=main 放行回归、main 仍拦、Bash cwd worktree、
detect_default_remote、begin 自定义 remote);全套 57 passed。
文档:branch-guard-hooks.md 说明按文件实际 worktree 判定 + fork 用 --remote。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-29 13:28:14 +08:00
dafang 4d9c3e02ea refactor: worktree 执行分支前缀语义化
分支前缀按 CodeStable 执行流类型表达改动语义,而非笼统的 worktree/:
- feature → feat/{slug},issue → fix/{slug},refactor → refactor/{slug}
- quarantine 隔离分支 worktree/quarantine-{slug} → chore/quarantine-{slug}
- worktree 存放路径 .worktree/ 保留不变
- 同步 branch-guard 文案、execution-conventions、branch-guard-hooks、cs-onboard、tests 示例

注:gate 只校验不自动建常规分支;前缀是文档约定 + quarantine 默认命名

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-25 22:07:43 +08:00
dafang d10f2ac335 refactor: worktree 命名去 Codex 绑定
- 执行 worktree 分支 codex/* → worktree/*,路径 .codex/worktrees → .worktree
- worktree-gate quarantine、ai-branch-guard 文案、execution-conventions、
  branch-guard-hooks、cs-onboard/SKILL 的约定同步
- tests 示例分支名/路径/函数名同步
- 保留外部平台标识:Codex CLI 真实路径(~/.codex)、hooks.codex.json、CODEX_PROJECT_DIR

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-25 21:44:21 +08:00
dafang ba0b4188ce feat: 对接 review↔gate 锚点并吸收 stella 增量
- review↔gate:gate 改认 {slug}-review.md(common + validate 两份 review_file_for),
  cs-code-review 产物补 frontmatter reviewer: subagent|self 作放行锚点;文档产物名同步
- cs-feat-accept:吸收 stella 的 Global Route Governance(L3) + 7 条 delta 回写判据,
  禁止 accept 阶段自由重写 requirement;详情/final audit/坑拆入 reference.md(SKILL 338→292)
- cs-brainstorm:4 处加 approval-report 检查点
- cs-onboard:骨架加 brainstorms/brainstorm 目录、报告语言偏好;
  shared-conventions 加报告语言策略 + 执行约定/worktree 反模式两节
- 吸收 stella gate 测试 4 个(排除依赖 maintainer 的 phase23),review 文件名断言改 review.md
- 保留我们的 cs-code-review/feat-qa/audits/hooks,不照搬 stella 的删除

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-25 19:52:25 +08:00