生成—治理缺口與 AI 原生結構負擔 v0.2
——從候選變更爆發到可信狀態轉換吞吐量
English Title: The Generation–Governance Gap and AI-Native Structural Burden: From Candidate-Change Explosion to Trusted State-Transition Throughput
系列:《綠燈錯置:AI 操作意圖不對齊與完成失真》06 / 08
作者: Neo.K × AI 協作
版本: v0.2
日期: 2026-09-16
文件性質: AI Engineering/Software Architecture/Agentic Coding/Verification Governance/Technical Debt/Delivery Throughput
承接: A01〈綠燈錯置〉、A03〈局部正確與全域失敗〉、A04〈流程代理錯置〉、A05〈驗證義務膨脹與 Completion Drift〉
核心前序:〈AI 寫得越快,屎山會長得越快嗎?AI 原生開發的新技術債〉
後續接口: A07〈能力—視角啟動不對稱〉、A08〈同質綠燈〉、Series B〈宏觀個體導向的動態全域觀察方法論〉
機構: EveMissLab/一言諾科技有限公司
摘要
生成式 AI 與 coding agents 最重要的工程變化,未必是「AI 能不能寫程式」,而是:
Ccandidate generation↓
亦即候選變更、候選實作、候選修復、候選測試、候選重構與候選架構方案的邊際產生成本快速下降。
但可信軟體變更的成本並不只有生成。任何實際可被接受、合併、部署並成為未來依賴的變更,至少還需要經過不同程度的:
Verification,
Integration,
Architecture Reasoning,
Governance,
Provenance,
Runtime Observation,
Recovery / Reversibility.
因此 AI coding 的真正吞吐量問題不是:
Vgeneration
有多高,而是:
Vtrusted absorption
能否同步提高。
本文將此前提出的「生成—治理缺口(Generation–Governance Gap)」正式推進成一套變更流體/佇列式工程模型。令:
Vg=candidate generation throughput,
Vv=verification throughput,
Vi=integration throughput,
Va=architecture-assessment throughput,
Vgov=governance throughput.
則真正可以進入可信產品狀態的吸收率,不應直接寫成各項總和,而更接近受最慢必要 stage 約束的:
VT=min(Vg,Vv,Vi,Va,Vgov,Vruntime)
其中 VT 可稱:
Trusted Change Throughput
如果:
Vg≫VT,
則系統並沒有獲得等比例軟體演化能力,而是開始累積:
Qv,Qi,Qr,Qp,…
等 backlog。
本文沿用既有研究中的 AI 原生結構負擔向量:
BAI=[Dv,Dc,Dp,Ds,Di,Do,Dsup],
分別表示:
- Verification Debt;
- Context Debt;
- Provenance Debt;
- Specification Debt;
- Integration Debt;
- Orchestration Debt;
- Supervision Debt。
v0.2 進一步加入:
- Elimination Debt;
- Observability Debt;
- Closure Debt;
- Substrate Compensation Burden;
並將它們理解成候選變更速度與可信吸收速度之間的不對稱沉積物。
外部研究目前並不支持「AI-generated code 必然更差」這種簡單敘事。2025–2026 的研究呈現高度混合結果:部分研究顯示 LLM 生成 code 在某些 maintainability / reliability 指標上優於人類基準;另一些大型研究則觀察到不同的 defect profile、較高的某些高風險弱點、真實 repository 中持續存在的 AI-introduced issues,以及 copy/paste、duplication、churn 等 maintainability signals 的惡化。這些結果不能被壓成單一品質結論。
相對穩定的共同訊號是:
生成速度上升後,verification、review、integration、supervision 與 governance 會成為新的瓶頸。
DORA 2025 將 AI 描述為 amplifier;DORA 2026 明確指出 AI 加速 initial code generation,但創作端節省的時間經常被重新投入 auditing 與 verification。2026 年一項針對 33,707 個 agent-authored PR 的研究更發現 review effort 具有高度不均勻分布,並能以 PR 結構特徵在建立時預測高 review-effort PR;在其資料中,以 20% review budget 可攔截 69% 總 review effort。這表示 governance capacity 本身已可被建模、預測與路由。
本文的核心主張不是「降低 governance」,而是:
Scale governance throughput with generation throughput.
最終,AI-native engineering 更合理的核心產能指標不是:
LOC/day,
也不是:
Tokens/day,
甚至不只是:
Tasks/day,
而是:
Verified, Integrated, Governed, Reversible State Transitions per Unit Time
亦即:
一個系統每單位時間究竟能吸收多少「真的理解、真的驗證、真的整合、真的可治理」的有效變更。
1. 問題不是 AI 能寫多少,而是系統能吸收多少
傳統軟體工程具有一個經常被忽略的天然限制:
Vhuman change
相對有限。
工程師一天只能:
- 改有限檔案;
- 開有限 PR;
- 設計有限 service;
- 寫有限 adapter;
- 跑有限實驗;
- 建有限 test。
這個限制固然降低 velocity,
但它也形成:
Natural Change Throttle
天然變更節流
候選變更的供給不會遠大於:
- review;
- integration;
- architecture reasoning;
- release engineering;
可以處理的量。
AI coding agent 打破的第一件事,就是這個天然節流。
2. Candidate Change Explosion
令:
Cg=cost of generating one plausible candidate change.
AI 使:
Cg↓.
因此同一時間窗:
Ncandidate↑.
而 candidate 不只包含 code。
它還包含:
- implementation;
- test;
- migration;
- API;
- adapter;
- refactor;
- documentation;
- architecture alternative;
- review finding;
- security concern;
- patch;
- workaround。
因此:
AI Generation=Code Generation Only.
AI 是:
Candidate-State Generator.
3. Candidate 不等於 Accepted Change
令候選變更:
ΔXc.
它進入 product world 之前需要:
ΔXc→ΔXv→ΔXi→ΔXg→ΔXaccepted.
粗略對應:
candidate
→ verified
→ integrated
→ governed
→ accepted
因此:
CandidateChange=TrustedChange.
這與 A01 / A02 的核心分離完全一致。
4. 五種核心吞吐量
本文定義五種核心工程 throughput。
4.1 Generation Throughput
Vg=ΔtNcandidate changes.
4.2 Verification Throughput
Vv=ΔtNchanges with sufficient correctness evidence.
4.3 Integration Throughput
Vi=ΔtNchanges with closed required boundaries.
4.4 Architecture Throughput
Va=ΔtNchanges with understood structural impact.
4.5 Governance Throughput
Vgov=ΔtNchanges with authority, provenance, risk, closure.
這些量不是彼此獨立,但必須概念分離。
5. Pipeline Bottleneck
若可信變更必須依序通過:
G→V→I→A→Gov,
則 steady-state throughput 更接近:
VT=min(Vg,Vv,Vi,Va,Vgov).
這與 pipeline / queueing system 的基本直覺相同:
最慢的必要 stage 限制整體吞吐量。
因此:
Vg↑10×
如果:
Vv↑1.2×,
不會得到:
VT↑10×.
而會先得到:
Qv↑.
6. Generation–Governance Gap
既有研究定義:
VAI=VAI-assisted change,
以及治理能力:
VG=Vverification+Varchitecture+Vgovernance.
並提出:
GAI=VAI−VG.
v0.2 將其修正成兩種版本。
6.1 Capacity Gap
GC=Vg−VT.
如果:
GC>0,
表示 candidate supply 大於可信吸收能力。
6.2 Ratio
ρGG=VT+ϵVg.
其中:
- ρGG<1:治理/吸收能力有餘裕;
- ρGG≈1:接近飽和;
- ρGG>1:backlog 持續累積;
- ρGG≫1:大量 candidate 必須被丟棄、延遲或低品質吸收。
7. Backlog Conservation
令:
Q(t)
為尚未被可信吸收的 candidate queue。
則最簡模型:
dtdQ=Vg−VT.
若:
Vg>VT
長期成立,
則:
Q(t)↑.
系統最終只能做三件事:
- 增加 VT ;
- throttle Vg ;
- 降低 acceptance / evidence bar。
第三種最危險。
8. Governance Saturation
當:
Q(t)
超過 governance capacity,
組織可能開始:
- review 變淺;
- test 被跳過;
- PR queue 延長;
- architecture impact 不再看;
- provenance 遺失;
- warnings 被大量忽略;
- merge criteria 放寬。
因此:
GovernanceSaturation→QualityGateDegradation.
不是因為團隊突然不專業,
而是 queue 超過 service capacity。
9. DORA:AI 是 Amplifier
DORA 2025 State of AI-assisted Software Development 的核心 framing 是:
AI as an Amplifier
AI 不會自動把弱 delivery system 變成熟。
它更接近:
ExistingSystem×AIAcceleration.
如果:
- version control;
- platform;
- feedback loops;
- team alignment;
- delivery practice;
本來成熟,
AI 可以放大好處。
如果本來存在:
- large batch;
- weak feedback;
- poor internal platform;
- unclear process;
- unstable delivery;
AI 也會放大 problem surface。
因此:
AI=AutomaticGovernanceLayer.
10. 2026 DORA:Creation 的時間省下來,常被 Verification 吃掉
DORA 2026〈Balancing AI tensions〉指出:
AI 確實加速 initial code generation,降低 task-start friction,但 creation 節省的時間常被重新投入 auditing 與 verification。
這非常接近本文的核心:
Wcreation↓
但:
Wverification↑.
因此:
Less Creation Cost=Equal Reduction in Total Engineering Cost.
11. Tokenmaxxing:生成活動量可以成為新的假生產力
DORA 在 2026 年又專門討論:
Tokenmaxxing
即組織用 token usage leaderboard 促進 AI adoption。
其核心警告是:
raw token consumption 是 input / activity metric,而不是 outcome metric。
所以:
TokensConsumed=SoftwareValueCreated.
甚至:
Tokens↑
可能只表示:
- more agent loops;
- more speculative generation;
- more abandoned candidates;
- more duplicated implementation;
- more review burden。
這與本文的生成—治理缺口形成直接對照。
12. Activity Metric Goodhartization
若組織獎勵:
TokenCount,
則 Agent / developer 會自然優化:
TokenCount.
若獎勵:
PRCount,
會優化:
PRCount.
若獎勵:
GeneratedLOC,
會優化:
GeneratedLOC.
但真正需要的是:
TrustedStateTransition.
因此:
Generation Activity
不應成為:
Primary Productivity Target.
13. Review Effort 已經成為可預測資源
2026 年一項針對 AI-generated PR 的研究分析:
33,707
個 agent-authored PR,
來自:
2,807
個 repositories。
研究觀察到兩個 regime:
- 約 28.3% PR 幾乎瞬間 merge;
- 其餘一部分進入 iterative review cycle,甚至 stall / abandon。
研究建立 structural triage model,
在其實驗中:
20%
review budget 可以攔截:
69%
總 review effort。
這個數字不能直接外推所有 repository,
但它證明一件很重要的事:
Review Load
本身可以被:
- modeling;
- prediction;
- routing;
- budget allocation。
所以 governance 不是「人類最後看一下」。
它是一個正式 capacity system。
14. Review Agent 也不是免費 Governance
2026 年另一項 empirical study 分析 code review agents。
在其樣本中,CRA-only reviewed PR 的 merge rate 低於 human-only review group,且被分析的 closed CRA-only PR 中,大量 feedback 落在低 signal-to-noise range。
這不能推出:
AI reviewer 沒用。
它反而支持:
Automating Review=Automatically Increasing Trusted Review Throughput.
如果 AI reviewer 本身產生大量 noise,
則:
Vreview messages↑
但:
Vuseful review↑.
15. Governance Throughput 要算 Signal,不是 Message
因此:
Nreview comments
不是 governance throughput。
更合理的是:
Vuseful governance=ΔtNdecision relevant verified findings.
同理:
TestCount
不是 verification throughput。
而是:
Nmaterial claims closed by evidence.
16. AI-generated Code 的品質不是單向結論
本文避免:
AI Code=BadCode.
2025–2026 的研究結果高度混合。
例如一項比較 LLM 與 human-written code 的研究,在特定 Python coding-task dataset 與 SonarQube 指標下,觀察到 LLM-generated code 在部分 bug / repair-effort 指標上較好,但高難度題可能出現 human baseline 沒有的 structural issues。
另一項超過 500,000 code samples 的研究則觀察到:
- AI code 結構通常較簡單;
- repetition 較多;
- unused constructs / hardcoded debugging 較多;
- human code 結構複雜度較高;
- maintainability issue profile 不同;
- AI samples 中觀察到更多 high-risk security vulnerabilities。
因此:
AI DefectProfile=Human DefectProfile.
17. 非功能品質是 Green Closure 的重要盲區
2025 年一項研究綜合:
- 108 篇文獻;
- industry workshops;
- real-world issue patching experiments;
指出 LLM code evaluation 長期過度集中:
tests 是否通過。
但 functional pass 並不能代表:
- security;
- maintainability;
- performance;
- reliability;
同步成立。
研究中也觀察到:
改善一個 non-functional dimension 有時會傷害另一個。
因此:
FunctionalGreen⇏QualityClosure.
這直接與 A01 / A03 相接。
18. 真實 Repository 中的 AI Issue 可以持續存在
2026 年〈Debt Behind the AI Boom〉分析:
304,362
個 verified AI-authored commits,
來自:
6,275
個 GitHub repositories,
識別:
484,606
個 distinct issues。
其中:
89.1%
是 code smells。
研究並追蹤 issue 到 repository 最新 revision,
觀察到:
24.2%
仍然存在。
這是一篇近期 empirical preprint,因此不能被解讀成:
24.2% 所有 AI code 都是 technical debt。
合理的結論是:
AIIntroducedIssue
並不必然在後續 review / maintenance 中自動消失。
19. Vendor Observational Signal:Maintainability Gap
GitClear 2025 / 2026 發表大型 observational code-change analysis。
其 2026 報告聲稱分析:
623 million
changes,
並在 2023–2026 window 中觀察到:
- refactoring / moved code activity 下降;
- legacy maintenance 下降;
- duplication / copy-paste 上升;
- error-masking constructs 上升;
- short-term churn 上升。
這是供應商自有度量與 observational dataset,
因此不能作為:
AI causes technical debt
的因果證明。
但它提供一個值得治理系統持續監測的 signal:
Throughput↑
可能同時伴隨:
StructuralMaintenanceSignals↓.
20. AI Authorship 不等於 Technical Debt
技術債需要:
FutureCostRelation.
所以:
AIAuthorship⇏TechnicalDebt.
同樣:
HumanAuthorship⇏GoodArchitecture.
本文使用「AI 原生結構負擔」是因為:
AI 改變負擔的生成速度、分布、可見性與治理需求。
不是因為:
AI 寫的東西天生比較差。
21. Verification Debt
若:
Vg>Vv,
則未充分驗證變更 queue:
Qv(t)
滿足:
dtdQv>0.
本文稱:
Verification Debt
它本身不一定已經成為傳統 technical debt。
但若:
Qv
中的 change 被:
- merge;
- deploy;
- downstream depend;
就可能轉成真正 future-cost-bearing debt。
22. Verification Debt 與 A05 不同
A05 的問題是:
too many obligations.
A06 的 Verification Debt 是:
too many changes awaiting trustworthy evidence.
兩者可以互相放大:
CandidateChanges↑
造成:
VerificationQueue↑.
而 reviewer 再產生:
ObligationExpansion↑.
於是:
GenerationBacklog+ObligationBacklog
形成雙重擁塞。
23. Context Debt
Agent 生成時通常只看到:
Kavailable
而完成正確變更真正需要:
Krequired.
因此:
Dc=Krequired−Kavailable.
這就是 Context Debt。
它可以包括缺失的:
- historical reason;
- hidden dependency;
- incident history;
- external consumer;
- manual workflow;
- runtime behavior;
- compatibility contract。
結果是:
LocallyCorrect
但:
GloballyMisaligned.
24. Context Debt 是治理負擔,不只是 hallucination
如果 architectural truth 只存在:
某位資深工程師記憶裡,
那新人也會犯錯。
因此 Context Debt 更接近:
Unexternalized Effective Knowledge.
AI 只是因為:
Vg↑
讓這個缺口被更高頻觸發。
25. Provenance Debt
若大量 artifact 無法回答:
- why changed;
- requirement ref;
- agent / human actor;
- context snapshot;
- validation evidence;
- model / tool version;
- review / authority;
- parent state;
則:
Dp↑.
這會提高:
Cfuture understanding
與:
Cincident reconstruction.
因此:
ProvenanceDebt
具有很強的 technical-debt 性質。
26. Provenance 不等於把所有 Chat 全存下來
真正 provenance 需要:
salient causal receipt.
不是:
all tokens ever generated.
理想記錄:
change:
intent_ref:
requirement_ref:
parent_version:
author_agent:
model/tool:
context_refs:
files_changed:
tests:
structural_impact:
authority:
accepted_by:
而不是:
full 400k-token transcript
27. Specification Debt
AI 降低 implementation 成本後,
underspecification 會變得更危險。
因為:
做一個登入系統
就可以快速展開成:
- frontend;
- backend;
- DB;
- session;
- recovery;
- email;
- auth logic。
但真正未定義:
- authority;
- state semantics;
- threat boundary;
- failure;
- recovery;
- data ownership;
- lifecycle;
- acceptance criteria。
因此:
Cimplementation↓
可能暴露:
Ds↑.
不是 spec 真的變少,
而是 implementation 跑得比 spec closure 更快。
28. Integration Debt
AI 可以獨立生成:
A,B,C,…,N.
每個 component 都:
LocalPass=1.
但 integration surface:
E
可能隨 component 增加更快增長。
最壞情況 pairwise:
∣E∣=O(n2).
所以:
ComponentGeneration
可以快速超過:
RelationClosure.
這就是 A03 的吞吐量版本。
29. Integration Debt 的核心不是 Merge Conflict
Integration debt 不只:
Git conflict
而包括:
- contract mismatch;
- retry mismatch;
- transaction mismatch;
- permission mismatch;
- state ownership mismatch;
- observability gap;
- version skew;
- deployment dependency;
- timing mismatch。
也就是:
Unclosed Effective Boundaries.
30. Orchestration Debt
Agentic workflow 引入:
- planner;
- implementer;
- reviewer;
- test agent;
- security agent;
- deploy agent;
- memory agent。
如果:
- responsibility overlap;
- context inconsistent;
- authority unclear;
- retry semantics differ;
- completion definition differs;
- ownership unclear;
則:
Ccoordination↑.
這就是:
Orchestration Debt
Agent 越多不一定:
VT↑.
甚至可能:
Vg↑,Vgov↓.
31. Supervision Debt
如果 AI generation capacity:
10×
而 trusted review capacity:
1.5×,
則:
Qreview↑.
結果可能:
- merge queue 變長;
- reviewer fatigue;
- review depth 下降;
- AI review 取代 human review,但 signal quality 不足;
- low-risk / high-risk change 沒有 routing。
這就是:
SupervisionDebt.
32. Elimination Debt
v0.2 新增:
Elimination Debt
AI 讓:
Cadd↓.
但刪除成熟 code 需要:
- dependency analysis;
- compatibility check;
- migration;
- replay;
- deprecation;
- user impact;
- rollback。
因此:
Cdelete
不一定同比下降。
所以:
CaddCdelete↑.
結果組織偏向:
don't remove old
→ add new
→ add adapter
形成:
EliminationDebt.
33. 沉積偏差
當:
Caddition≪Cremoval verification,
最便宜策略是:
Add, don’t consolidate.
因此:
∣Artifacts(t)∣↑
且:
HistoricalResidue↑.
這是 AI 時代很重要的非對稱。
34. AI 越會生成,越需要 Garbage Collection
如果:
Generation
是 memory allocation,
則成熟 AI-native engineering 還需要:
Structural Garbage Collection.
包括:
- duplicate detection;
- dead artifact detection;
- obsolete adapter removal;
- deprecated path cleanup;
- consolidation;
- migration completion;
- compatibility retirement。
否則系統只會:
Allocate
不會:
Collect.
35. Observability Debt
v0.2 再新增:
Observability Debt
如果 AI change speed 上升,
但:
- traces;
- metrics;
- state introspection;
- change lineage;
- runtime evidence;
沒有同步提高,
則:
Vchange↑∧Visibility(ΔX)↓.
此時 incident response 會更依賴猜測。
所以 observability 是 governance capacity 的一部分。
36. Closure Debt
A01–A05 已指出:
- tests pass 不等於 intent closed;
- local pass 不等於 global pass;
- finding 不等於 obligation;
- process 不等於 progress。
若大量 change 處於:
implemented
but not semantically closed
則形成:
Closure Debt
形式上:
Dcl=Nimplemented−Nintent closed.
這比 Verification Debt 更高階。
37. Substrate Compensation Burden
若目前 technology substrate 不提供某種 required guarantee,
系統可能反覆加入:
- wrapper;
- validator;
- retry;
- runtime guard;
- extra reviewer;
- compatibility layer。
這些都可以局部有效。
但若:
Ccompensation
持續上升,
則真正問題可能位於:
Substrate.
因此 Global-First v2.1 提出:
Instance→Pattern→Architecture→Substrate.
重複 structural defect 應提高 diagnostic level,
而不是:
再多派一個 reviewer。
38. Stay Cost / Move Cost
定義:
Cstay=Cimplementation+Crecurring compensation+Cverification+Cretry+Cintegration+Creview+Cexpected failure.
另一方案:
Cmove=Cmigration+Cadaptation+Cnew integration+Cnew verification+Cecosystem transition.
如果:
Cstay>Cmove
且 remaining lifecycle 足夠長,
就應重新評估。
不是因為:
新語言比較漂亮。
而是因為:
governance cost 已在替 substrate 的缺失保證付租金。
39. AI-native Structural Burden Vector v0.2
本文將負擔向量擴充:
BAI=[Dv,Dc,Dp,Ds,Di,Do,Dsup,De,Dobs,Dcl,Dsub]
其中:
- Dv:Verification Debt;
- Dc:Context Debt;
- Dp:Provenance Debt;
- Ds:Specification Debt;
- Di:Integration Debt;
- Do:Orchestration Debt;
- Dsup:Supervision Debt;
- De:Elimination Debt;
- Dobs:Observability Debt;
- Dcl:Closure Debt;
- Dsub:Substrate Compensation Burden。
40. 這些 Debt 不是互斥類別
一個 change 可以同時:
Dc>0,
Dp>0,
Di>0.
例如 Agent 不知道歷史 contract:
ContextDebt
產生新 adapter:
IntegrationDebt
又沒留下 rationale:
ProvenanceDebt.
所以:
BAI
是多維狀態,不是單一 label。
41. Debt 會互相轉換
可能有:
Dc→Di,
Ds→Dv,
Do→Dsup,
De→Di,
Dobs→Dsup,
Dv→Dt.
其中:
Dt
代表傳統 technical debt / future maintenance cost。
所以 AI-native burden 是:
Pre-Debt and Debt-Flow System.
42. AI 可以加速 Compensation Solidification
以前 workaround 變成 architecture 可能需要數月。
現在 Agent 可以快速:
script
→ service
→ API
→ UI
→ database
→ deploy
幾天內完成。
如果 downstream 立刻依賴:
Dependents↑,
則:
Tsolidification↓.
因此 AI 可以加速:
Architectural Solidification
壞處是:
臨時東西更快變成不能拆的東西。
好處是:
健康 primitive 也可以更快被制度化。
關鍵仍是 governance。
43. AI 也可以提高 Governance Throughput
這篇不能把 AI 固定放在 numerator。
AI 也可以做:
- architecture recovery;
- dependency graph;
- impact analysis;
- test generation;
- invariant check;
- provenance generation;
- doc sync;
- observability analysis;
- deprecation detection;
- duplicate detection;
- migration planning;
- runtime anomaly triage。
所以:
VgovAI↑
完全可能。
44. Agentic Refactoring 是重要反例
2025 年 Agentic Refactoring 研究分析:
15,451
個 agent-generated refactoring instances,
跨:
12,256
個 PR。
研究發現:
- refactoring 並不少見;
- 26.1% commits 明確以 refactoring 為目的;
- maintainability / readability 是主要動機;
- 部分 structural metric 有小幅但顯著改善。
因此:
AI=OnlyGenerationAccelerator.
AI 也可以:
GovernanceAccelerator.
45. 但 Refactoring Throughput 也需要 Closure
AI refactor:
RefactorGenerated=1
仍不表示:
RefactorAccepted=1.
需要驗:
- behavior preservation;
- architecture impact;
- tests;
- compatibility;
- performance;
- runtime。
因此 governance automation 本身也需要 governance。
這是 recursive governance 問題。
46. AI 在分子還是分母?
生成—治理比率:
ρGG=VTVg.
如果 AI 只用在:
Vg↑,
則:
ρGG↑.
如果 AI 同時提高:
Vv,Vi,Va,Vgov,
則:
VT↑
可能讓:
ρGG↓.
所以:
AI is not inherently numerator or denominator.
47. Trusted Integration Throughput
本文把舊文的:
Trusted Integration Throughput
正式化成:
VTI=ΔtNchanges[Verified∧Integrated∧Governed].
若再加入:
Reversible
與:
RuntimeObserved,
則得到更強版本。
48. Verified, Governed, Reversible State Transition
令一個 change:
τ:Wt→Wt+1.
可信 transition 至少滿足:
Verified(τ)=1,
Integrated(τ)=1,
Governed(τ)=1,
且高風險變更需要:
ReversibleOrExplicitlyAuthorized(τ)=1.
因此:
VGRT(τ)=1.
其中:
VGRT
Verified, Governed, Reversible Transition
49. 核心產能指標
定義:
ΘVGRT=ΔtNVGRT.
這就是:
Verified, Governed, Reversible State Transitions per Unit Time
比:
LOC/day
更接近真實 AI-native engineering productivity。
50. 為什麼不只用 Tasks Completed?
因為兩個「task completed」可以具有完全不同:
- scope;
- risk;
- change radius;
- integration surface;
- evidence quality;
- reversibility。
所以:
TaskCount
仍然太粗。
狀態轉換至少要求:
what changed
可被明確表達。
51. Architecture Transaction
本文沿用既有概念:
AI 生成的不是 code,而是一個有來源、有證據、有結構影響的 architecture transaction。
可表示:
change:
intent:
parent_state:
actor:
context:
artifact_diff:
dependency_diff:
authority_diff:
state_ownership_diff:
tests:
runtime_evidence:
structural_review:
provenance:
rollback:
acceptance:
這樣:
ΔX
才可治理。
52. AI Change Budget
如果:
Vg
可近乎無限擴張,
但:
VT
有限,
則成熟組織可以設定:
AI Change Budget
要求:
Vaccepted≤Vtrusted absorption.
這不是:
限制 AI。
而是:
不讓 ingestion rate 永遠高於 absorption capacity。
53. Change Budget 類似 SRE Error Budget,但不是同一概念
SRE error budget 管:
AvailabilityRisk.
AI Change Budget 管:
ChangeAbsorptionRisk.
其 budget 可以由:
- review capacity;
- test capacity;
- incident capacity;
- architecture capacity;
- release stability;
- rollback readiness;
動態決定。
54. Adaptive Change Budget
可寫:
Bchange∗=f(Vv,Vi,Va,Vgov,Risk,Stability,Backlog).
當:
Qv,Qi,Qsup
上升,
budget 應下降。
當 governance automation 改善:
VT↑,
budget 可以提高。
55. Circuit Breaker
當:
ρGG
超過閾值:
ρcrit,
可以觸發:
pause low-priority generation
prioritize backlog closure
increase targeted verification
cluster repeated defects
consolidate duplicates
recover architecture
這是一種:
Governance Circuit Breaker
不是 failure punishment。
而是 capacity protection。
56. Queue Prioritization
不是所有 candidate 都值得同樣 governance cost。
可依:
Priority(ΔX)=f(Value,Risk,Urgency,DependencyCentrality,Reversibility,EvidenceGap).
高價值低風險:
fast lane.
高風險:
deep gate.
低價值高 review cost:
drop / defer.
57. 33,707 AI PR 研究對本文的啟示
review effort 高度不均勻意味:
Uniform Review Policy
可能很浪費。
如果 structural feature 能在 PR creation 時預測:
HighReviewCost,
則:
Risk/Cost Routed Governance
比:
ReviewEverythingEqually
更合理。
58. Review Budget 也應 APR 化
這與 APR 的:
Minimum Necessary Observation
同型。
Review 也可以問:
為了決定這個 change 是否可接受,最少需要什麼 evidence?
所以:
Minimum Sufficient Governance
不是最少治理,
而是:
足以支持當前 consequential decision 的最小治理集合。
59. Generation / Governance 的雙向調度
成熟 runtime 不只:
Generation→Governance.
還需要:
GovernanceState→GenerationPolicy.
例如 backlog 高:
Qv↑
則 generation policy:
πg
轉向:
- fix existing;
- consolidate;
- refactor;
- document;
- test;
- remove;
- migrate。
而不是繼續:
new feature generation。
60. Structural Metabolism
本文提出:
SoftwareEvolution=Creation+Assimilation+Repair+Removal.
這像結構代謝。
如果只提高:
Creation,
系統會肥大。
如果:
Assimilation,Repair,Removal
同步提高,
系統才是真正:
Evolving.
61. Metabolic Balance
定義:
Vcreate,Vassimilate,Vrepair,Vremove.
可建立概念性平衡:
MB=Vcreate+ϵVassimilate+Vrepair+Vremove.
若:
MB≪1,
表示偏生成。
若:
MB≈1,
表示結構代謝較平衡。
62. AI-native Big Ball of Mud 形成路徑
可能是:
intent
→ agent solution
→ local tests pass
→ merge
→ next agent sees local state
→ new local solution
→ local tests pass
→ adapter
→ duplicated state
→ more hidden dependencies
→ more local repair
最終:
LocalCorrectness+HighChangeVelocity→GlobalStructuralDrift.
這就是 A01 / A03 / A06 的合流。
63. Green Closure 與 Generation–Governance Gap 的關係
如果 governance throughput 不足,
系統很自然會選便宜 validator:
- unit test;
- lint;
- CI;
- local snapshot。
於是:
Vgreen
可以保持很高,
但:
Vglobal closure
跟不上。
因此:
GenerationGovernanceGap→PressureTowardCheapGreenSignals.
這是一個非常重要的因果橋。
64. 為什麼「全部加更多 tests」不是完整答案
如果:
Vg>Vv,
第一反應可能:
generate more tests。
AI 確實可以提高 test generation。
但如果 tests:
- 同一 projection;
- 同一 spec;
- 同一 fixtures;
- 同一 model blind spot;
則:
TestCount↑
但:
IndependentEvidence↑
有限。
這會接到 A08:
Homogeneous Green
65. Structural Verification
因此治理層除了 functional tests,
還需要按 change class 選:
- dependency diff;
- state ownership;
- authority change;
- lifecycle;
- runtime;
- visual / interaction;
- performance;
- compatibility;
- architecture residual。
不是每次全部開。
而是:
Risk-and Causal-Routed Structural Verification.
66. Architecture Review Frequency 可以被 AI 提高
以前 architecture review:
Ca
太高,
所以可能:
quarterly
或:
incident-driven
未來 Agent 可以每個 PR:
- recover dependency;
- compare declared / effective;
- inspect structural delta;
- detect ownership drift;
- query historical rationale。
因此:
farchitecture review↑.
如果品質足夠,
甚至接近:
fchange.
這正是 AI 提高 denominator 的例子。
67. 但 Architecture Review 也需要 Stop Discipline
A05 已證明:
Review
不能成為 infinite obligation generator。
所以:
Va↑
不應靠:
每個 PR 寫更多 architecture comments。
而應靠:
Higher signal / lower cost structural judgment.
68. Provenance Automation
Provenance 是很適合 AI 自動化的治理項。
因為:
- task ref;
- diff;
- tests;
- model;
- tool;
- branch;
- timestamp;
- dependency impact;
大多可以機械取得。
所以:
Cp↓
可以顯著提高:
Vgov.
這類 automation 比:
再產生一段 free-form review prose
更可能提高 trusted throughput。
69. Deterministic Evidence Preference
對可機械驗證的東西:
Compiler,Schema,Hash,ExactDiff,UnitTest,IntegrationTest,StaticInvariant
應優先於:
another LLM opinion.
原因不是 LLM reviewer 沒價值。
而是:
DeterministicEvidence
通常:
- 成本較低;
- reproducible;
- lower correlation;
- easier caching;
- easier closure memory。
70. Governance Cache
如果同一 artifact / state:
Xv
已經有有效 evidence:
E(Xv),
那麼沒有 relevant change 時:
E(Xv)
應可重用。
不需要:
ReviewEverythingAgain.
因此:
Governance Cache
可提高:
VT.
71. Evidence Invalidation
Governance cache 不能永遠有效。
若 change:
ΔX
影響:
Cone(Ei),
則:
Invalidate(Ei)=1.
所以:
Cache+Causal Invalidation
比:
Always Reverify All
更 scalable。
72. Backlog 分層
不要只有:
PR queue
而應分:
candidate
verification
integration
architecture
governance
release
才能知道 bottleneck 位於哪。
例如:
Qg=0,Qv=500,Qi=20.
真正問題顯然不是:
產碼不夠快。
73. Little's Law 視角
對穩定 queue:
L=λW.
因此 backlog:
L
上升可能來自:
- arrival rate λ 上升;
- waiting time W 上升。
AI 最直接提高:
λg.
如果 service rate 不變,
則:
Wreview↑.
這提供一個非常直觀的工程量化框架。
74. Governance Lead Time
可以測:
Tgov=taccepted−tcandidate.
如果 AI 後:
Tcoding↓
但:
Tgov↑,
那 end-to-end lead time 未必改善。
因此:
CodingLatency=DeliveryLatency.
75. Candidate Rejection Rate
如果 candidate generation 很便宜,
高 rejection rate 本身不一定壞。
定義:
Rc=Ngenerated candidatesNrejected candidates.
只要:
Cg
很低,
探索性 generation 可以合理。
真正問題是:
RejectedCandidateCost+GovernanceCost.
如果每個垃圾 candidate 都耗大量 review,
則不值得。
76. Governance-Adjusted Candidate Value
可定義:
Vc∗=ExpectedValue(c)−ExpectedGovernanceCost(c)−ExpectedIntegrationCost(c).
只有:
Vc∗>0
的 candidate 才值得深入。
這可降低:
Q.
77. Agent 不該把所有想法都變 PR
候選方案可以先存在:
cheap latent space.
不一定立刻:
- edit repo;
- open PR;
- trigger full CI;
- trigger reviewers。
因此:
Idea=RepositoryMutation.
這也是 governance cost control。
78. Proposal Layer
可以有:
hypothesis
→ candidate plan
→ cheap static evaluation
→ selected candidate
→ repo mutation
而不是:
every idea
→ code
→ PR
→ CI
→ review
這能把 expensive governance 放到後面。
79. Global-First 對 Generation–Governance Gap 的意義
Global-First Completion 並不是:
先生成更多。
它真正的優勢是:
reduce repeated local validation and integration rediscovery.
例如:
global implementation
→ first global validation
→ failure clustering
→ batched repair
比:
tiny edit
→ full validation
→ tiny edit
→ full validation
降低:
Cv.
因此提高:
VT.
80. A06 與 A04 的區別
A04:
Process Activity=Mission Progress.
A06:
Generation Throughput=Trusted Absorption Throughput.
A04 主要研究:
流程是否在浪費。
A06 研究:
即使所有流程都有必要,capacity 是否跟得上生成速度。
81. A06 與 A05 的區別
A05:
λobligation>μclosure
造成 completion drift。
A06:
λcandidate>μtrusted absorption
造成 structural backlog。
所以兩篇形成對偶:
Too Many Things To Do
與:
Too Many Things To Trust.
82. A06 與 A07 的橋
若 governance capacity 不足,
Agent 會依賴:
- prior;
- local tests;
- text-only context;
- default role。
所以:
CapacityPressure→ObservationNarrowing.
這會接到 A07:
Capability–Perspective Activation Gap
即:
模型可能有能力,但 runtime 沒有啟動該視角/模態。
83. A06 與 Series B 的橋
第二系列會提出:
GlobalAwareness+DynamicObservation+APR.
其一個直接經濟理由就是:
governance 不可能對所有 change 永遠使用 maximum observation。
需要:
Minimum Sufficient Observation
提高:
VT
同時保持:
EvidenceQuality.
84. 治理吞吐量不等於治理步驟越少
提高:
Vgov
可以靠:
- automation;
- better routing;
- deterministic evidence;
- causal reuse;
- architecture memory;
- stronger observability;
- better specs;
- reviewer specialization;
- elimination / consolidation。
不是單純:
skip review。
85. Governance Compression
成熟系統追求:
Same or Better Assurance/Lower Governance Cost.
可稱:
Governance Compression
例如:
- one exact schema validator 取代多輪文字 review;
- cached dependency graph 取代每次重新閱讀;
- targeted visual replay 取代全站人工巡查;
- provenance receipt 取代完整 chat reconstruction。
86. Trusted Absorption Efficiency
定義:
Ctotal=Cg+Cv+Ci+Ca+Cgov.
可信吸收效率:
ηT=CtotalNtrusted accepted changes.
這比:
TokenLOC
更有工程意義。
87. Rework-adjusted Throughput
如果 accepted change 很快又被 revert / rewrite,
那 nominal throughput 會高估。
定義:
VT∗=VT(1−Rrework).
因此:
Durable Trusted Throughput
更值得觀察。
88. Stability-adjusted Throughput
再加入 escaped incident cost:
VT∗∗=VT∗(1−Rcritical escape).
這能避免:
快速 merge 一切
看起來 throughput 很高。
89. AI Change Health Dashboard
可以監測:
generation:
candidates_per_day:
files_changed_per_day:
queues:
verification:
integration:
architecture:
review:
release:
throughput:
verified:
integrated:
governed:
deployed:
quality:
rework_rate:
rollback_rate:
escaped_defects:
duplicated_code:
churn:
burden:
context_debt:
provenance_debt:
integration_debt:
supervision_debt:
elimination_debt:
ratio:
generation_governance_ratio:
這比:
tokens consumed
更接近治理現實。
90. 早期警報
以下 signal 出現時:
- PR queue 快速上升;
- review latency 上升;
- review comment noise 上升;
- duplicate adapters 上升;
- short-term churn 上升;
- architecture warnings 長期未處理;
- provenance missing;
- reopened defects 上升;
- same structural failure family 重複;
應判斷:
ρGG>1
的可能性。
91. 反例:High Generation 可以是好事
如果:
Vg↑
同時:
VT↑
而且:
ρGG≤1,
則 AI 可以讓:
- refactor;
- test;
- migration;
- cleanup;
- documentation;
- architecture recovery;
都高頻化。
因此本文不是反對:
HighGeneration.
而是反對:
UngovernedGeneration.
92. 反例:Low Generation 也不等於健康
一個團隊:
Vg↓
可能只是:
- legacy 太難改;
- review 太慢;
- fear-driven process;
- no automation;
- low capability。
所以:
LowChangeRate⇏GoodGovernance.
真正目標是:
HighTrustedThroughput.
93. 反例:Governance 很多也可能是壞事
如果:
Vgov
用「review steps」計算,
可能被 A04 的 process proxy 騙。
所以治理吞吐量必須用:
closed material uncertainty / accepted trusted transitions
衡量,
而不是:
Ngovernance actions.
94. 核心命題
本文 v0.2 收束為十八條命題。
P1 — Candidate-Cost Reduction
AI→Ccandidate generation↓.
這比「AI 一定讓專案變快」更弱也更可靠。
P2 — Candidate / Trusted Change Separation
CandidateChange=TrustedChange.
P3 — Pipeline Bottleneck
VT=min(Vg,Vv,Vi,Va,Vgov,…).
P4 — Generation–Governance Gap
GC=Vg−VT.
P5 — Backlog Accumulation
若:
Vg>VT,
則:
dtdQ>0.
P6 — AI Authorship Non-Debt
AIAuthorship⇏TechnicalDebt.
P7 — Distinct Defect Profile
AI RiskProfile=Human RiskProfile.
P8 — Verification Debt
Vg>Vv⇒Qv↑.
P9 — Integration Debt
ComponentGeneration>BoundaryClosure⇒IntegrationDebt↑.
P10 — Context Debt
Dc=Krequired−Kavailable.
P11 — Elimination Asymmetry
Cdelete/Cadd↑
會增加沉積偏差。
P12 — AI Can Increase Governance Too
AI→Vg↑and/orVT↑.
P13 — Structural Amplifier
AI≈StructuralAmplifier.
它放大的是既有 engineering system。
P14 — Activity Non-Productivity
Tokens,LOC,PRCount=TrustedProductivity.
P15 — Trusted State Transition Metric
ΘVGRT=TimeVerified∧Governed∧Reversible StateTransitions.
P16 — Change Absorption Budget
Vaccepted≤Vtrusted absorption.
P17 — Governance Routing
GovernanceDepth=f(Risk,ChangeRadius,Uncertainty,Reversibility,EvidenceGap).
P18 — Structural Metabolism
HealthyAIEngineering=Creation+Assimilation+Repair+Removal.
95. 結論
AI 時代的軟體工程很容易被一個表面現象欺騙:
AI 寫得越來越快,所以軟體工程也越來越快。
實際上,AI 首先做到的是:
Candidate Production↑.
但軟體真正能演化,需要:
Trusted Absorption↑.
如果只有前者:
Vg↑
而:
VT
不變,
那麼增加的不是等比例 productivity,
而是:
Backlog+ReviewLoad+IntegrationSurface+ContextPressure+StructuralBurden.
因此 AI-native engineering 的真正競爭力,不應是:
哪個團隊每天產最多 code。
甚至也不只是:
哪個團隊讓最多 Agent 同時跑。
真正稀缺的能力可能變成:
Trusted Change Absorption Capacity
也就是:
一個工程系統每天到底能可靠理解、驗證、整合、治理、部署並在必要時回滾多少有效變更。
如果這個能力與 generation 一起提高,
AI 可以成為:
Structural Metabolism Accelerator.
它可以讓:
- legacy refactor;
- architecture recovery;
- migration;
- cleanup;
- observability;
- testing;
- documentation sync;
第一次高頻發生。
如果只有 generation 提高,
AI 就可能成為:
Structural Burden Amplifier.
所以本篇留下的最終問題不是:
AI 一天可以寫多少 code?
而是:
How many verified, integrated, governed, reversible state transitions can the system safely absorb per unit time?
中文即:
系統每單位時間究竟能安全吸收多少經驗證、經整合、可治理且可回復的真實狀態轉換?
這才是 AI-native software engineering 更值得追求的產能。
參考文獻
A. 外部研究與最新工程資料
DeBellis, D., Storer, K., Harvey, N., Beane, M., Edwards, R., Fraser, E., et al. (2025). DORA State of AI-assisted Software Development 2025. Google / DORA.
https://dora.dev/research/2025/dora-report/
核心 framing:AI as an amplifier;AI 效果依賴既有 organizational / delivery system。
DORA. (2026-03-10). Balancing AI tensions: Moving from AI adoption to effective SDLC use.
https://dora.dev/insights/balancing-ai-tensions/
指出 AI 加速 initial code generation,但 creation 省下的時間經常轉移到 auditing、verification 與 integration。
Conaway, E. / DORA. (2026-06-02). Finding balance in the era of tokenmaxxing.
https://dora.dev/insights/finding-balance-in-the-era-of-tokenmaxxing/
將 raw token consumption 描述為 activity / vanity metric 風險,主張從 usage 指標轉向 outcome。
Liu, Y., Widyasari, R., Zhao, Y., Irsan, I. C., & Lo, D. (2026). Debt Behind the AI Boom: A Large-Scale Empirical Study of AI-Generated Code in the Wild. arXiv:2603.28592.
304,362 verified AI-authored commits、6,275 GitHub repositories、484,606 distinct static-analysis issues;24.2% tracked introduced issues 在 latest revision 仍存在。屬近期 empirical preprint,本文不將結果外推為所有 AI 工具的固定比例。
Cotroneo, D., Improta, C., & Liguori, P. (2025). Human-Written vs. AI-Generated Code: A Large-Scale Study of Defects, Vulnerabilities, and Complexity. IEEE ISSRE 2025 / arXiv:2508.21634.
超過 500k Python / Java samples,顯示 AI 與 human code 具有不同 defect / vulnerability / complexity profile。
Molison, A. S., Moraes, M., Melo, G., Santos, F., & Assuncao, W. K. G. (2025). Is LLM-Generated Code More Maintainable & Reliable than Human-Written Code? arXiv:2508.00700.
在特定 coding-task / SonarQube 實驗下部分 LLM code 指標較佳,但複雜問題仍出現 structural risk,支持「品質結果依任務與評估域變動」。
Sun, X., Ståhl, D., Sandahl, K., & Kessler, C. (2025). Quality Assurance of LLM-generated Code: Addressing Non-Functional Quality Characteristics. arXiv:2511.10271.
Systematic review + industry workshops + empirical patch evaluation;指出研究偏重 functional correctness / security,而 industry 更重 maintainability / readability;不同 non-functional quality 間可有 trade-off。
Geruslu, V., Aliyeva, Z., & Tüzün, E. (2026). Factors Influencing the Quality of AI-Generated Code: A Synthesis of Empirical Evidence. arXiv:2603.25146.
Systematic literature review,24 primary studies;品質受 prompt、task specification、developer expertise、model / human interaction 共同影響,未形成單一好壞結論。
Minh, D. S. D., Kiet, H. T., Nguyen, T. C., Quy, N. L. P., Pham, P. H., Duong, N. D. H., & Tran, T. B. (2026). Early-Stage Prediction of Review Effort in AI-Generated Pull Requests. arXiv:2601.00753.
33,707 agent-authored PRs、2,807 repositories;研究顯示 review effort 可被結構特徵高度預測,在其設定下 20% review budget 可攔截 69% review effort。
Chowdhury, K., Banik, D., Ferdous, K. M., & Shamim, S. I. (2026). From Industry Claims to Empirical Reality: An Empirical Study of Code Review Agents in Pull Requests. arXiv:2604.03196.
研究 CRA feedback signal / merge outcomes;指出 automated reviewer 產生的 feedback 可能有大量 noise,支持「review automation 也需要 governance」。
Ogenrwot, D., & Businge, J. (2026). How AI Coding Agents Modify Code: A Large-Scale Study of GitHub Pull Requests. arXiv:2601.17581.
分析 24,014 merged agentic PRs 與 5,081 human PRs,顯示 agent-generated contribution 的 commit / files-touched pattern 與 human contributions 有實質差異。
Horikawa, K., Li, H., Kashiwa, Y., Adams, B., Iida, H., & Hassan, A. E. (2025). Agentic Refactoring: An Empirical Study of AI Coding Agents. arXiv:2511.04824.
15,451 refactoring instances、12,256 PRs;顯示 agents 也可以成為 maintainability / refactoring 工具,而非只能製造新 code。
GitClear. (2025). AI Copilot Code Quality: 2025 Look Back at 12 Months of Data.
https://www.gitclear.com/ai_assistant_code_quality_2025_research
Vendor observational analysis;本文僅把 duplicate / churn / refactor signal 當作 industry monitoring evidence,不當作 AI causality proof。
GitClear / GitKraken. (2026). The Maintainability Gap: AI Code Quality in 2026.
https://gitkraken.gitclear.com/the_ai_code_quality_maintainability_gap
Vendor observational dataset,聲稱分析 623M changes;本文只將其視為 maintainability signal,而非普遍因果結論。
Forsgren, N., Storey, M.-A., Maddila, C., Zimmermann, T., Houck, B., & Butler, J. (2021). The SPACE of Developer Productivity: There’s More to It Than You Think. ACM Queue.
對單一 activity metric / output metric 衡量 developer productivity 提供成熟外部地基。
B. Neo.K / EveMissLab 既有研究
Neo.K. 〈AI 寫得越快,屎山會長得越快嗎?AI 原生開發的新技術債〉,《表觀完好系統》10 / 12,2026-08-01.
建立 AI-Native Structural Burden、Generation–Governance Gap、Verification / Context / Provenance / Specification / Integration / Orchestration / Supervision Debt,以及 Verified, Governed, Reversible State Transitions per Unit Time。
Neo.K. 〈真正的系統在哪裡?宣告架構與有效架構的分離〉,2026.
建立 Effective Architecture / Effective Dependency,說明 code view 不是完整產品世界。
Neo.K. 〈從靜態 MSSP 到動態 MSSP:讓架構角色成為可觀察狀態〉,2026.
建立 Declared / Observed / Effective role separation 與 architecture observation / governance loop。
Neo.K. Global Completion Theory, 2026.
建立 Global Coverage Precedes Local Perfection、validation proportionality 與 completion / validation separation。
Neo.K. Global-First Completion v2 / v2.1, 2026.
建立 Instance → Pattern → Architecture → Substrate structural-defect escalation、review scope binding、technology-domain reassessment 與 Completion Supervisor。
Neo.K. 〈綠燈錯置——AI 時代「通過驗證」不等於「完成意圖」的新型不對齊〉,A01, 2026.
Neo.K. 〈局部正確與全域失敗〉,A03 v0.2, 2026.
Neo.K. 〈流程代理錯置〉,A04 v0.2, 2026.
Neo.K. 〈驗證義務膨脹與 Completion Drift〉,A05 v0.2, 2026.
End of A06 v0.2