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
chore: files changed crates/openhuman-core/src/storage/import/fixtures/legacy-v1-profile/README.md,c
Steven Enamakel750bf6fe54ef
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 fd64f5ca97..a3bb13722a 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@@ -1,25 +1,37 @@# Legacy v1 profile storage fixture-This fixture's physical SQLite layout is generated with the public-`tinystoragedrivers` ports from the historical v1 implementation at commit-`0c6dcfce57201fadd830431f36fd759c3baa897a`. It is deliberately generated by-`StorageBackend::for_scope` and `DocumentStore`, not by writing TSD's SQLite-tables directly. The hand-authored document bodies currently demonstrate the-inventory's scope and collection mapping; they are not claimed as historical-owner-writer fixtures. The current host reads this database through its-legacy inventory adapter.+`storage.db` is a semantic profile fixture in the physical SQLite format of+the historical public `tinystoragedrivers` v1 API at+`0c6dcfce57201fadd830431f36fd759c3baa897a`. The standalone generator writes it+through that API's `StorageBackend::for_scope`, `DocumentStore`, and+`put_with` methods; it does not create or edit TSD tables directly.++The generator's serializable wire structs mirror the historical OpenHuman+owner models and writer transformations from `2d3e22636e^`:++- `platform/cost/types.rs::CostRecord` and `TokenUsage` are written to+ `cost_records`, including the owner timestamp and `ts_ms`.+- `agent/artifacts/types.rs::ArtifactMeta` is written to `artifacts` with the+ old writer's `created_at` to `created_ms` conversion; its+ `artifact_args` document uses the old `{ "args": ... }` wrapper.+- `profiles/types.rs::ProfileMeta` is written to the `cluster` scope's+ `profiles` collection with `created_at` removed from the body and retained+ as TSD `created_ms` metadata, matching `ProfileRegistry::body_of`.++The focused import test reads this checked-in database through the real boot+import pipeline, then deserializes the migrated cost and artifact records into+their owner types and reads the profile through `ProfileRegistry`. It checks+that the source database hash is unchanged and that deleting an imported+record survives a repeated boot import. This proves the TSD document inventory+and owner schema conversions for these records. Secrets, module state, and+workspace artifact files use separate production import paths and are not+covered by `run_all` in this test.The standalone generator is under `generator/`; it is not a workspace member-or product dependency. Regenerate into a persistent caller-selected directory:+or product dependency. Regenerate a fresh database at a caller-selected path:```shcargo run --locked --manifest-path crates/openhuman-core/src/storage/import/fixtures/legacy-v1-profile/generator/Cargo.toml -- /absolute/path/to/storage.db```-The output is a small authentic v1 TSD database. It includes profile registry-and lease rows, plus sample documents in profile and module scopes. The-fixture test separately verifies legacy files that are not stored in this-database; those sources are not conflated with TSD's inventory.--The initial generated database has SHA-256-`8de140563e2f985b5340d29f89f03889b7aff2fe90f486358a39ceb84d4d1404`.+The checked-in database SHA-256 is recorded here after generation.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 0c3dcae66b..79619f642d 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