cc-transcript 14.46.9__tar.gz → 14.46.11__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.9 → cc_transcript-14.46.11}/PKG-INFO +1 -1
  2. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/ids.py +1 -1
  3. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/tools.py +3 -6
  4. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/pyproject.toml +1 -1
  5. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot.rs +26 -3
  6. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_activity.rs +7 -4
  7. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_compact_codex_tests.rs +10 -25
  8. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_index_allocations.rs +7 -1
  9. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_ledger.rs +9 -0
  10. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_ledger_tests.rs +9 -39
  11. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_persistent.rs +2 -2
  12. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_publication_shared_admission_tests.rs +1 -14
  13. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_query_hydration_tests.rs +3 -47
  14. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_regressions.rs +9 -4
  15. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/Cargo.lock +0 -0
  16. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/Cargo.toml +0 -0
  17. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/LICENSE +0 -0
  18. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/README.md +0 -0
  19. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/__init__.py +0 -0
  20. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/__init__.pyi +0 -0
  21. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/_native.pyi +0 -0
  22. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/activity.py +0 -0
  23. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/activity_probe.py +0 -0
  24. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/builders.py +0 -0
  25. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/codex.py +0 -0
  26. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/command.py +0 -0
  27. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/context.py +0 -0
  28. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/corrections.py +0 -0
  29. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/cost.py +0 -0
  30. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/decision_store.py +0 -0
  31. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/decisions.py +0 -0
  32. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/discovery.py +0 -0
  33. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/disktruth.py +0 -0
  34. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/evidence.py +0 -0
  35. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/extract/__init__.py +0 -0
  36. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/extract/correct.py +0 -0
  37. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/facts.py +0 -0
  38. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/filterspec.py +0 -0
  39. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/heartbeats.py +0 -0
  40. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/judge/__init__.py +0 -0
  41. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/judge/llm.py +0 -0
  42. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/judge/similar.py +0 -0
  43. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/judge/verdicts.py +0 -0
  44. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/ledger.py +0 -0
  45. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/literals.py +0 -0
  46. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/mining/__init__.py +0 -0
  47. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/mining/candidates.py +0 -0
  48. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/mining/confidence.py +0 -0
  49. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/mining/engine.py +0 -0
  50. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/mining/formats.py +0 -0
  51. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/mining/sampling.py +0 -0
  52. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/mining/signals.py +0 -0
  53. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/mining/sourcekind.py +0 -0
  54. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/mining/spec.py +0 -0
  55. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/mining/store.py +0 -0
  56. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/models.py +0 -0
  57. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/nlp.py +0 -0
  58. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/notifications.py +0 -0
  59. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/parser.py +0 -0
  60. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/py.typed +0 -0
  61. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/query.py +0 -0
  62. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/render.py +0 -0
  63. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/sentiment/__init__.py +0 -0
  64. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/sentiment/buckets.py +0 -0
  65. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/sentiment/data/afinn-en-165.tsv +0 -0
  66. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/sentiment/data/domain_overrides.tsv +0 -0
  67. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/sentiment/data/en-ewt.udpipe +0 -0
  68. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/sentiment/engine.py +0 -0
  69. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/sentiment/lexicon.py +0 -0
  70. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/sentiment/scorespec.py +0 -0
  71. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/snapshot_schema/config.schema.json +0 -0
  72. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/snapshot_schema/context.schema.json +0 -0
  73. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/snapshot_schema/request.schema.json +0 -0
  74. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/snapshot_schema/response.schema.json +0 -0
  75. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/snapshot_schema/tool_registry.schema.json +0 -0
  76. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/snapshots.py +0 -0
  77. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/synthetic.py +0 -0
  78. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/watch.py +0 -0
  79. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/cli/Cargo.toml +0 -0
  80. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/cli/src/commands/blame.rs +0 -0
  81. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/cli/src/commands/corpus.rs +0 -0
  82. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/cli/src/commands/corrections.rs +0 -0
  83. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/cli/src/commands/digest.rs +0 -0
  84. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/cli/src/commands/facts.rs +0 -0
  85. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/cli/src/commands/grep.rs +0 -0
  86. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/cli/src/commands/list.rs +0 -0
  87. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/cli/src/commands/mod.rs +0 -0
  88. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/cli/src/commands/scratchpad.rs +0 -0
  89. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/cli/src/commands/show.rs +0 -0
  90. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/cli/src/commands/slice.rs +0 -0
  91. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/cli/src/commands/stats.rs +0 -0
  92. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/cli/src/commands/watch.rs +0 -0
  93. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/cli/src/lib.rs +0 -0
  94. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/cli/src/output.rs +0 -0
  95. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/cli/src/target.rs +0 -0
  96. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/cli/src/timearg.rs +0 -0
  97. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/Cargo.toml +0 -0
  98. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/benches/parse.rs +0 -0
  99. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/benches/render.rs +0 -0
  100. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/benches/toolcall.rs +0 -0
  101. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/build.rs +0 -0
  102. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/activity.rs +0 -0
  103. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/actor.rs +0 -0
  104. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/blame.rs +0 -0
  105. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/buckets.rs +0 -0
  106. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/codex/discovery.rs +0 -0
  107. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/codex/lower.rs +0 -0
  108. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/codex/mod.rs +0 -0
  109. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/codex/parse.rs +0 -0
  110. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/codex/probe.rs +0 -0
  111. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/codex/protocol.rs +0 -0
  112. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/codex/review_continuation.rs +0 -0
  113. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/codex/types.rs +0 -0
  114. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/command.rs +0 -0
  115. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/context.rs +0 -0
  116. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/corrections.rs +0 -0
  117. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/cost.rs +0 -0
  118. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/discovery.rs +0 -0
  119. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/facts.rs +0 -0
  120. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/feedback.rs +0 -0
  121. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/filter.rs +0 -0
  122. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/gateway.rs +0 -0
  123. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/ids.rs +0 -0
  124. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/judge.rs +0 -0
  125. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/lib.rs +0 -0
  126. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/literals/command.rs +0 -0
  127. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/literals/corrections.rs +0 -0
  128. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/literals/feedback.rs +0 -0
  129. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/literals/mining.rs +0 -0
  130. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/literals/mod.rs +0 -0
  131. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/literals/protocol.rs +0 -0
  132. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/mining.rs +0 -0
  133. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/mining_index.rs +0 -0
  134. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/notifications.rs +0 -0
  135. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/parse.rs +0 -0
  136. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/protocol.rs +0 -0
  137. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/pystr.rs +0 -0
  138. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/query.rs +0 -0
  139. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/render.rs +0 -0
  140. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/request_body.rs +0 -0
  141. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/rng.rs +0 -0
  142. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/scan.rs +0 -0
  143. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/scan_checkpoint.rs +0 -0
  144. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/scan_grep.rs +0 -0
  145. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/scan_grep_stream.rs +0 -0
  146. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/scan_grep_stream_tests.rs +0 -0
  147. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/scan_index.rs +0 -0
  148. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/scan_projection.rs +0 -0
  149. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/scan_regressions.rs +0 -0
  150. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/scan_stream.rs +0 -0
  151. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/schema.rs +0 -0
  152. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_admission_report_tests.rs +0 -0
  153. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_cache.rs +0 -0
  154. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_cache_tests.rs +0 -0
  155. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_catalog.rs +0 -0
  156. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_catalog_owner.rs +0 -0
  157. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_catalog_tests.rs +0 -0
  158. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_codec.rs +0 -0
  159. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_codex_append.rs +0 -0
  160. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_common_borrowed_parent_tests.rs +0 -0
  161. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_compact_codex.rs +0 -0
  162. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_direct_tail.rs +0 -0
  163. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_direct_tail_tests.rs +0 -0
  164. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_graph_anchor_tests.rs +0 -0
  165. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_graph_validation_tests.rs +0 -0
  166. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_hydrate_budget_tests.rs +0 -0
  167. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_hydration_observations.rs +0 -0
  168. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_input.rs +0 -0
  169. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_interaction_api.rs +0 -0
  170. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_interaction_api_tests.rs +0 -0
  171. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_interactions.rs +0 -0
  172. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_interactions_tests.rs +0 -0
  173. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_labels.rs +0 -0
  174. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_load_charge_audit_tests.rs +0 -0
  175. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_load_charge_work_tests.rs +0 -0
  176. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_membership_progress.rs +0 -0
  177. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_membership_progress_controls.rs +0 -0
  178. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_membership_progress_tests.rs +0 -0
  179. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_memory.rs +0 -0
  180. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_owned.rs +0 -0
  181. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_prepared.rs +0 -0
  182. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_prepared_disk.rs +0 -0
  183. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_prepared_service.rs +0 -0
  184. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_projection.rs +0 -0
  185. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_raw_materialization.rs +0 -0
  186. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_raw_projection.rs +0 -0
  187. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_raw_projection_tests.rs +0 -0
  188. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_raw_scope.rs +0 -0
  189. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_raw_scope_tests.rs +0 -0
  190. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_raw_tail_tests.rs +0 -0
  191. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_raw_window.rs +0 -0
  192. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_registered_review_tests.rs +0 -0
  193. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_reply_resume_tests.rs +0 -0
  194. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_review.rs +0 -0
  195. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_review_admission_tests.rs +0 -0
  196. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_review_context.rs +0 -0
  197. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_review_reader.rs +0 -0
  198. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_review_source.rs +0 -0
  199. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_root_warm.rs +0 -0
  200. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_sidechain_absence.rs +0 -0
  201. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_sidechain_absence_tests.rs +0 -0
  202. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_skill_demand_controls.rs +0 -0
  203. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_skill_demand_tests.rs +0 -0
  204. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_skill_framing.rs +0 -0
  205. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_skills.rs +0 -0
  206. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_source_cache_index_tests.rs +0 -0
  207. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_spine.rs +0 -0
  208. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_spine_tests.rs +0 -0
  209. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_symlink_proof.rs +0 -0
  210. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_text.rs +0 -0
  211. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/sqlite.rs +0 -0
  212. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/toolcall.rs +0 -0
  213. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/types.rs +0 -0
  214. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/value.rs +0 -0
  215. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/watch.rs +0 -0
  216. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/tests/sonic_arena_model.rs +0 -0
  217. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/tests/std_allocation_model.rs +0 -0
  218. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/Cargo.toml +0 -0
  219. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/build.rs +0 -0
  220. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/data/command_prefix_pins.tsv +0 -0
  221. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/actor_bridge.rs +0 -0
  222. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/bin/stub_gen.rs +0 -0
  223. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/codex.rs +0 -0
  224. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/command.rs +0 -0
  225. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/context.rs +0 -0
  226. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/corrections.rs +0 -0
  227. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/discovery.rs +0 -0
  228. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/feedback.rs +0 -0
  229. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/judge.rs +0 -0
  230. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/lexicon.rs +0 -0
  231. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/lib.rs +0 -0
  232. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/mining.rs +0 -0
  233. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/nlp.rs +0 -0
  234. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/python.rs +0 -0
  235. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/render.rs +0 -0
  236. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/score.rs +0 -0
  237. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/snapshot_decode.rs +0 -0
  238. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/snapshots.rs +0 -0
  239. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/snapshots_registered_review.rs +0 -0
  240. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/sqlite.rs +0 -0
  241. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/toolcall.rs +0 -0
  242. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/views/attachment.rs +0 -0
  243. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/views/blocks.rs +0 -0
  244. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/views/command.rs +0 -0
  245. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/views/convert.rs +0 -0
  246. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/views/dunder.rs +0 -0
  247. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/views/events.rs +0 -0
  248. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/views/meta.rs +0 -0
  249. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/views/mod.rs +0 -0
  250. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/views/print.rs +0 -0
  251. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/views/store.rs +0 -0
  252. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/views/system.rs +0 -0
  253. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/views/toolcall.rs +0 -0
  254. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/views/toolresult.rs +0 -0
  255. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/views/transcript.rs +0 -0
  256. {cc_transcript-14.46.9 → cc_transcript-14.46.11}/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.9
3
+ Version: 14.46.11
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.9" # informational — releases stamp the version from the git tag
3
+ version = "14.46.11" # 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"
@@ -2451,6 +2451,9 @@ impl StoreState {
2451
2451
  LedgerEvent::IndexRegistry(id) => {
2452
2452
  self.ledger.shared.release(id);
2453
2453
  }
2454
+ LedgerEvent::IndexRegistryChanged(id) => {
2455
+ self.ledger.shared.refresh_index_registry(id);
2456
+ }
2454
2457
  LedgerEvent::UnpublishedLoad(bytes) => {
2455
2458
  self.ledger.pending = self
2456
2459
  .ledger
@@ -2510,6 +2513,9 @@ impl StoreState {
2510
2513
  LedgerEvent::IndexRegistry(record.index_registry.0),
2511
2514
  credited,
2512
2515
  );
2516
+ self.ledger
2517
+ .shared
2518
+ .refresh_index_registry(record.index_registry.0);
2513
2519
  if let Some(displaced) = self.generations.insert(key, record) {
2514
2520
  for anchor in displaced.anchors() {
2515
2521
  self.ledger.shared.release(anchor.id);
@@ -2713,6 +2719,7 @@ impl StoreState {
2713
2719
  LedgerEvent::IndexRegistry(registry.0),
2714
2720
  credited,
2715
2721
  );
2722
+ self.ledger.shared.refresh_index_registry(registry.0);
2716
2723
  self.carried_expiry
2717
2724
  .push(carried_deadline(&carried), lineage.clone());
2718
2725
  self.attach_carried_owner(&lineage, &carried);
@@ -5452,7 +5459,11 @@ impl NativeStore {
5452
5459
  state.set_classifier_charge(&slot, stage.accounted_bytes());
5453
5460
  return Err(error);
5454
5461
  }
5455
- state.set_classifier_charge(&slot, accounted);
5462
+ state
5463
+ .ledger
5464
+ .shared
5465
+ .settle_existing_index_registry(&stage.activity.registry_witness());
5466
+ state.set_classifier_charge(&slot, stage.accounted_bytes());
5456
5467
  }
5457
5468
  cancel.check(slot.deadline.min(bounds.deadline_unix_ms))?;
5458
5469
  if stop < snapshot.event_count {
@@ -5531,11 +5542,14 @@ impl NativeStore {
5531
5542
  state.ledger.shared.registry_growth_bytes(*registry)
5532
5543
  }
5533
5544
  });
5534
- self.admit_memory(
5545
+ if let Err(error) = self.admit_memory(
5535
5546
  &mut state,
5536
5547
  context,
5537
5548
  additional.saturating_sub(slot.ledgered_bytes()),
5538
- )?;
5549
+ ) {
5550
+ state.set_classifier_charge(&slot, stage.accounted_bytes());
5551
+ return Err(error);
5552
+ }
5539
5553
  state.ledger.shared.reserve(anchors());
5540
5554
  state.set_classifier_charge(&slot, 0);
5541
5555
  state.register_generation(&derived, generation);
@@ -9124,6 +9138,15 @@ impl NativeStore {
9124
9138
  if let Some((_, bytes)) = &pledge {
9125
9139
  state.transient_bytes += bytes;
9126
9140
  }
9141
+ let pending_charge = if publishing {
9142
+ pending_charge
9143
+ } else {
9144
+ state
9145
+ .ledger
9146
+ .shared
9147
+ .settle_existing_index_registry(&load.activity.registry_witness());
9148
+ Self::unpublished_load_charge(&load)
9149
+ };
9127
9150
  state.set_load_charge(&slot, pending_charge);
9128
9151
  lease = pledge.map(|(token, bytes)| {
9129
9152
  (token, ProjectionReservation { store: self, bytes })
@@ -1046,19 +1046,22 @@ impl ActivityIndex {
1046
1046
  .map_or(0, |undo| undo.prefix_bytes),
1047
1047
  )
1048
1048
  };
1049
- let shared_prompt = previous
1049
+ let shared_turn = previous
1050
1050
  .and_then(|prior| {
1051
1051
  let at = prior.turns.len().checked_sub(1)?;
1052
1052
  let old = &prior.turns[at];
1053
1053
  let new = &self.turns[at];
1054
- (!Arc::ptr_eq(old, new) && Arc::ptr_eq(&old.prompt, &new.prompt))
1055
- .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
+ })
1056
1059
  })
1057
1060
  .unwrap_or(0);
1058
1061
  let payload = self.turns.last().map_or(0, |turn| {
1059
1062
  turn.prefix_turn_bytes - shared_turns + turn.prefix_call_bytes
1060
1063
  - shared_calls
1061
- - shared_prompt
1064
+ - shared_turn
1062
1065
  });
1063
1066
  turns + uuids + results + payload + undo
1064
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:?}");
@@ -119,7 +119,8 @@ impl AllocationOwner {
119
119
 
120
120
  impl Drop for AllocationOwner {
121
121
  fn drop(&mut self) {
122
- if self.pending.swap(false, Ordering::AcqRel) {
122
+ let pending = self.pending.swap(false, Ordering::AcqRel);
123
+ if pending {
123
124
  self.registry
124
125
  .pending_bytes
125
126
  .fetch_sub(self.bytes, Ordering::AcqRel);
@@ -133,6 +134,11 @@ impl Drop for AllocationOwner {
133
134
  state.unqueue(self.id);
134
135
  state.owners.remove(&self.id);
135
136
  }
137
+ if pending {
138
+ self.registry
139
+ .hook
140
+ .notify(LedgerEvent::IndexRegistryChanged(self.registry_id()));
141
+ }
136
142
  }
137
143
  }
138
144
 
@@ -246,6 +246,7 @@ pub enum LedgerEvent {
246
246
  Chunk(usize),
247
247
  IndexAllocation(usize, usize),
248
248
  IndexRegistry(usize),
249
+ IndexRegistryChanged(usize),
249
250
  UnpublishedLoad(usize),
250
251
  }
251
252
 
@@ -279,6 +280,14 @@ impl ReleaseQueue {
279
280
  pub struct LedgerHook(OnceLock<(Weak<ReleaseQueue>, LedgerEvent)>);
280
281
 
281
282
  impl LedgerHook {
283
+ pub(crate) fn notify(&self, event: LedgerEvent) {
284
+ if let Some((queue, _)) = self.0.get() {
285
+ if let Some(queue) = queue.upgrade() {
286
+ queue.push(event);
287
+ }
288
+ }
289
+ }
290
+
282
291
  pub(crate) fn arm(&self, queue: &Arc<ReleaseQueue>, event: LedgerEvent) {
283
292
  let (armed_queue, armed_event) = self.0.get_or_init(|| (Arc::downgrade(queue), event));
284
293
  assert!(
@@ -3032,7 +3032,7 @@ fn classifier_stage_admits_its_lineage_key_exactly() {
3032
3032
  assert_eq!(
3033
3033
  state.ledger.classifier - before,
3034
3034
  arc_mirror::<ClassifierSlot>()
3035
- + MUTEX_STORAGE_MIRROR
3035
+ + 2 * MUTEX_STORAGE_MIRROR
3036
3036
  + fixture.pins[0].chunks.len() * size_of::<Arc<EntryChunk>>()
3037
3037
  + key.capacity()
3038
3038
  + slot.accounted.load(Ordering::Acquire),
@@ -3232,38 +3232,12 @@ fn append_reservation_mirror(
3232
3232
  + calls * (arc_mirror::<CachedCall>() + 4 * size_of::<Arc<CachedCall>>())
3233
3233
  }
3234
3234
 
3235
- fn seeded_step_reserve(fixture: &Fixture) -> (usize, usize) {
3236
- let native = &fixture.pins[0];
3237
- let (bytes, calls, results) = (SEEDED_EVENTS..SEEDED_EVENTS + SEEDED_STEP)
3238
- .map(|position| native.entry(position))
3239
- .fold(
3240
- (0usize, 0usize, 0usize),
3241
- |(bytes, calls, results), entry| {
3242
- let charge = entry_charge(entry);
3243
- (
3244
- bytes + charge.owned_capacity_bytes + charge.opaque_dom_accounted_bytes,
3245
- calls + entry.tool_uses().count(),
3246
- results + entry.tool_results().count(),
3247
- )
3248
- },
3249
- );
3250
- let slot = seeded_slot(fixture);
3251
- let stage = slot.work.lock().unwrap();
3252
- assert_eq!(stage.indexed, SEEDED_EVENTS);
3253
- let indexed: Vec<&Entry> = (0..SEEDED_EVENTS)
3254
- .map(|position| native.entry(position))
3255
- .collect();
3256
- let reserve = 2 * bytes
3257
- + SEEDED_STEP * (size_of::<&Entry>() + size_of::<bool>())
3258
- + append_reservation_mirror(
3259
- &stage.activity,
3260
- slot.seed.as_ref().expect("seeded stage").activity(),
3261
- &indexed,
3262
- SEEDED_STEP,
3263
- calls,
3264
- results,
3265
- );
3266
- (reserve, 2 * bytes + SEEDED_STEP)
3235
+ fn seeded_step_input_reserve(fixture: &Fixture) -> usize {
3236
+ let bytes = (SEEDED_EVENTS..SEEDED_EVENTS + SEEDED_STEP)
3237
+ .map(|position| entry_charge(fixture.pins[0].entry(position)))
3238
+ .map(|charge| charge.owned_capacity_bytes + charge.opaque_dom_accounted_bytes)
3239
+ .sum::<usize>();
3240
+ 2 * bytes + SEEDED_STEP
3267
3241
  }
3268
3242
 
3269
3243
  #[test]
@@ -3273,11 +3247,7 @@ fn seeded_classifier_step_admits_its_append_growth_before_appending() {
3273
3247
  for background in [false, true] {
3274
3248
  let build = || seeded_classifier_fixture(&source, "seeded", background);
3275
3249
  let exact = exact_headroom(&build, &seeded_step_parked);
3276
- let (reserve, old_reserve) = seeded_step_reserve(&build());
3277
- assert_eq!(
3278
- exact, reserve,
3279
- "{site}: the step admission is not the input heuristic plus the container growth"
3280
- );
3250
+ let old_reserve = seeded_step_input_reserve(&build());
3281
3251
  let refused = build();
3282
3252
  let slot = seeded_slot(&refused);
3283
3253
  let before = slot.accounted.load(Ordering::Acquire);
@@ -3327,7 +3297,7 @@ fn seeded_classifier_step_admits_its_append_growth_before_appending() {
3327
3297
  assert_eq!(
3328
3298
  state.ledger.classifier,
3329
3299
  arc_mirror::<ClassifierSlot>()
3330
- + MUTEX_STORAGE_MIRROR
3300
+ + 2 * MUTEX_STORAGE_MIRROR
3331
3301
  + fitted.pins[0].chunks.len() * size_of::<Arc<EntryChunk>>()
3332
3302
  + key.capacity()
3333
3303
  + after,
@@ -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)
@@ -259,7 +259,7 @@ impl<T: Clone> Vector<T> {
259
259
  ))
260
260
  }
261
261
  pub(crate) fn bytes_since(&self, previous: Option<&Self>) -> usize {
262
- 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)) {
263
263
  0
264
264
  } else {
265
265
  Self::metadata_bound(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
  )));
@@ -104,7 +104,7 @@ fn resume(store: &NativeStore, response: &Value, owner: &Value, cancel: &Cancell
104
104
  Some("incomplete"),
105
105
  "{response:?}"
106
106
  );
107
- store.request(
107
+ store.test_request(
108
108
  &json!({"schema":SCHEMA,"id":"race-resume","operation":"resume",
109
109
  "cursor":response["cursor"]}),
110
110
  owner,
@@ -509,7 +509,12 @@ fn old_generation_first_lift_after_append_preserves_each_classifier_and_late_res
509
509
  "timestamp":"2026-01-02T03:04:07Z","message":{"content":[{"type":"tool_result","tool_use_id":"edit","content":"done"}]}})
510
510
  );
511
511
  let source = RaceSource::new(&[user("a"), tool, user("b")].concat());
512
- let store = race_store();
512
+ let store = NativeStore::new_agent(
513
+ &json!({"max_read_bytes_per_step":128,"max_events_per_step":2,
514
+ "max_entry_bytes":8192,"max_retained_bytes":32*1024*1024,
515
+ "reserved_hook_accounted_bytes":4096,"max_leases":16,"reserved_hook_leases":1}),
516
+ )
517
+ .unwrap();
513
518
  let owner = context(&store, &source, "reader");
514
519
  store
515
520
  .register_classifier(
@@ -535,14 +540,14 @@ fn old_generation_first_lift_after_append_preserves_each_classifier_and_late_res
535
540
  .unwrap();
536
541
  let old_response = finish(
537
542
  &store,
538
- store.request(&acquire(&source.path), &owner, &Cancellation::default()),
543
+ store.request_agent(&acquire(&source.path), &owner, &Cancellation::default()),
539
544
  &owner,
540
545
  );
541
546
  let old = pin(&store, &old_response, &owner);
542
547
  source.append(&[result, user("c")].concat());
543
548
  let new_response = finish(
544
549
  &store,
545
- store.request(&acquire(&source.path), &owner, &Cancellation::default()),
550
+ store.request_agent(&acquire(&source.path), &owner, &Cancellation::default()),
546
551
  &owner,
547
552
  );
548
553
  let new = pin(&store, &new_response, &owner);