Repository navigation
deploy: enable the memory belief model on the development backend (beta dogfood) - #12751
Conversation
Omi Beta serves its data from the dev backend, so this is the beta-first lane for BasedHardware#12701. MEMORY_BELIEF_MODEL_ENABLED='true' is declared beside every dev MEMORY_ENABLED site (backend-listen, pusher, backend, backend-sync, backend-sync-backfill, backend-integration, memory-maintenance-job, daily-memory-sweep-job) and mirrored into the two Helm values files, so the gated path resolves identically on every host that runs it. Prod stays unset, which the flag treats as off. The deploy validator's Cloud Run state fixture carries the flag wherever MEMORY_ENABLED appears, so a dev deploy that drops it on any host fails validation instead of shipping. Co-Authored-By: Claude Fable 5.1 <[email protected]>
There was a problem hiding this comment.
2 issues found across 8 files
Confidence score: 5/5
backend/deploy/runtime_env.yamlleaves the prod GKE pusher withoutMEMORY_BELIEF_MODEL_ENABLED, creating an environment-specific rollout inconsistency rather than an immediate functional failure; align its value with the intended prod behavior.backend/deploy/runtime_env/_base.yamlcategorizes the new flag asrolloutinstead of the surroundingmemory_rolloutcategory, which could exclude it from category-based tooling or workflows; use the established category if those tools depend on it.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="backend/deploy/runtime_env.yaml">
<violation number="1" location="backend/deploy/runtime_env.yaml:169">
P3: The prod GKE pusher keeps MEMORY_ENABLED='on' but never received MEMORY_BELIEF_MODEL_ENABLED, unlike every other prod host with MEMORY_ENABLED (all got 'false') and unlike the dev pusher (got 'true'). It is functionally equivalent today because an unset flag defaults to off, but it diverges from the declared 'wherever MEMORY_ENABLED appears' coverage and leaves the pusher silently different from the other prod hosts if the flag default ever changes. Add MEMORY_BELIEF_MODEL_ENABLED: value: 'false' (category: rollout) beside the prod pusher MEMORY_ENABLED for consistency with the rest of the rollout.</violation>
</file>
<file name="backend/deploy/runtime_env/_base.yaml">
<violation number="1" location="backend/deploy/runtime_env/_base.yaml:174">
P3: The new MEMORY_BELIEF_MODEL_ENABLED flag is tagged category: rollout, but the sibling MEMORY_ENABLED entry directly above it and all other memory flags in this file use category: memory_rollout. Any tooling or workflow that groups/env-filters memory flags by the memory_rollout category would not include this flag. Use category: memory_rollout to stay consistent with the other memory rollout flags.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
| MEMORY_ENABLED: | ||
| category: memory_rollout | ||
| value: 'on' | ||
| MEMORY_BELIEF_MODEL_ENABLED: |
There was a problem hiding this comment.
P3: The prod GKE pusher keeps MEMORY_ENABLED='on' but never received MEMORY_BELIEF_MODEL_ENABLED, unlike every other prod host with MEMORY_ENABLED (all got 'false') and unlike the dev pusher (got 'true'). It is functionally equivalent today because an unset flag defaults to off, but it diverges from the declared 'wherever MEMORY_ENABLED appears' coverage and leaves the pusher silently different from the other prod hosts if the flag default ever changes. Add MEMORY_BELIEF_MODEL_ENABLED: value: 'false' (category: rollout) beside the prod pusher MEMORY_ENABLED for consistency with the rest of the rollout.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At backend/deploy/runtime_env.yaml, line 169:
<comment>The prod GKE pusher keeps MEMORY_ENABLED='on' but never received MEMORY_BELIEF_MODEL_ENABLED, unlike every other prod host with MEMORY_ENABLED (all got 'false') and unlike the dev pusher (got 'true'). It is functionally equivalent today because an unset flag defaults to off, but it diverges from the declared 'wherever MEMORY_ENABLED appears' coverage and leaves the pusher silently different from the other prod hosts if the flag default ever changes. Add MEMORY_BELIEF_MODEL_ENABLED: value: 'false' (category: rollout) beside the prod pusher MEMORY_ENABLED for consistency with the rest of the rollout.</comment>
<file context>
@@ -166,6 +166,9 @@ environments:
MEMORY_ENABLED:
category: memory_rollout
value: 'on'
+ MEMORY_BELIEF_MODEL_ENABLED:
+ value: 'true'
+ category: rollout
</file context>
| MEMORY_BELIEF_MODEL_ENABLED: | ||
| value: 'false' | ||
| category: rollout |
There was a problem hiding this comment.
P3: The new MEMORY_BELIEF_MODEL_ENABLED flag is tagged category: rollout, but the sibling MEMORY_ENABLED entry directly above it and all other memory flags in this file use category: memory_rollout. Any tooling or workflow that groups/env-filters memory flags by the memory_rollout category would not include this flag. Use category: memory_rollout to stay consistent with the other memory rollout flags.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At backend/deploy/runtime_env/_base.yaml, line 174:
<comment>The new MEMORY_BELIEF_MODEL_ENABLED flag is tagged category: rollout, but the sibling MEMORY_ENABLED entry directly above it and all other memory flags in this file use category: memory_rollout. Any tooling or workflow that groups/env-filters memory flags by the memory_rollout category would not include this flag. Use category: memory_rollout to stay consistent with the other memory rollout flags.</comment>
<file context>
@@ -171,6 +171,9 @@ environment_shared:
MEMORY_ENABLED:
category: memory_rollout
value: 'off'
+ MEMORY_BELIEF_MODEL_ENABLED:
+ value: 'false'
+ category: rollout
</file context>
| MEMORY_BELIEF_MODEL_ENABLED: | |
| value: 'false' | |
| category: rollout | |
| MEMORY_BELIEF_MODEL_ENABLED: | |
| value: 'false' | |
| category: memory_rollout |
…ing contract (#12759) #12751 declared the belief-model flag on the dev pusher; the contract test pins the exact dev pusher literal set and was masked on that PR by the collection abort fixed in #12757. Co-authored-by: Claude Fable 5.1 <[email protected]>
Summary
Turn on the memory belief model (#12701) in the development backend only. Omi Beta on macOS is the production-account dogfood channel and serves its data from the dev backend (
DesktopBackendEnvironment.swift), so this is the beta-first rollout lane. Prod stays unset, which the flag treats as off.MEMORY_BELIEF_MODEL_ENABLED='true'is added beside every devMEMORY_ENABLEDsite so the gated code path resolves identically on every host that runs it (FC-rollout-flag-absent-from-a-cohost-of-its-code-path):backend-listen,pusher(manifest + the Helm values files Helm actually reads)backend,backend-sync,backend-sync-backfill,backend-integrationmemory-maintenance-job,daily-memory-sweep-jobThe flag is declared in
_base.yamlas'false'(categoryrollout) on the same hosts, so prod carries an explicit off rather than an absence, and the prod backend-listen Helm values mirror that"false". Pusher has no base-level site, so prod pusher stays absent (also off).config/deployment-setting-classification.jsonclassifies the name asconfigfor the secret-boundary ratchet.runtime_env.yamlis recomposed. The deploy validator's Cloud Run state fixture gains the flag whereverMEMORY_ENABLEDappears, so a dev deploy that drops it on any host fails validation.What changes for beta users once deployed
belief_class/half_life_days; the memory API returnscurrency,currency_band,as_of.meta_residueinstead of being hidden; the TTL lifecycle stops hiding expired short-term rows.expires_at, or content changes come from the flag alone.Existing rows do not decay until classified. Backfill per account with
backend/scripts/backfill_belief_classes.py --uid <uid>(dry-run by default;--applyrequires the flag in the script's environment).Verification
backend/scripts/check_runtime_env_compose.sh— up to datebackend/scripts/pre-deploy-check.sh(offline, asbackend-checksruns it) — passestests/unit/test_backend_runtime_env_validator.py— 99 passedscripts/pr-preflight --pr-body-file— 36 checks passed (desktop Swift compile skipped locally per the FluidAudio pin; CI arbitrates)Product invariants affected
archive/meta_residueinstead ofreject_or_hide).Rollout
Auto Deploy Backend to Development, pusher (dev), and the sweep job (dev) pick this up on merge. Rollback is reverting this PR; the flag is read at each call boundary, so no data migration is needed either way.
🤖 Generated with Claude Code