Skip to content

chart(batch): keep record-seal-repair on in prod values so worker rolls stop re-suspending it - #24643

Merged
Git-on-my-level merged 2 commits into
mainfrom
lane/seal-repair-prod-values
Nov 4, 2026
Merged

Git-on-my-level merged 2 commits into
mainfrom
lane/seal-repair-prod-values

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

Summary

Keep record-seal-repair on in prod by committing lead2's seal-repair block to prod_omi_batch-pipeline-worker_values.yaml.

The chart default (recordSealRepair.suspend: true, empty serverFlags) is what every CI worker roll renders. So each gcp_diarizer batch-pipeline-worker roll re-suspended seal repair and dropped its policy map, and each roll needed a human-login helm --reuse-values re-apply. On 2026-11-04 that happened at 16:56Z, 19:35Z and 21:24Z. It's blocked right now because the human login expired. With this change, one CI roll (WIF, no human login) turns repair back on.

Changes

  • backend/charts/batch-pipeline-worker/prod_omi_batch-pipeline-worker_values.yaml: recordSealRepair = suspend false, mode apply, rowSeconds 270, workers 16, plus the serving-role serverFlags (lead2 3b814c). recordSealWorker.serverFlags stays at the chart default {} (worker IO off, as live today).
  • No UID allowlist keys are committed (BATCH_PIPELINE_UID_ALLOWLIST, TRANSCRIPTION_FINAL_PASS_UID_ALLOWLIST): they hold a real uid and the repo is public. lead2: omitting them is safe because batch is at 100%, and the final-pass allowlist only scopes one account's repair-time final-pass policy.
  • Tests now pin the new prod render: repair workers 16, the exact flag map, no allowlist key in git. The rollback/overlap test starts from an explicit suspend=true, so it still checks that both the cron and the worker Deployment change.

Review attention

  • Narrower than first asked: lead2's block also put the flags on recordSealWorker. Luna r1 P2: with worker and repair both holding IO, both can pick the same pending row and repeat the proof and audio reads. So the worker stays at {}, IO refused, exactly as the live release r71 runs. Only repair has IO. Enable the worker path separately once overlap capacity is measured.
  • The flag values are the live r71 values minus the two allowlist keys.

Verification

  • tests/unit/test_record_seal_cluster_repair_deploy.py, test_record_seal_worker_deploy.py, test_record_seal_sweeper_deploy.py: 18 passed.
  • test_batch_pipeline_chart.py, test_cross_service_deploy_contract.py: passed. Before the test updates, the only failures were the 3 pinned-default tests updated here.

Product invariants affected

none

Failure class (fixes)

No fix: commits; no declaration required.

Rollback

recordSealRepair.suspend: true (and recordSealWorker.serverFlags: {}) in prod values, then a worker roll. Or revert this PR.

Deploy

After merge: one gcp_diarizer.yml prod service=batch-pipeline-worker roll at this head. Then verify the CronJob suspend=false and that a repair job completes.

🤖 Generated with Claude Code

…ls stop re-suspending it

The chart default (recordSealRepair.suspend: true, empty serverFlags) is what a
CI worker roll renders, so every gcp_diarizer roll re-suspended seal repair and
dropped its policy map. Each roll then needed a human-login helm --reuse-values
re-apply (11-04: 16:56Z, 19:35Z and 21:24Z rolls).

Commit lead2's block (3b814c) to prod values: suspend false, mode apply, 16
workers, rowSeconds 270, and the serving-role serverFlags for repair and the seal
worker. The two UID allowlist keys stay out of git (public repo): batch is at 100%
and the final-pass allowlist only scopes one account's repair-time policy.

Tests pin the new prod render: workers 16, the exact flag map, no allowlist keys
in git; the rollback test now starts from an explicit suspend=true.

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

chatgpt-codex-connector Bot commented Nov 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-11-04T22:37:02.021029Z f5fc51f New commits
ℹ️ 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.

@cubic-dev-ai cubic-dev-ai 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.

No issues found across 3 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

View guided diff | Turn on auto-fix | Re-trigger cubic

Luna r1 P2 on #24643: with both the seal worker and the repair CronJob holding
policy flags, both can select the same pending row and do the proof and audio
reads twice (the transactional seal still prevents a double seal). Keep
recordSealWorker.serverFlags at the chart default {} (IO refused), exactly as the
live release r71 runs today, and pin that in the worker test (r1 P3).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@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: f5fc51f197

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

Comment on lines +104 to +106
recordSealRepair:
suspend: false
mode: apply

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 Add the required pipeline change note for seal-repair enablement

This enables production audio seal repair in apply mode and commits its registration policy, but the commit includes no pipeline change note. backend/AGENTS.md explicitly requires a note under backend/docs/listen_pusher_pipeline/changes/ in the same PR for audio and conversation-lifecycle changes. Add a note describing the production rollout, policy flags, repair-only IO ownership, and rollback so the operational change is recorded in the required pipeline history.

AGENTS.md reference: backend/AGENTS.md:L164-L164

Useful? React with 👍 / 👎.

@Git-on-my-level

Copy link
Copy Markdown
Member Author

Luna review (gpt-6-luna, agentctl review pool): r1 SHIP-WITH-FIXES. P2: seal worker + repair both with IO could race on one row; fixed in f5fc51f by keeping recordSealWorker.serverFlags at {} (IO off, as live). P3: the worker test now pins {}. r2 SHIP, no new findings. Luna confirmed the prod render: record-seal-repair suspend=false, apply, 270s, 16 workers, exact flag map; omitting the allowlists passes validation.

🤖 Generated with Claude Code

@Git-on-my-level
Git-on-my-level merged commit a38ddd0 into main Nov 4, 2026
62 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/seal-repair-prod-values branch November 4, 2026 22:46
Git-on-my-level added a commit that referenced this pull request Nov 8, 2026
…4943)

<!-- claude-projects-attribution: {"github_login":"Git-on-my-level"} -->
_Requested by **David**_

## What changes

Retro P6 adds `batch-pipeline-tuning-disclosure` to the shared manifest
in both local and CI lanes. Numeric capacity assignments and concurrency
environment defaults in the batch config, pipeline source, worker/pusher
charts, and `backend/utils/pusher_*.py` require numeric disclosures in
one PR-body section naming a matched knob: before/after, from/to, or a
nearby numeric arrow (`6 -> 4` or `6 → 4`). A knob with no removed
numeric assignment may instead use `new: <num>` or `initial <num>`.
Newly added literals directly assigned or compared to state-like names,
or passed as state/status/phase/disposition/outcome/reason kwargs, must
name an exit, terminal, dead-letter, re-entry, clear, or recovery path;
literals already anywhere in the merge-base tree are exempt.
`Numbers-waived: <reason>` and `State-exit-waived: <reason>` waive their
respective requirement and echo the reason.

HTML comments, fenced code blocks and inline code are stripped before
validating disclosures, state exits or waivers. Logging arguments and
literals merely near state-related words do not count as new states.

The same single manifest entry runs hermetic regression tests before
checking the body. Only changed lines trigger detection; flags,
comment-only lines, and unchanged context do not count. The detector
deliberately misses indirect/formula tuning: this is a disclosure
ratchet.

David approved this exact manifest and script/test change on
**2026-11-08 at 16:13Z**. No workflow file changed. The change is
limited to `.github/checks-manifest.yaml` and the two P6 files under
`.github/scripts/`.

## Why this check

The retro's #24481 HPA retune is the design precedent; the sweep below
exercises HPA bounds changes such as #24742. Its from/to wording is
supported, but its knob names are only in inline code, which the
requested prose-only rule excludes. Existing product-invariant and
failure-class checks validate different author declarations; neither
detects capacity knobs or new lifecycle literals. This check reuses the
manifest's existing diff/metadata plumbing without changing workflow
wiring or inventing another PR orchestration layer.

## Product invariants affected

none

Failure-Class: none

## Merged-PR false-positive sweep (2026-11-08T20:01:42.025036+00:00)

**200 merged PRs screened; 69 trigger-touching diffs checked; 16 would
fail and 53 would pass.** 14 failing PRs require numeric disclosures; 2
require state declarations (3 state literals total). The prior sweep
reported 18 failures; the refreshed capped corpus also advances its
merge cutoff.

Method: `gh pr list --repo BasedHardware/omi --state merged --search
'merged:>=2026-10-09' --limit 200 --json
number,title,body,mergeCommit,mergedAt,files`, followed by `gh pr diff
<number> --repo BasedHardware/omi` for matching paths. Full paginated
file lists were checked whenever the initial listing reached 100 files.
Each diff was checked against its PR body and reconstructed PR
merge-base: merge-parent merge-base for normal merges;
PR-head/merge-parent merge-base cross-checked with the recorded PR base
for one-parent merges. State candidates use a whole-tree lookup at that
merge-base.

The capped corpus spans **2026-11-04T12:58:21Z through
2026-11-08T19:20:24Z**: a sample within the requested 30-day window, not
full-month coverage. No production reads or GCP tier were used.

The stricter state association passes #24743 (the prior proximity-only
candidate). #24733 and #24729 now pass the expanded numeric wording. The
required inline-code stripping means #24742 still fails: its from/to
numbers are supported, but its matched knob names appear only in inline
code. #24884 and #24725 also fail when their state names are excluded as
inline code. These are explicit effects of the requested prose-only
policy, not claims that those historical PRs omitted all semantic
explanation.

Sample of would-fail PRs:

| PR | Detected change | Missing disclosure |
| --- | --- | --- |
| [#24889](#24889) | Tuning:
`max_count` | Initial/new numeric value naming a matched knob in prose,
before/after disclosure, or Numbers-waived |
| [#24884](#24884) | New state:
`record_barrier_aged` | State literal and exit declaration in prose, or
State-exit-waived (inline code is excluded) |
| [#24799](#24799) | Tuning:
`MIN_STORAGE_PCM_BUDGET_MB` | Initial/new numeric value naming a matched
knob in prose, before/after disclosure, or Numbers-waived |
| [#24742](#24742) | Tuning:
`maxReplicas`, `minReplicas` | Matched knob name in prose alongside the
existing from/to numbers |
| [#24736](#24736) | Tuning:
`PAGE_SIZE` | Initial/new numeric value naming a matched knob in prose,
before/after disclosure, or Numbers-waived |
| [#24725](#24725) | New state:
`marker_retry_overflow`, `marker_write_failed` | State literal and exit
declaration in prose, or State-exit-waived (inline code is excluded) |
| [#24716](#24716) | Tuning:
`limit` | Initial/new numeric value naming a matched knob in prose,
before/after disclosure, or Numbers-waived |
| [#24712](#24712) | Tuning:
`MAX_OWNER_DRAINS` | Numeric before/after, from/to or arrow disclosure
naming a matched knob in prose, or Numbers-waived |
| [#24710](#24710) | Tuning:
`MAX_DELAYED_OWNERS` | Initial/new numeric value naming a matched knob
in prose, before/after disclosure, or Numbers-waived |
| [#24707](#24707) | Tuning:
`MAX_HEAD_REQUEUES` | Numeric before/after, from/to or arrow disclosure
naming a matched knob in prose, or Numbers-waived |

All would-fail PRs: #24889, #24884, #24799, #24742, #24736, #24725,
#24716, #24712, #24710, #24707, #24703, #24697, #24689, #24680, #24643,
#24601.

## Validation

- **26 focused regression tests passed** on head
`1788dd10315e7a709dcaf6150838907638386ad0`, covering fenced/inline
examples, direct state association (including the logging regression),
from/to and arrows, and first-time versus changed numeric values.
- **`make preflight` passed all 14 selected local checks**, including 26
P6 tests and 78 manifest-contract tests, with `OMI_PR_BODY_FILE` and
`BACKEND_UNIT_FILE_BUDGET_SECONDS=900`. The normal bounded pre-push gate
also passed all 14 checks using the final body and the same budget, with
`GOOGLE_APPLICATION_CREDENTIALS` and every `CLOUDSDK_*` variable
removed.
- `scripts/pr-preflight --suggest` required no invariant citations;
`Failure-Class: none` is declared above.
- No workflow file changed; only the manifest and two P6 scripts differ
from the merge base.
- No production reads or GCP tier used. Full-month coverage beyond the
200-PR cap, indirect/formula tuning and product/runtime behavior are not
established by this check.

🤖 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