Skip to content

feat(protocol): extend Evidentiary Discipline to Plan and Review stages#7

Open
d-wwei wants to merge 2 commits into
masterfrom
feat/evidentiary-discipline-expansion
Open

feat(protocol): extend Evidentiary Discipline to Plan and Review stages#7
d-wwei wants to merge 2 commits into
masterfrom
feat/evidentiary-discipline-expansion

Conversation

@d-wwei

@d-wwei d-wwei commented Apr 15, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add evidence tagging ([已验证]/[假设]) hard gates to Plan and Review stages
  • Stage-specific violation types: Plan targets file/API/dependency claims, Review targets dismissals and behavioral claims
  • Exit gate substance prompts: Plan Q3/Q4 (decision rationale + file path verification), Review Q3/Q4 (dismissal evidence + behavioral claims)
  • Matches the existing pattern in Brainstorm stage

Changed Files

  • skill/stages/plan.md — EVIDENTIARY DISCIPLINE block + Q3/Q4 exit gate prompts
  • skill/stages/review.md — EVIDENTIARY DISCIPLINE block + Q3/Q4 exit gate prompts
  • docs/ — Requirements, plan, review artifacts

Test plan

  • Consistency check: same format/vocabulary as Brainstorm's block
  • Stage-specific violations are distinct (not copy-pasted)
  • Exit gate Q3/Q4 actionable with cross-reference sources
  • Existing Q1/Q2 in both files untouched
  • CI passes

🤖 Generated with Claude Code

d-wwei and others added 2 commits April 14, 2026 22:23
Reviewed 13-section spec for Plan Agent orchestration architecture.
Fixed 3 blocking issues (P0) and 4 important issues (P1):

- P0-1: Rename orchestration daemon CLI to `apex orch` (avoid collision
  with existing `apex daemon` for Dashboard launchd)
- P0-2: Define spawnUnblockedTasks — daemon spawns via `apex worker spawn`
  CLI, reads meta.json for WindowHandle tracking
- P0-3: Clarify Section 6.2 (agentStartCommand) is in-scope, narrow
  Section 13 未覆盖 list accordingly
- P1-1: Replace broken autoIntegrate shell script with temporary worktree
- P1-2: Add autoMerge definition (git merge --ff after integrate passes)
- P1-3: Fix lock file TOCTOU with atomic writeFileSync({flag:'wx'})
- P1-4: Specify daemon as M&C exit condition detector

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add evidence tagging ([已验证]/[假设]) hard gates to Plan and Review stages,
matching the pattern already enforced in Brainstorm. Each stage gets
stage-specific violation types:

- Plan: file existence claims, API capability claims, approach feasibility,
  dependency availability — all must be verified or tagged [假设]
- Review: "not an issue" dismissals, behavioral claims, edge case assumptions,
  security claims — all must be verified or tagged [假设]

Exit gate substance prompts added:
- Plan Q3: decisions' rationale tagged with evidence basis
- Plan Q4: file manifest paths verified against actual codebase
- Review Q3: dismissals backed by [已验证] evidence
- Review Q4: behavioral claims verified with file:line evidence

Requirements: docs/brainstorms/evidentiary-discipline-expansion-requirements.md
Plan: docs/plans/evidentiary-discipline-expansion-plan.md
Review: docs/reviews/evidentiary-discipline-expansion-review.md

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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