open-delivery-spec/Open Delivery Spec

AI code quality gate — detect AI code, analyze quality, score tech debt, enforce policy

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jul 7, 2026
License
Apache 2.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: open-delivery-spec/validate-action@6d33d66f6077400ae163b4759f32b823f895e12c # v0.2.2

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
diff-baseGit ref to diff against (e.g., origin/main, HEAD~3)noorigin/main
pr-bodyPR description body text (auto-detected from event if omitted)no
pr-body-filePath to file containing PR description bodyno
branchBranch name (auto-detected from git if omitted)no
commitsMaximum number of commits to scan for AI markersno10
policyPath to OPA Rego policy fileno.ods/policy.rego
sarifPath to a SARIF v2.1.0 file from an external analyzer (Semgrep, CodeQL, golangci-lint, ESLint, ...) to merge into the analysis, score, and policy gate. These findings are authoritative and multi-language; ODS built-in heuristics are only hints.no""
semgrepRun Semgrep automatically and merge its findings (zero-setup multi-language analysis). Ignored when `sarif` is set — bring-your-own SARIF wins.nofalse
semgrep-configSemgrep ruleset used when `semgrep: true`. Defaults to the curated `auto` registry config; can be a registry ID (e.g. p/ci) or a local rules file.noauto
ai-reviewNewline- or comma-separated paths to AI reviewer verdict files (review-verdict/v1 JSON) to feed into the policy gate as input.ai_reviews. Advisory by default: a request_changes verdict routes extra human review, it never denies unless your policy opts in. Requires a CLI with `ods check --ai-review` (v0.7.1+; the pinned default satisfies this); older CLIs skip the input with a warning.no""
reportAppend an AI attribution digest (AI vs human commit/line share over a window) to the job summary, PR comment, and artifact. Needs full git history (checkout with fetch-depth: 0).nofalse
report-sinceHistory window for the attribution digest (any git --since expression).no90 days ago
summaryAppend Markdown report to the GitHub Actions job summarynotrue
commentCreate or update an ODS report comment on pull requestsnotrue
review-routingAct on the policy's review_tier verdict: label the PR (ods:review/auto|standard|elevated) and, for elevated, request the reviewers listed in elevated-reviewers. Requires a policy that defines review_tier and a CLI version that reports it. Routing is advisory and never fails the run.nofalse
elevated-reviewersComma-separated GitHub usernames to request as reviewers when the review tier is "elevated" (used only with review-routing: true).no""
artifactUpload the generated ODS report directory as a workflow artifactnotrue
output-dirDirectory where ODS report files are writtennoods-report
artifact-nameWorkflow artifact name for the generated ODS reportnoods-report
artifact-retention-daysNumber of days to retain the uploaded ODS report artifactno30
github-tokenGitHub token used for PR commentsno${{ github.token }}
cli-refODS CLI version, tag, or commit to install. Defaults to a pinned stable release for reproducible runs; set to `main` to track the latest.nov0.7.2
namedescription
resultpass | warn | block
ai-detectedWhether AI code was detected
ai-confidenceAI detection confidence (0.0–1.0)
tech-debt-deltaTechnical debt delta score
policy-allowedWhether the OPA policy allowed the change
review-tierPolicy review-routing verdict: auto | standard | elevated