cc-transcript 14.45.30__tar.gz → 14.45.32__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 (233) hide show
  1. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/PKG-INFO +1 -1
  2. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/pyproject.toml +1 -1
  3. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot.rs +202 -36
  4. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_codex_append.rs +5 -0
  5. cc_transcript-14.45.32/rust/crates/core/src/snapshot_compact_codex.rs +468 -0
  6. cc_transcript-14.45.32/rust/crates/core/src/snapshot_compact_codex_tests.rs +503 -0
  7. cc_transcript-14.45.32/rust/crates/core/src/snapshot_graph_validation_tests.rs +350 -0
  8. cc_transcript-14.45.32/rust/crates/core/src/snapshot_hydration_observations.rs +28 -0
  9. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_ledger.rs +8 -0
  10. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_ledger_tests.rs +115 -53
  11. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_prepared_disk.rs +19 -0
  12. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_prepared_service.rs +315 -102
  13. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_projection.rs +80 -12
  14. cc_transcript-14.45.32/rust/crates/core/src/snapshot_query_hydration_tests.rs +359 -0
  15. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_regressions.rs +10 -4
  16. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/Cargo.lock +0 -0
  17. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/Cargo.toml +0 -0
  18. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/LICENSE +0 -0
  19. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/README.md +0 -0
  20. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/__init__.py +0 -0
  21. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/__init__.pyi +0 -0
  22. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/_native.pyi +0 -0
  23. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/activity.py +0 -0
  24. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/activity_probe.py +0 -0
  25. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/builders.py +0 -0
  26. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/codex.py +0 -0
  27. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/command.py +0 -0
  28. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/context.py +0 -0
  29. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/corrections.py +0 -0
  30. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/cost.py +0 -0
  31. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/decision_store.py +0 -0
  32. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/decisions.py +0 -0
  33. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/discovery.py +0 -0
  34. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/disktruth.py +0 -0
  35. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/evidence.py +0 -0
  36. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/extract/__init__.py +0 -0
  37. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/extract/correct.py +0 -0
  38. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/facts.py +0 -0
  39. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/filterspec.py +0 -0
  40. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/heartbeats.py +0 -0
  41. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/ids.py +0 -0
  42. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/judge/__init__.py +0 -0
  43. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/judge/llm.py +0 -0
  44. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/judge/similar.py +0 -0
  45. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/judge/verdicts.py +0 -0
  46. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/ledger.py +0 -0
  47. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/literals.py +0 -0
  48. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/mining/__init__.py +0 -0
  49. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/mining/candidates.py +0 -0
  50. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/mining/confidence.py +0 -0
  51. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/mining/engine.py +0 -0
  52. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/mining/formats.py +0 -0
  53. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/mining/sampling.py +0 -0
  54. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/mining/signals.py +0 -0
  55. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/mining/sourcekind.py +0 -0
  56. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/mining/spec.py +0 -0
  57. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/mining/store.py +0 -0
  58. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/models.py +0 -0
  59. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/nlp.py +0 -0
  60. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/notifications.py +0 -0
  61. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/parser.py +0 -0
  62. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/py.typed +0 -0
  63. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/query.py +0 -0
  64. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/render.py +0 -0
  65. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/sentiment/__init__.py +0 -0
  66. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/sentiment/buckets.py +0 -0
  67. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/sentiment/data/afinn-en-165.tsv +0 -0
  68. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/sentiment/data/domain_overrides.tsv +0 -0
  69. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/sentiment/data/en-ewt.udpipe +0 -0
  70. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/sentiment/engine.py +0 -0
  71. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/sentiment/lexicon.py +0 -0
  72. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/sentiment/scorespec.py +0 -0
  73. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/snapshot_schema/config.schema.json +0 -0
  74. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/snapshot_schema/context.schema.json +0 -0
  75. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/snapshot_schema/request.schema.json +0 -0
  76. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/snapshot_schema/response.schema.json +0 -0
  77. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/snapshot_schema/tool_registry.schema.json +0 -0
  78. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/snapshots.py +0 -0
  79. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/synthetic.py +0 -0
  80. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/tools.py +0 -0
  81. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/cc_transcript/watch.py +0 -0
  82. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/cli/Cargo.toml +0 -0
  83. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/cli/src/commands/blame.rs +0 -0
  84. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/cli/src/commands/corpus.rs +0 -0
  85. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/cli/src/commands/corrections.rs +0 -0
  86. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/cli/src/commands/digest.rs +0 -0
  87. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/cli/src/commands/facts.rs +0 -0
  88. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/cli/src/commands/grep.rs +0 -0
  89. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/cli/src/commands/list.rs +0 -0
  90. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/cli/src/commands/mod.rs +0 -0
  91. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/cli/src/commands/scratchpad.rs +0 -0
  92. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/cli/src/commands/show.rs +0 -0
  93. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/cli/src/commands/slice.rs +0 -0
  94. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/cli/src/commands/stats.rs +0 -0
  95. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/cli/src/commands/watch.rs +0 -0
  96. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/cli/src/lib.rs +0 -0
  97. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/cli/src/output.rs +0 -0
  98. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/cli/src/target.rs +0 -0
  99. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/cli/src/timearg.rs +0 -0
  100. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/Cargo.toml +0 -0
  101. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/benches/parse.rs +0 -0
  102. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/benches/render.rs +0 -0
  103. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/benches/toolcall.rs +0 -0
  104. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/build.rs +0 -0
  105. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/activity.rs +0 -0
  106. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/actor.rs +0 -0
  107. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/blame.rs +0 -0
  108. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/buckets.rs +0 -0
  109. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/codex/discovery.rs +0 -0
  110. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/codex/lower.rs +0 -0
  111. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/codex/mod.rs +0 -0
  112. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/codex/parse.rs +0 -0
  113. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/codex/probe.rs +0 -0
  114. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/codex/protocol.rs +0 -0
  115. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/codex/types.rs +0 -0
  116. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/command.rs +0 -0
  117. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/context.rs +0 -0
  118. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/corrections.rs +0 -0
  119. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/cost.rs +0 -0
  120. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/discovery.rs +0 -0
  121. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/facts.rs +0 -0
  122. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/feedback.rs +0 -0
  123. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/filter.rs +0 -0
  124. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/gateway.rs +0 -0
  125. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/ids.rs +0 -0
  126. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/judge.rs +0 -0
  127. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/lib.rs +0 -0
  128. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/literals/command.rs +0 -0
  129. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/literals/corrections.rs +0 -0
  130. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/literals/feedback.rs +0 -0
  131. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/literals/mining.rs +0 -0
  132. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/literals/mod.rs +0 -0
  133. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/literals/protocol.rs +0 -0
  134. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/notifications.rs +0 -0
  135. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/parse.rs +0 -0
  136. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/protocol.rs +0 -0
  137. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/pystr.rs +0 -0
  138. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/query.rs +0 -0
  139. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/render.rs +0 -0
  140. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/request_body.rs +0 -0
  141. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/rng.rs +0 -0
  142. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/scan.rs +0 -0
  143. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/scan_checkpoint.rs +0 -0
  144. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/scan_grep.rs +0 -0
  145. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/scan_grep_stream.rs +0 -0
  146. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/scan_grep_stream_tests.rs +0 -0
  147. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/scan_index.rs +0 -0
  148. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/scan_projection.rs +0 -0
  149. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/scan_regressions.rs +0 -0
  150. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/scan_stream.rs +0 -0
  151. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/schema.rs +0 -0
  152. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_activity.rs +0 -0
  153. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_admission_report_tests.rs +0 -0
  154. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_cache.rs +0 -0
  155. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_cache_tests.rs +0 -0
  156. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_catalog.rs +0 -0
  157. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_catalog_owner.rs +0 -0
  158. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_catalog_tests.rs +0 -0
  159. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_codec.rs +0 -0
  160. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_common_borrowed_parent_tests.rs +0 -0
  161. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_direct_tail.rs +0 -0
  162. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_direct_tail_tests.rs +0 -0
  163. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_hydrate_budget_tests.rs +0 -0
  164. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_interaction_api.rs +0 -0
  165. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_interaction_api_tests.rs +0 -0
  166. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_interactions.rs +0 -0
  167. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_interactions_tests.rs +0 -0
  168. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_labels.rs +0 -0
  169. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_load_charge_audit_tests.rs +0 -0
  170. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_load_charge_work_tests.rs +0 -0
  171. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_memory.rs +0 -0
  172. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_owned.rs +0 -0
  173. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_prepared.rs +0 -0
  174. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_raw_materialization.rs +0 -0
  175. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_raw_projection.rs +0 -0
  176. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_raw_projection_tests.rs +0 -0
  177. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_raw_scope.rs +0 -0
  178. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_raw_scope_tests.rs +0 -0
  179. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_raw_tail_tests.rs +0 -0
  180. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_raw_window.rs +0 -0
  181. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_root_warm.rs +0 -0
  182. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_sidechain_absence.rs +0 -0
  183. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_sidechain_absence_tests.rs +0 -0
  184. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_source_cache_index_tests.rs +0 -0
  185. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_spine.rs +0 -0
  186. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_spine_tests.rs +0 -0
  187. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_symlink_proof.rs +0 -0
  188. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/snapshot_text.rs +0 -0
  189. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/sqlite.rs +0 -0
  190. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/toolcall.rs +0 -0
  191. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/types.rs +0 -0
  192. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/value.rs +0 -0
  193. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/src/watch.rs +0 -0
  194. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/tests/sonic_arena_model.rs +0 -0
  195. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/core/tests/std_allocation_model.rs +0 -0
  196. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/py/Cargo.toml +0 -0
  197. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/py/build.rs +0 -0
  198. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/py/data/command_prefix_pins.tsv +0 -0
  199. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/py/src/actor_bridge.rs +0 -0
  200. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/py/src/bin/stub_gen.rs +0 -0
  201. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/py/src/codex.rs +0 -0
  202. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/py/src/command.rs +0 -0
  203. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/py/src/context.rs +0 -0
  204. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/py/src/corrections.rs +0 -0
  205. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/py/src/discovery.rs +0 -0
  206. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/py/src/feedback.rs +0 -0
  207. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/py/src/judge.rs +0 -0
  208. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/py/src/lexicon.rs +0 -0
  209. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/py/src/lib.rs +0 -0
  210. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/py/src/mining.rs +0 -0
  211. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/py/src/nlp.rs +0 -0
  212. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/py/src/python.rs +0 -0
  213. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/py/src/render.rs +0 -0
  214. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/py/src/score.rs +0 -0
  215. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/py/src/snapshot_decode.rs +0 -0
  216. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/py/src/snapshots.rs +0 -0
  217. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/py/src/sqlite.rs +0 -0
  218. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/py/src/toolcall.rs +0 -0
  219. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/py/src/views/attachment.rs +0 -0
  220. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/py/src/views/blocks.rs +0 -0
  221. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/py/src/views/command.rs +0 -0
  222. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/py/src/views/convert.rs +0 -0
  223. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/py/src/views/dunder.rs +0 -0
  224. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/py/src/views/events.rs +0 -0
  225. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/py/src/views/meta.rs +0 -0
  226. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/py/src/views/mod.rs +0 -0
  227. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/py/src/views/print.rs +0 -0
  228. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/py/src/views/store.rs +0 -0
  229. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/py/src/views/system.rs +0 -0
  230. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/py/src/views/toolcall.rs +0 -0
  231. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/py/src/views/toolresult.rs +0 -0
  232. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/rust/crates/py/src/views/transcript.rs +0 -0
  233. {cc_transcript-14.45.30 → cc_transcript-14.45.32}/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.45.30
3
+ Version: 14.45.32
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.45.30" # informational — releases stamp the version from the git tag
3
+ version = "14.45.32" # 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"
@@ -875,10 +875,19 @@ struct CachedPreparedFacts {
875
875
  authority: Value,
876
876
  classifier: Value,
877
877
  facts: Arc<crate::snapshot_prepared::PreparedFacts>,
878
+ append: Option<Arc<CompactCodexIndex>>,
878
879
  last_used: u64,
879
880
  }
880
881
 
881
882
  impl CachedPreparedFacts {
883
+ fn accounted_bytes(&self) -> usize {
884
+ self.facts.accounted_bytes()
885
+ + self
886
+ .append
887
+ .as_ref()
888
+ .map_or(0, |append| append.accounted_bytes())
889
+ }
890
+
882
891
  fn serves(
883
892
  &self,
884
893
  stamp: SourceStamp,
@@ -1020,6 +1029,15 @@ fn sources_anchor(sources: &Arc<[PreparedSourceRef]>) -> Anchor {
1020
1029
  Anchor::warm(slice_key(sources), source_ref_bytes(sources))
1021
1030
  }
1022
1031
 
1032
+ fn graph_header_anchor(header: &Arc<PreparedGraphHeader>) -> Anchor {
1033
+ Anchor::warm(
1034
+ Arc::as_ptr(header) as usize,
1035
+ arc_bytes::<PreparedGraphHeader>()
1036
+ + value_bytes(&header.handle)
1037
+ + value_bytes(&header.classifier),
1038
+ )
1039
+ }
1040
+
1023
1041
  fn positions_anchor(positions: &Arc<[(SourceIdentity, usize)]>) -> Anchor {
1024
1042
  Anchor::warm(
1025
1043
  slice_key(positions),
@@ -1050,14 +1068,6 @@ fn sidechain_dir_bytes(sidechain_dirs: &Arc<[(PathBuf, Option<SourceStamp>)]>) -
1050
1068
  .sum::<usize>()
1051
1069
  }
1052
1070
 
1053
- fn stamp_bytes(stamps: &Vec<(PathBuf, SourceStamp)>) -> usize {
1054
- stamps.capacity() * size_of::<(PathBuf, SourceStamp)>()
1055
- + stamps
1056
- .iter()
1057
- .map(|(path, _)| path.capacity())
1058
- .sum::<usize>()
1059
- }
1060
-
1061
1071
  fn task_bytes(task: &GraphTask) -> usize {
1062
1072
  match task {
1063
1073
  GraphTask::Visit {
@@ -1154,18 +1164,21 @@ struct PreparedQueryCursor {
1154
1164
  expires: u64,
1155
1165
  }
1156
1166
 
1167
+ struct PreparedGraphHeader {
1168
+ handle: Value,
1169
+ classifier: Value,
1170
+ }
1171
+
1157
1172
  struct PreparedGraph {
1158
1173
  claimant: String,
1159
1174
  registry_generation: String,
1160
1175
  admission: String,
1161
1176
  authority: Value,
1162
1177
  root: Arc<TranscriptSnapshot>,
1163
- root_handle: Value,
1164
- classifier: Value,
1178
+ header: Arc<PreparedGraphHeader>,
1165
1179
  root_facts: Arc<crate::snapshot_prepared::PreparedFacts>,
1166
1180
  root_slices: Table<String, Arc<crate::snapshot_prepared::PreparedFacts>>,
1167
1181
  revision: String,
1168
- stamps: Vec<(PathBuf, SourceStamp)>,
1169
1182
  validated: bool,
1170
1183
  sources: Arc<[PreparedSourceRef]>,
1171
1184
  sidechain_dirs: Arc<[(PathBuf, Option<SourceStamp>)]>,
@@ -1996,9 +2009,6 @@ impl Charge<String> for PreparedGraph {
1996
2009
  + self.admission.capacity()
1997
2010
  + self.revision.capacity()
1998
2011
  + value_bytes(&self.authority)
1999
- + value_bytes(&self.root_handle)
2000
- + value_bytes(&self.classifier)
2001
- + stamp_bytes(&self.stamps)
2002
2012
  + self.root_slices.reserved_bytes()
2003
2013
  + self.root_slices.keys().map(String::capacity).sum::<usize>()
2004
2014
  }
@@ -2019,6 +2029,7 @@ impl PreparedGraph {
2019
2029
  std::iter::once(facts_anchor(&self.root_facts))
2020
2030
  .chain(self.root_slices.values().map(facts_anchor))
2021
2031
  .chain([
2032
+ graph_header_anchor(&self.header),
2022
2033
  sources_anchor(&self.sources),
2023
2034
  sidechain_dirs_anchor(&self.sidechain_dirs),
2024
2035
  ])
@@ -2173,6 +2184,7 @@ pub(crate) struct StoreState {
2173
2184
  recent_codex_expiry: ExpiryIndex<SourceIdentity>,
2174
2185
  prepared_loads_expiry: ExpiryIndex<SourceIdentity>,
2175
2186
  prepared_facts_lru: BTreeSet<(u64, PreparedDiskKey)>,
2187
+ prepared_fact_sources: BTreeSet<PreparedDiskKey>,
2176
2188
  counters: [u64; 20],
2177
2189
  transient_bytes: usize,
2178
2190
  prepared_disk_index_bytes: usize,
@@ -2183,6 +2195,10 @@ pub(crate) struct StoreState {
2183
2195
  audits: Arc<AtomicUsize>,
2184
2196
  #[cfg(test)]
2185
2197
  retained_owners: Vec<Weak<crate::snapshot_prepared::PreparedFacts>>,
2198
+ #[cfg(test)]
2199
+ retained_graph_input_owners: Vec<(Weak<[PreparedSourceRef]>, Weak<PreparedGraphHeader>)>,
2200
+ #[cfg(test)]
2201
+ retained_append_owners: Vec<Weak<CompactCodexIndex>>,
2186
2202
  }
2187
2203
 
2188
2204
  const TOUCH_TTL_MS: u64 = 30 * 60_000;
@@ -2247,6 +2263,7 @@ impl StoreState {
2247
2263
  recent_codex_expiry: ExpiryIndex::new(work.clone()),
2248
2264
  prepared_loads_expiry: ExpiryIndex::new(work.clone()),
2249
2265
  prepared_facts_lru: BTreeSet::new(),
2266
+ prepared_fact_sources: BTreeSet::new(),
2250
2267
  counters: [0; 20],
2251
2268
  transient_bytes: 0,
2252
2269
  prepared_disk_index_bytes: 0,
@@ -2257,6 +2274,10 @@ impl StoreState {
2257
2274
  audits: Arc::new(AtomicUsize::new(0)),
2258
2275
  #[cfg(test)]
2259
2276
  retained_owners: Vec::new(),
2277
+ #[cfg(test)]
2278
+ retained_graph_input_owners: Vec::new(),
2279
+ #[cfg(test)]
2280
+ retained_append_owners: Vec::new(),
2260
2281
  }
2261
2282
  }
2262
2283
 
@@ -2989,24 +3010,36 @@ impl StoreState {
2989
3010
  fn prepared_facts_growth(&self, key: &PreparedDiskKey) -> usize {
2990
3011
  self.prepared_facts.growth_for(key)
2991
3012
  + usize::from(!self.prepared_facts.contains_key(key))
2992
- * size_of::<(u64, PreparedDiskKey)>()
3013
+ * (size_of::<(u64, PreparedDiskKey)>() + size_of::<PreparedDiskKey>())
2993
3014
  }
2994
3015
 
2995
3016
  fn insert_prepared_facts(&mut self, key: PreparedDiskKey, cached: CachedPreparedFacts) {
2996
3017
  self.prepared_facts.reserve_for(&key);
2997
3018
  self.ledger.shared.reserve([facts_anchor(&cached.facts)]);
2998
3019
  self.ledger.shared.acquire(facts_anchor(&cached.facts));
3020
+ if let Some(append) = &cached.append {
3021
+ self.ledger.shared.reserve([append_anchor(append)]);
3022
+ self.ledger.shared.acquire(append_anchor(append));
3023
+ }
2999
3024
  let last_used = cached.last_used;
3000
3025
  if let Some(displaced) = self.prepared_facts.insert(key, cached) {
3001
3026
  self.ledger.shared.release(facts_key(&displaced.facts));
3027
+ if let Some(append) = &displaced.append {
3028
+ self.ledger.shared.release(Arc::as_ptr(append) as usize);
3029
+ }
3002
3030
  self.prepared_facts_lru.remove(&(displaced.last_used, key));
3003
3031
  }
3004
3032
  self.prepared_facts_lru.insert((last_used, key));
3033
+ self.prepared_fact_sources.insert(key);
3005
3034
  }
3006
3035
 
3007
3036
  fn remove_prepared_facts(&mut self, key: &PreparedDiskKey) -> Option<CachedPreparedFacts> {
3008
3037
  let cached = self.prepared_facts.remove(key)?;
3009
3038
  self.ledger.shared.release(facts_key(&cached.facts));
3039
+ if let Some(append) = &cached.append {
3040
+ self.ledger.shared.release(Arc::as_ptr(append) as usize);
3041
+ }
3042
+ self.prepared_fact_sources.remove(key);
3010
3043
  self.prepared_facts_lru.remove(&(cached.last_used, *key));
3011
3044
  Some(cached)
3012
3045
  }
@@ -3016,10 +3049,10 @@ impl StoreState {
3016
3049
  identity: SourceIdentity,
3017
3050
  ) -> impl Iterator<Item = (&PreparedDiskKey, &CachedPreparedFacts)> {
3018
3051
  let work = self.ledger.shared.work();
3019
- self.prepared_facts
3020
- .iter()
3052
+ self.prepared_fact_sources
3053
+ .range(PreparedDiskKey::identity_range(identity))
3021
3054
  .inspect(move |_| work.tick(1))
3022
- .filter(move |(key, _)| key.identity() == identity)
3055
+ .map(move |key| (key, &self.prepared_facts[key]))
3023
3056
  }
3024
3057
 
3025
3058
  fn retire_identity_facts(
@@ -3027,22 +3060,23 @@ impl StoreState {
3027
3060
  identity: SourceIdentity,
3028
3061
  keep: impl Fn(&CachedPreparedFacts) -> bool,
3029
3062
  ) -> usize {
3030
- let Self {
3031
- prepared_facts,
3032
- prepared_facts_lru,
3033
- ledger,
3034
- ..
3035
- } = self;
3036
- let mut retired = 0usize;
3037
- prepared_facts.retain(|key, cached| {
3038
- if key.identity() != identity || keep(cached) {
3039
- return true;
3063
+ let (mut start, end) = PreparedDiskKey::identity_range(identity);
3064
+ let mut retired = 0;
3065
+ loop {
3066
+ let next = self
3067
+ .prepared_fact_sources
3068
+ .range((start, end))
3069
+ .next()
3070
+ .copied();
3071
+ let Some(key) = next else { break };
3072
+ start = std::ops::Bound::Excluded(key);
3073
+ self.ledger.shared.work().tick(1);
3074
+ if !keep(&self.prepared_facts[&key]) {
3075
+ self.remove_prepared_facts(&key)
3076
+ .expect("indexed prepared facts");
3077
+ retired += 1;
3040
3078
  }
3041
- ledger.shared.release(facts_key(&cached.facts));
3042
- prepared_facts_lru.remove(&(cached.last_used, *key));
3043
- retired += 1;
3044
- false
3045
- });
3079
+ }
3046
3080
  retired
3047
3081
  }
3048
3082
 
@@ -3091,7 +3125,7 @@ impl StoreState {
3091
3125
  .prepared_facts
3092
3126
  .get(&key)
3093
3127
  .filter(|cached| cached.evictable())
3094
- .map_or(0, |cached| cached.facts.accounted_bytes());
3128
+ .map_or(0, |cached| cached.accounted_bytes());
3095
3129
  for (_, victim) in &self.prepared_facts_lru {
3096
3130
  if accounted <= budget.saturating_sub(used) {
3097
3131
  return true;
@@ -3107,7 +3141,7 @@ impl StoreState {
3107
3141
  if spared(cached) {
3108
3142
  return false;
3109
3143
  }
3110
- used -= cached.facts.accounted_bytes();
3144
+ used -= cached.accounted_bytes();
3111
3145
  }
3112
3146
  accounted <= budget.saturating_sub(used)
3113
3147
  }
@@ -3153,6 +3187,27 @@ impl StoreState {
3153
3187
  }
3154
3188
  }
3155
3189
 
3190
+ fn retained_graph_inputs<'a>(
3191
+ &mut self,
3192
+ store: &'a NativeStore,
3193
+ sources: Arc<[PreparedSourceRef]>,
3194
+ header: Arc<PreparedGraphHeader>,
3195
+ ) -> RetainedGraphInputs<'a> {
3196
+ let identities = [slice_key(&sources), Arc::as_ptr(&header) as usize];
3197
+ for identity in identities {
3198
+ self.ledger.shared.retain(identity);
3199
+ }
3200
+ #[cfg(test)]
3201
+ self.retained_graph_input_owners
3202
+ .push((Arc::downgrade(&sources), Arc::downgrade(&header)));
3203
+ RetainedGraphInputs {
3204
+ store,
3205
+ sources: Some(sources),
3206
+ header: Some(header),
3207
+ identities,
3208
+ }
3209
+ }
3210
+
3156
3211
  fn insert_prepared_graph(&mut self, graph_id: String, graph: Arc<Mutex<PreparedGraph>>) {
3157
3212
  self.prepared_graphs.reserve_for(&graph_id);
3158
3213
  let prepared = graph.lock().expect("prepared graph");
@@ -3392,6 +3447,8 @@ pub struct NativeStore {
3392
3447
  #[cfg(test)]
3393
3448
  read_hook: Mutex<Option<Arc<dyn Fn() + Send + Sync>>>,
3394
3449
  #[cfg(test)]
3450
+ graph_validation_hook: Mutex<Option<Arc<dyn Fn(&Path) + Send + Sync>>>,
3451
+ #[cfg(test)]
3395
3452
  decode_hook: Mutex<Option<Arc<dyn Fn(&'static str) + Send + Sync>>>,
3396
3453
  #[cfg(test)]
3397
3454
  pin_hook: Mutex<Option<Arc<dyn Fn(&Value) -> Result<(), SnapshotError> + Send + Sync>>>,
@@ -3430,6 +3487,10 @@ pub struct NativeStore {
3430
3487
  #[cfg(test)]
3431
3488
  pub(crate) fact_builds: AtomicUsize,
3432
3489
  #[cfg(test)]
3490
+ recent_codex_raw_limit: AtomicUsize,
3491
+ #[cfg(test)]
3492
+ hydration_observations: Mutex<Option<Vec<HydrationObservation>>>,
3493
+ #[cfg(test)]
3433
3494
  pub(crate) description_builds: AtomicUsize,
3434
3495
  #[cfg(test)]
3435
3496
  pub(crate) fact_lookups: AtomicUsize,
@@ -3507,6 +3568,64 @@ struct RetainedFacts<'a> {
3507
3568
  facts: Option<Arc<crate::snapshot_prepared::PreparedFacts>>,
3508
3569
  }
3509
3570
 
3571
+ struct RetainedGraphInputs<'a> {
3572
+ store: &'a NativeStore,
3573
+ sources: Option<Arc<[PreparedSourceRef]>>,
3574
+ header: Option<Arc<PreparedGraphHeader>>,
3575
+ identities: [usize; 2],
3576
+ }
3577
+
3578
+ impl RetainedGraphInputs<'_> {
3579
+ fn sources(&self) -> &Arc<[PreparedSourceRef]> {
3580
+ self.sources
3581
+ .as_ref()
3582
+ .expect("retained graph sources are live")
3583
+ }
3584
+
3585
+ fn header(&self) -> &Arc<PreparedGraphHeader> {
3586
+ self.header.as_ref().expect("retained graph header is live")
3587
+ }
3588
+ }
3589
+
3590
+ impl Drop for RetainedGraphInputs<'_> {
3591
+ fn drop(&mut self) {
3592
+ let mut state = self.store.lock_state();
3593
+ let sources = self
3594
+ .sources
3595
+ .take()
3596
+ .expect("retained graph sources are live");
3597
+ let header = self.header.take().expect("retained graph header is live");
3598
+ for identity in self.identities {
3599
+ state.ledger.shared.release(identity);
3600
+ }
3601
+ #[cfg(test)]
3602
+ {
3603
+ let registered = state
3604
+ .retained_graph_input_owners
3605
+ .iter()
3606
+ .position(|(source, field)| {
3607
+ std::ptr::addr_eq(source.as_ptr(), Arc::as_ptr(&sources))
3608
+ && field.as_ptr() == Arc::as_ptr(&header)
3609
+ })
3610
+ .expect("retained graph inputs are registered");
3611
+ state.retained_graph_input_owners.swap_remove(registered);
3612
+ }
3613
+ drop(header);
3614
+ drop(sources);
3615
+ }
3616
+ }
3617
+
3618
+ struct PreparedRootValidation {
3619
+ stamp: SourceStamp,
3620
+ deadline: u64,
3621
+ }
3622
+
3623
+ struct PreparedGraphValidation<'a> {
3624
+ inputs: RetainedGraphInputs<'a>,
3625
+ root: PreparedRootValidation,
3626
+ validate_members: bool,
3627
+ }
3628
+
3510
3629
  impl RetainedFacts<'_> {
3511
3630
  fn facts(&self) -> &Arc<crate::snapshot_prepared::PreparedFacts> {
3512
3631
  self.facts
@@ -3894,6 +4013,8 @@ impl NativeStore {
3894
4013
  #[cfg(test)]
3895
4014
  read_hook: Mutex::new(None),
3896
4015
  #[cfg(test)]
4016
+ graph_validation_hook: Mutex::new(None),
4017
+ #[cfg(test)]
3897
4018
  decode_hook: Mutex::new(None),
3898
4019
  #[cfg(test)]
3899
4020
  pin_hook: Mutex::new(None),
@@ -3932,6 +4053,10 @@ impl NativeStore {
3932
4053
  #[cfg(test)]
3933
4054
  fact_builds: AtomicUsize::new(0),
3934
4055
  #[cfg(test)]
4056
+ recent_codex_raw_limit: AtomicUsize::new(128 * 1024 * 1024),
4057
+ #[cfg(test)]
4058
+ hydration_observations: Mutex::new(None),
4059
+ #[cfg(test)]
3935
4060
  description_builds: AtomicUsize::new(0),
3936
4061
  #[cfg(test)]
3937
4062
  fact_lookups: AtomicUsize::new(0),
@@ -6051,6 +6176,7 @@ impl NativeStore {
6051
6176
  authority,
6052
6177
  classifier,
6053
6178
  facts: _,
6179
+ append: _,
6054
6180
  last_used: _,
6055
6181
  } = cached;
6056
6182
  registry_generation.capacity()
@@ -6308,6 +6434,7 @@ impl NativeStore {
6308
6434
  + state.recent_codex_expiry.heap_bytes()
6309
6435
  + state.prepared_loads_expiry.heap_bytes()
6310
6436
  + state.deliveries_expiry.index_bytes()
6437
+ + state.prepared_fact_sources.len() * size_of::<PreparedDiskKey>()
6311
6438
  + state.prepared_facts_lru.len() * size_of::<(u64, PreparedDiskKey)>()
6312
6439
  + state.prepared_disk_index_bytes
6313
6440
  }
@@ -6387,7 +6514,12 @@ impl NativeStore {
6387
6514
  state.prepared_facts.len(),
6388
6515
  "prepared facts lru index diverges from the cache"
6389
6516
  );
6517
+ assert_eq!(
6518
+ state.prepared_fact_sources.len(),
6519
+ state.prepared_facts.len()
6520
+ );
6390
6521
  for (key, cached) in state.prepared_facts.iter() {
6522
+ assert!(state.prepared_fact_sources.contains(key));
6391
6523
  assert!(
6392
6524
  state.prepared_facts_lru.contains(&(cached.last_used, *key)),
6393
6525
  "prepared facts lru index misses a cached entry"
@@ -9079,6 +9211,11 @@ impl NativeStore {
9079
9211
  .read_exact(&mut load.origin_fence[start..])
9080
9212
  .map_err(io_error)?;
9081
9213
  usage[1] += count as u64;
9214
+ #[cfg(test)]
9215
+ self.observe_hydration(HydrationObservation::Read {
9216
+ stamp: slot.stamp,
9217
+ bytes: count as u64,
9218
+ });
9082
9219
  if load.origin_fence.len() == fence_size {
9083
9220
  load.origin_complete = true;
9084
9221
  load.file.seek(SeekFrom::Start(0)).map_err(io_error)?;
@@ -9108,6 +9245,11 @@ impl NativeStore {
9108
9245
  .read_exact(&mut load.prefix_fence[start..])
9109
9246
  .map_err(io_error)?;
9110
9247
  usage[1] += count as u64;
9248
+ #[cfg(test)]
9249
+ self.observe_hydration(HydrationObservation::Read {
9250
+ stamp: slot.stamp,
9251
+ bytes: count as u64,
9252
+ });
9111
9253
  if load.prefix_fence.len() < prior_fence.len() {
9112
9254
  return Ok(());
9113
9255
  }
@@ -9217,6 +9359,11 @@ impl NativeStore {
9217
9359
  self.before_source_read();
9218
9360
  load.file.read_exact(&mut block).map_err(io_error)?;
9219
9361
  usage[1] += count;
9362
+ #[cfg(test)]
9363
+ self.observe_hydration(HydrationObservation::Read {
9364
+ stamp: slot.stamp,
9365
+ bytes: count as u64,
9366
+ });
9220
9367
  load.window_scanned += count;
9221
9368
  memchr::memrchr(b'\n', &block).map(|newline| unscanned - count + newline as u64 + 1)
9222
9369
  };
@@ -9284,6 +9431,11 @@ impl NativeStore {
9284
9431
  .map_err(io_error)?;
9285
9432
  load.offset += count as u64;
9286
9433
  usage[1] += count as u64;
9434
+ #[cfg(test)]
9435
+ self.observe_hydration(HydrationObservation::Read {
9436
+ stamp: slot.stamp,
9437
+ bytes: count as u64,
9438
+ });
9287
9439
  if !Self::matches_prefix(
9288
9440
  SourceStamp::of(&load.file.metadata().map_err(io_error)?),
9289
9441
  slot.stamp,
@@ -9521,6 +9673,11 @@ impl NativeStore {
9521
9673
  .read_exact(&mut load.seal_fence[start..])
9522
9674
  .map_err(io_error)?;
9523
9675
  usage[1] += count as u64;
9676
+ #[cfg(test)]
9677
+ self.observe_hydration(HydrationObservation::Read {
9678
+ stamp: slot.stamp,
9679
+ bytes: count as u64,
9680
+ });
9524
9681
  if load.seal_fence.len() < fence_size {
9525
9682
  return Ok(());
9526
9683
  }
@@ -12082,9 +12239,11 @@ include!("snapshot_symlink_proof.rs");
12082
12239
  include!("snapshot_catalog_owner.rs");
12083
12240
  include!("snapshot_sidechain_absence.rs");
12084
12241
  include!("snapshot_prepared_service.rs");
12242
+ include!("snapshot_hydration_observations.rs");
12085
12243
  include!("snapshot_cache.rs");
12086
12244
  include!("snapshot_root_warm.rs");
12087
12245
  include!("snapshot_codex_append.rs");
12246
+ include!("snapshot_compact_codex.rs");
12088
12247
  include!("snapshot_spine.rs");
12089
12248
  include!("snapshot_raw_scope.rs");
12090
12249
  include!("snapshot_direct_tail.rs");
@@ -12155,6 +12314,8 @@ mod tests {
12155
12314
  include!("snapshot_raw_projection_tests.rs");
12156
12315
  include!("snapshot_raw_tail_tests.rs");
12157
12316
  include!("snapshot_direct_tail_tests.rs");
12317
+ include!("snapshot_query_hydration_tests.rs");
12318
+ include!("snapshot_compact_codex_tests.rs");
12158
12319
  include!("snapshot_hydrate_budget_tests.rs");
12159
12320
  include!("snapshot_interactions_tests.rs");
12160
12321
  include!("snapshot_interaction_api_tests.rs");
@@ -14835,7 +14996,12 @@ mod tests {
14835
14996
  .lock()
14836
14997
  .unwrap();
14837
14998
  assert!(prepared.sources.is_empty());
14838
- assert_eq!(prepared.stamps.len(), 1);
14999
+ assert_eq!(
15000
+ std::iter::once(prepared.root.canonical_path.as_path())
15001
+ .chain(prepared.sources.iter().map(|source| source.path.as_path()))
15002
+ .count(),
15003
+ 1
15004
+ );
14839
15005
  assert_eq!(state.counters[1], before);
14840
15006
  }
14841
15007
 
@@ -276,6 +276,11 @@ impl NativeStore {
276
276
  (Some(previous), Some(parsed)) => previous.fallback_reason(parsed),
277
277
  _ => Some("cold"),
278
278
  };
279
+ #[cfg(test)]
280
+ self.observe_hydration(HydrationObservation::Codex {
281
+ stamp: slot.stamp, previous: load.previous.is_some(), raw: load.codex_raw.is_some(),
282
+ index: load.codex_append.is_some(), append, fallback, suffix_bytes: suffix.len(),
283
+ });
279
284
  let (entries, arenas, index) = if fallback.is_some() {
280
285
  let mut start = 0;
281
286
  for end in memchr::memchr_iter(b'\n', &raw) {