Skip to content

high_risk_execution has no stated contract: agc reads the plant while 45 languages read plant+decoy, and the rules disagree on identifiers, references, goto and deletion #2878

Closed

Description

@squid-protocol

Phase 3 of #2812, next family by the mechanical audit: high_risk_execution (sheet row draft, planted, 1 open cell of 45).

The cell

agc_assembly reads 2 against a median of 3. The corpus plants 2 and every other language reads 3 because SPEC §Decoys' string decoy asserts +1 (strings count, #2535); agc has no character-literal type and cannot carry one. The ledger already says so (string-decoy-unplantable-no-literal-surface, language-morphology → inherency), but the report reads the cell as extraction because batch4-dual-keyword-overlaps still carries high_risk_execution in its signal union (for apex Database.query) and agc_assembly in languages_seen (for RESUME, cleanup+branch), and categorize_out_of_band takes the most severe category across every entry a cell names. The #2856 A.4 cross-product shape again: the cell is inherency mis-marked, not a rule defect. Resolving apex's dual (one owner) lets high_risk_execution leave batch4's union, and the cell reads what its own entry says.

What the 46-rule audit measures with no red cell (rule_probe, both corpora, engine main bde25cb)

The sheet's sentence is "Process-killing commands and catastrophic runtime vulnerabilities" and the rules disagree on what that is:

  • Identifier and prose collisions — cpp counts Godot's bool exit = false; exit = true; return exit; (18 of 29 files' hits) and prose system/abort inside strings; c's only crucible hit is "Load system defaults"; perl counts the word system in config prose (9 of 28); groovy's bare execute is retrofit's .execute().body() and void execute() (22 hits, none a process spawn); zig's bare panic is its own compiler's .panic enum tags and pub fn panic handler (most of 203); csharp counts the verbatim identifier @goto; cobol's ALTER matches ALTER-TEST-INIT. paragraph names (the fix(standards): guard debt patterns against hyphenated identifiers (closes #2537) #2622 hyphen shape); tcl's exec matches ports_deactivate_no-exec; css's behavior matches scroll-behavior:/overscroll-behavior: (5 of 38); typescript's debugger matches the path './debugger' and innerHTML matches a read (=> element.innerHTML) and a method definition (async innerHTML(); ruby's and php's backtick form spans lines (`$`` prematch var → a 3-line "command").
  • Reference vs invocation — java's plant is a type declaration (ProcessBuilder builder;), dart's is a property read (exitCode;), python/ruby/rust/javascript/typescript plant aliases (runner = eval, let quit = process::exit;).
  • Tokens another family owns — cpp memcpy/memset (memory primitives, no danger family, counted nowhere else); haskell trace/traceShow/Debug.Trace (debug output); javascript/typescript alert; matlab clear all/clc (cleanup's, batch4 dual); livecode answer/ask (dialogs); dart exitCode; kotlin bare Runtime.getRuntime (every .availableProcessors()); apex Database.query (safety_bypasses', batch4 dual), delete/undelete (DML; undelete restores), emptyRecycleBin (cleanup's rule also claims it), a hard-coded 15/18-char ID literal; abap DELETE FROM (sqlite's cleanup rule owns the same statement); single-resource deletion — lua os.remove/os.rename, livecode delete file|url, tcl file delete -force — is cleanup contract: destruction of external state has no owner — c remove() left io (#2841 C2) but c's cleanup rule does not claim it #2843's question (cleanup: destruction of external state has no owner), and four shell-carrying languages disagree on rm -rf (shell any path, makefile root or $(, dockerfile/yaml root only; yaml's cleanup rule already owns the non-root form).
  • goto — csharp and fortran count it (branch gave it to this rule in branch has no stated contract: handler keywords, the syntax words of one conditional, and goto count as decisions in some languages and not in others #2822 C3); c, cpp, go, perl, php count it nowhere. An unconditional jump inside a unit ends nothing and executes nothing.
  • Missing the family's own forms — python has no sys.exit/os._exit/os.abort while embedded_python does (twin parity); php has no eval/exit/die/unserialize; go has no panic( while rust counts panic! and zig @panic; fortran has no STOP/ERROR STOP/CALL EXIT/EXECUTE_COMMAND_LINE; shell's kill -0 (existence probe) and kill -l count as kills.

Ask

State the contract (one sentence + corollaries: the danger families and one owner each; the invocation form where an ordinary identifier can carry the name; the decoy's +1 as the stream contract's fact, not this signal's; goto is nobody's; single-resource deletion is #2843's), audit the 46 rules against it, re-plant what was authored to the old rules (decoys carry the form where the rule now needs one), fix batch4's union so agc's cell reads inherency, land docs/high_risk_execution_rule_contract.md, flip the row to stated.

Activity

  1. added
    metrics
    core-engine
    on Sep 8, 2026
  2. added a commit that references this issue on Sep 14, 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

    core-enginemetrics

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions