Repository navigation
feedback loop: soft optional ask + one-tap rate page + reader feedback recalled into every build - #43
Merged
Merged
Conversation
…der feedback recalled into every build
The success email now ends with a gentle, optional note ("If you have a minute, I'd really
appreciate your feedback") and three tap-to-choose buttons (nailed it / close / missed). The live
page link stays direct; nothing is mandatory.
rate.html: choice preselected from the email, optional one-line comment, 1-100 score tucked behind
"Prefer a number?". Fixes the old bug where it said thanks even when the POST failed. Nothing is
recorded until Send, so mail scanners that prefetch links cannot fake a rating.
tools/feedback-lessons.mjs (new): pulls build-rating submissions straight from the Netlify form
(reachable from CI, unlike the local RuVector store), mirrors them into ruflo memory (feedback ns),
and distils a prompt-safe lessons block. Comments are treated as untrusted data: links, markup,
code fences, control/invisible chars and the frame's own markers are stripped, capped at 260 chars.
The operator's selftest ratings are excluded.
bin/agentic-runner.mjs: runs it before the brief is built (fail-open) and appends the block to the
brief, ahead of the final-status instruction.
tests/feedback-lessons.test.mjs: 9 tests incl. source-shape pins for the runner, email and page.
✅ Deploy Preview for explainmyrepo ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
rate.html: choice preselected from the email, optional comment, optional 1-100; no longer says thanks on a failed POST.tools/feedback-lessons.mjs: pulls ratings from the Netlify form, mirrors into ruflo memory, distils a prompt-safe lessons block (untrusted-data framing per ruflo ADR-445).bin/agentic-runner.mjs: appends that block to every build brief (fail-open).Tested end to end before this PR
verdictfield; empty submit, bad params, injection probe, double-tap, failed POST all behave.claude: the feedback block is inside the brief the agent receives.npm test: 349 pass, 0 fail (3 pre-existing skips). 9 new tests; the marker-forgery test verified to fail when the guard is removed.After merge
Netlify deploys
landing/(the new rate page); the email change takes effect on the next hosted build. Verify production rate page + one real submission, then clean up the test row.🤖 Generated with Claude Code
https://claude.ai/code/session_01PRnZSoReTcgUQnF43xaDUf