The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(storage): align legacy v1 import fixture with owner record shapes
Steven Enamakel69c2d640c37e
diff --git a/crates/openhuman-core/src/storage/import/fixtures/legacy-v1-profile/README.md b/crates/openhuman-core/src/storage/import/fixtures/legacy-v1-profile/README.mdindex e02e793107..a46bd51e81 100644--- a/crates/openhuman-core/src/storage/import/fixtures/legacy-v1-profile/README.md+++ b/crates/openhuman-core/src/storage/import/fixtures/legacy-v1-profile/README.md@@ -19,11 +19,10 @@ owner models and writer transformations from `2d3e22636e^`:as TSD `created_ms` metadata, matching `ProfileRegistry::body_of`.- The isolated desktop profile database stores owner documents in thehistorical `local` scope; the profile directory itself supplied user- isolation. `security/approval` writes a pending `approvals` record there;- the boot owner converter must retain it as `approvals.requests`.-- The thread owner records a transcript key and a committed thread/message in- the historical SQLite database. The fixture uses TSD's public v1 document- and stream writers, and the desktop owner APIs must read those records after+ isolation. The fixture writes a pending `approvals.requests` owner record+ and a `threads.transcript_keys` record through the historical TSD v1 writer.+- The thread owner also has a committed thread and message in the historical+ SQLite database. The desktop owner APIs must read all three records afterboot.- The TinyFlows catalog writes a `flows_definitions` record in the sameper-profile database. Desktop boot must migrate it through the TinyFlowsdiff --git a/crates/openhuman-core/src/storage/import/fixtures/legacy-v1-profile/generator/src/main.rs b/crates/openhuman-core/src/storage/import/fixtures/legacy-v1-profile/generator/src/main.rsindex 0b551dfc85..78a7c342f3 100644--- a/crates/openhuman-core/src/storage/import/fixtures/legacy-v1-profile/generator/src/main.rs+++ b/crates/openhuman-core/src/storage/import/fixtures/legacy-v1-profile/generator/src/main.rs@@ -215,15 +215,15 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {// migration.put(user_scope.documents(),- "approvals",+ "approvals.requests","fixture-approval",json!({"tool_name": "shell","action_summary": "Fixture approval","args_redacted": "{}","session_id": "fixture-session",- "created_at": "2025-02-03T04:05:06Z",- "expires_at": "2099-02-03T04:05:06Z",+ "created_ms": 1738555506000_i64,+ "deadline_ms": 4070908800000_i64,"pending": true,"agent_id": "default"}),@@ -268,8 +268,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {.await?;put(user_scope.documents(),- "threads_transcript_keys",- "fixture-thread",+ "threads.transcript_keys",+ &Key::of([thread_id])?.as_str().to_owned(),json!({"transcript_key": "fixture-transcript-key"}),).await?;diff --git a/crates/openhuman-core/src/storage/import/fixtures/legacy-v1-profile/storage.db b/crates/openhuman-core/src/storage/import/fixtures/legacy-v1-profile/storage.dbindex 268ef59e5c..f427d36eb3 100644Binary files a/crates/openhuman-core/src/storage/import/fixtures/legacy-v1-profile/storage.db and b/crates/openhuman-core/src/storage/import/fixtures/legacy-v1-profile/storage.db differ