Skip to content

fix(ci): unblock main by classifying failure routes for preview and fixing the access-log assertion (CHE-1143) - #100

Merged
congvc-dev merged 1 commit into
mainfrom
agent/x99-claude-opus/che1143-main-green
Oct 8, 2026
Merged

congvc-dev merged 1 commit into
mainfrom
agent/x99-claude-opus/che1143-main-green

Conversation

@congvc-bot-x99

@congvc-bot-x99 congvc-bot-x99 Bot commented Oct 7, 2026

Copy link
Copy Markdown

Why

main is red (commit 9745829), and every open PR fails the same Python job. Two independent causes:

  1. Preview route allowlist. PR feat(admin-console): classify run and step failures as SmartQA-side or prompt-side (CHE-1266) #80 (failure classifier) added three routes under /api/system/failures. The preview allowlist (feat(artemis): per-PR preview L2b - route allowlist and synthetic control dispatch #92) refuses to boot a preview with an unclassified route, so 9 preview tests fail (require_classified at apps/admin_console/server.py:563). Production is not affected, because that check runs only in preview mode.
  2. Access-log test. test_access_logging.py asserted the status phrase 200 OK, but the redacted access formatter prints the numeric status with session_id=... (CHE-1051 requires the session id). The test was inconsistent with test_logging_redaction.py.

What changed

  • preview_routes.py: classify GET /api/system/failures, POST /api/system/failures/collect and POST /api/system/failures/digest as DISABLED in preview. They are admin-only, and two of them write or send.
  • test_access_logging.py: assert HTTP/1.1" 200 and session_id=access-test in the access line.

Verified

Full unit suite: 3,652 passed, 9 skipped. ruff check .: clean. I tried restoring uvicorn's own access formatter first. It drops the session id and broke 4 tests in test_logging_redaction.py, so I reverted it.

Known limit

test_access_logging.py fails when it runs after test_preview_profile.py in the same process (5 failures on main too). CI runs in file order, so it passes there. A separate issue tracks the isolation bug.

Refs CHE-1143

@congvc-bot-x99

congvc-bot-x99 Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Author

This scheduled run's OCR status is NOT-RUN for cheese-work/artemis#100 at head 3709d624a00e0538f0bd97ba0363794dba47348b: the Autopilot is assigned to x99-codex-luna (gpt-6-luna), but this task requires x99-codex-sol (gpt-6.1-sol). The linked CHE-1143 thread has x99-codex-sol's signed PASS on this exact head and base, stating exact-pair OCR delegation complete. No findings are asserted by this run.

@congvc-dev
congvc-dev merged commit 8ec984a into main Oct 8, 2026
6 checks passed
@congvc-dev
congvc-dev deleted the agent/x99-claude-opus/che1143-main-green branch October 8, 2026 01:03
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