cc-transcript 14.45.33__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.33 → cc_transcript-14.45.34}/PKG-INFO +1 -1
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/pyproject.toml +1 -1
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot.rs +88 -43
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_catalog_owner.rs +134 -37
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_catalog_tests.rs +143 -45
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_ledger_tests.rs +153 -35
- 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.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_prepared_service.rs +72 -291
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_sidechain_absence_tests.rs +29 -7
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/Cargo.lock +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/Cargo.toml +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/LICENSE +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/README.md +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/__init__.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/__init__.pyi +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/_native.pyi +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/activity.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/activity_probe.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/builders.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/codex.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/command.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/context.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/corrections.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/cost.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/decision_store.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/decisions.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/discovery.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/disktruth.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/evidence.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/extract/__init__.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/extract/correct.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/facts.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/filterspec.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/heartbeats.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/ids.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/judge/__init__.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/judge/llm.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/judge/similar.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/judge/verdicts.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/ledger.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/literals.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/mining/__init__.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/mining/candidates.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/mining/confidence.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/mining/engine.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/mining/formats.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/mining/sampling.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/mining/signals.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/mining/sourcekind.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/mining/spec.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/mining/store.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/models.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/nlp.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/notifications.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/parser.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/py.typed +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/query.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/render.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/sentiment/__init__.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/sentiment/buckets.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/sentiment/data/afinn-en-165.tsv +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/sentiment/data/domain_overrides.tsv +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/sentiment/data/en-ewt.udpipe +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/sentiment/engine.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/sentiment/lexicon.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/sentiment/scorespec.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/snapshot_schema/config.schema.json +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/snapshot_schema/context.schema.json +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/snapshot_schema/request.schema.json +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/snapshot_schema/response.schema.json +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/snapshot_schema/tool_registry.schema.json +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/snapshots.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/synthetic.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/tools.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/cc_transcript/watch.py +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/cli/Cargo.toml +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/cli/src/commands/blame.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/cli/src/commands/corpus.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/cli/src/commands/corrections.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/cli/src/commands/digest.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/cli/src/commands/facts.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/cli/src/commands/grep.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/cli/src/commands/list.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/cli/src/commands/mod.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/cli/src/commands/scratchpad.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/cli/src/commands/show.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/cli/src/commands/slice.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/cli/src/commands/stats.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/cli/src/commands/watch.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/cli/src/lib.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/cli/src/output.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/cli/src/target.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/cli/src/timearg.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/Cargo.toml +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/benches/parse.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/benches/render.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/benches/toolcall.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/build.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/activity.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/actor.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/blame.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/buckets.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/codex/discovery.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/codex/lower.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/codex/mod.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/codex/parse.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/codex/probe.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/codex/protocol.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/codex/types.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/command.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/context.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/corrections.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/cost.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/discovery.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/facts.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/feedback.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/filter.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/gateway.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/ids.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/judge.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/lib.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/literals/command.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/literals/corrections.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/literals/feedback.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/literals/mining.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/literals/mod.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/literals/protocol.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/notifications.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/parse.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/protocol.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/pystr.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/query.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/render.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/request_body.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/rng.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/scan.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/scan_checkpoint.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/scan_grep.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/scan_grep_stream.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/scan_grep_stream_tests.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/scan_index.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/scan_projection.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/scan_regressions.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/scan_stream.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/schema.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_activity.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_admission_report_tests.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_cache.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_cache_tests.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_catalog.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_codec.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_codex_append.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_common_borrowed_parent_tests.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_compact_codex.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_compact_codex_tests.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_direct_tail.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_direct_tail_tests.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_graph_validation_tests.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_hydrate_budget_tests.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_hydration_observations.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_interaction_api.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_interaction_api_tests.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_interactions.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_interactions_tests.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_labels.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_ledger.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_load_charge_audit_tests.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_load_charge_work_tests.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_memory.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_owned.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_prepared.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_prepared_disk.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_projection.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_query_hydration_tests.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_raw_materialization.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_raw_projection.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_raw_projection_tests.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_raw_scope.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_raw_scope_tests.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_raw_tail_tests.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_raw_window.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_regressions.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_root_warm.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_sidechain_absence.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_skill_demand_controls.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_skill_demand_tests.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_skill_framing.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_skills.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_source_cache_index_tests.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_spine.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_spine_tests.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_symlink_proof.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/snapshot_text.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/sqlite.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/toolcall.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/types.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/value.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/src/watch.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/tests/sonic_arena_model.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/core/tests/std_allocation_model.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/py/Cargo.toml +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/py/build.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/py/data/command_prefix_pins.tsv +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/py/src/actor_bridge.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/py/src/bin/stub_gen.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/py/src/codex.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/py/src/command.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/py/src/context.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/py/src/corrections.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/py/src/discovery.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/py/src/feedback.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/py/src/judge.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/py/src/lexicon.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/py/src/lib.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/py/src/mining.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/py/src/nlp.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/py/src/python.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/py/src/render.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/py/src/score.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/py/src/snapshot_decode.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/py/src/snapshots.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/py/src/sqlite.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/py/src/toolcall.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/py/src/views/attachment.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/py/src/views/blocks.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/py/src/views/command.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/py/src/views/convert.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/py/src/views/dunder.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/py/src/views/events.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/py/src/views/meta.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/py/src/views/mod.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/py/src/views/print.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/py/src/views/store.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/py/src/views/system.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/py/src/views/toolcall.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/py/src/views/toolresult.rs +0 -0
- {cc_transcript-14.45.33 → cc_transcript-14.45.34}/rust/crates/py/src/views/transcript.rs +0 -0
- {cc_transcript-14.45.33 → 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"
|
|
@@ -2178,7 +2178,7 @@ pub(crate) struct StoreState {
|
|
|
2178
2178
|
prepared_queries: Ledgered<String, PreparedQueryCursor>,
|
|
2179
2179
|
expired_prepared_queries: Ledgered<String, (String, u64)>,
|
|
2180
2180
|
prepared_facts: Ledgered<PreparedDiskKey, CachedPreparedFacts>,
|
|
2181
|
-
warm_memberships: Ledgered<String,
|
|
2181
|
+
warm_memberships: Ledgered<String, Arc<MembershipSlot>>,
|
|
2182
2182
|
deliveries: Ledgered<Arc<str>, Delivery>,
|
|
2183
2183
|
deliveries_expiry: DeadlineIndex<Arc<str>>,
|
|
2184
2184
|
labels: Ledgered<String, LabelSlot>,
|
|
@@ -2209,6 +2209,8 @@ pub(crate) struct StoreState {
|
|
|
2209
2209
|
#[cfg(test)]
|
|
2210
2210
|
retained_owners: Vec<Weak<crate::snapshot_prepared::PreparedFacts>>,
|
|
2211
2211
|
#[cfg(test)]
|
|
2212
|
+
retained_membership_owners: Vec<Weak<WarmMembership>>,
|
|
2213
|
+
#[cfg(test)]
|
|
2212
2214
|
retained_graph_input_owners: Vec<(Weak<[PreparedSourceRef]>, Weak<PreparedGraphHeader>)>,
|
|
2213
2215
|
#[cfg(test)]
|
|
2214
2216
|
retained_append_owners: Vec<Weak<CompactCodexIndex>>,
|
|
@@ -2289,6 +2291,8 @@ impl StoreState {
|
|
|
2289
2291
|
#[cfg(test)]
|
|
2290
2292
|
retained_owners: Vec::new(),
|
|
2291
2293
|
#[cfg(test)]
|
|
2294
|
+
retained_membership_owners: Vec::new(),
|
|
2295
|
+
#[cfg(test)]
|
|
2292
2296
|
retained_graph_input_owners: Vec::new(),
|
|
2293
2297
|
#[cfg(test)]
|
|
2294
2298
|
retained_append_owners: Vec::new(),
|
|
@@ -3315,40 +3319,66 @@ impl StoreState {
|
|
|
3315
3319
|
+ self.waiters.consume_pledge(cursor)
|
|
3316
3320
|
}
|
|
3317
3321
|
|
|
3322
|
+
#[cfg(test)]
|
|
3318
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>) {
|
|
3319
3328
|
self.warm_memberships.reserve_for(&key);
|
|
3320
|
-
self.ledger.shared.reserve(membership
|
|
3321
|
-
for anchor in membership
|
|
3329
|
+
self.ledger.shared.reserve(membership_anchors(&membership));
|
|
3330
|
+
for anchor in membership_anchors(&membership) {
|
|
3322
3331
|
self.ledger.shared.acquire(anchor);
|
|
3323
3332
|
}
|
|
3324
|
-
|
|
3325
|
-
|
|
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);
|
|
3326
3342
|
}
|
|
3327
3343
|
}
|
|
3328
3344
|
|
|
3329
|
-
fn
|
|
3330
|
-
|
|
3331
|
-
|
|
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"),
|
|
3332
3355
|
}
|
|
3333
3356
|
}
|
|
3334
3357
|
|
|
3335
|
-
fn remove_warm_membership(&mut self, key: &str) -> Option<
|
|
3336
|
-
let
|
|
3337
|
-
|
|
3338
|
-
|
|
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)
|
|
3339
3369
|
}
|
|
3340
3370
|
|
|
3341
|
-
fn retain_warm_memberships(&mut self,
|
|
3342
|
-
let
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
}
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
for
|
|
3351
|
-
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);
|
|
3352
3382
|
}
|
|
3353
3383
|
}
|
|
3354
3384
|
|
|
@@ -3485,6 +3515,9 @@ pub struct NativeStore {
|
|
|
3485
3515
|
#[cfg(test)]
|
|
3486
3516
|
resolve_hook: Mutex<Option<Arc<dyn Fn(&Path) + Send + Sync>>>,
|
|
3487
3517
|
#[cfg(test)]
|
|
3518
|
+
membership_hook:
|
|
3519
|
+
Mutex<Option<Arc<dyn Fn(&'static str, usize) -> Result<(), SnapshotError> + Send + Sync>>>,
|
|
3520
|
+
#[cfg(test)]
|
|
3488
3521
|
membership_metadata_checks: AtomicUsize,
|
|
3489
3522
|
#[cfg(test)]
|
|
3490
3523
|
sidechain_path_probes: AtomicUsize,
|
|
@@ -4051,6 +4084,8 @@ impl NativeStore {
|
|
|
4051
4084
|
#[cfg(test)]
|
|
4052
4085
|
resolve_hook: Mutex::new(None),
|
|
4053
4086
|
#[cfg(test)]
|
|
4087
|
+
membership_hook: Mutex::new(None),
|
|
4088
|
+
#[cfg(test)]
|
|
4054
4089
|
membership_metadata_checks: AtomicUsize::new(0),
|
|
4055
4090
|
#[cfg(test)]
|
|
4056
4091
|
sidechain_path_probes: AtomicUsize::new(0),
|
|
@@ -5385,7 +5420,7 @@ impl NativeStore {
|
|
|
5385
5420
|
for identity in state.expired_prepared_loads(now) {
|
|
5386
5421
|
state.prepared_loads.remove(&identity);
|
|
5387
5422
|
}
|
|
5388
|
-
state.retain_warm_memberships(
|
|
5423
|
+
state.retain_warm_memberships(now);
|
|
5389
5424
|
state.retain_loads(|id, slot| {
|
|
5390
5425
|
(active.contains(id) && slot.deadline.load(Ordering::Acquire) > now)
|
|
5391
5426
|
|| Arc::strong_count(slot) > 1
|
|
@@ -6200,17 +6235,14 @@ impl NativeStore {
|
|
|
6200
6235
|
}
|
|
6201
6236
|
|
|
6202
6237
|
#[cfg(test)]
|
|
6203
|
-
fn audit_warm_membership_bytes(key: &String,
|
|
6204
|
-
let
|
|
6205
|
-
|
|
6206
|
-
|
|
6207
|
-
|
|
6208
|
-
|
|
6209
|
-
|
|
6210
|
-
|
|
6211
|
-
expires: _,
|
|
6212
|
-
} = membership;
|
|
6213
|
-
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
|
|
6214
6246
|
}
|
|
6215
6247
|
|
|
6216
6248
|
#[cfg(test)]
|
|
@@ -12252,6 +12284,8 @@ impl NativeStore {
|
|
|
12252
12284
|
include!("snapshot_catalog.rs");
|
|
12253
12285
|
include!("snapshot_symlink_proof.rs");
|
|
12254
12286
|
include!("snapshot_catalog_owner.rs");
|
|
12287
|
+
|
|
12288
|
+
include!("snapshot_membership_progress.rs");
|
|
12255
12289
|
include!("snapshot_sidechain_absence.rs");
|
|
12256
12290
|
include!("snapshot_prepared_service.rs");
|
|
12257
12291
|
include!("snapshot_skills.rs");
|
|
@@ -12338,6 +12372,8 @@ mod tests {
|
|
|
12338
12372
|
include!("snapshot_interactions_tests.rs");
|
|
12339
12373
|
include!("snapshot_interaction_api_tests.rs");
|
|
12340
12374
|
include!("snapshot_catalog_tests.rs");
|
|
12375
|
+
include!("snapshot_membership_progress_tests.rs");
|
|
12376
|
+
include!("snapshot_membership_progress_controls.rs");
|
|
12341
12377
|
include!("snapshot_sidechain_absence_tests.rs");
|
|
12342
12378
|
include!("snapshot_common_borrowed_parent_tests.rs");
|
|
12343
12379
|
|
|
@@ -17287,17 +17323,21 @@ mod tests {
|
|
|
17287
17323
|
#[test]
|
|
17288
17324
|
fn registered_warming_charges_its_member_positions_once_and_reuses_them_on_every_page() {
|
|
17289
17325
|
let (source, store, owner, fresh) = registered_warming(20);
|
|
17290
|
-
let key = NativeStore::
|
|
17326
|
+
let key = NativeStore::membership_collection_key(&fresh, &owner).unwrap();
|
|
17291
17327
|
let positions = || {
|
|
17292
17328
|
let state = store.lock_state();
|
|
17293
17329
|
assert_eq!(state.warm_memberships.len(), 1);
|
|
17294
|
-
let membership =
|
|
17330
|
+
let membership = state
|
|
17331
|
+
.positive_membership(&key)
|
|
17332
|
+
.expect("positive membership");
|
|
17295
17333
|
assert!(membership.members.iter().all(|member| membership
|
|
17296
17334
|
.active_member(member.stamp.identity, None)
|
|
17297
17335
|
.is_some_and(|found| std::ptr::eq(found, member))));
|
|
17298
17336
|
assert_eq!(
|
|
17299
17337
|
state.ledger.shared.warm(),
|
|
17300
|
-
|
|
17338
|
+
arc_mirror::<WarmMembership>()
|
|
17339
|
+
+ membership.revision.capacity()
|
|
17340
|
+
+ source_ref_bytes(&membership.members)
|
|
17301
17341
|
+ arc_slice_mirror::<(SourceIdentity, usize)>(membership.members.len())
|
|
17302
17342
|
+ sidechain_dir_bytes(&membership.sidechain_dirs)
|
|
17303
17343
|
);
|
|
@@ -20204,6 +20244,7 @@ mod tests {
|
|
|
20204
20244
|
.lock_state()
|
|
20205
20245
|
.warm_memberships
|
|
20206
20246
|
.values()
|
|
20247
|
+
.filter_map(|slot| slot.positive())
|
|
20207
20248
|
.next()
|
|
20208
20249
|
.unwrap()
|
|
20209
20250
|
.clone();
|
|
@@ -20230,7 +20271,10 @@ mod tests {
|
|
|
20230
20271
|
resolved.lock().unwrap().push((
|
|
20231
20272
|
path.to_path_buf(),
|
|
20232
20273
|
state.transient_bytes,
|
|
20233
|
-
state
|
|
20274
|
+
state
|
|
20275
|
+
.warm_memberships
|
|
20276
|
+
.values()
|
|
20277
|
+
.all(|slot| slot.pending.load(Ordering::Acquire)),
|
|
20234
20278
|
));
|
|
20235
20279
|
}
|
|
20236
20280
|
}));
|
|
@@ -20240,12 +20284,12 @@ mod tests {
|
|
|
20240
20284
|
*store.resolve_hook.lock().unwrap() = None;
|
|
20241
20285
|
assert_eq!(reply["status"].as_str(), Some("ok"), "{reply:?}");
|
|
20242
20286
|
let resolutions = resolved.lock().unwrap();
|
|
20243
|
-
let
|
|
20287
|
+
let refreshing: Vec<_> = resolutions
|
|
20244
20288
|
.iter()
|
|
20245
|
-
.filter(|(..,
|
|
20289
|
+
.filter(|(.., refreshing)| *refreshing)
|
|
20246
20290
|
.collect();
|
|
20247
20291
|
assert_eq!(
|
|
20248
|
-
|
|
20292
|
+
refreshing.iter().map(|(path, ..)| path).collect::<Vec<_>>(),
|
|
20249
20293
|
warmed
|
|
20250
20294
|
.members
|
|
20251
20295
|
.iter()
|
|
@@ -20254,7 +20298,7 @@ mod tests {
|
|
|
20254
20298
|
);
|
|
20255
20299
|
assert!(!resolutions[0].2);
|
|
20256
20300
|
assert!(
|
|
20257
|
-
|
|
20301
|
+
refreshing.last().unwrap().1 - resolutions[0].1 >= live + copied,
|
|
20258
20302
|
"the refresh holds copied member paths its reservation never charged"
|
|
20259
20303
|
);
|
|
20260
20304
|
assert!(Arc::ptr_eq(
|
|
@@ -20262,6 +20306,7 @@ mod tests {
|
|
|
20262
20306
|
.lock_state()
|
|
20263
20307
|
.warm_memberships
|
|
20264
20308
|
.values()
|
|
20309
|
+
.filter_map(|slot| slot.positive())
|
|
20265
20310
|
.next()
|
|
20266
20311
|
.unwrap()
|
|
20267
20312
|
.positions,
|
{cc_transcript-14.45.33 → 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
|
|