Repository navigation
chore(test): remove false-green Reef live smoke - #116393
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 30, 2026, 8:12 AM ET / 12:12 UTC. ClawSweeper reviewWhat this changesThis PR removes Reef guard tests that could report a passing “live” smoke result without credentials, provider models, or an actual provider request. Merge readinessKeep this PR open: it is maintainer-authored and carries the protected Priority: P3 Review scores
Verification
How this fits togetherReef is a channel extension whose guard adapters evaluate messages through configured OpenAI or Anthropic providers. The changed test file exercises those adapters; removing the misleading opt-in smoke block leaves the ordinary mocked adapter contract tests as the executable coverage. flowchart LR
A[Guard test runner] --> B[Reef guard adapter tests]
B --> C[Provider adapter setup]
C --> D{Credentials and model configured?}
D -->|No| E[Old smoke test returned as passed]
D -->|Yes| F[Provider guard request]
B --> G[Retained mocked contract tests]
Before merge
Agent review detailsSecurityNone. PR surfaceTests -58. Total -58 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Land the narrow removal if maintainers agree that Reef should not advertise live provider coverage until a discoverable dedicated live-test suite with explicit provisioning exists. Do we have a high-confidence way to reproduce the issue? Yes, from the supplied source diff and PR description: enabling Is this the best way to solve the issue? Yes. Removing tests that falsely imply live coverage is narrower and more truthful than retaining them behind another skip condition; a future real suite should use the repository’s dedicated live-test discovery route and explicit provider provisioning. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 3e7ecb3aeaaf. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Owner review complete: land the narrow removal. The former block could pass without provider calls and had no live-runner route; retained Reef guard coverage is 19/19 green. Exact-head |
|
Merged via squash.
|
* origin/main: (99 commits) docs(automation): rename scheduled-tasks feature wording to Automations (#114855) feat(ui): finish cron -> Automations rename in visible strings (#114853) feat(cli): add openclaw automations alias and reword cron display prose (#114854) feat(agents): rename scheduler agent tool cron -> automations (#114841) fix(tui): preserve session state across switches and reconnects (#116399) feat(agents): report CLI command outcomes in channel progress fix(cli): preserve explicit option intent (#116389) fix(release): trust update restart harness (#116301) test(reef): remove false-green live guard smoke (#116393) test(comfy): evaluate live guards after setup (#116388) fix(heartbeat): serialize wake lifecycle state (#116351) test: remove redundant extension boundary wrapper (#116385) fix(test): bound Testbox agentic and extension suites (#115696) fix(ui): show the correct Threads page size (#116349) test(discord): align progress timing expectations (#116377) feat(ui): add composable skill references (#116330) fix(qa): prevent Slack cleanup from stalling profile runs (#116361) fix(ci): validate frozen release candidates faithfully (#116357) improve(ci): fail_fast option for release validation, off by default (#116352) fix(agents): compare shell tool names case-insensitively and stop re-parsing tool labels ...
What Problem This Solves
Resolves a test-quality problem where enabling the Reef live guard flag without provider models or credentials reported two passing tests even though no provider call occurred. The block also lived in a regular unit-test file, so the canonical live-test runner could not discover it.
Why This Change Was Made
Remove the unreachable false-evidence live block and its helper instead of adding another skip wrapper. A real Reef live suite would require a dedicated
*.live.test.tsroute plus model provisioning; that broader contract does not exist today.User Impact
No shipped runtime behavior changes. Maintainers no longer see green Reef live-smoke results that performed no live validation.
Evidence
REEF_LIVE_GUARD=1with provider variables unset reported 2 passed tests without provider calls.node scripts/run-vitest.mjs extensions/reef/protocol/guard.test.ts: 19/19 passed after removal.node scripts/check-changed.mjs -- extensions/reef/protocol/guard.test.ts: passed on Blacksmith Testbox, including extension test types, lint, Knip, boundaries, and format checks.git diff --check: passed.Changelog not required: test-only cleanup.