Skip to content

test(compliance): guard destructive T4 lifecycles - #163

Draft
joshrotenberg wants to merge 1 commit into
mainfrom
codex/test-t4-destructive-lifecycle
Draft

test(compliance): guard destructive T4 lifecycles#163
joshrotenberg wants to merge 1 commit into
mainfrom
codex/test-t4-destructive-lifecycle

Conversation

@joshrotenberg

Copy link
Copy Markdown
Contributor

Summary

Claim issue #147 and implement the deliberately deferred T4 destructive/mutating compliance pass behind explicit, reviewable safety and cost controls.

Closes #147.

Planned work

  • Require --ignored, live credentials, pinned resource IDs, and REDIS_CLOUD_ALLOW_DESTRUCTIVE=1; normal and scheduled safe CI must remain unable to enter T4.
  • Use unique reserved test names and preflight ownership checks so cleanup cannot target unrelated resources.
  • Dry-run billable creates first and require an explicit reviewed cost ceiling before provisioning.
  • Implement create → verify → delete lifecycles with unconditional teardown and task polling for supported subscription/database resources.
  • Cover destructive database actions and feasible connectivity/Active-Active writes only where dedicated fixtures make the target unambiguous.
  • Keep cloud-account lifecycle coverage gated on dedicated disposable provider credentials rather than reusing an arbitrary account integration.
  • Fold stable results into the compliance baseline and document skips where the required disposable infrastructure is not configured.
  • Validate request safety with mocks before any live destructive execution.

Safety boundary

No live resource creation or deletion is authorized by opening this draft. The currently active Pro test database/subscription shutdown is tracked separately and requires explicit confirmation that permanent deletion with no recovery is intended.

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.

test(compliance): implement the deferred T4 destructive/mutating write pass

1 participant