@metasession.co/devaudit-sdlc 1.12.1 → 1.14.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metasession.co/devaudit-sdlc",
3
- "version": "1.12.1",
3
+ "version": "1.14.0",
4
4
  "description": "DevAudit SDLC CLI Engine — cross-agent terminal-driven SDLC orchestrator.",
5
5
  "bin": {
6
6
  "devaudit-sdlc": "./src/bin/devaudit-sdlc.cjs"
@@ -442,6 +442,16 @@ EOF
442
442
 
443
443
  For Low risk, the `Co-Authored-By` commit tag is sufficient.
444
444
 
445
+ ### Step 10b: Review the SDLC Configuration
446
+
447
+ Before implementation starts, look at what the configuration will do for this change, so nothing about when activities happen is a surprise:
448
+
449
+ ```bash
450
+ bash scripts/show-sdlc-config.sh <LOW|MEDIUM|HIGH|CRITICAL>
451
+ ```
452
+
453
+ It prints, from `sdlc-config.json`, who approves, what blocks the release PR, what runs after deploy and on a schedule, whether the UAT-environment check and the human UAT pack apply to this change and who runs the pack (`uat.mode`), where it deploys and which standards are evidenced. Change a setting with `devaudit configure set <key> <value>` (add `--dry-run` to preview). Nothing you change here alters the portal's own gates; `approval.mode` is the one key `configure` also writes to the portal's approval policy, with a project-admin credential.
454
+
445
455
  ### Step 11: Commit
446
456
 
447
457
  ```bash
@@ -174,6 +174,10 @@ If prerequisites are missing, do **not** start the full local suite. Run the tar
174
174
 
175
175
  **Do NOT proceed** until the scoped E2E/test-plan checks are complete and any local limitations are called out.
176
176
 
177
+ ### Step 4a: UI-Change Regression Sweep (DevAudit-Installer#1199)
178
+
179
+ If the change touches UI-facing files, a gate tier (`smoke`, `critical`) runs only part of `e2e/`, so a changed label, selector or flow can break a spec in another tier and ship stale. For every user-visible label or text, `data-testid`, accessible role name or route the diff changes or removes, `grep -rn "<old value>" e2e/` over ALL of `e2e/`, and update or retire each affected spec. Run the `regression` Playwright project once in the same isolated stack before the release PR. Record the strings searched, the hits and the regression result under `## UI regression sweep` in `test-execution-summary.md` (or `not applicable (no UI-facing files changed)`).
180
+
177
181
  ### Step 4b: Reconcile Test Plan (devaudit-installer#241)
178
182
 
179
183
  After writing/updating tests (both unit and E2E), verify that `test-plan.md` file paths still match reality. The test plan was authored during Stage 1 with predicted file paths — during implementation, tests are often added to existing files instead of creating new ones. This natural drift must be reconciled before committing so `validate-compliance-artifacts.sh` doesn't fail at PR time.
@@ -198,12 +198,18 @@ Prefer the first-class release-journey / execution API when the portal exposes i
198
198
 
199
199
  ```bash
200
200
  # Example:
201
- curl -s -H "Authorization: Bearer ${DEVAUDIT_API_KEY}" \
201
+ curl -sf -H "Authorization: Bearer ${DEVAUDIT_API_KEY}" \
202
202
  "${DEVAUDIT_BASE_URL%/}/api/projects/<slug>/releases/REQ-XXX/journey" \
203
- > /tmp/release-journey.json
204
- bash scripts/render-test-executions.sh /tmp/release-journey.json
203
+ > /tmp/release-journey.json \
204
+ && bash scripts/render-test-executions.sh /tmp/release-journey.json
205
+
206
+ # or, with your viewer key, the CLI's own read (DevAudit-Installer#1199):
207
+ devaudit release status REQ-XXX --json > /tmp/release-status.json \
208
+ && bash scripts/render-test-executions.sh /tmp/release-status.json
205
209
  ```
206
210
 
211
+ If the read fails, stop and report it instead of rendering: a table rendered from a failed read says "No first-class test execution records", which is not true (DevAudit-Installer#1214).
212
+
207
213
  The helper renders a first-class table when `.testExecutions[]` is present, preceded by a `<!-- generated-by: render-test-executions.sh ... -->` marker. It must not infer executions from legacy artifact grouping. **Paste the helper's output as-is - never type rows by hand.** It lists every CI execution per attempt (run id and attempt), so a failed attempt 1 that a passing attempt 2 superseded stays visible. A summary carrying a `CI as of:` stamp without the marker fails validation (devaudit-installer#1016); record local runs with their real counts (`3 failed`), never plain `passed` when failures occurred.
208
214
 
209
215
  | Source Release | SDLC Stage | Execution | Kind | Outcome | Workflow / Run | Related Evidence | Incident / Remediation | Date |
@@ -542,6 +548,10 @@ Create `compliance/pending-releases/RELEASE-TICKET-REQ-XXX.md`:
542
548
 
543
549
  ---
544
550
 
551
+ ## UAT pack
552
+
553
+ When the UAT pack applies (`uat.human_pack`; default: MEDIUM or higher): briefing `compliance/evidence/REQ-XXX/uat-briefing.md`, procedure `compliance/evidence/REQ-XXX/uat-test-procedure.md`, record `compliance/evidence/REQ-XXX/uat-execution-record.md`. Write "Not required (LOW risk)" otherwise.
554
+
545
555
  ## Summary
546
556
  [1-3 sentences]
547
557
 
@@ -645,6 +655,16 @@ Required when `compliance/pending-releases/BUNDLED-CHANGES-REQ-XXX.md` exists or
645
655
  | [date] | Submitted for review | [who] | PR #[number] |
646
656
  ```
647
657
 
658
+ ### Step 8b: Collect the Stage 3 Operator Sign-offs (DevAudit-Installer#1200)
659
+
660
+ `srs-alignment.md`, `architecture-decision.md`, `risk-assessment.md` and `e2e-scope-decision.md` each end in an `## Operator sign-off` block (unticked `- [ ]` boxes, `**Reviewer:**`, `**Date:**`). They attest to the finished evidence, so the plan approval does not cover them. Check what is pending:
661
+
662
+ ```bash
663
+ bash scripts/check-operator-signoffs.sh REQ-XXX
664
+ ```
665
+
666
+ The operator reviews each file, ticks the boxes that apply, marks a conditional box that does not apply `- [~]`, and fills Reviewer (their name) and Date (YYYY-MM-DD). With `sdlc-implementer` this is one reply in the session: `approved`, `updated and approved`, or a list of changes. An agent records the reviewer from the operator's reply, never as itself. Collect them before the compliance commit (Step 9), so the evidence CI uploads is already signed (DevAudit-Installer#1212). The check must exit 0 before Stage 4; `Compliance Validation` fails the release PR while any block is pending.
667
+
648
668
  ### Step 9: Commit Compliance Docs and Push
649
669
 
650
670
  Commit compliance documents and push immediately. Heavy CI gates (E2E, TypeScript, build) skip markdown-only pushes via `paths-ignore`, so this push is cheap — but the Compliance Evidence Upload workflow fires and pushes the new artefacts to DevAudit. Pushing immediately means destination breakage (dead alias URL, revoked API key, schema drift) surfaces in seconds, not at the end of the stage.
@@ -711,6 +731,10 @@ gh run watch --workflow "Compliance Evidence Upload"
711
731
 
712
732
  If it fails — typically a stale `devaudit.base_url`, a revoked `DEVAUDIT_API_KEY`, or schema drift — fix the configuration and re-push. Resolving this here is fast and recoverable; the same failure caught at the end of the stage would mean a long detour through UAT verification before discovering the upload never happened.
713
733
 
734
+ ### Step 9b: Human UAT Pack (DevAudit-Installer#1198)
735
+
736
+ When `uat.human_pack` in `sdlc-config.json` (`risk`, the default: MEDIUM risk and above; `always`; `never`) requires it, write the pack a UAT tester needs, under `compliance/evidence/REQ-XXX/`: `uat-briefing.md` (context for someone who does not know the system), `uat-test-procedure.md` (numbered steps, each with AC, precondition, exact action, exact expected result, evidence file name; a positive and a negative step per AC; ACs a human cannot test listed with a reason) and `uat-execution-record.md` (the tester's log, defect log and sign-off). The templates are in the `sdlc-implementer` skill's `references/`. `validate-compliance-artifacts.sh` fails the release PR while the briefing or procedure is missing, still has `REPLACE` markers, or leaves an AC unaccounted for; it warns when the RTM has no Risk value for the REQ. `devaudit doctor` (`stage3-evidence`) reports a missing pack earlier. The tester completes the record during UAT and it is committed before the merge. With `uat.mode: auto` (default `manual`) the agent instead executes the procedure on the UAT environment after the build is deployed, fills the record and stores per-step evidence under `compliance/evidence/REQ-XXX/uat/`, and a named human who is independent of the author reviews it and signs; the record's front matter (`execution_mode`, `executed_by`, `tested_sha`) says which kind of run it is, and the validator checks it. Operator actions (changing a setting, loading data) are never performed by the agent; they are preconditions in the record.
737
+
714
738
  ### Step 10: UAT-Environment Verification (CONDITIONAL)
715
739
 
716
740
  **Skip this step entirely if any of these are true:**
@@ -75,6 +75,8 @@ Before creating a PR, verify all prerequisites are met. **Do NOT skip this check
75
75
  - [ ] `compliance/evidence/REQ-XXX/test-scope.md` exists and all items addressed
76
76
  - [ ] `compliance/evidence/REQ-XXX/implementation-plan.md` exists (MEDIUM/HIGH risk)
77
77
  - [ ] `compliance/evidence/REQ-XXX/ai-prompts.md` exists (if AI was used on MEDIUM/HIGH risk)
78
+ - [ ] Stage 3 operator sign-offs are complete: `bash scripts/check-operator-signoffs.sh REQ-XXX` exits 0
79
+ - [ ] (MEDIUM+ or when the UAT pack applies) the completed `compliance/evidence/REQ-XXX/uat-execution-record.md` (the tester's, or the agent's with a human reviewer's sign-off when `uat.mode` is `auto`; its front matter says which) has landed on `develop` and uploaded before UAT approval is given
78
80
  - [ ] RTM status is `TESTED - PENDING SIGN-OFF`: `grep 'REQ-XXX' compliance/RTM.md`
79
81
  - [ ] Release ticket exists: `ls compliance/pending-releases/RELEASE-TICKET-REQ-XXX.md`
80
82
  - [ ] Any REQ deferred earlier (ticket `**Release intent:** deferred-to-next`) is listed under `Absorbed predecessor releases` in this release's ticket; the develop-to-main promotion gate (`check-deferred-reqs-in-range.sh`, inside the Release Scope Integrity job) fails the PR otherwise
@@ -137,7 +139,7 @@ gh pr create --base main --head develop --title "type: description" --body "$(ca
137
139
  ## UAT Verification
138
140
  - UAT Health check: PASS
139
141
  - UAT Smoke test: PASS
140
- - UAT Feature verification: PASS — [what was verified]
142
+ - UAT Feature verification: PASS — [what was verified] (when the UAT pack applies, per uat.human_pack: link the executed `compliance/evidence/REQ-XXX/uat-execution-record.md` instead)
141
143
  - UAT URL: [UAT_URL]
142
144
 
143
145
  ## CI Results (Independent Verification)
@@ -245,7 +247,7 @@ gh pr create --base main --head develop --title "type: description" --body "$(ca
245
247
  ## UAT Verification
246
248
  - UAT Health check: PASS
247
249
  - UAT Smoke test: PASS
248
- - UAT Feature verification: PASS — [what was verified]
250
+ - UAT Feature verification: PASS — [what was verified] (when the UAT pack applies, per uat.human_pack: link the executed `compliance/evidence/REQ-XXX/uat-execution-record.md` instead)
249
251
 
250
252
  ## CI Verification
251
253
  - [ ] TypeScript (CI)
@@ -65,6 +65,16 @@ curl -s [PRODUCTION_URL]/[HEALTH_ENDPOINT]
65
65
 
66
66
  If it fails, check hosting platform logs. See deployment reference doc for troubleshooting.
67
67
 
68
+ ### Step 3b: Failed Test Executions Block "Mark as Released" (DevAudit-Installer#1199)
69
+
70
+ The post-deploy regression run is evidence, not a deploy gate, but the portal refuses "Mark as Released" while any failed execution of the release has no documented resolution. Before asking anyone to approve Production, check:
71
+
72
+ ```bash
73
+ devaudit release status REQ-XXX --json | jq '[.executions[] | select((.outcome == "failed" or .outcome == "timed_out") and ((.resolution_type // "") == ""))] | length'
74
+ ```
75
+
76
+ A non-zero count needs one resolution per execution (`retry_passed`, `superseded`, `accepted_exception` or `incident_remediated`), recorded by a project admin on the release page (journey panel). The post-deploy run tests the deployed SHA, so a spec fix merged to `develop` afterwards cannot give a `retry_passed` for it. With `sdlc-implementer` this hand-off is a fixed message: executions, git steps, portal step and order (`references/phase5-triage-handoff.md.template`, `references/phase5-triage-decision-table.md`).
77
+
68
78
  ### Step 3a: Run Post-Deploy Actions (if any)
69
79
 
70
80
  Check the release ticket's **Post-Deploy Actions** section. If actions are listed:
@@ -69,7 +69,7 @@ The [`sdlc-implementer`](#skills-inventory) skill is the **default way to implem
69
69
 
70
70
  It **triages first** (Phase 0): it reads the issue + labels, classifies the change-type against the [change-workflows](https://github.com/metasession-dev/DevAudit-Installer/blob/main/docs/change-workflows.md) taxonomy, announces a **Workflow Decision** (which path, which gates, which approvals, what's skipped), and routes — only a tracked change continues into the full execution; housekeeping / trivial / doc-only is announced and handed off to its lighter path. So pointing the skill at an issue no longer defaults to maximum ceremony — it decides the path at pickup.
71
71
 
72
- For a tracked change it then runs Phases 1–4 unattended (with a plan-approval pause for HIGH/CRITICAL risk, or always-on via `--require-plan-approval`): classify risk, assign the next `REQ-XXX`, write the implementation plan, update `RTM.md`, implement, delegate all end-to-end / visual test work to [`e2e-test-engineer`](#skills-inventory), run the gates, compile evidence, open the PR, and submit for UAT review on the portal. It then **halts** at the UAT gate. After a reviewer approves on the portal:
72
+ For a tracked change it then runs Phases 1–4 unattended (with a plan-approval pause for HIGH/CRITICAL risk, or always-on via `--require-plan-approval`; at that point it prints the SDLC configuration so you see when each activity will happen, and `--confirm-config` makes that a pause for every risk class): classify risk, assign the next `REQ-XXX`, write the implementation plan, update `RTM.md`, implement, delegate all end-to-end / visual test work to [`e2e-test-engineer`](#skills-inventory), run the gates, compile evidence, open the PR, and submit for UAT review on the portal. It then **halts** at the UAT gate. After a reviewer approves on the portal:
73
73
 
74
74
  ```text
75
75
  > Resume REQ-XXX.