Skip to content

fix(redaction): skip RFC 3339 offset and HTAB timestamps - #1040

Open
cursor[bot] wants to merge 4 commits into
mainfrom
cursor/bc-f7a56233-973b-4875-8395-c453b26f5bde-841c
Open

fix(redaction): skip RFC 3339 offset and HTAB timestamps#1040
cursor[bot] wants to merge 4 commits into
mainfrom
cursor/bc-f7a56233-973b-4875-8395-c453b26f5bde-841c

Conversation

@cursor

@cursor cursor Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Next action

Merge this successor instead of #1038. That head still fail-closes a pretty-printed password dump when the collector emits RFC 3339 time-numoffset (+00:00, -07:00) or separates the timestamp from the payload with HTAB.

What changed

  • Skip line-start RFC 3339 timestamps whose offset is Z or time-numoffset, then a SPACE or HTAB, inside raw JSON spans the same way JSON whitespace is skipped.
  • Keep the [ opener guard from fix(redaction): keep timestamped Actions job logs visible #1038 so [INFO] / [timeout] stay visible.
  • Add fail-first fixtures for +00:00 / -07:00 prefixes and tab-separated downloaded logs.
  • Cite RFC 3339 §5.6 time-numoffset and HTAB next to the existing APA 7 JSON / workflow-log references.

Verification

Focused redaction selection: 170 passed. Owned modules redact_sensitive_log.py, sandboxed_verify.py, and sandboxed_web_e2e.py report 100% statement and branch coverage (1,094 statements, 444 branches).

Acceptance

Do not merge #929, #1031, or #1038. After this head is green, treat [REDACTED] as evidence suppression and rerun the exact-head sandbox redaction quality job before closing #908.

Open in Web View Automation 

seonghobae and others added 4 commits August 17, 2026 00:22
Replay unique #929 source onto current origin/main. Skip shared
ARCHITECTURE/CLAUDE/AGENTS trees and stale materialize files.
Treat only plausible JSON openers as span starts and score a failed parse
against the window until the next opener. A ##[group] marker or prose
[timeout] no longer fail-closes a later pretty-printed password object.
Cite RFC 8259, ECMA-404, and ISO/IEC 21778 for duplicate-member layout.

Co-authored-by: Seongho Bae <[email protected]>
Skip RFC 3339 runner timestamps inside raw JSON spans and open '[' only
for a real JSON value so a downloaded pretty-printed password dump keeps
##[group] and [INFO] text instead of fail-closing the entire log.

Co-authored-by: Seongho Bae <[email protected]>
Z-only prefixes still fail-closed a pretty-printed password dump when
the collector emitted time-numoffset or a tab after the timestamp.
Skip those RFC 3339 §5.6 forms the same way Z plus SPACE is skipped.

Co-authored-by: Seongho Bae <[email protected]>
@cursor
cursor Bot requested a review from seonghobae August 16, 2026 15:54
@seonghobae
seonghobae marked this pull request as ready for review August 16, 2026 15:56
@cursor

cursor Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor Author

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale comment

Next action

Mark this pull request ready for review, then merge it instead of #1038, #1031, or #929.

This head skips RFC 3339 time-numoffset and HTAB runner prefixes inside raw JSON spans so a downloaded pretty-printed password dump keeps ##[group] and status text. Local focused selection: 170 passed; 100% statement/branch on the three owned modules.

Do not self-approve. After it is green, treat [REDACTED] as evidence suppression and rerun the exact-head sandbox redaction quality job before closing #908.

View PR

Open in Web View Automation 

Sent by Cursor Automation: Fix Issues

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Next action

Do not merge this pull request. Merge #1053 instead.

This head correctly skips RFC 3339 time-numoffset and HTAB on line-start downloaded zip timestamps, so a pretty-printed password object keeps ##[group] and "status". The production collector does not feed that shape. collect_failed_check_evidence.sh runs gh run view --log-failed, which prefixes every zip line with job<HTAB>step<HTAB> (UNKNOWN STEP when unassociated) before the timestamp (GitHub, n.d.-d). On this head that prefix is treated as JSON text, the next collector line breaks the span, and the excerpt fail-closes to [REDACTED].

#1053 (5b66ccd4) skips that two-field prefix only when an RFC 3339 timestamp follows, and unstructured-redacts skipped job/step bytes that remain inside a rewritten span so a credential-shaped job name or run: step text cannot survive on continuation lines. Focused selection: 177 passed; 100% statement/branch on the three owned modules (1,136 / 464).

Do not self-approve. Do not merge #929, #1031, #1038, or this pull request.

View PR

Open in Web View Automation 

Sent by Cursor Automation: Fix Issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants