cd /news/ai-agents/deleting-a-node-is-not-deleting-a-ch… · home › topics › ai-agents › article
[ARTICLE · art-181853] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=· neutral

Deleting a node is not deleting a child: one request, 46 slips, and the graph that explains it

A team led by Rajnish Choubey (architecture) and Shalendra Gaur (tests) built AXI, a host-side layer that validates model-generated changes against a service graph, and found that Gemini 3.8 Flash produced the ideal reply on 3,954 of 4,000 steps in a saved run. All 46 failures came on one request type, "delete a service and also remove one named edge," where the model left other attached edges dangling; a deterministic repair rule on the host completed all 46, and stating the rule in the prompt raised correct replies on that request from 2 of 9 to 9 of 9 on a second seed. The team notes that although the model was right on 98% of steps in the first 400 requests, only 21% of steps ended in the correct state when slips were allowed to persist.

recommendation

Validate each model-proposed graph change against the exact host state for dangling edges, and add a deterministic repair that deletes every attached edge before rebuilding the next prompt.

more in playbook: Verifying model output
by read3 min views5 publishedDec 4, 2026

Architecture by Rajnish Choubey; tests by Shalendra Gaur (with an AI assistant as a tool: this article was written with AI assistance and every number is read from a saved file in the repository linked at the end). AXI is a layer on the host side, for the company that runs the model; the model is unchanged and every claim here is about the state the host holds.

A tree assumes its children can be removed: take the Sun out of the Solar System and the Solar System is still a valid container. Rajnish Choubey's note on non-divisional taxonomies says that where parts are entangled this fails, because removing a foundational part changes the boundary of everything around it.

Read as engineering, a service graph is not a tree. Deleting a service is not removing a child, because the edges attached to it belong to its boundary. A change that deletes a node and leaves an attached edge behind leaves a dangling edge, and the state is wrong even though every other line of it is right.

Gemini 3.8 Flash, a 4,000-step run on a service graph, one change per step. The model's reply was the ideal reply on 3,954 of 4,000 steps. The other 46 all came on one kind of request, "delete a service and also remove one named edge", and all had items left out: the other edges attached to the service. They were 46 of the 97 replies to that request when the service had dependants. On the plain "delete the service" requests, 472 of 472 replies named every dependant.

The model treated the request as two separate removals, and the graph needed one: a deleted service takes its attached edges with it. The host completed all 46 with that rule, fixed before the run.

On the other two models measured, the damage also sat on deletes that touch edges:

The gate has a typed obstruction for exactly this case, dangling: a delete of a node while an edge that touches it is not also deleted in the same change. The repair is deterministic and covers only that obstruction. For a node with at most four attached edges it adds a delete for every attached edge not yet deleted; anything that is not a dangling obstruction is reported as not repairable, and the repair never guesses. The prompt for the next step is then rebuilt from the exact state, so the omission is not carried forward.

On a second seed, stating the rule in the prompt as well brought the model's own replies on the delete-and-remove-an-edge request from 2 right of 9 to 9 of 9. That is few events on one seed and one model, and the test page reports it as such.

The model was right on 98% of the steps in the first 400 requests of that run. Applied as written, only 21% of its steps ended with the right state, because the slip stayed and every later step built on it. An accuracy figure averaged over request kinds hides a failure that sits on one kind and decides the state of the whole job. Holding the state on the host and checking each change against it finds it, and a fixed rule closes it.

Replay the saved 4,000-step run without a key or a GPU:

git clone https://github.com/gaurshalendra2412/axi-runtime
cd axi-runtime/python
python3 quickstart_replay.py

It prints 4,000 of 4,000, 3,954 of 4,000, 85 of 400 and 4.5 times. The rule-stated result is on this page: https://github.com/gaurshalendra2412/axi-runtime/blob/main/docs/GEMINI_RULEHINT_TEST.md

── more in #ai-agents 4 stories · sorted by recency
── more on @rajnish choubey 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/deleting-a-node-is-n…] indexed:0 read:3min 2026-12-04 · —