Mind · Inference

HackDetect

Detect shortcuts that break downstream invariants

Definition

Mechanism

A meta-check that detects when an agent is solving for 'make it work' instead of 'do it right'. Triggered when the agent modifies interface code (adapters, exporters, validators) rather than fixing source data or upstream logic. The hack appears to succeed locally but breaks invariants that downstream systems depend on, creating negative externalities. It monitors the InputGuard layer for anomalies, triggering EjectionSeat if the agent attempts to bypass invariants via code patching.

Preconditions

  1. Attack signatures/anomaly detection
  2. System monitoring

Postconditions

  1. Alert raised
  2. Intrusion identified

Invariants

  1. Detection triggers defensive response
  2. False positive rate minimized

Risks

Failure modes

  1. False Positives

    Legitimate adapter changes flagged as hacks.

  2. Hack Blindness

    Novel hack patterns evade detection.

  3. Justification Theater

    Agent rationalizes hack as 'pragmatic'.

Relationships

Builds on

References

Agent

Autonomous Goal-Directed Entity

Infrastructure

InputGuard

Input validation and sanitization

Infrastructure

System

Complex whole of interacting parts

Nothing in this library builds on this pattern yet.

Reference

Identity

Ref
HackDetect#1778
Sema ID
sema:HackDetect#mh:SHA-256:17781b110b307b405fa83ece40419c64370baa612d923b1e513392893fcaacba
Ring
2
Tier
1
Updated
2026-11-11
Supersedes
  • sema:HackDetect#mh:SHA-256:c89cffb0b0f44031d64b88c435c8f992ec540dd94a8993ecd5f5f6bbb557ff83
  • sema:HackDetect#mh:SHA-256:105da91807253d1d7ab96a53bb46ab7f60e1cd3fa83cd78affc96e887951116e
  • sema:HackDetect#mh:SHA-256:a488f5c7cc85b98461fd84fe650423ece6a96ad1d64a9a0dd6a10856d34ed87b
  • sema:HackDetect#mh:SHA-256:b7d777a40cff7df013903736c7cd026d53e89b50088d32ebc33bce7a352c23e3
  • sema:HackDetect#mh:SHA-256:a012f0b7bb89cc68974353c71a4b5c2ba1fc74e8797c1a5f39b3a27bc53258b6
  • sema:HackDetect#mh:SHA-256:acf46b135a475ba78987dad8a79d0741c762ea19a685576b37b9ba90fa87acbe