Skip to content

chore(test): remove false-green Reef live smoke - #116393

Merged
vincentkoc merged 1 commit into
mainfrom
audit/remove-reef-false-live-smoke
Jul 30, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
audit/remove-reef-false-live-smoke

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

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.ts route 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

  • Before removal, REEF_LIVE_GUARD=1 with 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.
  • Fresh autoreview: clean, no actionable findings, 0.99.
  • git diff --check: passed.

Changelog not required: test-only cleanup.

@vincentkoc vincentkoc self-assigned this Jul 30, 2026
@openclaw-barnacle openclaw-barnacle Bot added channel: reef Channel integration: reef size: S maintainer Maintainer-authored PR labels Jul 30, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review July 30, 2026 12:09
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Jul 30, 2026
@clawsweeper

clawsweeper Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 30, 2026, 8:12 AM ET / 12:12 UTC.

ClawSweeper review

What this changes

This PR removes Reef guard tests that could report a passing “live” smoke result without credentials, provider models, or an actual provider request.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep this PR open: it is maintainer-authored and carries the protected maintainer label, so this cleanup workflow must not auto-close it. The one-file test-only patch removes an opt-in block whose passing tests returned before any provider call when credentials or model variables were absent; the submitted scope is coherent and no concrete correctness or security defect is evident from the supplied diff and checks.

Priority: P3
Reviewed head: 0284329d4de51b25aa4c42da438592b197505ba4

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, coherent test cleanup with reported targeted and changed-file validation; no patch defect is evident from the supplied evidence.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER PR changes only test code; its focused test and changed-file validation are relevant supplemental evidence, while external-contributor real-behavior proof is not required.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This MEMBER PR changes only test code; its focused test and changed-file validation are relevant supplemental evidence, while external-contributor real-behavior proof is not required.
Evidence reviewed 4 items PR diff removes false-positive smoke path: The supplied branch diff deletes the live guard smoke suite and expectLiveGuardRubric helper from the Reef guard test file. The removed tests returned successfully when provider credentials or model variables were absent, so they could pass without exercising a provider.
Focused validation reported by PR: The PR body reports 19/19 retained tests passing through the repository Vitest wrapper and a Blacksmith Testbox changed-file check covering extension test types, lint, Knip, boundaries, and formatting.
Current review context: The PR is cleanly mergeable against current main and the supplied checks include successful changed-boundary, test-type, lint, guard, dependency, and security lanes. The review environment’s read-only command runner was unavailable, so this review could not independently inspect local git history beyond the supplied repository context.
Findings None None.
Security None None.

How this fits together

Reef 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]
Loading

Before merge

  • Complete next step (P2) - Protected maintainer handling and ordinary maintainer review remain the appropriate next step; no mechanical repair is identified.
Agent review details

Security

None.

PR surface

Tests -58. Total -58 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 1 59 -58
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 1 59 -58

Review metrics

None.

Technical review

Best 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 REEF_LIVE_GUARD=1 while provider credentials or model variables are unset enters the former tests and returns without a provider call. I could not independently execute that path because the read-only command runner was unavailable.

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.

Labels

Label changes:

  • add P3: This is a contained test-quality cleanup with no stated shipped runtime behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER PR changes only test code; its focused test and changed-file validation are relevant supplemental evidence, while external-contributor real-behavior proof is not required.

Label justifications:

  • P3: This is a contained test-quality cleanup with no stated shipped runtime behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER PR changes only test code; its focused test and changed-file validation are relevant supplemental evidence, while external-contributor real-behavior proof is not required.

Evidence

What I checked:

  • PR diff removes false-positive smoke path: The supplied branch diff deletes the live guard smoke suite and expectLiveGuardRubric helper from the Reef guard test file. The removed tests returned successfully when provider credentials or model variables were absent, so they could pass without exercising a provider. (extensions/reef/protocol/guard.test.ts:349, 0284329d4de5)
  • Focused validation reported by PR: The PR body reports 19/19 retained tests passing through the repository Vitest wrapper and a Blacksmith Testbox changed-file check covering extension test types, lint, Knip, boundaries, and formatting. (extensions/reef/protocol/guard.test.ts:1, 0284329d4de5)
  • Current review context: The PR is cleanly mergeable against current main and the supplied checks include successful changed-boundary, test-type, lint, guard, dependency, and security lanes. The review environment’s read-only command runner was unavailable, so this review could not independently inspect local git history beyond the supplied repository context. (3e7ecb3aeaaf)
  • Protected maintainer handling: The provided GitHub context marks this PR with maintainer and identifies its author association as MEMBER; repository cleanup policy requires keeping such items open for explicit maintainer handling. (0284329d4de5)

Likely related people:

  • vincentkoc: The supplied PR context attributes the current focused Reef guard-test cleanup commit to this person; local feature-history inspection was unavailable in the read-only environment, so ownership confidence remains low. (role: recent Reef test contributor; confidence: low; commits: 0284329d4de5; files: extensions/reef/protocol/guard.test.ts)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@vincentkoc

Copy link
Copy Markdown
Member Author

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 openclaw/ci-gate, Blacksmith changed-file validation, review artifacts, and fresh autoreview all passed.

@vincentkoc
vincentkoc merged commit 5504f1e into main Jul 30, 2026
154 of 157 checks passed
@vincentkoc
vincentkoc deleted the audit/remove-reef-false-live-smoke branch July 30, 2026 12:16
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Jul 30, 2026
* 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
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: reef Channel integration: reef maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant