fix: harden archive and xurl portability#79
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 28, 2026, 12:15 AM ET / 04:15 UTC. Summary Reproducibility: yes. from source inspection: set a bearer-token env var in a setup that also has xurl OAuth available, and the PR head returns Review metrics: 3 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Preserve xurl availability independently of bearer support, add coverage for authored/data-source status consumers, and land the backup fail-closed behavior only with maintainer-accepted upgrade docs or proof. Do we have a high-confidence way to reproduce the issue? Yes, from source inspection: set a bearer-token env var in a setup that also has xurl OAuth available, and the PR head returns Is this the best way to solve the issue? No. The portability/test hardening is useful, but the safest path is to preserve xurl availability separately from bearer availability and handle the backup upgrade behavior explicitly before merge. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: not found in the target repository. Codex review notes: model internal, reasoning high; reviewed against 10f98d3fb36a. Label changesLabel justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
Addressed the xurl/bearer review findings in What changed:
Verification from this branch:
I still cannot provide live X API/LaunchAgent proof from this cron host without maintainer credentials/runtime setup, but the auth-routing and option-forwarding blockers are now covered by focused tests. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Addressed the remaining ClawSweeper findings in What changed:
Verification from this branch:
I still cannot provide live X API/LaunchAgent proof from this cron host without maintainer credentials/runtime setup, but the two concrete correctness blockers now have behavior coverage and implementation changes. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Addressed the runtime status schema drift in What changed:
Verification from this branch:
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
Summary
fflateinstead of relying on a systemzipbinary..gitattributes, requiring the configured backup path to be the git toplevel, and fetchingorigin/maininto the remote-tracking ref.BIRDCLAW_DISABLE_BEARER_TRANSPORT=1.Test Plan
npx --yes node@25.8.1 ./node_modules/vitest/vitest.mjs run src/lib/xurl.test.ts src/lib/archive-import.test.ts src/lib/backup.test.ts src/lib/launchd.test.tscorepack pnpm exec oxfmt --check src/lib/archive-finder.ts src/lib/archive-import.test.ts src/lib/backup.ts src/lib/launchd.ts src/lib/xurl.test.ts src/lib/xurl.ts src/test/setup.tscorepack pnpm exec oxlint src/lib/archive-finder.ts src/lib/archive-import.test.ts src/lib/backup.ts src/lib/launchd.ts src/lib/xurl.test.ts src/lib/xurl.ts src/test/setup.tscorepack pnpm exec tsgo --noEmitgit diff --checkNote: local
oxlintexits 0 but reports one existingeslint(no-control-regex)warning on the pre-existing ANSI stripping regex insrc/lib/xurl.ts.