Repository navigation
SuperOptiX 2.0 - #27
Draft
Superagentic-AI wants to merge 21 commits into
Draft
Superagentic-AI wants to merge 21 commits into
Superagentic-AI wants to merge 21 commits into
Conversation
…selection (#21) Co-authored-by: Superagentic AI <190614718+Superagentic-AI@users.noreply.github.com>
* feat(gepa): held-out split with train and held-out gain reporting * feat(gepa): hash held-out ids from raw playbook scenarios --------- Co-authored-by: Superagentic AI <190614718+Superagentic-AI@users.noreply.github.com>
…23) Co-authored-by: Superagentic AI <190614718+Superagentic-AI@users.noreply.github.com>
…tegrity, pinned conformance (#24) * feat(gauge): sealed GEPA holdout, deterministic L2 gates, RFC 0005 integrity, pinned conformance * chore(gauge): pin SuperGauge checker-v0.1.0 (a5920cc), stricter --require-ship semantics --------- Co-authored-by: Superagentic AI <190614718+Superagentic-AI@users.noreply.github.com>
…ation guide (#26) Co-authored-by: Superagentic AI <190614718+Superagentic-AI@users.noreply.github.com>
…nd reflection LM (#28) - Ollama is keyless under DSPy 3.4 lm15 routing: omit empty api_key and normalize api_base to the /v1 OpenAI-compatible base. - Compiled minimal pipelines no longer bake qwen3.5:9b as GEPA task/teacher model; the playbook model is used. - super agent optimize --framework dspy now passes --auto, --max-metric-calls, --max-full-evals, --reflection-lm and --reflection-minibatch-size to GEPA; budgets go to GEPA.__init__ (they were silently dropped). - Fail fast when the task LM is unreachable instead of reporting success. - Strategy panel says GEPA, not BootstrapFewShot. Co-authored-by: Superagentic AI <190614718+Superagentic-AI@users.noreply.github.com>
- super agent evaluate/test on build_program() modules ran with no LM configured (every scenario errored: No LM is loaded). Configure the task LM from the playbook via DSPyRunner.configure_native_lm. - superoptix.bdd.minimal@1 scored correct answers as failures: whitespace tokenization kept JSON quotes and punctuation, expected_keywords was folded into the expected text, and single-field predictions were JSON-wrapped. Tokenize on word characters, treat expected_keywords as a required-keyword check, unwrap single-field predictions. Co-authored-by: Superagentic AI <190614718+Superagentic-AI@users.noreply.github.com>
…n unreachable (#30) * fix(lm): route every Ollama/local DSPy LM through one shared helper, fail loudly when unreachable - New superoptix.core.local_lm: keyless Ollama with /v1 base for DSPy>=3.4, custom_openai rewritten to openai/ (+/v1, placeholder key), max_retries mapped to num_retries, and an /api/tags preflight that raises LocalModelUnreachableError. - Routed: DSPy runner (run/evaluate/optimize/test/A2A via runner), pipeline utils, base pipeline, optimizer factory and UniversalGEPA reflection LMs, DSPy + observability adapters, chat agent, Ollama/MLX/LM Studio/HF backends, and all generated DSPy pipeline templates. - super agent run exits 1 with a clear message instead of exit 0; A2A serve startup failures exit 1; optimas template no longer silently falls back to a different model. - Tests incl. a guard that no hand-rolled empty api_key remains. * chore: revert incidental formatting of unrelated tests --------- Co-authored-by: Superagentic AI <190614718+Superagentic-AI@users.noreply.github.com>
…book exits non-zero (#31) - compile --local baked MODEL_OVERRIDE=qwen3.5:9b even when the playbook names an Ollama model, so run/optimize then hit a model that is not pulled. The default now only applies when the playbook has no local model. - A missing playbook printed an error and then 'pipeline ready' with exit 0; it now exits 1. Co-authored-by: Superagentic AI <190614718+Superagentic-AI@users.noreply.github.com>
* feat(cli): refresh super CLI for 2.0 positioning (pillar-first help, remove broken tier-status) * test(cli): help text leads with the 2.0 pillars --------- Co-authored-by: Superagentic AI <190614718+Superagentic-AI@users.noreply.github.com>
Version 2.0.0rc1 in pyproject, __init__ fallback and uv.lock. CHANGELOG section 2.0.0rc1 (pre-release) dated 2026-10-11; CLI refresh entry moved from 0.3.16 into the 2.0 section where it belongs. Co-authored-by: Superagentic AI <190614718+Superagentic-AI@users.noreply.github.com>
…d key) (#34) Co-authored-by: Superagentic AI <190614718+Superagentic-AI@users.noreply.github.com>
…test (#35) Co-authored-by: Superagentic AI <190614718+Superagentic-AI@users.noreply.github.com>
…n ADK, Microsoft, DeepAgents (#36) Co-authored-by: Superagentic AI <190614718+Superagentic-AI@users.noreply.github.com>
… 2.0 messaging (#37) Co-authored-by: Superagentic AI <190614718+Superagentic-AI@users.noreply.github.com>
…ery to playbook inputs (#38) Co-authored-by: Superagentic AI <190614718+Superagentic-AI@users.noreply.github.com>
…(CI has none) (#39) Co-authored-by: Superagentic AI <190614718+Superagentic-AI@users.noreply.github.com>
…nProposer default) (#40) Co-authored-by: Superagentic AI <190614718+Superagentic-AI@users.noreply.github.com>
…zero gain (#41) Co-authored-by: Superagentic AI <190614718+Superagentic-AI@users.noreply.github.com>
Superagentic-AI
force-pushed
the
release/2.0
branch
from
October 13, 2026 09:48
aae4352 to
3353a8c
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SuperOptiX 2.0 (draft, do not merge)
Umbrella for 2.0:
release/2.0->main. Nothing is tagged, released or published. All six feature PRs and four live-run bug fixes are squash-merged intorelease/2.0. This PR stays a draft until the TODOs below are closed.Merged into release/2.0
protocolVersion, then bindinggepa.valset_fraction, default 0.2); reported (train) and held-out gainsdspy>=3.4super agent testCI gate,optimize --gauge-out, evaluate gate flagsevaluate/testconfigures the LM for native DSPy agents;bdd.minimal@1tokenization andexpected_keywordssuperoptix/core/local_lm.py) for every Ollama/local DSPy LM; fail loudly when the model is unreachablecompile --localkeeps the playbook's Ollama model; a missing playbook exits non-zero#24, #25 and #26 were retargeted to
release/2.0and rebased onto the squashed parents.uv.lockconflict between #23 and #24 resolved by re-runninguv lock(dspy>=3.4 kept;uv lock --checkclean).Local verification (CI does not run on release/2.0)
Run before every merge and again on the final tip 9bf0c9a:
ruff check,ruff format --check,scripts/check_release_metadata.py, full pytest with the CI extras (dev, testing, turboagents).Live end-to-end run (release/2.0 at 0dcc9bd)
capqa, a minimal DSPy Predict agent, 12 capital-city scenarios plus 2 canary scenarios.super agent optimize capqa --framework dspy --reflection-lm ollama/qwen2.5:1.5b --max-metric-calls 60 --gauge-out ...: split 10 train / 2 held out (seed 7), GEPA ran the requested 60 metric calls. Reported (train) gain +0.000, held-out gain +0.000. The seed program already scored 10/10 on train, so there was nothing to gain. This shows the plumbing works, not that GEPA improves anything; a harder task is needed to show a real gain.super agent test capqa --actor shashi --checker tests/fixtures/supergauge/conformance/check.py: held-out task.completion 1.0 (n=2), output.parse_rate 1.0, beats echo-input baseline (1.0 vs 0.0), holdout sealed, both canaries failed as expected. Gates: holdout_sealed, parse_rate, beats_trivial_baseline all pass. Verdict ship, level L2 (L3 blocked: no pass_hat_k, evaluator independence not asserted). Exit code 0.check.py record --level L2 --require-ship): exit 0. Negative control: a hold record from before the fixes exits 1.Bugs the live run found (all fixed in #28 and #29). The unit suite could not catch any of them:
empty credential under 'ollama') and optimize still printed success with +0.000 gains.qwen3.5:9bas the GEPA task model, ignoring the playbook model.--reflection-lm,--auto,--max-metric-callsand--max-full-evalswere ignored on the DSPy path. GEPA budgets also went tocompile()rather than__init__, so every run usedauto: light.super agent test/evaluateran native DSPy agents with no LM configured, so every scenario errored.bdd.minimal@1failed correct answers (JSON punctuation in tokens,expected_keywordsfolded into the expected text).Ollama empty-credential fix everywhere (#30, #31)
superoptix/core/local_lm.pyis now the only place Ollama/local LM kwargs are built. Ollama: no key,<root>/v1base, playbookapi_basehonored.custom_openai/(MLX server, LM Studio, HF) becomesopenai/with a/v1base, sincecustom_openai/fails to import on DSPy 3.4.max_retriesis mapped tonum_retries, because DSPy 3.4 drops off the lm15 route when it seesmax_retries. A/api/tagspreflight raisesLocalModelUnreachableError.pipeline_utils,base_pipeline, the optimizer factory and UniversalGEPA reflection LMs, the DSPy and observability adapters,chat_agent, the Ollama/MLX/LM Studio/HF backends, and all generated DSPy templates (explicit, genies, oracles, protocol, minimal, optimas). A test fails if a hand-rolled emptyapi_keyor a rawcustom_openai/comes back.super agent runused to exit 0 after a traceback; it now printsModel unreachable: ...(orRun 'ollama pull X') and exits 1.pipeline_utilsno longer prints "connection successful" without checking. A2A serve startup failures exit 1. The optimas template no longer silently swaps models.compilewith a missing playbook exits 1.compile --localno longer bakesqwen3.5:9bover the playbook's Ollama model.agent run capqaanswers correctly with rc 0. A badapi_baseor a missing model gives a clear error with rc 1. The Ollama backendcreate_dspy_client, thepipeline_utilssetup, quick setup and reflection LMs, the UniversalGEPA-style reflection LM, and the custom_openai route all returned live completions.GEPA sanity run on a harder task (budgeted, not tuned)
arithqa: 20 two-step arithmetic questions ("Compute a times b, then subtract c squared", integer only) plus 2 canaries; qwen2.5:1.5b for both task and reflection.super agent optimize arithqa --local --fresh --max-metric-calls 60 --reflection-lm ollama:qwen2.5:1.5b --gauge-out ...: split 16 train / 4 held out (seed 7). It took 68 s. Seed train score: 0.30 blended, which is the 0.3 assertion weight on top of 0/16 correct. GEPA proposed candidates but none beat the seed. Reported (train) gain +0.000, held-out gain +0.000.super agent test arithqa --actor shashi: held-out task.completion 0.0 (n=4), parse_rate 1.0, does not beat the echo-input baseline (0.0 vs 0.0). Verdict hold, exit 1, which is correct.Breaking changes (full text in docs/guides/migrating-to-2.0.md)
valset_fraction: 0restores train-only.dspy>=3.4;MLXDSPyClientreturns an engine-baseddspy.LM.--gauge-sealedis derived from the GEPA split.<stem>.superoptix.jsonsidecar. Records gainauthority.grant_digestand a ledger reference.super agent testexits 0 only when checker-v0.1.0--require-shipwould allow release. A named actor is required.disconnect()closes the session.compile --local-modelsandPipelineUtilities.get_optimizer.Remaining TODOs before merging to main
release/**to the CI workflow triggers (ci.yml,ruff.yml) and mark rc/a/b GitHub Releases as prerelease, not latest. Ready-to-apply patch prepared locally (not pushed); Shashi to apply.tool.correctnessandtrajectory.validonly come from DSPy ReActtrajectoryoutputs. The tool-trace emitter is never called, so most agents report neither.assurance.evaluator_independentis not asserted andpass_hat_kis opt-in (--k).assurance.judge.calibration) and Agent Card freshness (interop.agent_card_fresh).docs/release-2.0-tracking.mdbefore this PR merges.Other legacy Ollama paths still pass. Fixed in fix(lm): one shared helper for Ollama/local DSPy LMs; fail loudly when unreachable #30 via one shared helper.api_key=""arithqatask (see above) the 1.5B model gained +0.000 on both train and held-out. A stronger reflection or task model (or a cloud provider) is needed. Not chased per guidance.output.parse_ratecannot see DSPy adapter-internal parse retries.Non-DSPy runners do not run the shared reachability preflight. Done in fix: fail loudly on unreachable local models for non-DSPy frameworks #36 (run, serve, universal GEPA optimize).CLI refresh (#32, squash 8f70447)
super --help,super agent --help, version panel, banner,super init, conversational welcome andsuper docsnow use the locked messaging and lead with the three pillars: optimize (super agent optimize, GEPA train vs held-out gain), connect over A2A (super a2a adapt,super agent serve), ship with quality (super agent evaluate,super agent test). Commands listed pillar-first; parsing and aliases unchanged.super agent tier-status(ts): old tier/upgrade messaging, and it crashed. Baresuper agentprints help.run --interactive,spec generate genie, READMEsuper a2a serve), BootstrapFewShot -> GEPA,super agent testblocker labels.2.0.0rc1 pre-release status (2026-10-11)
2.0.0rc1on release/2.0 via chore: SuperOptiX 2.0.0rc1 (pre-release) #33 (squash d99a4fe), CHANGELOG section2.0.0rc1 (pre-release).v2.0.0rc1NOT pushed yet:.github/workflows/release.ymlcreates the GitHub Release withsoftprops/action-gh-release@v2withoutprereleaseormake_latest, so it would publish as a stable, latest GitHub Release. Needs a workflow fix (prerelease/make_latest for rc tags), which requires a token withworkflowscope.pip install --pre superoptix==2.0.0rc1/uv tool install --prerelease allow superoptix==2.0.0rc1.Hardening after rc1 (2026-10-11)
test_pipeline_integration.pyreplacedsys.modules['dspy']with a MagicMock at import time, which leaked into every later test and hid a missing-key failure intest_agent_test_cli.py. Every test file now passes when run alone.super agent compileruns the whole flow (evaluate, optimize --gauge-out, test). Verified on a fresh project against Ollama; it generates the same DSPy pipeline as--optimize. Next-steps text, init, README and docs no longer tell users to recompile with--optimize.AzureOpenAIChatClient;qwen2.5:1.5bparsed as providerqwen2.5), Google ADK (Ollama via LiteLlm), DeepAgents (langchain-ollamain the extra, largernum_ctx).super agent serveon a plain-compiled DSPy agent failed every request (A2Aquerynot mapped to playbook input; no LM configured). Now completes.superoptix[a2a], Ollama qwen2.5:1.5b): version, help, init, pull, compile, run, evaluate, optimize --gauge-out, test --actor (exit 1, verdict hold, expected on a 1.5B model), serve + Agent Card 200 + SendMessage COMPLETED, Ollama down gives exit 1.