refactor: consolidate duplicate state models (#18) #48
No reviewers
Labels
No labels
P1
P2
P3
PHP
agent-ready
bug
clotho
discovery
docs
refactor
review
security
testing
athena
athena-gemini
audit
clotho
clotho-gemini
codex
darbs-claude
security
wiki
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: core/php-agentic#48
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "refactor/consolidate-workspace-state-models"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Models/AgentWorkspaceState.php(legacy port with no backing migration)Models/WorkspaceState.phpas the single canonical state model backed byagent_workspace_statestableAgentPlan,StateSettool, andSecurityTestto useWorkspaceStateWorkspaceStateTest(18 tests covering table, casts, type helpers, scopes, static helpers, MCP output, and plan integration)Test plan
WorkspaceStatemodel can store and retrieve typed key-value stateAgentPlan::states()relation andsetState()work correctlyStateSetMCP tool still creates/updates state entriesWorkspaceStateTesttests passSecurityTestpasses with updated importCloses #18
🤖 Generated with Claude Code
b9da812f7eto7fadbcb96c