Skip to content

[codex] Add CoveQL CLI acceleration workflow#50

Merged
thomasaiwilcox merged 3 commits into
mainfrom
codex/cove-performance-acceleration-cli
Jun 5, 2026
Merged

[codex] Add CoveQL CLI acceleration workflow#50
thomasaiwilcox merged 3 commits into
mainfrom
codex/cove-performance-acceleration-cli

Conversation

@thomasaiwilcox

Copy link
Copy Markdown
Owner

Summary

  • Add the beginner-facing cove CLI crate with inspect, query, optimize, output formatting, graph/table options, external table mounting, and performance reporting.
  • Add CoveQL beginner discovery/query helpers and acceleration bundle APIs for sidecar discovery, optimization planning, sidecar generation, and execution option wiring.
  • Make cove query safe-auto by default with explicit performance controls, strict mode, compare mode, sidecar discovery, and COVE-E sidecar plumbing.
  • Add quickstart docs, README examples, and checked-in CoveQL sample artifacts.

Notes

  • cove optimize writes sidecars and a .covperf.json manifest without modifying the source artifact.
  • The implementation only generates acceleration metadata where existing COVE authorities can prove it. Coverage/cache/zero-copy/graph sidecars are reported as skipped/not-applicable unless authoritative inputs exist.
  • Materialized CoveQL remains the semantic authority; optimized paths stay proof-gated and report fallback behavior.

Validation

  • cargo fmt --all --check
  • git diff --check
  • cargo test -p cove-cli --all-features
  • cargo test -p coveql --all-features
  • targeted cove-index, cove-coverage, cove-layout, cove-cache, cove-map, and cove-datafusion tests
  • cargo test --workspace --all-features
  • cargo bench -p coveql --all-features --bench table_reads --no-run

@thomasaiwilcox thomasaiwilcox marked this pull request as ready for review June 5, 2026 23:18
Copilot AI review requested due to automatic review settings June 5, 2026 23:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a beginner-facing cove CLI (new cove-cli crate) and extends the coveql crate with acceleration bundle discovery/generation plus expanded table/graph capabilities (relational methods, windows, graph algorithms) and richer explain/logical-plan reporting. It also adds checked-in CoveQL sample artifacts and a Quickstart to make the new CLI and query surfaces easy to discover.

Changes:

  • Add cove-cli with inspect, query, and optimize commands, including external table mounting, output formatting, and safe-auto sidecar usage.
  • Add coveql acceleration bundle APIs (plan/generate/discover/apply) and wire COVE-E sidecar inputs into physical proof validation.
  • Expand CoveQL contracts/planning/explain coverage for relational methods, windows, and graph algorithms; add tests and docs/samples.

Reviewed changes

Copilot reviewed 26 out of 30 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
v2/examples/coveql/README.md Adds a small README describing the beginner CoveQL samples and example commands.
v2/examples/coveql/people.jsonl Adds a tiny JSONL source dataset for the checked-in samples.
v2/docs/coveql-quickstart.md Adds an end-to-end quickstart for cove inspect/query/optimize, formats, external tables, and sidecars.
v2/crates/coveql/tests/operation_context.rs Adds conformance tests for new table/graph/query-builder behavior and contracts.
v2/crates/coveql/src/physical_sidecars.rs Extends physical sidecar inputs to include optional COVE-E bytes.
v2/crates/coveql/src/physical_proofs.rs Allows execution-code metadata validation to use a supplied COVE-E sidecar.
v2/crates/coveql/src/materialized.rs Adds internal window-function keying helpers and window value accessors.
v2/crates/coveql/src/logical_plan.rs Extends logical plan nodes to surface relational/window/graph-algorithm stages.
v2/crates/coveql/src/lib.rs Re-exports acceleration/beginner APIs and expands profile contracts/method lists.
v2/crates/coveql/src/expr_eval.rs Evaluates window-related functions via materialized window values.
v2/crates/coveql/src/explain.rs Expands explain JSON with additional table/graph contract details.
v2/crates/coveql/src/dependencies.rs Tracks dependencies introduced by CTEs and graph algorithms.
v2/crates/coveql/src/datafusion.rs Tightens “simple scan” detection and residual reporting for new method-chain features.
v2/crates/coveql/src/builder.rs Extends the query builder with relational methods, windows, and graph algorithms.
v2/crates/coveql/src/ast.rs Extends resolve options and resolved structures for authorities, joins, windows, algorithms, and bridges.
v2/crates/coveql/src/acceleration.rs Implements acceleration bundle planning, sidecar generation, discovery, and application.
v2/crates/cove-cli/tests/smoke.rs Adds CLI smoke tests covering inspect/query/optimize, formats, joins/windows, and sidecar behavior.
v2/crates/cove-cli/src/main.rs Adds the cove binary entrypoint.
v2/crates/cove-cli/src/lib.rs Implements CLI argument parsing and command execution for inspect/query/optimize.
v2/crates/cove-cli/examples/generate_beginner_samples.rs Adds a generator example for the checked-in beginner sample artifacts.
v2/crates/cove-cli/Cargo.toml Introduces the new cove-cli package and its dependencies.
v2/Cargo.toml Adds cove-cli to the v2 workspace members.
v2/Cargo.lock Locks dependencies for the new crate.
README.md Documents the new CLI crate, quickstart, and sample artifacts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 793 to 797
Ok(_) => vec![default_execution_code_domain(
planned,
false,
Some("no embedded COVE-E execution-code metadata found".into()),
Some(format!("no {source} execution-code metadata found")),
)],
Comment on lines +14 to +17
pub(crate) fn window_function_key(name: &str, args: &[ResolvedExpr]) -> String {
let args = serde_json::to_string(args).unwrap_or_else(|_| "[]".into());
format!("{INTERNAL_PROJECTION_FIELD_PREFIX}window:{name}:{args}")
}
Comment thread v2/crates/coveql/src/explain.rs Outdated
"authority_kind": table.table_surface_contract.authority_kind,
"authority_fingerprint": table.table_surface_contract.authority_fingerprint,
"schema_fingerprint": table.table_surface_contract.schema_fingerprint,
"execution_authority": table.execution_authority,
Comment on lines +881 to +887
self.methods.push(format!(
"withRecursive(name: {}, seed: {}, step: {}, key: {}, maxIterations: {max_iterations})",
coveql_identifier(name.as_ref()),
coveql_table_binding(seed_table, seed_alias),
coveql_table_binding(step_table, step_alias),
key.as_ref()
));
@thomasaiwilcox thomasaiwilcox merged commit c906119 into main Jun 5, 2026
13 checks passed
@thomasaiwilcox thomasaiwilcox deleted the codex/cove-performance-acceleration-cli branch June 5, 2026 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants