Skip to content

Activate Smart Tasks for David's dogfood account - #9538

Merged
Git-on-my-level merged 1 commit into
mainfrom
codex/smart-tasks-david-activation
Jul 12, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
codex/smart-tasks-david-activation

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Jul 12, 2026 •

Copy link
Copy Markdown
Member

Summary

Adds a repo-tracked, dry-run-first Smart Tasks activation tool for David's already canonical-memory-whitelisted dogfood account.

The tool is hard-restricted to David's Firebase UID and can only write users/{uid}/task_intelligence_control/state as workflow_mode=read. Its application-default path uses a Firestore transaction; the explicit gcloud-user path obtains a short-lived user token without outputting it and PATCHes only after a Firestore document-revision precondition. Both preserve the existing account generation, reject stale state, and are no-ops once the account is already active.

It does not change canonical-memory membership, runtime environment, any other account, or task-chat continuity.

Live activation

Applied in this dogfood session using the audited gcloud-user path:

  • David only: off → read
  • Account generation: preserved at 0
  • Immediate independent read-back: workflow_mode=read, generation 0
  • No cohort, runtime environment, or other account changed

Root cause and durable guard

Smart Tasks correctly defaults missing per-user workflow control to off at generation 0, but the rollout had no audited operator path to create the explicit read control document. The new tool supplies that path with exact UID/mode confirmations, a transactional or document-revision generation fence, and tests for default-off, generation-preserving, no-op, non-target refusal, and bounded gcloud-user transport.

Verification

  • cd backend && .venv/bin/python -m pytest -q tests/unit/test_activate_task_intelligence_dogfood_user.py tests/unit/test_task_intelligence_rollout.py — 16 passed
  • cd backend && python scripts/check_module_stub_pollution.py — 0 violations
  • cd backend && python scripts/scan_import_time_side_effects.py — 0 violations
  • PR preflight and pre-push contracts passed
  • Live dry-run, apply, and separate read-back all passed

Invariants

scripts/pr-preflight --suggest reports no invariant IDs for this control-only script and lifecycle runbook change.

Related to #9530 (unblocks the per-account control write; does not complete dogfood).

@mintlify

mintlify Bot commented Jul 12, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
omi 🟢 Ready View Preview Jul 12, 2026, 4:49 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@Git-on-my-level

Copy link
Copy Markdown
Member Author

Rebased this PR onto the latest main (20 commits) to resolve drift. No code changes — the single commit's tree is identical before and after rebase.

Verification:

  • All CI checks pass on the rebased head (267823ed): Backend unit suite, Hermetic Backend E2E, Public Developer API contract, Formatting, Hygiene, Desktop Swift Build & Tests, Desktop Swift Release Compile.
  • Pre-push gate: 12 manifest checks passed (diff-hygiene, backend async blockers, import purity, module isolation, workflow contracts, etc.).
  • No review threads or actionable comments to address.

@Git-on-my-level
Git-on-my-level merged commit 6ce3e83 into main Jul 12, 2026
22 checks passed
@Git-on-my-level
Git-on-my-level deleted the codex/smart-tasks-david-activation branch July 12, 2026 16:55

This branch was successfully deployed

1 active deployment
staging - docs — 267823ed Deployed Jul 12, 2026 by mintlify[bot]
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