Skip to content

The AI connector can't set or show the per-person spot limit #317

Open

Description

@richshaw

Needs your OK: this lets an AI assistant set, change and clear a signup's per-person spot limit, and shows the limit in its tool results. Swap pipeline:proposed for pipeline:ready to have it built.

Part of #312.

What happens

Fix, in outline

  • Take maxSpotsPerParticipant out of UNREAD_SETTINGS. That alone lets update_signup accept it and every tool show it. Leave the other three keys in.
  • Let null clear it. SparseSettingsSchema takes each key from SignupSettingsSchema, where this one is optional but not nullable. Make it nullable in SparseSettingsSchema only. updateSignup already deletes a key sent as null. Keep the object .strict().
  • The description. Take "limit how many spots one person can take" out of the "There is no setting to …" sentence. Say what the setting does, for example: "settings.maxSpotsPerParticipant caps how many spots one person, by email address, can hold across the signup's slots; null removes the cap. Lowering it takes no spots from anyone who already holds more." It describes the tool, not what the model should do: registry.test.ts checks this.
  • Comments. Update the ones above UNREAD_SETTINGS and SparseSettingsSchema, which use this setting as their example.
  • Help and docs. Add a line to the list of what an assistant can do in src/help/articles/connect-an-ai-assistant.tsx, next to the email setting: "Limit how many spots one person can take." docs/connect-ai-assistant.md says only "settings", so it needs no change. CHANGELOG line.
  • An eval case. Add one to evals/mcp/followup-evals.json: a potluck signup, then "Each family should bring just one dish.", with followups.tools_must_include: ["update_signup"].

Watch for

  • Tests that pin the refusal: the it.each of unread keys in signups-write.test.ts, the hiding test in read.test.ts, and the loop in tools.db.test.ts. Turn the limit's cases around, so they check it is advertised, stored, shown and cleared. Keep the other keys' cases.
  • create_signup has no settings. Its input is FullDraftSchema, which carries only groupBy. Leave it.
  • src/mcp/instructions.ts must stay within 2048 bytes before its tools line. This needs nothing there.
  • The help page's walkthrough (tests/e2e/help/connect-an-ai-assistant.spec.ts) and its style test (src/help/articles.test.tsx) must still pass with the new line.
  • Participants aren't told about a signup's per-person spot limit until they're refused #316 tells participants about the limit up front. If this lands first, an assistant can set a limit that participants meet only as a refusal. Organizers can't set a per-person spot limit in the web app #315 has the same gap from the web app.
  • Run pnpm test:db, since this touches src/mcp.

Choices this makes

Order

After #313, because this gives the limit back under the name #313 picks, and only once sign-ups check it.

Done when

  • update_signup accepts maxSpotsPerParticipant as a positive whole number, or null to clear it.
  • get_signup, create_signup and update_signup show it when it's set.
  • allowNotes, showWhoSignedUp and confirmationMessage are still refused and hidden.
  • Tests for all three points in signups-write.test.ts, read.test.ts and tools.db.test.ts.
  • pnpm lint && pnpm typecheck && pnpm knip && pnpm test and pnpm test:db pass.

Rewritten from the original issue for the pipeline, and checked against src/mcp/tools/signups-read.ts, src/mcp/tools/signups-write.ts, src/lib/magic-compose/prompt.ts, src/help/articles/connect-an-ai-assistant.tsx and docs/connect-ai-assistant.md on main at 2d4fdfe, and against merged PRs #318 and #353. https://claude.ai/code/session_016YZ9SUWWJa1udHCjU5fUma

Activity

  1. added
    enhancement
    on Sep 27, 2026
  2. changed the title [-]Give the per-person spot limit back to the AI connector[/-] [+]The AI connector can't set or show the per-person spot limit[/+] on Oct 30, 2026
  3. added
    pipeline:ux
    on Oct 30, 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

    enhancementpipeline:proposedpipeline:ux

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions