Skip to content

backend-go: generate port tasks from merged Python PRs - #25810

Merged
Git-on-my-level merged 6 commits into
mainfrom
agent/m1-studio-codex-sol/eae74e63b092
Nov 19, 2026
Merged

Git-on-my-level merged 6 commits into
mainfrom
agent/m1-studio-codex-sol/eae74e63b092

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

Summary

Generate port task drafts when a merged Python PR changes finalization or batch behavior. The map covers all 34 finalization and 41 batch runtime Python sources cited by the landed contracts, plus imported family policy and implementation. The scope document records the boundaries and exclusions. The PR branch includes main at contracts merge 97b4059861a7. The batch map includes the projection kill-switch defaults introduced upstream in #25791.

The Backend Go Checks workflow runs the Python suite when these files change in a PR. On each main push, it walks the pushed first-parent merge commits, looks up their merged main PRs, and checks the complete paginated file list against GitHub's changed_files count before drafting. The CLI also rejects duplicate filenames in a counted input and uses both sides of renames. The job prints JSON and uses read-only permissions. Tracker writes are outside this change. Commit-to-PR API · PR files API

Verification

  • Nine focused tests exercise family matching, renames, duplicate or truncated file lists, malformed inputs, task text, existence of every mapped file, and coverage of the checked-in batch contract. Run python3 -m unittest discover -s .github/scripts -p test_go_port_tasks.py -v.
  • actionlint .github/workflows/backend-go-checks.yml passed. Ran the workflow's push steps locally over three real first-parent merges and verified Go test selection on Go and Python-only ranges.
  • cd backend-go && TEST_FIRESTORE_REQUIRED=1 make check passed with Postgres 16 and the Firestore emulator.
  • Compared both map families to every runtime Python citation in the landed contracts. Replaying merged PR perf(batch): defer speculative native projection audio reads #25791 also matched the new batch projection kill switch.
  • Repository preflight and gh pr checks 25810 --watch passed at head 9554967bf7. Local preflight skipped the 90-day failure-class ratchet because the checkout is shallow. Backend Go Checks

Product invariants affected

none

Examples from merged PRs

count=$(gh api "repos/BasedHardware/omi/pulls/$PR" --jq .changed_files)
gh api --paginate --slurp "repos/BasedHardware/omi/pulls/$PR/files?per_page=100" |
  jq 'add' | python3 .github/scripts/go_port_tasks.py --pr "$PR" --changed-files "$count"

PR #25771

[
  {
    "family": "finalization",
    "title": "Port Python PR #25771 to Go finalization",
    "body": "Python PR [#25771](https://github.com/BasedHardware/omi/pull/25771) changed `backend/database/conversations.py`, `backend/models/conversation.py`, `backend/utils/conversations/process_conversation.py`, `backend/utils/conversations/render.py`, `backend/utils/conversations/v3/policy.py`. Review the merged diff and port any behavior changes to the Go finalization family under `backend-go/`. Add or update parity coverage for the changed behavior, or record why the Go port needs no change.",
    "matched_paths": [
      "backend/database/conversations.py",
      "backend/models/conversation.py",
      "backend/utils/conversations/process_conversation.py",
      "backend/utils/conversations/render.py",
      "backend/utils/conversations/v3/policy.py"
    ]
  }
]

PR #25755

[
  {
    "family": "finalization",
    "title": "Port Python PR #25755 to Go finalization",
    "body": "Python PR [#25755](https://github.com/BasedHardware/omi/pull/25755) changed `backend/config/merge_before_processing.py`, `backend/models/conversation.py`, `backend/models/structured.py`, `backend/utils/conversations/deterministic_minimum.py`, `backend/utils/conversations/empty_structure_minimum.py`, `backend/utils/conversations/fragment_visibility.py`, `backend/utils/conversations/historical_minimum.py`, `backend/utils/conversations/home_titles.py`, `backend/utils/conversations/merge_conversations.py`, `backend/utils/conversations/process_conversation.py`, `backend/utils/conversations/processing_trigger.py`, `backend/utils/conversations/relevance_salience.py`, `backend/utils/conversations/summary_delivery.py`, `backend/utils/conversations/sync_hold_completion.py`, `backend/utils/episodes/member_notes.py`, `backend/utils/llm/notes_short_clip_policy.py`. Review the merged diff and port any behavior changes to the Go finalization family under `backend-go/`. Add or update parity coverage for the changed behavior, or record why the Go port needs no change.",
    "matched_paths": [
      "backend/config/merge_before_processing.py",
      "backend/models/conversation.py",
      "backend/models/structured.py",
      "backend/utils/conversations/deterministic_minimum.py",
      "backend/utils/conversations/empty_structure_minimum.py",
      "backend/utils/conversations/fragment_visibility.py",
      "backend/utils/conversations/historical_minimum.py",
      "backend/utils/conversations/home_titles.py",
      "backend/utils/conversations/merge_conversations.py",
      "backend/utils/conversations/process_conversation.py",
      "backend/utils/conversations/processing_trigger.py",
      "backend/utils/conversations/relevance_salience.py",
      "backend/utils/conversations/summary_delivery.py",
      "backend/utils/conversations/sync_hold_completion.py",
      "backend/utils/episodes/member_notes.py",
      "backend/utils/llm/notes_short_clip_policy.py"
    ]
  }
]

PR #25686

[
  {
    "family": "finalization",
    "title": "Port Python PR #25686 to Go finalization",
    "body": "Python PR [#25686](https://github.com/BasedHardware/omi/pull/25686) changed `backend/utils/conversations/lifecycle.py`, `backend/utils/conversations/process_conversation.py`, `backend/utils/conversations/v3/policy.py`, `backend/utils/conversations/v3/service.py`, `backend/utils/conversations/v3/triggers.py`. Review the merged diff and port any behavior changes to the Go finalization family under `backend-go/`. Add or update parity coverage for the changed behavior, or record why the Go port needs no change.",
    "matched_paths": [
      "backend/utils/conversations/lifecycle.py",
      "backend/utils/conversations/process_conversation.py",
      "backend/utils/conversations/v3/policy.py",
      "backend/utils/conversations/v3/service.py",
      "backend/utils/conversations/v3/triggers.py"
    ]
  }
]

@Git-on-my-level
Git-on-my-level marked this pull request as ready for review November 19, 2026 22:33
@Git-on-my-level
Git-on-my-level merged commit 60b2efd into main Nov 19, 2026
72 checks passed
@Git-on-my-level
Git-on-my-level deleted the agent/m1-studio-codex-sol/eae74e63b092 branch November 19, 2026 22:37
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