Use this checklist before releasing the trust-core milestone.
-
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
- Open or update a non-fork PR and confirm
.github/workflows/review-pr.ymlruns successfully. - Confirm sticky PR comment is updated once (marker:
<!-- drift-review -->). - Confirm PR comment includes both sections in this order:
drift trustthendrift review. - E2E:
trust-gateruns from generateddrift-trust.jsoninreview-prworkflow. - E2E:
kpiaggregates over generated trust JSON artifact (drift-trust-kpi.json). - E2E:
drift-trust-json-pr-<PR_NUMBER>-run-<RUN_ATTEMPT>artifact now bundles:drift-trust.jsondrift-trust-gate.txtdrift-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
masterand wait forreview-prworkflow to complete. - Verify gate behavior and comment rendering, then close or merge the PR.
- Delete the short-lived branch after validation.
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, orHIGH.
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.
-
README.mdpositions drift as an AI Code Audit CLI for merge trust in AI-assisted PRs. -
package.jsondescription matches the same positioning. -
src/cli.tsprogram description matches the same positioning. -
ROADMAP.mdno longer contradicts PRD on core vs premium direction.
-
scan --format sarifemits valid SARIF payload with drift rule mapping. -
ci --format sarifemits SARIF without requiring GitHub annotation mode. -
diff --format sarifemits SARIF fromDriftDiffoutput. -
review --format sarifemits SARIF from review diff context. -
trust --format sarifemits 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.
- Trust command supports split outputs (
--json-output+ selected stdout format). - Artifact bundle includes trust JSON, gate result, and trust KPI aggregate.
-
drift kpiparses trust artifacts and prints JSON plus optional summary. - Trust gate policy behavior documented and calibrated for current milestone.
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
.sariffile starts with{"$schema"and contains"runs". - Keep smoke artifacts out of release commit unless explicitly needed.