Repository navigation
docs(security): document scope_distance as a trusted input - #324
Merged
BaaRai merged 2 commits intoNov 18, 2026
Merged
Conversation
States the trust boundary discussed in BaaRai#317: - output.json's scope_distance is the integrated scanner's own verdict and is ingested as-is; in-scope events are not re-checked against ARTEX's rule set. - The enforced boundary is the task allow-list: assets reach the graph (insert_assets) only through EvaluateAssetGate, and rejects are recorded as in_scope_not_asset. - The no-allow-list case is an accepted gap, with operator guidance: configure an allow-list per task or review output.json before feeding it to ARTEX. Cross-checking ingested events against ARTEX's rule set would redefine existing scanner configurations, so it is a deliberate design question, not an accepted vulnerability. Option 2 as picked on BaaRai#317; documentation only.
in_scope_not_asset counts in-scope events that are not asset types, not gate rejects: a rejected candidate comes back as an insertion forbidden error in the insert_assets result. EvaluateAssetGate also applies block rules whether or not an allow-list exists, so the no-allow-list gap is about the allow rule, not the whole gate.
BaaRai
approved these changes
Nov 18, 2026
BaaRai
left a comment
Owner
There was a problem hiding this comment.
Reviewed and merged with one correction on top: in_scope_not_asset is the count of in-scope events that are not asset types, not the gate rejects (a rejected asset comes back as an insertion forbidden error in the insert_assets result), and EvaluateAssetGate applies block rules whether or not an allow-list is set. The rest reads right, including the accepted gap. Thanks.
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.
Follow-up to #317, where the maintainer reply picked option 2 and asked us to pick one: documentation only, no behaviour change.
The PR adds a Trusted Inputs and Scope Enforcement section to SECURITY.md stating exactly the three things the reply asked to name:
output.json'sscope_distanceis the integrated scanner's own verdict and is trusted — in-scope events are ingested as-is, not re-checked against ARTEX's rule set.insert_assets) only throughEvaluateAssetGate, and rejects are recorded asin_scope_not_asset.output.jsonbefore feeding it to ARTEX); cross-checking ingested events against ARTEX's own rule set would redefine existing-s/--no-scopeconfigurations, so it stays a deliberate design question, not an accepted vulnerability.Scoped to SECURITY.md only, per the reply's 'keep the PR to that path only'.