Skip to content

fix(desktop): respect APT ASCII source field separators - #12680

Merged
morluto merged 1 commit into
mainfrom
audit/apt-source-ascii-tokenizer
Nov 20, 2026
Merged

morluto merged 1 commit into
mainfrom
audit/apt-source-ascii-tokenizer

Conversation

@morluto

@morluto morluto commented Nov 20, 2026

Copy link
Copy Markdown
Owner

Problem

REA split deb822 URI and suite values on JavaScript whitespace. APT uses ASCII separators, so a non-breaking space in a repository path or suite could prevent REA from matching APT's observed index to its source declaration.

Change

Split parsed source-field lists on the ASCII separators APT uses. Preserve non-ASCII characters in captured source identity. Export retains its separate replay admission checks. The quoted one-line .list grammar is outside this change.

Validation

The new regression failed on the prior parser. The updated matcher preserved interior and edge non-breaking spaces across 16 offline indextargets records from APT 2.8.4 and 3.2.0. The focused desktop tests passed with 134 successes and seven platform skips. check:fast passed on the final commit.

Author readiness

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-20T02:01:29.632982Z e50adc2 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no blocking defect was found.

Summary

Changes fieldValues to split on ASCII whitespace, preserving non-ASCII characters in APT source identity.

  • Deb822 source values keep non-breaking spaces when REA matches APT indexes.

Reviews (2) · Last reviewed commit: "fix(desktop): respect APT ASCII source f..." · Reviewed by Greptile

@morluto
morluto enabled auto-merge (squash) November 20, 2026 02:02
@morluto
morluto merged commit d7269f7 into main Nov 20, 2026
40 checks passed
@morluto
morluto deleted the audit/apt-source-ascii-tokenizer branch November 20, 2026 02:05
@morluto morluto added bug Something isn't working area: runtime Process capture and runtime observation labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: runtime Process capture and runtime observation bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant