Implement: Workflow: replan — handle requirement changes mid-build#17
Open
sam-sdlc-agent[bot] wants to merge 11 commits into
Open
Implement: Workflow: replan — handle requirement changes mid-build#17sam-sdlc-agent[bot] wants to merge 11 commits into
sam-sdlc-agent[bot] wants to merge 11 commits into
Conversation
…ecycle - Add `needs-rebuild` and `obsolete` to the status enum in story-schema.md - Add transition rules: done→needs-rebuild, needs-rebuild→in-progress, done→obsolete, ready→obsolete, in-progress→obsolete - Add verify-story-schema.js to validate statuses and transitions - Register verification script in npm test suite Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ma.md Add Replan lifecycle subsection under Field rules → status explaining how sam-replan uses deprecated, version bumps, and status transitions for removed, modified, and added features. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Create step-01-diff-prd.md for the replan workflow. Atlas performs a semantic section-by-section comparison of a revised PRD against the current sdocs/prd.md, categorizing each requirement as added, modified, removed, or unchanged. Includes rename detection, modification detail drill-down, and an 80% threshold warning for near-total rewrites. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… stories Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Add replan Claude command template for /sam:core:workflows:replan - Add replan to display output for all 5 platforms - Update workflow count in Copilot instructions (5 → 7) - All tests pass; replan skill files generated for all platforms Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #16
Summary
replanworkflow that handles requirement changes mid-build by diffing a revised PRD against the current one, computing impact on contracts/stories, and applying per-category actions (added/modified/removed) with user confirmationneeds-rebuildandobsoletestatesdeprecatedstatusChanges
_sam/core/workflows/replan/— 5-step workflow (diff, impact analysis, gate, apply changes, merge PRD)_sam/_config/workflow-manifest.csv— added replan entry_sam/docs/story-schema.md— added needs-rebuild and obsolete statuses_sam/docs/contract-schema.md— added deprecated statusbin/cli.js— registered replan in WORKFLOWS array and display outputtemplates/.claude/commands/sam/core/workflows/replan.md— Claude command templateTest plan
npm testpasses (verify-manifest, verify-sync, verify-gemini, verify-copilot, verify-story-schema)node bin/cli.js --platform all ./test-projectgenerates replan skill files for all 5 platformstemplates/_sam/core/workflows/replan/🤖 Generated by Dave 💻 (Dev Agent)