Scope
How pair scoping prevents guardrail state and cache files from bleeding across pairs and modes.
Why scope exists
What “scope” is (in practice)
Where scope comes from
Scope key construction
_scope.py helpers
_scope.py helperspair_scope() -> str
pair_scope() -> strpair_key() -> str
pair_key() -> strscoped_file(prefix: str, ext: str) -> str
scoped_file(prefix: str, ext: str) -> strWhich files are scoped vs global
Usually scoped
Not scoped
Pair key vs scope (they’re not the same)
Pair key
Scope
Common confusion patterns
“Why does my file name include the pair index?”
“Why do I have multiple phantom files for the same provider pair?”
“Why is there a blackbox file with PAIR but not SCOPE?”
Debugging scope issues
Operational advice
Related pages
Last updated
Was this helpful?