feat(context): enforce monotonic instruction provenance ceilings - #58
Draft
ruvnet wants to merge 5 commits into
Draft
feat(context): enforce monotonic instruction provenance ceilings#58ruvnet wants to merge 5 commits into
ruvnet wants to merge 5 commits into
Conversation
Owner
Author
|
Validation update for head
The first CI attempt correctly caught formatting plus missing This validates build, unit/integration, lint, MSRV, WASM, bare-metal, and dependency-audit compatibility. It does not validate the motivating paper's attack-success claims or prove end-to-end security efficacy. The PR should remain draft until MetaHarness issue 244 independently reproduces the baseline attack paths and tests the provider-bound enforcement path, including trusted root classification. |
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.
Implements the production candidate tracked in #57 and ADR 159.
What changes
Adds an additive
InstructionProvenanceprimitive torvm-contextso model-facing context reconstruction can preserve or reduce instruction authority but cannot silently increase it.The portable authority order is
Data < Agent < User < Developer < System. Ordinary transformations can only keep or lower the current ceiling. Re-upgrading requires a new root classification at an external trusted host boundary.The primitive records source category, original level, current ceiling, exact content digest, deterministic transformation lineage, and bounded depth.
Originalis reserved for root classification and cannot be synthesized through the transform API.Hashes are explicitly evidence identity only. They do not sign content and do not grant execution authority. Privileged side effects still require an independently valid RVM capability.
Tests added
Unit tests cover:
Evidence status
Motivating source:
When Context Gets Root: Privilege Escalation in LLM Harnesses, arXiv:2608.27299, submitted 2026-08-27.Evidence class: originating-team measured report. The published attack results have not yet been independently reproduced in RuV. This PR therefore makes no performance or security efficacy claim beyond the deterministic unit-level invariant.
Integration plan
After independent reproduction, enforce the same envelope in MetaHarness, Ruflo and Autogenous delegation, MCP tool outputs, Core Memory persisted state, and the RVM Context WASM provider adapter.
Promotion gate
Keep this PR draft until:
No autonomous merge or deployment.