feat(mentor): dismiss & decay Learnings (#27)
CI / ci (push) Canceled after 0s
CI / ci (push) Canceled after 0s
Dismissed patterns fade instead of haunting. Dismissing a Learning stamps decay state into its own frontmatter (dismissed date, dismiss_count, dismissed_at_pass — every other line preserved verbatim, hand-editable, git-diffable) and hides it from every pass: query_learnings serves only visible learnings. Resurfacing is an output clock, not a calendar — a per-type counter under <home>/learnings/pass-counts.json, ticked by every completed pass (cancels and refusals never advance, so never tick), returns the Learning after 10 subsequent passes of its content type; each re-dismiss doubles the interval (10→20→40…), and a per-Learning resurface_after frontmatter key overrides the base. Hand-edited decay state reads leniently: garbage means visible, absurd values clamp, a hand-edit can never trap the pane or the rail. The Learnings pane rows dismiss (no confirm — low-stakes, self-healing), dim while hidden with a resurfaces-in-N countdown, and foreign unclocked type dirs neither offer Dismiss nor show a verdict — their clock can never advance. Two review waves (two-axis implement review + three-reviewer finish-audit: security clean) produced five fixes, each pinned or noted in the session log. Closes #27
This commit is contained in:
1 parent
0e5c28ad95
commit
78c8844184
15 files changed
+911
-66
No files matched your search
+3
-1
@@ -6,7 +6,9 @@ All notable changes to this project will be documented in this file. The format
|
||||
|
||||
### Added
|
||||
|
||||
- **mentor:** Promote & consult Learnings (PRD S4.1/S4.3/S4.4, ADR-0005) — only the writer's explicit confirmation promotes a Fix Card into a Learning: one confirm = one entry, never a repetition counter (the store refuses a second promote of a stamped card). The promote ask on every card row (open or closed — the Learning outlives the card) matches the design contract's dialog (pattern/problem/provenance preview, Cancel/Promote); confirming writes ONE plain markdown file `<home>/learnings/<type>s/YYYYMMDD-<pattern-slug>.md` carrying the card's teaching fields — pattern, problem, diagnostic question, the demonstration example (demonstration lanes only) — plus promotion provenance (flat frontmatter + readable body, `from_card` traceability, collision -2; the instance-bound anchor and mechanical replacement stay on the card — the Learning teaches the symptom/fix, never re-quotes the originating text) and stamps the card `promoted_at` (pre-#26 cards decode nil); every pass consults exactly these files through `query_learnings`, so recurring weaknesses surface as fix cards; the Learnings pane replaces its placeholder — list-only, grouped by content type, newest first, lenient to hand-edits; learnings are hand-editable, git-diffable, per-writer portable files in the Home (dismiss/decay is #27) (issue #26)
|
||||
- **mentor:** Dismiss & decay for Learnings (PRD S4.2, G8) — dismissed patterns fade instead of haunting: a Dismiss button on every visible Learning in the Learnings pane stamps decay state into the Learning's own frontmatter (`dismissed`, `dismiss_count`, `dismissed_at_pass` — every other line preserved verbatim; hand-editable, git-diffable, survives restarts) and hides it from every pass: `query_learnings` serves only visible learnings. Resurfacing is an output clock, not a calendar — a dismissed Learning returns after 10 subsequent completed passes of its content type (a per-type counter under `<home>/learnings/pass-counts.json`, ticked by every completed pass, re-runs included), each re-dismiss doubles the interval (10 → 20 → 40…), and a per-Learning `resurface_after` frontmatter key overrides the base 10. Dismissed rows dim with a "resurfaces in N passes" countdown and no button until they return; hand-edited decay state reads leniently — garbage means visible, absurd numbers clamp, a hand-edit can never crash the pane or the rail (issue #27)
|
||||
|
||||
- **mentor:** Promote & consult Learnings (PRD S4.1/S4.3/S4.4, ADR-0005) — only the writer's explicit confirmation promotes a Fix Card into a Learning: one confirm = one entry, never a repetition counter (the store refuses a second promote of a stamped card). The promote ask on every card row (open or closed — the Learning outlives the card) matches the design contract's dialog (pattern/problem/provenance preview, Cancel/Promote); confirming writes ONE plain markdown file `<home>/learnings/<type>s/YYYYMMDD-<pattern-slug>.md` carrying the card's teaching fields — pattern, problem, diagnostic question, the demonstration example (demonstration lanes only) — plus promotion provenance (flat frontmatter + readable body, `from_card` traceability, collision -2; the instance-bound anchor and mechanical replacement stay on the card — the Learning teaches the symptom/fix, never re-quotes the originating text) and stamps the card `promoted_at` (pre-#26 cards decode nil); every pass consults exactly these files through `query_learnings`, so recurring weaknesses surface as fix cards; the Learnings pane replaces its placeholder — list-only, grouped by content type, newest first, lenient to hand-edits; learnings are hand-editable, git-diffable, per-writer portable files in the Home (dismiss/decay landed in #27) (issue #26)
|
||||
|
||||
- **mentor:** Fix Card apply/skip & trust UI (PRD S3.2/S3.3/S2.5) — Fix Cards are actionable: mechanical cards offer Apply behind a blocking ask-before sheet showing the exact edit (anchored quote → replacement, occurrence + context; an empty fix cuts the span) — the only path to a write, one card at a time, no apply-all; the edit lands through the editing session (pending edits flush first, the editor re-seeds, the card closes applied), Skip and Done close the card in place recording nothing, demonstration cards close Done/Skip only (ADR-0006); cards arrive ranked (store-stamped order, `#N` in the meta, open cards first) and capped at ten per submit — the app keeps the ranked head and the wire reply says what dropped; a stale anchor — the Post changed after the card was issued — alerts with no text selected or changed and flags the card (issue #25)
|
||||
|
||||
|
||||
Reference in new issue
Block a user