f1–f4 (flows)
Proje kimliğiProje kodlarıDiğer adlar: flow f1 to f4, f1-command, f4-crm, f1, f2, f3, f4
Kalıcı bağlantıThe four product journeys in design/FRAME.md that organise the twelve core Release 1 screens into groups of three.
Grouping the product into four flows keeps every screen tied to an end-to-end job rather than an isolated menu item: f1 covers the audit, overview and approvals; f2 covers connections, signal setup and debugging; f3 covers marketers, dossiers and safeguarded payments; and f4 covers CRM leads, conversion feedback and 5-task SEO. For example, prototype HTML files such as f1-command.html inherit their prefix straight from these four flows.
Bu depoda nasıl kullanılır
Defined in design/FRAME.md section 3 and mirrored across design/WORDS.md, design/prototypes/ and docs/VERIFICATION.md.
İlgili dosyalar:design/FRAME.mddesign/WORDS.md
Facebook Login for Business
TeknolojiBağlayıcılar ve CRMDiğer adlar: config_id
Kalıcı bağlantıMeta OAuth login product for business apps, allowing owners to grant scoped ad-account access via a config_id.
Standard consumer Facebook Login cannot grant reliable business-asset permissions for managing ad accounts and Conversions API datasets. Facebook Login for Business lets an owner choose specific business portfolios, ad accounts and pages on Meta own consent screen using an optional config_id bundle of scopes. For example, an owner clicks connect in Screen 4, signs in at www.facebook.com, approves read and campaign scopes for one business portfolio and returns to pick the exact ad account within a 10-minute sealed window (OD-21). The business never shares its Meta password with the product.
Bu depoda nasıl kullanılır
Implemented in packages/connectors/src/oauth/ and apps/api/src/connections/oauth/; live partner review (issue 4) is still pending.
İlgili dosyalar:packages/connectors/src/oauthapps/api/src/connections/oauth
fail closed
KavramSaldırı ve savunmalarDiğer adlar: fail-closed
Kalıcı bağlantıDefaulting to denial whenever a security check errors, receives ambiguous input, or lacks required configuration.
When a database lookup fails, a date parses as NaN, a vault key is missing, or a header arrives twice with conflicting values, software must choose between allowing the request through (fail open) or refusing it (fail closed). Security boundaries always fail closed so unexpected faults cause a visible 401, 403, or 503 rather than a silent bypass. For example, if VAULT_MASTER_KEK_BASE64 is missing in production, the API refuses to start rather than inventing an ephemeral key.
Bu depoda nasıl kullanılır
Enforced across apps/api/src/platform/runtime-config.ts, apps/seo-worker/src/ssrf-guard.ts, packages/vault/src/envelope.ts, and apps/api/src/hmac.ts.
İlgili dosyalar:apps/api/src/platform/runtime-config.tsapps/seo-worker/src/ssrf-guard.ts
The unsafe anti-pattern of allowing access or skipping validation when a check errors, parses as NaN, or hits an edge case.
Fail-open bugs frequently hide inside ordinary comparisons: checking if (now > expiresAt) returns false when expiresAt is Invalid Date (NaN), making a broken timestamp look forever valid. Catching an exception and returning true or falling back to permissive defaults creates silent security holes attackers can trigger on demand. For example, writing if (!Number.isFinite(expiresAt) || now >= expiresAt) deny() turns a fail-open bug into a fail-closed check.
Bu depoda nasıl kullanılır
Explicitly guarded against in expiry checks, Number.isFinite assertions, and startup guards throughout apps/api and packages/auth.
fail-fast configuration
KavramOperasyon ve doğrulamaDiğer adlar: fail fast, runtime config, runtime configuration
Kalıcı bağlantıValidating every required setting at boot and exiting immediately on any error instead of starting in a broken mode.
A server that silently falls back to sample data, an empty secret or a random encryption key when an environment variable is missing creates hidden data loss or security holes. Fail-fast configuration checks every required variable before opening a port or database pool, logs only problem codes (never secret values) and exits non-zero. For example, starting the API in production without DATABASE_URL or a 32-byte vault master key fails in milliseconds.
Bu depoda nasıl kullanılır
In apps/api/src/platform/runtime-config.ts, loadApiRuntimeConfig and loadDispatchRuntimeConfig reject missing secrets, known local dev passwords, invalid NODE_ENV values and the test-only fake provider in production.
İlgili dosyalar:apps/api/src/platform/runtime-config.tsapps/api/src/server.tsapps/api/src/dispatch-main.ts
failing test first
SüreçNasıl geliştiriyoruzDiğer adlar: reproduce first, reproduction, test first
Kalıcı bağlantıThe habit of writing a test that fails because of a defect before writing the fix, proving the test actually catches the bug.
If you write a fix first and a test afterwards, it is surprisingly easy to write a test that would have passed even before the fix—giving false confidence. Running the new test against the broken code and watching it fail proves both that you reproduced the real defect and that the test will guard against it forever. For example, Wave 45 A wrote 11 failing guardrail exploit tests first and only then fixed guardrails.ts.
Bu depoda nasıl kullanılır
Mandated by docs/VERIFICATION.md rule 1.3 and docs/wave49/briefs/COMMON.md for every bug fix.
İlgili dosyalar:docs/wave49/briefs/COMMON.mddocs/VERIFICATION.md
Switching live traffic from a failed primary server or database to a standby replacement.
Failover limits downtime when a host suffers a hardware, disk or data-centre failure by promoting a replica or restoring onto a clean server and pointing traffic there. For regulated data, failover must respect residency rules so a disaster does not accidentally move personal data across borders. For example, promoting a standby in the same country keeps Turkish customer rows inside Turkey.
Bu depoda nasıl kullanılır
Failover rules and Turkey residency limits during disasters (OD-04, never failing live Turkish personal data over to an EU host without counsel sign-off) are specified in docs/DISASTER-RECOVERY-AND-BCP-CHARTER.md; no live replica is deployed yet.
İlgili dosyalar:docs/DISASTER-RECOVERY-AND-BCP-CHARTER.md
faithfulness
TR: sadakatMetrikÜründe yapay zekaDiğer adlar: factual grounding, groundedness
Kalıcı bağlantıHow strictly an AI output sticks to facts and numbers present in its supplied input without inventing extras.
A fluent, polite paragraph is still dangerous in a business tool if it invents a conversion count, fabricates a percentage lift or quotes a policy that is not in the workspace records. Faithfulness checks whether every claim in an AI draft is directly supported by the provided context. For example, if the workspace overview shows 12 orders with unknown COGS (null), a faithful summary reports that margin is unavailable instead of guessing a 40 percent profit margin. Scoring faithfulness on a written rubric is mandatory before an AI feature leaves shadow evaluation.
Bu depoda nasıl kullanılır
Enforced as a sign-off gate (turkish_faithfulness_rubric_signed) in apps/api/src/routes/ai-shadow-eval-gate.ts.
İlgili dosyalar:apps/api/src/routes/ai-shadow-eval-gate.ts
fake provider
KavramBağlayıcılar ve CRMDiğer adlar: OAUTH_FAKE_PROVIDER_BASE
Kalıcı bağlantıA test-only local HTTP transport stub for Meta and Google OAuth and dispatch flows, hard-blocked in production.
Testing full OAuth connect, account selection, health checks, token refresh, revocation and signal dispatch against live Meta and Google servers on every pull request is slow, flaky and requires live credentials. OAUTH_FAKE_PROVIDER_BASE lets development and automated tests route those exact HTTPS provider URLs to a local loopback stub while keeping the real host allow-list intact. For example, createFakeProviderFetch rewrites only graph.facebook.com, oauth2.googleapis.com, googleads.googleapis.com and datamanager.googleapis.com to 127.0.0.1, and both server.ts and dispatch-main.ts refuse to boot (OAUTH_FAKE_PROVIDER_FORBIDDEN) if it is ever set in production. Double startup guards ensure a test stub can never weaken production.
Bu depoda nasıl kullanılır
Built in apps/api/src/connections/oauth/fake-provider.ts and guarded in both apps/api/src/server.ts and apps/api/src/dispatch-main.ts.
İlgili dosyalar:apps/api/src/connections/oauth/fake-provider.tsapps/api/src/dispatch-main.ts
fallback queue
KavramOperasyon ve doğrulamaDiğer adlar: queue fallback, overflow queue, FallbackQueueCircuitBreaker
Kalıcı bağlantıA bounded buffer that temporarily holds edge tracking events when the main API cannot accept them right away.
If the core API briefly restarts or returns 5xx errors, an edge collector can drop events into a fallback queue so conversion data is retried later instead of lost. Bounding the queue per workspace and guarding it with a circuit breaker stops a prolonged outage from exhausting memory. For example, once the fallback queue hits its workspace cap, the breaker opens and rejects extra events cleanly.
Bu depoda nasıl kullanılır
The edge collector in apps/collector/src/app.ts and apps/collector/src/d14-phone-guard.ts implements FallbackQueueCircuitBreaker with per-workspace bounds; live Cloudflare Queues deployment is not provisioned yet.
İlgili dosyalar:apps/collector/src/app.tsapps/collector/src/d14-phone-guard.ts
false positive
TR: yanlış pozitifKavramSaldırı ve savunmalarDiğer adlar: 64-hex collision
Kalıcı bağlantıA security scanner or guard mistakenly blocking harmless legitimate input, such as flagging a Chrome version string as an IPv4 address.
Overly broad security regexes create noisy false positives that break real customer workflows and train teams to ignore alerts. Fixing a false positive cleanly means narrowing the rule with exact context boundaries rather than disabling the guard. For example, Chrome user agents contain Chrome/120.0.0.0, which matched a naive IPv4 detector until the guard distinguished software version tokens from standalone IP addresses, and 64-hex SHA-256 digests needed hex-boundary lookbehinds so 11-digit runs were not flagged as tax IDs.
Bu depoda nasıl kullanılır
Documented in Wave 48 (Chrome/120.0.0.0 user-agent fix) and verified by non-secret digest tests in packages/vault/test/vault.test.mjs.
İlgili dosyalar:packages/vault/test/vault.test.mjspackages/vault/src/log-scrubber.ts
A fast Node.js web framework used to build HTTP APIs with structured logging and typed route handlers.
Fastify receives incoming HTTP requests, routes them to handler functions, supports hooks for authentication and headers, and ships with built-in request injection for testing. Its plugin architecture lets large APIs split route groups cleanly across files. For example, Fastify runs the route that checks a session cookie, enforces the origin guard and returns JSON.
Bu depoda nasıl kullanılır
All HTTP endpoints in apps/api are registered on a Fastify 5 instance composed in apps/api/src/app.ts and started by apps/api/src/server.ts.
İlgili dosyalar:apps/api/src/app.tsapps/api/src/server.ts
fbc and fbp
KavramÖlçümlemeDiğer adlar: _fbc, _fbp, fbclid, Meta click id cookie, Meta browser id cookie
Kalıcı bağlantıMeta's two unhashed browser identifiers: fbc holding an ad click's fbclid value and fbp identifying the browser.
When a shopper arrives from a Meta ad with ?fbclid=... in the URL, the site stores a formatted _fbc cookie (fb.1.<timestamp>.<fbclid>), while _fbp stores a persistent browser identifier even without an ad click. Sending both values unhashed inside user_data alongside server-side events significantly raises Meta's match quality and links conversions directly to the clicked ad. Unlike e-mail and phone, Meta specifies that fbc and fbp must never be hashed.
Bu depoda nasıl kullanılır
Read and preserved in first-party cookies by apps/collector/src/cookies.ts and passed unhashed into user_data by packages/signals/src/meta-capi.ts.
İlgili dosyalar:apps/collector/src/cookies.tspackages/signals/src/meta-capi.ts
fee cap
TR: aylık tavanKavramİş modeli ve pazarDiğer adlar: monthly fee cap, commission cap, tavan, komisyon tavanı, TR_MONTHLY_FEE_CAP_MINOR
Kalıcı bağlantıThe hard monthly ceiling on the platform's marketplace fee—₺3,500/month in Turkey ($150/month abroad)—so high-value retainers stay cheap to keep on-platform.
Even a modest percentage fee becomes painful on a large monthly retainer: 8% of an ₺80,000 retainer is ₺6,400 every month, tempting large clients and top specialists to leave the marketplace. Capping the platform fee at min(percentage_fee, cap)—specifically ₺3,500 ex-VAT (350,000 kuruş) in Turkey—makes staying on-platform cheaper as retainers grow. For example, on an ₺80,000 Founding Cohort retainer (4.5% uncapped would be ₺3,600), the cap trims the fee to exactly ₺3,500 (+ ₺700 VAT), raising the marketer's net disbursement to ₺86,200.
Bu depoda nasıl kullanılır
Built and verified locally in packages/payments/src/tr-tax-ledger.ts (TR_MONTHLY_FEE_CAP_MINOR = 350_000n, GLOBAL_MONTHLY_FEE_CAP_MINOR = 15_000n) and packages/shared/src/turkish-tax.ts, guarded by tools/check-turkish-finance-copy.mjs.
İlgili dosyalar:packages/payments/src/tr-tax-ledger.tspackages/shared/src/turkish-tax.tstools/check-turkish-finance-copy.mjs
fencing token
KavramVeri ve PostgreSQLDiğer adlar: fencing, lease id
Kalıcı bağlantıA fresh identifier issued with each job claim that a worker must still match when writing back its outcome.
If Worker A pauses (for example due to a slow network call) until its lease expires, Worker B legitimately reclaims the job. When Worker A wakes up later, a fencing token stops it from overwriting Worker B's state because the final UPDATE requires WHERE dispatch_lease_id = $leaseId. For example, if Worker A's claim had dispatch_lease_id = uuid-1 and Worker B replaced it with uuid-2, Worker A's stale write updates zero rows and fails safely.
Bu depoda nasıl kullanılır
Migration 0009 adds dispatch_lease_id on public.tracking_events; packages/db/src/repositories/signals-crm-repo.ts checks the lease id on every completion update so stale workers return false.
İlgili dosyalar:packages/db/migrations/0009_tracking_event_keys_and_dispatch_lease.sqlpackages/db/src/repositories/signals-crm-repo.ts
field data
TR: gerçek ziyaretçi verisiKavramBağlayıcılar ve CRMDiğer adlar: real-user data, crux_field, field telemetry
Kalıcı bağlantıReal-user page-speed metrics collected over time from actual visitors browsers, such as CrUX 28-day scores.
Field data reflects what real shoppers actually experience across varied Turkish mobile networks, older Android phones, caching states and third-party ad tags. Because real-world conditions differ sharply from a clean developer machine, field data is the gold standard for diagnosing whether slow pages hurt conversions. For example, a product page might score 90 in a single lab test yet show a poor 4.2-second LCP in CrUX field data because real visitors load uncached hero images over 4G. When a low-traffic shop has no field data yet, the product labels fallback lab tests explicitly.
Bu depoda nasıl kullanılır
Preferred source (crux_field) in apps/seo-worker/src/crux-fallback.ts, falling back transparently to psi_lab_fallback only when CrUX has no data.
İlgili dosyalar:apps/seo-worker/src/crux-fallback.ts
field line token
TR: alan kenar belirteciKavramÖn yüz ve tasarımDiğer adlar: --line-field, --border-field, control edge
Kalıcı bağlantıThe stronger border colour token (--line-field) used on text inputs, selects, checkboxes, and outlined buttons to meet WCAG 3:1 control-edge contrast.
Subtle 1-pixel decorative dividers (--line) look clean between table rows, but using that same faint border around an empty text box makes the input nearly invisible on bright monitors or for low-vision users. Separating --line (decorative hairlines) from --line-field (interactive control edges) meets WCAG 1.4.11 non-text contrast automatically across light and dark modes. For example, every input box and outlined button reads --line-field rather than --line.
Bu depoda nasıl kullanılır
Defined in packages/ui/src/tokens.css for both light and dark themes and used across all form controls in packages/ui/src/components/.
İlgili dosyalar:packages/ui/src/tokens.css
file drop zone
TR: dosya bırakma alanıKavramÖn yüz ve tasarımDiğer adlar: FileDropzone, drop zone, upload area
Kalıcı bağlantıAn interactive upload area that supports both drag-and-drop and a keyboard-accessible file picker while rejecting unsafe filenames and oversized files before upload.
A drag-only upload box locks out mobile and keyboard users, while accepting unvalidated filenames risks path traversal or misleading control characters. Combining a native file picker trigger with drag-and-drop and client-side filename/MIME/size hygiene gives instant calm feedback before anything touches the network (while the server always validates again). For example, dropping a file with path separators or an unsupported extension shows an inline alert immediately without uploading.
Bu depoda nasıl kullanılır
Implemented as FileDropzone in packages/ui/src/components/FileDropzone.tsx with full keyboard picker fallback, filename sanitisation, and explicit error states.
İlgili dosyalar:packages/ui/src/components/FileDropzone.tsx
file signature
KavramSaldırı ve savunmalarDiğer adlar: magic bytes
Kalıcı bağlantıThe fixed opening bytes of a binary file format (such as RIFF...WEBP or %PDF-) used to verify real file type beyond its filename.
Attackers routinely rename an HTML script or Windows executable to logo.png and spoof the Content-Type header to sneak past filename checks. Inspecting the actual magic bytes at offset zero proves what format the uploaded bytes really belong to before storing or serving them. For example, checking PNG, JPEG, or WebP magic bytes rejects an HTML file disguised with a .png extension.
Bu depoda nasıl kullanılır
Checked alongside MIME allow-lists on file uploads to prevent disguised script or executable uploads.
finding id (A-1, S-2, P-9, V-5, U-1, C-1)
Proje kimliğiProje kodlarıDiğer adlar: review finding number
Kalıcı bağlantıThe area-plus-number tag used by the 2 December 2026 independent review to name each concrete defect it uncovered.
The independent review grouped its findings by domain letter plus a hyphenated sequence number: A for approvals, S for signals, P for platform runtime, V for verification, U for UI screens and C for critical-path completeness. Later wave reports and tests cite these IDs directly so every fix traces back to its exact defect. For example, A-1 refers to optional budget fields bypassing guardrails and P-9 to migrations not running outside tests.
Bu depoda nasıl kullanılır
Assigned in docs/INDEPENDENT-REVIEW-2026-12-02.md and referenced across Waves 45 to 49 briefs, reports and tests; distinct from incident severity grades (SEV-0 to SEV-2) and asset IDs (A1–A7).
İlgili dosyalar:docs/INDEPENDENT-REVIEW-2026-12-02.md
fine-tuning
TR: ince ayarSüreçÜründe yapay zekaDiğer adlar: LoRA, QLoRA, LoRA adapter, PEFT
Kalıcı bağlantıFurther training an existing model on domain examples to improve performance on a narrow task.
Instead of training a language model from scratch, fine-tuning adjusts an open-weight model on curated examples of the exact task you care about. Parameter-efficient techniques such as LoRA and QLoRA freeze the base weights and train a small adapter layer, cutting memory and compute requirements dramatically. For example, after collecting hundreds of owner-edited Turkish ad-copy pairs, a team could train a small LoRA adapter on Qwen/Qwen3.5-4B so its drafts match calm brand tone on the first try. Fine-tuning only makes sense once prompt engineering and evaluations show a repeatable gap.
Bu depoda nasıl kullanılır
Not built or used yet; ADR-0009 keeps Release 1 on base open-weight models with strict prompts, closed schemas and evaluations first.
firewall
TR: güvenlik duvarıTeknolojiOperasyon ve doğrulamaDiğer adlar: ufw
Kalıcı bağlantıA network barrier on a server that blocks all incoming traffic except explicitly allowed ports.
A default-deny host firewall reduces a server's attack surface so internal services like PostgreSQL (port 5432) or an application port (4000) can never be reached directly from the public internet. Even if a service accidentally binds to all interfaces, the firewall still drops external packets. For example, Ubuntu's ufw can allow only rate-limited SSH (22), HTTP (80) and HTTPS (443) and drop everything else.
Bu depoda nasıl kullanılır
The server setup script deploy/scripts/bootstrap-vps.sh configures a default-deny ufw firewall admitting only SSH (22/tcp rate-limited), HTTP (80) and HTTPS (443), keeping ports 3000, 4000, 5432 and 8001 to 8005 closed externally.
İlgili dosyalar:deploy/scripts/bootstrap-vps.sh
first-party attribution
TR: birinci taraf atıfKavramÖlçümlemeDiğer adlar: fp_deterministic, deterministic attribution, first-party signal revenue, birinci taraf atıflı gelir
Kalıcı bağlantıCredit for sales computed directly by the product by deterministically matching the shop's real orders to recorded ad clicks.
Rather than relying only on Meta or Google to grade their own ads, first-party attribution joins the merchant's actual paid orders against the click identifiers and UTM labels captured by the shop's own tracking snippet. Because every order appears at most once in the shop's ledger, two platforms cannot both claim 100 percent of the same sale in this view. It sits between raw store totals and platform-reported numbers.
Bu depoda nasıl kullanılır
Represented as the first_party_attributed (fp_deterministic) ledger in apps/api/src/routes/kpi-ledger.ts, kept strictly separate from finance (store net sales) and vendor_attributed.
İlgili dosyalar:apps/api/src/routes/kpi-ledger.tspackages/ai/src/layer0-analytics.ts
first-party cookie
KavramÖlçümlemeDiğer adlar: first-party cookies, _gd_id
Kalıcı bağlantıA browser cookie set by the merchant's own domain rather than a third-party ad network.
Modern browsers restrict or block third-party cookies set by external ad domains, cutting tracking lifetimes down to days or hours. A first-party cookie set on the shop's own site survives much longer and lets the shop remember a visitor's click identifiers (gclid, fbclid, ttclid) and browser identifier (_gd_id) between landing and checkout. Setting marketing cookies still requires the visitor's consent.
Bu depoda nasıl kullanılır
Managed by apps/collector/src/cookies.ts and packages/connectors/universal-snippet/gd-1p.js, storing _gd_id and click parameters for up to 90 days once consent is granted.
İlgili dosyalar:apps/collector/src/cookies.tspackages/connectors/universal-snippet/gd-1p.js