AGENT SKILL

validations-and-results

Create and run GX ValidationDefinitions, pass batch and suite parameters, choose result formats, interpret validation results, and retrieve unexpected rows.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
validations-and-results
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Create and run GX ValidationDefinitions, pass batch and suite parameters, choose result formats, interpret validation results, and retrieve unexpected rows.
disable-model-invocation
true

02 资源文件 5

03 SKILL.md 正文

Validations and Results

Use this sub-skill when a task needs to execute Great Expectations validations and interpret their outputs. It assumes the agent already has a GX context, a data asset or batch definition, and an expectation suite.

Route by task

  • Read Validation definition workflows to create, save, retrieve, and run gx.ValidationDefinition objects, pass batch_parameters and expectation_parameters, or use the batch.validate() shortcut.
  • Read Result formats and outputs before selecting ResultFormat.BOOLEAN_ONLY, BASIC, SUMMARY, COMPLETE, or a result-format dict, and when interpreting success, statistics, results, meta, and exception_info.
  • Read Unexpected rows when a task asks for all failing rows, unexpected_rows, unexpected_index_query, caps, or backend-specific limitations.
  • Read Troubleshooting to diagnose stale validation definitions, missing batch parameter keys, unresolved suite parameters, overlarge results, hidden exceptions, or result-format confusion.
  • Run scripts/run_validation_smoke.py to verify the installed GX Python API with a tiny local dataframe validation that prints success and statistics.

Prerequisite routes

  • For contexts, stores, Cloud/file/ephemeral mode, and project configuration, read ../contexts-and-configuration/SKILL.md.
  • For datasource, data asset, batch definition, and batch-parameter setup, read ../datasources-and-assets/SKILL.md.
  • For expectation and suite authoring details, row conditions, custom expectations, and $PARAMETER usage inside expectations, read ../expectations-and-suites/SKILL.md.
  • For checkpoint orchestration, actions, notifications, and Data Docs updates, read ../checkpoints-actions-and-data-docs/SKILL.md.

Core public APIs

  • Import GX as import great_expectations as gx.
  • Construct validations with gx.ValidationDefinition(name=..., data=batch_definition, suite=expectation_suite).
  • Persist and retrieve validations through context.validation_definitions.add(...), add_or_update(...), get(name), all(), and delete(name).
  • Execute validations with validation_definition.run(batch_parameters=..., expectation_parameters=..., result_format=..., run_id=...).
  • Validate one expectation directly against an already materialized batch with batch.validate(expectation, result_format=..., expectation_parameters=...).
  • Use gx.ResultFormat enum values or equivalent strings/dicts for result verbosity.

Guardrails

  • Do not use checkpoints for simple validation execution unless the task needs actions, notifications, or Data Docs.
  • Do not assume every backend supports every diagnostic output; unexpected row retrieval and index-query output vary across Pandas, SQL, and other execution engines.
  • Avoid COMPLETE and include_unexpected_rows on large batches unless the user explicitly needs row-level diagnostics and accepts the performance and memory cost.
  • Keep validation code free of credentials and external services unless routed through the context/datasource sub-skills.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351