cc-transcript 14.45.8__tar.gz → 14.45.10__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.8 → cc_transcript-14.45.10}/PKG-INFO +1 -1
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/pyproject.toml +1 -1
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/snapshot.rs +181 -13
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/snapshot_prepared_service.rs +103 -11
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/snapshot_regressions.rs +110 -16
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/Cargo.lock +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/Cargo.toml +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/LICENSE +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/README.md +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/__init__.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/__init__.pyi +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/_native.pyi +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/activity.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/activity_probe.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/builders.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/codex.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/command.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/context.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/corrections.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/cost.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/decision_store.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/decisions.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/discovery.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/disktruth.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/evidence.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/extract/__init__.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/extract/correct.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/facts.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/filterspec.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/heartbeats.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/ids.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/judge/__init__.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/judge/llm.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/judge/similar.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/judge/verdicts.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/ledger.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/literals.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/mining/__init__.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/mining/candidates.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/mining/confidence.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/mining/engine.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/mining/formats.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/mining/sampling.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/mining/signals.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/mining/sourcekind.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/mining/spec.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/mining/store.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/models.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/nlp.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/notifications.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/parser.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/py.typed +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/query.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/render.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/sentiment/__init__.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/sentiment/buckets.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/sentiment/data/afinn-en-165.tsv +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/sentiment/data/domain_overrides.tsv +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/sentiment/data/en-ewt.udpipe +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/sentiment/engine.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/sentiment/lexicon.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/sentiment/scorespec.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/snapshot_schema/config.schema.json +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/snapshot_schema/context.schema.json +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/snapshot_schema/request.schema.json +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/snapshot_schema/response.schema.json +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/snapshot_schema/tool_registry.schema.json +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/snapshots.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/synthetic.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/tools.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/cc_transcript/watch.py +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/cli/Cargo.toml +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/cli/src/commands/blame.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/cli/src/commands/corpus.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/cli/src/commands/corrections.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/cli/src/commands/digest.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/cli/src/commands/facts.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/cli/src/commands/grep.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/cli/src/commands/list.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/cli/src/commands/mod.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/cli/src/commands/scratchpad.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/cli/src/commands/show.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/cli/src/commands/slice.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/cli/src/commands/stats.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/cli/src/commands/watch.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/cli/src/lib.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/cli/src/output.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/cli/src/target.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/cli/src/timearg.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/Cargo.toml +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/benches/parse.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/benches/render.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/benches/toolcall.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/build.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/activity.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/actor.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/blame.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/buckets.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/codex/discovery.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/codex/lower.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/codex/mod.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/codex/parse.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/codex/probe.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/codex/protocol.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/codex/types.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/command.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/context.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/corrections.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/cost.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/discovery.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/facts.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/feedback.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/filter.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/gateway.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/ids.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/judge.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/lib.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/literals/command.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/literals/corrections.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/literals/feedback.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/literals/mining.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/literals/mod.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/literals/protocol.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/notifications.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/parse.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/protocol.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/pystr.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/query.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/render.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/rng.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/scan.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/scan_checkpoint.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/scan_grep.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/scan_grep_stream.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/scan_grep_stream_tests.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/scan_index.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/scan_projection.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/scan_regressions.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/scan_stream.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/schema.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/snapshot_activity.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/snapshot_codec.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/snapshot_codex_append.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/snapshot_labels.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/snapshot_ledger.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/snapshot_ledger_tests.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/snapshot_memory.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/snapshot_owned.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/snapshot_prepared.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/snapshot_prepared_disk.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/snapshot_projection.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/snapshot_root_warm.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/snapshot_text.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/sqlite.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/toolcall.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/types.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/value.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/watch.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/tests/sonic_arena_model.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/tests/std_allocation_model.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/py/Cargo.toml +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/py/build.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/py/data/command_prefix_pins.tsv +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/py/src/actor_bridge.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/py/src/bin/stub_gen.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/py/src/codex.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/py/src/command.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/py/src/context.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/py/src/corrections.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/py/src/discovery.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/py/src/feedback.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/py/src/judge.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/py/src/lexicon.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/py/src/lib.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/py/src/mining.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/py/src/nlp.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/py/src/python.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/py/src/render.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/py/src/score.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/py/src/snapshot_decode.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/py/src/snapshots.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/py/src/sqlite.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/py/src/toolcall.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/py/src/views/attachment.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/py/src/views/blocks.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/py/src/views/command.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/py/src/views/convert.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/py/src/views/dunder.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/py/src/views/events.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/py/src/views/meta.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/py/src/views/mod.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/py/src/views/print.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/py/src/views/store.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/py/src/views/system.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/py/src/views/toolcall.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/py/src/views/toolresult.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/py/src/views/transcript.rs +0 -0
- {cc_transcript-14.45.8 → cc_transcript-14.45.10}/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.10" # 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"
|
|
@@ -2170,6 +2170,12 @@ impl StoreState {
|
|
|
2170
2170
|
})
|
|
2171
2171
|
}
|
|
2172
2172
|
|
|
2173
|
+
fn holds_latest(&self, identity: &SourceIdentity, snapshot: &TranscriptSnapshot) -> bool {
|
|
2174
|
+
self.latest
|
|
2175
|
+
.get(identity)
|
|
2176
|
+
.is_some_and(|old| old.id == snapshot.id)
|
|
2177
|
+
}
|
|
2178
|
+
|
|
2173
2179
|
fn insert_latest(
|
|
2174
2180
|
&mut self,
|
|
2175
2181
|
identity: SourceIdentity,
|
|
@@ -7699,10 +7705,7 @@ impl NativeStore {
|
|
|
7699
7705
|
}
|
|
7700
7706
|
let source = Arc::clone(&snapshot);
|
|
7701
7707
|
let mut state = self.lock_state();
|
|
7702
|
-
let fresh = !state
|
|
7703
|
-
.latest
|
|
7704
|
-
.get(&slot.stamp.identity)
|
|
7705
|
-
.is_some_and(|old| old.id == snapshot.id);
|
|
7708
|
+
let fresh = !state.holds_latest(&slot.stamp.identity, &snapshot);
|
|
7706
7709
|
if fresh {
|
|
7707
7710
|
let escaping = state.escape_growth(&snapshot.chunks);
|
|
7708
7711
|
if let Err(error) = self.admit_memory(&mut state, &waiter.context, escaping) {
|
|
@@ -7710,7 +7713,6 @@ impl NativeStore {
|
|
|
7710
7713
|
return Err(error);
|
|
7711
7714
|
}
|
|
7712
7715
|
state.escape_chunks(&snapshot.chunks);
|
|
7713
|
-
usage[9] += 1;
|
|
7714
7716
|
}
|
|
7715
7717
|
drop(state);
|
|
7716
7718
|
let mut classifier_bounds = waiter.limits;
|
|
@@ -7770,14 +7772,16 @@ impl NativeStore {
|
|
|
7770
7772
|
if let Some(pledge) = &mut pledge {
|
|
7771
7773
|
pledge.bytes = 0;
|
|
7772
7774
|
}
|
|
7773
|
-
if fresh {
|
|
7775
|
+
if fresh && !state.holds_latest(&slot.stamp.identity, &source) {
|
|
7774
7776
|
let latest = state.latest.growth_for(&slot.stamp.identity);
|
|
7775
7777
|
if self
|
|
7776
7778
|
.admit_memory(&mut state, &waiter.context, latest)
|
|
7777
7779
|
.is_ok()
|
|
7778
|
-
&& state.insert_latest(slot.stamp.identity, source).is_some()
|
|
7779
7780
|
{
|
|
7780
|
-
usage[
|
|
7781
|
+
usage[9] += 1;
|
|
7782
|
+
if state.insert_latest(slot.stamp.identity, source).is_some() {
|
|
7783
|
+
usage[10] += 1;
|
|
7784
|
+
}
|
|
7781
7785
|
}
|
|
7782
7786
|
}
|
|
7783
7787
|
state.waiters.remove(token);
|
|
@@ -14968,7 +14972,7 @@ mod tests {
|
|
|
14968
14972
|
.unwrap();
|
|
14969
14973
|
registered_pages(&store, &owner, &fresh);
|
|
14970
14974
|
positions();
|
|
14971
|
-
assert_eq!(store.warm_records.load(Ordering::Relaxed),
|
|
14975
|
+
assert_eq!(store.warm_records.load(Ordering::Relaxed), 1);
|
|
14972
14976
|
store.assert_conserved();
|
|
14973
14977
|
|
|
14974
14978
|
store.lock_state().remove_warm_membership(&key);
|
|
@@ -17217,7 +17221,7 @@ mod tests {
|
|
|
17217
17221
|
);
|
|
17218
17222
|
assert_eq!(resumed["status"].as_str(), Some("ok"), "{resumed:?}");
|
|
17219
17223
|
assert!(has(&resumed, "Grep"));
|
|
17220
|
-
assert_eq!(store.warm_records.load(Ordering::Relaxed),
|
|
17224
|
+
assert_eq!(store.warm_records.load(Ordering::Relaxed), 1);
|
|
17221
17225
|
}
|
|
17222
17226
|
|
|
17223
17227
|
fn tool_use_line(name: &str) -> String {
|
|
@@ -17338,7 +17342,7 @@ mod tests {
|
|
|
17338
17342
|
);
|
|
17339
17343
|
assert_eq!(appended["status"].as_str(), Some("ok"), "{appended:?}");
|
|
17340
17344
|
assert!(graph_has_tool(&store, &source, &owner, &appended, "Grep"));
|
|
17341
|
-
assert_eq!(store.warm_records.load(Ordering::Relaxed),
|
|
17345
|
+
assert_eq!(store.warm_records.load(Ordering::Relaxed), 1);
|
|
17342
17346
|
let subagents = source.directory.join("thread-a").join("subagents");
|
|
17343
17347
|
std::fs::create_dir_all(&subagents).unwrap();
|
|
17344
17348
|
std::fs::write(
|
|
@@ -17353,14 +17357,103 @@ mod tests {
|
|
|
17353
17357
|
);
|
|
17354
17358
|
assert_eq!(discovered["status"].as_str(), Some("ok"), "{discovered:?}");
|
|
17355
17359
|
assert!(graph_has_tool(&store, &source, &owner, &discovered, "Bash"));
|
|
17356
|
-
assert_eq!(store.warm_records.load(Ordering::Relaxed),
|
|
17360
|
+
assert_eq!(store.warm_records.load(Ordering::Relaxed), 2);
|
|
17361
|
+
let hot = finish_prepared(
|
|
17362
|
+
&store,
|
|
17363
|
+
store.request(&prepare, &owner, &Cancellation::default()),
|
|
17364
|
+
&owner,
|
|
17365
|
+
);
|
|
17366
|
+
assert_eq!(hot["status"].as_str(), Some("ok"), "{hot:?}");
|
|
17367
|
+
assert_eq!(store.warm_records.load(Ordering::Relaxed), 2);
|
|
17368
|
+
store.assert_conserved();
|
|
17369
|
+
}
|
|
17370
|
+
|
|
17371
|
+
#[test]
|
|
17372
|
+
fn registered_graph_append_does_not_relist_an_unchanged_sidechain_directory() {
|
|
17373
|
+
let source = Source::new(&format!("{}\n", user("root")));
|
|
17374
|
+
let members = registered_members(&source, &["thread-a", "thread-b"]);
|
|
17375
|
+
let subagents = source.directory.join("thread-a").join("subagents");
|
|
17376
|
+
std::fs::create_dir_all(&subagents).unwrap();
|
|
17377
|
+
std::fs::write(
|
|
17378
|
+
subagents.join("preexisting.jsonl"),
|
|
17379
|
+
format!("{}\n{}\n", user("preexisting"), tool_use_line("Read")),
|
|
17380
|
+
)
|
|
17381
|
+
.unwrap();
|
|
17382
|
+
let store = store();
|
|
17383
|
+
let owner = context("a");
|
|
17384
|
+
let root = finish(
|
|
17385
|
+
&store,
|
|
17386
|
+
store.request(&acquire(&source.path), &owner, &Cancellation::default()),
|
|
17387
|
+
&owner,
|
|
17388
|
+
);
|
|
17389
|
+
let prepare = registered_prepare(&source, &root, &["thread-a", "thread-b"]);
|
|
17390
|
+
let discovery = || store.lock_state().counters[17];
|
|
17391
|
+
let directory_stamp = || SourceStamp::of(&std::fs::metadata(&subagents).unwrap());
|
|
17392
|
+
let graph = finish_prepared(
|
|
17393
|
+
&store,
|
|
17394
|
+
store.request(&prepare, &owner, &Cancellation::default()),
|
|
17395
|
+
&owner,
|
|
17396
|
+
);
|
|
17397
|
+
assert_eq!(graph["status"].as_str(), Some("ok"), "{graph:?}");
|
|
17398
|
+
assert!(graph_has_tool(&store, &source, &owner, &graph, "Read"));
|
|
17399
|
+
assert!(!graph_has_tool(&store, &source, &owner, &graph, "Grep"));
|
|
17400
|
+
assert!(!graph_has_tool(&store, &source, &owner, &graph, "Bash"));
|
|
17401
|
+
assert_eq!(store.warm_records.load(Ordering::Relaxed), 1);
|
|
17402
|
+
let listed = directory_stamp();
|
|
17403
|
+
std::fs::OpenOptions::new()
|
|
17404
|
+
.append(true)
|
|
17405
|
+
.open(&members[1])
|
|
17406
|
+
.unwrap()
|
|
17407
|
+
.write_all(format!("{}\n", tool_use_line("Grep")).as_bytes())
|
|
17408
|
+
.unwrap();
|
|
17409
|
+
assert_eq!(directory_stamp(), listed);
|
|
17410
|
+
let before = discovery();
|
|
17411
|
+
let appended = finish_prepared(
|
|
17412
|
+
&store,
|
|
17413
|
+
store.request(&prepare, &owner, &Cancellation::default()),
|
|
17414
|
+
&owner,
|
|
17415
|
+
);
|
|
17416
|
+
assert_eq!(
|
|
17417
|
+
discovery() - before,
|
|
17418
|
+
0,
|
|
17419
|
+
"a member append listed an unchanged sidechain directory again"
|
|
17420
|
+
);
|
|
17421
|
+
assert_eq!(appended["status"].as_str(), Some("ok"), "{appended:?}");
|
|
17422
|
+
assert!(graph_has_tool(&store, &source, &owner, &appended, "Read"));
|
|
17423
|
+
assert!(graph_has_tool(&store, &source, &owner, &appended, "Grep"));
|
|
17424
|
+
assert!(!graph_has_tool(&store, &source, &owner, &appended, "Bash"));
|
|
17425
|
+
assert_eq!(store.warm_records.load(Ordering::Relaxed), 1);
|
|
17426
|
+
store.assert_conserved();
|
|
17427
|
+
std::fs::write(
|
|
17428
|
+
subagents.join("child.jsonl"),
|
|
17429
|
+
format!("{}\n{}\n", user("child"), tool_use_line("Bash")),
|
|
17430
|
+
)
|
|
17431
|
+
.unwrap();
|
|
17432
|
+
assert_ne!(directory_stamp(), listed);
|
|
17433
|
+
let before = discovery();
|
|
17434
|
+
let discovered = finish_prepared(
|
|
17435
|
+
&store,
|
|
17436
|
+
store.request(&prepare, &owner, &Cancellation::default()),
|
|
17437
|
+
&owner,
|
|
17438
|
+
);
|
|
17439
|
+
assert!(discovery() > before);
|
|
17440
|
+
assert_eq!(discovered["status"].as_str(), Some("ok"), "{discovered:?}");
|
|
17441
|
+
for tool in ["Read", "Grep", "Bash"] {
|
|
17442
|
+
assert!(graph_has_tool(&store, &source, &owner, &discovered, tool));
|
|
17443
|
+
}
|
|
17444
|
+
assert_eq!(store.warm_records.load(Ordering::Relaxed), 2);
|
|
17445
|
+
let before = discovery();
|
|
17357
17446
|
let hot = finish_prepared(
|
|
17358
17447
|
&store,
|
|
17359
17448
|
store.request(&prepare, &owner, &Cancellation::default()),
|
|
17360
17449
|
&owner,
|
|
17361
17450
|
);
|
|
17451
|
+
assert_eq!(discovery(), before);
|
|
17362
17452
|
assert_eq!(hot["status"].as_str(), Some("ok"), "{hot:?}");
|
|
17363
|
-
|
|
17453
|
+
for tool in ["Read", "Grep", "Bash"] {
|
|
17454
|
+
assert!(graph_has_tool(&store, &source, &owner, &hot, tool));
|
|
17455
|
+
}
|
|
17456
|
+
assert_eq!(store.warm_records.load(Ordering::Relaxed), 2);
|
|
17364
17457
|
store.assert_conserved();
|
|
17365
17458
|
}
|
|
17366
17459
|
|
|
@@ -17521,6 +17614,81 @@ mod tests {
|
|
|
17521
17614
|
assert_eq!(store.prepared_disk.stats().writes, writes);
|
|
17522
17615
|
}
|
|
17523
17616
|
|
|
17617
|
+
#[test]
|
|
17618
|
+
fn registered_append_refresh_reserves_the_member_paths_it_copies() {
|
|
17619
|
+
let (source, store, owner, request) = registered_warming(20);
|
|
17620
|
+
let store = Arc::new(store);
|
|
17621
|
+
registered_pages(&store, &owner, &request);
|
|
17622
|
+
let warmed = store
|
|
17623
|
+
.lock_state()
|
|
17624
|
+
.warm_memberships
|
|
17625
|
+
.values()
|
|
17626
|
+
.next()
|
|
17627
|
+
.unwrap()
|
|
17628
|
+
.clone();
|
|
17629
|
+
let live = source_ref_bytes(&warmed.members)
|
|
17630
|
+
+ arc_slice_bytes::<(SourceIdentity, usize)>(warmed.positions.len())
|
|
17631
|
+
+ sidechain_dir_bytes(&warmed.sidechain_dirs)
|
|
17632
|
+
+ warmed.members.len() * size_of::<PreparedSourceRef>();
|
|
17633
|
+
let copied: usize = warmed.members[..warmed.members.len() - 1]
|
|
17634
|
+
.iter()
|
|
17635
|
+
.map(|member| member.path.as_os_str().len())
|
|
17636
|
+
.sum();
|
|
17637
|
+
std::fs::OpenOptions::new()
|
|
17638
|
+
.append(true)
|
|
17639
|
+
.open(source.directory.join("thread-0000.jsonl"))
|
|
17640
|
+
.unwrap()
|
|
17641
|
+
.write_all(format!("{}\n", user("appended")).as_bytes())
|
|
17642
|
+
.unwrap();
|
|
17643
|
+
let resolved = Arc::new(Mutex::new(Vec::new()));
|
|
17644
|
+
*store.resolve_hook.lock().unwrap() = Some(Arc::new({
|
|
17645
|
+
let (store, resolved) = (Arc::downgrade(&store), Arc::clone(&resolved));
|
|
17646
|
+
move |path: &Path| {
|
|
17647
|
+
let store = store.upgrade().unwrap();
|
|
17648
|
+
let state = store.lock_state();
|
|
17649
|
+
resolved.lock().unwrap().push((
|
|
17650
|
+
path.to_path_buf(),
|
|
17651
|
+
state.transient_bytes,
|
|
17652
|
+
state.warm_memberships.is_empty(),
|
|
17653
|
+
));
|
|
17654
|
+
}
|
|
17655
|
+
}));
|
|
17656
|
+
let mut refresh = request.clone();
|
|
17657
|
+
refresh.insert("deadline_unix_ms", json!(now_ms() + 120_000));
|
|
17658
|
+
let reply = store.request(&refresh, &owner, &Cancellation::default());
|
|
17659
|
+
*store.resolve_hook.lock().unwrap() = None;
|
|
17660
|
+
assert_eq!(reply["status"].as_str(), Some("ok"), "{reply:?}");
|
|
17661
|
+
let resolutions = resolved.lock().unwrap();
|
|
17662
|
+
let uncached: Vec<_> = resolutions
|
|
17663
|
+
.iter()
|
|
17664
|
+
.filter(|(.., uncached)| *uncached)
|
|
17665
|
+
.collect();
|
|
17666
|
+
assert_eq!(
|
|
17667
|
+
uncached.iter().map(|(path, ..)| path).collect::<Vec<_>>(),
|
|
17668
|
+
warmed
|
|
17669
|
+
.members
|
|
17670
|
+
.iter()
|
|
17671
|
+
.map(|member| &member.path)
|
|
17672
|
+
.collect::<Vec<_>>()
|
|
17673
|
+
);
|
|
17674
|
+
assert!(!resolutions[0].2);
|
|
17675
|
+
assert!(
|
|
17676
|
+
uncached.last().unwrap().1 - resolutions[0].1 >= live + copied,
|
|
17677
|
+
"the refresh holds copied member paths its reservation never charged"
|
|
17678
|
+
);
|
|
17679
|
+
assert!(Arc::ptr_eq(
|
|
17680
|
+
&store
|
|
17681
|
+
.lock_state()
|
|
17682
|
+
.warm_memberships
|
|
17683
|
+
.values()
|
|
17684
|
+
.next()
|
|
17685
|
+
.unwrap()
|
|
17686
|
+
.positions,
|
|
17687
|
+
&warmed.positions
|
|
17688
|
+
));
|
|
17689
|
+
store.assert_conserved();
|
|
17690
|
+
}
|
|
17691
|
+
|
|
17524
17692
|
#[test]
|
|
17525
17693
|
fn registered_completion_rejects_an_owner_directory_replaced_between_members() {
|
|
17526
17694
|
use std::os::unix::fs::DirBuilderExt;
|
{cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/snapshot_prepared_service.rs
RENAMED
|
@@ -1598,6 +1598,11 @@ impl NativeStore {
|
|
|
1598
1598
|
return Ok((cached, None));
|
|
1599
1599
|
}
|
|
1600
1600
|
self.lock_state().remove_warm_membership(key);
|
|
1601
|
+
if let Some((membership, reservation)) =
|
|
1602
|
+
self.refreshed_warm_membership(key, &cached, request, context, cancel, remaining)?
|
|
1603
|
+
{
|
|
1604
|
+
return Ok((membership, Some(reservation)));
|
|
1605
|
+
}
|
|
1601
1606
|
}
|
|
1602
1607
|
let (membership, reservation) =
|
|
1603
1608
|
self.build_warm_membership(key, request, context, cancel, usage, remaining)?;
|
|
@@ -1610,6 +1615,103 @@ impl NativeStore {
|
|
|
1610
1615
|
Ok((membership, Some(reservation)))
|
|
1611
1616
|
}
|
|
1612
1617
|
|
|
1618
|
+
fn refreshed_warm_membership(
|
|
1619
|
+
&self,
|
|
1620
|
+
key: &str,
|
|
1621
|
+
cached: &WarmMembership,
|
|
1622
|
+
request: &Value,
|
|
1623
|
+
context: &Value,
|
|
1624
|
+
cancel: &Cancellation,
|
|
1625
|
+
remaining: &WorkLimits,
|
|
1626
|
+
) -> Result<Option<(WarmMembership, ProjectionReservation<'_>)>, SnapshotError> {
|
|
1627
|
+
if cached.expires <= now_ms()
|
|
1628
|
+
|| !self.validate_sidechain_dirs(
|
|
1629
|
+
&cached.sidechain_dirs,
|
|
1630
|
+
context,
|
|
1631
|
+
cancel,
|
|
1632
|
+
remaining.deadline_unix_ms,
|
|
1633
|
+
)?
|
|
1634
|
+
{
|
|
1635
|
+
return Ok(None);
|
|
1636
|
+
}
|
|
1637
|
+
let mut reservation = self.reserve_projection(
|
|
1638
|
+
context,
|
|
1639
|
+
key.len()
|
|
1640
|
+
+ cached.accounted_bytes()
|
|
1641
|
+
+ cached.members.len() * size_of::<PreparedSourceRef>()
|
|
1642
|
+
+ source_ref_bytes(&cached.members)
|
|
1643
|
+
+ arc_slice_bytes::<(SourceIdentity, usize)>(cached.positions.len())
|
|
1644
|
+
+ sidechain_dir_bytes(&cached.sidechain_dirs),
|
|
1645
|
+
)?;
|
|
1646
|
+
let mut dirs = ResolvedDirs::new(self, context);
|
|
1647
|
+
let mut members = Vec::with_capacity(cached.members.len());
|
|
1648
|
+
for member in cached.members.iter() {
|
|
1649
|
+
#[cfg(test)]
|
|
1650
|
+
self.membership_metadata_checks
|
|
1651
|
+
.fetch_add(1, Ordering::Relaxed);
|
|
1652
|
+
cancel.check(remaining.deadline_unix_ms)?;
|
|
1653
|
+
let (canonical, metadata) = match dirs.resolve(&member.path) {
|
|
1654
|
+
Ok(resolved) => resolved,
|
|
1655
|
+
Err(error) if error.status == Status::Missing => return Ok(None),
|
|
1656
|
+
Err(error) => return Err(error),
|
|
1657
|
+
};
|
|
1658
|
+
self.authority(context, Some(&canonical))?;
|
|
1659
|
+
let stamp = SourceStamp::of(&metadata);
|
|
1660
|
+
if canonical != member.path
|
|
1661
|
+
|| stamp.identity != member.stamp.identity
|
|
1662
|
+
|| (stamp != member.stamp && stamp.size <= member.stamp.size)
|
|
1663
|
+
{
|
|
1664
|
+
return Ok(None);
|
|
1665
|
+
}
|
|
1666
|
+
self.extend_projection_reservation(&mut reservation, context, canonical.capacity())?;
|
|
1667
|
+
members.push(PreparedSourceRef {
|
|
1668
|
+
path: canonical,
|
|
1669
|
+
stamp,
|
|
1670
|
+
});
|
|
1671
|
+
}
|
|
1672
|
+
let since = active_since_ns(request)?;
|
|
1673
|
+
if !dirs.hold()?
|
|
1674
|
+
|| members
|
|
1675
|
+
.iter()
|
|
1676
|
+
.filter(|member| active(member, since))
|
|
1677
|
+
.count()
|
|
1678
|
+
> remaining.max_sources
|
|
1679
|
+
{
|
|
1680
|
+
return Ok(None);
|
|
1681
|
+
}
|
|
1682
|
+
self.extend_projection_reservation(
|
|
1683
|
+
&mut reservation,
|
|
1684
|
+
context,
|
|
1685
|
+
arc_slice_bytes::<PreparedSourceRef>(members.len()),
|
|
1686
|
+
)?;
|
|
1687
|
+
Ok(Some((
|
|
1688
|
+
WarmMembership {
|
|
1689
|
+
revision: Self::warm_membership_revision(&members),
|
|
1690
|
+
members: members.into(),
|
|
1691
|
+
positions: Arc::clone(&cached.positions),
|
|
1692
|
+
sidechain_dirs: Arc::clone(&cached.sidechain_dirs),
|
|
1693
|
+
complete: cached.complete,
|
|
1694
|
+
expires: cached.expires,
|
|
1695
|
+
},
|
|
1696
|
+
reservation,
|
|
1697
|
+
)))
|
|
1698
|
+
}
|
|
1699
|
+
|
|
1700
|
+
fn warm_membership_revision(members: &[PreparedSourceRef]) -> String {
|
|
1701
|
+
use std::fmt::Write as _;
|
|
1702
|
+
|
|
1703
|
+
let revision_len = 2 * <Sha256 as Digest>::output_size();
|
|
1704
|
+
let mut digest = Sha256::new();
|
|
1705
|
+
for source in members {
|
|
1706
|
+
digest.update(source.path.as_os_str().as_encoded_bytes());
|
|
1707
|
+
digest.update(source.stamp.revision().as_bytes());
|
|
1708
|
+
}
|
|
1709
|
+
let mut revision = String::with_capacity(revision_len);
|
|
1710
|
+
write!(revision, "{:x}", digest.finalize()).expect("hex digest");
|
|
1711
|
+
assert_eq!(revision.capacity(), revision_len);
|
|
1712
|
+
revision
|
|
1713
|
+
}
|
|
1714
|
+
|
|
1613
1715
|
fn build_warm_membership(
|
|
1614
1716
|
&self,
|
|
1615
1717
|
key: &str,
|
|
@@ -1619,8 +1721,6 @@ impl NativeStore {
|
|
|
1619
1721
|
usage: &mut [u64; 20],
|
|
1620
1722
|
remaining: &mut WorkLimits,
|
|
1621
1723
|
) -> Result<(WarmMembership, ProjectionReservation<'_>), SnapshotError> {
|
|
1622
|
-
use std::fmt::Write as _;
|
|
1623
|
-
|
|
1624
1724
|
let ids = request["thread_ids"]
|
|
1625
1725
|
.as_array()
|
|
1626
1726
|
.ok_or_else(|| invalid("missing registered thread ids"))?;
|
|
@@ -1799,11 +1899,6 @@ impl NativeStore {
|
|
|
1799
1899
|
"registered source bound exhausted",
|
|
1800
1900
|
));
|
|
1801
1901
|
}
|
|
1802
|
-
let mut digest = Sha256::new();
|
|
1803
|
-
for source in &members {
|
|
1804
|
-
digest.update(source.path.as_os_str().as_encoded_bytes());
|
|
1805
|
-
digest.update(source.stamp.revision().as_bytes());
|
|
1806
|
-
}
|
|
1807
1902
|
self.extend_projection_reservation(
|
|
1808
1903
|
&mut reservation,
|
|
1809
1904
|
context,
|
|
@@ -1811,15 +1906,12 @@ impl NativeStore {
|
|
|
1811
1906
|
+ arc_slice_bytes::<(SourceIdentity, usize)>(members.len())
|
|
1812
1907
|
+ arc_slice_bytes::<(PathBuf, Option<SourceStamp>)>(sidechain_dirs.len()),
|
|
1813
1908
|
)?;
|
|
1814
|
-
let mut revision = String::with_capacity(revision_len);
|
|
1815
|
-
write!(revision, "{:x}", digest.finalize()).expect("hex digest");
|
|
1816
|
-
assert_eq!(revision.capacity(), revision_len);
|
|
1817
1909
|
Ok((
|
|
1818
1910
|
WarmMembership {
|
|
1911
|
+
revision: Self::warm_membership_revision(&members),
|
|
1819
1912
|
positions: member_positions(&members),
|
|
1820
1913
|
members: members.into(),
|
|
1821
1914
|
sidechain_dirs: sidechain_dirs.into(),
|
|
1822
|
-
revision,
|
|
1823
1915
|
complete: located.len() == ids.len(),
|
|
1824
1916
|
expires: now_ms().saturating_add(30 * 60_000),
|
|
1825
1917
|
},
|
{cc_transcript-14.45.8 → cc_transcript-14.45.10}/rust/crates/core/src/snapshot_regressions.rs
RENAMED
|
@@ -88,8 +88,12 @@ fn bounds() -> WorkLimits {
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
fn acquire(path: &Path) -> Value {
|
|
91
|
+
acquire_as(path, "native")
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
fn acquire_as(path: &Path, classifier: &str) -> Value {
|
|
91
95
|
json!({"schema":SCHEMA,"id":"race-acquire","operation":"acquire",
|
|
92
|
-
"path":path.to_string_lossy().as_ref(),"classifier":{"id":
|
|
96
|
+
"path":path.to_string_lossy().as_ref(),"classifier":{"id":classifier,"version":"1"},
|
|
93
97
|
"deadline_unix_ms":now_ms()+30_000,"limits":{"max_read_bytes":1024*1024,"max_source_read_bytes":1024*1024,"max_events":1000,
|
|
94
98
|
"max_items":256,"max_output_bytes":1024*1024,"max_discovery_entries":1000,"max_sources":100}})
|
|
95
99
|
}
|
|
@@ -154,16 +158,16 @@ fn staged_body(store: &NativeStore, mut response: Value, owner: &Value, after: u
|
|
|
154
158
|
panic!("source never reached a staged body read");
|
|
155
159
|
}
|
|
156
160
|
|
|
157
|
-
struct
|
|
161
|
+
struct Gate {
|
|
158
162
|
entered: mpsc::Receiver<()>,
|
|
159
163
|
released: Arc<(Mutex<bool>, Condvar)>,
|
|
160
164
|
}
|
|
161
165
|
|
|
162
|
-
impl
|
|
163
|
-
fn
|
|
166
|
+
impl Gate {
|
|
167
|
+
fn wait_until_entered(&self) {
|
|
164
168
|
self.entered
|
|
165
169
|
.recv_timeout(Duration::from_secs(10))
|
|
166
|
-
.expect("
|
|
170
|
+
.expect("gated hook was not reached within ten seconds");
|
|
167
171
|
}
|
|
168
172
|
|
|
169
173
|
fn release(&self) {
|
|
@@ -173,18 +177,18 @@ impl ReadGate {
|
|
|
173
177
|
}
|
|
174
178
|
}
|
|
175
179
|
|
|
176
|
-
impl Drop for
|
|
180
|
+
impl Drop for Gate {
|
|
177
181
|
fn drop(&mut self) {
|
|
178
182
|
self.release();
|
|
179
183
|
}
|
|
180
184
|
}
|
|
181
185
|
|
|
182
|
-
fn
|
|
186
|
+
fn gate() -> (Gate, impl Fn() + Send + Sync + 'static) {
|
|
183
187
|
let (sender, entered) = mpsc::channel();
|
|
184
188
|
let released = Arc::new((Mutex::new(false), Condvar::new()));
|
|
185
189
|
let worker_released = Arc::clone(&released);
|
|
186
|
-
|
|
187
|
-
sender.send(()).expect("
|
|
190
|
+
let hold = move || {
|
|
191
|
+
sender.send(()).expect("gate owner disappeared");
|
|
188
192
|
let (released, notification) = &*worker_released;
|
|
189
193
|
let (released, _) = notification
|
|
190
194
|
.wait_timeout_while(
|
|
@@ -195,9 +199,15 @@ fn install_read_gate(store: &NativeStore) -> ReadGate {
|
|
|
195
199
|
.unwrap();
|
|
196
200
|
let did_release = *released;
|
|
197
201
|
drop(released);
|
|
198
|
-
assert!(did_release, "
|
|
199
|
-
}
|
|
200
|
-
|
|
202
|
+
assert!(did_release, "gate was not released within ten seconds");
|
|
203
|
+
};
|
|
204
|
+
(Gate { entered, released }, hold)
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
fn install_read_gate(store: &NativeStore) -> Gate {
|
|
208
|
+
let (gate, hold) = gate();
|
|
209
|
+
*store.read_hook.lock().unwrap() = Some(Arc::new(hold));
|
|
210
|
+
gate
|
|
201
211
|
}
|
|
202
212
|
|
|
203
213
|
#[test]
|
|
@@ -210,7 +220,7 @@ fn dropping_read_gate_releases_the_blocked_worker() {
|
|
|
210
220
|
hook();
|
|
211
221
|
finished.send(()).unwrap();
|
|
212
222
|
});
|
|
213
|
-
gate.
|
|
223
|
+
gate.wait_until_entered();
|
|
214
224
|
drop(gate);
|
|
215
225
|
received
|
|
216
226
|
.recv_timeout(Duration::from_secs(10))
|
|
@@ -260,7 +270,7 @@ fn rewrite_during_read(tail: bool, truncate: bool) {
|
|
|
260
270
|
&Cancellation::default(),
|
|
261
271
|
)
|
|
262
272
|
});
|
|
263
|
-
gate.
|
|
273
|
+
gate.wait_until_entered();
|
|
264
274
|
let replacement = if truncate {
|
|
265
275
|
String::new()
|
|
266
276
|
} else {
|
|
@@ -320,7 +330,7 @@ fn concurrent_waiter_cancellation_does_not_cancel_the_blocked_reader() {
|
|
|
320
330
|
let worker = std::thread::spawn(move || {
|
|
321
331
|
worker_store.request(&request, &worker_owner, &Cancellation::default())
|
|
322
332
|
});
|
|
323
|
-
gate.
|
|
333
|
+
gate.wait_until_entered();
|
|
324
334
|
let second = store.request(&acquire(&source.path), &b, &Cancellation::default());
|
|
325
335
|
let load_id = second["data"]["reservation"]["load_id"]
|
|
326
336
|
.as_str()
|
|
@@ -360,7 +370,7 @@ fn cancelled_blocked_reader_does_not_poison_the_concurrent_waiter() {
|
|
|
360
370
|
let request = acquire(&source.path);
|
|
361
371
|
let worker =
|
|
362
372
|
std::thread::spawn(move || worker_store.request(&request, &worker_owner, &worker_cancel));
|
|
363
|
-
gate.
|
|
373
|
+
gate.wait_until_entered();
|
|
364
374
|
let second = store.request(&acquire(&source.path), &b, &Cancellation::default());
|
|
365
375
|
assert_eq!(store.state.lock().unwrap().waiters.len(), 2);
|
|
366
376
|
cancellation.cancel();
|
|
@@ -376,6 +386,90 @@ fn cancelled_blocked_reader_does_not_poison_the_concurrent_waiter() {
|
|
|
376
386
|
assert_eq!(state.counters[9], 1);
|
|
377
387
|
}
|
|
378
388
|
|
|
389
|
+
#[test]
|
|
390
|
+
fn joined_waiters_publish_a_cold_generation_once_while_its_parser_still_classifies() {
|
|
391
|
+
let source = RaceSource::new(&[user("a"), user("b")].concat());
|
|
392
|
+
let identity = SourceStamp::of(&std::fs::metadata(&source.path).unwrap()).identity;
|
|
393
|
+
let store = Arc::new(race_store());
|
|
394
|
+
let (gate, hold) = gate();
|
|
395
|
+
store
|
|
396
|
+
.register_classifier(
|
|
397
|
+
"gated",
|
|
398
|
+
"1",
|
|
399
|
+
Arc::new(move |_, range| {
|
|
400
|
+
hold();
|
|
401
|
+
Ok(vec![false; range.len()])
|
|
402
|
+
}),
|
|
403
|
+
)
|
|
404
|
+
.unwrap();
|
|
405
|
+
let a = context(&store, &source, "first");
|
|
406
|
+
let b = context(&store, &source, "second");
|
|
407
|
+
let c = context(&store, &source, "third");
|
|
408
|
+
let parsing = store.request(
|
|
409
|
+
&acquire_as(&source.path, "gated"),
|
|
410
|
+
&a,
|
|
411
|
+
&Cancellation::default(),
|
|
412
|
+
);
|
|
413
|
+
let second = store.request(&acquire(&source.path), &b, &Cancellation::default());
|
|
414
|
+
let third = store.request(&acquire(&source.path), &c, &Cancellation::default());
|
|
415
|
+
for joined in [&parsing, &second, &third] {
|
|
416
|
+
assert_eq!(joined["status"].as_str(), Some("incomplete"), "{joined:?}");
|
|
417
|
+
}
|
|
418
|
+
let worker_store = Arc::clone(&store);
|
|
419
|
+
let worker_owner = a.clone();
|
|
420
|
+
let worker = std::thread::spawn(move || finish(&worker_store, parsing, &worker_owner));
|
|
421
|
+
gate.wait_until_entered();
|
|
422
|
+
assert!(!store.state.lock().unwrap().latest.contains_key(&identity));
|
|
423
|
+
let second = finish(&store, second, &b);
|
|
424
|
+
assert!(store.state.lock().unwrap().latest.contains_key(&identity));
|
|
425
|
+
let third = finish(&store, third, &c);
|
|
426
|
+
gate.release();
|
|
427
|
+
let first = worker.join().unwrap();
|
|
428
|
+
let latest = {
|
|
429
|
+
let state = store.state.lock().unwrap();
|
|
430
|
+
assert_eq!(
|
|
431
|
+
[4, 8, 9, 10].map(|counter| (COUNTERS[counter], state.counters[counter])),
|
|
432
|
+
[
|
|
433
|
+
("cold_parses", 1),
|
|
434
|
+
("inflight_joins", 2),
|
|
435
|
+
("generations_published", 1),
|
|
436
|
+
("generations_invalidated", 0),
|
|
437
|
+
]
|
|
438
|
+
);
|
|
439
|
+
Arc::clone(state.latest.get(&identity).expect("published latest"))
|
|
440
|
+
};
|
|
441
|
+
for (response, published) in [(&first, 0), (&second, 1), (&third, 0)] {
|
|
442
|
+
assert_eq!(
|
|
443
|
+
response["usage"]["generations_published"].as_u64(),
|
|
444
|
+
Some(published),
|
|
445
|
+
"{response:?}"
|
|
446
|
+
);
|
|
447
|
+
assert_eq!(
|
|
448
|
+
response["usage"]["generations_invalidated"].as_u64(),
|
|
449
|
+
Some(0),
|
|
450
|
+
"{response:?}"
|
|
451
|
+
);
|
|
452
|
+
}
|
|
453
|
+
let classified = pin(&store, &first, &a);
|
|
454
|
+
assert!(!Arc::ptr_eq(&classified, &latest));
|
|
455
|
+
for snapshot in [
|
|
456
|
+
&classified,
|
|
457
|
+
&pin(&store, &second, &b),
|
|
458
|
+
&pin(&store, &third, &c),
|
|
459
|
+
] {
|
|
460
|
+
assert_eq!(snapshot.event_count, 2);
|
|
461
|
+
assert_eq!(snapshot.entry(1).meta().unwrap().uuid, "b");
|
|
462
|
+
assert!(Arc::ptr_eq(&snapshot.chunks[0], &latest.chunks[0]));
|
|
463
|
+
}
|
|
464
|
+
assert!(Arc::ptr_eq(&pin(&store, &second, &b), &latest));
|
|
465
|
+
assert!(Arc::ptr_eq(&pin(&store, &third, &c), &latest));
|
|
466
|
+
assert_eq!(
|
|
467
|
+
store.state.lock().unwrap().escaped_chunks.len(),
|
|
468
|
+
latest.chunks.len()
|
|
469
|
+
);
|
|
470
|
+
store.assert_conserved();
|
|
471
|
+
}
|
|
472
|
+
|
|
379
473
|
fn classified(
|
|
380
474
|
store: &NativeStore,
|
|
381
475
|
snapshot: Arc<TranscriptSnapshot>,
|
|
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
|