SWAYOM.AIv2.4
Engineering systems / Project case studyActive development

FORGE

Controlled Software
Engineering Platform

Understand the repository.
Plan the change.
Keep the evidence.

Repository intelligence, structured development plans, isolated workspaces, controlled code changes, and recorded validation results — connected in one deliberate engineering workflow.

  • Python
  • FastAPI
  • React
  • TypeScript
  • SQLite
  • Git
Project
Local engineering platform
Planning
Deterministic & index grounded
Interface
Stitch-derived React frontend
This showcase
Real captures · No hosted API

01 / Inside the application

Real software.
Every screen, inspectable.

Captured from the running local application at 1440 × 900. An authored demo repository drives real operations; every visible result belongs to that recorded session.

Application captures, not Stitch mockups. Temporary paths and sample counts describe the disposable capture environment. No private source or credentials are included.

02 / Recorded workflow

From source
to a verified change.

A short, silent recording of genuine UI interactions: registration, indexing, planning, a manually submitted patch, local validation and verification. English captions explain the sequence.

Press play to load the walkthrough.

Open recording ↗Read captions ↗

Recorded locally with disposable data. No mocked API responses or generated frames. The local pytest gate passed; this small fixture is not evidence of general correctness or production readiness.

03 / Project overview

A change should
leave a clear trail.

Forge connects the context of a Git repository to an explicit engineering task. Its deterministic planner reads stored profiles and Python index records, produces reviewable steps, and saves the evidence behind affected-file estimates.

The local application carries that plan into a detached worktree, constrains submitted modifications with content hashes, and records command execution and complete verification attempts. Human review remains part of the workflow.

The redesigned frontend translates those boundaries into repository inspectors, task and plan views, patch history, execution records and telemetry. It follows Google Stitch references while displaying actual backend data.

Backend architecture ↗

04 / Implemented capabilities

Control at every boundary.

Capabilities verified against the current local source. The core planner does not autonomously write code or invoke an LLM.

01Read & understand

Repository intelligence

Register a local Git root, profile bounded source, incrementally index Python ASTs, and query symbols, imports, dependents and source text. Analysis does not execute repository code.

Implementation notes ↗
02Ground the objective

Deterministic plans

Turn a task into ordered steps, evidence-backed file estimates, acceptance criteria and validation commands. A context fingerprint exposes stale plans. Planning requires no model call.

Implementation notes ↗
03Separate the change

Isolated Git worktrees

Create a detached worktree pinned to committed HEAD only when the source and index match the current plan. Committed blobs are materialized without checkout hooks or filters.

Implementation notes ↗
04Make changes reviewable

Audited patch operations

Submit bounded CREATE, UPDATE or DELETE operations within the managed workspace. Updates and deletes require the current SHA-256 hash; atomic writes retain immutable hash-and-reason records.

Implementation notes ↗
05Run the planned gate

Bounded execution

Execute exact planned Python argument vectors without a shell. Bubblewrap, resource limits, timeouts and bounded output provide a fail-closed local validation boundary.

Implementation notes ↗
06Keep the evidence

Verification & repair budgets

Run every planned command as one recorded verification attempt. Repository failures require a changed patch before retry; exhausted budgets block the task. Forge does not generate repairs itself.

Implementation notes ↗

05 / System architecture

One shared core.
Explicit service boundaries.

A modular Python monolith: the local FastAPI interface and Typer CLI use the same services and SQLAlchemy records. The portfolio is a separate presentation layer.

The CLI can call shared services directly. The diagram groups service responsibilities; it does not imply parallel agents or a dependency-graph execution engine.

Architecture & storage contracts ↗

06 / Engineering workflow

Intent → change → evidence.

  1. 01

    Understand

    Register a clean repository. Profile and index admitted files, then query the relevant symbols and imports.

  2. 02

    Plan

    Define an objective. Generate a deterministic plan with source evidence, acceptance criteria and validation commands.

  3. 03

    Change

    Allocate a detached worktree. Submit a reviewed patch with the expected current file hash.

  4. 04

    Validate

    Run the exact planned commands in the local sandbox. Inspect captured output, exit status and timeout records.

  5. 05

    Verify

    Run the complete gate. A pass yields VERIFIED; a repository failure requires a new patch before retry.

A successful automated gate sets VERIFIED. COMPLETED is reserved for a later independent review gate. Repairs are submitted through the audited patch API; Forge does not generate them.

07 / Technology stack

Purposeful building blocks.

Interface
React 19 · TypeScript · Vite · React Router

The local web interface uses shared panels, typed API contracts and route-level code splitting.

Service & CLI
Python 3.12+ · FastAPI · Pydantic · Typer

API and CLI compose the same repository, planning, workspace and verification services.

Persistence
SQLAlchemy · SQLite

Repository indexes, plans, patch metadata and execution evidence remain inspectable records.

Repository analysis
Python AST · SHA-256 · Git

Incremental Python indexing grounds plans; commit and content fingerprints guard workspace changes.

Local validation
Bubblewrap · prlimit · pytest

Planned Python commands run offline with bounded resources and captured outcomes.

Engineering checks
pytest · Ruff · mypy · Playwright · Axe

The source includes backend checks, real browser workflow tests and automated accessibility checks.

Python package configuration ↗

Frontend tools are verified from the current local frontend/package.json. That redesigned frontend includes local changes beyond the linked backend baseline and may not yet be available on GitHub.

08 / Security architecture

Constrain the operation.
Preserve the boundary.

Implemented controls reduce exposure to untrusted source. They do not establish complete isolation or certify an internet-facing service.

  • Bounded repository reads

    Containment checks, file limits, excluded metadata and dependency trees, and skipped symlinks constrain source admission and search.

  • Controlled worktree mutations

    Clean-source and plan-freshness checks precede allocation. Relative patch paths cannot escape the workspace; updates require the current file hash.

  • Fail-closed validation

    Exact planned Python commands run without a shell or network. Linux namespaces, a disposable overlay, minimal environment, resource limits and timeouts bound execution. Missing primitives fail closed.

  • Persistent failure evidence

    Execution records retain bounded output and status. Repair budgets distinguish repository failures from sandbox infrastructure errors. Local output may still contain sensitive source data.

09 / Development status

Working foundations.
Clearly stated limits.

Implemented / v0.6.0

Controlled local workflows

Repository analysis, deterministic planning, detached worktrees, audited patching, planned sandbox execution and complete verification gates. The recorded authored fixture exercised this flow successfully.

Current limitations

Deliberate scope

Python AST indexing and trusted Python validation. Plans contain ordered steps, not dependency edges. Patch records retain hashes, not historical file diffs. No autonomous repair loop or production deployment is claimed.

Documented next steps

Review, routing & evaluation

The backend roadmap places independent review, model routing and evaluation in later phases. SQLite create_all bootstrapping still needs migrations before production use. The local frontend also contains a separate optional provider-review profile, outside this recorded core workflow.

Reviewed 2026-10-17 against the current local Forge workspace. Backend baseline: ff912a3 ↗. The redesigned frontend has additional local changes. Source inspection and this small demo are distinct from testing every integration or deployment environment.

Documented roadmap ↗

10 / Explore the source

The engineering is
in the details.

Read the implementation, inspect the contracts, and follow Forge’s development.