interplane.Get Omega
Read in your language

aien

aien-dev/aien

Brought by drakestapleton

[SI-MICROFORGE A1] Let Aien compile ambitious goals into tiny typed .om jobs without losing meaning

Open · #13 · open 2026-10-24 16:01 UTC

Imported from GitHub aien-dev/aien#13, by drakestapleton

drakestapleton wrote on 2026-10-24 16:01 UTC

Objective

Allen remains one approachable continuing identity for the human/bot UI. Under Allen #11 (worker selection) and #12 (Harness Evolution), implement a task/objective planner that proposes dependency-bound Microforge jobs to the canonical protocols/Omega runtime. No alternate agent, training engine, memory owner or capability authority.

Work

  • Translate a user objective to typed, versioned DAG of dependent operations with obligations and stable identity; distinguish operations that are exactly native math/compilation/verification (zero inference tokens) from those needing small SI Reflex, larger SI student or qualified 35B/27B teachers. The model proposes; deterministic runtime authorizes.
  • Short contract profiles: minimal 64 input /16 output, default 128/32, explicit expansion 256/64 or 512/128 only when required. Contract length is not problem complexity limit: each node carries exact operand/digest references, required preconditions, verifier, effect scope and retry/abstention; no essential facts silently dropped.
  • One persistent objective/identity and existing Cortex source of truth, with prefix/speculative/forked candidates strictly temporary until independently admitted. Correct human correction invalidates affected nodes; replay/restart recovers exact completed state and prevents duplicate effects. No automatic public visitor trace inclusion in private SI dataset.
  • Initially a deterministic/reflex rule baseline and shadow route policy, using training-only verified task labels and the existing qualified-worker registry. Later train 0.8B Reflex task/stage classifier under aien-train; do not assert a new trained model already exists. Set budgets to avoid recursive model-call storms.
  • Output one native typed .om plan and one evidence receipt per completed objective; the same ownership and UX must survive switching student/teachers or denial.

Acceptance

  • Offline ≥10-node multi-step objective where several independent microjobs run before a join, with at least one math-only node, one bounded model route, one refusal and one correction; results match a single explicit contract and verified terminal goal.
  • Mutants: wrong/stale dependency, overlong unsplittable instruction, changed privacy owner, unauthorized effect, false self-reported success, stale model qualification, disconnected user, duplicate result after restart.
  • Compare ordinary Allen→worker routing with Microforge task decomposition, including total control overhead and avoided/added inference. No public exposure or default switch until separate qualified acceptance.

Delivery discipline

Parent / new component bootstrap: https://github.com/aien-dev/aien-architecture-mv/issues/306. This is a finite scoped issue, not a new master plan. Recheck exact current commits, branch/worktree owners, AGENTS.md and .crumb, accepted ADRs, PLAN_AUTHORITY.md, CURRENT_EXECUTION_PLAN.md and linked PRs before coding; avoid conflicting writers. Final new first-party executable components, reproducible test runners and training controls use the existing seeded handwritten .om path with an independent oracle as needed. No new compiler, .osc feature, Python/PyTorch/CUDA product fallback, second authority/canonical Cortex writer, second independent judge or shadow scheduler. Existing Rust/C scaffolding is transitional and its retirement requires replacement + consumer qualification rather than deletion on speculation. No service/driver/firmware restart, unqualified GPU work, new public endpoint, private data export, auto-training or auto-promotion is authorized merely by this issue. Keep private 35B loopback 127.0.0.1:18091 untouched and unqualified 27B public route closed. Hardware results require scheduled uncontended Spark run and signed receipts; otherwise mark NOT_RUN/BLOCKED. All claims bind exact source/compiler/model/tokenizer/config/data/measurement digests, commands, exits and verifier. Status: PROPOSED / NOT_RUN.

did:key:z6MkhL6jkVBvyZTg9eMGkJWKQKjnKA1wbA7ym3PkTXt4M6Jd wrote on 2026-11-18 17:12 UTC

Recovered GitHub comment by @aien-spark on 2026-10-24T18:21:04Z. Original comment 6387857691

A1 / allen#13: goal → typed microjob DAG persistence. Status: HOST_TESTED (offline, synthetic fixtures). Overall #13: not complete.

Branch feat/13-goal-microjobs. Code is at 4518d56; evidence is at 736ee68; doc update citing the pushed protocol branch is at b40512d. No PR opened; that is the merge desk's job.

Files

  • src/goal_microjobs/kernel.om: seeded .om kernel. It validates the plan, replays the journal and refuses with a code. It runs no job, calls no model and writes nothing to memory or authority.
  • scripts/goal_microjobs/build.sh: builds the kernel with the same Omega c434565c and omc 191b776e… pins as the #12 harness gate.
  • scripts/goal_microjobs/microjobs.sh: shell glue only. It takes a flock, copies the journal to a candidate, appends the proposed event and replays it through the kernel. Only when the kernel exits 0 does it run sync and the atomic rename.
  • tests/goal_microjobs/gate.sh, docs/GOAL_MICROJOBS.md (record layout, codes, MJB1 mapping), evidence/goal-microjobs/offline-20261024T182027Z-rdcMbK/ (unsigned receipt, transcript, journal, status, mutation table).

What the kernel does: exact dependency and generation tracking, cycle and missing-dependency refusal, retry within max_attempts, budgets for attempts, model calls and token reservations, cancellation of a node plus its transitive dependents or of the whole objective, owner correction with transitive invalidation (generation +1), refusal, verifier ≠ worker, effects committed once per generation, and an objective receipt line binding the objective digest to the verified terminal result.

Command and result OMEGA_WORKTREE=~/workspace/allen-harness-evolution-omega bash tests/goal_microjobs/gate.sh → exit 0, PASS … checks=158, 9/9 source mutants caught. A second run produced byte-identical acceptance status, journal, partial-status and mutation files.

  • 12-node objective: nodes 1–4 run concurrently before the join at node 7. It includes zero-token COMPUTE nodes, 3 bounded NEURAL routes, 1 refused optional teacher route and 1 owner correction. It ends COMPLETE with receipt 103 ….
  • Restart and partial completion: the writer is SIGKILLed between kernel admission and rename. The journal is unchanged and replay is byte-identical. The runtime FAILs the orphaned lease; the late old-attempt result and any duplicate result or effect are refused (33/45).
  • Model failure: a FAIL then a retry succeeds. A checker verdict of 0 forces a retry. Attempts can run out (node FAILED, objective FAILED, dependents blocked). Model-call and token budgets stop dispatch (37/38).
  • Correction: only nodes 3, 7–12 are reset to gen 2; 1, 2, 4, 5 stay DONE at gen 1. A stale-generation dispatch is refused (34). Non-owner or no-op corrections are refused (39/46).
  • Plan mutants refused: cycle, missing or self dependency, overlong/needs-expansion, cap above profile, tokens on COMPUTE, changed privacy owner, unauthorized effect, missing operand, missing verifier, bad retry class, over budget, optional terminal, truncated, malformed, old ABI.
  • Totals checked with the Wolfram Language evaluator: 972 tokens reserved, 554 used, 12531 ms, 18 attempts, 7 model calls. Static caps are 800 in / 192 out / 18800 ms, against budgets of 1000 / 256 / 20000.

Protocol alignment: aien-protocols-mv#50 branch feat/si-microjob-capsule-abi is pushed at 33e28b9 (not merged); specs/microjob/SPEC.md is draft v0.1. Enums re-checked against that commit: unchanged. The kernel uses the same enum values and static rules: kind, op, profile, effect ceiling, verifier kind, retry class, max_attempts, needs-expansion, NEVER/IDEMPOTENT retry rules, budget sums and tenant. It reads Allen-local decimal records through an adapter marked pending #50, not MJB1/MJR1 bytes.

NOT_RUN / blockers

  • Canonical MJB1 binary and MJR1 signed receipts: waiting for #50 to land.
  • Cortex writer and restart: no Omega Cortex adapter yet. The journal is a local owner-private file, not Cortex.
  • Core #735 dispatch and qualified-worker registry.
  • Model inference: workers and verifiers are synthetic shell fixtures.
  • Objective-text → DAG rule baseline and shadow route policy.
  • Comparison of ordinary routing with microjob decomposition.
  • Native .om plan export.
  • GPU or physical qualification.
  • Deployment is OFF.

Sign in to comment