Repository navigation
fix(logging): preserve UUID token fragments - #128258
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 23, 2026, 11:54 AM ET / 15:54 UTC. ClawSweeper reviewWhat this changesThe PR requires a safe leading boundary before Firecrawl-shaped tokens and adds regression coverage that preserves UUID-like artifact identifiers while masking standalone tokens. Merge readinessNo blocking correctness finding. Keep this protected maintainer PR open for normal exact-head CI completion; the shared boundary repair is the clean owner-level fix. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (partial) — step 2 Assertions:
How this fits togetherOpenClaw’s shared logging redactor sanitizes transcript and diagnostic text before it is retained or displayed. Agent transcript processing calls that redactor on tool-result text, so an overbroad token rule can alter opaque identifiers. flowchart LR
A[Tool and diagnostic text] --> B[Shared redaction patterns]
B --> C[Identifier-safe boundary]
C --> D[Sanitized transcript text]
D --> E[Replay and artifact references]
Before merge
Agent review detailsSecurityNone. PR surfaceSource 0, Tests +10. Total +10 across 2 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep one shared identifier-safe rule for Firecrawl-shaped tokens and retain the direct regression cases rather than adding artifact-specific exceptions. Do we have a high-confidence way to reproduce the issue? Yes—current source shows the unbounded pattern can match the UUID fragment, while the proposed boundary excludes it; this read-only review did not execute the regression. Is this the best way to solve the issue? Yes—the pattern list is the shared owner, and existing comparable vendor patterns already use the same identifier-safe boundary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against fd4404d0b618. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
What Problem This Solves
Fixes an issue where a UUID fragment could accidentally match the Firecrawl token redaction pattern. When a managed image artifact ID contained a group ending in
fc-followed by its final 12 hexadecimal characters, transcript redaction corrupted the ID and later media resolution returned no artifact.Why This Change Was Made
The Firecrawl token pattern now uses the existing identifier-safe leading boundary. Real Firecrawl tokens remain redacted, while token-shaped substrings inside UUIDs and other identifiers remain intact.
AI-assisted; the patch was independently reviewed and repeatedly stress-tested.
User Impact
Managed images and other UUID-keyed artifacts no longer disappear nondeterministically because redaction altered their identifiers. Secret redaction behavior for actual Firecrawl credentials remains unchanged.
Evidence
git diff --checkpassed.