You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Proposal] Closing the inner loop: run-level quality scoring, memory-informed routing, and experience reuse
#294
SoduWork's orchestration layer is unusually disciplined for a framework at this stage: human-review packages freeze version + acceptance standard + evidence + decision strategy (app/services/gate_contract.py), and task evolution explicitly separates evaluation → proposal → controlled application (app/services/task_evolution.py). That outer loop — humans reviewing what agents delivered — is solid.
This proposal is about the inner loop. Across agent-orchestration frameworks generally (not just SoduWork), three inner-loop pieces are typically left to humans, and SoduWork currently shares that pattern:
1. No run-level quality scoring
quality_gate.py enforces pre-merge checks, and TaskEvaluation records human outcome facts (achieved / partial / missed, with default scores 5/3/1). But there is no automated rubric that scores an agent run against the acceptance standard already frozen in the gate contract at review time. As a result, the only quality signal per run is a human one, and there is no basis for regression tracking or cross-run comparison of output quality.
2. Routing is static with respect to memory
agent_route_selection.py is the single authoritative route resolver — a good property — but it resolves purely from the enterprise allowlist with fixed fallback rules. Meanwhile session_memory.py and org_memory.py persist rich operational history. Today, memory records never influence route decisions: two runs of the same task class can be routed identically regardless of which routes historically produced better outcomes for that class.
3. Lessons require manual re-linking to take effect
task_evolution.py turns human evaluations into proposals with well-designed copy (e.g. reusable-lesson extraction), but an accepted proposal only becomes live after a human independently imports and links an immutable plugin version. Nothing consults previously accepted lessons at dispatch time, so the "learn from every kind of work" loop stops one step short of run-time reuse.
Proposed direction (alignment first, before any PR)
Three separable increments, smallest first:
A. Run-level quality metric hook: define a rubric schema that scores each run against the acceptance standard already frozen in its gate contract, persisted alongside evaluations. This is the keystone — it unblocks measurement for B and C, and it reuses structures that already exist rather than introducing new ones.
B. Memory-informed route preference: allow the route resolver to accept an optional, auditable prior derived from historical outcomes (opt-in per organization), so routes with better track records for a task class are preferred within the existing allowlist rules.
C. Lesson surfacing at dispatch time: expose accepted reusable lessons through the existing skill/dispatch pipeline, so future runs can consult them without a human re-importing a plugin version.
Why this framing
Orchestration-layer features (parallel dispatch, review chains, plugin governance) are converging across frameworks. The differentiator going forward is likely measurable outcome quality and learning rate — how fast a deployment improves because its own history informs its next run. SoduWork's evolution pipeline is the closest starting point I've seen in this class of frameworks; A–C would complete the loop it has already half-built.
Happy to adjust scope, start with A only, or move this to Discussions if that fits community process better.
— ZONGYUAN-ROOT (CSDN account)
All file references verified against main on 2026-11-17. Drafted for maintainer alignment; no PR has been opened.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Context
SoduWork's orchestration layer is unusually disciplined for a framework at this stage: human-review packages freeze version + acceptance standard + evidence + decision strategy (
app/services/gate_contract.py), and task evolution explicitly separates evaluation → proposal → controlled application (app/services/task_evolution.py). That outer loop — humans reviewing what agents delivered — is solid.This proposal is about the inner loop. Across agent-orchestration frameworks generally (not just SoduWork), three inner-loop pieces are typically left to humans, and SoduWork currently shares that pattern:
1. No run-level quality scoring
quality_gate.pyenforces pre-merge checks, andTaskEvaluationrecords human outcome facts (achieved/partial/missed, with default scores 5/3/1). But there is no automated rubric that scores an agent run against the acceptance standard already frozen in the gate contract at review time. As a result, the only quality signal per run is a human one, and there is no basis for regression tracking or cross-run comparison of output quality.2. Routing is static with respect to memory
agent_route_selection.pyis the single authoritative route resolver — a good property — but it resolves purely from the enterprise allowlist with fixed fallback rules. Meanwhilesession_memory.pyandorg_memory.pypersist rich operational history. Today, memory records never influence route decisions: two runs of the same task class can be routed identically regardless of which routes historically produced better outcomes for that class.3. Lessons require manual re-linking to take effect
task_evolution.pyturns human evaluations into proposals with well-designed copy (e.g. reusable-lesson extraction), but an accepted proposal only becomes live after a human independently imports and links an immutable plugin version. Nothing consults previously accepted lessons at dispatch time, so the "learn from every kind of work" loop stops one step short of run-time reuse.Proposed direction (alignment first, before any PR)
Three separable increments, smallest first:
Why this framing
Orchestration-layer features (parallel dispatch, review chains, plugin governance) are converging across frameworks. The differentiator going forward is likely measurable outcome quality and learning rate — how fast a deployment improves because its own history informs its next run. SoduWork's evolution pipeline is the closest starting point I've seen in this class of frameworks; A–C would complete the loop it has already half-built.
Happy to adjust scope, start with A only, or move this to Discussions if that fits community process better.
— ZONGYUAN-ROOT (CSDN account)
All file references verified against
mainon 2026-11-17. Drafted for maintainer alignment; no PR has been opened.All reactions