Skip to content

test(backend): qualify retained custody and no-spend recovery across stores - #24450

Closed
Git-on-my-level wants to merge 12 commits into
mainfrom
lane/parity-pl396
Closed

Git-on-my-level wants to merge 12 commits into
mainfrom
lane/parity-pl396

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

Partial batch uploads must retain phone custody while any unit remains held. Recovery must also stop retrying permanently impossible input without spending a paid attempt or erasing prior speech evidence. This adds shared guards for PL-396, PL-105 and PL-363, sourced from #24335, #23795, #24362 and the November 1 sole-copy audio-loss incident.

The same tests exercise real admission, client status, recovery, transactions, pinned policy and privacy on old Firestore, new Postgres and the simulator. The suite declares its own offline stage, independent of shell/CI defaults. It checks partial responses through 14 days, valid completion versus false ACKs, one-time over-limit/invalid-manifest refusals, transient read retries, and stale-token/running/lease/result/privacy fences. The existing emulator-proof runner executes the suite with simulator and Firestore required.

Validation:

  • All required stores: 72 passed, zero skips/xfails, using a dedicated loopback Firestore emulator and local Postgres through omi-heavy.
  • Full existing backend/scripts/run-emulator-proofs.sh with OMI_REQUIRE_STORE_BACKENDS=all: passed, including the new 72 cases.
  • Four in-process negative controls reject false partial ACKs, erased held-speech evidence, a permanent-manifest retry loop, and a refusal that burns an actual paid-attempt marker.
  • make preflight: 33 selected checks passed; PR metadata validation: four checks passed. Normal push hooks passed. Remote branch identity verified at db77de10229baa571b0c91eed9a1f669ceb8e5d6.

Audio/VAD/provider boundaries are synthetic. Postgres customer documents use the existing harness tables; this does not qualify the serving A4 bridge, released-phone polling, physical object retention, ASR quality, throughput or production recovery. Plan C acceptance and source links are published in the private KB parity ledger. The retention/redrive SLA remains a separate PL-365 ruling; no policy value is inferred here.

Product invariants: INV-DATA-1, INV-CAP-1. Tests and existing proof-runner registration only.
Failure-Class: none
UI-Evidence: none -- backend conformance guards; no product UI changes.

🤖 Generated with Claude Code

Git-on-my-level and others added 5 commits October 31, 2026 20:46
Preserve PL-321/322/323 at frame boundaries, buffered query overlays and bounded walk stops. Register the shared matrix in the existing emulator-proof runner.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Include merge holds beside pull claims and prove cleanup preserves foreign namespaces and synthetic customer rows.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Qualify PL-061, PL-105 and PL-363 on old Firestore, new Postgres
and the simulator through the existing Store harness.

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

Use PL-396 for phone custody and leave PL-061 producer client_status
as a separate missing invariant in the parity ledger.

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-03T01:49:36.706062Z
We couldn’t complete this review. Comment @codex review to try again.
688cdc3 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.

@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.

All reported issues were addressed across 2 files

Reply with feedback, questions, or to request a fix.

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

Comment thread backend/scripts/run-emulator-proofs.sh Resolved
Git-on-my-level and others added 4 commits November 2, 2026 20:55
Make the conformance fixture independent of CI stage defaults and
reject paid-attempt metadata on a local no-spend refusal. Clarify
minimum CI stores versus all-store cutover qualification.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts:
#	backend/scripts/run-emulator-proofs.sh
…ity-pl396

# Conflicts:
#	backend/scripts/run-emulator-proofs.sh
…ity-pl396

# Conflicts:
#	backend/scripts/run-emulator-proofs.sh
…ializer

CI's clang-format 18 attaches the compound-literal brace and drops the
space before it; break nothing else and keep the initializer alignment
one column left.
The consumer's heartbeat hold cap reads time.monotonic, so the injected
consumer clock must carry the full time module with only the wall-clock
pinned, or every PL-397 delivery dies on AttributeError before the
callback runs.
…mat rejects

CI formats firmware with clang-format 18, which attaches the brace after
the compound-literal cast; the local 23 kept a space and realigned one
column right, so the Formatting job failed on the merge preview. Commit
with clang-format 18 first on PATH so the pre-commit hook agrees.
Git-on-my-level added a commit that referenced this pull request Nov 4, 2026
# Conflicts:
#	backend/scripts/enrichment_recovery_emulator_test.py
#	backend/scripts/run-emulator-proofs.sh
#	backend/testing/store_fixtures.py
@Git-on-my-level

Copy link
Copy Markdown
Member Author

Folded into survivor #24591 (lane/lcinv, pushed head b8e0b1e0b3). As part of consolidating the open PR batch, origin/main and every other listed PR were merged into the survivor branch; all tests were kept. This PR is being closed as folded — its content lives on in #24591.

Carried: test_held_custody_conformance.py, test_pending_deletion_conformance.py, test_pull_batch_parity.py, test_store_fixture_cleanup.py, the merge_holds table in store_fixtures.py, and the three run_proof entries. Two pieces were superseded on the folded tree: (1) the consumer_clock helper in enrichment_recovery_emulator_test.py was replaced by main's clock stub, which already pins both time and monotonic — the monotonic guarantee your helper preserved is kept; (2) the firmware style commits were unnecessary — main's safe_mode.c blob already matches what CI accepts.

@github-actions

github-actions Bot commented Nov 4, 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!

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