cc-transcript 14.46.11__tar.gz → 14.46.13__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.11 → cc_transcript-14.46.13}/PKG-INFO +1 -1
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/pyproject.toml +1 -1
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/lib.rs +1 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot.rs +211 -107
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_activity.rs +4 -9
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_index_allocations.rs +5 -4
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_interactions_tests.rs +1 -1
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_labels.rs +3 -1
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_ledger_tests.rs +88 -204
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_persistent.rs +6 -3
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_root_warm.rs +212 -25
- cc_transcript-14.46.13/rust/crates/core/tests/persistent_allocation_model.rs +139 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/Cargo.lock +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/Cargo.toml +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/LICENSE +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/README.md +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/__init__.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/__init__.pyi +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/_native.pyi +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/activity.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/activity_probe.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/builders.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/codex.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/command.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/context.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/corrections.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/cost.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/decision_store.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/decisions.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/discovery.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/disktruth.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/evidence.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/extract/__init__.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/extract/correct.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/facts.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/filterspec.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/heartbeats.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/ids.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/judge/__init__.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/judge/llm.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/judge/similar.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/judge/verdicts.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/ledger.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/literals.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/mining/__init__.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/mining/candidates.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/mining/confidence.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/mining/engine.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/mining/formats.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/mining/sampling.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/mining/signals.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/mining/sourcekind.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/mining/spec.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/mining/store.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/models.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/nlp.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/notifications.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/parser.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/py.typed +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/query.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/render.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/sentiment/__init__.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/sentiment/buckets.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/sentiment/data/afinn-en-165.tsv +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/sentiment/data/domain_overrides.tsv +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/sentiment/data/en-ewt.udpipe +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/sentiment/engine.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/sentiment/lexicon.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/sentiment/scorespec.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/snapshot_schema/config.schema.json +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/snapshot_schema/context.schema.json +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/snapshot_schema/request.schema.json +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/snapshot_schema/response.schema.json +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/snapshot_schema/tool_registry.schema.json +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/snapshots.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/synthetic.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/tools.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/cc_transcript/watch.py +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/cli/Cargo.toml +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/cli/src/commands/blame.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/cli/src/commands/corpus.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/cli/src/commands/corrections.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/cli/src/commands/digest.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/cli/src/commands/facts.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/cli/src/commands/grep.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/cli/src/commands/list.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/cli/src/commands/mod.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/cli/src/commands/scratchpad.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/cli/src/commands/show.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/cli/src/commands/slice.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/cli/src/commands/stats.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/cli/src/commands/watch.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/cli/src/lib.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/cli/src/output.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/cli/src/target.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/cli/src/timearg.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/Cargo.toml +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/benches/parse.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/benches/render.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/benches/toolcall.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/build.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/activity.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/actor.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/blame.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/buckets.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/codex/discovery.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/codex/lower.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/codex/mod.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/codex/parse.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/codex/probe.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/codex/protocol.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/codex/review_continuation.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/codex/types.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/command.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/context.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/corrections.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/cost.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/discovery.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/facts.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/feedback.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/filter.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/gateway.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/ids.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/judge.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/literals/command.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/literals/corrections.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/literals/feedback.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/literals/mining.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/literals/mod.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/literals/protocol.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/mining.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/mining_index.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/notifications.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/parse.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/protocol.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/pystr.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/query.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/render.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/request_body.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/rng.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/scan.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/scan_checkpoint.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/scan_grep.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/scan_grep_stream.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/scan_grep_stream_tests.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/scan_index.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/scan_projection.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/scan_regressions.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/scan_stream.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/schema.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_admission_report_tests.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_cache.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_cache_tests.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_catalog.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_catalog_owner.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_catalog_tests.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_codec.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_codex_append.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_common_borrowed_parent_tests.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_compact_codex.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_compact_codex_tests.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_direct_tail.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_direct_tail_tests.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_graph_anchor_tests.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_graph_validation_tests.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_hydrate_budget_tests.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_hydration_observations.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_input.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_interaction_api.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_interaction_api_tests.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_interactions.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_ledger.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_load_charge_audit_tests.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_load_charge_work_tests.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_membership_progress.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_membership_progress_controls.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_membership_progress_tests.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_memory.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_owned.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_prepared.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_prepared_disk.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_prepared_service.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_projection.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_publication_shared_admission_tests.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_query_hydration_tests.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_raw_materialization.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_raw_projection.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_raw_projection_tests.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_raw_scope.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_raw_scope_tests.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_raw_tail_tests.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_raw_window.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_registered_review_tests.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_regressions.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_reply_resume_tests.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_review.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_review_admission_tests.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_review_context.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_review_reader.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_review_source.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_sidechain_absence.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_sidechain_absence_tests.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_skill_demand_controls.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_skill_demand_tests.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_skill_framing.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_skills.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_source_cache_index_tests.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_spine.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_spine_tests.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_symlink_proof.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/snapshot_text.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/sqlite.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/toolcall.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/types.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/value.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/src/watch.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/tests/sonic_arena_model.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/core/tests/std_allocation_model.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/Cargo.toml +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/build.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/data/command_prefix_pins.tsv +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/src/actor_bridge.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/src/bin/stub_gen.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/src/codex.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/src/command.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/src/context.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/src/corrections.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/src/discovery.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/src/feedback.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/src/judge.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/src/lexicon.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/src/lib.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/src/mining.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/src/nlp.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/src/python.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/src/render.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/src/score.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/src/snapshot_decode.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/src/snapshots.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/src/snapshots_registered_review.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/src/sqlite.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/src/toolcall.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/src/views/attachment.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/src/views/blocks.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/src/views/command.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/src/views/convert.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/src/views/dunder.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/src/views/events.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/src/views/meta.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/src/views/mod.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/src/views/print.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/src/views/store.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/src/views/system.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/src/views/toolcall.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/src/views/toolresult.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/src/views/transcript.rs +0 -0
- {cc_transcript-14.46.11 → cc_transcript-14.46.13}/rust/crates/py/src/watch.rs +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "cc-transcript"
|
|
3
|
-
version = "14.46.
|
|
3
|
+
version = "14.46.13" # 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"
|
|
@@ -2236,6 +2236,8 @@ pub(crate) struct StoreState {
|
|
|
2236
2236
|
loads: Table<SourceIdentity, Arc<LoadSlot>>,
|
|
2237
2237
|
skill_admissions: Arc<AtomicUsize>,
|
|
2238
2238
|
prepared_loads: Table<SourceIdentity, (Arc<LoadSlot>, u64)>,
|
|
2239
|
+
last_refusal: Option<AdmissionRefusal>,
|
|
2240
|
+
admission_refusals: u64,
|
|
2239
2241
|
leases: Ledgered<String, Lease>,
|
|
2240
2242
|
waiters: Ledgered<String, Waiter>,
|
|
2241
2243
|
projections: Ledgered<String, ProjectionCursor>,
|
|
@@ -2290,6 +2292,7 @@ pub(crate) struct StoreState {
|
|
|
2290
2292
|
}
|
|
2291
2293
|
|
|
2292
2294
|
const TOUCH_TTL_MS: u64 = 30 * 60_000;
|
|
2295
|
+
pub(crate) const STALLED_PREPARED_LOAD_MS: u64 = 60_000;
|
|
2293
2296
|
const EXPIRED_QUERY_TOMBSTONES: usize = 1024;
|
|
2294
2297
|
const FACT_READ_WAIT_SLICE: Duration = Duration::from_millis(25);
|
|
2295
2298
|
|
|
@@ -2321,6 +2324,8 @@ impl StoreState {
|
|
|
2321
2324
|
loads: Table::new(work.clone()),
|
|
2322
2325
|
skill_admissions: Arc::new(AtomicUsize::new(0)),
|
|
2323
2326
|
prepared_loads: Table::new(work.clone()),
|
|
2327
|
+
last_refusal: None,
|
|
2328
|
+
admission_refusals: 0,
|
|
2324
2329
|
leases: Ledgered::new(work.clone()),
|
|
2325
2330
|
waiters: Ledgered::new(work.clone()),
|
|
2326
2331
|
projections: Ledgered::new(work.clone()),
|
|
@@ -3159,6 +3164,28 @@ impl StoreState {
|
|
|
3159
3164
|
Some(slot)
|
|
3160
3165
|
}
|
|
3161
3166
|
|
|
3167
|
+
fn evict_idle_prepared_load(&mut self) -> bool {
|
|
3168
|
+
let Some(identity) = self
|
|
3169
|
+
.prepared_loads
|
|
3170
|
+
.iter()
|
|
3171
|
+
.filter(|(_, (slot, _))| Arc::strong_count(slot) <= 2)
|
|
3172
|
+
.min_by_key(|(_, (_, touched))| *touched)
|
|
3173
|
+
.map(|(identity, _)| *identity)
|
|
3174
|
+
else {
|
|
3175
|
+
return false;
|
|
3176
|
+
};
|
|
3177
|
+
self.prepared_loads.remove(&identity);
|
|
3178
|
+
if self
|
|
3179
|
+
.loads
|
|
3180
|
+
.get(&identity)
|
|
3181
|
+
.is_some_and(|slot| Arc::strong_count(slot) == 1)
|
|
3182
|
+
{
|
|
3183
|
+
self.remove_load(&identity);
|
|
3184
|
+
}
|
|
3185
|
+
self.drain();
|
|
3186
|
+
true
|
|
3187
|
+
}
|
|
3188
|
+
|
|
3162
3189
|
fn retain_loads(&mut self, mut keep: impl FnMut(&SourceIdentity, &Arc<LoadSlot>) -> bool) {
|
|
3163
3190
|
let mut detached = Vec::new();
|
|
3164
3191
|
self.loads.retain(|identity, slot| {
|
|
@@ -3589,6 +3616,7 @@ impl StoreState {
|
|
|
3589
3616
|
}
|
|
3590
3617
|
}
|
|
3591
3618
|
|
|
3619
|
+
#[derive(Clone, Copy)]
|
|
3592
3620
|
struct GaugeTerms {
|
|
3593
3621
|
entries: usize,
|
|
3594
3622
|
indexes: usize,
|
|
@@ -3633,6 +3661,24 @@ impl GaugeTerms {
|
|
|
3633
3661
|
}
|
|
3634
3662
|
}
|
|
3635
3663
|
|
|
3664
|
+
#[derive(Clone, Copy)]
|
|
3665
|
+
struct AdmissionRefusal {
|
|
3666
|
+
reason: &'static str,
|
|
3667
|
+
foreground: bool,
|
|
3668
|
+
cap: usize,
|
|
3669
|
+
additional: usize,
|
|
3670
|
+
terms: GaugeTerms,
|
|
3671
|
+
total: usize,
|
|
3672
|
+
owned: usize,
|
|
3673
|
+
transient: usize,
|
|
3674
|
+
leases: usize,
|
|
3675
|
+
waiters: usize,
|
|
3676
|
+
loads: usize,
|
|
3677
|
+
parked_loads: usize,
|
|
3678
|
+
parked_load_bytes: usize,
|
|
3679
|
+
cache_owners: usize,
|
|
3680
|
+
}
|
|
3681
|
+
|
|
3636
3682
|
pub type ClassifierCallback =
|
|
3637
3683
|
dyn Fn(&[Arc<EntryChunk>], Range<usize>) -> Result<Vec<bool>, SnapshotError> + Send + Sync;
|
|
3638
3684
|
|
|
@@ -4750,7 +4796,6 @@ impl NativeStore {
|
|
|
4750
4796
|
snapshot: Arc<TranscriptSnapshot>,
|
|
4751
4797
|
mut generation: GenerationRecord,
|
|
4752
4798
|
classifier: Value,
|
|
4753
|
-
seed: Option<&CarriedClassification>,
|
|
4754
4799
|
carried: Option<((SourceIdentity, String), CarriedClassification)>,
|
|
4755
4800
|
source_handle: &Value,
|
|
4756
4801
|
context: &Value,
|
|
@@ -4774,33 +4819,7 @@ impl NativeStore {
|
|
|
4774
4819
|
}
|
|
4775
4820
|
(lineage, candidate, pending, registry)
|
|
4776
4821
|
});
|
|
4777
|
-
let
|
|
4778
|
-
.chunks
|
|
4779
|
-
.iter()
|
|
4780
|
-
.map(|chunk| Arc::as_ptr(&chunk.entries) as usize)
|
|
4781
|
-
.collect();
|
|
4782
|
-
let seeded: HashSet<_> = seed
|
|
4783
|
-
.into_iter()
|
|
4784
|
-
.flat_map(|seed| {
|
|
4785
|
-
seed.activity
|
|
4786
|
-
.shared_allocations()
|
|
4787
|
-
.into_iter()
|
|
4788
|
-
.map(|(id, _)| id)
|
|
4789
|
-
})
|
|
4790
|
-
.collect();
|
|
4791
|
-
let retained = generation
|
|
4792
|
-
.entries
|
|
4793
|
-
.iter()
|
|
4794
|
-
.filter(|(id, _)| !shared.contains(id))
|
|
4795
|
-
.map(|(_, charge)| charge.owned_capacity_bytes + charge.opaque_dom_accounted_bytes)
|
|
4796
|
-
.sum::<usize>()
|
|
4797
|
-
+ generation
|
|
4798
|
-
.indexes
|
|
4799
|
-
.iter()
|
|
4800
|
-
.filter(|(id, _)| !seeded.contains(id))
|
|
4801
|
-
.map(|(_, bytes)| *bytes)
|
|
4802
|
-
.sum::<usize>()
|
|
4803
|
-
+ generation.entries.capacity() * size_of::<(usize, MemoryCharge)>()
|
|
4822
|
+
let record = generation.entries.capacity() * size_of::<(usize, MemoryCharge)>()
|
|
4804
4823
|
+ generation.indexes.capacity() * size_of::<(usize, usize)>()
|
|
4805
4824
|
+ size_of::<GenerationRecord>()
|
|
4806
4825
|
+ snapshot.id.capacity();
|
|
@@ -4829,39 +4848,45 @@ impl NativeStore {
|
|
|
4829
4848
|
)
|
|
4830
4849
|
};
|
|
4831
4850
|
let pledge = pledge + state.leases.growth(1);
|
|
4832
|
-
let
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
-
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
0
|
|
4856
|
-
|
|
4857
|
-
|
|
4858
|
-
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4851
|
+
let required = |state: &StoreState| {
|
|
4852
|
+
record
|
|
4853
|
+
+ pledge
|
|
4854
|
+
+ state.generations.growth_for(&key)
|
|
4855
|
+
+ state.ledger.shared.growth(anchors())
|
|
4856
|
+
+ state
|
|
4857
|
+
.ledger
|
|
4858
|
+
.shared
|
|
4859
|
+
.unowned_bytes(generation.publication_anchors())
|
|
4860
|
+
+ state
|
|
4861
|
+
.ledger
|
|
4862
|
+
.shared
|
|
4863
|
+
.registry_growth_bytes(generation.index_registry)
|
|
4864
|
+
+ carried
|
|
4865
|
+
.as_ref()
|
|
4866
|
+
.map_or(0, |(lineage, candidate, pending, registry)| {
|
|
4867
|
+
charged_bytes(lineage, candidate)
|
|
4868
|
+
+ state.carried_growth(lineage, candidate)
|
|
4869
|
+
+ state.ledger.shared.unowned_bytes(
|
|
4870
|
+
candidate
|
|
4871
|
+
.publication_anchors(pending, *registry)
|
|
4872
|
+
.filter(|anchor| !published.contains(&anchor.id)),
|
|
4873
|
+
)
|
|
4874
|
+
+ if registry.0 == generation.index_registry.0 {
|
|
4875
|
+
0
|
|
4876
|
+
} else {
|
|
4877
|
+
state.ledger.shared.registry_growth_bytes(*registry)
|
|
4878
|
+
}
|
|
4879
|
+
})
|
|
4880
|
+
};
|
|
4881
|
+
let mut retained = required(&state);
|
|
4882
|
+
while retained > reservation.bytes {
|
|
4883
|
+
self.extend_projection_reservation_in(
|
|
4884
|
+
&mut state,
|
|
4885
|
+
reservation,
|
|
4886
|
+
context,
|
|
4887
|
+
retained - reservation.bytes,
|
|
4888
|
+
)?;
|
|
4889
|
+
retained = required(&state);
|
|
4865
4890
|
}
|
|
4866
4891
|
state.ledger.shared.reserve(anchors());
|
|
4867
4892
|
state.register_generation(&snapshot, generation);
|
|
@@ -4968,7 +4993,6 @@ impl NativeStore {
|
|
|
4968
4993
|
if preparation.complete() {
|
|
4969
4994
|
let work = preparation.usage();
|
|
4970
4995
|
let classifier = preparation.derived_classifier();
|
|
4971
|
-
let seed = preparation.seed().cloned();
|
|
4972
4996
|
let (snapshot, carried) = preparation.finish(&binding, cancel)?;
|
|
4973
4997
|
self.extend_projection_reservation(
|
|
4974
4998
|
&mut reservation,
|
|
@@ -4980,7 +5004,6 @@ impl NativeStore {
|
|
|
4980
5004
|
snapshot,
|
|
4981
5005
|
generation,
|
|
4982
5006
|
classifier,
|
|
4983
|
-
seed.as_deref(),
|
|
4984
5007
|
carried.map(|carried| (lineage, carried)),
|
|
4985
5008
|
handle,
|
|
4986
5009
|
context,
|
|
@@ -5103,7 +5126,6 @@ impl NativeStore {
|
|
|
5103
5126
|
&binding.registry_generation,
|
|
5104
5127
|
),
|
|
5105
5128
|
);
|
|
5106
|
-
let seed = slot.preparation.seed().cloned();
|
|
5107
5129
|
let (snapshot, carried) = slot.preparation.finish(&binding, cancel)?;
|
|
5108
5130
|
self.extend_projection_reservation(
|
|
5109
5131
|
&mut reservation,
|
|
@@ -5115,7 +5137,6 @@ impl NativeStore {
|
|
|
5115
5137
|
snapshot,
|
|
5116
5138
|
generation,
|
|
5117
5139
|
classifier,
|
|
5118
|
-
seed.as_deref(),
|
|
5119
5140
|
carried.map(|carried| (lineage, carried)),
|
|
5120
5141
|
&source_handle,
|
|
5121
5142
|
context,
|
|
@@ -6949,6 +6970,70 @@ impl NativeStore {
|
|
|
6949
6970
|
&& context.get("work_class").and_then(Value::as_str) != Some("background"))
|
|
6950
6971
|
}
|
|
6951
6972
|
|
|
6973
|
+
fn note_refusal(
|
|
6974
|
+
state: &mut StoreState,
|
|
6975
|
+
reason: &'static str,
|
|
6976
|
+
foreground: bool,
|
|
6977
|
+
cap: usize,
|
|
6978
|
+
additional: usize,
|
|
6979
|
+
) {
|
|
6980
|
+
let terms = Self::gauge_terms(state);
|
|
6981
|
+
let (_, _, total) = terms.totals(state);
|
|
6982
|
+
state.admission_refusals += 1;
|
|
6983
|
+
state.last_refusal = Some(AdmissionRefusal {
|
|
6984
|
+
reason,
|
|
6985
|
+
foreground,
|
|
6986
|
+
cap,
|
|
6987
|
+
additional,
|
|
6988
|
+
terms,
|
|
6989
|
+
total,
|
|
6990
|
+
owned: state.owned.accounted_bytes(),
|
|
6991
|
+
transient: state.transient_bytes,
|
|
6992
|
+
leases: state.leases.len(),
|
|
6993
|
+
waiters: state.waiters.len(),
|
|
6994
|
+
loads: state.loads.len(),
|
|
6995
|
+
parked_loads: state.prepared_loads.len(),
|
|
6996
|
+
parked_load_bytes: state
|
|
6997
|
+
.prepared_loads
|
|
6998
|
+
.iter()
|
|
6999
|
+
.map(|(_, (slot, _))| slot.accounted.load(Ordering::Acquire))
|
|
7000
|
+
.sum(),
|
|
7001
|
+
cache_owners: state.cache_order.len(),
|
|
7002
|
+
});
|
|
7003
|
+
}
|
|
7004
|
+
|
|
7005
|
+
pub fn take_admission_refusal(&self) -> Option<Value> {
|
|
7006
|
+
let mut state = self.lock_state();
|
|
7007
|
+
let refusal = state.last_refusal.take()?;
|
|
7008
|
+
let refusals = std::mem::take(&mut state.admission_refusals);
|
|
7009
|
+
Some(json!({
|
|
7010
|
+
"refusals": refusals,
|
|
7011
|
+
"reason": refusal.reason,
|
|
7012
|
+
"foreground": refusal.foreground,
|
|
7013
|
+
"cap_bytes": refusal.cap,
|
|
7014
|
+
"additional_bytes": refusal.additional,
|
|
7015
|
+
"total_bytes": refusal.total,
|
|
7016
|
+
"entry_bytes": refusal.terms.entries,
|
|
7017
|
+
"index_bytes": refusal.terms.indexes,
|
|
7018
|
+
"pending_bytes": refusal.terms.pending,
|
|
7019
|
+
"classifier_bytes": refusal.terms.classifier,
|
|
7020
|
+
"label_bytes": refusal.terms.label,
|
|
7021
|
+
"projection_bytes": refusal.terms.projections,
|
|
7022
|
+
"discovery_bytes": refusal.terms.discovery,
|
|
7023
|
+
"graph_bytes": refusal.terms.graph,
|
|
7024
|
+
"metadata_bytes": refusal.terms.metadata,
|
|
7025
|
+
"owned_bytes": refusal.owned,
|
|
7026
|
+
"transient_bytes": refusal.transient,
|
|
7027
|
+
"live_generations": refusal.terms.live_generations,
|
|
7028
|
+
"leases": refusal.leases,
|
|
7029
|
+
"waiters": refusal.waiters,
|
|
7030
|
+
"loads": refusal.loads,
|
|
7031
|
+
"parked_loads": refusal.parked_loads,
|
|
7032
|
+
"parked_load_bytes": refusal.parked_load_bytes,
|
|
7033
|
+
"cache_owners": refusal.cache_owners,
|
|
7034
|
+
}))
|
|
7035
|
+
}
|
|
7036
|
+
|
|
6952
7037
|
fn memory_cap(&self, context: &Value) -> Result<usize, SnapshotError> {
|
|
6953
7038
|
Ok(if Self::foreground_admission(context)? {
|
|
6954
7039
|
self.config.retained
|
|
@@ -6969,6 +7054,11 @@ impl NativeStore {
|
|
|
6969
7054
|
state.ledger.shared.work().admitted(additional);
|
|
6970
7055
|
return Ok(());
|
|
6971
7056
|
}
|
|
7057
|
+
let foreground = Self::foreground_admission(context)?;
|
|
7058
|
+
while foreground
|
|
7059
|
+
&& Self::retained_total(state).saturating_add(additional) > cap
|
|
7060
|
+
&& state.evict_idle_prepared_load()
|
|
7061
|
+
{}
|
|
6972
7062
|
while Self::retained_total(state).saturating_add(additional) > cap {
|
|
6973
7063
|
let Some(owner) = state.next_cache_victim() else {
|
|
6974
7064
|
break;
|
|
@@ -6980,10 +7070,9 @@ impl NativeStore {
|
|
|
6980
7070
|
bookkeeping.is_some_and(|before| Self::bookkeeping_bytes(state) <= before),
|
|
6981
7071
|
"a refused admission grew retained bookkeeping"
|
|
6982
7072
|
);
|
|
6983
|
-
|
|
6984
|
-
|
|
6985
|
-
|
|
6986
|
-
));
|
|
7073
|
+
const REASON: &str = "accounted storage admission exhausted";
|
|
7074
|
+
Self::note_refusal(state, REASON, foreground, cap, additional);
|
|
7075
|
+
return Err(SnapshotError::new(Status::RetainedLimit, REASON));
|
|
6987
7076
|
}
|
|
6988
7077
|
state.ledger.shared.work().admitted(additional);
|
|
6989
7078
|
Ok(())
|
|
@@ -8714,16 +8803,17 @@ impl NativeStore {
|
|
|
8714
8803
|
usage[8] += 1;
|
|
8715
8804
|
(Arc::clone(slot), false)
|
|
8716
8805
|
} else {
|
|
8717
|
-
let
|
|
8806
|
+
let foreground = Self::foreground_admission(context)?;
|
|
8807
|
+
let cap = if foreground {
|
|
8718
8808
|
self.config.loads
|
|
8719
8809
|
} else {
|
|
8720
8810
|
self.config.loads.saturating_sub(self.config.hook_loads)
|
|
8721
8811
|
};
|
|
8812
|
+
while foreground && state.loads.len() >= cap && state.evict_idle_prepared_load() {}
|
|
8722
8813
|
if state.loads.len() >= cap {
|
|
8723
|
-
|
|
8724
|
-
|
|
8725
|
-
|
|
8726
|
-
));
|
|
8814
|
+
const REASON: &str = "preparation admission exhausted";
|
|
8815
|
+
Self::note_refusal(&mut state, REASON, foreground, cap, 0);
|
|
8816
|
+
return Err(SnapshotError::new(Status::RetainedLimit, REASON));
|
|
8727
8817
|
}
|
|
8728
8818
|
let registry_generation = str_field(context, "registry_generation")?;
|
|
8729
8819
|
let record = LOAD_SLOT_BYTES
|
|
@@ -9056,8 +9146,10 @@ impl NativeStore {
|
|
|
9056
9146
|
} else {
|
|
9057
9147
|
None
|
|
9058
9148
|
};
|
|
9059
|
-
|
|
9060
|
-
|
|
9149
|
+
if stepped.is_some() {
|
|
9150
|
+
*slot.index_registry.lock().expect("load index registry") =
|
|
9151
|
+
Some(load.activity.registry_witness());
|
|
9152
|
+
}
|
|
9061
9153
|
let unpublished = load.result.as_ref().is_some_and(|snapshot| {
|
|
9062
9154
|
!self
|
|
9063
9155
|
.lock_state()
|
|
@@ -13107,7 +13199,7 @@ mod tests {
|
|
|
13107
13199
|
assert!(Arc::ptr_eq(&prior.chunks[0], ¤t.chunks[0]));
|
|
13108
13200
|
assert_eq!(
|
|
13109
13201
|
store.state.lock().unwrap().counters[1] - before,
|
|
13110
|
-
|
|
13202
|
+
added.len() as u64
|
|
13111
13203
|
);
|
|
13112
13204
|
}
|
|
13113
13205
|
|
|
@@ -14225,7 +14317,7 @@ mod tests {
|
|
|
14225
14317
|
assert_eq!(snapshot.entry(0).meta().unwrap().uuid, "initial");
|
|
14226
14318
|
let state = store.state.lock().unwrap();
|
|
14227
14319
|
assert_eq!(state.counters[4], 1);
|
|
14228
|
-
assert_eq!(state.counters[1], pinned_size
|
|
14320
|
+
assert_eq!(state.counters[1], pinned_size);
|
|
14229
14321
|
}
|
|
14230
14322
|
#[test]
|
|
14231
14323
|
fn turn_projection_cursor_preserves_native_page_status_and_zero_item_incompleteness() {
|
|
@@ -14738,6 +14830,7 @@ mod tests {
|
|
|
14738
14830
|
owner: &Value,
|
|
14739
14831
|
) -> (Arc<TranscriptSnapshot>, Vec<Range<usize>>) {
|
|
14740
14832
|
let mut request = acquire(path);
|
|
14833
|
+
request["deadline_unix_ms"] = json!(now_ms() + 300_000);
|
|
14741
14834
|
request["limits"].insert("max_events", json!(100_000));
|
|
14742
14835
|
request["limits"].insert("max_items", json!(100_000));
|
|
14743
14836
|
request["limits"].insert("max_output_bytes", json!(16 * 1024 * 1024));
|
|
@@ -14778,7 +14871,13 @@ mod tests {
|
|
|
14778
14871
|
owner,
|
|
14779
14872
|
&Cancellation::default(),
|
|
14780
14873
|
)
|
|
14781
|
-
.
|
|
14874
|
+
.unwrap_or_else(|error| {
|
|
14875
|
+
panic!(
|
|
14876
|
+
"{error:?} at page {:?}: {:?}",
|
|
14877
|
+
pages.last(),
|
|
14878
|
+
store.take_admission_refusal()
|
|
14879
|
+
)
|
|
14880
|
+
});
|
|
14782
14881
|
}
|
|
14783
14882
|
(
|
|
14784
14883
|
store.pin(&reply["description"]["handle"], owner).unwrap(),
|
|
@@ -14997,7 +15096,7 @@ mod tests {
|
|
|
14997
15096
|
let suffix = format!("{}\n", user_text("new", &"x".repeat(256 * 1024)));
|
|
14998
15097
|
let source = Source::new(&format!("{prefix}{suffix}"));
|
|
14999
15098
|
let path = source.path.clone();
|
|
15000
|
-
let store = NativeStore::
|
|
15099
|
+
let store = NativeStore::new_agent(&json!({})).unwrap();
|
|
15001
15100
|
*store.read_hook.lock().unwrap() = Some(Arc::new(move || {
|
|
15002
15101
|
std::fs::OpenOptions::new()
|
|
15003
15102
|
.append(true)
|
|
@@ -15006,7 +15105,7 @@ mod tests {
|
|
|
15006
15105
|
.write_all(format!("{}\n", user("appended")).as_bytes())
|
|
15007
15106
|
.unwrap();
|
|
15008
15107
|
}));
|
|
15009
|
-
let response = store.
|
|
15108
|
+
let response = store.request_agent(
|
|
15010
15109
|
&tail_request(&source.path, 1, 1024 * 1024),
|
|
15011
15110
|
&context("a"),
|
|
15012
15111
|
&Cancellation::default(),
|
|
@@ -16159,7 +16258,7 @@ mod tests {
|
|
|
16159
16258
|
}
|
|
16160
16259
|
|
|
16161
16260
|
#[test]
|
|
16162
|
-
fn
|
|
16261
|
+
fn prepared_graph_survives_root_appends_and_rejects_a_truncated_root() {
|
|
16163
16262
|
let source = Source::new(&format!("{}\n", user("root")));
|
|
16164
16263
|
let child = source.directory.join("child.jsonl");
|
|
16165
16264
|
std::fs::write(&child, format!("{}\n", user("child"))).unwrap();
|
|
@@ -16199,20 +16298,17 @@ mod tests {
|
|
|
16199
16298
|
assert_eq!(appended["data"]["value"].as_bool(), Some(false));
|
|
16200
16299
|
source.append(&format!("{}\n", user("again")));
|
|
16201
16300
|
assert_eq!(query()["status"].as_str(), Some("ok"));
|
|
16202
|
-
|
|
16203
|
-
|
|
16204
|
-
let rewritten = query();
|
|
16301
|
+
std::fs::write(&source.path, "").unwrap();
|
|
16302
|
+
let truncated = query();
|
|
16205
16303
|
assert_eq!(
|
|
16206
|
-
|
|
16304
|
+
truncated["status"].as_str(),
|
|
16207
16305
|
Some("changed"),
|
|
16208
|
-
"{
|
|
16306
|
+
"{truncated:?}"
|
|
16209
16307
|
);
|
|
16210
16308
|
assert_eq!(
|
|
16211
|
-
|
|
16309
|
+
truncated["reason"].as_str(),
|
|
16212
16310
|
Some("prepared root generation changed")
|
|
16213
16311
|
);
|
|
16214
|
-
std::fs::write(&source.path, "").unwrap();
|
|
16215
|
-
assert_eq!(query()["status"].as_str(), Some("changed"));
|
|
16216
16312
|
}
|
|
16217
16313
|
|
|
16218
16314
|
#[test]
|
|
@@ -17065,17 +17161,17 @@ mod tests {
|
|
|
17065
17161
|
let source = Source::new(&format!("{}\n", user("root")));
|
|
17066
17162
|
let child = source.directory.join("child.jsonl");
|
|
17067
17163
|
std::fs::write(&child, child_contents).unwrap();
|
|
17068
|
-
let store = NativeStore::
|
|
17164
|
+
let store = NativeStore::new_agent(&json!({"max_read_bytes_per_step":128,"max_events_per_step":100,"max_entry_bytes":8192,"max_retained_bytes":32*1024*1024,"reserved_hook_accounted_bytes":4096,"max_leases":16,"reserved_hook_leases":1})).unwrap();
|
|
17069
17165
|
let owner = context("a");
|
|
17070
17166
|
let root = finish(
|
|
17071
17167
|
&store,
|
|
17072
|
-
store.
|
|
17168
|
+
store.request_agent(&acquire(&source.path), &owner, &Cancellation::default()),
|
|
17073
17169
|
&owner,
|
|
17074
17170
|
);
|
|
17075
17171
|
if cache_child {
|
|
17076
17172
|
let cached = finish(
|
|
17077
17173
|
&store,
|
|
17078
|
-
store.
|
|
17174
|
+
store.request_agent(&acquire(&child), &owner, &Cancellation::default()),
|
|
17079
17175
|
&owner,
|
|
17080
17176
|
);
|
|
17081
17177
|
assert_eq!(cached["status"].as_str(), Some("ok"), "{cached:?}");
|
|
@@ -17084,14 +17180,14 @@ mod tests {
|
|
|
17084
17180
|
let prepare = json!({"schema":SCHEMA,"id":"prepare","operation":"prepare_graph","view":{"handle":handle(&root),"classifier":{"id":"native","version":"1"},"selectors":[],"attachments":[]},"thread_ids":[],"roots":[],"direct_paths":[child.to_string_lossy().as_ref()],"deadline_unix_ms":template["deadline_unix_ms"],"limits":template["limits"]});
|
|
17085
17181
|
let graph = finish_prepared(
|
|
17086
17182
|
&store,
|
|
17087
|
-
store.
|
|
17183
|
+
store.request_agent(&prepare, &owner, &Cancellation::default()),
|
|
17088
17184
|
&owner,
|
|
17089
17185
|
);
|
|
17090
17186
|
assert_eq!(graph["status"].as_str(), Some("ok"), "{graph:?}");
|
|
17091
17187
|
source.append(&format!("{}\n", user("appended")));
|
|
17092
17188
|
let mut limits = template["limits"].clone();
|
|
17093
17189
|
limits.insert("max_source_read_bytes", json!(allowance));
|
|
17094
|
-
let mut reply = store.
|
|
17190
|
+
let mut reply = store.request_agent(
|
|
17095
17191
|
&json!({"schema":SCHEMA,"id":"query","operation":"query_graph","handle":graph["data"]["handle"],"selectors":[],"query":{"kind":"has_tool","pattern":"Read","subagents":true},"deadline_unix_ms":template["deadline_unix_ms"],"limits":limits}),
|
|
17096
17192
|
&owner,
|
|
17097
17193
|
&Cancellation::default(),
|
|
@@ -17101,7 +17197,7 @@ mod tests {
|
|
|
17101
17197
|
let Some(cursor) = reply["cursor"].as_str().map(str::to_owned) else {
|
|
17102
17198
|
return (reply, read);
|
|
17103
17199
|
};
|
|
17104
|
-
reply = store.
|
|
17200
|
+
reply = store.request_agent(
|
|
17105
17201
|
&json!({"schema":SCHEMA,"id":"resume","operation":"resume","cursor":cursor}),
|
|
17106
17202
|
&owner,
|
|
17107
17203
|
&Cancellation::default(),
|
|
@@ -17806,8 +17902,16 @@ mod tests {
|
|
|
17806
17902
|
assert_eq!(store.prepared_disk.stats().writes, 2);
|
|
17807
17903
|
}
|
|
17808
17904
|
|
|
17905
|
+
fn fact_budget_config(fact_budget: usize) -> Value {
|
|
17906
|
+
json!({"max_read_bytes_per_step":8192,"max_entry_bytes":128*1024,"max_retained_bytes":32*1024*1024,"max_prepared_fact_memory_bytes":fact_budget,"reserved_hook_accounted_bytes":4096,"max_leases":16,"reserved_hook_leases":1})
|
|
17907
|
+
}
|
|
17908
|
+
|
|
17809
17909
|
fn fact_budget_store(fact_budget: usize) -> NativeStore {
|
|
17810
|
-
NativeStore::new(&
|
|
17910
|
+
NativeStore::new(&fact_budget_config(fact_budget)).unwrap()
|
|
17911
|
+
}
|
|
17912
|
+
|
|
17913
|
+
fn agent_fact_budget_store(fact_budget: usize) -> NativeStore {
|
|
17914
|
+
NativeStore::new_agent(&fact_budget_config(fact_budget)).unwrap()
|
|
17811
17915
|
}
|
|
17812
17916
|
|
|
17813
17917
|
fn background_owner() -> Value {
|
|
@@ -19460,22 +19564,22 @@ mod tests {
|
|
|
19460
19564
|
#[test]
|
|
19461
19565
|
fn unbuilt_root_upgrades_from_the_pinned_snapshot_without_reparsing() {
|
|
19462
19566
|
let source = Source::new(&format!("{}\n", user_text("root", "TOKEN-ROOT")));
|
|
19463
|
-
let store =
|
|
19567
|
+
let store = agent_fact_budget_store(16 * 1024 * 1024);
|
|
19464
19568
|
let owner = context("a");
|
|
19465
19569
|
let template = acquire(&source.path);
|
|
19466
19570
|
let root = finish(
|
|
19467
19571
|
&store,
|
|
19468
|
-
store.
|
|
19572
|
+
store.request_agent(&acquire(&source.path), &owner, &Cancellation::default()),
|
|
19469
19573
|
&owner,
|
|
19470
19574
|
);
|
|
19471
19575
|
let graph = finish(
|
|
19472
19576
|
&store,
|
|
19473
|
-
store.
|
|
19577
|
+
store.request_agent(&json!({"schema":SCHEMA,"id":"prepare","operation":"prepare_graph","view":{"handle":handle(&root),"classifier":{"id":"native","version":"1"},"selectors":[],"attachments":[]},"thread_ids":[],"roots":[],"direct_paths":[],"deadline_unix_ms":template["deadline_unix_ms"],"limits":template["limits"]}), &owner, &Cancellation::default()),
|
|
19474
19578
|
&owner,
|
|
19475
19579
|
);
|
|
19476
19580
|
assert_eq!(graph["status"].as_str(), Some("ok"), "{graph:?}");
|
|
19477
19581
|
let ask = |query: Value| {
|
|
19478
|
-
single_step(store.
|
|
19582
|
+
single_step(store.request_agent(
|
|
19479
19583
|
&prepared_graph_request(&graph, &template, json!([]), query, None),
|
|
19480
19584
|
&owner,
|
|
19481
19585
|
&Cancellation::default(),
|
|
@@ -19499,7 +19603,7 @@ mod tests {
|
|
|
19499
19603
|
appended["usage"]["source_opens"].as_u64(),
|
|
19500
19604
|
appended["usage"]["source_bytes_read"].as_u64()
|
|
19501
19605
|
),
|
|
19502
|
-
(Some(
|
|
19606
|
+
(Some(0), Some(0))
|
|
19503
19607
|
);
|
|
19504
19608
|
let (builds, writes) = (
|
|
19505
19609
|
store.fact_builds.load(Ordering::Relaxed),
|
|
@@ -19507,13 +19611,13 @@ mod tests {
|
|
|
19507
19611
|
);
|
|
19508
19612
|
let full = ask(has_override("TOKEN-ROOT", &[]));
|
|
19509
19613
|
assert_eq!(value_of(&full), Some(true));
|
|
19510
|
-
assert_eq!(cache_reads(&full), (Some(1), Some(indexed), Some(
|
|
19614
|
+
assert_eq!(cache_reads(&full), (Some(1), Some(indexed), Some(0)));
|
|
19511
19615
|
assert_eq!(
|
|
19512
19616
|
(
|
|
19513
19617
|
full["usage"]["cold_parses"].as_u64(),
|
|
19514
19618
|
full["usage"]["source_opens"].as_u64()
|
|
19515
19619
|
),
|
|
19516
|
-
(Some(0), Some(
|
|
19620
|
+
(Some(0), Some(0))
|
|
19517
19621
|
);
|
|
19518
19622
|
assert_eq!(
|
|
19519
19623
|
(
|
|
@@ -22551,18 +22655,18 @@ mod tests {
|
|
|
22551
22655
|
#[test]
|
|
22552
22656
|
fn a_shared_chunk_prefix_is_released_exactly_once() {
|
|
22553
22657
|
let source = Source::new(&format!("{}\n", user("a")));
|
|
22554
|
-
let store =
|
|
22658
|
+
let store = agent_store();
|
|
22555
22659
|
let owner = context("a");
|
|
22556
22660
|
let first = finish(
|
|
22557
22661
|
&store,
|
|
22558
|
-
store.
|
|
22662
|
+
store.request_agent(&acquire(&source.path), &owner, &Cancellation::default()),
|
|
22559
22663
|
&owner,
|
|
22560
22664
|
);
|
|
22561
22665
|
let prior = store.pin(handle(&first), &owner).unwrap();
|
|
22562
22666
|
source.append(&format!("{}\n", user("b")));
|
|
22563
22667
|
let second = finish(
|
|
22564
22668
|
&store,
|
|
22565
|
-
store.
|
|
22669
|
+
store.request_agent(&acquire(&source.path), &owner, &Cancellation::default()),
|
|
22566
22670
|
&owner,
|
|
22567
22671
|
);
|
|
22568
22672
|
let current = store.pin(handle(&second), &owner).unwrap();
|
|
@@ -1580,7 +1580,8 @@ impl ActivityIndex {
|
|
|
1580
1580
|
if len == 0 {
|
|
1581
1581
|
5 * size_of::<usize>()
|
|
1582
1582
|
} else {
|
|
1583
|
-
(len *
|
|
1583
|
+
(len * crate::snapshot_persistent::SLOTS_PER_ENTRY + root)
|
|
1584
|
+
* (width + 4 * size_of::<usize>())
|
|
1584
1585
|
}
|
|
1585
1586
|
};
|
|
1586
1587
|
allocations.extend([
|
|
@@ -2842,20 +2843,14 @@ mod tests {
|
|
|
2842
2843
|
}
|
|
2843
2844
|
|
|
2844
2845
|
#[test]
|
|
2845
|
-
fn
|
|
2846
|
+
fn consuming_tail_append_bounds_its_copies_and_keeps_global_positions() {
|
|
2846
2847
|
let entries = [user("u", "first"), tools(), user("v", "second"), results()];
|
|
2847
2848
|
let refs: Vec<_> = entries.iter().collect();
|
|
2848
2849
|
let mut index = ActivityIndex::default();
|
|
2849
|
-
let turns = Arc::as_ptr(&index.turns);
|
|
2850
|
-
let uuids = Arc::as_ptr(&index.uuids);
|
|
2851
|
-
let results = Arc::as_ptr(&index.results);
|
|
2852
2850
|
for position in 0..refs.len() {
|
|
2853
2851
|
index = std::mem::take(&mut index).append_tail(&refs[position..position + 1], None);
|
|
2854
2852
|
assert_eq!(index.work().indexed_entries, 1);
|
|
2855
|
-
|
|
2856
|
-
assert_eq!(Arc::as_ptr(&index.turns), turns);
|
|
2857
|
-
assert_eq!(Arc::as_ptr(&index.uuids), uuids);
|
|
2858
|
-
assert_eq!(Arc::as_ptr(&index.results), results);
|
|
2853
|
+
assert!(index.work().copied_index_entries <= 2 * refs.len());
|
|
2859
2854
|
parity(&index, &refs[..position + 1], None);
|
|
2860
2855
|
}
|
|
2861
2856
|
assert_eq!(index.event_of_uuid("v"), Some(2));
|