Skip to content

fix(doctor): pre-migration snapshot fails on Linux hosts that do not report file birthtime - #164363

Merged
steipete merged 3 commits into
openclaw:mainfrom
jayzhou2309:fix/sqlite-snapshot-link-birthtime
Oct 5, 2026
Merged

steipete merged 3 commits into
openclaw:mainfrom
jayzhou2309:fix/sqlite-snapshot-link-birthtime

Conversation

@jayzhou2309

@jayzhou2309 jayzhou2309 commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Closes #164319

What Problem This Solves

openclaw doctor --fix can reject its required pre-migration SQLite snapshot on Linux hosts without statx. Thanks @StevenKrebs for reporting this and @jayzhou2309 for the original fix and Linux reproduction.

User Impact

Doctor can publish unchanged rollback backups on these hosts. Changed file identities, sizes, or database bytes still fail verification.

Why This Change Was Made

Node/libuv can substitute ctime when the filesystem cannot report birth time. Removing the original hard-link name changes ctime, so comparing the publication receipt's birth time to a later stat can reject the same unchanged inode.

The intermediate transfer fingerprint now compares only device/inode identity and size on every platform. The snapshot owner retains its content hashes before and after publication. Coverage uses real hard-link publication with zero and ctime-derived birth times, checks database contents and cleanup, and rejects actual same-size byte changes instead of treating an mtime-only change as rewritten data.

Evidence

Follow-up 284bd601a89fb3923ca21e98085944b1fff9eb26 adds one commit on top of the contributor's b9d53bae7298bcef61359cb299c57496adfb54ee; their two commits and PR authorship are preserved. Local verification on the final source:

  • Transfer suite: 11/11 passed three times, using node scripts/run-vitest.mjs src/infra/sqlite-snapshot.transfer.test.ts --maxWorkers=1 (the repository runner used by pnpm test). Runner wall time: 89.08 / 38.33 / 59.72 seconds; summed test-case time: 10.289 / 10.673 / 11.670 seconds. Compiler preparation accounts for most cold-run overhead.
  • Snapshot, FUSE, file-identity, and Doctor migration-backup suites: 63 passed, 2 existing skips.
  • test/scripts/eager-import-closure.test.ts and test/scripts/pr-wrapper-source-closure.test.ts: 20/20 passed, including the PR wrapper inventory check.
  • CI=1 OPENCLAW_LOCAL_CHECK=1 node scripts/check-changed.mjs --base 86e3f23b2418033faae116b8c2b6e88453c960dc: exit 0, including core and all 27 test typecheck graphs, lint, ratchets, and static guards. git diff --check also passed.
  • Codex P1 review was attempted but returned HTTP 401 Unauthorized; no automated review verdict was produced. New-head hosted CI is not included in these local results; earlier contributor CI evidence is below.

All stateful proof used isolated test state. No module, schema, configuration, or dependency changes were introduced. Auto-merge remains off.

Before this follow-up, an isolated regression on main 678572811dd8b10c19ee69e2107947d099dd33c1 produced 1 failed / 9 passed at the reported staging-transfer guard; the device/inode/size repair passed 10/10 three times. A real hard-link/unlink probe using the extracted v2026.9.8 guard also rejected ctime-as-birthtime while device, inode, size, mtime, and SHA-256 remained unchanged. Stable zero birth time passed. This was stat simulation, not a Linux 4.4 machine or a full historical installation upgrade. The final contributor-branch suite adds the real byte-mutation negative control and contains 11 tests.

Contributor's earlier validation and Linux proof on the named prior heads
  • Rebased on 2026-10-04 onto upstream/main 86e3f23, because test(infra,workers): remove low-value tests (batch d184) #164628 rewrote this test file (dropped expectSnapshotSuccess, merged the copy-fallback case into the publish it.each). The new tests are unchanged except that the success case checks the receipt inline. The fix commit is b9d53ba, and its source diff is byte-identical to 946d8607516, so the Linux proof below still applies. On the new base: test commit 52db407 gives 1 failed, 9 passed, and the fix gives 10/10. All 18 src/infra/sqlite-snapshot*.test.ts files pass (122 passed, 2 skipped). tsgo:core and tsgo:core:test exit 0. run-oxlint exits 0, and oxfmt --check is clean on both files.
  • Red first. Test commit 52db407 (d74ba079fb7 before the rebase) adds two cases to src/infra/sqlite-snapshot.transfer.test.ts. Both run a real hard-link transfer, then report process.platform as linux and birthtime as ctime for the staging file and its receipt, as Node does without statx. "accepts a hard-link transfer when Linux reports ctime as birthtime" fails on upstream/main d41a61f with the reported SQLite snapshot staging file changed during transfer from sqlite-snapshot.ts:392, and passes on the fix. "rejects a staged image rewritten during a Linux hard-link transfer" changes the staged file's mtime mid-transfer and is rejected on both.
  • pnpm test src/infra/*sqlite-snapshot*.test.ts: 19 files, 134 passed, 3 skipped. pnpm tsgo:core exits 0, and the test typecheck shard that covers these files (test/tsconfig/tsconfig.core.test.state-logging.json) exits 0. scripts/run-oxlint.mjs exit 0 and oxfmt --check clean on the 2 changed files.

Real behavior proof

Doctor's pre-migration backup runs on real Linux from source, on upstream/main d41a61f (before) and on this branch 946d8607516 (after). The script calls the same code openclaw doctor --fix uses for its rollback backup: it takes the real Doctor maintenance lock (withDoctorSqliteMaintenanceLock) and runs the Doctor backup owner (backupDoctorSqliteDatabases) on a fresh shared state database created by openOpenClawStateDatabase. That reaches createVerifiedSqliteSnapshot and the hard-link publication. Nothing is mocked: no process.platform override and no stat stubs. It does not run the full openclaw doctor --fix CLI, and the database is a new one rather than an upgrade from 2026.9.4 with a pending schema migration.

Setup: Docker on an arm64 Mac (Linux kernel 7.0.12-linuxkit, the node:24-bookworm-slim image, Node v24.21.0, the version in the issue). Both revisions are bundled with esbuild from the repo source, along with their infra/* worker entrypoints. This kernel has statx, so the "no statx" condition from the issue is made with a seccomp profile. It returns ENOSYS for statx calls that use libuv's mask (0xFFF, basic stats plus btime), and for io_uring_setup. That is the result libuv gets on Linux 4.4. libuv then falls back to plain stat and fills birthtime from ctime (deps/uv/src/unix/fs.c, the uv__fs_statx fallback). The filter matches only that mask because runc itself calls statx with STATX_MNT_ID during container start.

{"defaultAction":"SCMP_ACT_ALLOW","syscalls":[
 {"names":["statx"],"action":"SCMP_ACT_ERRNO","errnoRet":38,"args":[{"index":3,"value":4095,"op":"SCMP_CMP_EQ"}]},
 {"names":["io_uring_setup"],"action":"SCMP_ACT_ERRNO","errnoRet":38}]}

Before, on d41a61f, with Node's statx blocked, state dir on the container's own filesystem ($ROOT replaces the temp path):

[base] kernel=7.0.12-linuxkit arch=arm64 node=v24.21.0
[base] stat probe: birthtimeNs==ctimeNs true; birthtime changed across link+unlink true; ctime changed true
[base] state db: $ROOT/state-base/state/openclaw.sqlite (1458176 bytes)
[base] SQLite database cannot be snapshotted safely: $ROOT/state-base/state/openclaw.sqlite. SQLite snapshot staging file changed during transfer: $ROOT/state-base/state/.sqlite-publish-741ba596-82b7-46d3-b825-e65b169b2258-wPYkNs/database.sqlite
[base] RESULT failed

After, on 946d8607516, same container setup:

[head] kernel=7.0.12-linuxkit arch=arm64 node=v24.21.0
[head] stat probe: birthtimeNs==ctimeNs true; birthtime changed across link+unlink true; ctime changed true
[head] state db: $ROOT/state-head/state/openclaw.sqlite (1458176 bytes)
[head] change: Saved pre-migration SQLite backup: $ROOT/state-head/state/openclaw.sqlite.pre-startup-migration-ff498787-390b-84c7-82b5-0d149acadeb8.bak
[head] RESULT ok

The stat probe line comes before the backup. It writes a file, hard-links it, unlinks the original name, and stats the link. With statx blocked, birthtime equals ctime and moves when the unlink changes ctime. That is the field main's fingerprint compares.

The full matrix ran twice, with the same results both times:

Node statx State dir filesystem birthtime moves on link+unlink main d41a61f branch 946d8607516
blocked (ENOSYS) container filesystem (overlayfs) yes fails: staging file changed during transfer backup saved
blocked (ENOSYS) bind mount from the macOS host (virtiofs) yes backup saved backup saved
available container filesystem (overlayfs) no backup saved backup saved
available bind mount from the macOS host (virtiofs) no backup saved backup saved

What this shows:

  • The failure needs Node to fall back from statx. With statx available, Linux reports a real birthtime that does not move, and main publishes the backup. So the Linux 4.4 statx gap in the issue is the trigger.
  • On the bind mount from the macOS host, main did not fail even with statx blocked. The cause is not traced. A guess is virtiofs attribute caching hiding the ctime change during the transfer window. The issue's bind mount came from a Linux host, which this setup does not reproduce.
  • The branch saved the backup in every case.

Commands, from the repo root on each revision (git checkout --detach <commit>):

esbuild entry=proof.ts <each infra/*.worker from src/infra/runtime-process-entrypoints.ts> \
  --bundle --platform=node --format=esm --target=node24 --splitting \
  --external:sqlite-vec --outdir=<rev> --out-extension:.js=.mjs   # plus src/state/*.sql copied beside it
docker create --security-opt seccomp=no-statx.json -v "$PWD:/proof:ro" \
  -e PROOF_LABEL=<base|head> -e PROOF_ROOT=/var/oc-proof node:24-bookworm-slim \
  sh -c 'mkdir -p /var/oc-proof && node /proof/<rev>/entry.mjs'
docker start -a <id>

@openclaw/[email protected] and its linux-arm64-gnu native package sit in node_modules beside the bundles. Each run takes a few seconds. The proof script is not part of this PR.

Proof script (proof.ts)
import fs from "node:fs";
import os from "node:os";
import path from "node:path";
import { backupDoctorSqliteDatabases } from "<repo>/src/commands/doctor-migration-backup.ts";
import { withDoctorSqliteMaintenanceLock } from "<repo>/src/commands/doctor-sqlite-maintenance-lock.ts";
import {
  closeOpenClawStateDatabase,
  openOpenClawStateDatabase,
} from "<repo>/src/state/openclaw-state-db.ts";
import { resolveOpenClawStateSqlitePath } from "<repo>/src/state/openclaw-state-db.paths.ts";

const label = process.env.PROOF_LABEL ?? "run";
const root = process.env.PROOF_ROOT!;
const stateDir = path.join(root, `state-${label}`);
fs.rmSync(stateDir, { recursive: true, force: true });
fs.mkdirSync(stateDir, { recursive: true, mode: 0o700 });
const env = { ...process.env, OPENCLAW_STATE_DIR: stateDir, HOME: stateDir };

console.log(`[${label}] kernel=${os.release()} arch=${process.arch} node=${process.version}`);

const probe = path.join(stateDir, "probe.tmp");
const probeLink = path.join(stateDir, "probe.link");
fs.writeFileSync(probe, "x");
const before = fs.statSync(probe, { bigint: true });
fs.linkSync(probe, probeLink);
fs.unlinkSync(probe);
const after = fs.statSync(probeLink, { bigint: true });
fs.unlinkSync(probeLink);
console.log(
  `[${label}] stat probe: birthtimeNs==ctimeNs ${before.birthtimeNs === before.ctimeNs}; ` +
    `birthtime changed across link+unlink ${before.birthtimeNs !== after.birthtimeNs}; ` +
    `ctime changed ${before.ctimeNs !== after.ctimeNs}`,
);

const db = openOpenClawStateDatabase({ env });
void db;
closeOpenClawStateDatabase();
const sharedPath = resolveOpenClawStateSqlitePath(env);
console.log(`[${label}] state db: ${sharedPath.replace(root, "$ROOT")} (${fs.statSync(sharedPath).size} bytes)`);

try {
  const result = await withDoctorSqliteMaintenanceLock({
    env,
    operation: "pre-migration backup proof",
    run: (authority) =>
      backupDoctorSqliteDatabases({
        env,
        pendingDatabasePaths: [sharedPath],
        databasePaths: [sharedPath],
        authority,
      }),
  });
  for (const line of result.changes) console.log(`[${label}] change: ${line.replaceAll(root, "$ROOT")}`);
  for (const line of result.warnings) console.log(`[${label}] warning: ${line.replaceAll(root, "$ROOT")}`);
  console.log(`[${label}] RESULT ok`);
} catch (error) {
  const lines = [String((error as Error).message)];
  for (let c = (error as Error).cause; c; c = (c as Error).cause) lines.push(`cause: ${(c as Error).message}`);
  for (const line of lines) console.log(`[${label}] ${line.replaceAll(root, "$ROOT")}`);
  console.log(`[${label}] RESULT failed`);
  process.exitCode = 1;
}

Not verified: a real Linux 4.4 host. The seccomp filter makes statx unavailable to Node on a newer kernel, and the rest of the stack is real: kernel, filesystem, libuv fallback, and the publisher. The issue also notes that the failing run did not record which stat field differed. The probe above shows birthtime is the field that moves under this condition.

Test cost and exact-head CI

  • pnpm test src/infra/sqlite-snapshot.transfer.test.ts --maxWorkers=1 at 946d8607516 (macOS arm64): 10 tests pass. Wall time was 31.4 s cold (Vitest 28.3 s, 90% transform), then 7.80 s and 7.35 s warm (Vitest 5.95 s and 5.69 s). The two new tests take about 185 ms and 175 ms. They add no timers, sleeps, fixtures, or Gateway boots.
  • CI run 37131972422 on 946d8607516: the file ran in its own shard of checks-node-changed-3 on a Linux x64 runner. There, 10 tests passed in 3.56 s of Vitest time (4.81 s shard wrapper), and the new tests took 134 ms and 124 ms. The whole job took 2 m 24 s, including other shards.

@clawsweeper

clawsweeper Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P0 Emergency: data loss, security bypass, crash loop, or unusable core runtime. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 3, 2026
@clawsweeper

clawsweeper Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 4, 2026, 10:04 PM ET / October 5, 2026, 02:04 UTC (Revision 4).

ClawSweeper review

What this changes

The PR makes SQLite snapshot transfers tolerate unstable timestamps while retaining file identity, size, and content checks.

Merge readiness

✅ Ready for maintainer review

This PR remains necessary: current main retains the failing birthtime comparison. The repair preserves content verification, has convincing Linux boundary proof, and introduces no actionable correctness finding.

Likely related people: steipete and fuller-stack-dev (medium-confidence routing).

Priority: P0
Reviewed head: 284bd601a89fb3923ca21e98085944b1fff9eb26

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, useful repair with strong Linux boundary evidence and no blocking correctness findings.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (terminal): The captured Linux Docker proof exercises the real Doctor lock and backup owner through snapshot hard-link publication with statx unavailable, showing failure before and a saved backup after. The final patch retains that repair and supplements it with byte-mutation rejection. No stored-data format, schema, or migration contract changes; full historical installation upgrade coverage is outside this focused transfer proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The captured Linux Docker proof exercises the real Doctor lock and backup owner through snapshot hard-link publication with statx unavailable, showing failure before and a saved backup after. The final patch retains that repair and supplements it with byte-mutation rejection. No stored-data format, schema, or migration contract changes; full historical installation upgrade coverage is outside this focused transfer proof.
Evidence reviewed 8 items Pinned introduced patch: The merge-base-to-head patch removes timestamp comparisons from the existing transfer fingerprint and extends the publication tests; unrelated base drift was excluded.
Current main still needs the repair: Fetched main still requires equal mtimeMs and birthtimeMs in the transfer fingerprint. Nearby database-identity repairs have not removed this comparison.
Content and ownership safeguards remain: Publication checks the transferred image against expected content, rehashes after validation, and hashes the final target after removing the staging hard link. Pinned source checks and fingerprint-protected target cleanup remain unchanged.
Findings None None.
Security None None.

How this fits together

Doctor creates verified SQLite rollback backups before migrating existing databases. Snapshot publication transfers a private database image to its backup location and verifies its identity and bytes before reporting success.

flowchart TD
  A[Doctor migration request] --> B[Maintenance ownership]
  B --> C[Private SQLite snapshot]
  C --> D[Hard link or copy transfer]
  D --> E[Identity and content verification]
  E --> F[Verified rollback backup]
  E --> G[Reject changed image]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source -5, Tests +46. Total +41 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 3 8 -5
Tests 1 53 7 +46
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 56 15 +41

Review metrics

None.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #164319
Summary: This PR is the explicit candidate fix for the canonical snapshot-transfer report; broader Synology reports contain additional identity failures outside this patch.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best possible solution:

Use link-stable file identity for intermediate transfer checks and verified bytes as the snapshot-content contract.

Do we have a high-confidence way to reproduce the issue?

Yes: source identifies the hard-link/unlink birthtime mismatch, and the contributor supplies real Linux before/after Doctor-backup traces. This review did not execute a current-main reproduction.

Is this the best way to solve the issue?

Yes: the repair stays in the snapshot owner, removes unreliable metadata comparisons, and retains independent byte verification and cleanup ownership.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 43856f78ec62.

Labels

Label changes:

No label changes.

Label justifications:

  • P0: The reported official-release upgrade is blocked at its mandatory rollback backup, and Doctor recovery fails on affected Linux hosts.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The captured Linux Docker proof exercises the real Doctor lock and backup owner through snapshot hard-link publication with statx unavailable, showing failure before and a saved backup after. The final patch retains that repair and supplements it with byte-mutation rejection. No stored-data format, schema, or migration contract changes; full historical installation upgrade coverage is outside this focused transfer proof.
  • proof: sufficient: Contributor real behavior proof is sufficient. The captured Linux Docker proof exercises the real Doctor lock and backup owner through snapshot hard-link publication with statx unavailable, showing failure before and a saved backup after. The final patch retains that repair and supplements it with byte-mutation rejection. No stored-data format, schema, or migration contract changes; full historical installation upgrade coverage is outside this focused transfer proof.

Evidence

What I checked:

  • Pinned introduced patch: The merge-base-to-head patch removes timestamp comparisons from the existing transfer fingerprint and extends the publication tests; unrelated base drift was excluded. (src/infra/sqlite-snapshot-file.ts:144, 284bd601a89f)
  • Current main still needs the repair: Fetched main still requires equal mtimeMs and birthtimeMs in the transfer fingerprint. Nearby database-identity repairs have not removed this comparison. (src/infra/sqlite-snapshot-file.ts:149, 43856f78ec62)
  • Content and ownership safeguards remain: Publication checks the transferred image against expected content, rehashes after validation, and hashes the final target after removing the staging hard link. Pinned source checks and fingerprint-protected target cleanup remain unchanged. (src/infra/sqlite-snapshot.ts:365, 284bd601a89f)
  • Meaningful regression coverage: The existing publication table now covers zero and ctime-derived birthtime using real hard links. A separate negative control changes actual bytes without changing file size and expects a hash mismatch. (src/infra/sqlite-snapshot.transfer.test.ts:243, 284bd601a89f)
  • Complete captured proof inspected: The full GitHub body matches captured SHA-256 9beca84107dbb844c8894bef539273c33f17ec3a198f4bd8dd95d412435e6b22. Its Linux Docker trace exercises the real Doctor maintenance lock and backup owner with statx returning ENOSYS: the earlier main fails and the contributor repair saves the backup. The matrix covers overlayfs and virtiofs with statx available and unavailable. Final-head supplemental validation reports 11 passing transfer cases and retained sibling checks. The proof does not claim a physical Linux 4.4 host or full historical CLI upgrade. (284bd601a89f)
  • Dependency publication contract: The target directly imports sameFileIdentity and delegates publication to fs-safe. npm metadata and GitHub full_name verify dependency ownership. The inspected dependency compares device/inode, pins source and target identities, and returns its receipt before OpenClaw retires the source link; its repository policy requires preserving those safeguards. (src/publish-file.ts, 223a30531ea8)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • fuller-stack-dev: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (3 earlier review cycles)
  • reviewed 2026-10-03T15:09:47.552Z sha 946d8607516f6e9e15aa9e8650ded5fb9728c668 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-03T16:13:53.416Z sha 946d8607516f6e9e15aa9e8650ded5fb9728c668 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-04T09:01:53.416Z sha b9d53ba :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 3, 2026
@steipete
steipete merged commit d4ce3b2 into openclaw:main Oct 5, 2026
131 of 132 checks passed
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 5, 2026
RomneyDa pushed a commit that referenced this pull request Oct 6, 2026
…report file birthtime (#164363)

Closes #164319

Co-authored-by: Jay Zhou <[email protected]>
(cherry picked from commit d4ce3b2)
RomneyDa pushed a commit that referenced this pull request Oct 11, 2026
…on membership store (#165775)

Closes #158239

Reported by @donquiche61.

Backport of 8b2f553 (#165775) adapted for 2026.10.2.
The release line already has the relaxed sameFileStatFingerprint (#164363) and
readDatabaseIdentityBirthtime; final publication and read-time drift checks now
use sameFileStatFingerprint instead of raw birthtime compares. The
sqlite-file-generation hunk is omitted: the release line still compares ctime
there (pre-#164823), so its birthtime compare is redundant with that check.

(cherry picked from commit 8b2f553)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P0 Emergency: data loss, security bypass, crash loop, or unusable core runtime. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: doctor --fix rejects SQLite snapshot during hard-link transfer on Linux without statx

2 participants