cc-transcript 14.45.32__tar.gz → 14.45.34__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.45.32 → cc_transcript-14.45.34}/PKG-INFO +1 -1
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/pyproject.toml +1 -1
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/lib.rs +1 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot.rs +121 -58
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_catalog_owner.rs +134 -37
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_catalog_tests.rs +143 -45
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_compact_codex.rs +3 -4
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_compact_codex_tests.rs +32 -32
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_ledger_tests.rs +176 -51
- cc_transcript-14.45.34/rust/crates/core/src/snapshot_membership_progress.rs +1154 -0
- cc_transcript-14.45.34/rust/crates/core/src/snapshot_membership_progress_controls.rs +443 -0
- cc_transcript-14.45.34/rust/crates/core/src/snapshot_membership_progress_tests.rs +56 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_prepared.rs +258 -52
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_prepared_disk.rs +252 -86
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_prepared_service.rs +205 -322
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_projection.rs +56 -7
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_query_hydration_tests.rs +16 -14
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_sidechain_absence_tests.rs +29 -7
- cc_transcript-14.45.34/rust/crates/core/src/snapshot_skill_demand_controls.rs +82 -0
- cc_transcript-14.45.34/rust/crates/core/src/snapshot_skill_demand_tests.rs +402 -0
- cc_transcript-14.45.34/rust/crates/core/src/snapshot_skill_framing.rs +200 -0
- cc_transcript-14.45.34/rust/crates/core/src/snapshot_skills.rs +581 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/Cargo.lock +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/Cargo.toml +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/LICENSE +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/README.md +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/__init__.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/__init__.pyi +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/_native.pyi +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/activity.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/activity_probe.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/builders.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/codex.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/command.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/context.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/corrections.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/cost.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/decision_store.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/decisions.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/discovery.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/disktruth.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/evidence.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/extract/__init__.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/extract/correct.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/facts.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/filterspec.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/heartbeats.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/ids.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/judge/__init__.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/judge/llm.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/judge/similar.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/judge/verdicts.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/ledger.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/literals.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/mining/__init__.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/mining/candidates.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/mining/confidence.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/mining/engine.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/mining/formats.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/mining/sampling.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/mining/signals.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/mining/sourcekind.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/mining/spec.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/mining/store.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/models.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/nlp.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/notifications.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/parser.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/py.typed +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/query.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/render.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/sentiment/__init__.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/sentiment/buckets.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/sentiment/data/afinn-en-165.tsv +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/sentiment/data/domain_overrides.tsv +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/sentiment/data/en-ewt.udpipe +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/sentiment/engine.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/sentiment/lexicon.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/sentiment/scorespec.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/snapshot_schema/config.schema.json +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/snapshot_schema/context.schema.json +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/snapshot_schema/request.schema.json +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/snapshot_schema/response.schema.json +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/snapshot_schema/tool_registry.schema.json +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/snapshots.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/synthetic.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/tools.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/cc_transcript/watch.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/cli/Cargo.toml +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/cli/src/commands/blame.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/cli/src/commands/corpus.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/cli/src/commands/corrections.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/cli/src/commands/digest.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/cli/src/commands/facts.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/cli/src/commands/grep.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/cli/src/commands/list.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/cli/src/commands/mod.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/cli/src/commands/scratchpad.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/cli/src/commands/show.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/cli/src/commands/slice.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/cli/src/commands/stats.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/cli/src/commands/watch.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/cli/src/lib.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/cli/src/output.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/cli/src/target.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/cli/src/timearg.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/Cargo.toml +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/benches/parse.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/benches/render.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/benches/toolcall.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/build.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/activity.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/actor.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/blame.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/buckets.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/codex/discovery.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/codex/lower.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/codex/mod.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/codex/parse.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/codex/probe.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/codex/protocol.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/codex/types.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/command.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/context.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/corrections.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/cost.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/discovery.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/facts.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/feedback.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/filter.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/gateway.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/ids.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/judge.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/literals/command.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/literals/corrections.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/literals/feedback.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/literals/mining.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/literals/mod.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/literals/protocol.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/notifications.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/parse.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/protocol.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/pystr.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/query.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/render.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/request_body.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/rng.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/scan.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/scan_checkpoint.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/scan_grep.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/scan_grep_stream.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/scan_grep_stream_tests.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/scan_index.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/scan_projection.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/scan_regressions.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/scan_stream.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/schema.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_activity.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_admission_report_tests.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_cache.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_cache_tests.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_catalog.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_codec.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_codex_append.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_common_borrowed_parent_tests.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_direct_tail.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_direct_tail_tests.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_graph_validation_tests.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_hydrate_budget_tests.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_hydration_observations.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_interaction_api.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_interaction_api_tests.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_interactions.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_interactions_tests.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_labels.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_ledger.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_load_charge_audit_tests.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_load_charge_work_tests.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_memory.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_owned.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_raw_materialization.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_raw_projection.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_raw_projection_tests.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_raw_scope.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_raw_scope_tests.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_raw_tail_tests.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_raw_window.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_regressions.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_root_warm.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_sidechain_absence.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_source_cache_index_tests.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_spine.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_spine_tests.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_symlink_proof.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_text.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/sqlite.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/toolcall.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/types.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/value.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/watch.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/tests/sonic_arena_model.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/tests/std_allocation_model.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/Cargo.toml +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/build.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/data/command_prefix_pins.tsv +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/src/actor_bridge.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/src/bin/stub_gen.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/src/codex.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/src/command.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/src/context.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/src/corrections.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/src/discovery.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/src/feedback.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/src/judge.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/src/lexicon.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/src/lib.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/src/mining.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/src/nlp.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/src/python.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/src/render.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/src/score.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/src/snapshot_decode.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/src/snapshots.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/src/sqlite.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/src/toolcall.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/src/views/attachment.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/src/views/blocks.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/src/views/command.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/src/views/convert.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/src/views/dunder.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/src/views/events.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/src/views/meta.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/src/views/mod.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/src/views/print.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/src/views/store.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/src/views/system.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/src/views/toolcall.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/src/views/toolresult.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/src/views/transcript.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/py/src/watch.rs +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "cc-transcript"
|
|
3
|
-
version = "14.45.
|
|
3
|
+
version = "14.45.34" # 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"
|
|
@@ -917,6 +917,10 @@ enum PreparedSourceOutcome<'a> {
|
|
|
917
917
|
cached: bool,
|
|
918
918
|
},
|
|
919
919
|
Pending(String),
|
|
920
|
+
SkillPending {
|
|
921
|
+
work: Box<PendingSkillSource>,
|
|
922
|
+
reservation: ProjectionReservation<'a>,
|
|
923
|
+
},
|
|
920
924
|
Stored,
|
|
921
925
|
Superseded,
|
|
922
926
|
}
|
|
@@ -965,6 +969,11 @@ struct PendingPreparedSource {
|
|
|
965
969
|
stamp: SourceStamp,
|
|
966
970
|
}
|
|
967
971
|
|
|
972
|
+
enum PendingQuerySource {
|
|
973
|
+
Native(PendingPreparedSource),
|
|
974
|
+
Skills(Box<PendingSkillSource>),
|
|
975
|
+
}
|
|
976
|
+
|
|
968
977
|
#[derive(Clone)]
|
|
969
978
|
struct PreparedSourceRef {
|
|
970
979
|
path: PathBuf,
|
|
@@ -1154,7 +1163,7 @@ struct PreparedQueryCursor {
|
|
|
1154
1163
|
claimant: String,
|
|
1155
1164
|
graph_id: String,
|
|
1156
1165
|
query: Value,
|
|
1157
|
-
pending: Option<
|
|
1166
|
+
pending: Option<PendingQuerySource>,
|
|
1158
1167
|
input_records: Option<VecDeque<String>>,
|
|
1159
1168
|
observers: Observers,
|
|
1160
1169
|
need: FactsNeed,
|
|
@@ -2067,8 +2076,11 @@ impl Charge<String> for PreparedQueryCursor {
|
|
|
2067
2076
|
+ self.claimant.capacity()
|
|
2068
2077
|
+ self.graph_id.capacity()
|
|
2069
2078
|
+ value_bytes(&self.query)
|
|
2070
|
-
+ self.pending.as_ref().map_or(0, |pending| {
|
|
2071
|
-
pending
|
|
2079
|
+
+ self.pending.as_ref().map_or(0, |pending| match pending {
|
|
2080
|
+
PendingQuerySource::Native(pending) => {
|
|
2081
|
+
pending.token.capacity() + pending.path.capacity()
|
|
2082
|
+
}
|
|
2083
|
+
PendingQuerySource::Skills(work) => work.accounted_bytes(),
|
|
2072
2084
|
})
|
|
2073
2085
|
+ self.input_records.as_ref().map_or(0, |records| {
|
|
2074
2086
|
records.capacity() * size_of::<String>()
|
|
@@ -2152,6 +2164,7 @@ pub(crate) struct StoreState {
|
|
|
2152
2164
|
catalog_owners: Ledgered<usize, CatalogOwner>,
|
|
2153
2165
|
recent_codex: Table<SourceIdentity, u64>,
|
|
2154
2166
|
loads: Table<SourceIdentity, Arc<LoadSlot>>,
|
|
2167
|
+
skill_admissions: Arc<AtomicUsize>,
|
|
2155
2168
|
prepared_loads: Table<SourceIdentity, (Arc<LoadSlot>, u64)>,
|
|
2156
2169
|
leases: Ledgered<String, Lease>,
|
|
2157
2170
|
waiters: Ledgered<String, Waiter>,
|
|
@@ -2165,7 +2178,7 @@ pub(crate) struct StoreState {
|
|
|
2165
2178
|
prepared_queries: Ledgered<String, PreparedQueryCursor>,
|
|
2166
2179
|
expired_prepared_queries: Ledgered<String, (String, u64)>,
|
|
2167
2180
|
prepared_facts: Ledgered<PreparedDiskKey, CachedPreparedFacts>,
|
|
2168
|
-
warm_memberships: Ledgered<String,
|
|
2181
|
+
warm_memberships: Ledgered<String, Arc<MembershipSlot>>,
|
|
2169
2182
|
deliveries: Ledgered<Arc<str>, Delivery>,
|
|
2170
2183
|
deliveries_expiry: DeadlineIndex<Arc<str>>,
|
|
2171
2184
|
labels: Ledgered<String, LabelSlot>,
|
|
@@ -2196,6 +2209,8 @@ pub(crate) struct StoreState {
|
|
|
2196
2209
|
#[cfg(test)]
|
|
2197
2210
|
retained_owners: Vec<Weak<crate::snapshot_prepared::PreparedFacts>>,
|
|
2198
2211
|
#[cfg(test)]
|
|
2212
|
+
retained_membership_owners: Vec<Weak<WarmMembership>>,
|
|
2213
|
+
#[cfg(test)]
|
|
2199
2214
|
retained_graph_input_owners: Vec<(Weak<[PreparedSourceRef]>, Weak<PreparedGraphHeader>)>,
|
|
2200
2215
|
#[cfg(test)]
|
|
2201
2216
|
retained_append_owners: Vec<Weak<CompactCodexIndex>>,
|
|
@@ -2231,6 +2246,7 @@ impl StoreState {
|
|
|
2231
2246
|
catalog_owners: Ledgered::new(work.clone()),
|
|
2232
2247
|
recent_codex: Table::new(work.clone()),
|
|
2233
2248
|
loads: Table::new(work.clone()),
|
|
2249
|
+
skill_admissions: Arc::new(AtomicUsize::new(0)),
|
|
2234
2250
|
prepared_loads: Table::new(work.clone()),
|
|
2235
2251
|
leases: Ledgered::new(work.clone()),
|
|
2236
2252
|
waiters: Ledgered::new(work.clone()),
|
|
@@ -2275,6 +2291,8 @@ impl StoreState {
|
|
|
2275
2291
|
#[cfg(test)]
|
|
2276
2292
|
retained_owners: Vec::new(),
|
|
2277
2293
|
#[cfg(test)]
|
|
2294
|
+
retained_membership_owners: Vec::new(),
|
|
2295
|
+
#[cfg(test)]
|
|
2278
2296
|
retained_graph_input_owners: Vec::new(),
|
|
2279
2297
|
#[cfg(test)]
|
|
2280
2298
|
retained_append_owners: Vec::new(),
|
|
@@ -3301,40 +3319,66 @@ impl StoreState {
|
|
|
3301
3319
|
+ self.waiters.consume_pledge(cursor)
|
|
3302
3320
|
}
|
|
3303
3321
|
|
|
3322
|
+
#[cfg(test)]
|
|
3304
3323
|
fn insert_warm_membership(&mut self, key: String, membership: WarmMembership) {
|
|
3324
|
+
self.insert_membership_slot(key, Arc::new(membership));
|
|
3325
|
+
}
|
|
3326
|
+
|
|
3327
|
+
fn insert_membership_slot(&mut self, key: String, membership: Arc<WarmMembership>) {
|
|
3305
3328
|
self.warm_memberships.reserve_for(&key);
|
|
3306
|
-
self.ledger.shared.reserve(membership
|
|
3307
|
-
for anchor in membership
|
|
3329
|
+
self.ledger.shared.reserve(membership_anchors(&membership));
|
|
3330
|
+
for anchor in membership_anchors(&membership) {
|
|
3308
3331
|
self.ledger.shared.acquire(anchor);
|
|
3309
3332
|
}
|
|
3310
|
-
|
|
3311
|
-
|
|
3333
|
+
let expires = membership.expires;
|
|
3334
|
+
let slot = Arc::new(MembershipSlot {
|
|
3335
|
+
cell: Mutex::new(MembershipCell::Positive(membership)),
|
|
3336
|
+
accounted: AtomicUsize::new(0),
|
|
3337
|
+
pending: AtomicBool::new(false),
|
|
3338
|
+
expires: AtomicU64::new(expires),
|
|
3339
|
+
});
|
|
3340
|
+
if let Some(displaced) = self.warm_memberships.insert(key, slot) {
|
|
3341
|
+
self.release_membership_slot(&displaced);
|
|
3312
3342
|
}
|
|
3313
3343
|
}
|
|
3314
3344
|
|
|
3315
|
-
fn
|
|
3316
|
-
|
|
3317
|
-
|
|
3345
|
+
fn release_membership_slot(&mut self, slot: &MembershipSlot) {
|
|
3346
|
+
let cell = slot.cell.lock().expect("registered membership");
|
|
3347
|
+
match &*cell {
|
|
3348
|
+
MembershipCell::Collected(membership) | MembershipCell::Positive(membership) => {
|
|
3349
|
+
for identity in membership_identities(membership) {
|
|
3350
|
+
self.ledger.shared.release(identity);
|
|
3351
|
+
}
|
|
3352
|
+
}
|
|
3353
|
+
MembershipCell::Empty | MembershipCell::Pending(_) => {}
|
|
3354
|
+
MembershipCell::Busy => panic!("busy membership remains registered"),
|
|
3318
3355
|
}
|
|
3319
3356
|
}
|
|
3320
3357
|
|
|
3321
|
-
fn remove_warm_membership(&mut self, key: &str) -> Option<
|
|
3322
|
-
let
|
|
3323
|
-
|
|
3324
|
-
|
|
3358
|
+
fn remove_warm_membership(&mut self, key: &str) -> Option<Arc<MembershipSlot>> {
|
|
3359
|
+
let slot = self.warm_memberships.get(key)?;
|
|
3360
|
+
if Arc::strong_count(slot) > 1 {
|
|
3361
|
+
return None;
|
|
3362
|
+
}
|
|
3363
|
+
let slot = self
|
|
3364
|
+
.warm_memberships
|
|
3365
|
+
.remove(key)
|
|
3366
|
+
.expect("registered membership");
|
|
3367
|
+
self.release_membership_slot(&slot);
|
|
3368
|
+
Some(slot)
|
|
3325
3369
|
}
|
|
3326
3370
|
|
|
3327
|
-
fn retain_warm_memberships(&mut self,
|
|
3328
|
-
let
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
}
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
for
|
|
3337
|
-
self.
|
|
3371
|
+
fn retain_warm_memberships(&mut self, now: u64) {
|
|
3372
|
+
let expired: Vec<_> = self
|
|
3373
|
+
.warm_memberships
|
|
3374
|
+
.iter()
|
|
3375
|
+
.filter(|(_, slot)| {
|
|
3376
|
+
slot.expires.load(Ordering::Acquire) <= now && Arc::strong_count(slot) == 1
|
|
3377
|
+
})
|
|
3378
|
+
.map(|(key, _)| key.clone())
|
|
3379
|
+
.collect();
|
|
3380
|
+
for key in expired {
|
|
3381
|
+
self.remove_warm_membership(&key);
|
|
3338
3382
|
}
|
|
3339
3383
|
}
|
|
3340
3384
|
|
|
@@ -3471,6 +3515,9 @@ pub struct NativeStore {
|
|
|
3471
3515
|
#[cfg(test)]
|
|
3472
3516
|
resolve_hook: Mutex<Option<Arc<dyn Fn(&Path) + Send + Sync>>>,
|
|
3473
3517
|
#[cfg(test)]
|
|
3518
|
+
membership_hook:
|
|
3519
|
+
Mutex<Option<Arc<dyn Fn(&'static str, usize) -> Result<(), SnapshotError> + Send + Sync>>>,
|
|
3520
|
+
#[cfg(test)]
|
|
3474
3521
|
membership_metadata_checks: AtomicUsize,
|
|
3475
3522
|
#[cfg(test)]
|
|
3476
3523
|
sidechain_path_probes: AtomicUsize,
|
|
@@ -4037,6 +4084,8 @@ impl NativeStore {
|
|
|
4037
4084
|
#[cfg(test)]
|
|
4038
4085
|
resolve_hook: Mutex::new(None),
|
|
4039
4086
|
#[cfg(test)]
|
|
4087
|
+
membership_hook: Mutex::new(None),
|
|
4088
|
+
#[cfg(test)]
|
|
4040
4089
|
membership_metadata_checks: AtomicUsize::new(0),
|
|
4041
4090
|
#[cfg(test)]
|
|
4042
4091
|
sidechain_path_probes: AtomicUsize::new(0),
|
|
@@ -5296,7 +5345,7 @@ impl NativeStore {
|
|
|
5296
5345
|
.collect();
|
|
5297
5346
|
for token in expired_queries {
|
|
5298
5347
|
if let Some(query) = state.prepared_queries.remove(&token) {
|
|
5299
|
-
if let Some(pending) = query.pending {
|
|
5348
|
+
if let Some(PendingQuerySource::Native(pending)) = query.pending {
|
|
5300
5349
|
state.waiters.remove(&pending.token);
|
|
5301
5350
|
}
|
|
5302
5351
|
if query.remaining.deadline_unix_ms <= now {
|
|
@@ -5371,7 +5420,7 @@ impl NativeStore {
|
|
|
5371
5420
|
for identity in state.expired_prepared_loads(now) {
|
|
5372
5421
|
state.prepared_loads.remove(&identity);
|
|
5373
5422
|
}
|
|
5374
|
-
state.retain_warm_memberships(
|
|
5423
|
+
state.retain_warm_memberships(now);
|
|
5375
5424
|
state.retain_loads(|id, slot| {
|
|
5376
5425
|
(active.contains(id) && slot.deadline.load(Ordering::Acquire) > now)
|
|
5377
5426
|
|| Arc::strong_count(slot) > 1
|
|
@@ -6143,14 +6192,14 @@ impl NativeStore {
|
|
|
6143
6192
|
+ claimant.capacity()
|
|
6144
6193
|
+ graph_id.capacity()
|
|
6145
6194
|
+ value_bytes(query)
|
|
6146
|
-
+ pending.as_ref().map_or(
|
|
6147
|
-
|
|
6148
|
-
|
|
6149
|
-
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
)
|
|
6195
|
+
+ pending.as_ref().map_or(0, |pending| match pending {
|
|
6196
|
+
PendingQuerySource::Native(PendingPreparedSource {
|
|
6197
|
+
token,
|
|
6198
|
+
path,
|
|
6199
|
+
stamp: _,
|
|
6200
|
+
}) => token.capacity() + path.capacity(),
|
|
6201
|
+
PendingQuerySource::Skills(work) => Self::audit_skill_source_bytes(work),
|
|
6202
|
+
})
|
|
6154
6203
|
+ input_records.as_ref().map_or(0, |records| {
|
|
6155
6204
|
records.capacity() * size_of::<String>()
|
|
6156
6205
|
+ records.iter().map(String::capacity).sum::<usize>()
|
|
@@ -6186,17 +6235,14 @@ impl NativeStore {
|
|
|
6186
6235
|
}
|
|
6187
6236
|
|
|
6188
6237
|
#[cfg(test)]
|
|
6189
|
-
fn audit_warm_membership_bytes(key: &String,
|
|
6190
|
-
let
|
|
6191
|
-
|
|
6192
|
-
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
expires: _,
|
|
6198
|
-
} = membership;
|
|
6199
|
-
key.capacity() + size_of::<WarmMembership>() + revision.capacity()
|
|
6238
|
+
fn audit_warm_membership_bytes(key: &String, slot: &Arc<MembershipSlot>) -> usize {
|
|
6239
|
+
let cell = slot.cell.lock().expect("registered membership");
|
|
6240
|
+
let heap = match &*cell {
|
|
6241
|
+
MembershipCell::Empty | MembershipCell::Collected(_) | MembershipCell::Positive(_) => 0,
|
|
6242
|
+
MembershipCell::Pending(build) => Self::audit_membership_build_bytes(build),
|
|
6243
|
+
MembershipCell::Busy => panic!("membership ownership audit requires a settled request"),
|
|
6244
|
+
};
|
|
6245
|
+
key.capacity() + arc_mirror::<MembershipSlot>() + MUTEX_STORAGE_MIRROR + heap
|
|
6200
6246
|
}
|
|
6201
6247
|
|
|
6202
6248
|
#[cfg(test)]
|
|
@@ -6394,6 +6440,7 @@ impl NativeStore {
|
|
|
6394
6440
|
|
|
6395
6441
|
fn bookkeeping_bytes(state: &StoreState) -> usize {
|
|
6396
6442
|
size_of::<StoreState>()
|
|
6443
|
+
+ arc_bytes::<AtomicUsize>()
|
|
6397
6444
|
+ state.ledger.shared.table_bytes()
|
|
6398
6445
|
+ state.registries.capacity_bytes()
|
|
6399
6446
|
+ state.generations.capacity_bytes()
|
|
@@ -7298,7 +7345,7 @@ impl NativeStore {
|
|
|
7298
7345
|
released |= state.registered_builds.remove(token).is_some();
|
|
7299
7346
|
released |= state.projections.remove(token).is_some();
|
|
7300
7347
|
if let Some(query) = state.prepared_queries.remove(token) {
|
|
7301
|
-
if let Some(pending) = query.pending {
|
|
7348
|
+
if let Some(PendingQuerySource::Native(pending)) = query.pending {
|
|
7302
7349
|
state.waiters.remove(&pending.token);
|
|
7303
7350
|
}
|
|
7304
7351
|
released = true;
|
|
@@ -7344,7 +7391,7 @@ impl NativeStore {
|
|
|
7344
7391
|
.is_some_and(|query| query.claimant == claimant)
|
|
7345
7392
|
{
|
|
7346
7393
|
if let Some(query) = state.prepared_queries.remove(token) {
|
|
7347
|
-
if let Some(pending) = query.pending {
|
|
7394
|
+
if let Some(PendingQuerySource::Native(pending)) = query.pending {
|
|
7348
7395
|
state.waiters.remove(&pending.token);
|
|
7349
7396
|
}
|
|
7350
7397
|
}
|
|
@@ -7916,7 +7963,7 @@ impl NativeStore {
|
|
|
7916
7963
|
.collect();
|
|
7917
7964
|
for query_token in discarded {
|
|
7918
7965
|
if let Some(query) = state.prepared_queries.remove(&query_token) {
|
|
7919
|
-
if let Some(pending) = query.pending {
|
|
7966
|
+
if let Some(PendingQuerySource::Native(pending)) = query.pending {
|
|
7920
7967
|
state.waiters.remove(&pending.token);
|
|
7921
7968
|
}
|
|
7922
7969
|
}
|
|
@@ -12237,8 +12284,11 @@ impl NativeStore {
|
|
|
12237
12284
|
include!("snapshot_catalog.rs");
|
|
12238
12285
|
include!("snapshot_symlink_proof.rs");
|
|
12239
12286
|
include!("snapshot_catalog_owner.rs");
|
|
12287
|
+
|
|
12288
|
+
include!("snapshot_membership_progress.rs");
|
|
12240
12289
|
include!("snapshot_sidechain_absence.rs");
|
|
12241
12290
|
include!("snapshot_prepared_service.rs");
|
|
12291
|
+
include!("snapshot_skills.rs");
|
|
12242
12292
|
include!("snapshot_hydration_observations.rs");
|
|
12243
12293
|
include!("snapshot_cache.rs");
|
|
12244
12294
|
include!("snapshot_root_warm.rs");
|
|
@@ -12315,11 +12365,15 @@ mod tests {
|
|
|
12315
12365
|
include!("snapshot_raw_tail_tests.rs");
|
|
12316
12366
|
include!("snapshot_direct_tail_tests.rs");
|
|
12317
12367
|
include!("snapshot_query_hydration_tests.rs");
|
|
12368
|
+
include!("snapshot_skill_demand_controls.rs");
|
|
12369
|
+
include!("snapshot_skill_demand_tests.rs");
|
|
12318
12370
|
include!("snapshot_compact_codex_tests.rs");
|
|
12319
12371
|
include!("snapshot_hydrate_budget_tests.rs");
|
|
12320
12372
|
include!("snapshot_interactions_tests.rs");
|
|
12321
12373
|
include!("snapshot_interaction_api_tests.rs");
|
|
12322
12374
|
include!("snapshot_catalog_tests.rs");
|
|
12375
|
+
include!("snapshot_membership_progress_tests.rs");
|
|
12376
|
+
include!("snapshot_membership_progress_controls.rs");
|
|
12323
12377
|
include!("snapshot_sidechain_absence_tests.rs");
|
|
12324
12378
|
include!("snapshot_common_borrowed_parent_tests.rs");
|
|
12325
12379
|
|
|
@@ -17269,17 +17323,21 @@ mod tests {
|
|
|
17269
17323
|
#[test]
|
|
17270
17324
|
fn registered_warming_charges_its_member_positions_once_and_reuses_them_on_every_page() {
|
|
17271
17325
|
let (source, store, owner, fresh) = registered_warming(20);
|
|
17272
|
-
let key = NativeStore::
|
|
17326
|
+
let key = NativeStore::membership_collection_key(&fresh, &owner).unwrap();
|
|
17273
17327
|
let positions = || {
|
|
17274
17328
|
let state = store.lock_state();
|
|
17275
17329
|
assert_eq!(state.warm_memberships.len(), 1);
|
|
17276
|
-
let membership =
|
|
17330
|
+
let membership = state
|
|
17331
|
+
.positive_membership(&key)
|
|
17332
|
+
.expect("positive membership");
|
|
17277
17333
|
assert!(membership.members.iter().all(|member| membership
|
|
17278
17334
|
.active_member(member.stamp.identity, None)
|
|
17279
17335
|
.is_some_and(|found| std::ptr::eq(found, member))));
|
|
17280
17336
|
assert_eq!(
|
|
17281
17337
|
state.ledger.shared.warm(),
|
|
17282
|
-
|
|
17338
|
+
arc_mirror::<WarmMembership>()
|
|
17339
|
+
+ membership.revision.capacity()
|
|
17340
|
+
+ source_ref_bytes(&membership.members)
|
|
17283
17341
|
+ arc_slice_mirror::<(SourceIdentity, usize)>(membership.members.len())
|
|
17284
17342
|
+ sidechain_dir_bytes(&membership.sidechain_dirs)
|
|
17285
17343
|
);
|
|
@@ -20186,6 +20244,7 @@ mod tests {
|
|
|
20186
20244
|
.lock_state()
|
|
20187
20245
|
.warm_memberships
|
|
20188
20246
|
.values()
|
|
20247
|
+
.filter_map(|slot| slot.positive())
|
|
20189
20248
|
.next()
|
|
20190
20249
|
.unwrap()
|
|
20191
20250
|
.clone();
|
|
@@ -20212,7 +20271,10 @@ mod tests {
|
|
|
20212
20271
|
resolved.lock().unwrap().push((
|
|
20213
20272
|
path.to_path_buf(),
|
|
20214
20273
|
state.transient_bytes,
|
|
20215
|
-
state
|
|
20274
|
+
state
|
|
20275
|
+
.warm_memberships
|
|
20276
|
+
.values()
|
|
20277
|
+
.all(|slot| slot.pending.load(Ordering::Acquire)),
|
|
20216
20278
|
));
|
|
20217
20279
|
}
|
|
20218
20280
|
}));
|
|
@@ -20222,12 +20284,12 @@ mod tests {
|
|
|
20222
20284
|
*store.resolve_hook.lock().unwrap() = None;
|
|
20223
20285
|
assert_eq!(reply["status"].as_str(), Some("ok"), "{reply:?}");
|
|
20224
20286
|
let resolutions = resolved.lock().unwrap();
|
|
20225
|
-
let
|
|
20287
|
+
let refreshing: Vec<_> = resolutions
|
|
20226
20288
|
.iter()
|
|
20227
|
-
.filter(|(..,
|
|
20289
|
+
.filter(|(.., refreshing)| *refreshing)
|
|
20228
20290
|
.collect();
|
|
20229
20291
|
assert_eq!(
|
|
20230
|
-
|
|
20292
|
+
refreshing.iter().map(|(path, ..)| path).collect::<Vec<_>>(),
|
|
20231
20293
|
warmed
|
|
20232
20294
|
.members
|
|
20233
20295
|
.iter()
|
|
@@ -20236,7 +20298,7 @@ mod tests {
|
|
|
20236
20298
|
);
|
|
20237
20299
|
assert!(!resolutions[0].2);
|
|
20238
20300
|
assert!(
|
|
20239
|
-
|
|
20301
|
+
refreshing.last().unwrap().1 - resolutions[0].1 >= live + copied,
|
|
20240
20302
|
"the refresh holds copied member paths its reservation never charged"
|
|
20241
20303
|
);
|
|
20242
20304
|
assert!(Arc::ptr_eq(
|
|
@@ -20244,6 +20306,7 @@ mod tests {
|
|
|
20244
20306
|
.lock_state()
|
|
20245
20307
|
.warm_memberships
|
|
20246
20308
|
.values()
|
|
20309
|
+
.filter_map(|slot| slot.positive())
|
|
20247
20310
|
.next()
|
|
20248
20311
|
.unwrap()
|
|
20249
20312
|
.positions,
|
{cc_transcript-14.45.32 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_catalog_owner.rs
RENAMED
|
@@ -78,9 +78,18 @@ struct CatalogInput<'a> {
|
|
|
78
78
|
roots: &'a [Value],
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
enum CatalogMode<'a> {
|
|
81
|
+
enum CatalogMode<'a> {
|
|
82
|
+
Index(&'a mut CatalogProbe),
|
|
83
|
+
Locate(&'a mut MembershipLocate),
|
|
84
|
+
Check(CatalogCertificate),
|
|
85
|
+
}
|
|
82
86
|
|
|
83
|
-
enum CatalogWorkResult {
|
|
87
|
+
enum CatalogWorkResult {
|
|
88
|
+
Indexed,
|
|
89
|
+
Paths(HashMap<String, PathBuf>, CatalogCertificate),
|
|
90
|
+
Checked(bool),
|
|
91
|
+
Pending,
|
|
92
|
+
}
|
|
84
93
|
|
|
85
94
|
enum CatalogResolution<'a> {
|
|
86
95
|
Indexed,
|
|
@@ -91,6 +100,10 @@ enum CatalogResolution<'a> {
|
|
|
91
100
|
certificate: Option<CatalogCertificate>,
|
|
92
101
|
},
|
|
93
102
|
Pending(Arc<CatalogSlot>),
|
|
103
|
+
Stopped {
|
|
104
|
+
error: SnapshotError,
|
|
105
|
+
reservation: ProjectionReservation<'a>,
|
|
106
|
+
},
|
|
94
107
|
}
|
|
95
108
|
|
|
96
109
|
struct RegisteredBuild {
|
|
@@ -203,8 +216,19 @@ impl NativeStore {
|
|
|
203
216
|
return Err(invalid("invalid root count"));
|
|
204
217
|
}
|
|
205
218
|
let chunk_size = 1024.min(remaining.max_items);
|
|
206
|
-
if chunk_size == 0 {
|
|
207
|
-
|
|
219
|
+
if chunk_size == 0 {
|
|
220
|
+
return Err(invalid("location request exceeds session item bound"));
|
|
221
|
+
}
|
|
222
|
+
let retains_paths = matches!(mode, CatalogMode::Locate(_));
|
|
223
|
+
if let CatalogMode::Locate(progress) = &mode {
|
|
224
|
+
if progress.chunk_size != chunk_size {
|
|
225
|
+
return Err(SnapshotError::new(
|
|
226
|
+
Status::Changed,
|
|
227
|
+
"registered selection geometry changed",
|
|
228
|
+
));
|
|
229
|
+
}
|
|
230
|
+
self.validate_catalog_chunk(&ids[..ids.len().min(chunk_size)])?;
|
|
231
|
+
}
|
|
208
232
|
let (key, mut reservation) = self.catalog_key(roots, context)?;
|
|
209
233
|
let slot = {
|
|
210
234
|
let mut state = self.lock_state();
|
|
@@ -273,16 +297,34 @@ impl NativeStore {
|
|
|
273
297
|
return Ok(CatalogWorkResult::Pending);
|
|
274
298
|
}
|
|
275
299
|
CatalogMode::Check(expected) => {
|
|
276
|
-
let issue =
|
|
277
|
-
|
|
300
|
+
let issue =
|
|
301
|
+
catalog.refresh(self, cancel, remaining.deadline_unix_ms, &mut budget)?;
|
|
302
|
+
return Ok(CatalogWorkResult::Checked(
|
|
303
|
+
issue.is_none() && expected.key() == key && expected.matches(catalog),
|
|
304
|
+
));
|
|
278
305
|
}
|
|
279
|
-
CatalogMode::Locate => {}
|
|
306
|
+
CatalogMode::Locate(_) => {}
|
|
307
|
+
}
|
|
308
|
+
let progress = match &mut mode {
|
|
309
|
+
CatalogMode::Locate(progress) => &mut **progress,
|
|
310
|
+
_ => unreachable!("catalog selection mode"),
|
|
311
|
+
};
|
|
312
|
+
if progress.revision.is_some() {
|
|
313
|
+
catalog.refresh(self, cancel, remaining.deadline_unix_ms, &mut budget)?;
|
|
314
|
+
}
|
|
315
|
+
if progress
|
|
316
|
+
.revision
|
|
317
|
+
.is_some_and(|certificate| !certificate.matches(catalog))
|
|
318
|
+
{
|
|
319
|
+
return Err(SnapshotError::new(
|
|
320
|
+
Status::Changed,
|
|
321
|
+
"registered catalog changed between selection steps",
|
|
322
|
+
));
|
|
280
323
|
}
|
|
281
|
-
let mut paths = HashMap::new();
|
|
282
324
|
let mut plan = None;
|
|
283
|
-
let mut plan_epoch =
|
|
284
|
-
let mut selected_revision =
|
|
285
|
-
for chunk in ids.chunks(chunk_size) {
|
|
325
|
+
let mut plan_epoch = catalog.epoch;
|
|
326
|
+
let mut selected_revision = progress.revision.map(|_| catalog.selection_revision);
|
|
327
|
+
for chunk in ids[progress.next..].chunks(chunk_size) {
|
|
286
328
|
self.validate_catalog_chunk(chunk)?;
|
|
287
329
|
budget.reserve(CatalogProbe::allocation_bound(chunk, chunk.len()))?;
|
|
288
330
|
let mut probe = CatalogProbe::new(chunk, chunk.len());
|
|
@@ -306,8 +348,19 @@ impl NativeStore {
|
|
|
306
348
|
}
|
|
307
349
|
selected_revision = Some(catalog.selection_revision);
|
|
308
350
|
self.remember_locations(located.iter(), context);
|
|
309
|
-
budget.reserve(map_growth(&paths, located.len()))?;
|
|
310
|
-
paths.extend(located);
|
|
351
|
+
budget.reserve(map_growth(&progress.paths, located.len()))?;
|
|
352
|
+
progress.paths.extend(located);
|
|
353
|
+
progress.next += chunk.len();
|
|
354
|
+
progress.revision = Some(CatalogCertificate {
|
|
355
|
+
scope: key
|
|
356
|
+
.as_bytes()
|
|
357
|
+
.try_into()
|
|
358
|
+
.expect("catalog scope digest size"),
|
|
359
|
+
incarnation: catalog.incarnation,
|
|
360
|
+
revision: catalog.decision_revision,
|
|
361
|
+
});
|
|
362
|
+
#[cfg(test)]
|
|
363
|
+
self.membership_checkpoint("locate", progress.next)?;
|
|
311
364
|
break;
|
|
312
365
|
}
|
|
313
366
|
}
|
|
@@ -328,11 +381,17 @@ impl NativeStore {
|
|
|
328
381
|
return Err(SnapshotError::new(Status::Changed, "registered catalog changed during lookup"));
|
|
329
382
|
}
|
|
330
383
|
cancel.check(remaining.deadline_unix_ms)?;
|
|
331
|
-
Ok(CatalogWorkResult::Paths(
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
384
|
+
Ok(CatalogWorkResult::Paths(
|
|
385
|
+
std::mem::take(&mut progress.paths),
|
|
386
|
+
CatalogCertificate {
|
|
387
|
+
scope: key
|
|
388
|
+
.as_bytes()
|
|
389
|
+
.try_into()
|
|
390
|
+
.expect("catalog scope digest size"),
|
|
391
|
+
incarnation: catalog.incarnation,
|
|
392
|
+
revision: catalog.decision_revision,
|
|
393
|
+
},
|
|
394
|
+
))
|
|
336
395
|
})();
|
|
337
396
|
{
|
|
338
397
|
let mut state = self.lock_state();
|
|
@@ -350,11 +409,17 @@ impl NativeStore {
|
|
|
350
409
|
};
|
|
351
410
|
}
|
|
352
411
|
self.fact_read_released.notify_all();
|
|
353
|
-
match outcome
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
CatalogWorkResult::
|
|
357
|
-
|
|
412
|
+
match outcome {
|
|
413
|
+
Err(error) if retains_paths => Ok(CatalogResolution::Stopped { error, reservation }),
|
|
414
|
+
Err(error) => Err(error),
|
|
415
|
+
Ok(CatalogWorkResult::Paths(paths, certificate)) => Ok(CatalogResolution::Ready {
|
|
416
|
+
paths,
|
|
417
|
+
reservation,
|
|
418
|
+
certificate: Some(certificate),
|
|
419
|
+
}),
|
|
420
|
+
Ok(CatalogWorkResult::Checked(valid)) => Ok(CatalogResolution::Checked(valid)),
|
|
421
|
+
Ok(CatalogWorkResult::Indexed) => Ok(CatalogResolution::Indexed),
|
|
422
|
+
Ok(CatalogWorkResult::Pending) => Ok(CatalogResolution::Pending(slot)),
|
|
358
423
|
}
|
|
359
424
|
}
|
|
360
425
|
}
|
|
@@ -422,11 +487,20 @@ impl NativeStore {
|
|
|
422
487
|
drop(scope);
|
|
423
488
|
self.prepare_graph_ready(request, context, cancel, usage, remaining)
|
|
424
489
|
}
|
|
425
|
-
CatalogResolution::Ready { .. }
|
|
490
|
+
CatalogResolution::Ready { .. }
|
|
491
|
+
| CatalogResolution::Checked(_)
|
|
492
|
+
| CatalogResolution::Stopped { .. } => {
|
|
493
|
+
unreachable!("catalog indexing does not materialize paths")
|
|
494
|
+
}
|
|
426
495
|
CatalogResolution::Pending(slot) => {
|
|
427
|
-
self.extend_projection_reservation(
|
|
428
|
-
|
|
429
|
-
|
|
496
|
+
self.extend_projection_reservation(
|
|
497
|
+
&mut reservation,
|
|
498
|
+
context,
|
|
499
|
+
size_of::<RegisteredBuild>()
|
|
500
|
+
+ value_bytes(request)
|
|
501
|
+
+ value_bytes(context)
|
|
502
|
+
+ str_field(context, "claimant")?.len(),
|
|
503
|
+
)?;
|
|
430
504
|
let mut build = RegisteredBuild {
|
|
431
505
|
claimant: str_field(context, "claimant")?.to_owned(),
|
|
432
506
|
request: request.clone(), context: context.clone(),
|
|
@@ -451,18 +525,41 @@ impl NativeStore {
|
|
|
451
525
|
if scope.snapshot.stamp != build.root.stamp
|
|
452
526
|
|| !classifier_eq(&build.request["view"]["classifier"], &scope.classifier)?
|
|
453
527
|
{
|
|
454
|
-
return Err(SnapshotError::new(
|
|
528
|
+
return Err(SnapshotError::new(
|
|
529
|
+
Status::Changed,
|
|
530
|
+
"prepared graph root generation changed",
|
|
531
|
+
));
|
|
455
532
|
}
|
|
456
|
-
match self.catalog_access(
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
533
|
+
match self.catalog_access(
|
|
534
|
+
CatalogInput {
|
|
535
|
+
ids: build.request["thread_ids"]
|
|
536
|
+
.as_array()
|
|
537
|
+
.expect("validated registered ids"),
|
|
538
|
+
roots: build.request["roots"]
|
|
539
|
+
.as_array()
|
|
540
|
+
.expect("validated registered roots"),
|
|
541
|
+
},
|
|
542
|
+
&build.context,
|
|
543
|
+
cancel,
|
|
544
|
+
&mut build.remaining,
|
|
545
|
+
usage,
|
|
546
|
+
CatalogMode::Index(&mut build.probe),
|
|
547
|
+
)? {
|
|
548
|
+
CatalogResolution::Indexed => self.prepare_graph_ready(
|
|
549
|
+
&build.request,
|
|
550
|
+
&build.context,
|
|
551
|
+
cancel,
|
|
552
|
+
usage,
|
|
553
|
+
build.remaining,
|
|
554
|
+
),
|
|
555
|
+
CatalogResolution::Ready { .. }
|
|
556
|
+
| CatalogResolution::Checked(_)
|
|
557
|
+
| CatalogResolution::Stopped { .. } => {
|
|
558
|
+
unreachable!("catalog indexing does not materialize paths")
|
|
559
|
+
}
|
|
560
|
+
CatalogResolution::Pending(slot) => {
|
|
561
|
+
self.retain_registered_build(token, build, slot, reservation)
|
|
463
562
|
}
|
|
464
|
-
CatalogResolution::Ready { .. } | CatalogResolution::Checked(_) => unreachable!("catalog indexing does not materialize paths"),
|
|
465
|
-
CatalogResolution::Pending(slot) => self.retain_registered_build(token, build, slot, reservation),
|
|
466
563
|
}
|
|
467
564
|
}
|
|
468
565
|
|