Skip to content

feat(aflow): add durable trials and matched validation feedback - #303

Open
Cookie0103 wants to merge 4 commits into
ANative-Lab:mainfrom
Cookie0103:feat/aflow-reliable-trials
Open

Cookie0103 wants to merge 4 commits into
ANative-Lab:mainfrom
Cookie0103:feat/aflow-reliable-trials

Conversation

@Cookie0103

Copy link
Copy Markdown

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.

@Cookie0103
Cookie0103 force-pushed the feat/aflow-reliable-trials branch from 0b81769 to a0fcb06 Compare November 5, 2026 04:13

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant