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.
Create a lesson
Metadata
- Categories
- cs.SE, cs.AI
- Comments
- 27 pages, 4 figures, 6 tables. Preprint. Companion reference implementation and reproducible benchmark suite are described in the manuscript
Related papers
Horizontal Models, Vertical Systems: A Position on Where Domain Knowledge Belongs in Enterprise Agents
Shared title terminologycs.SELuciano Lucindo Chaves
Does Training-Free Delegation Improve Cost Efficiency in Multi-Agent Software Engineering Systems? An Empirical Study
Shared title terminologycs.SEMootez Saad, Mohammad Masudur Rahman, Tushar Sharma
MEDSWE-BENCH: A Benchmark for Biomedical Software Engineering Agents
Shared title terminologycs.SEZhaoyang Zhu, Sicong Li, Zihan Liao et al.
SpecEngineeringBench: Evaluating Coding Agents as Autonomous Specification Engineers
Shared title terminologycs.SEXingjian Wang, Shijian Wang, Minghao Liu et al.
Useful but Unwieldy: How Software Engineers Perceive the Design of Chain-of-Thought Explanations in Coding Agents
Shared title terminologycs.SECarlos Rafael Catalan, Lheane Marie Dizon, Patricia Nicole Monderin et al.
sudo L7: Can Coding Agents Act Like Staff Engineers?
Shared title terminologycs.SENick Heiner, Ian Niebres, Nick Robin et al.