chore: harden send sandbox evidence package v2
This commit is contained in:
@@ -362,7 +362,7 @@ git push gitea main
|
||||
- `success_ack_or_sent_record_present=true`
|
||||
- `duplicate_second_send_attempted=false`
|
||||
|
||||
- [ ] **Step 1: Add v2 manifest assertions to package verifier**
|
||||
- [x] **Step 1: Add v2 manifest assertions to package verifier**
|
||||
|
||||
```powershell
|
||||
powershell -NoProfile -ExecutionPolicy Bypass -File scripts\verify-send-sandbox-gate-package.ps1
|
||||
@@ -370,11 +370,11 @@ powershell -NoProfile -ExecutionPolicy Bypass -File scripts\verify-send-sandbox-
|
||||
|
||||
Expected before implementation: FAIL because v2 required returned fields are not enforced.
|
||||
|
||||
- [ ] **Step 2: Add v2 checklist to package builder**
|
||||
- [x] **Step 2: Add v2 checklist to package builder**
|
||||
|
||||
Update package contents to include `RETURN-CHECKLIST-V2.md`, `SANDBOX-SEND-INPUTS.schema.json`, and a stricter `CREATE-RETURN-ZIP.ps1` that refuses to package if after-recorder output is missing.
|
||||
|
||||
- [ ] **Step 3: Add validator strict mode**
|
||||
- [x] **Step 3: Add validator strict mode**
|
||||
|
||||
Add parameter:
|
||||
|
||||
@@ -384,7 +384,7 @@ param([string]$ZipPath, [switch]$StrictV2)
|
||||
|
||||
`-StrictV2` exits non-zero if any required returned field is absent.
|
||||
|
||||
- [ ] **Step 4: Verify and commit**
|
||||
- [x] **Step 4: Verify and commit**
|
||||
|
||||
```powershell
|
||||
git diff --check
|
||||
@@ -400,6 +400,14 @@ git push gitea main
|
||||
|
||||
**Acceptance gate:** A generated package can no longer omit the R6d missing after-recorder/timestamp fields.
|
||||
|
||||
**R6j Result:**
|
||||
|
||||
- `scripts\verify-send-sandbox-gate-package.ps1` first failed against the old package because `RETURN-CHECKLIST-V2.md` was missing.
|
||||
- `scripts\package-send-sandbox-gate.ps1` now emits `RETURN-CHECKLIST-V2.md`, `SANDBOX-SEND-INPUTS.schema.json`, `CREATE-RETURN-ZIP.ps1`, and strict-v2 fields in `SANDBOX-SEND-INPUTS.template.json`.
|
||||
- `CREATE-RETURN-ZIP.ps1` refuses to build a return zip when after-recorder output, strict-v2 timestamps, success evidence, or no-duplicate confirmation are missing.
|
||||
- `scripts\validate-returned-send-sandbox-package.ps1` now supports `-ZipPath` and `-StrictV2`.
|
||||
- Existing partial package validation remains `partial_use_only`; strict-v2 validation exits non-zero for that partial package.
|
||||
|
||||
---
|
||||
|
||||
### R6k: Returned sandbox evidence intake v2
|
||||
|
||||
Reference in New Issue
Block a user