Back to OS

The Agent Core

COREEXEC

The authoritative orchestration engine. CoreExec treats every AI interaction as a transactional workload—ensuring rigorous DAG execution, unbreakable task leasing, and absolute mathematical determinism.

TRANSACTIONAL WORKLOADS

CoreExec occupies the critical gap between ad-hoc AI scripts and monolithic cloud platforms. It operates on the architectural mandate that every workflow must be claimed, executed, recorded, and recoverable—with the exact same guarantees a database provides for a write.

DAG Execution

Executes strict Directed Acyclic Graphs (DAGs). Rejects invalid nodes, cyclical dependencies, and unauthorized execution paths before invocation.

Task Leasing

Employs atomic BEGIN IMMEDIATE SQL transactions. Two background workers can never claim or duplicate the same agent task.

Restart Recovery

If the local host loses power, CoreExec resumes active runs, expires stale leases, requeues eligible tasks, and preserves completed outputs.

Idempotency

Nodes that modify state require strict idempotency keys. Side effects are never duplicated, regardless of network or provider instability.

MODULE OWNERSHIP CONTRACT

REF: DOC-03

COREEXEC OWNS

  • >> DAG execution orchestration
  • >> Centralized task queuing
  • >> Worker lease management
  • >> Automated network/provider retries
  • >> Workflow cancellation protocols
  • >> Process restart recovery routines
  • >> Immutable workflow run snapshots

DOES NOT OWN

  • >> Model Selection: Handled dynamically by RouteSwitch.
  • >> User Interface: Managed exclusively via PortGrid.
  • >> Database Schemas: Governed securely by BaseVault.
  • >> Draft Proposals: AI cannot auto-execute via CoreExec without explicit human-in-loop approval.
  • >> Provider Credentials: Handled by secure local environment variables.