Skip to content
youdede

Instruction Config Integrity Guard

OperationsHookv1.0.0

A deterministic ConfigChange gate for explicit hook and permission bypasses plus a fail-open InstructionsLoaded observer for project instruction files outside the active project boundary.

Runs on

Scope
$npx @youdede/toolkit add instruction-config-integrity-guard --target claude-code

What it does

Guard project configuration against explicit enforcement bypasses and observe instruction path drift.

When it fires

  • setup
  • operations
  • maintenance

How it behaves

Reject explicit project configuration bypasses and observe unverifiable project instruction paths.

It does not block managed policy changes or claim authority over enterprise policy settings.

It does not rewrite settings, instruction files, permissions, or hook configuration.

It does not inspect arbitrary project files or interpret natural-language instructions.

It does not claim that accepted configuration is secure beyond its explicit bounded rules.

Configuration

targets/claude-code/instruction-config-integrity-guard.mjsnode · read-only

Version
1.0.0
Requires
node
Licence
RiskThis automatic gate guards project configuration against explicit enforcement bypasses and observe instruction path drift; a false denial can interrupt legitimate work, but it does not execute the blocked action.
Medium
ModeHow it works: fixed rules, model instructions, or both.
Deterministic only
Behaviour
Enforces, blocks on violation
On failure
Denies and blocks
LatencyTo guard project configuration against explicit enforcement bypasses and observe instruction path drift, the entrypoint inspects bounded session, tool, or repository state.
Bounded
Data retentionWhether data remains after use and who manages its storage.
Not retained

Often used with

All in Operations