cc-transcript 14.45.31__tar.gz → 14.45.33__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 (237) hide show
  1. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/PKG-INFO +1 -1
  2. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/pyproject.toml +1 -1
  3. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/lib.rs +1 -0
  4. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot.rs +142 -30
  5. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_compact_codex.rs +3 -4
  6. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_compact_codex_tests.rs +32 -32
  7. cc_transcript-14.45.33/rust/crates/core/src/snapshot_graph_validation_tests.rs +350 -0
  8. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_ledger.rs +8 -0
  9. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_ledger_tests.rs +138 -69
  10. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_prepared.rs +258 -52
  11. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_prepared_disk.rs +252 -86
  12. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_prepared_service.rs +376 -128
  13. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_projection.rs +56 -7
  14. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_query_hydration_tests.rs +16 -14
  15. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_regressions.rs +10 -4
  16. cc_transcript-14.45.33/rust/crates/core/src/snapshot_skill_demand_controls.rs +82 -0
  17. cc_transcript-14.45.33/rust/crates/core/src/snapshot_skill_demand_tests.rs +402 -0
  18. cc_transcript-14.45.33/rust/crates/core/src/snapshot_skill_framing.rs +200 -0
  19. cc_transcript-14.45.33/rust/crates/core/src/snapshot_skills.rs +581 -0
  20. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/Cargo.lock +0 -0
  21. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/Cargo.toml +0 -0
  22. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/LICENSE +0 -0
  23. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/README.md +0 -0
  24. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/__init__.py +0 -0
  25. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/__init__.pyi +0 -0
  26. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/_native.pyi +0 -0
  27. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/activity.py +0 -0
  28. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/activity_probe.py +0 -0
  29. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/builders.py +0 -0
  30. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/codex.py +0 -0
  31. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/command.py +0 -0
  32. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/context.py +0 -0
  33. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/corrections.py +0 -0
  34. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/cost.py +0 -0
  35. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/decision_store.py +0 -0
  36. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/decisions.py +0 -0
  37. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/discovery.py +0 -0
  38. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/disktruth.py +0 -0
  39. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/evidence.py +0 -0
  40. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/extract/__init__.py +0 -0
  41. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/extract/correct.py +0 -0
  42. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/facts.py +0 -0
  43. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/filterspec.py +0 -0
  44. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/heartbeats.py +0 -0
  45. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/ids.py +0 -0
  46. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/judge/__init__.py +0 -0
  47. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/judge/llm.py +0 -0
  48. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/judge/similar.py +0 -0
  49. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/judge/verdicts.py +0 -0
  50. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/ledger.py +0 -0
  51. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/literals.py +0 -0
  52. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/mining/__init__.py +0 -0
  53. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/mining/candidates.py +0 -0
  54. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/mining/confidence.py +0 -0
  55. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/mining/engine.py +0 -0
  56. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/mining/formats.py +0 -0
  57. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/mining/sampling.py +0 -0
  58. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/mining/signals.py +0 -0
  59. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/mining/sourcekind.py +0 -0
  60. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/mining/spec.py +0 -0
  61. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/mining/store.py +0 -0
  62. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/models.py +0 -0
  63. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/nlp.py +0 -0
  64. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/notifications.py +0 -0
  65. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/parser.py +0 -0
  66. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/py.typed +0 -0
  67. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/query.py +0 -0
  68. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/render.py +0 -0
  69. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/sentiment/__init__.py +0 -0
  70. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/sentiment/buckets.py +0 -0
  71. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/sentiment/data/afinn-en-165.tsv +0 -0
  72. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/sentiment/data/domain_overrides.tsv +0 -0
  73. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/sentiment/data/en-ewt.udpipe +0 -0
  74. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/sentiment/engine.py +0 -0
  75. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/sentiment/lexicon.py +0 -0
  76. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/sentiment/scorespec.py +0 -0
  77. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/snapshot_schema/config.schema.json +0 -0
  78. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/snapshot_schema/context.schema.json +0 -0
  79. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/snapshot_schema/request.schema.json +0 -0
  80. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/snapshot_schema/response.schema.json +0 -0
  81. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/snapshot_schema/tool_registry.schema.json +0 -0
  82. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/snapshots.py +0 -0
  83. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/synthetic.py +0 -0
  84. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/tools.py +0 -0
  85. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/cc_transcript/watch.py +0 -0
  86. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/cli/Cargo.toml +0 -0
  87. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/cli/src/commands/blame.rs +0 -0
  88. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/cli/src/commands/corpus.rs +0 -0
  89. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/cli/src/commands/corrections.rs +0 -0
  90. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/cli/src/commands/digest.rs +0 -0
  91. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/cli/src/commands/facts.rs +0 -0
  92. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/cli/src/commands/grep.rs +0 -0
  93. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/cli/src/commands/list.rs +0 -0
  94. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/cli/src/commands/mod.rs +0 -0
  95. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/cli/src/commands/scratchpad.rs +0 -0
  96. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/cli/src/commands/show.rs +0 -0
  97. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/cli/src/commands/slice.rs +0 -0
  98. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/cli/src/commands/stats.rs +0 -0
  99. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/cli/src/commands/watch.rs +0 -0
  100. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/cli/src/lib.rs +0 -0
  101. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/cli/src/output.rs +0 -0
  102. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/cli/src/target.rs +0 -0
  103. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/cli/src/timearg.rs +0 -0
  104. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/Cargo.toml +0 -0
  105. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/benches/parse.rs +0 -0
  106. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/benches/render.rs +0 -0
  107. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/benches/toolcall.rs +0 -0
  108. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/build.rs +0 -0
  109. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/activity.rs +0 -0
  110. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/actor.rs +0 -0
  111. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/blame.rs +0 -0
  112. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/buckets.rs +0 -0
  113. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/codex/discovery.rs +0 -0
  114. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/codex/lower.rs +0 -0
  115. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/codex/mod.rs +0 -0
  116. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/codex/parse.rs +0 -0
  117. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/codex/probe.rs +0 -0
  118. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/codex/protocol.rs +0 -0
  119. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/codex/types.rs +0 -0
  120. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/command.rs +0 -0
  121. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/context.rs +0 -0
  122. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/corrections.rs +0 -0
  123. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/cost.rs +0 -0
  124. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/discovery.rs +0 -0
  125. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/facts.rs +0 -0
  126. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/feedback.rs +0 -0
  127. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/filter.rs +0 -0
  128. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/gateway.rs +0 -0
  129. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/ids.rs +0 -0
  130. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/judge.rs +0 -0
  131. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/literals/command.rs +0 -0
  132. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/literals/corrections.rs +0 -0
  133. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/literals/feedback.rs +0 -0
  134. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/literals/mining.rs +0 -0
  135. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/literals/mod.rs +0 -0
  136. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/literals/protocol.rs +0 -0
  137. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/notifications.rs +0 -0
  138. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/parse.rs +0 -0
  139. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/protocol.rs +0 -0
  140. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/pystr.rs +0 -0
  141. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/query.rs +0 -0
  142. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/render.rs +0 -0
  143. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/request_body.rs +0 -0
  144. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/rng.rs +0 -0
  145. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/scan.rs +0 -0
  146. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/scan_checkpoint.rs +0 -0
  147. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/scan_grep.rs +0 -0
  148. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/scan_grep_stream.rs +0 -0
  149. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/scan_grep_stream_tests.rs +0 -0
  150. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/scan_index.rs +0 -0
  151. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/scan_projection.rs +0 -0
  152. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/scan_regressions.rs +0 -0
  153. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/scan_stream.rs +0 -0
  154. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/schema.rs +0 -0
  155. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_activity.rs +0 -0
  156. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_admission_report_tests.rs +0 -0
  157. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_cache.rs +0 -0
  158. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_cache_tests.rs +0 -0
  159. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_catalog.rs +0 -0
  160. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_catalog_owner.rs +0 -0
  161. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_catalog_tests.rs +0 -0
  162. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_codec.rs +0 -0
  163. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_codex_append.rs +0 -0
  164. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_common_borrowed_parent_tests.rs +0 -0
  165. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_direct_tail.rs +0 -0
  166. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_direct_tail_tests.rs +0 -0
  167. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_hydrate_budget_tests.rs +0 -0
  168. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_hydration_observations.rs +0 -0
  169. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_interaction_api.rs +0 -0
  170. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_interaction_api_tests.rs +0 -0
  171. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_interactions.rs +0 -0
  172. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_interactions_tests.rs +0 -0
  173. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_labels.rs +0 -0
  174. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_load_charge_audit_tests.rs +0 -0
  175. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_load_charge_work_tests.rs +0 -0
  176. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_memory.rs +0 -0
  177. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_owned.rs +0 -0
  178. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_raw_materialization.rs +0 -0
  179. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_raw_projection.rs +0 -0
  180. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_raw_projection_tests.rs +0 -0
  181. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_raw_scope.rs +0 -0
  182. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_raw_scope_tests.rs +0 -0
  183. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_raw_tail_tests.rs +0 -0
  184. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_raw_window.rs +0 -0
  185. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_root_warm.rs +0 -0
  186. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_sidechain_absence.rs +0 -0
  187. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_sidechain_absence_tests.rs +0 -0
  188. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_source_cache_index_tests.rs +0 -0
  189. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_spine.rs +0 -0
  190. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_spine_tests.rs +0 -0
  191. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_symlink_proof.rs +0 -0
  192. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_text.rs +0 -0
  193. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/sqlite.rs +0 -0
  194. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/toolcall.rs +0 -0
  195. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/types.rs +0 -0
  196. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/value.rs +0 -0
  197. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/src/watch.rs +0 -0
  198. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/tests/sonic_arena_model.rs +0 -0
  199. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/core/tests/std_allocation_model.rs +0 -0
  200. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/Cargo.toml +0 -0
  201. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/build.rs +0 -0
  202. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/data/command_prefix_pins.tsv +0 -0
  203. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/src/actor_bridge.rs +0 -0
  204. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/src/bin/stub_gen.rs +0 -0
  205. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/src/codex.rs +0 -0
  206. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/src/command.rs +0 -0
  207. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/src/context.rs +0 -0
  208. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/src/corrections.rs +0 -0
  209. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/src/discovery.rs +0 -0
  210. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/src/feedback.rs +0 -0
  211. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/src/judge.rs +0 -0
  212. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/src/lexicon.rs +0 -0
  213. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/src/lib.rs +0 -0
  214. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/src/mining.rs +0 -0
  215. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/src/nlp.rs +0 -0
  216. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/src/python.rs +0 -0
  217. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/src/render.rs +0 -0
  218. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/src/score.rs +0 -0
  219. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/src/snapshot_decode.rs +0 -0
  220. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/src/snapshots.rs +0 -0
  221. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/src/sqlite.rs +0 -0
  222. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/src/toolcall.rs +0 -0
  223. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/src/views/attachment.rs +0 -0
  224. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/src/views/blocks.rs +0 -0
  225. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/src/views/command.rs +0 -0
  226. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/src/views/convert.rs +0 -0
  227. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/src/views/dunder.rs +0 -0
  228. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/src/views/events.rs +0 -0
  229. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/src/views/meta.rs +0 -0
  230. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/src/views/mod.rs +0 -0
  231. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/src/views/print.rs +0 -0
  232. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/src/views/store.rs +0 -0
  233. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/src/views/system.rs +0 -0
  234. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/src/views/toolcall.rs +0 -0
  235. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/src/views/toolresult.rs +0 -0
  236. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/src/views/transcript.rs +0 -0
  237. {cc_transcript-14.45.31 → cc_transcript-14.45.33}/rust/crates/py/src/watch.rs +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cc-transcript
3
- Version: 14.45.31
3
+ Version: 14.45.33
4
4
  Classifier: Development Status :: 3 - Alpha
5
5
  Classifier: Environment :: Console
6
6
  Classifier: Intended Audience :: Developers
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "cc-transcript"
3
- version = "14.45.31" # informational — releases stamp the version from the git tag
3
+ version = "14.45.33" # 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"
@@ -50,6 +50,7 @@ pub mod snapshot_prepared;
50
50
  pub mod snapshot_prepared_disk;
51
51
  pub mod snapshot_projection;
52
52
  mod snapshot_raw_window;
53
+ mod snapshot_skill_framing;
53
54
  pub mod snapshot_text;
54
55
  #[cfg(feature = "sqlite")]
55
56
  pub mod sqlite;
@@ -917,6 +917,10 @@ enum PreparedSourceOutcome<'a> {
917
917
  cached: bool,
918
918
  },
919
919
  Pending(String),
920
+ SkillPending {
921
+ work: Box<PendingSkillSource>,
922
+ reservation: ProjectionReservation<'a>,
923
+ },
920
924
  Stored,
921
925
  Superseded,
922
926
  }
@@ -965,6 +969,11 @@ struct PendingPreparedSource {
965
969
  stamp: SourceStamp,
966
970
  }
967
971
 
972
+ enum PendingQuerySource {
973
+ Native(PendingPreparedSource),
974
+ Skills(Box<PendingSkillSource>),
975
+ }
976
+
968
977
  #[derive(Clone)]
969
978
  struct PreparedSourceRef {
970
979
  path: PathBuf,
@@ -1029,6 +1038,15 @@ fn sources_anchor(sources: &Arc<[PreparedSourceRef]>) -> Anchor {
1029
1038
  Anchor::warm(slice_key(sources), source_ref_bytes(sources))
1030
1039
  }
1031
1040
 
1041
+ fn graph_header_anchor(header: &Arc<PreparedGraphHeader>) -> Anchor {
1042
+ Anchor::warm(
1043
+ Arc::as_ptr(header) as usize,
1044
+ arc_bytes::<PreparedGraphHeader>()
1045
+ + value_bytes(&header.handle)
1046
+ + value_bytes(&header.classifier),
1047
+ )
1048
+ }
1049
+
1032
1050
  fn positions_anchor(positions: &Arc<[(SourceIdentity, usize)]>) -> Anchor {
1033
1051
  Anchor::warm(
1034
1052
  slice_key(positions),
@@ -1059,14 +1077,6 @@ fn sidechain_dir_bytes(sidechain_dirs: &Arc<[(PathBuf, Option<SourceStamp>)]>) -
1059
1077
  .sum::<usize>()
1060
1078
  }
1061
1079
 
1062
- fn stamp_bytes(stamps: &Vec<(PathBuf, SourceStamp)>) -> usize {
1063
- stamps.capacity() * size_of::<(PathBuf, SourceStamp)>()
1064
- + stamps
1065
- .iter()
1066
- .map(|(path, _)| path.capacity())
1067
- .sum::<usize>()
1068
- }
1069
-
1070
1080
  fn task_bytes(task: &GraphTask) -> usize {
1071
1081
  match task {
1072
1082
  GraphTask::Visit {
@@ -1153,7 +1163,7 @@ struct PreparedQueryCursor {
1153
1163
  claimant: String,
1154
1164
  graph_id: String,
1155
1165
  query: Value,
1156
- pending: Option<PendingPreparedSource>,
1166
+ pending: Option<PendingQuerySource>,
1157
1167
  input_records: Option<VecDeque<String>>,
1158
1168
  observers: Observers,
1159
1169
  need: FactsNeed,
@@ -1163,18 +1173,21 @@ struct PreparedQueryCursor {
1163
1173
  expires: u64,
1164
1174
  }
1165
1175
 
1176
+ struct PreparedGraphHeader {
1177
+ handle: Value,
1178
+ classifier: Value,
1179
+ }
1180
+
1166
1181
  struct PreparedGraph {
1167
1182
  claimant: String,
1168
1183
  registry_generation: String,
1169
1184
  admission: String,
1170
1185
  authority: Value,
1171
1186
  root: Arc<TranscriptSnapshot>,
1172
- root_handle: Value,
1173
- classifier: Value,
1187
+ header: Arc<PreparedGraphHeader>,
1174
1188
  root_facts: Arc<crate::snapshot_prepared::PreparedFacts>,
1175
1189
  root_slices: Table<String, Arc<crate::snapshot_prepared::PreparedFacts>>,
1176
1190
  revision: String,
1177
- stamps: Vec<(PathBuf, SourceStamp)>,
1178
1191
  validated: bool,
1179
1192
  sources: Arc<[PreparedSourceRef]>,
1180
1193
  sidechain_dirs: Arc<[(PathBuf, Option<SourceStamp>)]>,
@@ -2005,9 +2018,6 @@ impl Charge<String> for PreparedGraph {
2005
2018
  + self.admission.capacity()
2006
2019
  + self.revision.capacity()
2007
2020
  + value_bytes(&self.authority)
2008
- + value_bytes(&self.root_handle)
2009
- + value_bytes(&self.classifier)
2010
- + stamp_bytes(&self.stamps)
2011
2021
  + self.root_slices.reserved_bytes()
2012
2022
  + self.root_slices.keys().map(String::capacity).sum::<usize>()
2013
2023
  }
@@ -2028,6 +2038,7 @@ impl PreparedGraph {
2028
2038
  std::iter::once(facts_anchor(&self.root_facts))
2029
2039
  .chain(self.root_slices.values().map(facts_anchor))
2030
2040
  .chain([
2041
+ graph_header_anchor(&self.header),
2031
2042
  sources_anchor(&self.sources),
2032
2043
  sidechain_dirs_anchor(&self.sidechain_dirs),
2033
2044
  ])
@@ -2065,8 +2076,11 @@ impl Charge<String> for PreparedQueryCursor {
2065
2076
  + self.claimant.capacity()
2066
2077
  + self.graph_id.capacity()
2067
2078
  + value_bytes(&self.query)
2068
- + self.pending.as_ref().map_or(0, |pending| {
2069
- pending.token.capacity() + pending.path.capacity()
2079
+ + self.pending.as_ref().map_or(0, |pending| match pending {
2080
+ PendingQuerySource::Native(pending) => {
2081
+ pending.token.capacity() + pending.path.capacity()
2082
+ }
2083
+ PendingQuerySource::Skills(work) => work.accounted_bytes(),
2070
2084
  })
2071
2085
  + self.input_records.as_ref().map_or(0, |records| {
2072
2086
  records.capacity() * size_of::<String>()
@@ -2150,6 +2164,7 @@ pub(crate) struct StoreState {
2150
2164
  catalog_owners: Ledgered<usize, CatalogOwner>,
2151
2165
  recent_codex: Table<SourceIdentity, u64>,
2152
2166
  loads: Table<SourceIdentity, Arc<LoadSlot>>,
2167
+ skill_admissions: Arc<AtomicUsize>,
2153
2168
  prepared_loads: Table<SourceIdentity, (Arc<LoadSlot>, u64)>,
2154
2169
  leases: Ledgered<String, Lease>,
2155
2170
  waiters: Ledgered<String, Waiter>,
@@ -2194,6 +2209,8 @@ pub(crate) struct StoreState {
2194
2209
  #[cfg(test)]
2195
2210
  retained_owners: Vec<Weak<crate::snapshot_prepared::PreparedFacts>>,
2196
2211
  #[cfg(test)]
2212
+ retained_graph_input_owners: Vec<(Weak<[PreparedSourceRef]>, Weak<PreparedGraphHeader>)>,
2213
+ #[cfg(test)]
2197
2214
  retained_append_owners: Vec<Weak<CompactCodexIndex>>,
2198
2215
  }
2199
2216
 
@@ -2227,6 +2244,7 @@ impl StoreState {
2227
2244
  catalog_owners: Ledgered::new(work.clone()),
2228
2245
  recent_codex: Table::new(work.clone()),
2229
2246
  loads: Table::new(work.clone()),
2247
+ skill_admissions: Arc::new(AtomicUsize::new(0)),
2230
2248
  prepared_loads: Table::new(work.clone()),
2231
2249
  leases: Ledgered::new(work.clone()),
2232
2250
  waiters: Ledgered::new(work.clone()),
@@ -2271,6 +2289,8 @@ impl StoreState {
2271
2289
  #[cfg(test)]
2272
2290
  retained_owners: Vec::new(),
2273
2291
  #[cfg(test)]
2292
+ retained_graph_input_owners: Vec::new(),
2293
+ #[cfg(test)]
2274
2294
  retained_append_owners: Vec::new(),
2275
2295
  }
2276
2296
  }
@@ -3181,6 +3201,27 @@ impl StoreState {
3181
3201
  }
3182
3202
  }
3183
3203
 
3204
+ fn retained_graph_inputs<'a>(
3205
+ &mut self,
3206
+ store: &'a NativeStore,
3207
+ sources: Arc<[PreparedSourceRef]>,
3208
+ header: Arc<PreparedGraphHeader>,
3209
+ ) -> RetainedGraphInputs<'a> {
3210
+ let identities = [slice_key(&sources), Arc::as_ptr(&header) as usize];
3211
+ for identity in identities {
3212
+ self.ledger.shared.retain(identity);
3213
+ }
3214
+ #[cfg(test)]
3215
+ self.retained_graph_input_owners
3216
+ .push((Arc::downgrade(&sources), Arc::downgrade(&header)));
3217
+ RetainedGraphInputs {
3218
+ store,
3219
+ sources: Some(sources),
3220
+ header: Some(header),
3221
+ identities,
3222
+ }
3223
+ }
3224
+
3184
3225
  fn insert_prepared_graph(&mut self, graph_id: String, graph: Arc<Mutex<PreparedGraph>>) {
3185
3226
  self.prepared_graphs.reserve_for(&graph_id);
3186
3227
  let prepared = graph.lock().expect("prepared graph");
@@ -3420,6 +3461,8 @@ pub struct NativeStore {
3420
3461
  #[cfg(test)]
3421
3462
  read_hook: Mutex<Option<Arc<dyn Fn() + Send + Sync>>>,
3422
3463
  #[cfg(test)]
3464
+ graph_validation_hook: Mutex<Option<Arc<dyn Fn(&Path) + Send + Sync>>>,
3465
+ #[cfg(test)]
3423
3466
  decode_hook: Mutex<Option<Arc<dyn Fn(&'static str) + Send + Sync>>>,
3424
3467
  #[cfg(test)]
3425
3468
  pin_hook: Mutex<Option<Arc<dyn Fn(&Value) -> Result<(), SnapshotError> + Send + Sync>>>,
@@ -3539,6 +3582,64 @@ struct RetainedFacts<'a> {
3539
3582
  facts: Option<Arc<crate::snapshot_prepared::PreparedFacts>>,
3540
3583
  }
3541
3584
 
3585
+ struct RetainedGraphInputs<'a> {
3586
+ store: &'a NativeStore,
3587
+ sources: Option<Arc<[PreparedSourceRef]>>,
3588
+ header: Option<Arc<PreparedGraphHeader>>,
3589
+ identities: [usize; 2],
3590
+ }
3591
+
3592
+ impl RetainedGraphInputs<'_> {
3593
+ fn sources(&self) -> &Arc<[PreparedSourceRef]> {
3594
+ self.sources
3595
+ .as_ref()
3596
+ .expect("retained graph sources are live")
3597
+ }
3598
+
3599
+ fn header(&self) -> &Arc<PreparedGraphHeader> {
3600
+ self.header.as_ref().expect("retained graph header is live")
3601
+ }
3602
+ }
3603
+
3604
+ impl Drop for RetainedGraphInputs<'_> {
3605
+ fn drop(&mut self) {
3606
+ let mut state = self.store.lock_state();
3607
+ let sources = self
3608
+ .sources
3609
+ .take()
3610
+ .expect("retained graph sources are live");
3611
+ let header = self.header.take().expect("retained graph header is live");
3612
+ for identity in self.identities {
3613
+ state.ledger.shared.release(identity);
3614
+ }
3615
+ #[cfg(test)]
3616
+ {
3617
+ let registered = state
3618
+ .retained_graph_input_owners
3619
+ .iter()
3620
+ .position(|(source, field)| {
3621
+ std::ptr::addr_eq(source.as_ptr(), Arc::as_ptr(&sources))
3622
+ && field.as_ptr() == Arc::as_ptr(&header)
3623
+ })
3624
+ .expect("retained graph inputs are registered");
3625
+ state.retained_graph_input_owners.swap_remove(registered);
3626
+ }
3627
+ drop(header);
3628
+ drop(sources);
3629
+ }
3630
+ }
3631
+
3632
+ struct PreparedRootValidation {
3633
+ stamp: SourceStamp,
3634
+ deadline: u64,
3635
+ }
3636
+
3637
+ struct PreparedGraphValidation<'a> {
3638
+ inputs: RetainedGraphInputs<'a>,
3639
+ root: PreparedRootValidation,
3640
+ validate_members: bool,
3641
+ }
3642
+
3542
3643
  impl RetainedFacts<'_> {
3543
3644
  fn facts(&self) -> &Arc<crate::snapshot_prepared::PreparedFacts> {
3544
3645
  self.facts
@@ -3926,6 +4027,8 @@ impl NativeStore {
3926
4027
  #[cfg(test)]
3927
4028
  read_hook: Mutex::new(None),
3928
4029
  #[cfg(test)]
4030
+ graph_validation_hook: Mutex::new(None),
4031
+ #[cfg(test)]
3929
4032
  decode_hook: Mutex::new(None),
3930
4033
  #[cfg(test)]
3931
4034
  pin_hook: Mutex::new(None),
@@ -5207,7 +5310,7 @@ impl NativeStore {
5207
5310
  .collect();
5208
5311
  for token in expired_queries {
5209
5312
  if let Some(query) = state.prepared_queries.remove(&token) {
5210
- if let Some(pending) = query.pending {
5313
+ if let Some(PendingQuerySource::Native(pending)) = query.pending {
5211
5314
  state.waiters.remove(&pending.token);
5212
5315
  }
5213
5316
  if query.remaining.deadline_unix_ms <= now {
@@ -6054,14 +6157,14 @@ impl NativeStore {
6054
6157
  + claimant.capacity()
6055
6158
  + graph_id.capacity()
6056
6159
  + value_bytes(query)
6057
- + pending.as_ref().map_or(
6058
- 0,
6059
- |PendingPreparedSource {
6060
- token,
6061
- path,
6062
- stamp: _,
6063
- }| token.capacity() + path.capacity(),
6064
- )
6160
+ + pending.as_ref().map_or(0, |pending| match pending {
6161
+ PendingQuerySource::Native(PendingPreparedSource {
6162
+ token,
6163
+ path,
6164
+ stamp: _,
6165
+ }) => token.capacity() + path.capacity(),
6166
+ PendingQuerySource::Skills(work) => Self::audit_skill_source_bytes(work),
6167
+ })
6065
6168
  + input_records.as_ref().map_or(0, |records| {
6066
6169
  records.capacity() * size_of::<String>()
6067
6170
  + records.iter().map(String::capacity).sum::<usize>()
@@ -6305,6 +6408,7 @@ impl NativeStore {
6305
6408
 
6306
6409
  fn bookkeeping_bytes(state: &StoreState) -> usize {
6307
6410
  size_of::<StoreState>()
6411
+ + arc_bytes::<AtomicUsize>()
6308
6412
  + state.ledger.shared.table_bytes()
6309
6413
  + state.registries.capacity_bytes()
6310
6414
  + state.generations.capacity_bytes()
@@ -7209,7 +7313,7 @@ impl NativeStore {
7209
7313
  released |= state.registered_builds.remove(token).is_some();
7210
7314
  released |= state.projections.remove(token).is_some();
7211
7315
  if let Some(query) = state.prepared_queries.remove(token) {
7212
- if let Some(pending) = query.pending {
7316
+ if let Some(PendingQuerySource::Native(pending)) = query.pending {
7213
7317
  state.waiters.remove(&pending.token);
7214
7318
  }
7215
7319
  released = true;
@@ -7255,7 +7359,7 @@ impl NativeStore {
7255
7359
  .is_some_and(|query| query.claimant == claimant)
7256
7360
  {
7257
7361
  if let Some(query) = state.prepared_queries.remove(token) {
7258
- if let Some(pending) = query.pending {
7362
+ if let Some(PendingQuerySource::Native(pending)) = query.pending {
7259
7363
  state.waiters.remove(&pending.token);
7260
7364
  }
7261
7365
  }
@@ -7827,7 +7931,7 @@ impl NativeStore {
7827
7931
  .collect();
7828
7932
  for query_token in discarded {
7829
7933
  if let Some(query) = state.prepared_queries.remove(&query_token) {
7830
- if let Some(pending) = query.pending {
7934
+ if let Some(PendingQuerySource::Native(pending)) = query.pending {
7831
7935
  state.waiters.remove(&pending.token);
7832
7936
  }
7833
7937
  }
@@ -12150,6 +12254,7 @@ include!("snapshot_symlink_proof.rs");
12150
12254
  include!("snapshot_catalog_owner.rs");
12151
12255
  include!("snapshot_sidechain_absence.rs");
12152
12256
  include!("snapshot_prepared_service.rs");
12257
+ include!("snapshot_skills.rs");
12153
12258
  include!("snapshot_hydration_observations.rs");
12154
12259
  include!("snapshot_cache.rs");
12155
12260
  include!("snapshot_root_warm.rs");
@@ -12226,6 +12331,8 @@ mod tests {
12226
12331
  include!("snapshot_raw_tail_tests.rs");
12227
12332
  include!("snapshot_direct_tail_tests.rs");
12228
12333
  include!("snapshot_query_hydration_tests.rs");
12334
+ include!("snapshot_skill_demand_controls.rs");
12335
+ include!("snapshot_skill_demand_tests.rs");
12229
12336
  include!("snapshot_compact_codex_tests.rs");
12230
12337
  include!("snapshot_hydrate_budget_tests.rs");
12231
12338
  include!("snapshot_interactions_tests.rs");
@@ -14907,7 +15014,12 @@ mod tests {
14907
15014
  .lock()
14908
15015
  .unwrap();
14909
15016
  assert!(prepared.sources.is_empty());
14910
- assert_eq!(prepared.stamps.len(), 1);
15017
+ assert_eq!(
15018
+ std::iter::once(prepared.root.canonical_path.as_path())
15019
+ .chain(prepared.sources.iter().map(|source| source.path.as_path()))
15020
+ .count(),
15021
+ 1
15022
+ );
14911
15023
  assert_eq!(state.counters[1], before);
14912
15024
  }
14913
15025
 
@@ -403,10 +403,9 @@ impl NativeStore {
403
403
  let inputs = reducer.inputs();
404
404
  crate::snapshot_codec::write_json(&mut std::io::sink(), &inputs, 16 * 1024 * 1024)
405
405
  .map_err(|_| SnapshotError::new(Status::Incomplete, "prepared predicate facts exceed source bound"))?;
406
- let mut facts = crate::snapshot_prepared::PreparedFacts {
407
- inputs, has_error: reducer.has_error(), overrides: crate::snapshot_prepared::OverrideFacts::Unloaded, accounted: 0,
408
- };
409
- facts.refresh_accounted();
406
+ let facts = crate::snapshot_prepared::PreparedFacts::index(
407
+ inputs, reducer.has_error(), crate::snapshot_prepared::OverrideFacts::Unloaded,
408
+ );
410
409
  let append = Arc::new(CompactCodexIndex { stamp, fence: origin, session_id: prior.session_id.clone(), index, reducer });
411
410
  let facts = Arc::new(facts);
412
411
  cancel.check(remaining.deadline_unix_ms)?;
@@ -71,7 +71,7 @@ fn prepared_cache_compact_codex_late_duplicate_results_match_complete_projection
71
71
  let facts = Arc::clone(&cached.facts);
72
72
  store.retain_cached_facts(&mut state, facts)
73
73
  };
74
- let old_inputs = sonic_rs::to_string(&old.facts().inputs).unwrap();
74
+ let old_inputs = sonic_rs::to_string(&old.facts().index_inputs()).unwrap();
75
75
  let suffixes = [
76
76
  (compact_output("initial-0", 1), true),
77
77
  (compact_output("initial-0", 0), false),
@@ -91,18 +91,18 @@ fn prepared_cache_compact_codex_late_duplicate_results_match_complete_projection
91
91
  let actual = Arc::clone(&store.lock_state().cached_prepared_facts(&stamp.identity).facts);
92
92
  let complete = compact_full_oracle(&paths[0]);
93
93
  for column in ["calls", "commands", "edited_files", "skills"] {
94
- assert_eq!(sonic_rs::to_string(&actual.inputs[column]).unwrap(),
95
- sonic_rs::to_string(&complete.inputs[column]).unwrap(), "column {column}");
94
+ assert_eq!(sonic_rs::to_string(&actual.index_inputs()[column]).unwrap(),
95
+ sonic_rs::to_string(&complete.index_inputs()[column]).unwrap(), "column {column}");
96
96
  }
97
- compact_assert_index_inputs(&actual.inputs, &complete.inputs);
98
- assert_eq!(actual.has_error, complete.has_error);
99
- assert_eq!(actual.has_error, expected);
97
+ compact_assert_index_inputs(&actual.index_inputs(), &complete.index_inputs());
98
+ assert_eq!(actual.has_error(), complete.has_error());
99
+ assert_eq!(actual.has_error(), expected);
100
100
  assert!(!actual.is_full());
101
101
  eprintln!("compact_result expected_error={expected} suffix={} read={} full_lowerings={}",suffix.len(),usage[1],usage[15]);
102
102
  assert!(usage[1] <= suffix.len() as u64 + 256);
103
103
  assert_eq!(usage[15], 0);
104
- assert!(!old.facts().has_error);
105
- assert_eq!(sonic_rs::to_string(&old.facts().inputs).unwrap(), old_inputs);
104
+ assert!(!old.facts().has_error());
105
+ assert_eq!(sonic_rs::to_string(&old.facts().index_inputs()).unwrap(), old_inputs);
106
106
  assert_eq!(store.lock_state().cached_prepared_facts(&stamp.identity).stamp, stamp);
107
107
  store.assert_conserved();
108
108
  }
@@ -119,7 +119,7 @@ fn prepared_cache_compact_codex_owner_retirement_keeps_only_guarded_metadata() {
119
119
  let owner = context("compact-owner");
120
120
  let root = hydration_root(&store, &source, &owner);
121
121
  let graph = hydration_graph(&store, &root, &paths, &owner);
122
- hydration_false(&hydration_query(&store, &graph, "definitely-absent", &owner).0);
122
+ hydration_false(&hydration_index_query(&store, &graph, "definitely-absent", &owner).0);
123
123
  let old_stamp = SourceStamp::of(&std::fs::metadata(&paths[0]).unwrap());
124
124
  let weak = Arc::downgrade(store.lock_state().cached_prepared_facts(&old_stamp.identity).append.as_ref().unwrap());
125
125
  let suffix = hydration_tool("next", "next");
@@ -145,7 +145,7 @@ fn prepared_cache_compact_codex_refusal_cancel_and_full_need_keep_authority() {
145
145
  let owner = context("compact-refusal");
146
146
  let root = hydration_root(&store, &source, &owner);
147
147
  let graph = hydration_graph(&store, &root, &paths, &owner);
148
- hydration_false(&hydration_query(&store, &graph, "definitely-absent", &owner).0);
148
+ hydration_false(&hydration_index_query(&store, &graph, "definitely-absent", &owner).0);
149
149
  let stamp = SourceStamp::of(&std::fs::metadata(&paths[0]).unwrap());
150
150
  let classifier = json!({"id":"native","version":"1"});
151
151
  let old_key = PreparedDiskKey::new(stamp, owner["registry_generation"].as_str().unwrap(),
@@ -180,7 +180,7 @@ fn prepared_cache_compact_codex_cancel_and_exact_refusal_never_publish_a_success
180
180
  let owner = context("compact-inflight-refusal");
181
181
  let root = hydration_root(&store, &source, &owner);
182
182
  let graph = hydration_graph(&store, &root, &paths, &owner);
183
- hydration_false(&hydration_query(&store, &graph, "definitely-absent", &owner).0);
183
+ hydration_false(&hydration_index_query(&store, &graph, "definitely-absent", &owner).0);
184
184
  let old_stamp = SourceStamp::of(&std::fs::metadata(&paths[0]).unwrap());
185
185
  let classifier = json!({"id":"native","version":"1"});
186
186
  let suffix = hydration_tool("never-published", "never-published");
@@ -255,7 +255,7 @@ fn prepared_cache_compact_codex_capacity_boundary_admits_successor_and_temporary
255
255
  let owner = context("compact-capacity-boundary");
256
256
  let root = hydration_root(&store,&source,&owner);
257
257
  let graph = hydration_graph(&store,&root,&paths,&owner);
258
- hydration_false(&hydration_query(&store,&graph,"definitely-absent",&owner).0);
258
+ hydration_false(&hydration_index_query(&store,&graph,"definitely-absent",&owner).0);
259
259
  let suffix = compact_assistant_line("capacity-new-boundary",echo);
260
260
  std::fs::OpenOptions::new().append(true).open(&paths[0]).unwrap().write_all(suffix.as_bytes()).unwrap();
261
261
  let stamp = SourceStamp::of(&std::fs::metadata(&paths[0]).unwrap());
@@ -276,7 +276,7 @@ fn prepared_cache_compact_codex_capacity_boundary_admits_successor_and_temporary
276
276
  assert!(admitted.append_peak>admitted.successor);
277
277
  assert!(admitted.lower_peak>0);
278
278
  let fresh = hydration_graph(&store,&root,&paths,&owner);
279
- let (answer,usage) = hydration_query(&store,&fresh,"definitely-absent",&owner);
279
+ let (answer,usage) = hydration_index_query(&store,&fresh,"definitely-absent",&owner);
280
280
  hydration_false(&answer);
281
281
  let state = store.lock_state();
282
282
  let new = &state.cached_prepared_facts(&stamp.identity).append.as_ref().unwrap().index;
@@ -328,14 +328,14 @@ fn prepared_cache_compact_codex_final_seal_parent_swap_rejects_positive_and_keep
328
328
  let owner = context("compact-parent-swap");
329
329
  let root = hydration_root(&store,&source,&owner);
330
330
  let graph = hydration_graph(&store,&root,&paths,&owner);
331
- hydration_false(&hydration_query(&store,&graph,"definitely-absent",&owner).0);
331
+ hydration_false(&hydration_index_query(&store,&graph,"definitely-absent",&owner).0);
332
332
  let old_stamp = SourceStamp::of(&std::fs::metadata(&path).unwrap());
333
333
  let old = {
334
334
  let mut state = store.lock_state();
335
335
  let facts = Arc::clone(&state.cached_prepared_facts(&old_stamp.identity).facts);
336
336
  store.retain_cached_facts(&mut state,facts)
337
337
  };
338
- let old_inputs = sonic_rs::to_string(&old.facts().inputs).unwrap();
338
+ let old_inputs = sonic_rs::to_string(&old.facts().index_inputs()).unwrap();
339
339
  let suffix = hydration_tool("swap-positive","swap-positive");
340
340
  std::fs::OpenOptions::new().append(true).open(&path).unwrap().write_all(suffix.as_bytes()).unwrap();
341
341
  let stamp = SourceStamp::of(&std::fs::metadata(&path).unwrap());
@@ -359,7 +359,7 @@ fn prepared_cache_compact_codex_final_seal_parent_swap_rejects_positive_and_keep
359
359
  assert_ne!(answer["data"]["value"].as_bool(),Some(true));
360
360
  assert!(!store.lock_state().prepared_facts.contains_key(&new_key));
361
361
  assert_eq!(store.lock_state().cached_prepared_facts(&old_stamp.identity).stamp,old_stamp);
362
- assert_eq!(sonic_rs::to_string(&old.facts().inputs).unwrap(),old_inputs);
362
+ assert_eq!(sonic_rs::to_string(&old.facts().index_inputs()).unwrap(),old_inputs);
363
363
  store.assert_conserved();
364
364
  drop(old);
365
365
  store.assert_conserved();
@@ -383,14 +383,14 @@ fn prepared_cache_compact_codex_cold_failed_call_is_restored_by_successful_resul
383
383
  let old = {
384
384
  let mut state = store.lock_state();
385
385
  let cached = state.cached_prepared_facts(&old_stamp.identity);
386
- assert!(cached.facts.inputs["calls"].as_array().unwrap().is_empty());
386
+ assert!(cached.facts.index_inputs()["calls"].as_array().unwrap().is_empty());
387
387
  assert_eq!(cached.append.as_ref().unwrap().reducer.calls.len(), 1);
388
388
  assert!(!state.latest.contains_key(&old_stamp.identity));
389
389
  assert!(!state.source_spines.contains_key(&old_stamp.identity.file()));
390
390
  let facts = Arc::clone(&cached.facts);
391
391
  store.retain_cached_facts(&mut state, facts)
392
392
  };
393
- let old_bytes = sonic_rs::to_string(&old.facts().inputs).unwrap();
393
+ let old_bytes = sonic_rs::to_string(&old.facts().index_inputs()).unwrap();
394
394
  let suffix = compact_output("initial-0", 0);
395
395
  std::fs::OpenOptions::new().append(true).open(&paths[0]).unwrap()
396
396
  .write_all(suffix.as_bytes()).unwrap();
@@ -402,17 +402,17 @@ fn prepared_cache_compact_codex_cold_failed_call_is_restored_by_successful_resul
402
402
  let actual = Arc::clone(&store.lock_state().cached_prepared_facts(&stamp.identity).facts);
403
403
  let complete = compact_full_oracle(&paths[0]);
404
404
  for column in ["calls", "commands", "edited_files", "skills"] {
405
- assert_eq!(sonic_rs::to_string(&actual.inputs[column]).unwrap(),
406
- sonic_rs::to_string(&complete.inputs[column]).unwrap(), "column {column}");
405
+ assert_eq!(sonic_rs::to_string(&actual.index_inputs()[column]).unwrap(),
406
+ sonic_rs::to_string(&complete.index_inputs()[column]).unwrap(), "column {column}");
407
407
  }
408
- compact_assert_index_inputs(&actual.inputs, &complete.inputs);
409
- assert_eq!(actual.has_error, complete.has_error);
410
- assert!(!actual.has_error);
411
- assert_eq!(actual.inputs["calls"].as_array().unwrap().len(), 1);
408
+ compact_assert_index_inputs(&actual.index_inputs(), &complete.index_inputs());
409
+ assert_eq!(actual.has_error(), complete.has_error());
410
+ assert!(!actual.has_error());
411
+ assert_eq!(actual.index_inputs()["calls"].as_array().unwrap().len(), 1);
412
412
  assert!(usage[1] <= suffix.len() as u64 + 256);
413
413
  assert_eq!(usage[15], 0);
414
- assert!(old.facts().has_error);
415
- assert_eq!(sonic_rs::to_string(&old.facts().inputs).unwrap(), old_bytes);
414
+ assert!(old.facts().has_error());
415
+ assert_eq!(sonic_rs::to_string(&old.facts().index_inputs()).unwrap(), old_bytes);
416
416
  store.assert_conserved();
417
417
  drop(old);
418
418
  store.assert_conserved();
@@ -434,7 +434,7 @@ fn prepared_cache_compact_codex_reducer_tables_grow_with_all_call_metadata_charg
434
434
  let owner = context("compact-reducer-growth");
435
435
  let root = hydration_root(&store, &source, &owner);
436
436
  let graph = hydration_graph(&store, &root, &paths, &owner);
437
- hydration_false(&hydration_query(&store, &graph, "definitely-absent", &owner).0);
437
+ hydration_false(&hydration_index_query(&store, &graph, "definitely-absent", &owner).0);
438
438
  let old_stamp = SourceStamp::of(&std::fs::metadata(&paths[0]).unwrap());
439
439
  let (old_calls, old_results, count, old_result_count) = {
440
440
  let state = store.lock_state();
@@ -455,7 +455,7 @@ fn prepared_cache_compact_codex_reducer_tables_grow_with_all_call_metadata_charg
455
455
  let previous = store.previous_compact_codex(stamp, &owner, &json!({"id":"native","version":"1"})).unwrap().unwrap();
456
456
  let old_inputs = previous.append.reducer.inputs();
457
457
  let fresh = hydration_graph(&store, &root, &paths, &owner);
458
- let (answer, usage) = hydration_query(&store, &fresh, "definitely-absent", &owner);
458
+ let (answer, usage) = hydration_index_query(&store, &fresh, "definitely-absent", &owner);
459
459
  hydration_false(&answer);
460
460
  let (selected, bindings) = {
461
461
  let mut state = store.lock_state();
@@ -487,11 +487,11 @@ fn prepared_cache_compact_codex_reducer_tables_grow_with_all_call_metadata_charg
487
487
  let actual = held.facts();
488
488
  let complete = compact_full_oracle(&paths[0]);
489
489
  for column in ["calls", "commands", "edited_files", "skills"] {
490
- assert_eq!(sonic_rs::to_string(&actual.inputs[column]).unwrap(),
491
- sonic_rs::to_string(&complete.inputs[column]).unwrap(), "column {column}");
490
+ assert_eq!(sonic_rs::to_string(&actual.index_inputs()[column]).unwrap(),
491
+ sonic_rs::to_string(&complete.index_inputs()[column]).unwrap(), "column {column}");
492
492
  }
493
- compact_assert_index_inputs(&actual.inputs, &complete.inputs);
494
- assert_eq!(actual.has_error, complete.has_error);
493
+ compact_assert_index_inputs(&actual.index_inputs(), &complete.index_inputs());
494
+ assert_eq!(actual.has_error(), complete.has_error());
495
495
  compact_assert_index_inputs(&previous.append.reducer.inputs(), &old_inputs);
496
496
  eprintln!("compact_reducer_growth old_calls={old_calls} new_calls={new_calls} old_results={old_results} new_results={new_results} suffix={} source_bytes={}",
497
497
  suffix.len(), usage[1]);