Milestone 440 "Lessons point at rules — a rule is found through the situations that keep proving it".
**#4658 "The web lesson editor records the answer"** (cf42064). The lesson editor gains three answers:
- an instance of a rule, ticked from the rules it resembles;
- "No rule fits", with a required reason;
- leave it open.
How the pieces work:
- A new `GET /api/lessons/rule-candidates` searches before the save. It returns null, not `[]`, when the search could not run.
- An edit sends the answer only when it changed.
- Going from linked to open sends `rule_ids: []`.
- A convergence reply shows as a toast.
CI run 717 is green on cf42064.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
The lesson editor now asks the question the create tool asks, while the
writer still has the situation in mind. It offers three answers:
- an instance of a rule, ticked from the rules the lesson resembles;
- "No rule fits", with a required reason;
- leave it open.
The rules are fetched before the save from a new GET
/api/lessons/rule-candidates. It runs the same rule_candidates search the
create door replies with, and passes "search unavailable" through as null,
apart from "nothing resembles it".
An edit sends an answer only when it changed. Re-sending the same rules
would re-stamp their judgments. Worse, a shared editor who cannot see the
owner's rule would reject it by sending a list without it. Leaving a linked
lesson open sends rule_ids=[], which is what clears the links.
"Leave it open" is not offered once "no rule fits" is on file: the server
has no way to take that answer back except by naming a rule. When "no rule
fits" completes a convergence group, the editor says so in a toast, since
the page it goes to does not recompute it.
Guards check that the payload uses the names both routes read, that the
three answers are offered, that the candidates route sits above the id route
and keeps null apart from [], and that the editor reuses .rule-chip.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Milestone 440 "Lessons point at rules — a rule is found through the situations that keep proving it".
#4658 "The web lesson editor records the answer" (
cf42064). The lesson editor gains three answers:How the pieces work:
GET /api/lessons/rule-candidatessearches before the save. It returns null, not[], when the search could not run.rule_ids: [].CI run 717 is green on
cf42064.🤖 Generated with Claude Code