cc-transcript 14.45.29__tar.gz → 14.45.30__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.29 → cc_transcript-14.45.30}/PKG-INFO +1 -1
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/pyproject.toml +1 -1
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot.rs +23 -3
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_prepared_service.rs +16 -3
- cc_transcript-14.45.30/rust/crates/core/src/snapshot_sidechain_absence.rs +168 -0
- cc_transcript-14.45.30/rust/crates/core/src/snapshot_sidechain_absence_tests.rs +206 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/Cargo.lock +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/Cargo.toml +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/LICENSE +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/README.md +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/__init__.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/__init__.pyi +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/_native.pyi +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/activity.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/activity_probe.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/builders.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/codex.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/command.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/context.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/corrections.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/cost.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/decision_store.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/decisions.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/discovery.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/disktruth.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/evidence.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/extract/__init__.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/extract/correct.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/facts.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/filterspec.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/heartbeats.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/ids.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/judge/__init__.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/judge/llm.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/judge/similar.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/judge/verdicts.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/ledger.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/literals.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/mining/__init__.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/mining/candidates.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/mining/confidence.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/mining/engine.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/mining/formats.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/mining/sampling.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/mining/signals.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/mining/sourcekind.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/mining/spec.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/mining/store.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/models.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/nlp.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/notifications.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/parser.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/py.typed +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/query.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/render.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/sentiment/__init__.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/sentiment/buckets.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/sentiment/data/afinn-en-165.tsv +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/sentiment/data/domain_overrides.tsv +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/sentiment/data/en-ewt.udpipe +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/sentiment/engine.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/sentiment/lexicon.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/sentiment/scorespec.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/snapshot_schema/config.schema.json +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/snapshot_schema/context.schema.json +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/snapshot_schema/request.schema.json +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/snapshot_schema/response.schema.json +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/snapshot_schema/tool_registry.schema.json +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/snapshots.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/synthetic.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/tools.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/cc_transcript/watch.py +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/cli/Cargo.toml +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/cli/src/commands/blame.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/cli/src/commands/corpus.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/cli/src/commands/corrections.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/cli/src/commands/digest.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/cli/src/commands/facts.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/cli/src/commands/grep.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/cli/src/commands/list.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/cli/src/commands/mod.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/cli/src/commands/scratchpad.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/cli/src/commands/show.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/cli/src/commands/slice.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/cli/src/commands/stats.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/cli/src/commands/watch.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/cli/src/lib.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/cli/src/output.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/cli/src/target.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/cli/src/timearg.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/Cargo.toml +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/benches/parse.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/benches/render.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/benches/toolcall.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/build.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/activity.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/actor.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/blame.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/buckets.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/codex/discovery.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/codex/lower.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/codex/mod.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/codex/parse.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/codex/probe.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/codex/protocol.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/codex/types.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/command.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/context.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/corrections.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/cost.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/discovery.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/facts.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/feedback.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/filter.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/gateway.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/ids.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/judge.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/lib.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/literals/command.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/literals/corrections.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/literals/feedback.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/literals/mining.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/literals/mod.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/literals/protocol.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/notifications.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/parse.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/protocol.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/pystr.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/query.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/render.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/request_body.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/rng.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/scan.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/scan_checkpoint.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/scan_grep.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/scan_grep_stream.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/scan_grep_stream_tests.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/scan_index.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/scan_projection.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/scan_regressions.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/scan_stream.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/schema.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_activity.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_admission_report_tests.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_cache.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_cache_tests.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_catalog.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_catalog_owner.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_catalog_tests.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_codec.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_codex_append.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_common_borrowed_parent_tests.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_direct_tail.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_direct_tail_tests.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_hydrate_budget_tests.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_interaction_api.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_interaction_api_tests.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_interactions.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_interactions_tests.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_labels.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_ledger.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_ledger_tests.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_load_charge_audit_tests.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_load_charge_work_tests.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_memory.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_owned.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_prepared.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_prepared_disk.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_projection.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_raw_materialization.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_raw_projection.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_raw_projection_tests.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_raw_scope.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_raw_scope_tests.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_raw_tail_tests.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_raw_window.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_regressions.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_root_warm.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_source_cache_index_tests.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_spine.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_spine_tests.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_symlink_proof.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_text.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/sqlite.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/toolcall.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/types.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/value.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/watch.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/tests/sonic_arena_model.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/tests/std_allocation_model.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/py/Cargo.toml +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/py/build.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/py/data/command_prefix_pins.tsv +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/py/src/actor_bridge.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/py/src/bin/stub_gen.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/py/src/codex.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/py/src/command.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/py/src/context.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/py/src/corrections.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/py/src/discovery.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/py/src/feedback.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/py/src/judge.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/py/src/lexicon.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/py/src/lib.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/py/src/mining.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/py/src/nlp.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/py/src/python.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/py/src/render.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/py/src/score.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/py/src/snapshot_decode.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/py/src/snapshots.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/py/src/sqlite.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/py/src/toolcall.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/py/src/views/attachment.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/py/src/views/blocks.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/py/src/views/command.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/py/src/views/convert.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/py/src/views/dunder.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/py/src/views/events.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/py/src/views/meta.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/py/src/views/mod.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/py/src/views/print.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/py/src/views/store.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/py/src/views/system.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/py/src/views/toolcall.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/py/src/views/toolresult.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/py/src/views/transcript.rs +0 -0
- {cc_transcript-14.45.29 → cc_transcript-14.45.30}/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.30" # 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"
|
|
@@ -3416,6 +3416,10 @@ pub struct NativeStore {
|
|
|
3416
3416
|
#[cfg(test)]
|
|
3417
3417
|
membership_metadata_checks: AtomicUsize,
|
|
3418
3418
|
#[cfg(test)]
|
|
3419
|
+
sidechain_path_probes: AtomicUsize,
|
|
3420
|
+
#[cfg(test)]
|
|
3421
|
+
sidechain_batch_name_checks: AtomicUsize,
|
|
3422
|
+
#[cfg(test)]
|
|
3419
3423
|
pub(crate) source_resolutions: AtomicUsize,
|
|
3420
3424
|
#[cfg(test)]
|
|
3421
3425
|
pub(crate) retained_work: Arc<AtomicUsize>,
|
|
@@ -3914,6 +3918,10 @@ impl NativeStore {
|
|
|
3914
3918
|
#[cfg(test)]
|
|
3915
3919
|
membership_metadata_checks: AtomicUsize::new(0),
|
|
3916
3920
|
#[cfg(test)]
|
|
3921
|
+
sidechain_path_probes: AtomicUsize::new(0),
|
|
3922
|
+
#[cfg(test)]
|
|
3923
|
+
sidechain_batch_name_checks: AtomicUsize::new(0),
|
|
3924
|
+
#[cfg(test)]
|
|
3917
3925
|
source_resolutions: AtomicUsize::new(0),
|
|
3918
3926
|
#[cfg(test)]
|
|
3919
3927
|
retained_work: work.counter(),
|
|
@@ -12072,6 +12080,7 @@ impl NativeStore {
|
|
|
12072
12080
|
include!("snapshot_catalog.rs");
|
|
12073
12081
|
include!("snapshot_symlink_proof.rs");
|
|
12074
12082
|
include!("snapshot_catalog_owner.rs");
|
|
12083
|
+
include!("snapshot_sidechain_absence.rs");
|
|
12075
12084
|
include!("snapshot_prepared_service.rs");
|
|
12076
12085
|
include!("snapshot_cache.rs");
|
|
12077
12086
|
include!("snapshot_root_warm.rs");
|
|
@@ -12150,6 +12159,7 @@ mod tests {
|
|
|
12150
12159
|
include!("snapshot_interactions_tests.rs");
|
|
12151
12160
|
include!("snapshot_interaction_api_tests.rs");
|
|
12152
12161
|
include!("snapshot_catalog_tests.rs");
|
|
12162
|
+
include!("snapshot_sidechain_absence_tests.rs");
|
|
12153
12163
|
include!("snapshot_common_borrowed_parent_tests.rs");
|
|
12154
12164
|
|
|
12155
12165
|
fn context(claimant: &str) -> Value {
|
|
@@ -16733,7 +16743,7 @@ mod tests {
|
|
|
16733
16743
|
.validate_source_stamps(&[], &owner, &cancel, deadline)
|
|
16734
16744
|
.map_err(|error| error.status),
|
|
16735
16745
|
store
|
|
16736
|
-
.validate_sidechain_dirs(&[], &owner, &cancel, deadline)
|
|
16746
|
+
.validate_sidechain_dirs(&[], &owner, &cancel, deadline, None)
|
|
16737
16747
|
.map_err(|error| error.status),
|
|
16738
16748
|
),
|
|
16739
16749
|
(Err(status), Err(status))
|
|
@@ -19950,7 +19960,7 @@ mod tests {
|
|
|
19950
19960
|
}
|
|
19951
19961
|
|
|
19952
19962
|
#[test]
|
|
19953
|
-
fn
|
|
19963
|
+
fn registered_catalog_warmer_pages_cached_members_256_at_a_time() {
|
|
19954
19964
|
let (_source, store, owner, request) = registered_warming(600);
|
|
19955
19965
|
let cold = registered_pages(&store, &owner, &request);
|
|
19956
19966
|
assert_eq!(
|
|
@@ -19963,6 +19973,8 @@ mod tests {
|
|
|
19963
19973
|
let resolutions = store.source_resolutions.load(Ordering::Relaxed);
|
|
19964
19974
|
let dir_checks = store.prepared_disk.dir_checks.load(Ordering::Relaxed);
|
|
19965
19975
|
let metadata_checks = store.membership_metadata_checks.load(Ordering::Relaxed);
|
|
19976
|
+
let sidechain_probes = store.sidechain_path_probes.load(Ordering::Relaxed);
|
|
19977
|
+
let batch_name_checks = store.sidechain_batch_name_checks.load(Ordering::Relaxed);
|
|
19966
19978
|
let writes = store.prepared_disk.stats().writes;
|
|
19967
19979
|
let cached = registered_pages(&store, &owner, &request);
|
|
19968
19980
|
assert_eq!(
|
|
@@ -19986,7 +19998,15 @@ mod tests {
|
|
|
19986
19998
|
);
|
|
19987
19999
|
assert_eq!(
|
|
19988
20000
|
store.membership_metadata_checks.load(Ordering::Relaxed) - metadata_checks,
|
|
19989
|
-
|
|
20001
|
+
3 * 600
|
|
20002
|
+
);
|
|
20003
|
+
assert_eq!(
|
|
20004
|
+
store.sidechain_path_probes.load(Ordering::Relaxed) - sidechain_probes,
|
|
20005
|
+
600
|
|
20006
|
+
);
|
|
20007
|
+
assert_eq!(
|
|
20008
|
+
store.sidechain_batch_name_checks.load(Ordering::Relaxed) - batch_name_checks,
|
|
20009
|
+
600 + 1
|
|
19990
20010
|
);
|
|
19991
20011
|
assert_eq!(store.prepared_disk.stats().writes, writes);
|
|
19992
20012
|
}
|
{cc_transcript-14.45.29 → cc_transcript-14.45.30}/rust/crates/core/src/snapshot_prepared_service.rs
RENAMED
|
@@ -891,9 +891,10 @@ impl NativeStore {
|
|
|
891
891
|
context: &Value,
|
|
892
892
|
cancel: &Cancellation,
|
|
893
893
|
deadline: u64,
|
|
894
|
+
absences: Option<&SidechainAbsences<'_>>,
|
|
894
895
|
) -> Result<bool, SnapshotError> {
|
|
895
896
|
Ok(self.validate_source_stamps(members, context, cancel, deadline)?
|
|
896
|
-
&& self.validate_sidechain_dirs(sidechain_dirs, context, cancel, deadline)?)
|
|
897
|
+
&& self.validate_sidechain_dirs(sidechain_dirs, context, cancel, deadline, absences)?)
|
|
897
898
|
}
|
|
898
899
|
|
|
899
900
|
fn validate_source_stamps(
|
|
@@ -928,13 +929,17 @@ impl NativeStore {
|
|
|
928
929
|
context: &Value,
|
|
929
930
|
cancel: &Cancellation,
|
|
930
931
|
deadline: u64,
|
|
932
|
+
absences: Option<&SidechainAbsences<'_>>,
|
|
931
933
|
) -> Result<bool, SnapshotError> {
|
|
932
934
|
let mut dirs = ResolvedDirs::new(self, context);
|
|
933
|
-
for (path, stamp) in sidechain_dirs {
|
|
935
|
+
for (index, (path, stamp)) in sidechain_dirs.iter().enumerate() {
|
|
936
|
+
cancel.check(deadline)?;
|
|
937
|
+
if absences.is_some_and(|proof| proof.contains(index)) { continue; }
|
|
938
|
+
#[cfg(test)]
|
|
939
|
+
self.sidechain_path_probes.fetch_add(1, Ordering::Relaxed);
|
|
934
940
|
#[cfg(test)]
|
|
935
941
|
self.membership_metadata_checks
|
|
936
942
|
.fetch_add(1, Ordering::Relaxed);
|
|
937
|
-
cancel.check(deadline)?;
|
|
938
943
|
let (canonical, metadata) = match dirs.resolve(path) {
|
|
939
944
|
Ok(resolved) => resolved,
|
|
940
945
|
Err(error) if error.status == Status::Missing => {
|
|
@@ -1653,6 +1658,9 @@ impl NativeStore {
|
|
|
1653
1658
|
let cached = self.lock_state().warm_memberships.get(key).cloned();
|
|
1654
1659
|
if let Some(cached) = cached {
|
|
1655
1660
|
let namespace_valid = self.catalog_membership_valid(cached.catalog, request, context, cancel, remaining)?;
|
|
1661
|
+
let absences = if namespace_valid && revalidate {
|
|
1662
|
+
self.sidechain_absences(cached.catalog, &cached.sidechain_dirs, context, cancel, remaining.deadline_unix_ms)?
|
|
1663
|
+
} else { None };
|
|
1656
1664
|
if namespace_valid && (!revalidate
|
|
1657
1665
|
|| self.validate_warm_membership(
|
|
1658
1666
|
&cached.members,
|
|
@@ -1660,6 +1668,7 @@ impl NativeStore {
|
|
|
1660
1668
|
context,
|
|
1661
1669
|
cancel,
|
|
1662
1670
|
remaining.deadline_unix_ms,
|
|
1671
|
+
absences.as_ref(),
|
|
1663
1672
|
)?)
|
|
1664
1673
|
{
|
|
1665
1674
|
if !self.catalog_membership_valid(cached.catalog, request, context, cancel, remaining)? {
|
|
@@ -1667,6 +1676,7 @@ impl NativeStore {
|
|
|
1667
1676
|
}
|
|
1668
1677
|
return Ok((cached, None));
|
|
1669
1678
|
}
|
|
1679
|
+
drop(absences);
|
|
1670
1680
|
self.lock_state().remove_warm_membership(key);
|
|
1671
1681
|
if namespace_valid {
|
|
1672
1682
|
if let Some((membership, reservation)) =
|
|
@@ -1703,6 +1713,7 @@ impl NativeStore {
|
|
|
1703
1713
|
context,
|
|
1704
1714
|
cancel,
|
|
1705
1715
|
remaining.deadline_unix_ms,
|
|
1716
|
+
None,
|
|
1706
1717
|
)?
|
|
1707
1718
|
{
|
|
1708
1719
|
return Ok(None);
|
|
@@ -2228,6 +2239,7 @@ impl NativeStore {
|
|
|
2228
2239
|
context,
|
|
2229
2240
|
cancel,
|
|
2230
2241
|
remaining.deadline_unix_ms,
|
|
2242
|
+
None,
|
|
2231
2243
|
)? {
|
|
2232
2244
|
self.lock_state().remove_warm_membership(&key);
|
|
2233
2245
|
return Err(SnapshotError::new(
|
|
@@ -2542,6 +2554,7 @@ impl NativeStore {
|
|
|
2542
2554
|
context,
|
|
2543
2555
|
cancel,
|
|
2544
2556
|
cursor.remaining.deadline_unix_ms,
|
|
2557
|
+
None,
|
|
2545
2558
|
)?
|
|
2546
2559
|
{
|
|
2547
2560
|
return Err(SnapshotError::new(
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
struct SidechainBatchRow<'a> {
|
|
2
|
+
parent: &'a Path,
|
|
3
|
+
name: &'a OsStr,
|
|
4
|
+
index: usize,
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
struct SidechainBatchParent<'a> {
|
|
8
|
+
parent: &'a Path,
|
|
9
|
+
rows: Range<usize>,
|
|
10
|
+
stamp: Option<SourceStamp>,
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
struct SidechainAbsences<'a> {
|
|
14
|
+
bits: Vec<u64>,
|
|
15
|
+
_reservation: ProjectionReservation<'a>,
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
impl SidechainAbsences<'_> {
|
|
19
|
+
fn contains(&self, index: usize) -> bool {
|
|
20
|
+
self.bits[index / 64] & (1 << (index % 64)) != 0
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
struct SidechainCatalogClaim<'a> {
|
|
25
|
+
store: &'a NativeStore,
|
|
26
|
+
slot: Arc<CatalogSlot>,
|
|
27
|
+
catalog: Option<SourceCatalog>,
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
impl Drop for SidechainCatalogClaim<'_> {
|
|
31
|
+
fn drop(&mut self) {
|
|
32
|
+
let _state = self.store.lock_state();
|
|
33
|
+
*self.slot.cell.lock().expect("source catalog") =
|
|
34
|
+
CatalogCell::Idle(self.catalog.take().expect("sidechain catalog claim"));
|
|
35
|
+
self.store.fact_read_released.notify_all();
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
fn sidechain_batch_prefix(path: &Path) -> Option<(&Path, &OsStr)> {
|
|
40
|
+
if path.file_name() != Some(OsStr::new("subagents")) { return None; }
|
|
41
|
+
let prefix = path.parent()?;
|
|
42
|
+
Some((prefix.parent()?, prefix.file_name()?))
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
impl NativeStore {
|
|
46
|
+
fn sidechain_absences<'a>(
|
|
47
|
+
&'a self,
|
|
48
|
+
certificate: Option<CatalogCertificate>,
|
|
49
|
+
paths: &[(PathBuf, Option<SourceStamp>)],
|
|
50
|
+
context: &Value,
|
|
51
|
+
cancel: &Cancellation,
|
|
52
|
+
deadline: u64,
|
|
53
|
+
) -> Result<Option<SidechainAbsences<'a>>, SnapshotError> {
|
|
54
|
+
let Some(certificate) = certificate else { return Ok(None); };
|
|
55
|
+
let mut count = 0;
|
|
56
|
+
let mut longest = 0;
|
|
57
|
+
for (path, stamp) in paths {
|
|
58
|
+
cancel.check(deadline)?;
|
|
59
|
+
if stamp.is_none() {
|
|
60
|
+
if let Some((parent, _)) = sidechain_batch_prefix(path) {
|
|
61
|
+
count += 1;
|
|
62
|
+
longest = longest.max(parent.as_os_str().len());
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
if count == 0 { return Ok(None); }
|
|
67
|
+
let words = paths.len().div_ceil(64);
|
|
68
|
+
let bit_bytes = words * size_of::<u64>();
|
|
69
|
+
let proof_scratch = READ_DIR_HANDLE_BYTES + longest + FILESYSTEM_PATH_BYTES;
|
|
70
|
+
let bytes = count * size_of::<SidechainBatchRow>() + bit_bytes + proof_scratch;
|
|
71
|
+
if !self.admit_spare(context, bytes) { return Ok(None); }
|
|
72
|
+
let mut reservation = ProjectionReservation { store: self, bytes };
|
|
73
|
+
let claim = {
|
|
74
|
+
let state = self.lock_state();
|
|
75
|
+
let Some(slot) = state.catalogs.get(certificate.key()) else { return Ok(None); };
|
|
76
|
+
let slot = Arc::clone(slot);
|
|
77
|
+
let mut cell = slot.cell.lock().expect("source catalog");
|
|
78
|
+
if !matches!(&*cell, CatalogCell::Idle(catalog) if certificate.matches(catalog) && catalog.context["authority"] == context["authority"]) {
|
|
79
|
+
return Ok(None);
|
|
80
|
+
}
|
|
81
|
+
let CatalogCell::Idle(catalog) = std::mem::replace(&mut *cell, CatalogCell::Busy) else {
|
|
82
|
+
unreachable!("matching sidechain catalog");
|
|
83
|
+
};
|
|
84
|
+
drop(cell);
|
|
85
|
+
SidechainCatalogClaim { store: self, slot, catalog: Some(catalog) }
|
|
86
|
+
};
|
|
87
|
+
let mut bits = vec![0u64; words];
|
|
88
|
+
{
|
|
89
|
+
let mut rows = Vec::with_capacity(count);
|
|
90
|
+
for (index, (path, stamp)) in paths.iter().enumerate() {
|
|
91
|
+
cancel.check(deadline)?;
|
|
92
|
+
if stamp.is_none() {
|
|
93
|
+
if let Some((parent, name)) = sidechain_batch_prefix(path) {
|
|
94
|
+
rows.push(SidechainBatchRow { parent, name, index });
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
rows.sort_unstable_by(|left, right|
|
|
99
|
+
left.parent.cmp(right.parent).then_with(|| left.name.cmp(right.name)));
|
|
100
|
+
let parent_count = 1 + rows.windows(2).filter(|pair| pair[0].parent != pair[1].parent).count();
|
|
101
|
+
let parent_bytes = parent_count * size_of::<SidechainBatchParent>();
|
|
102
|
+
if !self.admit_spare(context, parent_bytes) { return Ok(None); }
|
|
103
|
+
reservation.bytes += parent_bytes;
|
|
104
|
+
let mut parents: Vec<SidechainBatchParent> = Vec::with_capacity(parent_count);
|
|
105
|
+
for (index, row) in rows.iter().enumerate() {
|
|
106
|
+
cancel.check(deadline)?;
|
|
107
|
+
if let Some(parent) = parents.last_mut().filter(|parent| parent.parent == row.parent) {
|
|
108
|
+
parent.rows.end = index + 1;
|
|
109
|
+
} else {
|
|
110
|
+
parents.push(SidechainBatchParent { parent: row.parent, rows: index..index + 1, stamp: None });
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
let catalog = claim.catalog.as_ref().expect("sidechain catalog");
|
|
114
|
+
for (identity, node) in catalog.directories.iter() {
|
|
115
|
+
cancel.check(deadline)?;
|
|
116
|
+
let Ok(index) = parents.binary_search_by(|parent| parent.parent.cmp(node.canonical.as_path())) else { continue; };
|
|
117
|
+
if !matches!(node.scan, CatalogScan::Done) || node.pending_name.is_some()
|
|
118
|
+
|| !node.conditional.is_empty() || !node.issues.is_empty()
|
|
119
|
+
|| !catalog.route_index.contains_key(identity)
|
|
120
|
+
|| catalog.pending_edge.as_ref().is_some_and(|edge| edge.directory == *identity)
|
|
121
|
+
|| catalog.pending_issue.as_ref().is_some_and(|issue| issue.directory == *identity)
|
|
122
|
+
{ continue; }
|
|
123
|
+
let parent = &mut parents[index];
|
|
124
|
+
parent.stamp = Some(node.observed.stamp.expect("closed sidechain parent stamp"));
|
|
125
|
+
let requested = &rows[parent.rows.clone()];
|
|
126
|
+
for row in requested { bits[row.index / 64] |= 1 << (row.index % 64); }
|
|
127
|
+
for edge in &node.edges {
|
|
128
|
+
cancel.check(deadline)?;
|
|
129
|
+
#[cfg(test)]
|
|
130
|
+
self.sidechain_batch_name_checks.fetch_add(1, Ordering::Relaxed);
|
|
131
|
+
#[cfg(test)]
|
|
132
|
+
self.after_location_metadata("sidechain_batch_name");
|
|
133
|
+
let start = requested.partition_point(|row| row.name < edge.name.as_os_str());
|
|
134
|
+
for row in &requested[start..] {
|
|
135
|
+
if row.name != edge.name.as_os_str() { break; }
|
|
136
|
+
bits[row.index / 64] &= !(1 << (row.index % 64));
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
drop(claim);
|
|
141
|
+
let mut budget = CatalogBudget { store: self, context, reservation: &mut reservation,
|
|
142
|
+
attempt: 0, scratch_bytes: proof_scratch };
|
|
143
|
+
for parent in &parents {
|
|
144
|
+
cancel.check(deadline)?;
|
|
145
|
+
let requested = &rows[parent.rows.clone()];
|
|
146
|
+
if !requested.iter().any(|row| bits[row.index / 64] & (1 << (row.index % 64)) != 0) {
|
|
147
|
+
continue;
|
|
148
|
+
}
|
|
149
|
+
let Some(stamp) = parent.stamp else { continue; };
|
|
150
|
+
let request = CatalogProofRequest { store: self, context, cancel, deadline_unix_ms: deadline };
|
|
151
|
+
let current = match catalog_open_proof_directory(&request, parent.parent, stamp, &mut budget) {
|
|
152
|
+
Ok(CatalogProofDirectory::Opened(directory)) => { drop(directory); true }
|
|
153
|
+
Ok(_) => false,
|
|
154
|
+
Err(error) if matches!(error.status, Status::Deadline | Status::Cancelled) => return Err(error),
|
|
155
|
+
Err(_) => false,
|
|
156
|
+
};
|
|
157
|
+
if !current {
|
|
158
|
+
for row in requested { bits[row.index / 64] &= !(1 << (row.index % 64)); }
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
let scratch_bytes = reservation.bytes - bit_bytes;
|
|
163
|
+
reservation.bytes = bit_bytes;
|
|
164
|
+
drop(ProjectionReservation { store: self, bytes: scratch_bytes });
|
|
165
|
+
if bits.iter().all(|word| *word == 0) { return Ok(None); }
|
|
166
|
+
Ok(Some(SidechainAbsences { bits, _reservation: reservation }))
|
|
167
|
+
}
|
|
168
|
+
}
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
fn sidechain_close_catalog(store: &NativeStore, request: &Value, owner: &Value) -> CatalogCertificate {
|
|
2
|
+
let missing = json!(["sidechain-coverage-not-a-registered-source"]);
|
|
3
|
+
let mut remaining = limits(request).unwrap();
|
|
4
|
+
match store.catalog_access(CatalogInput {
|
|
5
|
+
ids: missing.as_array().unwrap(), roots: request["roots"].as_array().unwrap(),
|
|
6
|
+
}, owner, &Cancellation::default(), &mut remaining, &mut [0; 20], CatalogMode::Locate).unwrap() {
|
|
7
|
+
CatalogResolution::Ready { certificate, .. } => certificate.unwrap(),
|
|
8
|
+
_ => panic!("closed catalog lookup"),
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
fn sidechain_batch_fixture(count: usize) -> (Source, NativeStore, Value, Value, WarmMembership) {
|
|
13
|
+
let source = Source::new(&format!("{}\n", user("root")));
|
|
14
|
+
let ids: Vec<_> = (0..count).map(|index| format!("batch-{index:04}")).collect();
|
|
15
|
+
for id in &ids {
|
|
16
|
+
std::fs::write(source.directory.join(format!("{id}.jsonl")), format!("{}\n", user(id))).unwrap();
|
|
17
|
+
}
|
|
18
|
+
let store = NativeStore::new(&json!({"max_read_bytes_per_step":8192,"max_events_per_step":128,
|
|
19
|
+
"max_entry_bytes":8192,"max_retained_bytes":128*1024*1024,"reserved_hook_accounted_bytes":4096,
|
|
20
|
+
"max_leases":16,"reserved_hook_leases":1})).unwrap();
|
|
21
|
+
let owner = context("sidechain-batch");
|
|
22
|
+
let root = finish(&store, store.request(&acquire(&source.path), &owner, &Cancellation::default()), &owner);
|
|
23
|
+
assert_eq!(root["status"].as_str(), Some("ok"), "{root:?}");
|
|
24
|
+
let mut request = catalog_missing_request(&source, &root, &ids);
|
|
25
|
+
request.insert("deadline_unix_ms", json!(now_ms() + 30_000));
|
|
26
|
+
request["limits"].insert("max_sources", json!(8192));
|
|
27
|
+
sidechain_close_catalog(&store, &request, &owner);
|
|
28
|
+
let membership = catalog_cached_membership(&store, &request, &owner, true);
|
|
29
|
+
(source, store, owner, request, membership)
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
#[test]
|
|
33
|
+
fn registered_catalog_sidechain_batch_removes_only_certified_absent_probes() {
|
|
34
|
+
for count in [33, 129, 513, 5523] {
|
|
35
|
+
let (_source, store, owner, request, membership) = sidechain_batch_fixture(count);
|
|
36
|
+
assert_eq!(membership.members.len(), count);
|
|
37
|
+
assert_eq!(membership.sidechain_dirs.len(), count);
|
|
38
|
+
let cancel = Cancellation::default();
|
|
39
|
+
let deadline = now_ms() + 30_000;
|
|
40
|
+
let before = store.sidechain_path_probes.load(Ordering::Relaxed);
|
|
41
|
+
let checks = store.membership_metadata_checks.load(Ordering::Relaxed);
|
|
42
|
+
assert!(store.validate_warm_membership(&membership.members, &membership.sidechain_dirs,
|
|
43
|
+
&owner, &cancel, deadline, None).unwrap());
|
|
44
|
+
let old_probes = store.sidechain_path_probes.load(Ordering::Relaxed) - before;
|
|
45
|
+
let old_checks = store.membership_metadata_checks.load(Ordering::Relaxed) - checks;
|
|
46
|
+
let names = store.sidechain_batch_name_checks.load(Ordering::Relaxed);
|
|
47
|
+
let proof = store.sidechain_absences(membership.catalog, &membership.sidechain_dirs,
|
|
48
|
+
&owner, &cancel, deadline).unwrap().expect("closed missing-prefix proof");
|
|
49
|
+
let name_checks = store.sidechain_batch_name_checks.load(Ordering::Relaxed) - names;
|
|
50
|
+
let before = store.sidechain_path_probes.load(Ordering::Relaxed);
|
|
51
|
+
let checks = store.membership_metadata_checks.load(Ordering::Relaxed);
|
|
52
|
+
assert!(store.validate_warm_membership(&membership.members, &membership.sidechain_dirs,
|
|
53
|
+
&owner, &cancel, deadline, Some(&proof)).unwrap());
|
|
54
|
+
let new_probes = store.sidechain_path_probes.load(Ordering::Relaxed) - before;
|
|
55
|
+
let new_checks = store.membership_metadata_checks.load(Ordering::Relaxed) - checks;
|
|
56
|
+
eprintln!("sidechain_batch sources={count} old_probes={old_probes} new_probes={new_probes} old_checks={old_checks} new_checks={new_checks} name_checks={name_checks}");
|
|
57
|
+
assert_eq!(old_probes, count);
|
|
58
|
+
assert_eq!(new_probes, 0);
|
|
59
|
+
assert_eq!(old_checks, 2 * count);
|
|
60
|
+
assert_eq!(new_checks, count);
|
|
61
|
+
assert_eq!(name_checks, count + 1);
|
|
62
|
+
drop(proof);
|
|
63
|
+
let before = store.sidechain_path_probes.load(Ordering::Relaxed);
|
|
64
|
+
let mut current_request = request.clone();
|
|
65
|
+
current_request.insert("deadline_unix_ms", json!(now_ms() + 30_000));
|
|
66
|
+
let fresh = catalog_cached_membership(&store, ¤t_request, &owner, true);
|
|
67
|
+
assert_eq!(store.sidechain_path_probes.load(Ordering::Relaxed) - before, 0);
|
|
68
|
+
assert!(Arc::ptr_eq(&fresh.members, &membership.members));
|
|
69
|
+
assert_eq!(fresh.revision, membership.revision);
|
|
70
|
+
store.assert_conserved();
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
#[test]
|
|
75
|
+
fn registered_catalog_sidechain_batch_matching_ordinary_name_preserves_not_directory() {
|
|
76
|
+
let (_source, store, owner, request, membership) = sidechain_batch_fixture(2);
|
|
77
|
+
let prefix = membership.sidechain_dirs[0].0.parent().unwrap();
|
|
78
|
+
std::fs::write(prefix, "ordinary file").unwrap();
|
|
79
|
+
let certificate = sidechain_close_catalog(&store, &request, &owner);
|
|
80
|
+
let proof = store.sidechain_absences(Some(certificate), &membership.sidechain_dirs,
|
|
81
|
+
&owner, &Cancellation::default(), now_ms() + 30_000).unwrap().unwrap();
|
|
82
|
+
assert!(!proof.contains(0));
|
|
83
|
+
assert!(proof.contains(1));
|
|
84
|
+
let old = store.validate_sidechain_dirs(&membership.sidechain_dirs, &owner,
|
|
85
|
+
&Cancellation::default(), now_ms() + 30_000, None).unwrap_err();
|
|
86
|
+
let new = store.validate_sidechain_dirs(&membership.sidechain_dirs, &owner,
|
|
87
|
+
&Cancellation::default(), now_ms() + 30_000, Some(&proof)).unwrap_err();
|
|
88
|
+
assert_eq!(old.status, Status::Changed);
|
|
89
|
+
assert_eq!(old.status, new.status);
|
|
90
|
+
assert_eq!(old.reason, new.reason);
|
|
91
|
+
drop(proof);
|
|
92
|
+
store.assert_conserved();
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
#[test]
|
|
96
|
+
fn registered_catalog_sidechain_batch_matching_directory_and_conditional_parent_use_existing_probes() {
|
|
97
|
+
for symlink in [false, true] {
|
|
98
|
+
let (source, store, owner, request, membership) = sidechain_batch_fixture(2);
|
|
99
|
+
let prefix = membership.sidechain_dirs[0].0.parent().unwrap();
|
|
100
|
+
if symlink {
|
|
101
|
+
std::os::unix::fs::symlink(&source.path, prefix).unwrap();
|
|
102
|
+
} else {
|
|
103
|
+
std::fs::create_dir_all(&membership.sidechain_dirs[0].0).unwrap();
|
|
104
|
+
}
|
|
105
|
+
let certificate = sidechain_close_catalog(&store, &request, &owner);
|
|
106
|
+
let proof = store.sidechain_absences(Some(certificate), &membership.sidechain_dirs,
|
|
107
|
+
&owner, &Cancellation::default(), now_ms() + 30_000).unwrap();
|
|
108
|
+
assert!(proof.as_ref().is_none_or(|proof| !proof.contains(0)));
|
|
109
|
+
if symlink { assert!(proof.is_none()); }
|
|
110
|
+
let old = store.validate_sidechain_dirs(&membership.sidechain_dirs, &owner,
|
|
111
|
+
&Cancellation::default(), now_ms() + 30_000, None);
|
|
112
|
+
let new = store.validate_sidechain_dirs(&membership.sidechain_dirs, &owner,
|
|
113
|
+
&Cancellation::default(), now_ms() + 30_000, proof.as_ref());
|
|
114
|
+
assert_eq!(old.as_ref().map_err(|error| error.status), new.as_ref().map_err(|error| error.status));
|
|
115
|
+
drop(proof);
|
|
116
|
+
store.assert_conserved();
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
#[test]
|
|
121
|
+
fn registered_catalog_sidechain_batch_open_positive_prefix_is_not_absence_authority() {
|
|
122
|
+
let source = Source::new(&format!("{}\n", user("root")));
|
|
123
|
+
let store = store();
|
|
124
|
+
let owner = context("sidechain-open-prefix");
|
|
125
|
+
let root = finish(&store, store.request(&acquire(&source.path), &owner, &Cancellation::default()), &owner);
|
|
126
|
+
let id = source.path.file_stem().unwrap().to_str().unwrap().to_owned();
|
|
127
|
+
let mut request = catalog_missing_request(&source, &root, &[id]);
|
|
128
|
+
request.insert("roots", json!([source.directory, source.path]));
|
|
129
|
+
request.insert("deadline_unix_ms", json!(now_ms() + 30_000));
|
|
130
|
+
let membership = catalog_cached_membership(&store, &request, &owner, true);
|
|
131
|
+
assert!(membership.complete);
|
|
132
|
+
let proof = store.sidechain_absences(membership.catalog, &membership.sidechain_dirs,
|
|
133
|
+
&owner, &Cancellation::default(), now_ms() + 30_000).unwrap();
|
|
134
|
+
assert!(proof.is_none());
|
|
135
|
+
store.assert_conserved();
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
#[test]
|
|
139
|
+
fn registered_catalog_sidechain_batch_creation_during_file_validation_fails_the_final_catalog_fence() {
|
|
140
|
+
let (_source, store, owner, request, membership) = sidechain_batch_fixture(2);
|
|
141
|
+
let created = Arc::new(AtomicBool::new(false));
|
|
142
|
+
*store.resolve_hook.lock().unwrap() = Some(Arc::new({
|
|
143
|
+
let (trigger, path, created) = (membership.members[0].path.clone(), membership.sidechain_dirs[0].0.clone(), Arc::clone(&created));
|
|
144
|
+
move |path_checked| {
|
|
145
|
+
if path_checked == trigger && !created.swap(true, Ordering::Relaxed) {
|
|
146
|
+
std::fs::create_dir_all(&path).unwrap();
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}));
|
|
150
|
+
let key = NativeStore::warm_membership_key(&request, &owner).unwrap();
|
|
151
|
+
let mut remaining = limits(&request).unwrap();
|
|
152
|
+
let result = store.registered_membership(&key, &request, &owner, &Cancellation::default(),
|
|
153
|
+
&mut [0; 20], &mut remaining, true);
|
|
154
|
+
assert!(created.load(Ordering::Relaxed));
|
|
155
|
+
assert!(matches!(result, Err(error) if error.status == Status::Changed));
|
|
156
|
+
store.assert_conserved();
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
#[test]
|
|
160
|
+
fn registered_catalog_sidechain_batch_scratch_refusal_leaves_the_original_probe_path_available() {
|
|
161
|
+
let (_source, store, owner, _request, membership) = sidechain_batch_fixture(3);
|
|
162
|
+
let cap = store.memory_cap(&owner).unwrap();
|
|
163
|
+
let filler = store.reserve_projection(&owner, cap - store.retained_accounted_bytes() - 1).unwrap();
|
|
164
|
+
let before = store.retained_accounted_bytes();
|
|
165
|
+
let proof = store.sidechain_absences(membership.catalog, &membership.sidechain_dirs,
|
|
166
|
+
&owner, &Cancellation::default(), now_ms() + 30_000).unwrap();
|
|
167
|
+
assert!(proof.is_none());
|
|
168
|
+
assert_eq!(store.retained_accounted_bytes(), before);
|
|
169
|
+
let probes = store.sidechain_path_probes.load(Ordering::Relaxed);
|
|
170
|
+
assert!(store.validate_sidechain_dirs(&membership.sidechain_dirs, &owner,
|
|
171
|
+
&Cancellation::default(), now_ms() + 30_000, None).unwrap());
|
|
172
|
+
assert_eq!(store.sidechain_path_probes.load(Ordering::Relaxed) - probes, 3);
|
|
173
|
+
drop(filler);
|
|
174
|
+
store.assert_conserved();
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
#[test]
|
|
178
|
+
fn registered_catalog_sidechain_batch_cancel_restores_the_catalog_and_releases_scratch() {
|
|
179
|
+
let (_source, store, owner, _request, membership) = sidechain_batch_fixture(3);
|
|
180
|
+
let before = store.retained_accounted_bytes();
|
|
181
|
+
let cancel = Cancellation::default();
|
|
182
|
+
*store.location_metadata_hook.lock().unwrap() = Some(("sidechain_batch_name", Arc::new({
|
|
183
|
+
let cancel = cancel.clone(); move || cancel.cancel()
|
|
184
|
+
})));
|
|
185
|
+
let result = store.sidechain_absences(membership.catalog, &membership.sidechain_dirs,
|
|
186
|
+
&owner, &cancel, now_ms() + 30_000);
|
|
187
|
+
assert!(matches!(result, Err(error) if error.status == Status::Cancelled));
|
|
188
|
+
assert_eq!(store.retained_accounted_bytes(), before);
|
|
189
|
+
store.assert_conserved();
|
|
190
|
+
let proof = store.sidechain_absences(membership.catalog, &membership.sidechain_dirs,
|
|
191
|
+
&owner, &Cancellation::default(), now_ms() + 30_000).unwrap();
|
|
192
|
+
assert!(proof.is_some());
|
|
193
|
+
drop(proof);
|
|
194
|
+
store.assert_conserved();
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
#[test]
|
|
198
|
+
fn registered_catalog_sidechain_batch_does_not_borrow_a_catalog_from_another_authority() {
|
|
199
|
+
let (_source, store, owner, _request, membership) = sidechain_batch_fixture(2);
|
|
200
|
+
let mut restricted = owner.clone();
|
|
201
|
+
restricted.insert("authority", json!({"kind":"restricted_roots","roots":[],"effective_uid":unsafe { libc::geteuid() }.to_string()}));
|
|
202
|
+
let proof = store.sidechain_absences(membership.catalog, &membership.sidechain_dirs,
|
|
203
|
+
&restricted, &Cancellation::default(), now_ms() + 30_000).unwrap();
|
|
204
|
+
assert!(proof.is_none());
|
|
205
|
+
store.assert_conserved();
|
|
206
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|