Conversation
This branch has not been deployed
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
Separate
strict_modefrom opt-inBLOCKpolicies in the configuration and compliance docs. Documentation accuracy only — do not changestrict_modebehavior.docs/compliance/owasp-asi06.md— replace "Instrict_mode, unverified context is rejected entirely." with wording that says unverified context is flagged (MISSING/INCOMPLETE) and still logged; rejecting it requires an opt-inBLOCK-level policy;strict_modeonly re-raises internal governance exceptions such as storage failures.docs/guide/configuration.md— rewrite### strict_modeso it no longer lists "provenance validation failures" as somethingstrict_modeturns into exceptions, and soften the tip that impliedstrict_modeis what blocks the agent workflow for bad provenance.docs/compliance/eu-ai-act.md— fix the Article 9 sample comment (strict_mode=True, # Governance failures raise exceptions) so it no longer impliesVALID/INCOMPLETE/MISSINGverdicts raise understrict_mode.Why
Closes #200. In
ContextTrail.log/_log_internal:_enforce_policiesmay raisePolicyViolationonly when a configured policy usesEnforcementLevel.BLOCK.PolicyViolationis re-raised immediately and never goes through_handle_error._handle_error(used for other exceptions) increments the error count, callson_error, and only ifstrict_modere-raises that exception.So
MISSING/STALErecords still persist understrict_mode=Truewith noBLOCKpolicy. Confusing the two leads operators to believe they have a reject-on-missing gate when they only have observe-and-flag behavior.Related to #199 but not a duplicate — #199 covers the LLM-gate framing; this one is specifically the
strict_modevs policyBLOCKconfusion in the configuration and compliance pages.How checked
src/provena/trail.py(_handle_error,log/_log_internal,_enforce_policies) andsrc/provena/policy.py(EnforcementLevel.BLOCK,PolicyViolation).strict_modebehavior unchanged.Scope
docs/guide/configuration.md(### strict_mode)docs/compliance/owasp-asi06.md("How Provena Addresses ASI06")docs/compliance/eu-ai-act.md(Article 9strict_modesample comment)