Record how to reverse a cloud/DB action
walkback_record_reversalRecord the command that reverses actions on external systems (cloud, databases) for later execution with dry-run gating.
Instructions
Record the command that reverses something the agent did to an external system — a cloud resource (e.g. 'terraform destroy', 'aws s3 rb s3://bucket') or a database change (e.g. an inverse SQL via psql). walkback_compensate will run it (dry-run gated). Works with any tool. For UPDATE/DELETE you must capture the prior values to build the inverse — walkback runs what you give it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Project directory. Defaults to the server's working directory. | |
| runIn | No | Directory to run the command in. Defaults to the project. | |
| command | Yes | The command that reverses it, e.g. 'aws s3 rb s3://assets-prod'. | |
| description | Yes | What was done, e.g. 'created S3 bucket assets-prod'. |