Repository navigation
Activate Smart Tasks for David's dogfood account - #9538
Merged
Merged
Conversation
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
Git-on-my-level
force-pushed
the
codex/smart-tasks-david-activation
branch
from
July 12, 2026 04:52
984728d to
3a54702
Compare
Git-on-my-level
force-pushed
the
codex/smart-tasks-david-activation
branch
from
July 12, 2026 04:59
3a54702 to
e16d6dc
Compare
Git-on-my-level
force-pushed
the
codex/smart-tasks-david-activation
branch
from
July 12, 2026 07:08
e16d6dc to
267823e
Compare
Member
Author
|
Rebased this PR onto the latest Verification:
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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/stateasworkflow_mode=read. Its application-default path uses a Firestore transaction; the explicitgcloud-userpath 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-userpath:off → read0workflow_mode=read, generation0Root cause and durable guard
Smart Tasks correctly defaults missing per-user workflow control to
offat generation0, but the rollout had no audited operator path to create the explicitreadcontrol 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 passedcd backend && python scripts/check_module_stub_pollution.py— 0 violationscd backend && python scripts/scan_import_time_side_effects.py— 0 violationsInvariants
scripts/pr-preflight --suggestreports 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).