Objective
Deliver Allen Harness Evolution: a bounded, trace-informed, Harness²-inspired Propose–Probe–Compose capability that improves how Allen plans, selects skills/context, delegates, and chooses qualified specialist workers without modifying model weights. Allen remains one continuing, approachable user-facing assistant (Allen, title case); no new identity, parallel agent framework or competing source of authority. This is a finite Alpha capability under Allen #11, AIEN Alpha #305 and release #190, not a new master plan.
Status at filing: SCOPED / NOT_RUN. No source change, hardware run, trained checkpoint, serving cutover or promotion is implied.
Minimum acceptance criteria — bounded Alpha pilot (2026-10-24)
This is the smallest Definition of Done for the implementation in this issue, not approval for production self-improvement or for the whole AIEN Alpha release. All MAC-1 through MAC-8 require source-bound evidence. A missing gate is NOT_RUN/BLOCKED, never PASS. Do not treat the larger H0–H6 research plan as permission to expand scope before this slice works.
- MAC-1 — Actual seeded .om path. At least one functional strategy candidate is parsed/validated/executed through the existing seeded
.omcompiler/runtime and the existing Allen entry point, initially local/shadow-only. It must not be a scripted mock masquerading as implemented production code; independent fake workers are allowed only as explicitly labeled test doubles. Reuse the current Spark Harness/RSI and Cortex owners, not another framework, compiler or store. - MAC-2 — A narrow typed edit surface. Versioned, content-addressed candidate plus inherited unchanged baseline supports two meaningful editable strategy types (start with scoped context selection and skill selection/guidance). Candidate cannot edit identity, capability/approval policy, trusted prompts/guardrails, grader, secrets, executable scripts/hooks, network permissions or release controls. Valid, malformed, unknown-version and stale-parent proposals have tested outcomes.
- MAC-3 — Both recursion modes and fallback. On a deterministic task, run (a) parallel exploration with at least two distinct proposals plus a composition, and (b) at least two sequential refinement rounds. An unchanged-base option is included in final selection, and invalid/non-delivering candidates cannot displace it. For the pilot freeze k ≤ 2, ≤ 8 extra candidate probe executions per task, and ≤ 2 concurrent probe workers, with independently enforced fuel, time, token/memory and total-cost ceilings. Exhaustion stops cleanly; retries count.
- MAC-4 — Safety boundary. Required negative tests show zero unauthorized effects, leaked holdout/other-user material, unreviewed executable hooks/scripts and protected-policy modifications. At least these mutants must be caught: malicious retrieved skill, forged pass receipt, protected-edit request, stale/corrupt candidate, cross-user memory reference, budget-exhausted recursion, wrong/unqualified worker, interrupted/replayed run. Probe environment has no production-write authority; existing AEGIS/approval and independent judge never become candidate-controlled.
- MAC-5 — One durable, revocable lesson. From an independently verified task, record a typed
cue / lesson / evidence / applicability / limitationscandidate using canonical Cortex/skill-ledger interfaces. After process restart a related task retrieves it; a deliberately stale, revoked or contradicted version is rejected and the baseline remains usable. Raw operator traces remain local; no public conversation is automatically training material. - MAC-6 — Matched, held-out comparison. Before tuning, freeze ≥30 task cases (multiple task families and negative/refusal cases), identities, split, rubric, primary metric, budgets and stopping rules. Evaluate A unchanged, B retrieval-only, C one Propose–Probe–Compose step, D bounded recursion (label parallel and sequential subarms separately) against the same base model and permitted tools. An independent judge scores actual task artifacts/allowed refusals. Record every failure, abstention, proposal, retry, call, token, task wall time and experiment overhead. No sealed-score leakage/repeated adaptive promotion; reuse Spark RSI #67.
- MAC-7 — Reproduction and independent verdict. One clean-checkout offline end-to-end example executes task → base → proposals → probes → composition/base selection → verification → saved lesson → restart → related task, plus refusal paths. Publish exact
.omseed/compiler, commits, candidate hashes, commands/exit codes, task-fixture hashes, cost ledger and immutable independently checked host receipts through the existing judge. Physical Spark/model legs are NOT_RUN unless actually executed under a coordinated hardware window; do not claim silicon qualification from host fixtures. - MAC-8 — No unsafe activation. Allen's identity and incumbent behavior survive all tests. Feature remains disabled or shadow-only by default; the private 35B process is not restarted or exposed; 27B public route stays closed pending Core #724/#679/#710–#721. No model weight update, new public endpoint, unapproved code/effect promotion or private-trace export.
Pass semantics: MAC-1–MAC-8 PASS means the bounded offline research implementation and its independent evaluation are accepted. The A/B/C/D result can honestly be positive, negative or inconclusive; a scientifically valid negative result does not turn into a fabricated performance win. Enabling adaptive routing or production strategy promotion is a separate gate: require a predeclared positive net improvement over the unchanged baseline on fresh sealed real-model tasks after ALL exploration/verification costs, no material correctness/safety regression, independent signed review and explicit operator authorization. Otherwise keep the incumbent/default-off path. Two-model physical qualification, broad skill/plugin editing, model-weight training and public deployment are explicitly not prerequisites for this offline pilot and remain in their separate issues.
External reference inspected (mechanisms, not dependency)
Upstream google-research/harness2 (Apache-2.0):
harness2/core/recursion.py: parallel and sequential task-level search; budget R=4k rollouts / P=3k improvement sessions in that implementation; fallback after invalid edits.core/tree.py,core/spec.py,core/prompts.py: explicitly editable component surface and validation; general procedure vs domain-specific proposals.core/context.py: evidence presented as files, with task, full trajectories and deliverables rather than relying on truncated summaries; protect against answer-key leakage.core/selection.py: anonymous candidate comparison, reflection, and evidence-tagged adoption; its normal final-only selection excludes the unchanged base—do not copy this selection bias into our independent experiment.core/library.py: scoped experience library with full adopted harness, cue/lesson/evidence and deterministic indexing.core/ledger.py,core/runmark.py: attempt/cost accounting and configuration-bound completion/resume.
Do not import or execute its Python/Node runtime. It explicitly exposes an unsandboxed Codex execution path and unrestricted network; AIEN must preserve isolation, authority, and its existing no-Python / seeded .om policy. Use ideas or properly attributed Apache-2.0 material only where justified.
Actual AIEN seams / ownership — read current source before editing
- Allen mission, personal episodes P1/P2 and frozen holdouts P3: Allen #1, #3, #4, #5, training P4 #6, continued learning P7 #9, qualified 35B/27B model routing #11 and Core #735. This work does not retrain weights.
- Sovereign Core:
crates/spark-harness/src/completion.rsverified workflow completion,execution.rsprovisional/commit states,journal.rsdurable replay;crates/aien-trace/observed task trace; existingcrates/aien-allen*personal identity/memory. Core #533 is a prior completion owner.aien-harnessis archived; its canonical successor iscrates/spark-harness. - Omega:
src/runtime/rx_skillroute.{h,c}capability-bound skill routing,rx_cortex.{h,c}typed single-writer lessons/observations and promotion,rx_costmodel.{h,c}uncertainty-aware cost precedent (currently operation-level, not a finished agent strategy predictor), Omega #563 skill editorial ledger, #683 valued verified lessons, #583 full-cost modelling, #645.omrecursion semantics if needed. - Spark RSI:
docs/CANARY-CONTRACT.md/ existing independently checked evaluator, #54, #57, #67 leakage/adaptive-evaluation control, #68 bounded fixed-weight controller evolution. Reuse that experiment and judge owner; do not start a second RSI engine or signer. - Publish signed host/chip receipts through the existing Spark judge; review/current PR desk governs merges. Verify current issue comments, locks, worktree claims, and dependency pins at execution time.
Implementation phases (reviewable, dependent slices)
- H0 — inventory, freeze, owner map. Map the eight Harness² components to permitted AIEN types: task guidance, non-authoritative guardrail text, scoped memory retrieval, read-only tool guidance, skill selection, bounded subagent assignment, allowlisted deterministic scripts, and hooks/plugins. Separate editable strategy proposals from immutable identity, approval/capability policy, credentials, tool permissions, network scope, trusted execution code, test rubrics, evaluator keys, cost ceilings and deployment authority. Identify each owner/current branch, freeze a versioned interface, and document unsupported cases.
- H1 — typed, content-addressed harness candidate. Define an additive seeded
.omcontract that carries parent/incumbent revision, task-family, scope, component diffs, task+resource bounds, version/digest, model/worker/skills pins and explicit refusal reasons. A proposal changes only declared strategy data; no executable plug-in/script addition except through an independently reviewed, separately approved and sandboxed capability. Validate path/size/instruction/skill triggers, no privileged system-prompt rewriting, no injection through retrieved content, and invalid-diff refusal with base retained. - H2 — safe propose/probe/compose. Implement (a) a no-adaptation base path, (b) isolated candidate generation for procedure and domain-specific strategy, (c) deterministic and, when independently authorized, model-driven probes using the existing Spark Harness/RSI bounded execution surfaces, (d) evidence-based composition, and (e) selecting either a candidate or the unchanged base. Support parallel WIDTH and sequential DEPTH, bounded by explicit fuel, round count, attempt count, worker concurrency, wall time, tokens, memory, spending, and effect permissions. Candidate cannot see holdout answers, change the task's requested output or execute an irreversible effect; failed probes count as failures and incur cost.
- H3 — scoped lesson reuse. Emit
cue / lesson / evidence / confidence / applicability / preconditions / counterexamplesfrom verified outcomes (not model praise). Keep full candidate tree/manifest and source receipt digest, versioned and private; serve lessons by task-family scope, with stale/contradictory evidence and changed user intent invalidating reuse. Use the existing Cortex single-writer/type promotion plus skill ledger #563; no side-door writer or shadow authoritative memory, no auto-copy of public user chats, secrets or held-out tasks. Candidate lessons are claims, not instructions or permissions. Provide inspect, correct, revoke and restart/reload behavior under existing owner policies. - H4 — honest selection and evidence. Compare unchanged incumbent, retrieval-only, one Propose–Probe–Compose iteration, and bounded recursive parallel/sequential variants (A/B/C/D; state actual K and model calls) at matched model checkpoints, fixtures, context, capabilities, initial resources and budgets. Keep feedback/sealed final test partitions separate, grouped by time/task/session, with global dedup and prompt-injection controls. Use Allen #5 and RSI #67 to prevent adaptive reuse/overfitting: after trying many candidates, no naive reuse of the same held-out data. Need independent verifier; no self-grading as promotion evidence.
- H5 — safe Allen integration. Expose an opt-in/shadow-mode candidate selector from Allen's existing front door. It proposes a bounded harness version, while runtime admission checks current skill caps/leases, policy, model and resource/worker qualification under Core #735. Worker responses are untrusted; no additional tool authority. Route to 35B/27B only as separately qualified and available; their comparative performance is not assumed. Keep original local 35B service untouched and 27B public route disabled until independently accepted. Keep public visitors isolated from private operator-trained lessons. No live rollout by issue creation.
- H6 — independent end-to-end reproducibility. Publish a runnable offline synthetic/local fixed-model example: user task → baseline → candidate proposal → safe bounded probe(s) → compare original output and complete deliverables → choose base/candidate → independently verify → versioned lesson candidate → restart/reload → similar held-out task; all evidence bound to actual source/compiler/model/config/hardware/fixture digests. Hardware and real model legs are separate and remain NOT_RUN until scheduled and physically observed. Create contributor-facing tutorial on how to reproduce and audit the method.
Measurable Alpha experiment
- Freeze at least 30 held-out tasks from Allen #11 spanning
.omcompiler/debugging, repository investigation, engineering repair, research synthesis, planning, ambiguous/no-worker cases, multi-turn correction and refusal. Use synthetic/public-safe fixtures for the shareable baseline; no private trace contents or dataset scores in GitHub. - Explicitly capture process correctness, real artifact acceptance, unsupported/refused work, time-to-first-result/total task wall, inference tokens, memory and bandwidth where measurable, energy ONLY if instrumented, candidate/search/retry/evaluator cost, verified completions/hour, and quality regression/retention across task families.
- Pre-register pass/fail floors and stopping rules before candidate search. Count invalid/stale proposals, selection errors, timeouts, retries and never-delivered artifacts. Report both gain and net cost including exploration; a slower or inconclusive result stays FAIL/INCONCLUSIVE, not hidden.
- Show incremental value of A→B→C→D; retained knowledge should improve later tasks without leaking from heldout. No claim of speedup or compounding without independent replicated data.
Negative and security controls
- Out-of-surface file edit, modified grader/approval policy, forged signatures, leaked heldout, malicious retrieved
SKILL.md, altered hard guardrails, tool/credential/network escalation, unapproved scripts/hooks, cross-user memory access, wrong model/ABI, stale version, duplicate candidate, forged pass, infinite recursion, resource overrun, branch/worker race, interrupted commit, corrupted journal and replay all refuse/rollback without affecting incumbent. - Show source and code are unable to promote themselves or write canonical Cortex directly, bypass AEGIS, publish private traces, perform irreversible effects during probe or change live model weights. Prove fail-closed candidate fallback and no-work-on-error paths.
Language / delivery / release posture
Follow the current aien-architecture-mv/PLAN_AUTHORITY.md, CURRENT_EXECUTION_PLAN.md, ADR 0024 as superseded by the operator's .om-only destination, repository AGENTS.md and .crumb contracts. All new first-party final computation/algorithm, runners, tests and release automation use the existing seeded handwritten .om compiler path, not a new compiler, .osc, Python, hidden Rust/C fallback or another runtime. Inventory any still-active older scaffolding honestly and plan qualified cutover/removal through its owner; independent external oracles can be used separately with provenance. If an essential language feature is missing, produce a precise compiler-owner blocker + regression fixture, not an invented passing test or alternative toolchain.
One writer per code path; branch + PR per owned slice; run existing host gates before hardware gates; independent review and signed Spark receipts bind exact candidate/changes. Do not force-merge, close this issue on documentation alone, alter active 35B serving, start expensive hardware/model jobs, modify drivers/firmware, expose a new public endpoint or self-promote without an authorized execution window and standard operator approvals. Safe offline test results can be PASS while physical model/GB10, multi-device and production promotion remain NOT_RUN.
Done only when
A maintained .om implementation/contract exists and is consumed by Allen in a bounded, default-off or independently qualified admission path; parallel + sequential probes and base selection demonstrably work, lesson retrieval survives restart, independent safety/quality gates and negative mutants pass, a ≥30-task frozen evaluation with A/B/C/D and full search cost produces a reproducible PASS/FAIL/INCONCLUSIVE dossier, and the owning reviewers accept the exact test status and remaining physical blocks. Model training and public Alpha enablement remain separate issue gates.