ميثاق · Mithaq

سيف 2026 · حوكمة وكلاء البرمجة الذكيةSAIF 2026 · Governance for AI coding agents

الوكيل يقترح.الدليل يحسم.Agents propose.Evidence decides.

ميثاق طبقة تحكّم تعمل فوق وكلاء البرمجة الذكية. تعزل الوكيل، وتُجري الفحوص بنفسها، وتستدعي مدقّقًا مستقلًا. لا يُعتمد أي تغيير إلا بدليل، وفق حزم حوكمة سعودية مدمجة.Mithaq is a control layer above AI coding agents. It isolates the agent, runs the checks itself and calls in an independent auditor. No change is committed without evidence, under built-in Saudi governance packs.

0/60تغييرًا خاطئًا قُبلwrong changes accepted 0/240محاولة إقناع نجحتpersuasion attempts worked 8ضوابط سعودية في 3 حزمSaudi controls in 3 packs

عرض توضيحيWalkthrough

شاهد مهمة تمر عبر ميثاقWatch a task go through Mithaq

اختر سيناريو وتابع الخطوات: ما يفعله الوكيل، وما يتحقق منه ميثاق بنفسه، ولماذا يُرفض التغيير أو يُعتمد.Pick a scenario and follow the steps: what the agent does, what Mithaq checks for itself, and why the change is refused or committed.

    عرض تصوري مبسّط لطريقة العمل، وليس تشغيلًا حقيقيًا. الأسماء والأرقام فيه للتوضيح.A simplified, illustrative walkthrough, not a live run. Names and numbers are examples. العرض الحي في الجناحLive demo at the booth · SAIF140007

    الفيديوFilms

    ميثاق في دقيقةMithaq in a minute

    الفيديو الذي يعرض في الجناح، والفيديو الترويجي بالإنجليزية.The film looping at our booth, and the English promo.

    فيديو الجناح، بترجمة عربيةBooth film, Arabic captions1:13
    الفيديو الترويجي (إنجليزي)Promo film (English)1:09
    فيديو العرض العملي الكامل (عربي وإنجليزي)، والملصق، وحزمة الأدلة، كلها في مجلد الملفات الداعمة.The full walkthrough videos (Arabic and English), the poster and the evidence pack are all in the supporting files folder. فتح الملفات الداعمةOpen supporting files ↗

    الكتيّبBooklet

    ميثاق بالتفصيلMithaq in depth

    غلاف كتيّب ميثاق Mithaq booklet cover

    كتيّب ميثاق، سيف 2026The Mithaq booklet, SAIF 2026

    الفكرة والبوابات والنتائج والحوكمة في 18 صفحة. تصفحه على الموقع أو حمّله PDF بالعربية أو الإنجليزية.The idea, the gates, the results and governance in 18 pages. Read it here, or download the PDF in Arabic or English.

    المشكلةThe problem

    الوكيل يكتب الكود، ثم يكتب شهادة نجاحه.The agent writes the code. Then it writes its own report card.

    هكذا يتسلل تغيير خاطئ إلى الإنتاج اليوم، في ثلاث خطوات.Here is how a bad change slips into production today, in three steps.

    01

    الوكيل يُنجز ويُعلنThe agent finishes and announces

    يعدّل الوكيل الكود ثم يكتب: «تم، وكل الاختبارات ناجحة».The agent edits the code, then writes: "Done, all tests pass."

    02

    الجميع يبدأ من روايتهEveryone starts from its story

    بيئات العزل والتكامل المستمر والمراجعة البشرية تنطلق كلها من وصف الوكيل لما غيّره.Vendor sandboxes, CI pipelines and human review all start from the agent's own account of what it changed.

    03

    الخطأ يصل إلى الإنتاجThe flaw ships

    تقرير يبدو مقنعًا يكفي لعبور كود خاطئ أو غير آمن دون أن يلاحظه أحد.A convincing report is enough to carry wrong or unsafe code into production unnoticed.

    ميثاق ينقل قرار القبول من كلام الوكيل إلى أدلة يُنتجها النظام ويتحقق منها بنفسه.Mithaq moves acceptance off the agent's word and onto evidence the system produces and checks itself.

    المبادئPrinciples

    ثلاثة مبادئ لا تُكسرThree principles that don't bend

    الدليل قبل الادعاءEvidence over claims

    لا يُعتدّ بتقرير الوكيل عن نفسه. المتحكّم يعيد حساب ما تغيّر فعلًا، ويُجري كل فحص مطلوب على التغيير ذاته، ويحفظ الدليل.The agent's report about itself carries no weight. The controller recomputes what actually changed, runs every required check on that exact change and keeps the evidence.

    العزل هو الأصلIsolation by default

    يعمل الوكيل على نسخة مؤقتة داخل عزل على مستوى نظام التشغيل، بعيدًا عن المفاتيح وقاعدة البيانات. وإن تعذّر بناء العزل، تُرفض المهمة من أساسها.The agent works on a throwaway copy inside an operating-system jail, away from keys and the database. If the jail cannot be built, the task is refused outright.

    مراجعة مستقلةIndependent review

    مدقّق منفصل، من عائلة نماذج أخرى إن حُدّدت، يفحص نسخة للقراءة فقط مع الفرق الذي حسبه المتحكّم. وموافقته لا تتجاوز أبدًا دليلًا فاشلًا.A separate auditor, from another model family when set, examines a read-only copy alongside the controller's own diff. Its approval can never override failed evidence.

    كيف يعملHow it works

    ست بوابات بين الاقتراح والاعتمادSix gates between a proposal and a commit

    كل مهمة تمر بالبوابات نفسها وبالترتيب نفسه. في كل بوابة عمل يقوم به المتحكّم، وحدٌّ لا يتجاوزه الوكيل.Every task passes the same gates in the same order. At each one, the controller does the work and the agent hits a hard limit.

    01

    العقد والسياسةContract & policy

    يثبّت النطاق والأوامر المسموحة والميزانية والموافقات، ويختم العقد ببصمة رقمية.Pins scope, allowed commands, budget and approvals, then seals the contract with a hash.

    لا يتلقى الوكيل أسرارًا ولا صلاحية اعتماد.The agent receives no secrets and no right to commit.

    02

    تنفيذ معزولIsolated execution

    يشغّل الوكيل في نسخة مؤقتة داخل عزل على مستوى نظام التشغيل، ويرفض المهمة إن تعذّر العزل.Runs the agent in a throwaway copy inside an OS jail, and refuses the task if the jail fails.

    لا يصل إلى قاعدة البيانات أو المفاتيح أو الحالة الرسمية للمشروع.It can't reach the database, the keys or the project's canonical state.

    03

    المرشّح الموثوقTrusted candidate

    يعيد المتحكّم حساب ما تغيّر فعلًا بنفسه.The controller recomputes what actually changed, on its own.

    لا يُصدَّق تقرير الوكيل عن عمله.The agent's report is never believed.

    04

    بوابة الأدلةEvidence gate

    يُجري كل فحص مطلوب على التغيير ذاته في نسخة جديدة، ويحفظ الدليل.Runs every required check on the exact change in a fresh copy and stores the evidence.

    لا يستطيع الوكيل وسم أي فحص بأنه ناجح.The agent can't mark any check as passed.

    05

    تدقيق للقراءة فقطRead-only audit

    يستدعي مدقّقًا مستقلًا على نسخة للقراءة فقط مع الفرق الذي حسبه المتحكّم.Calls in an independent auditor on a read-only copy, with the controller's own diff.

    موافقة المدقّق لا تحوّل دليلًا فاشلًا إلى نجاح.An auditor pass can't turn failed evidence into success.

    06

    اعتماد ذرّيAtomic promotion

    يعتمد التغيير فقط إن اجتاز كل البوابات، مع مراجعة بشرية مربوطة بهذا التغيير عند الحاجة، ويمكن توقيع القرار.Commits only when every gate passes, with a human review bound to this exact change where required. The decision can be signed.

    الوكيل لا يعتمد أي شيء.The agent commits nothing.

    الإغلاق عند الفشل.Fail-closed. فحص واحد فاشل يكفي لإيقاف الاعتماد. لا موافقة المدقّق ولا ثقة النموذج تتجاوز دليلًا فاشلًا.One failed check is enough to stop a commit. No auditor pass and no model confidence can override failed evidence.

    النتائج حتى الآنResults so far

    أرقام مؤرّخة، لا وعودDated numbers, not promises

    كل رقم هنا قيس في تاريخ محدد، وتفاصيله الكاملة في حزمة الأدلة.Every figure here was measured on a stated date. Full details are in the evidence pack.

    0 / 60تغيير خاطئ قُبلwrong changes accepted30 مهمة، فحوص مع مدقّق. الفحوص وحدها قبلت 30 من 30.30 tasks, checks plus auditor. Checks alone accepted 30 of 30.
    0 / 240محاولة إقناع نجحتpersuasion attempts succeededنصوص مزروعة في الكود لاستمالة المدقّق. كل مهمة نالت الحكم نفسه مرتين.Text planted in the code to sway the auditor. Each task got the same verdict twice.
    0 / 20تغيير خاطئ قُبل في المهام الأصعبwrong changes accepted on harder tasksمهام متعددة الملفات، بعد أن صار المدقّق يرى الفرق الذي حسبه المتحكّم.Multi-file tasks, once the auditor sees the controller's own diff.
    3,334اختبارًا آليًا ناجحًاautomated tests passمنها 1,733 اختبارًا أمنيًا.Including 1,733 security tests.
    7 / 8تشغيلات ميدانية مقبولةpilot runs acceptedعلى 3 مستودعات حقيقية. الرفض الوحيد كان صحيحًا لتغيير لم تُشغَّل فحوصه.On 3 real repositories. The one rejection correctly refused a change whose checks never ran.

    الاختبارات: 16 أكتوبر 2026. التجارب: 10 إلى 22 أكتوبر 2026. التجربة الميدانية: 31 أكتوبر 2026 (8 من 9 تشغيلات مخطط لها). مجموعة المهام مكتوبة لهذا المشروع، فالنتائج تخصّها ولا تمثّل معدل كشف عامًا.Tests: 16 Oct 2026. Experiments: 10 to 22 Oct 2026. Field pilot: 31 Oct 2026 (8 of 9 planned runs). The task corpus was written for this project, so results apply to it and are not a general detection rate.

    الحوكمة السعودية ككودSaudi governance as code

    ضوابط وطنية داخل مسار القرار نفسهNational controls inside the decision path

    ضوابط وطنية تعمل داخل مسار القرار نفسه، لحظة اتخاذه. 8 ضوابط في 3 حزم، والحزم تشدّد السياسة فقط، ولا توسّعها أبدًا.National controls that run inside the decision path itself, at the moment of the decision. 8 controls in 3 packs. Packs can only tighten policy, never widen it.

    NCA ECC-2:2024الضوابط الأساسية للأمن السيبرانيEssential Cybersecurity Controls

    المرجع الوطني للجهات في المملكة. ميثاق يحوّل ما يمسّ منها كتابة الكود، كحماية المفاتيح والبرمجة الآمنة، إلى بوابات لا يعبرها تغيير مخالف.The national baseline for organizations in the Kingdom. Mithaq turns the parts that touch code, such as key protection and secure coding, into gates a non-compliant change cannot pass.

    PDPLنظام حماية البيانات الشخصيةPersonal Data Protection Law

    كل تعديل يمسّ البيانات الشخصية مسؤولية قانونية. ميثاق يتحقق من وجود السجلات المطلوبة قبل أن يُعتمد التغيير.Every change that touches personal data is a legal responsibility. Mithaq checks that the required records exist before a change is committed.

    SDAIAمبادئ أخلاقيات الذكاء الاصطناعيAI Ethics Principles

    إنسان مسؤول عن قرار الآلة. ميثاق يضع شخصًا مسؤولًا أمام التغيير قبل اعتماده، مربوطًا بذلك التغيير بعينه.A human stays accountable for what machines decide. Mithaq puts an accountable person in front of the change before it is committed, bound to that exact change.

    الحزمةPackمثال على ضابطExample controlالنمطMode
    NCA ECC-2:2024رفض أي تغيير يضيف ملفات مفاتيح خاصة أو يعدّلهاRefuse changes that add or alter private-key filesتطبيق آليEnforced
    NCA ECC-2:2024موافقة على البرمجة الآمنة قبل الاعتمادSecure-coding sign-off before commitمراجعة بشريةHuman review
    PDPLوجوب وجود سجل أنشطة المعالجةProcessing-activities record must existتحقق آليVerified
    SDAIAشخص مسؤول يراجع التغييرAccountable person reviews the changeمراجعة بشريةHuman review

    هذه مواءمات تقنية أعدّها صاحب المشروع، ولم تخضع لمراجعة قانونية، ولا تمثّل شهادة امتثال.These are the maintainer's technical mappings. They have not had a legal review and are not a compliance certification.

    من يستفيدWho benefits

    سرعة الذكاء الاصطناعي، مع دليل لكل تغييرAI speed, with proof for every change

    المطوّرونDevelopers

    يحتفظون بسرعة الوكلاء، ويتخلّصون من الدمج الأعمى.Keep the speed of agents and drop the blind merges.

    فرق الأمنSecurity teams

    دليل محفوظ وسجل تدقيق لكل تغيير، وقرار يمكن توقيعه.Stored evidence and an audit trail for every change, with a decision that can be signed.

    المنظماتOrganizations

    عدة مزوّدين للذكاء الاصطناعي تحت سياسة واحدة ومتحكّم واحد.Several AI vendors under one policy and one controller.

    المدقّقون والجهات الرقابيةAuditors

    سجلات مربوطة بمتطلبات NCA وPDPL وSDAIA، جاهزة للمراجعة.Records mapped to NCA, PDPL and SDAIA requirements, ready to review.

    الوضع الحالي بصراحةCurrent status, plainly

    • نموذج أولي عامل (ما قبل ألفا)، على جهاز واحد ومشغّل واحد.Working prototype (pre-alpha), one machine, one operator.
    • ليس شهادة امتثال، ولم تخضع الحزم لمراجعة قانونية.Not a compliance certification. The packs have not had a legal review.
    • خارج النطاق حاليًا: الجهاز المخترَق، ومعالجة البيانات لدى المزوّد.Out of scope today: a compromised host, and provider-side data handling.

    أسئلة متوقعةQuestions we expect

    أسئلة يطرحها الزوار والمحكّمونWhat visitors and judges ask

    هل يحلّ ميثاق محل Claude Code أو Codex؟Does Mithaq replace Claude Code or Codex?

    لا. ميثاق يعمل فوق أدوات الوكلاء الحالية، مثل Claude Code وCodex وKimi وPi وGrok، ولا يستبدلها. الوكيل يواصل كتابة الكود، وميثاق يملك القرار: السياسة، وبيئة العمل، والأدلة، والتدقيق، والاعتماد النهائي.No. Mithaq sits above existing agent tools such as Claude Code, Codex, Kimi, Pi and Grok. The agent keeps writing code. Mithaq owns the decision: the policy, the workspace, the evidence, the audit and the final commit.

    ماذا لو انخدع المدقّق؟What if the auditor is fooled?

    المدقّق خط دفاع ثانٍ، ولا يملك وحده قرار القبول. الفحوص تُشغَّل أولًا، وأي فحص فاشل يوقف التغيير مهما قال المدقّق. وفي تجاربنا لم تنجح أي محاولة من 240 محاولة لاستمالته بنصوص مزروعة في الكود.The auditor is a second line of defense and never decides alone. Checks run first, and any failed check blocks the change whatever the auditor says. In our experiments, 0 of 240 attempts to sway it with text planted in the code succeeded.

    هل ميثاق شهادة امتثال؟Is Mithaq a compliance certificate?

    لا. الحزم مواءمات تقنية لمتطلبات مختارة من NCA وPDPL وSDAIA، ولم تخضع لمراجعة قانونية. ميثاق يضع هذه المتطلبات داخل مسار القرار ويُنتج سجلات تساعد المدقّق، لكنه لا يمنح شهادة.No. The packs are technical mappings of selected NCA, PDPL and SDAIA requirements, and they have not had a legal review. Mithaq puts those requirements into the decision path and produces records that help an auditor. It does not certify anything.

    هل يغادر الكود جهازي؟Does my code leave my machine?

    ميثاق نفسه يعمل على جهاز واحد، ولا يُمرَّر أي مفتاح API إلى بيئة الوكيل. أما الوكلاء والمدقّقون فهي أدوات المزوّدين التي تختارها، وطريقة تعامل المزوّد مع البيانات خارج نطاق ميثاق حاليًا.Mithaq itself runs on one machine, and API keys are never forwarded into the agent's environment. The agents and auditors are the vendor tools you choose, and how a provider handles data is out of Mithaq's scope today.

    هل جُرّب على مشاريع حقيقية؟Has it been tried on real projects?

    نعم. في 31 أكتوبر 2026 شُغّل على 3 مستودعات حقيقية، فقُبل 7 من 8 تشغيلات. والرفض الوحيد كان صحيحًا: تغيير لم تُشغَّل فحوصه، ولم يرفض ميثاق أي تغيير سليم.Yes. On 31 Oct 2026 it ran on 3 real repositories and accepted 7 of 8 runs. The one rejection was correct: a change whose checks never ran. Mithaq rejected no sound change.

    ما المرحلة الحالية، وما التالي؟Where is it today, and what's next?

    ميثاق نموذج أولي عامل (ما قبل ألفا) على جهاز واحد ومشغّل واحد. السؤال المفتوح الأهم هو قياس أثره على أخطاء الوكلاء الحقيقية، إذ لم يرتكب الوكيل في التجربة الميدانية خطأً يستدعي الإيقاف. حدودنا مكتوبة بوضوح في حزمة الأدلة، ونرحّب بكم في عرض موجّه في الجناح.Mithaq is a working prototype (pre-alpha) on one machine with one operator. The biggest open question is its effect on real agent mistakes, since the agent made none worth stopping in the field pilot. Our limits are written plainly in the evidence pack, and we offer a guided demo at the booth.

    زورونا في المعرضVisit us

    شاهد ميثاق يرفض ويعتمد، مباشرةWatch Mithaq refuse and commit, live

    في جناحنا نعطي الوكيل مهمة حقيقية، ونشاهد معًا كيف يُرفض العمل الذي لا يجتاز الفحص، وكيف يُعتمد التغيير السليم وحده. تعال بأسئلتك الصعبة، فالأدلة جاهزة.At our booth we hand an agent a real task and watch together as unchecked work is refused and only the sound change is committed. Bring your hardest questions. The evidence is ready.

    التاريخDates
    24 إلى 26 نوفمبر 2026، الرياض24–26 Nov 2026, Riyadh
    المسارTrack
    الأمن السيبراني وتقنيات الدفاعCybersecurity & Defense Technologies
    الفريقTeam
    SAIF140007