Skip to content

feat: session-end reflection を qa_schema 3 の Transferable Principles として inline する (Phase 1) - #6

Merged
penne-0505 merged 1 commit into
mainfrom
feat/transferable-principles-phase1
Aug 4, 2026
Merged

feat: session-end reflection を qa_schema 3 の Transferable Principles として inline する (Phase 1)#6
penne-0505 merged 1 commit into
mainfrom
feat/transferable-principles-phase1

Conversation

@penne-0505

Copy link
Copy Markdown
Owner

Closes #1

何を変えるか

agent が「既存 pattern と一致するから新規 intent 不要」と inline で正当化し、session で得た transferable principle の昇格検討そのものを skip する構造的な抜け穴を塞ぐ。fix の説明 (what) は書かれるが一般化された学び (why generalized) が残らない、という downstream で観測された failure mode への対応。

設計判断

  • qa_schema 3 = 2 + verification の Transferable Principles 必須。legacy 2 は受理継続、test-plan の要件は不変。既存文書の一斉移行は要求しない。
  • validator は presence のみ検証: candidate (- TP: ...) または理由付き None: <reason> のみ受理。空欄と裸の None は fail。これにより「検討したが無かった」と「無言の skip」が構造的に区別される。中身の質は user review の領分 (intent ↔ code traceability の強制レベルと同じ哲学)。
  • verification テンプレートの新 section は comment のみの本文で出荷: 未記入のまま複製した文書は validator で fail するため、reflection を書かずに通過する経路がない。
  • skill 側の prompt は「intent を書け」ではなく「『これはなぜ』と立ち止まった判断はあったか」: 記録行為を thinking の延長に寄せ、儀式化を避ける。昇格判断は user gate。
  • 昇格先の canonical path を新設: cross-cutting な原則は _docs/intent/<Area>/conventions/decision.md に集約 (documentation_operations 昇格ルール 5)。昇格 DEC は昇格元 verification への provenance を references に残す。
  • eval case transferable-principle-skip を追加: 昇格 skip を再現するシナリオで、この step が agent 挙動を変えるかを逸話ではなく回帰確認できるようにする。
  • 第一 sample (candidate / none の記入例) は quality_assurance.md に書き下ろし。agent が模倣する対象を先に供給する。

検証

  • ./scripts/check-docs.sh PASS (fmt / check / 全 validator / fixture 回帰 / hook test / smoke)
  • 新規 invalid fixture は意図したメッセージで fail することを個別確認 (missing heading / must record candidates or explicit None)
  • CI 第 2 job 相当の starter 展開シミュレーションでも check-docs PASS
  • markdownlint (CI 同等 glob) 0 errors

🤖 Generated with Claude Code

…iples

Fix the structural skip where agents close a session recording only what
was fixed, never asking whether the session produced a learning that
outlives it (the "matches an existing pattern, no new intent needed"
rationalization observed downstream).

- qa_schema 3 = 2 + a required Transferable Principles section on
  verification docs; legacy 2 stays accepted, test-plan requirements are
  unchanged.
- validate-qa accepts candidates or a reasoned "None: <reason>" only; a
  blank section or bare None fails, so "considered, nothing found" is
  structurally distinct from a silent skip. Content quality stays with
  user review, mirroring the enforcement level of intent-code
  traceability.
- The verification template ships the section as comment-only guidance,
  so an untouched copy fails validation and the reflection must actually
  be written.
- post-implementation / qa-review inline the reflection step; the prompt
  asks "what made you stop and think why" instead of "write an intent"
  so the record extends thinking rather than adding ceremony. Promotion
  to intent is gated on the user.
- Cross-cutting principles promote to
  _docs/intent/<Area>/conventions/decision.md per the new promotion rule
  in documentation_operations, with provenance back to the verification.
- New eval case transferable-principle-skip reproduces the skip so the
  step can be regression-checked against agent behavior, not anecdotes.

Closes #1

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@penne-0505
penne-0505 merged commit d0d03bd into main Aug 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: session-end reflection — transferable principle candidate step を workflow に inline する (Phase 1)

1 participant