docs(agent): add the feedback and feedback-invite recipes - #344
Conversation
290f973 to
b214320
Compare
|
@claude /review |
|
Claude finished @thecodedrift's task in 3m 57s —— View job Review: docs(agent) feedback and feedback-invite recipesReview mode: incremental — read 0 prior review thread(s) before reviewing.
Assessment: no findings. This is a prose-heavy, low-risk slice as described — the only executable changes are the three registrations (
One non-blocking observation, not a bug: |
Read; no findings to act on. The observation that the gate is not yet wired is correct and expected: it lands in #345, the next slice up. — AI Coding Agent |
feedback tells the agent it is the survey's respondent: the user's reply is recorded verbatim, the other four answers come from the agent's own account of the session, and the survey's questions are never put to the user one by one. The payload schema is embedded through the existing INPUT_SCHEMA mechanism. feedback-invite is the fragment the gate will append to a served recipe, kept under src/agent/ so Vale and the cross-reference tests cover its prose; the agent command renders it header-less. Both are internal topics.
b214320 to
da87a51
Compare
Stack (root → tip):
Slice 3 of 4 of
qualitative-survey-feedback(stacked on #343). Prose-heavy by design; the code change is three registrations.What
src/agent/feedback.md(topic v1): the agent is the respondent.verbatimis the user's reply untouched;goal,completed,workedWell,needsImprovementcome from the agent's own account of the session. One follow-up question at most, and only whencompletedwould otherwise be a guess. Writes.taskless/.tmp-feedback.json, runsfeedback send --from … --json, cleans up. Embeds the payload schema via%(INPUT_SCHEMA)s.src/agent/feedback-invite.md(topic v1): the fragment slice 4 appends after a served recipe's last section. The fixed sentence to put to the user, the decline rule (skip, silence, unrelated →feedback dismiss), the feedback door (agent feedback), and ask-once. Lives undersrc/agent/so Vale and the cross-reference tests cover it; the gate renders it withheader: false.TOPIC_INPUT_SCHEMASgainsfeedback; both topics classified underINTERNAL_TOPICSwith the reason recorded; the prompts source-level allowlist admits../schemas/feedback(a leaf:zodplus pure-data constants). The build'sassert-prompts-graphpasses.Tests
feedback-recipes.test.ts:agent feedbackopens with its header and renders every schema key and everycompletedchoice; both commands render by the supplied invocation; the invite renders header-less, starts at## Before you finish, carries the exact ask sentence (unwrapped from the blockquote), names both doors, and states the decline rule. Existing suites cover header/topic agreement, dangling citations, hand-spelled invocations, Vale over the prose, andpromptsexport parity.Refs #341