Programming languageVersion 7.1

Make the statetell the story.

RedRuff Solve is built for real-time, stateful, rule-driven systems that need to decide what happens next—and explain why.

Model state · preserve truth · react to change · select the best valid outcome · explain everything

WHY SOLVE EXISTS

The hard part isn’t writing one function. It’s making everything agree.

Operational software usually stitches together a database, workers, cron, rules, connectors, workflows, queues, traces, and recovery. Solve makes the shared meaning between them native.

Persistent stateEntities + SolveDB
RulesTruth that stays true
External eventsDurable handlers
SchedulesTime-driven work
PlansHuman + system steps
ReasoningAudit-grade traces

ONE MENTAL MODEL

RedRuff Solve

State + truth + change + choice + work + explanation

THE LANGUAGE, AS A JOURNEY

From one entity to a system that can defend every decision.

01

MODEL THE STATE

Start with what the business remembers.

Entities hold durable business state. Structures shape temporary values. Queries read like the question you meant to ask.

Language lens

One domain. Three native views.

syntax ready
inventory.solve
entity Product:    sku: Text    name: Text    inventory: Int    active: Bool = trueproduct = create Product:    sku = "RR-104"    name = "Edge Router"    inventory = 12

Persistent state is declared beside its meaning—not hidden behind an ORM.

02

PRESERVE TRUTH

Invalid state never gets a chance to become history.

Transactions make related changes succeed or fail together. Requirements protect one operation. Rules protect the whole domain.

Atomic truth

Try to oversell the last 12 units.

3
118
Inventory12 / 12
Waiting for a transaction
checkout.solve
transaction:    require product.inventory >= 3    product.inventory -= 3    save product    save order
GLOBAL RULEInventory.onHand ≥ 0Invariant protected

03

REACT TO CHANGE

The outside world can interrupt. The story still continues.

Events cross the system boundary. Reactions express domain consequences. The supervised runtime records, retries, recovers, and traces the work.

Supervised runtime

Watch an order survive the boundary.

OrderReceived
{ id: "ord-849", quantity: 3, region: "south" }
  1. 01Recorded

    Event stored durably

  2. 02Dispatched

    Worker accepts the message

  3. 03Committed

    Order state changes atomically

  4. 04Explained

    Trace records what happened

Bounded queues · retries with limits · idempotency checks · dead-letter queues · startup recovery

EVENTS

Boundary input, durably handled.

REACTIONS

State changes with consequences.

SCHEDULES

Time-based work that can catch up.

04

SELECT THE BEST VALID OUTCOME

Requirements remove the impossible. Goals find the best.

A problem filters invalid candidates, scores valid ones, and explains the winner. A decision returns a clear typed answer from evidence.

Live problem

Choose the best valid driver.

SelectedNeel
Lower load 60%Higher rating 40%
Asha75
Load
2
Rating
4.9
Capacity
30kg
Neel85
Load
1
Rating
4.6
Capacity
24kg

Best valid outcome

Mira52
Load
4
Rating
5
Capacity
45kg
Kabir
Load
0
Rating
4.8
Capacity
40kg

Filtered: wrong region

Neel wins with the strongest weighted score after hard requirements remove invalid candidates.

dispatch.solve
problem AssignDriver(order: Order) -> Driver:    choose driver from Driver        where status == "available"    require driver.region == order.region    require driver.capacity >= order.weight    minimize driver.currentLoad weight 0.6    maximize driver.rating weight 0.4    explain

Problems choose.

Decisions answer.

Plans coordinate.

05

COORDINATE THE WORK

Some steps run in milliseconds. Some wait for a person.

Plans keep both in one durable strategy—with dependencies, missing information, verification, and compensation when later work fails.

Durable plan

Onboard a vendor—even when work crosses people and time.

Ready to coordinate four durable steps.
  1. 1

    system

    Verify documentsWaiting
  2. 2

    human

    Compliance reviewWaiting
  3. 3

    system

    Activate vendorWaiting
  4. 4

    system

    Verify outcomeWaiting

06

EXPLAIN EVERYTHING

Every important outcome leaves a reason behind.

Reasoning traces connect inputs, reads, rules, candidate scores, plan steps, connector calls, missing information, and the final result.

Reasoning trace

Not just what happened. Why.

trace_7f18a · AssignDriver verified
  1. INPUTorder.region = south · weight = 20kg
  2. READ4 available Driver records
  3. REQUIREKabir rejected · region mismatch
  4. SCOREAsha 75.2 · Neel 84.8 · Mira 52.0
  5. SELECTNeel · strongest valid weighted score
  6. VERIFYresult != none · passed

PRODUCTION, WITHOUT THE PRETEND

Lightweight by evidence. Honest by design.

Validated in the Solve Enterprise 7.1.0 Windows x86-64 release-gate environment. Your workload and hardware will differ.

0153.6M

parser characters / sec

02226K

SolveDB writes / sec

032.78M

SolveDB reads / sec

0420.5ms

startup p95

Production is a behavior

Bounded. Recoverable. Observable.

  • Bounded queues and backpressure
  • Retries, idempotency, and dead-letter queues
  • Database backup, verification, recovery, and rollback
  • Health, readiness, metrics, and trace verification
release.sh
solve checksolve testsolve db migrate --previewsolve db backup --out Backups/todaysolve serve --profile productionsolve healthsolve trace verify
RedRuff logo

START SMALL. GROW INTO PRODUCTION.

Model one entity.
Add one rule.
Let the system explain the rest.