Skip to content

Ruby import: YAML.load / JSON.load calls and a variable named load count as an import #9438

Backlog

Description

@squid-protocol

SOP-002-v1 gap-cell decoy suite (epic #8863), Ruby batch.

Leak. Ruby import is \b(?:require|require_relative|load|autoload)\b[^'"]*['"], so any load followed by a quote later on the line counts, including parser calls and a variable named load. A codec call is serialization_parsing, not a binding of a file (import contract, docs/import_rule_contract.md).

data = YAML.load("a: 1")   # expected 0, actual 1
data = JSON.load("{}")     # expected 0, actual 1
load = 'x'                 # expected 0, actual 1

Pinned by strict xfail in tests/decoys/test_decoy_ruby.py.

Activity

  1. added
    bug
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions