cc-transcript 14.46.19__tar.gz → 14.46.21__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.
Files changed (260) hide show
  1. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/PKG-INFO +1 -1
  2. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/pyproject.toml +1 -1
  3. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot.rs +94 -9
  4. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_cache.rs +1 -0
  5. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_prepared_service.rs +108 -28
  6. cc_transcript-14.46.21/rust/crates/core/src/snapshot_sidechain_feed.rs +1005 -0
  7. cc_transcript-14.46.21/rust/crates/core/src/snapshot_sidechain_feed_tests.rs +193 -0
  8. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/Cargo.lock +0 -0
  9. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/Cargo.toml +0 -0
  10. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/LICENSE +0 -0
  11. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/README.md +0 -0
  12. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/__init__.py +0 -0
  13. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/__init__.pyi +0 -0
  14. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/_native.pyi +0 -0
  15. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/activity.py +0 -0
  16. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/activity_probe.py +0 -0
  17. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/builders.py +0 -0
  18. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/codex.py +0 -0
  19. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/command.py +0 -0
  20. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/context.py +0 -0
  21. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/corrections.py +0 -0
  22. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/cost.py +0 -0
  23. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/decision_store.py +0 -0
  24. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/decisions.py +0 -0
  25. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/discovery.py +0 -0
  26. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/disktruth.py +0 -0
  27. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/evidence.py +0 -0
  28. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/extract/__init__.py +0 -0
  29. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/extract/correct.py +0 -0
  30. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/facts.py +0 -0
  31. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/filterspec.py +0 -0
  32. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/heartbeats.py +0 -0
  33. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/ids.py +0 -0
  34. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/judge/__init__.py +0 -0
  35. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/judge/llm.py +0 -0
  36. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/judge/similar.py +0 -0
  37. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/judge/verdicts.py +0 -0
  38. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/ledger.py +0 -0
  39. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/literals.py +0 -0
  40. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/mining/__init__.py +0 -0
  41. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/mining/candidates.py +0 -0
  42. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/mining/confidence.py +0 -0
  43. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/mining/engine.py +0 -0
  44. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/mining/formats.py +0 -0
  45. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/mining/sampling.py +0 -0
  46. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/mining/signals.py +0 -0
  47. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/mining/sourcekind.py +0 -0
  48. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/mining/spec.py +0 -0
  49. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/mining/store.py +0 -0
  50. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/models.py +0 -0
  51. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/nlp.py +0 -0
  52. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/notifications.py +0 -0
  53. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/parser.py +0 -0
  54. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/py.typed +0 -0
  55. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/query.py +0 -0
  56. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/render.py +0 -0
  57. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/sentiment/__init__.py +0 -0
  58. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/sentiment/buckets.py +0 -0
  59. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/sentiment/data/afinn-en-165.tsv +0 -0
  60. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/sentiment/data/domain_overrides.tsv +0 -0
  61. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/sentiment/data/en-ewt.udpipe +0 -0
  62. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/sentiment/engine.py +0 -0
  63. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/sentiment/lexicon.py +0 -0
  64. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/sentiment/scorespec.py +0 -0
  65. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/snapshot_schema/config.schema.json +0 -0
  66. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/snapshot_schema/context.schema.json +0 -0
  67. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/snapshot_schema/request.schema.json +0 -0
  68. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/snapshot_schema/response.schema.json +0 -0
  69. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/snapshot_schema/tool_registry.schema.json +0 -0
  70. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/snapshots.py +0 -0
  71. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/synthetic.py +0 -0
  72. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/tools.py +0 -0
  73. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/cc_transcript/watch.py +0 -0
  74. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/cli/Cargo.toml +0 -0
  75. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/cli/src/commands/blame.rs +0 -0
  76. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/cli/src/commands/corpus.rs +0 -0
  77. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/cli/src/commands/corrections.rs +0 -0
  78. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/cli/src/commands/digest.rs +0 -0
  79. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/cli/src/commands/facts.rs +0 -0
  80. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/cli/src/commands/grep.rs +0 -0
  81. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/cli/src/commands/list.rs +0 -0
  82. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/cli/src/commands/mod.rs +0 -0
  83. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/cli/src/commands/scratchpad.rs +0 -0
  84. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/cli/src/commands/show.rs +0 -0
  85. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/cli/src/commands/slice.rs +0 -0
  86. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/cli/src/commands/stats.rs +0 -0
  87. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/cli/src/commands/watch.rs +0 -0
  88. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/cli/src/index.rs +0 -0
  89. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/cli/src/lib.rs +0 -0
  90. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/cli/src/output.rs +0 -0
  91. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/cli/src/target.rs +0 -0
  92. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/cli/src/timearg.rs +0 -0
  93. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/Cargo.toml +0 -0
  94. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/benches/parse.rs +0 -0
  95. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/benches/render.rs +0 -0
  96. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/benches/toolcall.rs +0 -0
  97. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/build.rs +0 -0
  98. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/activity.rs +0 -0
  99. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/actor.rs +0 -0
  100. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/blame.rs +0 -0
  101. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/buckets.rs +0 -0
  102. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/codex/discovery.rs +0 -0
  103. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/codex/lower.rs +0 -0
  104. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/codex/mod.rs +0 -0
  105. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/codex/parse.rs +0 -0
  106. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/codex/probe.rs +0 -0
  107. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/codex/protocol.rs +0 -0
  108. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/codex/review_continuation.rs +0 -0
  109. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/codex/types.rs +0 -0
  110. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/command.rs +0 -0
  111. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/context.rs +0 -0
  112. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/corrections.rs +0 -0
  113. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/cost.rs +0 -0
  114. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/discovery.rs +0 -0
  115. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/facts.rs +0 -0
  116. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/feedback.rs +0 -0
  117. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/filter.rs +0 -0
  118. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/gateway.rs +0 -0
  119. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/ids.rs +0 -0
  120. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/judge.rs +0 -0
  121. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/lib.rs +0 -0
  122. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/literals/command.rs +0 -0
  123. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/literals/corrections.rs +0 -0
  124. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/literals/feedback.rs +0 -0
  125. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/literals/mining.rs +0 -0
  126. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/literals/mod.rs +0 -0
  127. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/literals/protocol.rs +0 -0
  128. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/mining.rs +0 -0
  129. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/mining_index.rs +0 -0
  130. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/notifications.rs +0 -0
  131. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/parse.rs +0 -0
  132. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/protocol.rs +0 -0
  133. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/pystr.rs +0 -0
  134. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/query.rs +0 -0
  135. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/render.rs +0 -0
  136. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/request_body.rs +0 -0
  137. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/rng.rs +0 -0
  138. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/scan.rs +0 -0
  139. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/scan_checkpoint.rs +0 -0
  140. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/scan_grep.rs +0 -0
  141. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/scan_grep_stream.rs +0 -0
  142. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/scan_grep_stream_tests.rs +0 -0
  143. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/scan_index.rs +0 -0
  144. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/scan_projection.rs +0 -0
  145. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/scan_regressions.rs +0 -0
  146. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/scan_stream.rs +0 -0
  147. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/schema.rs +0 -0
  148. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_activity.rs +0 -0
  149. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_admission_report_tests.rs +0 -0
  150. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_cache_tests.rs +0 -0
  151. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_catalog.rs +0 -0
  152. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_catalog_owner.rs +0 -0
  153. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_catalog_tests.rs +0 -0
  154. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_codec.rs +0 -0
  155. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_codex_append.rs +0 -0
  156. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_common_borrowed_parent_tests.rs +0 -0
  157. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_compact_codex.rs +0 -0
  158. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_compact_codex_tests.rs +0 -0
  159. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_direct_tail.rs +0 -0
  160. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_direct_tail_tests.rs +0 -0
  161. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_graph_anchor_tests.rs +0 -0
  162. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_graph_validation_tests.rs +0 -0
  163. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_hydrate_budget_tests.rs +0 -0
  164. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_hydration_observations.rs +0 -0
  165. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_index_allocations.rs +0 -0
  166. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_input.rs +0 -0
  167. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_interaction_api.rs +0 -0
  168. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_interaction_api_tests.rs +0 -0
  169. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_interactions.rs +0 -0
  170. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_interactions_tests.rs +0 -0
  171. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_labels.rs +0 -0
  172. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_ledger.rs +0 -0
  173. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_ledger_tests.rs +0 -0
  174. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_load_charge_audit_tests.rs +0 -0
  175. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_load_charge_work_tests.rs +0 -0
  176. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_membership_progress.rs +0 -0
  177. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_membership_progress_controls.rs +0 -0
  178. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_membership_progress_tests.rs +0 -0
  179. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_memory.rs +0 -0
  180. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_owned.rs +0 -0
  181. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_persistent.rs +0 -0
  182. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_prepared.rs +0 -0
  183. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_prepared_disk.rs +0 -0
  184. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_projection.rs +0 -0
  185. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_publication_shared_admission_tests.rs +0 -0
  186. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_query_hydration_tests.rs +0 -0
  187. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_raw_materialization.rs +0 -0
  188. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_raw_projection.rs +0 -0
  189. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_raw_projection_tests.rs +0 -0
  190. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_raw_scope.rs +0 -0
  191. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_raw_scope_tests.rs +0 -0
  192. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_raw_tail_tests.rs +0 -0
  193. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_raw_window.rs +0 -0
  194. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_registered_review_tests.rs +0 -0
  195. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_regressions.rs +0 -0
  196. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_reply_resume_tests.rs +0 -0
  197. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_review.rs +0 -0
  198. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_review_admission_tests.rs +0 -0
  199. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_review_context.rs +0 -0
  200. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_review_reader.rs +0 -0
  201. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_review_source.rs +0 -0
  202. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_root_warm.rs +0 -0
  203. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_sidechain_absence.rs +0 -0
  204. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_sidechain_absence_tests.rs +0 -0
  205. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_skill_demand_controls.rs +0 -0
  206. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_skill_demand_tests.rs +0 -0
  207. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_skill_framing.rs +0 -0
  208. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_skills.rs +0 -0
  209. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_source_cache_index_tests.rs +0 -0
  210. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_spine.rs +0 -0
  211. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_spine_tests.rs +0 -0
  212. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_symlink_proof.rs +0 -0
  213. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/snapshot_text.rs +0 -0
  214. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/sqlite.rs +0 -0
  215. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/toolcall.rs +0 -0
  216. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/types.rs +0 -0
  217. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/value.rs +0 -0
  218. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/src/watch.rs +0 -0
  219. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/tests/persistent_allocation_model.rs +0 -0
  220. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/tests/sonic_arena_model.rs +0 -0
  221. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/core/tests/std_allocation_model.rs +0 -0
  222. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/Cargo.toml +0 -0
  223. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/build.rs +0 -0
  224. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/data/command_prefix_pins.tsv +0 -0
  225. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/src/actor_bridge.rs +0 -0
  226. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/src/bin/stub_gen.rs +0 -0
  227. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/src/codex.rs +0 -0
  228. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/src/command.rs +0 -0
  229. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/src/context.rs +0 -0
  230. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/src/corrections.rs +0 -0
  231. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/src/discovery.rs +0 -0
  232. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/src/feedback.rs +0 -0
  233. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/src/judge.rs +0 -0
  234. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/src/lexicon.rs +0 -0
  235. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/src/lib.rs +0 -0
  236. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/src/mining.rs +0 -0
  237. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/src/nlp.rs +0 -0
  238. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/src/python.rs +0 -0
  239. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/src/render.rs +0 -0
  240. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/src/score.rs +0 -0
  241. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/src/snapshot_decode.rs +0 -0
  242. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/src/snapshots.rs +0 -0
  243. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/src/snapshots_registered_review.rs +0 -0
  244. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/src/sqlite.rs +0 -0
  245. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/src/toolcall.rs +0 -0
  246. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/src/views/attachment.rs +0 -0
  247. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/src/views/blocks.rs +0 -0
  248. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/src/views/command.rs +0 -0
  249. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/src/views/convert.rs +0 -0
  250. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/src/views/dunder.rs +0 -0
  251. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/src/views/events.rs +0 -0
  252. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/src/views/meta.rs +0 -0
  253. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/src/views/mod.rs +0 -0
  254. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/src/views/print.rs +0 -0
  255. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/src/views/store.rs +0 -0
  256. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/src/views/system.rs +0 -0
  257. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/src/views/toolcall.rs +0 -0
  258. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/src/views/toolresult.rs +0 -0
  259. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/src/views/transcript.rs +0 -0
  260. {cc_transcript-14.46.19 → cc_transcript-14.46.21}/rust/crates/py/src/watch.rs +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cc-transcript
3
- Version: 14.46.19
3
+ Version: 14.46.21
4
4
  Classifier: Development Status :: 3 - Alpha
5
5
  Classifier: Environment :: Console
6
6
  Classifier: Intended Audience :: Developers
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "cc-transcript"
3
- version = "14.46.19" # informational — releases stamp the version from the git tag
3
+ version = "14.46.21" # informational — releases stamp the version from the git tag
4
4
  description = "Grep every Claude Code session you've ever run."
5
5
  readme = "README.md"
6
6
  license = "PolyForm-Noncommercial-1.0.0"
@@ -1,4 +1,5 @@
1
1
  use std::borrow::Cow;
2
+ use std::cell::Cell;
2
3
  use std::collections::{BTreeSet, HashMap, HashSet, VecDeque};
3
4
  use std::ffi::{OsStr, OsString};
4
5
  use std::fs::{File, Metadata};
@@ -10,7 +11,7 @@ use std::os::unix::fs::MetadataExt;
10
11
  use std::path::{Path, PathBuf};
11
12
  use std::sync::atomic::{AtomicBool, AtomicU64, AtomicUsize, Ordering};
12
13
  use std::sync::{Arc, Condvar, Mutex, MutexGuard, Weak};
13
- use std::time::{Duration, SystemTime, UNIX_EPOCH};
14
+ use std::time::{Duration, Instant, SystemTime, UNIX_EPOCH};
14
15
 
15
16
  #[cfg(test)]
16
17
  use sonic_rs::JsonType;
@@ -164,6 +165,38 @@ impl Cancellation {
164
165
  }
165
166
  }
166
167
 
168
+ #[derive(Debug, Default, Clone, Copy, PartialEq, Eq)]
169
+ pub struct RequestWaits {
170
+ pub state: Duration,
171
+ pub fact_read: Duration,
172
+ }
173
+
174
+ thread_local! {
175
+ static REQUEST_WAITS: Cell<RequestWaits> = Cell::new(RequestWaits::default());
176
+ }
177
+
178
+ impl RequestWaits {
179
+ pub fn measured<T>(work: impl FnOnce() -> T) -> (T, Self) {
180
+ REQUEST_WAITS.set(Self::default());
181
+ let value = work();
182
+ (value, REQUEST_WAITS.take())
183
+ }
184
+
185
+ fn add(waited: Duration, field: fn(&mut Self) -> &mut Duration) {
186
+ let mut waits = REQUEST_WAITS.get();
187
+ *field(&mut waits) += waited;
188
+ REQUEST_WAITS.set(waits);
189
+ }
190
+ }
191
+
192
+ struct FactReadWait(Instant);
193
+
194
+ impl Drop for FactReadWait {
195
+ fn drop(&mut self) {
196
+ RequestWaits::add(self.0.elapsed(), |waits| &mut waits.fact_read);
197
+ }
198
+ }
199
+
167
200
  #[derive(Debug, Clone, Copy, Hash, PartialEq, Eq, PartialOrd, Ord)]
168
201
  pub struct SourceIdentity {
169
202
  pub device: u64,
@@ -1163,6 +1196,7 @@ struct PreparedBuild {
1163
1196
  sources: Vec<PreparedSourceRef>,
1164
1197
  stamps: Vec<(PathBuf, SourceStamp)>,
1165
1198
  sidechain_dirs: Vec<(PathBuf, Option<SourceStamp>)>,
1199
+ sidechain_registration: Option<u64>,
1166
1200
  expires: u64,
1167
1201
  }
1168
1202
 
@@ -2277,6 +2311,7 @@ pub(crate) struct StoreState {
2277
2311
  fact_read_in_flight: bool,
2278
2312
  owned: crate::snapshot_owned::OwnedProjections,
2279
2313
  ledger: RetainedLedger,
2314
+ sidechain_feed: Arc<SidechainFeed>,
2280
2315
  #[cfg(test)]
2281
2316
  audits: Arc<AtomicUsize>,
2282
2317
  #[cfg(test)]
@@ -2365,6 +2400,7 @@ impl StoreState {
2365
2400
  fact_read_in_flight: false,
2366
2401
  owned: crate::snapshot_owned::OwnedProjections::default(),
2367
2402
  ledger: RetainedLedger::new(work),
2403
+ sidechain_feed: Arc::default(),
2368
2404
  #[cfg(test)]
2369
2405
  audits: Arc::new(AtomicUsize::new(0)),
2370
2406
  #[cfg(test)]
@@ -2845,6 +2881,7 @@ impl StoreState {
2845
2881
 
2846
2882
  fn remove_latest(&mut self, identity: &SourceIdentity) -> Option<Arc<TranscriptSnapshot>> {
2847
2883
  let key = self.latest.remove(identity)?;
2884
+ self.sidechain_feed.release(*identity);
2848
2885
  let removed = Arc::clone(
2849
2886
  &self
2850
2887
  .generations
@@ -3703,6 +3740,7 @@ pub struct NativeStore {
3703
3740
  transport_bytes: AtomicU64,
3704
3741
  state: Mutex<StoreState>,
3705
3742
  fact_read_released: Condvar,
3743
+ sidechain_feed: Arc<SidechainFeed>,
3706
3744
  #[cfg(test)]
3707
3745
  catalog_wait_hook: Mutex<Option<Arc<dyn Fn() + Send + Sync>>>,
3708
3746
  classifiers: Mutex<HashMap<String, Arc<ClassifierCallback>>>,
@@ -4269,6 +4307,7 @@ impl NativeStore {
4269
4307
  work.clone(),
4270
4308
  )?;
4271
4309
  state.prepared_disk_index_bytes = prepared_disk.index_bytes();
4310
+ let sidechain_feed = Arc::clone(&state.sidechain_feed);
4272
4311
  Ok(Self {
4273
4312
  config,
4274
4313
  agent_sources: false,
@@ -4280,6 +4319,7 @@ impl NativeStore {
4280
4319
  transport_bytes: AtomicU64::new(0),
4281
4320
  state: Mutex::new(state),
4282
4321
  fact_read_released: Condvar::new(),
4322
+ sidechain_feed,
4283
4323
  #[cfg(test)]
4284
4324
  catalog_wait_hook: Mutex::new(None),
4285
4325
  classifiers: Mutex::new(HashMap::new()),
@@ -4372,11 +4412,18 @@ impl NativeStore {
4372
4412
  }
4373
4413
 
4374
4414
  pub(crate) fn lock_state(&self) -> MutexGuard<'_, StoreState> {
4375
- let mut state = self.state.lock().expect("snapshot state");
4415
+ let mut state = self.timed_state();
4376
4416
  state.drain();
4377
4417
  state
4378
4418
  }
4379
4419
 
4420
+ fn timed_state(&self) -> MutexGuard<'_, StoreState> {
4421
+ let started = Instant::now();
4422
+ let state = self.state.lock().expect("snapshot state");
4423
+ RequestWaits::add(started.elapsed(), |waits| &mut waits.state);
4424
+ state
4425
+ }
4426
+
4380
4427
  pub fn scan_limits(&self) -> WorkLimits {
4381
4428
  WorkLimits {
4382
4429
  max_read_bytes: self.config.scan_read,
@@ -4411,13 +4458,7 @@ impl NativeStore {
4411
4458
  let definitions =
4412
4459
  crate::toolcall::ToolRegistrySnapshot::specs_from_json(specs).map_err(invalid)?;
4413
4460
  let fingerprint = crate::toolcall::ToolRegistrySnapshot::fingerprint_of(&definitions);
4414
- if self
4415
- .state
4416
- .lock()
4417
- .expect("snapshot state")
4418
- .registries
4419
- .contains_key(&fingerprint)
4420
- {
4461
+ if self.timed_state().registries.contains_key(&fingerprint) {
4421
4462
  return Ok(fingerprint);
4422
4463
  }
4423
4464
  let charge = crate::snapshot_memory::value_charge(specs);
@@ -4499,6 +4540,9 @@ impl NativeStore {
4499
4540
  deadline_unix_ms: u64,
4500
4541
  ) -> Result<FactReadClaim<'_>, SnapshotError> {
4501
4542
  let mut state = self.lock_state();
4543
+ let _waiting = state
4544
+ .fact_read_in_flight
4545
+ .then(|| FactReadWait(Instant::now()));
4502
4546
  #[cfg(test)]
4503
4547
  {
4504
4548
  if state.fact_read_in_flight {
@@ -7002,6 +7046,10 @@ impl NativeStore {
7002
7046
  });
7003
7047
  }
7004
7048
 
7049
+ pub fn take_sidechain_watch_failures(&self) -> Vec<(PathBuf, String)> {
7050
+ self.sidechain_feed.take_failures()
7051
+ }
7052
+
7005
7053
  pub fn take_admission_refusal(&self) -> Option<Value> {
7006
7054
  let mut state = self.lock_state();
7007
7055
  let refusal = state.last_refusal.take()?;
@@ -12981,6 +13029,7 @@ include!("snapshot_catalog_owner.rs");
12981
13029
 
12982
13030
  include!("snapshot_membership_progress.rs");
12983
13031
  include!("snapshot_sidechain_absence.rs");
13032
+ include!("snapshot_sidechain_feed.rs");
12984
13033
  include!("snapshot_prepared_service.rs");
12985
13034
  include!("snapshot_skills.rs");
12986
13035
  include!("snapshot_hydration_observations.rs");
@@ -13074,6 +13123,7 @@ mod tests {
13074
13123
  include!("snapshot_membership_progress_tests.rs");
13075
13124
  include!("snapshot_membership_progress_controls.rs");
13076
13125
  include!("snapshot_sidechain_absence_tests.rs");
13126
+ include!("snapshot_sidechain_feed_tests.rs");
13077
13127
  include!("snapshot_common_borrowed_parent_tests.rs");
13078
13128
  include!("snapshot_graph_anchor_tests.rs");
13079
13129
 
@@ -19810,6 +19860,41 @@ mod tests {
19810
19860
  store.assert_conserved();
19811
19861
  }
19812
19862
 
19863
+ #[test]
19864
+ fn a_request_held_behind_the_fact_read_gate_reports_the_wait() {
19865
+ let source = Source::new(&format!("{}\n{}\n", user("root"), user("child")));
19866
+ let store = fact_budget_store(16 * 1024 * 1024);
19867
+ let owner = context("a");
19868
+ let bounds = limits(&acquire(&source.path)).unwrap();
19869
+ let root = pinned_root(&store, &source, &owner);
19870
+ assert_eq!(root_facts_read(&store, &root, &owner, &bounds).1, 0);
19871
+ assert_eq!(
19872
+ store
19873
+ .lock_state()
19874
+ .remove_identity_facts(root.stamp.identity),
19875
+ 1
19876
+ );
19877
+ let held = Duration::from_millis(60);
19878
+ let gate = install_fact_read_gate(&store, || {});
19879
+ let (first, second) = std::thread::scope(|scope| {
19880
+ let read =
19881
+ || RequestWaits::measured(|| root_facts_read(&store, &root, &owner, &bounds));
19882
+ let first = scope.spawn(read);
19883
+ gate.wait_until_read();
19884
+ let second = scope.spawn(read);
19885
+ wait_for_fact_read_waiter(&store);
19886
+ std::thread::sleep(held);
19887
+ gate.release();
19888
+ (first.join().unwrap(), second.join().unwrap())
19889
+ });
19890
+ store.prepared_disk.set_read_hook(None);
19891
+ assert_eq!((first.0 .1, second.0 .1), (1, 0));
19892
+ assert_eq!(first.1.fact_read, Duration::ZERO);
19893
+ assert!(second.1.fact_read >= held, "{:?}", second.1);
19894
+ drop((first, second));
19895
+ store.assert_conserved();
19896
+ }
19897
+
19813
19898
  #[test]
19814
19899
  fn a_cancelled_root_fact_read_keeps_the_entry_and_builds_nothing() {
19815
19900
  let source = Source::new(&format!("{}\n{}\n", user("root"), user("child")));
@@ -339,6 +339,7 @@ impl StoreState {
339
339
  assert!(self.cache_order.remove(&(cached.touched, owner)));
340
340
  if let Some(identity) = cached.latest {
341
341
  assert_eq!(self.latest.remove(&identity), Some(key));
342
+ self.sidechain_feed.release(identity);
342
343
  if self.recent_codex.contains_key(&identity) {
343
344
  self.recent_codex_raw_bytes -= codex_raw_len(&cached.snapshot);
344
345
  }
@@ -1455,6 +1455,7 @@ impl NativeStore {
1455
1455
  sources: Vec::new(),
1456
1456
  stamps: vec![(root.canonical_path.clone(), root.stamp)],
1457
1457
  sidechain_dirs: Vec::new(),
1458
+ sidechain_registration: None,
1458
1459
  expires: (now_ms() + self.config.ttl).min(remaining.deadline_unix_ms),
1459
1460
  };
1460
1461
  build.context_bytes = value_bytes(&build.context);
@@ -1510,6 +1511,7 @@ impl NativeStore {
1510
1511
  usage: &mut [u64; 20],
1511
1512
  ) -> Result<(Value, Option<String>, Option<String>), SnapshotError> {
1512
1513
  self.validate_prepared_build_scope(&build, cancel)?;
1514
+ self.sidechain_feed.drain();
1513
1515
  let context = &build.context;
1514
1516
  if build.tasks.is_empty() && build.sources.is_empty() && build.listing.is_none() {
1515
1517
  let direct = build.request["direct_paths"]
@@ -1676,7 +1678,51 @@ impl NativeStore {
1676
1678
  directory_bytes,
1677
1679
  "sidechain directory landed off its predicted capacity"
1678
1680
  );
1679
- let canonical = match realpath(&directory) {
1681
+ let root = build.root.stamp.identity;
1682
+ let rooted = parent == build.root.canonical_path;
1683
+ let live = rooted && self.lock_state().latest.contains_key(&root);
1684
+ let fed = rooted
1685
+ .then(|| self.sidechain_feed.listing(root, &directory, live))
1686
+ .flatten();
1687
+ if let Some((stamp, members)) = fed {
1688
+ self.authority(context, Some(&directory))?;
1689
+ build.owned_payload_bytes += directory.capacity();
1690
+ build.charge_work.tick(1);
1691
+ build.sidechain_dirs.push((directory, Some(stamp)));
1692
+ assert_eq!(
1693
+ build.sidechain_dirs.capacity(),
1694
+ predicted,
1695
+ "prepared build collections landed off their predicted capacities"
1696
+ );
1697
+ self.extend_projection_reservation(
1698
+ reservation,
1699
+ context,
1700
+ vec_growth(&build.tasks, members.len())
1701
+ + members
1702
+ .iter()
1703
+ .map(|path| path.capacity() + spawner(path).len())
1704
+ .sum::<usize>(),
1705
+ )?;
1706
+ let predicted = vec_capacity_for(&build.tasks, members.len());
1707
+ build.tasks.reserve(members.len());
1708
+ assert_eq!(
1709
+ build.tasks.capacity(),
1710
+ predicted,
1711
+ "prepared build collections landed off their predicted capacities"
1712
+ );
1713
+ for path in members.into_iter().rev() {
1714
+ let spawned_by = spawner(&path).to_owned();
1715
+ build.owned_payload_bytes += path.capacity() + spawned_by.capacity();
1716
+ build.charge_work.tick(1);
1717
+ build.tasks.push(GraphTask::Visit {
1718
+ path,
1719
+ depth,
1720
+ spawned_by: Some(spawned_by),
1721
+ });
1722
+ }
1723
+ continue;
1724
+ }
1725
+ let canonical = match sidechain_realpath(&directory) {
1680
1726
  Ok(canonical) => canonical,
1681
1727
  Err(error) if error.kind() == std::io::ErrorKind::NotFound => {
1682
1728
  build.owned_payload_bytes += directory.capacity();
@@ -1692,8 +1738,7 @@ impl NativeStore {
1692
1738
  Err(error) => return Err(io_error(error)),
1693
1739
  };
1694
1740
  self.authority(context, Some(&canonical))?;
1695
- let stamp =
1696
- SourceStamp::of(&std::fs::metadata(&canonical).map_err(io_error)?);
1741
+ let stamp = sidechain_stat(&canonical).map_err(io_error)?;
1697
1742
  self.extend_projection_reservation(
1698
1743
  reservation,
1699
1744
  context,
@@ -1701,6 +1746,9 @@ impl NativeStore {
1701
1746
  + READ_DIR_HANDLE_BYTES
1702
1747
  + directory.as_os_str().len(),
1703
1748
  )?;
1749
+ if live && canonical == directory && build.sidechain_registration.is_none() {
1750
+ build.sidechain_registration = self.sidechain_feed.begin(root, &directory);
1751
+ }
1704
1752
  build.owned_payload_bytes += canonical.capacity();
1705
1753
  build.charge_work.tick(1);
1706
1754
  build.sidechain_dirs.push((canonical, Some(stamp)));
@@ -1710,7 +1758,7 @@ impl NativeStore {
1710
1758
  "prepared build collections landed off their predicted capacities"
1711
1759
  );
1712
1760
  build.listing = Some(GraphListing {
1713
- entries: OpenDirectory::open(&directory)?,
1761
+ entries: sidechain_listing(&directory)?,
1714
1762
  children: Vec::new(),
1715
1763
  depth,
1716
1764
  });
@@ -1720,33 +1768,53 @@ impl NativeStore {
1720
1768
  GraphTask::Visit {
1721
1769
  path,
1722
1770
  depth,
1723
- spawned_by: _,
1771
+ spawned_by,
1724
1772
  } => {
1725
1773
  examined += 1;
1726
- let canonical = realpath(&path).map_err(io_error)?;
1727
- self.authority(context, Some(&canonical))?;
1728
- let stamp =
1729
- SourceStamp::of(&std::fs::metadata(&canonical).map_err(io_error)?);
1774
+ let listed = spawned_by.is_some();
1775
+ let member = listed && depth == 1;
1776
+ let fed = member.then(|| self.sidechain_feed.stamp(&path)).flatten();
1777
+ let (canonical, stamp) = match fed {
1778
+ Some(stamp) => (path, stamp),
1779
+ None => {
1780
+ let canonical = sidechain_realpath(&path).map_err(io_error)?;
1781
+ self.authority(context, Some(&canonical))?;
1782
+ let registration =
1783
+ build.sidechain_registration.filter(|_| member);
1784
+ if let Some(epoch) = registration {
1785
+ self.sidechain_feed.watch(epoch, &path, &canonical);
1786
+ }
1787
+ let stamp = sidechain_stat(&canonical).map_err(io_error)?;
1788
+ if let Some(epoch) = registration {
1789
+ self.sidechain_feed.record(epoch, &path, stamp);
1790
+ }
1791
+ (canonical, stamp)
1792
+ }
1793
+ };
1730
1794
  if build.seen.contains(&stamp.identity.file()) {
1731
1795
  continue;
1732
1796
  }
1797
+ let nested = !listed;
1733
1798
  if active_since_ns(&build.request)?
1734
1799
  .is_some_and(|since| stamp.mtime_ns < since)
1735
1800
  {
1736
1801
  self.extend_projection_reservation(
1737
1802
  reservation,
1738
1803
  context,
1739
- set_growth(&build.seen, 1) + canonical.as_os_str().len(),
1804
+ set_growth(&build.seen, 1)
1805
+ + if nested { canonical.as_os_str().len() } else { 0 },
1740
1806
  )?;
1741
1807
  let predicted =
1742
1808
  (set_capacity_for(&build.seen, 1), build.tasks.capacity());
1743
1809
  build.seen.insert(stamp.identity.file());
1744
- build.owned_payload_bytes += canonical.capacity();
1745
1810
  build.charge_work.tick(1);
1746
- build.tasks.push(GraphTask::List {
1747
- parent: canonical,
1748
- depth: depth + 1,
1749
- });
1811
+ if nested {
1812
+ build.owned_payload_bytes += canonical.capacity();
1813
+ build.tasks.push(GraphTask::List {
1814
+ parent: canonical,
1815
+ depth: depth + 1,
1816
+ });
1817
+ }
1750
1818
  assert_eq!(
1751
1819
  (build.seen.capacity(), build.tasks.capacity()),
1752
1820
  predicted,
@@ -1760,13 +1828,14 @@ impl NativeStore {
1760
1828
  "prepared graph source budget exhausted",
1761
1829
  ));
1762
1830
  }
1831
+ let copies = if nested { 3 } else { 2 };
1763
1832
  self.extend_projection_reservation(
1764
1833
  reservation,
1765
1834
  context,
1766
1835
  set_growth(&build.seen, 1)
1767
1836
  + vec_growth(&build.stamps, 1)
1768
1837
  + vec_growth(&build.sources, 1)
1769
- + 3 * canonical.as_os_str().len(),
1838
+ + copies * canonical.as_os_str().len(),
1770
1839
  )?;
1771
1840
  let predicted = (
1772
1841
  set_capacity_for(&build.seen, 1),
@@ -1778,18 +1847,26 @@ impl NativeStore {
1778
1847
  self.build_sources.fetch_add(1, Ordering::Relaxed);
1779
1848
  build.seen.insert(stamp.identity.file());
1780
1849
  build.stamps.push((canonical.clone(), stamp));
1781
- build.sources.push(PreparedSourceRef {
1782
- path: canonical.clone(),
1783
- stamp,
1784
- });
1785
- build.owned_payload_bytes += build.stamps.last().unwrap().0.capacity()
1786
- + build.sources.last().unwrap().path.capacity()
1787
- + canonical.capacity();
1788
- build.charge_work.tick(3);
1789
- build.tasks.push(GraphTask::List {
1790
- parent: canonical,
1791
- depth: depth + 1,
1792
- });
1850
+ build.owned_payload_bytes += build.stamps.last().unwrap().0.capacity();
1851
+ if nested {
1852
+ build.sources.push(PreparedSourceRef {
1853
+ path: canonical.clone(),
1854
+ stamp,
1855
+ });
1856
+ build.owned_payload_bytes += build.sources.last().unwrap().path.capacity()
1857
+ + canonical.capacity();
1858
+ build.tasks.push(GraphTask::List {
1859
+ parent: canonical,
1860
+ depth: depth + 1,
1861
+ });
1862
+ } else {
1863
+ build.owned_payload_bytes += canonical.capacity();
1864
+ build.sources.push(PreparedSourceRef {
1865
+ path: canonical,
1866
+ stamp,
1867
+ });
1868
+ }
1869
+ build.charge_work.tick(copies);
1793
1870
  assert_eq!(
1794
1871
  (
1795
1872
  build.seen.capacity(),
@@ -1810,6 +1887,9 @@ impl NativeStore {
1810
1887
  if build.listing.is_some() || !build.tasks.is_empty() {
1811
1888
  return self.store_prepared_build(token, build, reservation);
1812
1889
  }
1890
+ if let Some(epoch) = build.sidechain_registration {
1891
+ self.sidechain_feed.complete(epoch);
1892
+ }
1813
1893
  let graph_id = self.token("prepared-graph");
1814
1894
  self.extend_projection_reservation(
1815
1895
  reservation,