226 Commits

Author SHA1 Message Date
Wyatt Fang 19c796de59 fix(plugin): align Codex manifest with validator schema 2026-08-18 09:06:24 +08:00
dafang ec47e8e08d chore: cancel the continuous learning epic 2026-08-10 10:17:19 +08:00
dafang 2506b1a3fd chore: reduce .codestable to the v2 structure 2026-08-10 10:10:32 +08:00
dafang f91f4626d1 chore(release): bump CodeStable to 2.0.2
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-06 16:11:30 +08:00
dafang 72eb55d8b6 docs: scope the skill-coupling rule to file-level dependencies
Clarify in CLAUDE.md that the no-coupling rule only forbids file-level
dependencies between skills; mentioning or routing to another skill by
name remains allowed.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-06 10:21:01 +08:00
dafang bb7c22829f feat(cs-epic): add parallel item progression policy
Add item_progression: parallel as an owner-gated scheduling extension:
the main workflow stays the sole orchestrator and cursor writer, workers
execute dependency-independent items in host-provided isolated
workspaces, and integration is serialized without advancing mainline
history until per-item re-verification passes. Ships the parallel
execution protocol reference (wavefront scheduling, contextPacket
delegation, active_items recovery records with branched state
transitions, item-local vs epic-global blockers, capability fallback),
mirrors the contract across bilingual WORKFLOW/CATALOG, ADR-005,
AGENTS.md and CLAUDE.md, and anchors it in the contract tests.

Reviewed by an independent heterogeneous reviewer over three rounds
(final verdict: approve; target sha256 a78d424e1d3a).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-06 10:09:31 +08:00
dafang 7639a26239 docs: clarify the CodeStable usage model 2026-08-05 13:07:30 +08:00
dafang 8407d6dfba chore(release): bump CodeStable to 2.0.1 2026-08-03 16:56:28 +08:00
dafang b054c05047 chore: clarify reviewer fallback policy 2026-08-03 16:51:23 +08:00
dafang c81cb6764c feat: add adaptive planning and assurance
Use minimum sufficient assurance for ordinary tasks, add Epic wayfinding with HITL, and align shared language before design execution.
2026-08-03 16:43:07 +08:00
dafang 12a0654eeb chore(eval): remove retired skill experiments 2026-08-03 16:42:46 +08:00
dafang 748d4d3851 feat(cs-issue): add diagnosis-only workflow 2026-08-02 21:35:07 +08:00
dafang fdf06f9df5 docs: recommend cs-agent for multi-agent workflows 2026-08-02 19:21:00 +08:00
Wyatt Fang 849cffca8e Merge pull request #53 from codestable/refactor-v2
refactor(codestable): ship v2 thin-harness workflows
v2.0.0
2026-08-02 16:46:52 +08:00
dafang 9efae66c50 docs: align v2 test coverage summary 2026-08-02 16:26:30 +08:00
dafang 215a0f01f8 test: separate v2 and maintainer eval suites 2026-08-02 16:24:28 +08:00
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 8d967cb162 chore: record learning transfer A pipeline milestone 2026-08-02 12:59:02 +08:00
dafang 83669b3d34 fix: make learning transfer A failures actionable 2026-08-02 12:57:47 +08:00
dafang 70ae347b05 chore: freeze learning transfer target attestation 2026-08-02 11:04:49 +08:00
dafang 652949c08d fix: allow required Seatbelt path metadata 2026-08-02 11:02:37 +08:00
dafang 05c511d42b chore: freeze learning transfer target attestation 2026-08-02 09:27:19 +08:00
dafang 92b12babe3 fix: keep Codex provider auth sources atomic 2026-08-02 09:21:26 +08:00
dafang 9d1a2b340c chore: record blocked Codex target probe 2026-08-02 08:47:38 +08:00
dafang 54785f75ad fix: harden learning transfer target probes 2026-08-02 08:42:55 +08:00
dafang eed9f55056 feat(eval): add paired project learning transfer
Implements LEARN-3 with frozen paired fixtures, crash-safe journals, target isolation probes, and measured learning-transfer verdicts.

Supersedes local checkpoints 3022df5, 715c831, 9fb5d0f, and fe635f1; those attestations were invalidated and never used for real model runs.
2026-08-02 05:21:37 +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 9ca7273472 docs(readme): restructure onboarding documentation 2026-08-01 21:02:04 +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 7f4e4ba4f3 docs(readme): newcomer-first — drop the eval-loop chapter, confine v1 to Upgrade
Owner direction: the README speaks to a first-time user of today's
CodeStable, not to its history or internal methodology.

- Removed the 'build -> evaluate loop' chapter (maintainer methodology;
  lives in the repo, not the front page) and its tagline pointer
- v1 is now mentioned exactly once per language — inside the Upgrade
  section, which also gained a line assuring that legacy knowledge
  (compound/, features/, old tools) stays covered by v2 retrieval
- Design / catalog / workflow / roadmap sections rewritten to describe
  what CodeStable is, not what it used to be; alias line reduced to
  'cs-code-review is an alias of cs-review'

Doc contract suite stays green (96 passed).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-31 12:46:17 +08:00
dafang 286a180806 docs(readme): rewrite around the v2 methodology (zh+en)
Rebuilt the three v2 content sections as the main narrative instead of
v1-era framing with patches:

- 'Design: thin harness, thick context' — write responsibilities not
  steps; the hard-gate table per flow (incl. 3-round review cap, design
  persistence, test-first); on-demand references for engineering
  judgment; the six homes of knowledge with graduate-before-delete
- Skill catalog refreshed (cs-review three modes, epic inline-first
  sub-designs, the single cs-code-review alias called out)
- 'Workflow and project memory' — one execution mainline, per-request
  risk judgment, zero artifacts for ordinary work, retrieval-with-source
  discipline, zero-migration v1 boundary
- Tagline gains the one-line methodology; roadmap logs the dogfood loop

Personal narrative sections (origin, orchestration comparison,
philosophy, build->evaluate loop) preserved as-is. Doc contract tests
stay green (96 passed).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-31 12:39:57 +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 7e5feccdef feat(build-cs-skill): land thin-harness authoring protocol, align to v2
- Bring in the owner's 5-file thin-harness rework (SKILL.md, spec-standard,
  quality-gates with Thin Harness / Context Plan / Evolution Compression
  gates, fixture-patterns, openai.yaml) — contracts test now passes,
  xfail marker removed
- Fix v1 contract residue in step 7: no more .codestable/reference/
  sharing or cs-onboard/tools entry points; v2 skills invoke no runtime
  tools, shared discipline is inlined per skill
- Trim contracts 13 -> 8: drop section-existence anchors already locked
  by tests, keep behavioral anchors; add 'Additive-only evolution is a
  failure mode' as the evolution anchor
- Mark ToolBackedWorkflow / ShimSkill as shapes with no v2 instance

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-30 10:22:18 +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