Skip to content

feat: expose sandbox run evidence refs for workroom consumption, add teardown validation#283

Open
mdheller wants to merge 1 commit into
mainfrom
feat/sandbox-workroom-evidence-refs
Open

feat: expose sandbox run evidence refs for workroom consumption, add teardown validation#283
mdheller wants to merge 1 commit into
mainfrom
feat/sandbox-workroom-evidence-refs

Conversation

@mdheller

Copy link
Copy Markdown
Member

Summary

  • Extends validate_runtime_sandbox_run.py to validate runtime_teardown_complete status: parity=runtime_observed, non-empty evidenceRefs/receiptRefs, no failureCodes, teardownState=teardown_complete
  • Adds runtime-sandbox-run.teardown.valid.json: teardown_complete fixture with workroom-consumable receipt ref (receipt://devsecops-workroom/sandbox-evidence/...), demonstrating stable evidence:// + receipt:// refs for workroom consumption
  • Adds runtime-sandbox-run.teardown.missing-evidence.invalid.json: invalid teardown with empty evidence/receipt refs
  • Adds shared-receipt and teardown fixtures to VALID_FIXTURES; all 4 required states (requested, allocated, failed, teardown_complete) are now semantically validated
  • Wires validate-runtime-sandbox-run into make validate

Closes #256
Parent: SocioProphet/prophet-platform#519

Test plan

  • make validate-runtime-sandbox-run passes (5 valid + 2 invalid correct)
  • make validate passes (aggregate)
  • runtime-sandbox-run.teardown.missing-evidence.invalid.json is correctly rejected

…teardown validation (#256)

Adds runtime_teardown_complete validation to validate_runtime_sandbox_run.py:
parity must be runtime_observed, evidence and receipt refs are required,
failure codes must be empty, teardownState must be teardown_complete.

Adds runtime-sandbox-run.teardown.valid.json: valid teardown_complete fixture
with workroom receipt (receipt://devsecops-workroom/sandbox-evidence/...).

Adds runtime-sandbox-run.teardown.missing-evidence.invalid.json: invalid
teardown_complete with empty evidenceRefs and receiptRefs.

Adds shared-receipt fixture and teardown fixture to VALID_FIXTURES.
Validator now covers all 4 states: requested, allocated, failed, and
teardown_complete.

Wires validate-runtime-sandbox-run into make validate.

Closes #256
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Workroom v0.1: expose runtime sandbox receipts as stable evidence refs

1 participant