Guest post by Efthimios Fousekis
Best Enterprise Agent 수상작: Archon — https://github.com/upgradedev/archon_azure
Within the document‑processing pipeline, model assistance is used at the unstructured edge and for optional narration. Classification, computation and checks are deterministic. Human review is available, but it is not an enforced approval gate in the current prototype.
문서 처리 파이프라인에서는 모델 지원이 비정형 파일 경계와 선택적인 서술 단계에서만 사용됩니다. 분류·계산·확인 작업은 모두 deterministic(결정적)이며, 사람에 의한 검토는 가능하지만 현재 프로토타입에서는 강제 승인 게이트 역할을 하지 않습니다.
Archon was built as an Agentic Financial Intelligence prototype for SMBs for Microsoft’s Agents League at AI Skills Fest , where it was selected as the Enterprise Agents winner. While building it, I kept returning to one question: when should an AI model stop?
Archon은 Microsoft Agents League at AI Skills Fest 에 참가한 SMB용 Agentic Financial Intelligence 프로토타입이며, Enterprise Agents 부문에서 우승했습니다. 구현하면서 계속 고민했던 질문은 **“AI 모델은 언제 멈춰야 하는가?”**였습니다.
A payroll register, a bank confirmation, and a set of payslips may each look correct in isolation. Together, however, they can still describe an incomplete or inconsistent financial event. One record describes employer cost. Another records a transfer. The payslips allocate net pay to employees. If a system treats those views as interchangeable, it can count the same period twice, omit a cost, or hide missing evidence behind a fluent summary.
급여 명세서, 은행 확인서, 급여명세서(전표) 각각은 별도로 보면 올바르게 보일 수 있지만, 동시에 보면 여전히 불완전하거나 일관되지 않은 재무 사건을 나타낼 수 있습니다. 한 레코드는 고용주의 비용을, 다른 레코드는 이체를, 급여명세서는 순급여를 직원에게 배분합니다. 시스템이 이들 뷰를 서로 교환 가능하게 취급하면 같은 기간을 두 번 계산하거나 비용을 누락하거나, 누락된 근거를 매끄러운 요약 뒤에 숨길 수 있습니다.
Archon remains a competition prototype. The more useful story is the engineering boundary between model‑assisted interpretation, deterministic software and human review, and two gaps that made that boundary concrete: a visible review step is not an approval gate, and a check that cannot run is not a pass.
Archon은 여전히 대회용 프로토타입에 불과합니다. 여기서 가장 의미 있는 부분은 모델‑지원 해석 ↔ 결정적 소프트웨어 ↔ 사람 검토 사이의 엔지니어링 경계와, 그 경계를 구체화한 두 가지 격차입니다. 즉, 보이는 검토 단계는 승인 게이트가 아니며, 실행할 수 없는 검증은 통과(패스)로 간주되지 않습니다.
The business problem behind Archon
재무 업무는 단일 문서에 의존하지 않습니다. 서로 다른 시스템·시점·목적으로 생성된 여러 기록을 종합해 하나의 사건을 재구성해야 합니다. 설득력 있는 서술만으로는 충분하지 않으며, 신뢰할 수 있는 워크플로우는 원본 기록을 명시, 중간 산출물 보관, 어떤 검증이 실행됐는지 표시, 확인하지 못한 항목을 명시해야 합니다.
그 결과 경계가 명확한 워크플로우가 탄생했습니다. Archon은 정규화된 레코드와 중간 산출물을 보존합니다. 문서 처리 파이프라인에서는 비정형 경계에서 모델 지원을 사용하고, 결정적 분석 후에만(선택적으로) 서술을 생성합니다. 명확한 파이썬 함수들이 분류·그룹화·산술·일관성 검증·보고서를 담당합니다. 검토 화면은 분석 전 정규화된 문서를 보여줍니다.
In this article, “controls” refers to deterministic software checks in a prototype, not audited accounting controls or a formal internal‑control framework. Archon does not prove savings, accounting accuracy, production scale, regulatory compliance or measurable business impact. It demonstrates a design pattern and exposes where the prototype falls short.
이 글에서 **“통제(controls)”**는 프로토타입 수준의 결정적 소프트웨어 검증을 의미하며, 공식 회계 감사 통제나 내부통제 프레임워크를 뜻하지 않습니다. Archon은 비용 절감·회계 정확도·프로덕션 규모·규제 준수·비즈니스 효과를 증명하지는 않으며, 디자인 패턴을 보여주고 현재 프로토타입의 한계를 드러냅니다.
What Archon does today
The core document‑processing path has three distinct tiers: extraction, review and analysis.
문서 처리 흐름은 추출 → 검토 → 분석의 3단계로 구성됩니다.
At the interaction layer, the repository includes a Microsoft 365 Copilot declarative‑agent package configured to connect Copilot Chat and Teams to the FastAPI backend through an OpenAPI plugin. Its manifests and API contract are available in the public repository. The authenticated Microsoft 365 tenant path was not independently rerun for this article revision.
연동 레이어에서는 Microsoft 365 Copilot 선언형 에이전트 패키지가 포함되어 있어 Copilot Chat·Teams와 FastAPI 백엔드를 OpenAPI 플러그인으로 연결합니다. 매니페스트와 API 계약은 공개 레포지토리에서 확인할 수 있습니다. 본 문서 작성 시점에는 인증된 Microsoft 365 테넌트 경로를 별도 재실행하지 않았습니다.
The term agent covers two layers here. The Microsoft 365 declarative agent is the user‑facing integration. Within the analysis service, six of the seven named stages are deterministic Python functions; only the optional narrator invokes a model.
여기서 agent는 두 계층을 의미합니다. 사용자와 마주하는 Microsoft 365 선언형 에이전트와, 내부 분석 서비스(7단계 중 6단계는 결정적 파이썬 함수, 오직 서술 단계만 모델 호출)로 구분됩니다.
Archon accepts PDF, DOCX and common image formats. A FastAPI orchestration service stores the raw files in Azure Blob Storage and can submit an Azure Container Apps Job. Model‑assisted extractors turn text or images into a common document schema.
Archon은 PDF, DOCX, 일반 이미지 포맷을 받아들입니다. FastAPI 오케스트레이션 서비스는 원본 파일을 Azure Blob Storage 에 저장하고, 필요 시 Azure Container Apps Job 을 실행합니다. 모델‑지원 추출기는 텍스트·이미지를 공통 문서 스키마로 변환합니다.
The extraction job then performs deterministic classification refinement, groups payroll records by company and issue‑date period, and applies four extraction‑time consistency checks. It writes three batch artifacts: documents.json, events.json and validation.json.
추출 작업은 결정적 분류 정제, 회사·발행일 기준 급여 레코드 그룹화, 4가지 추출 시점 일관성 검사를 수행하고, documents.json, events.json, validation.json 세 파일을 배치 결과물로 저장합니다.
The visible review step happens after that job. The document view is classified for the review screen, where a user can change a type or exclude a document. If changes are saved, a reviewed documents.json replaces the earlier document files for that period. The stored events and extraction validation are not rewritten, so they can become stale after review.
위 작업이 끝난 뒤 검토 화면이 표시됩니다. 화면에서는 각 문서의 종류를 변경하거나 제외할 수 있습니다. 변경 내용을 저장하면 새 documents.json이 해당 기간의 기존 파일을 대체합니다. 하지만 stored events와 validation 은 그대로 남아 있어 검토 후에도 시들(stale) 될 수 있습니다.
The separate analysis service deliberately loads only documents.json. It does not consume the extraction job’s stored events or validation results, and it does not rerun the original EventLinker stage. Instead, it classifies the documents again, builds P&L‑style and cash‑flow‑proxy views, reruns period‑level checks, performs vendor reconciliation, creates report evidence, and finally attempts an optional narrative.
별도의 analysis 서비스는 오직 documents.json만 읽어들입니다. 추출 작업이 만든 events·validation은 무시하고, EventLinker 단계도 재실행하지 않습니다. 대신 문서를 다시 분류하고 손익(P&L)·현금흐름 프록시 뷰를 만들며, 기간 수준 검증을 재실행하고, 공급업체 조정을 수행하고, 보고서 증거를 생성한 뒤 최종적으로 선택적인 서술을 시도합니다.
The optional narration stage follows one of two configured paths. With a project connection string, it attempts the classic Threads, Messages and Runs implementation of Microsoft Foundry Agent Service with Azure AI Search; if that attempt fails, the service returns a deterministic numeric summary rather than retrying through Azure OpenAI. Without a project connection string, it uses Azure OpenAI Chat Completions, grounded by Search only when the separate Search settings are configured.
선택적인 서술 단계는 두 가지 경로 중 하나를 택합니다.
- 프로젝트 연결 문자열이 있을 경우 – Azure AI Search와 함께 Microsoft Foundry Agent Service(클래식 Threads·Messages·Runs) 를 사용하고, 실패 시 Azure OpenAI 재시도 대신 결정적 수치 요약을 반환합니다.
- 연결 문자열이 없을 경우 – Azure OpenAI Chat Completions 를 사용하고, 별도 Search 설정이 켜져 있으면 검색 결과를 근거로 활용합니다.
Where the model stops
Models are useful where layouts, labels, languages and scan quality vary. Archon constrains that work with accepted formats, a document‑type enumeration, bounded text and image inputs, and a normalized output schema.
레이아웃·라벨·언어·스캔 품질이 다양할 때 모델이 효과적입니다. Archon은 허용 포맷·문서‑타입 열거형·제한된 텍스트·이미지 입력·정규화 스키마 로 이 범위를 한정합니다.
Once a value enters that schema, a model no longer decides the arithmetic. Classification refinement, extraction‑time event grouping, both sets of consistency checks, monthly aggregation, reconciliation, and the cash‑flow proxy are deterministic functions. They can be inspected with fixtures and rerun without asking a model to reach the same conclusion twice.
값이 스키마에 들어가면 수학 연산 은 더 이상 모델이 결정하지 않습니다. 분류 정제·추출 시 이벤트 그룹화·두 종류의 일관성 검사·월별 집계·조정·현금흐름 프록시 모두 결정적 함수이며, 테스트 픽스처와 함께 검증·재실행이 가능합니다.
This does not make an extracted value correct. It makes the deterministic calculations and checks easier to inspect and rerun. The prototype does not, however, retain a complete field‑level transformation history.
따라서 추출된 값이 정확하다는 의미는 아닙니다. 대신 결정적 계산·검증을 검증·재실행하기 쉬운 형태 로 만든 것이죠. 현재 프로토타입은 필드‑단위 변환 이력을 완전히 보존하지는 못합니다.
The payroll example: cost is not cash flow
Payroll exposed the most important design choice. Employer cost and the amount transferred to employees answer different questions. A payroll register can include gross pay, employer contributions and a total employer cost. A bank confirmation records a transfer. Payslips provide employee‑level allocations.
급여 예시는 가장 핵심적인 설계 선택을 드러냈습니다. 고용주의 비용과 직원에게 이체된 금액은 서로 다른 질문에 답합니다. 급여 명세서에는 총 급여·고용주 기여·전체 고용주 비용이 포함될 수 있고, 은행 확인서는 실제 이체를 기록하며, 급여 전표(payslip)는 직원별 배분을 보여줍니다.
The extraction EventLinker groups the three implemented payroll document types by company and period. Completeness records whether a bank confirmation, register and at least one payslip are present. It is not audited relationship‑level matching, and tax‑authority records are not linked by the current implementation.
추출 단계의 EventLinker는 세 급여 문서 유형을 회사·기간 별로 그룹화합니다. Completeness 플래그는 은행 확인서·급여 명세서·최소 1개의 급여 전표가 모두 존재하는지 여부를 기록합니다. 이는 관계 수준 매칭을 감사하지 않으며, 세무당국 기록과의 연계도 현재 구현에 포함되지 않았습니다.
The analysis tier is coarser. If any payroll register is present in the requested period, its P&L calculation excludes every bank confirmation and payslip in that period from expenses. The register contributes employer_cost_total when that field exists, otherwise it falls back to total_amount. This avoids obvious double counting in the synthetic example, but it is a period‑level prototype rule, not event‑scoped deduplication.
분석 단계는 더 거친 로직을 사용합니다. 요청된 기간에 급여 명세서가 하나라도 있으면 해당 P&L 계산에서는 그 기간의 모든 은행 확인서·급여 전표를 비용에서 제외합니다. 명세서에 employer_cost_total 필드가 있으면 그 값을 사용하고, 없으면 total_amount 로 대체합니다. 이는 예시에서 명백한 중복 계산을 방지하지만, 기간 수준 규칙일 뿐 개별 이벤트 수준 중복 제거는 아닙니다.
The cash‑flow proxy uses a different set of assumptions. It treats every bank confirmation as an outflow, assumes every sales document represents collected cash, and assumes invoice and expense documents represent paid cash. Investing and financing are zero. The result is useful for illustrating cost versus cash, but it is not a cash‑flow statement and does not reconstruct a cash ledger.
현금흐름 프록시는 다음 전제를 사용합니다.
- 모든 은행 확인서 → 현금 유출
- 모든 매출 문서 → 현금 유입(수금)
- 모든 청구·비용 문서 → 현금 유출(지출)
투자·재무 흐름은 0으로 가정합니다. 결과는 비용 vs 현금 차이를 보여주는 데는 유용하지만, 정식 현금흐름표가 아니며 현금 원장을 재구성하지는 못합니다.
From upload to reviewable evidence
Only
documents.jsoncontinues. Stored events and validation may become stale after review.
업로드 → 정규화 → 검토 → 분석 흐름을 요약하면 오직 documents.json만이 다음 단계에 전달됩니다. 추출 단계에서 만든 events.json·validation.json은 검토 후 시들어 버릴 가능성이 있습니다.
The review screen shows a limited summary of each normalized document, where a user can change its type or exclude it. Analysis later classifies the current documents.json again, so invoice and sales‑document types may be re‑classified independently of the saved review choice.
검토 화면에서는 정규화된 문서 요약을 보여주고, 사용자는 유형을 바꾸거나 제외할 수 있습니다. 검토 후 분석 서비스는 다시 documents.json을 불러와 재분류를 수행하므로, 사용자가 저장한 검토 선택과는 별도로 청구서·매출 문서가 다시 분류될 수 있습니다.
Analysis rebuilds its views from the current
documents.json—reviewed only if changes were saved—and does not consume storedevents.jsonorvalidation.json. “Report evidence” means limited report output, not a complete audit trail.
분석 단계는 저장된 events.json·validation.json을 전혀 사용하지 않으며, 현재 documents.json만으로 뷰를 재구성합니다. “보고서 증거”는 제한된 보고서 출력을 의미하고, 완전한 감사 로그는 아닙니다.
But visibility is not enforcement. If fetching the review data fails, the client proceeds to analysis. If saving review changes fails, it also proceeds. A direct API or MCP call can bypass the screen, and there is no persisted approval token, reviewer identity, reason for change, or atomic approval transaction. The prototype supports review; it does not autonomously approve records.
보이기만 할 뿐 강제는 아니다. 검토 데이터를 가져오지 못해도 클라이언트는 바로 분석을 진행하고, 검토 변경 저장에 실패해도 분석을 진행합니다. 직접 API·MCP 호출로 검토 화면을 우회할 수도 있으며, 승인 토큰·검토자 ID·변경 사유·원자적 승인 트랜잭션이 저장되지 않습니다. 즉, 프로토타입은 검토를 지원하지만 레코드를 자동 승인하지는 않습니다.
Why absence is not success
Archon implements four payroll consistency checks. They compare a bank total with payslip totals, examine an employer‑cost ratio, compare payment timing with the reporting period, and compare the register’s employee count with the number of payslips.
Archon은 4가지 급여 일관성 검사를 구현했습니다.
- 은행 총액 ↔ 급여 전표 합계 비교
- 고용주 비용 비율 검증
- 지급 시점 ↔ 보고 기간 일치 여부
- 급여 명세서에 기록된 직원 수 ↔ 전표 수 비교
When a payroll check is emitted but required inputs are absent, the current implementation records an informational skipped result with passed=True. If no payroll documents are present, no payroll validation result is emitted.
필요한 입력이 없을 때 현재 구현은 passed=True 로 “스킵” 정보를 기록합니다. 급여 문서가 전혀 없으면 검증 결과 자체가 아예 생성되지 않습니다.
The target state separates Pass, Fail and Not evaluated; the lower panel shows the current implementation gap.
목표 상태는 Pass / Fail / Not evaluated 로 명확히 구분하는데, 아래 그림은 현재 구현이 그 갭을 보여줍니다.
Why this design matters to a business
For finance and technology leaders, governed automation becomes concrete through a small set of questions:
재무·기술 리더에게 거버넌스가 적용된 자동화는 다음과 같은 구체적 질문을 통해 의미를 갖습니다.
- 어떤 원본 근거가 이 결과를 뒷받침하는가?
- 어떤 변환·검증이 실제로 실행됐는가?
- 어떤 검증이 실패했고, 어떤 검증은 실행되지 않았는가?
- 누가 계속 진행하거나 승인을 할 수 있는가?
- 결과와 입력을 나중에 재구성할 수 있는가?
These questions connect software design to operational risk. Finance leadership needs to know whether a number represents cost, cash, or a proxy. Architects need to know where probabilistic interpretation ends. Reviewers need evidence specific enough to challenge. Auditability depends on retained decisions, not on the confidence of generated prose.
위 질문들은 소프트웨어 설계 ↔ 운영 리스크 를 연결합니다. 재무 담당자는 해당 수치가 비용, 현금, 혹은 프록시 중 어느 것인지를 알아야 하고, 아키텍트는 확률적 해석이 어디서 멈추는지를 파악해야 합니다. 검토자는 도전할 수 있을 정도로 구체적인 증거가 필요하고, 감사 가능성은 생성된 문장의 신뢰도가 아니라 보존된 결정 내역에 달려 있습니다.
Evidence and current limitations
| 항목 | 현재 구현 상황 |
|---|---|
| Live extraction coverage | Live extraction 프롬프트와 공유 문서 빌더는 깊은 급여·계정명세 필드를 채우지 않습니다. 보다 풍부한 급여·명세 시연은 사전 구조화된 synthetic 레코드를 사용합니다. |
| Legacy Word files | .doc 업로드는 지원하나, 추출기는 python-docx 로 전달합니다. python-docx는 이진 Word 파일을 신뢰성 있게 파싱하지 못하므로, 지원 포맷을 PDF, DOCX, 일반 이미지 로 제한합니다. |
| Failure handling | 추출이 실패하면 원본 파일은 Blob에 남고, 로그에만 실패가 기록됩니다. 별도 예외 레코드는 작성되지 않습니다. |
| Control depth | 손익(P&L) 중복제거와 분석 검증은 기간 수준 에서만 수행됩니다. |
| Production controls | 레포지토리에는 모델 사용량 예산, 테넌트 할당량, 애플리케이션 속도 제한, 전체 의사결정 히스토리, 프로덕션‑급 테넌트 격리 가 없습니다. |
Technical validation note
Against public commit 230ee70, the pinned CI run passed 36 extraction‑layer unit tests and 8 CashFlowAgent unit tests, including a regression case for Greek final‑sigma classification, and completed the seeded analysis HTTP smoke path. The upload/extraction/job‑poll path was intentionally skipped in that CI run. Authenticated Playwright, credentialed live extraction, Foundry, Search and authenticated Microsoft 365 tenant paths were not independently rerun for this revision.
What comes next
The most useful evaluation would compare this bounded design with an end‑to‑end model‑driven workflow. I would use a versioned document corpus, explicit expected outcomes, missing‑evidence cases, and separate measurements for extraction, classification, linking, validation and reviewer correction. The goal would be to test traceability, error attribution and reviewer confidence, not to infer accounting accuracy from synthetic fixtures.
앞으로는 경계가 명확한 설계와 전면 모델 기반 워크플로우 를 직접 비교하는 평가가 가장 유용합니다. 버전 관리된 문서 코퍼스, 명시적 기대 결과, 증거 누락 시나리오, 그리고 추출·분류·연결·검증·검토 교정 각각에 대한 별도 메트릭을 수집해 추적성·오류 귀속·검토자 신뢰도 를 검증하고자 합니다. 회계 정확도 자체를 검증 목표로 삼지는 않을 것입니다.
To move this pattern toward production, a future implementation would need explicit tri‑state validation, stronger entity resolution, dedicated payroll and statement extraction fields, event‑scoped deduplication, and a persisted exception ledger. Risk‑sensitive flows would need an authorized approval gate. Model calls would need cost accounting and enforceable budgets. Processing should be idempotent, and telemetry should retain retries, exceptions and check outcomes.
프로덕션 적용을 위해서는 삼단계(통과·실패·미평가) 검증, 강화된 엔터티 매칭, 전용 급여·명세 추출 필드, 이벤트 수준 중복제거, 예외 원장 영구 저장 등이 필요합니다. 위험이 큰 흐름에는 승인 게이트가 필수이고, 모델 호출에는 비용 회계·예산 한도가 적용되어야 합니다. 처리 과정은 멱등성(idempotent) 을 보장하고, Telemetry 에는 재시도·예외·검증 결과가 모두 기록돼야 합니다.
Grounded narration should remain optional and downstream. Migrating the optional narration path to the current, Responses API‑based Microsoft Foundry Agent Service is future work.
근거 기반 서술은 선택적·후속 단계 로 유지하면서, 추후에는 Responses API 기반 Microsoft Foundry Agent Service 로 마이그레이션하는 작업을 진행할 예정입니다.
Conclusion
Building Archon changed how I think about enterprise agents. The most valuable intelligence often comes from deciding where a model should stop. In consequential workflows, that boundary should preserve evidence, expose missing inputs, and keep the explanation tied to results that can be recomputed.
Archon을 만들면서 엔터프라이즈 에이전트에 대한 사고 방식이 바뀌었습니다. 가장 큰 가치는 모델이 어디서 멈춰야 하는가를 정의하는 데서 옵니다. 중요한 비즈니스 흐름에서는 증거 보존·미입력 노출·재계산 가능한 결과와 설명 연결 이 핵심 경계가 됩니다.
This is a target design principle, not a current‑state control claim. In the current prototype, the review path is visible but fail‑open, while narration remains optional and downstream.
위 그림은 목표 설계 원칙이며, 현재 프로토타입이 검토 경로는 보이지만 실패해도 진행하고, 서술은 선택적·후행이라는 점을 강조합니다.
If you are designing an agent for a consequential workflow, start by defining what evidence must exist, which checks must run, and what the system should do when a check cannot be evaluated. You can explore the public Archon repository inspect the implementation and challenge the boundary for yourself.
결과에 큰 영향을 미치는 워크플로우용 에이전트를 설계한다면, 반드시 필요 증거, 필수 검증, 검증 불가능 시 행동을 먼저 정의하세요. 공개 레포지토리(GitHub Archon Azure)를 직접 살펴보며 구현을 검증하고 경계에 도전해 보시기 바랍니다.
About the author
Efthimios Fousekis leads Enterprise Architecture and DevOps, focusing on cloud‑native engineering and AI‑Native Enterprise Transformation. He writes about building governed, reliable agentic systems and the engineering practices that make AI adoption practical in the enterprise.