Skip to main content
Eshan Roy@eshanized
Research Index/TIV-RES-2026-001
Research Framework·TIV-RES-2026-001·Autonomous Systems

Towards Autonomous Development Systems: A Research Framework

Authors:Eshan Roy
2026-09-12
5 min read
Executive Abstract

We propose a research framework for autonomous software development systems — computational runtimes capable of reasoning over, modifying, and verifying complex software repositories under strict safety guarantees. We define the problem space separating conversational assistants from sovereign execution runtimes, formalize an 11-stage non-bypassable policy gating model, and introduce empirical verification criteria where language model assertions are treated as untrusted until mathematically and observationally proven.

1. Executive Summary

Autonomous software engineering requires transitioning from conversational code-generation chatbots to sovereign, policy-governed runtime engines. When a language model directly drives an interactive developer shell with ambient operating system credentials, safety relies entirely on probabilistic self-restraint. In real-world software repositories, this unconstrained execution paradigm routinely results in destructive mutations, secret leakage, hallucinated build successes, and unrecoverable workspace corruption.

In this research framework, we formalize the separation of concerns between reasoning and authority:

Core Axiom: Intelligence is not authority. A language model is an untrusted reasoning component proposing structured candidate mutations. Authority resides exclusively within a deterministic, compiled runtime that validates policy, confines execution, and verifies empirical outcomes.

+-------------------------------------------------------------+
|                UNTRUSTED REASONING ENGINE                   |
|               (LLM / Vision-Language Model)                 |
+-------------------------------------------------------------+
                              |
                              | Proposed Action Manifest
                              v
+-------------------------------------------------------------+
|              11-STAGE NON-BYPASSABLE POLICY GATE             |
|   (Path Bounds, AST Checks, Secret Scanning, Rate Limits)   |
+-------------------------------------------------------------+
                              |
                              | Permitted Mutation
                              v
+-------------------------------------------------------------+
|                ISOLATED EXECUTION SANDBOX                   |
|         (cgroups v2, Namespaces, POSIX rlimits)             |
+-------------------------------------------------------------+
                              |
                              | Observation & State Diff
                              v
+-------------------------------------------------------------+
|               EMPIRICAL VERIFICATION ENGINE                 |
|       (Compiler Diagnostics, Test Suites, SHA-256 Digest)    |
+-------------------------------------------------------------+

2. Problem Formalization

Consider a repository workspace $W = (F, G, T)$ where:

  • $F = {f_1, f_2, \dots, f_n}$ represents the set of tracked file entities and contents.
  • $G$ represents the directed dependency and symbol call graph.
  • $T$ represents the automated test and validation harness.

An autonomous mission is initiated with a high-level natural language specification $S$. A conventional agent produces a sequence of unverified shell executions:

$$\mathcal{A}{\text{naive}}: S \times W_t \to \text{exec}(\text{shell_command}) \to W{t+1}$$

Because the shell command possesses ambient authority, any hallucinated command (e.g. rm -rf, editing .env or system configs) executes immediately.

In our framework, the agent is constrained to produce candidate intent objects $I_t \in \mathcal{I}$, which must pass through a predicate function $\mathcal{P}_{\text{policy}}(I_t, W_t) \to {\text{ALLOW}, \text{DENY}, \text{ASK}}$ before entering a confined execution sandbox:

$$\mathcal{A}{\text{governed}}: (S, W_t) \xrightarrow{\text{LLM}} I_t \xrightarrow{\mathcal{P}} \begin{cases} \text{exec}{\text{sandbox}}(I_t) & \text{if } \mathcal{P} = \text{ALLOW} \ \bot & \text{if } \mathcal{P} = \text{DENY} \ \text{operator_prompt}(I_t) & \text{if } \mathcal{P} = \text{ASK} \end{cases}$$


3. The 11-Stage Non-Bypassable Policy Gate

The policy engine implements an immutable sequential evaluation pipeline. Every candidate mutation must satisfy all eleven stages before any file write or process spawn occurs:

Stage Gate Check Failure Action Security Rationale
01 Path Traversal Boundary DENY Prevents writes outside the repository root (../, absolute /etc)
02 Sensitive File Blacklist DENY Protects .env, .git/config, private keys, SSH certificates
03 AST Parse Validation DENY Rejects syntax-invalid edits before committing to disk
04 Secret & Token Scanning DENY Scrubs API keys, bearer tokens, and credentials via entropy heuristics
05 Write Volume Quota ASK Halts multi-megabyte bulk rewrites that indicate model loops
06 Network Destination Scope DENY Blocks outbound connections to unauthorized IPs or domains
07 Subprocess Execution Whitelist DENY Restricts spawned binaries to approved toolchains (cargo, npm, git)
08 Destructive Command Filter DENY Rejects rm -rf, git reset --hard, and unrecoverable commands
09 Concurrency Lock Verification ASK Prevents race conditions with external developer edits
10 Resource Budget Constraints DENY Enforces CPU time and memory rlimits on sub-processes
11 Human-in-the-Loop Threshold ASK Prompts operator when proposed diff touches critical architectural files

4. Empirical Verification Criteria

A primary failure mode of generative agents is false completion declaration: the model states "I have resolved the bug and all tests pass," despite never running the compiler or test suite.

Under our empirical verification protocol, a mission cannot transition to COMPLETED based on model output. The state transition requires a cryptographic verification bundle containing:

  1. Zero Diagnostic Errors: Compiler / linter exits with code 0 and an empty error stream.
  2. Deterministic Test Verification: All pre-existing and newly added test targets pass within the isolated sandbox container.
  3. Repository Clean State: Unintended artifact files are purged, and the working directory matches the intended DAG delta.
  4. SHA-256 State Manifest: A cryptographic digest over the post-mutation repository tree is signed and committed to the SQLite audit journal.

5. Architectural Implementation in M31A

This framework is implemented in production within M31A (m31a.tonmoyinfrastructure.org), a Rust-native autonomous software-engineering runtime. M31A structures execution across 10 downward layers (L0 to L9), ensuring lower-level sandboxing, process confinement, and database persistence cannot be corrupted by upper-layer agent logic.

Future research tracks investigate multi-session planning across distributed repositories, formal verification of policy gate predicates using SMT solvers, and zero-knowledge evidence proofs for autonomous pull requests.

References & Prior Art

  1. M31A: High-Assurance Rust-Native Autonomous Software Engineering Runtime — Eshan Roy (2026). Tonmoy Infrastructure and Vision Technical Specifications. [Source]
  2. OWASP Application Security Verification Standard (ASVS) 4.0 — OWASP Foundation (2021). OWASP Foundation Standards. [Source]
  3. Tree-sitter: An Incremental Parsing System for Programming Tools — Max Brunsfeld (2018). GitHub Engineering Publications. [Source]
BibTeX Citation
@article{roy2026autonomous,
  title={Towards Autonomous Development Systems: A Research Framework},
  author={Roy, Eshan},
  journal={Tonmoy Infrastructure & Vision Technical Reports},
  volume={1},
  number={TIV-RES-2026-001},
  year={2026},
  month={September},
  url={https://eshan.tonmoyinfrastructure.org/research/towards-autonomous-development-systems}
}