A generated document has more than one truth.
Univer now describes itself as one runtime for spreadsheets, documents, presentations, boards, tables, and PDFs. Its site says agents can call a Facade API in a headless Node.js setup. That is a concrete shift from driving a visual office app through clicks. The agent can work against document data and commands directly.[1]
Direct access is useful. It also makes a weak check easier to mistake for a finished artifact. A data structure can serialize without proving that formulas ran, charts retained their data, fonts resolved, or another program interpreted the package the same way.
Do not test an office file only at the moment it leaves the agent.
The release notes name three distinct failure planes.
Univer 1.0.2 says it repaired whitespace handling during PDF import, added Courier fallbacks, and preserved PDF import reports while restoring or appending pages. Those are import and render concerns.[2]
The same release fixed standalone PivotCharts that could reopen without calculated data because saved source fields loaded before the chart definition. It also fixed explicit pie and doughnut slice colors that could become invisible with a transparent series fill. One bug lived in restoration order. Another lived in visual composition. Both could survive a simple "file exists" check.[2]
The format tree is necessary evidence, not the whole verdict.
Microsoft's Open XML SDK works with the package parts and strongly typed elements behind Word, Excel, and PowerPoint files. Its documentation is organized around word-processing, spreadsheet, presentation, drawing, chart, relationship, and version-specific element families. That structure is inspectable.[3]
A structural validator can catch malformed packages and unsupported elements. It cannot tell you whether a chart communicates the intended comparison, a slide has clipped text, a formula result is stale, or a reopened workbook kept the same calculated state. Those require different witnesses.
Run four laps against the artifact.
- Structure. Parse the saved package. Check relationships, required parts, names, sheets, styles, comments, alt text, and the exact fields the task asked to change.
- Calculate. Recalculate formulas and refresh derived objects where the format permits it. Compare key values against independent expected results.
- Render. Export representative pages, sheets, and slides. Check clipping, font fallback, hidden content, chart fills, contrast, and pagination.
- Reopen. Close the writer. Open the saved artifact in the target reader, save it again if that is part of the workflow, and repeat the critical structure, value, and render checks.
Use a fixture with the awkward parts your real work contains. For a workbook, include formulas, named ranges, hidden sheets, charts, dates, and blanks. For a presentation, include overflow-prone text, speaker notes, linked images, and a chart. The tunnel below writes the test plan. It does not inspect or certify a file.