arXiv:2610.33853cs.SEOct 2026

Manuscript Offprint

arXiv:2610.33853

ArchGuard-APR: Architecture-Constraint-Aware Multi-Agent Program Repair Using Repository Graphs and Execution Feedback

Majid Feiz Deilami

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Repository-level automated program repair must reason about more than a localized failing statement. A candidate change can satisfy a narrow test while violating dependency boundaries, modifying an unsafe path, or relying on context that omits relevant repository structure. ArchGuard-APR is an architecture-aware repair prototype that integrates deterministic repository analysis, immutable repository graphs, explicit architecture profiles, graph-guided context retrieval, role-based repair orchestration, patch-policy enforcement, isolated execution feedback, provider cost controls, and canonical source-free evidence. We evaluate the implemented pipeline through an exploratory paired feasibility study, not a confirmatory effectiveness experiment. Six executions were planned; four completed and two black-4 conditions ended as pre-provider infrastructure attrition. Across two valid paired tasks, baseline and ArchGuard conditions each achieved 0/2 successful repairs, and all four completed outputs were classified as invalid patches. The completed executions consumed 35,431 input tokens and 2,737 output tokens (38,168 total) at USD 0.1296325. No effectiveness advantage was observed, and the sample provides no useful inferential basis. The study instead establishes the engineering feasibility of composing architecture constraints with a reproducible repair pipeline and documents patch validity and infrastructure robustness as the principal targets for future work.

Keywords— automated program repair; software architecture; repository graphs; language-model agents; execution feedback; reproducibility; negative results.

1. Introduction

Automated program repair (APR) seeks to generate modifications that correct faulty software. Modern repository-level tasks broaden the problem beyond a single function: tools must locate relevant code, respect project organization, generate an admissible patch, and validate behavior in a controlled environment. Language-model agents add flexible planning and tool use, but flexibility also increases the number of boundaries at which a run can become invalid. A plausible textual response is not necessarily a parseable patch; a patch that applies is not necessarily safe; a test-passing patch is not necessarily consistent with architectural constraints.

ArchGuard-APR treats these boundaries as explicit research objects. Its pipeline separates a vendor-neutral domain and application core from infrastructure adapters. Repository source is first converted into a validated snapshot. Graph construction consumes the snapshot rather than rereading the repository. Architecture evaluation consumes only a validated graph and an explicit, versioned profile. Context retrieval operates over bounded artifacts. Patch inspection and execution are gated by policy, isolation, budgets, and deterministic artifact persistence. This design favors auditability and fail-closed behavior over maximizing apparent repair yield.

The paper makes two different kinds of contribution. The engineering contribution is an implemented prototype integrating repository analysis, graphs, architecture constraints, retrieval, repair roles, patch validation, execution feedback, provider abstraction, and canonical artifacts. The scientific evidence is deliberately narrower: an exploratory evaluation demonstrates operational integration, records four invalid-patch outcomes, and exposes two infrastructure attritions. Engineering size, test count, and coverage are not treated as evidence of repair effectiveness.

The evaluation is negative and inconclusive with respect to effectiveness. It contains only two valid paired tasks, both from PySnooper. Neither condition produced a successful repair. Therefore, the manuscript neither claims an improvement nor performs meaningful significance testing. Its value lies in a traceable system account, a reproducible evidence package, and a candid analysis of where an architecture-constrained repair pipeline failed.