Repository navigation
feat(storage): migrate TinyArtifacts to TSD v2 - #9
Conversation
feat: move artifact storage to stable ports
…1-tinyartifacts-upstream
Co-authored-by: Medulla <medulla@tinyhumans.ai>
Tiny Sweeper reviewVerdict: Incomplete · Priority: none Diagnostics and supporting detailsFull summaryPull request purpose (title): feat(storage): migrate TinyArtifacts to TSD v2. Tiny Sweeper completed its review; deterministic results follow. Unreviewed paths
Partial review reasons
Review snapshot
Completeness: Incomplete What changedRecord persistence moved to `DocumentArtifactStore`, which opens over an already-bound `Storage`, ensures `artifacts.records` and `artifacts.migrations`, and writes a schema-version checkpoint via `put_with` with an `Absent`-or-`Version` precondition, tolerating a conflict when the latest checkpoint already shows completion. Legacy records are imported through `import_legacy_record_json`, which validates the id, writes with `Precondition::Absent`, and accepts a conflict only when the existing document's schema, absence of expiry, and body all match. File bytes are adapted through `BlobFileStore` over the host blob handle; `FsArtifactStore`, `FsFileStore`, `Artifacts::with_version_files`, and `import_legacy_file` are deleted, `validate_id` relocates to `store.rs`, `storage_schema` is replaced by `collections()`, and the public re-exports, README example, CHANGELOG, and CI workflow are updated to match. A new engine guard script runs in CI to keep storage engine crates out of library dependency trees. Features
Tests
FindingsNo active actionable findings. Before merge
Agent review detailscritique
security
tests
commits
description
Evidence and run details
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
⛔ Files ignored due to path filters: 1
📒 Files selected for processing: 23
✨ Finishing Touches
Comment |
Summary
Complete TinyArtifacts' migration to TinyStorageDrivers v2 and consume the canonical upstream TSD 2.1.0 revision. The artifact document store and blob adapter use host-bound ports; backend engine implementations remain feature-gated in TinyStorageDrivers. This branch also retains the legacy artifact import path and its real previous-release fixture.
The branch includes the current TinyArtifacts
mainhistory and pinstinystoragedrivers-types,api, andtestkitto canonical revision05eaada962decbab33bafa4763d2bd1a67f6b456.Verification
cargo check --manifest-path Cargo.toml -p tiny-artifacts --all-features --offlinecargo test --manifest-path Cargo.toml --workspace --all-features --offlinecargo clippy --manifest-path Cargo.toml --workspace --all-targets --all-features --offline -- -D warningscargo fmt --manifest-path Cargo.toml --all -- --checkcargo deny --manifest-path Cargo.toml check sources.github/scripts/check-storage-engines.sh.github/scripts/check-file-coverage.sh(all executable source files meet the 90% line threshold)Part of tinyhumansai/openhuman#8131.