Skip to content

Epic: tinystoragedrivers as a hardened static primitive (types + API + per-primitive crates, engines as features) #8131

Closed
29 of 29 issues completed

Description

@senamakel

Goal

Make tinystoragedrivers (tsd) a static, hardened storage primitive in the same mould as tinybus and tinytools.

  • Crates: one crate of data types, one crate of API traits, one crate per primitive (documents/streams as "no-sql", JSON key-value, blob/file, queue, secrets), and a test kit.
  • Engines: sqlite, mongodb, file/fs, s3, rabbitmq, keyring/KMS and memory are cargo features of the primitive crates, not separate crates.
  • Consumers: every tiny* crate depends on tinystoragedrivers-types + tinystoragedrivers-api only (plus -busproxy for loadable modules) and builds its tests on in-memory engines through dev-deps.
  • Models: schema registries, migrations, repos, leases and counters belong to the crates that own the records, not to tsd.
  • OpenHuman is the composition root. It opens engines from OPENHUMAN_STORAGE_URL and owns the scope grammar, legacy importers, the queue manifest and secret file formats.

Acceptance criterion: no child crate has a normal (or build) dependency on a storage engine (rusqlite/libsqlite3-sys, mongodb/bson, aws-sdk-s3, lapin, sqlx, redb, sled, rocksdb), directly or through tsd. A CI gate in openhuman (senamakel#442) enforces it, and so does an engine-tree step in every module repo.

This epic supersedes #7419. #7419 grew tsd into a model and policy layer, which the restructure removes. Its still-valid leaves are re-linked below; the rest are closed with a pointer here.

Where we are (deep dive, 2026-10-19)

tsd upstream main ae2fc08 is about 100k lines in 14 crates. The vendored pin is be94f75, 93 commits behind.

Problem Evidence Fixed by
-core bundles types, traits, the memory engine and the model helpers, so consumers get all of it through one normal dep crates/tinystoragedrivers-core/src/lib.rs:75-125; primitives/ 1.3k (Repo, Kv, Counters, Leases); schema/ 3.5k (registry, migrations, delivery) senamakel/tinystoragedrivers#25, Phase 3
Composite backend and scope purge (policy) backend/composite*, backend/purge/, driver purge modules, ~3.5k (tsd #65, #69) senamakel/tinystoragedrivers#24 (revert)
Fence/lease ownership crate crates/tinystoragedrivers-fence 0.7k (tsd #74), no consumers senamakel/tinystoragedrivers#24 (revert)
OpenHuman secret formats, migration ledger, transaction tinystoragedrivers-secrets/src/file/{migration,transaction,hex_key_source}.rs 1.8k senamakel/tinystoragedrivers#30, senamakel#440
Queue manifest (host config) core/src/queue/manifest.rs, schemas/queues.schema.json senamakel/tinystoragedrivers#29, senamakel#440
SQLite v0 upgrade, SqliteNative escape hatch tinystoragedrivers-sqlite/src/{sql/upgrade.rs,native/} 0.6k senamakel/tinystoragedrivers#26, senamakel#440
Engines are crates; the facade selects them by optional crate -sqlite, -mongodb, -file, -s3, -rabbitmq senamakel/tinystoragedrivers#26–senamakel/tinystoragedrivers#30, senamakel/tinystoragedrivers#33
-bus re-declares core types; -client pulls secrets crypto into every module tinystoragedrivers-bus, tinystoragedrivers-client → -secrets senamakel/tinystoragedrivers#32
Driver-free gate is a blocklist grep (misses aws-sdk and lapin, matches paths) tsd .github/workflows/ci.yml ~175-193 senamakel/tinystoragedrivers#25, senamakel/tinystoragedrivers#33

Engines in consumers' normal deps

Consumer Engine Fixed by
openhuman-core facade sqlite + file always on; re-exports rusqlite; core unit tests run SQLite in tempdirs senamakel#440
tinyagents-session tinystoragedrivers-sqlite via default legacy-import; WorkspaceStores::open opens SQLite itself senamakel/tinyagents#116
tinyflows-import tinystoragedrivers-sqlite, SqliteNative, raw rusqlite senamakel/tinyflows#39
tinymcp, tinyinference-providers whole -secrets engine crate for the trait senamakel/tinymcp#12, senamakel/tinyinference#27
tinyagents-harness, tinymcp, tinywallet-x402 MemoryStorage as the production default senamakel/tinyagents#115, senamakel/tinymcp#12, senamakel/tinywallet#7
tinychannels rusqlite (read-only iMessage chat.db) senamakel/tinychannels#55
tinycortex (in tinymemory) unconditional rusqlite; 5 DBs and ~172 write sites outside tsd senamakel/tinycortex#1

State written outside tsd (vendor audit; legitimate workspace output, caches and temp files excluded)

Repo Sites Fixed by
tinyagents FileSubagentPersistence (+fs2), Claude Code session store and settings senamakel/tinyagents#115
tinybox jail FileIndexStore default; CLI FileStore/FileTemplates senamakel/tinybox#8
tiny-artifacts FsArtifactStore, FsFileStore senamakel/tinyartifacts#3
tinymemes FileIndexStore senamakel/tinymemes#5
tinyjuice CCR disk tier senamakel/tinyjuice#11
tinyskills run log senamakel/tinyskills#10
tinyinference OAuth pending state senamakel/tinyinference#27
tinycortex chunks, kv, entity index, vectors, people DBs; conversations, audit, persona, composio, sources senamakel/tinycortex#1

Out of scope: tinyruntime toolchain cache, the tinycomputer browser/desktop runtime and caches, agent-browser (vendored third-party CLI), and the tinycortex markdown vault (user-editable files).

Target architecture (tsd v2.0.0)

tinystoragedrivers-types    data only (Scope, Key, Filter/Query/Page, Version/Precondition, specs, errors, capabilities)
tinystoragedrivers-api      traits: DocumentStore, StreamStore, BlobStore, KvStore, QueueStore, SecretStore, Watch;
                            slim StorageBackend::for_scope -> Storage bundle; CONTRACT_VERSION
tinystoragedrivers-document documents + streams   features: memory(default) sqlite mongodb file
tinystoragedrivers-kv       JSON key-value        features: memory(default) sqlite mongodb file
tinystoragedrivers-blob     blob/file + trees     features: memory(default) fs sqlite mongodb s3
tinystoragedrivers-queue    queues                features: memory(default) document rabbitmq
tinystoragedrivers-secrets  secrets               features: memory(default) file document keyring kms-aws kms-gcp
tinystoragedrivers-connect  (publish=false) shared engine connection handles: one URL -> one storage.db
tinystoragedrivers          facade for composition roots: URL -> engines
tinystoragedrivers-testkit  dev-dep: conformance per primitive, memory Storage, fault decorators
tinystoragedrivers-bus      wire contract on -types
tinystoragedrivers-busproxy module connect + host serve, on -api

consumers (tinyagents, tinyflows, modules ...)  -> -types + -api (+ -busproxy); own their models
openhuman                                       -> facade + engine features; scope grammar, importers, leases, manifest

Ground rules

  • The tsd spine lands first. S0 → S1 → S2. Tag v2.0.0-alpha.1 after S2, S4 and S5. Then every consumer leaf runs in parallel, each in its own repo and worktree, while S3/S6 finish tsd.
  • Upstream before the gitlink. Each repo's PR lands in that repo; openhuman bumps gitlinks only in [tsd-primitive] bump tsd v2 and all module gitlinks; patch tables; feature forwarding senamakel/openhuman#441.
  • No shims. Delete old code in the same slice, and tests move with the code. tsd's internal -core re-export during S2–S6 is the only scaffolding, and S6 deletes it.
  • Models are copied into their owners. Copy the minimum, then adapt; don't redesign. Each crate migrates its own collections on open.
  • No silent fallbacks. No production MemoryStorage defaults; the host passes a backend.
  • On-disk compatibility. A storage.db written by tsd 1.0 opens unchanged. Every engine leaf carries that fixture test.
  • Engine-tree gate everywhere. Each module repo gets a CI step on its library crates (forward cargo tree -e normal,build, names only, never -i).
  • Merging. Fork PRs merge on green CI with at most two review rounds. OpenHuman host PRs merge once they build locally and the focused tests pass.

Sub-issues

Phase 0: tsd spine (sequential)

Phase 1: tsd primitives (parallel)

Phase 2: tsd release

Phase 3: consumers (all parallel after the alpha tag)

Phase 4: host

Suggested order

  1. [tsd-primitive] spec: primitives-v2 crate map, trait surface, engine feature matrix, ADR senamakel/tinystoragedrivers#23, then [tsd-primitive] revert model PRs: #74 fence, #69 composite URL, #65 scope purge/composite senamakel/tinystoragedrivers#24, then [tsd-primitive] new tinystoragedrivers-types and -api crates with allowlist dependency gates senamakel/tinystoragedrivers#25.
  2. In parallel: [tsd-primitive] tinystoragedrivers-document (documents + streams; memory/sqlite/mongodb/file features) and -connect senamakel/tinystoragedrivers#26, [tsd-primitive] tinystoragedrivers-blob (memory/fs/sqlite/mongodb/s3 features, trees) senamakel/tinystoragedrivers#27, [tsd-primitive] tinystoragedrivers-kv: JSON key-value primitive (memory/sqlite/mongodb/file) senamakel/tinystoragedrivers#28, [tsd-primitive] tinystoragedrivers-queue (memory/document/rabbitmq features); queue manifest leaves senamakel/tinystoragedrivers#29, [tsd-primitive] tinystoragedrivers-secrets on -api with engine features; OpenHuman formats leave senamakel/tinystoragedrivers#30, [tsd-primitive] tinystoragedrivers-testkit: conformance, memory Storage, fault decorators senamakel/tinystoragedrivers#31, [tsd-primitive] transport: -bus reuses -types, -busproxy absorbs -client/-tinybus; tag v2.0.0-alpha.1 senamakel/tinystoragedrivers#32. [tsd-primitive] transport: -bus reuses -types, -busproxy absorbs -client/-tinybus; tag v2.0.0-alpha.1 senamakel/tinystoragedrivers#32 cuts v2.0.0-alpha.1 once [tsd-primitive] new tinystoragedrivers-types and -api crates with allowlist dependency gates senamakel/tinystoragedrivers#25 and [tsd-primitive] tinystoragedrivers-testkit: conformance, memory Storage, fault decorators senamakel/tinystoragedrivers#31 are merged.
  3. All of Phase 3 at once, one subagent per leaf (implementing-an-epic). In parallel, [tsd-primitive] facade on primitive crates, delete old crates, hardening CI, release v2.0.0 senamakel/tinystoragedrivers#33 finishes tsd and tags v2.0.0. Consumers re-pin from alpha to v2.0.0 before merging.
  4. [tsd-primitive] host storage domain on tsd v2: owns scope grammar, importers, leases, manifest senamakel/openhuman#440 → [tsd-primitive] bump tsd v2 and all module gitlinks; patch tables; feature forwarding senamakel/openhuman#441 → [tsd-primitive] engine-dependency gate: no child crate reaches a storage engine senamakel/openhuman#442 → [tsd-primitive] definition of done: structural checks, e2e, existing profile opens senamakel/openhuman#443. [tsd-primitive] definition of done: structural checks, e2e, existing profile opens senamakel/openhuman#443 is the definition of done.

Decisions (2026-10-19)

Related

Completion status

All 37 direct and nested sub-issues are closed. Final upstream pin correction is in tinyhumansai/openhuman#8231; it closes this epic when merged.

Sub-issues

Sub-issues

29 of 29 Issues completed
Loading 29 sub-issues

Activity

  1. added
    refactor
    rust-core
    on Oct 19, 2026
  2. added sub-issues on Oct 19, 2026
  3. 9 remaining items

  4. self-assigned this
    on Oct 19, 2026
  5. senamakel commented on Oct 19, 2026

    @senamakel
    MemberAuthor

    Stopped at the user's request on 2026-10-19T20:52:21 UTC. All three Luna implementation agents have stopped, and their active/queued local Cargo process trees were canceled. Files and commit history are preserved. This epic supersedes the earlier #7419 work.

    Status: 3 of 36 leaf issues completed and closed; 3 partially implemented; 30 not started. Shared connection work from #26 has additionally merged, but #26 itself is incomplete and remains open. No final upstream rollup PRs have been opened.

    Merged on the fork

    All work targets senamakel/tinystoragedrivers:epic/8131-storage-primitives, using normal merges, preserving individual commits.

    Fork issue Delivered PRs Merge commit
    senamakel/tinystoragedrivers#23 — closed Primitive crate map, exact ports, engine feature matrix, public-symbol destination inventory and ADR senamakel/tinystoragedrivers#34, senamakel/tinystoragedrivers#35 15490784, d97e15de
    senamakel/tinystoragedrivers#24 — closed Reverted the new fence/composite URL/scope-purge policy additions while preserving existing primitive behavior; historical SQLite fixture and readback regression senamakel/tinystoragedrivers#36 8c0455eb
    senamakel/tinystoragedrivers#25 — closed Standalone lightweight types/API crates, stable six-port bundle, validated opaque scopes/keys, runtime-neutral blob streams, optional-port errors, exact dependency allowlists senamakel/tinystoragedrivers#37 b1b956d5
    senamakel/tinystoragedrivers#26 — part 1 only; issue open Unpublished shared SQLite/MongoDB/S3/AMQP/file connection handles, shared canonical-root file lock, legacy SQLite layout and separate blob timestamp metadata senamakel/tinystoragedrivers#38 bec40bdc

    PRs #36 and #37 each had all 22 hosted checks successful when their completed state was verified. #25 also passed focused API/types tests, core checks, workspace tests, strict Clippy, rustdoc, cargo-deny and over 90% coverage in every new production source file. Regression fixes preserved cursor-cycle detection, tree-write metadata/results, non-deleting tree-write behavior and reserved sealed-stream paths. The SQLite fixture was generated with the actual historical driver and verifies legacy document/stream/blob data preservation.

    PR #38 was merged separately by senamakel while its CI was still running. At the stop snapshot its checks were {'SUCCESS': 17, 'IN_PROGRESS': 5}; it is not claimed fully green. Its previous failures identified rustfmt differences and a missing tempfile dependency in the connect lockfile entry; head 78179bf3 addresses those. Follow its remaining CI on resumption.

    Current fork epic tip: bec40bdc9d3c64bdc001a163b74140df79651c8f. The OpenHuman fork epic branch exists; host migration/integration has not been completed.

    Preserved implementation in progress

    senamakel/tinystoragedrivers#26 — document/stream engines, part 2

    • Memory, SQLite and file adapters are implemented. Focused tests passed, including scope/capability isolation, actual historical SQLite readback with unchanged seven-column blob schema, validated-batch rollback, sealed-stream reads, and legacy file document/stream readback.
    • Shared connect feature-alone checks passed for SQLite, MongoDB, S3 and AMQP; connect strict all-target/all-feature Clippy passed. FileConnection tests and file document tests passed.
    • Mongo document/stream modules are a draft, not compiled or behavior-verified. The draft preserves the legacy row/collection names; Mongo stream sealing remains explicitly unsupported and needs implementation. Full portable conformance, final feature matrix and per-file coverage remain.
    • Worktree: /home/enamakel/work/openhuman/worktrees/epic-8131-26-document-connect, TSD head 78179bf3. Root Cargo.toml/Cargo.lock changes and the entire new document crate remain uncommitted. The queued Mongo compile was canceled with exit 130.

    senamakel/tinystoragedrivers#27 — blob engines

    • Memory, filesystem, SQLite, MongoDB and S3 adapters are implemented or drafted, including tree operations and physical age-paged listing. The additive API uses BlobListing, BlobListEntry, BlobListPage, an exclusive key cursor, limits 1–1000, expired-object visibility, and unknown legacy ages; existing live-only list(prefix) stays intact. API contract version is incremented separately from the bus wire contract.
    • Preserved the actual legacy Mongo _tsd_blobs bucket, indexes, concurrent replacement ordering and retry behavior. Added real historical SQLite readback, old file-driver compatibility, streamed length/error handling and upload abort cleanup. Shared FileConnection integration is present.
    • Reported successful gates: default-memory 3 tests, filesystem 4 tests, all-feature suite 19 tests, strict all-target/all-feature Clippy. Real Mongo tests passed 2/2 on a local replica, including old-driver read compatibility and failed-upload cleanup. Tests use unique databases and clean up only their own data.
    • Added CI steps for the new blob crate and live MongoDB/MinIO paths. MinIO has not been run. Isolated SQLite needs a fresh rerun after the connect feature-isolation fix. LLVM coverage was canceled before a report was produced; final dirty-tree gates remain unverified.
    • No blob PR is open. Worktree: /home/enamakel/work/openhuman/worktrees/epic-8131-27-blob, TSD head 9bcc84f0; substantial blob, tests, README, types and CI changes remain uncommitted. A local superproject gitlink checkpoint exists, but no host gitlink PR was published.

    senamakel/tinystoragedrivers#28 — native JSON KV

    • Memory, SQLite, MongoDB and file implementations exist, with native reserved _tsd_kv storage, CAS, monotonic versions, prefix cursors, deterministic TTL and the shared file connection. Tests preserve unrelated legacy kv data.
    • Fixed real JSON fidelity bugs: null is distinct from tombstones, and Mongo stores an exact JSON payload so large unsigned integers and NUL/dot/dollar object keys roundtrip. The BSON issue has an authentic failing test followed by a passing fix. SQLite CAS uses immediate transactions; concurrency tests cover competing updates.
    • Before the latest coverage-only test edits, the all-feature suite passed 25 unit tests plus one doctest; a focused coverage run executed 26 tests including real Mongo. The separate live native Mongo test also passed against an isolated temporary database.
    • Initial production-file coverage: common 90.36%, file 91.03%, SQLite 93.94%, memory 79.25%, MongoDB 73.01%. The last two remain below the required 90%. New tests were added, but the interrupted rerun found an unresolved compile error at memory_tests.rs:216: a local store binding shadows the store() helper. No updated coverage report exists. Strict KV Clippy still needs a fresh run after the shared connect fix.
    • No KV PR is open. Worktree: /home/enamakel/work/openhuman/worktrees/epic-8131-28-kv, TSD head e6ca2b68; latest own committed KV change 4a282ad. Uncommitted changes are the expanded memory/Mongo test files. Initial coverage is preserved at vendor/tinystoragedrivers/target/kv-coverage.json and in the coordinator evidence directory.

    Not started / remaining epic scope

    Handoff and cautions

    • Coordinator ledger: /home/enamakel/work/openhuman/.git/implementing-an-epic/tinyhumansai-openhuman-8131.json; saved issue bodies, merge snapshots, failure logs and coverage evidence are alongside it. Some newer agent gate results exist only in their terminal output; they must be rerun before relying on an unchanged or dirty tree for completion.
    • Three Luna agents worked in parallel with periodic code/progress reviews. A shared OS flock now serializes local Cargo commands, avoiding stale handoffs; the lock was verified working. All owned builds are stopped. Hosted GitHub checks may continue automatically.
    • One agent briefly pushed its connect feature branch to the canonical repository by mistake, then deleted that ref immediately. The coordinator verified the canonical ref returns 404 and the feature exists on the fork; explicit fork pushes were reinforced. No canonical default-branch change or final upstream PR was made.
    • On resumption, verify PR fixes: conversation fixes #38 CI and the fork tip, finish document Mongo/conformance and the blob/KV gaps, then open/merge independently reviewable fork PRs and close issues only after their complete acceptance criteria pass. No further implementation or merges are being performed after this stop request.
  6. senamakel commented on Oct 21, 2026

    @senamakel
    MemberAuthor

    Stopped and pushed: continuation handoff

    Stopped at the user's explicit request on 2026-10-21. All three Luna agents are interrupted. Local implementation and validation jobs have stopped. Work is incomplete: 44 of 51 leaf issues are complete. No final upstream PRs have been opened.

    All six working branches below were pushed to the forks and checked with git ls-remote; their remote heads exactly match these SHAs. No force pushes, squashes, rebases, or history rewrites were used.

    Start here

    1. Resume from the integrated OpenHuman branch senamakel/openhuman:epic-8131-440-host-storage. It includes the foundation/test ports, scoped-document CAS admission fix, and C2's captured-profile/admission-lineage changes. Its latest integrated HEAD has not been compiled.
    2. Run the combined core test compile, then fix actual diagnostics and run focused storage/import/profile/session tests. The previous frozen snapshot 9553b1a3cab538c9c13aca8b77835c93b5f820e0 failed with 26 compile errors. The subsequent A/B/C2 batches address those errors, but no post-merge success is claimed.
    3. Finish TSD registration-safety issue #67, using its pushed branch below, and Mongo capability issue #65 / PR #68. Merge only after their actual head checks and unchanged native per-file 90% coverage pass. Bring branches up to date by normal merge if needed.
    4. Finalize TinyJuice issue #17, then consume the host callback wrapper from the separate host-ports branch. Retain captured profile and import-claim authority across the whole module call and completion marker.
    5. Complete authentic legacy-profile boot/readback proof, host feat(upsell): usage-aware banners, rate-limit modal, and shared usage hook #440, released module assets/checksums and pins Feat/chat issue #441, and final integration/docs [Bug] Chat still not responsive #443. Only then prepare the final upstream rollup PRs under implementing-an-epic.

    Important merge state

    • TinyBus PR #26 is merged at 0de2d283f35cbbff08efad6fbe05537ffb74611b. All 13 exact-head CI checks, 9 independent local gates, focused collision/concurrency tests, and native90 (46 measured files) passed. Fork issue Open source the memory layer #25 is closed.
    • TinyMCP PR #18 is merged at 77a4d4d2ccd47743f296461663a039d0065c9472. All 13 exact-head CI checks, 9 independent local gates, and native90 (113 files, minimum 90.2985%) passed. Converter5 and owner-migration23 tests passed, including malformed-source preservation. Fork issue Memory Layer Only #17 is closed.
    • TSD PR #64 was externally merged at e1d075bdd1b096d4572dcec71902dfc405674694, before its pending collision fix was pushed. Its merged source is the original 8a8bd701..., with 24 passing and 2 failing CI checks. Scoped registration still uses replacement-style serve_at. Duplicate registration and partial rollback can replace/delete an existing endpoint. Issue Refactor UI auth/bootstrap and remove legacy UI runtime layers #63 remains open and incomplete; Get the skills to work for the model (Google, Notion, etc.) #67 carries the correction. Do not treat PR64 as a validated final dependency or publish/consume its callback API before Get the skills to work for the model (Google, Notion, etc.) #67 is verified.
    • TinyCortex PR #16 is merged at 2ac18cfd6fa7adc9b6c8888bf36776b79813d16e. All 7 head checks and 16 independent Rust/viewer/inspector gates passed, plus explicit-memory/missing-scope inspector smoke tests. Fork issue feat: add Developer Options panel with tools for skills, AI configura… #15 is closed.
    • Recent completed owner changes also include TinyAgents #166 at dcae938261ccd8ccffdbff36637688191234b1eb, TinyWallet #13 at 51b68a0c23b805a343dd19e71ad2797927db4cfe, and TinyBus #24 at 24ec2ccafcc98fab35fa10ffcbcefa87eb32e3e8. Their gates and fork issue closures are recorded in the ledger.

    Pushed branches

    Repository Branch Verified head
    senamakel/openhuman epic-8131-440-host-storage 115a7b6a8bac348f6b0b5605ba5882974d5d5650
    senamakel/openhuman epic-8131-440-host-ports fe47f0151352b79b3797e51bb00130b1953703de
    senamakel/openhuman epic-8131-440-legacy-import 0b65f673a5e151ceb47ee2f8fcf8c6bc4ca59b7c
    senamakel/tinystoragedrivers epic-8131-67-storage-registration-safety e241a7b24573cba3985ca58990487e7ad908d306
    senamakel/tinystoragedrivers epic-8131-65-mongo-cas-capabilities 8ce0c3980baa45854b4c74e25af51a7c4f306457
    senamakel/tinyjuice epic-8131-import-savings-destination b304cca565bff8ec9e5cd76d5c3fae7d276c1549

    What each unfinished branch contains

    • Integrated host-storage: all three test-port batches; actual SQLite write/drop/reopen test; operator/profile/escaped-profile KV isolation; RPC URL-derived session recovery metadata; embed URL metadata and explicit testkit export gating; profile admission CAS check moved from empty composition-wide capabilities to the lease document port's CrossProcessCas; captured module-import profile backend; private context-admission lineage inherited by same-profile derived contexts and replaced on profile switch/new admission. Tests for stale contexts and the takeover window are present but not yet executed in the integrated tree. TinyMCP's direct importer now uses the shared captured claim path.
    • Host-ports: the invocation-scoped callback helper and endpoint tests, deliberately separate until native dependencies are ready. It authenticates the exact admitted module peer, enforces declared document grants, allows only metadata negotiation for unused non-secret ports, denies non-document operations, and provides RAII cleanup. It accepts the caller's captured/conditioned storage instead of recapturing authority. This helper is not yet compiled or integration-tested. Its current approved pins are published TSD 3332061434c01872b0161191268166c12563af87 and merged TinyBus24 24ec2cc...; final callback consumption needs corrected TSD67 and the merged SDK26.
    • Legacy-import: a separately preserved copy of the lineage/captured-import work plus fixture-generation research. The integrated host branch already contains its aa2405e76a44e8e325dbd6e1522203203fadd18d implementation checkpoint; do not merge this branch again blindly.
    • TSD67: three causal collision/rollback regressions and try_serve_at fix, based on merged PR64. All five direct TinyBus manifest pins and three lock identities now reference merged SDK26 0de2d283.... Locked metadata validation passed in the native root and both callback proof workspaces. The updated regression/proof GREEN runs and full native90 remain pending. Earlier original-source native90 failed at busproxy host.rs 88.9%; no threshold/exclusion weakening is allowed. There is no Get the skills to work for the model (Google, Notion, etc.) #67 PR yet.
    • TSD65 / PR68: Mongo's document port now advertises SharedAcrossProcesses and CrossProcessCas, without changing transaction-dependent features. Causal capability RED then GREEN1/1 and independent two-client Absent/Version races1/1 passed against the owned replica set. Root fmt passed. Remaining independent gates and full native90 were canceled on stop, not passed; interrupted logs are retained. PR68 is ready/open but not merge-validated.
    • TinyJuice17: ImportSavingsAt with transient request-scoped storage client, avoiding replacement of the module's ordinary provider and retaining owner adoption/CAS semantics. An isolated provisional copy passed one integration test using a source-patched TSD63 and aligned SDK; the pushed primary branch has not passed final dependency validation. Its lock contains a preserved patch.unused checkpoint from the initial provisional attempt. Finalize dependency pins and any fixture API adaptations after corrected TSD67 is available; do not mistake the throwaway proof for final native validation.

    Verification and remaining acceptance gaps

    • Host CAS integration: worker observed causal RED (memory passes, SQLite assertion fails), then GREEN2/2 after the document-capability fix. The successful command was cargo test --locked -p openhuman-cli --test storage_backend_capabilities -- --nocapture. This ran before the final lineage merge. Earlier failed attempts in host440-cas-red and host440-cas-red-retry stopped at embed/RPC compile errors and are not causal REDs.
    • Last independent integrated-core compile: cargo test --locked -p openhuman --lib --features storage-sqlite --no-run --message-format=json at 9553b1a3...: exit101, 26 errors, source remained frozen. Diagnostics: evidence/host440-libtests-9553-sqlite/diagnostics.json. No host unit-test success is claimed.
    • The generated fixtures/legacy-v1-profile/storage.db is authentic physical TSD v1 format, written through the old public API at 0c6dcfce57201fadd830431f36fd759c3baa897a, SHA256 8de140563e2f985b5340d29f89f03889b7aff2fe90f486358a39ceb84d4d1404. Its hand-authored owner JSON is currently synthetic. It is not an authentic semantic multi-domain old profile. Replace/prove those bodies with historical owner models/public writers, then test actual boot import, typed owner readback, unchanged source hashes, and delete/reboot/no-resurrection. Secrets and module/artifact imports have separate production paths; do not pretend run_all covers them all.
    • Supported session import discovers JSONL under session_raw; no MD-only import path was found. Markdown companions remain unchanged; no MD-only migration support is claimed.
    • Nine changed loadable module releases/assets/checksums still require actual fork publication and repinning. Final root/app builds, storage features on/off, layout/chain/engine gates, pin-status, and integration/docs remain incomplete.
    • Generated fixture generator/target output was accidentally checkpointed by the hook. Both source branches now remove all 653 build files (299,241,202 bytes) from tracking and add /target/ ignore rules. Build files are preserved under each checkout's target/epic8131-fixture-generator-build-preserved. All historical commits remain intact. Do not reintroduce build output or rewrite history.

    Local continuation details

    • Primary workspace: /home/enamakel/work/openhuman.
    • Root ledger: .git/implementing-an-epic/tinyhumansai-openhuman-8131.json; evidence and root gate helpers are in .git/implementing-an-epic/evidence/ and .git/implementing-an-epic/. These ignored local files remain available in this workspace; the public branch SHAs and issue links above are sufficient to retrieve code elsewhere.
    • AWT: worktrees/epic-8131-440-host-storage; B: worktrees/epic-8131-440-host-ports; C2: worktrees/epic-8131-440-legacy-import.
    • Native clones under B: .epic-repositories/tinystoragedrivers (Get the skills to work for the model (Google, Notion, etc.) #67), .epic-repositories/tinystoragedrivers-mongo-cas (The current codebase doesn't make any tool calls. fix that in the loop and get it to work. #65). Juice source under A: .epic-repositories/tinyjuice-import-destination.
    • Heavy Rust commands use the global FIFO .git/implementing-an-epic/8131-cargo.lock with flock --close, the superproject's absolute scripts/ci-cancel-aware.sh, owned TMPDIR, jobs1, and RUSTC_WRAPPER=''. Never export CARGO_TARGET_DIR. /tmp has a user quota problem despite free disk; avoid heredocs and set owned TMPDIR for gh/build/commit helpers.
    • Owned Mongo fixture remains on loopback27317, replica set rs0 (epic8131-mongo-rs-highfd); RabbitMQ fixture remains on25673. The interrupted native65 MinIO fixture was cleaned up. Root coverage helper sets all fixture environments; do not omit them and misclassify missing integration coverage.
    • Preserve all commits. Before/after any normal branch merge, align actual submodule checkouts with recorded approved gitlinks in the same tool call, or the auto-commit hook can checkpoint stale pins. Keep pending helper work in B; it was accidentally added to A once and relocated in ordinary corrective commits.
    • Continue with Luna agents and review each every15minutes. Root orchestrates/reviews/merges; do not implement leaf code inline. Native PRs need all nonzero actual-head checks green and normal pinned merges; at most two nonempty external review rounds. Bus26 and MCP18 external review snapshots were empty (round count0).

    Completed leaves

    Incomplete leaves

  7. added
    priority: p2
    on Oct 22, 2026
  8. tinysweeper commented on Oct 22, 2026

    @tinysweeper

    Epic restructuring tinystoragedrivers into a hardened static storage primitive: split types/API/per-primitive crates, convert engines to cargo features, remove storage-engine deps from consumers, and migrate models to their owning crates. This is a large umbrella/tracking epic, not a bug report; it is organizational work. None of the candidate issues report the same underlying work (they are sibling epics in adjacent areas).

    Labelled priority: p2.

  9. added theissue type on Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority: p2refactorrust-core

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions