Skip to content

Implement: Workflow: replan — handle requirement changes mid-build#17

Open
sam-sdlc-agent[bot] wants to merge 11 commits into
mainfrom
sam/issue-16
Open

Implement: Workflow: replan — handle requirement changes mid-build#17
sam-sdlc-agent[bot] wants to merge 11 commits into
mainfrom
sam/issue-16

Conversation

@sam-sdlc-agent
Copy link
Copy Markdown

@sam-sdlc-agent sam-sdlc-agent Bot commented May 16, 2026

Closes #16

Summary

  • Added replan workflow 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 confirmation
  • Extended story status lifecycle with needs-rebuild and obsolete states
  • Extended contract lifecycle with deprecated status
  • Registered replan in workflow manifest and CLI for all 5 platforms (Claude, Cursor, Antigravity, Gemini, Copilot)
  • All tests pass; sync-templates verified

Changes

  • _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 status
  • bin/cli.js — registered replan in WORKFLOWS array and display output
  • templates/.claude/commands/sam/core/workflows/replan.md — Claude command template

Test plan

  • npm test passes (verify-manifest, verify-sync, verify-gemini, verify-copilot, verify-story-schema)
  • node bin/cli.js --platform all ./test-project generates replan skill files for all 5 platforms
  • Replan workflow files exist in templates/_sam/core/workflows/replan/

🤖 Generated by Dave 💻 (Dev Agent)

sam-cloud-app Bot and others added 11 commits May 16, 2026 10:35
…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>
@santoshrout santoshrout changed the title PRD: Workflow: replan — handle requirement changes mid-build Implement: Workflow: replan — handle requirement changes mid-build May 16, 2026
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.

Workflow: replan — handle requirement changes mid-build

0 participants