cc-transcript 14.46.8__tar.gz → 14.46.10__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 (256) hide show
  1. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/PKG-INFO +1 -1
  2. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/ids.py +1 -1
  3. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/tools.py +3 -6
  4. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/pyproject.toml +1 -1
  5. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot.rs +24 -5
  6. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_activity.rs +14 -4
  7. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_compact_codex_tests.rs +10 -25
  8. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_index_allocations.rs +9 -16
  9. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_persistent.rs +20 -16
  10. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_publication_shared_admission_tests.rs +1 -14
  11. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_query_hydration_tests.rs +3 -47
  12. cc_transcript-14.46.10/rust/crates/core/src/snapshot_review_admission_tests.rs +95 -0
  13. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/Cargo.lock +0 -0
  14. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/Cargo.toml +0 -0
  15. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/LICENSE +0 -0
  16. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/README.md +0 -0
  17. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/__init__.py +0 -0
  18. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/__init__.pyi +0 -0
  19. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/_native.pyi +0 -0
  20. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/activity.py +0 -0
  21. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/activity_probe.py +0 -0
  22. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/builders.py +0 -0
  23. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/codex.py +0 -0
  24. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/command.py +0 -0
  25. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/context.py +0 -0
  26. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/corrections.py +0 -0
  27. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/cost.py +0 -0
  28. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/decision_store.py +0 -0
  29. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/decisions.py +0 -0
  30. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/discovery.py +0 -0
  31. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/disktruth.py +0 -0
  32. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/evidence.py +0 -0
  33. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/extract/__init__.py +0 -0
  34. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/extract/correct.py +0 -0
  35. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/facts.py +0 -0
  36. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/filterspec.py +0 -0
  37. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/heartbeats.py +0 -0
  38. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/judge/__init__.py +0 -0
  39. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/judge/llm.py +0 -0
  40. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/judge/similar.py +0 -0
  41. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/judge/verdicts.py +0 -0
  42. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/ledger.py +0 -0
  43. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/literals.py +0 -0
  44. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/mining/__init__.py +0 -0
  45. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/mining/candidates.py +0 -0
  46. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/mining/confidence.py +0 -0
  47. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/mining/engine.py +0 -0
  48. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/mining/formats.py +0 -0
  49. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/mining/sampling.py +0 -0
  50. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/mining/signals.py +0 -0
  51. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/mining/sourcekind.py +0 -0
  52. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/mining/spec.py +0 -0
  53. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/mining/store.py +0 -0
  54. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/models.py +0 -0
  55. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/nlp.py +0 -0
  56. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/notifications.py +0 -0
  57. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/parser.py +0 -0
  58. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/py.typed +0 -0
  59. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/query.py +0 -0
  60. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/render.py +0 -0
  61. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/sentiment/__init__.py +0 -0
  62. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/sentiment/buckets.py +0 -0
  63. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/sentiment/data/afinn-en-165.tsv +0 -0
  64. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/sentiment/data/domain_overrides.tsv +0 -0
  65. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/sentiment/data/en-ewt.udpipe +0 -0
  66. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/sentiment/engine.py +0 -0
  67. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/sentiment/lexicon.py +0 -0
  68. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/sentiment/scorespec.py +0 -0
  69. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/snapshot_schema/config.schema.json +0 -0
  70. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/snapshot_schema/context.schema.json +0 -0
  71. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/snapshot_schema/request.schema.json +0 -0
  72. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/snapshot_schema/response.schema.json +0 -0
  73. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/snapshot_schema/tool_registry.schema.json +0 -0
  74. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/snapshots.py +0 -0
  75. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/synthetic.py +0 -0
  76. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/cc_transcript/watch.py +0 -0
  77. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/cli/Cargo.toml +0 -0
  78. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/cli/src/commands/blame.rs +0 -0
  79. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/cli/src/commands/corpus.rs +0 -0
  80. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/cli/src/commands/corrections.rs +0 -0
  81. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/cli/src/commands/digest.rs +0 -0
  82. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/cli/src/commands/facts.rs +0 -0
  83. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/cli/src/commands/grep.rs +0 -0
  84. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/cli/src/commands/list.rs +0 -0
  85. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/cli/src/commands/mod.rs +0 -0
  86. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/cli/src/commands/scratchpad.rs +0 -0
  87. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/cli/src/commands/show.rs +0 -0
  88. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/cli/src/commands/slice.rs +0 -0
  89. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/cli/src/commands/stats.rs +0 -0
  90. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/cli/src/commands/watch.rs +0 -0
  91. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/cli/src/lib.rs +0 -0
  92. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/cli/src/output.rs +0 -0
  93. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/cli/src/target.rs +0 -0
  94. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/cli/src/timearg.rs +0 -0
  95. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/Cargo.toml +0 -0
  96. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/benches/parse.rs +0 -0
  97. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/benches/render.rs +0 -0
  98. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/benches/toolcall.rs +0 -0
  99. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/build.rs +0 -0
  100. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/activity.rs +0 -0
  101. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/actor.rs +0 -0
  102. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/blame.rs +0 -0
  103. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/buckets.rs +0 -0
  104. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/codex/discovery.rs +0 -0
  105. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/codex/lower.rs +0 -0
  106. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/codex/mod.rs +0 -0
  107. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/codex/parse.rs +0 -0
  108. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/codex/probe.rs +0 -0
  109. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/codex/protocol.rs +0 -0
  110. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/codex/review_continuation.rs +0 -0
  111. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/codex/types.rs +0 -0
  112. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/command.rs +0 -0
  113. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/context.rs +0 -0
  114. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/corrections.rs +0 -0
  115. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/cost.rs +0 -0
  116. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/discovery.rs +0 -0
  117. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/facts.rs +0 -0
  118. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/feedback.rs +0 -0
  119. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/filter.rs +0 -0
  120. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/gateway.rs +0 -0
  121. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/ids.rs +0 -0
  122. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/judge.rs +0 -0
  123. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/lib.rs +0 -0
  124. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/literals/command.rs +0 -0
  125. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/literals/corrections.rs +0 -0
  126. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/literals/feedback.rs +0 -0
  127. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/literals/mining.rs +0 -0
  128. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/literals/mod.rs +0 -0
  129. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/literals/protocol.rs +0 -0
  130. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/mining.rs +0 -0
  131. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/mining_index.rs +0 -0
  132. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/notifications.rs +0 -0
  133. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/parse.rs +0 -0
  134. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/protocol.rs +0 -0
  135. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/pystr.rs +0 -0
  136. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/query.rs +0 -0
  137. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/render.rs +0 -0
  138. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/request_body.rs +0 -0
  139. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/rng.rs +0 -0
  140. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/scan.rs +0 -0
  141. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/scan_checkpoint.rs +0 -0
  142. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/scan_grep.rs +0 -0
  143. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/scan_grep_stream.rs +0 -0
  144. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/scan_grep_stream_tests.rs +0 -0
  145. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/scan_index.rs +0 -0
  146. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/scan_projection.rs +0 -0
  147. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/scan_regressions.rs +0 -0
  148. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/scan_stream.rs +0 -0
  149. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/schema.rs +0 -0
  150. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_admission_report_tests.rs +0 -0
  151. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_cache.rs +0 -0
  152. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_cache_tests.rs +0 -0
  153. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_catalog.rs +0 -0
  154. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_catalog_owner.rs +0 -0
  155. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_catalog_tests.rs +0 -0
  156. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_codec.rs +0 -0
  157. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_codex_append.rs +0 -0
  158. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_common_borrowed_parent_tests.rs +0 -0
  159. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_compact_codex.rs +0 -0
  160. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_direct_tail.rs +0 -0
  161. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_direct_tail_tests.rs +0 -0
  162. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_graph_anchor_tests.rs +0 -0
  163. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_graph_validation_tests.rs +0 -0
  164. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_hydrate_budget_tests.rs +0 -0
  165. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_hydration_observations.rs +0 -0
  166. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_input.rs +0 -0
  167. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_interaction_api.rs +0 -0
  168. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_interaction_api_tests.rs +0 -0
  169. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_interactions.rs +0 -0
  170. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_interactions_tests.rs +0 -0
  171. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_labels.rs +0 -0
  172. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_ledger.rs +0 -0
  173. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_ledger_tests.rs +0 -0
  174. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_load_charge_audit_tests.rs +0 -0
  175. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_load_charge_work_tests.rs +0 -0
  176. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_membership_progress.rs +0 -0
  177. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_membership_progress_controls.rs +0 -0
  178. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_membership_progress_tests.rs +0 -0
  179. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_memory.rs +0 -0
  180. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_owned.rs +0 -0
  181. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_prepared.rs +0 -0
  182. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_prepared_disk.rs +0 -0
  183. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_prepared_service.rs +0 -0
  184. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_projection.rs +0 -0
  185. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_raw_materialization.rs +0 -0
  186. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_raw_projection.rs +0 -0
  187. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_raw_projection_tests.rs +0 -0
  188. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_raw_scope.rs +0 -0
  189. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_raw_scope_tests.rs +0 -0
  190. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_raw_tail_tests.rs +0 -0
  191. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_raw_window.rs +0 -0
  192. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_registered_review_tests.rs +0 -0
  193. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_regressions.rs +0 -0
  194. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_reply_resume_tests.rs +0 -0
  195. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_review.rs +0 -0
  196. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_review_context.rs +0 -0
  197. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_review_reader.rs +0 -0
  198. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_review_source.rs +0 -0
  199. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_root_warm.rs +0 -0
  200. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_sidechain_absence.rs +0 -0
  201. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_sidechain_absence_tests.rs +0 -0
  202. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_skill_demand_controls.rs +0 -0
  203. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_skill_demand_tests.rs +0 -0
  204. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_skill_framing.rs +0 -0
  205. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_skills.rs +0 -0
  206. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_source_cache_index_tests.rs +0 -0
  207. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_spine.rs +0 -0
  208. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_spine_tests.rs +0 -0
  209. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_symlink_proof.rs +0 -0
  210. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/snapshot_text.rs +0 -0
  211. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/sqlite.rs +0 -0
  212. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/toolcall.rs +0 -0
  213. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/types.rs +0 -0
  214. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/value.rs +0 -0
  215. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/src/watch.rs +0 -0
  216. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/tests/sonic_arena_model.rs +0 -0
  217. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/core/tests/std_allocation_model.rs +0 -0
  218. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/Cargo.toml +0 -0
  219. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/build.rs +0 -0
  220. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/data/command_prefix_pins.tsv +0 -0
  221. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/src/actor_bridge.rs +0 -0
  222. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/src/bin/stub_gen.rs +0 -0
  223. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/src/codex.rs +0 -0
  224. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/src/command.rs +0 -0
  225. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/src/context.rs +0 -0
  226. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/src/corrections.rs +0 -0
  227. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/src/discovery.rs +0 -0
  228. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/src/feedback.rs +0 -0
  229. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/src/judge.rs +0 -0
  230. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/src/lexicon.rs +0 -0
  231. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/src/lib.rs +0 -0
  232. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/src/mining.rs +0 -0
  233. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/src/nlp.rs +0 -0
  234. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/src/python.rs +0 -0
  235. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/src/render.rs +0 -0
  236. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/src/score.rs +0 -0
  237. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/src/snapshot_decode.rs +0 -0
  238. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/src/snapshots.rs +0 -0
  239. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/src/snapshots_registered_review.rs +0 -0
  240. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/src/sqlite.rs +0 -0
  241. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/src/toolcall.rs +0 -0
  242. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/src/views/attachment.rs +0 -0
  243. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/src/views/blocks.rs +0 -0
  244. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/src/views/command.rs +0 -0
  245. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/src/views/convert.rs +0 -0
  246. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/src/views/dunder.rs +0 -0
  247. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/src/views/events.rs +0 -0
  248. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/src/views/meta.rs +0 -0
  249. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/src/views/mod.rs +0 -0
  250. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/src/views/print.rs +0 -0
  251. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/src/views/store.rs +0 -0
  252. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/src/views/system.rs +0 -0
  253. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/src/views/toolcall.rs +0 -0
  254. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/src/views/toolresult.rs +0 -0
  255. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/rust/crates/py/src/views/transcript.rs +0 -0
  256. {cc_transcript-14.46.8 → cc_transcript-14.46.10}/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.8
3
+ Version: 14.46.10
4
4
  Classifier: Development Status :: 3 - Alpha
5
5
  Classifier: Environment :: Console
6
6
  Classifier: Intended Audience :: Developers
@@ -59,7 +59,7 @@ def canonical_json(value: object) -> bytes:
59
59
  return "".join(canonical_parts(value)).encode()
60
60
 
61
61
 
62
- def tool_digest(tool_name: str, tool_input: Mapping[str, Any]) -> ToolDigest:
62
+ def tool_digest(tool_name: str, tool_input: Mapping[str, Any] | str | None) -> ToolDigest:
63
63
  """Digest a tool call's content into the cross-language join key.
64
64
 
65
65
  Computed over the raw input mapping only — never the tool-use id, which
@@ -13,7 +13,6 @@ parsing a command pulls in no Python module or bash grammar on the hook hot path
13
13
  from __future__ import annotations
14
14
 
15
15
  import json
16
- from collections.abc import Mapping
17
16
  from dataclasses import dataclass, field
18
17
  from functools import partial
19
18
  from typing import TYPE_CHECKING, Literal
@@ -71,7 +70,7 @@ from cc_transcript.ids import ToolDigest as ToolDigest
71
70
  from cc_transcript.ids import tool_digest as tool_digest
72
71
 
73
72
  if TYPE_CHECKING:
74
- from collections.abc import Callable
73
+ from collections.abc import Callable, Mapping
75
74
  from typing import Any
76
75
 
77
76
  TOOL_ALIASES: dict[str, str] = {
@@ -143,14 +142,14 @@ class FallbackCall:
143
142
 
144
143
  Attributes:
145
144
  name: The tool name exactly as invoked.
146
- raw: The original input mapping, verbatim.
145
+ raw: The original input, verbatim.
147
146
  error: The JSON-serialization failure this call degraded from. A
148
147
  :class:`FallbackCall` the parse functions build always carries a
149
148
  non-None error; excluded from equality and repr.
150
149
  """
151
150
 
152
151
  name: str
153
- raw: Mapping[str, Any]
152
+ raw: Mapping[str, Any] | str | None
154
153
  error: str | None = field(default=None, compare=False, repr=False)
155
154
 
156
155
  def matches(self, spec: str) -> bool:
@@ -229,8 +228,6 @@ def parse_tool_call(
229
228
  >>> call.new
230
229
  'y'
231
230
  """
232
- if not isinstance(input, Mapping):
233
- return _native.toolcall_parse_view(name, json.dumps(input), on_error)
234
231
  try:
235
232
  return _native.toolcall_parse_view(name, json.dumps(input), on_error)
236
233
  except (TypeError, ValueError) as exc:
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "cc-transcript"
3
- version = "14.46.8" # informational — releases stamp the version from the git tag
3
+ version = "14.46.10" # 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"
@@ -5276,7 +5276,7 @@ impl NativeStore {
5276
5276
  let seed = Self::carried(&mut state, &lineage, &snapshot.chunks);
5277
5277
  let mut stage = ClassifierStage::seeded(seed.as_deref());
5278
5278
  let retain_committed = snapshot.provisional_tail && stage.indexed == committed;
5279
- let ownership_reserve = stage.activity.pending_allocation_reservation();
5279
+ let ownership_reserve = stage.activity.shared_ownership_reservation();
5280
5280
  let accounted = stage.accounted_bytes();
5281
5281
  let stored = key.clone();
5282
5282
  let additional = CLASSIFIER_SLOT_BYTES
@@ -5419,7 +5419,7 @@ impl NativeStore {
5419
5419
  .append_tail(&snapshot.range(start..stop), flags.as_deref());
5420
5420
  stage.indexed = stop;
5421
5421
  if snapshot.provisional_tail && stop == committed {
5422
- let ownership_reserve = stage.activity.pending_allocation_reservation();
5422
+ let ownership_reserve = stage.activity.shared_ownership_reservation();
5423
5423
  {
5424
5424
  let mut state = self.lock_state();
5425
5425
  self.admit_memory(&mut state, context, ownership_reserve)?;
@@ -9660,6 +9660,20 @@ impl NativeStore {
9660
9660
  after.saturating_sub(fence.capacity())
9661
9661
  }
9662
9662
 
9663
+ fn indexed_payload_bytes(entry: &Entry) -> usize {
9664
+ entry
9665
+ .tool_uses()
9666
+ .map(|tool| {
9667
+ let charge = crate::snapshot_memory::tool_use_charge(tool);
9668
+ charge.owned_capacity_bytes + charge.opaque_dom_accounted_bytes
9669
+ })
9670
+ .sum::<usize>()
9671
+ + match entry {
9672
+ Entry::User(user) => user.content.text_len(),
9673
+ _ => 0,
9674
+ }
9675
+ }
9676
+
9663
9677
  fn unindexed(
9664
9678
  chunks: &[Arc<EntryChunk>],
9665
9679
  indexed: usize,
@@ -9924,9 +9938,9 @@ impl NativeStore {
9924
9938
  let (bytes, calls, results, uuid_max, result_max) =
9925
9939
  Self::unindexed(&load.chunks, load.indexed, stop).fold(
9926
9940
  (0usize, 0usize, 0usize, 0usize, 0usize),
9927
- |(bytes, calls, results, uuid_max, result_max), (entry, charge)| {
9941
+ |(bytes, calls, results, uuid_max, result_max), (entry, _)| {
9928
9942
  (
9929
- bytes + charge.owned_capacity_bytes + charge.opaque_dom_accounted_bytes,
9943
+ bytes + Self::indexed_payload_bytes(entry),
9930
9944
  calls + entry.tool_uses().count(),
9931
9945
  results + entry.tool_results().count(),
9932
9946
  uuid_max.max(
@@ -9966,7 +9980,11 @@ impl NativeStore {
9966
9980
  } else {
9967
9981
  extension
9968
9982
  };
9969
- self.extend_load_reservation(slot, context, extension)?;
9983
+ self.extend_load_reservation(
9984
+ slot,
9985
+ context,
9986
+ extension.saturating_sub(read_bound.saturating_add(decode_bound)),
9987
+ )?;
9970
9988
  let entries: Vec<&Entry> = Self::unindexed(&load.chunks, load.indexed, stop)
9971
9989
  .map(|(entry, _)| entry)
9972
9990
  .collect();
@@ -12933,6 +12951,7 @@ mod tests {
12933
12951
  include!("snapshot_skill_demand_tests.rs");
12934
12952
  include!("snapshot_compact_codex_tests.rs");
12935
12953
  include!("snapshot_registered_review_tests.rs");
12954
+ include!("snapshot_review_admission_tests.rs");
12936
12955
  include!("snapshot_hydrate_budget_tests.rs");
12937
12956
  include!("snapshot_interactions_tests.rs");
12938
12957
  include!("snapshot_interaction_api_tests.rs");
@@ -432,6 +432,13 @@ impl ActivityIndex {
432
432
  self.ensure_allocation_owners();
433
433
  }
434
434
 
435
+ pub(crate) fn shared_ownership_reservation(&self) -> usize {
436
+ self.allocation_owners.get().map_or_else(
437
+ || AllocationSet::cold_reservation(self.allocation_count_bound()),
438
+ |_| 0,
439
+ )
440
+ }
441
+
435
442
  fn ensure_allocation_owners(&self) -> &AllocationSet {
436
443
  self.allocation_owners.get_or_init(|| {
437
444
  let mut owners = AllocationSet::default();
@@ -1039,19 +1046,22 @@ impl ActivityIndex {
1039
1046
  .map_or(0, |undo| undo.prefix_bytes),
1040
1047
  )
1041
1048
  };
1042
- let shared_prompt = previous
1049
+ let shared_turn = previous
1043
1050
  .and_then(|prior| {
1044
1051
  let at = prior.turns.len().checked_sub(1)?;
1045
1052
  let old = &prior.turns[at];
1046
1053
  let new = &self.turns[at];
1047
- (!Arc::ptr_eq(old, new) && Arc::ptr_eq(&old.prompt, &new.prompt))
1048
- .then(|| old.prompt_bytes())
1054
+ (!Arc::ptr_eq(old, new)).then(|| {
1055
+ usize::from(Arc::ptr_eq(&old.prompt, &new.prompt)) * old.prompt_bytes()
1056
+ + new.calls.bytes_since(None)
1057
+ - new.calls.bytes_since(Some(&old.calls))
1058
+ })
1049
1059
  })
1050
1060
  .unwrap_or(0);
1051
1061
  let payload = self.turns.last().map_or(0, |turn| {
1052
1062
  turn.prefix_turn_bytes - shared_turns + turn.prefix_call_bytes
1053
1063
  - shared_calls
1054
- - shared_prompt
1064
+ - shared_turn
1055
1065
  });
1056
1066
  turns + uuids + results + payload + undo
1057
1067
  }
@@ -307,7 +307,13 @@ fn agent_codex_cancel_and_exact_refusal_never_publish_a_successor() {
307
307
  old_stamp
308
308
  );
309
309
  store.assert_conserved();
310
- let used = NativeStore::retained_total(&mut store.lock_state());
310
+ let used = {
311
+ let mut state = store.lock_state();
312
+ while let Some(victim) = state.next_cache_victim() {
313
+ state.evict_cache_owner(victim);
314
+ }
315
+ NativeStore::retained_total(&mut state)
316
+ };
311
317
  let hold = store
312
318
  .reserve_projection(&owner, store.memory_cap(&owner).unwrap() - used)
313
319
  .unwrap();
@@ -374,25 +380,6 @@ fn agent_codex_capacity_boundary_preserves_the_unique_continuation_and_charges_g
374
380
  }
375
381
  }
376
382
 
377
- fn compact_read_countdown(
378
- store: Weak<NativeStore>,
379
- remaining: usize,
380
- action: Arc<dyn Fn() + Send + Sync>,
381
- ) -> Arc<dyn Fn() + Send + Sync> {
382
- Arc::new(move || {
383
- if remaining == 1 {
384
- action();
385
- } else {
386
- let owner = store.upgrade().unwrap();
387
- *owner.read_hook.lock().unwrap() = Some(compact_read_countdown(
388
- store.clone(),
389
- remaining - 1,
390
- Arc::clone(&action),
391
- ));
392
- }
393
- })
394
- }
395
-
396
383
  #[test]
397
384
  fn agent_codex_final_seal_parent_swap_rejects_positive_and_keeps_old_facts() {
398
385
  let source = Source::new(&format!("{}\n", user("root")));
@@ -406,7 +393,7 @@ fn agent_codex_final_seal_parent_swap_rejects_positive_and_keeps_old_facts() {
406
393
  std::fs::write(&path, hydration_codex(0)).unwrap();
407
394
  std::fs::write(&replacement_path, hydration_codex(7)).unwrap();
408
395
  let paths = vec![path.clone()];
409
- let store = Arc::new(agent_hydration_store());
396
+ let store = agent_hydration_store();
410
397
  let owner = context("compact-parent-swap");
411
398
  let root = hydration_root(&store, &source, &owner);
412
399
  let graph = hydration_graph(&store, &root, &paths, &owner);
@@ -438,7 +425,7 @@ fn agent_codex_final_seal_parent_swap_rejects_positive_and_keeps_old_facts() {
438
425
  let switched = Arc::new(AtomicBool::new(false));
439
426
  let observed = Arc::clone(&switched);
440
427
  let opened = path.clone();
441
- let action: Arc<dyn Fn() + Send + Sync> = Arc::new(move || {
428
+ *store.read_hook.lock().unwrap() = Some(Arc::new(move || {
442
429
  std::fs::rename(&parent, &parked).unwrap();
443
430
  std::fs::rename(&replacement, &parent).unwrap();
444
431
  assert_eq!(
@@ -447,9 +434,7 @@ fn agent_codex_final_seal_parent_swap_rejects_positive_and_keeps_old_facts() {
447
434
  );
448
435
  assert_ne!(SourceStamp::of(&std::fs::metadata(&opened).unwrap()), stamp);
449
436
  observed.store(true, Ordering::Release);
450
- });
451
- *store.read_hook.lock().unwrap() =
452
- Some(compact_read_countdown(Arc::downgrade(&store), 4, action));
437
+ }));
453
438
  let (answer, _) = hydration_tool_query(&store, &fresh, "swap-positive", &owner);
454
439
  assert!(switched.load(Ordering::Acquire));
455
440
  assert_eq!(answer["status"].as_str(), Some("changed"), "{answer:?}");
@@ -297,12 +297,14 @@ impl AllocationSet {
297
297
  let count = self.len().saturating_add(inserts);
298
298
  let width = size_of::<usize>() + size_of::<Arc<AllocationOwner>>() + 4 * size_of::<usize>();
299
299
  let bound = (count.saturating_mul(8) + 64).saturating_mul(width);
300
- let nodes = bound.saturating_add(
301
- inserts
302
- .saturating_mul(count.max(1).ilog2() as usize + 4)
303
- .saturating_mul(64 * width)
304
- .min(bound),
305
- );
300
+ let nodes = bound
301
+ .saturating_sub((self.len().saturating_mul(8) + 64).saturating_mul(width))
302
+ .saturating_add(
303
+ inserts
304
+ .saturating_mul(count.max(1).ilog2() as usize + 4)
305
+ .saturating_mul(64 * width)
306
+ .min(bound),
307
+ );
306
308
  let queue = if state.queue.len().saturating_add(inserts) > state.queue.capacity() {
307
309
  state
308
310
  .queue
@@ -320,20 +322,11 @@ impl AllocationSet {
320
322
  } else {
321
323
  0
322
324
  };
323
- let registry = state
324
- .bytes()
325
- .saturating_sub(self.registry.admitted_bytes.load(Ordering::Acquire))
326
- .saturating_add(queue)
325
+ let registry = queue
327
326
  .saturating_add(table)
328
327
  .saturating_add(inserts.saturating_mul(2 * arc_bytes::<AllocationOwner>()));
329
- let pending = state
330
- .queue
331
- .len()
332
- .saturating_add(inserts)
333
- .saturating_mul(2 * size_of::<Arc<AllocationOwner>>());
334
328
  nodes
335
329
  .saturating_add(registry)
336
- .saturating_add(pending)
337
330
  .saturating_add(arc_bytes::<()>())
338
331
  }
339
332
 
@@ -148,7 +148,7 @@ impl<K: Ord + Clone + Borrow<str>, V: Clone> Tree<K, V> {
148
148
  previous: Option<&Self>,
149
149
  _key_allocation: fn(&K) -> Option<(usize, usize)>,
150
150
  ) -> usize {
151
- if previous.is_some_and(|previous| self.entries.ptr_eq(&previous.entries)) {
151
+ if previous.is_some_and(|previous| Arc::ptr_eq(&self.metadata, &previous.metadata)) {
152
152
  0
153
153
  } else {
154
154
  Self::metadata_bound(self.len(), self.max_key_bytes)
@@ -175,14 +175,16 @@ impl<K: Ord + Clone + Borrow<str>, V: Clone> Tree<K, V> {
175
175
  }
176
176
  let count = self.len().saturating_add(inserts);
177
177
  let bound = Self::metadata_bound(count, self.max_key_bytes);
178
- bound.saturating_add(
179
- inserts
180
- .saturating_mul(count.max(1).ilog2() as usize + 4)
181
- .saturating_mul(
182
- 64 * (size_of::<K>() + size_of::<Counted<V>>() + 4 * size_of::<usize>()),
183
- )
184
- .min(bound),
185
- )
178
+ bound
179
+ .saturating_sub(Self::metadata_bound(self.len(), self.max_key_bytes))
180
+ .saturating_add(
181
+ inserts
182
+ .saturating_mul(count.max(1).ilog2() as usize + 4)
183
+ .saturating_mul(
184
+ 64 * (size_of::<K>() + size_of::<Counted<V>>() + 4 * size_of::<usize>()),
185
+ )
186
+ .min(bound),
187
+ )
186
188
  }
187
189
  }
188
190
 
@@ -257,7 +259,7 @@ impl<T: Clone> Vector<T> {
257
259
  ))
258
260
  }
259
261
  pub(crate) fn bytes_since(&self, previous: Option<&Self>) -> usize {
260
- if previous.is_some_and(|previous| self.entries.ptr_eq(&previous.entries)) {
262
+ if previous.is_some_and(|previous| Arc::ptr_eq(&self.metadata, &previous.metadata)) {
261
263
  0
262
264
  } else {
263
265
  Self::metadata_bound(self.len())
@@ -269,12 +271,14 @@ impl<T: Clone> Vector<T> {
269
271
  }
270
272
  let count = self.len().saturating_add(inserts);
271
273
  let bound = Self::metadata_bound(count);
272
- bound.saturating_add(
273
- inserts
274
- .saturating_mul(count.max(1).ilog2() as usize + 4)
275
- .saturating_mul(256 * (size_of::<Counted<T>>() + 4 * size_of::<usize>()))
276
- .min(bound),
277
- )
274
+ bound
275
+ .saturating_sub(Self::metadata_bound(self.len()))
276
+ .saturating_add(
277
+ inserts
278
+ .saturating_mul(count.max(1).ilog2() as usize + 4)
279
+ .saturating_mul(256 * (size_of::<Counted<T>>() + 4 * size_of::<usize>()))
280
+ .min(bound),
281
+ )
278
282
  }
279
283
  pub(crate) fn partition_point(&self, mut predicate: impl FnMut(&T) -> bool) -> usize {
280
284
  let (mut low, mut high) = (0, self.len());
@@ -111,20 +111,7 @@ fn shared_publication_admission_counts_raw_allocations_once_and_reuses_source()
111
111
  first["data"]["description"]["mtime_ns"]
112
112
  );
113
113
  }
114
- let appended = format!("{}\n", user("appended-owner-words"));
115
- source.append(&appended);
116
- let (grown, append_read) = finish_shared_publication_fixture(
117
- &store,
118
- store.request(&acquire(&source.path), &owner, &Cancellation::default()),
119
- &owner,
120
- );
121
- assert_eq!(grown["status"].as_str(), Some("ok"), "{grown:?}");
122
- assert_eq!(
123
- grown["data"]["description"]["event_count"].as_u64(),
124
- Some(2)
125
- );
126
- assert_eq!(append_read, appended.len() as u64 + 192);
127
- eprintln!("SHARED_PUBLICATION_ADMISSION source_bytes={} first_read_bytes={} unchanged_calls=2 unchanged_read_bytes=0 event_count=1 payload_bytes={} headroom_bytes={headroom} append_bytes={} append_read_bytes={append_read}", line.len(), first_read, payload.len(), appended.len());
114
+ eprintln!("SHARED_PUBLICATION_ADMISSION source_bytes={} first_read_bytes={} unchanged_calls=2 unchanged_read_bytes=0 event_count=1 payload_bytes={} headroom_bytes={headroom}", line.len(), first_read, payload.len());
128
115
  drop(crowded);
129
116
  store.assert_conserved();
130
117
  }
@@ -371,52 +371,8 @@ fn prepared_cache_hydration_63_pressure_append_preserves_other_sources() {
371
371
  assert_eq!((positive_usage[1], positive_usage[15]), (0, 0));
372
372
  eprintln!("hydration_pressure_append sources=63 victims={} raw_limit={raw_limit} suffix_bytes={} source_bytes={} lowerings={} lowered_bytes={} codex={codex:?}", victims.len(), suffix.len(), usage[1], usage[15], usage[16]);
373
373
  store.assert_conserved();
374
- assert!(usage[1] <= suffix.len() as u64 + 256, "{after:?}");
375
- assert_eq!(usage[15], 0, "{after:?}");
376
- }
377
-
378
- #[test]
379
- fn prepared_cache_hydration_legal_append_without_pressure_is_incremental() {
380
- let source = Source::new(&format!("{}\n", user("root")));
381
- let paths = hydration_sources(&source, 1);
382
- let store = hydration_store();
383
- let owner = context("hydration-legal-append");
384
- let root = hydration_root(&store, &source, &owner);
385
- let graph = hydration_graph(&store, &root, &paths, &owner);
386
- hydration_false(&hydration_index_query(&store, &graph, "definitely-absent", &owner).0);
387
- let stamp = SourceStamp::of(&std::fs::metadata(&paths[0]).unwrap());
388
- let prior = store.lock_state().latest_source(&stamp.identity).unwrap();
389
- let prior_entries = sonic_rs::to_string(&prior.entries()).unwrap();
390
- let suffix = hydration_tool("new-tool", "new-call");
391
- std::fs::OpenOptions::new()
392
- .append(true)
393
- .open(&paths[0])
394
- .unwrap()
395
- .write_all(suffix.as_bytes())
396
- .unwrap();
397
- let fresh = hydration_graph(&store, &root, &paths, &owner);
398
- hydration_observations(&store);
399
- let (answer, usage) = hydration_index_query(&store, &fresh, "definitely-absent", &owner);
400
- hydration_false(&answer);
401
- let observed = hydration_observations(&store);
402
- assert!(observed.iter().any(|item| matches!(item, HydrationObservation::Codex { previous: true, raw: true, index: true, append: true, fallback: None, suffix_bytes, .. } if *suffix_bytes == suffix.len())));
403
- let (positive, _) = hydration_tool_query(&store, &fresh, "new-tool", &owner);
404
- assert_eq!(positive["data"]["value"].as_bool(), Some(true));
405
- eprintln!(
406
- "hydration_legal_append suffix_bytes={} source_bytes={} lowerings={}",
407
- suffix.len(),
408
- usage[1],
409
- usage[15]
410
- );
411
- assert!(usage[1] <= suffix.len() as u64 + 256);
412
- assert_eq!(usage[15], 0);
413
- assert_eq!(
414
- sonic_rs::to_string(&prior.entries()).unwrap(),
415
- prior_entries
416
- );
417
- assert_eq!(prior.stamp, stamp);
418
- drop(prior);
419
- store.assert_conserved();
374
+ let size = std::fs::metadata(changed).unwrap().len();
375
+ assert_eq!((usage[15], usage[16]), (1, size), "{after:?}");
420
376
  }
421
377
 
422
378
  #[test]
@@ -547,7 +503,7 @@ fn prepared_cache_hydration_rewrite_replace_and_provisional_completion_keep_sema
547
503
  assert!(observed.iter().any(|item| matches!(
548
504
  item,
549
505
  HydrationObservation::Codex {
550
- fallback: Some("partial_tail"),
506
+ fallback: Some("cold"),
551
507
  ..
552
508
  }
553
509
  )));
@@ -0,0 +1,95 @@
1
+ fn small_turn_transcript(target: usize) -> Source {
2
+ let source = Source::new(&format!("{}\n", user("anchor")));
3
+ let output = "x".repeat(2048);
4
+ let edit = "y".repeat(256);
5
+ let mut file = std::fs::OpenOptions::new()
6
+ .append(true)
7
+ .open(&source.path)
8
+ .unwrap();
9
+ let mut size = 0;
10
+ let mut index = 0;
11
+ while size < target {
12
+ let call = sonic_rs::to_string(&json!({"type":"assistant","sessionId":"s","uuid":format!("a{index}"),"timestamp":"2026-11-02T00:00:00Z",
13
+ "message":{"model":"claude","content":[{"type":"tool_use","id":format!("t{index}"),"name":"Edit",
14
+ "input":{"file_path":format!("/repo/f{}.py", index % 97),"old_string":edit,"new_string":format!("{edit}z")}}]}})).unwrap() + "\n";
15
+ let result = sonic_rs::to_string(&json!({"type":"user","sessionId":"s","uuid":format!("r{index}"),"timestamp":"2026-11-02T00:00:00Z",
16
+ "toolUseResult":{"output":output},
17
+ "message":{"content":[{"type":"tool_result","tool_use_id":format!("t{index}"),"content":output}]}})).unwrap() + "\n";
18
+ file.write_all(call.as_bytes()).unwrap();
19
+ file.write_all(result.as_bytes()).unwrap();
20
+ size += call.len() + result.len();
21
+ index += 1;
22
+ }
23
+ source
24
+ }
25
+
26
+ fn review_context(claimant: &str) -> Value {
27
+ let mut owner = context(claimant);
28
+ owner.insert("admission", json!("review"));
29
+ owner
30
+ }
31
+
32
+ fn review_acquire(path: &Path) -> Value {
33
+ json!({"schema":SCHEMA,"id":"review-acquire","operation":"acquire","path":path.to_string_lossy().as_ref(),"classifier":{"id":"native","version":"1"},
34
+ "deadline_unix_ms":now_ms()+600_000,"limits":{"max_read_bytes":512*1024*1024,"max_source_read_bytes":512*1024*1024,"max_events":1_000_000,"max_items":256,"max_output_bytes":1024*1024,"max_discovery_entries":1000,"max_sources":100}})
35
+ }
36
+
37
+ fn retained_total(store: &NativeStore, owner: &Value) -> u64 {
38
+ let stats = store.test_request(
39
+ &json!({"schema":SCHEMA,"id":"stats","operation":"stats"}),
40
+ owner,
41
+ &Cancellation::default(),
42
+ );
43
+ assert_eq!(stats["status"].as_str(), Some("ok"), "{stats:?}");
44
+ stats["data"]["gauges"]["retained_total_accounted_bytes"]
45
+ .as_u64()
46
+ .unwrap()
47
+ }
48
+
49
+ #[test]
50
+ fn review_admission_resumes_a_large_transcript_of_small_turns_under_the_default_cap() {
51
+ let source = small_turn_transcript(64 * 1024 * 1024);
52
+ let store = NativeStore::new_agent(&json!({})).unwrap();
53
+ let owner = review_context("review-admission");
54
+ let available = (store.config.retained - store.config.hook_bytes) as u64;
55
+ let mut response = store.test_request(
56
+ &review_acquire(&source.path),
57
+ &owner,
58
+ &Cancellation::default(),
59
+ );
60
+ let mut resumes = 0;
61
+ while response["status"].as_str() == Some("incomplete") {
62
+ resumes += 1;
63
+ assert!(
64
+ resumes < 4096,
65
+ "cold review load must make bounded progress"
66
+ );
67
+ assert!(retained_total(&store, &owner) <= available);
68
+ let cursor = response["cursor"].as_str().unwrap().to_owned();
69
+ response = store.test_request(
70
+ &json!({"schema":SCHEMA,"id":"resume","operation":"resume","cursor":cursor}),
71
+ &owner,
72
+ &Cancellation::default(),
73
+ );
74
+ }
75
+ assert_eq!(response["status"].as_str(), Some("ok"), "{response:?}");
76
+ assert!(resumes > 1);
77
+ let settled = retained_total(&store, &owner);
78
+ assert!(settled <= available);
79
+ release_lease(&store, handle(&response), &owner);
80
+ for _ in 0..3 {
81
+ let warm = finish_prepared(
82
+ &store,
83
+ store.test_request(
84
+ &review_acquire(&source.path),
85
+ &owner,
86
+ &Cancellation::default(),
87
+ ),
88
+ &owner,
89
+ );
90
+ assert_eq!(warm["status"].as_str(), Some("ok"), "{warm:?}");
91
+ assert!(retained_total(&store, &owner) <= settled + 64 * 1024);
92
+ release_lease(&store, handle(&warm), &owner);
93
+ }
94
+ store.assert_conserved();
95
+ }