Repository navigation
server: compaction notes and the fact graph are written owner-only through a unique temporary - #3031
Merged
Merged
Conversation
ashhart
marked this pull request as ready for review
November 12, 2026 17:30
…rough a unique temporary Both were written through a fixed .tmp name with default permissions, following links. They now go through the atomic file helper: an owner-only, uniquely named temporary that follows no link.
ashhart
force-pushed
the
security/private-state-files
branch
from
November 13, 2026 00:02
4299a43 to
1b6d609
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: compaction notes and the fact graph were written through a fixed
.tmpname with default permissions, following links. After: both go through the atomic file helper, as an owner-only, uniquely named temporary that follows no link.SECURITY.mdasks for private reports, so there is no public issue.atc overlap --json: not run.Checks on this head
4299a43c4fa63671211265c2d6385de192c539cfpython3 tools/zig/lean_check.py, on the base and on this head: 345 on the base, 345 on this head, 0 new.zig fmt --checkon 5 files: passesgit diff --check: passeszig build test-server-cpu: 5/5 steps succeeded; 1328/1335 tests passed (7 skipped)zig build check-native-cuda-host compile-flashnext-mtp-parity-host compile-glm-native-open: 11/11 steps succeededzig build test-golden test-server-security test-pull-security: 76/76 steps succeeded; 37/37 tests passedsecurity: a conversation note is owner-only and is not written through a planted linksecurity: a folder the note writer makes is the owner's alonesecurity: the fact graph is owner-only and is not written through a planted linkzig 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 how two server state files are written.
Checklist
zig build test-server-cpu: exit 1. 1,325 of 1,335 tests passed, 3 failed: the three new tests.Suggested changelog line
Server: compaction notes and the fact graph are written owner-only, through a unique temporary that follows no link.