Release Audit fuses stories, promotions and test evidence into one compliance report with an optional AI executive summary. The reporting layer on top of the delivery plugins.
No manual evidence assembly required. Built for the Agentia Headless
Virtual Hackathon as an oclif plugin on top of the public agentia CLI.
- The Problem
- Features
- Installation
- Quick Start
- Live Demo Workflow
- Command Reference
- Configuration
- Troubleshooting
- How It Works
- Security
- Tech Stack
- Architecture
- Hackathon Fit
- License
After every release, compliance and business teams ask what shipped,
whether tests were green and who approved what. Developers rebuild that
evidence by hand from stories, test runs and chat threads, which takes
hours and still misses proof. There is no release object in the CLI to
query, so the evidence stays scattered.
- Story aggregation — lists stories scoped by project, filtered client side by release name or ID since stories carry both fields.
- Promotion evidence — lists promotions by project with statuses.
- Test evidence — latest build status per job through build search, with execution IDs.
- Governance rechecks — live policy gate status per story through Gov Guard when installed, degrading to unknown otherwise.
- Opt-in AI summary —
--ai-summaryasks the release agent for a stakeholder executive summary plus risks. Off by default, null safe. - Dual artifacts — markdown report plus JSON evidence, always both.
- Zero private imports — only shells out to public
agentiacommands.
- Node 18 or newer.
- Agentia CLI beta:
npm install -g @copado/agentia-cli@beta - Authenticated machine:
agentia setup(CICD at minimum).
git clone https://github.com/devkdas/agentia-release-audit.git
cd agentia-release-audit
npm install
npm run build
agentia plugins link .Re-run npm run build after every change to the TypeScript files.
agentia release audit --project a15xxxagentia release audit --project a15xxx --job 120561 --crt-project 76303agentia release audit --project a15xxx --job 120561 --crt-project 76303 --ai-summary --jsonVerified live against a real Source Format project:
1. agentia release audit --project a15xxx --job 120561 --crt-project 76303
-> 1 story (US-0000024), gov gate pass, markdown plus JSON written
2. JSON shows test evidence reading the latest green build 5875760
after a parser fix for the search response shape
3. Re-run with --ai-summary for the release agent executive summary
| Flag | Description |
|---|---|
-p, --project <id> |
Copado project ID scoping stories plus promotions |
-r, --release <name> |
Release name substring filtering stories |
-j, --job <id> |
CRT job ID for test evidence, repeatable |
--crt-project <id> |
CRT project ID used with job IDs |
--format md|json |
Report file format (default md, JSON always written) |
-o, --output-dir <dir> |
Report directory (default ./release-audit) |
--ai-summary |
Release agent executive summary, off by default |
--json |
Machine readable stdout summary |
Stories cap at 50 with a note when truncated; live gov gates run for
the first 10. At least one scope flag is typical: --project for the
story set, --release to filter it, --job for test evidence.
| Flag | Description |
|---|---|
-p, --project <id> |
Copado project ID scoping the sprint (required) |
-j, --job <id> |
CRT job ID for test evidence, repeatable |
--crt-project <id> |
CRT project ID used with job IDs |
-o, --output-dir <dir> |
Sprint files directory (default ./sprint-report) |
--ai-narrate |
Release agent manager narrative, off by default |
--json |
Machine readable stdout summary |
Sprint counts delivered versus open by status, tracks promotions plus green test jobs, and writes markdown plus JSON every run.
| Flag | Description |
|---|---|
-p, --project <id> |
Copado project ID scoping the export (required) |
-r, --release <name> |
Release name substring filtering stories |
-j, --job <id> |
CRT job ID for test evidence, repeatable |
--crt-project <id> |
CRT project ID used with job IDs |
--format html|md |
Export file format (default html, JSON always written) |
-o, --output-dir <dir> |
Export directory (default ./compliance-export) |
--json |
Machine readable stdout summary |
Exports a traceability matrix of story to data commits to tests to promotions to policy gate, as self contained HTML or markdown plus JSON. Evidence for review, never a certification.
| Flag | Description |
|---|---|
-p, --project <id> |
Copado project ID scoping metrics (required) |
-w, --weeks <n> |
Weeks of history analyzed (default 4, 1 to 26) |
--json |
Machine readable JSON output |
Computes deployment frequency per week, change failure rate and median lead time from promotion plus story history. Unparseable dates are excluded with notes, and lead time reports unmeasurable without story to promotion linkage instead of inventing it.
| Flag | Description |
|---|---|
--from <file> |
Older audit JSON file (required) |
--to <file> |
Newer audit JSON file (required) |
-o, --output-dir <dir> |
Comparison files directory |
--json |
Machine readable JSON output |
Diffs two audits across time or environments with added, removed and
status changed stories plus test regression detection. Exits nonzero
when regressions are found, for CI gate use. Both --from and --to
are required; the run is fully offline.
Output directory only. Gov rechecks degrade gracefully when the Gov Guard plugin is absent. Test evidence needs both job and CRT project IDs together.
| Problem | Likely cause | Fix |
|---|---|---|
| No stories matched | Wrong project or release filter | List stories first and copy the exact name |
| No test evidence | Job without CRT project | Add --crt-project alongside --job |
| Gov status unknown | Gov plugin not linked | Link Gov Guard or accept unknown |
| AI summary null | Agent unreachable | Raw evidence still stands, retry later |
| ESM auto-transpile warning | Linked ESM plugin notice | Benign, compiled output is used |
agentia release audit
-> cicd work list (stories, client filtered by release)
-> cicd promotion list --project-id (promotions)
-> testing build search per job (latest status)
-> gov check per story (live gates, best effort)
-> ai agent ask --agent release (opt-in summary)
-> AUDIT-<slug>-<date>.md plus .json
Read operations plus one optional AI call. No deployments, no writes to orgs, no tokens printed. Report files may reference IDs but never secrets.
| Layer | Technology |
|---|---|
| Language | TypeScript on Node 18+ |
| CLI Framework | oclif v4 (ESM, matching the host CLI) |
| Runtime calls | node:child_process to public agentia commands |
Release manager / Agent
|
agentia release audit --project [--job ...] [--ai-summary]
|
Release Audit (this plugin)
|- stories -> work list, release filtered
|- promotions -> promotion list by project
|- tests -> build search per job
|- governance -> gov check per story
|- narrative -> release agent (opt-in)
|
Markdown report + JSON evidence
Enables notifications, reporting and event driven proof with a compliance artifact judges can read. Combines stories, promotions, tests and gates in one flow nobody else aggregates, strengthening auditability exactly where enterprise releases hurt.
MIT License — see LICENSE for details.