fix(import): make checkpoints staging-first (#1728)#1731
Open
diazMelgarejo wants to merge 1 commit into
Open
Conversation
This was referenced Jun 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1728.
Summary
gbrain import <dir>target once at import start as an absolute real path, then use that canonical value for collection, checkpoint load/save, ingest logging, and git continuity.schema_version: 1,owner: "gbrain", andkind: "import"while preserving safe legacy path-based checkpoint reads.docs/guides/live-sync.md.docs/reference/gbrain-1728-submission-package.mdwith the autoplan-style package matching the gstack v0.42.16.0 feat(doctor): brain health as a solved problem — cause-ranked doctor + OOM-loop line + auto-drain + pool-reap (#1685) #1802 companion.Tests
bun test test/import-checkpoint.test.ts(23 pass)bun run typecheckcurrently fails on pre-existingtest/e2e/openclaw-plugin-load-real.test.ts:281parameter type incompatibility, unrelated to this change.Notes
This is the upstream prevention half of the gstack #1802 incident. gstack PR #1827 guards its own deletion boundary; this PR fixes the producer-side checkpoint identity contract.
Cross-links
dircan resolve to CWD/repo root on SIGTERM — enforce staging-first checkpointing #1728Cross-links
dircan resolve to CWD/repo root on SIGTERM — enforce staging-first checkpointing #1728