From Defensive Writing to Defensive Work: Why AI Coding Assistants Must Deliver Verifiable Artifacts
AI coding assistants are shifting from generating readable text to participating in real workflows. This article examines why spreadsheet-modification tasks expose a critical gap—assistants that repeatedly confirm scope, risk, and compliance boundaries without producing openable, comparable, or rollback-ready files. It analyzes four underlying state dependencies (structure, semantics, tooling, permissions), proposes a five-artifact acceptance protocol (scope statement, annotation layer, trial file, diff report, blocking list), offers a pseudocode contract for executors vs. planners, and defines vendor-neutral closure metrics to evaluate whether a tool actually completes tasks rather than just talking about them.
From Defensive Writing to Defensive Work: Why AI Coding Assistants Must Deliver Verifiable Artifacts
AI coding assistants are moving from “generating a readable piece of text” to “participating in real workflows.” The former often manifests as defensive writing: state limitations first, then principles, and deliver as few executable outputs as possible. The latter manifests as defensive work: the system repeatedly confirms scope, risk, and compliance boundaries, yet never produces intermediate files that can be opened, compared, or rolled back. For developers and enterprise users, the pain point is not “whether the model is polite enough,” but “whether the task forms a closed loop.”
1. Breaking Down the Phenomenon: Confirming Scope Is Not Doing a Trial Run
A typical scenario: a user asks the assistant to modify a specified region of a spreadsheet and explicitly requests “do a partial trial first.” The assistant replies that the trial scope has been confirmed—but it neither completes cell-level annotation nor generates a trial file. On the surface this looks cautious; in substance, the workflow is broken.
Defensive writing is characterized by substituting disclaimers for deliverables. Defensive work is characterized by substituting process language for artifacts. Both may stem from reasonable motives—avoiding accidental changes to production data, avoiding unauthorized writes, avoiding “pretending to be done” when information is incomplete. But for enterprise collaboration, without verifiable artifacts there is nothing to review and no way to establish accountability boundaries.
Therefore, when evaluating a class of AI programming capability, we should not only look at whether the conversation flows smoothly, but at whether it can produce, under constraints: a scope list, a diff explanation, a rollback-ready trial copy, and an explicit list of unfinished items.
2. Root Cause: Spreadsheet Rewriting Depends on State Far More Than Text Generation
Spreadsheet rewriting is not a pure language task. It stacks at least four types of state:
First, structural state. Worksheet names, merged cells, frozen panes, named ranges, and formula dependency graphs determine which cells “that part” actually covers. A verbally described “part” must be mapped on the machine side to an executable region expression—e.g., a worksheet identifier plus a closed row-column interval—along with declarations of whether headers are included and whether hidden rows are included.
Second, semantic state. The same column may simultaneously serve as a code, a display name, and an intermediate calculation value. Without a field dictionary, the assistant can only make superficial formatting adjustments and dare not touch formulas and validation rules, so it stalls at “scope confirmed.”
Third, tooling state. Rewriting must go through a closed loop of read, parse, validate, write, and re-read. If the runtime can only “talk about files” but cannot “hold a file copy,” the system will tend to output plans rather than products. This is not a matter of writing style; it is a missing execution plane.
Fourth, permission and risk state. Production sheets are often tied to approval workflows. If the assistant cannot distinguish between a “read-only analysis copy” and a “writable trial copy,” it will substitute defensive pauses for minimal viable changes.
Writing these four states into the task protocol is more effective than repeatedly asking “do you understand?”
3. Turning Defense into an Acceptable Stepwise Protocol
Instead of a single “please fix it,” break a spreadsheet trial into five independently acceptable artifacts:
Scope statement. List in structured items: the target worksheet, the closed row-column interval, whether headers are included, excluded regions, and whether formula changes are allowed. The scope statement should be reproducible by a second person and bound to a read-only snapshot of the original file.
Annotation layer. Add sidecar columns or comment fields on the copy marking “to be modified / observe only / do not touch.” The point of the annotation layer is to turn fuzzy natural language into an auditable trace, avoiding “changed some things but can’t say exactly where.”
Trial file. It must be an independent copy, named to reflect version and scope, e.g., “trial-regionA-validation-column-only.” The trial file should open directly, and its binary or structured differences from the original should be listable.
Diff report. At minimum: changed cell coordinates, old value, new value, reason for the change, and whether downstream formulas are affected. A “done” without a diff report is, in a collaboration, equivalent to not done.
Unfinished items and blocking reasons. If field meanings or permissions are missing, explicitly list what is missing, what mistakes that could cause, and what the next minimal supplement is. That is responsible defensiveness—not idle confirmation.
These five artifacts can be stored as copies in generic object storage, with log services recording the operation trail and monitoring alerts catching abnormal write counts. The description should stay at the level of generic categories, without binding to any single vendor’s proprietary interface names.
4. Requirements on the Assistant: Plans Must Be Compilable into Operations
From an engineering perspective, a qualified trial run can be abstracted as pseudocode:
Input: read-only original snapshot S0, scope R, constraints COutput: annotated copy S1, trial copy S2, diff D, blocking list Bassert R is parseable and structurally consistent with S0if key field semantics unknown:emit B, stop writing business columnselse:apply minimal changes only within Rgenerate D = diff(S0, S2)verify formula references stay within the allowed set
The key is not code style but the assertions: no parseable scope means no writes; no semantics means annotate only, don’t modify; no diff report means don’t claim completion. An AI programming tool that can only generate the text above but cannot produce the actual files should be evaluated as a “planner,” not an “executor.” Enterprises should write this distinction into their acceptance test cases.
5. Requirements on the User: Reduce Non-Executable Vague Descriptions
The original request—“roughly, please modify a certain part of a certain file”—itself amplifies defensiveness. A more robust request should include:
- File role: analysis copy or production sheet;
- Success criteria: e.g., “only fill empty values in column 3 with 0, do not touch formulas”;
- Trial cap: at most N rows or only the first 20 records;
- Rollback method: keep the original snapshot;
- Prohibitions: do not delete worksheets, do not reorder key columns.
With constraints written clearly, defensive work has a chance to converge into bounded writes rather than endless confirmation.
6. Evaluation Framework: Closure Metrics Instead of Impression Scores
Use a set of vendor-neutral metrics to evaluate the maturity of AI programming tools in spreadsheet scenarios:
- Scope compilability: the rate at which natural-language scope reliably maps to region expressions;
- Artifact completeness: whether all five artifacts appear together;
- Out-of-bounds rate: whether the trial writes cells outside the declared scope;
- Replayability: whether a third party can reproduce the changes using only the diff report;
- Blocking transparency: when the tool stops, does it state the minimal missing information?
“Spent the whole morning confirming scope with no trial file” translates directly, under this framework, into zero artifact completeness and zero replayability. That is more engineering-relevant than debating model generations.
7. Practical Recommendations: Start Small, Reversible, and Comparable
For developers and enterprise users, the recommended rollout order is: do minimal-region trials on desensitized copies first; use sidecar annotations rather than in-place overwrites; change only one rule at a time (e.g., only fill blanks, or only normalize date formats); run meetings on diff reports, not on chat logs. In the cloud, use object storage for versioning and a container platform to pin the parsing environment, avoiding “the same sheet parsing differently across runtimes.”
The value of AI programming moving from writing to working lies not in talking less, but in delivering more verifiable intermediate states. Defense should manifest as clearer boundaries and more complete artifacts—not ending a round of collaboration that should have produced a trial file with “annotation not yet complete.” Write scope, annotation, copy, diff, and blockers into the protocol, and spreadsheet tasks can move from defensive stalling to controlled incremental rewriting.
