Repository navigation
high_risk_execution contract (#2878): state the row, audit 46 rules, re-bless - #2880
Merged
Merged
Conversation
…re-bless One hit is a site that hands control out of the program's own semantics -- ends/halts the process, runs text or another program as code, loads or rewrites code at run time, destroys a whole store, or escapes the runtime's protections -- in the primitive's own invocation or statement form. Six corollaries in docs/high_risk_execution_rule_contract.md; 36 rules edited (identifier/prose collisions anchored, goto out of csharp/fortran, deletion below the store handed to cleanup's question #2843, the family's own forms added where a sibling already counted them); apex's cleanup rule releases emptyRecycleBin. Sheet row stated (12/68). Golden masters re-blessed: 644 diffs, 0 topological, all high_risk_execution-family, no aperture change. Closes #2878 Co-Authored-By: Claude Fable 5.1 <[email protected]>
Contributor
Closed
13 of 24 tasks
Owner
Author
|
CI note: every check is green except one of the two |
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.
Phase 3 of #2812: the
high_risk_executionsheet row goesdraft->stated(12/68). Contract, corollaries and the 46-language audit:docs/high_risk_execution_rule_contract.md.Closes #2878
The contract
Six corollaries: C1 five families, one owner each (a form invisible to one language but counted by its siblings joins: python
sys.exit, gopanic(, phpeval(/exit/die, fortranSTOP, cexit(/abort(); C2 the site is the invocation -- a bound alias, a type/property reference, a landing point (setjmp) or a bare identifier is not one, and where an ordinary identifier can carry the name the rule anchors on the form (cpp/c/perl/php call parens, cssexpression(/behavior:, js.innerHTML =and statementdebugger, zigpanic(not.panic, cobol/tcl hyphen guards, groovy's literal receiver); C3 a jump is nobody's signal (gotoleaves csharp and fortran; reverses #2822 C3's hand-off); C4 deletion below the store is cleanup's question (#2843) -- the four shell-carrying languages now agree on root-onlyrm -rf; C5 not danger (trace,alert,answer,memcpy,clear all,exitCode, a pragma, a hard-coded ID,undelete); C6 one verified owner (apexDatabase.query-> safety_bypasses alone,emptyRecycleBin-> this signal alone;evalin matlab/ruby/shell/tcl stays safety_bypasses' by ledger, #2879).The open cell
agc_assembly2 vs 3 was inherency mis-marked as extraction: the corpus's string decoy asserts +1 everywhere (strings count, #2535) and agc cannot carry one (string-decoy-unplantable-no-literal-surface), butbatch4-dual-keyword-overlapsstill cross-productedhigh_risk_executionxagc_assembly. C6 retires apex's dual, the signal leaves batch4's union on the corpus side, and the cell reads what its own entry says. No rule moves it.What the crucible measured with no red cell (raw hits,
rule_probe.py --compare)cpp 18 -> 1 (Godot's
bool exit = false; exit = true;, prose), c 1 -> 32 (the one hit was"Load system defaults";exit(/abort(join), csharp 20 -> 0 (allgoto/@goto), groovy 22 -> 2 (retrofit's.execute().body()), zig 203 -> 82 (.panictags,pub fn panic), perl 28 -> 9 (config prose), shell 147 -> 77 (70 non-rootrm -rf "${...}",kill -0,--sudo-service-user), tcl 118 -> 82, cobol 310 -> 257 (ALTER-TEST-INIT.names), css 5 -> 0 (scroll-behavior:), php 16 -> 43 (backticks in SQL strings out;exit;/die(/eval(in), go 4 -> 175 (panic(), rust 69 -> 101 (unreachable!), livecode 109 -> 122 (shell(in,answerout), powershell 213 -> 228 (Start-Process), typescript 9 -> 7, fortran 3 -> 4, haskell 0 -> 2, matlab 3 -> 2, abap 1 -> 0, solidity 0 -> 1, lua 239 -> 241, python 11 -> 12, ruby 4 -> 3. 36 rules edited (+ apex's cleanup rule releasingemptyRecycleBin), each with a# #2878 contractcomment naming its corollary.Tests
tests/extraction/languages/test_high_risk_execution_contract_2878.py: 33 languages' positives/negatives, one-site-one-hit counts, other-owner duals, markdown absence, ReDoS detonation over 31 shared payloads.stated,how_to_add_a_language.mdcomment carries the sentence,signal_contract_auditbaseline 58 -> 57,--ciclean.audit_check.pyall clear.Differential Scan (bless scope,
bless_scope.py)644 differences, 0 topological, all in the high_risk_execution family: leaf keys
High-Risk Execution Commands158,Error & Exception Exposure188 (the safety score reads danger at 4x),safety_score58,Testing Exposure37 (_calc_verificationadds file-level danger),Mitigated Danger21 /Amplified Rce9 (proximity tallies follow the sites), the two weighted views,verification3, summary aggregates. By language: shell 53, cobol 42, livecode 34, tcl 30, rust 29, groovy 22, zig 21, lua 20, powershell 19, typescript 15, php 14, perl 13, go 13, fortran 11, c 10, cpp 8, css 5 -- the direction of each is the audit table's. Newly parsed / newly excluded: none. Both fixtures blessed from the clean v1.2.0 crucible worktree.Cross-repo
Label
rosetta:rebless-owed. Companion: keyword-rosetta#103 (rebless/gitgalaxy-2878-high-risk-execution) -- no manifest cell moves (2 planted + 1 decoy everywhere; agc 2 by inherency); 21 plants/decoys re-planted to the contract (decoys carry the anchored form where the rule now needs one), 9 comment decoys re-authored to keep their 2-rule floor, ledger:high-risk-execution-contract-2878added, batch4 loseshigh_risk_executionand apex, fortran-goto and string-decoy entries annotated. Engine merges first; the corpus PR goes green against engine main; bias-history regen republishes the report (expected open-defect share 17 -> 16 of 2639). Deferred menu: #2879.🤖 Generated with Claude Code