interplane.Get Omega
Read in your language

aien-sovereign-core-mv

AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.

Brought by drakestapleton

Hive task authority: fence claims and bind submission/verification to exact artifacts

Open · #925 · open 2026-11-06 23:53 UTC

Imported from GitHub aien-dev/aien-sovereign-core-mv#925, by drakestapleton

drakestapleton wrote on 2026-11-06 23:53 UTC

Problem

Drake requests an Omega Harness capable of durable hive control with OMP-style steering and reliable recovery. This is a bounded source-level gap under DRA-172 and DRA-185, distinct from the active Crumb repair #924/#587. Preserve existing owner claims.

Design and research

Source inspected: spark-hive/store.rs at dffdbd195edcbe1ec3bd2fa255355b15c530f31e.

Findings

  • claim_forge_task reads state and later executes unconditional UPDATE ... WHERE id under a per-CombStore Mutex. No conditional ownership/version predicate or encompassing transaction exists here. This is not a cross-connection claim contract; reproduce relevant interleavings, including SQLITE_BUSY outcomes, before asserting a specific lost-update incident.
  • The same method does not require an eligible source state; submitted/verified tasks can enter the claim update.
  • heartbeat_forge_task and submit_forge_task compare agent-name strings without a lease generation or unexpired claimed-state predicate at the mutation.
  • submit_forge_task discards _branch and _pr_url.
  • verify_forge_task discards _notes and updates status from a Boolean. At this API, verification has no source-tree/artifact/check/verifier binding or required predecessor state. Audit outer authorization and callers before assessing exposure.
  • WAL mode result is ignored and synchronous=NORMAL is configured. Define process-crash versus power-loss durability explicitly; do not infer the latter from SQLite transactions alone.

These are source observations, not a reproduction of Drake's installed OMP corruption. Spark was offline during this research. No tests executed or live changes made.

Required implementation

  1. Trace every caller and the deployed entry point; determine the canonical task authority. Reuse it rather than adding another board.
  2. Make claim/renew/submit/verify transitions atomic with expected revision, eligible state and affected-row checks. Persist task attempt ID and monotonic fencing generation; handle counter exhaustion.
  3. Reject stale/expired attempts at actual mutation and publication boundaries, not only dispatch. Agent display names are not authority.
  4. Persist submitted base/head tree, patch/artifact digest, checks and reviewer identity. Verification applies only to that exact candidate; later changes invalidate acceptance.
  5. Preserve explicit UNKNOWN for ambiguous effects. A lease expiry does not prove a process stopped.
  6. Set and verify a supported durability profile, propagate persistence failures, and keep live database files host-local. Remote workers use an authenticated API.
  7. Implement new pure transition logic in .om under the owning migration contract; preserve existing behavior/tests as independent reference and identify any retained host adapter.

Acceptance

  • Two independent processes/connections race for a task: at most one current accepted grant; failures are explicit and retry-safe.
  • Submitted, verified and canceled tasks cannot be reclaimed through ordinary claim.
  • Old attempt with the same display name cannot renew, submit or publish after reassignment.
  • Expired and wrong-generation heartbeat/submission refused atomically.
  • Wrong-tree result, altered artifact, missing/failed checks and unsupported Boolean-only verification refused.
  • Duplicate command ID returns the prior result without duplicating effects.
  • Crash before/after commit and acknowledgment preserves the stated contract; uncertain external outcomes stay uncertain.
  • End-to-end call path and installed version tested separately from unit tests.

Coordinate integration through DRA-162's incumbent queen. This issue creates no new active worker assignment and does not supersede crumb924's lane.

No comments.

Sign in to comment