cc-transcript 14.45.32__tar.gz → 14.45.33__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/PKG-INFO +1 -1
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/pyproject.toml +1 -1
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/lib.rs +1 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot.rs +33 -15
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_compact_codex.rs +3 -4
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_compact_codex_tests.rs +32 -32
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_ledger_tests.rs +23 -16
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_prepared.rs +258 -52
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_prepared_disk.rs +252 -86
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_prepared_service.rs +133 -31
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_projection.rs +56 -7
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_query_hydration_tests.rs +16 -14
- cc_transcript-14.45.33/rust/crates/core/src/snapshot_skill_demand_controls.rs +82 -0
- cc_transcript-14.45.33/rust/crates/core/src/snapshot_skill_demand_tests.rs +402 -0
- cc_transcript-14.45.33/rust/crates/core/src/snapshot_skill_framing.rs +200 -0
- cc_transcript-14.45.33/rust/crates/core/src/snapshot_skills.rs +581 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/Cargo.lock +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/Cargo.toml +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/LICENSE +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/README.md +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/__init__.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/__init__.pyi +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/_native.pyi +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/activity.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/activity_probe.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/builders.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/codex.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/command.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/context.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/corrections.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/cost.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/decision_store.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/decisions.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/discovery.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/disktruth.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/evidence.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/extract/__init__.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/extract/correct.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/facts.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/filterspec.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/heartbeats.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/ids.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/judge/__init__.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/judge/llm.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/judge/similar.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/judge/verdicts.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/ledger.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/literals.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/mining/__init__.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/mining/candidates.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/mining/confidence.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/mining/engine.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/mining/formats.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/mining/sampling.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/mining/signals.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/mining/sourcekind.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/mining/spec.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/mining/store.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/models.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/nlp.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/notifications.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/parser.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/py.typed +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/query.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/render.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/sentiment/__init__.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/sentiment/buckets.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/sentiment/data/afinn-en-165.tsv +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/sentiment/data/domain_overrides.tsv +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/sentiment/data/en-ewt.udpipe +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/sentiment/engine.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/sentiment/lexicon.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/sentiment/scorespec.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/snapshot_schema/config.schema.json +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/snapshot_schema/context.schema.json +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/snapshot_schema/request.schema.json +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/snapshot_schema/response.schema.json +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/snapshot_schema/tool_registry.schema.json +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/snapshots.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/synthetic.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/tools.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/cc_transcript/watch.py +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/cli/Cargo.toml +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/cli/src/commands/blame.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/cli/src/commands/corpus.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/cli/src/commands/corrections.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/cli/src/commands/digest.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/cli/src/commands/facts.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/cli/src/commands/grep.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/cli/src/commands/list.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/cli/src/commands/mod.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/cli/src/commands/scratchpad.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/cli/src/commands/show.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/cli/src/commands/slice.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/cli/src/commands/stats.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/cli/src/commands/watch.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/cli/src/lib.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/cli/src/output.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/cli/src/target.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/cli/src/timearg.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/Cargo.toml +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/benches/parse.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/benches/render.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/benches/toolcall.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/build.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/activity.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/actor.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/blame.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/buckets.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/codex/discovery.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/codex/lower.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/codex/mod.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/codex/parse.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/codex/probe.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/codex/protocol.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/codex/types.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/command.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/context.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/corrections.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/cost.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/discovery.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/facts.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/feedback.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/filter.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/gateway.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/ids.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/judge.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/literals/command.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/literals/corrections.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/literals/feedback.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/literals/mining.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/literals/mod.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/literals/protocol.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/notifications.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/parse.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/protocol.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/pystr.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/query.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/render.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/request_body.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/rng.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/scan.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/scan_checkpoint.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/scan_grep.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/scan_grep_stream.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/scan_grep_stream_tests.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/scan_index.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/scan_projection.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/scan_regressions.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/scan_stream.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/schema.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_activity.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_admission_report_tests.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_cache.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_cache_tests.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_catalog.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_catalog_owner.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_catalog_tests.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_codec.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_codex_append.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_common_borrowed_parent_tests.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_direct_tail.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_direct_tail_tests.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_graph_validation_tests.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_hydrate_budget_tests.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_hydration_observations.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_interaction_api.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_interaction_api_tests.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_interactions.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_interactions_tests.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_labels.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_ledger.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_load_charge_audit_tests.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_load_charge_work_tests.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_memory.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_owned.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_raw_materialization.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_raw_projection.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_raw_projection_tests.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_raw_scope.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_raw_scope_tests.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_raw_tail_tests.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_raw_window.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_regressions.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_root_warm.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_sidechain_absence.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_sidechain_absence_tests.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_source_cache_index_tests.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_spine.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_spine_tests.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_symlink_proof.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_text.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/sqlite.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/toolcall.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/types.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/value.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/watch.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/tests/sonic_arena_model.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/tests/std_allocation_model.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/py/Cargo.toml +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/py/build.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/py/data/command_prefix_pins.tsv +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/py/src/actor_bridge.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/py/src/bin/stub_gen.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/py/src/codex.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/py/src/command.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/py/src/context.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/py/src/corrections.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/py/src/discovery.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/py/src/feedback.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/py/src/judge.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/py/src/lexicon.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/py/src/lib.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/py/src/mining.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/py/src/nlp.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/py/src/python.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/py/src/render.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/py/src/score.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/py/src/snapshot_decode.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/py/src/snapshots.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/py/src/sqlite.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/py/src/toolcall.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/py/src/views/attachment.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/py/src/views/blocks.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/py/src/views/command.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/py/src/views/convert.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/py/src/views/dunder.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/py/src/views/events.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/py/src/views/meta.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/py/src/views/mod.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/py/src/views/print.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/py/src/views/store.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/py/src/views/system.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/py/src/views/toolcall.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/py/src/views/toolresult.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/py/src/views/transcript.rs +0 -0
- {cc_transcript-14.45.32 → cc_transcript-14.45.33}/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.33" # informational — releases stamp the version from the git tag
|
|
4
4
|
description = "Grep every Claude Code session you've ever run."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = "PolyForm-Noncommercial-1.0.0"
|
|
@@ -917,6 +917,10 @@ enum PreparedSourceOutcome<'a> {
|
|
|
917
917
|
cached: bool,
|
|
918
918
|
},
|
|
919
919
|
Pending(String),
|
|
920
|
+
SkillPending {
|
|
921
|
+
work: Box<PendingSkillSource>,
|
|
922
|
+
reservation: ProjectionReservation<'a>,
|
|
923
|
+
},
|
|
920
924
|
Stored,
|
|
921
925
|
Superseded,
|
|
922
926
|
}
|
|
@@ -965,6 +969,11 @@ struct PendingPreparedSource {
|
|
|
965
969
|
stamp: SourceStamp,
|
|
966
970
|
}
|
|
967
971
|
|
|
972
|
+
enum PendingQuerySource {
|
|
973
|
+
Native(PendingPreparedSource),
|
|
974
|
+
Skills(Box<PendingSkillSource>),
|
|
975
|
+
}
|
|
976
|
+
|
|
968
977
|
#[derive(Clone)]
|
|
969
978
|
struct PreparedSourceRef {
|
|
970
979
|
path: PathBuf,
|
|
@@ -1154,7 +1163,7 @@ struct PreparedQueryCursor {
|
|
|
1154
1163
|
claimant: String,
|
|
1155
1164
|
graph_id: String,
|
|
1156
1165
|
query: Value,
|
|
1157
|
-
pending: Option<
|
|
1166
|
+
pending: Option<PendingQuerySource>,
|
|
1158
1167
|
input_records: Option<VecDeque<String>>,
|
|
1159
1168
|
observers: Observers,
|
|
1160
1169
|
need: FactsNeed,
|
|
@@ -2067,8 +2076,11 @@ impl Charge<String> for PreparedQueryCursor {
|
|
|
2067
2076
|
+ self.claimant.capacity()
|
|
2068
2077
|
+ self.graph_id.capacity()
|
|
2069
2078
|
+ value_bytes(&self.query)
|
|
2070
|
-
+ self.pending.as_ref().map_or(0, |pending| {
|
|
2071
|
-
pending
|
|
2079
|
+
+ self.pending.as_ref().map_or(0, |pending| match pending {
|
|
2080
|
+
PendingQuerySource::Native(pending) => {
|
|
2081
|
+
pending.token.capacity() + pending.path.capacity()
|
|
2082
|
+
}
|
|
2083
|
+
PendingQuerySource::Skills(work) => work.accounted_bytes(),
|
|
2072
2084
|
})
|
|
2073
2085
|
+ self.input_records.as_ref().map_or(0, |records| {
|
|
2074
2086
|
records.capacity() * size_of::<String>()
|
|
@@ -2152,6 +2164,7 @@ pub(crate) struct StoreState {
|
|
|
2152
2164
|
catalog_owners: Ledgered<usize, CatalogOwner>,
|
|
2153
2165
|
recent_codex: Table<SourceIdentity, u64>,
|
|
2154
2166
|
loads: Table<SourceIdentity, Arc<LoadSlot>>,
|
|
2167
|
+
skill_admissions: Arc<AtomicUsize>,
|
|
2155
2168
|
prepared_loads: Table<SourceIdentity, (Arc<LoadSlot>, u64)>,
|
|
2156
2169
|
leases: Ledgered<String, Lease>,
|
|
2157
2170
|
waiters: Ledgered<String, Waiter>,
|
|
@@ -2231,6 +2244,7 @@ impl StoreState {
|
|
|
2231
2244
|
catalog_owners: Ledgered::new(work.clone()),
|
|
2232
2245
|
recent_codex: Table::new(work.clone()),
|
|
2233
2246
|
loads: Table::new(work.clone()),
|
|
2247
|
+
skill_admissions: Arc::new(AtomicUsize::new(0)),
|
|
2234
2248
|
prepared_loads: Table::new(work.clone()),
|
|
2235
2249
|
leases: Ledgered::new(work.clone()),
|
|
2236
2250
|
waiters: Ledgered::new(work.clone()),
|
|
@@ -5296,7 +5310,7 @@ impl NativeStore {
|
|
|
5296
5310
|
.collect();
|
|
5297
5311
|
for token in expired_queries {
|
|
5298
5312
|
if let Some(query) = state.prepared_queries.remove(&token) {
|
|
5299
|
-
if let Some(pending) = query.pending {
|
|
5313
|
+
if let Some(PendingQuerySource::Native(pending)) = query.pending {
|
|
5300
5314
|
state.waiters.remove(&pending.token);
|
|
5301
5315
|
}
|
|
5302
5316
|
if query.remaining.deadline_unix_ms <= now {
|
|
@@ -6143,14 +6157,14 @@ impl NativeStore {
|
|
|
6143
6157
|
+ claimant.capacity()
|
|
6144
6158
|
+ graph_id.capacity()
|
|
6145
6159
|
+ value_bytes(query)
|
|
6146
|
-
+ pending.as_ref().map_or(
|
|
6147
|
-
|
|
6148
|
-
|
|
6149
|
-
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
)
|
|
6160
|
+
+ pending.as_ref().map_or(0, |pending| match pending {
|
|
6161
|
+
PendingQuerySource::Native(PendingPreparedSource {
|
|
6162
|
+
token,
|
|
6163
|
+
path,
|
|
6164
|
+
stamp: _,
|
|
6165
|
+
}) => token.capacity() + path.capacity(),
|
|
6166
|
+
PendingQuerySource::Skills(work) => Self::audit_skill_source_bytes(work),
|
|
6167
|
+
})
|
|
6154
6168
|
+ input_records.as_ref().map_or(0, |records| {
|
|
6155
6169
|
records.capacity() * size_of::<String>()
|
|
6156
6170
|
+ records.iter().map(String::capacity).sum::<usize>()
|
|
@@ -6394,6 +6408,7 @@ impl NativeStore {
|
|
|
6394
6408
|
|
|
6395
6409
|
fn bookkeeping_bytes(state: &StoreState) -> usize {
|
|
6396
6410
|
size_of::<StoreState>()
|
|
6411
|
+
+ arc_bytes::<AtomicUsize>()
|
|
6397
6412
|
+ state.ledger.shared.table_bytes()
|
|
6398
6413
|
+ state.registries.capacity_bytes()
|
|
6399
6414
|
+ state.generations.capacity_bytes()
|
|
@@ -7298,7 +7313,7 @@ impl NativeStore {
|
|
|
7298
7313
|
released |= state.registered_builds.remove(token).is_some();
|
|
7299
7314
|
released |= state.projections.remove(token).is_some();
|
|
7300
7315
|
if let Some(query) = state.prepared_queries.remove(token) {
|
|
7301
|
-
if let Some(pending) = query.pending {
|
|
7316
|
+
if let Some(PendingQuerySource::Native(pending)) = query.pending {
|
|
7302
7317
|
state.waiters.remove(&pending.token);
|
|
7303
7318
|
}
|
|
7304
7319
|
released = true;
|
|
@@ -7344,7 +7359,7 @@ impl NativeStore {
|
|
|
7344
7359
|
.is_some_and(|query| query.claimant == claimant)
|
|
7345
7360
|
{
|
|
7346
7361
|
if let Some(query) = state.prepared_queries.remove(token) {
|
|
7347
|
-
if let Some(pending) = query.pending {
|
|
7362
|
+
if let Some(PendingQuerySource::Native(pending)) = query.pending {
|
|
7348
7363
|
state.waiters.remove(&pending.token);
|
|
7349
7364
|
}
|
|
7350
7365
|
}
|
|
@@ -7916,7 +7931,7 @@ impl NativeStore {
|
|
|
7916
7931
|
.collect();
|
|
7917
7932
|
for query_token in discarded {
|
|
7918
7933
|
if let Some(query) = state.prepared_queries.remove(&query_token) {
|
|
7919
|
-
if let Some(pending) = query.pending {
|
|
7934
|
+
if let Some(PendingQuerySource::Native(pending)) = query.pending {
|
|
7920
7935
|
state.waiters.remove(&pending.token);
|
|
7921
7936
|
}
|
|
7922
7937
|
}
|
|
@@ -12239,6 +12254,7 @@ include!("snapshot_symlink_proof.rs");
|
|
|
12239
12254
|
include!("snapshot_catalog_owner.rs");
|
|
12240
12255
|
include!("snapshot_sidechain_absence.rs");
|
|
12241
12256
|
include!("snapshot_prepared_service.rs");
|
|
12257
|
+
include!("snapshot_skills.rs");
|
|
12242
12258
|
include!("snapshot_hydration_observations.rs");
|
|
12243
12259
|
include!("snapshot_cache.rs");
|
|
12244
12260
|
include!("snapshot_root_warm.rs");
|
|
@@ -12315,6 +12331,8 @@ mod tests {
|
|
|
12315
12331
|
include!("snapshot_raw_tail_tests.rs");
|
|
12316
12332
|
include!("snapshot_direct_tail_tests.rs");
|
|
12317
12333
|
include!("snapshot_query_hydration_tests.rs");
|
|
12334
|
+
include!("snapshot_skill_demand_controls.rs");
|
|
12335
|
+
include!("snapshot_skill_demand_tests.rs");
|
|
12318
12336
|
include!("snapshot_compact_codex_tests.rs");
|
|
12319
12337
|
include!("snapshot_hydrate_budget_tests.rs");
|
|
12320
12338
|
include!("snapshot_interactions_tests.rs");
|
{cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_compact_codex.rs
RENAMED
|
@@ -403,10 +403,9 @@ impl NativeStore {
|
|
|
403
403
|
let inputs = reducer.inputs();
|
|
404
404
|
crate::snapshot_codec::write_json(&mut std::io::sink(), &inputs, 16 * 1024 * 1024)
|
|
405
405
|
.map_err(|_| SnapshotError::new(Status::Incomplete, "prepared predicate facts exceed source bound"))?;
|
|
406
|
-
let
|
|
407
|
-
inputs,
|
|
408
|
-
|
|
409
|
-
facts.refresh_accounted();
|
|
406
|
+
let facts = crate::snapshot_prepared::PreparedFacts::index(
|
|
407
|
+
inputs, reducer.has_error(), crate::snapshot_prepared::OverrideFacts::Unloaded,
|
|
408
|
+
);
|
|
410
409
|
let append = Arc::new(CompactCodexIndex { stamp, fence: origin, session_id: prior.session_id.clone(), index, reducer });
|
|
411
410
|
let facts = Arc::new(facts);
|
|
412
411
|
cancel.check(remaining.deadline_unix_ms)?;
|
|
@@ -71,7 +71,7 @@ fn prepared_cache_compact_codex_late_duplicate_results_match_complete_projection
|
|
|
71
71
|
let facts = Arc::clone(&cached.facts);
|
|
72
72
|
store.retain_cached_facts(&mut state, facts)
|
|
73
73
|
};
|
|
74
|
-
let old_inputs = sonic_rs::to_string(&old.facts().
|
|
74
|
+
let old_inputs = sonic_rs::to_string(&old.facts().index_inputs()).unwrap();
|
|
75
75
|
let suffixes = [
|
|
76
76
|
(compact_output("initial-0", 1), true),
|
|
77
77
|
(compact_output("initial-0", 0), false),
|
|
@@ -91,18 +91,18 @@ fn prepared_cache_compact_codex_late_duplicate_results_match_complete_projection
|
|
|
91
91
|
let actual = Arc::clone(&store.lock_state().cached_prepared_facts(&stamp.identity).facts);
|
|
92
92
|
let complete = compact_full_oracle(&paths[0]);
|
|
93
93
|
for column in ["calls", "commands", "edited_files", "skills"] {
|
|
94
|
-
assert_eq!(sonic_rs::to_string(&actual.
|
|
95
|
-
sonic_rs::to_string(&complete.
|
|
94
|
+
assert_eq!(sonic_rs::to_string(&actual.index_inputs()[column]).unwrap(),
|
|
95
|
+
sonic_rs::to_string(&complete.index_inputs()[column]).unwrap(), "column {column}");
|
|
96
96
|
}
|
|
97
|
-
compact_assert_index_inputs(&actual.
|
|
98
|
-
assert_eq!(actual.has_error, complete.has_error);
|
|
99
|
-
assert_eq!(actual.has_error, expected);
|
|
97
|
+
compact_assert_index_inputs(&actual.index_inputs(), &complete.index_inputs());
|
|
98
|
+
assert_eq!(actual.has_error(), complete.has_error());
|
|
99
|
+
assert_eq!(actual.has_error(), expected);
|
|
100
100
|
assert!(!actual.is_full());
|
|
101
101
|
eprintln!("compact_result expected_error={expected} suffix={} read={} full_lowerings={}",suffix.len(),usage[1],usage[15]);
|
|
102
102
|
assert!(usage[1] <= suffix.len() as u64 + 256);
|
|
103
103
|
assert_eq!(usage[15], 0);
|
|
104
|
-
assert!(!old.facts().has_error);
|
|
105
|
-
assert_eq!(sonic_rs::to_string(&old.facts().
|
|
104
|
+
assert!(!old.facts().has_error());
|
|
105
|
+
assert_eq!(sonic_rs::to_string(&old.facts().index_inputs()).unwrap(), old_inputs);
|
|
106
106
|
assert_eq!(store.lock_state().cached_prepared_facts(&stamp.identity).stamp, stamp);
|
|
107
107
|
store.assert_conserved();
|
|
108
108
|
}
|
|
@@ -119,7 +119,7 @@ fn prepared_cache_compact_codex_owner_retirement_keeps_only_guarded_metadata() {
|
|
|
119
119
|
let owner = context("compact-owner");
|
|
120
120
|
let root = hydration_root(&store, &source, &owner);
|
|
121
121
|
let graph = hydration_graph(&store, &root, &paths, &owner);
|
|
122
|
-
hydration_false(&
|
|
122
|
+
hydration_false(&hydration_index_query(&store, &graph, "definitely-absent", &owner).0);
|
|
123
123
|
let old_stamp = SourceStamp::of(&std::fs::metadata(&paths[0]).unwrap());
|
|
124
124
|
let weak = Arc::downgrade(store.lock_state().cached_prepared_facts(&old_stamp.identity).append.as_ref().unwrap());
|
|
125
125
|
let suffix = hydration_tool("next", "next");
|
|
@@ -145,7 +145,7 @@ fn prepared_cache_compact_codex_refusal_cancel_and_full_need_keep_authority() {
|
|
|
145
145
|
let owner = context("compact-refusal");
|
|
146
146
|
let root = hydration_root(&store, &source, &owner);
|
|
147
147
|
let graph = hydration_graph(&store, &root, &paths, &owner);
|
|
148
|
-
hydration_false(&
|
|
148
|
+
hydration_false(&hydration_index_query(&store, &graph, "definitely-absent", &owner).0);
|
|
149
149
|
let stamp = SourceStamp::of(&std::fs::metadata(&paths[0]).unwrap());
|
|
150
150
|
let classifier = json!({"id":"native","version":"1"});
|
|
151
151
|
let old_key = PreparedDiskKey::new(stamp, owner["registry_generation"].as_str().unwrap(),
|
|
@@ -180,7 +180,7 @@ fn prepared_cache_compact_codex_cancel_and_exact_refusal_never_publish_a_success
|
|
|
180
180
|
let owner = context("compact-inflight-refusal");
|
|
181
181
|
let root = hydration_root(&store, &source, &owner);
|
|
182
182
|
let graph = hydration_graph(&store, &root, &paths, &owner);
|
|
183
|
-
hydration_false(&
|
|
183
|
+
hydration_false(&hydration_index_query(&store, &graph, "definitely-absent", &owner).0);
|
|
184
184
|
let old_stamp = SourceStamp::of(&std::fs::metadata(&paths[0]).unwrap());
|
|
185
185
|
let classifier = json!({"id":"native","version":"1"});
|
|
186
186
|
let suffix = hydration_tool("never-published", "never-published");
|
|
@@ -255,7 +255,7 @@ fn prepared_cache_compact_codex_capacity_boundary_admits_successor_and_temporary
|
|
|
255
255
|
let owner = context("compact-capacity-boundary");
|
|
256
256
|
let root = hydration_root(&store,&source,&owner);
|
|
257
257
|
let graph = hydration_graph(&store,&root,&paths,&owner);
|
|
258
|
-
hydration_false(&
|
|
258
|
+
hydration_false(&hydration_index_query(&store,&graph,"definitely-absent",&owner).0);
|
|
259
259
|
let suffix = compact_assistant_line("capacity-new-boundary",echo);
|
|
260
260
|
std::fs::OpenOptions::new().append(true).open(&paths[0]).unwrap().write_all(suffix.as_bytes()).unwrap();
|
|
261
261
|
let stamp = SourceStamp::of(&std::fs::metadata(&paths[0]).unwrap());
|
|
@@ -276,7 +276,7 @@ fn prepared_cache_compact_codex_capacity_boundary_admits_successor_and_temporary
|
|
|
276
276
|
assert!(admitted.append_peak>admitted.successor);
|
|
277
277
|
assert!(admitted.lower_peak>0);
|
|
278
278
|
let fresh = hydration_graph(&store,&root,&paths,&owner);
|
|
279
|
-
let (answer,usage) =
|
|
279
|
+
let (answer,usage) = hydration_index_query(&store,&fresh,"definitely-absent",&owner);
|
|
280
280
|
hydration_false(&answer);
|
|
281
281
|
let state = store.lock_state();
|
|
282
282
|
let new = &state.cached_prepared_facts(&stamp.identity).append.as_ref().unwrap().index;
|
|
@@ -328,14 +328,14 @@ fn prepared_cache_compact_codex_final_seal_parent_swap_rejects_positive_and_keep
|
|
|
328
328
|
let owner = context("compact-parent-swap");
|
|
329
329
|
let root = hydration_root(&store,&source,&owner);
|
|
330
330
|
let graph = hydration_graph(&store,&root,&paths,&owner);
|
|
331
|
-
hydration_false(&
|
|
331
|
+
hydration_false(&hydration_index_query(&store,&graph,"definitely-absent",&owner).0);
|
|
332
332
|
let old_stamp = SourceStamp::of(&std::fs::metadata(&path).unwrap());
|
|
333
333
|
let old = {
|
|
334
334
|
let mut state = store.lock_state();
|
|
335
335
|
let facts = Arc::clone(&state.cached_prepared_facts(&old_stamp.identity).facts);
|
|
336
336
|
store.retain_cached_facts(&mut state,facts)
|
|
337
337
|
};
|
|
338
|
-
let old_inputs = sonic_rs::to_string(&old.facts().
|
|
338
|
+
let old_inputs = sonic_rs::to_string(&old.facts().index_inputs()).unwrap();
|
|
339
339
|
let suffix = hydration_tool("swap-positive","swap-positive");
|
|
340
340
|
std::fs::OpenOptions::new().append(true).open(&path).unwrap().write_all(suffix.as_bytes()).unwrap();
|
|
341
341
|
let stamp = SourceStamp::of(&std::fs::metadata(&path).unwrap());
|
|
@@ -359,7 +359,7 @@ fn prepared_cache_compact_codex_final_seal_parent_swap_rejects_positive_and_keep
|
|
|
359
359
|
assert_ne!(answer["data"]["value"].as_bool(),Some(true));
|
|
360
360
|
assert!(!store.lock_state().prepared_facts.contains_key(&new_key));
|
|
361
361
|
assert_eq!(store.lock_state().cached_prepared_facts(&old_stamp.identity).stamp,old_stamp);
|
|
362
|
-
assert_eq!(sonic_rs::to_string(&old.facts().
|
|
362
|
+
assert_eq!(sonic_rs::to_string(&old.facts().index_inputs()).unwrap(),old_inputs);
|
|
363
363
|
store.assert_conserved();
|
|
364
364
|
drop(old);
|
|
365
365
|
store.assert_conserved();
|
|
@@ -383,14 +383,14 @@ fn prepared_cache_compact_codex_cold_failed_call_is_restored_by_successful_resul
|
|
|
383
383
|
let old = {
|
|
384
384
|
let mut state = store.lock_state();
|
|
385
385
|
let cached = state.cached_prepared_facts(&old_stamp.identity);
|
|
386
|
-
assert!(cached.facts.
|
|
386
|
+
assert!(cached.facts.index_inputs()["calls"].as_array().unwrap().is_empty());
|
|
387
387
|
assert_eq!(cached.append.as_ref().unwrap().reducer.calls.len(), 1);
|
|
388
388
|
assert!(!state.latest.contains_key(&old_stamp.identity));
|
|
389
389
|
assert!(!state.source_spines.contains_key(&old_stamp.identity.file()));
|
|
390
390
|
let facts = Arc::clone(&cached.facts);
|
|
391
391
|
store.retain_cached_facts(&mut state, facts)
|
|
392
392
|
};
|
|
393
|
-
let old_bytes = sonic_rs::to_string(&old.facts().
|
|
393
|
+
let old_bytes = sonic_rs::to_string(&old.facts().index_inputs()).unwrap();
|
|
394
394
|
let suffix = compact_output("initial-0", 0);
|
|
395
395
|
std::fs::OpenOptions::new().append(true).open(&paths[0]).unwrap()
|
|
396
396
|
.write_all(suffix.as_bytes()).unwrap();
|
|
@@ -402,17 +402,17 @@ fn prepared_cache_compact_codex_cold_failed_call_is_restored_by_successful_resul
|
|
|
402
402
|
let actual = Arc::clone(&store.lock_state().cached_prepared_facts(&stamp.identity).facts);
|
|
403
403
|
let complete = compact_full_oracle(&paths[0]);
|
|
404
404
|
for column in ["calls", "commands", "edited_files", "skills"] {
|
|
405
|
-
assert_eq!(sonic_rs::to_string(&actual.
|
|
406
|
-
sonic_rs::to_string(&complete.
|
|
405
|
+
assert_eq!(sonic_rs::to_string(&actual.index_inputs()[column]).unwrap(),
|
|
406
|
+
sonic_rs::to_string(&complete.index_inputs()[column]).unwrap(), "column {column}");
|
|
407
407
|
}
|
|
408
|
-
compact_assert_index_inputs(&actual.
|
|
409
|
-
assert_eq!(actual.has_error, complete.has_error);
|
|
410
|
-
assert!(!actual.has_error);
|
|
411
|
-
assert_eq!(actual.
|
|
408
|
+
compact_assert_index_inputs(&actual.index_inputs(), &complete.index_inputs());
|
|
409
|
+
assert_eq!(actual.has_error(), complete.has_error());
|
|
410
|
+
assert!(!actual.has_error());
|
|
411
|
+
assert_eq!(actual.index_inputs()["calls"].as_array().unwrap().len(), 1);
|
|
412
412
|
assert!(usage[1] <= suffix.len() as u64 + 256);
|
|
413
413
|
assert_eq!(usage[15], 0);
|
|
414
|
-
assert!(old.facts().has_error);
|
|
415
|
-
assert_eq!(sonic_rs::to_string(&old.facts().
|
|
414
|
+
assert!(old.facts().has_error());
|
|
415
|
+
assert_eq!(sonic_rs::to_string(&old.facts().index_inputs()).unwrap(), old_bytes);
|
|
416
416
|
store.assert_conserved();
|
|
417
417
|
drop(old);
|
|
418
418
|
store.assert_conserved();
|
|
@@ -434,7 +434,7 @@ fn prepared_cache_compact_codex_reducer_tables_grow_with_all_call_metadata_charg
|
|
|
434
434
|
let owner = context("compact-reducer-growth");
|
|
435
435
|
let root = hydration_root(&store, &source, &owner);
|
|
436
436
|
let graph = hydration_graph(&store, &root, &paths, &owner);
|
|
437
|
-
hydration_false(&
|
|
437
|
+
hydration_false(&hydration_index_query(&store, &graph, "definitely-absent", &owner).0);
|
|
438
438
|
let old_stamp = SourceStamp::of(&std::fs::metadata(&paths[0]).unwrap());
|
|
439
439
|
let (old_calls, old_results, count, old_result_count) = {
|
|
440
440
|
let state = store.lock_state();
|
|
@@ -455,7 +455,7 @@ fn prepared_cache_compact_codex_reducer_tables_grow_with_all_call_metadata_charg
|
|
|
455
455
|
let previous = store.previous_compact_codex(stamp, &owner, &json!({"id":"native","version":"1"})).unwrap().unwrap();
|
|
456
456
|
let old_inputs = previous.append.reducer.inputs();
|
|
457
457
|
let fresh = hydration_graph(&store, &root, &paths, &owner);
|
|
458
|
-
let (answer, usage) =
|
|
458
|
+
let (answer, usage) = hydration_index_query(&store, &fresh, "definitely-absent", &owner);
|
|
459
459
|
hydration_false(&answer);
|
|
460
460
|
let (selected, bindings) = {
|
|
461
461
|
let mut state = store.lock_state();
|
|
@@ -487,11 +487,11 @@ fn prepared_cache_compact_codex_reducer_tables_grow_with_all_call_metadata_charg
|
|
|
487
487
|
let actual = held.facts();
|
|
488
488
|
let complete = compact_full_oracle(&paths[0]);
|
|
489
489
|
for column in ["calls", "commands", "edited_files", "skills"] {
|
|
490
|
-
assert_eq!(sonic_rs::to_string(&actual.
|
|
491
|
-
sonic_rs::to_string(&complete.
|
|
490
|
+
assert_eq!(sonic_rs::to_string(&actual.index_inputs()[column]).unwrap(),
|
|
491
|
+
sonic_rs::to_string(&complete.index_inputs()[column]).unwrap(), "column {column}");
|
|
492
492
|
}
|
|
493
|
-
compact_assert_index_inputs(&actual.
|
|
494
|
-
assert_eq!(actual.has_error, complete.has_error);
|
|
493
|
+
compact_assert_index_inputs(&actual.index_inputs(), &complete.index_inputs());
|
|
494
|
+
assert_eq!(actual.has_error(), complete.has_error());
|
|
495
495
|
compact_assert_index_inputs(&previous.append.reducer.inputs(), &old_inputs);
|
|
496
496
|
eprintln!("compact_reducer_growth old_calls={old_calls} new_calls={new_calls} old_results={old_results} new_results={new_results} suffix={} source_bytes={}",
|
|
497
497
|
suffix.len(), usage[1]);
|
{cc_transcript-14.45.32 → cc_transcript-14.45.33}/rust/crates/core/src/snapshot_ledger_tests.rs
RENAMED
|
@@ -3370,6 +3370,7 @@ fn default_startup_footprint_is_the_pre_sized_tables_and_the_default_registries(
|
|
|
3370
3370
|
assert_eq!(
|
|
3371
3371
|
store.retained_accounted_bytes(),
|
|
3372
3372
|
size_of::<StoreState>()
|
|
3373
|
+
+ arc_mirror::<AtomicUsize>()
|
|
3373
3374
|
+ arc_mirror::<crate::snapshot_ledger::ReleaseQueue>()
|
|
3374
3375
|
+ MUTEX_STORAGE_MIRROR
|
|
3375
3376
|
+ PRE_SIZED_SLOTS
|
|
@@ -4416,6 +4417,9 @@ fn refused_prepared_query_page_releases_its_pending_source_waiter() {
|
|
|
4416
4417
|
.pending
|
|
4417
4418
|
.as_ref()
|
|
4418
4419
|
.expect("the parked page carries its pending source");
|
|
4420
|
+
let PendingQuerySource::Native(pending) = pending else {
|
|
4421
|
+
panic!("this page owns a native waiter")
|
|
4422
|
+
};
|
|
4419
4423
|
assert_eq!(state.waiters.len(), 1);
|
|
4420
4424
|
assert!(state.waiters.contains_key(&pending.token));
|
|
4421
4425
|
}
|
|
@@ -5155,6 +5159,7 @@ fn facts_cache_fixture(
|
|
|
5155
5159
|
let request = graph_query(
|
|
5156
5160
|
&graph,
|
|
5157
5161
|
match need {
|
|
5162
|
+
FactsNeed::Skills => unreachable!("this fixture sizes Index and Full facts"),
|
|
5158
5163
|
FactsNeed::Index => missing_tool(),
|
|
5159
5164
|
FactsNeed::Full => missing_override(),
|
|
5160
5165
|
},
|
|
@@ -5329,9 +5334,12 @@ fn facts_bound_walk_for(snapshot: &Arc<TranscriptSnapshot>, need: FactsNeed) ->
|
|
|
5329
5334
|
events.push(OverrideEvent { text, tools });
|
|
5330
5335
|
}
|
|
5331
5336
|
NativeStore::audit_facts_bytes(&PreparedFacts {
|
|
5332
|
-
|
|
5333
|
-
|
|
5337
|
+
evidence: crate::snapshot_prepared::PreparedEvidence::Index {
|
|
5338
|
+
inputs,
|
|
5339
|
+
has_error: false,
|
|
5340
|
+
},
|
|
5334
5341
|
overrides: match need {
|
|
5342
|
+
FactsNeed::Skills => unreachable!("this oracle models Index and Full work"),
|
|
5335
5343
|
FactsNeed::Index => OverrideFacts::Unloaded,
|
|
5336
5344
|
FactsNeed::Full => OverrideFacts::Loaded(events),
|
|
5337
5345
|
},
|
|
@@ -6199,10 +6207,7 @@ fn root_slice_for_need(mut fixture: Fixture, need: FactsNeed, observer: bool) ->
|
|
|
6199
6207
|
fixture.request.insert("query", query);
|
|
6200
6208
|
}
|
|
6201
6209
|
assert_eq!(
|
|
6202
|
-
FactsNeed::of_query(
|
|
6203
|
-
&fixture.request["query"],
|
|
6204
|
-
fixture.request.get("observers").and_then(Value::as_array),
|
|
6205
|
-
),
|
|
6210
|
+
FactsNeed::of_query(&fixture.request["query"], fixture.request.get("observers"),),
|
|
6206
6211
|
need,
|
|
6207
6212
|
);
|
|
6208
6213
|
fixture
|
|
@@ -6211,10 +6216,7 @@ fn root_slice_for_need(mut fixture: Fixture, need: FactsNeed, observer: bool) ->
|
|
|
6211
6216
|
fn root_slice_prediction(fixture: &Fixture) -> usize {
|
|
6212
6217
|
facts_bound_walk_for(
|
|
6213
6218
|
&fixture.pins[0],
|
|
6214
|
-
FactsNeed::of_query(
|
|
6215
|
-
&fixture.request["query"],
|
|
6216
|
-
fixture.request.get("observers").and_then(Value::as_array),
|
|
6217
|
-
),
|
|
6219
|
+
FactsNeed::of_query(&fixture.request["query"], fixture.request.get("observers")),
|
|
6218
6220
|
)
|
|
6219
6221
|
}
|
|
6220
6222
|
|
|
@@ -6343,20 +6345,20 @@ fn patch_transcript(patch: &str, failed: bool) -> String {
|
|
|
6343
6345
|
}
|
|
6344
6346
|
|
|
6345
6347
|
fn assert_paths_twice(site: &str, facts: &PreparedFacts, paths: &[String]) {
|
|
6346
|
-
let listed: Vec<&str> = facts.
|
|
6348
|
+
let listed: Vec<&str> = facts.index_inputs()["calls"][0][1]
|
|
6347
6349
|
.as_array()
|
|
6348
6350
|
.unwrap()
|
|
6349
6351
|
.iter()
|
|
6350
6352
|
.map(|path| path.as_str().unwrap())
|
|
6351
6353
|
.collect();
|
|
6352
|
-
let edited: Vec<&str> = facts.
|
|
6354
|
+
let edited: Vec<&str> = facts.index_inputs()["edited_files"]
|
|
6353
6355
|
.as_array()
|
|
6354
6356
|
.unwrap()
|
|
6355
6357
|
.iter()
|
|
6356
6358
|
.map(|file| file["path"].as_str().unwrap())
|
|
6357
6359
|
.collect();
|
|
6358
6360
|
assert_eq!(
|
|
6359
|
-
facts.
|
|
6361
|
+
facts.index_inputs()["calls"][0][0].as_str(),
|
|
6360
6362
|
Some("apply_patch"),
|
|
6361
6363
|
"{site}"
|
|
6362
6364
|
);
|
|
@@ -6472,7 +6474,10 @@ fn patch_facts_outgrow_their_entry_bytes_but_never_their_bound() {
|
|
|
6472
6474
|
);
|
|
6473
6475
|
if failed {
|
|
6474
6476
|
assert!(
|
|
6475
|
-
full.
|
|
6477
|
+
full.index_inputs()["edited_files"]
|
|
6478
|
+
.as_array()
|
|
6479
|
+
.unwrap()
|
|
6480
|
+
.is_empty(),
|
|
6476
6481
|
"{site}: a failed patch reached the edited files"
|
|
6477
6482
|
);
|
|
6478
6483
|
assert!(walked < bound, "{site}: walked={walked} bound={bound}");
|
|
@@ -7157,7 +7162,7 @@ fn user_text_with_tool_results_is_built_at_exact_capacity() {
|
|
|
7157
7162
|
assert_eq!(
|
|
7158
7163
|
NativeStore::audit_facts_bytes(&facts),
|
|
7159
7164
|
arc_mirror::<PreparedFacts>()
|
|
7160
|
-
+ NativeStore::audit_value_bytes(&facts.
|
|
7165
|
+
+ NativeStore::audit_value_bytes(&facts.index_inputs())
|
|
7161
7166
|
+ events.capacity() * size_of::<OverrideEvent>()
|
|
7162
7167
|
+ text.len()
|
|
7163
7168
|
+ result.len()
|
|
@@ -13201,7 +13206,9 @@ fn predicate_queue_bound(fixture: &Fixture) -> (usize, usize) {
|
|
|
13201
13206
|
let encoded = {
|
|
13202
13207
|
let state = fixture.store.lock_state();
|
|
13203
13208
|
let graph = state.prepared_graphs[graph_id].lock().unwrap();
|
|
13204
|
-
sonic_rs::to_vec(&graph.root_facts.
|
|
13209
|
+
sonic_rs::to_vec(&graph.root_facts.index_inputs())
|
|
13210
|
+
.unwrap()
|
|
13211
|
+
.len()
|
|
13205
13212
|
};
|
|
13206
13213
|
let records = 2 * (4 * encoded) / crate::snapshot_codec::PREDICATE_INPUT_CHUNK_BYTES + 2;
|
|
13207
13214
|
let framing = r#"{"calls":[],"commands":[],"edited_files":[],"skills":[]}"#.len();
|