SaaS
SaaSKavramİş modeli ve pazarDiğer adlar: software as a service, subscription software
Kalıcı bağlantıSoftware delivered over the web for a recurring monthly or annual subscription rather than sold as a one-time installed licence.
B2B SaaS builds compounding recurring revenue with high gross margins (70%–85% at scale) once fixed hosting costs are amortised across active workspaces. In this product's dual architecture, the single-player Marketing Operations SaaS is the primary profit engine (75%–85% of modelled total gross profit) and launches first under Gate A, while the embedded marketer marketplace serves as a churn-cutting retention multiplier under Gate B. For example, a Turkish e-commerce brand can subscribe to Core OS or Growth AI on its own without ever hiring a marketplace specialist.
Bu depoda nasıl kullanılır
Core commercial layer modelled in docs/BUSINESS-PLAN.md (§1), docs/FINANCIAL-MODEL-36M.md (§3) and docs/VALUE-PROPOSITION.md; live subscription billing is not built yet.
İlgili dosyalar:docs/BUSINESS-PLAN.mddocs/FINANCIAL-MODEL-36M.mddocs/VALUE-PROPOSITION.md
safe default
KavramProje kodlarıDiğer adlar: current safe default
Kalıcı bağlantıThe stricter, privacy-preserving behaviour enforced by code while an owner decision remains open.
Engineering should not halt completely while waiting on an owner answer, nor should it guess the riskier option. Every open decision pairs its question with a safe default in code — always the narrower, more private or non-spending choice — until the owners explicitly approve changing it. For example, while OD-15 stays open, the system stores zero plain postal codes and matches Google events on hashed e-mail and phone only.
Bu depoda nasıl kullanılır
Documented for every open question in docs/OWNER-DECISIONS.md and enforced by fail-closed defaults in apps/api/src/platform/runtime-config.ts.
İlgili dosyalar:docs/OWNER-DECISIONS.mdapps/api/src/platform/runtime-config.ts
safe integer limit
KavramVeri ve PostgreSQLDiğer adlar: Number.MAX_SAFE_INTEGER, 2^53 - 1, isSafeInteger
Kalıcı bağlantıThe largest whole number (9,007,199,254,740,991) an ordinary JavaScript number can represent without silently losing precision.
JavaScript's number type uses 53 bits of precision inside a 64-bit float, so above Number.MAX_SAFE_INTEGER (2^53 - 1) consecutive integers round to the same value (9007199254740992 === 9007199254740993). PostgreSQL bigint holds 63 signed value bits, which is why node-postgres returns bigint columns as strings rather than JavaScript numbers. For example, parsing database money strings straight into BigInt(...) avoids ever truncating large values through Number.
Bu depoda nasıl kullanılır
Money parsing and tax helpers keep minor-unit amounts in BigInt or decimal strings and check Number.isSafeInteger for bounded counts such as month indexes.
İlgili dosyalar:packages/shared/src/turkish-tax.ts
safe view
TR: arındırılmış görünümKavramKriptografi ve gizlilerDiğer adlar: oauth_connections_safe, cleaned view
Kalıcı bağlantıA restricted database view that exposes only non-secret connection metadata so application code can list connections without reading ciphertext.
Most screens only need to show whether Meta or Google is connected, when the token expires, and which account name is linked, never the encrypted credential bytes. A safe view projects only those harmless metadata columns while leaving ciphertext, iv, auth_tag, and wrapped_dek sealed inside the vault table. For example, granting the main app role SELECT on oauth_connections_safe instead of vault.oauth_connections prevents a careless SELECT * from ever leaking encrypted tokens.
Bu depoda nasıl kullanılır
Defined in docs/schema.sql (oauth_connections_safe) and mirrored in DTO projection tests in packages/vault/src/log-scrubber.ts.
İlgili dosyalar:docs/schema.sqlpackages/vault/src/log-scrubber.ts
safeguarded payment
TR: korumalı ödemeKavramHukuk, vergi ve ödemeDiğer adlar: safeguarded payments, korumalı ödeme, koruma hesabı
Kalıcı bağlantıA marketplace payment held in a TCMB-licensed payment provider's protection account until the buyer approves the delivered milestone.
When a small business hires an independent marketer, paying 100% upfront by bank transfer risks non-delivery while paying only after a month risks the marketer never getting paid. A safeguarded payment solves both sides without the software company touching the money: the buyer's card payment enters a licensed payment provider's statutory protection account (koruma hesabı) and releases directly to the marketer's and platform's IBANs only upon milestone approval or T+5 business-day deemed acceptance. For example, on a ₺25,080 retainer milestone, funds sit with iyzico Pazaryeri—never in the software company's bank account—and freeze if a dispute is opened. Owner decision OD-13 locks the wording "safeguarded payments" / "korumalı ödeme" on all public surfaces until legal counsel clears final terminology on issue 3.
Bu depoda nasıl kullanılır
Built and verified locally in sandbox mode in packages/payments/src/iyzico-adapter.ts and packages/payments/src/tr-tax-ledger.ts, with public wording enforced by tools/check-turkish-finance-copy.mjs; live GMV is locked until issue 3 closes.
İlgili dosyalar:packages/payments/src/iyzico-adapter.tspackages/payments/src/tr-tax-ledger.tstools/check-turkish-finance-copy.mjsdocs/OWNER-DECISIONS.md
sales pipeline
TR: fırsat hattıKavramBağlayıcılar ve CRMDiğer adlar: pipeline, deal pipeline
Kalıcı bağlantıAll active and closed CRM deals in a workspace grouped by lifecycle stage from lead to won or lost.
Viewing every lead and opportunity grouped by stage lets an owner see where deals accumulate and how much total value is in flight at any moment. Combining stage counts with exact integer kuruş totals turns the CRM from a passive contact list into an operational revenue tracker. For example, seeing 30 deals stuck in proposal worth 450,000 TRY while only 3 moved to won highlights an immediate follow-up opportunity. Pipeline summaries run read-only under FORCE RLS with zero raw PII.
Bu depoda nasıl kullanılır
Built in apps/api/src/routes/crm-pipeline-velocity.ts and displayed in apps/web/src/app/w/[workspaceId]/crm/.
İlgili dosyalar:apps/api/src/routes/crm-pipeline-velocity.ts
salted hash
TR: tuzlanmış özetKavramKriptografi ve gizlilerDiğer adlar: salt, salted SHA-256
Kalıcı bağlantıA hash computed over an input combined with a salt value so identical inputs yield different digests across contexts.
Adding a salt prevents precomputed rainbow tables and stops an observer from linking identical inputs across two different systems or exports. However, if the salt is visible or known to an attacker, fast hashing like plain SHA-256 still falls to targeted dictionary attacks against low-entropy values like phone numbers or emails. For example, salting a tax identifier prevents cross-dataset matching, whereas secrets or high-risk identifiers need a keyed HMAC or encryption.
Bu depoda nasıl kullanılır
Used in packages/payments/src/tax-reports.ts for pseudonymised tax-report references; authentication and webhook proofs use HMAC-SHA-256 or passkeys instead.
İlgili dosyalar:packages/payments/src/tax-reports.ts
A cookie attribute (SameSite=Lax) instructing browsers not to attach the cookie to cross-site POSTs or background requests while still sending it on top-level link clicks.
Cross-site request forgery (CSRF) relies on browsers automatically sending session cookies when a hostile page submits a hidden form or fetch request to your API. SameSite=Lax withholds the cookie on cross-site state-changing requests while still allowing a user clicking an e-mail link or returning from an OAuth redirect (GET top-level navigation) to keep their session intact. For example, __Host-gd_session pairs SameSite=Lax with a server-side Origin and X-GD-Request: 1 guard for defense in depth.
Bu depoda nasıl kullanılır
Set unconditionally to SameSite=Lax by serializeHostCookie in apps/api/src/auth/sign-in/cookies.ts.
İlgili dosyalar:apps/api/src/auth/sign-in/cookies.tsapps/api/src/auth/sign-in/origin-guard.ts
sample data stamp
TR: örnek veri damgasıKavramÖn yüz ve tasarımDiğer adlar: Örnek veri, Sample data, sample badge, sys.sample_badge, sample banner
Kalıcı bağlantıThe mandatory visible label (Örnek veri in Turkish, Sample data in English) placed on every panel or screen showing illustrative demo figures so they can never be mistaken for real numbers.
Showing realistic spend, revenue, or approval figures without an unmistakable banner invites owners to make real financial decisions based on placeholder numbers. Every offline preview screen reads the single canonical dictionary key (sys.sample_badge) to stamp sample panels loudly and removes the stamp only when genuine live_api data loads. For example, opening /w/mora-deri/overview without signing in displays Örnek veri prominently above every metric.
Bu depoda nasıl kullanılır
Defined under sys.sample_badge in apps/web/src/lib/words.ts (design/WORDS.md) and driven by formatDataSourceBadge in apps/web/src/lib/api-client.ts.
İlgili dosyalar:apps/web/src/lib/words.tsapps/web/src/lib/api-client.ts
sample fallback
TR: örnek veri yedeğiKavramÖn yüz ve tasarımDiğer adlar: sample mode, offline sample mode, local_sample_fallback, örnek kip
Kalıcı bağlantıThe offline preview mode (local_sample_fallback) that displays stamped sample data only when nobody is signed in, never as a silent substitute for a signed-in person live API error.
Offline sample fixtures let prospective owners and reviewers explore workspace screens locally before connecting an API or real accounts, provided every figure is stamped Sample data. However, if an actually signed-in user experiences an API timeout or 500 error, falling back silently to fake figures hides the outage and looks like corrupted account data—a real bug caught and fixed across Wave 46 and Wave 47. For example, once __Host-gd_signed_in=1 is present, transport failures show a calm error state instead of SAMPLE_PENDING_APPROVAL.
Bu depoda nasıl kullanılır
Controlled by hasLiveWorkspaceSession and isOfflinePreview in apps/web/src/lib/api-client.ts and apps/web/src/lib/workspace-context.tsx, verified by Wave 46–47 browser E2E tests.
İlgili dosyalar:apps/web/src/lib/api-client.tsapps/web/src/lib/workspace-context.tsx
sample workspace
KavramBüyük resimDiğer adlar: Mora Deri, Demir Diş, sample business
Kalıcı bağlantıOne of the two fictional businesses—Mora Deri and Demir Diş—used for local previews, seeds and automated tests.
Consistent fictional workspaces let designers, tests and demos use realistic Turkish e-commerce and local-clinic data without ever touching real customer personal information. To stay honest under refusal N10, every screen showing sample workspace data must stamp it clearly as sample data. For example, Mora Deri is an Istanbul leather workshop with an ikas storefront and Demir Diş is a Kadıköy dental clinic.
Bu depoda nasıl kullanılır
packages/db/src/seed-sample-workspace.sql seeds Mora Deri and Demir Diş for local development and tests, while live signed-in users see their own real workspace.
İlgili dosyalar:packages/db/src/seed-sample-workspace.sqldesign/FRAME.md
sandbox
TR: test ortamıKavramBağlayıcılar ve CRMDiğer adlar: partner sandbox, test ad account, sandbox account
Kalıcı bağlantıAn isolated provider test environment or test ad account that behaves like production without touching real money or customers.
Before running live budget mutations, checkout settlements or order syncs for paying businesses, teams validate every integration against provider sandboxes (such as Meta test ad accounts, iyzico sandbox or Shopify development stores). Even in this repository, dispatch-main.ts and the approval executor default to test-event codes and test accounts unless the owners explicitly acknowledge live mode (AGENTS.md rule 22). For example, Meta Conversions API test mode attaches test_event_code so events appear in Meta Events Manager Test Events tab without polluting live ad optimisation. All live external sandboxes remain honestly marked pending until issue 4 clears.
Bu depoda nasıl kullanılır
Enforced in apps/api/src/dispatch-main.ts (metaTestEventCode, DISPATCH_LIVE_ACKNOWLEDGEMENT) and documented in docs/WEBHOOK-DELIVERY-HMAC-AND-DEAD-LETTER-RUNBOOK.md (external_sandboxes_pending: true).
İlgili dosyalar:apps/api/src/dispatch-main.tsdocs/WEBHOOK-DELIVERY-HMAC-AND-DEAD-LETTER-RUNBOOK.md
schema (database)
TR: şemaKavramVeri ve PostgreSQLDiğer adlar: schema, namespace, public schema
Kalıcı bağlantıA named folder of tables and functions inside a PostgreSQL database, such as public, auth, or vault.
A PostgreSQL database can hold multiple schemas so related tables stay grouped and security boundaries align cleanly with namespaces. Revoking USAGE on an entire schema blocks a role from reaching anything inside it without listing tables one by one. For example, placing OAuth tokens in schema vault and revoking USAGE ON SCHEMA vault from {product}_app seals off the whole vault namespace at once.
Bu depoda nasıl kullanılır
The database uses three schemas: public (23 forced-RLS tenant tables plus global metadata), auth (sessions, login challenges, and MFA state behind SECURITY DEFINER functions), and vault (encrypted tokens and keys).
İlgili dosyalar:docs/schema.sqlpackages/db/migrations/0006_auth_durable_sessions_and_mfa.sql
schema drift
KavramBağlayıcılar ve CRMDiğer adlar: provider schema drift, DRIFT_SCHEMA_HASH_MISMATCH
Kalıcı bağlantıAn external API changing its JSON response structure away from what a connector expects, detected by schema hashing.
Storefront and ad platforms occasionally rename fields, change a money value from string to number or nest properties differently after an update. If a connector keeps parsing blindly after schema drift, it can silently record null totals, drop refunds or store wrong currencies. For example, bulk-job-and-manifest.ts compares the observed provider payload signature against the manifest expected SHA-256 schema hash and blocks ingestion with DRIFT_SCHEMA_HASH_MISMATCH rather than corrupting the ledger. Failing loud on schema drift catches breaking changes on the very first response.
Bu depoda nasıl kullanılır
Built in packages/connectors/src/bulk-job-and-manifest.ts (DRIFT_SCHEMA_HASH_MISMATCH).
İlgili dosyalar:packages/connectors/src/bulk-job-and-manifest.ts
schema guard
SüreçVeri ve PostgreSQLDiğer adlar: schema status, start-up schema check, inspectSchemaStatus
Kalıcı bağlantıA start-up check comparing public.schema_migrations against shipped migration files so production refuses to boot behind the code.
Deploying new API code against a database that has not received its latest migration leads to confusing runtime crashes on missing columns or triggers. Before listening on a port or claiming jobs, the schema guard inspects the migration ledger read-only and classifies it as current, ahead, drift, behind, unreadable, or unreachable. For example, if a production API boots while migration 0014 is still pending (behind), it logs one fatal structured line naming pnpm db:migrate and exits without serving traffic.
Bu depoda nasıl kullanılır
apps/api/src/platform/schema-guard.ts runs inspectSchemaStatus on API, worker, and dispatch start-up, exposes the result on GET /health, and refuses to start in production on behind, unreadable, or unreachable.
İlgili dosyalar:apps/api/src/platform/schema-guard.tspackages/db/src/migrations/schema-status.tspackages/db/migrations/0005_schema_migrations_app_read.sql
Schema.org
StandartBağlayıcılar ve CRMDiğer adlar: @context, @type, schema type, FAQPage, LocalBusiness
Kalıcı bağlantıThe shared open vocabulary (@context: https://schema.org, @type) used inside JSON-LD so search engines understand page entities.
Schema.org defines standard entity types—such as Product, Offer, Organization, LocalBusiness, Dentist, MedicalClinic, FAQPage and Article—along with exact property names like priceCurrency, availability and telephone. Using Schema.org inside JSON-LD lets Google interpret Turkish e-commerce products and clinics unambiguously regardless of page layout. For example, auditor.ts recognises 25 local business subtypes under Schema.org to compute local_nap_score, while jsonld-generator.ts emits valid Schema.org blocks strictly from verified store data. Clean Schema.org types improve rich-result eligibility without risky hacks.
Bu depoda nasıl kullanılır
Validated in apps/seo-worker/src/auditor.ts (LOCAL_BUSINESS_TYPES) and emitted by apps/seo-worker/src/jsonld-generator.ts.
İlgili dosyalar:apps/seo-worker/src/auditor.tsapps/seo-worker/src/jsonld-generator.ts
Unagreed extra tasks quietly piling onto a fixed-price sprint or monthly retainer without adjusting the written scope, deadline or fee.
Scope creep is one of the fastest ways a healthy business-marketer engagement ends in an ugly dispute: a client who hired a marketer for a ₺9,500 7-day CAPI repair sprint starts asking for full TikTok video editing and website redesigns inside the same week. Locking a clear written Statement of Work (SOW) and separating milestone deliverables into explicit checklist items lets both sides see immediately what is in scope and what belongs in a separate milestone. For example, reviewing disputes strictly against the agreed SOW prevents scope creep from turning into unfair non-payment.
Bu depoda nasıl kullanılır
Mitigated structurally by explicit SOW approval checks before write escalation in apps/api/src/routes/marketplace-trust-shortlist.ts and fixed-scope 7-day sprints in docs/adr/0008-audit-to-sprint-cold-start-wedge.md.
İlgili dosyalar:apps/api/src/routes/marketplace-trust-shortlist.tsdocs/adr/0008-audit-to-sprint-cold-start-wedge.md
scoped access and safeguarded payment (screen 9)
TR: Kapsamlı yetki ve korumalı ödeme sözleşmesiKavramHukuk, vergi ve ödemeDiğer adlar: Scoped Access & Safeguarded Payment, Kapsamlı Yetki ve Korumalı Ödeme, screen 9, engagement screen, /w/:ws/engagements/:id
Kalıcı bağlantıThe workspace engagement screen that pairs a marketer's narrow revocable permissions and daily spend ceiling with the exact Turkish tax and safeguarded-payment breakdown.
Combining permission boundaries and payment math on one contract screen lets a business owner review every consequence before hiring a marketer. The screen shows what permissions are granted (read metrics, propose edits requiring owner approval), what permissions are never grantable (token export, billing, unapproved spend), the exact kuruş breakdown of VAT, 3/10 withholding and 1% e-commerce withholding, and a one-click revoke button. For example, revoking access on this screen closes the marketer's grant immediately and cancels pending approval requests while leaving the business's ad accounts, pixels and history intact.
Bu depoda nasıl kullanılır
Designed in design/WORDS.md (Screen 9, esc.* keys) and backed locally by packages/payments/src/tr-tax-ledger.ts and apps/api/src/routes/payments.ts; live checkout remains in sandbox pending issue 3.
İlgili dosyalar:design/WORDS.mdpackages/payments/src/tr-tax-ledger.tsapps/api/src/routes/payments.ts
PostgreSQL's challenge-response password authentication method (RFC 7677), which proves knowledge of a password without sending it in clear.
Older database authentication methods sent passwords or weak MD5 hashes across the wire, making intercepted traffic easier to crack. SCRAM-SHA-256 uses a salted, iterated HMAC handshake where both client and server prove they know the secret without transmitting the raw password. For example, PostgreSQL 18 defaults to scram-sha-256 for password authentication between the API login and the server.
Bu depoda nasıl kullanılır
Database login roles ({product}_app_login, {product}_vault_login) authenticate over PostgreSQL's scram-sha-256 mechanism, while packages/db/src/pool.ts redacts credentials from connection strings in logs.
İlgili dosyalar:packages/db/src/pool.tsdeploy/postgres/init-roles.sql
Screen 1–12 and Surface A–C
Proje kimliğiProje kodlarıDiğer adlar: Screen 1 to Screen 12, Surface A, B and C, screen number
Kalıcı bağlantıThe fixed numbering in design/FRAME.md for the twelve Release 1 core screens and three supporting surfaces.
Numbering every screen (Screen 1 90-second audit through Screen 12 5-task SEO) and supporting surface (Surface A onboarding, Surface B mobile approval notice, Surface C public verified marketer dossier) gives designers, writers, API engineers and tests one shared vocabulary. For example, Screen 3 always names the approval drawer and Screen 9 always names scoped access with safeguarded payment.
Bu depoda nasıl kullanılır
Defined in design/FRAME.md section 3 and mapped 1:1 to bilingual string tables in design/WORDS.md.
İlgili dosyalar:design/FRAME.mddesign/WORDS.md
screen reader
TR: ekran okuyucuTeknolojiÖn yüz ve tasarımDiğer adlar: NVDA, VoiceOver
Kalıcı bağlantıAssistive software such as NVDA on Windows or VoiceOver on Apple devices that speaks the accessibility tree aloud and lets users navigate via keyboard or gestures.
Screen readers announce element roles, accessible names, heading levels, landmarks, live-region updates, and ARIA states in the language declared by <html lang>. Because screen-reader users cannot see visual proximity or colour alone, clear headings, labels, alt text, and semantic controls determine whether a screen is genuinely usable. For example, NVDA announces an approval button as Onayla, düğme and speaks live status changes when role="status" updates.
screen states
TR: ekran durumlarıKavramÖn yüz ve tasarımDiğer adlar: explicit states, empty state, loading state, error state, offline state, partial state, conflict state, permission state, success state, yükleniyor, Bağlantı yok, Okuma modu
Kalıcı bağlantıThe nine explicit conditions every screen designs for (loading, empty, error, offline, partial, conflict, permission, skipped_no_consent, success) so no view turns blank.
Most interfaces only design the happy path with populated data, leaving real users staring at an empty white box during loading, a fake ₺0 during a network failure, or a silent disabled button when they lack write permission. Designing all nine explicit states upfront with calm wording and clear next actions keeps every edge case honest. For example, an empty approvals queue displays an EmptyState explaining nothing awaits review, whereas a permission restriction shows a calm Read-only mode banner.
Bu depoda nasıl kullanılır
Supported by Banner, InlineAlert, EmptyState, Skeleton, and DataTable states in packages/ui/src/components/ and wording keys in design/WORDS.md and apps/web/src/lib/words.ts.
İlgili dosyalar:packages/ui/src/components/Banner.tsxpackages/ui/src/components/EmptyState.tsxdesign/WORDS.md
scrim
TR: karartma katmanıKavramÖn yüz ve tasarımDiğer adlar: --scrim, backdrop, overlay
Kalıcı bağlantıThe translucent dimmed backdrop (--scrim) rendered behind an open drawer or modal dialog to signal visually that the underlying page is inert until the overlay closes.
A scrim lowers contrast on the background page so attention locks onto the active decision without harsh blackouts, and clicking the scrim optionally dismisses non-destructive drawers. Pairing the visual scrim with aria-modal="true" and a keyboard focus trap ensures both sighted and assistive-technology users stay inside the active layer. For example, opening Drawer lays --scrim across the workspace table behind the approval panel.
Bu depoda nasıl kullanılır
Defined as --scrim in packages/ui/src/tokens.css and rendered by Drawer, ConfirmDialog, and CommandBar in packages/ui/src/components/.
İlgili dosyalar:packages/ui/src/tokens.csspackages/ui/src/components/Drawer.tsx
SDK
SDKKavramBağlayıcılar ve CRMDiğer adlar: software development kit
Kalıcı bağlantıA vendor-maintained software development kit wrapping an API, avoided here in favour of small pinned direct HTTP clients.
Third-party platform SDKs often pull dozens of transitive dependencies, lag behind pinned API versions, hide retry behaviour or bundle telemetry and proprietary LLM transports. Writing focused TypeScript clients over Node standard fetch keeps the dependency tree tiny, enforces explicit timeouts, caps Retry-After headers and passes every call through our SSRF and fake-provider guards. For example, all OAuth, Meta Graph, Google Ads, ikas and Shopify connectors use direct HTTP calls without installing facebook-nodejs-business-sdk or vendor LLM SDKs. Small direct clients are easier to audit and test.
Bu depoda nasıl kullanılır
Connector calls use direct HTTP clients in packages/connectors/src/http-clients.ts and packages/connectors/src/oauth/; proprietary LLM SDKs are banned by tools/check-architecture.mjs.
İlgili dosyalar:packages/connectors/src/http-clients.ts