feat: add template version management #63
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#63
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/template-version-management"
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
plan_template_versionstable that snapshots YAML template content when a plan is created, so future edits to template files never affect existing planstemplate_version_id(nullable FK), with version number also stored inmetadataPlanTemplateVersionmodel withfindOrCreateFromTemplate()andhistoryFor()class methodsPlanTemplateServicegainsgetVersionHistory(slug)andgetVersion(slug, version)to query stored versionsTemplateVersionManagementTestChanges
Migrations/0001_01_01_000006_add_template_versions.phpModels/PlanTemplateVersion.phpModels/AgentPlan.phptemplate_version_idfillable + relationshipServices/PlanTemplateService.phptests/Feature/TemplateVersionManagementTest.phpTODO.mdTest plan
TemplateVersionManagementTest-- all 25 cases passPlanTemplateServiceTest-- no regressionsCloses #35
Generated with Claude Code
474f96ee5fto0e7b617551