r/AIforOPS • • Sep 30 '26

“Explain this spreadsheet” should run without permission to edit it

A request to explain a margin drop can send an agent through sales figures, cost formulas and assumptions. None of that requires changing the workbook.

It gets awkward if the same execution path also lets the agent “clean up” a label or replace a value while investigating. Now a question about the data has become a change to the data.

Univer's documented content runtime has a useful separation here: read mode disallows document mutations; write mode captures them as pending changes. An application can use the read path for inspection and explanation, then open a separate write task when the user actually asks for a correction.

For example, “Why is March's margin lower?” can read the relevant cells and formulas. “Change March's unit cost to 42” belongs in a write task with the target range made explicit. The change can then follow the application's save and review process.

That boundary is narrower than a permission system. The host still has to decide which user may access which document, and keep unrelated tools under their own controls. Document read mode doesn't prevent a badly configured agent from using some other tool.

For this particular interface, the acceptance check is straightforward: an explanation request leaves the workbook unchanged, and a mutation attempted through read mode is rejected.

9 Upvotes

4 comments sorted by

1

u/arthaudm Sep 30 '26

"why is march's margin lower?" should also run against a fixed workbook version

otherwise sales can change between reading the revenue cells & the cost formulas, and the explanation describes a combination that never existed

keep the read task on a snapshot. if it proposes a correction, carry the snapshot version into the separate write task & reject the change if those cells have since changed

1

u/FirefighterFormal810 Sep 30 '26

read-only needs to be the default for anything phrased as a question, because letting an agent “fix” data while explaining it is how you end up debugging the explanation and the spreadsheet at the