agent/php/Migrations
Snider 429d1c0897 feat(agent/agentic): RFC foundation — atomic CompleteTask + credit ledger reconcile
Foundation slice for Mantis #841 php/Mod/Agent RFC implementation:

* CompleteTask now wraps in DB::transaction with idempotent credit awards
  and safe current_task_id clearing
* Credits/{Award,GetBalance,GetCreditHistory} updated for agent_id +
  fleet_task_id ledger support and richer balance totals
* GenerateCommand canonical agentic:generate wiring; legacy duplicate
  no longer registered
* Boot wires brain:clean / brain:prune / brain:reindex
* EmbedMemory exits early when memory already indexed
* 3 follow-on fleet migrations reconcile fleet_nodes pointer column,
  fleet_tasks/credit_entries fk/index hygiene, fleet+credit constraints
* 4 foundation tests under php/tests/Feature/Mod/Agent/

php -l clean on all modified files. pest unrunnable in sandbox (no vendor/).

Foundation slice only: remaining model/action parity, full MCP tool/
service sweep, fleet controller auth-context, and 41-tool/45-action
surface left for follow-up tickets.

Co-authored-by: Codex <noreply@openai.com>
Closes tasks.lthn.sh/view.php?id=841
2026-04-25 20:59:38 +01:00
..
0001_01_01_000001_create_agentic_tables.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
0001_01_01_000002_add_ip_whitelist_to_agent_api_keys.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
0001_01_01_000003_create_agent_plans_tables.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
0001_01_01_000004_create_prompt_tables.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
0001_01_01_000005_add_performance_indexes.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
0001_01_01_000006_add_soft_deletes_to_agent_plans.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
0001_01_01_000007_add_template_versions.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
0001_01_01_000008_create_brain_memories_table.php fix(brain): Postgres portability for brain connection + migrations 2026-04-23 12:32:58 +01:00
0001_01_01_000009_drop_brain_memories_workspace_fk.php fix(brain): Postgres portability for brain connection + migrations 2026-04-23 12:32:58 +01:00
0001_01_01_000010_add_source_to_brain_memories.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
0001_01_01_000010_rename_session_columns.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
0001_01_01_000011_create_issue_tracker_tables.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
0001_01_01_000012_create_agent_messages_table.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
2026_03_17_000001_create_github_tracking_tables.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
2026_03_31_000001_create_agent_fleet_tables.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
2026_03_31_000002_add_category_to_agent_workspace_states.php revert fcb9c189e5 2026-04-23 12:32:57 +01:00
2026_04_23_000001_add_indexed_at_to_brain_memories.php feat(brain): add EmbedMemory job + indexed_at tracking 2026-04-23 12:47:10 +01:00
2026_04_24_000001_add_org_to_brain_memories.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
2026_04_25_000002_reconcile_fleet_nodes_table.php feat(agent/agentic): RFC foundation — atomic CompleteTask + credit ledger reconcile 2026-04-25 20:59:38 +01:00
2026_04_25_000003_reconcile_fleet_tasks_and_credit_entries.php feat(agent/agentic): RFC foundation — atomic CompleteTask + credit ledger reconcile 2026-04-25 20:59:38 +01:00
2026_04_25_000004_add_fleet_current_task_and_credit_constraints.php feat(agent/agentic): RFC foundation — atomic CompleteTask + credit ledger reconcile 2026-04-25 20:59:38 +01:00