Skip to content

AI Researcher & Engineer

1 Publications

4 Projects

  • PyTorch
  • TensorFlow
  • HuggingFace
  • LangChain
  • LangGraph
  • FastAPI
  • OpenCV
  • YOLOv8
  • FAISS
hamza35502@gmail.com
Get in touchRésumé
HAMZA
RésuméGet in touch
Menu
hamza35502@gmail.com
  • PyTorch
  • TensorFlow
  • HuggingFace
  • LangChain
  • LangGraph
  • FastAPI
  • OpenCV
  • YOLOv8
  • FAISS
Work
Research

Stale Derived Work in Multi-Agent LLM Software Teams

Benchmark and three-agent coding harness showing that LLM agent teams can know every current project decision yet leave code built on the old decision unchanged, mostly in code owned by teammates.

Key numbers

  • 100%

    Fact-probe accuracy with fact memory

    qwen3-coder:30b

  • 41%

    Affected functions left stale

    Same runs, 22/54 functions

  • 4%

    Residue with broadcast

    2/54 functions

Problem

When a team of LLM agents builds software, project decisions change mid-project ("users are identified by email, not username"). Agent-memory research asks whether the agents learn the new decision. It does not ask whether the code, tests and tasks they already built on the old decision get updated, and in a team the agent that hears about the change is often not the one that wrote the affected code. The project separates fact-level currency (does the agent know the current decision?) from work-level currency (does the code match it?) and measures both side by side.

Approach

Six small Python backend projects with scripted decision changes (rename, modify, replace, revoke, plus a negative control) and function-level ground truth from paired before/after reference solutions. A three-agent team (db, api, tests) works in a fresh git repository with strict module ownership, so git blame gives authorship. Memory systems plug in through one interface; baselines are raw history, TSM-style temporal fact memory with validity intervals, and broadcast with a diligence prompt. A checker labels every affected function stale or updated at the end of each run, and every stale label was audited by hand. Experiments ran on Claude Haiku 5.5 and on local models via Ollama, each under a go / no-go rule fixed before the pilot.

Results

  • On qwen3-coder:30b, temporal fact memory answered 100% of fact probes correctly yet left 41% of affected functions stale; 75% of teammate-owned affected functions stayed stale.
  • Teammate-owned code stayed stale more often than self-owned code on every model that left any residue (qwen3-coder 42% vs 7%; qwen3:14b 60% vs 40%).
  • A broadcast telling each owner to check its own code cut residue to 4%, and Claude Haiku 5.5 left 0% under every baseline by re-reading the small codebases and following failing tests.
  • Every pilot was a no-go under its pre-registered rule, so the planned decision-to-code link graph method was not built; the result is reported as a negative result with a specification for a harder benchmark.

Why this matters

Most agent-memory work studies whether an agent's knowledge stays current: conflict resolution, invalidating outdated facts. This project asks the next question. Once the agents know the decision changed, is the work built on the old decision found and fixed? In a team that update has to cross an ownership boundary: a change delivered to the database agent may need edits in the API layer and the tests, which belong to teammates.

What was built

  • Benchmark. Six Python backend projects of about 450–1000 lines, each with 10–12 tasks, 6–8 decisions and four scripted changes plus one negative control. Every change was checked so that its current-decision test passes on the new reference and fails on the old one.
  • Team harness. Three agents on a custom loop of about 300 lines on LiteLLM, the same tools and limits in every condition, and fact probes logged separately from the agents' own turns.
  • Change episodes. A scripted replay builds the code up to each change, so every affected function exists when the change arrives and the agents are scored only on how they respond to it.
  • Checker and runner. Stale labels from function bodies, dependencies and old-decision markers; seeded batch runs with a cost cap. 312 automated tests cover the system.

Results so far

On the strongest local model, knowledge and work came apart: every agent answered every fact probe correctly while three-quarters of teammate-owned affected functions stayed stale. A simple broadcast nearly removed the problem at this project size, and a capable paid model never produced it. The phenomenon is real but, on small, test-visible projects, easy to fix.

Lessons in measurement

Two infrastructure defects would have changed the conclusions. An idle rule cut agents off mid-response in 13 of 24 changes, differently per condition. The scripted replay read the memory block, so the starting code drifted in one condition only. Both were caught by hand audits and fixed with runtime checks; the affected runs were repeated.

Limitations and next steps

The local results come from one pilot project with three seeds per condition, so the confidence intervals are wide, and 85% of the affected functions are caught by visible tests. A second benchmark version would use codebases too large to re-read, affected code deeper in the call graph, test-silent changes and derived artifacts beyond code, which is where the planned link-graph method could matter.

Project details

Type
Research
Year
2026
Status
Ongoing
Role
Did all the work in a three-person course team; designed and built the benchmark, the agent-team harness, the memory baselines and the checker, and ran and audited every experiment.
Domains
  • Agentic AI
  • Multi-Agent Systems
  • LLM Evaluation
Technologies
  • Python
  • LiteLLM
  • Ollama
  • pytest
  • Git
  • Claude Haiku 5.5
  • qwen3-coder