v0 scaffold: teacher runtime (hermetic pi SDK), data model, ledgers, normalizer

- teacher/system-prompt.md: teach methodology + quiz/ask guidelines folded in
- extensions/: quiz.ts + ask-user-question.ts (hermetic copies)
- src/teacher/create-session.ts: isolated agent (noTools builtin, own agentDir/sessions/prompt)
- src/schema.ts + ledger.ts: append-only ledgers, known-vs-understood data model
- src/extract/normalize.ts: session JSONL -> canonical doc (verified on real session)
- extractor/merger/derive/what-next: specified stubs
This commit is contained in:
Amos
2026-08-21 21:37:28 +03:00
commit 9a6af9697f
19 changed files with 5271 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
{
"name": "learning-harness",
"version": "0.1.0",
"description": "A standalone learning harness built on the pi agent SDK: teacher agent, session artifacts, and a derived knowledge graph of what the learner knows.",
"type": "module",
"private": true,
"scripts": {
"teach": "tsx src/cli.ts teach",
"doctor": "tsx src/cli.ts doctor",
"ingest": "tsx src/cli.ts ingest",
"graph": "tsx src/cli.ts graph",
"what-next": "tsx src/cli.ts what-next"
},
"dependencies": {
"@earendil-works/pi-coding-agent": "0.84.2"
},
"devDependencies": {
"@types/node": "^24.0.0",
"tsx": "^4.19.0",
"typescript": "^5.6.0"
}
}