Files
vibe-coding-cn/.github/metadata/gongfa/source-selected-candidate-amortized-analysis-20261014.txt
T
tradecatlabsandGitHub 85fc782fc3 docs: gongfa/faqi - continue source and semantic review (#139)
* docs: gongfa-faqi - clarify registry counts

* docs: gongfa - clarify candidate semantics and provenance

* docs: gongfa - disambiguate candidate identifiers

* docs: gongfa - defer composite uncertainty candidate

* fix: faqi - restore auto-tmux executable modes

* docs: gongfa - qualify literature synthesis candidate

* docs: faqi - record pinned asset placeholder boundary

* docs: gongfa - narrow retrieval audit candidate scope

* docs: gongfa - defer amortized analysis pending source freeze

* docs: faqi - disclose unresolved asset placeholders

* docs: gongfa - qualify proof-kernel candidate scope

* docs: faqi - guard pinned asset placeholders

* docs: gongfa - defer causal audit without frozen scope

* docs: gongfa - separate drift and OOD candidates

* docs: faqi - clarify doctor placeholder false positive

* docs: gongfa - separate confidence escalation

* docs: gongfa - freeze ML review selection

* docs: gongfa - qualify ML source support

* docs: gongfa - freeze exact title matches

* docs: gongfa - qualify metacognition sources

* docs: gongfa - review causal feature ablation

* docs: faqi - trace asset placeholder history

* fix: faqi - validate asset links and license sources

* docs: gongfa - record 85 principle reviews

* docs: gongfa - review software engineering candidates

* fix: auto-tmux - align reference audit with quick links

* docs: gongfa - review software engineering entries 5-9

* docs: gongfa - review software engineering entries 10-15

* docs: gongfa - review controlled evolution loop

* docs: gongfa - review programming entries 0-4

* docs: gongfa - review programming entries 5-9

* docs: gongfa - review programming entries 10-14

* docs: gongfa - review programming entries 15-17

* docs: gongfa - review problem-solving entries 0-4

* docs: faqi - record Skill Seekers CLI boundaries

* docs: gongfa/faqi - continue bounded review

* docs: gongfa/faqi - review information sources

* docs: gongfa - review information science entries 4-5

* docs: gongfa - refine analogy candidate review

* docs: gongfa/faqi - review algorithm and runtime evidence

* docs: gongfa/faqi - review search methods and license scope

* docs: gongfa/faqi - review state and cache semantics

* docs: faqi/tmux - inventory pinned license notices

* docs: gongfa - review algorithm source boundaries

* fix: faqi - bind pinned license notice evidence

* docs: gongfa - review machine-learning evaluation methods

* docs: gongfa - review machine-learning entries 5 to 8

* docs: faqi - record oh-my-tmux logo license source

* docs: faqi - reconcile catalog counts

* docs: github - remove mandatory approval requirements
2026-10-16 20:56:50 +08:00

98 lines
6.7 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 2026-10-14 摊销分析候选的有限冻结选区
> 本文件冻结一条 Solve `MethodSpec`供语义与来源支持审查;不是第二份正文、已接受的项目候选、登记、评级、许可或效果验证。
## 快照清单
- 捕获时间:`2026-10-14T10:09:29Z`。
- 触发:完成候选D“摊销分析”的来源与身份核对;owner:功法元数据子域维护者;退役:候选处理决定归档后转为只读历史证据并保留,不删除。
- 来源根目录:`/home/lenovo/.pi/agent/`;Pi agent仓库HEAD:`ddee69426d133253c4ef89fdeb089818f5ee5e36`。
- Solve pack:`skills/workflow/modules/solve/references/packs/algorithms.json`;pack ID/version:`psoa.pack.algorithms@1.0.0`;pack SHA-256:`f1d2378c0b696527138afdcf3f213dee9957a5340aaec3671b6ddd2f0cb3f3be`;选择器为`.entries`零基索引`0`、原文件第7行,记录ID为`psoa.algorithms.amortized-analysis`。捕获时该pack文件与HEAD一致;Solve工作区的`VERSION`、`references/catalog.json`、`references/source-inventory.json`另有未提交改动,不据此冒称完整Solve发布版本。
- 原引用键映射来自当时未提交的`skills/workflow/modules/solve/references/source-inventory.json`,SHA-256为`5315782f2ee45cf9b401322d393fb8b065aab1c98b38d6d2fa0ef4098e95a06a`:`ref:mit-algorithms` → <https://ocw.mit.edu/courses/6-046j-design-and-analysis-of-algorithms-spring-2015/>;`ref:cs2023` → <https://csed.acm.org/wp-content/uploads/2024/04/CS2023-Final-Report.pdf>。只绑定当时映射,不代表引用原文支持。
- 补充来源核验:MIT OCW 2015春季6.046J [Lecture 5: Amortization](https://live.ocw.mit.edu/courses/6-046j-design-and-analysis-of-algorithms-spring-2015/13e2c7d165259712327af0af312a068e_MIT6_046JS15_lec05.pdf);ACM/IEEE-CS/AAAI [CS2023 Body of Knowledge PDF](https://csed.acm.org/wp-content/uploads/2024/04/3.1-Body-of-Knowledge-1.pdf),PDF第30页(正文页码)。当前`ref:cs2023`登记的`CS2023-Final-Report.pdf`返回HTTP 404;替代PDF来自同一官方站点,不回写Solve来源清单,也不冒称为登记URL的原字节。
## 来源支持与语义边界
- MIT课程主页说明课程覆盖有效算法设计与分析,但未在主页摘要中展开摊销分析步骤。补充Lecture 5明确介绍aggregate、accounting、charging与potential methods,并以动态表扩容、二进制计数器和搜索树为例;还说明摊销成本“可以是、但不必是”平均成本,摊销分配的总和须覆盖操作序列的实际总成本,势函数法还须保持势能不低于初始值。该讲义支持算法/数据结构操作序列上的摊销分析,但不是Solve记录原`source_refs`中的精确讲义选区;许可未核验。
- CS2023 Body of Knowledge第30页将`Amortized analysis`列入`AL-Complexity: Complexity`的`KA Core`,与`CS Core`分列;据此不能推断每个计算机科学项目都必须把它作为CS Core教学要求。该文件是课程分类材料,不是摊销推导的完整教程。
- 摊销分析不是期望值或统计意义上的平均情况分析。它在给定成本模型与操作序列条件下,证明序列总成本上界,并可给出每种操作的摊销成本;不能据此声称每次实际操作都有相同成本或响应时延满足硬上限。
- Solve摘要中的“估算平均代价”有歧义,可能被误解为概率平均;原记录后续步骤提到聚合/记账/势函数,但没有明确列出charging method和初始势函数约束。若未来形成新来源修订,建议用“证明操作序列的总成本界,并明确摊销分配方法及边界条件”表述;将其用于agent loop、缓存或增量流程还需另行定义状态、成本单位、操作序列与响应时延合同,算法教材不证明这些软件场景的收益。
- 对现有410项总表Markdown与Excel做了限定关键词检索(“摊销分析”“amortized analysis”“势函数”“记账法”“操作序列”等),未命中同名或显式同义条目。此为词项级定位,不是556→410完整语义去重;与一般复杂度约束、阿姆达尔定律、利特尔法则不同,不足以独立证明全表无重复。
**处理结论:**摊销分析可作为算法分析领域的独立方法主题与既有一般复杂度/性能方法区分;MIT讲义直接支持核心方法,CS2023支持其课程分类,但原Solve引用映射过宽且CS2023原登记URL失效。故本轮冻结来源用于人工审查,不分配项目ID、不写入机器登记或总表、不赋初评/品级、不声称应用效果。若要进入项目候选登记,须形成可追溯来源修订、固定MIT讲义与CS2023文件版本/许可,并审查是否收录算法专用方法;原“平均代价”措辞须先消除统计平均歧义。
## 冻结的Solve记录
```json
{
"id": "psoa.algorithms.amortized-analysis",
"version": "1.0.0",
"kind": "MethodSpec",
"origin": "source",
"source_key": "algorithms.amortized-analysis",
"name": "Amortized Analysis",
"name_zh": "摊销分析",
"domain": "algorithms",
"status": "experimental",
"summary": "不只看单次最坏成本,而是在一串操作上用势函数或记账方法估算平均代价。",
"core_question": "连续操作的总成本到底由什么决定?",
"operation": "定义操作序列和势函数 → 计算实际/摊销代价 → 求总界 → 与预算比较",
"agent_use": "评估 agent loop、缓存和增量流程的长期成本。",
"applicability": {
"when": [
"单次操作昂贵但状态可积累或释放。"
],
"not_when": [
"一次性操作且没有跨步骤状态。"
]
},
"source_refs": [
"ref:mit-algorithms",
"ref:cs2023"
],
"governance": {
"risk_level": "low",
"permission_decision": "harness_policy",
"outcome_decision": "verifier",
"sensitive_values": "reference_only"
},
"semantics": {
"preconditions": [
"操作序列、状态和成本度量可定义。"
],
"steps": [
{
"order": 1,
"instruction": "列出实际操作成本和状态变化"
},
{
"order": 2,
"instruction": "选择势函数、聚合或记账方案"
},
{
"order": 3,
"instruction": "证明每步摊销代价及总和上界"
},
{
"order": 4,
"instruction": "按真实规模与预算评估"
}
],
"stop_conditions": [
"总成本界与资源预算可比较。",
"状态或成本无法观测。"
],
"success_conditions": [
"得到可解释的序列成本上界和热点。"
],
"evidence_required": [
"成本模型、势函数/记账规则、推导、规模和测量。"
],
"failure_modes": [
"势函数不下界或漏记状态转移。",
"平均界掩盖单次硬实时约束。"
]
}
}
```