package
TR: paketKavramBüyük resimDiğer adlar: app, workspace package, apps folder, packages folder
Kalıcı bağlantıA self-contained folder with its own package.json—either a runnable app under apps/ or a shared library under packages/.
Organizing a monorepo into packages draws clean boundaries between code that runs as a process and code that is imported as a library. Each package declares its exact dependencies and tests, preventing browser code from accidentally pulling in database drivers. For example, packages/ui exports pure React components while packages/db holds database migrations and repositories.
Bu depoda nasıl kullanılır
The repository contains 14 pnpm workspace packages: apps/{web,api,collector,seo-worker} and packages/{ai,approvals,auth,connectors,db,payments,shared,signals,ui,vault}.
İlgili dosyalar:packagesappspnpm-workspace.yaml
page metadata
TR: sayfa üst verisiKavramÖn yüz ve tasarımDiğer adlar: metadata, generateMetadata, metadata export, Next.js metadata export
Kalıcı bağlantıThe metadata object or generateMetadata function exported from Next.js layouts and pages to emit <title>, <meta name="description">, robots rules, and link-preview tags.
Search engines, browser tabs, and messaging apps read HTML <head> metadata to label bookmarks and generate link previews. Exporting structured metadata from Server Components ensures every public page declares its canonical metadataBase, clean Turkish title, and robots directives (noindex for internal tool routes like /design-system). For example, apps/web/src/app/layout.tsx configures metadataBase from NEXT_PUBLIC_SITE_URL so Open Graph URLs resolve cleanly.
Bu depoda nasıl kullanılır
Defined globally in apps/web/src/app/layout.tsx (resolveMetadataBase) and per route in page.tsx files such as academy/page.tsx and design-system/page.tsx.
İlgili dosyalar:apps/web/src/app/layout.tsx
Google free speed API combining 28-day CrUX real-user data (when available) with controlled Lighthouse lab runs.
PageSpeed Insights (PSI) exposes one API that returns real-visitor Core Web Vitals from CrUX alongside a live synthetic Lighthouse breakdown of render-blocking resources and image sizing. Small Turkish e-commerce sites frequently lack enough Chrome volume to appear in CrUX, making PSI lab metrics their fallback diagnostic. For example, crux-fallback.ts queries field data first and uses PSI lab results only with an explicit psi_lab_fallback provenance flag so nobody mistakes a single synthetic run for 28-day visitor telemetry. Explicit provenance keeps speed reporting honest.
Bu depoda nasıl kullanılır
Integrated via provenance-labelled fallback logic in apps/seo-worker/src/crux-fallback.ts.
İlgili dosyalar:apps/seo-worker/src/crux-fallback.ts
paid acquisition
Kavramİş modeli ve pazarDiğer adlar: paid channels, ücretli edinim
Kalıcı bağlantıBuying ads on channels like Meta or Google to attract new customers—kept deliberately locked until the 12-business pilot proves activation and healthy margins.
Running paid ads to acquire users before onboarding, retention and direct serving costs are proven simply accelerates cash burn. Both the Turkey GTM playbook and the board KPI charter gate paid acquisition strictly behind measured thresholds: the 12-business pilot must achieve >= 60% Week-4 independent task completion and clear the 70% base gross margin gate first, and live campaigns pause automatically if direct support exceeds 0.75 hours/account/month, payback exceeds six months, LTV:CAC drops below 3.5× or 30-day refunds exceed 8%. For example, spending ad budget on /audit before confirming self-serve activation would waste capital.
Bu depoda nasıl kullanılır
Gated in docs/GTM-TURKEY-PLAYBOOK.md (§4) and docs/BOARD-KPI-AND-GOVERNANCE-CHARTER.md (§2, §3); zero paid acquisition campaigns have run.
İlgili dosyalar:docs/GTM-TURKEY-PLAYBOOK.mddocs/BOARD-KPI-AND-GOVERNANCE-CHARTER.md
paid data required
KavramBağlayıcılar ve CRMDiğer adlar: paid_data_required
Kalıcı bağlantıThe explicit flag (paid_data_required: true) returned alongside null whenever a metric requires a licensed third-party data vendor.
Metrics such as monthly search volume, keyword difficulty and external backlink counts cannot be measured from a merchant own HTML crawl or Search Console alone. Instead of filling those columns with guessed estimates or misleading zeroes, the product returns null (rendered as a dash) together with paid_data_required: true so the user knows exactly why the figure is blank. For example, ikas-seo-patch-policy.ts rejects any SEO payload that attempts to pass a non-null search_volume or backlinks_count—even 0—without a connected paid provider. Honesty about missing data builds long-term credibility.
Bu depoda nasıl kullanılır
Built in apps/seo-worker/src/ikas-seo-patch-policy.ts and apps/api/src/routes/seo-patch-preflight.ts.
İlgili dosyalar:apps/seo-worker/src/ikas-seo-patch-policy.tsapps/api/src/routes/seo-patch-preflight.ts
parameterised query
KavramVeri ve PostgreSQLDiğer adlar: parameterized query, bind parameter, $1 placeholder
Kalıcı bağlantıAn SQL query that sends untrusted values separately from the SQL command text through numbered placeholders like $1.
Concatenating user input directly into an SQL string lets an attacker inject quotes and SQL keywords that alter the query's meaning (SQL injection). A parameterised query sends the fixed SQL template with $1, $2 placeholders and transmits the values out-of-band so PostgreSQL parses the command first and treats every parameter strictly as data. For example, SELECT set_config('app.workspace_id', $1, true) passes the workspace UUID as $1 rather than interpolating it into the SQL string.
Bu depoda nasıl kullanılır
Every runtime query in packages/db/src/ uses $1..$N placeholders with node-postgres bind arrays.
İlgili dosyalar:packages/db/src/tenant-tx.tspackages/db/src/repositories
parity gate
KavramOperasyon ve doğrulamaDiğer adlar: gate parity, check-gate-parity
Kalıcı bağlantıAn automated check that fails whenever the local gate manifest and the CI workflow run different steps, order or env.
Before Wave 45, the local verification script ran 7 checks while CI ran 60, and 1,750 tests ran in neither. A parity gate parses both the manifest JSON and the GitHub Actions YAML and enforces a strict two-way match on commands, order, environment variables, triggers and honest step names. For example, editing one command in .github/workflows/verify.yml without updating tools/gates.manifest.json breaks the parity gate immediately.
Bu depoda nasıl kullanılır
Built in tools/check-gate-parity.mjs (both live check and --self-test), run as the check_gate_parity static step in tools/gates.manifest.json.
İlgili dosyalar:tools/check-gate-parity.mjstools/gates.manifest.json.github/workflows/verify.yml
Code that converts raw incoming bytes or text (HTTP headers, JSON, URLs, HTML, Markdown) into structured data — the frontline of attack surface.
Parsers run first on every byte an attacker sends, often before higher-level business logic sees anything. Bugs in parsers cause HTTP request smuggling, ReDoS stalls, stack overflows on deeply nested JSON, and SSRF URL discrepancies. For example, this repository's learning Markdown parser is written as a single linear-time forward pass with zero nested-quantifier regexes and verified by tools/lib/linear-time.mjs.
Bu depoda nasıl kullanılır
Protected with strict byte limits, strict UTF-8 decoding (packages/connectors/src/webhook-normalizer.ts), and linear-time parsing checks (tools/lib/linear-time.mjs).
İlgili dosyalar:packages/connectors/src/webhook-normalizer.tstools/lib/linear-time.mjs
partitioned table
KavramVeri ve PostgreSQLDiğer adlar: partition, partition key, partition rollover, monthly partition
Kalıcı bağlantıOne logical PostgreSQL table split physically into child tables by a partition key such as month.
High-volume event tables grow fast, and deleting old rows one by one creates heavy bloat and slow vacuuming. Partitioning tracking_events by occurred_at puts each month into its own child table so queries skip irrelevant months and retention drops expired months cleanly, with one strict PostgreSQL rule: every unique index on a partitioned table must include the partition key. For example, because a replay could shift occurred_at into a neighboring month, cross-partition deduplication uses the non-partitioned tracking_event_keys side table.
Bu depoda nasıl kullanılır
docs/schema.sql partitions tracking_events by RANGE (occurred_at) with 7 baseline partition tables, managed by packages/db/src/retention/partition-manager.ts and paired with tracking_event_keys in migration 0009.
İlgili dosyalar:docs/schema.sqlpackages/db/src/retention/partition-manager.tspackages/db/migrations/0009_tracking_event_keys_and_dispatch_lease.sql
partner app review
TR: iş ortağı onayıSüreçBağlayıcılar ve CRMDiğer adlar: partner review, uygulama incelemesi
Kalıcı bağlantıExternal platform vetting required before an app can access live customer data at Meta, Google, Shopify or ikas.
Modern ad and commerce platforms lock sensitive scopes behind formal app reviews covering privacy policies, security handling, demo videos and legal entity verification. Because each review runs on the platform own timeline (often 2 to 12 weeks), engineering builds and tests connectors locally against strict harnesses while gating live external access honestly behind issue 4. For example, OD-06 ships ikas, WooCommerce and the universal snippet first while Shopify Level 2 protected customer data review runs in parallel. Never claiming an unapproved review as live protects both compliance and merchant expectations.
Bu depoda nasıl kullanılır
Tracked across docs/OWNER-DECISIONS.md (OD-01, OD-06, issue 4) and docs/WEBHOOK-DELIVERY-HMAC-AND-DEAD-LETTER-RUNBOOK.md (external_sandboxes_pending: true).
İlgili dosyalar:docs/OWNER-DECISIONS.mddocs/WEBHOOK-DELIVERY-HMAC-AND-DEAD-LETTER-RUNBOOK.md
partner programme
TR: çözüm ortağı programıKavramİş modeli ve pazarDiğer adlar: partner program, agency partner programme, solution partner programme
Kalıcı bağlantıThe planned programme setting out commercial terms, capacity caps and vetting rules for independent growth specialists and boutique agencies joining the platform.
Rather than letting unvetted agencies list themselves in an open directory or buy featured placements, the partner programme defines transparent entry criteria: verified commercial tax entity (Şahıs, Ltd. or A.Ş.), read-only API proof, >= 75/100 diagnostic exam, six-workspace cap per specialist and zero-password client grants. For example, the public /partners route explains these rules honestly to prospective agencies and specialists while stating clearly that no external partners have been onboarded yet.
Bu depoda nasıl kullanılır
Published locally on apps/web/src/app/partners/page.tsx and governed by docs/FOUNDING-COHORT-PLAYBOOK.md; recruitment (issue 21) is still open with zero partners enrolled.
İlgili dosyalar:apps/web/src/app/partners/page.tsxdocs/FOUNDING-COHORT-PLAYBOOK.md
pass-through
Kavramİş modeli ve pazarDiğer adlar: pass-through money, passthrough
Kalıcı bağlantıMoney collected for or routed to a third party—such as a marketer's fee, customer ad spend, WhatsApp carrier fees or withheld taxes—which is never booked as company revenue.
Mixing pass-through cash with company revenue inflates top-line numbers artificially while collapsing apparent gross margin and confusing tax filings. Under the board charter's strict accounting law, four streams stay strictly pass-through: customer ad spend paid to Meta or Google (0% markup), the marketer's share of marketplace GMV disbursed by iyzico Pazaryeri, WhatsApp/SMS carrier charges, and VAT plus the 1% e-commerce withholding held for GİB. For example, on a ₺25,080 retainer checkout, only the ₺1,760 ex-VAT commission is company revenue; the remaining ₺23,320 is pass-through payout and taxes.
Bu depoda nasıl kullanılır
Enforced across docs/BOARD-KPI-AND-GOVERNANCE-CHARTER.md (§1), docs/FINANCIAL-MODEL-36M.md (§1.1, §4.3) and packages/payments/src/tr-tax-ledger.ts (buildTwoLegInvoiceDrafts).
İlgili dosyalar:docs/BOARD-KPI-AND-GOVERNANCE-CHARTER.mddocs/FINANCIAL-MODEL-36M.mdpackages/payments/src/tr-tax-ledger.ts
passkey
TR: passkeyKavramKimlik ve erişimDiğer adlar: WebAuthn credential, discoverable credential
Kalıcı bağlantıA phishing-resistant public-key sign-in credential kept on the user's phone, computer, or security key that works only on the exact site it was created for.
Unlike a password or a 6-digit code that a person can accidentally type into a look-alike phishing site, a passkey stores a private key inside the user's device and gives the server only the public key. During sign-in or step-up, the browser checks the real origin and relying party ID (rpId) before asking the authenticator to sign the server's random challenge — so a fake domain gets no valid signature. For example, after signing in once by e-mail link, an owner enrols a passkey on their laptop and signs in on future visits with one fingerprint or PIN without waiting for e-mail.
Bu depoda nasıl kullanılır
Verified cryptographically (ES256 and EdDSA) in apps/api/src/auth/session-and-mfa.ts and apps/api/src/auth/sign-in/passkey-verifier.ts, with public keys stored in auth.passkey_credentials (migration 0006).
İlgili dosyalar:apps/api/src/auth/sign-in/passkey-verifier.tsapps/api/src/auth/session-and-mfa.tspackages/db/migrations/0006_auth_durable_sessions_and_mfa.sql
passkey assertion
KavramKimlik ve erişimDiğer adlar: WebAuthn assertion
Kalıcı bağlantıThe cryptographically signed response a passkey produces for a server challenge, proving device ownership without exposing the private key.
When a user taps their fingerprint or enters a device PIN to sign in or complete step-up, the authenticator signs the SHA-256 hash of clientDataJSON (containing the challenge and origin) concatenated with authenticatorData (containing rpIdHash, UP/UV flags, and signCount). The server verifies that signature against the stored public key before issuing a session or step-up token. For example, tampering with a single byte of the origin or challenge causes signature verification to fail immediately.
Bu depoda nasıl kullanılır
Verified by verifyPasskeyCryptographicAssertion in apps/api/src/auth/session-and-mfa.ts and createPasskeyAssertionVerifier in apps/api/src/auth/sign-in/passkey-verifier.ts.
İlgili dosyalar:apps/api/src/auth/sign-in/passkey-verifier.tsapps/api/src/auth/session-and-mfa.ts
passwordless sign-in
TR: şifresiz oturum açmaKavramKimlik ve erişimDiğer adlar: passwordless, /login, Oturum aç, Sign in
Kalıcı bağlantıSigning in strictly through a single-use browser-bound e-mail link or a passkey, with zero passwords ever created, stored, or reset.
Passwords are reused across sites, leaked in credential-stuffing dumps, typed into phishing pages, and shared in chat threads with agencies. Eliminating passwords altogether under ADR-0010 (OD-14) removes password tables, password resets, and password-hash cracking from the attack surface: first-time sign-in uses an enumeration-safe e-mail link bound to the requesting browser, and returning sign-in supports discoverable passkeys. For example, public.users has no password column at all.
Bu depoda nasıl kullanılır
Decided in docs/adr/0010-durable-sessions-and-passwordless-sign-in.md (OD-14) and served by apps/api/src/auth/sign-in/routes.ts (subject to external security review before live traffic).
İlgili dosyalar:apps/api/src/auth/sign-in/routes.tsdocs/adr/0010-durable-sessions-and-passwordless-sign-in.md
path traversal
TR: dizin geçişiKavramSaldırı ve savunmalarDiğer adlar: directory traversal, double encoding, %252e
Kalıcı bağlantıInjecting .. segments (plain or double-encoded like %252e%252e) into paths to escape a target directory or route boundary.
When code builds a filesystem path or URL from user input without canonicalising and verifying the resulting prefix, ../../etc/passwd or double-encoded %252e%252e/ can break out of the intended folder. Safe file and link resolvers normalise paths strictly, refuse .., backslashes, and symbolic links, and verify the final path stays inside the allowed root. For example, tools/learning/lib/content.mjs normalises every link path and rejects any path starting with ...
Bu depoda nasıl kullanılır
Blocked in upload filename validators, route parameter schemas, and tools/learning/lib/content.mjs.
The route portion of a URL after the domain name and before any query string, such as /products/leather-wallet.
Separating a URL pathname from its host and query string matters in both SEO auditing and webhook routing. Two URLs with the exact same pathname and different tracking query strings (?utm_source=meta) usually represent the same webpage and should canonicalise to the bare pathname. For example, stripping query strings when building a canonical product URL keeps https://shop.example/products/leather-wallet clean while preserving the meaningful slug inside the pathname. In HTTP transport code, validating pathname normalisation also prevents path-traversal tricks.
Bu depoda nasıl kullanılır
Parsed and sanitised in apps/seo-worker/src/ssrf-guard.ts and apps/seo-worker/src/ikas-seo-patch-policy.ts.
İlgili dosyalar:apps/seo-worker/src/ssrf-guard.ts
paused by default
TR: duraklatılmış başlarKavramOnaylar ve otomasyonDiğer adlar: starts paused, CAMPAIGN_MUST_PUBLISH_PAUSED, initial_status PAUSED
Kalıcı bağlantıThe guardrail requiring every newly published campaign to launch with initial_status: "PAUSED" so spending never starts without an owner turning it on.
Creating a brand-new campaign straight into ACTIVE status can begin spending money immediately before the owner verifies targeting, creatives and tracking. Requiring PAUSED as the initial status (CAMPAIGN_MUST_PUBLISH_PAUSED) turns campaign creation into a safe staging step rather than an instant spend trigger.
Bu depoda nasıl kullanılır
Enforced on META_PUBLISH_CAMPAIGN proposals inside packages/approvals/src/guardrails.ts.
İlgili dosyalar:packages/approvals/src/guardrails.ts
payback period
Metrikİş modeli ve pazarDiğer adlar: CAC payback, payback months
Kalıcı bağlantıThe number of months of customer gross profit required to recover the upfront cost of acquiring that customer (CAC / monthly gross profit per customer).
Even a company with a great LTV:CAC ratio can run out of cash if it takes 24 months to earn back its acquisition spend. Payback period measures capital efficiency directly: divide CAC by monthly gross profit per customer (never raw revenue, because direct COGS must be paid first). For example, in docs/FINANCIAL-MODEL-36M.md (model only), Option A blended CAC is ₺6,250 and blended monthly gross profit per SMB is ₺1,673 (₺1,415 SaaS plus ₺258 net marketplace GP), giving a modelled payback period of 6,250 / 1,673 = 3.74 months; the board charter freezes paid channels if actual payback exceeds 6.0 months.
Bu depoda nasıl kullanılır
Modelled in docs/FINANCIAL-MODEL-36M.md (§3) and gated at > 6.0 months in docs/BOARD-KPI-AND-GOVERNANCE-CHARTER.md (§2); actual payback is NOT_YET_LAUNCHED.
İlgili dosyalar:docs/FINANCIAL-MODEL-36M.mddocs/BOARD-KPI-AND-GOVERNANCE-CHARTER.md
The actual data body carried inside a request, event or approval, separate from its routing address and headers.
In HTTP requests, webhooks and approval queues, the envelope says where a message goes while the payload holds the meaningful fields being acted on. Hashing the canonical payload ensures the exact data approved by an owner is what executes later. For example, a budget-change payload contains the target campaign reference and the proposed daily budget in integer minor units.
Bu depoda nasıl kullanılır
Approval proposals store their exact action fields in action_payload_jsonb and pin them with a canonical SHA-256 digest before execution.
İlgili dosyalar:docs/schema.sqlpackages/approvals
payload allow-list
KavramOnaylar ve otomasyonDiğer adlar: payload key allow-list, APPROVAL_PAYLOAD_KEY_ALLOWLIST, PAYLOAD_KEY_NOT_ALLOWED, closed allow-list per action type
Kalıcı bağlantıThe closed per-action-type list of permitted JSON keys that rejects any unknown or nested extra key in an action payload.
Without a strict key allow-list, an attacker or buggy client could smuggle extra platform parameters — such as status: "ACTIVE" or bid_amount — inside a budget update payload that the preview never displayed. Validating every key recursively against a closed per-action-type allow-list rejects unexpected fields immediately with PAYLOAD_KEY_NOT_ALLOWED.
Bu depoda nasıl kullanılır
Defined as APPROVAL_PAYLOAD_KEY_ALLOWLIST in packages/approvals/src/payload-allowlist.ts and called by packages/approvals/src/guardrails.ts.
İlgili dosyalar:packages/approvals/src/payload-allowlist.tspackages/approvals/src/guardrails.ts
payment milestone
TR: kilometre taşıKavramHukuk, vergi ve ödemeDiğer adlar: milestone, korumalı ödeme aşaması, milestone settlement
Kalıcı bağlantıOne discrete, separately funded and separately approved unit of marketer work—such as a seven-day sprint or one month of a retainer.
Splitting an engagement into discrete milestones prevents open-ended disputes where neither side knows what a payment covers. Each milestone carries its own agreed deliverable checklist, server-computed tax breakdown in exact kuruş, safeguarded checkout charge and release status. For example, a monthly retainer creates one milestone per billing cycle (month 1 at 8% fee, month 4 at 6%, month 7 at 4.5%), each checked against three SQL balance invariants so payout plus withholding plus platform fee plus fee VAT equals the checkout charge to the exact kuruş.
Bu depoda nasıl kullanılır
Built and verified locally in docs/schema.sql (escrow_milestones), packages/payments/src/tr-tax-ledger.ts (MilestoneTaxBreakdown, assertMilestoneTaxInvariants) and packages/payments/src/state-machines.ts.
İlgili dosyalar:docs/schema.sqlpackages/payments/src/tr-tax-ledger.tspackages/payments/src/state-machines.ts