Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/review-reliability-observer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Observe review reliability

on:
workflow_run:
workflows: [ClawSweeper]
types: [completed]

permissions:
actions: read
contents: read

concurrency:
group: review-reliability-observer-${{ github.event.workflow_run.id }}-${{ github.event.workflow_run.run_attempt }}
cancel-in-progress: false

jobs:
observe:
name: Observe terminal ClawSweeper review run
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v7
# workflow_run may expose secrets, so execute observer code only from the trusted default branch.
with:
ref: ${{ github.event.repository.default_branch }}
persist-credentials: false

- name: Record terminal review wave
env:
CLAWSWEEPER_WEBHOOK_SECRET: ${{ secrets.CLAWSWEEPER_WEBHOOK_SECRET }}
GH_TOKEN: ${{ github.token }}
QUEUE_URL: ${{ vars.CLAWSWEEPER_EXACT_REVIEW_QUEUE_URL || 'https://clawsweeper.openclaw.ai' }}
run: node scripts/review-run-observer.mjs --event-file "$GITHUB_EVENT_PATH"
13 changes: 13 additions & 0 deletions dashboard/dashboard-health.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,19 @@ export function summarizeDashboardHealth(snapshot: Record<string, unknown>): Das
else if (reviewTelemetryStatus !== "healthy") {
raise("amber", "review_telemetry_unavailable");
}

if (queue.review_execution_health != null) {
const reviewExecution = objectValue(queue.review_execution_health);
const reviewExecutionStatus = String(reviewExecution.health || "");
// Passive mode is a deliberate pre-producer rollout state and must not page operators
// before PR 674 turns enforcement on.
if (reviewExecutionStatus === "critical") raise("red", "review_execution_critical");
else if (reviewExecutionStatus === "degraded") {
raise("amber", "review_execution_degraded");
} else if (!["healthy", "passive"].includes(reviewExecutionStatus)) {
raise("amber", "review_execution_degraded");
}
}
}

const operationalStatus = String(objectValue(snapshot.operational_health).status || "");
Expand Down
Loading