Skip to content

Latest commit

 

History

History
87 lines (63 loc) · 4.02 KB

File metadata and controls

87 lines (63 loc) · 4.02 KB

Trust Core Tonight - Release Checklist

Use this checklist before releasing the trust-core milestone.

1) Local validation

  • npm ci
  • npm test
  • npx --no-install tsx ./src/cli.ts trust . --base origin/master --markdown
  • npx --no-install tsx ./src/cli.ts trust . --base origin/master --json-output drift-trust.json
  • npx --no-install tsx ./src/cli.ts trust-gate drift-trust.json --min-trust 45 --max-risk HIGH
  • npx --no-install tsx ./src/cli.ts review --base origin/master --comment

2) CI workflow validation

  • Open or update a non-fork PR and confirm .github/workflows/review-pr.yml runs successfully.
  • Confirm sticky PR comment is updated once (marker: <!-- drift-review -->).
  • Confirm PR comment includes both sections in this order: drift trust then drift review.
  • E2E: trust-gate runs from generated drift-trust.json in review-pr workflow.
  • E2E: kpi aggregates over generated trust JSON artifact (drift-trust-kpi.json).
  • E2E: drift-trust-json-pr-<PR_NUMBER>-run-<RUN_ATTEMPT> artifact now bundles:
    • drift-trust.json
    • drift-trust-gate.txt
    • drift-trust-kpi.json
  • Confirm step summary shows trust KPI values: trust score, merge risk, new issues, resolved issues.
  • E2E: step summary includes aggregate KPI block (matched/parsed/malformed, PR samples, avg trust, high-risk ratio).

Smoke PR runbook:

  • Create a short-lived branch (for example chore/trust-ci-smoke) with a docs-only change.
  • Open a PR against master and wait for review-pr workflow to complete.
  • Verify gate behavior and comment rendering, then close or merge the PR.
  • Delete the short-lived branch after validation.

3) Gate behavior acceptance

Default trust gate for this milestone:

  • --min-trust 45
  • --max-risk HIGH

Checks:

  • PR fails when trust score is below 45.
  • PR fails when merge risk is CRITICAL.
  • PR passes when trust score is 45+ and merge risk is LOW, MEDIUM, or HIGH.

Calibration evidence from docs-only smoke runs: trust score 49 (PR #11), 46 (PR #12), 41 (PR #13). Gate floor set to 45 to reduce false positives while still blocking weak trust outcomes and CRITICAL risk.

4) Narrative and docs acceptance

  • README.md positions drift as an AI Code Audit CLI for merge trust in AI-assisted PRs.
  • package.json description matches the same positioning.
  • src/cli.ts program description matches the same positioning.
  • ROADMAP.md no longer contradicts PRD on core vs premium direction.

5) SARIF and action v2 readiness

  • scan --format sarif emits valid SARIF payload with drift rule mapping.
  • ci --format sarif emits SARIF without requiring GitHub annotation mode.
  • diff --format sarif emits SARIF from DriftDiff output.
  • review --format sarif emits SARIF from review diff context.
  • trust --format sarif emits SARIF based on current trust scan report.
  • CI workflow uploads SARIF artifact in PR runs.
  • Action v2 contracts are aligned with SARIF-capable commands and outputs.

6) Trust artifacts and KPI readiness

  • Trust command supports split outputs (--json-output + selected stdout format).
  • Artifact bundle includes trust JSON, gate result, and trust KPI aggregate.
  • drift kpi parses trust artifacts and prints JSON plus optional summary.
  • Trust gate policy behavior documented and calibrated for current milestone.

7) Quick smoke runbook (no build)

Run from repository root:

  • node --import tsx ./src/cli.ts scan . --format sarif > .tmp/smoke-scan.sarif
  • node --import tsx ./src/cli.ts ci . --format sarif > .tmp/smoke-ci.sarif
  • node --import tsx ./src/cli.ts trust . --format sarif > .tmp/smoke-trust.sarif
  • node --import tsx ./src/cli.ts review --base HEAD~1 --format sarif > .tmp/smoke-review.sarif

Validation hints:

  • Check each command exits with code 0.
  • Check each .sarif file starts with {"$schema" and contains "runs".
  • Keep smoke artifacts out of release commit unless explicitly needed.