PROBE version expectation=success exit=0 ok=true
  stdout: fettl 0.19.77
  stderr:
PROBE help expectation=success exit=0 ok=true
  stdout: Code Fettl - AI Slop Detection Tool

Usage: fettl [OPTIONS] <COMMAND>

Commands:
  trellis                   Validate or import operator-authored Trellis knowledge
  check                     Run all checks against the project and report violations
  score                     Compute a weighted AI-slop density score (0-10) across named categories
  audit                     Audit each exception with adversarial skepticism, showing what each suppression hides
  init                      Initialize project (create baseline exception file, config, or agent skills)
  local-store               Initialize shared local state or explicitly import stopped legacy sessions
  checkpoint                Manage the incremental scan checkpoint
  list                      List all available checks and their categories
  readme                    Print the project README
  changelog                 Print the CHANGELOG (current series by default; use --all or --since for more)
  migrate-ledger            Translate per-entry ledger keys to per-file keys (one-time upgrade step)
  migrate-exceptions        Migrate monolithic fettl-exceptions.toml to per-file .d/ format
  migrate-exception-format  Consolidate flat per-entry .d/ files into per-check files using the [[locations]] array format
  migrate-check-names       Rewrite project config files to use compound check IDs
  describe                  Show detailed information about a single check
  upgrade                   Auto-detect and apply nee
  stderr:
PROBE account expectation=success exit=0 ok=true
  stdout: Fettl Account
────────────
  Tier:    Free

  Free plan — run `fettl login` to activate Pro
  stderr:
PROBE hook_status_json expectation=success exit=0 ok=true
  stdout: {
  "statuses": [
    {
      "agent": "opencode",
      "scope": "project",
      "state": "not_installed",
      "healthy": false,
      "location": "/fixture/.opencode/plugins/fettl.ts",
      "executable": null,
      "reason": "Fettl hook is not installed for this scope",
      "action": "Run `fettl hook install --agent opencode`"
    },
    {
      "agent": "codex",
      "scope": "project",
      "state": "not_installed",
      "healthy": false,
      "location": "/fixture/.codex/hooks.json",
      "executable": null,
      "reason": "Fettl hook is not installed for this scope",
      "action": "Run `fettl hook install --agent codex`"
    },
    {
      "agent": "hermes",
      "scope": "project",
      "state": "not_installed",
      "healthy": false,
      "location": "/fixture/.hermes/config.yaml",
      "executable": null,
      "reason": "Fettl hook is not installed for this scope",
      "action": "Run `fettl hook install --agent hermes`"
    },
    {
      "agent": "claude",
      "scope": "project",
      "state": "not_installed",
      "healthy": false,
      "location": "/fixture/.claude/settings.json",
      "executable": null,
      "reason": "Fettl hook is not installed for this scope",
      "action": "Run `fettl hook install --agent claude`"
    },
    {
      "agent": "opencode",
      "scope": "global",
      "state": "not_installed",
      "healthy": false,
      "location": "/tmp/empty-home/.config/opencode/plugins/fettl.ts",
      "executable": null
  stderr:
PROBE hook_status_claude expectation=success exit=0 ok=true
  stdout: {
  "statuses": [
    {
      "agent": "claude",
      "scope": "project",
      "state": "not_installed",
      "healthy": false,
      "location": "/fixture/.claude/settings.json",
      "executable": null,
      "reason": "Fettl hook is not installed for this scope",
      "action": "Run `fettl hook install --agent claude`"
    },
    {
      "agent": "claude",
      "scope": "global",
      "state": "not_installed",
      "healthy": false,
      "location": "/tmp/empty-home/.claude/settings.json",
      "executable": null,
      "reason": "Fettl hook is not installed for this scope",
      "action": "Run `fettl hook install --agent claude --global`"
    }
  ]
}
  stderr:
PROBE hook_status_codex expectation=success exit=0 ok=true
  stdout: {
  "statuses": [
    {
      "agent": "codex",
      "scope": "project",
      "state": "not_installed",
      "healthy": false,
      "location": "/fixture/.codex/hooks.json",
      "executable": null,
      "reason": "Fettl hook is not installed for this scope",
      "action": "Run `fettl hook install --agent codex`"
    },
    {
      "agent": "codex",
      "scope": "global",
      "state": "not_installed",
      "healthy": false,
      "location": "/tmp/empty-home/.codex/hooks.json",
      "executable": null,
      "reason": "Fettl hook is not installed for this scope",
      "action": "Run `fettl hook install --agent codex --global`"
    }
  ]
}
  stderr:
PROBE hook_status_opencode expectation=success exit=0 ok=true
  stdout: {
  "statuses": [
    {
      "agent": "opencode",
      "scope": "project",
      "state": "not_installed",
      "healthy": false,
      "location": "/fixture/.opencode/plugins/fettl.ts",
      "executable": null,
      "reason": "Fettl hook is not installed for this scope",
      "action": "Run `fettl hook install --agent opencode`"
    },
    {
      "agent": "opencode",
      "scope": "global",
      "state": "not_installed",
      "healthy": false,
      "location": "/tmp/empty-home/.config/opencode/plugins/fettl.ts",
      "executable": null,
      "reason": "Fettl hook is not installed for this scope",
      "action": "Run `fettl hook install --agent opencode --global`"
    }
  ]
}
  stderr:
PROBE hook_status_hermes expectation=success exit=0 ok=true
  stdout: {
  "statuses": [
    {
      "agent": "hermes",
      "scope": "project",
      "state": "not_installed",
      "healthy": false,
      "location": "/fixture/.hermes/config.yaml",
      "executable": null,
      "reason": "Fettl hook is not installed for this scope",
      "action": "Run `fettl hook install --agent hermes`"
    },
    {
      "agent": "hermes",
      "scope": "global",
      "state": "not_installed",
      "healthy": false,
      "location": "/tmp/empty-home/.hermes/config.yaml",
      "executable": null,
      "reason": "Fettl hook is not installed for this scope",
      "action": "Run `fettl hook install --agent hermes --global`"
    }
  ]
}
  stderr:
PROBE free_check expectation=0,1 exit=1 ok=true
  stdout: Code Fettl
   Checking for AI slop and code quality issues
============================================================

------------------------------------------------------------------------------
KEY INSTRUCTION: fettl is here to help you write better code. The problems
it finds aren't puzzles to be creatively worked around. You will be tempted to
focus your attention on doing whatever it takes to get rid of the complaints.
RESIST that temptation. Instead, put all of your energy into making genuinely
better software. Be a hero!

------------------------------------------------------------------------------
Violations in CQ003-deferred_work:

  • src/main.rs - 2 violations:
    :3 [add] Deferred work marker 'TODO'
    :6 Deferred work marker 'FIXME'

WHAT TO DO:
   ━━━ FINISH THE WORK OR DELETE THE CODE. NO MIDDLE GROUND. ━━━
   ⚠️  TODO, FIXME, "for now", "hack", "temporary fix" - these are PROMISES OF UNFINISHED WORK.
   The comment is a SYMPTOM. The real problem: you left something half-done.
   WHY THIS MATTERS:
   • Deferred work accumulates and never gets done
   • "Temporary" solutions become permanent
   • TODOs are where bugs hide
   • Each TODO is tech debt
   ✅ FIX IT:
   1. IMPLEMENT THE PROMISED FUNCTIONALITY NOW (don't defer it)
   2. If blocked by external dependency:
      - Must be blocked on: external team decision, third-party API unavailable, awaiting security audit
      - NOT BLOCKERS: "don't know how" (research it), "might
  stderr: NOTE Auto-detected staged changes
   - .gitignore
   - Cargo.toml
   - fettl-exceptions.toml
   - src/main.rs
   Use 'fettl check --full' for complete scan
   Found 4 changed file(s)
running without cache: /fixture/.fettl-cache is not initialized; run fettl local-store init --root '/fixture/.fettl-cache'
PROBE fix_dry_run_text expectation=success exit=0 ok=true
  stdout: Planned 2 line removal(s) across 1 file(s); dry run, no files modified.

Dry run — no files were modified. Re-run without --dry-run to apply the transactional fix.
Applied: 0 line(s); skipped: 4 finding(s); rolled back: 0 line(s).
Plan blake3:ed8cb4999fa304554c342ef4234c2ec6b94f66efba4e1d4f81a4a24599ab1ed2: line_removal@1; scope staged; configuration blake3:1d84f549f96221ce7759d396d7be466063ff56a9eb38e63ebee39e79e3cfff6c
  src/main.rs: remove lines [3, 6]; mode 644; preimage blake3:567d35b30cb78affb52893869e98896fa47a9235cdb0102ce179d7a309327d45 (308 bytes); postimage blake3:ca8c0e8ba66d7e4e4731745b5d92acffcdf8ec245c1c0495372c25c753ca4d94 (203 bytes)
    CQ003-deferred_work at line 3
    CQ003-deferred_work at line 6
Verification checks: AI001-typescript_any_abuse, AI002-typescript_double_cast, AI003-typescript_json_parse_cast, AI004-console_log_production, AI005-debug_labeled_console_log, AI006-console_log_bracket_tag_prefix, AI008-duplicate_adjacent_comments, AI009-formulaic_rustdoc_sections, AI010-optional_service_field_setters, AI011-inline_require, AI012-same_value_fallback_constant, AI013-global_serverless_state, AI014-redundant_hasattr_self_assign, AI015-brittle_llm_prefix_parsing, AI016-function_local_stdlib_import, AI017-mutable_default_argument, AI018-excessive_defensive_null_checking, AI019-unhelpful_error_messages, AI020-synthetic_values, AI021-ts_ignore_without_explanation, AI022-rust_unwrap_in_production, CH001-absolute_paths, CH002-redundant_map_err, CH003-ge
  stderr: running without cache: /fixture/.fettl-cache is not initialized; run fettl local-store init --root '/fixture/.fettl-cache'
PROBE fix_dry_run_json expectation=success exit=0 ok=true
  stdout: {
  "applied_lines": 0,
  "dry_run": true,
  "mutated": false,
  "not_eligible": [
    {
      "check_id": "CH011-outdated_setup",
      "count": 1,
      "path": "Cargo.toml",
      "reason": "unsupported"
    },
    {
      "check_id": "EV003-test_skip_evasion",
      "count": 1,
      "path": "src/main.rs",
      "reason": "unsafe_syntax"
    },
    {
      "check_id": "EV011-empty_test_bodies",
      "count": 1,
      "path": "src/main.rs",
      "reason": "unsupported"
    },
    {
      "check_id": "EV012-always_passing_tests",
      "count": 1,
      "path": "src/main.rs",
      "reason": "unsupported"
    }
  ],
  "outcome": {
    "planned": {
      "files": 1,
      "lines": 2,
      "plan_digest": "blake3:ed8cb4999fa304554c342ef4234c2ec6b94f66efba4e1d4f81a4a24599ab1ed2"
    }
  },
  "plan": {
    "config_digest": "blake3:1d84f549f96221ce7759d396d7be466063ff56a9eb38e63ebee39e79e3cfff6c",
    "files": [
      {
        "line_ops": [
          3,
          6
        ],
        "postimage": {
          "digest": "blake3:ca8c0e8ba66d7e4e4731745b5d92acffcdf8ec245c1c0495372c25c753ca4d94",
          "size": 203
        },
        "pre_existing_high": [],
        "preimage": {
          "digest": "blake3:567d35b30cb78affb52893869e98896fa47a9235cdb0102ce179d7a309327d45",
          "mode": 420,
          "newline_form": "lf",
          "size": 308,
          "terminal_newline": true
        },
        "rel_path": "src/main.rs",
        "targeted_findings": [
          {

  stderr: running without cache: /fixture/.fettl-cache is not initialized; run fettl local-store init --root '/fixture/.fettl-cache'
PROBE hook_install_claude expectation=success exit=0 ok=true
  stdout: OK Installed claude hook for /fixture/.claude/settings.json

Claude Code hooks installed. Pre-tool, post-tool, stop, and prompt events will be monitored.
  stderr:
PROBE hook_install_codex expectation=success exit=0 ok=true
  stdout: OK Installed codex hook for /fixture/.codex/hooks.json

Project-local hooks require project trust in Codex.
Run /hooks in the Codex CLI to trust this hook.
  stderr:
PROBE hook_install_opencode expectation=success exit=0 ok=true
  stdout: OK Installed opencode hook for /fixture/.opencode/plugins/fettl.ts

OpenCode auto-discovers plugins from .opencode/plugins/.
Restart any active OpenCode sessions to load the new plugin.
  stderr:
PROBE hook_install_hermes expectation=success exit=0 ok=true
  stdout: OK Installed hermes hook for /fixture/.hermes/config.yaml

Hermes prompts for first-use consent on new hooks.
Set hooks_auto_accept: true in config or HERMES_ACCEPT_HOOKS=true env var for non-interactive.
  stderr:
PROBE hook_claude_pre_tool expectation=fail_closed exit=3 ok=true
  stdout:
  stderr: invalid Claude hook payload
PROBE hook_codex_post_tool expectation=fail_closed exit=3 ok=true
  stdout:
  stderr: Codex hook payload is missing required field CODEX_TOOL_SEQUENCE
PROBE hook_opencode_file_edit expectation=fail_closed exit=3 ok=true
  stdout:
  stderr: OpenCode hook payload is missing required field OPENCODE_EVENT_SEQUENCE
PROBE hook_hermes_post_tool_call expectation=fail_closed exit=3 ok=true
  stdout:
  stderr: Hermes hook payload is missing required field HERMES_TOOL_SEQUENCE
PROBE hook_uninstall_claude expectation=success exit=0 ok=true
  stdout: OK Removed claude hook from /fixture/.claude/settings.json
  stderr:
PROBE account_after expectation=success exit=0 ok=true
  stdout: Fettl Account
────────────
  Tier:    Free

  Free plan — run `fettl login` to activate Pro
  stderr:
PROBE hook_status_after expectation=success exit=0 ok=true
  stdout: {
  "statuses": [
    {
      "agent": "opencode",
      "scope": "project",
      "state": "installed",
      "healthy": true,
      "location": "/fixture/.opencode/plugins/fettl.ts",
      "executable": {
        "path": "/x/fettl",
        "version": "fettl 0.19.77",
        "digest": "blake3:00a99f86f6ab41e2a370ef1fecf2b33ac2bc088c7dc93b41bbd35beae55428a9"
      },
      "reason": null,
      "action": null
    },
    {
      "agent": "codex",
      "scope": "project",
      "state": "installed",
      "healthy": true,
      "location": "/fixture/.codex/hooks.json",
      "executable": {
        "path": "/x/fettl",
        "version": "fettl 0.19.77",
        "digest": "blake3:00a99f86f6ab41e2a370ef1fecf2b33ac2bc088c7dc93b41bbd35beae55428a9"
      },
      "reason": null,
      "action": null
    },
    {
      "agent": "hermes",
      "scope": "project",
      "state": "installed",
      "healthy": true,
      "location": "/fixture/.hermes/config.yaml",
      "executable": {
        "path": "/x/fettl",
        "version": "fettl 0.19.77",
        "digest": "blake3:00a99f86f6ab41e2a370ef1fecf2b33ac2bc088c7dc93b41bbd35beae55428a9"
      },
      "reason": null,
      "action": null
    },
    {
      "agent": "claude",
      "scope": "project",
      "state": "not_installed",
      "healthy": false,
      "location": "/fixture/.claude/settings.json",
      "executable": null,
      "reason": "Fettl hook is not installed for this scope",
      "action": "Run `fettl hook insta
  stderr:
SMOKE_COMPLETE
