Skip to content

feat(dev-harness): opt-in make lane-backend (fast wheel install) for the mobile harness and pre-push gates - #14349

Merged
Git-on-my-level merged 7 commits into
mainfrom
task/msd-harness-setup-backend
Sep 17, 2026
Merged

Git-on-my-level merged 7 commits into
mainfrom
task/msd-harness-setup-backend

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Sep 17, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Restores make setup-backend as the lock-synced contributor entrypoint (backend/scripts/sync-python-deps.sh / uv pip sync pylock.macos.toml). The previous commit on this branch silently pointed that target at unlocked requirements.txt, which broke scripts/test-make-setup.sh (the sandbox copies only the Makefile) and is not this lane's decision. make setup still depends on the lock target.
  • Adds opt-in make lane-backend (scripts/dev-harness/lane-backend.sh): uv pip install -r backend/requirements.txt into Python 3.11 backend/.venv, with an incomplete-venv probe (uvicorn, pyright, yaml, dotenv, google.auth). Not lock-hash identical. Sufficient for mobile-session start and the pre-push typecheck gate. Use make setup / make setup-backend for the locked environment.
  • Doctor missing-uvicorn remedy, _resolve_python.sh, and make lane-bootstrap closing text name make lane-backend.
  • Adds scripts/dev-harness/generate-app-env.sh: full flutter pub run build_runner build with neither --delete-conflicting-outputs nor --build-filter, then restores any tracked files git ls-files -d unlinked. A filtered env-only run deleted tracked app/lib/utils/manifest/manifest.g.dart and cost a 301s failed iOS build.

Stacked on #14321 (make lane-bootstrap), recreated on origin/task/msd-harness-v4-v7-bootstrap-hermeticity @ 5adcd221ba.

Product invariants affected

  • INV-MEM-4

Path-based (not intent-based): scripts/dev-harness/tests/test_python_resolver.py on this stack matches INV-MEM-4. This PR does not change memory promotion, intake, or consolidation.

How it was verified

  • bash scripts/test-make-setup.sh: make setup baseline prerequisites, automatic worktree bootstrap, backend dependency sync rerun, linked-worktree repo-root fallback, repair-git-primary-worktree (boolean-spelling included) all passed.
  • bash scripts/dev-harness/run-tests.sh: 304 passed, 6 skipped.
  • scripts/pr-preflight --lane local --base origin/main --pr-body-file .local/pr-body-setup-backend.md (this body).

Tests

  • test_setup_backend.py: Makefile setup-backend still calls sync-python-deps.sh; lane-backend calls the wheel script; bootstrap names make lane-backend and does not invoke destructive build_runner flags.
  • test_generate_app_env.py: the real invocation omits the forbidden flags; a stub flutter that deletes tracked manifest.g.dart is restored via git checkout.
  • Doctor / CLI missing-uvicorn remedies expect make lane-backend.

Failure class (fixes)

Failure-Class: none


Part of the mobile self-driving program (Harness lane). Implemented by Cursor Grok 4.6. Not pushed.


Part of the mobile self-driving program (Harness lane). Stacked on #14321. Implemented by Cursor cursor-grok-4.6-high. Coordinator verification on the head commit: bash scripts/test-make-setup.sh passes (the first version of this branch broke it by repointing make setup-backend; that target is now byte-identical to main), harness suite 304 passed / 6 skipped.

🤖 Generated with Claude Code

Review in cubic

Git-on-my-level and others added 6 commits September 17, 2026 07:34
app/test.sh skipped writing .dev.env when generated files already existed, so a leftover API_BASE_URL or mobile_beta/prod pairing could silently survive. Fail closed at the checker, test.sh, and doctor without rewriting the file.

Failure-Class: new
Co-authored-by: Cursor <[email protected]>
A linked worktree can run cheap pre-push gates and app/test.sh after one idempotent command: pinned Flutter, shared PUB_CACHE, Python 3.11 via uv, and yaml+dotenv only. An incomplete .venv directory is no longer treated as ready.

Failure-Class: none
Co-authored-by: Cursor <[email protected]>
Manifest-contract stubs only accepted `import yaml`. The resolver now probes `import dotenv, yaml` so an empty .venv is not treated as ready, and those stubs were skipped.

Failure-Class: none
Co-authored-by: Cursor <[email protected]>
…ock sync

uv pip sync of pylock.macos.toml lists hashed sdist+wheel for av/llvmlite/scipy/pyarrow
and stalled ~20 minutes; uv pip install -r requirements.txt takes index wheels
(69s here) and covers uvicorn/pyright/yaml/dotenv/google.auth for session start
and the pre-push typecheck. Lock-faithful sync stays in sync-python-deps.sh.

Co-authored-by: Cursor <[email protected]>
…e-backend

make setup-backend is the contributor lock-synced entrypoint; pointing it at
unlocked requirements.txt broke scripts/test-make-setup.sh. The fast wheel
install is make lane-backend. generate-app-env runs build_runner without the
flags that deleted tracked manifest.g.dart.

Co-authored-by: Cursor <[email protected]>
@github-actions

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
Git-on-my-level changed the base branch from task/msd-harness-v4-v7-bootstrap-hermeticity to main September 17, 2026 17:02
# Conflicts:
#	Makefile
#	scripts/dev-harness/LANE_BOOTSTRAP.md
#	scripts/dev-harness/_resolve_python.sh
#	scripts/dev-harness/bootstrap-lane-worktree.sh
#	scripts/dev-harness/cheap-gate-python-packages.txt
#	scripts/dev-harness/dev_harness/mobile_doctor.py
#	scripts/dev-harness/tests/test_mobile_doctor.py
@Git-on-my-level
Git-on-my-level merged commit 591d701 into main Sep 17, 2026
56 checks passed
@Git-on-my-level
Git-on-my-level deleted the task/msd-harness-setup-backend branch September 17, 2026 19:01
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