Search arXiv⌕ Search

arXiv · 2611.40640

BTAE: Bottom-Up Traceable Agentic Engineering via Deterministic Knowledge Graphs and Four-Dimensional Epistemic Governance

Abstract

Autonomous coding agents accelerate localized patch synthesis, yet sustaining repository-level software evolution across multi-turn edits requires preserving verifiable links among specifications, architectural boundaries, source symbols, and test executions. Existing scaffolds conflate self-reported metadata, static file checks, and historical test outcomes with currently valid evidence, letting stale test runs, silent architectural drift, risk self-downgrades, and unverified host claims pass completion gates while flooding agent contexts. We decouple structural facts from governance authority by tracking a four-dimensional epistemic state-design approval, implementation mapping, verification execution, and ATMS-sliced defeasible validity-for every logical engineering entity, and introduce Bottom-Up Traceable Agentic Engineering (BTAE) and its Engineering Protocol Engine (EPE), pairing an atomic Directory-Merkle Engineering Knowledge Graph (EKG) with a fail-closed Engineering Governance Plane (EGP). EPE derives policy-enforced risk floors and global protected paths from EKG blast radii, assembles bounded contexts with fail-closed caching, enforces Ed25519 approvals and time-bounded ADR waivers, and binds JUnit artifacts to SHA-256 manifests, ATMS slices separating undercut from rebutted failures, and hash-chain audit logs. Evaluated on the self-hosted 7,338-LOC EPE repository (426 nodes, 368 tests) and a 620-trial fault-injection benchmark (14 families, 560 adversarial + 60 valid), EPE achieves 10/10 byte-identical rebuilds in 132.2 ms (57.5 ms incremental), lowers conditional false acceptance from 49.5% (Git+CI+static stack B3) to 11.1% (95% CI 8.7-13.9) under anchored policy boundaries (25.4% with local risk floors) with 0/60 false rejections on valid workflows, compresses contexts by 97.6% vs. full repo, and shrinks ATMS slices by 78.9%, while quantifying 15/15 lazy-loading blocks.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Zhengshuai Yang, Changyun Li. 2026-11-30. BTAE: Bottom-Up Traceable Agentic Engineering via Deterministic Knowledge Graphs and Four-Dimensional Epistemic Governance. https://searcharxiv.org/abs/2611.40640

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Symbolic Synthesis of Distinguishing Test Batches for Specification Narrowing

Ambiguous requirements can admit several non-equivalent formal specifications. We study the symbolic synthesis of complete distinguishing test batches for specification narrowing through expert review. Synthesized upfront, these fixed suites of instances or traces separate every candidate pair and support asynchronous and parallel classification. We formalize batch synthesis as a candidate-pair cover problem over an implicit test space and develop four methods for bounded Alloy models and temporal traces. Two cover-based methods obtain minimum-cardinality batches through joint MaxSAT optimization or SAT enumeration followed by explicit minimum-cover selection. Two tree-guided methods use SAT or balanced MaxSAT and reuse tests across branches. Our evaluation covers 196 static and 32 temporal configurations. On paired static configurations, reuse reduces balanced batch cardinality by 42% relative to the unreused construction tree, and minimum covers are a further 29% smaller. The SAT-based tree-guided method completes every main-study configuration within 0.43 seconds, while the exact methods exhibit different scalability profiles, particularly for temporal models. Complete batches also support adaptive review, with balanced batches nearly attaining the theoretical lower bound on mean classification cost. On completed benchmarks, modest additional upfront synthesis effort provides complete reusable suites that also support competitive adaptive classification.

cs.SE↗

On Fixing Insecure AI-Generated Code through Model Fine-Tuning and Prompting Strategies

The security of AI-generated code remains a major obstacle to its widespread adoption. Although code generation models achieve strong performance on functional benchmarks, their outputs frequently contain bugs and security weaknesses that undermine their trustworthiness. Prior work has explored a range of approaches to mitigate security issues in AI-generated code, e.g., using static analysis-guided generation and prompt engineering. However, their effectiveness varies widely across models and settings. This paper presents a systematic investigation of strategies for hardening model-generated code against a list of Common Weakness Enumeration (CWE). We assess the extent to which these strategies improve security across models and programming languages, using fine-tuning and prompting approaches for model output refinement. Beyond the prevalence of security weaknesses, we analyse the severity of identified CWEs, their co-occurrence, and the unintended consequences of remediation (i.e., whether fixing certain weaknesses introduces new weaknesses elsewhere in the same code). Our results show that security improvements are highly strategy- and model-dependent. Although some approaches reduce specific classes of weaknesses, they often introduce new weaknesses as side effects of the fixes. Moreover, no strategy consistently eliminates weaknesses across all models and scenarios, highlighting the absence of a universally effective "bulletproof" solution for secure AI-generated code.

cs.SE↗

Trans-Domain Digital Twin: Conceptual Foundations, Architecture, and Research Outlook

Complex systems comprise heterogeneous domains whose states, uncertainties, risks, and control consequences can cross domain boundaries. Existing cross-domain digital twin approaches broadly focus on comparison, reuse, semantic mapping, standardization, and interoperability, but do not inherently require operational connections among domain states, errors, objectives, constraints, decisions, and controls. This article proposes the trans-domain digital twin as an operational formulation along the continuum of Composite/Federated Digital Twin Systems. This approach connects heterogeneous domain twins through an aligned shared state, explicit coupling of data, models, states, errors, objectives, and controls, heterogeneous temporal coordination, joint decision-making, and feedback-based adaptation. The proposed framework presents a seven-layer conceptual architecture, a trans-domain orchestration core, minimum compliance conditions, a general operational formalism, progressive fast-meso-slow loops, and a single-episode offline training mechanism linked to bounded online adaptation. It also describes conceptual validation and evaluation criteria, a maturity model, a reference deployment architecture, and requirements for runtime safety, provenance, versioning, and model lifecycle management. The framework is conceptually mappable to standards for digital twins, model exchange, distributed simulation, and smart transducers; however, its formal compliance and operational effectiveness must be examined through independent benchmarks, uncertainty quantification, ablation testing, and field validation.

cs.SE↗