agent/php/Models
Snider 38dcb17083 feat(agent/php): AgentProfile migration + Eloquent model + scopes (#825)
Adds Phase 3 foundation: agent_profiles table (Postgres-compatible, FK-free),
AgentProfile Eloquent model with encrypted api_key_cipher cast, array
capability_tags cast, datetime last_dispatched_at cast, active() and
forClass(string) local scopes.

AX-10 Pest Feature test covers:
- active() returns only enabled+headroom>0 rows
- active()->forClass('A') chains correctly
- api_key_cipher round-trips via encrypted cast
- capability_tags round-trips as array

Codex note: php -l clean on all 3 files; pest+artisan unavailable at
repo root for runtime verification (composer + bootstrap live downstream
in lab/lthn.ai).

Closes tasks.lthn.sh/view.php?id=825

Co-authored-by: Codex <noreply@openai.com>
2026-04-26 00:34:24 +01:00
..
AgentApiKey.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
AgentMessage.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
AgentPhase.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
AgentPlan.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
AgentProfile.php feat(agent/php): AgentProfile migration + Eloquent model + scopes (#825) 2026-04-26 00:34:24 +01:00
AgentSession.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
BrainMemory.php fix(brain): close openbrain audit gaps — org scoping + index cleanup + reindex flags + MCP schemas + circuit layer 2026-04-24 08:14:06 +01:00
CreditEntry.php feat(agent/agentic): RFC foundation — atomic CompleteTask + credit ledger reconcile 2026-04-25 20:59:38 +01:00
FleetNode.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
FleetTask.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
Issue.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
IssueComment.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
PlanTemplateVersion.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
Prompt.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
PromptVersion.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
Sprint.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
SyncRecord.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
Task.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
WorkspaceState.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00