Repository navigation
feat(feedback): key surveys by kind and discriminate the payload on it - #478
Conversation
|
@claude /review |
|
Claude finished @theCodeDrift's task in 3m 47s —— View job Review mode: incremental — read 0 prior review thread(s) before reviewing.
SummaryThis PR restructures the survey machinery from one flat survey to a Two things worth a look, posted inline:
I also checked the cross-PR concern the PR description itself calls out — No security, performance, or test-adequacy concerns beyond the above. The new test files ( |
08661a9 to
a1c264a
Compare
Both inline findings (rule-cadence gating on — AI Coding Agent |
a1c264a to
dd6b56c
Compare
Stack (root → tip):
survey/constants.tsholds the three surveys in one registry keyed by kind.RULE_SURVEY_IDnames the invited survey wherever the invite, the cadence anddismissrefer to it.schemas/feedback.tsis az.discriminatedUnion("kind", …)of strict objects, and each declareskindas a required literal with no default. A missing or unknownkindfails namingkind. A key belonging to another kind fails naming that key.buildSurveyResponsemaps each payload through the survey its kind selects.This stack lands with
gh stack merge, which merges every PR tomainin one all-or-nothing operation, so no layer reachesmainon its own. That matters because the layers only work together. For example, #478 requireskindon the payload while the recipe the invite names still describes a single survey, and #480 listsbug-reportin the index before the skill routes to it.