fix: feature_code in usage_alert_history not constrained to entitlement_features #12
Labels
No labels
P1
P2
P3
PHP
agent-ready
bug
clotho
discovery
docs
epic
refactor
review
security
testing
athena
athena-gemini
audit
clotho
clotho-gemini
codex
darbs-claude
security
wiki
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: core/php-tenant#12
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Problem
In
Migrations/2026_01_26_120000_create_usage_alert_history_table.php(line 19),feature_codeis stored as a plain string with no foreign key constraint toentitlement_features.code:Impact
Acceptance Criteria
feature_codefor query performancefeature_idFK column alongsidefeature_codefor proper referential integrityDiscovered during automated scan (issue #3)