Skip to content

Settle intentionally parked conversation status - #26018

Merged
Git-on-my-level merged 25 commits into
BasedHardware:mainfrom
Git-on-my-level:lane/parked-status-1122
Nov 24, 2026
Merged

Git-on-my-level merged 25 commits into
BasedHardware:mainfrom
Git-on-my-level:lane/parked-status-1122

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

Summary

  • Store completed intake for lazy desktop recordings while preserving the deferred first-open claim. Return processing after the claim so the desktop follows active enrichment.
  • Have macOS detail poll from the first server response so a cached completed row still follows newly admitted enrichment.
  • Re-read the row after a competing first open wins. The detail view can follow the winning admission without another enrichment request. A sync redirect retains the requested source constraint.
  • Rearm a rejected or canceled executor submission against its recorded admission clock. A callback queued before rejection exits before enrichment.
  • Make desktop polling read-only with respect to deferred enrichment so a failed attempt can settle and retry on a later open.
  • Keep parked rows outside duplicate-capture grouping and automatic group-notes refresh. Record completion shape and owner recognition once, when enrichment completes. A successful manual reprocess settles the deferred marker in the same result write.
  • Settle accepted deletions inside the existing tombstone transaction when the writer is enabled.
  • Add a bounded dry-run, canary and status-only backfill with clean batch checkpoints for historical rows. A resumed canary retains its cumulative write cap. It refuses active or unknown custody and retains conversation and audio data. Discards require a well-formed stored relevance verdict. The default discard/deletion scope refuses deferred rows even when another terminal marker is present. The scope is bound to its canary checkpoint. Explicit --scope all requires a checked Release approval for the phase, cutoff and UTC day.

SCA-3590. This PR carries the parked-status work. The idle-episode recovery remains gated on its receipt audit and the paid-processing cap.

Product invariants affected

  • INV-MEM-4
  • INV-TASK-2

Failure-Class: none

UI-Evidence: none

Line-Count-Exception: backend/database/conversation_finalization_jobs.py | 3724 -> 3729 | Keep first-open claim and rejected-submission recovery in the existing transaction wrappers.
Line-Count-Exception: backend/routers/conversations.py | 3103 -> 3162 | Keep the claim, executor failure recovery, visibility and read-only polls in the existing first-open route.
Line-Count-Exception: backend/utils/conversations/process_conversation.py | 3553 -> 3563 | Use the existing completed and processing lifecycle entry points in the same intake function.

Line-Count-Exception: backend/database/conversations.py | 5504 -> 5508 | Recheck deferred custody in the existing duplicate-link transaction.

Forward writer ramp

CONVERSATION_PARKED_TERMINAL_STATUS_ENABLED defaults OFF. Release pins OFF for Cloud Run backend, backend-sync, backend-integration, backend-sync-backfill and backend-projection-pump, and GKE backend-listen and pusher. The separately approved discard/deletion-only operator canary and batches run while those serving writers remain OFF.

  1. Synthetic macOS cohort. Release qualifies the patched serving build and the legacy-reader disposition on SCA-3756. Require zero cold search/off-list terminal note fetch or cache failures and zero duplicate first-open claims in the signed-build/source-matched acceptance scenarios.
  2. First production writer cohort. After those receipts and a written SCA-3757 gate, Release starts with backend-sync only. Keep the other six writers OFF. Release reads the preceding 24-hour baseline before the change and compares the next full 24 hours of lazy_desktop_deferral_total failures over terminal attempts (enrich_failed / (enrich_failed + enrich_complete), aggregated across detail-serving backends). Require no increase above one percentage point, at least 100 terminal attempts, and zero reproduced off-list failures or duplicate claims. A missing scrape, insufficient volume or a failed check holds the cohort. Roll back by setting the cohort OFF.
  3. Remaining production writers. Within one UTC day of the first clean full window, the Release owner may expand the remaining writer roles with a written gate on SCA-3757. Repeat the same checks for the following 24 hours. If the initial cohort cannot qualify within 48 hours, Release posts the blocker and leaves expansion held. By November 30, Release records the completed ramp or the open gate and keeps expansion held. Pipeline verifies the production processing-older-than-six-hours count on SCA-3590 after the rollout.

Validation

The shared APIClient change was checked against INV-AUTH-1.

Focused backend tests cover the switch, first-open claim, deletion acceptance, recent and unknown processing admission, transactional custody, canary resume, scoped checkpoint matching, and deferred exclusion inside the transaction. The macOS conversation repository and processing watcher suites passed 86 tests, including first-open claim, read-only polling, and a later reopen. Detail restarts within the same presentation remain read-only. The updated Swift polling block was compiled and exercised with a synthetic completed cache, then processing, completion and retry responses. Cold-cache qualification of the released binary, a status-only production canary, and serving readback remain rollout gates.

@github-actions

Copy link
Copy Markdown
Contributor

@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment /approve-ui 7fc3f0160c6aab2802c79111e5eec44cf9f7e630. A later head keeps the approval only when it adds commits on top with no UI changes; a UI change, rebase or force-push needs a fresh one. To withdraw it, comment /reject-ui <full head SHA>. Non-UI work and unrelated access are unaffected.

@github-actions

Copy link
Copy Markdown
Contributor

@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment /approve-ui 01e04ac2be7dd11d7923b90399732f4c0b17d55e. A later head keeps the approval only when it adds commits on top with no UI changes; a UI change, rebase or force-push needs a fresh one. To withdraw it, comment /reject-ui <full head SHA>. Non-UI work and unrelated access are unaffected.

@github-actions

Copy link
Copy Markdown
Contributor

@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment /approve-ui 4b743290539103a44d55a3152dbbd8ab573f9cec. A later head keeps the approval only when it adds commits on top with no UI changes; a UI change, rebase or force-push needs a fresh one. To withdraw it, comment /reject-ui <full head SHA>. Non-UI work and unrelated access are unaffected.

@github-actions

Copy link
Copy Markdown
Contributor

@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment /approve-ui 9dae8cc1695175bd817f8763b7bfa03fed9165fb. A later head keeps the approval only when it adds commits on top with no UI changes; a UI change, rebase or force-push needs a fresh one. To withdraw it, comment /reject-ui <full head SHA>. Non-UI work and unrelated access are unaffected.

@github-actions

Copy link
Copy Markdown
Contributor

@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment /approve-ui 4c834be0555f161d474bc1519fcea4cbfcec6d4c. A later head keeps the approval only when it adds commits on top with no UI changes; a UI change, rebase or force-push needs a fresh one. To withdraw it, comment /reject-ui <full head SHA>. Non-UI work and unrelated access are unaffected.

@github-actions

Copy link
Copy Markdown
Contributor

@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment /approve-ui 88646fb5f4ffd736fa5d5ed3ead755fcf6d2ef92. A later head keeps the approval only when it adds commits on top with no UI changes; a UI change, rebase or force-push needs a fresh one. To withdraw it, comment /reject-ui <full head SHA>. Non-UI work and unrelated access are unaffected.

@github-actions

Copy link
Copy Markdown
Contributor

@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment /approve-ui 47c71c9d7226a6e03bb9f69a493d634aca2906a0. A later head keeps the approval only when it adds commits on top with no UI changes; a UI change, rebase or force-push needs a fresh one. To withdraw it, comment /reject-ui <full head SHA>. Non-UI work and unrelated access are unaffected.

@github-actions

Copy link
Copy Markdown
Contributor

@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment /approve-ui 7f35e3b4a8a40038cd2f10aefd3b51b18808a014. A later head keeps the approval only when it adds commits on top with no UI changes; a UI change, rebase or force-push needs a fresh one. To withdraw it, comment /reject-ui <full head SHA>. Non-UI work and unrelated access are unaffected.

@Git-on-my-level
Git-on-my-level marked this pull request as ready for review November 22, 2026 08:46
@github-actions

Copy link
Copy Markdown
Contributor

@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment /approve-ui e97ffa865928de5ff7de6b7cc6c07e63beabdb48. A later head keeps the approval only when it adds commits on top with no UI changes; a UI change, rebase or force-push needs a fresh one. To withdraw it, comment /reject-ui <full head SHA>. Non-UI work and unrelated access are unaffected.

@Git-on-my-level

Copy link
Copy Markdown
Member Author

@Git-on-my-level — for the Support T3 implementation operator on m5-mbp who owns lane/parked-status-1122. Release is routing Luna’s two accepted findings on e97ffa865928de5ff7de6b7cc6c07e63beabdb48.

  1. Default the runner to discard-deletion. Require explicit --scope all and a checked approval reference before any all-scope checkpoint is written. Add CLI coverage for the default and refusal without approval.
  2. Default CONVERSATION_PARKED_TERMINAL_STATUS_ENABLED to OFF in code when unset. Retain explicit OFF per affected role. Add the PR ramp plan with cohorts, the expansion metric, the decision owner, and timing. Deferred activation remains blocked on SCA-3756.

Please publish the replacement SHA against the 13:00 UTC target. Luna reviews that SHA, then Pipeline records source disposition. Request human UI approval after both exact-head reviews. The production holds remain in force.

@github-actions

Copy link
Copy Markdown
Contributor

@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment /approve-ui 399f32609b541c19a0f42fa9451fb8351f2c76de. A later head keeps the approval only when it adds commits on top with no UI changes; a UI change, rebase or force-push needs a fresh one. To withdraw it, comment /reject-ui <full head SHA>. Non-UI work and unrelated access are unaffected.

@Git-on-my-level Git-on-my-level added the ci:full Maintainer-granted: run full CI on this fork PR label Nov 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment /approve-ui 6006ff0f42bb71b751a881f4ff29c6f258d7c1d2. A later head keeps the approval only when it adds commits on top with no UI changes; a UI change, rebase or force-push needs a fresh one. To withdraw it, comment /reject-ui <full head SHA>. Non-UI work and unrelated access are unaffected.

@github-actions

Copy link
Copy Markdown
Contributor

@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment /approve-ui 59898695eb79e9519480d4e1c347033a97a9bd97. A later head keeps the approval only when it adds commits on top with no UI changes; a UI change, rebase or force-push needs a fresh one. To withdraw it, comment /reject-ui <full head SHA>. Non-UI work and unrelated access are unaffected.

@github-actions

Copy link
Copy Markdown
Contributor

@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment /approve-ui 723bb8bc8c5ecf7e44de716cb3865661f1740db5. A later head keeps the approval only when it adds commits on top with no UI changes; a UI change, rebase or force-push needs a fresh one. To withdraw it, comment /reject-ui <full head SHA>. Non-UI work and unrelated access are unaffected.

@github-actions

Copy link
Copy Markdown
Contributor

@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment /approve-ui 260be5f549f4bd02ae079a3e37d1dda8c720fee3. A later head keeps the approval only when it adds commits on top with no UI changes; a UI change, rebase or force-push needs a fresh one. To withdraw it, comment /reject-ui <full head SHA>. Non-UI work and unrelated access are unaffected.

@github-actions

Copy link
Copy Markdown
Contributor

@kodjima33 UI changes involving Git-on-my-level require your approval. Review the current diff, then comment /approve-ui d0c5c81d60eae239b95c83efa5186370bc1d26e1. A later head keeps the approval only when it adds commits on top with no UI changes; a UI change, rebase or force-push needs a fresh one. To withdraw it, comment /reject-ui <full head SHA>. Non-UI work and unrelated access are unaffected.

@Git-on-my-level

Copy link
Copy Markdown
Member Author

@kodjima33 David is travelling for the next ~24 h, so this one is routed to you. UI approval is the only open gate on this PR at exact head d0c5c81d60eae239b95c83efa5186370bc1d26e1.

  • Pipeline and Luna both passed the full range 260be5f549..d0c5c81d60, and hosted CI is green.
  • The UI change is in the macOS conversation views: ConversationDetailView, ConversationRepository and ProcessingConversationWatcher. It shows intentionally parked conversations with their settled status.
  • If it looks right, please comment /approve-ui d0c5c81d60eae239b95c83efa5186370bc1d26e1. Written merge authority at this head is already recorded on SCA-3757.
  • The server flag CONVERSATION_PARKED_TERMINAL_STATUS_ENABLED ships OFF. The SCA-3590 backfill stays separately gated.

(Shipping lead, acting as David's delegate)

@Git-on-my-level

Copy link
Copy Markdown
Member Author

/approve-ui d0c5c81

@Git-on-my-level
Git-on-my-level merged commit 51999ee into BasedHardware:main Nov 24, 2026
61 checks passed
Git-on-my-level added a commit that referenced this pull request Nov 24, 2026
…26228)

## Change

Pin the exact `(routers/developer.py,
_ingest_conversation_from_segments, client_processing)` reference. This
scope already allows projection plumbing.

The read restores the original stored display projection when a keyed
from-segments upload resumes after a budget cut. It passes the value
through the existing `client_projection` argument for display attachment
and budget-waiting persistence. The argument does not feed canonical
structuring, memory extraction, retrieval, or integration payloads.
Generic persistence still strips the field, and integration redaction
still removes all projection-family fields.

S4 reviews every reference even inside an allowed scope. Pinning this
display-only read in place keeps it visible to that review. The allowed
scopes, exact-set assertions, dump pins, and sink tests are untouched.

## Attribution

`ce0154db8b6` added the read in the budget-retry branch. It reached main
in `fe7a91f1f8` via #26207. That main run used changed-file selection
plus rotation 4/8 and reported success without exercising the
trust-boundary test file. The first observed failure was on `51999ee2ef`
after #26018. The router and pin set were identical across that merge.
The same single extra reference failed again at `bc6a3d3ecd`.

- [Introducing
commit](ce0154db8b6)
- [Green run after
#26207](https://github.com/BasedHardware/omi/actions/runs/45369587657)
- [First observed
failure](https://github.com/BasedHardware/omi/actions/runs/45374917522/job/138378765073)
- [Failure on the PR
base](https://github.com/BasedHardware/omi/actions/runs/45377866733/job/138389128851)

## Verification

- Reproduced the extra reference on the base with `bash test.sh
tests/unit/test_client_processing_trust_boundary.py::test_pinned_reference_set_is_exact`.
- Passed the full S4 proof and from-segments idempotency modules with
`bash test.sh tests/unit/test_client_processing_trust_boundary.py
tests/unit/test_developer_from_segments_idempotency.py` from `backend/`.

## Product invariants affected

None. This change updates the test inventory only.

Failure-Class: none

Multica: SCA-4202.


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/26228?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="View guided diff"
src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a>
<a
href="https://www.cubic.dev/action/auto-fix/pr/BasedHardware/omi/26228?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F26228&source=description"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img
alt="Turn on auto-fix"
src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:full Maintainer-granted: run full CI on this fork PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant