docs(phase-0): environment assessment, architecture review, and findings #4
No reviewers
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#4
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "feat/phase-0-assessment"
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
Phase 0 environment assessment and architecture review per issue #2.
Key Findings
P1 Bug:
namespace_idcolumns missing from migrations (BUG-001)entitlement_usage_recordsandentitlement_booststables have nonamespace_idcolumn, butEntitlementService::recordNamespaceUsage()andprovisionNamespaceBoost()both write to it. Any call to either method will throw a database error at runtime. A migration is needed.P0 Environment Blocker:
composer installfails (ENV-001)host-uk/coreis a private dependency with norepositoriesentry incomposer.json. The vendor directory is empty, blocking all tooling (tests, Pint, PHPStan).P3: 9 files missing
declare(strict_types=1)(DX-005)DX-001 only fixed three files — nine more remain non-compliant.
Architecture Documented
BelongsToWorkspacetrait: auto-assignsworkspace_id, strict-mode enforcement, cache invalidation hooksWorkspaceScopeglobal scope: auto-filters all queries, fail-safe empty results in non-strict modeResolveWorkspaceFromSubdomain->RequireWorkspaceContext->CheckWorkspacePermissionTest plan
Closes #2
Generated with Claude Code