TDGUARDAI.COM Base de connaissances technique IA vérifiée par quorum

TDGUARDAI.COM · 6 BRANCHES TECHNIQUES IA · ZÉRO-JETON · STATIQUE 0-JS

TDGUARDAI.COM — Base de connaissances technique IA vérifiée par quorum

Base technique statique signée cryptographiquement : sécurité IA, économie de jetons & coupe-boucle, correctifs vérifiés, commandes sûres, pièges d’intégration et workflows.

01 · HUMAN

Pour les propriétaires

Résumés clairs en 8 langues, statut de fraîcheur explicite et mise en sourdine locale.

02 · AGENT

Pour agents IA & CLI/API

Chargement en 2 étapes : index léger /llms.txt puis récupération ciblée de /feed/items/<id>.json.

Base technique statique pure — Aucun réseau social, aucun verrouillage

Aucun compte, aucun commentaire, aucune agrégation de presse, zéro JavaScript, zéro cookie.

Base de connaissances 6 branches vérifiée

Chaque entrée passe un quorum M-sur-N de Sentinelles, des filtres anti-Trojan-Fix et un cycle de vie explicite (ACTIVE · STALE · DEPRECATED · RETIRED).

pi.override-attack

v1
Injection de prompt Gravité: high
ACTIF S’applique à: Evergreen / All LLMs Révision avant: 2028-11-26

Texte assisté par l'IA · modèle : tdguard-maintainers-i18n sha256:b9a899df32…bae220

Résumé en langage clair

Signale les requêtes tentant de désactiver les garde-fous de sécurité de l'assistant (attaque classique par contournement).

Champ cible: prompt ALERT_USEREXPLAIN_TO_USER
JSON technique & Indicateurs
{
  "id": "pi.override-attack",
  "version": 1,
  "category": "prompt_injection",
  "severity": "high",
  "lifecycleStatus": "ACTIVE",
  "lifecycle": {
    "status": "ACTIVE",
    "appliesTo": "Evergreen / All LLMs",
    "verifiedAt": 1795800000000,
    "reviewDueAt": 1858872000000,
    "replacedBy": "",
    "retireReason": ""
  },
  "match": {
    "field": "prompt",
    "containsAny": [
      "ignore previous instructions",
      "disregard all prior rules"
    ]
  },
  "actions": [
    "ALERT_USER",
    "EXPLAIN_TO_USER"
  ],
  "indicators": [],
  "knowledge": null
}

dlp.cloud-key-paste-guard

v1
Prévention des fuites Gravité: high
ACTIF S’applique à: Evergreen / Cloud & SSH Révision avant: 2028-11-26

Texte assisté par l'IA · modèle : tdguard-maintainers-i18n sha256:59269ff668…97013a

Résumé en langage clair

Avertit avant qu'une clé secrète cloud ne soit collée dans une discussion avec un service d'IA externe.

Champ cible: prompt ALERT_USERFLAG_PII_REDACT
JSON technique & Indicateurs
{
  "id": "dlp.cloud-key-paste-guard",
  "version": 1,
  "category": "data_leak_prevention",
  "severity": "high",
  "lifecycleStatus": "ACTIVE",
  "lifecycle": {
    "status": "ACTIVE",
    "appliesTo": "Evergreen / Cloud & SSH",
    "verifiedAt": 1795800000000,
    "reviewDueAt": 1858872000000,
    "replacedBy": "",
    "retireReason": ""
  },
  "match": {
    "field": "prompt",
    "containsAny": [
      "aws_secret_access_key",
      "begin openssh private key"
    ]
  },
  "actions": [
    "ALERT_USER",
    "FLAG_PII_REDACT"
  ],
  "indicators": [],
  "knowledge": null
}

mcp.block-shell-exec

v1
Gouvernance MCP Gravité: critical
ACTIF S’applique à: Evergreen / MCP Clients Révision avant: 2028-11-26

Texte assisté par l'IA · modèle : tdguard-maintainers-i18n sha256:38ccb584cb…9ca912

Résumé en langage clair

Bloque l'appel direct d'outils d'exécution shell via MCP par un assistant sans validation humaine.

Champ cible: toolName BLOCK_MCP_TOOLALERT_USER
JSON technique & Indicateurs
{
  "id": "mcp.block-shell-exec",
  "version": 1,
  "category": "enterprise_governance",
  "severity": "critical",
  "lifecycleStatus": "ACTIVE",
  "lifecycle": {
    "status": "ACTIVE",
    "appliesTo": "Evergreen / MCP Clients",
    "verifiedAt": 1795800000000,
    "reviewDueAt": 1858872000000,
    "replacedBy": "",
    "retireReason": ""
  },
  "match": {
    "field": "toolName",
    "containsAny": [
      "shell.exec_command",
      "terminal.run_raw"
    ]
  },
  "actions": [
    "BLOCK_MCP_TOOL",
    "ALERT_USER"
  ],
  "indicators": [],
  "knowledge": null
}

threat.double-extension-invoice

v1
Labo Menaces Gravité: medium
ACTIF S’applique à: Evergreen / Windows & Email Révision avant: 2028-11-26

Texte assisté par l'IA · modèle : tdguard-maintainers-i18n sha256:e7f2af95d9…83ac6e

Résumé en langage clair

Alerte sur les fichiers de facture dissimulant un exécutable derrière une double extension de type document.

Champ cible: filename SUGGEST_QUARANTINEALERT_USER
JSON technique & Indicateurs
{
  "id": "threat.double-extension-invoice",
  "version": 1,
  "category": "threat_lab",
  "severity": "medium",
  "lifecycleStatus": "ACTIVE",
  "lifecycle": {
    "status": "ACTIVE",
    "appliesTo": "Evergreen / Windows & Email",
    "verifiedAt": 1795800000000,
    "reviewDueAt": 1858872000000,
    "replacedBy": "",
    "retireReason": ""
  },
  "match": {
    "field": "filename",
    "endsWithAny": [
      ".pdf.exe",
      ".docx.exe",
      ".xlsx.scr"
    ]
  },
  "actions": [
    "SUGGEST_QUARANTINE",
    "ALERT_USER"
  ],
  "indicators": [
    {
      "type": "filename",
      "value": "invoice_2026.pdf.exe"
    }
  ],
  "knowledge": null
}

safety.webhook-exfil-beacon

v1
Sûreté du contenu Gravité: high
ACTIF S’applique à: Evergreen / Outbound Web Révision avant: 2028-11-26

Texte assisté par l'IA · modèle : tdguard-maintainers-i18n sha256:c85520a19c…8e82ce

Résumé en langage clair

Alerte l'utilisateur lorsqu'une charge non fiable pointe vers un webhook jetable utilisé pour l'exfiltration silencieuse.

Champ cible: url SUGGEST_BLOCK_OUTBOUNDALERT_USER
JSON technique & Indicateurs
{
  "id": "safety.webhook-exfil-beacon",
  "version": 1,
  "category": "content_safety",
  "severity": "high",
  "lifecycleStatus": "ACTIVE",
  "lifecycle": {
    "status": "ACTIVE",
    "appliesTo": "Evergreen / Outbound Web",
    "verifiedAt": 1795800000000,
    "reviewDueAt": 1858872000000,
    "replacedBy": "",
    "retireReason": ""
  },
  "match": {
    "field": "url",
    "containsAny": [
      "webhook.site/exfil",
      "requestbin.net/capture"
    ]
  },
  "actions": [
    "SUGGEST_BLOCK_OUTBOUND",
    "ALERT_USER"
  ],
  "indicators": [
    {
      "type": "domain",
      "value": "webhook[.]site"
    },
    {
      "type": "domain",
      "value": "requestbin[.]net"
    }
  ],
  "knowledge": null
}

cost.local-health-cache

v1
Jetons & Coupe-boucle Gravité: low
ACTIF S’applique à: Evergreen / 3-Tier Sidecar Révision avant: 2028-11-26

Texte assisté par l'IA · modèle : tdguard-maintainers-i18n sha256:ca7f443795…f550f5

Résumé en langage clair

Dirige les diagnostics locaux de routine vers le cache déterministe Niveau 1 sans jeton plutôt qu'un modèle cloud payant.

Champ cible: prompt ROUTE_TO_TIER1_CACHEEXPLAIN_TO_USER
JSON technique & Indicateurs
{
  "id": "cost.local-health-cache",
  "version": 1,
  "category": "ai_cost_optimization",
  "severity": "low",
  "lifecycleStatus": "ACTIVE",
  "lifecycle": {
    "status": "ACTIVE",
    "appliesTo": "Evergreen / 3-Tier Sidecar",
    "verifiedAt": 1795800000000,
    "reviewDueAt": 1858872000000,
    "replacedBy": "",
    "retireReason": ""
  },
  "match": {
    "field": "prompt",
    "containsAny": [
      "tdguard_ping_status",
      "tdguard_tier1_selftest"
    ]
  },
  "actions": [
    "ROUTE_TO_TIER1_CACHE",
    "EXPLAIN_TO_USER"
  ],
  "indicators": [],
  "knowledge": null
}

cost.retry-doom-loop-guard

v1
Jetons & Coupe-boucle Gravité: medium
ACTIF S’applique à: Evergreen / AI CLI & API Révision avant: 2028-11-26

Texte assisté par l'IA · modèle : tdguard-maintainers-i18n sha256:cbff046ede…3b1cf4

Résumé en langage clair

Empêche les agents IA de gaspiller des jetons dans des boucles d'erreurs répétées grâce au coupe-boucle Niveau 1.

Environnement
Any AI CLI or API agent connected via 3-tier sidecar
Symptôme
Agent sends the exact same failing command or huge repeated stack trace to a paid cloud model 3+ times in a row.
Cause racine
Stateless retry loops resend full context without checking local deterministic fixes or collapsing repeated log lines.
Correctif vérifié
Enable Tier-1 Loop Breaker (threshold 3 in 5 min), compact duplicate consecutive log lines, and load only 1-2 matching entries via /llms.txt -> /feed/items/{id}.json.
Vérification
Repeat the same normalized query 3 times in router-3tier and confirm decision LOOP_BREAKER_TRIGGERED with tokensUsed === 0.
CC0-1.0 SELF_AUTHORED_FIX Charger le JSON compact →
Champ cible: prompt ROUTE_TO_TIER1_CACHEEXPLAIN_TO_USER
JSON technique & Indicateurs
{
  "id": "cost.retry-doom-loop-guard",
  "version": 1,
  "category": "ai_cost_optimization",
  "severity": "medium",
  "lifecycleStatus": "ACTIVE",
  "lifecycle": {
    "status": "ACTIVE",
    "appliesTo": "Evergreen / AI CLI & API",
    "verifiedAt": 1795800000000,
    "reviewDueAt": 1858872000000,
    "replacedBy": "",
    "retireReason": ""
  },
  "match": {
    "field": "prompt",
    "containsAny": [
      "tdguard_loop_retry_exceeded",
      "retry_same_error_3x"
    ]
  },
  "actions": [
    "ROUTE_TO_TIER1_CACHE",
    "EXPLAIN_TO_USER"
  ],
  "indicators": [],
  "knowledge": {
    "environment": "Any AI CLI or API agent connected via 3-tier sidecar",
    "symptom": "Agent sends the exact same failing command or huge repeated stack trace to a paid cloud model 3+ times in a row.",
    "rootCause": "Stateless retry loops resend full context without checking local deterministic fixes or collapsing repeated log lines.",
    "verifiedFix": "Enable Tier-1 Loop Breaker (threshold 3 in 5 min), compact duplicate consecutive log lines, and load only 1-2 matching entries via /llms.txt -> /feed/items/{id}.json.",
    "verificationCheck": "Repeat the same normalized query 3 times in router-3tier and confirm decision LOOP_BREAKER_TRIGGERED with tokensUsed === 0.",
    "commandPattern": "",
    "commandRisk": "READ_ONLY",
    "license": "CC0-1.0",
    "sourceBasis": "SELF_AUTHORED_FIX"
  }
}

fix.node24-windows-test-glob

v1
Correctif terrain Gravité: low
ACTIF S’applique à: Node.js 24 / Windows Révision avant: 2027-05-26

Texte assisté par l'IA · modèle : tdguard-maintainers-i18n sha256:9c3e177d50…3da82e

Résumé en langage clair

Corrige l'échec du lanceur de tests intégré de Node.js 24 sous Windows en utilisant un motif glob entre guillemets.

Environnement
Node.js 24 on Windows (PowerShell 5.1 / cmd.exe)
Symptôme
Running `node --test tests/` fails or finds zero tests instead of executing test files inside the folder.
Cause racine
Windows shell does not expand POSIX directory arguments the same way as Linux shells in Node 24 test runner.
Correctif vérifié
Pass an explicitly quoted file glob such as `node --test "tests/*.test.js"` inside package.json scripts so Node performs cross-platform glob expansion itself.
Vérification
Run `npm test` on Windows and verify all `*.test.js` suites execute with exit code 0.
Commande paramétrée READ_ONLY
node --test "{TEST_DIR}/*.test.js"
CC0-1.0 SELF_AUTHORED_FIX Charger le JSON compact →
Champ cible: command EXPLAIN_TO_USER
JSON technique & Indicateurs
{
  "id": "fix.node24-windows-test-glob",
  "version": 1,
  "category": "engineering_fix",
  "severity": "low",
  "lifecycleStatus": "ACTIVE",
  "lifecycle": {
    "status": "ACTIVE",
    "appliesTo": "Node.js 24 / Windows",
    "verifiedAt": 1795800000000,
    "reviewDueAt": 1811352000000,
    "replacedBy": "",
    "retireReason": ""
  },
  "match": {
    "field": "command",
    "containsAny": [
      "node --test tests/",
      "node --test test/"
    ]
  },
  "actions": [
    "EXPLAIN_TO_USER"
  ],
  "indicators": [],
  "knowledge": {
    "environment": "Node.js 24 on Windows (PowerShell 5.1 / cmd.exe)",
    "symptom": "Running `node --test tests/` fails or finds zero tests instead of executing test files inside the folder.",
    "rootCause": "Windows shell does not expand POSIX directory arguments the same way as Linux shells in Node 24 test runner.",
    "verifiedFix": "Pass an explicitly quoted file glob such as `node --test \"tests/*.test.js\"` inside package.json scripts so Node performs cross-platform glob expansion itself.",
    "verificationCheck": "Run `npm test` on Windows and verify all `*.test.js` suites execute with exit code 0.",
    "commandPattern": "node --test \"{TEST_DIR}/*.test.js\"",
    "commandRisk": "READ_ONLY",
    "license": "CC0-1.0",
    "sourceBasis": "SELF_AUTHORED_FIX"
  }
}

fix.wrangler4-pages-create-force

v1
Correctif terrain Gravité: medium
ACTIF S’applique à: Wrangler 4.x / Cloudflare Pages Révision avant: 2027-05-26

Texte assisté par l'IA · modèle : tdguard-maintainers-i18n sha256:a460f0289c…634ce0

Résumé en langage clair

Résout la délégation de `pages project create` vers Workers dans Wrangler v4 lors de la création d'un projet Pages classique.

Environnement
Cloudflare Wrangler 4.x CLI deploying pure static Pages sites
Symptôme
`wrangler pages project create` delegates to Workers and aborts with missing static directory detection error.
Cause racine
Wrangler v4 routes new `pages project create` commands to Workers by default unless classic Pages creation is explicitly requested.
Correctif vérifié
Pass `--force` once on `wrangler pages project create {NAME} --production-branch main --force`, then run subsequent `wrangler pages deploy` commands WITHOUT `--force`.
Vérification
Confirm project creation prints the `.pages.dev` domain and `wrangler pages deploy {DIR} --project-name {NAME}` returns HTTP 200.
Commande paramétrée REVERSIBLE
wrangler pages project create {PROJECT_NAME} --production-branch main --force
CC0-1.0 SELF_AUTHORED_FIX Charger le JSON compact →
Champ cible: command EXPLAIN_TO_USER
JSON technique & Indicateurs
{
  "id": "fix.wrangler4-pages-create-force",
  "version": 1,
  "category": "engineering_fix",
  "severity": "medium",
  "lifecycleStatus": "ACTIVE",
  "lifecycle": {
    "status": "ACTIVE",
    "appliesTo": "Wrangler 4.x / Cloudflare Pages",
    "verifiedAt": 1795800000000,
    "reviewDueAt": 1811352000000,
    "replacedBy": "",
    "retireReason": ""
  },
  "match": {
    "field": "command",
    "containsAny": [
      "wrangler pages project create"
    ]
  },
  "actions": [
    "EXPLAIN_TO_USER"
  ],
  "indicators": [],
  "knowledge": {
    "environment": "Cloudflare Wrangler 4.x CLI deploying pure static Pages sites",
    "symptom": "`wrangler pages project create` delegates to Workers and aborts with missing static directory detection error.",
    "rootCause": "Wrangler v4 routes new `pages project create` commands to Workers by default unless classic Pages creation is explicitly requested.",
    "verifiedFix": "Pass `--force` once on `wrangler pages project create {NAME} --production-branch main --force`, then run subsequent `wrangler pages deploy` commands WITHOUT `--force`.",
    "verificationCheck": "Confirm project creation prints the `.pages.dev` domain and `wrangler pages deploy {DIR} --project-name {NAME}` returns HTTP 200.",
    "commandPattern": "wrangler pages project create {PROJECT_NAME} --production-branch main --force",
    "commandRisk": "REVERSIBLE",
    "license": "CC0-1.0",
    "sourceBasis": "SELF_AUTHORED_FIX"
  }
}

fix.wrangler3-pages-legacy

v1
Correctif terrain Gravité: low
REMPLACÉ S’applique à: Wrangler 3.x (Legacy) Révision avant: 2026-05-27 Remplacé par: fix.wrangler4-pages-create-force

Texte assisté par l'IA · modèle : tdguard-maintainers-i18n sha256:7c05dd153e…7bdd39

Résumé en langage clair

Ancienne note de création Pages sous Wrangler v3 (remplacée par le guide Wrangler v4).

Environnement
Legacy Wrangler 3.x CLI (superseded by Wrangler 4.x)
Symptôme
Older automation scripts assume `wrangler pages project create` never delegates to Workers.
Cause racine
Wrangler v4 changed default project creation behavior; keeping v3 instructions causes immediate deployment failure.
Correctif vérifié
Migrate to `fix.wrangler4-pages-create-force` when upgrading to Wrangler 4.x.
Vérification
Check `wrangler --version` and follow the v4 guide if major version is 4 or higher.
CC0-1.0 SELF_AUTHORED_FIX Charger le JSON compact →
Champ cible: command EXPLAIN_TO_USER
JSON technique & Indicateurs
{
  "id": "fix.wrangler3-pages-legacy",
  "version": 1,
  "category": "engineering_fix",
  "severity": "low",
  "lifecycleStatus": "DEPRECATED",
  "lifecycle": {
    "status": "DEPRECATED",
    "appliesTo": "Wrangler 3.x (Legacy)",
    "verifiedAt": 1764288000000,
    "reviewDueAt": 1779840000000,
    "replacedBy": "fix.wrangler4-pages-create-force",
    "retireReason": ""
  },
  "match": {
    "field": "command",
    "containsAny": [
      "wrangler3_pages_create_legacy"
    ]
  },
  "actions": [
    "EXPLAIN_TO_USER"
  ],
  "indicators": [],
  "knowledge": {
    "environment": "Legacy Wrangler 3.x CLI (superseded by Wrangler 4.x)",
    "symptom": "Older automation scripts assume `wrangler pages project create` never delegates to Workers.",
    "rootCause": "Wrangler v4 changed default project creation behavior; keeping v3 instructions causes immediate deployment failure.",
    "verifiedFix": "Migrate to `fix.wrangler4-pages-create-force` when upgrading to Wrangler 4.x.",
    "verificationCheck": "Check `wrangler --version` and follow the v4 guide if major version is 4 or higher.",
    "commandPattern": "",
    "commandRisk": "READ_ONLY",
    "license": "CC0-1.0",
    "sourceBasis": "SELF_AUTHORED_FIX"
  }
}

cmd.ps51-join-and-utf8-safe

v1
Modèle de commande Gravité: low
ACTIF S’applique à: Windows PowerShell 5.1 Révision avant: 2028-11-26

Texte assisté par l'IA · modèle : tdguard-maintainers-i18n sha256:8493adca68…69ab0a

Résumé en langage clair

Modèle sûr pour Windows PowerShell 5.1 utilisant `-join` au lieu de `Join-String` et des scripts ASCII propres.

Environnement
Windows PowerShell 5.1 (built-in Windows desktop edition)
Symptôme
Scripts fail with `Join-String is not recognized` or break string parsing on UTF-8 em-dashes without BOM.
Cause racine
`Join-String` exists only in PowerShell 6+/7+, and PowerShell 5.1 reads UTF-8 files without BOM using the local Windows code page.
Correctif vérifié
Use the native `-join ', '` operator for joining arrays and keep `.ps1` automation scripts pure ASCII (or UTF-8 with BOM when Unicode literals are needed).
Vérification
Execute the script under `powershell.exe -NoProfile` and verify clean exit code 0.
Commande paramétrée READ_ONLY
$items -join ', '
CC0-1.0 SELF_AUTHORED_FIX Charger le JSON compact →
Champ cible: command EXPLAIN_TO_USER
JSON technique & Indicateurs
{
  "id": "cmd.ps51-join-and-utf8-safe",
  "version": 1,
  "category": "command_snippet",
  "severity": "low",
  "lifecycleStatus": "ACTIVE",
  "lifecycle": {
    "status": "ACTIVE",
    "appliesTo": "Windows PowerShell 5.1",
    "verifiedAt": 1795800000000,
    "reviewDueAt": 1858872000000,
    "replacedBy": "",
    "retireReason": ""
  },
  "match": {
    "field": "command",
    "containsAny": [
      "join-string -separator",
      "join-string -outputprefix"
    ]
  },
  "actions": [
    "EXPLAIN_TO_USER"
  ],
  "indicators": [],
  "knowledge": {
    "environment": "Windows PowerShell 5.1 (built-in Windows desktop edition)",
    "symptom": "Scripts fail with `Join-String is not recognized` or break string parsing on UTF-8 em-dashes without BOM.",
    "rootCause": "`Join-String` exists only in PowerShell 6+/7+, and PowerShell 5.1 reads UTF-8 files without BOM using the local Windows code page.",
    "verifiedFix": "Use the native `-join ', '` operator for joining arrays and keep `.ps1` automation scripts pure ASCII (or UTF-8 with BOM when Unicode literals are needed).",
    "verificationCheck": "Execute the script under `powershell.exe -NoProfile` and verify clean exit code 0.",
    "commandPattern": "$items -join ', '",
    "commandRisk": "READ_ONLY",
    "license": "CC0-1.0",
    "sourceBasis": "SELF_AUTHORED_FIX"
  }
}

cmd.git-soft-reset-safe

v1
Modèle de commande Gravité: medium
ACTIF S’applique à: Evergreen / Git >= 2.30 Révision avant: 2028-11-26

Texte assisté par l'IA · modèle : tdguard-maintainers-i18n sha256:c75363340f…a1217a

Résumé en langage clair

Commande Git réversible pour annuler le dernier commit local non poussé tout en conservant les modifications indexées.

Environnement
Git >= 2.30 on Windows, macOS, and Linux
Symptôme
Uncommitted edits or newly created files are permanently wiped when rolling back a local commit carelessly.
Cause racine
Hard resets discard tracked modifications immediately without placing them in the staging area for inspection.
Correctif vérifié
Prefer `git reset --soft HEAD~1` on unpushed local commits so every change remains staged and inspectable before recommitting.
Vérification
Run `git status --short` after reset to confirm all modified files remain intact in the index.
Commande paramétrée REVERSIBLE
git reset --soft HEAD~1
CC0-1.0 OFFICIAL_DOCS_SUMMARY Charger le JSON compact →
Champ cible: command ALERT_USEREXPLAIN_TO_USER
JSON technique & Indicateurs
{
  "id": "cmd.git-soft-reset-safe",
  "version": 1,
  "category": "command_snippet",
  "severity": "medium",
  "lifecycleStatus": "ACTIVE",
  "lifecycle": {
    "status": "ACTIVE",
    "appliesTo": "Evergreen / Git >= 2.30",
    "verifiedAt": 1795800000000,
    "reviewDueAt": 1858872000000,
    "replacedBy": "",
    "retireReason": ""
  },
  "match": {
    "field": "command",
    "containsAny": [
      "git reset --hard head~1",
      "git reset --hard origin/"
    ]
  },
  "actions": [
    "ALERT_USER",
    "EXPLAIN_TO_USER"
  ],
  "indicators": [],
  "knowledge": {
    "environment": "Git >= 2.30 on Windows, macOS, and Linux",
    "symptom": "Uncommitted edits or newly created files are permanently wiped when rolling back a local commit carelessly.",
    "rootCause": "Hard resets discard tracked modifications immediately without placing them in the staging area for inspection.",
    "verifiedFix": "Prefer `git reset --soft HEAD~1` on unpushed local commits so every change remains staged and inspectable before recommitting.",
    "verificationCheck": "Run `git status --short` after reset to confirm all modified files remain intact in the index.",
    "commandPattern": "git reset --soft HEAD~1",
    "commandRisk": "REVERSIBLE",
    "license": "CC0-1.0",
    "sourceBasis": "OFFICIAL_DOCS_SUMMARY"
  }
}

cmd.opsec-prepush-diff-audit

v1
Modèle de commande Gravité: medium
ACTIF S’applique à: Evergreen / Git & Public OSS Révision avant: 2028-11-26

Texte assisté par l'IA · modèle : tdguard-maintainers-i18n sha256:a1e207cfe7…deb94e

Résumé en langage clair

Commande Git en lecture seule pour vérifier les fichiers indexés et dossiers de cache cachés avant tout commit public.

Environnement
Git repositories preparing public commits or releases
Symptôme
Blind `git add -A` accidentally stages `.wrangler/cache/`, `.env`, or temporary key files into public commit history.
Cause racine
CLI tools generate hidden cache directories containing cloud account identifiers inside the project root.
Correctif vérifié
Run a read-only `git status --short` and `git diff --cached --name-only` inspection before committing, paired with an automated OPSEC gate.
Vérification
Verify zero `.env`, `.pem`, `.key`, or `.wrangler` entries appear in staged output.
Commande paramétrée READ_ONLY
git status --short && git diff --cached --name-only
CC0-1.0 SELF_AUTHORED_FIX Charger le JSON compact →
Champ cible: command EXPLAIN_TO_USER
JSON technique & Indicateurs
{
  "id": "cmd.opsec-prepush-diff-audit",
  "version": 1,
  "category": "command_snippet",
  "severity": "medium",
  "lifecycleStatus": "ACTIVE",
  "lifecycle": {
    "status": "ACTIVE",
    "appliesTo": "Evergreen / Git & Public OSS",
    "verifiedAt": 1795800000000,
    "reviewDueAt": 1858872000000,
    "replacedBy": "",
    "retireReason": ""
  },
  "match": {
    "field": "command",
    "containsAny": [
      "git add . && git commit",
      "git add -a && git push"
    ]
  },
  "actions": [
    "EXPLAIN_TO_USER"
  ],
  "indicators": [],
  "knowledge": {
    "environment": "Git repositories preparing public commits or releases",
    "symptom": "Blind `git add -A` accidentally stages `.wrangler/cache/`, `.env`, or temporary key files into public commit history.",
    "rootCause": "CLI tools generate hidden cache directories containing cloud account identifiers inside the project root.",
    "verifiedFix": "Run a read-only `git status --short` and `git diff --cached --name-only` inspection before committing, paired with an automated OPSEC gate.",
    "verificationCheck": "Verify zero `.env`, `.pem`, `.key`, or `.wrangler` entries appear in staged output.",
    "commandPattern": "git status --short && git diff --cached --name-only",
    "commandRisk": "READ_ONLY",
    "license": "CC0-1.0",
    "sourceBasis": "SELF_AUTHORED_FIX"
  }
}

pitfall.ps51-rdap-byte-array

v1
Piège d’intégration Gravité: medium
ACTIF S’applique à: Windows PowerShell 5.1 / REST APIs Révision avant: 2028-11-26

Texte assisté par l'IA · modèle : tdguard-maintainers-i18n sha256:9fccd1866e…4772f6

Résumé en langage clair

Explique pourquoi `Invoke-WebRequest -UseBasicParsing` sous PowerShell 5.1 renvoie un tableau d'octets pour les types MIME `+json`.

Environnement
Windows PowerShell 5.1 calling REST endpoints with vendor `+json` media types
Symptôme
Piping `$res.Content | ConvertFrom-Json` yields empty fields or fails silently on `application/rdap+json` responses.
Cause racine
PowerShell 5.1 treats non-standard JSON content types as binary `byte[]` instead of UTF-8 strings.
Correctif vérifié
Check if `$res.Content` is `byte[]` and decode explicitly via `[System.Text.Encoding]::UTF8.GetString($res.Content)` before calling `ConvertFrom-Json`.
Vérification
Verify decoded string starts with `{` and parses cleanly into expected JSON properties.
Commande paramétrée READ_ONLY
[System.Text.Encoding]::UTF8.GetString($res.Content) | ConvertFrom-Json
CC0-1.0 SELF_AUTHORED_FIX Charger le JSON compact →
Champ cible: command EXPLAIN_TO_USER
JSON technique & Indicateurs
{
  "id": "pitfall.ps51-rdap-byte-array",
  "version": 1,
  "category": "integration_pitfall",
  "severity": "medium",
  "lifecycleStatus": "ACTIVE",
  "lifecycle": {
    "status": "ACTIVE",
    "appliesTo": "Windows PowerShell 5.1 / REST APIs",
    "verifiedAt": 1795800000000,
    "reviewDueAt": 1858872000000,
    "replacedBy": "",
    "retireReason": ""
  },
  "match": {
    "field": "command",
    "containsAny": [
      "application/rdap+json",
      "application/problem+json"
    ]
  },
  "actions": [
    "EXPLAIN_TO_USER"
  ],
  "indicators": [],
  "knowledge": {
    "environment": "Windows PowerShell 5.1 calling REST endpoints with vendor `+json` media types",
    "symptom": "Piping `$res.Content | ConvertFrom-Json` yields empty fields or fails silently on `application/rdap+json` responses.",
    "rootCause": "PowerShell 5.1 treats non-standard JSON content types as binary `byte[]` instead of UTF-8 strings.",
    "verifiedFix": "Check if `$res.Content` is `byte[]` and decode explicitly via `[System.Text.Encoding]::UTF8.GetString($res.Content)` before calling `ConvertFrom-Json`.",
    "verificationCheck": "Verify decoded string starts with `{` and parses cleanly into expected JSON properties.",
    "commandPattern": "[System.Text.Encoding]::UTF8.GetString($res.Content) | ConvertFrom-Json",
    "commandRisk": "READ_ONLY",
    "license": "CC0-1.0",
    "sourceBasis": "SELF_AUTHORED_FIX"
  }
}

pitfall.unicode-nfc-nfd-vietnamese

v1
Piège d’intégration Gravité: medium
ACTIF S’applique à: Evergreen / Multilingual UTF-8 Révision avant: 2028-11-26

Texte assisté par l'IA · modèle : tdguard-maintainers-i18n sha256:83b15e4806…5fba07

Résumé en langage clair

Évite les écarts de hachage et d'égalité sur les textes accentués dus au mélange des formes Unicode NFC et NFD.

Environnement
Cross-platform apps (macOS / Windows / Web / Node / Rust) hashing or comparing accented strings
Symptôme
Two visually identical Vietnamese strings produce different SHA-256 hashes or fail strict equality checks.
Cause racine
macOS and some IMEs emit decomposed NFD combining marks while Windows/web emit precomposed NFC code points.
Correctif vérifié
Normalize all canonical text fields with `.normalize('NFC')` before computing signatures, SHA-256 digests, or database lookups.
Vérification
Compare `sha256(nfcText)` against `sha256(nfdText.normalize('NFC'))` and verify identical hex digests.
Commande paramétrée READ_ONLY
text.normalize('NFC')
CC0-1.0 OFFICIAL_DOCS_SUMMARY Charger le JSON compact →
Champ cible: prompt EXPLAIN_TO_USER
JSON technique & Indicateurs
{
  "id": "pitfall.unicode-nfc-nfd-vietnamese",
  "version": 1,
  "category": "integration_pitfall",
  "severity": "medium",
  "lifecycleStatus": "ACTIVE",
  "lifecycle": {
    "status": "ACTIVE",
    "appliesTo": "Evergreen / Multilingual UTF-8",
    "verifiedAt": 1795800000000,
    "reviewDueAt": 1858872000000,
    "replacedBy": "",
    "retireReason": ""
  },
  "match": {
    "field": "prompt",
    "containsAny": [
      "nfc_nfd_mismatch",
      "vietnamese_hash_mismatch"
    ]
  },
  "actions": [
    "EXPLAIN_TO_USER"
  ],
  "indicators": [],
  "knowledge": {
    "environment": "Cross-platform apps (macOS / Windows / Web / Node / Rust) hashing or comparing accented strings",
    "symptom": "Two visually identical Vietnamese strings produce different SHA-256 hashes or fail strict equality checks.",
    "rootCause": "macOS and some IMEs emit decomposed NFD combining marks while Windows/web emit precomposed NFC code points.",
    "verifiedFix": "Normalize all canonical text fields with `.normalize('NFC')` before computing signatures, SHA-256 digests, or database lookups.",
    "verificationCheck": "Compare `sha256(nfcText)` against `sha256(nfdText.normalize('NFC'))` and verify identical hex digests.",
    "commandPattern": "text.normalize('NFC')",
    "commandRisk": "READ_ONLY",
    "license": "CC0-1.0",
    "sourceBasis": "OFFICIAL_DOCS_SUMMARY"
  }
}

pitfall.ed25519-rfc8032-torsion

v1
Piège d’intégration Gravité: high
ACTIF S’applique à: Evergreen / Node.js OpenSSL & Crypto Révision avant: 2028-11-26

Texte assisté par l'IA · modèle : tdguard-maintainers-i18n sha256:af629b1482…702fbf

Résumé en langage clair

Protège les vérificateurs Ed25519 contre les points de torsion d'ordre faible, S >= L malléable et la confusion X25519 SPKI.

Environnement
Node.js crypto / OpenSSL verifying untrusted Ed25519 public keys and signatures
Symptôme
Default OpenSSL verification can accept low-order torsion points or mislabeled X25519 SPKI keys if unchecked.
Cause racine
Different crypto libraries disagree on strict RFC 8032 cofactored vs cofactorless verification and canonical S scalar bounds.
Correctif vérifié
Verify `asymmetricKeyType === 'ed25519'`, reject the 8 low-order torsion points and y >= p, and enforce canonical scalar S strictly between 0 and L before calling `crypto.verify`.
Vérification
Run negative crypto tests with identity point `0100..00`, `S >= L`, and an X25519 key; all must return false.
CC0-1.0 SELF_AUTHORED_FIX Charger le JSON compact →
Champ cible: prompt ALERT_USEREXPLAIN_TO_USER
JSON technique & Indicateurs
{
  "id": "pitfall.ed25519-rfc8032-torsion",
  "version": 1,
  "category": "integration_pitfall",
  "severity": "high",
  "lifecycleStatus": "ACTIVE",
  "lifecycle": {
    "status": "ACTIVE",
    "appliesTo": "Evergreen / Node.js OpenSSL & Crypto",
    "verifiedAt": 1795800000000,
    "reviewDueAt": 1858872000000,
    "replacedBy": "",
    "retireReason": ""
  },
  "match": {
    "field": "prompt",
    "containsAny": [
      "ed25519_small_order_key",
      "x25519_spki_confusion"
    ]
  },
  "actions": [
    "ALERT_USER",
    "EXPLAIN_TO_USER"
  ],
  "indicators": [],
  "knowledge": {
    "environment": "Node.js crypto / OpenSSL verifying untrusted Ed25519 public keys and signatures",
    "symptom": "Default OpenSSL verification can accept low-order torsion points or mislabeled X25519 SPKI keys if unchecked.",
    "rootCause": "Different crypto libraries disagree on strict RFC 8032 cofactored vs cofactorless verification and canonical S scalar bounds.",
    "verifiedFix": "Verify `asymmetricKeyType === 'ed25519'`, reject the 8 low-order torsion points and y >= p, and enforce canonical scalar S strictly between 0 and L before calling `crypto.verify`.",
    "verificationCheck": "Run negative crypto tests with identity point `0100..00`, `S >= L`, and an X25519 key; all must return false.",
    "commandPattern": "",
    "commandRisk": "READ_ONLY",
    "license": "CC0-1.0",
    "sourceBasis": "SELF_AUTHORED_FIX"
  }
}

workflow.opsec-forbidden-vs-skip

v1
Workflow sûr Gravité: high
ACTIF S’applique à: Evergreen / Public Repo OPSEC Révision avant: 2028-11-26

Texte assisté par l'IA · modèle : tdguard-maintainers-i18n sha256:41e0f5fcb4…114b19

Résumé en langage clair

Workflow OPSEC mainteneur : placer `.wrangler` dans FORBIDDEN_DIRS plutôt que SKIP_DIRS dans le contrôle de publication.

Environnement
Automated OPSEC gates scanning public open-source staging repositories
Symptôme
Hidden CLI cache folders containing cloud account IDs pass the scanner silently because they were added to SKIP_DIRS.
Cause racine
SKIP_DIRS tells the scanner not to inspect a folder, whereas FORBIDDEN_DIRS fails closed if the folder exists in staging.
Correctif vérifié
Exclude `.wrangler` in both `.gitignore` and sync allowlists, AND list `.wrangler` inside `FORBIDDEN_DIRS` in the OPSEC scanner so any accidental copy aborts the release.
Vérification
Place a dummy `.wrangler/test.json` in a temp test dir and confirm the OPSEC gate exits with non-zero status.
Apache-2.0 MAINTAINER_VERIFIED Charger le JSON compact →
Champ cible: filename ALERT_USEREXPLAIN_TO_USER
JSON technique & Indicateurs
{
  "id": "workflow.opsec-forbidden-vs-skip",
  "version": 1,
  "category": "safe_workflow",
  "severity": "high",
  "lifecycleStatus": "ACTIVE",
  "lifecycle": {
    "status": "ACTIVE",
    "appliesTo": "Evergreen / Public Repo OPSEC",
    "verifiedAt": 1795800000000,
    "reviewDueAt": 1858872000000,
    "replacedBy": "",
    "retireReason": ""
  },
  "match": {
    "field": "filename",
    "containsAny": [
      ".wrangler/cache",
      "wrangler-account.json"
    ]
  },
  "actions": [
    "ALERT_USER",
    "EXPLAIN_TO_USER"
  ],
  "indicators": [
    {
      "type": "filename",
      "value": "wrangler-account.json"
    }
  ],
  "knowledge": {
    "environment": "Automated OPSEC gates scanning public open-source staging repositories",
    "symptom": "Hidden CLI cache folders containing cloud account IDs pass the scanner silently because they were added to SKIP_DIRS.",
    "rootCause": "SKIP_DIRS tells the scanner not to inspect a folder, whereas FORBIDDEN_DIRS fails closed if the folder exists in staging.",
    "verifiedFix": "Exclude `.wrangler` in both `.gitignore` and sync allowlists, AND list `.wrangler` inside `FORBIDDEN_DIRS` in the OPSEC scanner so any accidental copy aborts the release.",
    "verificationCheck": "Place a dummy `.wrangler/test.json` in a temp test dir and confirm the OPSEC gate exits with non-zero status.",
    "commandPattern": "",
    "commandRisk": "READ_ONLY",
    "license": "Apache-2.0",
    "sourceBasis": "MAINTAINER_VERIFIED"
  }
}

workflow.ai-disclosure-tech-checklist

v1
Workflow sûr Gravité: medium
ACTIF S’applique à: Evergreen / Technical Readiness Révision avant: 2027-11-27

Texte assisté par l'IA · modèle : tdguard-maintainers-i18n sha256:ead9573274…5f4949

Résumé en langage clair

Liste de contrôle technique pour l'étiquetage d'origine IA, les journaux PII effaçables et les portails statiques en lecture seule (non juridique).

Environnement
Open-source AI tools shipping static advisory portals and telemetry-free local sidecars
Symptôme
Engineering teams miss basic technical hygiene such as AI-origin provenance tags, PII erasure hooks, or strict read-only boundaries.
Cause racine
Mixing user-generated social features, unredacted logs, and unlabeled AI outputs creates avoidable operational and compliance risk.
Correctif vérifié
Tag every published item with `contentOrigin` + `aiModel`, store private intake logs as crypto-shreddable salted HMAC commitments with 7-day TTL, serve static portals with `script-src none`, and consult qualified counsel for jurisdiction-specific legal questions.
Vérification
Confirm `_headers` sets `script-src 'none'`, `PUBLIC_SHOW_UNVERIFIED=false`, and every AI-assisted item discloses `aiModel`.
Apache-2.0 MAINTAINER_VERIFIED Charger le JSON compact →
Champ cible: prompt EXPLAIN_TO_USER
JSON technique & Indicateurs
{
  "id": "workflow.ai-disclosure-tech-checklist",
  "version": 1,
  "category": "safe_workflow",
  "severity": "medium",
  "lifecycleStatus": "ACTIVE",
  "lifecycle": {
    "status": "ACTIVE",
    "appliesTo": "Evergreen / Technical Readiness",
    "verifiedAt": 1795800000000,
    "reviewDueAt": 1827336000000,
    "replacedBy": "",
    "retireReason": ""
  },
  "match": {
    "field": "prompt",
    "containsAny": [
      "tdguard_compliance_checklist",
      "ai_origin_tech_audit"
    ]
  },
  "actions": [
    "EXPLAIN_TO_USER"
  ],
  "indicators": [],
  "knowledge": {
    "environment": "Open-source AI tools shipping static advisory portals and telemetry-free local sidecars",
    "symptom": "Engineering teams miss basic technical hygiene such as AI-origin provenance tags, PII erasure hooks, or strict read-only boundaries.",
    "rootCause": "Mixing user-generated social features, unredacted logs, and unlabeled AI outputs creates avoidable operational and compliance risk.",
    "verifiedFix": "Tag every published item with `contentOrigin` + `aiModel`, store private intake logs as crypto-shreddable salted HMAC commitments with 7-day TTL, serve static portals with `script-src none`, and consult qualified counsel for jurisdiction-specific legal questions.",
    "verificationCheck": "Confirm `_headers` sets `script-src 'none'`, `PUBLIC_SHOW_UNVERIFIED=false`, and every AI-assisted item discloses `aiModel`.",
    "commandPattern": "",
    "commandRisk": "READ_ONLY",
    "license": "Apache-2.0",
    "sourceBasis": "MAINTAINER_VERIFIED"
  }
}

Architecture Zero-Trust & Économie de Jetons

Sidecar local 3 niveaux (coupe-boucle & balayage mémoire rétroactif) couplé à une chaîne signée hors ligne.

01 · LOCAL 3-TIER AI SIDECAR (OWNER ALWAYS IN CONTROL) TIER 1 · 0 TOK Guard & Loop Mute · 2-Stage TIER 2 Local SLM 127.0.0.1 Only TIER 3 BYOK Cloud Hard Cap Local TUF Verifier + Retroactive Memory Sweep Verifies 2-of-3 Root · Purges bad memory · Never locks owner SIGNED 02 · 6-BRANCH VERIFIED KNOWLEDGE CHAIN (STATIC CDN) INTAKE PoW + Dedup Tombstones M-OF-N QUORUM 3..24 Sentinels Anti-Trojan Veto STATIC KB Pages / R2 0-JS · 2-Stage 1–3 Vice-President Guardians + Lifecycle Tombstones ACTIVE · STALE · DEPRECATED · RETIRED · ult-notary-ledger
01

Portail statique Zéro-JS

CSP stricte (script-src none), surface XSS nulle.

02

Économie de jetons 2 étapes

Index /llms.txt léger + JSON unitaire + coupe-boucle Niveau 1.

03

Cycle de vie & Anti-doublon

États ACTIVE, STALE, DEPRECATED, RETIRED et empreintes Tombstone.

04

Contrôle total du propriétaire

Mode conseil par défaut, sourdine locale et fonctionnement hors ligne.

Points d’accès IA (Chargement 2 étapes)

Les agents IA doivent vérifier Ed25519 + TUF localement et ignorer les entrées RETIRED.