Repository navigation
Description
What happens
SignupCreateInputSchema in src/schemas/signups.ts accepts organizerDisplayName (a NameSchema), and SignupUpdateInputSchema inherits it. Nothing else in the repo uses it. There's no column for it, and createSignup and updateSignup never write it. No screen, email, help page, doc or test sends or reads it. The only other mention is in update_signup (src/mcp/tools/signups-write.ts), which .omits it, with a comment saying no column stores it.
So a REST create or update with a valid value is quietly dropped. A blank, non-string or over-100-character value is refused with a 400 on a field that does nothing.
Open issue #584 (a signup's page gives no way to reach its organizer) already notes this. Whether to delete the key or build on it for #584 is your call, so this is held back.
Fix, in outline (if deleting)
src/schemas/signups.ts: remove theorganizerDisplayNameline, and dropNameSchemafrom that file's import if nothing else there uses it.src/mcp/tools/signups-write.ts: removeorganizerDisplayName: truefrom the.omit, and reword the comment to covervisibilityonly.- Test: a schema test that the key is stripped from parsed input.
Watch for
- Fewer refusals. Both schemas strip unknown keys. After the change, a REST request carrying a bad
organizerDisplayNamesucceeds instead of getting a 400. Nothing that succeeds today starts failing. Say so in the PR. - The activity log loses the key.
signup.updatedrecordschanged: Object.keys(data), so an update that sends the key today lists it inchanged, and afterwards won't. No code readschanged. - The MCP comment is also wrong about
visibility. It says acceptingvisibility"would report a change that never happened". In fact the update schema refusesvisibility, and the.omitturns that refusal into a silent strip.src/mcp/tools/signups-write.test.tspins the strip, so keep the behaviour and only make the comment accurate.
Done when
organizerDisplayNameappears nowhere insrc.pnpm lint && pnpm format:check && pnpm typecheck && pnpm knip && pnpm testpass.
Found by the pipeline's refactor scout in the MCP tools and signup schemas (src/mcp/tools, src/schemas/signups.ts), at be0c273. Checked by an independent verify agent: a whole-repo grep, plus a scratch vitest parse of both schemas with and without the key. https://claude.ai/code/session_016YZ9SS4Qrr2sRQj4bhaMwW
Held back by the scout's cap. Add pipeline:ready to queue it.
Activity