Skip to content

fix: remove duplicate helper preflight - #61

Draft
0cwa wants to merge 19 commits into
mainfrom
recovery/helper-preflight-grug-cleanup
Draft

fix: remove duplicate helper preflight#61
0cwa wants to merge 19 commits into
mainfrom
recovery/helper-preflight-grug-cleanup

Conversation

@0cwa

@0cwa 0cwa commented Aug 8, 2026

Copy link
Copy Markdown
Owner

What changed

  • Remove the duplicate helper_repository_preflight call from helper_contract_preflight.
  • Keep repository identity validation before OTA download.
  • Keep the dependency-aware patch.py --help runtime smoke check.
  • Split focused tests for repository identity and runtime smoke behavior.

Why

The helper Git HEAD was checked twice. The first check is the useful pre-download safety gate; the second added no new protection and mixed repository identity with runtime contract validation.

This keeps the simple lifecycle:

pin check → OTA download → environment/dependencies → CLI smoke → helper rewrite → OTA patch

It intentionally does not change OTA ownership, workflows, providers, ROM profiles, bootstrap/trust, module selection, F-Droid behavior, or private tool permissions.

Validation

  • Focused helper preflight test passed.
  • All 12 shell tests passed.
  • 34 applicable Python tests passed.
  • bash -n passed across tracked shell files.
  • git diff --check passed.
  • Independent review found no blocking findings.

Remote GrapheneOS and LineageOS CI should validate the published branch through the normal PR workflows.

0cwa and others added 19 commits July 18, 2026 04:45
…ate#320)

Co-authored-by: Renovate Bot <renovatebot@non-existent-email.com>
…create#319)

Co-authored-by: Renovate Bot <renovatebot@non-existent-email.com>
This reverts commit f715e9b, reversing
changes made to 069fd4a.
Verify locked artifacts with exact hash, size, and OpenSSH signatures before hostile-archive extraction. Revalidate cache and installs, publish atomically, and execute direct tool calls from post-verified sealed file descriptors.

Co-Authored-By: ruflo-bot <ruflo-bot@users.noreply.github.com>
Batch enabled executable acquisition before legacy downloads, reject legacy acquisition paths, clear stale disabled bindings, and route PixeneOS-owned avbroot calls through sealed descriptor execution.

Co-Authored-By: ruflo-bot <ruflo-bot@users.noreply.github.com>
Describe sealed direct execution, compatibility-only helper PATH resolution, deterministic reports, and the remaining trusted-runner gate before real OTA integration.

Co-Authored-By: ruflo-bot <ruflo-bot@users.noreply.github.com>
Keep repository identity validation at the pre-download boundary and make the later contract check runtime-only. Split focused tests so identity and smoke failures are independently covered.

Co-Authored-By: ruflo-bot <ruflo-bot@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Aug 8, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 26f6dd84-36de-4c32-bcd2-258a98c959c3

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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