Gemini 3.7 Flash Engine

STATEFUL
SECURITY
CO-PILOT.

Unlike stateless scanners that drop noisy comments, GitSentry remembers architectural decisions in Firestore, audits pull requests with dual-tier Gemini intelligence, and autonomously submits precision remediation PRs while gating merges.

Zero Secret Leaks
Decoupled Pub/Sub
OSV.dev CVE Database
PR #42 AUDIT
Commit Gate Blocked
HIGH RISK

SQL Injection in find_user_by_email()

- query = f"SELECT * WHERE email = '{email}'"
+ query = "SELECT * WHERE email = %s"
Branch: gitsentry/fix-pr-42Auto Remediation Ready
HMAC SHA-256 VerifiedCLOUD RUN
METRIC // 01
0 SEC

Webhook Ingestion Delay

Pub/Sub decoupled async queue

METRIC // 02
100%

Architectural Memory Recall

Firestore stateful project history

METRIC // 03
2-TIER

Gemini 3.7 Flash Thinking

Low (Triage) & High (Deep Audit)

METRIC // 04
0

Unblocked High-Risk PRs

Automated commit status gating

SYSTEM PIPELINE

CONSTRUCTIVIST
ARCHITECTURE.

A battle-tested serverless architecture on Google Cloud Platform engineered for resilience, strict zero-leak secret handling, and real-time GitHub integration.

01
SUB-10MS LATENCY

Decoupled Webhook Ingestion

Cloud Run Receiver + HMAC-SHA256 + Pub/Sub

GitHub PR events arrive at the Webhook Receiver. Signatures are verified with constant-time HMAC comparison before instant publishing to the 'pr-events' Pub/Sub queue, eliminating webhook timeouts.

HMAC VerificationPub/Sub DecoupledSecret Manager
02
STATEFUL INTELLIGENCE

Two-Tier Gemini Reasoning

Gemini 3.7 Flash (Low & High Thinking) + ADK

Worker executes rapid triage (<200ms) with thinking_level=LOW. High-risk signals trigger deep threat audits with thinking_level=HIGH, cross-referencing Firestore Memory Bank and OSV.dev databases.

thinking_level: HIGHFirestore BankOSV.dev API
03
ACTIVE ENFORCEMENT

Autonomous Action Engine

Remediation PR & Commit Gating

Sets commit status 'gitsentry/security' to block unsafe merges. Generates precision patch diffs, creates a dedicated branch, and autonomously opens a ready-to-merge remediation PR.

Commit Status GatingAuto-Remediation PRAudit Log
CORE CAPABILITIES

AUTONOMOUS
SECURITY POWERS.

FORM FOLLOWS FUNCTION: Every security check produces actionable, auditable, and enforceable code fixes.

Stateful Decision Memory Bank

Remembers past architectural approvals, security exemptions, and RFCs across repos in Firestore so developers never re-litigate approved designs.

Firestore Collection: /decisions

Developer Habit Profiler

Continuously detects recurring developer patterns (e.g. raw string SQL concatenation or wildcard CORS) and delivers targeted coaching in PR reviews.

Firestore Collection: /dev_habits

OSV.dev CVE Automated Patching

Scans dependencies on every PR against Google's open-source OSV.dev vulnerability database and computes minimum safe version bumps.

OSV.dev REST API Integration

Strict Commit Status Merge Gating

Sets 'gitsentry/security' GitHub commit status checks to failure on high risks, physically preventing merge until resolved or formally overridden.

GitHub Commit Status API

Autonomous Remediation PRs

Generates clean unified git diffs, creates a dedicated remediation branch, and opens a companion pull request ready for one-click merge.

GitHub App Octokit Engine

Human-in-the-Loop Override Flow

Developers can tag @gitsentry with approved business justifications in PR comments; GitSentry evaluates validity before clearing commit status.

Two-Way Issue Comment Webhook
REAL-TIME TELEMETRY

LIVE AUDIT
THREAT STREAM.

Real PR security events processed live through Gemini 3.7 Flash two-tier reasoning, stateful memory recall, and OSV.dev lookup.

SELECT PULL REQUEST EVENT3 DEMO SCENARIOS
PR #1@sufiyantesting789
SAFE RISK

feat(staging): add unauthenticated health probe

sufiyantesting789/production-webHIGH THINKING
PR #2@sufiyantesting789
HIGH RISK

feat(prod): expose health probe on production

sufiyantesting789/production-webHIGH THINKING
PR #3@sufiyantesting789
HIGH RISK

feat(auth): lookup user by email with raw SQL query

sufiyantesting789/production-webHIGH THINKING

Gemini 3.7 Flash Security Audit

Execution Latency: 740ms | Tier: HIGH

GATE: CLEARED
SOCRATIC EXEMPTION VALIDATION (Gemini 3.7 Flash): - Flagged Broken Access Control on `/health`. - Developer @sufiyantesting789 requested override with VPC isolation justification. - Socratic Evaluator rated justification: STRONG. - Created active decision `DEC-89` in Google Firestore Memory Bank. - Gate Action: SUCCESS commit status `gitsentry/security` (Merge Unblocked).
FIRESTORE DECISION RECALLED

DEC-89: Staging env allows unauthenticated /health route for internal VPC synthetic uptime monitors

Approved by: sufiyantesting789 (SecOps Lead) in PR #1

Autonomous Remediation PR Patch:gitsentry/docs-dec-89
--- a/src/routes/health.py
+++ b/src/routes/health.py
@@ -5,3 +5,4 @@
+# [GitSentry DEC-89]: Allowed unauthenticated for VPC synthetic probe only
 @app.get("/health")
 def staging_health():
     return {"status": "healthy", "env": "staging"}
Ready to test with your custom diffs?
KNOWLEDGE BASE // FAQ

FREQUENTLY ASKED
TECHNICAL QUESTIONS.

Everything you need to know about two-tier Gemini thinking, stateful Firestore memory persistence, and commit gating.

GitSentry automatically indexes approved security exemptions, compensating controls, and risk acceptances in a Google Cloud Firestore Memory Bank. When new PRs are submitted, GitSentry uses Gemini 3.7 Flash with high-thinking mode to perform stateful recall, checking whether the new code respects prior constraints or attempts to expand the exemption scope without authorization.

STATEFUL DEFENSE READY

DEFEND YOUR
PULL REQUESTS.

Install GitSentry on your GitHub repositories in seconds. Zero noisy stateless warnings—only precision audits, stateful memory, and automatic remediation diffs.

git clone https://github.com/gitsentry/copilot.git