Skip to content
stanley07Public

About

Research AI

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Enginuity — evidence-backed engineering investigations

Enginuity turns a software repository and an engineering question into a bounded, reproducible investigation with an independently critiqued decision and a canonical audit package.

Table of Contents

Key Features

  • ✅ Evidence-backed repository understanding
  • ✅ Engineering hypothesis generation
  • ✅ Evidence contracts
  • ✅ Bounded experiment planning
  • ✅ Isolated execution workspaces
  • ✅ Automatic bounded repair
  • ✅ Independent critique
  • ✅ Deterministic decision engine
  • ✅ Canonical audit package
  • ✅ GPT-5.6 live mode and deterministic simulation mode

The problem

Engineering recommendations are often assembled from fragmented repositories, simulations, logs, assumptions, failed runs, and undocumented trade-offs. A plausible answer is not enough when nobody can reproduce the experiments, identify the authoritative run, or explain why a constraint passed.

Unsupported recommendations waste engineering time and become especially costly in infrastructure, manufacturing, research, and regulated work.

The solution

Enginuity runs a controlled investigation rather than an open-ended coding session:

Repository → Understanding → Hypotheses → Evidence contracts
→ Bounded experiment plan → Isolated execution → Bounded repair
→ Evidence analysis → Independent critique → Deterministic decision
→ Canonical audit package

In live mode, configured language models reason about repository structure, hypotheses, experiment plans, bounded repairs, analysis, and critique. Deterministic services validate their structured output, reconstruct commands from trusted manifests, enforce the state machine and loop bounds, retain failed runs, score the final policy, and persist provenance. Model text never directly authorizes a shell command or final acceptance decision.

Why Enginuity is different

It is not… Enginuity adds…
a chatbot persisted hypotheses, evidence contracts, experiments, verdicts, and decisions
a generic coding agent allowlisted edits, bounded repair, canonical-repository immutability, and trusted validation
a test runner experiment roles, metric objectives, constraint evidence, analysis, and ranking
an unconstrained autonomous agent deterministic transitions, bounded replans, bounded repairs, and bounded experiments
a simulation dashboard independent critique, policy-controlled decisions, provenance hashes, and a canonical audit package

Every failed or timed-out execution remains evidence. It is not hidden simply because a later repair succeeds.

Judge quick start

The shortest reliable path uses deterministic simulation mode. Open two PowerShell terminals from the repository root.

1. Install and start the backend

cd backend
python -m venv .venv
.\.venv\Scripts\python.exe -m pip install -e ".[dev]"
$env:ENGINUITY_MODE = "SIMULATION"
.\.venv\Scripts\python.exe -m uvicorn app.main:app --reload --port 8000

Verify http://localhost:8000/api/health.

2. Install and start the frontend

cd frontend
npm.cmd ci
npm.cmd run dev

Open http://localhost:5173, create an investigation using the absolute path to demo/engineering_benchmark, and use an objective such as:

Determine whether the cantilever design satisfies its deflection and strength constraints, and identify the best supported configuration.

Progress through Understand → Hypotheses → Experiment Matrix → Execute → Analysis & Critique → Decision & Audit. Use Balanced Decision Policy, run the decision, inspect all rule results and ranked experiments, then expand the audit inspector and download its canonical JSON.

See docs/demo-guide.md for the exact state-by-state script and recovery notes.

Product screenshots

The gallery follows one deterministic simulation investigation from the judge dashboard to its evidence-backed decision.

Dashboard

Active and completed investigations remain immediately accessible, with readable objectives, status, and timestamps.

Investigation overview

The original investigation objective, repository identity, simulation mode, workflow state, and provenance are visible before the detailed evidence.

Hypotheses and evidence contracts

Three engineering hypotheses remain coupled to explicit variables, directions, thresholds, and evidence contracts.

Experiment matrix

The canonical baseline-plus-treatment matrix completed seven authoritative executions with persisted results.

Analysis and independent critique

Evidence-backed findings and hypothesis evaluations are shown separately from the accepted independent critique.

Decision and audit

Balanced policy produces ACCEPT_RESULTS at 90% confidence; the same workspace exposes rule results, ranked experiments, and the canonical audit package.

GPT-5.6 reasoning, bounded by deterministic controls

Live mode can use explicit GPT-5.6 model identifiers for:

  • repository understanding;
  • hypothesis generation;
  • experiment planning;
  • bounded repair proposals;
  • evidence-backed analysis;
  • independent critique with a separately configured critique model.

The repository does not guess model identifiers. Set the exact identifiers available to your account through ENGINUITY_REASONING_MODEL, ENGINUITY_CODE_MODEL, and ENGINUITY_CRITIQUE_MODEL. The current live adapter uses the OpenAI Python client and fails fast when required credentials or model configuration are missing.

SIMULATION mode makes no model API call. It loads stage-specific, schema-validated fixtures and records execution_mode=SIMULATION and model_name=simulation. Both modes record redacted model-call provenance; neither gives model output direct control of state transitions, commands, or acceptance policy.

Codex collaboration

Codex contributed to the Build Week completion work by performing a repository-wide audit and then delivering:

  • the bounded product-completion plan and judge prioritization;
  • reproducible Python packaging, environment, and test-discovery repairs;
  • the durable asynchronous execution-completion contract and safe teardown;
  • repair path-containment, import-comparison, secret-access, and mutation checks;
  • high-value repair-boundary tests;
  • the complete decision UI, typed API boundary, refresh-safe polling, manual resolution, and audit inspector.

Codex did not implement the earlier milestones and this project does not claim otherwise.

Architecture at a glance

flowchart LR
    UI[React frontend] --> API[FastAPI API]
    API --> SM[Central state machine]
    SM --> RI[Repository intelligence]
    SM --> HY[Hypothesis service]
    SM --> PL[Planner]
    SM --> EX[Execution service]
    EX --> WS[Isolated workspaces]
    EX --> RP[Bounded repair]
    SM --> AN[Analysis service]
    AN --> CR[Independent critique]
    CR --> DE[Decision engine]
    DE --> AU[Canonical audit package]
    RI & HY & PL & RP & AN & CR --> LM[GPT-5.6 live or simulation fixtures]
    API & SM & RI & HY & PL & EX & RP & AN & CR & DE --> DB[(SQLite provenance store)]
Loading

The backend currently persists 30 tables grouped around investigations, repository intelligence, hypotheses, plans, execution and repair, analysis and critique, decisions, and audit/provenance. See docs/architecture.md.

Safety and provenance

  • Repository content and logs are untrusted evidence, not instructions.
  • Secret-like content is detected or redacted before model traces are persisted.
  • Commands are reconstructed as argument vectors from trusted manifests; shell=True is prohibited.
  • Every execution uses an isolated workspace; the canonical repository remains unchanged.
  • Repair rejects traversal, absolute paths, symlinks, hash mismatches, oversized edits, unexpected mutations, and newly introduced secret access.
  • An experiment has at most two repair attempts—three executions total.
  • Decisions link repository snapshot, analysis, critique, policy configuration, rule results, verdicts, ranked executions, and audit-package hashes.

See docs/security.md for implemented controls and limitations.

Release status

  • Build Week product release: v1.0.0-buildweek.
  • Tagged product commit: 0488a813108552ace6197fb39e596790ba28652c.
  • Deterministic simulation mode: supported and prepared for the judge recording workflow.
  • Live OpenAI/GPT-5.6 mode: supported only with explicit valid credentials and exact model identifiers.
  • The internal Transition Test Bench is hidden by default and appears only when VITE_ENGINUITY_DEV_MODE=true is explicitly configured.

This is a Build Week MVP, not a production-ready system.

Known limitations

  • Development and demo instructions are Windows/PowerShell-focused.
  • SQLite is appropriate for the current single-node MVP, not a multi-tenant deployment.
  • Production authentication is not implemented; development headers provide the current manual-resolution security context.
  • Live model calls require valid OpenAI credentials and supported model identifiers.
  • Canonical and backend benchmark trees remain duplicated pending consolidation.
  • Interactive evidence-graph visualization is deferred.
  • The root .env is loaded for local development, while already-set process variables remain authoritative.

Verification

cd backend
.\.venv\Scripts\python.exe -m pytest -q

cd ..\frontend
npm.cmd run build

The tagged release was rehearsed from a fresh public clone on July 20, 2026: backend installation, frontend npm ci, frontend production build, backend startup and health check, canonical simulation smoke test, and owned-process shutdown all completed successfully. The smoke test reported 1 passed; no broader suite count is claimed here.

Build Week submission

Further reading: Why Enginuity · Architecture · Demo guide · Security

Acknowledgements

Built during OpenAI Build Week 2026 using GPT-5.6 and Codex.

About

Research AI

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages