[Phase 3.1] Agent entity types + metadata structs #47

Merged
rock merged 2 commits from feat/phase-3.1-agent-prompt-entity into main 2026-09-09 02:48:43 +00:00
2 Commits
Author SHA1 Message Date
rock 77d2bc1807 ci: add deploy workflow — retag SHA as latest on main merge
CI / CI (pull_request) Successful in 11m29s
deploy.yaml (main push only):
  - Pull image by SHA tag (already pushed during PR CI)
  - Tag as :latest and push
  - No rebuild needed
2026-09-08 19:26:37 -07:00
rock 050b3625dc feat(phase-3.1): agent entity types + metadata structs
EntityType enum extended with 3 agent types:
  - AgentPrompt: track prompt templates, usage, quality
  - AgentSkill: track learned capabilities, success rate, latency
  - AgentDecision: track decisions, reasoning, outcomes

New module: agent_entity.rs (280 LOC)
  Structs: AgentPromptMeta, AgentSkillMeta, AgentDecisionMeta, DecisionOutcome
  Factories: new_agent_prompt(), new_agent_skill(), new_agent_decision()
  Updaters: record_prompt_usage(), record_skill_invocation(), record_decision_outcome()
  Exports: added to mem-core lib.rs

Tests: 8 new (prompt, skill, decision, outcome, usage stats,
       invocation stats, round-trip, serialization)
Build: cargo build --release clean
Suite: 174 lib tests pass
2026-09-08 19:23:08 -07:00