tensorfs 0.3.85__tar.gz → 0.3.87__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of tensorfs might be problematic. Click here for more details.

Files changed (204) hide show
  1. {tensorfs-0.3.85 → tensorfs-0.3.87}/Cargo.lock +3 -3
  2. {tensorfs-0.3.85 → tensorfs-0.3.87}/Cargo.toml +1 -1
  3. {tensorfs-0.3.85 → tensorfs-0.3.87}/PKG-INFO +1 -1
  4. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/bin/tfs/fetch.rs +17 -52
  5. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/bin/tfs/main.rs +1 -2
  6. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/fetch.rs +2 -4
  7. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/providers.rs +6 -8
  8. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/source_artifact.rs +5 -3
  9. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/staging.rs +7 -1
  10. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/store.rs +1 -1
  11. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/transport/download.rs +352 -70
  12. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/transport/http.rs +101 -92
  13. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/transport/http_reuse_tests.rs +6 -6
  14. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/transport/mod.rs +8 -9
  15. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/transport/policy.rs +15 -6
  16. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/transport/pull.rs +12 -292
  17. tensorfs-0.3.87/crates/tensorfs-core/src/transport/sources.rs +517 -0
  18. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/transport/tests.rs +319 -659
  19. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/fetch_url_progress.rs +6 -29
  20. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/source_download.rs +100 -52
  21. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/source_prefixes.rs +48 -28
  22. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/transfer_memory.rs +3 -2
  23. {tensorfs-0.3.85 → tensorfs-0.3.87}/pyproject.toml +1 -1
  24. tensorfs-0.3.85/crates/tensorfs-core/src/transport/prefix.rs +0 -1094
  25. tensorfs-0.3.85/crates/tensorfs-core/src/transport/ranged.rs +0 -1079
  26. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/Cargo.toml +0 -0
  27. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/build.rs +0 -0
  28. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/examples/h3-swiglu-layout.md +0 -0
  29. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/examples/optional-cache-backfill.md +0 -0
  30. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/examples/resident-conversion.md +0 -0
  31. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/examples/resident_conversion_profile.rs +0 -0
  32. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/asset_update.rs +0 -0
  33. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/b64.rs +0 -0
  34. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/bin/tfs/ckpt.rs +0 -0
  35. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/bin/tfs/conform.rs +0 -0
  36. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/bin/tfs/ensure.rs +0 -0
  37. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/bin/tfs/ingest.rs +0 -0
  38. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/bin/tfs/rd.rs +0 -0
  39. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/bin/tfs/repo.rs +0 -0
  40. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/bin/tfs/snap.rs +0 -0
  41. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/bin/tfs/watch.rs +0 -0
  42. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/cache_roots.rs +0 -0
  43. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/canon.rs +0 -0
  44. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/capability.rs +0 -0
  45. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/catalog/lock.rs +0 -0
  46. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/catalog.rs +0 -0
  47. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/cbor.rs +0 -0
  48. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/checkpoint.rs +0 -0
  49. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/checkpoint_root.rs +0 -0
  50. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/corpus.rs +0 -0
  51. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/derived/adoption.rs +0 -0
  52. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/derived/companion_tests.rs +0 -0
  53. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/derived/estimate.rs +0 -0
  54. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/derived/graft_tests.rs +0 -0
  55. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/derived/group_commit_tests.rs +0 -0
  56. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/derived/history_cost_tests.rs +0 -0
  57. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/derived/part_rows_tests.rs +0 -0
  58. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/derived/progress.rs +0 -0
  59. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/derived/resume_tests.rs +0 -0
  60. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/derived/retention.rs +0 -0
  61. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/derived/roots.rs +0 -0
  62. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/derived.rs +0 -0
  63. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/descriptors.rs +0 -0
  64. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/disk.rs +0 -0
  65. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/dtype.rs +0 -0
  66. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/durability.rs +0 -0
  67. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/ensure/admission.rs +0 -0
  68. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/ensure/flight.rs +0 -0
  69. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/ensure.rs +0 -0
  70. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/err.rs +0 -0
  71. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/filesystem_identity.rs +0 -0
  72. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/fill.rs +0 -0
  73. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/fit.rs +0 -0
  74. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/gc.rs +0 -0
  75. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/header.rs +0 -0
  76. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/home.rs +0 -0
  77. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/ids.rs +0 -0
  78. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/ingest/carrier.rs +0 -0
  79. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/ingest/convert.rs +0 -0
  80. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/ingest/custody.rs +0 -0
  81. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/ingest/fingerprint.rs +0 -0
  82. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/ingest/gguf.rs +0 -0
  83. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/ingest/h3_lora.rs +0 -0
  84. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/ingest/journal.rs +0 -0
  85. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/ingest/mod.rs +0 -0
  86. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/ingest/narrow.rs +0 -0
  87. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/ingest/preflight.rs +0 -0
  88. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/ingest/routes/anima.routes.json +0 -0
  89. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/ingest/routes/anima.spec.json +0 -0
  90. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/ingest/routes/sdxl.routes.json +0 -0
  91. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/ingest/routes/sdxl.spec.json +0 -0
  92. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/ingest/routes.rs +0 -0
  93. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/ingest/source.rs +0 -0
  94. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/ingest/stamp.rs +0 -0
  95. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/ingest/transaction.rs +0 -0
  96. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/jcs.rs +0 -0
  97. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/keyed_roots.rs +0 -0
  98. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/lib.rs +0 -0
  99. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/limits.rs +0 -0
  100. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/machine.rs +0 -0
  101. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/manifest.rs +0 -0
  102. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/meta.rs +0 -0
  103. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/project.rs +0 -0
  104. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/read.rs +0 -0
  105. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/receipt.rs +0 -0
  106. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/reclaim.rs +0 -0
  107. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/registry.rs +0 -0
  108. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/relation.rs +0 -0
  109. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/repo_cache.rs +0 -0
  110. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/repository.rs +0 -0
  111. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/sha256.rs +0 -0
  112. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/spec.rs +0 -0
  113. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/stats.rs +0 -0
  114. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/storage.rs +0 -0
  115. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/transport/api.rs +0 -0
  116. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/transport/decisions.rs +0 -0
  117. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/transport/hub.rs +0 -0
  118. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/transport/ledger.rs +0 -0
  119. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/transport/memory.rs +0 -0
  120. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/transport/push.rs +0 -0
  121. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/transport/tests/tail.rs +0 -0
  122. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/unsynced.rs +0 -0
  123. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/src/vectors.rs +0 -0
  124. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/additive_fields.rs +0 -0
  125. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/anima_hf_profile.rs +0 -0
  126. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/as_is.rs +0 -0
  127. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/catalog_owner_probe.c +0 -0
  128. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/checkpoint_roots.rs +0 -0
  129. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/civitai_anima.rs +0 -0
  130. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/civitai_sdxl_profile.rs +0 -0
  131. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/ensure.rs +0 -0
  132. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/fd_budget.rs +0 -0
  133. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/fd_headroom.rs +0 -0
  134. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/fetch_faults.rs +0 -0
  135. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/fit.rs +0 -0
  136. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/fixtures/repo_apply/blobs.jsonl +0 -0
  137. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/fixtures/repo_apply/expected_list.jsonl +0 -0
  138. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/fixtures/repo_apply/expected_repository.json +0 -0
  139. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/fixtures/repo_apply/expected_rows.jsonl +0 -0
  140. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/fixtures/repo_apply/header.cbor +0 -0
  141. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/fixtures/repo_apply/manifest.json +0 -0
  142. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/fixtures/repo_apply/mutation.json +0 -0
  143. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/foreign_json.rs +0 -0
  144. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/h3_lora.rs +0 -0
  145. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/h3_swiglu.rs +0 -0
  146. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/home.rs +0 -0
  147. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/hub_tls.rs +0 -0
  148. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/import_tree.rs +0 -0
  149. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/instrument_profiles.rs +0 -0
  150. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/keyed_roots.rs +0 -0
  151. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/liveness.rs +0 -0
  152. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/qwen_image21_profile.rs +0 -0
  153. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/read_plan.rs +0 -0
  154. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/reclaim.rs +0 -0
  155. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/reclaim_run.rs +0 -0
  156. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/repo_cache.rs +0 -0
  157. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/repo_store.rs +0 -0
  158. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/resident_admission.rs +0 -0
  159. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/routed_single_file.rs +0 -0
  160. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/sha256_backends.rs +0 -0
  161. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/sharded_cas.rs +0 -0
  162. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/source_artifacts.rs +0 -0
  163. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/source_plan.rs +0 -0
  164. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/source_preflight.rs +0 -0
  165. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/staging.rs +0 -0
  166. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/store_boundaries.rs +0 -0
  167. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/tensor_schema.rs +0 -0
  168. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/trust_index.rs +0 -0
  169. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/version.rs +0 -0
  170. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-core/tests/write_through.rs +0 -0
  171. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-plane/API.md +0 -0
  172. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-plane/Cargo.toml +0 -0
  173. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-plane/src/bin/g1_vmm.rs +0 -0
  174. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-plane/src/bin/g2_overlap.rs +0 -0
  175. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-plane/src/bin/gpu_bench/mod.rs +0 -0
  176. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-plane/src/cuda.rs +0 -0
  177. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-plane/src/cursor.rs +0 -0
  178. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-plane/src/device.rs +0 -0
  179. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-plane/src/host.rs +0 -0
  180. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-plane/src/io.rs +0 -0
  181. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-plane/src/layout.rs +0 -0
  182. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-plane/src/lib.rs +0 -0
  183. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-plane/src/plane.rs +0 -0
  184. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-plane/tests/common/mod.rs +0 -0
  185. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-plane/tests/gpu.rs +0 -0
  186. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-plane/tests/host_tier.rs +0 -0
  187. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-py/Cargo.toml +0 -0
  188. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-py/src/docs.rs +0 -0
  189. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-py/src/ensure.rs +0 -0
  190. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-py/src/errors.rs +0 -0
  191. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-py/src/ingest.rs +0 -0
  192. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-py/src/lib.rs +0 -0
  193. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-py/src/plane.rs +0 -0
  194. {tensorfs-0.3.85 → tensorfs-0.3.87}/crates/tensorfs-py/src/store.rs +0 -0
  195. {tensorfs-0.3.85 → tensorfs-0.3.87}/python/tensorfs/__init__.py +0 -0
  196. {tensorfs-0.3.85 → tensorfs-0.3.87}/python/tensorfs/_derived_channel.py +0 -0
  197. {tensorfs-0.3.85 → tensorfs-0.3.87}/python/tensorfs/_ext.pyi +0 -0
  198. {tensorfs-0.3.85 → tensorfs-0.3.87}/python/tensorfs/_source_channel.py +0 -0
  199. {tensorfs-0.3.85 → tensorfs-0.3.87}/python/tensorfs/_tensors.py +0 -0
  200. {tensorfs-0.3.85 → tensorfs-0.3.87}/python/tensorfs/derived.py +0 -0
  201. {tensorfs-0.3.85 → tensorfs-0.3.87}/python/tensorfs/errors.py +0 -0
  202. {tensorfs-0.3.85 → tensorfs-0.3.87}/python/tensorfs/plane.py +0 -0
  203. {tensorfs-0.3.85 → tensorfs-0.3.87}/python/tensorfs/plane.pyi +0 -0
  204. {tensorfs-0.3.85 → tensorfs-0.3.87}/python/tensorfs/py.typed +0 -0
@@ -449,7 +449,7 @@ checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
449
449
 
450
450
  [[package]]
451
451
  name = "tensorfs-core"
452
- version = "0.3.85"
452
+ version = "0.3.87"
453
453
  dependencies = [
454
454
  "fs2",
455
455
  "libc",
@@ -464,7 +464,7 @@ dependencies = [
464
464
 
465
465
  [[package]]
466
466
  name = "tensorfs-plane"
467
- version = "0.3.85"
467
+ version = "0.3.87"
468
468
  dependencies = [
469
469
  "libc",
470
470
  "libloading",
@@ -474,7 +474,7 @@ dependencies = [
474
474
 
475
475
  [[package]]
476
476
  name = "tensorfs-py"
477
- version = "0.3.85"
477
+ version = "0.3.87"
478
478
  dependencies = [
479
479
  "pyo3",
480
480
  "tensorfs-core",
@@ -3,5 +3,5 @@ resolver = "2"
3
3
  members = ["crates/tensorfs-core", "crates/tensorfs-plane", "crates/tensorfs-py"]
4
4
 
5
5
  [workspace.package]
6
- version = "0.3.85"
6
+ version = "0.3.87"
7
7
  edition = "2021"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tensorfs
3
- Version: 0.3.85
3
+ Version: 0.3.87
4
4
  Classifier: Programming Language :: Python :: 3
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Rust
@@ -430,29 +430,14 @@ fn sample_gap() -> std::time::Duration {
430
430
  /// which stream it arrived on. `fetch url`'s result is `held|admitted <id>` and
431
431
  /// `transferred <n> B`, and nothing printed here can be mistaken for either.
432
432
  ///
433
- /// Two events, and the counter names are `pull.progress`'s so that one consumer reads both
434
- /// verbs. `fetch url` is a plan-of-one against the origin — a held object returns before a
435
- /// socket opens and no repo cache is consulted — so the cache counters would be
436
- /// structurally zero and are not printed; `origin_objects` goes to one only when the object
437
- /// is admitted:
433
+ /// One event, and the counter names are `pull.progress`'s so that one consumer reads both
434
+ /// verbs. `origin_bytes` is what is home so far; it goes back if an origin that does not
435
+ /// range starts the object over. `origin_objects` goes to one when the object is admitted:
438
436
  ///
439
- /// {"event":"fetch.progress","origin_bytes":N,"origin_objects":0|1,"attempt":A}
440
- /// {"event":"fetch.delivery","attempt":A,"host":"h","http_status":S}
441
- ///
442
- /// `attempt` is on the progress event because a re-ask RESTARTS `origin_bytes` at zero —
443
- /// `fetch url` has no mid-object resume, so those bytes are not in the store and a
444
- /// consumer must be able to see the count go back rather than believe a total this fetch
445
- /// cannot deliver.
446
- ///
447
- /// `fetch.delivery` is one per redirect hop per ask, and it is the half that makes a
448
- /// degradation attributable at all. The URL is a bearer capability and never appears; the
449
- /// HOST is not, and neither is the status. Without them a 429 retry storm and a slow link
450
- /// produce the same byte curve afterwards, which is exactly why the H3 pod's 70 -> 6 MB/s
451
- /// could not be attributed to anything.
437
+ /// {"event":"fetch.progress","origin_bytes":N,"origin_objects":0|1}
452
438
  struct Reporter {
453
439
  moved: u64,
454
440
  reported: u64,
455
- attempt: u32,
456
441
  /// The byte delta between records. `--progress-bytes` states it, because resolution is
457
442
  /// configuration and nothing here is a verdict; production states nothing and gets
458
443
  /// SAMPLE_BYTES.
@@ -466,7 +451,6 @@ impl Reporter {
466
451
  Reporter {
467
452
  moved: 0,
468
453
  reported: 0,
469
- attempt: 0,
470
454
  every: every.max(1),
471
455
  gap: sample_gap(),
472
456
  last: std::time::Instant::now(),
@@ -485,34 +469,16 @@ impl Reporter {
485
469
  fn announce(&mut self, admitted: u64) {
486
470
  self.reported = self.moved;
487
471
  let event = format!(
488
- "{{\"event\":\"fetch.progress\",\"origin_bytes\":{},\"origin_objects\":{},\"attempt\":{}}}",
489
- self.moved, admitted, self.attempt
472
+ "{{\"event\":\"fetch.progress\",\"origin_bytes\":{},\"origin_objects\":{}}}",
473
+ self.moved, admitted
490
474
  );
491
475
  self.say(&event);
492
476
  }
493
477
  }
494
478
 
495
479
  impl transport::FetchObserver for Reporter {
496
- fn hop(&mut self, attempt: u32, host: &str, status: u16) {
497
- self.attempt = attempt;
498
- // The host reaches the channel as JSON, so it reaches it quoted. It comes from the
499
- // policy check that already refused anything but a hostname, and this is the belt
500
- // that keeps a malformed one from being a malformed EVENT.
501
- let host: String = host
502
- .chars()
503
- .filter(|c| c.is_ascii_alphanumeric() || matches!(c, '.' | '-' | '_' | ':'))
504
- .take(253)
505
- .collect();
506
- let event = format!(
507
- "{{\"event\":\"fetch.delivery\",\"attempt\":{attempt},\"host\":\"{host}\",\"http_status\":{status}}}"
508
- );
509
- self.say(&event);
510
- }
511
-
512
480
  fn moved(&mut self, total: u64) {
513
- // A re-ask restarts the count at zero, and saying so is the honest report: those
514
- // bytes are not in the store, and a reader that watched them climb must watch them
515
- // go back rather than believe a total this fetch cannot deliver.
481
+ // A count that goes back is reported at once: those bytes are not on this machine.
516
482
  let due = total < self.moved
517
483
  || total.saturating_sub(self.reported) >= self.every
518
484
  || self.last.elapsed() >= self.gap;
@@ -524,14 +490,13 @@ impl transport::FetchObserver for Reporter {
524
490
  }
525
491
 
526
492
  /// `tfs fetch url <root> <sha256> <length> <url|-> [--progress] [--streams N] [--part-mib N]`
527
- /// — plan-of-one, then the one transport into `put_stream`. A held object answers `held`
528
- /// and moves nothing. A url of `-` reads the real URL as one line on stdin: a capability
529
- /// URL can embed a signature, and argv is world-readable in /proc.
493
+ /// — plan-of-one, then the pull's downloader. A held object answers `held` and moves
494
+ /// nothing. A url of `-` reads the real URL as one line on stdin: a capability URL can
495
+ /// embed a signature, and argv is world-readable in /proc.
530
496
  ///
531
- /// `--streams` is how many byte ranges of THIS object are in flight; `--streams 1` is the
532
- /// single-stream fetch and stays reachable, because a link where concurrency does not help
533
- /// is a real link. An origin that will not answer a range takes the single-stream path
534
- /// whatever these say.
497
+ /// `--streams` is how many ranged requests of THIS object are in flight and `--part-mib`
498
+ /// one request's size. An origin that will not answer a range gives the object to one
499
+ /// request whatever these say.
535
500
  ///
536
501
  /// `--progress` opens the observation channel above. Without it this command says nothing
537
502
  /// until it is finished, which for a 5 GiB shard is ten to fifteen minutes of silence a
@@ -570,7 +535,7 @@ fn object_of(what: &str, id: &str, length: &str) -> Result<ObjectRef, ExitCode>
570
535
 
571
536
  fn ranged_of(flags: &Flags) -> transport::Ranged {
572
537
  transport::Ranged {
573
- streams: crate::flag_num(flags, "streams", transport::SOURCE_STREAMS),
538
+ streams: crate::flag_num(flags, "streams", transport::STREAMS),
574
539
  part: crate::flag_num::<u64>(flags, "part-mib", transport::PART_BYTES >> 20) << 20,
575
540
  }
576
541
  }
@@ -688,7 +653,7 @@ pub fn cmd_url(root: &Path, id: &str, length: &str, url: &str, flags: &Flags) ->
688
653
  reporter.moved = fetched.transferred;
689
654
  reporter.announce(1);
690
655
  }
691
- println!("admitted {}", fetched.admitted.object.id());
656
+ println!("admitted {}", fetched.object.id());
692
657
  println!("transferred {} B", fetched.transferred);
693
658
  ExitCode::SUCCESS
694
659
  }
@@ -765,8 +730,8 @@ pub fn cmd_staging_fetch(
765
730
  reporter.moved = fetched.transferred;
766
731
  reporter.announce(1);
767
732
  }
768
- let path = ok!(staging::path(&store, &fetched.admitted.object.sha256));
769
- println!("staged {}", fetched.admitted.object.id());
733
+ let path = ok!(staging::path(&store, &fetched.object.sha256));
734
+ println!("staged {}", fetched.object.id());
770
735
  println!("path {}", path.display());
771
736
  println!("transferred {} B", fetched.transferred);
772
737
  ExitCode::SUCCESS
@@ -64,8 +64,7 @@
64
64
  //! tfs fetch url <root> <sha256> <length> <url|-> [--progress] [--streams N]
65
65
  //! one granted object, in parallel ranges
66
66
  //! --progress opens the same STDERR event channel `tfs fetch` reports on, while
67
- //! the bytes move: {"event":"fetch.progress","origin_bytes":N,...} per sample
68
- //! and {"event":"fetch.delivery","host":..,"http_status":..} per redirect hop,
67
+ //! the bytes move: {"event":"fetch.progress","origin_bytes":N,...} per sample,
69
68
  //! so a supervisor can tell slow from wedged without a clock. stdout stays the
70
69
  //! result. --progress-bytes <n> is that channel's resolution, never a verdict
71
70
  //!
@@ -413,10 +413,8 @@ pub struct DeliveryGrant {
413
413
  /// Where the bytes this grant authorizes come to rest.
414
414
  ///
415
415
  /// The grant already carried this bit — it was `manifest: bool` — so a third destination is
416
- /// the existing shape rather than a new concept, and `admit` dispatching on it is what
417
- /// keeps `transport/` untouched: `ranged::sequential`'s single `grant.admit(store, &mut
418
- /// reader)` does not move, so byte-range resume works on the staging path for free and
419
- /// cannot drift from the CAS path.
416
+ /// the existing shape rather than a new concept: the downloader commits a hashed temp file
417
+ /// where the grant says, so the staging path shares the CAS path's transport.
420
418
  ///
421
419
  /// `Blob` and `Manifest` are store objects. `Staging` is not: it is a foreign source
422
420
  /// carrier the store will read once and throw away, and it has no catalog record, no census
@@ -547,10 +547,8 @@ pub fn pull(
547
547
  for (member, object) in &pinned {
548
548
  if plan.wants(&object.sha256) {
549
549
  let grant = DeliveryGrant::mint(&plan, object)?;
550
- // Ranged: a source member is not cut on the object grid — one HuggingFace
551
- // shard is whatever the uploader pushed, and on one stream it is one
552
- // stream. `fetch_ranged` falls back to exactly the single-stream call this
553
- // replaced whenever the origin will not answer a range.
550
+ // A source member is whatever the uploader pushed, up to gigabytes: it is
551
+ // asked for as parallel ranges, or whole if the origin will not range.
554
552
  let fetched = fetch_ranged(
555
553
  store,
556
554
  &grant,
@@ -849,7 +847,7 @@ pub fn materialize_selected_with_options(
849
847
  ledger = ledger.with_cancellation(cancellation.clone());
850
848
  }
851
849
  // Every member's liveness is published before any of their bytes move.
852
- let mut jobs: Vec<crate::transport::prefix::SourceJob> = vec![];
850
+ let mut jobs: Vec<crate::transport::sources::SourceJob> = vec![];
853
851
  let (mut seen, mut held_bytes) = (std::collections::BTreeSet::new(), 0);
854
852
  for member in &resolution.members {
855
853
  writer.hold_expected(&member.object)?;
@@ -861,12 +859,12 @@ pub fn materialize_selected_with_options(
861
859
  held_bytes += object.length;
862
860
  continue;
863
861
  }
864
- jobs.push(crate::transport::prefix::SourceJob {
862
+ jobs.push(crate::transport::sources::SourceJob {
865
863
  grant: DeliveryGrant::mint(&plan, object)?,
866
864
  url: member.url.clone(),
867
865
  });
868
866
  }
869
- let transferred = crate::transport::prefix::fetch_sources(
867
+ let transferred = crate::transport::sources::fetch_sources(
870
868
  store,
871
869
  owner,
872
870
  &jobs,
@@ -895,7 +893,7 @@ pub fn materialize_selected_with_options(
895
893
  });
896
894
  }
897
895
  plan.complete(store)?;
898
- crate::transport::prefix::discard_owner(store, owner)?;
896
+ crate::transport::sources::discard_owner(store, owner)?;
899
897
  let result = writer.finish(&tree)?;
900
898
  Ok((result, pulled))
901
899
  }
@@ -425,7 +425,7 @@ pub fn release(store: &Store, owner: &str) -> Result<()> {
425
425
  Err(e) if e.kind() != std::io::ErrorKind::NotFound => return Err(io(e)),
426
426
  _ => {}
427
427
  }
428
- crate::transport::prefix::discard_owner(store, owner)
428
+ crate::transport::sources::discard_owner(store, owner)
429
429
  }
430
430
 
431
431
  /// Mark a retained tree delivered: its bytes may now be evicted under disk pressure, oldest
@@ -546,7 +546,9 @@ pub fn adopt_partial(store: &Store, source: &str, owner: &str) -> Result<TreeRoo
546
546
  recipient.landed(&object)?;
547
547
  }
548
548
  }
549
- crate::transport::prefix::adopt_owner(store, source, owner, |object| recipient.landed(object))?;
549
+ crate::transport::sources::adopt_owner(store, source, owner, |object| {
550
+ recipient.landed(object)
551
+ })?;
550
552
  Ok(recipient.root.clone())
551
553
  }
552
554
 
@@ -695,5 +697,5 @@ pub fn release_retention(
695
697
  root.released = true;
696
698
  root.objects.clear();
697
699
  write(store, &root)?;
698
- crate::transport::prefix::discard_owner(store, owner)
700
+ crate::transport::sources::discard_owner(store, owner)
699
701
  }
@@ -181,8 +181,14 @@ pub fn staged(store: &Store, want: &ObjectRef) -> Result<Option<PathBuf>> {
181
181
  /// URL that serves the wrong bytes cannot poison this area — it can only fail, leaving
182
182
  /// nothing staged and no temp behind.
183
183
  pub fn stage<R: Read>(store: &Store, r: &mut R, want: &ObjectRef) -> Result<Carrier> {
184
- let dir = ensure(store)?;
184
+ ensure(store)?;
185
185
  let verified = store.stream_verified(r, Some(want), &Fault::default(), STAGE_TEMP)?;
186
+ adopt(store, verified)
187
+ }
188
+
189
+ /// Link a temp file already hashed to its id to `staging/<hex>`, and drop the temp.
190
+ pub(crate) fn adopt(store: &Store, verified: crate::store::Verified) -> Result<Carrier> {
191
+ let dir = ensure(store)?;
186
192
  let destination = dir.join(&verified.sha256);
187
193
  // 0444 for the same reason an object is: the converter reads it and nothing writes it
188
194
  // again. A carrier is removed by unlink, which a read-only mode does not prevent.
@@ -785,7 +785,7 @@ impl Store {
785
785
  /// admission fits must see them.
786
786
  pub fn occupancy(&self) -> Result<u64> {
787
787
  let mut total: u64 = crate::staging::bytes(self)?
788
- .checked_add(crate::transport::prefix::bytes(self)?)
788
+ .checked_add(crate::transport::sources::bytes(self)?)
789
789
  .ok_or_else(|| Refusal {
790
790
  code: Code::ARITH_OVERFLOW,
791
791
  detail: "prefix occupancy overflow".into(),