الانتقال إلى المحتوى الرئيسي
العودة إلى التوثيقAction Proof · التفويض المحدود
مواصفة

التفويض أثرٌ مصنوع، لا خيار في الإعدادات.

التفويض المحدود قدرة داخل Execution Authorization، لا فئة قائمة بذاتها. الـ Task Contract يؤطّر السلسلة؛ ولا يحلّ محلّ أي جزء منها. وكل خطوة تظلّ تنتج Execution Grant خاصًّا بها يُستخدم مرة واحدة، وAction Receipt خاصًّا بها.

تصميم

TaskContractV1

يربط العقد، في كائن موقَّع واحد: المستأجر، والفاعلين المسموح لهم بالعمل تحته، والـ Guardian والجمهور الموجَّه إليهما، والمراجعة، والخطوات وقيودها، والميزانية ووحداتها، ونافذة السريان، والسياسة والمانيفست الساريين، وعدّاد الإلغاء.

  • taskId · revision

    الهوية والإصدار. لا يُحرَّر عقد معتمَد في مكانه أبدًا: أي تغيير في خطوة ينتج مراجعة جديدة يجب النظر فيها من جديد.

  • tenant · guardianId · audience

    لمن هو، وأي نقطة تنفيذ واحدة يجوز لها استهلاكه. التفويض الواحد موجَّه إلى Guardian واحد.

  • actors[]

    كل فاعل يربط معرّفًا بمفتاح وببصمته. وتُطلَب الخطوة بإثبات حيازة ذلك المفتاح مقابل تحدٍّ جديد، يُستهلك على نحو ذرّي.

  • authority

    Set per operation by the protocol. The caller neither chooses it nor may degrade it within the same request, and an approved mandate must never lower a step's threshold. The Guardian must refuse, locally, any operation that is not eligible for delegation — even under a validly signed grant.

  • steps[]

    كل خطوة تسمّي عمليتها المعيارية ومزوّدها وقائمة مواردها وبصمة معاملاتها الدقيقة، وتحمل maxUses مثبَّتة على واحد.

  • budget

    Durable and atomic per tenant, task, revision and step. Committed means consumed plus anything reserved whose outcome is pending or uncertain, so one grant cannot reserve twice — and submitting the same task and revision with different content must not open a fresh budget.

  • issuedAt · expiresAt

    النافذة. وبعدها لا تُرسَل أي خطوة جديدة؛ لا مهلة سماح ولا تجديد من داخل المهمّة.

  • policyVersion · revocationVersion

    The signed local policy in force and the revocation counter. Revocation is checked as part of the send itself, not only before it; if storage or revocation is unavailable, no new effects go out.

التقاطع لا يزال ساريًا

الإذن الفعلي = التفويض ∩ grant ∩ السياسة المحلية الموقَّعة ∩ قيود المحوّل ∩ الميزانية ∩ الهوية ∩ السريان والإلغاء

The cloud never widens the local ceiling. A mandate is one more term in the intersection, never a way around it, and the Guardian has to enforce all of them before a provider is contacted — for the task runtime, gap 03 below says where that stands today.

آلة الحالات

تشغل المهمّة حالة واحدة بالضبط، وما يسجّله الدفتر هو الانتقال لا النيّة.

  • draft
  • approved
  • running
  • paused
  • completed
  • revoked
  • expired

استثناءات مقصودة

  • لا تفويض فرعي. تفويض واحد، وGuardian واحد، وميزانية واحدة؛ ولا تستطيع مهمّة أن تسلّم جزءًا منها إلى فاعل آخر ولا أن تقيم نقطة تنفيذ ثانية.
  • لا آثار مفتوحة. الخطوة بلا عملية معيارية وبلا بصمة معاملات ليست خطوة.
  • لا تفويض دائم. كل تفويض ينتهي، وانتهاؤه غير قابل للتجديد من داخل المهمّة.
  • ما يقرؤه الفاعل — مستندات، ومخرجات أدوات، ومحتوى ويب، وذاكرة — مدخلات، لا سلطة أبدًا. ولا يمكنه توسيع العقد.
  • المحوّل هو من يحدّد الأثر المعياري والحالة السابقة. ولا يُقبل بوصفه حقيقةً ملخّصُ وكيل، ولا مخطّط للقراءة فقط، ولا وجهة مأخوذة من المحتوى.

دور القارئ

القارئ المحلي شارح. في هذا الملف التعريفي، لا يحجب اكتشافٌ منفرد ولا امتناعٌ ولا عدمُ تقييم ولا قراءةٌ جزئية أثرًا دقيقًا سبق اعتماده والسماح به، ولا يُلغيه، ولا يفرض عليه موافقات إضافية. ولا تُرفَع السلطة قط لتعويض تنبيه، ولا تُخفَض لأن تنبيهًا لم يظهر. وتظلّ الهوية والتوقيع والميزانية والشرط المسبق والإلغاء تفشل في الاتجاه المغلق — وهذا ليس إذنًا بالتنفيذ دون ضوابط.

Known gaps in the local runtime

A local runtime for this profile exists and runs in simulation. A review on 2026-09-23 found these differences between the specification above and the code. They stay listed here until each one is closed with a regression test.

  1. 01Offline verification of a task bundle treats the expiry of a step's grant as a reason to reject, so a bundle stops verifying minutes after it was issued. A historical proof has to stay verifiable after the authorization it records has expired.
  2. 02The same verifier rejects correctly signed receipts whose status is failed, indeterminate, revoked or expired. An incomplete task has to be representable as incomplete, not as invalid.
  3. 03The task runtime does not yet apply the signed local policy, nor a local check that an operation is eligible for delegation. Until it does, the ceiling depends on whoever signs the grant.
  4. 04Revocation is optional in the task runtime, and it is checked before the provider preflight rather than at the moment of sending.
  5. 05The task ledger identifies a contract by its digest, so a different contract reusing the same task and revision would get its own budget. There is no transition yet from indeterminate to a reconciled result.
  6. 06A task bundle does not yet carry the human approval, the local policy applied or the durable claim, so on its own it does not prove separation of duties or the ceiling that bounded the task.

Planned next — not available today

Each item below is part of the current plan. None of it is available today, and each one will appear on the evidence page with its own level — design, simulated or real integration — when it closes.

  • Approval bound to the mandate: a single-use challenge tied to the contract digest, the revision, the approver and an expiry. In an organization the requester and the approver are different people, and an open session on its own does not count as a fresh approval.
  • A minimal console in securestamp.online to review a proposed task, approve or reject one exact revision, follow its budget and uncertain steps, request revocation and export the evidence.
  • Two labels that are never merged. Restricted call: only the tools and arguments the mandate allows reach the server — which says nothing about the server's internal effect. Exact effect: a verified adapter binds operation, resources, parameters and preconditions to the observed result. A route that bypasses the Guardian is labelled not covered.
  • The model is shown the approved snapshot of each tool's name, description and schema. A later change stops the affected task instead of reaching the model first.
  • Later, and not in the first profile: an authority diff. A task that needs something outside its mandate asks for that exact change; the new revision inherits what was consumed and what is uncertain, and never resets the budget.

الحالة

Design, with a local runtime in simulation. The schema and its invariants exist and are covered by tests, and the known gaps above are open. No delegated mandate has been executed against a real provider, so this profile is labelled simulated. A result is never extrapolated from a mock or from a different connector, and a legacy connector tested with MFA or quorum does not credit multi-step delegation.

أسئلة مفتوحة

Canonicalization, size and count limits, clock handling and the rejection of unknown fields are fixed in the local contract, and are to be published as versioned test vectors alongside the verifier. The verifier ships before the profile: nothing is emitted that cannot yet be verified independently — which is why the verifier gaps above are closed first.

التفويض المحدود — مواصفة Task Contract | SecureStamp Foundation