Repository navigation
docs(openspec): plan #1976 Add process-safety ast-grep rules - #5591
Merged
Merged
Conversation
Owner
|
An agent vetted this plan before a merge (shepherd, 2026-11-14). Verdict: needs fix. Each point below blocks a correct build.
Points that do not block:
|
dan-petty
force-pushed
the
feat/1976-add-ast-grep-rules-for-rlimit
branch
from
November 14, 2026 13:50
b3c839f to
eebe14a
Compare
Owner
|
An agent vetted this plan before a merge (2026-11-14). Verdict: ready.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plans #1976
ARCHITECTURE.md section 7.3 holds three process-safety rules that no check enforces: never set RLIMIT_NPROC, never set O_NONBLOCK on descriptors 0 to 2, and never signal a process group outside the guarded helper. The constructs row of devops ci already runs ast-grep, so three rules join that run: process-setrlimit-nproc, process-nonblocking-std-fd and process-killpg-guarded. Each rule holds src/**, sets severity error, has a case file with a valid and an invalid case, and has one entry in CONST_AST_GREP_RULE_FILES and one in VIOLATIONS of the construct gate. The os.killpg rule allows a call inside the four guard-holding functions of the core process module; the guard values stay with test_terminate_process_group_guards_and_lifecycle. #1976
Change:
openspec/changes/1976-add-ast-grep-rules-for-rlimit/