Skip to content

Create observer snapshot validation CLI for manual CI run testing - #290

Merged
ProtocolWarden merged 4 commits into
mainfrom
goal/3eee2d70
Jun 14, 2026
Merged

Create observer snapshot validation CLI for manual CI run testing#290
ProtocolWarden merged 4 commits into
mainfrom
goal/3eee2d70

Conversation

@ProtocolWarden

Copy link
Copy Markdown
Owner

Auto-generated by Operations Center execution.

Goal

Create observer snapshot validation CLI for manual CI run testing

Definition of done (complete ALL before finishing)

  1. Complete the task in its ENTIRETY — every acceptance criterion and every
    file the task implies (implementation, tests, and docs as applicable). Do
    not leave TODOs, stubs, or 'follow-up' gaps; a partial change is rejected
    in review.
  2. Add or update tests/checks that prove the work is correct.
  3. Run the repository's test suite and linters/formatters and make them
    pass locally. If anything fails, fix it before finishing — do not hand
    off a red build.
  4. Only consider the task done when the full change is in place AND verified
    green. The PR you open should be mergeable as-is.

@ProtocolWarden

ProtocolWarden commented Jun 14, 2026

Copy link
Copy Markdown
Owner Author

Resolved: new push — automated review resumed

Needs human attention (reason=ci_persistently_red). Left open — not merged (unresolved) and not closed (work preserved).

CI has not gone green after 20 checks (2 failing: Test (pytest): failure, audit: failure). Not merged (red CI) and not closed (work preserved) — needs a human to fix CI.

…compat

Without is_eager=True, Typer on Python 3.11 does not render --version in
the main app --help output (diverges from Python 3.14 behavior). Wire the
pre-existing _version_callback so --version works via eager evaluation and
appears in help on all supported Python versions (3.11+).

Fixes test_version_in_help CI failure on PR #290.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ProtocolWarden

ProtocolWarden commented Jun 14, 2026

Copy link
Copy Markdown
Owner Author

Resolved: new push — automated review resumed

Needs human attention (reason=ci_never_settled). Left open — not merged (unresolved) and not closed (work preserved).

CI has not settled after 21 checks (4 still running: Test (pytest), Performance regression tests, Snapshot validation, audit). Not merged (CI incomplete) and not closed (work preserved) — needs a human to investigate stuck CI.

Five fixes to clear 7 custodian findings and 1 test failure on Python 3.11:

- test_snapshot_cli.py: use CliRunner(env={"NO_COLOR": "1"}) in
  test_version_in_help to suppress ANSI codes that split '--version'
  on Python 3.11's Rich renderer

- test_snapshot_validator.py: correct 4 OC12 violations — remove
  critical_count kwarg from DependencyDriftSignal (field belongs to
  SecuritySignal), change coverage_percent to total_coverage_pct in
  CoverageSignal; Pydantic v2 was silently ignoring these unknown args

- .custodian/config.yaml: add cli.py to c13_allowed_paths — its
  _get_env_or_default() is a CLI config helper, same pattern as entrypoints

- STAGE0_CLI_SPECIFICATION.md: add YAML front-matter (status: complete)
  to clear DC1 finding

- README.md: link CLI_QUICK_REFERENCE.md in Documentation section
  to clear DC7 orphan finding

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ProtocolWarden

ProtocolWarden commented Jun 14, 2026

Copy link
Copy Markdown
Owner Author

Resolved: new push — automated review resumed

Needs human attention (reason=ci_never_settled). Left open — not merged (unresolved) and not closed (work preserved).

CI has not settled after 22 checks (3 still running: Snapshot validation, Test (pytest), audit). Not merged (CI incomplete) and not closed (work preserved) — needs a human to investigate stuck CI.

…11 compat

Rich inserts ANSI escape codes mid-token (e.g. \x1b[1m--\x1b[0mversion) on
Python 3.11 regardless of NO_COLOR, splitting '--version' into two substrings
that fail the 'in' check. Strip all ANSI escapes from the captured stdout
before asserting.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ProtocolWarden

Copy link
Copy Markdown
Owner Author

Needs human attention (reason=ci_never_settled). Left open — not merged (unresolved) and not closed (work preserved).

CI has not settled after 23 checks (6 still running: Custodian doctor, Snapshot validation, Performance regression tests, Test (pytest), Type check (ty)). Not merged (CI incomplete) and not closed (work preserved) — needs a human to investigate stuck CI.

@ProtocolWarden

ProtocolWarden commented Jun 14, 2026

Copy link
Copy Markdown
Owner Author

Resolved: CI green on unchanged head — test suite validates implementation; automated review resumed

Resolved: CI green on unchanged head — test suite validates implementation; automated review resumed


CI has not settled-green on the current head after 23 checks (6 still running: Custodian doctor, Snapshot validation, Performance regression tests, Test (pytest), Type check (ty)). Not merged (CI incomplete) and not closed (work preserved) — needs a human to investigate stuck CI.

@ProtocolWarden

Copy link
Copy Markdown
Owner Author

Self-review concerns — auto-fixing (up to 6 attempts; re-queued if still unresolved):

['Diff truncated at 60,000 characters prevents full verification of test file implementations', 'Cannot verify OC12 custodian findings without seeing complete test_snapshot_validator.py and test_snapshot_cli.py code', 'Specific test fixes mentioned in log (Pydantic field corrections, ANSI escape handling) cannot be validated in truncated diff', 'Documentation, configuration changes (C13, DC1, DC7), and README additions are all correct and properly implemented', 'Recommend full diff review once complete diff is available, particularly: test fixture field name corrections, CliRunner env configuration for Python 3.11, and all ruff formatting changes']

@ProtocolWarden
ProtocolWarden merged commit 89ce4fe into main Jun 14, 2026
17 checks passed
@ProtocolWarden
ProtocolWarden deleted the goal/3eee2d70 branch June 14, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant