Skip to content

refine: strengthen failure-mode and spec-completeness coverage in planning agents#179

Merged
shinpr merged 3 commits into
mainfrom
refine/failure-mode-propagation-and-spec-completeness
Jun 23, 2026
Merged

refine: strengthen failure-mode and spec-completeness coverage in planning agents#179
shinpr merged 3 commits into
mainfrom
refine/failure-mode-propagation-and-spec-completeness

Conversation

@shinpr

@shinpr shinpr commented Jun 23, 2026

Copy link
Copy Markdown
Owner

Summary

Close gaps where a feature's combinatorial shape — interacting modes, ordering of absent values, reset/clear lifecycle — could pass through planning, task decomposition, and review without ever becoming a verifiable contract. The changes anchor to existing mechanisms (Failure Mode Checklist, AC drafting, Reference Contract Values, Proof Obligations) rather than adding parallel structures, and are applied identically across en and ja.

Changes

  • Failure Mode Checklist — add a ninth domain-independent category missing-sort-key ordering (ordering when some elements lack the sort key). Propagated to the enumerations in work-planner, the document-reviewer completeness gate, and the plan template.
  • AC drafting — add a mode × branch combination-expansion step in technical-designer and technical-designer-frontend: when a change adds a mode/flag/variant overlaying an existing selection/ordering/filtering/display branch, expand the new value against each existing branch (a mode can take effect on one branch while silently no-opping on the others).
  • State lifecycle — capture reset/clear as a state-lifecycle-negative contract: a Reset/Clear Behavior column in the Design Doc Client State Design table and a work-planner rule to record the reset-returns-to-unused condition in Reference Contract Values.
  • Failure Mode propagation — propagate applicable Failure Mode Checklist categories from the work plan to task Proof Obligations (task-decomposer), and verify them in review (code-reviewer, integration-test-reviewer, task template) — including a deterministic fallback when taskFiles are absent, so AC-less obligations are not silently treated as verified.

Scope & validation

  • Applied to both -en and -ja agent/skill sources; per-file diff shape is identical across locales.
  • Patch release 1.24.2 with a changelog entry.
  • check:skills-index pre-commit hook passes (26 skills consistent across en/ja).

🤖 Generated with Claude Code

shinpr and others added 3 commits June 23, 2026 19:23
…coverage

Close gaps where a feature's combinatorial shape (interacting modes, ordering
of absent values, reset/clear lifecycle) could pass through planning,
decomposition, and review without becoming a verifiable contract.

- Failure Mode Checklist: add ninth domain-independent category
  `missing-sort-key ordering` (work-planner, document-reviewer, plan-template)
- AC drafting: add a mode x branch combination expansion step
  (technical-designer, technical-designer-frontend)
- State lifecycle: capture reset/clear as a state-lifecycle-negative contract —
  Reset/Clear Behavior column in the Client State Design table and a
  work-planner rule to record it in Reference Contract Values
- Failure Mode propagation: propagate applicable categories to task Proof
  Obligations (task-decomposer) and verify them in review (code-reviewer,
  integration-test-reviewer, task-template), with a deterministic fallback when
  taskFiles are absent so AC-less obligations are not silently treated as
  verified

Scope: English (-en) agent/skill sources only.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…age to ja

Japanese (-ja) counterpart of the prior -en change, keeping wording, tone, and
terminology consistent across both locales.

- Failure Mode Checklist: add ninth domain-independent category
  `missing-sort-key ordering` (work-planner, document-reviewer, plan-template)
- AC drafting: add a mode x branch combination expansion step
  (technical-designer, technical-designer-frontend)
- State lifecycle: capture reset/clear as a state-lifecycle-negative contract —
  reset/clear behavior column in the Client State Design table and a
  work-planner rule to record it in Reference Contract Values
- Failure Mode propagation: propagate applicable categories to task Proof
  Obligations (task-decomposer) and verify them in review (code-reviewer,
  integration-test-reviewer, task-template), with a deterministic fallback when
  taskFiles are absent so AC-less obligations are not silently treated as
  verified

Technical terms and tokens (e.g. state-lifecycle-negative, Proof Obligations,
coverage_gap, needs_improvement, taskFiles) kept in English; prose mapped to the
existing ja vocabulary.

Scope: Japanese (-ja) agent/skill sources only.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Bump patch version and record the failure-mode / spec-completeness coverage
changes in the changelog.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@shinpr shinpr self-assigned this Jun 23, 2026
@shinpr
shinpr merged commit d016c60 into main Jun 23, 2026
1 check passed
@shinpr
shinpr deleted the refine/failure-mode-propagation-and-spec-completeness branch June 23, 2026 10:41
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.

1 participant