Manuscript Offprint

arXiv:2610.39468

Soei: Structured Observability of Evidence and Intent for Multi-Agent AI Software Engineering

Mohammed Nayeem Khan, K S Sarun Kumar

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

Abstract

AI coding agents now perform long, multi-step and multi-session software engineering work with limited human supervision. When a developer returns to such work, the decisive question is not “what did the model emit?” but “what was actually done, by whom, and can I trust that it is finished?”. We study this question in two ways. First, we build a working prototype of our proposed system and run it on a real corpus of 45 coding-agent sessions (102,233 raw records; 20,577 tool executions; 2,336 human-to-agent episodes; April–October 2026). With a blindly audited classifier (precision 83.3% / 96.7%), we estimate that 23.4% [95% CI 17.1–35.7] of code-editing episodes end without any independent verification after the last edit, and that 57.8% of to-dos the agent marked complete after editing had no proof between edit and completion. A 10-minute timing heuristic for session hand-offs recovers only 6 of 24 (25%) session pairs that our content-lineage analysis links, because 95.5% of real cross-session artifact reuse happens more than ten minutes apart. 42% of sessions span more than 24 hours, and 48.1% of transcript bytes lie beyond a 2 MiB replay bound. Credential-like strings appear in 1,326 raw records across 16 of 45 sessions. Second, we propose Soei (Structured Observability of Evidence and Intent): an acknowledgement-aware event schema, a hash-chained local evidence ledger, a W3C-PROV-aligned evidence graph, calibrated inference for attribution, drift and lineage-based hand-offs, and a verification layer that separates an agent’s claim of completion from proof. On the real corpus, the prototype’s ledger is 20% of the raw transcript size, stores zero content and zero credential matches, verifies at about 126k events/s, detects tampering, and replays deterministically. We formalise the model, specify the architecture in implementation detail, and define a reproducible evaluation agenda. Finally, we argue that this evidence substrate is a prerequisite for a golden harness for evaluating and certifying coding agents, and for the governance of autonomous agents. We define autonomy levels with evidence gates and harness metrics whose baselines come from our data.

Keywords: AI coding agents; agent observability; provenance; verification; software engineering; situation awareness; empirical study; human–AI collaboration.

Key empirical findings (real data, this paper)

  1. The claim–proof gap is real: about one in four code-editing episodes ends unverified (23.4%, CI 17.1–35.7%). Across 4 classifier versions the raw rate stays between 25.1% and 42.1%.

  2. “Done” is not proven: 186 of 322 (57.8%) to-dos completed after edits had no verification between the edit and the “completed” status.

  3. Hand-offs are slow, not fast: real cross-session reuse has a median gap of 8.8 days. A ≤10 min temporal heuristic finds 25% of linked pairs; content lineage finds all 24.

  4. Bounded history loses most of the evidence: 19/45 sessions exceed 24 h, and 48.1% of bytes fall beyond a 2 MiB replay window.

  5. Acknowledgement matters: 40 of 3,548 file mutations (1.1%, in 30 episodes) were requested but never succeeded. A start-event observer would show them as applied.

  6. Raw agent logs are a liability: 1,326 records in 16/45 sessions contain credential-like strings (208 high-confidence token matches, 5 distinct tokens). The Soei ledger contains none.

  7. Provenance is cheap: the hash-chained ledger costs 20% of raw size and verifies at about 126k events/s in pure Python, with deterministic replay and tamper detection.

1 Introduction

2 Background and related work

3 Gap analysis and taxonomy

4 Design principles

5 Soei core architecture

6 Formal model

7 Algorithms

8 Implementation blueprint

9 Empirical pilot study (real data)

10 Results

11 Discussion and threats

12 Research agenda

13 Golden harness and agent governance

14 Scope of improvements

15 Conclusion

Appendices A–E · References

References (32)