Skip to content

Add SiloStatesService for silo entry state management#59

Open
alvarolivie wants to merge 2 commits intomainfrom
silo-states
Open

Add SiloStatesService for silo entry state management#59
alvarolivie wants to merge 2 commits intomainfrom
silo-states

Conversation

@alvarolivie
Copy link
Copy Markdown
Contributor

Summary

  • Adds SiloStatesService to manage silo entry state transitions
  • Supports List (GET all states for an entry) and Create (POST new state, or idempotent PUT with timestamp)
  • Wires the new service into SiloService via States() accessor, following the existing sub-service pattern

Test plan

  • Verify States().List(ctx, entryID) returns state collection for an entry
  • Verify States().Create(ctx, &CreateSiloState{...}) creates a new state
  • Verify idempotent PUT when At field is set on CreateSiloState

🤖 Generated with Claude Code

alvarolivie and others added 2 commits March 13, 2026 17:07
Add List and Create methods for silo entry states, following the
same service pattern as other silo sub-services. Supports both
POST (auto-timestamp) and PUT (idempotent with explicit timestamp)
for state creation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant