Skip to content

Commit e113cc3

Browse files
maksymlumenclaude
andcommitted
docs: add system port delivery order warning to CLAUDE.md
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f42ef33 commit e113cc3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

CLAUDE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
- No JSON parsing in components - SDK handles deserialization
1414
- No knowledge of other modules' metadata keys
1515

16+
## CRITICAL: System Port Delivery Order
17+
18+
System ports (`_settings`, `_control`, `_reconcile`) have NO guaranteed delivery order. On pod restart, `_reconcile` may fire before `_settings`. Components that persist state to metadata must use a guard flag to prevent reconcile from overwriting fresh values with stale metadata. See SDK CLAUDE.md for the full pattern.
19+
1620
## Context Pattern for Schema Generation
1721

1822
Define a type alias for Context and use it in structs:

0 commit comments

Comments
 (0)