meta: shared context-inference framework for agents #111
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Goal
A shared library that any agent can use to fit per-user parameters from history (quiet hours, focus areas, momentum baselines, lateness tolerance, etc.) without reinventing the recompute/cadence/cold-start machinery.
Why
Each agent in ADR-0013 wants its own auto-inferred context (see linked per-agent issues). If each implements its own fitting + caching + cold-start logic, they will diverge in subtle ways and double the maintenance surface. The framework owns the boring parts so each agent ships only its inference function.
Scope
infer(user_id, history) -> dictper agent; pure function, no side effects.user_preferencesunderscope=agent:<id>(per the unified Profile model in #30).agent_versioninvalidates cached inferences so logic changes propagate.Out of scope
Done when
ml/agents/inference/module with the contract above.time-of-day) migrated onto it as the proof.Related
user_preferencesscope/key shape this writes into)