Repository navigation
fix(logging): unblock production lint suppression checks - #166841
Conversation
Use explicit source and exec captures in the prefilter and vendor guards. This preserves read order and method identity while allowing type-aware lint to check the code without expanding the approved suppression tail. Combine adjacent null and deduplication guards in pattern resolution to keep the existing line-count ratchet without changing resolution behavior.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
|
Codex review: needs maintainer review before merge. Reviewed October 7, 2026, 8:31 PM ET / October 8, 2026, 00:31 UTC. ClawSweeper reviewWhat this changesReplace destructured redaction-pattern captures with explicit property reads and simplify pattern deduplication to remove two lint suppressions without changing masking behavior. Merge readiness✅ Ready for maintainer review The patch remains useful: pinned main still contains the two unapproved suppressions. The changes preserve redaction behavior, and no actionable correctness or security defect was found. Maintainer-authored work remains open. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s redaction layer receives log records and tool text, resolves secret-matching rules, and masks sensitive values before output. Pattern identity guards prevent optimizations from skipping rules whose behavior has changed. flowchart TD
A[Logs and tool text] --> B[Resolve redaction patterns]
C[Configured and built-in rules] --> B
B --> D[Check pattern identity]
D --> E[Scan and mask secrets]
E --> F[Protected output]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -3. Total -3 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the existing redaction owner and mutation safeguards while satisfying lint through typed property captures, without expanding the suppression baseline. Do we have a high-confidence way to reproduce the issue? Yes, at source level: pinned main contains two suppression directives absent from the explicit production allowlist. The PR reports the failing gate and subsequent passing validation; this review did not execute it. Is this the best way to solve the issue? Yes. Explicit captures preserve property-read order and method identity, and the combined guard preserves null rejection and deduplication without changing policy or widening the baseline. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4f4d61a73b5e. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
…166841) Use explicit source and exec captures in the prefilter and vendor guards. This preserves read order and method identity while allowing type-aware lint to check the code without expanding the approved suppression tail. Combine adjacent null and deduplication guards in pattern resolution to keep the existing line-count ratchet without changing resolution behavior. (cherry picked from commit 354f940)
…penclaw#166841) Use explicit source and exec captures in the prefilter and vendor guards. This preserves read order and method identity while allowing type-aware lint to check the code without expanding the approved suppression tail. Combine adjacent null and deduplication guards in pattern resolution to keep the existing line-count ratchet without changing resolution behavior.
…essions" This reverts commit 2ed37e8. openclaw#166841 already removed both unbound-method suppressions, so the added inventory entries made the exact-list test fail.
Route the trusted-proxy wizard health fixture through the existing database worker owner, matching the landed fix in 4366b9e. Retain curl's one-second request deadline while allowing cold PowerShell startup and cleanup to finish inside a 30-second child watchdog and 60-second test ceiling. Apply the exact logging cleanup already landed in 354f940 (#166841): retain property evaluation order and the original exec method while removing two obsolete suppressions. Production code shrinks by three lines; the suppression inventory is unchanged. Validation: wizard 5/5 and focused logging/suppression 103/103 on each of Node 24 and pinned Bun; native Windows download/cleanup proof passes; production types, scoped lint, formatting and P2 local review pass.
Route the trusted-proxy wizard health fixture through the existing database worker owner, matching the landed fix in 4366b9e. Retain curl's one-second request deadline while allowing cold PowerShell startup and cleanup to finish inside a 30-second child watchdog and 60-second test ceiling. Apply the exact logging cleanup already landed in 354f940 (#166841): retain property evaluation order and the original exec method while removing two obsolete suppressions. Production code shrinks by three lines; the suppression inventory is unchanged. Validation: wizard 5/5 and focused logging/suppression 103/103 on each of Node 24 and pinned Bun; native Windows download/cleanup proof passes; production types, scoped lint, formatting and P2 local review pass.
Route the trusted-proxy wizard health fixture through the existing database worker owner, matching the landed fix in 4366b9e. Retain curl's one-second request deadline while allowing cold PowerShell startup and cleanup to finish inside a 30-second child watchdog and 60-second test ceiling. Apply the exact logging cleanup already landed in 354f940 (#166841): retain property evaluation order and the original exec method while removing two obsolete suppressions. Production code shrinks by three lines; the suppression inventory is unchanged. Validation: wizard 5/5 and focused logging/suppression 103/103 on each of Node 24 and pinned Bun; native Windows download/cleanup proof passes; production types, scoped lint, formatting and P2 local review pass.
Route the trusted-proxy wizard health fixture through the existing database worker owner, matching the landed fix in 4366b9e. Retain curl's one-second request deadline while allowing cold PowerShell startup and cleanup to finish inside a 30-second child watchdog and 60-second test ceiling. Apply the exact logging cleanup already landed in 354f940 (#166841): retain property evaluation order and the original exec method while removing two obsolete suppressions. Production code shrinks by three lines; the suppression inventory is unchanged. Validation: wizard 5/5 and focused logging/suppression 103/103 on each of Node 24 and pinned Bun; native Windows download/cleanup proof passes; production types, scoped lint, formatting and P2 local review pass.
…166841) Use explicit source and exec captures in the prefilter and vendor guards. This preserves read order and method identity while allowing type-aware lint to check the code without expanding the approved suppression tail. Combine adjacent null and deduplication guards in pattern resolution to keep the existing line-count ratchet without changing resolution behavior. (cherry picked from commit 354f940)
Route the trusted-proxy wizard health fixture through the existing database worker owner, matching the landed fix in 4366b9e. Retain curl's one-second request deadline while allowing cold PowerShell startup and cleanup to finish inside a 30-second child watchdog and 60-second test ceiling. Apply the exact logging cleanup already landed in 354f940 (#166841): retain property evaluation order and the original exec method while removing two obsolete suppressions. Production code shrinks by three lines; the suppression inventory is unchanged. Validation: wizard 5/5 and focused logging/suppression 103/103 on each of Node 24 and pinned Bun; native Windows download/cleanup proof passes; production types, scoped lint, formatting and P2 local review pass.
Route the trusted-proxy wizard health fixture through the existing database worker owner, matching the landed fix in 4366b9e. Retain curl's one-second request deadline while allowing cold PowerShell startup and cleanup to finish inside a 30-second child watchdog and 60-second test ceiling. Apply the exact logging cleanup already landed in 354f940 (#166841): retain property evaluation order and the original exec method while removing two obsolete suppressions. Production code shrinks by three lines; the suppression inventory is unchanged. Validation: wizard 5/5 and focused logging/suppression 103/103 on each of Node 24 and pinned Bun; native Windows download/cleanup proof passes; production types, scoped lint, formatting and P2 local review pass.
What Problem This Solves
Fixes main CI's production-suppression allowlist failure after two new method-capture suppressions raised the count from 78 to 80.
User Impact
No user-visible behavior change. Secret-redaction guards keep their existing mutation checks, and the approved suppression allowlist stays unchanged.
Why This Change Was Made
Capture
sourceandexecexplicitly instead of destructuring them. The normal type-aware linter accepts those fully typed captures, which preserve property-read order and the original method identity. No casts, reflective probes, rule overrides, or baseline growth are needed. Combining adjacent null/deduplication guards keeps the oversized file within its existing line-count ratchet without changing pattern resolution.Evidence
redact.tscleanup also passed a bounded single-file type-aware lint check on macOS. Linux boundary lint passed on the final files.check-changedpassed through types and stopped at the inherited unusedreadRecommendedModelsexport inscripts/publish-model-catalog.mts; this patch does not change that file or its imports.Remaining whole-config proof is incomplete: unit-fast partitions 3/4 and 4/4, tooling, Gateway, infra, commands, and agent configurations. Remote capacity and synchronization failures prevented those runs. No required check was disabled, and no tests or assertions were changed.
Linux proof ran on the patch atop
06a1b56f5c9b; the subsequent rebase preserved the reviewed patch bytes. No ordinary CI dispatches or reruns were used.