Revert "Merge pull request #3578 from gsd-build/fix/3569-init-plan-phase-status"

This reverts commit a244dd7fc3, reversing
changes made to 8f95b2fe23.
This commit is contained in:
Tom Boucher
2026-05-15 15:16:55 -04:00
parent a244dd7fc3
commit 05d4ba8147
6 changed files with 2 additions and 127 deletions

View File

@@ -1011,7 +1011,6 @@ function cmdCheckCommit(cwd, raw) {
}
module.exports = {
determinePhaseStatus,
cmdGenerateSlug,
cmdCurrentTimestamp,
cmdListTodos,

View File

@@ -10,7 +10,6 @@ const { planningPaths, planningDir, planningRoot } = require('./planning-workspa
const { maskIfSecret } = require('./secrets.cjs');
const scanPhasePlans = require('./plan-scan.cjs');
const { stateExtractField } = require('./state-document.cjs');
const { determinePhaseStatus } = require('./commands.cjs');
// Accept all bold/colon variants of the Requirements header (#2769):
// **Requirements:** / **Requirements**: / **Requirements** : render the
@@ -296,20 +295,6 @@ function cmdInitPlanPhase(cwd, phase, raw, options = {}) {
padded_phase: phaseNumberPlan ? normalizePhaseName(phaseNumberPlan) : null,
phase_req_ids,
// #3569: surface phase lifecycle status so /gsd:plan-phase can short-circuit
// on closed (Complete) phases instead of silently replanning over shipped
// code. Reuses determinePhaseStatus — the project-wide vocabulary
// (Pending | Planned | In Progress | Executed | Complete | Needs Review).
// No directory yet → Pending (phase has not been started).
phase_status: phaseDirPlan
? determinePhaseStatus(
phaseInfo?.plans?.length || 0,
phaseInfo?.summaries?.length || 0,
path.join(cwd, phaseDirPlan),
'Pending',
)
: 'Pending',
// Existing artifacts
has_research: phaseInfo?.has_research || false,
has_context: phaseInfo?.has_context || false,