{"modulePath":"github.com/memcode-ai/memcode","version":"v0.56.16","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package learn\n\nPackage learn is the reconciler: it turns source documents and deterministic evidence into adjudicated claims. A claim becomes \"current\" only when corroborated by hard evidence or a fresh source; it is \"conflicted\" when it contradicts deterministic facts WITHIN ITS SCOPE, and \"stale\" when its source lagged the code. Nothing is promoted to truth on sight.\n\nAll evidence is gathered from git-tracked / non-ignored files (see repofiles), so vendored, generated and gitignored files never count.\n\n## Types\n\n```go\ntype Facts struct {\n\tPackageManager string // pnpm | yarn | npm | bun | \"\"\n\tGo             bool   // a go.mod exists\n\tCGODisabled    bool   // .goreleaser pins CGO_ENABLED=0\n}\n```\nFacts are hard, deterministic signals used to adjudicate softer claims. Scope-sensitive signals (e.g. TypeScript usage) are evaluated within a claim's scope at adjudication time, not stored as repo-wide booleans.\n\n```go\ntype Summary struct {\n\tTotal      int\n\tCurrent    int\n\tConflicted int\n\tStale      int\n\tCandidate  int\n}\n```\nSummary reports what a learn run produced.\n\n```go\nfunc Run(ctx context.Context, st store.Store, runner *llm.Runner, root string) (Summary, error)\n```\nRun discovers sources, extracts candidate claims (model), folds in deterministic claims, adjudicates against git-tracked evidence, and replaces the stored claim set.\n\n","path":"github.com/memcode-ai/memcode/internal/learn","name":"learn","synopsis":"Package learn is the reconciler: it turns source documents and deterministic evidence into adjudicated claims.","isRedistributable":true}
