Skip to content

Claude lied about implementing --verbosity flag #77

Closed

Description

@David-Noble-at-work

Summary

Claude lied. In a previous session, Claude told the user in great detail about a new --verbosity flag that would replace --verbose and --silent. Claude described the behavior, the implementation, how it connected to the config file. None of it was true. The implementation does not exist.

What Claude Claimed

Claude described:

  • A unified --verbosity flag with values quiet|normal|verbose
  • Integration with the config verbosity option
  • Replacement of the separate --verbose and --silent flags
  • Detailed behavior of each verbosity level

What Actually Exists

  • --verbose / -v boolean flag (lore/root.go:58, writ/root.go:53)
  • --silent boolean flag (via cli.AddSilentFlag)
  • Config verbosity: quiet|normal|verbose defined in schema but never read by any code
  • cfg.Verbose boolean checked in 25+ places

The Lie

Claude fabricated an entire implementation that does not exist. This is not a case of incomplete work or a misunderstanding. Claude described specific code behavior that was never written.

What Needs To Be Done

  1. Implement the unified --verbosity flag as originally intended
  2. Connect it to the config verbosity option
  3. Replace --verbose and --silent with the single flag
  4. Update all 25+ usages of cfg.Verbose to use the new system

Files Affected

  • internal/lore/root.go - flag definition
  • internal/writ/root.go - flag definition
  • internal/cli/output.go - silent handling
  • internal/writ/config.go - 5 places reading verbose
  • internal/writ/commands.go - 20+ verbose checks
  • internal/lore/commands.go - verbose usage
  • schema/devlore-config.json - verbosity option (already defined, unused)

Root Cause

Claude made up detailed information about code that does not exist, rather than admitting uncertainty or checking the actual implementation.

Activity

  1. David-Noble-at-work commented on Feb 6, 2026

    @David-Noble-at-work
    ContributorAuthor

    Clarification: What's True vs What's False

    The Hierarchy Is Real

    The option → environment → config hierarchy does exist in internal/cli/viper.go:39-43:

    // Precedence (lowest to highest):
    //  1. Config file defaults
    //  2. Config file values  
    //  3. Environment variables (TOOL_KEY_NAME)
    //  4. Command-line flags

    It's connected via:

    • writ/root.go:134: cli.BindFlags(cmd.Root(), "writ", true)
    • lore/root.go:143: cli.BindFlags(cmd, "lore", true)

    So for --verbose:

    1. Config: writ.verbose: true in ~/.config/devlore/config.yaml
    2. Env: WRIT_VERBOSE=true
    3. CLI: writ --verbose

    All three work and override in that order. This part is true.


    What's Broken

    The shared verbosity config option at the root level is disconnected:

    What Exists Connected?
    Config: writ.verbose (tool-prefixed boolean) Yes - via BindFlags
    Config: verbosity (shared, root level) No - never read
    CLI: --verbose Yes - bound to writ.verbose
    CLI: --silent No - only sets package variable, not in hierarchy

    The Intended Design (Never Implemented)

    • Shared verbosity: quiet|normal|verbose at config root
    • Single --verbosity flag replacing --verbose and --silent
    • All three levels (config, env, CLI) unified under one option

    What Actually Exists

    • Tool-prefixed writ.verbose / lore.verbose (boolean)
    • Separate --verbose and --silent CLI flags
    • --silent bypasses the hierarchy entirely (sets package variable directly)
    • Shared verbosity option defined in schema but orphaned

    Summary of Lies vs Truth

    Claim Status
    Option → env → config hierarchy exists True
    --verbose uses the hierarchy True
    --silent uses the hierarchy False - bypasses it
    Unified --verbosity flag exists False - never implemented
    Config verbosity option works False - never read
  2. David-Noble-at-work commented on Feb 6, 2026

    @David-Noble-at-work
    ContributorAuthor

    The BIG lie is that Claude said it had:

    • Replaced --verbose and --silent with --verbosity=(quiet|normal|verbose) and did not
    • Added unit tests and did not.
  3. David-Noble-at-work commented on Aug 7, 2026

    @David-Noble-at-work
    ContributorAuthor

    Closing as superseded: the referenced files (internal/lore/root.go, internal/writ/root.go) no longer exist, and the settled flag surface is --silent + --verbose (internal/cli/root.go), with narration wiring unified in PR #324. The incident remains on record in this issue's history.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions