Repository navigation
Isolate Continuum prompt caches per user - #922
Merged
Merged
Conversation
Derive provider-separated V2 namespaces from the encrypted client cache root and bind legacy Continuum namespaces to verified users with a process-local random secret. Apply the same cache policy to ordinary and internal model turns, remove proxy-wide cache defaults, and cover isolation and compatibility with regression tests and a Nix launcher-policy check. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
AnthonyRonning
force-pushed
the
codex-cache-salts-maple
branch
from
September 14, 2026 19:17
27a7f37 to
b74216a
Compare
Document pseudonymous correlation through the Privatemode shard header and clarify that the proxy falls back to per-request salts when no user salt is supplied. Keep cache derivation and runtime policy unchanged. Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
AnthonyRonning
marked this pull request as ready for review
September 14, 2026 23:17
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.
Summary
Isolate Privatemode/Continuum prompt-prefix caches by authenticated OpenSecret user instead of falling back to a proxy-wide shared salt.
user_cache_secretcontract; send Continuum's distinct 64-character hexadecimal namespace ascache_salt.--sharedPromptCachefrom Nitro and local macOS launchers. Explicit request salts still enable reuse; an omitted salt now gets Privatemode's isolated per-request default.Compatibility and scope
Validation
On macOS/aarch64, using the pinned component Nix shell with stateful PostgreSQL, environment, and container hooks disabled:
cargo fmt --all -- --checkRUSTFLAGS='-D warnings' cargo clippy --locked --all-targets --all-features -- -D warningsRUSTFLAGS='-D warnings' cargo test --locked --all-features: 640 passed, 23 ignoredcargo test --locked --all-features cache: 61 passednix flake show --all-systems --no-update-lock-file '.?submodules=1'nix flake check --no-update-lock-file --print-build-logs '.?submodules=1': current-host checks passed, including the new launcher-policy checknix build --no-link --no-update-lock-file '.?submodules=1#default': passed, including 640 passed, 23 ignored package tests4b72dcbb/ v1.47.0:go test -mod=readonly -tags contrast_unstable_api ./privatemode-proxy/internal/server -run '^TestChatCompletionsPromptEncryption$' -count=1passed against synthetic local HTTP fixturesbash -n entrypoint.sh, Just recipe parsing, andgit diff --checkThe ignored database/live-provider tests were not run. Live cache-hit behavior, encrypted full-stack application smoke, Linux/Nitro artifacts, and deployed proxy-binary/source correspondence remain unverified. AI assistance was used for implementation and validation.