docs: task breakdown for adaptive pedagogy plugin #3
Loading…
Reference in a new issue
No description provided.
Delete branch "docs/pedagogy-tasks"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Pre-implementation hardening (
e4d189b)A footgun review cross-checked the tasks against the actual Hermes host code (
~/.hermes/hermes-agent). Four design-level mismatches were found that no task's own validation would have caught; bothtasks.mdanddesign.mdare amended to match:plugin_api.pyis imported by file path ashermes_dashboard_plugin_<name>with nosys.pathchange, while the Python half loads as the packagehermes_plugins.<slug>fromplugin/__init__.py. A module-attribute singleton would be duplicated andget_ctx()would fail closed forever. Now a process-global registry keyed by plugin id;plugin_api.pynever touchessys.path;discover_plugins()(synchronous, ~150 ms) runs viaasyncio.to_thread.ctx.restoptions are{ method, body, upload, timeoutMs }.Idempotency-Key/If-Matchreplaced byidempotency_key/expected_revisionin the body (query onDELETE).POST /interpretationsand thePOST /coursesreplay record now live under<data_dir>/ops/, notcourses/<id>/ops/.threshold_changed: recorded once insettings.jsonhistory instead of fanned out to every course log (which would take every lock, bump every revision, and fail on archived/unreadable courses).Also: PID-stamped
course.lockwith stale reclaim (crash must not leave a course locked), missingcheck-answerroute added as the soleobjective_evidenceproducer,plugin/__init__.py+plugin.yamladded to the task-0 skeleton, per-feature route modules andtests/test_api_<feature>.pyso parallel worktree agents don't collide, synthetic v0→v1 upcaster fixture,TestClientcontext fixture for background tasks, Hermes-venv interpreter named for tests andinstall.py --check,--enableshells out tohermes plugins enable, and the desktop half's separate opt-in toggle in Settings → Plugins documented in install and dogfood.Review focus