.gitattributes
KavramNasıl geliştiriyoruzDiğer adlar: gitattributes, eol=lf
Kalıcı bağlantıThe repository configuration file telling Git how to handle line endings and file attributes consistently on every OS.
Without .gitattributes, Windows developers often check out text files with CRLF endings while Linux machines use LF, breaking shell scripts and file hashes. Pinning * text=auto eol=lf in .gitattributes guarantees identical LF line endings across Windows, macOS and Linux clones. For example, adding .gitattributes in Wave 45 permanently stopped CRLF drift on fresh clones.
Bu depoda nasıl kullanılır
.gitattributes at the repository root enforces pure LF endings across text files.
İlgili dosyalar:.gitattributes
.gitleaksignore
TeknolojiSaldırı ve savunmalarDiğer adlar: gitleaks fingerprint
Kalıcı bağlantıA repository file listing exact commit-and-line fingerprints of reviewed non-secret Gitleaks findings so true new leaks still fail CI.
When a test fixture or historical commit triggers a verified false positive in Gitleaks, turning off the entire rule globally would blind the scanner to real leaks forever. Instead, .gitleaksignore records one exact commit:path:rule:line fingerprint per audited exception so only that specific occurrence is suppressed while every new match still fails the gate. For example, after replacing real-looking test tokens with low-entropy fixtures in new code, only the old historical commit line stays fingerprinted in .gitleaksignore.
Bu depoda nasıl kullanılır
Maintained at .gitleaksignore alongside .gitleaks.toml.
İlgili dosyalar:.gitleaksignore.gitleaks.toml
Security gate 1: automated proof as the least-privilege app role that tenants and marketer grants never cross boundaries.
G1 runs live PostgreSQL and API tests strictly as {product}_app (NOBYPASSRLS) to verify that one workspace cannot read, update or delete another workspace's rows even via direct URLs, search or exports. It also proves that expired, revoked or under-scoped marketer grants are denied immediately. For example, a marketer granted access to shops A and B must receive zero rows when probing shop C.
Bu depoda nasıl kullanılır
Same definition in both docs/THREAT-MODEL.md and AGENTS.md rule 21; exercised by tests/db/run-db-tests.mjs, tests/db/security-matrix.sql and packages/db/test/.
İlgili dosyalar:docs/THREAT-MODEL.mdtests/db/run-db-tests.mjs
G1–G6 (security gate numbers)
Proje kimliğiProje kodlarıDiğer adlar: G1 to G6, mandatory security gates, Mandatory Gate
Kalıcı bağlantıThe six mandatory automated security gates that a build must pass before moving from built to verified.
Each gate targets one core security invariant so nothing ships on faith: cross-tenant RLS, encrypted vault isolation, approval hash integrity, consent and PII hashing, crawler SSRF and AI safety, and raw-body HMAC plus immutable ledgers. Note that docs/THREAT-MODEL.md and AGENTS.md rule 21 number G3 through G6 in slightly different orders because rule 21 kept an earlier research outline, though both require the same controls plus gitleaks and osv-scanner. For example, reading the gate's topic name alongside its number avoids any confusion.
Bu depoda nasıl kullanılır
Specified in docs/THREAT-MODEL.md section 3 and AGENTS.md rule 21, and mapped to automated test suites in docs/VERIFICATION.md and tools/gates.manifest.json.
İlgili dosyalar:docs/THREAT-MODEL.mdAGENTS.mddocs/VERIFICATION.md
Security gate 2: automated proof that the app role cannot touch vault.* and tampered or swapped ciphertext fails.
G2 verifies that PostgreSQL returns permission denied whenever the application role queries any vault.* table, that mutating ciphertext, IV or AAD across workspaces fails AES-256-GCM authentication, and that no token leaks into API responses or logs. In AGENTS.md rule 21, G2 also includes the approval hash and expiry checks that docs/THREAT-MODEL.md places in G3. For example, moving an encrypted token row from workspace A to workspace B fails decryption on its AAD tag.
Bu depoda nasıl kullanılır
Defined in docs/THREAT-MODEL.md section 3 and AGENTS.md rule 21, and proven live on PostgreSQL 18 by packages/vault/test/ and tests/db/run-db-tests.mjs.
İlgili dosyalar:docs/THREAT-MODEL.mdAGENTS.md
Security gate 3: in THREAT-MODEL.md, approval hash, expiry, ceiling and MFA integrity; in AGENTS.md, crawler SSRF.
In docs/THREAT-MODEL.md and docs/RUNBOOK.md, G3 proves no unapproved, tampered, expired, over-ceiling or MFA-missing ad or payment mutation can execute. In AGENTS.md rule 21, the label G3 instead points to the SEO crawler's SSRF and DNS-rebinding containment suite (which THREAT-MODEL.md puts in G5). For example, both suites run inside bash tools/verify, so naming the control alongside the number keeps checklists unambiguous.
Bu depoda nasıl kullanılır
Defined in docs/THREAT-MODEL.md section 3 (approval integrity, matching T3) and AGENTS.md rule 21 (crawler SSRF); both control sets are automated in tools/gates.manifest.json.
İlgili dosyalar:docs/THREAT-MODEL.mdAGENTS.md
Security gate 4: in THREAT-MODEL.md, hash-on-ingest and KVKK consent gating; in AGENTS.md, webhooks and money math.
In docs/THREAT-MODEL.md and the database drills, G4 verifies platform-specific PII normalisation before hashing, zero raw PII in tracking_events or logs, hard skipped_no_consent drops and blocking erased contacts from conversion feedback. In AGENTS.md rule 21, G4 refers instead to raw-body HMAC webhook verification and exact integer money and tax property tests (which THREAT-MODEL.md labels G6). For example, both checks are mandatory before any release.
Bu depoda nasıl kullanılır
Defined in docs/THREAT-MODEL.md section 3 (PII and consent gate, matching T4) and AGENTS.md rule 21 (webhooks and exact money); both run in bash tools/verify.
İlgili dosyalar:docs/THREAT-MODEL.mdAGENTS.md
Security gate 5: isolated SSRF-safe SEO crawler and prompt-injection red-team checks on zero-tool AI adapters.
In docs/THREAT-MODEL.md, G5 proves both that the SEO crawler aborts private-IP and DNS-rebinding targets before socket connect with zero database secrets, and that hostile prompt-injection inputs cannot make open-weight AI adapters write data, leak tenants or escape closed Zod schemas. AGENTS.md rule 21 uses G5 specifically for prompt-injection and zero-PII leak suites. For example, feeding a webpage containing hidden budget-increase commands into the AI must produce zero write tool calls.
Bu depoda nasıl kullanılır
Defined in docs/THREAT-MODEL.md section 3 (matching T5 and T6) and AGENTS.md rule 21, exercised across apps/seo-worker, packages/ai and tests/security/.
İlgili dosyalar:docs/THREAT-MODEL.mdAGENTS.md
Security gate 6: in THREAT-MODEL.md, raw-body HMAC, tax math and immutable ledgers; in AGENTS.md, secret and CVE scans.
In docs/THREAT-MODEL.md, G6 proves raw-body HMAC verification, replay protection, zero-kuruş-drift Turkish tax math and append-only audit and payment ledgers whose hash chain verifies end-to-end. In AGENTS.md rule 21, G6 labels the repository scanners (gitleaks for secrets and osv-scanner for dependency CVEs), which THREAT-MODEL.md requires alongside G1 to G6. For example, modifying one byte of a webhook body or one row of audit_log must fail closed.
Bu depoda nasıl kullanılır
Defined in docs/THREAT-MODEL.md section 3 (matching T7 and T8) and AGENTS.md rule 21 (gitleaks and osv-scanner); all run in tools/gates.manifest.json.
İlgili dosyalar:docs/THREAT-MODEL.mdAGENTS.mdtools/gates.manifest.json
GA4 Measurement Protocol
GA4 MPTeknolojiÖlçümlemeDiğer adlar: Measurement Protocol, GA4 MP, Ga4MpEnricher
Kalıcı bağlantıGoogle Analytics 4's server-to-server HTTP endpoint for sending supplementary analytics events.
GA4 Measurement Protocol allows a backend server to send events into a Google Analytics 4 property when paired with a browser client_id and session_id from the _ga cookie. Crucially, GA4 Measurement Protocol always replies with HTTP 204 even when event fields are malformed, so an HTTP 204 response never proves that an ad conversion was accepted or matched. Because of that, it is suitable only for optional analytics enrichment, never as a primary ads conversion pipeline.
Bu depoda nasıl kullanılır
Permitted in docs/adr/0002-dual-server-side-capi-and-google-data-manager.md solely as optional enrichment (ga4_mp) when _ga identifiers exist; Ga4MpEnricher is modelled in packages/signals/, and the dispatch process does not send to GA4 MP yet.
İlgili dosyalar:docs/adr/0002-dual-server-side-capi-and-google-data-manager.mdpackages/signals/src/google-dm.ts
gate
TR: kapıKavramOperasyon ve doğrulamaDiğer adlar: gate step
Kalıcı bağlantıAn automated or human check that must pass before code can move forward or ship to users.
Gates turn written rules into enforceable checkpoints so regressions cannot slip past unnoticed under deadline pressure. Automated gates verify code invariants in seconds or minutes, while human gates hold back irreversible actions such as launching to real customers. For example, a schema gate fails a pull request immediately if a new tenant table forgets row-level security.
Bu depoda nasıl kullanılır
Automated gates are listed in tools/gates.manifest.json, security release gates G1 to G6 are defined in docs/THREAT-MODEL.md, and the human owner release gate lives in AGENTS.md rule 22.
İlgili dosyalar:tools/gates.manifest.jsondocs/THREAT-MODEL.mdAGENTS.md
gate group
KavramOperasyon ve doğrulamaDiğer adlar: --group, manifest group
Kalıcı bağlantıA named slice of the verification gate manifest that lets you run related checks together.
Running every test, build and browser journey takes many minutes, so grouping checks by speed and dependency lets developers get fast feedback while keeping one complete gate for merges. You can run one group locally while working and the full manifest before opening a pull request. For example, bash tools/verify --group static runs only the zero-dependency file audits without starting a database.
Bu depoda nasıl kullanılır
In tools/gates.manifest.json, all 70 steps belong to eight groups: core (4), static (42), suites (5), postgres (5), deploy (6), scanners (3), build (1) and browser (4).
İlgili dosyalar:tools/gates.manifest.jsontools/run-gates.mjs
gate manifest
KavramOperasyon ve doğrulamaDiğer adlar: tools/gates.manifest.json, gates manifest
Kalıcı bağlantıThe single JSON file that lists every required verification step, command, group and prerequisite in exact order.
When a local script and a CI workflow maintain two separate hand-edited lists of checks, they inevitably drift apart and hide broken tests. A gate manifest holds one authoritative list that both the local runner and the CI parity check read. For example, adding a new test suite to the manifest forces the CI workflow to include the exact same command in the same position.
Bu depoda nasıl kullanılır
The manifest at tools/gates.manifest.json defines 70 ordered check entries, 8 groups, the 7-step quick subset and 6 ci_setup steps, read by tools/run-gates.mjs and enforced against .github/workflows/verify.yml by tools/check-gate-parity.mjs.
İlgili dosyalar:tools/gates.manifest.jsontools/run-gates.mjstools/check-gate-parity.mjs
gate need
KavramOperasyon ve doğrulamaDiğer adlar: needs (gate manifest)
Kalıcı bağlantıAn external tool or capability declared on a gate step so missing prerequisites report not run instead of passed.
Tests that silently skip when a binary like PostgreSQL or Chromium is missing produce a misleading green checkmark. Declaring explicit needs on every manifest entry lets the runner probe the machine upfront and label unrunnable steps honestly as not run with the exact missing requirement. For example, running offline marks the vulnerability scanner not run (offline mode) instead of pretending it passed.
Bu depoda nasıl kullanılır
In tools/gates.manifest.json and tools/run-gates.mjs, NEEDS_VOCABULARY covers seven prerequisites: pg18, pg_dump, gitleaks, osv-scanner, bash, network and chromium; passing --require-pg turns missing pg18 into a failure.
İlgili dosyalar:tools/gates.manifest.jsontools/run-gates.mjs
gclid
KavramÖlçümlemeDiğer adlar: gbraid, wbraid, Google click id, Google Click Identifier
Kalıcı bağlantıGoogle Click Identifier — the URL parameter Google Ads attaches to ad clicks, paired with gbraid and wbraid on iOS.
When a user clicks a Google Search or Shopping ad, Google appends ?gclid=... to the landing page address; for certain privacy-preserving app-to-web and web-to-web clicks on Apple devices, Google emits gbraid or wbraid instead. Capturing whichever identifier is present and returning it with a server-side conversion lets Google Ads tie the purchase back to the exact keyword and bid.
Bu depoda nasıl kullanılır
Captured by packages/connectors/universal-snippet/gd-1p.js and apps/collector/src/cookies.ts, saved in click_ids_jsonb, and mapped onto adIdentifiers in packages/signals/src/google-dm.ts.
İlgili dosyalar:packages/signals/src/google-dm.tsapps/collector/src/cookies.ts
GDPR
GDPRHukuk ve vergiHukuk, vergi ve ödemeDiğer adlar: General Data Protection Regulation
Kalıcı bağlantıThe European Union's General Data Protection Regulation, the EU privacy framework closely mirrored by Turkey's KVKK.
GDPR governs how organisations collect, process, transfer and erase personal data of people in the European Economic Area. Turkey's 2024 reform of KVKK Article 9 aligned Turkish cross-border transfer tools—such as adequacy decisions and standard contractual clauses—closely with GDPR's structure, and GDPR Recital 26 states explicitly that pseudonymised data such as hashed e-mails remains personal data. For example, Shopify's mandatory compliance webhooks (customers/redact, shop/redact) and future Release 3 European expansion both require meeting GDPR erasure and controller-processor standards alongside KVKK.
Bu depoda nasıl kullanılır
Referenced alongside KVKK in docs/COUNSEL-BRIEF.md and docs/adr/0007-kvkk-consent-gate-and-db-residency.md for pseudonymisation and erasure boundaries; Release 3 EU expansion is deferred per OD-11.
İlgili dosyalar:docs/COUNSEL-BRIEF.mddocs/adr/0007-kvkk-consent-gate-and-db-residency.md
generative run
TR: üretken koşuSüreçÜründe yapay zekaDiğer adlar: live eval run, vllm mode, generative_shadow_runs
Kalıcı bağlantıAn evaluation run where a real language model generates the answers that are then checked and scored.
While an offline baseline tests code wiring with canned text, a generative run sends the evaluation prompts to an actual running model server and scores whatever the model produces. It measures real pass rates on closed JSON schemas, Turkish İ/ı casing, faithfulness, latency percentiles and GPU-amortised cost. For example, running packages/ai/evals/run-eval.ts with --mode=vllm against Qwen/Qwen3.5-4B produces real outputs for the 40 functional cases while still blocking the 10 red-team cases pre-egress. Shadow evaluation gates require at least three real generative shadow runs before lifting hold status.
Bu depoda nasıl kullanılır
Runner code built in packages/ai/evals/run-eval.ts (--mode=vllm) and gated in apps/api/src/routes/ai-shadow-eval-gate.ts (MIN_GENERATIVE_SHADOW_RUNS = 3); no live GPU generative run has executed yet.
İlgili dosyalar:packages/ai/evals/run-eval.tsapps/api/src/routes/ai-shadow-eval-gate.ts
genesis hash
KavramKriptografi ve gizlilerDiğer adlar: genesis, genesis row, GENESIS_PREV_HASH_HEX
Kalıcı bağlantıThe fixed 64-zero hex value used as the previous hash on the very first row of an audit chain.
Every row in a hash chain incorporates the hash of the row before it, which raises the question of what row one should point to when no earlier row exists. Using a documented constant of 64 zero characters gives every verifier the exact same starting anchor so row one can be checked just like row 1,000. For example, if an attacker tries to delete row one and present row two as the start, row two's previous hash will not be 64 zeros and verification fails.
Bu depoda nasıl kullanılır
Defined as GENESIS_PREV_HASH_HEX = '0'.repeat(64) in packages/approvals/src/audit-chain.ts and matched by docs/schema.sql and packages/vault/src/audit-bundle-verifier.ts.
İlgili dosyalar:packages/approvals/src/audit-chain.tsdocs/schema.sql
Git
TeknolojiNasıl geliştiriyoruzDiğer adlar: version control
Kalıcı bağlantıThe distributed version-control tool that records every file change as immutable commits across branches and worktrees.
Git lets multiple builders edit the same repository safely in parallel, inspect exact line diffs, roll back mistakes and trace every line of code back to the decision that introduced it. Every commit is cryptographically linked to its history so nothing changes silently. For example, git log --oneline -n 10 shows the ten most recent saved steps on your current branch.
Bu depoda nasıl kullanılır
Manages all source history, wave branches and isolated agent worktrees in this repository.
İlgili dosyalar:.gitattributes
The Unix-compatible command shell installed with Git for Windows, used to run shell scripts such as bash tools/verify.
Many cross-platform scripts are written in Bash so the same command runs on Linux CI runners, macOS and Windows. Git Bash provides Bash and standard Unix tools on Windows alongside PowerShell, though path formats and environment variables still require care. For example, running bash tools/verify --group static in Git Bash runs all 42 static gates identically to CI.
Bu depoda nasıl kullanılır
Used on the owners' Windows workstation to execute tools/verify and shell dry-run checks.
İlgili dosyalar:tools/verify
The hosting platform holding this repository's shared Git remote, issue tracker, pull requests and Actions CI runners.
GitHub gives a team one shared place to store branches, review diffs line by line, track open owner decisions and external gates as issues, and run automated checks on clean Linux servers. Keeping code, pull requests and issues linked lets a founder trace any feature from problem statement to verified merge. For example, issue 2 tracks owner decisions and issue 3 tracks Turkish legal counsel sign-off.
Bu depoda nasıl kullanılır
Hosts the origin remote, pull requests, issues and .github/workflows/verify.yml runs.
İlgili dosyalar:.github/PULL_REQUEST_TEMPLATE.md.github/workflows/verify.yml
GitHub Actions
TeknolojiNasıl geliştiriyoruzDiğer adlar: Actions
Kalıcı bağlantıGitHub's built-in continuous integration service that runs workflow jobs on clean virtual machines.
Every time a branch is pushed or a pull request opens, GitHub Actions provisions a fresh Linux machine, installs dependencies from the frozen lockfile, starts PostgreSQL 18 and runs every check in the workflow file. A green GitHub Actions run proves the repository builds and passes outside any single developer's laptop. For example, Waves 46 and 47 recorded green GitHub Actions runs on pull requests 100 and 101.
Bu depoda nasıl kullanılır
Executes .github/workflows/verify.yml on push to main and on pull requests (OD-17).
İlgili dosyalar:.github/workflows/verify.yml
GitHub's official command-line tool (gh) for reading issues, opening or merging pull requests and inspecting CI runs from a terminal.
Using gh lets operators inspect pull request checks, read issue comments or merge an approved branch without switching back and forth to browser tabs. Scripts can also query structured JSON output from gh to audit open issues consistently. For example, gh pr checks prints the live status of every CI job on the current pull request.
Bu depoda nasıl kullanılır
Used by the integrator and owners to inspect Actions runs, sync tracking issues and merge pull requests.
gitleaks
TeknolojiSaldırı ve savunmalarDiğer adlar: .gitleaks.toml, gitleaks dir, gitleaks git
Kalıcı bağlantıAn automated secret scanner that inspects working trees (gitleaks dir) and full Git commit history (gitleaks git) for leaked credentials.
Deleting a secret in a later commit does not remove it from Git history, where anyone cloning the repository can still recover it in seconds. Gitleaks scans both current files and historical diffs against built-in and custom rules in .gitleaks.toml, catching API keys, private keys, JWTs, and database passwords before merge. For example, running gitleaks dir catches build-output or test-fixture leaks locally before a commit is ever pushed.
Bu depoda nasıl kullanılır
Configured in .gitleaks.toml (with reviewed historical findings tracked in .gitleaksignore) and enforced as a verification gate in tools/gates.manifest.json.
İlgili dosyalar:.gitleaks.toml.gitleaksignoretools/gates.manifest.json