Automated Improvement Proposals
Turns real production corrections and defects into versioned upgrade drafts across prompts, skills, rules, constraints, and routing.
Engineers manually read hundreds of failed traces every Friday trying to guess what to improve.
Production mistakes automatically become auditable, side-by-side upgrade drafts ready to benchmark.
What It Does (In Plain English)
Proposals closes the self-learning loop safely. It gathers operator corrections and tagged defects, drafts concrete candidate upgrades targeting the right layer (agent_def, skill, rule_table, model_route, or constraint_set), and hands them to Release Manager for locked held-out evaluation — never pushing directly to production.
Real-World Example
- 1Five runs get tagged with
missing-po-checkdefect. - 2Operator runs
neusym proposals draft ./ws ops-agent --auto-route --as ops-1. - 3Proposals drafts a versioned
constraint_setupdate and links it to the source defects. - 4The draft cannot go live until it passes the locked held-out gate in Release Manager.
When Should You Turn It On?
Enterprise Edition. Pair with diagnostics, evals, and release-manager for closed-loop self-learning.
Safety level note: Level 1 · Review — Read-only. Can inspect and answer, never changes outside systems.
How to Add It (workspace.yaml)
# Enterprise Edition (@neusym/kit-proposals)
kits:
- "@neusym/kit-proposals@0.1.0"
kitConfigs:
proposals:
heldOutSuite: held-gateKits It Works With
Technical Details & Configuration Options (27 settings)
| Package | @neusym/kit-proposals |
|---|---|
| Provides Ports | proposals@1 |
| Requires Ports | tasks@1diagnostics@1executor@1releases@1evals@1model@1budget@1 |
| Optional Ports | secrets@1skills@1rules@1model-router@1constraints@1tools@1 |
| Publishes Events | proposal.changed |
| Owned DB Collections | proposals |
Configuration Options (kitConfigs.proposals)
| Setting | Type | Default | Description |
|---|---|---|---|
heldOutSuite | string | "" | The held-out evals suite every proposal's release candidate is evaluated on. Drafting is refused without one, or when the suite is missing, not held-out or empty. |
autoProposeAfter | integer | 0 | Open a proposal (state requested) for a definition once this many of its active version's rated-down runs carry a usable correction not used by an earlier proposal. 0 turns the feedback trigger off. Drafting itself always runs through draftProposal, never inside an event handler. |
includeScorerFeedback | boolean | false | Also learn from scorer feedback (default: a person's corrections only). Scorer corrections count as untrusted content and taint the proposal. |
includeDefectSources | boolean | false | Also learn from tagged run defects in diagnostics@1 (default: false). Defect summaries are redacted, bounded, and flagged untrusted. |
defectSources | array | ["validator","verifier","person"] | Run defect sources counted when includeDefectSources is enabled. |
blockOnCostRegression | boolean | true | Whether the held-out release gate blocks candidates that cost more for the same success (default: true; operators can still override on promote with allowCostIncrease). |
skipTaintedRuns | boolean | false | Leave out corrections whose run or task carried untrusted content, so no untrusted content reaches the drafting call. |
allowVerifiedDefectsOnTaintedRuns | boolean | false | When true, permits gathering person/validator/verifier defect tags (never ones an automatic diagnostics rule synthesized) from tainted runs (such as cli-executor runs) even when skipTaintedRuns is true, forwarding only redacted defectId, summary, outcome, and trusted task prompt—never raw untrusted answers or tool outputs. |
trialLimits | object | — | Default budget scope limits used when evaluating proposals against a trial-kind held-out suite. |
trialDeadlineMs | integer | — | Optional deadline in milliseconds for asynchronous trial suite evaluations started by draftProposal. |
maxRuns | integer | 10 | Most corrections one draft learns from (most recent first). |
scanRuns | integer | 200 | Most rated-down runs looked at when gathering corrections. |
maxFieldChars | integer | 2000 | Longest request, answer, correction or comment text sent to the drafting call per correction; longer text is cut. |
maxDraftInputChars | integer | 32000 | Longest content sent to the drafting call in all (current instructions and corrections); corrections that do not fit are left out, oldest first. |
maxInstructionsChars | integer | 8000 | Longest drafted instructions accepted. A definition whose current instructions are longer is refused. |
maxDraftTokens | integer | 4000 | Output token cap of the drafting model call. |
draftModel | string | "" | Model the drafting call asks the bound model@1 driver for (empty: the driver's default). |
budgetScope | string | "" | budget@1 scope the drafting call is charged to and checked against (empty: only the kill switch is checked). |
evalRepeats | integer | 1 | Attempts per held-out case when evaluating a candidate (k in pass^k). |
claimTtlSeconds | integer | 900 | How long a drafting call holds a proposal; after that another call may take it over (a crashed process). |
requireLockedHeldOutSuite | boolean | false | When true, draftProposal refuses unless the configured heldOutSuite is locked (immutable). |
minFixed | integer | 0 | Minimum number of previously failing cases the candidate must fix on the held-out suite (0 disables). |
autoProposeOnDefects | boolean | false | When true, listens to defect.recorded and opens a requested proposal once autoProposeAfter unused defects/corrections accumulate. |
autoDraftViaTask | boolean | false | When true, opening a requested proposal automatically enqueues a deterministic tasks@1 procedure task (proposals.draft_open) for background worker drafting. |
draftWorkerRole | string | "" | Optional workerRole stamped on background proposal drafting tasks when autoDraftViaTask is enabled. |
maxCandidates | integer | 1 | Number of candidate drafts generated per search round (1..3); highest-scoring candidate on the held-out suite is retained. |
maxRefinementRounds | integer | 0 | Maximum post-evaluation iterative refinement rounds (0..2) using strictly redacted gate check codes and cost summaries (never held-out prompts or answers). |