k-anonymity
TR: k-anonimlikKavramHukuk, vergi ve ödemeDiğer adlar: k-anonimlik, three-client privacy floor, three-client minimum rule, three-client rule, minimum of three clients, N >= 3, insufficient sample, 3 müşteriden az olduğu için gizli
Kalıcı bağlantıPublishing an aggregate statistic only when at least k distinct entities contribute to it, so no single entity's private numbers can be deduced.
An average or median over one or two clients leaks confidential business data: if a marketer has only one client and their public dossier shows a median CPA change of minus 18%, anyone who knows who that client is just learned that client's private ad performance. Setting a minimum cohort size of k = 3 (N >= 3) hides sensitive client-derived statistics until at least three verified clients stand behind the number. For example, a marketer with two verified clients sees their retention and efficiency metrics hidden with a clear notice until a third verified client joins the cohort. This protects client confidentiality without blocking the marketer's identity or diagnostic badges.
Bu depoda nasıl kullanılır
Built and verified locally at both the database layer (docs/schema.sql CHECK constraint verified_clients_count >= 3) and TypeScript evaluator (packages/payments/src/marketer-badges.ts, COHORT_PRIVACY_MIN_CLIENTS = 3).
İlgili dosyalar:docs/schema.sqlpackages/payments/src/marketer-badges.tspackages/payments/src/cogs-and-trust-gates.ts
A distributed event-streaming platform for high-throughput message logs, explicitly kept out of this architecture.
Running a Kafka cluster adds brokers, coordination state, consumer-offset management, and dual-write risks between the database and the message stream. For SMB operational volumes, PostgreSQL tables with partial indexes, transactional outbox rows, and FOR UPDATE SKIP LOCKED provide atomic durability with far less operational risk. For example, enqueuing conversion feedback directly into conversion_feedback_queue inside PostgreSQL avoids dual writes to Kafka.
Bu depoda nasıl kullanılır
AGENTS.md rule 20 prohibits adding Kafka without a measured bottleneck and a written architecture decision record.
İlgili dosyalar:AGENTS.md
KDV-2 return
TR: KDV-2 beyannamesiKavramHukuk, vergi ve ödemeDiğer adlar: KDV-2, KDV-2 beyannamesi
Kalıcı bağlantıThe Turkish tax return on which a business buyer declares and pays the withheld share of VAT directly to the Revenue Administration.
When partial VAT withholding (KDV tevkifatı) applies to a B2B service invoice, the buyer does not pay the full VAT to the seller; instead, the buyer withholds the statutory fraction and pays it directly to the tax office via the KDV-2 return (and simultaneously deducts it as input VAT on KDV-1). For example, on a ₺22,000 commercial ad retainer (₺4,400 total VAT at 20%), the business pays 7/10 of the VAT (₺3,080) at checkout and reports the remaining 3/10 (₺1,320) on its monthly KDV-2 return. Showing the exact KDV-2 figure on the contract screen saves the buyer's accountant from manual adjustments.
Bu depoda nasıl kullanılır
Built and verified locally in packages/payments/src/tr-tax-ledger.ts (kdvTevkifatBuyerKdv2Minor in buildTwoLegInvoiceDrafts) and design/WORDS.md (esc.row_tevkifat_buyer); YMM verification is pending on issue 3 (C6).
İlgili dosyalar:packages/payments/src/tr-tax-ledger.tsdocs/COUNSEL-BRIEF.mddesign/WORDS.md
keep-alive timer
KavramOperasyon ve doğrulamaDiğer adlar: unref, keepAlive
Kalıcı bağlantıA lightweight timer whose sole purpose is keeping a Node.js daemon alive while it waits for work or reconnects.
Node.js automatically exits once no active handles or timers remain on its event loop. If a background worker loses its only open database socket during a PostgreSQL restart, the event loop can empty and exit milliseconds later even though the pool error was handled. Keeping a referenced timer anchors the process until shutdown is requested, whereas calling unref() on an auxiliary handle lets the process exit normally.
Bu depoda nasıl kullanılır
During Wave 45 (finding P-12), apps/api/src/worker-main.ts added a keep-alive timer so the daemon stays running through a database restart instead of exiting 12 ms after its sockets close.
İlgili dosyalar:apps/api/src/worker-main.tsapps/api/src/platform/server-lifecycle.ts
KEK continuity
TR: KEK sürekliliğiKavramKriptografi ve gizlilerDiğer adlar: master key continuity
Kalıcı bağlantıEnsuring the master key version that wrapped stored data keys remains available across restarts and backup restores.
Database backups store only wrapped data keys and ciphertext, never the master KEK. If you restore last week's PostgreSQL backup onto a fresh server without the matching KEK version in the keyring, every restored OAuth token is permanently locked. For example, a disaster-recovery drill must verify both that PostgreSQL restores cleanly and that the archived KEK version still unwraps vault.workspace_deks.
Bu depoda nasıl kullanılır
Verified by the PostgreSQL backup-and-restore test in packages/vault/test/backup-kek-continuity-pg.test.mjs, while production key backup custody remains an open operational decision.
İlgili dosyalar:packages/vault/test/backup-kek-continuity-pg.test.mjs
key (cryptographic key)
TR: anahtarKavramKriptografi ve gizlilerDiğer adlar: key, secret key, encryption key
Kalıcı bağlantıA secret sequence of random bytes that controls an encryption, HMAC, or signing algorithm.
Modern cryptography assumes attackers know the exact algorithm and relies entirely on keeping the key secret and unpredictable. Keys must be generated from a cryptographically secure random source and have enough length, such as 32 random bytes (256 bits) for AES-256-GCM or HMAC-SHA-256. For example, an all-zero 32-byte buffer has the right length but zero unpredictability, so the vault rejects it as a weak key.
Bu depoda nasıl kullanılır
Validated by validateKey256 in packages/vault/src/envelope.ts (32 bytes, non-zero) and MIN_SIGNING_SECRET_BYTES = 32 in apps/api/src/platform/runtime-config.ts.
İlgili dosyalar:packages/vault/src/envelope.tsapps/api/src/platform/runtime-config.ts
key custody
TR: anahtar saklamaKavramKriptografi ve gizlilerDiğer adlar: KEK custody, master key custody
Kalıcı bağlantıThe operational rules for who holds a master key, where its offline recovery copy lives, and how access is audited.
Good encryption math cannot save a system if its master key sits on one developer's laptop or vanishes with no offline copy. Key custody defines which cloud KMS, HSM, or split-custody vault holds the master KEK, how operators rotate it, and how disaster recovery retrieves it without exposing it to daily logs. For example, losing the only copy of VAULT_MASTER_KEK_BASE64 breaks every merchant's stored OAuth tokens at once.
Bu depoda nasıl kullanılır
Designed as an open pre-production decision: today the API and dispatch processes read VAULT_MASTER_KEK_BASE64 from environment configuration, and formal KMS or offline backup custody is not yet wired.
İlgili dosyalar:apps/api/src/platform/runtime-config.tsdocs/adr/0004-zero-password-vault-and-force-rls.md
key encryption key
KEKTR: anahtar şifreleme anahtarıKavramKriptografi ve gizlilerDiğer adlar: master key, master KEK, vault master key, VAULT_MASTER_KEK_BASE64
Kalıcı bağlantıThe top-level 256-bit master key that wraps workspace data keys and never gets written into the database.
A key encryption key sits at the root of an envelope encryption hierarchy and encrypts only other keys, never bulk customer payloads. Keeping the KEK in process configuration or a KMS while wrapped DEKs live in PostgreSQL ensures a database dump alone cannot unlock any secret. For example, the vault passes the 32-byte KEK to AES-256-GCM to produce a 63-byte wrapped DEK, and refuses to start in production if the KEK is missing, wrong-length, or all zeros.
Bu depoda nasıl kullanılır
Loaded via VAULT_MASTER_KEK_BASE64 in apps/api/src/platform/runtime-config.ts (API and apps/api/src/dispatch-main.ts only; the general background worker holds no KEK) and used in packages/vault/src/envelope.ts.
İlgili dosyalar:packages/vault/src/envelope.tsapps/api/src/platform/runtime-config.tsapps/api/src/dispatch-main.ts
key management service
KMSTeknolojiKriptografi ve gizlilerDiğer adlar: cloud KMS, external KMS
Kalıcı bağlantıA managed service that stores master keys, enforces access policy, logs key use, and wraps or unwraps data keys over an API.
A key management service separates master key storage from application hosts so the raw KEK never lives in a server's environment variables. When a server needs to decrypt a tenant secret, it asks the KMS to unwrap the workspace DEK under strict IAM permissions and audit logging. For example, migrating a base64 environment KEK into AWS KMS, GCP Cloud KMS, or HashiCorp Vault Transit lets operators rotate root keys centrally.
Bu depoda nasıl kullanılır
Not built yet; docs/adr/0004-zero-password-vault-and-force-rls.md leaves external KMS integration as a planned upgrade before live customer deployment.
İlgili dosyalar:docs/adr/0004-zero-password-vault-and-force-rls.md
key parity
TR: anahtar denkliğiSüreçÖn yüz ve tasarımDiğer adlar: i18n key parity, TR/EN key parity, check-i18n
Kalıcı bağlantıThe automated gate checking that every string key exists in both Turkish (WORDS_TR) and English (WORDS_EN) with matching slots and zero banned copy.
When teams add a new label in one language and forget the other, switching languages either crashes, displays a raw dot-key like apr.title, or silently leaks untranslated text. Running an automated parity check in CI verifies a strict 1-to-1 key match across both dictionaries alongside tone rules such as zero exclamation marks and zero working-name leaks. For example, adding apr.retry_btn only to WORDS_TR fails tools/check-i18n.mjs immediately before commit.
Bu depoda nasıl kullanılır
Enforced by tools/check-i18n.mjs over apps/web/src/lib/words.ts and design/WORDS.md.
İlgili dosyalar:tools/check-i18n.mjsapps/web/src/lib/words.ts
key ring
TR: anahtarlıkKavramKriptografi ve gizlilerDiğer adlar: keyring, KEK keyring, KekKeyring
Kalıcı bağlantıA version-indexed map of master keys held in memory so older wrapped keys stay decryptable while new wraps use the active version.
Rotating a master key cannot happen instantaneously across every row, so a process needs simultaneous access to both the outgoing key version and the new active version. A key ring maps each integer key version to its 32-byte KEK and flags which version wraps newly created data keys. For example, during a cutover from version 1 to version 2, the key ring unwraps existing v1 DEKs while wrapping new ones under v2.
Bu depoda nasıl kullanılır
Built as KekKeyring in packages/vault/src/envelope.ts and exercised by packages/vault/src/rotation.ts; live API runtime currently runs only version 1 (SUPPORTED_VAULT_KEK_VERSION = 1).
İlgili dosyalar:packages/vault/src/envelope.tspackages/vault/src/rotation.ts
key rotation
TR: anahtar döndürmeSüreçKriptografi ve gizlilerDiğer adlar: rotation, KEK rotation, DEK rotation
Kalıcı bağlantıReplacing an active cryptographic key with a fresh version without downtime to limit blast radius and meet compliance schedules.
Key rotation comes in two flavours under envelope encryption: KEK rotation re-wraps existing data keys under a new master key without touching encrypted payloads, whereas DEK rotation generates a brand-new workspace key and re-encrypts that workspace's rows. Separating the two keeps routine master-key rotation fast while still allowing targeted recovery if a single workspace key is ever suspected exposed. For example, rotateKekBatch moves every workspace DEK from KEK v1 to v2 with zero payload re-encryptions.
Bu depoda nasıl kullanılır
Core library functions (rewrapWorkspaceDek, rotateKekBatch, rotateWorkspaceDek) are built and unit-tested in packages/vault/src/rotation.ts, while an operator rotation runbook and multi-version runtime config are not wired yet.
İlgili dosyalar:packages/vault/src/rotation.tspackages/vault/test/vault.test.mjs
key version
TR: KEK sürümüKavramKriptografi ve gizlilerDiğer adlar: KEK version, kek_version, kekVersion
Kalıcı bağlantıAn integer tag stored inside and alongside each wrapped key identifying which master key version must unwrap it.
Without a version number next to encrypted key material, a server holding multiple master keys would have to guess which key wrapped a row. Embedding a 2-byte big-endian kekVersion inside the wrapped DEK header and binding it into AAD makes key selection exact and tamper-evident. For example, a wrapped DEK header starting with 0x01 0x00 0x02 tells the key ring to unwrap with KEK version 2 and rejects any attempt to tamper with the version bytes.
Bu depoda nasıl kullanılır
Encoded as a 16-bit unsigned integer inside the 63-byte wrapped DEK binary layout and bound into AAD in packages/vault/src/envelope.ts.
İlgili dosyalar:packages/vault/src/envelope.ts
key wrapping
TR: anahtar sarmaSüreçKriptografi ve gizlilerDiğer adlar: wrap, unwrap, wrapped DEK, wrapped data key, wrapped_dek, wrappedDek, sarılı DEK
Kalıcı bağlantıEncrypting a data encryption key under a master key so the data key can be stored safely in the database.
Key wrapping turns a raw 32-byte DEK into an authenticated ciphertext package that can sit in PostgreSQL without exposing the key itself. Unwrapping reverses the step inside application memory using the matching master KEK and workspace AAD, then the raw DEK is zeroised as soon as decryption finishes. For example, wrapDek packs a 1-byte format version, 2-byte KEK version, 12-byte IV, 16-byte tag, and 32-byte encrypted DEK into an exact 63-byte buffer.
Bu depoda nasıl kullanılır
Built in packages/vault/src/envelope.ts (wrapDek, unwrapDek, WRAPPED_DEK_TOTAL_BYTES = 63) and stored in vault.workspace_deks.wrapped_dek in docs/schema.sql.
İlgili dosyalar:packages/vault/src/envelope.tsdocs/schema.sql
keyboard access
TR: klavye erişimiKavramÖn yüz ve tasarımDiğer adlar: keyboard-first flow, keyboard semantics, keyboard navigation
Kalıcı bağlantıEnsuring every interactive control can be reached, activated, and dismissed using only a keyboard in logical reading order with visible focus.
Keyboard access serves not only blind and motor-impaired users, but also power operators and switch-control users who never touch a mouse. Building on native buttons and links, following ARIA APG arrow-key rules for complex widgets, and verifying focus order prevents dead ends and unclickable boxes. For example, an operator can open a command bar with Ctrl+K, pick an approval with Arrow keys, review it, and close the drawer with Escape without touching a mouse.
Bu depoda nasıl kullanılır
Checked statically by tools/check-a11y-static.mjs (rejecting clickable div/span elements and positive tabIndex), tested in packages/ui/test/, and audited live across routes.
İlgili dosyalar:tools/check-a11y-static.mjspackages/ui/test
keyboard focus
TR: klavye odağıKavramÖn yüz ve tasarımDiğer adlar: focus, focused element
Kalıcı bağlantıThe single interactive element on a page currently receiving keyboard input, moved forward with Tab and backward with Shift+Tab.
At any moment at most one element holds keyboard focus (document.activeElement), and pressing Enter, Space, or typing characters acts directly on that element. Losing focus during dynamic updates—such as deleting a row or closing a drawer—disorients keyboard users and forces them to navigate from the top again. For example, moving focus explicitly into an opened modal and returning it to the trigger on close keeps keyboard flow predictable.
keyword cannibalisation
KavramBağlayıcılar ve CRMDiğer adlar: keyword cannibalization
Kalıcı bağlantıTwo or more pages on the same website competing for the same search query and weakening each other rankings.
When a shop publishes a category page, a tag page and a blog article all targeting the exact same Turkish search phrase, Google may split clicks and links between them or flip-flop which URL appears in results. Consolidating intent onto one primary page—via stronger internal linking, clearer meta titles or canonical tags—usually outperforms fighting yourself. For example, if both /deri-cuzdan and /blog/deri-cuzdan-modelleri alternate at positions 9 and 12 for "deri cüzdan", separating transactional and informational copy lets the category page rank cleanly. Detecting duplicate titles and overlapping Search Console queries surfaces cannibalisation early.
Bu depoda nasıl kullanılır
Diagnosed from first-party HTML and Search Console signals rather than fabricated keyword scores (apps/seo-worker/src/auditor.ts).
İlgili dosyalar:apps/seo-worker/src/auditor.ts
keyword difficulty
KDTR: anahtar kelime zorluğuMetrikBağlayıcılar ve CRM
Kalıcı bağlantıA third-party SEO vendor estimate of how hard it is to rank for a search term, left null without a paid provider.
Commercial SEO tools compute a 0-to-100 keyword difficulty (KD) score from their proprietary web-wide backlink indexes. Because a merchant own Search Console and HTML crawl do not contain competitors full backlink graphs, any standalone product claiming to show KD without a licensed data vendor is guessing or fabricating numbers. For example, ikas-seo-patch-policy.ts enforces keyword_difficulty: null and paid_data_required: true, rejecting even a placeholder 0 so owners never mistake a missing metric for an easy keyword. Honest dashes beat fake scores.
Bu depoda nasıl kullanılır
Enforced as strictly null (paid_data_required: true) in apps/seo-worker/src/ikas-seo-patch-policy.ts.
İlgili dosyalar:apps/seo-worker/src/ikas-seo-patch-policy.ts
kibibyte
KiBTR: kibibaytStandartÖn yüz ve tasarımDiğer adlar: KiB
Kalıcı bağlantıAn exact binary unit of 1,024 bytes (2^10), used in media and bundle budgets to avoid confusion with decimal kilobytes of 1,000 bytes.
Operating systems and file checkers measure file sizes in powers of two (1,024 bytes per KiB, 1,048,576 bytes per MiB), whereas marketing specs often quote 1,000-byte kilobytes. Stating image budgets explicitly in KiB keeps exact byte limits unambiguous between documentation and scripts. For example, tools/check-media-assets.mjs caps every avatar WebP at 60 KiB (61,440 bytes) and editorial scenes under 250 KiB (256,000 bytes).
Bu depoda nasıl kullanılır
Used throughout tools/check-media-assets.mjs for per-slot image limits and the 2.5 MiB total asset ceiling.
İlgili dosyalar:tools/check-media-assets.mjs
kill switch
TR: acil durdurmaKavramOnaylar ve otomasyonDiğer adlar: global kill switch, emergency stop, kill_switch_active, WORKSPACE_KILL_SWITCH_ACTIVE, BLOCKED_KILL_SWITCH, acil durdurma şalteri, Genel acil durdurma, Acil durdurma hazır, Kill switch ready, Acil durdurma aktif, Kill switch engaged
Kalıcı bağlantıThe per-workspace emergency stop that immediately blocks all budget changes, campaign launches and tracking updates — even already-approved ones — while still allowing pauses.
When a store's checkout breaks, a promo code leaks or an ad account behaves unexpectedly, the owner needs one switch that freezes all spending and publishing immediately. Activating the kill switch stops new proposals and blocks execution of already-approved spend or tracking changes (WORKSPACE_KILL_SWITCH_ACTIVE), while deliberately leaving META_PAUSE_ENTITY allowed so the owner can still shut off active ads.
Bu depoda nasıl kullanılır
Stored on workspace policy (kill_switch_active in docs/schema.sql), evaluated first in packages/approvals/src/guardrails.ts, and re-checked inside Atomic Verify & Execute.
İlgili dosyalar:packages/approvals/src/guardrails.tsdocs/schema.sql
Kimi
TeknolojiNasıl geliştiriyoruzDiğer adlar: Kimi V10, Kimi labs, Kimi research packs
Kalıcı bağlantıAn external AI research assistant whose synthetic lab packs this project audited as research evidence rather than production proof.
Outside research packs can surface useful failure modes—such as WhatsApp messaging windows, zero-denominator KPI bugs or fencing-token races—much faster than starting from a blank page. However, synthetic third-party results are never accepted blindly; every claim is cross-checked against official documentation and reproduced in this repository's own tests. For example, auditing Kimi Pass 2 caught a zero-spend CPC bug before it entered code.
Bu depoda nasıl kullanılır
Audited in research/kimi-reading.md and referenced under AGENTS.md rule 3 (research is evidence, never proof).
İlgili dosyalar:research/kimi-reading.mdAGENTS.md
Kimi research code
Proje kimliğiProje kodlarıDiğer adlar: Kimi lab code, research id, E01–E11, V8-SEC-001 to V8-SEC-016
Kalıcı bağlantıAn identifier from the external Kimi research packs cited as background evidence, never as a binding project rule.
Before coding began, external research packs produced lab studies (E01 to E11), security rules (V8-SEC-001 to V8-SEC-016) and test scenarios (T001 to T081). Code comments and static gates cite these codes for traceability so readers can look up why a safeguard exists, while AGENTS.md rule 3 reminds everyone that research is evidence to verify rather than truth to copy blindly. For example, KIMI-E06-TODAY-03 traces the stale-evidence approval block back to screen audit lab E06.
Bu depoda nasıl kullanılır
Audited in research/kimi-reading.md through research/kimi-reading-4.md and referenced by static gates such as tools/check-kimi-v8-invariants.mjs.
İlgili dosyalar:research/kimi-reading.mdresearch/kimi-reading-4.mdtools/check-kimi-v8-invariants.mjs
know your customer
KYCSüreçHukuk, vergi ve ödemeDiğer adlar: KYC
Kalıcı bağlantıThe statutory identity, company-registration, tax and bank-account verification a licensed payment provider runs on every marketplace seller.
Under financial-crime and payment-services regulations, a payment institution cannot disburse marketplace payouts to an anonymous person. Before a marketer can receive money as a sub-merchant, the payment provider checks their legal company title, tax office, tax identification number, authorised signatory and corporate IBAN. For example, an applicant cannot fund or receive payout on a retainer while their sub-merchant KYC status is pending or rejected; only verified status unlocks payouts. Keeping raw KYC identifiers out of application logs protects personal and tax data during onboarding.
Bu depoda nasıl kullanılır
Built and verified locally in packages/payments/src/tr-tax-ledger.ts (SUB_MERCHANT_KYC_UNVERIFIED) and packages/payments/src/iyzico-adapter.ts (SubMerchantOnboardingRequest); live KYC submission awaits issue 3 and issue 4.
İlgili dosyalar:packages/payments/src/tr-tax-ledger.tspackages/payments/src/iyzico-adapter.ts
Key performance indicator — a primary number a business tracks to judge whether marketing and sales are working.
Examples of marketing KPIs include marketing efficiency ratio (MER), return on ad spend (ROAS), cost per acquisition (CPA) and contribution margin. Picking a few well-defined KPIs keeps owners focused on profit and cash rather than vanity counts like raw clicks. Every KPI needs an exact formula, one unit convention and a clear rule for missing denominators.