Skip to content

config(capture): declare explicit Cloud Run off rollback baseline - #21931

Merged
Git-on-my-level merged 4 commits into
mainfrom
lane/capture-shared-speech-cloud-run-off-baseline
Oct 16, 2026
Merged

Git-on-my-level merged 4 commits into
mainfrom
lane/capture-shared-speech-cloud-run-off-baseline

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Declare explicit shared-speech off values on the four production Cloud Run services before shadow qualification. Set CAPTURE_SHARED_SPEECH_MODE=off and CAPTURE_SHARED_SPEECH_PERCENT=0 on backend, backend-sync, backend-sync-backfill and backend-integration. The mode already resolves to off, so incumbent behavior, IO and logs remain unchanged. GKE and every other runtime setting remain unchanged.

The current deploy action defaults to merging environment variables, and the sidecar attachment preserves extra environment entries. A rollback to a feature-bearing source that merely omits the new keys would retain a later shadow value. This release gives the normal release_sha rollback an explicit off/0 target while retaining the recent Firestore incident controls. Action contract.

#21882 is merged; the regular 6d64800 Cloud Run train carries the reviewed feature dark. #21930 remains unmerged. Deploy this explicit-off baseline through bin/omi-deploy-prod wait-eligible then cloud-run, approving only this owner's run, and complete its >=15minute watch. Then merge the separate Cloud Run-only shadow config and prepare rollback to this off source. Stop at shadow; do not activate on for any account. No dedicated Pusher/listen deployment or workflow changes.

Validation: regenerate source composition and registry, compare parsed documents after removing exactly the eight authorized literals, runtime preflight, repository preflight and exact-head CI. The feature completed five read-only agentctl codex/gpt-6-luna reviews with no final feature blockers. This PR changes literals and the runbook only, with no material code changes requiring another Luna review under the coordinator's instruction.

CI parser repair and rollout hold

Exact-head CI on the preceding merge passed the containment assertions but exceeded the unchanged1-second CPU ceiling while parsing the expanded runtime manifest (1.01seconds). Use PyYAML's C-backed SafeLoader when available, retaining the Python SafeLoader fallback. All assertions and timing budgets remain unchanged. One-off parity checks produced identical values for the full manifest, registry and four chart fixtures; the existing policy file passed64tests with the same1.0/0.1fail/warn limits. A fresh read-only agentctl codex/gpt-6-luna review of exact95f75c869f7ad2ee57deb83189755b0023ae6454 found no blocking P1/P2 issues and independently verified seven parsed inputs plus composition; outcome is recorded in the review comment.

Deploy this explicit-off baseline under David's standing grant through the normal checked-in Cloud Run workflow, whose existing backfill service profile is40instances (live snapshot32). This PR does not change that workflow or enable shared-speech computation. The release includes reviewed upstream repeat-work cuts. Measure the postdeploy worker against the captured degraded baseline and retain the prior off source as rollback. Shadow remains held until the worker watch qualifies; its rollback must use this deployed explicit-off source, rather than the older omitted-key source.

Product invariants affected

  • INV-MEM-4: canonical promotion remains the sole Long-term authority. All intake, consolidation, promotion, scheduler and projection settings are preserved; only shared-speech off literals are added on four Cloud Run hosts.

Failure-Class: none

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 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-10-16T22:10:17.263989Z 3aeb7ca 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.

@Git-on-my-level

Copy link
Copy Markdown
Member Author

Read-only Luna review through agentctl delegate (codex / gpt-6-luna; planned sandbox read-only, no bypass flags) completed on exact candidate 95f75c869f7ad2ee57deb83189755b0023ae6454 against a1201f8335ed66237c1ccb4615a92ca986af9842: no blocking P1/P2 findings.

The reviewer independently checked equal safe-loader parses across seven configuration inputs and compose_runtime_env.py --check; it verified the eight explicit-off additions are limited to the four production Cloud Run hosts. Assertions, chart fixtures, CPU budgets, test selection, feature core, Jev, smart merge and workflows are unchanged. The reviewer did not run the policy suite; the parent ran all64tests with the existing1.0/0.1fail/warn CPU limits. Parent parity checks covered the six fixtures directly consumed by these assertions.

The review's nonblocking scope-status note is resolved by distinguishing authorization from current conditions: David's coordinator explicitly granted Cloud Run-only deployment scope. The pending context concerns the current worker health and live32-instance cap versus the workflow's40, not missing authorization. Production rollout remains held for those conditions. No Shadow/on has been enabled and this owner has made no production mutation. Full exact-head CI remains a merge gate.

@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: 3aeb7cad24

ℹ️ 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 +478 to +482
CAPTURE_SHARED_SPEECH_MODE:
value: 'off'
category: rollout
CAPTURE_SHARED_SPEECH_PERCENT:
value: '0'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Classify the newly deployed shared-speech settings

Add both names to the config list in config/deployment-setting-classification.json. These are now production deployment bindings, and backend/docs/deployment-setting-classification.mdx requires each new binding to be classified; however, both names remain absent from the policy. The boundary check currently misses this because it does not inspect the authoritative overlay and its composed-manifest parser does not recognize compact {value: ..., category: rollout} entries, leaving these settings outside the repository's secret/config enforcement and future ConfigMap tooling.

Useful? React with 👍 / 👎.

Comment on lines +478 to +482
CAPTURE_SHARED_SPEECH_MODE:
value: 'off'
category: rollout
CAPTURE_SHARED_SPEECH_PERCENT:
value: '0'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Reset the UID allowlist in the rollback baseline

Also declare CAPTURE_SHARED_SPEECH_UID_ALLOWLIST with an empty literal on all four services. The same merge behavior this baseline addresses leaves that third cohort key untouched: after a shadow rollout sets an allowlisted UID, rolling back this SHA turns the mode off but preserves the UID, and a later deployment that changes only the mode back to shadow or on with percentage 0 unexpectedly re-enrolls that account because shared_speech_mode checks the allowlist before the percentage. The four deploy steps in .github/actions/deploy-backend-stack/action.yml do not remove this key, so the rollback baseline should reset every enrollment control.

Useful? React with 👍 / 👎.

@Git-on-my-level
Git-on-my-level merged commit 8b24990 into main Oct 16, 2026
56 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/capture-shared-speech-cloud-run-off-baseline branch October 16, 2026 22:14
Git-on-my-level added a commit that referenced this pull request Oct 16, 2026
Enable deterministic shared-speech shadow evaluation on the four
production Cloud Run processing services: backend, backend-sync,
backend-sync-backfill and backend-integration. Set
`CAPTURE_SHARED_SPEECH_MODE=shadow` and
`CAPTURE_SHARED_SPEECH_PERCENT=100` at those service overrides only. The
UID allowlist stays empty. Shadow preserves incumbent grouping and adds
bounded evaluation with identifier/numeric decision logs.

Pusher and backend-listen retain their off default and receive the
implementation through their regular release train. No account is
activated in on mode. Existing groups, transcripts, memories and effects
retain their existing behavior. Jev and smart merge settings are
unchanged.

This follows #21882 and the explicit-off rollback baseline #21931
(merged8b24990a68bd00539d36ed5f09f2e12d7e80047d), under David's
coordinator-authorized Cloud Run dark → shadow qualification. The
feature completed five read-only agentctl codex/gpt-6-luna review
rounds, with no final feature blockers. A sixth read-only review of the
explicit-off baseline and its safe YAML test-loader repair found no
P1/P2 issues; that unchanged code is now in main. This PR changes
literal configuration/rendered documentation only and leaves that
reviewed implementation unchanged; the coordinator requires another Luna
review only for material code changes. Calibration remains insufficient
for activation: David TP4/13 and FP0/6; September benchmark TP1/56 and
FP0/40, with zero held-out positives accepted. After deployment, watch
at least15minutes against the predeploy baseline and compare at
least3hours of shadow decisions to the incumbent using counts only.

Validation: regenerated the canonical runtime manifest and feature-flag
registry. Removing exactly the eight authorized Cloud Run fields
reproduces both prior parsed source and compiled manifests; dev/GKE/all
other settings are identical. Runtime-env preflight passed315tests; PR
preflight passed20checks, and the normal push gate passed. Exact-head CI
at48a1bb2890ba4e2ece1197a53de270f3585f88cb completed32successful checks
and25automatic out-of-scope skips, with no failure/pending/cancellation;
re-check after a fresh main fetch before merging. Deploy through
`bin/omi-deploy-prod wait-eligible` then `cloud-run`, approving only
this owner's run. The actual eligible explicit-off rollback source is
now `aa87e9fe37f12a55978b8567db9d41fa28a6ce39` (contains #21931 plus
current Firestore controls and queued-epoch repair), served100% on
allfour via regulartrain
[38976700010](https://github.com/BasedHardware/omi/actions/runs/38976700010).
Its exact normal-workflow rollback commands are written before any
shadow dispatch; the owner did not dispatch or approve that other
operator’s train. An older release that omits the keys does not reset
shadow because the deploy action merges environment variables. The
explicit-off watch22:56–23:11UTC completed with5minute ingestion grace,
complete queries, allfour explicitoff/0/emptyallowlist, and zero matcher
activity/errors. Allfour overall5xxrates were below the recent baseline
(backend0.0127%vs0.0219%;sync0.0473%vs0.0511%;backfill1.2653%vs1.5431%;integration0.0159%vs0.09%).
Backfill remains degraded. A separate memory-search timeout
burst8/9requests occurred in the first5minutes with no later requests on
that route; predeploy had0requests, so causality cannot be established
and recovery is not claimed. This concern remains tracked; sampled
traceback module frames did not implicate new shared-speech modules.
Owner assessment qualifies bounded non-mutating Shadow with the
exactOffrollback ready, while retaining those concerns in the watch.
Never enableOn. Full timings, revisions and aggregate watches are
recorded in the task report.

## Product invariants affected

- [INV-MEM-4](product/invariants/memory-promotion-authority.md):
canonical promotion remains the sole Long-term admission authority.
Regeneration preserves every memory intake, consolidation, promotion,
scheduler and projection setting. The only runtime changes are eight
shared-speech shadow literals on four Cloud Run services; shadow
performs no new group or memory writes.

Failure-Class: none

This is non-mutating rollout configuration with no new failure-class
implementation.
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