Repository navigation
feat(aflow): add durable trials and matched validation feedback - #303
Open
Cookie0103 wants to merge 4 commits into
Open
Cookie0103 wants to merge 4 commits into
Cookie0103 wants to merge 4 commits into
Conversation
Cookie0103
force-pushed
the
feat/aflow-reliable-trials
branch
from
November 5, 2026 04:13
0b81769 to
a0fcb06
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.
Add an opt-in local reliable-trial protocol for AFlow evolution. The new path commits ordered per-example evidence and one complete-coverage summary, resumes stable baseline/proposal/evaluation stages, requires explicit recovery for ambiguous external calls, bounds controlled admissions/concurrency, and keeps test evidence separate from validation promotion. Ranking, experience exports and convergence consume the same committed score. Context-local cost observation preserves process totals and marks unsupported pricing as unknown.
Legacy tuples/graph constructors/results fields remain compatible. Narrow legacy repairs avoid rerunning a completed baseline after proposal retries, align feedback/persisted averages, bound duplicate proposal loops, isolate test results and exclude sibling costs. This is new durable protocol functionality, not a claimed improvement in the optimization algorithm or causal failure attribution.
Validation: 120 affected/model/evaluator tests passed; full required suite 341 passed with 3 pre-existing network/subprocess sandbox failures, documented against the untouched baseline. Native AFlow/HotPotQA and HumanEval/MBPP/MATH fixtures use no paid calls. Local store/scheduler overhead checked at 100/1000/10000 examples. Independent whole-module review raised three accounting/recovery findings, now fixed with native RED→GREEN regressions and adapted original proofs; the parent agent reviewed the fix diff, independently reran 118 affected/native tests and reran the original three public/native proofs successfully.
Limits apply to controlled admissions/concurrency and supported pre-call upper-bound reservations. Deadlines request cooperative cancellation; arbitrary provider-internal retries, token counts, threads and remote shutdown have no hard-cap claim. Bounded matched per-example validation diagnostics now feed the actual next proposal and the same structured report, with historical input snapshots. Equal-mean native HotPotQA candidates with different regressed IDs are distinguished; test/incomplete evidence remains excluded from task conclusions. This verifies scripted data/control flow, not a real-model quality gain.
AI-assisted implementation. No claim of human or maintainer review.
Review fixes preserve conservative uncertainty for mixed native missing usage, failed/cancelled requests and streams; resume explicitly resolved no-outcome intents with new IDs; and keep finalized unknown-price reservations idempotent during completed-test/pending-proposal replay.
Production diff versus e3df900: +2,314/-41 physical lines, +2,085/-34 nonblank lines, +1,851/-34 code-token lines excluding comments/docstrings. Tests (+1,243) and documentation (+181) are separate. Counts describe implementation scope, not measured agent improvement.