Skip to content

fix(tea-plugin): surface an operator-visible notice on fail-open gate verdicts - #807

Draft
gmoncor wants to merge 1 commit into
bmad-code-org:mainfrom
gmoncor:fix/s01-08-surface-tea-fail-open-notice
Draft

gmoncor wants to merge 1 commit into
bmad-code-org:mainfrom
gmoncor:fix/s01-08-surface-tea-fail-open-notice

Conversation

@gmoncor

@gmoncor gmoncor commented Sep 17, 2026

Copy link
Copy Markdown

What: When every configured artifact for a blocking gate returns a None verdict, emit a visible stderr notice naming the gate and that this is being treated as fail-open/pass, instead of silently continuing.

Why: The fail-open behavior itself is a deliberate, documented, and tested design choice and this PR does not change it; but today a fail-open pass leaves zero operator-visible trace.

How:

  • Add a stderr print at the point where artifact lookup yields a None verdict for every configured artifact of a gate, reusing the print-to-stderr convention already used by unity_setup.py/unity_teardown.py.
  • Do not change GATE_ARTIFACTS, the '|'-skip logic, or the fail-open return value.

Testing: Extend the existing test_missing_artifact_is_fail_open / test_garbled_artifact_is_fail_open tests to also assert on captured stderr, confirming the commit still proceeds.

Changelog: "Added: the TEA plugin now prints an operator-visible notice when a gate's artifacts can't be found or parsed and the gate fails open."

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Sep 17, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

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.

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