Add signed bounded hosted context engine and private daemon - #78
Merged
Merged
Conversation
AetherAI3
marked this pull request as ready for review
September 6, 2026 09:19
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.
Adds the optional hosted context engine used by the SC-CONTEXT-01 / APR-10 integration. A signed reservation and exact project binding now lead to encrypted, lane-filtered retrieval capsules, durable checkpoints, higher-fence restoration and independently verified sealing. The existing local Session API remains available.
The daemon uses private Unix-domain IPC and has a hardened systemd template. Storage metadata is authenticated with the ciphertext; startup and read-time integrity failures quarantine the affected cycle. The package retains its own import/command namespace and exports closed schemas plus signed interoperability fixtures.
Validation: 613 tests passed with four existing skips in an isolated package installation; Ruff and mypy passed. A separate Linux daemon/engine run passed all 14 tests, including stale socket recovery and live-listener exclusion. A synthetic 400-record Linux measurement observed 219 ms retrieval p95 and about 72 MiB peak RSS.
This is a draft bounded-canary implementation. It does not enable production, establish billion-token reach, or satisfy the master specification's full rollout definition of done. Per-cycle managed-key erasure/holds, representative scale and chaos measurements, and signed production gates remain required. See docs/HOSTED_CONTEXT.md for the operational contract and limits.