شعار Compliance

Compliance

مؤسسةشائع
kortix-ai
compliance

Customer-facing compliance duties that code runs: the subprocessor list and its automatic 30-day DPA notice, Terms of Service changes, customer logo use (publicity), and the audit evidence it leaves. Load WHENEVER you add, remove or change a subprocessor (a new model provider, host, email or analytics vendor), route customer data to a new third party, touch apps/web/.../legal/subprocessors, packages/shared/src/subprocessors.ts or apps/api/src/billing/services/subprocessor-notices.ts, the Terms of Service text or packages/shared/src/terms.ts, or need proof for an auditor that customers were notified. Load too for staff access to a customer account: act-as impersonation, 'Open as admin', and its audit trail; and for a penetration test report: the status of each finding and the risks Kortix accepts. Load too for the 90-day deletion of a terminated account's data (the retention backstop, kortix.retention_erasures, RETENTION_ERASURE_MODE) and its monthly evidence. Load too for the Google OAuth verification of the Kortix Google connectors: a Google scope change, the privacy policy's Google user data section, the demo video, the yearly CASA security assessment.

نظرة عامة

الناشرkortix-ai
المستودعCompanyOS
اسم المهارةcompliance
النجوم
20.8K
التفريعات
3.5K
الملفات المرفقة
2
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 2

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها kortix-ai على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Compliance في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/kortix-ai/CompanyOS/tree/dev/.agents/skills/compliance
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kortix-ai/CompanyOS.git /tmp/CompanyOS
mkdir -p .claude/skills
cp -r /tmp/CompanyOS/.agents/skills/compliance .claude/skills/compliance
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Compliance في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Compliance تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Compliance بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Compliance

The Data Processing Addendum (DPA) promises three things that code keeps:

  • Section 7.2 / Annex III: /legal/subprocessors lists every third party that processes customer personal data.
  • Section 7.3: a new subprocessor gets at least 30 days' notice before it processes customer personal data.
  • The DPA and the Data Retention Policy: a terminated account's personal data is deleted within 90 days of the termination (section "Delete a terminated account within 90 days").

Add a subprocessor

A new vendor that sees customer data is a subprocessor: a model provider for Kortix-managed models, a host, an email, log or analytics vendor. A model a customer reaches with their own key is not one.

  1. Sign or accept the vendor's DPA. For an inference vendor, confirm zero data retention for our account.
  2. Add the row to packages/shared/src/subprocessors.ts. Use the vendor's legal entity name from its terms. Set addedOn to the day the PR merges. Move SUBPROCESSORS_UPDATED to the same day.
  3. Merge to dev. The row ships with the next prod release.
  4. Send the vendor no customer data before the row's effective date (addedOn + 37 days). The page shows it as "From ". Managed-model inference is served by Platinum Inference: give the Platinum team the same date, and Platinum Inference holds the change back until then.

A change to an existing row (purpose, location) needs no addedOn and sends no email. Removing a vendor needs no notice: delete the row.

What runs by itself

runSubprocessorNoticeSweep (apps/api/src/billing/services/subprocessor-notices.ts) runs hourly in the billing worker, on prod only (INTERNAL_KORTIX_ENV=prod).

  • A row is open from the first sweep that sees it on prod until its effective date. The release has 7 days to reach prod, so every customer gets 30 to 37 days.
  • Each open notice goes once to each owner and admin of every paid account (credit_accounts.tier not free or none): one email per person, listing their paid workspaces. Reply-To is privacy@kortix.com: a reply is an objection. Claim rows in kortix.chat_event_dedup (legal:subprocessor-notice:<addedOn>:…, per account, per person as a SHA-256 of the address, and per report) keep every email once-only across sweeps, replicas and retries. A person has a short send claim while a sweep sends (taken over after 15 minutes if that sweep died) and a :sent row once delivered; only the :sent row counts as notified. An account whose manager's email is still in flight in another sweep is left to the next sweep.
  • An account that turns paid later in the window is covered by a later sweep. A manager who already has the notice gets no second email.
  • A delivery failure is retried by the next sweep for that recipient only. The one exception is an address the transport itself refuses (a reserved address): it is not retried and is counted as undelivered. Every provider error (any status, a 422 included, since it does not prove the address is bad) is retried hourly until the notice takes effect.
  • Each covered account gets one audit event legal.subprocessor_notice.sent (resource_id = addedOn, output_summary = recipients delivered, previously_notified = managers who had it from an earlier sweep, undelivered, effective date, vendor names). It is written once no temporary failure is left. The customer sees it in the account's audit log.
  • privacy@kortix.com gets one report per notice, for the sweep that started its coverage (the report-due claim row keeps that time). A failed report is retried by later sweeps with the same notice period. Subject "Subprocessor notice gave only N days" means the release took more than 7 days: hold the vendor until 30 days after the first notice email and move addedOn.

Evidence for an auditor

kortix.audit_events holds the last 14 days (HOT_DAYS, apps/api/src/shared/audit-archive/format.ts). Older weeks, up to 365 days, are in the account's archive: read them with GET /v1/accounts/<account_id>/audit/export?action=legal.subprocessor_notice.sent (owner or admin, Enterprise), or from the <env>-audit-archive bucket (audit/<account_id>/<yyyy>/<week>.<part>.jsonl.gz). The query below finds the last 14 days only.

sql
select account_id, created_at, output_summary
from kortix.audit_events
where action = 'legal.subprocessor_notice.sent' and resource_id = '<addedOn>'
order by created_at;

The privacy@kortix.com report gives the first sweep's total; the audit events give every account.

Tests

apps/api/src/__tests__/integration-subprocessor-notices.test.ts: pnpm test -- --db-only integration-subprocessor-notices.

Change the Terms of Service

The text is apps/web/src/app/[locale]/(public)/(seo)/legal/terms-of-service.ts. The version is packages/shared/src/terms.ts.

Terms section 16: a material change needs 30 days' notice to self-serve customers. A signed Order keeps the Terms version it names.

  1. Edit the text. Update the version line at the top of TERMS_OF_SERVICE.
  2. In terms.ts: move TERMS_PREVIOUS_VERSION to the old version, set TERMS_VERSION to the merge day and TERMS_EFFECTIVE 37 days later.
  3. If the change affects what a person accepts at signup, change the consent line too (packages/ui/src/internal/auth/auth-card-shell.tsx). The publicity clause has no line of its own on /auth; the Terms carry it.
  4. Merge to dev. The notice ships with the next prod release.

Kortix does not email a Terms change to its users. A sweep that emailed every signed-up user (#11004) used up the SES 24-hour quota and the Resend monthly quota on 2026-10-29, and magic-link sign-in failed on prod until it was removed. Bulk mail never goes through the transactional email chain: that chain carries sign-in mail. Past sends keep their legal.terms_notice.sent audit events.

Customer logos (Terms section 10, from version 2026-10-28)

The clause covers every account on every plan, free plans and trials included. Kortix may show the name and logo of the customer's organization, also one known only from a user's email domain, in customer lists. It never publishes the name of an individual person, and never a quote, case study or endorsement without written approval. An opt-out arrives at legal@kortix.com: remove the name and logo from Kortix websites within 30 days. Never use a logo before TERMS_EFFECTIVE, or for a customer whose signed Order excludes it.

Delete a terminated account within 90 days

Terminated means closed (decision D6b, 2026-10-14): an open kortix.account_deletion_requests row. POST /v1/account/request-deletion writes it with a 14-day grace; deleting the auth user writes it due now. The account closes at scheduled_for. A plan cancellation, a downgrade to Free, a payment failure or an idle account is not a termination.

Two workers delete a closed account, both through runAccountDeletion (apps/api/src/billing/services/account-deletion.ts):

  1. account-deletion (every 15 min): a request due within the last 2 days.
  2. retention-erasure (daily, apps/api/src/billing/services/retention-erasure.ts): every request still open RETENTION_ERASURE_AFTER_DAYS (default 80) after scheduled_for. It skips an account that still acts live (a paid plan whose payment is not cancelled, or a session or turn after the close) and records skipped_live for a person.

RETENTION_ERASURE_MODE: dry_run (default) records would_erase and deletes nothing; execute deletes; off stops the tick. ACCOUNT_DELETION_SWEEP_PAUSED=true forces dry_run.

Monthly evidence

One kortix.retention_erasures row per account, UTC day and mode: ids, dates, outcome, no personal data. It outlives the account.

sql
select account_id, request_id, requested_at, closed_at, run_on, mode, outcome, error,
       run_on - closed_at::date as days_after_close
from kortix.retention_erasures
where run_on >= date '<YYYY-MM-01>' and run_on < date '<YYYY-MM-01>' + interval '1 month'
order by run_on, account_id;

An erased row is the proof. A failed or skipped_live row past day 80 is an open item for a person: fix the failure, or decide the live account.

Tests: pnpm test -- --db-only integration-retention-erasure.

Staff access to a customer account (act-as)

A platform admin enters a customer account only through an act-as grant (kortix.impersonation_grants, apps/api/src/shared/impersonation.ts). There is no other door: the read-only x-kortix-admin-bypass header was retired on 2026-10-19 and the API ignores it.

  • Two entry points, one grant: Admin → Accounts → Open as account ({account_id}), and "Open as admin" on a project's access screen ({project_id}; the API resolves the project's account).
  • A grant lives at most 1 hour. The web app shows a banner while it is live. Exit revokes it. A new grant revokes the one it replaces.
  • Inside the grant the operator acts as the account owner and holds session oversight: a member's private session opens. Routes that create access outliving the grant (tokens, members, SSO, shares, connections) answer 403.
  • The customer's audit log records admin.impersonate.start, .stop, one admin.impersonate.action per write, and project.admin_oversight_session_read the first time each private session opens in an hour (per API task).
sql
select created_at, action, actor_user_id, metadata
from kortix.audit_events
where account_id = '<account_id>' and action like 'admin.impersonate.%'
order by created_at desc;

That query reaches 14 days back. Older events: the export, GET /v1/accounts/<account_id>/audit/export?action=admin.impersonate..

Contract: flows IMP-1 and IMP-2 (pnpm test -- --id IMP-2).

Google OAuth verification

The Kortix Google connectors (Gmail, Calendar, Drive, Docs, Sheets) use the GCP project kortix-connectors. Google must verify it before prod uses it, and its restricted scopes need a CASA security assessment every 12 months. Scopes, justifications, the demo video, the privacy policy section, the obligations and the status log are in references/google-oauth-verification.md. A new Google scope changes that file, the privacy policy and the Data Access page in the same PR.

Penetration test findings

The register of third-party pentest findings. One row per finding, with its status and the evidence. An accepted risk names the reason and the control that limits it. The report itself stays out of the repository: it holds tokens and account ids.

Web app pentest, July 2026 (scope: dev.kortix.com, dev-api.kortix.com)

#FindingStatusEvidence
1BOLA: GET /v1/billing/account-state returned the billing state on membership alone (Medium, CVSS 5.3)Fixed 2026-10-21The route returns the money fields only when authorize grants billing.read. Every other caller gets the gating view (can_run, plan, entitlements). Flow BILL-21. Since 2026-08-19 every built-in account role holds billing.read, so a plain member reading the state is intended.
2Account name accepts HTML (Informational)Fixed 2026-10-21accountNameError refuses <, > and control characters on create and rename. Every email template escapes the name (escapeHtml). Flow ACCT-4.
3JWTs signed with HS256 (Informational)Staging fixed 2026-10-21; prod after the next releaseEvery hosted project signs user tokens with ES256 since 2026-08-21. 2026-10-21: dev, staging and prod moved to sb_publishable_ / sb_secret_ keys with zero downtime (325 probe checks, 0 failures), and the API stopped trusting the legacy secret itself (random SUPABASE_JWT_SECRET in every hosted env). Staging: legacy API keys disabled and the HS256 secret revoked; a token forged with the old secret for a real session gets 403 from Supabase and 401 from the API. Prod and dev wait for the mobile app to ship the publishable key. Procedure: references/supabase-legacy-key-retirement.md.
4Concurrent logins allowed (Informational)AcceptedUsers run the web app, desktop, CLI and mobile at once; a one-session rule breaks that. Controls: account MFA enforcement, SSO enforcement, admins list and revoke any member session (GET /v1/accounts/:accountId/iam/sessions, POST …/iam/sessions/:sessionId/revoke).
5Session cookie without Secure (Informational)Fixedapps/web/src/lib/supabase/client.ts and server.ts set Secure on HTTPS. HSTS is on at the edge.
6Session cookie without HttpOnly (Informational)AcceptedThe Supabase browser client reads the session from JavaScript (client.ts comment). Controls: React output encoding, server-side input validation (#2), SameSite=Lax, short-lived access tokens. Removing it means a server-only session, a separate project.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة ما دامت المهارة محمّلة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Compliance؟

Customer-facing compliance duties that code runs: the subprocessor list and its automatic 30-day DPA notice, Terms of Service changes, customer logo use (publicity), and the audit evidence it leaves. Load WHENEVER you add, remove or change a subprocessor (a new model provider, host, email or analytics vendor), route customer data to a new third party, touch apps/web/.../legal/subprocessors, packages/shared/src/subprocessors.ts or apps/api/src/billing/services/subprocessor-notices.ts, the Terms of Service text or packages/shared/src/terms.ts, or need proof for an auditor that customers were...

لماذا تستخدم Compliance على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Compliance عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Compliance في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/kortix-ai/CompanyOS/tree/dev/.agents/skills/compliance. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Compliance؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Compliance؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Compliance معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Compliance مجانية؟

نشرها kortix-ai على GitHub. راجع المستودع للاطلاع على شروط الترخيص. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇