Skip to content

Commit 517d448

Browse files
ddx-checkpointclaude
andcommitted
code: clarify Create-time status exception in store.go [ddx-e8956709]
Updated store.go:544-549 comment to explicitly document that Create-time StatusOpen assignment is the sole exception to ValidateLifecycleTransition, aligning with reconcile.go:239-243 which already documents the ClosureGate bypass via TD-031 §3.1. All other Status writes flow through transitionLifecycleInPlace + ValidateLifecycleTransition per TD-031. Verified via grep that only two Status assignments exist: - Create (line 549) with documented exception - transitionLifecycleInPlace (line 762) which validates transitions Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
1 parent 2ccb7e0 commit 517d448

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

cli/internal/bead/store.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -542,10 +542,10 @@ func (s *Store) Create(args ...any) error {
542542
b.IssueType = DefaultType
543543
}
544544
if b.Status == "" {
545-
// Bead creation is initial state assignment, not a lifecycle transition.
546-
// This is the sole exception to transitionLifecycleInPlace: all other status
547-
// writes go through transitionLifecycleInPlace + ValidateLifecycleTransition
548-
// (TD-031 §3 transition matrix, transitionLifecycleInPlace pattern).
545+
// Create-time StatusOpen assignment is initial state, not a lifecycle transition.
546+
// This is the sole exception to ValidateLifecycleTransition: all other status
547+
// writes go through transitionLifecycleInPlace, which validates transitions via
548+
// ValidateLifecycleTransition (TD-031 §3 transition matrix pattern).
549549
b.Status = DefaultStatus
550550
}
551551
b.CreatedAt = now

0 commit comments

Comments
 (0)