cc-transcript 14.45.33__tar.gz → 14.45.35__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 (241) hide show
  1. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/PKG-INFO +1 -1
  2. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/pyproject.toml +1 -1
  3. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot.rs +123 -52
  4. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_catalog_owner.rs +134 -37
  5. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_catalog_tests.rs +143 -45
  6. cc_transcript-14.45.35/rust/crates/core/src/snapshot_graph_anchor_tests.rs +208 -0
  7. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_ledger_tests.rs +153 -35
  8. cc_transcript-14.45.35/rust/crates/core/src/snapshot_membership_progress.rs +1154 -0
  9. cc_transcript-14.45.35/rust/crates/core/src/snapshot_membership_progress_controls.rs +443 -0
  10. cc_transcript-14.45.35/rust/crates/core/src/snapshot_membership_progress_tests.rs +56 -0
  11. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_prepared_service.rs +77 -295
  12. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_sidechain_absence_tests.rs +29 -7
  13. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/Cargo.lock +0 -0
  14. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/Cargo.toml +0 -0
  15. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/LICENSE +0 -0
  16. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/README.md +0 -0
  17. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/__init__.py +0 -0
  18. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/__init__.pyi +0 -0
  19. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/_native.pyi +0 -0
  20. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/activity.py +0 -0
  21. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/activity_probe.py +0 -0
  22. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/builders.py +0 -0
  23. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/codex.py +0 -0
  24. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/command.py +0 -0
  25. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/context.py +0 -0
  26. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/corrections.py +0 -0
  27. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/cost.py +0 -0
  28. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/decision_store.py +0 -0
  29. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/decisions.py +0 -0
  30. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/discovery.py +0 -0
  31. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/disktruth.py +0 -0
  32. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/evidence.py +0 -0
  33. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/extract/__init__.py +0 -0
  34. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/extract/correct.py +0 -0
  35. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/facts.py +0 -0
  36. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/filterspec.py +0 -0
  37. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/heartbeats.py +0 -0
  38. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/ids.py +0 -0
  39. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/judge/__init__.py +0 -0
  40. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/judge/llm.py +0 -0
  41. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/judge/similar.py +0 -0
  42. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/judge/verdicts.py +0 -0
  43. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/ledger.py +0 -0
  44. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/literals.py +0 -0
  45. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/mining/__init__.py +0 -0
  46. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/mining/candidates.py +0 -0
  47. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/mining/confidence.py +0 -0
  48. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/mining/engine.py +0 -0
  49. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/mining/formats.py +0 -0
  50. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/mining/sampling.py +0 -0
  51. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/mining/signals.py +0 -0
  52. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/mining/sourcekind.py +0 -0
  53. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/mining/spec.py +0 -0
  54. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/mining/store.py +0 -0
  55. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/models.py +0 -0
  56. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/nlp.py +0 -0
  57. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/notifications.py +0 -0
  58. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/parser.py +0 -0
  59. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/py.typed +0 -0
  60. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/query.py +0 -0
  61. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/render.py +0 -0
  62. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/sentiment/__init__.py +0 -0
  63. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/sentiment/buckets.py +0 -0
  64. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/sentiment/data/afinn-en-165.tsv +0 -0
  65. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/sentiment/data/domain_overrides.tsv +0 -0
  66. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/sentiment/data/en-ewt.udpipe +0 -0
  67. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/sentiment/engine.py +0 -0
  68. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/sentiment/lexicon.py +0 -0
  69. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/sentiment/scorespec.py +0 -0
  70. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/snapshot_schema/config.schema.json +0 -0
  71. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/snapshot_schema/context.schema.json +0 -0
  72. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/snapshot_schema/request.schema.json +0 -0
  73. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/snapshot_schema/response.schema.json +0 -0
  74. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/snapshot_schema/tool_registry.schema.json +0 -0
  75. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/snapshots.py +0 -0
  76. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/synthetic.py +0 -0
  77. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/tools.py +0 -0
  78. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/cc_transcript/watch.py +0 -0
  79. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/cli/Cargo.toml +0 -0
  80. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/cli/src/commands/blame.rs +0 -0
  81. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/cli/src/commands/corpus.rs +0 -0
  82. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/cli/src/commands/corrections.rs +0 -0
  83. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/cli/src/commands/digest.rs +0 -0
  84. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/cli/src/commands/facts.rs +0 -0
  85. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/cli/src/commands/grep.rs +0 -0
  86. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/cli/src/commands/list.rs +0 -0
  87. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/cli/src/commands/mod.rs +0 -0
  88. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/cli/src/commands/scratchpad.rs +0 -0
  89. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/cli/src/commands/show.rs +0 -0
  90. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/cli/src/commands/slice.rs +0 -0
  91. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/cli/src/commands/stats.rs +0 -0
  92. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/cli/src/commands/watch.rs +0 -0
  93. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/cli/src/lib.rs +0 -0
  94. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/cli/src/output.rs +0 -0
  95. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/cli/src/target.rs +0 -0
  96. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/cli/src/timearg.rs +0 -0
  97. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/Cargo.toml +0 -0
  98. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/benches/parse.rs +0 -0
  99. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/benches/render.rs +0 -0
  100. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/benches/toolcall.rs +0 -0
  101. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/build.rs +0 -0
  102. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/activity.rs +0 -0
  103. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/actor.rs +0 -0
  104. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/blame.rs +0 -0
  105. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/buckets.rs +0 -0
  106. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/codex/discovery.rs +0 -0
  107. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/codex/lower.rs +0 -0
  108. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/codex/mod.rs +0 -0
  109. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/codex/parse.rs +0 -0
  110. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/codex/probe.rs +0 -0
  111. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/codex/protocol.rs +0 -0
  112. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/codex/types.rs +0 -0
  113. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/command.rs +0 -0
  114. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/context.rs +0 -0
  115. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/corrections.rs +0 -0
  116. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/cost.rs +0 -0
  117. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/discovery.rs +0 -0
  118. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/facts.rs +0 -0
  119. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/feedback.rs +0 -0
  120. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/filter.rs +0 -0
  121. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/gateway.rs +0 -0
  122. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/ids.rs +0 -0
  123. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/judge.rs +0 -0
  124. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/lib.rs +0 -0
  125. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/literals/command.rs +0 -0
  126. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/literals/corrections.rs +0 -0
  127. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/literals/feedback.rs +0 -0
  128. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/literals/mining.rs +0 -0
  129. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/literals/mod.rs +0 -0
  130. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/literals/protocol.rs +0 -0
  131. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/notifications.rs +0 -0
  132. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/parse.rs +0 -0
  133. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/protocol.rs +0 -0
  134. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/pystr.rs +0 -0
  135. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/query.rs +0 -0
  136. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/render.rs +0 -0
  137. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/request_body.rs +0 -0
  138. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/rng.rs +0 -0
  139. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/scan.rs +0 -0
  140. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/scan_checkpoint.rs +0 -0
  141. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/scan_grep.rs +0 -0
  142. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/scan_grep_stream.rs +0 -0
  143. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/scan_grep_stream_tests.rs +0 -0
  144. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/scan_index.rs +0 -0
  145. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/scan_projection.rs +0 -0
  146. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/scan_regressions.rs +0 -0
  147. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/scan_stream.rs +0 -0
  148. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/schema.rs +0 -0
  149. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_activity.rs +0 -0
  150. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_admission_report_tests.rs +0 -0
  151. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_cache.rs +0 -0
  152. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_cache_tests.rs +0 -0
  153. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_catalog.rs +0 -0
  154. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_codec.rs +0 -0
  155. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_codex_append.rs +0 -0
  156. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_common_borrowed_parent_tests.rs +0 -0
  157. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_compact_codex.rs +0 -0
  158. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_compact_codex_tests.rs +0 -0
  159. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_direct_tail.rs +0 -0
  160. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_direct_tail_tests.rs +0 -0
  161. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_graph_validation_tests.rs +0 -0
  162. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_hydrate_budget_tests.rs +0 -0
  163. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_hydration_observations.rs +0 -0
  164. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_interaction_api.rs +0 -0
  165. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_interaction_api_tests.rs +0 -0
  166. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_interactions.rs +0 -0
  167. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_interactions_tests.rs +0 -0
  168. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_labels.rs +0 -0
  169. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_ledger.rs +0 -0
  170. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_load_charge_audit_tests.rs +0 -0
  171. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_load_charge_work_tests.rs +0 -0
  172. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_memory.rs +0 -0
  173. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_owned.rs +0 -0
  174. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_prepared.rs +0 -0
  175. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_prepared_disk.rs +0 -0
  176. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_projection.rs +0 -0
  177. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_query_hydration_tests.rs +0 -0
  178. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_raw_materialization.rs +0 -0
  179. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_raw_projection.rs +0 -0
  180. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_raw_projection_tests.rs +0 -0
  181. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_raw_scope.rs +0 -0
  182. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_raw_scope_tests.rs +0 -0
  183. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_raw_tail_tests.rs +0 -0
  184. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_raw_window.rs +0 -0
  185. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_regressions.rs +0 -0
  186. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_root_warm.rs +0 -0
  187. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_sidechain_absence.rs +0 -0
  188. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_skill_demand_controls.rs +0 -0
  189. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_skill_demand_tests.rs +0 -0
  190. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_skill_framing.rs +0 -0
  191. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_skills.rs +0 -0
  192. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_source_cache_index_tests.rs +0 -0
  193. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_spine.rs +0 -0
  194. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_spine_tests.rs +0 -0
  195. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_symlink_proof.rs +0 -0
  196. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/snapshot_text.rs +0 -0
  197. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/sqlite.rs +0 -0
  198. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/toolcall.rs +0 -0
  199. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/types.rs +0 -0
  200. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/value.rs +0 -0
  201. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/src/watch.rs +0 -0
  202. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/tests/sonic_arena_model.rs +0 -0
  203. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/core/tests/std_allocation_model.rs +0 -0
  204. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/py/Cargo.toml +0 -0
  205. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/py/build.rs +0 -0
  206. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/py/data/command_prefix_pins.tsv +0 -0
  207. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/py/src/actor_bridge.rs +0 -0
  208. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/py/src/bin/stub_gen.rs +0 -0
  209. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/py/src/codex.rs +0 -0
  210. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/py/src/command.rs +0 -0
  211. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/py/src/context.rs +0 -0
  212. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/py/src/corrections.rs +0 -0
  213. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/py/src/discovery.rs +0 -0
  214. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/py/src/feedback.rs +0 -0
  215. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/py/src/judge.rs +0 -0
  216. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/py/src/lexicon.rs +0 -0
  217. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/py/src/lib.rs +0 -0
  218. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/py/src/mining.rs +0 -0
  219. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/py/src/nlp.rs +0 -0
  220. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/py/src/python.rs +0 -0
  221. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/py/src/render.rs +0 -0
  222. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/py/src/score.rs +0 -0
  223. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/py/src/snapshot_decode.rs +0 -0
  224. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/py/src/snapshots.rs +0 -0
  225. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/py/src/sqlite.rs +0 -0
  226. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/py/src/toolcall.rs +0 -0
  227. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/py/src/views/attachment.rs +0 -0
  228. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/py/src/views/blocks.rs +0 -0
  229. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/py/src/views/command.rs +0 -0
  230. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/py/src/views/convert.rs +0 -0
  231. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/py/src/views/dunder.rs +0 -0
  232. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/py/src/views/events.rs +0 -0
  233. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/py/src/views/meta.rs +0 -0
  234. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/py/src/views/mod.rs +0 -0
  235. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/py/src/views/print.rs +0 -0
  236. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/py/src/views/store.rs +0 -0
  237. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/py/src/views/system.rs +0 -0
  238. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/py/src/views/toolcall.rs +0 -0
  239. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/py/src/views/toolresult.rs +0 -0
  240. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/rust/crates/py/src/views/transcript.rs +0 -0
  241. {cc_transcript-14.45.33 → cc_transcript-14.45.35}/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.33
3
+ Version: 14.45.35
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.33" # informational — releases stamp the version from the git tag
3
+ version = "14.45.35" # 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"
@@ -2034,13 +2034,33 @@ impl Charge<String> for Arc<Mutex<PreparedGraph>> {
2034
2034
  }
2035
2035
 
2036
2036
  impl PreparedGraph {
2037
- fn anchors(&self) -> impl Iterator<Item = Anchor> + '_ {
2037
+ fn input_anchors(&self) -> [Anchor; 3] {
2038
+ #[cfg(test)]
2039
+ tests::record_prepared_graph_input_anchors(self.sources.len(), self.sidechain_dirs.len());
2040
+ [
2041
+ graph_header_anchor(&self.header),
2042
+ sources_anchor(&self.sources),
2043
+ sidechain_dirs_anchor(&self.sidechain_dirs),
2044
+ ]
2045
+ }
2046
+
2047
+ fn anchors_with(&self, inputs: [Anchor; 3]) -> impl Iterator<Item = Anchor> + '_ {
2038
2048
  std::iter::once(facts_anchor(&self.root_facts))
2039
2049
  .chain(self.root_slices.values().map(facts_anchor))
2050
+ .chain(inputs)
2051
+ }
2052
+
2053
+ fn anchors(&self) -> impl Iterator<Item = Anchor> + '_ {
2054
+ self.anchors_with(self.input_anchors())
2055
+ }
2056
+
2057
+ fn anchor_ids(&self) -> impl Iterator<Item = usize> + '_ {
2058
+ std::iter::once(facts_key(&self.root_facts))
2059
+ .chain(self.root_slices.values().map(facts_key))
2040
2060
  .chain([
2041
- graph_header_anchor(&self.header),
2042
- sources_anchor(&self.sources),
2043
- sidechain_dirs_anchor(&self.sidechain_dirs),
2061
+ Arc::as_ptr(&self.header) as usize,
2062
+ slice_key(&self.sources),
2063
+ slice_key(&self.sidechain_dirs),
2044
2064
  ])
2045
2065
  }
2046
2066
  }
@@ -2178,7 +2198,7 @@ pub(crate) struct StoreState {
2178
2198
  prepared_queries: Ledgered<String, PreparedQueryCursor>,
2179
2199
  expired_prepared_queries: Ledgered<String, (String, u64)>,
2180
2200
  prepared_facts: Ledgered<PreparedDiskKey, CachedPreparedFacts>,
2181
- warm_memberships: Ledgered<String, WarmMembership>,
2201
+ warm_memberships: Ledgered<String, Arc<MembershipSlot>>,
2182
2202
  deliveries: Ledgered<Arc<str>, Delivery>,
2183
2203
  deliveries_expiry: DeadlineIndex<Arc<str>>,
2184
2204
  labels: Ledgered<String, LabelSlot>,
@@ -2209,6 +2229,8 @@ pub(crate) struct StoreState {
2209
2229
  #[cfg(test)]
2210
2230
  retained_owners: Vec<Weak<crate::snapshot_prepared::PreparedFacts>>,
2211
2231
  #[cfg(test)]
2232
+ retained_membership_owners: Vec<Weak<WarmMembership>>,
2233
+ #[cfg(test)]
2212
2234
  retained_graph_input_owners: Vec<(Weak<[PreparedSourceRef]>, Weak<PreparedGraphHeader>)>,
2213
2235
  #[cfg(test)]
2214
2236
  retained_append_owners: Vec<Weak<CompactCodexIndex>>,
@@ -2289,6 +2311,8 @@ impl StoreState {
2289
2311
  #[cfg(test)]
2290
2312
  retained_owners: Vec::new(),
2291
2313
  #[cfg(test)]
2314
+ retained_membership_owners: Vec::new(),
2315
+ #[cfg(test)]
2292
2316
  retained_graph_input_owners: Vec::new(),
2293
2317
  #[cfg(test)]
2294
2318
  retained_append_owners: Vec::new(),
@@ -3222,11 +3246,16 @@ impl StoreState {
3222
3246
  }
3223
3247
  }
3224
3248
 
3225
- fn insert_prepared_graph(&mut self, graph_id: String, graph: Arc<Mutex<PreparedGraph>>) {
3249
+ fn insert_prepared_graph(
3250
+ &mut self,
3251
+ graph_id: String,
3252
+ graph: Arc<Mutex<PreparedGraph>>,
3253
+ inputs: [Anchor; 3],
3254
+ ) {
3226
3255
  self.prepared_graphs.reserve_for(&graph_id);
3227
3256
  let prepared = graph.lock().expect("prepared graph");
3228
- self.ledger.shared.reserve(prepared.anchors());
3229
- for anchor in prepared.anchors() {
3257
+ self.ledger.shared.reserve(prepared.anchors_with(inputs));
3258
+ for anchor in prepared.anchors_with(inputs) {
3230
3259
  self.ledger.shared.acquire(anchor);
3231
3260
  }
3232
3261
  drop(prepared);
@@ -3236,8 +3265,8 @@ impl StoreState {
3236
3265
  }
3237
3266
 
3238
3267
  fn release_prepared_graph(&mut self, graph: &Mutex<PreparedGraph>) {
3239
- for anchor in graph.lock().expect("prepared graph").anchors() {
3240
- self.ledger.shared.release(anchor.id);
3268
+ for identity in graph.lock().expect("prepared graph").anchor_ids() {
3269
+ self.ledger.shared.release(identity);
3241
3270
  }
3242
3271
  }
3243
3272
 
@@ -3315,40 +3344,66 @@ impl StoreState {
3315
3344
  + self.waiters.consume_pledge(cursor)
3316
3345
  }
3317
3346
 
3347
+ #[cfg(test)]
3318
3348
  fn insert_warm_membership(&mut self, key: String, membership: WarmMembership) {
3349
+ self.insert_membership_slot(key, Arc::new(membership));
3350
+ }
3351
+
3352
+ fn insert_membership_slot(&mut self, key: String, membership: Arc<WarmMembership>) {
3319
3353
  self.warm_memberships.reserve_for(&key);
3320
- self.ledger.shared.reserve(membership.anchors());
3321
- for anchor in membership.anchors() {
3354
+ self.ledger.shared.reserve(membership_anchors(&membership));
3355
+ for anchor in membership_anchors(&membership) {
3322
3356
  self.ledger.shared.acquire(anchor);
3323
3357
  }
3324
- if let Some(displaced) = self.warm_memberships.insert(key, membership) {
3325
- self.release_warm_membership(&displaced);
3358
+ let expires = membership.expires;
3359
+ let slot = Arc::new(MembershipSlot {
3360
+ cell: Mutex::new(MembershipCell::Positive(membership)),
3361
+ accounted: AtomicUsize::new(0),
3362
+ pending: AtomicBool::new(false),
3363
+ expires: AtomicU64::new(expires),
3364
+ });
3365
+ if let Some(displaced) = self.warm_memberships.insert(key, slot) {
3366
+ self.release_membership_slot(&displaced);
3326
3367
  }
3327
3368
  }
3328
3369
 
3329
- fn release_warm_membership(&mut self, membership: &WarmMembership) {
3330
- for anchor in membership.anchors() {
3331
- self.ledger.shared.release(anchor.id);
3370
+ fn release_membership_slot(&mut self, slot: &MembershipSlot) {
3371
+ let cell = slot.cell.lock().expect("registered membership");
3372
+ match &*cell {
3373
+ MembershipCell::Collected(membership) | MembershipCell::Positive(membership) => {
3374
+ for identity in membership_identities(membership) {
3375
+ self.ledger.shared.release(identity);
3376
+ }
3377
+ }
3378
+ MembershipCell::Empty | MembershipCell::Pending(_) => {}
3379
+ MembershipCell::Busy => panic!("busy membership remains registered"),
3332
3380
  }
3333
3381
  }
3334
3382
 
3335
- fn remove_warm_membership(&mut self, key: &str) -> Option<WarmMembership> {
3336
- let membership = self.warm_memberships.remove(key)?;
3337
- self.release_warm_membership(&membership);
3338
- Some(membership)
3383
+ fn remove_warm_membership(&mut self, key: &str) -> Option<Arc<MembershipSlot>> {
3384
+ let slot = self.warm_memberships.get(key)?;
3385
+ if Arc::strong_count(slot) > 1 {
3386
+ return None;
3387
+ }
3388
+ let slot = self
3389
+ .warm_memberships
3390
+ .remove(key)
3391
+ .expect("registered membership");
3392
+ self.release_membership_slot(&slot);
3393
+ Some(slot)
3339
3394
  }
3340
3395
 
3341
- fn retain_warm_memberships(&mut self, mut keep: impl FnMut(&String, &WarmMembership) -> bool) {
3342
- let mut released = Vec::new();
3343
- self.warm_memberships.retain(|key, membership| {
3344
- let kept = keep(key, membership);
3345
- if !kept {
3346
- released.extend(membership.anchors());
3347
- }
3348
- kept
3349
- });
3350
- for anchor in released {
3351
- self.ledger.shared.release(anchor.id);
3396
+ fn retain_warm_memberships(&mut self, now: u64) {
3397
+ let expired: Vec<_> = self
3398
+ .warm_memberships
3399
+ .iter()
3400
+ .filter(|(_, slot)| {
3401
+ slot.expires.load(Ordering::Acquire) <= now && Arc::strong_count(slot) == 1
3402
+ })
3403
+ .map(|(key, _)| key.clone())
3404
+ .collect();
3405
+ for key in expired {
3406
+ self.remove_warm_membership(&key);
3352
3407
  }
3353
3408
  }
3354
3409
 
@@ -3485,6 +3540,9 @@ pub struct NativeStore {
3485
3540
  #[cfg(test)]
3486
3541
  resolve_hook: Mutex<Option<Arc<dyn Fn(&Path) + Send + Sync>>>,
3487
3542
  #[cfg(test)]
3543
+ membership_hook:
3544
+ Mutex<Option<Arc<dyn Fn(&'static str, usize) -> Result<(), SnapshotError> + Send + Sync>>>,
3545
+ #[cfg(test)]
3488
3546
  membership_metadata_checks: AtomicUsize,
3489
3547
  #[cfg(test)]
3490
3548
  sidechain_path_probes: AtomicUsize,
@@ -4051,6 +4109,8 @@ impl NativeStore {
4051
4109
  #[cfg(test)]
4052
4110
  resolve_hook: Mutex::new(None),
4053
4111
  #[cfg(test)]
4112
+ membership_hook: Mutex::new(None),
4113
+ #[cfg(test)]
4054
4114
  membership_metadata_checks: AtomicUsize::new(0),
4055
4115
  #[cfg(test)]
4056
4116
  sidechain_path_probes: AtomicUsize::new(0),
@@ -5385,7 +5445,7 @@ impl NativeStore {
5385
5445
  for identity in state.expired_prepared_loads(now) {
5386
5446
  state.prepared_loads.remove(&identity);
5387
5447
  }
5388
- state.retain_warm_memberships(|_, membership| membership.expires > now);
5448
+ state.retain_warm_memberships(now);
5389
5449
  state.retain_loads(|id, slot| {
5390
5450
  (active.contains(id) && slot.deadline.load(Ordering::Acquire) > now)
5391
5451
  || Arc::strong_count(slot) > 1
@@ -6200,17 +6260,14 @@ impl NativeStore {
6200
6260
  }
6201
6261
 
6202
6262
  #[cfg(test)]
6203
- fn audit_warm_membership_bytes(key: &String, membership: &WarmMembership) -> usize {
6204
- let WarmMembership {
6205
- catalog: _,
6206
- members: _,
6207
- positions: _,
6208
- sidechain_dirs: _,
6209
- revision,
6210
- complete: _,
6211
- expires: _,
6212
- } = membership;
6213
- key.capacity() + size_of::<WarmMembership>() + revision.capacity()
6263
+ fn audit_warm_membership_bytes(key: &String, slot: &Arc<MembershipSlot>) -> usize {
6264
+ let cell = slot.cell.lock().expect("registered membership");
6265
+ let heap = match &*cell {
6266
+ MembershipCell::Empty | MembershipCell::Collected(_) | MembershipCell::Positive(_) => 0,
6267
+ MembershipCell::Pending(build) => Self::audit_membership_build_bytes(build),
6268
+ MembershipCell::Busy => panic!("membership ownership audit requires a settled request"),
6269
+ };
6270
+ key.capacity() + arc_mirror::<MembershipSlot>() + MUTEX_STORAGE_MIRROR + heap
6214
6271
  }
6215
6272
 
6216
6273
  #[cfg(test)]
@@ -12252,6 +12309,8 @@ impl NativeStore {
12252
12309
  include!("snapshot_catalog.rs");
12253
12310
  include!("snapshot_symlink_proof.rs");
12254
12311
  include!("snapshot_catalog_owner.rs");
12312
+
12313
+ include!("snapshot_membership_progress.rs");
12255
12314
  include!("snapshot_sidechain_absence.rs");
12256
12315
  include!("snapshot_prepared_service.rs");
12257
12316
  include!("snapshot_skills.rs");
@@ -12338,8 +12397,11 @@ mod tests {
12338
12397
  include!("snapshot_interactions_tests.rs");
12339
12398
  include!("snapshot_interaction_api_tests.rs");
12340
12399
  include!("snapshot_catalog_tests.rs");
12400
+ include!("snapshot_membership_progress_tests.rs");
12401
+ include!("snapshot_membership_progress_controls.rs");
12341
12402
  include!("snapshot_sidechain_absence_tests.rs");
12342
12403
  include!("snapshot_common_borrowed_parent_tests.rs");
12404
+ include!("snapshot_graph_anchor_tests.rs");
12343
12405
 
12344
12406
  fn context(claimant: &str) -> Value {
12345
12407
  json!({"claimant":claimant,"admission":"hook","authority":{"kind":"user","effective_uid":unsafe { libc::geteuid() }.to_string()},"registry_generation":crate::toolcall::ToolRegistrySnapshot::from_specs(HashMap::new()).fingerprint()})
@@ -17287,17 +17349,21 @@ mod tests {
17287
17349
  #[test]
17288
17350
  fn registered_warming_charges_its_member_positions_once_and_reuses_them_on_every_page() {
17289
17351
  let (source, store, owner, fresh) = registered_warming(20);
17290
- let key = NativeStore::warm_membership_key(&fresh, &owner).unwrap();
17352
+ let key = NativeStore::membership_collection_key(&fresh, &owner).unwrap();
17291
17353
  let positions = || {
17292
17354
  let state = store.lock_state();
17293
17355
  assert_eq!(state.warm_memberships.len(), 1);
17294
- let membership = &state.warm_memberships[&key];
17356
+ let membership = state
17357
+ .positive_membership(&key)
17358
+ .expect("positive membership");
17295
17359
  assert!(membership.members.iter().all(|member| membership
17296
17360
  .active_member(member.stamp.identity, None)
17297
17361
  .is_some_and(|found| std::ptr::eq(found, member))));
17298
17362
  assert_eq!(
17299
17363
  state.ledger.shared.warm(),
17300
- source_ref_bytes(&membership.members)
17364
+ arc_mirror::<WarmMembership>()
17365
+ + membership.revision.capacity()
17366
+ + source_ref_bytes(&membership.members)
17301
17367
  + arc_slice_mirror::<(SourceIdentity, usize)>(membership.members.len())
17302
17368
  + sidechain_dir_bytes(&membership.sidechain_dirs)
17303
17369
  );
@@ -20204,6 +20270,7 @@ mod tests {
20204
20270
  .lock_state()
20205
20271
  .warm_memberships
20206
20272
  .values()
20273
+ .filter_map(|slot| slot.positive())
20207
20274
  .next()
20208
20275
  .unwrap()
20209
20276
  .clone();
@@ -20230,7 +20297,10 @@ mod tests {
20230
20297
  resolved.lock().unwrap().push((
20231
20298
  path.to_path_buf(),
20232
20299
  state.transient_bytes,
20233
- state.warm_memberships.is_empty(),
20300
+ state
20301
+ .warm_memberships
20302
+ .values()
20303
+ .all(|slot| slot.pending.load(Ordering::Acquire)),
20234
20304
  ));
20235
20305
  }
20236
20306
  }));
@@ -20240,12 +20310,12 @@ mod tests {
20240
20310
  *store.resolve_hook.lock().unwrap() = None;
20241
20311
  assert_eq!(reply["status"].as_str(), Some("ok"), "{reply:?}");
20242
20312
  let resolutions = resolved.lock().unwrap();
20243
- let uncached: Vec<_> = resolutions
20313
+ let refreshing: Vec<_> = resolutions
20244
20314
  .iter()
20245
- .filter(|(.., uncached)| *uncached)
20315
+ .filter(|(.., refreshing)| *refreshing)
20246
20316
  .collect();
20247
20317
  assert_eq!(
20248
- uncached.iter().map(|(path, ..)| path).collect::<Vec<_>>(),
20318
+ refreshing.iter().map(|(path, ..)| path).collect::<Vec<_>>(),
20249
20319
  warmed
20250
20320
  .members
20251
20321
  .iter()
@@ -20254,7 +20324,7 @@ mod tests {
20254
20324
  );
20255
20325
  assert!(!resolutions[0].2);
20256
20326
  assert!(
20257
- uncached.last().unwrap().1 - resolutions[0].1 >= live + copied,
20327
+ refreshing.last().unwrap().1 - resolutions[0].1 >= live + copied,
20258
20328
  "the refresh holds copied member paths its reservation never charged"
20259
20329
  );
20260
20330
  assert!(Arc::ptr_eq(
@@ -20262,6 +20332,7 @@ mod tests {
20262
20332
  .lock_state()
20263
20333
  .warm_memberships
20264
20334
  .values()
20335
+ .filter_map(|slot| slot.positive())
20265
20336
  .next()
20266
20337
  .unwrap()
20267
20338
  .positions,
@@ -78,9 +78,18 @@ struct CatalogInput<'a> {
78
78
  roots: &'a [Value],
79
79
  }
80
80
 
81
- enum CatalogMode<'a> { Index(&'a mut CatalogProbe), Locate, Check(CatalogCertificate) }
81
+ enum CatalogMode<'a> {
82
+ Index(&'a mut CatalogProbe),
83
+ Locate(&'a mut MembershipLocate),
84
+ Check(CatalogCertificate),
85
+ }
82
86
 
83
- enum CatalogWorkResult { Indexed, Paths(HashMap<String, PathBuf>, CatalogCertificate), Checked(bool), Pending }
87
+ enum CatalogWorkResult {
88
+ Indexed,
89
+ Paths(HashMap<String, PathBuf>, CatalogCertificate),
90
+ Checked(bool),
91
+ Pending,
92
+ }
84
93
 
85
94
  enum CatalogResolution<'a> {
86
95
  Indexed,
@@ -91,6 +100,10 @@ enum CatalogResolution<'a> {
91
100
  certificate: Option<CatalogCertificate>,
92
101
  },
93
102
  Pending(Arc<CatalogSlot>),
103
+ Stopped {
104
+ error: SnapshotError,
105
+ reservation: ProjectionReservation<'a>,
106
+ },
94
107
  }
95
108
 
96
109
  struct RegisteredBuild {
@@ -203,8 +216,19 @@ impl NativeStore {
203
216
  return Err(invalid("invalid root count"));
204
217
  }
205
218
  let chunk_size = 1024.min(remaining.max_items);
206
- if chunk_size == 0 { return Err(invalid("location request exceeds session item bound")); }
207
- if matches!(mode, CatalogMode::Locate) { self.validate_catalog_chunk(&ids[..ids.len().min(chunk_size)])?; }
219
+ if chunk_size == 0 {
220
+ return Err(invalid("location request exceeds session item bound"));
221
+ }
222
+ let retains_paths = matches!(mode, CatalogMode::Locate(_));
223
+ if let CatalogMode::Locate(progress) = &mode {
224
+ if progress.chunk_size != chunk_size {
225
+ return Err(SnapshotError::new(
226
+ Status::Changed,
227
+ "registered selection geometry changed",
228
+ ));
229
+ }
230
+ self.validate_catalog_chunk(&ids[..ids.len().min(chunk_size)])?;
231
+ }
208
232
  let (key, mut reservation) = self.catalog_key(roots, context)?;
209
233
  let slot = {
210
234
  let mut state = self.lock_state();
@@ -273,16 +297,34 @@ impl NativeStore {
273
297
  return Ok(CatalogWorkResult::Pending);
274
298
  }
275
299
  CatalogMode::Check(expected) => {
276
- let issue = catalog.refresh(self, cancel, remaining.deadline_unix_ms, &mut budget)?;
277
- return Ok(CatalogWorkResult::Checked(issue.is_none() && expected.key() == key && expected.matches(catalog)));
300
+ let issue =
301
+ catalog.refresh(self, cancel, remaining.deadline_unix_ms, &mut budget)?;
302
+ return Ok(CatalogWorkResult::Checked(
303
+ issue.is_none() && expected.key() == key && expected.matches(catalog),
304
+ ));
278
305
  }
279
- CatalogMode::Locate => {}
306
+ CatalogMode::Locate(_) => {}
307
+ }
308
+ let progress = match &mut mode {
309
+ CatalogMode::Locate(progress) => &mut **progress,
310
+ _ => unreachable!("catalog selection mode"),
311
+ };
312
+ if progress.revision.is_some() {
313
+ catalog.refresh(self, cancel, remaining.deadline_unix_ms, &mut budget)?;
314
+ }
315
+ if progress
316
+ .revision
317
+ .is_some_and(|certificate| !certificate.matches(catalog))
318
+ {
319
+ return Err(SnapshotError::new(
320
+ Status::Changed,
321
+ "registered catalog changed between selection steps",
322
+ ));
280
323
  }
281
- let mut paths = HashMap::new();
282
324
  let mut plan = None;
283
- let mut plan_epoch = 0;
284
- let mut selected_revision = None;
285
- for chunk in ids.chunks(chunk_size) {
325
+ let mut plan_epoch = catalog.epoch;
326
+ let mut selected_revision = progress.revision.map(|_| catalog.selection_revision);
327
+ for chunk in ids[progress.next..].chunks(chunk_size) {
286
328
  self.validate_catalog_chunk(chunk)?;
287
329
  budget.reserve(CatalogProbe::allocation_bound(chunk, chunk.len()))?;
288
330
  let mut probe = CatalogProbe::new(chunk, chunk.len());
@@ -306,8 +348,19 @@ impl NativeStore {
306
348
  }
307
349
  selected_revision = Some(catalog.selection_revision);
308
350
  self.remember_locations(located.iter(), context);
309
- budget.reserve(map_growth(&paths, located.len()))?;
310
- paths.extend(located);
351
+ budget.reserve(map_growth(&progress.paths, located.len()))?;
352
+ progress.paths.extend(located);
353
+ progress.next += chunk.len();
354
+ progress.revision = Some(CatalogCertificate {
355
+ scope: key
356
+ .as_bytes()
357
+ .try_into()
358
+ .expect("catalog scope digest size"),
359
+ incarnation: catalog.incarnation,
360
+ revision: catalog.decision_revision,
361
+ });
362
+ #[cfg(test)]
363
+ self.membership_checkpoint("locate", progress.next)?;
311
364
  break;
312
365
  }
313
366
  }
@@ -328,11 +381,17 @@ impl NativeStore {
328
381
  return Err(SnapshotError::new(Status::Changed, "registered catalog changed during lookup"));
329
382
  }
330
383
  cancel.check(remaining.deadline_unix_ms)?;
331
- Ok(CatalogWorkResult::Paths(paths, CatalogCertificate {
332
- scope: key.as_bytes().try_into().expect("catalog scope digest size"),
333
- incarnation: catalog.incarnation,
334
- revision: catalog.decision_revision,
335
- }))
384
+ Ok(CatalogWorkResult::Paths(
385
+ std::mem::take(&mut progress.paths),
386
+ CatalogCertificate {
387
+ scope: key
388
+ .as_bytes()
389
+ .try_into()
390
+ .expect("catalog scope digest size"),
391
+ incarnation: catalog.incarnation,
392
+ revision: catalog.decision_revision,
393
+ },
394
+ ))
336
395
  })();
337
396
  {
338
397
  let mut state = self.lock_state();
@@ -350,11 +409,17 @@ impl NativeStore {
350
409
  };
351
410
  }
352
411
  self.fact_read_released.notify_all();
353
- match outcome? {
354
- CatalogWorkResult::Paths(paths, certificate) => Ok(CatalogResolution::Ready { paths, reservation, certificate: Some(certificate) }),
355
- CatalogWorkResult::Checked(valid) => Ok(CatalogResolution::Checked(valid)),
356
- CatalogWorkResult::Indexed => Ok(CatalogResolution::Indexed),
357
- CatalogWorkResult::Pending => Ok(CatalogResolution::Pending(slot)),
412
+ match outcome {
413
+ Err(error) if retains_paths => Ok(CatalogResolution::Stopped { error, reservation }),
414
+ Err(error) => Err(error),
415
+ Ok(CatalogWorkResult::Paths(paths, certificate)) => Ok(CatalogResolution::Ready {
416
+ paths,
417
+ reservation,
418
+ certificate: Some(certificate),
419
+ }),
420
+ Ok(CatalogWorkResult::Checked(valid)) => Ok(CatalogResolution::Checked(valid)),
421
+ Ok(CatalogWorkResult::Indexed) => Ok(CatalogResolution::Indexed),
422
+ Ok(CatalogWorkResult::Pending) => Ok(CatalogResolution::Pending(slot)),
358
423
  }
359
424
  }
360
425
  }
@@ -422,11 +487,20 @@ impl NativeStore {
422
487
  drop(scope);
423
488
  self.prepare_graph_ready(request, context, cancel, usage, remaining)
424
489
  }
425
- CatalogResolution::Ready { .. } | CatalogResolution::Checked(_) => unreachable!("catalog indexing does not materialize paths"),
490
+ CatalogResolution::Ready { .. }
491
+ | CatalogResolution::Checked(_)
492
+ | CatalogResolution::Stopped { .. } => {
493
+ unreachable!("catalog indexing does not materialize paths")
494
+ }
426
495
  CatalogResolution::Pending(slot) => {
427
- self.extend_projection_reservation(&mut reservation, context,
428
- size_of::<RegisteredBuild>() + value_bytes(request) + value_bytes(context)
429
- + str_field(context, "claimant")?.len())?;
496
+ self.extend_projection_reservation(
497
+ &mut reservation,
498
+ context,
499
+ size_of::<RegisteredBuild>()
500
+ + value_bytes(request)
501
+ + value_bytes(context)
502
+ + str_field(context, "claimant")?.len(),
503
+ )?;
430
504
  let mut build = RegisteredBuild {
431
505
  claimant: str_field(context, "claimant")?.to_owned(),
432
506
  request: request.clone(), context: context.clone(),
@@ -451,18 +525,41 @@ impl NativeStore {
451
525
  if scope.snapshot.stamp != build.root.stamp
452
526
  || !classifier_eq(&build.request["view"]["classifier"], &scope.classifier)?
453
527
  {
454
- return Err(SnapshotError::new(Status::Changed, "prepared graph root generation changed"));
528
+ return Err(SnapshotError::new(
529
+ Status::Changed,
530
+ "prepared graph root generation changed",
531
+ ));
455
532
  }
456
- match self.catalog_access(CatalogInput {
457
- ids: build.request["thread_ids"].as_array().expect("validated registered ids"),
458
- roots: build.request["roots"].as_array().expect("validated registered roots"),
459
- }, &build.context, cancel, &mut build.remaining, usage, CatalogMode::Index(&mut build.probe))?
460
- {
461
- CatalogResolution::Indexed => {
462
- self.prepare_graph_ready(&build.request, &build.context, cancel, usage, build.remaining)
533
+ match self.catalog_access(
534
+ CatalogInput {
535
+ ids: build.request["thread_ids"]
536
+ .as_array()
537
+ .expect("validated registered ids"),
538
+ roots: build.request["roots"]
539
+ .as_array()
540
+ .expect("validated registered roots"),
541
+ },
542
+ &build.context,
543
+ cancel,
544
+ &mut build.remaining,
545
+ usage,
546
+ CatalogMode::Index(&mut build.probe),
547
+ )? {
548
+ CatalogResolution::Indexed => self.prepare_graph_ready(
549
+ &build.request,
550
+ &build.context,
551
+ cancel,
552
+ usage,
553
+ build.remaining,
554
+ ),
555
+ CatalogResolution::Ready { .. }
556
+ | CatalogResolution::Checked(_)
557
+ | CatalogResolution::Stopped { .. } => {
558
+ unreachable!("catalog indexing does not materialize paths")
559
+ }
560
+ CatalogResolution::Pending(slot) => {
561
+ self.retain_registered_build(token, build, slot, reservation)
463
562
  }
464
- CatalogResolution::Ready { .. } | CatalogResolution::Checked(_) => unreachable!("catalog indexing does not materialize paths"),
465
- CatalogResolution::Pending(slot) => self.retain_registered_build(token, build, slot, reservation),
466
563
  }
467
564
  }
468
565