feat: 重构 memory 系统,支持 user memory 和 work memory 分离
This commit is contained in:
@@ -16,3 +16,18 @@ def test_memory_automation_job_trigger_exists_in_0004_migration() -> None:
|
||||
assert "'agent_type', 'memory'" in content
|
||||
assert "ux_automation_jobs_owner_memory_active" in content
|
||||
assert "input_template" in content
|
||||
|
||||
|
||||
def test_bootstrap_key_replaces_agent_type_unique_anchor() -> None:
|
||||
migration = (
|
||||
Path(__file__).resolve().parents[3]
|
||||
/ "alembic"
|
||||
/ "versions"
|
||||
/ "20260323_0003_bootstrap_job_key_and_unique_indexes.py"
|
||||
)
|
||||
content = migration.read_text(encoding="utf-8")
|
||||
|
||||
assert "bootstrap_key" in content
|
||||
assert "ux_automation_jobs_owner_bootstrap_key_active" in content
|
||||
assert "ux_memories_owner_memory_type" in content
|
||||
assert "DROP INDEX IF EXISTS ux_automation_jobs_owner_memory_active" in content
|
||||
|
||||
Reference in New Issue
Block a user