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

> Source: <https://dev.to/shalendra_gaur_ecd0567a49/deleting-a-node-is-not-deleting-a-child-one-request-46-slips-and-the-graph-that-explains-it-2c97>
> Published: 2026-12-04 15:03:28+00:00

**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 the playbook "Verifying model output": <https://wpnews.pro/playbooks/output-verification>

*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](https://github.com/gaurshalendra2412/axi-runtime/blob/main/docs/GEMINI_RULEHINT_TEST.md)
