__Host- prefix
StandartKimlik ve erişimDiğer adlar: __Host-, host-only cookie
Kalıcı bağlantıA browser-enforced cookie name prefix requiring Secure, Path=/, and no Domain attribute so only the exact host can set or receive it.
Ordinary cookies can be overwritten by a compromised sibling subdomain (blog.example.com setting a cookie for .example.com), enabling session-fixation attacks. Browsers refuse to accept any cookie whose name starts with __Host- unless it arrived over HTTPS with Secure, Path=/, and no Domain attribute, pinning it tightly to one exact origin. For example, __Host-gd_session cannot be set by a subdomain or sent cross-origin, which also means production must serve web and API on one shared origin.
Bu depoda nasıl kullanılır
Used on all three sign-in cookies (__Host-gd_session, __Host-gd_login_nonce, __Host-gd_signed_in) in apps/api/src/auth/sign-in/cookies.ts and documented in ADR-0010.
İlgili dosyalar:apps/api/src/auth/sign-in/cookies.tsdocs/adr/0010-durable-sessions-and-passwordless-sign-in.md
hairline
TR: kılcal çizgiKavramÖn yüz ve tasarımDiğer adlar: --line, hairline border, kılcal çizgi
Kalıcı bağlantıA quiet 1-pixel structural divider using the --line token between flat sections or table rows, reserved strictly for non-interactive separation.
Hairlines replace heavy card shadows and nested boxes with calm editorial structure that keeps dense tables and audit logs easy to scan. Because a hairline is intentionally subtle, it must never be used as the sole border of a text input or button, which require the stronger --line-field token for 3:1 WCAG contrast. For example, separating KPI rows with border-b border-[var(--line)] creates clean rhythm without visual clutter.
Bu depoda nasıl kullanılır
Defined as --line (and --line-strong) in packages/ui/src/tokens.css and preferred over nested cards in design/VISUAL.md.
İlgili dosyalar:packages/ui/src/tokens.cssdesign/VISUAL.md
half-up rounding
KavramVeri ve PostgreSQLDiğer adlar: round half up, mulBpsHalfUp
Kalıcı bağlantıRounding exact halves (0.5 kuruş) upward to the next whole minor unit using deterministic integer arithmetic.
When a percentage rate in basis points applies to a minor-unit amount, the exact product can end in a fraction of a kuruş. Half-up rounding adds half the denominator (5000n when dividing by 10000n) before integer division so 0.50 rounds up to 1 and 0.49 rounds down to 0 identically on every machine. For example, applying 450 bps (4.5%) to 111n kuruş yields (111n * 450n + 5000n) / 10000n = 5n kuruş.
Bu depoda nasıl kullanılır
packages/shared/src/turkish-tax.ts implements mulBpsHalfUp(amountMinor, bps) with BigInt for VAT, tevkifat, e-commerce withholding, and marketplace fee splits.
İlgili dosyalar:packages/shared/src/turkish-tax.ts
hallucination
TR: halüsinasyonKavramÜründe yapay zekaDiğer adlar: fabrication, made-up answer, uydurma
Kalıcı bağlantıA language model stating an invented fact, figure or citation as though it came from real data.
Language models predict plausible next words rather than querying a verified ledger, so they can produce confident sentences containing made-up revenue figures, fake legal clauses or non-existent campaign IDs. In marketing and financial software, a single hallucinated number can lead an owner to scale a losing campaign or publish an illegal claim. For example, if COGS is missing (null), an unconstrained model might cheerfully write "your 38 percent profit margin looks healthy" instead of admitting margin is unknown. Keeping all arithmetic in Layer 0 code and checking faithfulness prevents hallucinations from reaching decisions.
Bu depoda nasıl kullanılır
Mitigated by routing all KPI and margin math to packages/ai/src/layer0-analytics.ts, validating output shape in packages/ai/src/types.ts and gating rollout on faithfulness rubrics in apps/api/src/routes/ai-shadow-eval-gate.ts.
İlgili dosyalar:packages/ai/src/layer0-analytics.tsapps/api/src/routes/ai-shadow-eval-gate.ts
handover dossier
TR: devir dosyasıKavramİş modeli ve pazarDiğer adlar: handover file, Handover Dossier
Kalıcı bağlantıThe SHA-256-fingerprinted operational briefing handed to a replacement marketer—containing the last 30 days of audit history, tracking health and open tasks with zero passwords or tokens.
When an agency or freelancer disappears mid-month, the incoming replacement usually wastes weeks guessing what changed in the ad accounts or begging for credentials. A handover dossier packages the workspace's recent audit log, Event Match Quality state and open SEO/tracking tasks into an immutable, hashed brief so a vetted standby specialist can step in cleanly inside the 72-hour replacement window. For example, packages/payments/src/replacement-sla.ts enforces that the handover dossier contains zero raw passwords or OAuth tokens because the incoming specialist receives their own fresh scoped grant.
Bu depoda nasıl kullanılır
Built and verified locally in packages/payments/src/replacement-sla.ts (handover_briefed state); Release 2 SLA flow, zero live replacements have run.
İlgili dosyalar:packages/payments/src/replacement-sla.tsdocs/FOUNDING-COHORT-PLAYBOOK.md
The ideal scenario where every input is valid, permissions succeed and nothing fails along the way.
Testing only the happy path confirms that a feature works when users behave politely, while leaving security bugs and crash states completely untested. Reliable engineering pairs every happy-path test with hostile, missing, expired and wrong-tenant cases that must fail cleanly. For example, testing an approval route checks not only a valid owner approval but also an expired preview, a tampered hash and a marketer attempting to approve.
Bu depoda nasıl kullanılır
Security and API suites across apps/api/test/ and tests/security/ test fail-closed refusals alongside every happy path.
İlgili dosyalar:apps/api/test
hard gate
KavramOnaylar ve otomasyonDiğer adlar: non-overridable check
Kalıcı bağlantıA mandatory check that cannot be bypassed by any user role, workspace setting or prompt override at runtime.
Some limits — like a workspace's daily budget ceiling — can be adjusted deliberately by the owner in workspace settings, whereas a hard gate has no runtime override switch at all. Examples include blocking autonomous execution, refusing missing KVKK consent, enforcing immutable approval intent columns and forbidding live external calls without explicit owner sign-off.
hard rule
KavramBüyük resimDiğer adlar: product rule, R-number, the eight hard rules, R1–R8
Kalıcı bağlantıOne of the eight binding product principles R1 to R8 in design/FRAME.md that no screen, workflow or contract may break.
Every product faces pressure to cut corners for speed, such as letting an agency share an owner's login or letting AI raise spend automatically. Writing the eight hard rules down up front draws lines that every feature and test must obey. For example, R1 locks account ownership to the business and R4 requires an expiring approval before any budget change executes.
Bu depoda nasıl kullanılır
Rules R1 through R8 are defined in design/FRAME.md and carried into engineering invariants in AGENTS.md.
İlgili dosyalar:design/FRAME.mdAGENTS.md
hard-stop
TR: sert durdurma kuralıKavramOperasyon ve doğrulamaDiğer adlar: P0 stop, hard stop
Kalıcı bağlantıA non-negotiable safety failure that immediately freezes the affected feature regardless of business pressure.
Some bugs are minor annoyances that can wait for the next release, while hard-stops threaten customer trust, money or legal compliance and allow zero delay. Naming hard-stops in advance gives any founder or operator clear authority to flip the kill switch without waiting for a meeting. For example, any cross-tenant data leak, unconsented event send or unapproved ad spend triggers an immediate SEV-0 freeze.
Bu depoda nasıl kullanılır
Section 1 of docs/INCIDENT-RESPONSE-AND-KILL-SWITCH-PLAYBOOK.md defines six SEV-0 hard-stop classes with a under-15-minute halt target and under-1-hour full containment rule.
İlgili dosyalar:docs/INCIDENT-RESPONSE-AND-KILL-SWITCH-PLAYBOOK.md
Reducing an application's attack surface by locking down headers, error shapes, limits, default settings, and unused capabilities.
Making a feature work for honest users is only half the engineering job; hardening closes all the unintended ways hostile callers can probe or abuse it. Typical hardening steps attach strict HTTP security headers, map all uncaught errors to problem+json, strip unknown JSON fields, enforce rate limits, and remove unnecessary privileges. For example, apps/api/src/platform/hardening.ts centralises response headers, Cache-Control: no-store, request IDs, and safe error mapping across the entire API.
Bu depoda nasıl kullanılır
Implemented for the HTTP layer in apps/api/src/platform/hardening.ts and apps/api/src/platform/rate-limit.ts.
İlgili dosyalar:apps/api/src/platform/hardening.tsapps/api/src/platform/rate-limit.ts
A dedicated tamper-resistant hardware device that stores cryptographic keys and performs encryption without exposing the raw key.
A hardware security module keeps master keys inside hardened silicon so even a root administrator on the application server cannot copy the key bytes out. Applications send small requests to wrap or unwrap data keys, and the HSM enforces audit logs and physical tamper response. For example, a bank or cloud KMS backs its master KEK with an HSM so stealing a server image still yields no raw master key.
Bu depoda nasıl kullanılır
Not wired yet; docs/adr/0004-zero-password-vault-and-force-rls.md treats an external KMS or HSM as a future custody upgrade once production hosting is chosen.
İlgili dosyalar:docs/adr/0004-zero-password-vault-and-force-rls.md
hash
TR: özetKavramKriptografi ve gizlilerDiğer adlar: digest, hash value, hash function, one-way hash, fingerprint, karma
Kalıcı bağlantıA fixed-length one-way fingerprint of any input data that changes completely if even one bit of the input changes.
A cryptographic hash function takes any byte sequence and deterministically produces a short fixed-size digest without using a secret key. It is one-way, meaning you cannot compute the original data back from the digest, and collision-resistant, meaning two different inputs practically never share a digest. For example, hashing an approval preview JSON with SHA-256 gives a 64-character hex fingerprint that proves the approved payload matches what was executed.
Bu depoda nasıl kullanılır
SHA-256 hashing is used throughout packages/approvals/src/audit-chain.ts, packages/vault/src/crypto-shred.ts, session token storage, and export manifests.
İlgili dosyalar:packages/approvals/src/audit-chain.tspackages/vault/src/crypto-shred.ts
hash collision
TR: çakışmaKavramKriptografi ve gizlilerDiğer adlar: collision
Kalıcı bağlantıTwo distinct inputs that produce the exact same hash digest, which a strong hash function makes infeasible to find.
Because infinitely many inputs map onto a finite number of digests, collisions exist in theory, yet a good cryptographic hash makes finding even one take more work than the age of the universe. Older hashes like MD5 and SHA-1 have practical chosen-prefix collisions and are unsafe for security checks. For example, SHA-256 has 256 output bits and no known collision, so two different audit rows cannot realistically share one hash.
Bu depoda nasıl kullanılır
Avoided by standardising on SHA-256 across all integrity checks and audit chains, never MD5 or SHA-1.
İlgili dosyalar:packages/approvals/src/audit-chain.ts
hash commitment
KavramKriptografi ve gizlilerDiğer adlar: commitment, key commitment
Kalıcı bağlantıA hash recorded in advance that binds a hidden value so it can be verified later without revealing the value itself.
A hash commitment locks in a specific value now while keeping the original value private or concise. Anyone who later inspects the value, or compares two records, can hash the input under the same domain label and confirm it matches the commitment. For example, an erasure certificate stores a domain-separated SHA-256 commitment to the destroyed wrapped DEK so auditors can prove which exact key was shredded without keeping the key bytes.
Bu depoda nasıl kullanılır
Built in packages/vault/src/crypto-shred.ts (gd-shred-key-commitment-v1:) and in approval preview hashes.
İlgili dosyalar:packages/vault/src/crypto-shred.ts
hash prefix
KavramKriptografi ve gizlilerDiğer adlar: short hash, head hash prefix, short_sha256
Kalıcı bağlantıA leading slice of a full hex hash, such as 16 characters, used for compact human display rather than full cryptographic proofs.
Full 64-character SHA-256 digests are noisy in UI badges and compact status summaries, so interfaces often display a leading prefix such as 16 hex characters (64 bits). A prefix is plenty for human visual comparison or identifying a known checkpoint, while full cryptographic verification still checks all 64 characters. For example, Git shows short commit hashes in logs, and an audit checkpoint shows the first 16 hex characters of the latest row_hash.
Bu depoda nasıl kullanılır
Returned by apps/api/src/routes/audit-log-chain-checkpoint.ts as a 16-character head hash prefix while full 64-hex hashes remain in the database and exported bundles.
İlgili dosyalar:apps/api/src/routes/audit-log-chain-checkpoint.ts
hash variant
KavramÖlçümlemeDiğer adlar: variant hash, candidate hash, Turkish variant hash, tr_sha256 suffix
Kalıcı bağlantıA secondary SHA-256 digest of a name or city computed with alternative Turkish case or ASCII-folding rules and sent after the primary hash.
Turkish names and cities can appear in ad-platform databases either with full Turkish UTF-8 characters (şişli, ibrahim) or with Turkish locale casing (İ to i, I to ı) or legacy ASCII folding (sisli). Meta Conversions API accepts arrays of candidate hashes for fields such as fn, ln and ct, letting an advertiser provide the documented spec-exact UTF-8 hash first and optional variants behind it. Deduplicating the array ensures identical digests are never repeated.
Bu depoda nasıl kullanılır
Generated by packages/shared/src/pii-normalization.ts under OD-16, emitting *_exact_sha256 first, optional Turkish-locale *_tr_sha256 second and legacy ASCII-folded hash third when distinct.
İlgili dosyalar:packages/shared/src/pii-normalization.tspackages/signals/src/meta-capi.ts
hash-on-ingest
SüreçÖlçümlemeDiğer adlar: edge hashing, girişte karma, hashPiiBundle
Kalıcı bağlantıNormalising and SHA-256 hashing all personal identifiers immediately inside the edge collector before anything is saved or logged.
Every extra system that holds raw e-mail addresses or phone numbers multiplies breach impact and KVKK compliance burden. With hash-on-ingest, the collector runs platform-exact normalisation and SHA-256 hashing in memory the instant an event arrives, discards the raw strings and forwards only the digests. Even if an application log or database backup were inspected later, no plaintext customer e-mail or phone number exists in the tracking pipeline.
Bu depoda nasıl kullanılır
Executed by hashPiiBundle inside apps/collector/src/app.ts using packages/shared/src/pii-normalization.ts, followed by assertNoRawPii before forwarding to POST /v1/ingest/events.
İlgili dosyalar:apps/collector/src/app.tspackages/shared/src/pii-normalization.ts
hashed PII
TR: karma PII verisiKavramÖlçümlemeDiğer adlar: hashed identifier, CAPI hash, HashedPiiBundle, karma PII
Kalıcı bağlantıPersonal details such as an e-mail address or phone number after normalisation and one-way SHA-256 hashing.
Hashing turns ali@example.com into a fixed 64-character hexadecimal string so ad platforms can match known users without receiving plaintext over the wire. Crucially, under KVKK and GDPR, hashed e-mail addresses and phone numbers remain pseudonymous personal data — not anonymised data — because an attacker or platform with a dictionary of common numbers can still match them. Therefore hashed PII still requires explicit marketing consent and proper deletion handling.
Bu depoda nasıl kullanılır
Produced as a HashedPiiBundle by packages/shared/src/pii-normalization.ts, the only representation stored in tracking_events or dispatched to Meta and Google.
İlgili dosyalar:packages/shared/src/pii-normalization.tsdocs/adr/0007-kvkk-consent-gate-and-db-residency.md
heading order
TR: başlık sırasıKavramÖn yüz ve tasarımDiğer adlar: heading skip, heading levels, başlık atlaması
Kalıcı bağlantıThe accessibility rule that page headings step sequentially (h1, then h2, then h3) without skipping levels so screen-reader outlines stay coherent.
Screen-reader users frequently skim a screen by jumping from heading to heading, treating h1 through h6 like a table of contents. Picking h4 just because its default font size looks smaller than h2 breaks that outline and makes sections seem orphaned; typography utilities should control size while HTML tags express hierarchy. For example, Accordion accepts a headingLevel prop so it nests cleanly beneath an h2 section without jumping to h4.
Bu depoda nasıl kullanılır
Enforced across packages/ui/src/components/Accordion.tsx, visual audits (0 heading skips), and tests/browser/a11y-tree-audit.mjs.
İlgili dosyalar:packages/ui/src/components/Accordion.tsxtests/browser/a11y-tree-audit.mjs
headless browser
KavramNasıl geliştiriyoruzDiğer adlar: headless
Kalıcı bağlantıA real web browser executing pages and scripts without opening a visible desktop window, ideal for automated tests and CI.
Linux CI servers have no monitor attached, yet web apps still need real browser rendering to verify layouts, cookies and JavaScript flows. Running Chromium in headless mode executes the exact same engine silently in the background and can still capture screenshots or accessibility trees. For example, Playwright launches headless Chromium to run all four browser journeys in CI.
Bu depoda nasıl kullanılır
Used by tests/browser/*.mjs during local verification and GitHub Actions runs.
İlgili dosyalar:tests/browser
headless storefront
KavramBağlayıcılar ve CRMDiğer adlar: headless shop
Kalıcı bağlantıAn online shop whose customer-facing frontend runs separately from its commerce backend and pulls catalog data via API.
In a traditional storefront, themes and templates render directly inside Shopify, WooCommerce or ikas; in a headless storefront, a separate frontend (for instance Next.js) renders the HTML while checkout and order storage stay on the commerce platform. Headless sites often split URLs, canonicals, structured data and tracking snippets across two codebases, creating subtle SEO and attribution bugs if not audited together. For example, a headless shop might have clean order webhooks from its backend while its custom frontend accidentally ships noindex or omits the first-party tracking snippet. Auditing the live rendered public URL catches those mismatches.
Bu depoda nasıl kullanılır
Covered by public URL HTML auditing in apps/seo-worker/src/auditor.ts and storefront-agnostic tracking in packages/connectors/src/universal-snippet.ts.
İlgili dosyalar:apps/seo-worker/src/auditor.ts
health check
TR: sağlık kontrolüKavramOperasyon ve doğrulamaDiğer adlar: /health, healthcheck, health probe, liveness probe, readiness probe
Kalıcı bağlantıA lightweight endpoint a proxy, container platform or operator calls to verify that a service is alive and ready.
Health checks answer a simple automated question: can this process accept traffic right now. Docker Compose and reverse proxies poll health endpoints on a schedule so they wait for PostgreSQL to accept connections before starting the API, and stop routing traffic to an unhealthy container. For example, calling GET /health returns HTTP 200 with the service name, data source and database schema state.
Bu depoda nasıl kullanılır
In apps/api/src/app.ts, GET /health returns { status: 'ok', service: 'api', dataSource, schema, timestamp }, and deploy/docker-compose.staging.yml wires container health checks for postgres, api, web, caddy and pgbackrest.
İlgili dosyalar:apps/api/src/app.tsdeploy/docker-compose.staging.ymldeploy/staging-smoke.mjs
A periodic log line emitted by a background process to prove it is still alive and polling its queues.
An HTTP server shows signs of life whenever requests arrive, whereas a background worker with no open port can freeze silently while queues pile up. Emitting a structured heartbeat every few seconds lets monitoring detect a hung or stopped worker by the absence of recent lines. For example, if a worker configured for 15-second heartbeats goes silent for two minutes, an operator knows to inspect it.
Bu depoda nasıl kullanılır
In apps/api/src/worker-main.ts, the daemon emits event: 'worker.heartbeat' every 15,000 ms (DEFAULT_HEARTBEAT_INTERVAL_MS) with cycle counts and queue totals, and warns on every heartbeat if dry-run adapters are active.
İlgili dosyalar:apps/api/src/worker-main.tsdocs/RUNBOOK.md