Skip to content

docs(security): document scope_distance as a trusted input - #324

Merged
BaaRai merged 2 commits into
BaaRai:mainfrom
00xcyd:docs/317-scope-distance-trusted-input
Nov 18, 2026
Merged

BaaRai merged 2 commits into
BaaRai:mainfrom
00xcyd:docs/317-scope-distance-trusted-input

Conversation

@00xcyd

@00xcyd 00xcyd commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

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:

  1. output.json's scope_distance is the integrated scanner's own verdict and is trusted — in-scope events are ingested as-is, not re-checked against ARTEX's rule set.
  2. The enforced trust boundary is the task allow-list: assets reach the graph (insert_assets) only through EvaluateAssetGate, and rejects are recorded as in_scope_not_asset.
  3. 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 own rule set would redefine existing -s/--no-scope configurations, 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'.

00xcyd and others added 2 commits November 18, 2026 03:15
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 BaaRai left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@BaaRai
BaaRai merged commit 230ba39 into BaaRai:main Nov 18, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants