@metasession.co/devaudit-sdlc 1.9.0 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -795,32 +795,9 @@ This is the **four-eyes release approval gate**. It has two transitions:
|
|
|
795
795
|
|
|
796
796
|
#### Step 11a — Submit for UAT review
|
|
797
797
|
|
|
798
|
-
|
|
798
|
+
Open the release in DevAudit and click **Submit for UAT Review** (a portal action under your own login). URL shape: `https://[DEVAUDIT_BASE_URL]/projects/[PROJECT_SLUG]/releases/[releaseId]` — posted as a comment on the develop branch by CI (look at the latest run of `Release Approval Gate` or `Compliance Evidence Upload`).
|
|
799
799
|
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
**Scripted.** Run the bundled script (synced from META-COMPLY into every consuming project under `scripts/`):
|
|
803
|
-
|
|
804
|
-
```bash
|
|
805
|
-
./scripts/submit-for-uat-review.sh [PROJECT_SLUG] v2026.MM.DD
|
|
806
|
-
```
|
|
807
|
-
|
|
808
|
-
The script:
|
|
809
|
-
|
|
810
|
-
1. Checks the working tree is clean and develop is up-to-date with origin.
|
|
811
|
-
2. Checks a `RELEASE-TICKET-*.md` exists in `compliance/pending-releases/`.
|
|
812
|
-
3. Checks CI gates are green on the current develop HEAD (via `gh run list`).
|
|
813
|
-
4. Resolves the release id from DevAudit using `DEVAUDIT_API_KEY` (existing).
|
|
814
|
-
5. Submits with `DEVAUDIT_USER_TOKEN` (Personal Access Token issued from `/settings/tokens` in DevAudit). The submission carries the issuing user's identity, so `isOwnRelease` keeps holding for Step 11b under `dual_actor`. The same PAT is also the credential for an admin's manual portal defer/resume of a release (admin-only; never `DEVAUDIT_API_KEY`, the viewer key or CI).
|
|
815
|
-
6. Idempotent — if the release is already in `uat_review` (or later), exits 0 with a note rather than failing.
|
|
816
|
-
|
|
817
|
-
Required environment variables for the scripted path:
|
|
818
|
-
|
|
819
|
-
| Var | What it is | Where to set |
|
|
820
|
-
| --- | --- | --- |
|
|
821
|
-
| `DEVAUDIT_USER_TOKEN` | Personal Access Token (`mctok_…`) attributed to the running user | Issue at `/settings/tokens`; export locally or cache via `devaudit auth login` — **never a repo secret** (devaudit-installer#912: this script runs locally, never from CI, so there's nothing for a repo secret to serve here) |
|
|
822
|
-
| `DEVAUDIT_API_KEY` | Project-scoped API key (existing) | Already set for evidence uploads |
|
|
823
|
-
| `DEVAUDIT_BASE_URL` | DevAudit URL | Resolved by CI templates; locally read from `sdlc-config.json devaudit.base_url` |
|
|
800
|
+
Before clicking, run `devaudit release check`. It is read-only (viewer key, never the PAT) and confirms: the working tree is clean, develop is up to date with origin, CI is green on the develop HEAD, a `RELEASE-TICKET-*.md` exists in `compliance/pending-releases/`, and the portal release is `draft` (a release already in `uat_review` or later is reported as already submitted). It prints each result with the fix and exits non-zero until all pass. The former `submit-for-uat-review.sh` helper was retired (devaudit-installer#1099) because it needed the CI-only uploader key.
|
|
824
801
|
|
|
825
802
|
#### Step 11b — Approve
|
|
826
803
|
|
|
@@ -167,15 +167,8 @@ Goal: every test result + report + screenshot lands on the portal under REQ-XXX
|
|
|
167
167
|
├── 2026-MM-DD_unit-coverage/ # vitest coverage HTML
|
|
168
168
|
└── 2026-MM-DD_screenshots/*.png # failing/edge-case shots if applicable
|
|
169
169
|
```
|
|
170
|
-
3. **
|
|
171
|
-
|
|
172
|
-
devaudit push <project-slug> REQ-XXX e2e_result compliance/evidence/REQ-XXX/2026-MM-DD_e2e-results.json \
|
|
173
|
-
--release "v$(date +%Y.%m.%d)" --create-release-if-missing \
|
|
174
|
-
--environment uat --category testing \
|
|
175
|
-
--git-sha "$(git rev-parse HEAD)" --branch "$(git rev-parse --abbrev-ref HEAD)"
|
|
176
|
-
```
|
|
177
|
-
Repeat per evidence type (`screenshot`, `test_report`, `audit_log`, `compliance_document`, `manual_upload`).
|
|
178
|
-
4. **Verify uploads** at `https://devaudit.ai/projects/<slug>/requirements/REQ-XXX`. Every entry should render.
|
|
170
|
+
3. **Evidence reaches the portal through CI.** Commit the artefacts under `compliance/evidence/REQ-XXX/`; when the compliance commit reaches the integration branch, the `Compliance Evidence Upload` workflow uploads them (evidence types include `e2e_result`, `screenshot`, `test_report`, `audit_log`, `compliance_document`, `manual_upload`). Nothing is uploaded from a local session: the uploader key is CI-only.
|
|
171
|
+
4. **Verify uploads** once that run is green: `devaudit release status` (or the release page at `https://devaudit.ai/projects/<slug>/requirements/REQ-XXX`). Every entry should render.
|
|
179
172
|
5. **Update `compliance/RTM.md`** with the portal links for each evidence row.
|
|
180
173
|
|
|
181
174
|
CI also uploads evidence automatically on `develop` push (via the `ci.yml.template` workflow synced from DevAudit-Installer). Manual stage 3 uploads from your laptop are a belt-and-braces complement, mostly useful when you want to attach evidence the automated workflow doesn't produce (manual sign-off PDFs, threat models, etc.).
|
|
@@ -280,15 +273,9 @@ Compile evidence for REQ-{REQ_ID} per SDLC stage 3 (compile-evidence):
|
|
|
280
273
|
- npx vitest run --coverage
|
|
281
274
|
2. Organise artefacts under compliance/evidence/REQ-{REQ_ID}/ with the date-prefixed
|
|
282
275
|
naming convention (YYYY-MM-DD_<artefact>).
|
|
283
|
-
3.
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
--release "v$(date +%Y.%m.%d)" --create-release-if-missing \
|
|
287
|
-
--environment uat --category testing \
|
|
288
|
-
--git-sha "$(git rev-parse HEAD)" \
|
|
289
|
-
--branch "$(git rev-parse --abbrev-ref HEAD)"
|
|
290
|
-
|
|
291
|
-
evidence-type is one of: screenshot, e2e_result, test_report, audit_log,
|
|
276
|
+
3. Commit the artefacts. They reach the portal through CI (the Compliance Evidence
|
|
277
|
+
Upload workflow runs on the compliance commit); do not upload from the session.
|
|
278
|
+
Evidence types CI uploads: screenshot, e2e_result, test_report, audit_log,
|
|
292
279
|
compliance_document, manual_upload.
|
|
293
280
|
4. Verify uploads landed at
|
|
294
281
|
https://devaudit.ai/projects/{PROJECT_SLUG}/requirements/REQ-{REQ_ID}
|
|
@@ -414,8 +401,7 @@ The sample prompts in this doc are a stopgap that lets us run the SDLC manually
|
|
|
414
401
|
|
|
415
402
|
| Symptom | Likely cause | Fix |
|
|
416
403
|
| ---------------------------------------------------- | ------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
417
|
-
|
|
|
418
|
-
| `devaudit push` returns 403 | Project key missing or wrong | Verify `DEVAUDIT_API_KEY` is set; re-issue from the portal `/settings/api-keys` if rotated |
|
|
404
|
+
| CI upload step returns 401 / 403 | Project key missing, wrong or rotated in the repo secret | An admin re-issues the key in the portal and sets it with `devaudit configure secret DEVAUDIT_API_KEY`; never export it locally |
|
|
419
405
|
| `gh pr checks` shows `DevAudit Release Approval` red | UAT review not granted or release not registered | Visit `https://devaudit.ai/projects/<slug>/releases/<version>` → request approval; if release missing, `ci.yml` registers it on `develop` push |
|
|
420
406
|
| Production smoke flaky on the same test repeatedly | Test flake, not a real defect | File the flake as a separate issue tagged `flaky-test`; do NOT mark the release failed |
|
|
421
407
|
| Forgot to add `Ref: REQ-XXX` to commits | RTM traceability gap | Amend the commit (if local) or add a follow-up commit with the trailer; CI's compliance-validation workflow will flag it on PR |
|