LOCAL PRE-COMMIT GUARD

Workflow & Deployment YAML in Pre-Commit Git Hooks

On local developer workstations prior to commit, staging raw Workflow & Deployment YAML files exposes production credentials before git objects are written. Copying unredacted code containing `AWS_ACCESS_KEY_ID` into AI tools for syntax validation leaks secrets into external buffers. StackEngine pre-commit hooks intercept staged changes in <50ms, ensuring plaintext credentials like `__SE_API_B3F019__` never enter the repository history.

Latency: <15ms WASM PassVault: Ephemeral In-MemoryZero-Plaintext-EgressSource-Available BSL 1.1

1. Workstation Setup & Local CLI

Install the deterministic client-side CLI. Runs 100% offline with zero cloud telemetry and zero plaintext egress:

npm i -g stackengine
Primary Execution Command
stackengine init-hook

Free for Individual Developers

Ad-hoc CLI, local memory vaults, and standard heuristic redaction are free forever.

Local Pre-Commit Hook Interception

Exit 1 Blocking
.pre-commit-config.yaml
repos:
  - repo: local
    hooks:
      - id: stackengine-secret-scan
        name: StackEngine Pre-Commit Credential Blocker
        entry: stackengine scan
        language: system
        stages: [pre-commit]
$ git commit -m "feat: update ci-deploy.yml"
[stackengine-secret-scan] Checking staged files...
[INTERCEPTED] API_KEY in ci-deploy.yml
Hook failed! Staged commit blocked. Run 'stackengine redact' or parameterize secret.
git commit aborted.

2. Local AST Scalar Extraction & Shadow Tokenization

Deterministic Verified Baseline

StackEngine installs a standalone hook via `.pre-commit-config.yaml` or `stackengine init-hook`. During staging, `Tier0Sentinel` intercepts credential patterns in <50ms, exiting with code 1 before git commit objects are created. The developer resolves the block by executing `stackengine redact` or parameterizing the secret locally.

AST Parser (Baseline)
tree-sitter-yaml.wasm
Execution Latency (Baseline)
1.39ms
Intercepted Tokens (Baseline)
3 found
Vault Lifecycle
10m Sliding TTL