mirror of
https://github.com/Heretek-AI/MuseEngine.git
synced 2026-11-10 10:21:29 -10:00
The original upload never called a model, its autonomous actions only logged that they had happened, and its benchmark was rigged. This replaces it with: - museengine.engine: analyze -> map -> generate -> adversarial critique -> Pareto selection, each step an LLM call with a JSON contract. Offline mode returns labelled keyword suggestions and no fake scores. - museengine.memory: plain-SQLite episodes, notes, state and audit log. - museengine.governance + agent: an autonomous loop behind an allowlist, step budget, kill switch and human approval for self-chosen goals, with every decision and real effect audited. - museengine.evaluation: blinded, order-swapped A/B eval with an exact sign test, replacing the keyword scorer and fudge constants. - Optional Anthropic adapter; the core accepts any (str) -> str callable. - pyproject, CLI, 24 offline tests, CI workflow. The original files are kept unchanged in legacy/ (minus a duplicate). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01YbuVfbQEpaitM5TMjBMzkF
27 lines
1.1 KiB
Python
27 lines
1.1 KiB
Python
"""MuseEngine: structured cross-domain ideation for LLM agents."""
|
|
|
|
from .agent import MuseAgent, RunResult
|
|
from .archetypes import Archetype, load_archetypes, load_default_archetypes
|
|
from .engine import Analogy, Candidate, MuseEngine, ProblemStructure, Report, pareto_frontier
|
|
from .evaluation import EvalResult, run_ab_eval, sign_test
|
|
from .governance import (
|
|
GovernanceError,
|
|
Governor,
|
|
KillSwitch,
|
|
Policy,
|
|
ProposedAction,
|
|
console_approver,
|
|
deny_all,
|
|
)
|
|
from .llm import LLM, BudgetExceeded, CountingLLM, LLMError, anthropic_llm, complete_json
|
|
from .memory import Episode, MemoryStore
|
|
from .middleware import MuseMiddleware
|
|
|
|
__all__ = [
|
|
"Analogy", "Archetype", "BudgetExceeded", "Candidate", "CountingLLM", "Episode", "EvalResult",
|
|
"GovernanceError", "Governor", "KillSwitch", "LLM", "LLMError", "MemoryStore", "MuseAgent",
|
|
"MuseEngine", "MuseMiddleware", "Policy", "ProblemStructure", "ProposedAction", "Report",
|
|
"RunResult", "anthropic_llm", "complete_json", "console_approver", "deny_all",
|
|
"load_archetypes", "load_default_archetypes", "pareto_frontier", "run_ab_eval", "sign_test",
|
|
]
|