Repository navigation
Open
Labels
enhancementNew feature or requestpipeline:proposedpipeline:uxChanges what a person using OpenSignup sees or does
Description
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
- Why it was taken away.
update_signupused to acceptmaxCommitmentsPerParticipantand show it back, but no sign-up ever checked it. An assistant asked to "limit each person to 2 spots" reported the limit as set while anyone could still take every spot. fix(mcp): stop offering a per-person limit that nothing enforces #318 took it out of the connector, and its CHANGELOG entry says it comes back once sign-ups enforce it. - How it's hidden now. Refuse and hide signup settings nothing reads in the MCP tools #353 folded it into one list,
UNREAD_SETTINGSinsrc/mcp/tools/signups-read.ts, withallowNotes,showWhoSignedUpandconfirmationMessage. That list drives both sides.SparseSettingsSchemainsrc/mcp/tools/signups-write.tsomits every key in it and stays.strict(), soupdate_signuprefuses the setting withinvalid_input.settingsOuthides it from every tool's result. - What the tool says. The
update_signupdescription reads "There is no setting to limit how many spots one person can take, turn off notes, list who signed up on the public page (it shows only how full each slot is) or add a confirmation message." - What changes. Sign-ups never check the per-person spot limit, so one person can take every spot #313 makes sign-ups check the limit, under the name
maxSpotsPerParticipant, and keeps it inUNREAD_SETTINGSuntil this issue. After Sign-ups never check the per-person spot limit, so one person can take every spot #313 the reason for hiding it is gone.
Fix, in outline
- Take
maxSpotsPerParticipantout ofUNREAD_SETTINGS. That alone letsupdate_signupaccept it and every tool show it. Leave the other three keys in. - Let
nullclear it.SparseSettingsSchematakes each key fromSignupSettingsSchema, where this one is optional but not nullable. Make it nullable inSparseSettingsSchemaonly.updateSignupalready deletes a key sent asnull. 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.tschecks this. - Comments. Update the ones above
UNREAD_SETTINGSandSparseSettingsSchema, 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.mdsays 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.", withfollowups.tools_must_include: ["update_signup"].
Watch for
- Tests that pin the refusal: the
it.eachof unread keys insignups-write.test.ts, the hiding test inread.test.ts, and the loop intools.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_signuphas no settings. Its input isFullDraftSchema, which carries onlygroupBy. Leave it.src/mcp/instructions.tsmust 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 touchessrc/mcp.
Choices this makes
- Only
update_signup. Default: no limit increate_signupor Magic Compose. Adding it there means a settings object inFullDraftSchemaand a change tomagic-compose/__golden__/system-prompt.txt, which needs an eval run (pnpm eval:magic-compose). That can be its own issue. - No line in
instructions.ts. Default: none. The tool description says what the setting does. - Doesn't wait for Participants aren't told about a signup's per-person spot limit until they're refused #316. Default: this needs only Sign-ups never check the per-person spot limit, so one person can take every spot #313. If participants should always be told before any assistant can set a limit, leave this proposed until Participants aren't told about a signup's per-person spot limit until they're refused #316 merges.
Order
After #313, because this gives the limit back under the name #313 picks, and only once sign-ups check it.
Done when
update_signupacceptsmaxSpotsPerParticipantas a positive whole number, ornullto clear it.get_signup,create_signupandupdate_signupshow it when it's set.allowNotes,showWhoSignedUpandconfirmationMessageare still refused and hidden.- Tests for all three points in
signups-write.test.ts,read.test.tsandtools.db.test.ts. pnpm lint && pnpm typecheck && pnpm knip && pnpm testandpnpm test:dbpass.
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
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestpipeline:proposedpipeline:uxChanges what a person using OpenSignup sees or does
Activity
[-]Give the per-person spot limit back to the AI connector[/-][+]The AI connector can't set or show the per-person spot limit[/+]