Commit Graph

8 Commits

Author SHA1 Message Date
dafang 11fa14a127 feat(cs-epic-e2e): 路A 拆解覆盖度 — H4 弱阳性 + 修 max_tokens 截断 + 效度铁律 8/9
- H4 弱阳性 [underpowered]:cs-epic edge 覆盖 0.78 > 裸 agent 0.60(haiku),e2e
  系列首个非天花板正信号。差异集中在跨切面边角(CLI 身份传递/dry-run 预览/回滚重映射),
  裸 agent 系统性漏(0.00),cs-epic 部分覆盖;信号领域相关(审计/迁移类拉开,通知类天花板)。
- 修 adapter_api.py max_tokens 2048→8192(+CS_EVAL_MAX_TOKENS 覆盖):36/36 撞上限把
  覆盖率测成"上限内塞得下多少文本",冗长 roadmap 被砍更狠,差点误导出 H4 NULL。
- 效度铁律 8(生成型须校验未撞 max_tokens)/ 9(拆解覆盖只能用语义 judge;planted token
  recall 低估 32pp:同一 roadmap planted=0.43 vs opus judge=1.0)。
- 测量约束:sonnet 完整 roadmap 稳定网关 504(本机仅网关 AUTH_TOKEN、无官方 key),
  bare-sonnet 0/9;H4 跨模型复现待独立网络环境(P3)。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-08 20:04:08 +08:00
dafang 404c689700 docs(eval): validity rules 6/7 — explicit/implicit split, observation
channels, dual-track self-certification, environment waivers

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-08 13:37:16 +08:00
dafang d18c2110c7 docs(eval): record build-vs-fork seed decision and blind-spot injection rule
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-08 06:41:36 +08:00
dafang d682815340 docs(eval): e2e outcome eval plan for research skills
Plan (not yet implemented) to upgrade cs-feat/cs-issue/cs-epic evaluation
from routing-level proxy metrics to outcome-level: seed repos + hidden
acceptance tests + real agent harness, mechanical pass-rate scoring, with
a "skill vs bare agent" control layer. Carries forward the routing
campaign's validity rules (hidden tests, realistic onboarded repos,
solvability pre-check, must-refuse scenarios, triage discipline).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-07 20:56:27 +08:00
dafang 98f5c802dc refactor(eval-cs-skill): rename cs-skill-lab -> eval-cs-skill
Now that build-cs-skill owns skill authoring, this skill is purely the measured
eval/optimize loop, so eval-cs-skill is the clearer name. Physical rename of
.claude/skills/cs-skill-lab -> eval-cs-skill and experiments/cs-skill-lab-001 ->
eval-cs-skill-001, with all self-references, tests, ADR-003, and results updated.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-07 10:25:14 +08:00
dafang 1b2644f65b docs(cs-skill-lab): codify eval validity lessons from the first real-model campaign
The campaign found that every apparent model/skill "gap" was an eval-fixture or
harness deficiency, not a skill defect. Codify the three validity rules so future
fixtures are fair:

- reproduce the skill's designed runtime (inject_context: onboard context)
- score prose/symbol answers with a semantic oracle (recall_judge), not just
  token overlap
- embed the subject matter in the fixture (review needs the diff, docs need the
  code/config/API; design/plan can proceed from a requirement)

plus the inspection discipline: read per-model, read raw outputs, k=1 has variance.
Recorded in references/eval/protocol.md (三铁律) and ADR-003 consequences.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-07 10:02:39 +08:00
dafang bf79cb4d8d feat(cs-skill-lab): add skill engineering eval/autoresearch loop
Add cs-skill-lab, a project-local maintainer skill (.claude/skills/, NOT
shipped in the codestable plugin) for engineering cs skills end to end:
author -> eval -> optimize -> release, across models/harnesses, reusing the
BAIME discipline (dual value function, pre-registration, [measured] honesty).

- runner + harness adapter registry (mock/mock-weak offline; claude-headless,
  codex-cli, paseo, api real) + scorers (planted_defect, dod_gate, llm_judge)
  + metrics tagged [measured]/[soft]/[underpowered]; cost dry-run + budget cap
- optimize.py OCA loop (V_instance/V_meta, convergence), regression battery,
  bump_version, adapt_extracted_skill, enqueue (cron autonomy), calibrate_judge
- 8 eval experiments (code-review/issue-fix/audit/refactor/feat/epic/docs +
  cs-skill-lab self-reference); cs-feedback -> regression fixture bridge
- 5 pytest suites; ADR-003; generated eval outputs gitignored

Land a [measured] cross-model fix into cs-code-review: an ad-hoc/bare-input
fast path so weaker models review a bare diff instead of refusing on missing
CodeStable context (claude-haiku-4-5 recall 0.31 -> 1.00, sonnet unchanged;
evidence in experiments/cs-code-review-robustness-001).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-07 08:31:08 +08:00
dafang b8babf9eb1 refactor(codestable): decouple tool runtime and worktree policy 2026-07-06 21:11:54 +08:00