Skip to content

fix(desktop): preserve effective APT one-line source identity - #12711

Merged
morluto merged 1 commit into
mainfrom
codex/apt-list-effective-replay-12694
Nov 20, 2026
Merged

morluto merged 1 commit into
mainfrom
codex/apt-list-effective-replay-12694

Conversation

@morluto

@morluto morluto commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

Fixes #12694.

Dependency

#12363 landed in 192934c5b1. This PR is rebased and retargeted to main. The rebased head has the same file tree as the tested stacked revision.

Problem and change

APT reads quoting and percent escapes in .list words before choosing repository indexes. REA could attribute packages to the wrong source or emit a deb822 declaration with a different suite or component.

Use one word reader for positional values and option assignments. Keep the authored URI, suite and component spellings and carry effective components and the observed index identity through capture and export. Withhold a declaration when the effective identity cannot be represented as one equivalent deb822 token. Captures missing newer optional facts remain readable. If the original token or index identity cannot be established, export asks for a new capture.

The change stays within the existing local APT capture and export workflow. The owning vendor-package spec documents the preserved values and replay rules.

Validation

  • Offline APT 2.8.4 reproduced the source identities, including the case-sensitive quoted architecture option. The issue records the input and native comparisons.
  • All 286 focused tests passed on Debian Linux as a non-root user with networking disabled, including the real APT 2.6.1 inventory cases and desktop capture lifecycle cases. On macOS, 264 passed with 22 platform-gated skips. check:fast and docs:check passed.
  • No live AgentEnv deployment was run. The native APT source comparisons exercise source grammar and target identity. Key verification in the regression fixture uses recorded status.

Author readiness

Human owner: @morluto

  • 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.

Use the same APT word reader for positional fields and option assignments. Carry authored and effective repository facts through capture and replay.

Fixes #12694.
@morluto
morluto force-pushed the codex/apt-list-effective-replay-12694 branch from 01513b6 to 1cb8a14 Compare November 20, 2026 02:41
@chatgpt-codex-connector

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:41:39.057335Z 6069e9e 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.

@morluto
morluto merged commit b61006e into main Nov 20, 2026
10 checks passed
@morluto
morluto deleted the codex/apt-list-effective-replay-12694 branch November 20, 2026 02:42
@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.

[Bug] APT .list quoting and escapes change repository identities during desktop replay

1 participant