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.
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/PKG-INFO +1 -1
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/ids.py +1 -1
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/tools.py +3 -6
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/pyproject.toml +1 -1
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot.rs +26 -3
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_activity.rs +7 -4
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_compact_codex_tests.rs +10 -25
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_index_allocations.rs +7 -1
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_ledger.rs +9 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_ledger_tests.rs +9 -39
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_persistent.rs +2 -2
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_publication_shared_admission_tests.rs +1 -14
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_query_hydration_tests.rs +3 -47
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_regressions.rs +9 -4
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/Cargo.lock +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/Cargo.toml +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/LICENSE +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/README.md +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/__init__.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/__init__.pyi +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/_native.pyi +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/activity.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/activity_probe.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/builders.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/codex.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/command.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/context.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/corrections.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/cost.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/decision_store.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/decisions.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/discovery.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/disktruth.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/evidence.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/extract/__init__.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/extract/correct.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/facts.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/filterspec.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/heartbeats.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/judge/__init__.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/judge/llm.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/judge/similar.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/judge/verdicts.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/ledger.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/literals.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/mining/__init__.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/mining/candidates.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/mining/confidence.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/mining/engine.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/mining/formats.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/mining/sampling.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/mining/signals.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/mining/sourcekind.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/mining/spec.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/mining/store.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/models.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/nlp.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/notifications.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/parser.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/py.typed +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/query.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/render.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/sentiment/__init__.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/sentiment/buckets.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/sentiment/data/afinn-en-165.tsv +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/sentiment/data/domain_overrides.tsv +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/sentiment/data/en-ewt.udpipe +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/sentiment/engine.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/sentiment/lexicon.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/sentiment/scorespec.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/snapshot_schema/config.schema.json +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/snapshot_schema/context.schema.json +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/snapshot_schema/request.schema.json +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/snapshot_schema/response.schema.json +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/snapshot_schema/tool_registry.schema.json +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/snapshots.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/synthetic.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/watch.py +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/cli/Cargo.toml +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/cli/src/commands/blame.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/cli/src/commands/corpus.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/cli/src/commands/corrections.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/cli/src/commands/digest.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/cli/src/commands/facts.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/cli/src/commands/grep.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/cli/src/commands/list.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/cli/src/commands/mod.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/cli/src/commands/scratchpad.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/cli/src/commands/show.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/cli/src/commands/slice.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/cli/src/commands/stats.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/cli/src/commands/watch.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/cli/src/lib.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/cli/src/output.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/cli/src/target.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/cli/src/timearg.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/Cargo.toml +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/benches/parse.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/benches/render.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/benches/toolcall.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/build.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/activity.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/actor.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/blame.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/buckets.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/codex/discovery.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/codex/lower.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/codex/mod.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/codex/parse.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/codex/probe.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/codex/protocol.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/codex/review_continuation.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/codex/types.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/command.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/context.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/corrections.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/cost.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/discovery.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/facts.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/feedback.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/filter.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/gateway.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/ids.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/judge.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/lib.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/literals/command.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/literals/corrections.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/literals/feedback.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/literals/mining.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/literals/mod.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/literals/protocol.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/mining.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/mining_index.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/notifications.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/parse.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/protocol.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/pystr.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/query.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/render.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/request_body.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/rng.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/scan.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/scan_checkpoint.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/scan_grep.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/scan_grep_stream.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/scan_grep_stream_tests.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/scan_index.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/scan_projection.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/scan_regressions.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/scan_stream.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/schema.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_admission_report_tests.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_cache.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_cache_tests.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_catalog.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_catalog_owner.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_catalog_tests.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_codec.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_codex_append.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_common_borrowed_parent_tests.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_compact_codex.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_direct_tail.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_direct_tail_tests.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_graph_anchor_tests.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_graph_validation_tests.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_hydrate_budget_tests.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_hydration_observations.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_input.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_interaction_api.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_interaction_api_tests.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_interactions.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_interactions_tests.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_labels.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_load_charge_audit_tests.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_load_charge_work_tests.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_membership_progress.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_membership_progress_controls.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_membership_progress_tests.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_memory.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_owned.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_prepared.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_prepared_disk.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_prepared_service.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_projection.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_raw_materialization.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_raw_projection.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_raw_projection_tests.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_raw_scope.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_raw_scope_tests.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_raw_tail_tests.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_raw_window.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_registered_review_tests.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_reply_resume_tests.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_review.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_review_admission_tests.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_review_context.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_review_reader.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_review_source.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_root_warm.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_sidechain_absence.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_sidechain_absence_tests.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_skill_demand_controls.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_skill_demand_tests.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_skill_framing.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_skills.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_source_cache_index_tests.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_spine.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_spine_tests.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_symlink_proof.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_text.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/sqlite.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/toolcall.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/types.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/value.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/watch.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/tests/sonic_arena_model.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/tests/std_allocation_model.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/Cargo.toml +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/build.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/data/command_prefix_pins.tsv +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/actor_bridge.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/bin/stub_gen.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/codex.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/command.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/context.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/corrections.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/discovery.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/feedback.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/judge.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/lexicon.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/lib.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/mining.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/nlp.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/python.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/render.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/score.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/snapshot_decode.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/snapshots.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/snapshots_registered_review.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/sqlite.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/toolcall.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/views/attachment.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/views/blocks.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/views/command.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/views/convert.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/views/dunder.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/views/events.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/views/meta.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/views/mod.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/views/print.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/views/store.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/views/system.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/views/toolcall.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/views/toolresult.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/views/transcript.rs +0 -0
- {cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/py/src/watch.rs +0 -0
|
@@ -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
|
|
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.
|
|
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
|
|
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
|
|
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)
|
|
1055
|
-
.
|
|
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
|
-
-
|
|
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 =
|
|
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 =
|
|
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
|
-
|
|
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:?}");
|
{cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_index_allocations.rs
RENAMED
|
@@ -119,7 +119,8 @@ impl AllocationOwner {
|
|
|
119
119
|
|
|
120
120
|
impl Drop for AllocationOwner {
|
|
121
121
|
fn drop(&mut self) {
|
|
122
|
-
|
|
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!(
|
{cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_ledger_tests.rs
RENAMED
|
@@ -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
|
|
3236
|
-
let
|
|
3237
|
-
|
|
3238
|
-
.map(|
|
|
3239
|
-
.
|
|
3240
|
-
|
|
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
|
|
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,
|
{cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_persistent.rs
RENAMED
|
@@ -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|
|
|
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|
|
|
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
|
-
|
|
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
|
-
|
|
375
|
-
assert_eq!(usage[15],
|
|
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("
|
|
506
|
+
fallback: Some("cold"),
|
|
551
507
|
..
|
|
552
508
|
}
|
|
553
509
|
)));
|
{cc_transcript-14.46.9 → cc_transcript-14.46.11}/rust/crates/core/src/snapshot_regressions.rs
RENAMED
|
@@ -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.
|
|
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 =
|
|
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.
|
|
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.
|
|
550
|
+
store.request_agent(&acquire(&source.path), &owner, &Cancellation::default()),
|
|
546
551
|
&owner,
|
|
547
552
|
);
|
|
548
553
|
let new = pin(&store, &new_response, &owner);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cc_transcript-14.46.9 → cc_transcript-14.46.11}/cc_transcript/sentiment/data/afinn-en-165.tsv
RENAMED
|
File without changes
|