Motivation
Mimosa-AI already has a strong Darwinian workflow loop and several open issues around mutation, evaluation, pattern memory, and program-based evaluators. This issue is intentionally narrower: add an explicit admission record before past workflows are reused as templates for new tasks.
The relevant path I see is:
sources/core/workflow_selection.py discovers valid workflow folders, loads code and state, then selects reusable workflows by task similarity and overall_score.
WorkflowSelector.select_best_workflows(...) filters by similarity and score.
sources/core/dgm.py::select_workflow_template(...) selects the top candidate workflow when template_uuid is not provided.
sources/core/dgm.py::self_improve_workflow(...) feeds the selected best workflow back into the next improvement prompt.
sources/core/improvement_validator.py checks reward improvement magnitude, but not whether a selected workflow is transferable outside the local task family.
That means the workflow library can become a high-leverage memory substrate. The risk is not simply bad scoring. The sharper risk is that a workflow with high local score and high embedding similarity gets reused as a template even though its reusable claims have not been separated from task-specific residue.
Failure Mode
A prior workflow can be locally successful but globally misleading:
- it solved one scientific task because of incidental dataset structure;
- its generated code contains assumptions that do not transfer across similar-looking tasks;
- its
overall_score is high, but the improvement came from a narrow formatting or judge-specific pattern;
- similarity search retrieves it as a template for a near-miss task where it should not apply.
This is especially important because Mimosa is explicitly designed to learn a library of proven workflows and start future tasks from stronger baselines. The library needs admission/provenance metadata, not only score and similarity.
Proposal: Workflow Admission Card
Before a workflow is eligible for template reuse, attach a compact admission card:
@dataclass
class WorkflowAdmissionCard:
uuid: str
task_family: str
admitted_for_reuse: bool
source_score: float
similarity_floor: float
positive_transfer_checks: int
negative_control_checks: int
unsupported_probe_hits: int
reusable_claims: list[str]
quarantined_claims: list[str]
evaluator_type: Literal["generic_judge", "scenario_rubric", "programmatic", "mixed"]
lineage_hash: str
Then WorkflowSelector.select_best_workflows(...) could prefer:
- workflows with valid admission cards;
- workflows that passed positive transfer checks;
- workflows with zero unsupported-probe hits;
- workflows whose reusable claims match the new task family.
Workflows without an admission card could still be used, but marked as exploratory rather than trusted template material.
Local Prototype Pattern
A local self-improvement prototype I use applies a similar gate:
{
"claim_boundary": "heterogeneous feature-level self-improvement over list/string/grid/record tasks; not unbounded real-world general intelligence",
"train_validated": 5,
"cold_frontier": {"validated": 0, "total": 8},
"warm_frontier": {"validated": 8, "total": 8},
"unsupported_probe": {"validated": 0, "total": 2},
"meta_gate": {"accepted": true, "delta": 8}
}
The important pattern is not the toy domains. It is the admission rule:
learned artifact
-> positive transfer frontier improves
-> unsupported probes remain rejected
-> bounded claim is recorded
-> only then promote as reusable material
For Mimosa, the same idea would mean that a workflow can be high-scoring without automatically becoming trusted reusable workflow memory.
Minimal Implementation Path
- Store
admission_card.json inside each workflow folder after evaluation.
- Add optional fields to
WorkflowInfo for admitted_for_reuse, reusable_claims, and unsupported_probe_hits.
- Update
WorkflowSelector.sort_workflows_by_score(...) or select_best_workflows(...) to prefer admitted workflows when available.
- Add a simple negative-control scenario type: a near-miss task where the workflow should decline or not be selected.
- Add one test where two workflows have similar embedding scores, but only the admitted workflow is selected as template material.
This would complement issues like #105, #112, #120, and #146 by adding a concrete boundary between "successful workflow output" and "trusted reusable workflow knowledge."
Motivation
Mimosa-AI already has a strong Darwinian workflow loop and several open issues around mutation, evaluation, pattern memory, and program-based evaluators. This issue is intentionally narrower: add an explicit admission record before past workflows are reused as templates for new tasks.
The relevant path I see is:
sources/core/workflow_selection.pydiscovers valid workflow folders, loads code and state, then selects reusable workflows by task similarity andoverall_score.WorkflowSelector.select_best_workflows(...)filters by similarity and score.sources/core/dgm.py::select_workflow_template(...)selects the top candidate workflow whentemplate_uuidis not provided.sources/core/dgm.py::self_improve_workflow(...)feeds the selected best workflow back into the next improvement prompt.sources/core/improvement_validator.pychecks reward improvement magnitude, but not whether a selected workflow is transferable outside the local task family.That means the workflow library can become a high-leverage memory substrate. The risk is not simply bad scoring. The sharper risk is that a workflow with high local score and high embedding similarity gets reused as a template even though its reusable claims have not been separated from task-specific residue.
Failure Mode
A prior workflow can be locally successful but globally misleading:
overall_scoreis high, but the improvement came from a narrow formatting or judge-specific pattern;This is especially important because Mimosa is explicitly designed to learn a library of proven workflows and start future tasks from stronger baselines. The library needs admission/provenance metadata, not only score and similarity.
Proposal: Workflow Admission Card
Before a workflow is eligible for template reuse, attach a compact admission card:
Then
WorkflowSelector.select_best_workflows(...)could prefer:Workflows without an admission card could still be used, but marked as exploratory rather than trusted template material.
Local Prototype Pattern
A local self-improvement prototype I use applies a similar gate:
{ "claim_boundary": "heterogeneous feature-level self-improvement over list/string/grid/record tasks; not unbounded real-world general intelligence", "train_validated": 5, "cold_frontier": {"validated": 0, "total": 8}, "warm_frontier": {"validated": 8, "total": 8}, "unsupported_probe": {"validated": 0, "total": 2}, "meta_gate": {"accepted": true, "delta": 8} }The important pattern is not the toy domains. It is the admission rule:
For Mimosa, the same idea would mean that a workflow can be high-scoring without automatically becoming trusted reusable workflow memory.
Minimal Implementation Path
admission_card.jsoninside each workflow folder after evaluation.WorkflowInfoforadmitted_for_reuse,reusable_claims, andunsupported_probe_hits.WorkflowSelector.sort_workflows_by_score(...)orselect_best_workflows(...)to prefer admitted workflows when available.This would complement issues like #105, #112, #120, and #146 by adding a concrete boundary between "successful workflow output" and "trusted reusable workflow knowledge."