Skip to content

refactor(verifiability): run archive smoke as direct CLI checks (#2196) - #2296

Merged
Sinity merged 1 commit into
masterfrom
feature/refactor/direct-archive-smoke-2196
Jun 21, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/refactor/direct-archive-smoke-2196

Conversation

@Sinity

@Sinity Sinity commented Jun 21, 2026

Copy link
Copy Markdown
Owner

Summary

Replaces the archive-smoke lab scenario's remaining ShowcaseRunner/exercise-catalog execution path with a small direct CLI smoke set over the real polylogue entrypoint. The scenario still emits a compact machine payload and can write a direct archive-smoke.json report artifact, but it no longer depends on the showcase runner just to exercise tier-0 command behavior.

Problem

#2196 is about removing showcase QA bureaucracy after ordinary demo, CLI, and visual checks exist. #2295 removed the QA report/session layers, but devtools lab scenario run archive-smoke --tier 0 still routed through the broader showcase exercise catalog and runner. That kept the old scaffold in the default verification lane even for three simple no-data CLI checks.

Solution

  • Adds typed direct ArchiveSmokeCheck / ArchiveSmokeCheckResult models inside devtools/lab_scenario.py.
  • Runs the tier-0 archive smoke path as direct CLI checks for main help, mark candidate help, and bash completions.
  • Keeps --json stdout machine-readable by sending progress to stderr.
  • Writes a compact archive-smoke.json report when --report-dir is provided.
  • Updates verification-lab tests to cover success, failure, unsupported tier, and report artifact behavior.

This does not close #2196. The remaining showcase catalog/runner files still exist for scenario projection, VHS, workspace, and broader catalog tests. They should be removed only after those consumers have direct replacement coverage.

Verification

  • devtools test tests/unit/showcase/test_verification_lane.py -> 8 passed
  • devtools lab scenario run archive-smoke --tier 0 --json >/tmp/polylogue-archive-smoke.json && jq -e '.ok == true and .stages.cli == \"ok\"' /tmp/polylogue-archive-smoke.json -> true
  • devtools verify --quick -> exit_code 0
  • pre-push hook reran devtools verify --quick -> exit_code 0

Ref #2196

Replace archive-smoke's remaining ShowcaseRunner/catalog dependency with a small direct CLI smoke set over the real polylogue entrypoint. The JSON mode now keeps stdout machine-readable while progress goes to stderr, and report-dir output writes a compact archive-smoke.json artifact instead of a showcase report wrapper.

Ref #2196
@coderabbitai

coderabbitai Bot commented Jun 21, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@Sinity, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 27 minutes and 35 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 2010b66f-8532-4bcf-a93e-fe751cfbb9a4

📥 Commits

Reviewing files that changed from the base of the PR and between e87bc09 and 6d53401.

📒 Files selected for processing (2)
  • devtools/lab_scenario.py
  • tests/unit/showcase/test_verification_lane.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/refactor/direct-archive-smoke-2196

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Sinity
Sinity merged commit c77aa90 into master Jun 21, 2026
11 checks passed
@Sinity
Sinity deleted the feature/refactor/direct-archive-smoke-2196 branch June 21, 2026 20:06

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6d53401b48

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread devtools/lab_scenario.py Resolved
Sinity added a commit that referenced this pull request Jun 21, 2026
…2196) (#2297)

## Summary

Moves VHS visual evidence tape generation off the showcase exercise
catalog and onto direct `VHSTapeSpec` definitions. The default five tape
flows are preserved as explicit visual specs while `Exercise` and
`exercise_catalog.json` stop carrying VHS-only fields.

## Problem

After #2295 and #2296, #2196 still had a catalog-driven visual evidence
path: `polylogue.showcase.vhs` discovered tape targets through
`vhs_capture` flags on showcase exercises. That kept the exercise
catalog responsible for VHS behavior even though VHS is a visual
evidence surface, not an archive exercise concern.

## Solution

- Adds direct `VHSTapeSpec` inventory in `polylogue/showcase/vhs.py`.
- Preserves the existing five default tape flows: main help, default
stats, list sessions, doctor readiness, and latest Markdown.
- Removes `vhs_capture` and `capture_steps` from `Exercise` and from the
serialized exercise catalog.
- Removes `vhs_exercises()` and its catalog integrity tests.
- Rewrites VHS tests around direct tape specs, custom capture steps,
output-dir writes, and default tape commands.

This still does not close #2196. Remaining live scope includes scenario
projection/workspace/catalog/runner consumers that still depend on the
showcase exercise model.

## Verification

- `devtools test tests/unit/showcase/test_vhs_generation.py
tests/unit/showcase/test_exercise_catalog.py
tests/unit/showcase/test_catalog_loader_runtime.py
tests/unit/showcase/test_scenario_models.py` -> 52 passed
- `devtools verify --quick` -> exit_code 0
- pre-push hook reran `devtools verify --quick` -> exit_code 0

Ref #2196
@Sinity

Sinity commented Oct 1, 2026

Copy link
Copy Markdown
Owner Author

Historical Codex triage: evidence checked at 5ebcfe5. This records that source revision; it does not claim a fresh review of current master.

Only the rows listed above are dispositioned. Held findings remain open.

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.

refactor(verifiability): replace showcase QA with demo-driven CLI and visual tests

1 participant