feat(improvement): source both proposers uniformly from agent-eval/campaign#365
Merged
Conversation
…mpaign (0.75.0) agent-eval 0.97.0 exports the optimize-a-surface proposers as uniform factories on /campaign: gepaProposer (prompt surface) and skillOptProposer (skill surface), both `xProposer(opts): SurfaceProposer`. Point the consumers at that one source instead of the split they had during the migration. - improve.ts: the documented "surface -> default proposer" map now imports BOTH gepaProposer and skillOptProposer from /campaign (was: gepa from /contract, skillOpt from /campaign). selfImprove + the SelfImprove* loop types stay on /contract (the loop contract). The facade no longer risks a call-time crash from a drifted proposer export. - prompt-generator.ts: drop the /contract special-case — gepaProposer comes from /campaign alongside the ProposeContext/GenerationRecord types it already imported there. - skill-generator.ts: refresh the production-wiring docs to name skillOptProposer (the uniform factory) instead of the lower-level runSkillOpt internal. The distill + diverse-seed arms are unchanged — that is the generator value-add the proposer cannot do. - improve.test.ts (new): drives the real improve() to a gate decision for both default surfaces (prompt -> gepaProposer, skills -> skillOptProposer) so a drifted proposer export fails the build, not a caller. Offline: gate 'none' forces generations 0; the stub agent reports token-bearing cost so the integrity guard sees a real backend. Also asserts the no-default config surfaces still fail loud with ConfigError. Bump agent-eval peer + dev pin to >=0.97.0; agent-runtime 0.75.0; regen docs/api + version pin.
tangletools
approved these changes
Jun 22, 2026
tangletools
left a comment
Contributor
There was a problem hiding this comment.
✅ Auto-approved PR — c0bba96b
Blanket team auto-approval is enabled for this reviewer service.
The full PR reviewer audit still runs separately and will publish findings if it detects issues.
tangletools · auto-approval · reason: blanket_auto_approve · 2026-06-22T22:49:46Z
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.
What
agent-eval
0.97.0finished the Proposer migration: the optimize-a-surface proposers are now uniform factories on/campaign—gepaProposer(prompt surface) andskillOptProposer(skill surface), bothxProposer(opts): SurfaceProposer. This points the three consumers at that one source instead of the split they carried during the migration.src/improvement/improve.ts— the documentedsurface → default proposermap now imports bothgepaProposerandskillOptProposerfrom/campaign(was:gepafrom/contract,skillOptfrom/campaign).selfImprove+ theSelfImprove*loop types stay on/contract(the loop contract, not a proposer). This closes the call-time-crash risk the migration left: a drifted proposer export now fails the build.src/lifecycle/prompt-generator.ts— drop the/contractspecial-case;gepaProposercomes from/campaignalongside theProposeContext/GenerationRecordtypes already imported there.src/lifecycle/skill-generator.ts— refresh the production-wiring docs to nameskillOptProposer(the uniform factory) instead of the lower-levelrunSkillOptinternal. The distill + diverse-seed arms are untouched — that is the generator value-add the proposer cannot do.src/improvement/improve.test.ts(new) — drives the realimprove()to a gate decision for both default surfaces (prompt → gepaProposer,skills → skillOptProposer) so a drifted proposer export fails the build, not a caller. Deterministic + offline:gate: 'none'forcesgenerations = 0(no reflection LLM call); the stub agent reports token-bearing cost so the backend-integrity guard sees a real backend. Also asserts the no-default config surfaces (tools/mcp/hooks/code) still fail loud withConfigError.Dependency
@tangle-network/agent-evalpeer + dev pin →>=0.97.0 <1.0.0;agent-runtime→0.75.0;docs/apiregenerated + version pin updated.Verify (all green, run against real 0.97.0)
pnpm run build— clean (DTS emitted)pnpm run typecheck(src + examples) — cleanpnpm test— 115 files, 1113 passed, 1 skipped, 0 errors. The feat(lifecycle): profile-artifact lifecycle as a runtime primitive — generate/eval/promote/maintain skills, tools, MCPs, hooks, subagents for free #267 closed-loop proof (src/lifecycle/closed-loop.test.ts) and the newimprove.test.tsboth pass.pnpm run lint(Biome) — 0 errorspnpm run docs:check—docs/apiregenerated (idempotent) + freshness gate OKagent-eval@0.97.0:gepaProposer/skillOptProposerresolve from/campaignto real factories (.kind = gepa/skill-opt,.proposepresent;skillOptProposeralso exposes.proposePatches);selfImproveresolves from/contract.