e-Arşiv
TR: e-ArşivTeknolojiHukuk, vergi ve ödemeDiğer adlar: e-Arşiv Fatura, e-archive invoice, e-Arsiv
Kalıcı bağlantıTurkey's official electronic invoice format used when billing a buyer who is not registered in the e-Fatura system.
Run under Revenue Administration (GİB) rules (VUK Communiqués 509 and 589), e-Arşiv replaces paper invoices for sales to private consumers and non-e-Fatura businesses, reporting invoice records electronically to the tax authority. As recorded in the counsel brief, VUK 589 phases out remaining low-value paper invoices at the end of 2026 so that 100% of Turkish commercial invoices become electronic from 1 January 2027. For example, if a sole-proprietor marketer bills a small clinic that is not yet an e-Fatura taxpayer, the marketer issues an e-Arşiv invoice carrying the exact VAT and withholding lines. Requiring e-Fatura or e-Arşiv readiness keeps every marketplace engagement audit-ready.
Bu depoda nasıl kullanılır
Built into marketer eligibility and two-leg invoice draft generation in packages/payments/src/tr-tax-ledger.ts and documented in docs/COUNSEL-BRIEF.md (C9, C10); awaiting YMM sign-off on issue 3.
İlgili dosyalar:packages/payments/src/tr-tax-ledger.tsdocs/COUNSEL-BRIEF.md
e-commerce intermediary service provider
ETAHSTR: elektronik ticaret aracı hizmet sağlayıcıKavramHukuk, vergi ve ödemeDiğer adlar: ETAHS, AHS, aracı hizmet sağlayıcı
Kalıcı bağlantıUnder Turkey's e-commerce law (ETK), a marketplace platform that enables third-party sellers to contract with buyers online.
Law 6563 distinguishes an online store selling its own goods from an intermediary marketplace that hosts independent sellers. Qualifying as an intermediary service provider (ETAHS or AHS) brings specific obligations, including mandatory 1% e-commerce withholding under Decree 9284 and lower e-Fatura revenue thresholds (recorded in the counsel brief as ₺500,000 under VUK 509). For example, because the marketplace connects Turkish businesses with independent commercial marketers and coordinates safeguarded milestone payments, the engineering baseline assumes intermediary status rather than hoping for an exemption. Counsel and a sworn financial adviser must confirm exact classification before live marketplace payments open.
Bu depoda nasıl kullanılır
Assumed conservatively as the baseline in docs/COUNSEL-BRIEF.md (C8, C10) and packages/payments/src/tr-tax-ledger.ts; legal and YMM confirmation is pending on issue 3.
İlgili dosyalar:docs/COUNSEL-BRIEF.mdpackages/payments/src/tr-tax-ledger.ts
e-commerce withholding
TR: e-ticaret stopajıKavramHukuk, vergi ve ödemeDiğer adlar: %1 e-ticaret stopajı, 1% e-commerce withholding, 1% stopaj, ecommerce_stopaj_minor
Kalıcı bağlantıA 1% income-tax withholding that Turkish e-commerce marketplaces deduct on the VAT-excluded price and remit to the tax office for the seller.
Set at 1% from 1 January 2025 by Presidential Decree 9284 and detailed in Communiqué 330, this withholding applies to the seller's VAT-excluded service base (matrah) without subtracting platform commissions or card fees. It is not an extra tax rate on top of the seller's income tax; the seller credits (mahsup) the withheld amount against provisional and annual income or corporate tax. For example, on a ₺22,000 monthly retainer (2,200,000 kuruş), the 1% withholding is exactly ₺220 (22,000 kuruş), and on a ₺9,500 sprint it is ₺95 (9,500 kuruş), regardless of whether the platform fee is 8% or 4.5%. The platform tracks each period's withholdings in a segregated tax liability bucket for monthly Muhtasar filing.
Bu depoda nasıl kullanılır
Built and verified locally in exact BigInt kuruş in packages/payments/src/tr-tax-ledger.ts (TR_ECOMMERCE_STOPAJ_BPS = 100), packages/payments/src/tax-reports.ts and docs/schema.sql; live activation awaits YMM sign-off on issue 3 (C8).
İlgili dosyalar:packages/payments/src/tr-tax-ledger.tspackages/payments/src/tax-reports.tsdocs/COUNSEL-BRIEF.mddocs/schema.sql
e-Fatura
TR: e-FaturaTeknolojiHukuk, vergi ve ödemeDiğer adlar: e-invoice, electronic invoice
Kalıcı bağlantıTurkey's official business-to-business electronic invoice system operated by the Revenue Administration when both sides are registered.
Unlike sending a PDF by e-mail, an e-Fatura is a structured XML document routed through the Revenue Administration (GİB) between two registered taxpayers, carrying a unique invoice identifier (ETTN) and exact tax codes such as 624 for commercial advertising VAT withholding. Under VUK 509, e-commerce intermediary platforms cross into mandatory e-Fatura at a lower gross-revenue threshold (₺500,000 as recorded in the counsel brief) than general businesses (₺3,000,000). For example, when an e-Fatura marketer invoices an e-Fatura store for a ₺22,000 retainer, the XML carries 20% VAT (₺4,400), 3/10 withholding (₺1,320) and net payable (₺25,080) matching the checkout total to the kuruş.
Bu depoda nasıl kullanılır
Built into marketer onboarding gates and two-leg invoice draft builders in packages/payments/src/tr-tax-ledger.ts and documented in docs/COUNSEL-BRIEF.md (C7, C10); live integrator connection is not built yet.
İlgili dosyalar:packages/payments/src/tr-tax-ledger.tsdocs/COUNSEL-BRIEF.md
e-SMM
e-SMMTR: e-Serbest Meslek MakbuzuTeknolojiHukuk, vergi ve ödemeDiğer adlar: e-Serbest Meslek Makbuzu, electronic self-employment receipt
Kalıcı bağlantıThe electronic receipt issued by licensed self-employed professionals in Turkey instead of a commercial invoice, carrying a separate 20% withholding regime.
Under Income Tax Law Article 65, independent professionals such as lawyers or independent consultants registered as serbest meslek erbabı issue an e-SMM rather than a commercial e-Fatura. Payments against an e-SMM require the business buyer to withhold 20% income tax (stopaj) on top of VAT, which creates a completely different checkout and settlement formula from a commercial company invoice. For example, mixing e-SMM sellers with commercial Şahıs and Ltd. marketers in the same Release 1 checkout flow would double the tax edge cases and accountant errors. Excluding e-SMM in Release 1 keeps settlement math uniform and predictable.
Bu depoda nasıl kullanılır
Built and verified locally in packages/payments/src/tr-tax-ledger.ts, which rejects ESMM_SERBEST_MESLEK applicants with code ESMM_EXCLUDED_R1; policy confirmation is question C10 in docs/COUNSEL-BRIEF.md.
İlgili dosyalar:packages/payments/src/tr-tax-ledger.tsdocs/COUNSEL-BRIEF.md
E.164
StandartÖlçümlemeDiğer adlar: E164, international phone format, phone_sha256_e164
Kalıcı bağlantıThe international phone-number standard written as a leading plus sign, country code and subscriber digits with no spaces.
ITU-T E.164 defines one unambiguous global phone format up to 15 digits, such as +905321234567 for a Turkish mobile number or +12065550100 for a US number. Removing spaces, dashes and local trunk zeros while preserving the leading + ensures every system sees the exact same string. Google Ads Data Manager and TikTok Events API require E.164 before SHA-256 hashing, whereas Meta requires stripping the +.
Bu depoda nasıl kullanılır
Normalised by packages/shared/src/pii-normalization.ts to produce phone_sha256_e164 for Google Data Manager, kept strictly separate from Meta's digit-only phone_sha256_meta.
İlgili dosyalar:packages/shared/src/pii-normalization.ts
EBITDA
EBITDAMetrikİş modeli ve pazarDiğer adlar: earnings before interest, taxes, depreciation and amortisation, EBITDA break-even
Kalıcı bağlantıEarnings before interest, taxes, depreciation and amortisation—a standard operating-profit proxy showing whether core operations cover their monthly bills.
Calculated as Gross Profit minus Operating Expenses (OpEx: salaries, legal retainers, marketing and general overhead), EBITDA strips out financing and accounting quirks to show whether the business generates or burns operating cash each month. For example, in docs/FINANCIAL-MODEL-36M.md (pre-launch model only), Base Year 1 projects −₺2.24M EBITDA while building the initial customer base, crossing monthly EBITDA break-even in Month 13 and reaching +₺5.39M in Year 2 and +₺27.61M in Year 3.
Bu depoda nasıl kullanılır
Modelled strictly as MODEL / PROJECTION across Bear, Base and Bull in docs/FINANCIAL-MODEL-36M.md (§5); actual EBITDA is NOT_YET_LAUNCHED.
İlgili dosyalar:docs/FINANCIAL-MODEL-36M.md
A modern elliptic-curve digital signature algorithm, most commonly Ed25519, offering fast signing and small keys.
Edwards-curve Digital Signature Algorithm (EdDSA) produces compact, deterministic digital signatures that avoid the fragile per-signature random nonce pitfalls of older schemes. Ed25519 uses 32-byte public keys and 64-byte signatures while delivering strong security and fast verification. For example, many modern security keys and operating systems create Ed25519 passkeys that sign login challenges cleanly in milliseconds.
Bu depoda nasıl kullanılır
One of the two COSE signature algorithms (alongside ES256) accepted by the WebAuthn passkey verifier built in packages/auth.
edge collector
TR: birinci taraf alıcıKavramÖlçümlemeDiğer adlar: collector, apps/collector, kenar toplayıcı, first-party collector
Kalıcı bağlantıThe lightweight HTTP service that accepts storefront events, hashes personal data on arrival and forwards signed batches to the API.
Putting a dedicated collector at the edge isolates untrusted browser traffic from the core database and API. As soon as a tracking event arrives, the collector checks origin and consent flags, strips query parameters from URLs, converts raw e-mail and phone values into platform-specific SHA-256 hashes, discards the plaintext immediately, and sends an HMAC-signed batch onward. Because raw PII is destroyed at the edge, the database never stores it.
Bu depoda nasıl kullanılır
Implemented in apps/collector/src/app.ts (apps/collector/), using packages/shared/src/pii-normalization.ts and apps/collector/src/sanitize-url.ts; it is not deployed to a live edge host yet.
İlgili dosyalar:apps/collector/src/app.tsapps/collector/src/sanitize-url.ts
editable fields
TR: düzenlenebilir alanlarKavramOnaylar ve otomasyonDiğer adlar: editable_fields, NON_EDITABLE_FIELD_MUTATION_FORBIDDEN, validateEditableFieldsAllowlist
Kalıcı bağlantıThe server-enforced allow-list of fields that may be modified on a pending proposal inside the Action Gateway checks.
If a UI form lets a user tweak a proposed budget, the backend must never trust the client to leave sensitive fields untouched — an attacker could submit a patched JSON body changing the target ad account or currency alongside the budget. Enforcing a strict server allow-list rejects any change to non-editable or immutable security fields with NON_EDITABLE_FIELD_MUTATION_FORBIDDEN.
Bu depoda nasıl kullanılır
Checked by validateEditableFieldsAllowlist in packages/approvals/src/action-gateway-hysteresis.ts; the primary database approval flow goes even further and allows zero edits once a proposal row is created.
İlgili dosyalar:packages/approvals/src/action-gateway-hysteresis.ts
effect (React)
TR: React yan etkisiKavramÖn yüz ve tasarımDiğer adlar: useEffect, effect cleanup, side effect
Kalıcı bağlantıClient-side code scheduled with useEffect to synchronise a component with external systems such as network calls, DOM listeners, or timers after rendering.
Rendering should stay pure (computing markup from props and state without side effects), while useEffect runs after React commits DOM updates in the browser and lets you return a cleanup function to unsubscribe listeners or abort stale requests. Overusing effects for derived values or unguarded one-shot mutations causes race conditions and double-fires under React Strict Mode. For example, attaching a beforeprint listener inside useEffect returns a cleanup that removes the listener on unmount.
egress isolation
KavramSaldırı ve savunmalarDiğer adlar: egress, egress filtering
Kalıcı bağlantıNetwork-level rules restricting which destinations a service may call outbound so an untrusted crawler cannot reach internal hosts.
Application-level SSRF checks in code are valuable, yet defence in depth demands that network routing itself also block internal destinations. Placing a public-web crawler on a segregated container network with no route to PostgreSQL or internal APIs ensures that even a zero-day bypass in the crawler's HTTP client cannot reach internal services. For example, the staging compose layout puts the SEO worker on an isolated network separate from the database network.
Bu depoda nasıl kullanılır
Defined in deploy/docker-compose.staging.yml and paired with apps/seo-worker/src/ssrf-guard.ts and apps/seo-worker/src/env-guard.ts.
İlgili dosyalar:deploy/docker-compose.staging.ymlapps/seo-worker/src/ssrf-guard.ts
elevation
TR: yükselti gölgesiKavramÖn yüz ve tasarımDiğer adlar: shadow elevation tokens, --shadow-elev-sm, --shadow-elev-md, --shadow-elev-lg, shadow tokens
Kalıcı bağlantıVisual depth communicated by three closed shadow tokens (--shadow-elev-sm, --shadow-elev-md, --shadow-elev-lg) reserved for floating surfaces.
Consistent elevation tells the eye which layers float above the page (popovers, drawers, modal dialogs) while flat editorial sheets stay grounded with crisp 1-pixel hairlines. Restricting shadows to three calibrated tokens avoids muddy drop shadows and guarantees floating layers remain distinct in both light and dark modes. For example, a popover uses --shadow-elev-sm while a modal confirm dialog uses --shadow-elev-lg above a dimmed scrim.
Bu depoda nasıl kullanılır
Defined in packages/ui/src/tokens.css as --shadow-elev-sm, --shadow-elev-md, and --shadow-elev-lg, and cleared under @media print.
İlgili dosyalar:packages/ui/src/tokens.cssdesign/VISUAL.md
embedding
TeknolojiÜründe yapay zekaDiğer adlar: embedding model, text embedding, Qwen3-Embedding
Kalıcı bağlantıA fixed-length vector of numbers representing the meaning of a piece of text for similarity search.
Keyword search misses pages that use different words for the same idea, whereas an embedding model maps text into a list of numbers where similar meanings land close together. Measuring the distance between vectors lets a system find relevant documents quickly before handing them to a larger model. For example, an embedding of a Turkish query about "iade politikası" lands near a store policy paragraph discussing "ürün değişim ve geri ödeme", even without exact word overlap. Embeddings run on small, fast models that take only a fraction of a GPU.
Bu depoda nasıl kullanılır
Planned in deploy/vllm/docker-compose.vllm.yml (Qwen/Qwen3-Embedding-0.6B, 6 percent VRAM share, max 8,192 tokens) and registered in packages/ai/src/types.ts; not deployed yet.
İlgili dosyalar:deploy/vllm/docker-compose.vllm.ymlpackages/ai/src/types.ts
encryption
TR: şifrelemeKavramKriptografi ve gizlilerDiğer adlar: decryption, encrypt, decrypt, şifre çözme
Kalıcı bağlantıTransforming readable plaintext into unreadable ciphertext using a key so only a holder of the right key can reverse it.
Unlike one-way hashing, encryption is reversible whenever you have the proper decryption key. It protects confidentiality when data must be recovered later, such as an OAuth refresh token needed to call an ad platform API on a merchant's behalf. For example, encrypting a token before inserting it into PostgreSQL ensures that anyone reading the raw database file sees only ciphertext.
Bu depoda nasıl kullanılır
Performed at the application layer with AES-256-GCM in packages/vault/src/envelope.ts and apps/api/src/connections/oauth/sealing.ts, while TLS encrypts traffic in transit.
İlgili dosyalar:packages/vault/src/envelope.ts
encryption at rest
KavramKriptografi ve gizlilerDiğer adlar: at rest
Kalıcı bağlantıProtecting stored data on disks or in database columns with encryption, separate from encrypting network traffic in transit.
Encryption at rest protects data while it sits in databases, files, or backups, whereas TLS protects data while it moves across a network. Storage-level disk encryption protects against stolen drives, while application-level column encryption also shields secrets from database backups and misconfigured queries. For example, encrypting OAuth tokens in Node.js before writing them to PostgreSQL guarantees the database server itself never holds plaintext credentials.
Bu depoda nasıl kullanılır
Built as application-layer envelope encryption in packages/vault/src/envelope.ts per docs/adr/0004-zero-password-vault-and-force-rls.md.
İlgili dosyalar:packages/vault/src/envelope.tsdocs/adr/0004-zero-password-vault-and-force-rls.md
end-to-end test
E2ETR: uçtan uca testKavramNasıl geliştiriyoruzDiğer adlar: E2E, E2E test, end-to-end
Kalıcı bağlantıA test that runs multiple real components together from entry point to storage to verify the whole path works.
Unit tests verify one isolated function, whereas end-to-end tests connect real parts—such as the edge collector signing a batch, sending it over HTTP to the API and checking the persisted PostgreSQL row. They take longer to run than unit tests, so teams keep a focused set covering the highest-value journeys. For example, collector E2E tests caught a real field-mismatch bug that dropped events in Wave 45.
Bu depoda nasıl kullanılır
Lives under tests/e2e/ (API and collector journeys) and tests/browser/ (full Chromium browser journeys).
İlgili dosyalar:tests/e2etests/browser
endpoint
TR: uç noktaKavramBüyük resimDiğer adlar: route, API route, route handler, rota
Kalıcı bağlantıOne specific HTTP method and URL path on the API, answered by one handler function.
An API is organized into individual endpoints, each combining an action verb such as GET or POST with a path that identifies the resource. Splitting work into clear endpoints makes permissions, input validation and contract tests straightforward to enforce. For example, POST /v1/w/{workspaceId}/approvals is the endpoint that receives a new budget proposal for one workspace.
Bu depoda nasıl kullanılır
Route handlers live in apps/api/src/routes and are documented in docs/openapi.yaml; every tenant endpoint carries /v1/w/:workspaceId/... explicitly.
İlgili dosyalar:apps/api/src/routesdocs/openapi.yaml
enforcement layer
TR: zorlama katmanıKavramBüyük resimDiğer adlar: where a rule is enforced
Kalıcı bağlantıThe specific layer of the system—database, API, arithmetic library or static check—that actually blocks a broken action.
Knowing where a rule is enforced tells you whether a bug in another layer can bypass it. A rule enforced only in browser code disappears if someone calls the API directly, whereas a rule enforced inside a PostgreSQL trigger or policy still holds even if the API has a bug. For example, tenant isolation is enforced in the database with forced row-level security, not merely in web pages.
Bu depoda nasıl kullanılır
Security invariants across this repository map to concrete enforcement layers, from database triggers (docs/schema.sql) to API guards and pre-merge static gates.
İlgili dosyalar:apps/web/src/lib/agencies-data.tsdocs/schema.sql
engagement
Kavramİş modeli ve pazarDiğer adlar: engagements, billing model, marketer engagement
Kalıcı bağlantıA contracted working relationship between one workspace and one vetted marketer—either a fixed 7-day sprint, a monthly retainer or a future BYOC retainer.
An engagement binds together the marketer's scoped workspace grant, billing model, locked platform-fee rate (platform_fee_bps) and milestone schedule, moving through explicit states from draft and funded to active, paused, disputed, completed or cancelled. Crucially, the engagement state machine stays decoupled from both initial lead/proposal acceptance and individual milestone payment releases. For example, a business can start with a fixed_sprint engagement (₺9,500, 10% standard fee or 4.5% founding lock) and later open a monthly_retainer engagement (₺22,000/month) once the tracking fix succeeds.
Bu depoda nasıl kullanılır
Built and verified locally in docs/schema.sql (engagements), packages/payments/src/state-machines.ts and packages/payments/src/tr-tax-ledger.ts.
İlgili dosyalar:docs/schema.sqlpackages/payments/src/state-machines.tspackages/payments/src/tr-tax-ledger.ts
Enhanced Conversions
TeknolojiÖlçümlemeDiğer adlar: Google Enhanced Conversions, Enhanced Conversions for Web, Enhanced Conversions for Leads
Kalıcı bağlantıGoogle's feature for improving ad conversion matching using SHA-256 hashed customer details such as e-mail and phone.
When browser cookies are restricted, Google Ads can still tie a purchase or lead back to an ad click if the advertiser sends hashed first-party details like an e-mail address or E.164 phone number. Google matches those hashes against signed-in Google accounts and discards unmatched hashes. For Gmail addresses, stripping dots and +alias tags before hashing raises match rates because Google normalises mailboxes the same way.
Bu depoda nasıl kullanılır
Fed via Google Ads Data Manager API payloads built by packages/signals/src/google-dm.ts, using email_sha256_google and phone_sha256_e164 from packages/shared/src/pii-normalization.ts.
İlgili dosyalar:packages/signals/src/google-dm.tspackages/shared/src/pii-normalization.ts
enrolment
SüreçKimlik ve erişimDiğer adlar: enrollment, enrol, enroll, re-enrolment
Kalıcı bağlantıAttaching a new passkey or authenticator app to a user account, requiring fresh step-up proof whenever an active factor already exists.
Adding the first MFA factor right after sign-in strengthens the account, whereas silently letting a stolen session replace an existing TOTP secret or register an attacker's passkey turns session theft into permanent account takeover. Once a user has any confirmed factor, adding or replacing a factor requires a fresh step-up token proven by an existing factor (403 MFA_REENROLL_REQUIRES_STEPUP), and a new TOTP secret waits in a pending slot until confirmed so the old secret stays intact if setup is abandoned. For example, confirming a pending TOTP secret atomically promotes pending to active and rotates the browser's session cookie.
Bu depoda nasıl kullanılır
Enforced in apps/api/src/auth/session-and-mfa.ts and persisted via auth.totp_enrolments (slot IN ('active', 'pending')) and auth.passkey_credentials in migration 0006.
İlgili dosyalar:apps/api/src/auth/session-and-mfa.tspackages/db/migrations/0006_auth_durable_sessions_and_mfa.sql
entropy
KavramSaldırı ve savunmalarDiğer adlar: low-entropy value, high-entropy string
Kalıcı bağlantıA measure of unpredictability in a string; real secrets need high entropy while fake test fixtures stay deliberately low entropy.
Cryptographic keys and session tokens must have high Shannon entropy so nobody can guess them, which is also why secret scanners like Gitleaks flag random-looking high-entropy strings in source files. Using obvious low-entropy synthetic fixtures in unit tests (such as repeating hex patterns or constructed test buffers) avoids triggering false positives while keeping real secrets out of Git. For example, committing a 32-byte random base64 fixture looks indistinguishable from a live master key to a scanner.
Bu depoda nasıl kullanılır
Used by Gitleaks rules in .gitleaks.toml to catch accidental high-entropy secrets in source and build files.
İlgili dosyalar:.gitleaks.toml
env file
KavramOperasyon ve doğrulamaDiğer adlar: .env, env template, deploy template, env.staging.example
Kalıcı bağlantıA host-only text file holding key-value environment variables and secrets read by a service at start-up.
Putting passwords and signing keys in source code leaks them into git history forever. Instead, operators keep a template with safe placeholders in git and store filled env files only on the target server with strict 0600 owner-only file permissions. For example, splitting separate api.env, worker.env and web.env files ensures the web process never sees database or vault credentials.
Bu depoda nasıl kullanılır
The repository stores only the placeholder template deploy/env.staging.example, and apps/api/test/deploy-env-runtime-agreement.test.ts checks that templates stay aligned with the runtime config loader.
İlgili dosyalar:deploy/env.staging.exampleapps/api/test/deploy-env-runtime-agreement.test.ts