Feature: Issue 6323 - project context show JSON/YAML output matches specification
  In order to comply with the CLI output specification
  As a developer
  I want agents project context show to emit the required envelope and data sections

  Background:
    Given a project context CLI in-memory database is initialized
    And a project "local/ctx-app" exists for context CLI
    And issue 6323 project context sample is configured for "local/ctx-app"
    And the context tier service has sample usage data for "local/ctx-app"

  @tdd_issue @tdd_issue_6323
  Scenario: JSON output includes spec-required sections and current usage data
    And the context show output format is "json"
    When I run context show on "local/ctx-app" with view "strategize"
    Then the context show command should succeed
    And the context show json output should match issue 6323 spec for "local/ctx-app" and view "strategize"

  @tdd_issue @tdd_issue_6323
  Scenario: YAML output includes spec-required sections and current usage data
    And the context show output format is "yaml"
    When I run context show on "local/ctx-app" with view "strategize"
    Then the context show command should succeed
    And the context show yaml output should match issue 6323 spec for "local/ctx-app" and view "strategize"
