@metasession.co/devaudit-sdlc 1.7.5 → 1.8.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
|
@@ -45,7 +45,7 @@ If you are an AI agent reading this file, you are strictly prohibited from manua
|
|
|
45
45
|
| `compliance/evidence/REQ-XXX/ai-use-note.md` | Git | Small markdown, needs PR review |
|
|
46
46
|
| `compliance/evidence/REQ-XXX/ai-prompts.md` | Git | Small markdown, needs PR review |
|
|
47
47
|
| `compliance/evidence/REQ-XXX/security-summary.md` | Git | Small markdown, needs PR review |
|
|
48
|
-
| `compliance/pending-releases/RELEASE-TICKET-*.md` | Git | Reviewed and moved to approved-releases |
|
|
48
|
+
| `compliance/pending-releases/RELEASE-TICKET-*.md` | Git | Reviewed and moved to approved-releases (a deferred ticket stays in `pending-releases/`) |
|
|
49
49
|
| E2E results (JSON) | DevAudit | Large, bloats git history |
|
|
50
50
|
| Screenshots (PNG/JPG) | DevAudit | Binary, bloats git history |
|
|
51
51
|
| SAST results (JSON) | DevAudit | Large JSON, bloats git history |
|
|
@@ -519,6 +519,10 @@ Create `compliance/pending-releases/RELEASE-TICKET-REQ-XXX.md`:
|
|
|
519
519
|
**Risk Level:** [LOW / MEDIUM / HIGH]
|
|
520
520
|
**PR:** [Will be linked when PR is created]
|
|
521
521
|
|
|
522
|
+
<!-- OPTIONAL. Add this bullet ONLY when this release PR is closed without releasing and the REQ is deferred into the next release (omit it otherwise; absent = no declared intent):
|
|
523
|
+
- **Release intent:** deferred-to-next — <reason, PR #N closed unmerged>
|
|
524
|
+
(indented here so a copied template never matches the guards.) The absorbing release must then list this REQ under "Absorbed predecessor releases". This ticket field is the sole declaration of deferral; the portal never writes it back. The RTM row becomes `DEFERRED` (non-terminal). A portal admin may additionally defer the portal release manually (see Stage 4). -->
|
|
525
|
+
|
|
522
526
|
---
|
|
523
527
|
|
|
524
528
|
## Summary
|
|
@@ -790,7 +794,7 @@ The script:
|
|
|
790
794
|
2. Checks a `RELEASE-TICKET-*.md` exists in `compliance/pending-releases/`.
|
|
791
795
|
3. Checks CI gates are green on the current develop HEAD (via `gh run list`).
|
|
792
796
|
4. Resolves the release id from DevAudit using `DEVAUDIT_API_KEY` (existing).
|
|
793
|
-
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`.
|
|
797
|
+
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).
|
|
794
798
|
6. Idempotent — if the release is already in `uat_review` (or later), exits 0 with a note rather than failing.
|
|
795
799
|
|
|
796
800
|
Required environment variables for the scripted path:
|
|
@@ -877,6 +881,7 @@ Copy these from `sdlc/files/ci/` into your project's `.github/workflows/`:
|
|
|
877
881
|
|
|
878
882
|
**`check-release-approval.yml`** (renamed from `check-uat-approval.yml` in sdlc-v1.22.0) — Release Approval Gate on PRs to main:
|
|
879
883
|
- Blocks merge until the release is approved in DevAudit (`uat_approved` / `release_approved` / downstream statuses)
|
|
884
|
+
- Fails with a specific message when the portal status is `deferred` (a deferred release is not approved; an admin must resume it, which returns it to `draft`)
|
|
880
885
|
- Add as a required status check on the `main` branch protection rule
|
|
881
886
|
|
|
882
887
|
**`post-deploy-prod.yml`** — Production evidence capture after merge to main:
|
|
@@ -889,7 +894,7 @@ The source of truth for compliance documents remains in git. DevAudit holds read
|
|
|
889
894
|
## Output
|
|
890
895
|
|
|
891
896
|
- RTM: `TESTED - PENDING SIGN-OFF`
|
|
892
|
-
- Release ticket in `compliance/pending-releases/`
|
|
897
|
+
- Release ticket in `compliance/pending-releases/` (carries `**Release intent:** deferred-to-next — …` only if the REQ is later deferred)
|
|
893
898
|
- Test + security + AI evidence uploaded to DevAudit (or in `compliance/evidence/REQ-XXX/` if git-based)
|
|
894
899
|
- Compliance documents (test scope, AI notes, security summary) committed to git and pushed
|
|
895
900
|
- Test scope fully addressed
|
|
@@ -30,7 +30,7 @@ If you are an AI agent reading this file, you are strictly prohibited from manua
|
|
|
30
30
|
- CI on `develop` is green
|
|
31
31
|
- UAT-environment verification has passed (only if Stage 3 Step 10 applied — opt-in by risk class)
|
|
32
32
|
- Evidence is compiled, committed, and uploaded
|
|
33
|
-
- **Release is approved in DevAudit** (status: `uat_approved` — backend enum kept as-is in v1.22.x for backwards-compat; renamed to `release_approved` in v1.23.0)
|
|
33
|
+
- **Release is approved in DevAudit** (status: `uat_approved` — backend enum kept as-is in v1.22.x for backwards-compat; renamed to `release_approved` in v1.23.0). A release that a portal admin has deferred (`deferred`) is not approved and fails the gate until it is resumed (back to `draft`)
|
|
34
34
|
|
|
35
35
|
The PR is the **merge request**, not the development workspace. Develop on `develop`, iterate until ready, then create the PR as the final step before merge.
|
|
36
36
|
|
|
@@ -69,7 +69,7 @@ Before creating a PR, verify all prerequisites are met. **Do NOT skip this check
|
|
|
69
69
|
- [ ] CI is not stale (ran against the latest commit): compare CI commit SHA with `git rev-parse develop`
|
|
70
70
|
- [ ] Working tree is clean: `git status`
|
|
71
71
|
- [ ] UAT-environment verification passed (only if Stage 3 Step 10 applied to this requirement)
|
|
72
|
-
- [ ] Release approved in DevAudit (Stage 3 Step 11)
|
|
72
|
+
- [ ] Release approved in DevAudit (Stage 3 Step 11), and not `deferred`
|
|
73
73
|
|
|
74
74
|
**For tracked requirements (REQ-XXX):**
|
|
75
75
|
- [ ] `compliance/evidence/REQ-XXX/test-scope.md` exists and all items addressed
|
|
@@ -77,6 +77,7 @@ Before creating a PR, verify all prerequisites are met. **Do NOT skip this check
|
|
|
77
77
|
- [ ] `compliance/evidence/REQ-XXX/ai-prompts.md` exists (if AI was used on MEDIUM/HIGH risk)
|
|
78
78
|
- [ ] RTM status is `TESTED - PENDING SIGN-OFF`: `grep 'REQ-XXX' compliance/RTM.md`
|
|
79
79
|
- [ ] Release ticket exists: `ls compliance/pending-releases/RELEASE-TICKET-REQ-XXX.md`
|
|
80
|
+
- [ ] 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
|
|
80
81
|
- [ ] Evidence uploaded to DevAudit (or saved locally if git-based)
|
|
81
82
|
|
|
82
83
|
**Risk-tier reminder:**
|
|
@@ -168,7 +168,7 @@ consumer repository. `close-out-release.yml` then opens a
|
|
|
168
168
|
`chore/close-out-REQ-XXX` PR to the configured integration branch. That PR is
|
|
169
169
|
the canonical reconciliation record: it updates the RTM, moves the release
|
|
170
170
|
ticket to `approved-releases/`, and moves manifest-listed absorbed predecessors
|
|
171
|
-
to `superseded-releases/`.
|
|
171
|
+
to `superseded-releases/`. A deferred predecessor that this release absorbs (listed under `Absorbed predecessor releases`) is superseded here, the same way; one that was not absorbed stays pending and, if a portal admin deferred it, remains `deferred` (reversible) until resumed or superseded. Deferring or resuming a portal release is a manual admin action with a PAT or portal session, never part of this flow.
|
|
172
172
|
|
|
173
173
|
Review and merge the close-out PR after its required checks are terminal green
|
|
174
174
|
on its current head SHA. It is an administrative reconciliation PR, not a new
|