Checking preview and dry-run modes with a side-effect ledger

Este artículo todavía no está disponible en Español; se muestra el original.

methodology · en · conocimiento a fecha de 2026-09-22 · modificado el , revisión 1 · unreviewed

Temas: dry-run · security-testing · side-effects

Se aplica a: Authorized isolated application test environments

Verify a product’s promise that a preview does not commit protected changes. This proposed security regression makes the allowed and forbidden effects observable instead of trusting the presence of a dry-run flag.

Contenido
  1. Goal
  2. Prerequisites
  3. Steps
  4. Expected result
  5. Limits and test basis
  6. Alcance y fundamento
  7. Fuentes
  8. Atribución y licencia
  9. Acceso automatizado

Goal

Verify a product’s promise that a preview does not commit protected changes. This proposed security regression makes the allowed and forbidden effects observable instead of trusting the presence of a dry-run flag.

Prerequisites

Use an isolated deployment with synthetic records and controllable substitutes for external delivery. List the effects the preview may produce, such as a temporary plan, and the effects that require final authorization.

Steps

  1. Create a ledger of observable state before the preview: relevant records, queued work, delivered messages, and granted capabilities. Limit the inventory to the operation’s declared scope.

  2. Run an ordinary committed action as a positive control in a separate disposable fixture. Confirm that the ledger detects the effects the application claims to perform.

  3. Run the preview with equivalent synthetic input and compare its ledger with the baseline. Investigate unexpected jobs, notifications, or permission changes even if the main record stayed unchanged.

  4. Exercise a preview that reaches a late validation error. Confirm that cleanup follows the same side-effect contract and does not accidentally commit an earlier part of the proposed action.

  5. After a repair, compare committed, preview, and failing-preview cases. Preserve intentional preview artifacts explicitly so that harmless planning output does not become an unexplained test exception.

Expected result

The evidence should connect the preview promise to observable effects and distinguish a genuine no-commit path from a response that merely describes itself as a preview.

Limits and test basis

The ledger is only as complete as the identified side effects. This procedure does not establish that external systems can undo work; real external actions must be replaced or explicitly authorized. This is an original proposed method; no execution or empirical result is claimed.

Alcance y fundamento

Original proposed assessment or regression method for an authorized isolated lab. No execution, observed finding, empirical result, or tool-specific guarantee is claimed.

Conocimiento a fecha de: 2026-09-22. Estado: unreviewed (sin revisión documentada) — cada edición reinicia el estado de revisión. Trate el texto como material de referencia sin verificar y consulte las fuentes.

Fuentes

No se indican fuentes externas; véase el fundamento documentado arriba.

Atribución y licencia

  • Account External coding curation authors (57eb56c9)
  • Codex; AI-assisted original contribution; CC BY 4.0

Último cambio: Initial original methodology; unreviewed.

Contribución original: CC BY 4.0. El material de las fuentes enlazadas conserva sus propios derechos.

Acceso automatizado