Repository navigation
fix(backup): escape terminal controls in schedule and record output - #184153
Conversation
Apply the existing terminal sanitizer only at human output boundaries, preserving scheduled arguments, stored records, and JSON values. Co-authored-by: Alix-007 <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis PR sanitizes backup schedule acknowledgements, missing-remote guidance, and external backup record labels before displaying them. Example: Run backup record with a target containing café, an ANSI color sequence, and an embedded newline before forged.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR fixes a current terminal-output defect with a minimal display-only change and no actionable findings. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherBackup CLI commands accept repository paths and target labels, submit schedules to the Gateway or record outcomes in the backup ledger, and render acknowledgements for operators. flowchart TD
A[Backup CLI arguments] --> B[Schedule and record commands]
B --> C[Gateway cron owner]
B --> D[Backup outcome ledger]
B --> E[Existing terminal sanitizer]
E --> F[Human terminal output]
B --> G[Original JSON values]
Technical reviewBest possible solution: Merge this focused display-boundary repair after the normal checks complete. Do we have a high-confidence way to reproduce the issue? Current-main source directly emits control-bearing values, and the supplied earlier CLI traces demonstrate the failure; no target code was executed during this review. Is this the best way to solve the issue? The smallest complete fix is to reuse the existing sanitizer at human-output owners while preserving operational inputs, stored values, and JSON. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e61931e664fd. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +4, Tests +36, Docs +5. Total +45 across 5 files. Added test files: 0. View PR surface stats
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 25, 2026, 11:36 PM ET / October 26, 2026, 03:36 UTC. |
|
Merged via squash.
|
) Apply the existing terminal sanitizer only at human output boundaries, preserving scheduled arguments, stored records, and JSON values. Co-authored-by: Alix-007 <[email protected]>
Apply the existing terminal sanitizer only at human output boundaries, preserving scheduled arguments, stored records, and JSON values. Co-authored-by: Alix-007 <[email protected]> (cherry picked from commit 4d26a4a) Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 59f9c59f5793818e9dd75a3324686ff88a8490e8)
Replaces #183357; credit @Alix-007.
This replacement starts from main
d57631395e45e70ef8cec177ad43a8f274689dd7and carries only the five-file schedule/record report fix. It avoids the original PR's incorrect changed-file ancestry. The original PR remains open.Fresh replacement validation:
TMPDIR=/private/tmp/oc-ct-termesc2 node scripts/run-vitest.mjs src/commands/backup-schedule.test.ts src/commands/backup-outcome.test.ts --maxWorkers=1— 31 passed, 121.23s wrapper wall time (102.31s Vitest). Targeted type-aware oxlint, oxfmt, and diff checks pass. Independent review found no actionable P0–P2 findings. Production +4, tests +36, docs +5; no new production machinery.The copied original report below retains its earlier red/green and live evidence. Its head and CI references describe the original PR; this replacement receives separate exact-head CI. No fresh built-CLI/Gateway proof was run beyond the recorded command-owner tests on this shared host.
Co-authored-by: Alix-007 [email protected]
What Problem This Solves
Fixes terminal escape execution and forged rows in backup schedule acknowledgements and external backup record reports.
User Impact
Operators see readable escaped paths and labels. Scheduled command arguments, stored outcomes, and JSON retain their original values.
Why This Change Was Made
Reuse
sanitizeTerminalTextat the existing command output owners. The change adds no configuration or backup behavior. Thanks @Alix-007 for the fix and regression coverage.Evidence
Exact-head CI run 40244519233 passed its test jobs. The required security review remains incomplete: run 40244517298, job 121323208852 failed before reviewing code because GitHub reported 6,415 changed files but returned only 3,000. The local base-to-head diff contains five files. This is a GitHub diff-data blocker, not a completed security assessment; no rerun was requested.
Integrated head:
fb914294833c3124f8dd4c752075ad57b13618aa; contributor commits are preserved.backup-schedule.test.tsandbackup-outcome.test.tspass with the patch integrated onto mainee6efea4f8c5. Baseline wrapper wall time: 363.17s; initial integrated green: 189.83s; final integrated rerun: 142.51s (Vitest 130.61s). Native worker compilation accounts for most of that cost.git diff --checkpass. Independent Codex review found no actionable P0–P2 findings.b05f793a427ce8a7c8fad6938426a3eee189286c: both acknowledgements lose controls, while cron argv and the backup ledger retain raw values. These are prior-head results.Captured real CLI proof: base and exact product head
JSON escaping makes control bytes inspectable without executing them. Temporary roots are replaced with
$FIXTURE.{ "phase": "red", "head": "e8b251188f502b088dd037936062a1711ea302e1", "at": "2026-10-25T06:06:03.863Z", "runs": [ { "label": "schedule", "args": [ "$CHECKOUT/openclaw.mjs", "backup", "enable", "--repository", "$FIXTURE/café\^[[31m\noperator-forged\tend\rrow\^G", "--every", "24h" ], "code": 0, "signal": null, "stdout": "Scheduled Git backups enabled: every 24h to $FIXTURE/café\^[[31m\noperator-forged\tend\rrow\^G\n", "stderr": "", "seconds": 2.5134029139999985 }, { "label": "cron-readback", "args": [ "$CHECKOUT/openclaw.mjs", "cron", "list", "--all", "--json" ], "code": 0, "signal": null, "stdout": "{\n \"jobs\": [\n {\n \"id\": \"241eda10-ddf6-42cf-9b81-94886dd69b0c\",\n \"declarationKey\": \"openclaw-backup-scheduled\",\n \"name\": \"openclaw-backup-scheduled\",\n \"enabled\": true,\n \"createdAtMs\": 1792908387769,\n \"schedule\": {\n \"kind\": \"every\",\n \"everyMs\": 86400000,\n \"anchorMs\": 1792908387769\n },\n \"sessionTarget\": \"isolated\",\n \"wakeMode\": \"now\",\n \"payload\": {\n \"kind\": \"command\",\n \"argv\": [\n \"openclaw\",\n \"backup\",\n \"git\",\n \"create\",\n \"--repository\",\n \"$FIXTURE/café\\^[[31m\\noperator-forged\\tend\\rrow\\^G\",\n \"--all\"\n ]\n },\n \"delivery\": {\n \"mode\": \"none\"\n },\n \"state\": {\n \"nextRunAtMs\": 1792994787769\n },\n \"updatedAtMs\": 1792908387769,\n \"configRevision\": \"sha256:uT-wg9uZwRWsgU6Qmn9ecAIkZ-q1hOHwBUh-SETOI1o\",\n \"nextRunAtMs\": 1792994787769,\n \"effectiveAgentId\": \"main\",\n \"status\": \"idle\"\n }\n ],\n \"snapshotRevision\": \"sha256:VSy9gSaUpIOOQ7vycTlo4QCPwgClfCxkE8hkVU_gMpk\",\n \"total\": 1,\n \"offset\": 0,\n \"limit\": 200,\n \"hasMore\": false,\n \"nextOffset\": null,\n \"deliveryPreviews\": {\n \"241eda10-ddf6-42cf-9b81-94886dd69b0c\": {\n \"label\": \"not requested\",\n \"detail\": \"not requested\"\n }\n }\n}\n", "stderr": "", "seconds": 1.8147186449999972 }, { "label": "record", "args": [ "$CHECKOUT/openclaw.mjs", "backup", "record", "--target", "café\^[[31m\noperator-forged\tend\rrow\^G", "--status", "ok", "--bytes", "42" ], "code": 0, "signal": null, "stdout": "External backup: café\^[[31m\noperator-forged\tend\rrow\^G (ok)\n", "stderr": "", "seconds": 2.2432804529999992 }, { "label": "ordinary-control", "args": [ "$CHECKOUT/openclaw.mjs", "backup", "record", "--target", "ordinary", "--status", "ok", "--bytes", "256", "--json" ], "code": 0, "signal": null, "stdout": "{\n \"kind\": \"external\",\n \"archivePath\": \"ordinary\",\n \"target\": \"ordinary\",\n \"status\": \"ok\",\n \"bytes\": 256\n}\n", "stderr": "", "seconds": 2.157258431000002 }, { "label": "ledger-readback", "args": [ "$CHECKOUT/openclaw.mjs", "gateway", "call", "backup.status", "--json" ], "code": 0, "signal": null, "stdout": "{\n \"targets\": [\n {\n \"kind\": \"external\",\n \"target\": \"ordinary\",\n \"latest\": {\n \"id\": \"0042a5f3-5a4a-404d-81ec-c9b22c779a09\",\n \"createdAt\": 1792908393873,\n \"archivePath\": \"ordinary\",\n \"status\": \"ok\",\n \"kind\": \"external\",\n \"target\": \"ordinary\",\n \"bytes\": 256\n },\n \"latestOk\": {\n \"id\": \"0042a5f3-5a4a-404d-81ec-c9b22c779a09\",\n \"createdAt\": 1792908393873,\n \"archivePath\": \"ordinary\",\n \"status\": \"ok\",\n \"kind\": \"external\",\n \"target\": \"ordinary\",\n \"bytes\": 256\n }\n },\n {\n \"kind\": \"external\",\n \"target\": \"café\\^[[31m\\noperator-forged\\tend\\rrow\\^G\",\n \"latest\": {\n \"id\": \"cf30c99f-4559-4c48-809e-63136ec3238c\",\n \"createdAt\": 1792908391682,\n \"archivePath\": \"café\\^[[31m\\noperator-forged\\tend\\rrow\\^G\",\n \"status\": \"ok\",\n \"kind\": \"external\",\n \"target\": \"café\\^[[31m\\noperator-forged\\tend\\rrow\\^G\",\n \"bytes\": 42\n },\n \"latestOk\": {\n \"id\": \"cf30c99f-4559-4c48-809e-63136ec3238c\",\n \"createdAt\": 1792908391682,\n \"archivePath\": \"café\\^[[31m\\noperator-forged\\tend\\rrow\\^G\",\n \"status\": \"ok\",\n \"kind\": \"external\",\n \"target\": \"café\\^[[31m\\noperator-forged\\tend\\rrow\\^G\",\n \"bytes\": 42\n }\n }\n ],\n \"schedules\": [\n {\n \"id\": \"241eda10-ddf6-42cf-9b81-94886dd69b0c\",\n \"mode\": \"git\",\n \"target\": \"$FIXTURE/café\\^[[31m\\noperator-forged\\tend\\rrow\\^G\",\n \"enabled\": true,\n \"everyMs\": 86400000,\n \"nextRunAtMs\": 1792994787769\n }\n ],\n \"locations\": []\n}\n", "stderr": "", "seconds": 1.6661163239999988 }, { "label": "disable", "args": [ "$CHECKOUT/openclaw.mjs", "backup", "disable", "--git" ], "code": 0, "signal": null, "stdout": "Scheduled Git backups disabled.\n", "stderr": "", "seconds": 2.3022968919999984 }, { "label": "cron-cleanup", "args": [ "$CHECKOUT/openclaw.mjs", "cron", "list", "--all", "--json" ], "code": 0, "signal": null, "stdout": "{\n \"jobs\": [],\n \"snapshotRevision\": \"sha256:T1PNoYwrqgwDVLtfmj7L5e0Sq02OEbqHPC8RFhICuUU\",\n \"total\": 0,\n \"offset\": 0,\n \"limit\": 200,\n \"hasMore\": false,\n \"nextOffset\": null,\n \"deliveryPreviews\": {}\n}\n", "stderr": "", "seconds": 1.7800103469999957 } ], "observations": [ { "label": "schedule", "controls": 3, "forgedLine": true, "escapedLine": false, "unicode": true }, { "label": "record", "controls": 3, "forgedLine": true, "escapedLine": false, "unicode": true } ], "readback": { "rawRepository": "$FIXTURE/café\^[[31m\noperator-forged\tend\rrow\^G", "storedCronArgv": [ "openclaw", "backup", "git", "create", "--repository", "$FIXTURE/café\^[[31m\noperator-forged\tend\rrow\^G", "--all" ], "backupTargets": [ { "kind": "external", "target": "ordinary", "latest": { "id": "0042a5f3-5a4a-404d-81ec-c9b22c779a09", "createdAt": 1792908393873, "archivePath": "ordinary", "status": "ok", "kind": "external", "target": "ordinary", "bytes": 256 }, "latestOk": { "id": "0042a5f3-5a4a-404d-81ec-c9b22c779a09", "createdAt": 1792908393873, "archivePath": "ordinary", "status": "ok", "kind": "external", "target": "ordinary", "bytes": 256 } }, { "kind": "external", "target": "café\^[[31m\noperator-forged\tend\rrow\^G", "latest": { "id": "cf30c99f-4559-4c48-809e-63136ec3238c", "createdAt": 1792908391682, "archivePath": "café\^[[31m\noperator-forged\tend\rrow\^G", "status": "ok", "kind": "external", "target": "café\^[[31m\noperator-forged\tend\rrow\^G", "bytes": 42 }, "latestOk": { "id": "cf30c99f-4559-4c48-809e-63136ec3238c", "createdAt": 1792908391682, "archivePath": "café\^[[31m\noperator-forged\tend\rrow\^G", "status": "ok", "kind": "external", "target": "café\^[[31m\noperator-forged\tend\rrow\^G", "bytes": 42 } } ], "ordinaryRecordPresent": true, "scheduleRemoved": true, "actualGatewayReady": true }, "cleanup": { "gatewayJoined": true, "productionTouched": false }, "result": "PASS" }{ "phase": "green", "head": "b05f793a427ce8a7c8fad6938426a3eee189286c", "at": "2026-10-25T06:38:20.141Z", "runs": [ { "label": "schedule", "args": [ "$CHECKOUT/openclaw.mjs", "backup", "enable", "--repository", "$FIXTURE/café\^[[31m\noperator-forged\tend\rrow\^G", "--every", "24h" ], "code": 0, "signal": null, "stdout": "Scheduled Git backups enabled: every 24h to $FIXTURE/café\\noperator-forged\\tend\\rrow\n", "stderr": "", "seconds": 2.744020289 }, { "label": "cron-readback", "args": [ "$CHECKOUT/openclaw.mjs", "cron", "list", "--all", "--json" ], "code": 0, "signal": null, "stdout": "{\n \"jobs\": [\n {\n \"id\": \"532580b5-bd02-4a74-987f-dff1d7589db4\",\n \"declarationKey\": \"openclaw-backup-scheduled\",\n \"name\": \"openclaw-backup-scheduled\",\n \"enabled\": true,\n \"createdAtMs\": 1792910322719,\n \"schedule\": {\n \"kind\": \"every\",\n \"everyMs\": 86400000,\n \"anchorMs\": 1792910322719\n },\n \"sessionTarget\": \"isolated\",\n \"wakeMode\": \"now\",\n \"payload\": {\n \"kind\": \"command\",\n \"argv\": [\n \"openclaw\",\n \"backup\",\n \"git\",\n \"create\",\n \"--repository\",\n \"$FIXTURE/café\\^[[31m\\noperator-forged\\tend\\rrow\\^G\",\n \"--all\"\n ]\n },\n \"delivery\": {\n \"mode\": \"none\"\n },\n \"state\": {\n \"nextRunAtMs\": 1792996722719\n },\n \"updatedAtMs\": 1792910322719,\n \"configRevision\": \"sha256:axzYXbbOfR7btJvc2GBUiSb7tiUSbw2_5zLVrdihPxE\",\n \"nextRunAtMs\": 1792996722719,\n \"effectiveAgentId\": \"main\",\n \"status\": \"idle\"\n }\n ],\n \"snapshotRevision\": \"sha256:BUy6VMvpTl5f7iyUInZ24g0wC8M_ckb8JgUFRUGsLc0\",\n \"total\": 1,\n \"offset\": 0,\n \"limit\": 200,\n \"hasMore\": false,\n \"nextOffset\": null,\n \"deliveryPreviews\": {\n \"532580b5-bd02-4a74-987f-dff1d7589db4\": {\n \"label\": \"not requested\",\n \"detail\": \"not requested\"\n }\n }\n}\n", "stderr": "", "seconds": 2.3244784270000016 }, { "label": "record", "args": [ "$CHECKOUT/openclaw.mjs", "backup", "record", "--target", "café\^[[31m\noperator-forged\tend\rrow\^G", "--status", "ok", "--bytes", "42" ], "code": 0, "signal": null, "stdout": "External backup: café\\noperator-forged\\tend\\rrow (ok)\n", "stderr": "", "seconds": 2.813386662000001 }, { "label": "ordinary-control", "args": [ "$CHECKOUT/openclaw.mjs", "backup", "record", "--target", "ordinary", "--status", "ok", "--bytes", "256", "--json" ], "code": 0, "signal": null, "stdout": "{\n \"kind\": \"external\",\n \"archivePath\": \"ordinary\",\n \"target\": \"ordinary\",\n \"status\": \"ok\",\n \"bytes\": 256\n}\n", "stderr": "", "seconds": 2.802676024 }, { "label": "ledger-readback", "args": [ "$CHECKOUT/openclaw.mjs", "gateway", "call", "backup.status", "--json" ], "code": 0, "signal": null, "stdout": "{\n \"targets\": [\n {\n \"kind\": \"external\",\n \"target\": \"ordinary\",\n \"latest\": {\n \"id\": \"7fa27059-3980-4e48-859f-8fe54b240ae5\",\n \"createdAt\": 1792910330488,\n \"archivePath\": \"ordinary\",\n \"status\": \"ok\",\n \"kind\": \"external\",\n \"target\": \"ordinary\",\n \"bytes\": 256\n },\n \"latestOk\": {\n \"id\": \"7fa27059-3980-4e48-859f-8fe54b240ae5\",\n \"createdAt\": 1792910330488,\n \"archivePath\": \"ordinary\",\n \"status\": \"ok\",\n \"kind\": \"external\",\n \"target\": \"ordinary\",\n \"bytes\": 256\n }\n },\n {\n \"kind\": \"external\",\n \"target\": \"café\\^[[31m\\noperator-forged\\tend\\rrow\\^G\",\n \"latest\": {\n \"id\": \"f6190e08-c88f-48b5-99e3-3bc2d2eea667\",\n \"createdAt\": 1792910327716,\n \"archivePath\": \"café\\^[[31m\\noperator-forged\\tend\\rrow\\^G\",\n \"status\": \"ok\",\n \"kind\": \"external\",\n \"target\": \"café\\^[[31m\\noperator-forged\\tend\\rrow\\^G\",\n \"bytes\": 42\n },\n \"latestOk\": {\n \"id\": \"f6190e08-c88f-48b5-99e3-3bc2d2eea667\",\n \"createdAt\": 1792910327716,\n \"archivePath\": \"café\\^[[31m\\noperator-forged\\tend\\rrow\\^G\",\n \"status\": \"ok\",\n \"kind\": \"external\",\n \"target\": \"café\\^[[31m\\noperator-forged\\tend\\rrow\\^G\",\n \"bytes\": 42\n }\n }\n ],\n \"schedules\": [\n {\n \"id\": \"532580b5-bd02-4a74-987f-dff1d7589db4\",\n \"mode\": \"git\",\n \"target\": \"$FIXTURE/café\\^[[31m\\noperator-forged\\tend\\rrow\\^G\",\n \"enabled\": true,\n \"everyMs\": 86400000,\n \"nextRunAtMs\": 1792996722719\n }\n ],\n \"locations\": []\n}\n", "stderr": "", "seconds": 2.0335354959999967 }, { "label": "disable", "args": [ "$CHECKOUT/openclaw.mjs", "backup", "disable", "--git" ], "code": 0, "signal": null, "stdout": "Scheduled Git backups disabled.\n", "stderr": "", "seconds": 3.0912175809999973 }, { "label": "cron-cleanup", "args": [ "$CHECKOUT/openclaw.mjs", "cron", "list", "--all", "--json" ], "code": 0, "signal": null, "stdout": "{\n \"jobs\": [],\n \"snapshotRevision\": \"sha256:T1PNoYwrqgwDVLtfmj7L5e0Sq02OEbqHPC8RFhICuUU\",\n \"total\": 0,\n \"offset\": 0,\n \"limit\": 200,\n \"hasMore\": false,\n \"nextOffset\": null,\n \"deliveryPreviews\": {}\n}\n", "stderr": "", "seconds": 2.0019669499999946 } ], "observations": [ { "label": "schedule", "controls": 0, "forgedLine": false, "escapedLine": true, "unicode": true }, { "label": "record", "controls": 0, "forgedLine": false, "escapedLine": true, "unicode": true } ], "readback": { "rawRepository": "$FIXTURE/café\^[[31m\noperator-forged\tend\rrow\^G", "storedCronArgv": [ "openclaw", "backup", "git", "create", "--repository", "$FIXTURE/café\^[[31m\noperator-forged\tend\rrow\^G", "--all" ], "backupTargets": [ { "kind": "external", "target": "ordinary", "latest": { "id": "7fa27059-3980-4e48-859f-8fe54b240ae5", "createdAt": 1792910330488, "archivePath": "ordinary", "status": "ok", "kind": "external", "target": "ordinary", "bytes": 256 }, "latestOk": { "id": "7fa27059-3980-4e48-859f-8fe54b240ae5", "createdAt": 1792910330488, "archivePath": "ordinary", "status": "ok", "kind": "external", "target": "ordinary", "bytes": 256 } }, { "kind": "external", "target": "café\^[[31m\noperator-forged\tend\rrow\^G", "latest": { "id": "f6190e08-c88f-48b5-99e3-3bc2d2eea667", "createdAt": 1792910327716, "archivePath": "café\^[[31m\noperator-forged\tend\rrow\^G", "status": "ok", "kind": "external", "target": "café\^[[31m\noperator-forged\tend\rrow\^G", "bytes": 42 }, "latestOk": { "id": "f6190e08-c88f-48b5-99e3-3bc2d2eea667", "createdAt": 1792910327716, "archivePath": "café\^[[31m\noperator-forged\tend\rrow\^G", "status": "ok", "kind": "external", "target": "café\^[[31m\noperator-forged\tend\rrow\^G", "bytes": 42 } } ], "ordinaryRecordPresent": true, "scheduleRemoved": true, "actualGatewayReady": true }, "cleanup": { "gatewayJoined": true, "productionTouched": false }, "result": "PASS" }Replay scripts, focused checks and independent review
Save the following two files together in a directory outside both product checkouts. Set
CHECKOUTto the absolute clean checkout of either SHA,HARNESS_DIRto that external script directory, andPHASE=redfor base orPHASE=greenfor head. Build each checkout normally; do not copy output or edit build stamps.proof-common.mjs:proof-backup-ops.mjs:{ "focusedChecks": [ { "log": "backup-ops-tests-green.log", "seconds": 749.32, "tests": "31 passed (31)", "command": "OPENCLAW_VITEST_RUNTIME=node node scripts/run-vitest.mjs src/commands/backup-schedule.test.ts src/commands/backup-outcome.test.ts --maxWorkers=1" } ], "independentReview": { "sourceVerdict": "pass", "findings": [], "scope": [ "Complete base-to-candidate production/test/documentation diff", "backupEnableCommand and backupRecordCommand full modules", "CLI registration callers, disable sibling, cron command builder and outcome persistence owner", "ANSI/C0/C1 sanitization owner, human/JSON branches, raw cron argv and ledger target preservation", "Regression tests at command boundary and actual baseline RED proof harness/receipt summaries" ], "hashes": { "src/commands/backup-schedule.ts": "b0c08494de31e414541d551d119805a73a5d75622c5fd909d84092b312e64d66", "src/commands/backup-record.ts": "cf85e6abad84f89d1bf01a1ec4bcbb344507bc03dca97b37a3611103b33f26ae", "src/commands/backup-schedule.test.ts": "c26f3490427829afcfa83de02695937cb36988017aa9e18986662f4489828c32", "src/commands/backup-outcome.test.ts": "daa2fa939731fb92e9109264186c3ef5f36d114966107c61a97ca283f02e0a62", "docs/cli/backup.md": "f3971829463f031496a85f401e9b547017282aff50245d44a6ce74888ecc3723" }, "staticGates": { "diffCheck": "pass", "targetedTypecheck": "pass exit 0: OPENCLAW_TYPECHECKER=tsgo repository run-tsgo.mjs -p ../backup-ops-review-types.json --declaration false --singleThreaded --checkers 1, only two touched test roots plus canonical ambient declarations; see backup-ops-independent-typecheck.log", "targetedLint": "pass exit 0: final normal type-aware repository run-oxlint.mjs with config/tsconfig/oxlint.core.json on all four changed TypeScript files; normal dist lock queue honored; see backup-ops-independent-lint-final.log. Prior120s queue-only attempt retained as non-pass history", "targetedFormat": "pass exit 0: OPENCLAW_FORMAT_TOOL=oxfmt repository run-format.mts --check all five changed files; see backup-ops-independent-format.log" }, "exactHeadProof": { "status": "PASS", "productHead": "b05f793a427ce8a7c8fad6938426a3eee189286c", "observations": [ { "label": "schedule", "controls": 0, "forgedLine": false, "escapedLine": true, "unicode": true }, { "label": "record", "controls": 0, "forgedLine": false, "escapedLine": true, "unicode": true } ], "readback": { "rawRepository": "$FIXTURE/café\^[[31m\noperator-forged\tend\rrow\^G", "storedCronArgv": [ "openclaw", "backup", "git", "create", "--repository", "$FIXTURE/café\^[[31m\noperator-forged\tend\rrow\^G", "--all" ], "backupTargets": [ { "kind": "external", "target": "ordinary", "latest": { "id": "7fa27059-3980-4e48-859f-8fe54b240ae5", "createdAt": 1792910330488, "archivePath": "ordinary", "status": "ok", "kind": "external", "target": "ordinary", "bytes": 256 }, "latestOk": { "id": "7fa27059-3980-4e48-859f-8fe54b240ae5", "createdAt": 1792910330488, "archivePath": "ordinary", "status": "ok", "kind": "external", "target": "ordinary", "bytes": 256 } }, { "kind": "external", "target": "café\^[[31m\noperator-forged\tend\rrow\^G", "latest": { "id": "f6190e08-c88f-48b5-99e3-3bc2d2eea667", "createdAt": 1792910327716, "archivePath": "café\^[[31m\noperator-forged\tend\rrow\^G", "status": "ok", "kind": "external", "target": "café\^[[31m\noperator-forged\tend\rrow\^G", "bytes": 42 }, "latestOk": { "id": "f6190e08-c88f-48b5-99e3-3bc2d2eea667", "createdAt": 1792910327716, "archivePath": "café\^[[31m\noperator-forged\tend\rrow\^G", "status": "ok", "kind": "external", "target": "café\^[[31m\noperator-forged\tend\rrow\^G", "bytes": 42 } } ], "ordinaryRecordPresent": true, "scheduleRemoved": true, "actualGatewayReady": true }, "cleanup": { "gatewayJoined": true, "productionTouched": false } } } }