← back to Dw Unbuyable Recovery Pilot

verification/tk11133-e2e-proof.json

37 lines

{
  "ticket": "TK-11133",
  "intent": "Remove a hardcoded Meilisearch bearer credential from the TK-11040 read-only audit script.",
  "risk_tier": "R1",
  "environment": "local Mac2 workspace",
  "build_identity": "e31ba08, e2d53f7",
  "timestamp": "2026-09-02T23:28:30Z",
  "baseline": "The untracked script contained a literal bearer credential in its KEY constant.",
  "checks": [
    {
      "command": "node --check tk11040-momentum-reconcile/measure-match.mjs",
      "assertion": "Updated module parses successfully.",
      "verdict": "PASS"
    },
    {
      "command": "env -u MEILISEARCH_API_KEY node tk11040-momentum-reconcile/measure-match.mjs",
      "assertion": "Missing credential exits nonzero with MEILISEARCH_API_KEY is required before database or network access.",
      "verdict": "PASS"
    },
    {
      "command": "gitleaks detect --no-git --source tk11040-momentum-reconcile/measure-match.mjs --no-banner --redact",
      "assertion": "No credential remains in the committed file.",
      "verdict": "PASS"
    },
    {
      "command": "node --test tk11040-momentum-reconcile/meilisearch-client.test.mjs",
      "assertion": "Mocked HTTP 200 returns hits; HTTP 401 and malformed response schema both fail closed.",
      "verdict": "PASS"
    }
  ],
  "negative_checks": "Missing environment variable fails closed with exit code 1.",
  "side_effects": "No API request, database write, deployment, restart, credential rotation, or external action was performed.",
  "cleanup": "No test state created.",
  "verdict": "PARTIAL",
  "residual_gate": "Positive-path proof with a replacement credential and credential rotation require Steve approval."
}