SWAYOM.AIv2.4
Security / Source analysis● Active development

Original project / Swayom Sharma

PatchGuard AI

Defensive Repository Security & Patch Review

Follow the evidence.
Review the change.

Authorized repository analysis with read-only source intelligence, evidence-backed security findings, auditable triage, and separately controlled patch-review workflows.

  • React 19
  • TypeScript
  • Vite
  • FastAPI
  • SQLAlchemy
  • Docker
PatchGuard AI Security Overview: Persisted findings and scan activity from an intentionally vulnerable disposable repository. Counts describe this local demonstration only.
Actual Security Overview / Authored demonstration data / 18 October 2026
Technical case studyReviewed 18 October 2026Static media / No hosted backend

01 / Genuine project captures

Inside PatchGuard AI.
Evidence you can inspect.

Actual captures from the current local implementation. Select a view, then enlarge it to read the interface or response in full.

Recorded demonstration

The real workflow,
recorded locally.

A silent capture of the running project, with explanatory English captions. The recording preserves actual UI states and their stated limitations.

Press play to load the walkthrough.

Open recording ↗Read captions ↗

02 / Project overview

Follow the evidence.
Review the change.

PatchGuard treats repository contents as untrusted input. It admits source only beneath configured roots, builds read-only code intelligence, and runs configured defensive checks without importing the target application.

Findings link back to evidence and scanner records. Triage and suppression retain a rationale and history, while patch proposals are separate review artifacts rather than automatic edits to registered source.

The redesigned React console connects these services through twelve implemented screens and detail views. The capture fixture contains deliberately unsafe eval and subprocess patterns; its real findings are demonstration evidence, never production vulnerability statistics.

03 / Capabilities & evidence

Implemented work.
Clearly defined scope.

01Implemented

Authorized repository intelligence

Root containment and bounded reads constrain inspection. Python and JavaScript/TypeScript adapters extract source relationships without running the target modules.

02Captured locally

Evidence-backed defensive findings

The real scanner run inspected unsafe eval and subprocess shell execution in the authored Python fixture. Findings retain location, rule and supporting evidence.

03Implemented / optional matching

Dependencies & secrets

Manifest inventory, configuration checks and secret detection complement source analysis. Secret scanning requires an operator fingerprint key and stores redacted evidence; it was SKIPPED in this capture. Advisory matching uses an explicitly supplied, reviewed offline snapshot; missing snapshots do not become successful scans.

04Implemented

Triage & suppression history

Finding transitions and suppressions require reasons. Expiry and history preserve an inspectable record rather than silently removing the underlying issue.

05Provider dependent

Patch plans & proposed diffs

Review-only planning and configured model-backed generation can produce bounded proposed changes. No generated diff is shown without a real configured provider and actual artifact.

06Operator configured

Verification & controlled application

A configured Docker image can verify a proposed diff offline. Materialization and explicitly confirmed application target separate review workspaces and linked Git worktrees, with guarded backup/rollback.

04 / Technical architecture

How the pieces connect.

  1. 01

    React console → FastAPI

    React 19, TypeScript and React Router render real API records. FastAPI serves the Vite build; browser access uses opaque HttpOnly sessions and same-origin mutation checks.

  2. 02

    Authorized source root

    RepositoryBoundary admits only explicitly allowed paths; bounded readers treat source as data.

  3. 03

    Indexer + scanner orchestration

    Python/JS/TS intelligence and configured checks produce scanner records. Unavailable optional tools retain SKIPPED/FAILED states.

  4. 04

    Evidence + finding lifecycle

    SQLAlchemy persists scans, dependencies, findings, triage decisions and suppression history.

  5. 05

    Separate patch-review path

    Plans → configured generation → optional container verification → review workspace. Linked-worktree application needs explicit operator confirmation.

The captured path covers real repository inspection, source scanning, dependencies and findings. Provider-backed diffs, container verification and linked-worktree promotion were not fabricated to fill the gallery.

05 / Verified technology

The actual building blocks.

Application UI
React 19 · TypeScript · Vite · React Router

Twelve implemented console screens, API-backed detail views, Geist and JetBrains Mono.

Service & interface
Python · FastAPI · Typer

CLI and typed API expose the defensive workflow.

Analysis
Python AST · JavaScript/TypeScript adapter · packaging

Source intelligence and pinned dependency interpretation without application execution.

Records
SQLAlchemy · SQLite · Alembic

Disposable SQLite holds the capture scan and its real finding evidence.

Optional execution
Docker · configured scanner / verification images

External tools are opt-in; image availability and configuration are explicit requirements.

06 / Security & boundaries

Explicit safeguards.
Honest limits.

Controls described here are implementation details, not a blanket security certification.

  • Browser authentication

    The console exchanges the operator token for an opaque HttpOnly, SameSite=Strict session cookie. Browser mutations check origin; credentials never enter this portfolio.

  • Controlled scanner execution

    Built-in checks inspect bounded source as data. Optional external scanners require configured local Docker images, with bounded execution and no host fallback.

  • Secret redaction

    Secret findings retain redacted evidence. Sensitive source context blocks patch generation, and verification snapshots exclude recognized secret files. Redaction has finite coverage.

  • Guarded rollback

    Explicit CLI promotion targets an authorized linked worktree after exact patch-ID confirmation and source-hash checks. Rollback refuses to overwrite a target changed since application.

  • Authorized boundaries

    Only allowlisted source roots are admitted. The capture uses an intentionally vulnerable disposable fixture, never a private checkout.

  • Read-only analysis

    Indexing does not import target modules. Proposed fixes are separate artifacts; ordinary scans do not apply changes to registered source.

  • Controlled patch promotion

    Verification, workspace materialization and linked-worktree application are separate steps. Explicit confirmation and hash/state checks constrain application and rollback.

  • Access & disclosure limits

    Production/non-loopback API operation requires a configured shared token. That is a single-operator credential, not tenant-level identity; source evidence and logs still require review.

07 / Development status

Active development.
Known limitations, documented.

Reviewed 18 October 2026. Captures show the latest local React console, including uncommitted frontend and API integration beyond the linked backend commit. Those UI files may not yet appear on GitHub.

Source baseline: 3de4ee8 ↗. Source inspection, local demonstration and production verification are different evidence levels.

08 / Source references

Inspect the implementation.

Continue exploring

Built to be inspected.

Read the source, explore another project, or discuss the engineering.