@Bsoutherland23 ↔ @AdAgencyCFO conversation


We are a firm of 50 plus. We need consistency in workpaper structure and in report formats. Letters, financial statements, slide decks. All of it has to look the same every time.
One problem we did not expect is the AI just is not consistent. It will show pennies when we want whole dollars. It will bold a section that is not supposed to be bold. It will include three out of four borders. It will put something on two pages when it should fit on one.
We have tried documenting the rules in markdown files. We include examples of finished products and what good looks like in the skill and agent reference files.
Still, every time there is some tweak. I cannot figure out why it keeps going rogue. So frustrating!!
We have tried skills. We have tried agents. We have tried agents paired with a series of skills. Same issue every time.
So how are people getting 100 percent consistent output? Is this best as an agent, or a skill, or something else entirely? Is it even possible (yet)?
What actually works?

1. Intelligence: AI interprets source materials, drafts commentary and selects appropriate document components.
2. Data integrity: Programmatic calculations, reconciliation, source verification and financial controls.
3. Design system: Machine-readable rules governing every aspect of document presentation.
4. Document generation: Deterministic code and approved templates that enforce those rules.
5. Quality assurance: Automated validation, independent AI review and human approval before client delivery.
The skill should instruct the AI on how to operate within that system, rather than trusting the AI to recreate the system every time.

-------Prompt below-------
Architect a Reliable AI-Assisted Document Production System for an Accounting Firm
1. Your role
Act as a multidisciplinary team consisting of:
An enterprise AI solutions architect.
An accounting and financial reporting systems specialist.
A document automation engineer.
An enterprise design systems architect.
A software quality assurance and test automation engineer.
An information security and governance specialist.
A professional services operations consultant.
Your objective is to help me design, build, test and deploy a scalable, reliable AI-assisted document production system for my accounting firm of more than 50 employees.
2. Business context
Our firm regularly produces internal workpapers and client-facing deliverables, including:
Financial statements and accompanying disclosures.
Engagement letters.
Financial due diligence databooks.
Quality of earnings reports and analyses.
Microsoft Excel workbooks.
Microsoft Word documents.
Microsoft PowerPoint presentations.
PDF reports and other client communications.
We have established brand guidelines, document formatting standards, financial presentation conventions and examples of approved deliverables.
We have experimented with AI prompts, agents, skills, combinations of agents and skills, Markdown reference files and examples of completed documents.
Despite these efforts, AI-generated deliverables frequently contain inconsistencies, including:
Displaying decimal places when whole dollars are required.
Inconsistent rounding and numerical presentation.
Incorrect use of bold text, fonts and typography.
Missing or inconsistent table borders.
Inconsistent spacing, margins and alignment.
Unintended page breaks and pagination.
Deviations from approved document structures.
Inconsistent adherence to our brand guidelines.
These deviations create unnecessary manual review, rework and risk.
Financial accuracy, data integrity, client confidentiality and consistency of presentation are mandatory requirements.
3. Core objective
Design a system that achieves the highest practical level of repeatability, financial accuracy and design conformity while minimizing manual intervention.
Do not assume that the solution is a better prompt, a more detailed skill, a more capable model or a multi-agent workflow.
Determine which responsibilities should be performed by:
Generative AI.
Deterministic software and executable scripts.
Preapproved document templates.
Structured data schemas.
Financial calculation and reconciliation engines.
Machine-readable design standards.
Automated validation and testing.
Independent adversarial AI reviewers.
Qualified human reviewers.
The objective is to eliminate unnecessary AI discretion wherever requirements are objective, measurable and repeatable.
AI should not independently make decisions about formatting, calculations, rounding, accounting classifications or required disclosures when those decisions can instead be governed by explicit rules or approved data.
Distinguish between controls that can be enforced deterministically, controls that can only be evaluated probabilistically and controls requiring professional judgment.
Do not promise absolute accuracy where it cannot be technically demonstrated.
4. Phase One: Research current capabilities and best practices
Before recommending a solution, conduct comprehensive web research into the current state of AI-assisted document automation as of December 2026.
Evaluate the most capable generally available AI models and development environments, including:
Anthropic Claude Fable 5.2, Opus 5.5 and Sonnet 5.5.
OpenAI GPT-6.2 Astra and Sol.
Google Gemini 4 Carbon and Neon.
Claude Code.
OpenAI Codex and ChatGPT Work.
Other relevant enterprise AI and document automation platforms.
Verify current capabilities, availability and limitations rather than relying exclusively on your existing knowledge.
Research:
Agent and skill architecture best practices.
Schema-constrained structured outputs.
Deterministic document generation.
Template-based Microsoft Office automation.
Programmatic generation and validation of DOCX, XLSX, PPTX and PDF files.
Office Open XML and native Microsoft Office capabilities.
Executable design systems and design tokens.
Financial data validation and reconciliation.
Visual regression testing and document comparison.
Multi-agent and adversarial review architectures.
Automated evaluation frameworks.
Model versioning, regression testing and deployment controls.
Enterprise data security, privacy, confidentiality and retention.
Prioritize official technical documentation, established software engineering practices and independently verifiable evidence.
Distinguish demonstrated capabilities from vendor marketing claims.
Explain why our existing approach may be producing inconsistent results and which underlying problems cannot be solved through prompting alone.
5. Phase Two: Conduct a discovery interview
After completing your initial research, review all materials I have supplied and ask me 15 to 20 targeted multiple-choice or short-answer questions.
Include recommended default answers and allow me to select multiple options or indicate that I am unsure where appropriate.
Use the questions to establish:
Our primary document types, production volumes and complexity.
Existing document templates and formatting standards.
Source financial data and accounting systems.
Microsoft Office and other software environments.
Applicable accounting, reporting and professional standards.
Required financial reconciliation procedures.
Permitted variations in document structure.
Existing AI platforms, skills and workflows.
Current failure modes and frequency.
Employee technical proficiency.
Available engineering and IT resources.
Data confidentiality and security requirements.
Required review and approval processes.
Budget, implementation timeline and maintenance capabilities.
Acceptable levels of automation and human intervention.
Do not ask questions that can already be answered by examining the supplied materials.
Present all discovery questions together.
Stop after presenting the questions and wait for my answers before developing the final architecture.
6. Phase Three: Recommend a target architecture
After receiving my answers, develop three viable implementation options:
A low-code approach requiring minimal software development.
A hybrid approach combining AI skills, approved templates and reusable executable scripts.
A centralized enterprise document production system with APIs, controlled workflows and automated testing.
For each option, assess:
Financial accuracy and data integrity.
Formatting consistency.
Reliability and repeatability.
Employee usability.
Implementation complexity.
Development and operating costs.
Security and confidentiality.
Scalability across 50 or more employees.
Maintenance requirements.
Vendor dependency.
Remaining risks and manual review requirements.
Recommend one target architecture and explain the rationale, trade-offs and circumstances under which we should select an alternative.
Do not recommend an unnecessarily complex multi-agent architecture when a deterministic workflow would accomplish the same objective.
7. Phase Four: Develop an executable design system
Translate our existing brand guidelines, financial presentation conventions, approved templates and sample documents into a centralized, version-controlled design system.
The design system must include both human-readable documentation and machine-readable specifications.
Define explicit standards for:
Brand colors, fonts and typography.
Heading hierarchies and paragraph styles.
Page dimensions, margins and orientation.
Headers, footers and page numbering.
Tables, borders, shading and cell padding.
Column widths, row heights and alignment.
Chart formatting and data labels.
Spreadsheet tabs, naming conventions and cell styles.
Numerical formats, decimal precision and rounding.
Currency symbols and currency identification.
Presentation in dollars, thousands or millions.
Percentages, ratios and financial multiples.
Treatment of negative values, zero values and missing values.
Dates, fiscal periods and comparative periods.
Footnotes, disclosures and disclaimers.
Page breaks and pagination.
Document-specific layouts and reusable components.
Develop a hierarchy consisting of firm-wide standards, document-type standards, reusable components and explicitly authorized exceptions.
Use appropriate machine-readable formats such as JSON, YAML and JSON Schema.
Assign unique identifiers to enforceable rules so that QA failures can be traced back to specific requirements.
Where existing guidelines are ambiguous, incomplete or contradictory, flag them for resolution rather than making undocumented assumptions.
Distinguish between mandatory rules, configurable parameters and discretionary guidelines.
8. Phase Five: Build the document generation framework
Design a document production framework in which the AI interprets approved source materials and produces validated structured content, while deterministic software controls final document generation.
Where appropriate, use:
Native Microsoft Word templates and named styles.
Excel templates, protected formulas and predefined number formats.
PowerPoint masters, layouts and placeholders.
Reusable document components.
Fixed calculation and rounding functions.
Programmatic data population.
Controlled document rendering.
Approved fonts and brand assets.
Evaluate relevant technologies, including native Microsoft Office automation, Office Open XML, python-docx, openpyxl, XlsxWriter, python-pptx, PptxGenJS and PDF rendering technologies.
Verify their actual limitations, particularly around pagination, formula recalculation, charts, rendering fidelity and template preservation.
Do not allow the model to generate new document formatting or document-generation code on every production run.
Instead, have it invoke approved, version-controlled scripts and templates.
Ensure that identical validated input data, template versions, configuration and rendering environments produce equivalent document content and presentation.
Define appropriate overflow and exception-handling rules for variable-length content rather than allowing the AI to arbitrarily reduce font sizes, remove content or alter margins.
9. Phase Six: Establish financial data integrity controls
Develop controls that ensure every financial figure and material factual assertion can be traced to an approved source, an approved manual input or a reproducible calculation.
Include procedures for:
Source data verification and provenance.
Financial statement reconciliation.
Trial balance reconciliation.
Cross-footing and subtotal verification.
Balance sheet balancing.
Formula and calculation validation.
Cross-document numerical consistency.
Reporting period and entity validation.
Currency and unit consistency.
Sign conventions and rounding.
Rounding-related reconciliation differences.
Quality of earnings adjustment verification.
Detection of missing, duplicated or conflicting data.
Verification of financial commentary against underlying data.
Detection of fabricated or unsupported figures.
Preserve underlying numerical precision independently of displayed numerical precision.
Use deterministic calculations wherever possible.
Never silently modify, infer or fabricate a financial value to resolve a discrepancy.
If required data is missing, ambiguous or inconsistent, stop the affected workflow and escalate the exception to an authorized reviewer.
10. Phase Seven: Develop a multilayer quality assurance system
Design a QA framework that operates independently of the document generation process.
Layer 1: Input validation
Confirm that source data, required fields, document parameters and applicable template versions are complete, valid and authorized.
Layer 2: Financial validation
Use executable scripts and deterministic rules to independently verify financial data, formulas, reconciliations, totals, rounding and cross-document consistency.
Layer 3: Structural and formatting validation
Inspect the underlying document structure to verify compliance with approved templates and design system rules.
Check fonts, styles, borders, spacing, margins, numerical formats, tables, charts, headings, worksheet structure, required sections and document metadata.
Layer 4: Rendered visual validation
Render the actual final document and inspect every page, worksheet or slide as appropriate.
Use automated checks, visual regression testing and image-based inspection to identify:
Unexpected pagination.
Clipped or overlapping content.
Incorrect page breaks.
Missing visual elements.
Incorrect alignment or spacing.
Inconsistent table presentation.
Font substitutions.
Unexpected blank pages.
Deviations from approved layouts.
Account for legitimate differences in client-specific content.
Do not assume that a structurally valid Office file will render correctly.
Layer 5: Independent adversarial AI review
Create an independent reviewer skill or agent that assumes the generated document may contain errors.
Provide the reviewer with the original source data, approved design system, applicable document requirements and final rendered deliverable.
Do not provide the generating agent's reasoning, confidence assessments or self-evaluation.
Where beneficial, evaluate using a separate model family for independent review, subject to our security requirements.
Require the reviewer to actively search for contradictions, unsupported assertions, missing disclosures, inconsistent financial presentation and visual deviations.
For every identified issue, return:
Severity.
Document location.
Violated rule identifier.
Expected result.
Actual result.
Supporting evidence.
Recommended remediation.
Whether the issue blocks release.
The reviewer must not independently alter financial data or approved document standards.
Layer 6: Release gate
Create explicit pass/fail acceptance criteria.
Prevent client delivery when:
Financial values cannot be reconciled.
Mandatory design system rules are violated.
Required information is missing.
Validation cannot be completed.
Material discrepancies remain unresolved.
Required professional review or approval is outstanding.
Where corrections are permissible, rerun all applicable validation checks after making changes.
Do not allow an AI reviewer to override a failed deterministic validation check.
Require authorized human approval before releasing client-facing documents.
11. Phase Eight: Develop reusable skills and supporting assets
Build a modular collection of reusable skills and supporting files, rather than relying on a single monolithic instruction document.
Consider the following repository structure:
firm-document-system/
design-system/
document-schemas/
templates/
financial-statements/
engagement-letters/
workpapers/
diligence-databooks/
quality-of-earnings/
presentations/
components/
calculation-engine/
generation-scripts/
validation-scripts/
skills/
document-intake/
financial-data-validation/
document-generation/
adversarial-review/
release-validation/
test-fixtures/
golden-reference-documents/
regression-tests/
security/
configuration/
documentation/
Adapt this structure to the recommended platform and architecture.
Create the actual supporting assets for the selected pilot document type, including skill instructions, schemas, configuration files, executable generation and validation scripts, test cases and implementation documentation.
Make the system modular so that we can introduce additional document types without duplicating firm-wide standards or financial validation logic.
Provide platform-specific installation and configuration instructions.
Distinguish completed and tested assets from prototypes, illustrative examples and components that still require development.
12. Phase Nine: Testing and acceptance criteria
Develop a comprehensive evaluation and regression testing framework using anonymized historical deliverables, approved reference documents and deliberately constructed edge cases.
Test scenarios must include:
Whole-dollar versus decimal presentation.
Negative numbers and rounding boundaries.
Large financial values.
Missing or inconsistent source data.
Incorrect subtotals and formulas.
Conflicting reporting periods.
Long company names.
Variable-length narrative sections.
Large tables spanning multiple pages.
Unexpected page breaks.
Missing table borders.
Unauthorized formatting changes.
Incorrect fonts and brand colors.
Unapproved modifications to templates.
Incorrect financial statements or supporting schedules.
Run repeated generation tests using identical inputs across multiple sessions and, where relevant, different models.
Seed known errors into test documents to verify whether QA controls identify them.
Measure:
Financial accuracy.
Source traceability.
Mandatory formatting rule compliance.
Document structure compliance.
Rendering consistency.
Error detection rates.
False positives and false negatives.
First-pass acceptance rates.
Manual intervention rates.
Processing time.
Cost per deliverable.
Require zero known unresolved financial discrepancies and zero mandatory formatting violations in released documents.
Define measurable acceptance thresholds for every automated control.
Do not equate successful test runs with proof that future errors are impossible.
Establish regression testing requirements for changes to models, prompts, skills, templates, calculation logic, software dependencies and rendering environments.
13. Phase Ten: Security, governance and operating model
Design the system for deployment across an accounting firm with more than 50 employees.
Address:
Enterprise AI platform selection.
Client data confidentiality.
Applicable professional and regulatory obligations.
Data retention and model training policies.
Third-party model and software providers.
Role-based access controls.
Client-level data segregation.
Secure storage and processing.
Audit trails and document provenance.
Template ownership and change management.
Model, skill and software version control.
Employee training and onboarding.
Exception escalation.
Human review and sign-off requirements.
Business continuity and rollback procedures.
Prevent individual employees from unintentionally creating inconsistent versions of the firm's design system, calculation logic or approved templates.
Ensure every generated deliverable has a traceable record of its source data, applicable templates, design system version, software version, model version, validation results and approval status.
Do not use actual confidential client data during initial development unless the environment has been explicitly approved for that purpose.
14. Required final deliverables
Following the discovery interview, produce:
A root-cause analysis of our current inconsistencies.
A recommended technical architecture and workflow diagram.
A comparison of viable implementation approaches.
A current AI model and platform recommendation by task.
A centralized design system specification.
A machine-readable rules and configuration framework.
A document generation and financial validation framework.
An independent adversarial QA framework.
A modular library of reusable skills and supporting scripts for the pilot.
A regression testing and acceptance criteria framework.
A security and governance framework.
A phased 30-, 60- and 90-day implementation roadmap.
An estimated implementation budget and ongoing operating costs.
A prioritized backlog for expanding the system across document types.
A functional pilot using anonymized data and one representative document type, subject to available tools and materials.
Identify which deliverables you can actually create and test in your current environment and which require external implementation.
15. Working principles
Prioritize reliability, accuracy, security and repeatability over maximum automation.
Use AI where interpretation or judgment adds value.
Use deterministic software wherever requirements can be expressed as rules.
Treat approved templates and source data as authoritative.
Fail safely when requirements cannot be met.
Never confuse a valid data schema with verified financial accuracy.
Do not treat AI self-review as sufficient quality assurance.
Avoid unnecessary technical complexity.
Explicitly disclose assumptions, limitations and unresolved decisions.
Do not claim a capability has been implemented or tested unless it actually has been.
Design for ongoing use by an entire firm, rather than a single technically proficient employee.
Begin with Phase One and Phase Two. Complete the initial research, analyze the supplied materials, and present your discovery questions before proceeding further.