Skip to content

perf: skip policy reads for terminal projection followup parts - #25370

Merged
Git-on-my-level merged 2 commits into
mainfrom
lane/firestore-ready-receipt-policy-read
Nov 15, 2026
Merged

Git-on-my-level merged 2 commits into
mainfrom
lane/firestore-ready-receipt-policy-read

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

Follow-up retries fetch a projection policy even when the part is already ready or quarantined and immediately returns. Return before that unused fetch, removing one transaction/job read on the ordinary pinned-policy path. Unfinished parts retain policy resolution and refusal before side effects; the surrounding persisted-receipt and completion transactions are unchanged.

This is a small additional cut for the Firestore intervention. It must not delay #25314 or the admitted recovery-default restoration. Savings are not booked before production measurement.

Validation

  • Head 813961ee1bd7e4de9925addc170e5bd04d30da91 normally merges main 41d6ab74e7b7c6a69695bfdb47c0cea9f87f40a0, including shared guard repair fix(tests): repair two guards left red on main by the summaries changes #25372. The change-specific file blobs are unchanged from the preceding head.
  • Canonical focused fast lane: 70 passed (45 follow-up and25 gateway tests); all11 clock-ratchet cases are marked slow and exercised by the separate slow lane. Existing1s CPU ceiling unchanged.
  • Canonical scripts/run-slow-guardrails-ci.sh: 2,051 passed, 1,471 deselected. This is the repository's distinct slow guardrail recipe.
  • Normal successor pre-push gate passed. GitHub CI remains the full required authority and is pending.
  • Refreshed independent Luna source review: SHIP for exact successor813961ee1bd7e4de9925addc170e5bd04d30da91 against41d6ab74. No actionable defects in the two scoped files. No CI or serving approval is inferred from a source verdict.

Product invariants affected

none

Failure-Class: none

Batch pipeline tuning

No capacity, concurrency, cadence, retry interval, state, retention, allowance or policy values change. The existing ready/quarantined no-op guard moves ahead of an unused policy fetch. No new state or queue is introduced.

Rollback

Revert this commit through the normal source/release path. No migration, flag or production change is included.

@Git-on-my-level

Copy link
Copy Markdown
Member Author

Independent Luna source review: SHIP for exact head 929e67fd6be2be62bf82f81a544c402ac03688c7 (base 51b449ec8843980b16a8c07ff1069f4f1660796b).

The reviewer confirmed normal read_persisted() still resolves/pins policy, session/check validates privacy, receipt and ledger fences, unfinished parts resolve policy before effects, and terminal receipts still reach completion accounting. No blocking findings. Reviewer performed source review only; parent separately ran45 follow-up tests,38 local preflight checks and the normal pre-push gate successfully. CI is pending and production is unchanged.

Review receipt: independent Luna thread.

@Git-on-my-level

Copy link
Copy Markdown
Member Author

Exact-head successor source review

Collected2026-11-15 08:18Z. Independent Luna source-only review, taskb1a1f3b5-0d17-4e0d-b2c7-dae7d2315625. No live child remains.

SHIP for exact candidate 813961ee1bd7e4de9925addc170e5bd04d30da91, reviewed against base 41d6ab74e7b7c6a69695bfdb47c0cea9f87f40a. No verified actionable defects in the two scoped file changes.

The change moves the per-part policy lookup after the ready/quarantined early return. _run still calls read_persisted first, where ProjectionSession and store.check validate the transaction snapshot and preserve binding, privacy, and ledger fences. Unfinished parts still resolve policy before bridge, playback, enrichment, or readiness side effects. Aggregate completion and its multipart accounting, quarantine, and deletion handling remain unchanged.

This is a source-only verdict: I did not run tests or inspect CI or serving state. Those checks remain with the parent.

PR #25370, head 813961e, checks and reviews: not independently inspected; verdict covers the specified source scope only.

@Git-on-my-level

Copy link
Copy Markdown
Member Author

Exact-head qualification readat2026-11-15T08:56:25.953245+00:00 for #25370, head813961ee1bd7e4de9925addc170e5bd04d30da91. GitHub remainsOPEN/MERGEABLE at this read. No newsourcepush or CIrerun.

Current head check view is terminal: 38SUCCESS,25SKIPPED,zeroFAILURE/CANCELLED/PENDING. All8backendunitshards andBackendunitsuite,emulatorproofs,bothstackgauntlets andcurrentmetadata preflight succeeded. Backend unit run:https://github.com/BasedHardware/omi/actions/runs/43693275371 . Currentmetadata run:https://github.com/BasedHardware/omi/actions/runs/43693826235 .

I investigated the cancelled-check report rather than ignoring it. Complete same-head check-run history(filter=all) contains70runs:40success,29skipped,1cancelled. The cancelled job is historicalPRMetadataPreflight run43693553894,created08:14:19, cancelled08:17:49. Its successful replacement43693826235 wascreated08:17:46, completed08:22:16; both arepull_requestevents/attempt1/exact813. The workflowrepo-checks.yml explicitly runsedited/labeled/unlabeledmetadata in its own cancel-in-progress lane. This is consistent with automatic metadata-edit supersession; no code/test failure was rerun to green or waived by this session. The historical cancellation is retained in the dated all-runs evidence. The latest current check view contains no cancellation.

Independent exact-head Luna source reviewSHIP is posted at #25370 (comment) . Canonical local fast70passed, separate canonical slow2051passed,normalpre-pushEXIT0 and remoteexacthead verified. Change-specific production/test blobs unchanged from929 after normalmain41merge; currentmain mergeability is independentlyverified. No new fullreview/sourceupdate is needed to mask the oldmetadata cancellation.

ExistingRelease alone owns canonical merge and runtime admission. This is the small redundant terminal-policy-read cut, not serving/savings proof. Consider it for the already-planned finalpost25379build only if normallymerged before that buildstarts. Do not hold a ready quality/costrollout, rerun/rebuild or assumeinclusion. Actualcarrier ancestry governs. No flags,capacity,privacy,state,index or provider release change.

@Git-on-my-level
Git-on-my-level merged commit c5581b4 into main Nov 15, 2026
70 of 71 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/firestore-ready-receipt-policy-read branch November 15, 2026 08:58
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