Repository navigation
slide rollback: a fact graph is removed only when its own folders file names the folder - #3073
Merged
Merged
Conversation
Owner
Author
|
Review: the rule is right, and the cases it now leaves alone err toward keeping the user's data: graphs taught before this version, and folders moved or reached through another mount. Two fixes before landing:
The attack paths hold: a planted list can't vouch for a graph outside the folder, and a symlinked file only loses its link. We'll push both fixes.
|
Owner
Author
|
Review fixes pushed (f54cdf7):
Results:
|
ashhart
marked this pull request as ready for review
November 13, 2026 00:01
…e names the folder A rollback unlinked every path its snapshot's graphs list named that read as a fact graph. The list sits in the model folder, so a folder copied or downloaded with a snapshot inside could name any fact graph of the user's. A --slide server now also writes GRAPH.folders beside the fact graph, listing the folders that learned from it, and a rollback removes a listed graph only when that file names the folder. The ones it leaves are printed. A graph taught by an earlier version has no such file until a server next teaches the folder.
…and a folders file it cannot read leaves the graph After a rollback removed a graph, its folders file kept the other folders' names, so a graph made later at the same path took them on and an old folder's rollback could remove it; the file now goes with the graph. A folders file that cannot be read stopped a rollback that had already put the files back; it now counts as one that does not name the folder, the graph stays, and the rollback prints why. A folders file left behind after its graph is removed is printed too, not fatal. test-originals-host runs the snapshot and rollback tests on Linux and macOS.
ashhart
force-pushed
the
security/rollback-graphs
branch
from
November 13, 2026 10:55
f54cdf7 to
06b454d
Compare
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.
What this changes
Before:
tensorfold slide rollbackunlinked every path its snapshot'sgraphslist named that read as a fact graph. The list sits in the model folder, so a folder copied or downloaded with a snapshot inside could name any fact graph of the user's. After: a--slideserver also writesGRAPH.foldersbeside the fact graph, listing the folders that learned from it, and a rollback removes a listed graph only when that file names the folder. The ones it leaves are printed.SECURITY.mdasks for private reports, so there is no public issue.atc overlap --json: not run.Checks on this head
61025cb29b69a17a7a0b5d8d1a3eb0b4bd0366c7python3 tools/zig/lean_check.py, on the base and on this head: 345 on the base, 345 on this head, 0 new.zig fmt --checkandgit diff --check: passzig build test-server-cpu: 5/5 steps succeeded; 1325/1332 tests passed (7 skipped)zig build test-golden test-server-security test-pull-security: 76/76 steps succeededzig build check-native-cuda-host compile-flashnext-mtp-parity-host compile-glm-native-open: 11/11 steps succeededzig build native: 66/66 steps succeededsecurity: a rollback leaves a fact graph its snapshot lists unless the graph's own side names the folderzig build testand every step that runs on a GPU were not run: this Mac's GPU was serving a model, and no CUDA, ROCm or Intel hardware was available.Receipt
n/a. This change cannot reach inference: it is the rollback command and the snapshot's bookkeeping before a lesson.
Checklist
Notes for the reviewer
.foldersfile until a--slideserver next teaches the folder. A rollback before that leaves the graph and prints it.docs/living-weights.mdsays so.slide_graph.zigis at 599 lines. A field in the graph would do the same job if you prefer it there.Suggested changelog line
tensorfold slide rollbackremoves a fact graph only when theGRAPH.foldersfile beside it lists the folder, and prints the ones it leaves.