Skip to content

firmware: add CV1 contributor checks that need no jig - #24353

Closed
Git-on-my-level wants to merge 2 commits into
mainfrom
fw/cv1-contributor-tooling
Closed

Git-on-my-level wants to merge 2 commits into
mainfrom
fw/cv1-contributor-tooling

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

What changed and why

Adds checks a CV1 contributor can run without a jig: host tests, key-free application compilation, offline artifact preflight, and startup replay. Also adds the OTA design docs and the owner-OTA research code, so this work lives in the monorepo. No firmware behavior changes: audio_packet_logic.c is a tested seam that is not linked until transport.c switches to it in a separate change.

Also documents a bench trap: the mainboard has no antenna part, so an opened board barely radiates and weak advertising from it is not a firmware fault.

Product invariants affected

  • INV-CAP-1

Not changed in practice: the new lib/core seam is not linked into the firmware by this PR, so the capture path is unchanged. The change that links it needs its own BLE audio evidence.

How it was verified

  • python3 omi/firmware/tools/cv1/contributor.py quick-host --output <new-file> passes on this branch's base, on an M5 Mac.
  • python3 -m unittest discover -p 'test_*.py' in omi/firmware/tools/cv1: 161 tests pass.
  • source_review tests: 11 pass with the pinned NCS 2.9.0 source on the bench Mac, and skip cleanly without it. That run predates only the skip guard.

Not verified: none of this exercises hardware, Zephyr or a real OTA, and the compile-only path was not re-run for this PR. No release claim is made.

An independent code review ran on the first push and found three issues, all fixed here: imported receipts were labelled as actual observations, a telemetry fixture labelled sanitized still held a phone model, and the README stated one radio observation as an expectation. The fixture and its replay tool are removed because their consent and source can't be checked. The first commit on this branch still contains that fixture, so this PR must be squash-merged.

Tests

The PR is mostly tests. omi/tests/host/audio_packet_logic_test.c covers the new seam.

UI evidence

UI-Evidence: none -- firmware tooling and docs only

🤖 Generated with Claude Code

Add host checks, key-free application compilation, offline artifact
preflight, startup and telemetry replay, the OTA design docs and the owner
OTA research code. None of it flashes, signs, publishes or changes device
trust, and no firmware source changes: audio_packet_logic.c is a tested seam
that is not linked until transport.c switches to it separately.

Document that an opened board has no antenna contact, since the mainboard
relies on pogo pad PP1 and the BOM has no antenna part.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

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 ⚠️ Failed 2026-11-02T06:18:53.781833Z
We couldn’t complete this review. Comment @codex review to try again.
2590d60 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

Label imported receipts and captures operator_supplied, since the tools only
check that their bytes are unchanged. Remove the customer-derived telemetry
fixture and its replay tool, whose consent and source can't be checked. State
the covers-off radio reading as one observation, not an expected value.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Git-on-my-level

Copy link
Copy Markdown
Member Author

Replaced by #24354. The first commit here contained a telemetry fixture whose consent can't be verified, and this repo merges with merge commits, so it needs a clean branch.

@Git-on-my-level
Git-on-my-level deleted the fw/cv1-contributor-tooling branch November 2, 2026 06:27
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

Hey @Git-on-my-level 👋

Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request.

After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:

  • Project standards — Ensuring consistency across the codebase
  • User needs — Making sure changes align with what our users need
  • Code best practices — Maintaining code quality and maintainability
  • Project direction — Keeping aligned with our product principles and locked invariants

Before your next PR, please skim:

  • PRODUCT.md — product north star
  • Product invariants — locked rules (shared chat, memory tiers, agent control plane, integrations, brand)

If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing.

Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out.

Thank you for being part of the Omi community!

Git-on-my-level added a commit that referenced this pull request Nov 2, 2026
<!-- claude-projects-attribution: {"github_login":"Git-on-my-level"} -->
_Requested by **David**_

## What changed and why

Adds checks a CV1 contributor can run without a jig: host tests,
key-free application compilation, offline artifact preflight, and
startup replay. Also adds the OTA design docs. The owner-OTA research
code goes in a separate held change. No firmware behavior changes:
`audio_packet_logic.c` is a tested seam that is not linked until
`transport.c` switches to it in a separate change.

Also documents a bench trap: the mainboard has no antenna part, so an
opened board barely radiates and weak advertising from it is not a
firmware fault.

## Product invariants affected

- INV-CAP-1

Not changed in practice: the new `lib/core` seam is not linked into the
firmware by this PR, so the capture path is unchanged. The change that
links it needs its own BLE audio evidence.

## How it was verified

All on head `f322521`, from a clean clone on the bench Mac, with no
device access:

- `python3 omi/firmware/tools/cv1/contributor.py quick-host --output
<new-file>` passes.
- `python3 -m unittest discover -p 'test_*.py'` in
`omi/firmware/tools/cv1`: 191 tests pass.
- `source_review` tests: 14 pass with the pinned NCS 2.9.0 source, and
skip cleanly without it.
- `contributor.py compile-only` against pinned NCS 2.9.0:
`application_compile_only` passes.

Not verified: none of this exercises hardware, BLE or a real OTA. No
release claim is made.

Replaces #24353, whose first commit contained a telemetry fixture of
unverifiable consent. Every Cubic finding is dispositioned in the PR
comments. Findings on the research code move with it to its own held
change.

## Tests

The PR is mostly tests. `omi/tests/host/audio_packet_logic_test.c`
covers the new seam.

## UI evidence

UI-Evidence: none -- firmware tooling and docs only

🤖 Generated with [Claude Code](https://claude.com/claude-code)
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