Skip to main content

file · Command reference

qzx repairWorkspace

What it does

Validates a saved auditWorkspace plan and applies only explicitly selected, unchanged cleanup actions

Command maturity: Alpha

Available for real use and feedback while its interface and behavior can still evolve. This is the current development-checkout assessment. Every future immutable release tag preserves the exact assessment shipped by that version. Available in PyPI 0.2.2.0.8. This page documents the 0.2.2.0.8 alpha development checkout.

Behavior and built-in protections

Live mode applies the changes you request

Preview mode available

Works without invoking native programs

Works without network access

Uses your current permissions; results can vary

Preview is the default. Live repair requires a complete saved auditWorkspace plan, explicit executable action IDs, unchanged content fingerprints, dry_run=false, apply=true, and a fail-closed workspace backup. Selected entries are isolated in same-workspace staging before cleanup; review-only findings can never be applied.

QZX creates a recovery archive before live changes; use --dangerously-bypass-approvals-and-sandbox/--yolo only when you deliberately choose to skip it.

This safety classification was reviewed by OpenAI GPT-5.6 Sol against implementation digest sha256:dd5295cd267097ab0e54e7cb7e02105099db87446652192be1d31fad5da527e5 on 2026-09-05.

Exact syntax

qzx repairWorkspace [path] [plan_file] [action_ids] [dry_run] [apply] --json

Parameters

Swipe or use the horizontal scrollbar to see every column.

NameTypeRequiredDefaultDescription
pathstrNo"."Workspace directory that the saved plan audits
plan_filestrNoNot declaredJSON plan created by auditWorkspace
action_idsstrNoNot declaredComma-separated executable action IDs reviewed by the operator
dry_runboolNotrueValidate and preview without changing the workspace
applyboolNofalseExplicitly authorize selected actions; requires dry_run=false

Input examples

qzx repairWorkspace . --plan-file qzx-repair-plan.json

Validate the saved plan and list its executable actions

qzx repairWorkspace . --plan-file qzx-repair-plan.json --action-ids act-123,act-456 --dry-run false --apply

Back up the workspace, revalidate both actions, then apply them

For the complete structured payload, add --json: qzx repairWorkspace [path] [plan_file] [action_ids] [dry_run] [apply] --json

Observed output example

Captured with QZX 0.2.2.0.8 on Windows 11; exit code 0. Host-dependent values and duration can vary.

Example command: qzx repairWorkspace ../artifacts/qzx-evidence/repair-workspace/workspace --plan-file ../artifacts/qzx-evidence/repair-workspace/plan.json --json

{
    "success": true,
    "status": "preview",
    "message": "Repair plan 'plan-70b0f1e9ef689794bc9423b4e17812fad340a3316bb5ddf912c29483aa6d05b5' is valid and unchanged. 1 executable action(s) are available; 0 selected. Nothing was changed.",
    "details": {
        "path": "C:\\Team Dropbox\\Valis Idealis\\Ale\\Programacion\\QZX - Quick Zap Exchange\\artifacts\\qzx-evidence\\repair-workspace\\workspace",
        "plan_file": "C:\\Team Dropbox\\Valis Idealis\\Ale\\Programacion\\QZX - Quick Zap Exchange\\artifacts\\qzx-evidence\\repair-workspace\\plan.json",
        "plan_id": "plan-70b0f1e9ef689794bc9423b4e17812fad340a3316bb5ddf912c29483aa6d05b5",
        "dry_run_mode": true,
        "apply_requested": false,
        "workspace_unchanged": true,
        "selected_actions": [],
        "executable_actions": [
            {
                "category": "temp",
                "executable": true,
                "fingerprint": {
                    "sha256": "a4be5b5eeff332365000a7d71223443e63df5d51a58fdb60aa682b8b01d22266",
                    "size_bytes": 28,
                    "type": "file"
                },
                "id": "act-76685ad35f1fd085e962",
                "kind": "delete_file",
                "path": "debug.tmp",
                "reason": "Temporary editor or tool output selected for explicit cleanup.",
                "size_bytes": 28
            }
        ],
        "review_only_actions": []
    },
    "meta": {
        "command": "repairWorkspace",
        "command_maturity": {
            "stage": "alpha",
            "label": "Alpha",
            "sequence": 2,
            "public_executable": true,
            "stability": "interface_may_change",
            "summary": "Available for real use and feedback while its interface and behavior can still evolve.",
            "promotion_review_required": false,
            "assessment_scope": "development_checkout"
        },
        "duration_ms": 7.474,
        "schema_version": 1
    }
}
View the JSON result contract
{
    "type": "object",
    "properties": {
        "success": {
            "type": "boolean"
        },
        "message": {
            "type": "string"
        },
        "status": {
            "type": "string",
            "enum": [
                "preview",
                "applied",
                "rolled_back",
                "recovery_required",
                "cleanup_incomplete"
            ]
        },
        "error_code": {
            "type": "string"
        },
        "error": {
            "type": "string"
        },
        "details": {
            "type": "object",
            "additionalProperties": true
        },
        "meta": {
            "type": "object",
            "required": [
                "command",
                "command_maturity",
                "duration_ms",
                "schema_version"
            ],
            "properties": {
                "command": {
                    "type": "string"
                },
                "command_maturity": {
                    "type": "object",
                    "required": [
                        "stage",
                        "label",
                        "sequence",
                        "public_executable",
                        "stability",
                        "summary",
                        "promotion_review_required",
                        "assessment_scope"
                    ],
                    "properties": {
                        "stage": {
                            "type": "string"
                        },
                        "label": {
                            "type": "string"
                        },
                        "sequence": {
                            "type": "integer"
                        },
                        "public_executable": {
                            "type": "boolean"
                        },
                        "stability": {
                            "type": "string"
                        },
                        "summary": {
                            "type": "string"
                        },
                        "promotion_review_required": {
                            "type": "boolean"
                        },
                        "assessment_scope": {
                            "type": "string"
                        },
                        "note": {
                            "type": "string"
                        },
                        "review": {
                            "type": "object",
                            "required": [
                                "reviewed_on",
                                "rationale",
                                "evidence"
                            ],
                            "properties": {
                                "reviewed_on": {
                                    "type": "string",
                                    "format": "date"
                                },
                                "rationale": {
                                    "type": "string"
                                },
                                "evidence": {
                                    "type": "array",
                                    "minItems": 1,
                                    "items": {
                                        "type": "string"
                                    }
                                },
                                "replacement": {
                                    "type": "string"
                                }
                            },
                            "additionalProperties": false
                        }
                    },
                    "additionalProperties": true
                },
                "duration_ms": {
                    "type": "number"
                },
                "schema_version": {
                    "type": "integer"
                }
            },
            "additionalProperties": true
        }
    },
    "additionalProperties": true,
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "required": [
        "message",
        "meta",
        "success"
    ]
}

Errors and limits

The public contract requires success=false and a descriptive message on failure. This catalog does not yet declare a command-specific error taxonomy; inspect the result and do not invent error codes.

QZX is alpha software. Optional dependencies, permissions, and host capabilities can change the result.

Evidence workflow: captured and digest-validated.

Evidence and provenance

Documentation channel
Development documentation 0.2.2.0.8 · main · sha256:9aa902dfb6b006017e52972bf7871fef49b03ec24ff80741231d743d0354bfc2
Availability
0.2.2.0.8 or earlier

Keep exploring

These commands also belong to the file category. Compare them to choose the operation that best fits your task.

Explore all QZX commands