Commit Graph

31 Commits

Author SHA1 Message Date
dafang 4ef7c3fb71 feat(skills): preserve reviewer lineage across re-reviews 2026-08-02 14:50:32 +08:00
dafang 3b80297a08 fix(skills): bound project lesson validation 2026-08-02 14:02:14 +08:00
dafang 1d78fdd51c feat: manage project lesson lifecycle 2026-08-02 00:10:29 +08:00
dafang 45521f915b feat: add project learning lifecycle 2026-08-01 23:39:29 +08:00
dafang 3eee59a64b feat(cs): streamline Epic execution and discussion handoff 2026-08-01 19:02:14 +08:00
dafang d85d3ccc5b feat(cs): add durable Epic knowledge lifecycle 2026-08-01 14:46:02 +08:00
dafang e52008c194 fix(skills): clarify reviewer creation capabilities 2026-08-01 11:11:19 +08:00
dafang 30271b37ee fix(skills): enforce quality-first review models 2026-07-31 20:49:14 +08:00
dafang 432a902a7c fix(skills): keep cs-review as a leaf executor 2026-07-31 15:50:11 +08:00
dafang b134b9d278 feat(skills): default rule for missing graduation destinations
Dogfood question: what happens when a work doc is ready to graduate but
the destination does not exist (no project docs convention, no ADR dir,
no requirements home)? Previously unspecified — agents would invent
directories, mis-file facts into lessons, or delete without graduating.

Three-tier default: CodeStable-owned targets (attention.md, lessons/) are
created on demand; project-side homes are never invented — the graduation
list proposes a destination for the owner to approve, and the work doc is
kept until approved; genuinely experiential content may land in lessons
(scope tagged 待归位) so nothing is lost. 96 passed.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-31 11:22:55 +08:00
dafang 681af19d29 feat(skills): deletion of work docs requires a graduation list first
Dogfood feedback: an agent reported 'work docs deleted, only attention.md
kept' with no account of where the knowledge went — compress-then-delete
was required but unverifiable. Now the final report must list the
graduation destinations (which conclusion went into which project doc,
which lesson was distilled, or an explicit 'nothing to graduate') before
any work doc is deleted; no list, no deletion. cs-issue/cs-refactor also
gained the previously missing completion-disposal rule. 96 passed.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-31 10:36:53 +08:00
dafang a05ec95312 feat(skills): type-prefixed work documents and epic sub-design linking
Dogfood feedback: work/ entries like paseo-native-session-bridge.md give
no clue whether they are a feature, issue, or epic when it is time to
compress them. Two rules, zero new mechanism:

- work docs are named with a type prefix (feat-/issue-/refactor-/epic-),
  so ls classifies and wrap-up knows the destination per type
- epic sub-designs are inline-first: a few lines under the item entry;
  only risk-escalated items get their own work/feat-{slug}.md, carrying
  'epic: {slug}' frontmatter with a backlink from the epic item row —
  flat files with two-way pointers, no subdirectories. Epic wrap-up now
  also sweeps its sub-item work docs.

Docs (WORKFLOW/README zh+en) synced. 96 passed.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-31 09:51:06 +08:00
dafang 9efc569a61 refactor(skills): rename cs-code-review to cs-review with a single compat alias
The skill has outgrown its name — it reviews designs and runs repo audits,
not only code. cs-review is the canonical entry; cs-code-review ships as
the one thin forwarding alias (the explicit exception to the no-shim rule,
kept for the carried-over v1 habit). References in cs / cs-feat / cs-epic /
cs-issue / cs-refactor, the Codex agent config, both contract-test skill
sets (V2_SKILLS + SHIM_SKILLS), and all public docs / CHANGELOG / ADR-004
updated. Also refreshed the leftover v1 openai.yaml wording. 96 passed.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-31 09:08:35 +08:00
dafang 6d8d73f4fe feat(cs-code-review): raise fix-and-rereview cap from 2 to 3 rounds
Owner decision after first dogfood hit of the cap. Escalation semantics
unchanged: exceeding the cap still surfaces both sides' reasoning for
human arbitration and never counts as a pass.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-31 09:00:43 +08:00
dafang 7a40410cfe feat(cs): dispatch clear action requests in the same turn
Dogfood feedback (session 001c553b): calling cs with a concrete request
recommended an entry and then waited for the user to re-invoke it — one
confirmation too many. cs now classifies intent: clear action requests
announce the chosen entry in one line and continue executing under that
skill's discipline in the same turn; advice requests still get a
recommendation only; ambiguous requests that would materially change what
happens next get exactly one focused question. Handoff does not widen
authority — the target skill's gates and checkpoints apply unchanged.
Safety anchors and docs (SKILL_CATALOG / WORKFLOW / README zh+en) synced.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-30 20:44:37 +08:00
dafang a9eaa93ff8 feat(skills): absorb engineering judgment from codestable-lite references
Cherry-picked the high-value rule content (form factor already rejected):
- cs-feat/references/code-design.md: depth framework, ownership-first,
  make-change-easy-first signals, real seams, interface-as-test-surface,
  boundary design, plus the risk-first spike (chuanci) protocol
- cs-feat/references/economy.md: minimal-sufficient != minimal-diff,
  five-rung no-new-code ladder, fix-once-at-the-right-boundary, bounded
  simplification (limit/trigger/direction), honest-savings rule
- cs-issue/references/debug.md: root-cause definition, fast/slow path
  split with escalation conditions, suspect-structure signals
- Inline guards: cs-feat (ownership + three-layer impact + spike pointer),
  cs-issue (root-cause + escalation pointer), cs-refactor (depth ruler),
  cs-code-review (intent-first, three-tier verdict, high-signal-only)

Source: teammate's codestable-lite branch. 96 passed.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-30 14:01:23 +08:00
dafang aedd3213d9 feat: land owner's v2 release line — 2.0.0, ADR-004, v2 contract tests
Absorbed from the owner's working tree (his versions take precedence):
- VERSION 2.0.0, CHANGELOG, plugin manifests, marketplace metadata
- ADR-004 (project knowledge, not runtime distribution; supersedes 001)
  plus ADR-001/002/003 updates
- Three new v2 contract test suites (architecture / documentation /
  experiment-archive integrity) and rewritten skill-contracts,
  cli-distribution (exact retired-set + E2E fixture), selfref suites
- Rewritten root docs (README/WORKFLOW/SKILL_CATALOG zh+en, CLAUDE/AGENTS)
  with v1.0.4 retirement mapping and precise skills-CLI upgrade procedure
- eval-cs-skill v2 adaptation (6 files), build-cs-skill refinements

Full suite: 96 passed.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-30 13:38:57 +08:00
dafang c3db99b47b refactor(skills): drop contracts frontmatter from shipped skills
Owner decision (applied from his working-tree edit): shipped SKILL.md files
carry no self-test metadata. Protection is preserved, not dropped — hard-gate
anchors move into tests/test_skill_contracts.py as direct body assertions
(SHIPPED_HARD_GATE_ANCHORS), plus an explicit no-contracts-frontmatter check.
The not-grep validator regression now samples build-cs-skill. CLAUDE.md rule
updated accordingly.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-30 13:31:10 +08:00
dafang b6a6a2e71b feat(cs-feat): persist high-risk designs to work documents
Owner practice decision: on risk escalation the proposal is written into
.codestable/work/{slug}.md before independent design review and user
confirmation — the design trail is always on disk for high-risk work.
Contract anchor added; wrap-up section reconciled (high-risk work docs
are created at design alignment, others on cross-session/handoff need).
Sync WORKFLOW / README (zh+en).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-30 10:31:15 +08:00
dafang 935a1cc118 fix(skills): close build-cs-skill cross-check gaps
- work doc gains a status-and-open-items section so cross-session resume
  has a defined landing spot for pending confirmations (recovery contract)
- cs-code-review: reviewer dispatch requires a self-contained context
  packet (intent, scope, exclusions, expected graded findings); main flow
  owns integration and final verdict (collaboration contract)
- cs-onboard: gitignored .codestable stops with a report instead of
  silently proceeding (failure behavior)
- Sync WORKFLOW / README (zh+en)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-30 10:03:20 +08:00
dafang 8c8777f470 feat(skills): restore independent review discipline with bounded loops
- cs-code-review: add design review mode; cap blocking fix-and-rereview at
  2 rounds, then escalate to human arbitration with the disagreement
- cs-feat: risk-escalated designs pass independent design review before user
  confirmation; test-first when a test setup exists; completed changes get
  independent review by default (trivial edits may skip)
- cs-epic: decomposition passes independent design review before user confirmation
- cs-issue / cs-refactor: independent review by default, trivial changes may skip
- Sync WORKFLOW / SKILL_CATALOG / README (zh+en)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-30 09:34:07 +08:00
dafang 8ca541ca0e refactor(skills): v2 thin-harness — 32 skills -> 8 thin responsibility contracts
- Rewrite 8 kept skills as thin harness (31-49 lines each, ~24k -> 316 lines total):
  cs / cs-onboard / cs-feat / cs-issue / cs-refactor / cs-code-review / cs-epic / cs-keep
- Delete 24 skills: 14 compat stubs, cs-note+cs-feedback (merged into cs-keep),
  cs-audit (mode of cs-code-review), cs-req+roadmap family (merged into cs-epic),
  cs-goal / cs-brainstorm / cs-domain / cs-docs family (folded into entries)
- Delete all stage protocols, 13 onboard references, 19 runtime tools/gates
- Project data reduced to .codestable/{attention.md, lessons/, work/};
  ordinary tasks produce zero artifacts; v1 legacy kept read-only + grep-discoverable
- Tests: drop v1 state-machine/wording suites, update contracts/CLI-distribution
  suites to v2 baseline, add thin-harness regression; xfail pre-existing
  build-cs-skill red (broken on main 7bed4ed)
- Sync SKILL_CATALOG / WORKFLOW / README (zh+en) / CLAUDE.md / AGENTS.md to v2

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-30 09:11:04 +08:00
Wyatt Fang e499a7cca0 fix(codestable): close core skill contract gaps 2026-07-21 10:18:41 +08:00
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 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