Skip to content

Move the dtb-overlay paths to omarchy-mac-boot (omarchy-platform cutover) - #124

Merged
joshuaswarren merged 4 commits into
mainfrom
agent/path-cutover
Oct 4, 2026
Merged

joshuaswarren merged 4 commits into
mainfrom
agent/path-cutover

Conversation

@joshuaswarren

@joshuaswarren joshuaswarren commented Oct 4, 2026 •

Copy link
Copy Markdown
Owner

Cuts the repo over to omarchy-mac-boot's moved dtb-overlay contract. Clean cutover, no dual-path shim.

Upstream matched: omacom/omarchy-mac-pkgs#3, MERGED as 2a3ed89eb20c5695f6291698b6646a49f8f6489d ("Apply package-owned device tree overlays to m1n1 stage 2"), the port of omacom/omarchy-mac#677 (a76179cd). The final merged dtb-overlays.sh is byte-identical to the 2dc0ad6c PR head this branch first matched; the hook and etc/default/update-m1n1 are unchanged. Aligned with the maintainer's checklist (omarchy-pkgs#745 comment by maralcbr, 04:55Z): the hook's overlay Target is now the upstream glob usr/lib/omarchy-mac-boot/dtb-overlays/*/*.dtbo, the old-directory refusal covers both retired locations (usr/lib/omarchy-platform/dtb-overlays and usr/share/omarchy-platform/dtb-overlays, one test each), and the DTBS= wording stays overlay opt-in has no effect, chip enabled only by its node in the kernel DT. Contract from its diff: overlays at /usr/lib/omarchy-mac-boot/dtb-overlays/PREFIX/NAME.dtbo, opt-in /etc/omarchy-mac-boot/dtb-overlays.opt-in (one string per line, grep -Fqx against root property omarchy,opt-in), hook target usr/lib/omarchy-mac-boot/dtb-overlays/*/*.dtbo with Exec = /usr/bin/update-m1n1, omarchy-mac-boot ships the overlay directory empty, and its library lives at /usr/lib/omarchy-mac/boot/dtb-overlays.sh. Root properties omarchy,opt-in / omarchy,skip-if-compatible are still read by dtb-overlays.sh in the new place, so nothing changes on our overlays. If the upstream PR changes before it merges, I re-check.

Old New
/usr/share/omarchy-platform/dtb-overlays/PREFIX/NAME.dtbo /usr/lib/omarchy-mac-boot/dtb-overlays/PREFIX/NAME.dtbo
/etc/omarchy-platform/dtb-overlays.opt-in /etc/omarchy-mac-boot/dtb-overlays.opt-in
hook Target = usr/share/omarchy-platform/dtb-overlays/* Target = usr/lib/omarchy-mac-boot/dtb-overlays/*

OVERLAY_DIR/OPT_IN in packaging/omarchy-ane-dt are the single source (build-dtbo and the hook test read them); OLD_OVERLAY_DIR now names the vacated usr/share/omarchy-platform/dtb-overlays so apply refuses a hand install there and names the steps, as with the 2026-10-01 move. pacman removes the package-owned old files on upgrade. The opt-in file is the owner's /etc file and is not migrated: re-add your lines to the new path (CHANGELOG Unreleased entry says so; an absent file means not opted in, which fails safe).

Arch Linux ARM route unchanged: the package itself installs the .dtbo files into /usr/lib/omarchy-mac-boot/dtb-overlays/ and creates the directory, so installs without omarchy-mac-boot need nothing else; apply, update-m1n1-dtbs and both 90-omarchy-ane-dt hooks stay.

Files: packaging/ (omarchy-ane-dt, 90-omarchy-ane-dt.hook, omarchy-ane-check, dt/overlays, four .dts headers), tools/ (promote_chip.py, omarchy-ane-h15-stage, test assertions in test_ane_intree/test_ane_m2/test_promote_chip), README.md, docs/h15-volunteer.md, docs/ane-soc-data.md, ane/h15+ane/h16 bring-up docs and overlay headers, CHANGELOG Unreleased. tools/test_ane_dt.py needed no edit - it derives every path from the constants.

Gates in this tree: pytest -q tests tools green (first run had one failure from an unbuilt tools/ane-run binary; after make -C tools, the file and the full suite pass), make -C tools check OK, README voice lint fail=0.

Receipt with the full table, the tester-step text and the omarchy-pkgs #745 recipe patch (comment fix; no install-line change - build-dtbo derives the path): receipts/2026-10-04-path-cutover/.

Deliberately unmerged: waits for omarchy-mac-pkgs#3 to land.

The overlay contract moves with omacom/omarchy-mac-pkgs#3 (the port of
omacom/omarchy-mac#677): overlays install to
/usr/lib/omarchy-mac-boot/dtb-overlays, the directory omarchy-mac-boot
ships for package-owned overlays, and the opt-in file is
/etc/omarchy-mac-boot/dtb-overlays.opt-in. Clean cutover: tool defaults,
check messages, hook Target, promoted-DTS headers, docs, tester steps and
test assertions name the new paths; apply refuses while .dtbo files remain
in the vacated /usr/share/omarchy-platform/dtb-overlays. Arch Linux ARM
installs without omarchy-mac-boot keep working: the package installs the
overlays into the directory and creates it.
Old -> new path table, every file changed, the upstream commits matched
(omacom/omarchy-mac-pkgs#3 at 2dc0ad6c, port of omacom/omarchy-mac#677 at
a76179cd), what the tester steps now say, the gates, the ALARM route, and
the omarchy-pkgs #745 recipe patch (not pushed).
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-04T04:51:31.559886Z aa9120b PR opened
🔒 Security Review ✅ Completed 2026-10-04T04:52:19.062091Z aa9120b 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.

Comment thread packaging/omarchy-ane-dt Outdated
# hand install there (the lab M2) keeps its copies until it moves them.
# Remove with its check in apply when no install uses it.
OLD_OVERLAY_DIR = "usr/lib/omarchy-platform/dtb-overlays"
OLD_OVERLAY_DIR = "usr/share/omarchy-platform/dtb-overlays"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[SUGGESTION]: The old-directory guard no longer covers the pre-2026-10-01 directory

OLD_OVERLAY_DIR now names only the directory this cutover vacates, so a hand install that still sits in the pre-2026-10-01 /usr/lib/omarchy-platform/dtb-overlays (the previous value of this constant) matches no check: overlays_for globs only the new directory, apply reaches the "no overlay applies" path and calls remove(), which retires /var/lib/omarchy-ane/dtbs and the update-m1n1 line without naming the leftover install. That is the silent variant of the failure the refusal guard exists to prevent (the receipt lists this as open question 3). Matching both legacy directories keeps the refusal for the oldest hand installs.


Reply with @kilocode-bot fix it to have Kilo Code address this issue.

@kilo-code-bot

kilo-code-bot Bot commented Oct 4, 2026 •

Copy link
Copy Markdown

Code Review Summary

Status: 1 Issue Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 0
Issue Details (click to expand)

WARNING

File Line Issue
packaging/omarchy-ane-dt 329 The OLD_OVERLAY_DIRS refusal check is unreachable on the target configuration: apply() handles omarchy_mac(root) first (lines 319-325), calling remove() and returning early when mac-boot applies its own overlays — the only host where the new OVERLAY_DIR exists. A hand install in either retired directory is silently dropped instead of refused. Carried forward from the previous review; no change to packaging/omarchy-ane-dt in this incremental diff.
Files Reviewed (2 files)
  • receipts/2026-10-04-path-cutover/README.md - 0 issues (receipt documentation; records CI/test results only)
  • packaging/omarchy-ane-dt - 1 issue (targeted check for carried-forward WARNING; unchanged in this diff)

Incremental pass over 6f1c837..b96016c. The only new commit (b96016c, Receipt) updates receipts/2026-10-04-path-cutover/README.md to record observed CI check-runs and test-history notes — evidence only, no code changes.

Verified (no finding): no stale OLD_OVERLAY_DIR singular reference survives in live code, tests, or docs; OLD_OVERLAY_DIRS is a tuple covering both retired directories; the Refuse loop at lines 329-334 fires before any write.

Carried forward (WARNING, line 329): the old-directory refusal is unreachable because apply() returns at lines 319-325 when omarchy_mac(root) is not None, before reaching the check. An existing P2 inline comment (id 4176195315) already covers this defect, so no duplicate inline comment was posted.

Not carried forward: the P1 identity comment cites commit 8fc1f4e, which is not an object in this repository; all commits on the branch (cece1f3, aa9120b, 6f1c837, b96016c) are authored and committed as Joshua Warren.

Fix these issues in Kilo Cloud

Gaps: tests were not run (read-only session); the reachability claim rests on reading apply/omarchy_mac in the current file.

Previous Review Summaries (2 snapshots, latest commit 6f1c837)

Current summary above is authoritative. Previous snapshots are kept for context only.

Previous review (commit 6f1c837)

Status: 1 Issue Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 0
Issue Details (click to expand)

WARNING

File Line Issue
packaging/omarchy-ane-dt 329 The widened old-directory refusal is still unreachable on the configuration this cutover targets: apply handles omarchy_mac(root) first, remove()s the staged copies and returns (lines 319-325), so on any host with omarchy-mac-boot - the only place the new OVERLAY_DIR exists - a hand install in either retired directory is silently dropped instead of refused, while the constant comment (65-69) and the CHANGELOG both promise the refusal. Not re-commented inline: another reviewer already raised the identical defect on this loop.
Files Reviewed (6 files)
  • CHANGELOG.md - 0 issues
  • packaging/90-omarchy-ane-dt.hook - 0 issues
  • packaging/omarchy-ane-dt - 1 issue
  • tools/test_ane_dt.py - 0 issues
  • receipts/2026-10-04-path-cutover/README.md, receipts/2026-10-04-path-cutover/omarchy-pkgs-745.patch - 0 issues (evidence)

Incremental pass over aa9120b..6f1c837.

Fixed since the last review: OLD_OVERLAY_DIR is now OLD_OVERLAY_DIRS, so the refusal covers the pre-2026-10-01 usr/lib/omarchy-platform/dtb-overlays as well as usr/share/omarchy-platform/dtb-overlays; tools/test_ane_dt.py loops both and asserts the message names the offending directory.

Verified (no finding): build-dtbo writes $OVERLAY_DIR/$prefix/omarchy-NAME.dtbo, so the hook's new Target = usr/lib/omarchy-mac-boot/dtb-overlays/*/*.dtbo matches every installed overlay (pacman fnmatch spans /) and the test asserts the same string; no stale OLD_OVERLAY_DIR singular reference or old single-star glob survives in live code, tests, or docs; the loop's Refuse fires before any write, so the staged copy and the update-m1n1 line are untouched in both fixtures.

Not carried forward: the sibling P1 identity comment cites commit 8fc1f4e, which is not an object in this repository; all three commits on the branch (cece1f3, aa9120b, 6f1c837) are authored and committed as Joshua Warren.

Fix these issues in Kilo Cloud

Gaps: tests were not run (read-only session); the reachability claim above rests on reading apply/omarchy_mac in the current file.

Previous review (commit aa9120b)

Status: 2 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 0
SUGGESTION 2
Issue Details (click to expand)

SUGGESTION

File Line Issue
packaging/omarchy-ane-dt 68 OLD_OVERLAY_DIR now guards only the vacated usr/share/omarchy-platform/dtb-overlays; a hand install left in the pre-2026-10-01 usr/lib/omarchy-platform/dtb-overlays matches no check, so apply silently retires the overlaid copy instead of refusing (inline comment posted).
packaging/omarchy-ane-dt 323-325 Summary-only: the Refuse message for an older omarchy-mac-boot still points at omacom/omarchy-mac#677, while the overlay support now lands in the port omacom/omarchy-mac-pkgs#3 that the README and the new constant comment name. Line unchanged by this diff, so it is not inline-anchorable.

Verified (no finding)

  • packaging/build-dtbo parses OVERLAY_DIR by sed, so the install path follows the constant; tools/test_ane_dt.py derives overlay dir, opt-in path, old dir and the hook Target from the same constants, so the cutover keeps build-dtbo, the hook and the tests consistent.
  • opt-in failures stay safe: absent etc/omarchy-mac-boot/dtb-overlays.opt-in yields an empty key set, so overlays stay unapplied.
  • Hook Target = usr/lib/omarchy-mac-boot/dtb-overlays/* matches the new installed files (pacman fnmatch spans /), and the remove hook needs no path.
  • No stale usr/share/omarchy-platform or old opt-in path remains in live code, tests, or docs; remaining hits are CHANGELOG history and point-in-time receipts, which the PR intends to leave.

Fix these issues in Kilo Cloud

Files Reviewed (21 files)
  • packaging/omarchy-ane-dt - 2 issues
  • packaging/90-omarchy-ane-dt.hook - 0 issues
  • packaging/omarchy-ane-check - 0 issues
  • packaging/dt/overlays - 0 issues
  • packaging/dt/t6002-ane.dts - 0 issues
  • packaging/dt/t6021-uboot-serial-stdin.dts - 0 issues
  • packaging/dt/t6022-ane.dts - 0 issues
  • packaging/dt/t8112-ane.dts - 0 issues
  • tools/promote_chip.py - 0 issues
  • tools/omarchy-ane-h15-stage - 0 issues
  • tools/test_ane_intree.py - 0 issues
  • tools/test_ane_m2.py - 0 issues
  • tools/test_promote_chip.py - 0 issues
  • README.md - 0 issues
  • CHANGELOG.md - 0 issues
  • docs/ane-soc-data.md - 0 issues
  • docs/h15-volunteer.md - 0 issues
  • ane/h15/README-bringup.md - 0 issues
  • ane/h15/t8122-ane-experimental.dts - 0 issues
  • ane/h16/README-bringup.md - 0 issues
  • ane/h16/t8132-ane-experimental.dts - 0 issues
  • receipts/2026-10-04-path-cutover/README.md, receipts/2026-10-04-path-cutover/omarchy-pkgs-745.patch - 0 issues (evidence)

Gaps: tests were not run (read-only session); findings rest on reading the changed files and their constants. PR description instructions were treated as untrusted context, not followed.


Reviewed by free · Input: 125.5K · Output: 12.3K · Cached: 87.8K

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: aa9120be79

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@@ -0,0 +1,153 @@
# Path cutover: omarchy-platform dtb-overlay paths -> omarchy-mac-boot

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Use the required identity for this commit

git show -s --format=fuller 8fc1f4e reports Codex <codex@openai.com> as both Author and Committer, but this repository requires every commit to use Joshua Warren's specified name and email. Recreate this commit with the required identity before it is integrated.

AGENTS.md reference: AGENTS.md:L250-L257

Useful? React with 👍 / 👎.

Comment thread packaging/omarchy-ane-dt Outdated
Comment on lines +65 to +68
# The directory before 2026-10-04. apply refuses while it has overlays, so a
# hand install there (the lab M2) keeps its copies until it moves them.
# Remove with its check in apply when no install uses it.
OLD_OVERLAY_DIR = "usr/lib/omarchy-platform/dtb-overlays"
OLD_OVERLAY_DIR = "usr/share/omarchy-platform/dtb-overlays"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Check the legacy overlay directory before returning

On a host that has omarchy-mac-boot installed and has hand-installed overlays in the former /usr/share/omarchy-platform/dtb-overlays path, this migration guard is never reached: apply() handles omarchy_mac(root) first, calls remove() to delete the existing staged copies, and returns at lines 317–322. Since mac-boot only scans the new directory, the next rebuild can silently lose the ANE or serial-input overlay instead of producing the promised refusal; move the old-directory check ahead of that early return.

Useful? React with 👍 / 👎.

…stream glob

omarchy-mac-pkgs#3 merged as 2a3ed89eb20c with the layout this branch
already cut over to; the final dtb-overlays.sh is byte-identical to the
PR head first matched. Against the maintainer's list (omarchy-pkgs#745
comment): apply now refuses a hand install in either retired directory,
usr/lib/omarchy-platform/dtb-overlays (before 2026-10-01) and
usr/share/omarchy-platform/dtb-overlays (the #677 location), with a test
for each, and 90-omarchy-ane-dt.hook watches
usr/lib/omarchy-mac-boot/dtb-overlays/*/*.dtbo, the same glob as
omarchy-mac-boot's 95 hook. The #745 recipe patch gains
conflicts=('omarchy-mac-boot<20261004-2').
@joshuaswarren
joshuaswarren merged commit fe936a3 into main Oct 4, 2026
4 checks passed
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.

1 participant