Skip to main content

Analytics Release Gate

Help analytics engineers catch supported repository and Power BI project defects before release.

Business question: Which detectable defects should block this analytics release, and which findings require human review?

Status: v0.1 alpha. Scope: static repository checks. External impact: not yet measured.

Source and reference documentation · Published package

Reproduce the audit

pip install analytics-release-gate==0.1.0
argate audit .
argate audit . --format json --output release-gate.json

Run from the repository under review. Retain its commit, tool version, configuration and exit status alongside the report. These commands audit the current directory; their results depend on its contents.

See the result

Capture Composition Caption
docs/images/release-blocked.png Actual terminal run against a controlled defective fixture; visible rule ID and exit status “Synthetic fixture; intentionally blocked release; tool version …”
docs/images/release-review.png Same fixture after a documented repair; retain outstanding warnings “Supported checks passed; manual review remains required.”
docs/images/audit-report.png Real JSON output with sensitive paths redacted “Machine-readable findings from commit …”
flowchart LR
    A[Repository and configuration] --> B[Static checks]
    B --> C[Findings with rule IDs]
    C --> D[Console / JSON]
    C --> E[Exit status]
    D --> F[Maintainer review]
    E --> G[CI release decision]

Architectural decisions log

The following records summarize documented v0.1 boundaries retrospectively; they do not claim a new implementation or historical ADR approval.

Decision Chosen approach Alternative not adopted Cost accepted Revisit trigger
Build execution Do not execute arbitrary repository build commands Execute builds directly during every audit Generated-output drift remains a manual check A sandboxed, resource-bounded build contract exists
Semantic validation Conservative, documented DAX heuristics Claim complete semantic validation from static text checks False positives and undetected business errors remain possible Labeled fixtures demonstrate an improved validator's precision and coverage
Exceptions Explicit rule-ID exclusions Silent auto-suppression Exclusions can remove useful coverage and require review External evaluations show a need for owner, reason and expiry metadata

What would prove value?

Evaluate release candidates against an independently adjudicated defect set. Report actionable precision, false-negative rate, review time, tool failures and escaped defects over a fixed observation window. Measure the cost of investigating false alarms. No reduction in defects or release time is claimed here.

Boundaries

A successful audit does not verify source truth, business definitions, Power BI Desktop runtime behavior or complete credential safety.

Engineering evidence

Architecture and defensive programming · External evaluation protocol · Reusable README template

Current rules

Rule Purpose Default result
REP001 README exists FAIL if missing
REP002 License exists WARNING if missing
REP003 Tests detected WARNING if missing
REP004 GitHub Actions workflow detected WARNING if missing
PBI001 PBIP manifest parses FAIL on invalid manifest
PBI002 PBIR JSON parses FAIL on invalid JSON
PBI003 TMDL semantic model present for PBIP FAIL if missing
PBI004 No machine-specific absolute paths FAIL on match
DAX001 Suspicious hard-coded comparator heuristic WARNING
DAX002 TMDL measure descriptions WARNING
SEC001 High-confidence credential patterns FAIL
SEC002 User home paths in tracked text WARNING
DOC001 Local Markdown links resolve WARNING
BLD001 Build/config entry point exists WARNING
BLD002 Generated-output drift MANUAL in v0.1

See docs/rules.md for semantics, limitations and examples.

Configuration

Rules can be excluded in pyproject.toml:

[tool.analytics-release-gate]
exclude = ["DAX002"]

Rule suppression is explicit by ID so exceptions remain reviewable. See docs/configuration.md.

Exit codes

Code Meaning
0 Audit completed with no FAIL findings
1 One or more release-blocking FAIL findings
2 Invalid path or configuration/input error
3 Internal tool failure

What this tool does not do

Analytics Release Gate does not:

  • prove that a business metric is factually correct;
  • replace source/provenance review;
  • execute arbitrary repository build commands in v0.1;
  • claim that a PBIP project opens successfully in Power BI Desktop;
  • replace secret-management or full static-analysis products.

These boundaries are deliberate. A green gate means the supported checks passed, not that the analytics product is universally correct.

Development

python -m venv .venv
# activate the environment
pip install -e ".[dev]"
pytest
ruff check .
mypy src

See CONTRIBUTING.md for the contributor workflow.

Roadmap

  • v0.1: core CLI and first release rules
  • v0.2: deeper DAX and semantic-model validation
  • v0.3: configurable severity and richer suppression metadata
  • v0.4: GitHub Actions annotations and Markdown reporting improvements
  • v0.5: SARIF output
  • v0.6: deterministic-build framework
  • v0.7: plugin architecture
  • v0.8+: governance rules informed by external users

License

MIT. See LICENSE.

Metadata

Release files for analytics-release-gate 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for analytics-release-gate 0.1.1
File Size Uploaded Provenance Actions
analytics_release_gate-0.1.1.tar.gz 18.0 kB With provenance Details for analytics_release_gate-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for analytics-release-gate 0.1.1
File Interpreter ABI Platform Actions
analytics_release_gate-0.1.1-py3-none-any.whl Python 3 none any Details for analytics_release_gate-0.1.1-py3-none-any.whl

Total release size: 41.0 kB

Release files / analytics_release_gate-0.1.1.tar.gz

Download URL analytics_release_gate-0.1.1.tar.gz
Size 18.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8151f272fc209d31a615450e06b619e8d8b24304900517ad5e1ef8e3b78afdd1
BLAKE2b-256 checksum
How to use checksums
ff2aa63998248a08f15d68a21495536c1b79501cb5c8950bc632d0cb371d3748
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / analytics_release_gate-0.1.1-py3-none-any.whl

Download URL analytics_release_gate-0.1.1-py3-none-any.whl
Size 23.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8ef43dffa113ed3ca243f69e400f5c179f66f390a29e52ab64ad93b6e873f832
BLAKE2b-256 checksum
How to use checksums
f1b2612a2640451e01962eb8a9347081adf7be238363954d39b4c4d7757911f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Security for analytics-release-gate 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for analytics_release_gate-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page