Skip to content

Elixir :os.putenv System Config Mutation: leading-boundary miss fixed (Part of #4108) - #7821

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/4108-20261105T1721Z
Nov 5, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/4108-20261105T1721Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #4108 (slice 20, System Config Mutation).

Fixes the elixir system_config_mutation rule: its leading \b sat before the colon of :os.putenv, so an Erlang-module call never matched. The alternation is now (?:\b(?:System.put_env|Application.put_env|File.(chmod|chown|rm_rf))|(?<![\w:]):os\.putenv)\b. The strict xfail is removed and the test now also asserts foo:os.putenv stays 0.

Class / Sibling gaps

Class: a leading \b placed before a non-word first character (:, ~, @, $) so the alternative can never match at string start or after a space. Members in this rule: :os.putenv (fixed here); the other alternatives start with a word character and were fine. Sibling gaps: other elixir rules beginning \b(?:...|:erlang_mod...) (e.g. :rpc.call in ipc_rpc_bridges, :gen_tcp in the same rule, :timer. in time_date_logic) have the same shape and are not fixed here; they need their own real-scan probes and golden attribution.

Evidence

Real scan: tests/extraction/languages/test_system_config_mutation_mainstream_real_scan_4108.py 13 passed. Golden: crucible_check.py (no update) PASS on both full_precision and zero_dependency legs, zero diff, no re-bless.

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 5, 2026
@squid-shepherd

squid-shepherd Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 5, 2026 17:28
@squid-shepherd

squid-shepherd Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 5, 2026 17:28
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd
squid-shepherd Bot merged commit 7eb990a into main Nov 5, 2026
120 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/4108-20261105T1721Z branch November 5, 2026 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant