From b885fcf056f418cb7466305ec700bab951308c41 Mon Sep 17 00:00:00 2001 From: kiskaadee Date: Sat, 17 Oct 2026 07:41:06 -0500 Subject: [PATCH] plan(brain): specify scaffolded learning contracts and workflow design Curate the foundational discussion and phased execution plan for a learning-centered engineering workflow across agent skills: - Ground the architecture in cognitive science and instructional design principles (generation effect, testing effect, desirable difficulties, and expertise reversal). - Establish explicit delivery vs. learning mode operational contracts. - Define activity adapters for project commits, courses, LeetCode drills, and hypothesis planning. - Plan a 4-phase rollout to introduce authoring/scaffolding modes to git-commit, journal-builder, and practice. --- ...learning-contract-and-scaffolded-skills.md | 75 +++++++++ .../learning-centered-engineering-workflow.md | 156 ++++++++++++++++++ 2 files changed, 231 insertions(+) create mode 100644 01-plans/brain/learning-contract-and-scaffolded-skills.md create mode 100644 02-discussions/brain/learning-centered-engineering-workflow.md diff --git a/01-plans/brain/learning-contract-and-scaffolded-skills.md b/01-plans/brain/learning-contract-and-scaffolded-skills.md new file mode 100644 index 0000000..ddcd2d3 --- /dev/null +++ b/01-plans/brain/learning-contract-and-scaffolded-skills.md @@ -0,0 +1,75 @@ +--- +type: plan +status: active +project: brain +tags: + - learning + - skills + - roadmap + - implementation +--- + +# Plan: Scaffolded Learning Contracts Across Engineering Skills + +> **Discussion Reference**: [`02-discussions/brain/learning-centered-engineering-workflow.md`](../../02-discussions/brain/learning-centered-engineering-workflow.md) +> +> **Core Objective**: Transition operational agent skills from "AI writes it" to "AI scaffolds, learner writes it", enforcing the learning contract across everyday engineering tasks. + +--- + +## 1. Reality Check & Skill Inventory + +Mapping the theoretical redesign to actual skills in [`skills`](https://github.com/kiskaadee/skills): + +| Conceptual Capability | Actual Skill | Current State vs. Learning Mode | +| :--- | :--- | :--- | +| **Engineering Tutor** | `practice` | Hint ladder implemented (question $\to$ pointer $\to$ explanation $\to$ demo); learner attempts first. | +| **Troubleshooting** | `diagnose` | Evidence-first investigation; working-tree safety stops. | +| **Git Commits** | `git-commit` | Has a `/practice` branch, but still auto-drafts commit messages. Needs author mode. | +| **Documentation** | `document` | Determines document type and drafts it. Needs learner core-sentence prompt. | +| **Journaling** | `journal-builder` | Produces polished narrative. Needs scaffolding mode with diagnostic blanks. | + +--- + +## 2. Phased Implementation Roadmap + +### Phase 1: Minimal Learning Contract (`learning-contract.md`) +**Status**: ✅ **Completed** +- Defined binding rules in `profile/learning-contract.md`: + - *Write rule*: In learning mode, agent provides facts and questions; learner writes reasoning. + - *Assistance levels*: `independent`, `hints`, `substantial`, `shown-solution`. + - *Evidence $\neq$ assessment*: Passing tests or commits are evidence, not claims of competence. + - *Mode toggle*: Explicit `delivery` vs `learning` mode per session. + +--- + +### Phase 2: Skill Scaffolding Experiments + +Pick candidate skills to enforce the contract: +- **Option A: `git-commit` author mode**: Agent lists slices, changed behavior, tests present/missing, and asks 1–2 diagnostic questions. Learner writes the commit message; agent validates accuracy and scope against the diff. +- **Option B: `journal-builder` scaffold mode**: Builds a factual skeleton from `00-inbox/commit-log.csv` plus 3–5 targeted questions with blanks for learner answers. + +--- + +### Phase 3: Practice Records & Delayed Retrieval + +- Add `assistance:` and `revisit_after:` (target date) metadata to practice drill records. +- Surface due revisits manually during `practice` or weekly review. +- Revisits require **recall before reveal**: answer without opening the previous record, then compare. + +--- + +### Phase 4: Two-Week Dogfood Evaluation + +Test in real work (project commits, course modules, LeetCode drills) and evaluate: +1. Did the learner actually write the reasoning, or rubber-stamp? +2. Were questions anchored in the learner's actual work rather than generic quizzes? +3. On revisit, did recall succeed without viewing the answer? +4. Cut any steps that feel like bureaucratic drag. + +--- + +### Phase 5 (Gated): Event Store & Service Integration + +**Gate**: Proceed only if Phase 4 proves a concrete query need that filesystem files cannot answer (e.g. tracking concepts practiced with hints that were never retrieved independently). +- If triggered, implement as an isolated learning project in `~/Projects/tests/` (PostgreSQL with `FOR UPDATE SKIP LOCKED` and append-only event logging). diff --git a/02-discussions/brain/learning-centered-engineering-workflow.md b/02-discussions/brain/learning-centered-engineering-workflow.md new file mode 100644 index 0000000..bd468f5 --- /dev/null +++ b/02-discussions/brain/learning-centered-engineering-workflow.md @@ -0,0 +1,156 @@ +--- +type: discussion +status: open +project: brain +date: 2026-10-13 +tags: + - learning + - architecture + - skills + - cognitive-science + - deliberate-practice +--- + +# Architectural Discussion: A Learning-Centered Engineering Workflow + +## 1. Problem Statement & Purpose + +The objective is to turn the daily engineering work I already do into **engineering competence I can retrieve and use later**, without slowing the work down so much that I stop using the system. + +**Success test:** six months from now I can: +1. Recover what I did and why, +2. Explain or apply what I learned *without rereading*, and +3. See honestly what I don't know yet. + +### Non-Goals +- Producing complete, polished documentation of all activity. +- Measuring "skill level" with a numeric score. +- Getting better at prompting. + +--- + +## 2. Requirements Analysis + +Sorted by provenance. Only R-items bind the design. I-items are exploratory ideas. + +### Stated Requirements (Binding) + +| ID | Requirement | +| :--- | :--- | +| **R1** | The record must bring back things I'd forget: a concept studied months ago, why an architecture was chosen, what was built in a given week. | +| **R2** | Artifacts must be worth rereading. Polish and structure are not value. | +| **R3** | Content value over metadata. Frontmatter is minimal. | +| **R4** | For learning-worthy work, the AI drafts **questions and blanks** around key concepts. I complete them. | +| **R5** | A curation step checks my answers against the evidence and gives feedback. | +| **R6** | For commits, the AI points at key details. I write the message and choose the integration strategy. | +| **R7** | The AI helps me do the cognitive work. It does not do it for me (active recall, active learning, practice). | +| **R8** | Productivity sometimes wins. There has to be a low-friction path (delivery mode). | +| **R9** | The target is architecture, problem solving, and engineering judgment. | +| **R10**| Design choices rest on cognitive science and instructional design, because that makes the design sound, not to decorate it with citations. | +| **R11**| Must cover four activities: project work, courses (Coursera/Platzi), daily LeetCode, planning/ideas. | +| **R12**| Must weave in: retrieval, spacing, formative feedback, git discipline, TDD, invariants, architecture reasoning, separating facts from interpretation. | + +### Exploratory Ideas + +| ID | Idea | Status | +| :--- | :--- | :--- | +| **I1** | REST/MCP service recording commits, goals, artifacts, concepts | Deferred to §10 | +| **I2** | PostgreSQL as an event queue, with listeners deriving records | Deferred to §10 | +| **I3** | Hartman proficiency ladder as the progress model | Evaluated as lens only; unverified primary source | + +--- + +## 3. Theoretical Basis & Design Principles + +Each row pairs research findings with system principles and testable predictions: + +| Finding | Design Principle | Testable Prediction | +| :--- | :--- | :--- | +| **Generation effect** (Slamecka & Graf, 1978): information produced by oneself is remembered better than information read. | **P1: I write the core reasoning.** The AI supplies facts and questions, not answers. | Notes I wrote are easier to recall later than AI-written ones. | +| **Retrieval practice / testing effect** (Roediger & Karpicke, 2006; Dunlosky et al., 2013): recalling beats rereading for long-term retention. | **P2: Revisits are recall attempts.** I answer before seeing the old note. | Revisit accuracy improves over successive attempts. | +| **Spacing and successive relearning** (Cepeda et al., 2006; Rawson & Dunlosky): spread-out retrieval sessions build durable memory. | **P3: Selected items come back after growing gaps.** | Items revisited 2–3 times stay recallable. Ones never revisited fade. | +| **Feedback** (Hattie & Timperley, 2007): feedback works when it targets the gap and the next step, not when it praises. | **P4: Feedback is diagnostic.** Correct / missing / wrong / unsupported, then revise. Never "masterfully". | I revise answers after feedback, and later attempts show fewer repeated gaps. | +| **Fluency illusion** (Bjork, Dunlosky & Kornell, 2013): smooth, easy-to-read material makes people overestimate what they know. | **P5: The polished AI summary is a known hazard.** This explains the "AI slop" feeling. | Reading a polished journal feels productive, but recall afterwards is weak. | +| **Self-explanation** (Chi et al., 1989): explaining *why* each step works deepens understanding. | **P6: Questions ask why and what-if,** not "what is X". | Why/what-if answers predict transfer better than definitions do. | +| **Desirable difficulties** (Bjork, 1994): struggle helps learning, but only if it's within reach. | **P7: Hints escalate gradually,** smallest useful hint first. | Hint level needed for the same concept drops over time. | +| **Expertise reversal** (Kalyuga et al., 2003): scaffolds that help novices get in the way once you know the material. | **P8: Scaffolding fades per concept.** Familiar ground goes to delivery mode (R8). | Forcing questions on routine work causes rubber-stamping. | +| **Deliberate practice** (Ericsson et al., 1993): focused practice at the edge of ability, with feedback. | **P9: Pick a few targets.** Not every commit is a lesson. | A few chosen capabilities improve more than "learn from everything". | +| **Transfer** (near vs far): applying a principle in a new context is harder than recall and means more. | **P10: The strongest evidence is a changed-context challenge.** | Demonstrating transfer in projects proves retention. | + +**Progress models** (Dreyfus novice→expert; Hartman ladder): useful vocabulary for *describing* growth, but neither is a validated measurement scale. The system does not encode a ladder as state; it records evidence and lets the human judge. + +--- + +## 4. Core Conceptual Model + +```mermaid +flowchart LR + A["Activity\n(project, course, LeetCode, idea)"] --> E["Evidence\n(diff, test, notes, submission)"] + E --> Q["Prompt\n(questions with blanks)"] + Q --> T["Attempt\n(my answer + assistance level)"] + T --> F["Feedback\n(checked against evidence)"] + F --> T + F --> S{"Settle"} + S -->|keep + revisit| R["Revisit\n(recall before reveal)"] + S -->|keep| K["Record"] + S -->|drop| X["Discard"] + R --> T +``` + +- **Evidence** is an objective fact: a commit SHA, test result, accepted submission, or course section. +- **Prompt** is AI-generated: a few questions drawn directly from that evidence, with blanks. +- **Attempt** is learner-produced, tagged with `independent | hints | substantial | shown-solution`. +- **Feedback** compares the attempt with the evidence and diagnoses gaps. +- **Settle** is the human call: keep, keep and revisit, or discard. +- **Revisit** is a delayed recall attempt on the prompt or a changed-context variant. + +--- + +## 5. Mode Separation: Delivery vs. Learning + +| Dimension | Delivery Mode | Learning Mode | +| :--- | :--- | :--- | +| **Primary Goal** | Get the work done efficiently | Build a specific, durable capability | +| **AI Role** | Drafts, messages, summaries | Facts, evidence, and questions only | +| **Learner Role** | Reviews and approves | Writes reasoning, explanations, commit messages | +| **Output Record** | Facts only (what, when, links) | Facts + learner attempt + diagnostic feedback | +| **Appropriate Context** | Routine work, tight deadlines, familiar stacks | New concepts, real decisions, hard bugs, chosen targets | + +--- + +## 6. Activity Adapters + +1. **Project Work (decisions $\to$ features $\to$ commits)**: + - *Before*: In learning mode, state requirement, invariant, and failing test. + - *At commit*: AI lists diff slices and factual changes; learner writes message; AI checks against diff. + - *Integration*: Learner chooses merge/rebase/cherry-pick with rationale. +2. **Courses**: + - *Before*: One line predicting what the concept means. + - *During*: Sparse notes in own words, marking confusions with `?`. + - *After*: Source closed, explain the core idea; AI diagnoses gaps. +3. **LeetCode**: + - Attempt first unaided. + - Stuck $\to$ hint ladder; assistance level recorded. + - After acceptance: Write why the loop invariant/property works. +4. **Planning and Ideas**: + - Captured as a hypothesis (trigger, assumptions, falsifying evidence, next test). + +--- + +## 7. System Invariants + +1. **AI never writes reasoning in learning mode.** Facts and questions only. +2. **Evidence $\neq$ assessment.** A commit, passing test, or completed module is never recorded as proof of competence. +3. **Assistance level is always recorded** (`independent`, `hints`, `substantial`, `shown-solution`). +4. **Gaps stay visible.** Unanswered prompts remain blank or marked `open`. +5. **Facts and interpretations are kept apart**, as are learner words and AI words. +6. **Revisits are selective** with explicit human opt-in (`revisit_after: YYYY-MM-DD`). +7. **Every kept artifact passes the 30-second reread test.** + +--- + +## 8. Resolution & Successors + +This design discussion informed: +- The [Learning Contract](https://github.com/kiskaadee/skills/blob/main/profile/learning-contract.md) governing skills (`practice`, `git-commit`, `document`, `journal-builder`). +- The phased execution plan: [`01-plans/brain/learning-contract-and-scaffolded-skills.md`](../../01-plans/brain/learning-contract-and-scaffolded-skills.md).