@metasession.co/devaudit-sdlc 1.10.0 → 1.12.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
|
@@ -162,7 +162,7 @@ Run the E2E checks required by the approved test plan. Before running the full l
|
|
|
162
162
|
|
|
163
163
|
- Required services/databases are running locally
|
|
164
164
|
- Required secrets/env vars point to disposable local or test resources
|
|
165
|
-
- Test data and authenticated fixtures are seeded
|
|
165
|
+
- Test data and authenticated fixtures are seeded (checkable: `e2e_preflight_command` exits non-zero when a fixture is absent; `devaudit doctor` reports the `test-data` findings)
|
|
166
166
|
- Playwright browsers and project dependencies are installed
|
|
167
167
|
|
|
168
168
|
If those prerequisites are confirmed, run:
|
|
@@ -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
|
|
|
@@ -841,7 +818,7 @@ Project's `sdlc-config.json` `approval.mode` setting:
|
|
|
841
818
|
|
|
842
819
|
- `dual_actor` (recommended) — DevAudit enforces `approver_user_id ≠ release_creator_user_id`. If you're the release creator, you cannot approve your own release; delegate to another authorised reviewer.
|
|
843
820
|
- `solo_with_gap` — DevAudit allows self-approval. This is a documented control gap; the gap must be recorded in `compliance/risk-register.md` with explicit acknowledgement of which compliance clauses it diverges from (SOC2 CC8.1, ISO 29119 §5.4).
|
|
844
|
-
- `auto_low_risk`
|
|
821
|
+
- There is no automatic approval: an `auto_low_risk` mode is not implemented, so DevAudit does not offer it. Every release is approved by a person, whatever its risk.
|
|
845
822
|
|
|
846
823
|
The `Release Approval Gate` workflow on Stage 4's PR enforces this — it polls DevAudit's API for `release.status` and fails the PR if approval isn't recorded. Wait for the next CI run on develop to confirm the gate sees the approval before proceeding to Stage 4.
|
|
847
824
|
|
|
@@ -159,7 +159,7 @@ If the smoke results look wrong or a manual verification fails, click **Reject**
|
|
|
159
159
|
|
|
160
160
|
#### Approver mode (same as Stage 3 Step 11)
|
|
161
161
|
|
|
162
|
-
`approval.mode` is checked again here. `dual_actor` means the post-deploy approver must differ from the release creator. `solo_with_gap` accepts self-approval but records the control gap.
|
|
162
|
+
`approval.mode` is checked again here. `dual_actor` means the post-deploy approver must differ from the release creator. `solo_with_gap` accepts self-approval but records the control gap. Nothing advances a release automatically: an `auto_low_risk` mode is not implemented.
|
|
163
163
|
|
|
164
164
|
### Step 6: Automated Close-out (Tracked Requirements Only)
|
|
165
165
|
|
|
@@ -14,7 +14,7 @@ End-to-end walkthrough for taking a GitHub issue from triage to merged-and-deplo
|
|
|
14
14
|
|
|
15
15
|
> This document is **synced into your repo from DevAudit-Installer** via `devaudit update`. Do not edit this file in place — your edits will be overwritten on the next sync. To propose a change, open a Task issue against [`metasession-dev/DevAudit-Installer`](https://github.com/metasession-dev/DevAudit-Installer) referencing `sdlc/files/_common/implementing-an-sdlc-issue.md`.
|
|
16
16
|
>
|
|
17
|
-
> For the broader DevAudit positioning (three-pillar story, standards coverage, the portal itself), see the
|
|
17
|
+
> For the broader DevAudit positioning (three-pillar story, standards coverage, the portal itself), see the DevAudit portal documentation at [devaudit.ai](https://devaudit.ai/).
|
|
18
18
|
|
|
19
19
|
## What you need before you start
|
|
20
20
|
|
|
@@ -85,7 +85,7 @@ It runs Phase 5: merge, monitor post-deploy, confirm production smoke evidence,
|
|
|
85
85
|
- **Cross-issue refactors** spanning multiple `REQ-XXX` scopes → out of the one-issue contract; the skill refuses and asks you to split.
|
|
86
86
|
- **When the orchestration can't apply** (unusual repo state, partial work mid-stream) → fall back to the manual walkthrough below.
|
|
87
87
|
|
|
88
|
-
The manual walkthrough below is the **operational reference** for exactly what the skill does at each stage — and the fallback when the skill isn't the right fit. (For an audience-level walkthrough with sample AI prompts, see the portal's
|
|
88
|
+
The manual walkthrough below is the **operational reference** for exactly what the skill does at each stage — and the fallback when the skill isn't the right fit. (For an audience-level walkthrough with sample AI prompts, see the portal's implementing-an-sdlc-issue document.)
|
|
89
89
|
|
|
90
90
|
---
|
|
91
91
|
|
|
@@ -118,7 +118,7 @@ Steps (the [`sdlc-implementer`](#skills-inventory) skill runs this phase automat
|
|
|
118
118
|
For HIGH/CRITICAL risk, the plan must explicitly include:
|
|
119
119
|
|
|
120
120
|
- **Threat model** — what attackers/abusers could do; what's mitigated; what's accepted
|
|
121
|
-
- **Four-eyes attestation slot** — names the second reviewer who'll sign off pre-merge
|
|
121
|
+
- **Four-eyes attestation slot** — names the second reviewer who'll sign off pre-merge (under `approval.mode: dual_actor`; under `solo_with_gap` the release ticket's solo sign-off section is required instead)
|
|
122
122
|
- **Rollback plan** — what reverts the change if production smoke fails
|
|
123
123
|
|
|
124
124
|
Sample prompt for an AI agent kicking off stage 1: see [`Sample prompts → Stage 1`](#sample-prompts).
|
|
@@ -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 |
|