Skip to content

New sensor design: system_config_mutation -- durable shared-infrastructure configuration change (#2486's real need; overlaps #3004) #3084

Closed

Description

@squid-protocol

Parent: #2516. Supersedes the domain need in #2486; overlaps #3004's GRANT/REVOKE half.

The need

#2486 asked for JCL CICS sensors, and its analysis comment (2026-09-06, re-verified against language-crucible v1.2.0 on 2026-09-16) showed every part of it was wrong to implement as filed: PGM=DFHCSDUP runs a fixed command language (excluded from high_risk_execution by #2751's criterion, the IDCAMS precedent), the DFHCSD/DFHRPL DDs are already captured by io + _dependency_capture, and EXCI has zero corpus occurrences. But the domain question behind it is real and currently unanswerable from the signal vocabulary: "which jobs/scripts durably reconfigure shared infrastructure?" A modernization reader looking at a CICS estate wants "this job updates the CSD" the same way a security reader wants "this script writes the registry / installs a service / grants DB privileges". Today _dependency_capture shows the job touches DFHCSD; nothing says it mutates it.

Proposed contract (draft sentence, for debate)

system_config_mutation — a site that durably alters shared system or infrastructure configuration outside the program's own state: a service/subsystem definition update, a registry or scheduler installation, a database privilege or object-security change, a kernel/runtime tunable write — at its invocation.

kind: site; phase: subsystems (or resources — decide); lifecycle: lands as declared per the #2897 model.

Candidate rules where evidence already exists or is cheap to measure:

language shape corpus evidence today
jcl PGM=DFHCSDUP (CSD update); possibly IDCAMS DEFINE/ALTER steps 6 DFHCSDUP execs / 186 crucible .jcl files
shell systemctl enable/disable, crontab, sysctl -w, update-alternatives unmeasured
powershell Set-ItemProperty HKLM:, New-Service, netsh unmeasured
cobol / jcl payloads EXEC SQL GRANT/REVOKE, PAYLOAD:GRANT 24 payload GRANTs / 4 files (verb census); cobol NATIVE:GRANT/REVOKE rows

The last row is #3004's territory: the auth-surface census found EXEC SQL GRANT/REVOKE with no base-schema owner. If this sensor's boundary includes privilege changes (they are durable shared-config mutations), one contract resolves the config half of #3004; SIGNON/VERIFY PASSWORD would still need #3004's auth-family answer.

What must be decided before any code (the #2897 checklist)

  1. Boundary clauses — the hard part. This sits between state_mutation (program-own state), globals (shared symbols), cleanup (single-item teardown) and high_risk_execution family (d) (whole-store destruction). Without C1–C6-style ownership clauses it becomes another declared domain sensors: rules whose densest match is a different construct than the sentence names (from #2897) #2898 drift row. The DFHCSDUP case is instructive: the step is fixed-command-language (not HRE), but the intent is config mutation — the sensor must own the step shape, not re-litigate HRE's exclusion.
  2. A keyword-rosetta plant — without one the row can never pass declared, and adding the key flips every rosetta cell from n/a to a scored 0 (the exact objection that kept EXCI out of ipc_rpc_bridges in Extraction hardening: jcl CICS utility execution and resources #2486). Plant design should come with the contract.
  3. Incidence measurement on both corpora before declaring (rule_probe.py-style pass for each candidate rule).
  4. Consumer question — nothing in the score layer reads it today. Remove ai_tools, ai_memory, ai_logic_loop from SIGNAL_SCHEMA -- not realistically detectable via regex #323 removed zero-producer sensors as dead weight; descriptive-only is acceptable (that is the domain-intent pack's nature), but say so explicitly in the contract row.
  5. Ripple cost — SIGNAL_SCHEMA + signal_contracts.py row + how_to_add_a_language.md sentence + golden-master re-bless + dead-key baseline + a new archetype feature dimension (non-breaking since the v2.8.1 self-describing brains, but unused until a retrain).

Out of scope

Found by: #2486's analysis (closed as superseded by this issue) + #2990/#3002/#3004's recurring "no schema slot fits" pattern.

Activity

  1. added
    legacy-modernization
    on Sep 16, 2026
  2. squid-protocol commented on Sep 18, 2026

    @squid-protocol
    OwnerAuthor

    Design record before code, per this issue's own gate. Two of the filed premises changed since 2026-09-16; the contract below reflects both.

    Contract (v1)

    system_config_mutation — a site that durably mutates shared infrastructure or subsystem configuration — a resource-definition update against a system catalog or control store, a persistent system-parameter, registry or service-configuration write — in the mutating utility's or primitive's own invocation or statement form.

    kind: site; phase: hybrid (where every post-#2897 domain sensor lives, including auth_middleware — subsystems/resources hold structural/hygiene sensors); lifecycle: declared per #2897; consumer: descriptive-only (domain-intent pack) — nothing in the score layer reads it, stated here explicitly per checklist item 4.

    Includes: PGM=DFHCSDUP, sysctl -w, Set-ItemProperty HKLM:, systemctl enable.

    EXCLUDES / boundary clauses (checklist item 1):

    neighbor clause
    auth_middleware The GRANT/REVOKE row of this issue's table is superseded by merged #3157 (closes #3004): the whole auth/privilege surface — GRANT/REVOKE, SIGNON, VERIFY PASSWORD, QUERY SECURITY — is owned by auth_middleware/def_auth (see the #3004 addendum in docs/domain_sensor_contracts.md). A privilege change never fires this signal.
    high_risk_execution This signal owns the step shape by intent, never its execution risk. #2751 stands unchanged: command executors (IKJEFT01 family, BPXBATCH, IRXJCL) stay HRE's; a fixed-command utility being destructive-capable (IDCAMS/IEHPROGM/ADRDSSU) makes it neither HRE's nor this rule's.
    state_mutation A write into state the program itself owns at runtime stays state_mutation's; this signal is a durable write outside the program's runtime into shared infrastructure.
    globals Job/scope-local symbols and environment values (JCL SET, dockerfile ENV) stay globals'.
    cleanup Single-item teardown (DISP=(...,DELETE)) stays cleanup's. Removing one durable system definition inside a config utility's payload is unowned in v1 — payload verbs remain #3002's in-stream-grammar question.
    IDCAMS Excluded in v1. IDCAMS's intent is dataset lifecycle/catalog (io/cleanup territory); DEFINE CLUSTER creates the job's own datasets, and owning it here would make the sentence and the matches disagree (#2898's shape). Catalog-level shapes (DEFINE ALIAS, ALTER) are a real boundary question — deliberately left open, not silently claimed.

    Incidence (checklist item 3) — rule_probe.py --override, Prism code stream, both corpora

    language anchored candidate crucible rosetta note
    jcl \bPGM=DFHCSDUP\b 6/186 files, 6 hits 0 (unplanted) cics-genapp cdef121–125.jcl + cbsa CBSACSD.jcl; the PGM= anchor avoids double-counting CBSACSD's //DFHCSDUP step name
    shell systemctl enable|disable, crontab (cmd-position), sysctl -w, update-alternatives 4/256 files 0 all four hits are sysctl -w; one is inside a string literal (a wrap_color message) — the #2899 FP shape
    powershell Set-ItemProperty …HKLM, New-Service, netsh (cmd-position) 2/124 files 0 one hit is a quoted list element ("New-Service",), not an invocation
    cobol/db2 GRANT/REVOKE 0 in real source — the 11 grep "hits" are LICENSE-text; moot anyway per #3157

    v1 scope decision

    • One live rule: jcl \bPGM=DFHCSDUP\b (unanchored operand style like its neighbors — PGM= sits on // continuation lines, Extraction hardening: jcl args continuation lines #2482). Ownership recorded in embedded_verb_coverage.py's PGM:* row.
    • All 38 sibling-set languages get an explicit contract-level None + one-line rationale. shell, powershell, rexx, hlasm (and cobol re EXEC CICS SET) say "deferred, see New sensor design: system_config_mutation -- durable shared-infrastructure configuration change (#2486's real need; overlaps #3004) #3084" — the surface exists but anchored corpus incidence is near-zero and FP-prone today; the rest are genuine morphological absence.
    • jcl is not in the 38-sibling set (it carries no domain-sensor keys); it lands as a deliberate 39th carrier. Parity check used: set(has("system_config_mutation")) == set(has("serialization_parsing")) | {"jcl"}.
    • No keyword-rosetta plant in v1 (checklist item 2): the row stays declared; unplanted Nones are not ledger-gated, rosetta needs nothing. A plant is the promotion path to stated if/when a consumer or the shell/powershell rules materialize.

    Model consequences (checklist item 5)

    Scope class 2 of the add-signal skill: brand-new non-sec_ key → SIGNAL_SCHEMA appended at end (97→98); candidate archetype feature set 83→84. Non-breaking at scan time (this filing's own note was right): the v2.8.1 self-describing brains classify from their own recorded feature names, so shipped brains simply never read the new key and archetypes are unchanged until retrained — no dimension mismatch, no Unclassified fallback. Retrain owed at merge, batched with the retrain already owed from #3157; the retrain PR adds the file-model dimension and re-pins EXPECTED_CONTRACT_SHA (the signal PR must not move it). DNA_SOURCES/FEATURE_NAMES model blocks stay untouched in the signal PR — adding a density feature without regenerated weights/scalers/centroids would desync the shipped brain.

    Follow-ups

    • shell + powershell rules once anchored idioms are worth owning (tracked by the deferred Nones here)
    • cobol EXEC CICS SET (mutates running-CICS resource state — same intent family)
    • sqlite PRAGMA (durable per-database tunables?) — boundary question, unfiled
    • IDCAMS catalog-level shapes (DEFINE ALIAS/ALTER) — see boundary table

    Implementation lands next on branch signal-3084 via the add-signal skill's gate order.

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

    legacy-modernization

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions