02 · AWC-OS · The demonstration

Not every answer was allowed.

Developed by Al-Baseera (البصيرة) and presented at the AMAD 2026 FinTech Hackathon (Alinma Bank × Tuwaiq Academy).

A fine-tuned model writes a program for each financial question; a separate, deterministic engine runs it, refuses it with a Sharia-compliant alternative, or blocks it. In the film, a request for a savings account paying 5% interest is refused before it reaches the customer, and a halal alternative is offered; a zakat question is computed exactly, SAR 4,226.25, and its trace is opened step by step. One savings prompt produced an over-promising takaful program: its assertion failed, the engine returned BLOCKED, and no rule was relaxed to force a successful demonstration.

Team demonstration: the MVP runs on an evaluation machine, not on deployed hosting. Presented at a hackathon; the iPhone demo runs offline, and no deployment is claimed.

The film · 85 seconds · music, no speech

How it decides

question + financial state
  → fine-tuned model (live synthesis, greedy decoding)
  → FSL program
  → Swift fsl-cli → AWCOSCore   (canonical interpreter — same engine as the iPhone app)
  → EXECUTED · REFUSED · BLOCKED   + replayable receipt

The browser MVP and the native iPhone application execute generated programs through the same Swift AWCOSCore engine — the rule layer is not reimplemented and not simulated.

EXECUTEDThe program parsed, every predicate and assertion passed, execution completed.
REFUSEDThe request violated a constitutional predicate; a policy decision — refused, with an attested Sharia-compliant alternative.
BLOCKEDThe proposal failed an assertion or could not establish execution conditions; no result is authorized.

Measured failure retained: one savings prompt generated an over-promising takaful program whose assertion failed; the engine returned BLOCKED. No rule was relaxed and no output was rewritten to force a successful demonstration — the prompt remains reachable through free-form input.

AWC-OS does not measure success by whether the model always produces an answer; it measures success by whether unauthorized answers fail safely.

The demonstration paths

  1. Zakat — exact numerical execution (SAR 4,226.25): correct computation
  2. Portfolio audit — attestations and execution trace: explainability
  3. Planning — job-loss cashflow scenario: forward recommendation
  4. Adversarial — constitutional refusal with compliant alternative and AAOIFI citation: constitutional refusal

The live MVP runs on a real evaluation machine, not on always-on cloud hosting: live synthesis from the fine-tuned model (4–8s per question), executed through the same deterministic Swift engine that runs on the iPhone. The demo runs offline on an iPhone 16 Pro Max. A live session can be requested through the contact page.

The film as text

The English film, in the order it appears

85 seconds; music, no speech. What is on screen, in order:

Every financial decision made about you today… …happened somewhere you can’t see.

You get the outcome. Never the reasoning.

Your bank says: «Trust us.» AI says: «Trust me.»

What if every decision had to leave a receipt?

[A question is typed into a chat box.] What’s the best savings account with 5% interest?

[A card.] Try to break it. Force a Riba-bearing recommendation. Watch the constitution refuse it before it reaches the customer. — What’s the best savings account with 5% interest? — REFUSED. Halal alternative: Alinma Wakala Investment Deposit. No Riba · Qur’an 2:275.

It can’t. Not won’t — can’t. § ITS CONSTITUTION FORBIDS RIBA · QUR’AN 2:275

[A phone: the Financial Assistant, for a customer named Ahmad, with 3.9 months runway, income stability 96%, and three small bars too small to read with certainty. The customer asks:] How do I calculate my Zakat this year? [The reply:] Your Zakat for this year: Zakat-eligible assets total SAR 169,050, above the nisab threshold of SAR 21,080, so Zakat is due. At 2.5% that is SAR 4,226.25. Sharia reference: Al-Nawawi, Al-Majmu‘ 6/7.

«Prove it.»

[The reply opens its trace, one checked card after another:]

  • 01 Customer state: أحمد · Ahmad. Monthly income SAR 22,000 · Cash runway 3.9 months. Accounts: 4 · Nisab basis: gold.
  • 03 FSL program emitted:
    PROGRAM compute_zakat:
      CONSTRAINT zakat_allocation
      LET eligible := sum(accounts WHERE zakatable = true)
      ASSERT hawl_satisfied
      IF eligible > nisab_threshold THEN
        LET zakat_due := round(eligible * 0.025, 2)
        EMIT zakat_result, eligible_assets_sar = eligible, nisab_threshold_sar = nisab_threshold, zakat_due_sar = zakat_due, hijri_year = hijri_year, status = "due", sharia_ref = "Al-Nawawi, Al-Majmu‘ 6/7"
      ELSE
        LET zakat_due := 0
        EMIT zakat_result, eligible_assets_sar = eligible, nisab_threshold_sar = nisab_threshold, zakat_due_sar = zakat_due, hijri_year = hijri_year, status = "below_nisab", sharia_ref = "Al-Nawawi, Al-Majmu‘ 6/7"
      ENDIF
  • 02 Active constraint set: zakat_allocation, Al-Nawawi, Al-Majmu’ 6/7.
  • 04 Symbolic engine output (its last line fades out):
    zakat_result   <obj keys=["eligible_assets_sar", "hijri_year", "nisab_threshold_sar", "sharia_ref", "status", "zakat_due_sar"]>
    
    CONSTRAINT zakat_allocation fired
    LET eligible := 169050
    ASSERT true = true ✓
    IF true → then
    LET zakat_due := 4226.25
    EMIT zakat_result := <object

EXECUTED · Interpreter · 1ms · Rules fired: 1 — fsl://trace/58e1f5c0d1d80dc8

«Trust us.» «Trust me.» «Check me.»

§ That’s the constitution.

AWC ▪ OS · FINANCIAL INTELLIGENCE LAYER. DEVELOPED BY Al-Baseera (البصيرة). PRESENTED AT AMAD 2026 FINTECH HACKATHON · alinma · Tuwaiq Academy. ONE STEP AHEAD — AND ABLE TO PROVE IT.

Source

The complete browser-MVP runtime is open for review — server, canonical-interpreter bridge (fsl-cli), and the judge-facing UI: github.com/cytheraii/aws-os_mvp ↗