Skip to content

Shipped default task prompt (13.7k chars) exceeds the 10k assistant-prompt sync bound, so it never syncs #11481

Closed

Description

@kodjima33

Commit 38d3b8e ("fix: harden combined desktop QA workflows", merged 2026-08-12) added APIClientAssistantSettingsTests.testShippedTaskPromptFitsBackendSyncContract and testEachAssistantPromptUsesItsBackendBound, which assert that the task assistant's shipped default prompt fits its sync bound and that task has a bound above the legacy 10,000. Neither is true today, so the desktop Swift suite is red on main (first seen on PR #11479's CI; reproduced at main 8442e89f03), which also blocks the hourly desktop release train's qualification lane.

Facts:

  • TaskAssistantSettings.defaultAnalysisPrompt is ~13.7k chars, and has been over 10k since at least 2026-06 (14.3k on Jul 1). It has therefore never synced: SettingsSyncManager.promptForSync deliberately omits oversized prompts to keep partial PATCH semantics.
  • Backend ASSISTANT_ANALYSIS_PROMPT_MAX_LENGTH = 10000 (backend/routers/users.py, task model), same 10k as insight/memory; the client's TaskAssistantSettings.maximumSyncedAnalysisPromptLength is also 10_000.

Raising the bound is NOT client-safe on its own: if the client constant is raised before the backend limit is deployed to prod, every user on the default task prompt starts including a ~13.7k analysis_prompt in the settings PATCH, Pydantic 422s, and the entire assistant-settings sync breaks for that build. Sequence must be: raise backend limit → deploy prod backend → then raise the client constant in a desktop release.

PR #11479 restores the two tests to assert the shipped contract (oversized default is omitted; all three assistants share the 10k bound) so main and the release train are unblocked; this issue tracks the intended bound raise with correct sequencing (or, alternatively, trimming the default prompt under 10k).

Activity

  1. Sun-HakunaMatata commented on Sep 16, 2026

    @Sun-HakunaMatata

    Hi @kodjima33 — following the contribution guide's bounty-suggestion process, is there an available paid scope here for the prompt-reduction option?

    I reviewed #11580 and the merged client-side fix in #11678. I understand that raising the existing API limit needs a contract decision, and that the existing PR author has offered to continue. I am asking only about work that is still unassigned.

    If you choose to keep the 10,000-character contract, I propose US$75 for a focused contribution:

    • Shorten the shipped task prompt while preserving the behaviors you identify as required.
    • Add or update regression coverage that checks the actual shipped default against the backend limit and the client sync path, while preserving custom user prompts and existing limit handling.
    • Submit a focused PR with the relevant executed test results and required invariant/contract checks.

    Could you confirm whether that scope is available to a new contributor, which prompt behaviors must remain, and whether US$75 would be payable after acceptance and merge through the documented PayPal process? If this work belongs to the existing PR author, I will leave it with them. I will wait for scope and payment confirmation before implementation or a delivery commitment.

    Disclosure: this inquiry is posted by Codex with the account owner's authorization; any proposed contribution would be AI-assisted.

  2. moved this from Someday to In progress in omi TODO / bountieson Sep 26, 2026
  3. added
    memory
    p3
    p2
    intelligence
    and removed
    memory
    p3
    p2
    intelligence
    on Oct 6, 2026
  4. undivisible commented on Oct 15, 2026

    @undivisible
    Collaborator

    Already fixed on main: PR #11678 handles oversized shipped-default hydration; main retains the 10,000 bound and omission/ownership logic in SettingsSyncManager.

    Closing. Reopen if you still see it on the latest build.

  5. moved this from In progress to In review in omi TODO / bountieson Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    intelligencep2

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions