ملعب CoreGuard — دورة الاقتصاد الوظيفيةCoreGuard Playground — the job-economy cycle

افتح وظيفة بسقف، أقفل الميزانية عند النشر، اقتطع حصص الوكلاء الفرعيين، تنافس على آخر دولار في نفس الخطوة المتزامنة، مرّر بوابة الدفع قبل التوقيع، سلّم عمل، وشاهد ما يفعله الحكم بالمال — كل ذلك على وحدات المحرك الحقيقية الملتزمة تعمل في تبويبك. لا مفتاح، لا شبكة، لا مال: DRY-RUN. Open a job with a ceiling, lock the budget at publish, carve sub-agent shares, race for the last dollar in the same synchronous step, pass the payment gate before any signature exists, deliver work, and watch what the verdict does to the money — all on the real committed engine modules, running in your tab. No key, no network, no money: DRY-RUN.

engine: … flow: idle money: —

١ · افتح الوظيفة1 · Open the job

سقف واحد يخدم التسوية ومكالمات العدّاد معًا — نفس التعويض الذي يفشل مع سقف المحفظة.One ceiling serves settlements and metered cost alike — the thing per-wallet caps cannot do.

٢ · اقتطع حصة وكيل فرعي2 · Carve a sub-agent share

الحصة تُخصم من المتبقي الفعلي في لحظة الافتتاح — لا يوجد مسار من نطاق إلى متبقٍ غير مقتطع، ولا إلى وظيفة أخرى.The share is debited from the true remainder at open time — no path from a scope to the unallocated remainder, and none to another job.

عدّاد النموذجThe metered spigot

مكالمات API المدفوعة بمفتاح لا تُحصى لدى سقف المحفظة — هنا كل سنت يُحتسب على السقف نفسه فور وقوعه.API-key model calls never counted against a wallet cap — here every metered cent commits onto the same ceiling as it happens.

٣ · السباق على آخر دولار — المرونة الذرية أمام عينيك3 · The last-dollar race — atomicity, visibly

سباق A و BRace A & B

كلا الحجز في نفس الخطوة المتزامنة — بلا مهلة ولا رد اتصال بين «هل يتسع؟» و«خُذ». الفائز يأخذ، والآخر يُرفض برمز مسمّى وبلا أثر.Both reserves execute in one synchronous step — no await, no callback between "does it fit" and "take it". One wins; the other is REFUSED with a named code and zero trace left behind.

شريط الوظيفةThe job waterfall

scopesharereservedcommittedavailstate
—

٤ · بوابة الدفع: ما لا يتسع يُرفض قبل وجود أي توقيع (X402/1)4 · The payment gate: a cost that does not fit is refused BEFORE a signature exists (X402/1)

سعر مقفول من المالكAn owner-locked price

توقيعان لتحدٍّ واحد = دفعتان لعملية واحدة → CHALLENGE_ALREADY_RESERVED. وما لم يُحجز لا يُوقَّع، وما يُوقَّع يحمل معرّف حجز.Two signatures for one challenge = two payments for one → CHALLENGE_ALREADY_RESERVED. What cannot be reserved carries no signature; what is signed carries a reservation id.

عداد البوابةGate metrics

—

٥ · التسليم والقبول (CG-ACC/1) — وما يفعله UNKNOWN بالمال5 · Delivery & acceptance (CG-ACC/1) — and what UNKNOWN does to the money

اعقد المواصفة وسلّمBuild the spec and deliver

أي FAIL يرفض · كل PASS يقبل · غير ذلك UNKNOWN. لا يوجد مسار من «أغلب الفحوص مرت» إلى ACCEPTED، ولا من UNKNOWN إلى شيء آخر. UNKNOWN: المال يبقى مقفلًا ويُسجَّل مقفلًا.any FAIL rejects · every PASS accepts · anything else is UNKNOWN. There is no path from "most checks passed" to ACCEPTED, and no path from UNKNOWN anywhere else. UNKNOWN: the money stays locked, and stays recorded as locked.

ما فعله الحكم بالمالWhat the verdict did to the money

—

سجل الأحداث — لا صمت، كل رفض برمز مسمّىEvent log — never silent, every refusal by name