Index of every page on this site: llms.txt
All skills
nodal-data avatar

/verify-result

@030c867
Run it yourself

Review analytics SQL and results against an approved plan for metric, filter, grain, join, and time fidelity, then assess plausibility and escalation needs. Use after analytics execution or when asked to audit a query/result. Do not use to define metrics or modify data.

Use this Skill: https://skilld.dev/gh/nodal-data/nodal-context/verify-result

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈71 tokens for metadata: the name and description. ≈1.5k when used: this file. ≈684 more on demand in 1 file.

Description uses 3.6% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈286 characters, or 3.6%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Approval contract: new and changed context stays on a named working branch and has no authored approval status. Human-reviewed protected merge grants definition approval; consult the live authority through the runtime for the exact revision and freshness. Missing/expired authority evidence prevents governance certification; it does not by itself prohibit an explicitly approved, unverified read-only analysis. Known revoked definitions or materially stale dependencies still require resolution. Explicit branch-test mode is proposed context only. Query/notebook result verification is separate from definition approval; retain source and review evidence. See the context-interview SPEC approval-through-merge contract.

Verify Result

Review an analytical result the way a careful analytics reviewer examines a code change: first determine whether the query implemented the approved intent, then determine whether the observed result is plausible. A successful query is not by itself a verified answer.

Inputs

Use the approved analytical plan, executed SQL, result or result metadata, and the context evidence used by the plan. Ask for a missing artifact only when it cannot be recovered from the current conversation or workspace. If no approved plan exists, reconstruct the apparent plan from the SQL, label plan fidelity unavailable, and return at most WARN.

For an explicitly authorized unverified analysis, assess plan fidelity and result checks normally. Preserve the accepted governance limitation and return at most WARN while authority evidence is unavailable; do not refuse review solely for that reason or turn query success into definition approval. Known revocations, material defects and an explicit strict organizational policy remain blockers.

Hard boundaries

  • Never modify SQL, context, warehouse data, dashboards, or configuration.
  • A review describes the required correction; it does not deliver a complete replacement SQL/Python implementation, even in a next-step section. Cite the relevant predicate or operation inline and hand implementation back to the analyst or analytics-plan for the approved rerun.
  • Any diagnostic warehouse query must be read-only, bounded, and necessary to evaluate a named risk. Use only an already-authorized connection.
  • Do not treat query history or typical ranges as ground truth. They support a plausibility finding, not a semantic definition.
  • Missing evidence stays unknown; it is never converted into a pass. Do not infer data completeness from how long ago a period ended, or declare null handling safe without evidence about the metric. Unobserved schema risks are questions to resolve, not findings that those columns or defects exist.

Review

  1. Plan fidelity. Compare the approved interpretation and IR against the SQL: metric expression, source tables, joins and cardinality, mandatory filters, exclusions, grain, dimensions, time boundaries/timezone, comparison, ordering, limits, and expected output shape. Use the same expanded ACF definitions and canonical metric/method IR as the plan. Check inherited/grouped filters, entity-filter stages, allowed dimensions, zero-denominator policy, and effective status/open decisions. For a method, check selected metric branches, parameter defaults, decision IDs, declared overrides and stock/flow alignment against the actual SQL/Python implementation.
  2. Query risks. Check fanout, deduplication, slowly changing dimensions, many-to-many joins, null behavior, divide-by-zero handling, signed values, mixed grains, non-additive metrics, and filters applied after aggregation.
  3. Execution evidence. Record success/failure, row count, returned columns, null/duplicate symptoms, and whether the result shape matches the plan. For methods, verify required disclosures, output grain/keys/columns and each qualitative check against actual results. A generated implementation or a model's assertion cannot establish execution or a result relationship. Missing execution/check evidence requires WARN, even if proposed SQL looks correct.
  4. Plausibility. When evidence exists, compare with a confirmed seed, trusted dashboard capture, bounded prior result, or historical range. Preserve the source and snapshot/filter state. Do not invent a range. A reviewed independent notebook comparison is also eligible evidence. Compare the same inputs, as-of date and bindings; compare keyed row sets, reject duplicate keys, preserve nulls and use only pre-agreed numeric tolerances. Equal totals cannot excuse wrong cohort membership, output grain or missing disclosures. Stale method/source/dependency revisions invalidate the prior comparison.
  5. Confidence and escalation. Apply references/review-rubric.md. Post-query confidence may downgrade plan confidence; overall confidence is the lower of the two. A trusted snapshot match supports verification but does not erase an unresolved semantic conflict.

Output

Lead with one outcome:

  • PASS: implementation is faithful, required checks have supporting evidence, and no material anomaly was found.
  • WARN: no proven defect, but evidence is incomplete or a plausible risk remains.
  • FAIL: SQL departs materially from the plan, execution failed, or trusted verification evidence contradicts the result.

Then list findings by severity with the exact plan clause, SQL construct, and impact. Include post-query confidence, overall confidence, evidence checked and unavailable, and a concrete escalation recommendation. Avoid generic advice such as “double-check the query.”

State plan fidelity explicitly as faithful, unfaithful, or unavailable. With no approved plan, use Plan fidelity: unavailable; an apparent plan inferred from SQL does not fill that gap or authorize upgrading the result to a pass.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    The skill is designed for auditing SQL queries and analytical results against an approved plan. It operates with strict read-only constraints and compares inputs against approved plans. While it processes external SQL data—a standard ingestion point for this type of task—it includes explicit hard boundaries to prevent data modification or unauthorized configuration changes.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 030c867. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 weeks ago.

Activeupdated 3 weeks ago

README badge

README badge for nodal-data/nodal-context/verify-result