T+5 auto-acceptance
TR: otomatik onaySüreçİş modeli ve pazarDiğer adlar: T+5 auto-accept, deemed approval, auto-accept, auto_accepted_t5, otomatik kabul
Kalıcı bağlantıThe marketplace rule that a delivered milestone is deemed accepted five business days after submission if the buyer has neither approved it nor opened a dispute.
Safeguarded payments must protect both sides: buyers need time to inspect deliverables before money releases, while marketers must not go unpaid indefinitely simply because a busy owner forgets to click approve. T+5 auto-acceptance gives the business five full business days to review a submitted milestone; if no dispute is filed within that window, the deliverable transitions to auto_accepted_t5 and triggers payment release. For example, opening a formal dispute on Day 3 halts the T+5 timer immediately and keeps funds held at iyzico Pazaryeri until resolution.
Bu depoda nasıl kullanılır
Built and verified locally in packages/payments/src/state-machines.ts and packages/payments/src/iyzico-adapter.ts (autoAcceptedAfterT5BusinessDays); Turkish B2B ToS wording awaits counsel sign-off (C5) on issue 3.
İlgili dosyalar:packages/payments/src/state-machines.tspackages/payments/src/iyzico-adapter.tsdocs/COUNSEL-BRIEF.md
A major Turkish e-commerce platform covered Day 1 via the tracking snippet, with its native connector app planned for Release 2.
T-Soft serves a large segment of Turkish retail and multi-branch e-commerce brands alongside ikas, Ticimax and IdeaSoft. Under owner decision OD-06, Release 1 focuses native Day-1 launch support on ikas, WooCommerce, the Universal JS Snippet and Ticimax webhook bridges while scoping native T-Soft App Platform onboarding to Release 2. For example, a T-Soft merchant can run first-party tracking via the universal snippet on Day 1, and canonical order-normalisation code already lives in ideasoft-tsoft.ts ready for Release 2. Being transparent about native vs snippet support avoids broken launch promises.
Bu depoda nasıl kullanılır
Order normaliser built in packages/connectors/src/ideasoft-tsoft.ts; native T-Soft App Platform listing is scoped to Release 2 under OD-06 (docs/OWNER-DECISIONS.md).
İlgili dosyalar:packages/connectors/src/ideasoft-tsoft.tsdocs/OWNER-DECISIONS.md
T001–T081 (research test-scenario ids)
Proje kimliğiProje kodlarıDiğer adlar: test-matrix id, Kimi test matrix
Kalıcı bağlantıThree-digit scenario IDs (T001–T081) from external Pass 2 research reused to trace key behavioural rules in code.
Pass 2 research catalogued 81 concrete failure and safety test scenarios covering guardrails, access control, AI red-teaming, data export and KPI math. This repository adopts applicable scenario IDs with a leading zero — such as T031 (kill switch), T037 (unified ACL), T071 (honest blanks) and T074 (full export) — while excluding inapplicable native Android tests and correcting a research math bug in T071. For example, the leading zero clearly separates T037 from threat T3.
Bu depoda nasıl kullanılır
Mapped in docs/VERIFICATION.md and research/kimi-reading-2.md, and cited across tests and static gates in tools/.
İlgili dosyalar:docs/VERIFICATION.mdresearch/kimi-reading-2.md
T037
Proje kimliğiProje kodlarıDiğer adlar: unified ACL (T037)
Kalıcı bağlantıResearch scenario ID T037: the unified access-control invariant blocking restricted records across every channel.
Blocking a restricted contact on the main UI table does no good if a marketer can still find that same record via global search, an association join, a CSV export or an AI retrieval call. Under T037, the exact same workspace and scope rules run uniformly across direct URLs, reports, search, exports, APIs and AI context builders. For example, a marketer without crm:read_contacts sees zero contact fields on every single channel.
Bu depoda nasıl kullanılır
Implemented in packages/auth/src/unified-acl.ts, enforced at the database layer via FORCE ROW LEVEL SECURITY and verified under security gate G1 (docs/VERIFICATION.md).
İlgili dosyalar:packages/auth/src/unified-acl.tsdocs/VERIFICATION.md
Research scenario ID T071: the honest-blank KPI rule returning NULL (shown as —) whenever a denominator or input is missing.
Dividing ad spend by zero clicks or computing contribution margin without product cost data produces misleading infinity values or fake 0.0x ratios if not guarded explicitly. Under T071, every zero denominator or missing input such as cogs_minor === null yields null and renders as —, while spend = 0 with clicks > 0 validly returns 0 (correcting an early bug in the original research text). For example, 0 orders gives CAC = null (—), never Infinity.
Bu depoda nasıl kullanılır
Documented in docs/VERIFICATION.md and docs/UNIT-ECONOMICS-T071-AND-CONTRIBUTION-MARGIN-POLICY.md, implemented in packages/ai/src/layer0-analytics.ts and audited by tools/check-kpi-and-freshness-invariants.mjs.
İlgili dosyalar:docs/VERIFICATION.mdpackages/ai/src/layer0-analytics.tsdocs/UNIT-ECONOMICS-T071-AND-CONTRIBUTION-MARGIN-POLICY.md
Research scenario ID T074: full owner operating-history export with schema manifest and SHA-256 checksums, blocking marketer PII export.
Account sovereignty requires that a business can leave cleanly with its full operating history instead of being locked inside proprietary dashboards. Under T074, workspace owners can export their complete ledger with a machine-readable schema manifest and SHA-256 verification digests, while marketers remain hard-blocked from exporting raw customer personal data (crm:export_pii banned). For example, an owner switching platforms downloads a verifiable archive in one request.
Bu depoda nasıl kullanılır
Implemented in apps/api/src/routes/exports.ts (workspace_exports table in docs/schema.sql) and governed by docs/DATA-MIGRATION-AND-PORTABILITY-SPEC.md.
İlgili dosyalar:apps/api/src/routes/exports.tsdocs/DATA-MIGRATION-AND-PORTABILITY-SPEC.mddocs/VERIFICATION.md
Threat 1 in docs/THREAT-MODEL.md: cross-tenant data leakage or writes across competing workspaces by a shared marketer.
A performance marketer often serves several Turkish shops at once, creating a high risk that an open browser tab, direct deal link or mis-scoped query leaks one competitor's numbers to another. Controls include explicit /w/:workspaceId URLs, PostgreSQL FORCE ROW LEVEL SECURITY on all 23 tenant tables, unified ACL checks (T037) and instant 1-click grant revocation; note that older AGENTS.md rule 7 cited this threat as T3. For example, swapping a deal UUID in the URL returns nothing because PostgreSQL hides the other workspace's row.
Bu depoda nasıl kullanılır
Defined in docs/THREAT-MODEL.md section 2 and tested by security gate G1 (tests/db/security-matrix.sql, tests/db/run-db-tests.mjs).
İlgili dosyalar:docs/THREAT-MODEL.mdtests/db/security-matrix.sql
T1–T8 (threat numbers)
Proje kimliğiProje kodlarıDiğer adlar: threat T1 to T8
Kalıcı bağlantıThe eight core STRIDE and AdTech threat IDs (T1–T8) catalogued in docs/THREAT-MODEL.md.
Threat IDs map each realistic attacker scenario directly to its mandatory controls and automated security gate, from cross-tenant leaks and credential theft through runaway spend, PII leakage, crawler SSRF, prompt injection, webhook spoofing and ledger tampering. Note that docs/THREAT-MODEL.md and docs/RUNBOOK.md use one order (T1 cross-tenant, T2 tokens, T3 spend), while an older research outline cited in AGENTS.md rule 7 swapped T1–T3, though T4 through T8 match identically in both. For example, reading the threat's short name alongside its number removes any ambiguity.
Bu depoda nasıl kullanılır
Defined in docs/THREAT-MODEL.md section 2 and referenced across docs/RUNBOOK.md, deploy/ and AGENTS.md.
İlgili dosyalar:docs/THREAT-MODEL.mddocs/RUNBOOK.mdAGENTS.md
Threat 2 in docs/THREAT-MODEL.md: theft of stored OAuth ad-platform tokens or payment sub-merchant credentials.
Stolen Meta or Google refresh tokens let an attacker hijack a shop's ad spend, and stolen payment credentials threaten payouts. Controls isolate credentials inside the vault schema (inaccessible to {product}_app), wrap them with AES-256-GCM per-workspace DEKs bound by AAD, and scrub tokens from every API DTO and Pino log line; older research numbered this threat T1. For example, even an SQL bug running as the API's app login gets permission denied on vault.oauth_connections.
Bu depoda nasıl kullanılır
Defined in docs/THREAT-MODEL.md section 2 and verified by security gate G2 (packages/vault/test/, apps/api/src/logger.ts).
İlgili dosyalar:docs/THREAT-MODEL.mdapps/api/src/logger.ts
Threat 3 in docs/THREAT-MODEL.md: a rogue or compromised account draining ad spend or mutating live campaigns.
If a marketer's laptop is compromised, a single unguarded budget hike from ₺1,800 to ₺100,000 can wipe out a small business overnight. Controls forbid direct marketer execution, pin every proposal preview with an expiring SHA-256 hash, enforce single-step and daily ceilings plus a global kill switch in both code and PostgreSQL triggers, and demand step-up MFA above threshold; note AGENTS.md rule 7 used T3 for cross-tenant isolation from the earlier research numbering. For example, attempting to edit action_payload_jsonb after approval fails inside the database trigger.
Bu depoda nasıl kullanılır
Defined in docs/THREAT-MODEL.md section 2, tied to Playbook A in docs/RUNBOOK.md and verified under G3 (packages/approvals/, docs/schema.sql).
İlgili dosyalar:docs/THREAT-MODEL.mddocs/RUNBOOK.mdpackages/approvals/src/guardrails.ts
Threat 4 in both threat lists: raw personal data leaking into events or logs, or unconsented events reaching ad platforms.
Storing plaintext customer e-mails or phone numbers in tracking rows, logging raw client IPs or sending declined visitors to Meta and Google violates KVKK and platform policies. Controls hash identifiers at the edge collector with per-platform rules (D14, OD-16), mask proxy IPs, drop declined consent as skipped_no_consent and block erased contacts via database trigger. For example, an erased contact row in crm_contacts can never enter conversion_feedback_queue.
Bu depoda nasıl kullanılır
Defined identically in docs/THREAT-MODEL.md section 2 and verified by G4 (apps/collector, packages/signals, deploy/caddy/Caddyfile).
İlgili dosyalar:docs/THREAT-MODEL.mddeploy/caddy/Caddyfile
Threat 5 in both threat lists: SSRF, DNS rebinding and resource exhaustion targeting the SEO crawler.
An SEO crawler fetches URLs supplied by users, so an attacker can submit internal cloud metadata addresses (169.254.169.254), loopback ports (127.0.0.1:5432) or domains that rebind DNS after the first check. Controls isolate seo-worker on its own egress-only network with zero database or vault environment variables, pin validated public IPs at connect time on every redirect hop and cap memory, bytes and hops. For example, submitting an HTTP 302 redirect to 127.0.0.1 aborts with blocked_ssrf before opening a socket.
Bu depoda nasıl kullanılır
Defined identically in docs/THREAT-MODEL.md section 2 and enforced across apps/seo-worker and deploy/docker-compose.staging.yml (Zone 3 egress_zone3).
İlgili dosyalar:docs/THREAT-MODEL.mddeploy/docker-compose.staging.yml
Threat 6 in both threat lists: prompt injection inside crawled HTML, ad copy or CRM notes trying to hijack AI output.
Hostile webpages or lead notes can embed hidden instructions telling an AI model to raise ad budgets, run SQL or reveal another shop's prompts. Controls strip every AI adapter of write tools, SQL access and vault credentials, treat external text strictly as untrusted data, validate outputs against closed Zod schemas and route any draft proposal through human owner approval. For example, even if a crafted webpage tricks the model's phrasing, no code path lets the AI execute a budget change.
Bu depoda nasıl kullanılır
Defined in docs/THREAT-MODEL.md section 2, cited by AGENTS.md rule 14 and tested by AI red-team suites in packages/ai.
İlgili dosyalar:docs/THREAT-MODEL.mdAGENTS.md
Threat 7 in both threat lists: forged webhooks and replayed order, tracking or payment callbacks.
If an API accepts unsigned JSON webhooks or fails to reject replayed requests, an attacker can inject fake purchases to poison ad bidding or spoof a payment callback to release a milestone prematurely. Controls verify raw-body HMAC signatures in constant time (crypto.timingSafeEqual) before JSON parsing, enforce timestamp skew windows (±300 s) and deduplicate callbacks in PostgreSQL. For example, replaying a captured edge batch six minutes later fails the timestamp check immediately.
Bu depoda nasıl kullanılır
Defined in docs/THREAT-MODEL.md section 2, verified by G6 (apps/api/src/hmac.ts, deploy/caddy/Caddyfile raw-body passthrough and tests/security/chaos-and-races.test.mjs).
İlgili dosyalar:docs/THREAT-MODEL.mdapps/api/src/hmac.ts
Threat 8 in both threat lists: tampering with payment fee or tax splits, double-releasing milestones or editing audit history.
Client-calculated fees, binary floating-point rounding or mutable audit tables let an attacker shave commissions, release a milestone twice or erase traces of an unauthorised change. Controls compute every fee, 3/10 VAT withholding and 1 percent stopaj figure on the server in BIGINT integer kuruş, enforce exact balance constraints in PostgreSQL, and block UPDATE, DELETE and TRUNCATE on hash-chained audit and payment ledgers. For example, attempting to edit one past audit_log row is rejected by trg_audit_log_immutable.
Bu depoda nasıl kullanılır
Defined in docs/THREAT-MODEL.md section 2 and verified by G6 (packages/payments, docs/schema.sql, tools/verify-audit-bundle.mjs).
İlgili dosyalar:docs/THREAT-MODEL.mddocs/schema.sqltools/verify-audit-bundle.mjs
tab order
TR: sekme odak sırasıKavramÖn yüz ve tasarımDiğer adlar: tabindex, tabIndex, focus order
Kalıcı bağlantıThe sequence in which pressing Tab moves keyboard focus across controls, which should follow natural DOM reading order using only tabIndex={0} or -1 (never positive values).
Setting positive numbers like tabIndex={2} hijacks global focus navigation so Tab jumps erratically around the page before returning to normal controls, creating a confusing trap for keyboard and screen-reader users. Keeping source DOM order aligned with visual order and using tabIndex={0} / -1 solely for roving tabindex widgets guarantees predictable navigation. For example, static checks immediately reject any positive tabIndex in apps/web or packages/ui.
Bu depoda nasıl kullanılır
Enforced by invariant 3 of tools/check-a11y-static.mjs, banning positive tabIndex attributes across all frontend source files.
İlgili dosyalar:tools/check-a11y-static.mjs
table (database)
TR: tabloKavramVeri ve PostgreSQLDiğer adlar: table
Kalıcı bağlantıA named collection of structured rows sharing the same columns, constraints, and security policies.
A relational database divides data into tables by subject so each kind of record has strict columns, keys, and rules rather than mixed blobs. Tables link to one another through primary and foreign keys and can enforce row-level security policies independently. For example, workspaces, workspace_memberships, marketer_grants, and approval_requests are separate tables connected by workspace_id.
Bu depoda nasıl kullanılır
docs/schema.sql defines 31 base tables and 7 partition tables (plus later migration tables in public, auth, and vault), with 23 baseline tenant tables protected by FORCE ROW LEVEL SECURITY.
İlgili dosyalar:docs/schema.sqlpackages/db/src/schema-contract.ts
table owner
TR: tablo sahibiKavramVeri ve PostgreSQLDiğer adlar: migration role
Kalıcı bağlantıThe PostgreSQL role that created a table, which may run DDL on it and bypasses plain RLS unless FORCE ROW LEVEL SECURITY is set.
Separating the role that creates and migrates tables (the table owner) from the runtime role ({product}_app) keeps the running application unable to drop tables, disable triggers, or alter constraints. Adding FORCE ROW LEVEL SECURITY ensures that even the table owner is subject to tenant policies unless it is also a superuser or holds BYPASSRLS. For example, pnpm db:migrate runs as the migration owner, while the API connects as {product}_app_login.
Bu depoda nasıl kullanılır
Migrations run under the table-owning migration role; runtime API/worker logins inherit {product}_app and cannot alter schema structure.
İlgili dosyalar:deploy/postgres/init-roles.sqlpackages/db/migrations/0003_approval_intent_integrity.sql
tabular numerals
TR: tablo rakamlarıKavramÖn yüz ve tasarımDiğer adlar: tabular-nums, tnum, lnum, tabular figures
Kalıcı bağlantıEqual-width digit glyphs enabled with CSS font-variant-numeric: tabular-nums so numbers and currency amounts align vertically digit under digit in columns.
Proportional digits make 1 narrower than 8, causing currency columns to wobble sideways and making a ₺1.111,00 row look shorter than ₺888,00 at a glance. Turning on tabular lining numerals gives every digit 0 through 9 the exact same advance width so decimal commas, thousands dots, and total rows align like an accountant ledger. For example, MoneyCell, DataMetric, and AllocationBar apply tabular-nums to every figure.
Bu depoda nasıl kullanılır
Applied across numeric primitives such as packages/ui/src/components/MoneyCell.tsx, DataMetric.tsx, and AllocationBar.tsx.
İlgili dosyalar:packages/ui/src/components/MoneyCell.tsx
tag input
TR: etiket girişiKavramÖn yüz ve tasarımDiğer adlar: TagInput, chip input
Kalıcı bağlantıA multi-value text field that adds short chips on Enter or comma, removes the last chip on Backspace, and deduplicates entries using Turkish-safe case folding.
Collecting campaign labels, UTM tags, or excluded domains in a single raw comma-separated string invites typos and accidental duplicates like İstanbul alongside istanbul. A dedicated tag-input primitive renders each chip with a touch-sized remove button, keyboard Backspace deletion, accessible announcements, and Turkish-aware duplicate rejection. For example, typing istanbul when İstanbul is already listed rejects the duplicate cleanly instead of storing both.
Bu depoda nasıl kullanılır
Implemented as TagInput in packages/ui/src/components/TagInput.tsx using foldTagForComparison for Turkish-safe duplicate detection.
İlgili dosyalar:packages/ui/src/components/TagInput.tsx
tail latency
TR: kuyruk gecikmesiMetrikOperasyon ve doğrulamaDiğer adlar: slow tail
Kalıcı bağlantıThe slow response times experienced by the unlucky top 5 percent or 1 percent of requests (p95 and p99).
Users remember the requests that hang, not the fast median ones, and a screen that triggers five API calls hits the slow tail far more often than one call does. Watching tail latency catches database lock queues, pool exhaustion and garbage-collection stalls early. For example, if p50 is 15 ms while p99 climbs to 4,000 ms, one in a hundred approval clicks feels frozen.
Bu depoda nasıl kullanılır
Measured locally in tests/perf/load-bench.mjs (p95 and p99 ms across 6,880 requests) and tracked as p95_latency_ms in the ai_inference_runs audit query in docs/RUNBOOK.md.
İlgili dosyalar:tests/perf/load-bench.mjsdocs/RUNBOOK.md
The utility-first CSS framework (v4) beneath our closed kit, configured strictly against custom design tokens so screens combine small single-purpose classes safely.
Instead of writing sprawling custom CSS files where unused rules pile up and specificity conflicts break layouts, Tailwind compiles only the exact utility classes used across .tsx files into one compact stylesheet. In Tailwind v4, CSS-first @theme blocks let a design system wipe default colours and spacing scales so every utility maps directly to closed project tokens. For example, apps/web runs Tailwind CSS 4.3.5 driven exclusively by packages/ui/src/tokens.css.
Bu depoda nasıl kullanılır
Installed at 4.3.5 in apps/web/package.json and locked down via @theme resets in packages/ui/src/tokens.css.
İlgili dosyalar:apps/web/package.jsonpackages/ui/src/tokens.css
Tailwind theme block
TR: Tailwind tema bloğuTeknolojiÖn yüz ve tasarımDiğer adlar: @theme
Kalıcı bağlantıThe Tailwind CSS v4 @theme declaration in packages/ui/src/tokens.css that resets Tailwind built-in colour, radius, and spacing scales and registers only our closed tokens.
Out of the box, Tailwind provides hundreds of generic palettes (bg-purple-500, rounded-3xl, p-3.5) that allow any screen to drift away from the visual system. Putting --color-*: initial; --radius-*: initial; --spacing-*: initial; at the top of @theme turns off every default utility and exposes strictly the approved design tokens. For example, attempting to write bg-purple-500 simply generates no rule because only closed tokens exist.
Bu depoda nasıl kullanılır
Declared at the top of packages/ui/src/tokens.css and enforced alongside tools/check-tokens.mjs.
İlgili dosyalar:packages/ui/src/tokens.csstools/check-tokens.mjs
take rate
Metrikİş modeli ve pazarDiğer adlar: marketplace take rate
Kalıcı bağlantıThe platform's gross marketplace commission revenue divided by total gross merchandise value (GMV), measuring what slice of marketplace volume the platform keeps.
Generalist marketplaces push take rates to 15%–20% (like Bionluk's 20%) to make marketplace commission their sole profit engine—which drives recurring B2B retainers off-platform immediately. Because this business makes 75% to 85% of its modelled gross profit from SaaS subscriptions, it deliberately runs a low blended take rate (4.5% in Year 1 under the Founding Cohort lock, rising only to ~5.8%–6.0% in Years 2–3 across sprints and tapered retainers). For example, in docs/FINANCIAL-MODEL-36M.md (model only), Base Year 2 models ₺3.01M gross marketplace fees on ₺51.84M GMV—an effective 5.8% take rate.
Bu depoda nasıl kullanılır
Modelled in docs/FINANCIAL-MODEL-36M.md (§4.1, §5.1) and defined as a ratio of sums in docs/BOARD-KPI-AND-GOVERNANCE-CHARTER.md (§1); live take rate is NOT_YET_LAUNCHED.
İlgili dosyalar:docs/FINANCIAL-MODEL-36M.mddocs/BOARD-KPI-AND-GOVERNANCE-CHARTER.md