Repository navigation
fix(telemetry): add a 15-minute egress window - #1142
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed August 12, 2026, 11:14 AM ET / 15:14 UTC. ClawSweeper reviewWhat this changesThis PR adds Merge readiness✅ Ready for maintainer review This PR is still necessary: current main rejects the requested 15-minute window, while the branch adds it with focused regression and Worker-proof coverage. No actionable correctness or security finding was identified. Priority: P3 Review scores
Verification
How this fits togetherPublication activity is aggregated into sanitized GitHub-egress telemetry in the dashboard Worker. Operators query bounded windows from that store to inspect route-level detail while preserving completeness and privacy signals. flowchart LR
A[Publication activity] --> B[Egress telemetry aggregation]
B --> C[Sanitized Durable Object store]
C --> D[Window selection]
D --> E[Public observability response]
Before mergeNone. Agent review detailsSecurityNone. Review metricsNone. Technical reviewBest possible solution: Land the additive 15-minute option while retaining the existing 2,000-row cap and authoritative truncation and completeness flags. Do we have a high-confidence way to reproduce the issue? Yes. Current main's explicit allowlist accepts only 1, 6, and 24 hours, and the existing route turns an unsupported value into a 400 response. Is this the best way to solve the issue? Yes. Extending the existing allowlist preserves the established route, schema, five-minute bucket behavior, and privacy/completeness contract without adding a parallel telemetry surface. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ac340908bf69. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
Summary
hours=0.25) GitHub-egress observability windowRelated: CSW-127 and #1140.
This is a narrow Phase 0 follow-up. It does not implement Phase 1 coordination,
change publication scheduling, alter queue or retry behavior, increase the row
cap, or mutate credentials, gates, DLQs, or production state.
Problem
Post-merge observation found that organic high-cardinality publication traffic
can fill the public 2,000-row detail cap even for
hours=1. The full-windowmember/invocation/wire totals and reset observations remain usable, but
rows_truncated=truemakes the per-route and per-stage breakdown incomplete.Because one hour was the smallest accepted window, a 15-minute monitor could
not collect a smaller complete slice for local aggregation.
Implementation
hours=0.25in the existing public observability storefield
preserve truthful truncation flags
the same store's 15-minute query remains complete
OpenClaw Bay is unaffected: its compact six-hour summary and observer-only UI do
not change. The new surface is an optional query value on the existing API.
Validation
Exact base:
ac340908bf694c902f5a673374be1639ef9f220fExact head:
3c47cda57d9dae56479dc71dbcdaca93b7788553pnpm run build:allnode --test test/github-egress-telemetry.test.ts— 7/7pnpm run lintpnpm run check:docspnpm exec oxfmt --check dashboard/github-egress-telemetry.ts test/github-egress-telemetry.test.ts docs/proof/github-egress-telemetry/run-proof.mjsgit diff --check origin/main...HEADpnpm run codex:local:checkcodex review --uncommitted: no actionable findingscodex review --base origin/main: no actionable findingscodex review --base origin/mainafter proof-artifact assertion: no actionable findingspnpm run review -- --local-range --target-repo openclaw/clawsweeper --base origin/main:decision=keep_open confidence=high action=kept_open; local-only, no GitHub mutationThe repository-wide Windows
format:checkreports the existing CRLF formattingbaseline across hundreds of untouched files. The changed TypeScript/JavaScript
files pass focused
oxfmt --check, andgit diff --checkis clean. No platformpolicy or unrelated formatting change is included.
Real Behavior Proof
Claim
The production read-only API accepts
hours=0.25, preserves the Phase 0privacy and completeness contract, and gives a 15-minute monitor a smaller
bounded detail slice without altering publication behavior.
Exercised surface
3c47cda57d9dae56479dc71dbcdaca93b7788553provider=local-container, leasecbx_ea87b5d56d48, imagenode:24-bookworm, exit 0ExactReviewQueueDurable Objectreceipt deduplication, public query, and sentinel privacy scan
Scenario and observed result
The deterministic high-cardinality fixture inserted 2,001 distinct older
five-minute dimension rows plus one recent row. Its one-hour response was capped
at 2,000 with
rows_truncated=trueandquery_complete=false; its 15-minuteresponse contained only the recent row and returned
query_complete=true.The exact-head Crabbox proof then exercised the real public Worker route:
hours=0.25returnedwindow.hours=0.25andquery_complete=trueThe initial Windows-to-local-container sync attempt failed before execution with
rsync code 12. The successful proof used Crabbox
--no-sync, cloned the pushedbranch inside the container, and verified the exact head before running. This is
the same bounded workaround used by the original Phase 0 proof.
Limits
existing flags remain authoritative and the collector must record that gap.
or deliberately exhaust live quota.
circuits, probes, recovery ramps, or retry enforcement.
Risks and rollout
The change is additive and read-only. Existing callers using 1/6/24-hour
windows receive the same response shape and aggregation. The 2,000-row cap,
retention, privacy allowlists, and invalid-window behavior remain unchanged.
Rollback is a normal code revert removing
0.25from the accepted window setand its documentation/tests. It requires no queue drain, workflow change, gate
change, credential change, or state migration.
Release note
Internal operator telemetry: add a 15-minute GitHub-egress detail window for
high-volume monitoring.