os-sdlc: parse_options shallow-dups frozen defaults — shared mutable --tests array #119

Open
opened 2026-07-23 22:44:56 +00:00 by jared · 1 comment
Owner

In plugins/os-sdlc/bin/os-sdlc, parse_options does options = defaults.dup on frozen constant hashes (e.g. AC_LINT_DEFAULTS). The dup is shallow, so the :tests default [] is one shared mutable Array across all calls in a process. Currently inert (CLI exits after one command) but a landmine if any command runs twice in-process. Fix: deep-dup or build defaults per call. Found during 2026-07-23 lint refactor review.

In plugins/os-sdlc/bin/os-sdlc, parse_options does options = defaults.dup on frozen constant hashes (e.g. AC_LINT_DEFAULTS). The dup is shallow, so the :tests default [] is one shared mutable Array across all calls in a process. Currently inert (CLI exits after one command) but a landmine if any command runs twice in-process. Fix: deep-dup or build defaults per call. Found during 2026-07-23 lint refactor review.
Author
Owner

Frozen in the 2026-08-16 backlog reset — see #419 for the expiry procedure. Do not work unless a live run rediscovers this issue.

Frozen in the 2026-08-16 backlog reset — see #419 for the expiry procedure. Do not work unless a live run rediscovers this issue.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jared/cc-os#119
No description provided.