diff --git a/ishenwei/blogwatcher/2026-05-01.md b/ishenwei/blogwatcher/2026-05-01.md new file mode 100644 index 00000000..67cbd5c5 --- /dev/null +++ b/ishenwei/blogwatcher/2026-05-01.md @@ -0,0 +1,330 @@ + +## 📦 新增 95 篇 (06:01:37) + +### 【Tech With Tim - YouTube】 + +- [The State of Software Engineering in 2026](https://www.youtube.com/watch?v=WOPIoZuD1og) + Stop paying hundreds of dollars for multiple AI subscriptions when you can access the same models and features from nexos.ai: https://nexos.ai/twt In ... + +### 【Jon Law - YouTube】 + +- [This AI Generates Production-Ready 3D Models From a Single Image | How to Use Tripo AI P1.0](https://www.youtube.com/watch?v=i74P93Ta3PM) + Get a Discount on Tripo: https://studio.tripo3d.ai/home? invite_code=AT2G6Q&utm_source=youtube&utm_medium=kol&utm_campaign=kol_JonLawUsers who sign up... + +### 【TEDx Talks - YouTube】 + +- [I cured 1,000 blind people—then learned the real problem | Jeffrey Levenson | TEDxJacksonville](https://www.youtube.com/watch?v=-pfSAnluhVo) + What if preventable blindness isn’t a medical failure—but a systemic one? This is the story of 25 million Americans trapped in a healthcare gap, and t... + +- [So you're a sophomore, what now? | Briana Wheeler | TEDxMurfreesboro](https://www.youtube.com/watch?v=J0tH33ITjfo) + Professional athletes, musicians, and 15-year-olds all share one fear: the sophomore slump. High school English teacher Brianna Wheeler draws on three... + +- [Success Redefine | Beyond the Finish Line and False Labels | Joyce Wang | TEDxRDFIS Youth](https://www.youtube.com/watch?v=qScx16ABlz0) + Joyce's story is one of "breaking and rebuilding". An unexpected wrist fracture caused the identity she had built on "perfection" and "victory" to cru... + +- [The Option of Art | Omair Rana | TEDxKingston College Lahore](https://www.youtube.com/watch?v=qkFRdg97qac) + The Option of Art explores art not just as a discipline, but as an essential way of living. It highlights how art shapes our perspectives, fuels creat... + +- [Build brave spaces where people can bloom | Kara Kemp | TEDxMurfreesboro](https://www.youtube.com/watch?v=N4mgvpMCr0s) + The story we tell about ourselves is often the hardest one to start. As a storytelling coach with nearly two decades of experience, Kara Kemp knows th... + +- [SUCCESS Not A Mountain, but An Open Field | Yiran Han | TEDxRDFIS Youth](https://www.youtube.com/watch?v=5ZI0xIJzqPQ) + Angeline, through the bliss of losing herself in creating a 10-second melody, and the inner peace of running freely on the playground before exams, di... + +- [How We Break Vicious Cycles for Animals, and for Ourselves | Thea Xuan | TEDxRDFIS Youth](https://www.youtube.com/watch?v=kVZ9eL4s-jM) + Involution does not only take a toll on human beings, but also drags animals into the cruel system built by humans to satisfy their own needs. Taking ... + +- [Anti-Involution: Redefine Success | Teodora Raicevic | TEDxRDFIS Youth](https://www.youtube.com/watch?v=yeh32f4cASc) + Teodora opens with the fable of "the eagle that strayed into a flock of chickens", a vivid metaphor for the universal dilemma of people losing themsel... + +- [THE PATH TO SUCCESS: FROM INVOLUTION TO INNOVATION | Snow Dong | TEDxRDFIS Youth](https://www.youtube.com/watch?v=I-Z2t963KTA) + Snow uses the economic metaphor of the "Red Ocean" and the "Blue Ocean" to argue that the key to success lies not in how much effort you put in, but i... + +- [ANTI-INVOLUTION | REDEFINE SUCCESS | Cheryl Dublar | TEDxRDFIS Youth](https://www.youtube.com/watch?v=HiOQpgoqBgI) + Dr. Cheryl Dublar, as an educator, offers a profound analysis of the widespread "involution" dilemma in modern education and life: a vicious cycle whe... + +### 【灵姐说AI | Ling Talk AI - YouTube】 + +- [GPT Image2 太猛了:不只是图好看,而是在替你做视觉创意引擎 | Open AI](https://www.youtube.com/watch?v=YJTtek7IL2E) + GPT Image2 惊艳了!它已经不只是“图好看”这么简单,而是在替内容创作者、设计师、电商从业者和AI玩家,搭建一个真正可复用的视觉创意引擎。这期视频我会结合自己的实测过程,分享 GPT Image2 这次升级最关键的变化:为什么它不只是生图模型,而是开始具备“先想再画”的任务理解能力;为什么它... + +### 【Greyson Zhang - YouTube】 + +- [【別再用錯音樂了】5個YouTube無版權音樂網站|最後一個超神](https://www.youtube.com/watch?v=w0hJTOvvC5Q) + 加入最好的創作者成長搞錢社群 👉 https://www.greysonzhang.com/membership免費公開課|2026 YouTube 成長藍圖 👉 https://www.greysonzhang.com/2026-yt一對一咨詢 👉 https://calendly.com/gre... + +### 【李哈利Harry - YouTube】 + +- [AI工具排行榜大公開!從神級到最爛全實測(這幾個真的別再用…)](https://www.youtube.com/watch?v=kQa60ouw4XY) + 🌟 加入AI大師社群並運用AI創業賺錢:https://www.skool.com/aiagent/about?ref=f2b566934c5c4639aaa47ab1fe39310e📌 加入我的免費 Skool 社群,獲取模板:https://www.skool.com/aiagent8/abou... + +### 【Coursera - YouTube】 + +- [How Cosmetic Products Go From Idea to Market](https://www.youtube.com/watch?v=DVCEmmsporY) + Bringing a cosmetic product to market requires more than a great idea. This lecture explores how proof of concept, market research, financial planning... + +- [How Data Poisoning Breaks AI Models](https://www.youtube.com/watch?v=6WbcDKoJP9M) + Modern AI systems are powerful, but they’re not immune to hidden risks. A recent study revealed that inserting just a few hundred malicious documents ... + +- [Principles of Cosmetic Product Design](https://www.youtube.com/watch?v=BpxdNA3_bKY) + What makes a cosmetic product truly stand out? This lecture explores the key principles of cosmetic product design—from understanding consumer needs a... + +- [What Does a Marketing Automation Specialist Do?](https://www.youtube.com/watch?v=e8zVVt0oeU8) + Marketing automation is transforming how businesses connect with customers—and creating exciting new career opportunities in the process. This video e... + +- [This New Tech Career Is Blowing Up (And No One’s Talking About It)](https://www.youtube.com/watch?v=es3rKst6YCs) + Wellness tech consultants are shaping the future of health—using data from wearables, AI, and behavior science to help people improve performance, red... + +### 【零度解说 - YouTube】 + +- [OpenClaw 免费接入 GPT Images 2.0 最强AI图片模型!无需 API Key、不耗 Token,5 分钟搞定! | 零度解说](https://www.youtube.com/watch?v=5g1AJwNNdwg) + 【更多资源】▶https://bittly.cc/lingdu【零度博客】▶https://www.freedidi.com【加入会员】▶https://www.youtube.com/channel/UCvijahEyGtvMpmMHBu4FS2w/join【高级会员】▶https://bittl... + +### 【Bloomberg Originals - YouTube】 + +- [How NFL Legend Steve Young Built a $10 Billion Fund | The Deal](https://www.youtube.com/watch?v=e4rTYZYRGao) + Alex Rodriguez and Jason Kelly sit down with three-time Super Bowl champion Steve Young to discuss the challenges faced and lessons learned on his jou... + +- [Humanoid Robots and the Gap Between Hype and Reality | Bloomberg Primer](https://www.youtube.com/watch?v=UQZooauU-FQ) + Humanoid robots that use AI are moving from viral videos to real-world work. From artificial intelligence training and data gaps to factory trials and... + +### 【Reuters - YouTube】 + +- [Court filings raise questions over who shot officer at press dinner](https://www.youtube.com/watch?v=VYvoAcxcEx4) + Court filings raised questions about officials' initial assertions that a gunman shot a Secret Service officer while allegedly attempting to assassina... + +- [Brazil's Abrolhos corals drop 15% as climate warms](https://www.youtube.com/watch?v=KhqaRJFOGXw) + Coral cover on Brazil's Abrolhos reefs, the most biodiverse coral ecosystem in the South Atlantic, fell by around 15% over 18 years due to climate cha... + +- [Comey prosecution over seashell post is flawed, experts say](https://www.youtube.com/watch?v=7aO_HBvAFfA) + Legal experts say the indictment of former FBI director James Comey over an Instagram post reading '86 47' is fundamentally flawed and would be dismis... + +- [US inflation jumps as fuel prices surge; economy grows in Q1](https://www.youtube.com/watch?v=K0-fp8P-gkE) + US inflation accelerated in March as the Iran war raised gas prices, bolstering financial market expectations that the Federal Reserve could keep inte... + +- [Iran's economy strains under Gulf standoff but holds for now](https://www.youtube.com/watch?v=dYzTTDovGB8) + How well is the Iranian economy faring after weeks of conflict, closure of the Strait of Hormuz and a US blockade on its ports? A calamity, while loom... + +- [House approves $70 billion more in immigration enforcement](https://www.youtube.com/watch?v=442Ds1g2nUY) + The US House of Representatives approved a three-year budget plan that would pave the way for Congress to consider an additional $70 billion for immig... + +- [UK's Starmer says Jews are scared, vows action after stabbings](https://www.youtube.com/watch?v=nYGFXLYC3P8) + UK Prime Minister Keir Starmer vowed to protect the Jewish community and raised the country's national terrorism threat level to 'severe' from 'substa... + +- ['The Brady Bunch' home opens as immersive LA experience](https://www.youtube.com/watch?v=8LCb-TioSYU) + 'The Brady Bunch' home was transformed into an immersive experience in Los Angeles, letting fans open the fridge, sit on the furniture and walk up the... + +- [FCC chair denies White House pressure in Disney review](https://www.youtube.com/watch?v=CRd1hmPDz-Y) + FCC Chair Brendan Carr denied the White House pressured him to launch an early license review of Disney's eight ABC television stations, which was ann... + +- [Israel quietly expands control to two thirds of Gaza, maps show](https://www.youtube.com/watch?v=KwXhzIUOOg4) + Israel quietly issued new maps that show its forces now control nearly two-thirds of Gaza, with a new orange line extending beyond the area agreed to ... + +### 【BBC News 中文 - YouTube】 + +- [《穿Prada的惡魔2》歧視亞裔爭議發酵 台港觀眾怎麼看?- BBC News 中文](https://www.youtube.com/watch?v=Ni2Q-EDYCiM) + 美國電影《穿著Prada的惡魔2》週四(4月29日)在亞洲多地上映。這部相隔20年開拍續集的話題之作,在公映前發佈的預告片中,一位名叫「Jin Chao」的亞裔女配角現身,被輿論質疑歧視及強化亞裔的刻板印象。這個短短十多秒的鏡頭在中港台以至日韓等地區引發爭議,甚至出現抵制電影的聲浪。BBC中文記者在... + +- [台灣如何陷於中美角力之間?- BBC News 中文](https://www.youtube.com/watch?v=KBfd1sozIhw) + 美國總統特朗普將於5月14日訪問中國,這是他自2017年以來首次踏上北京。對中國而言,台灣問題始終是其與美國關係中最重要、也最敏感的議題。台灣是一個擁有2300萬人口的島嶼,具備自己的政府體制,但至今仍未被世界多數國家正式承認為一個國家。數十年來,台灣一直處於兩大力量之間:一方是地理位置最近的中國,... + +### 【理想生活实验室】 + +- [实验室带你过假期:2026.5.1 - 5.5 成都篇](http://www.toodaylab.com/84017) + 成都的同学们,五一假马上就要来了,已经计划了去哪里远行了吗?如果是准备在城市里好好休整一下,避开出城的“川 A 大军”,那么我们身边也同样有一些好去处值得去看看,无论自己随便逛逛,还是和家人、孩子一起出来走走,这些目的地都可以留意。首先当然是最近我们打卡过的乐高桃花源主题限时活动了。这是个限时空间,... + +- [五一入梦万花奇境,乐高品牌在成都太古里创造了一片“桃花源”](http://www.toodaylab.com/84015) + 五一小长假即将到来,大家会有怎样的安排?对于人在成都的同学们来说,当下已经有一个值得一去的目的地了——在成都太古里,乐高品牌带来了一座“桃花源”,这个快闪空间从 4 月 24 日开始,将持续到 5 月 8 日。当深受大众青睐且具有治愈感的乐高花植系列,来到了也许是中国最闲适好耍的城市——成都,此次乐... + +- [一加 Ace 6 至尊版发布,天玑 9500 领衔,要打造最极致的射击游戏体验](http://www.toodaylab.com/84016) + 4 月 28 日晚,一加举行线上发布会,正式带来一加 Ace 6 至尊版。这是一加 Ace 6 系列的又一款续作,新品延续了“游戏性能旗舰”的定位,同时配置做出了差异,并体现了当下这个时间点上一加对于产品与行业最新的理解。设计上,一加 Ace 6 至尊版有“王牌觉醒”和“金属风暴”两款配色,前者采用... + +- [今日消费资讯:《V 世代》被砍、崔然竣成为 Miu Miu 品牌挚友](http://www.toodaylab.com/84014) + 《V 世代》被砍据 The Hollywood Reporter 4 月 25 日报道,亚马逊已确认《黑袍纠察队》的衍生剧《V 世代》(Gen V)被砍。《V 世代》第一季有着出色的反响,第二季在 2025 年 10 月 22 日播完,但收视数据未达预期,这次官宣将意味着这部剧不再有第三季。《V 世... + +### 【阿榮福利味 - 免費軟體下載】 + +- [[正版購買] Camtasia 26.1.2.16723 - 電腦螢幕錄影兼影片編輯軟體](https://www.azofreeware.com/2018/03/camtasia.html) + 電腦螢幕錄影兼影片編輯軟體 - Camtasia,讓新手也能製作出專業級的影片,簡單三大步驟輕鬆製作:螢幕錄製 - 全螢幕或單獨的視窗、加入影片或圖片及聲音、插入 PowerPoint 簡報檔,編輯影片:利用方便的時間軸功能、合併或剪裁影片、加速或放慢影片播放、立即預覽,加入特效:加入高亮顯示、動畫... + +- [Clippy 1.6.11 - 支援同步的電腦剪貼簿軟體](https://www.azofreeware.com/2025/12/clippy.html) + 支援同步的電腦剪貼簿軟體 - Clippy,可以記錄文字、圖片、檔案類型的剪貼簿內容,支援點對點加密、可以同步到雲端(例如:Google Drive),可以自訂快速鍵、深色或淺色模式、智慧搜尋、用快速鍵輸入剪貼簿內容、收錄喜愛的剪貼簿內容。(阿榮福利味) 下載連結→ https://www.azof... + +- [[正版購買] Tenorshare iCareFone 9.4.2 中文版 - 取代 iTunes 的蘋果手機檔案管理軟體](https://www.azofreeware.com/2020/01/tenorshare-icarefone.html) + 取代 iTunes 的蘋果手機檔案管理軟體 - Tenorshare iCareFone,不需要安裝「iTunes」,就可以在 iPhone 手機跟電腦之間進行檔案傳輸,把手機照片匯出到電腦上,手機照片、影片、音樂、簡訊、通訊錄、程式資料備份到電腦,快速刪除 iPhone 或 iPad 中的任何資料... + +- [LibreWolf 150.0.1-1 免安裝中文版 - 強調隱私與安全的網頁瀏覽器](https://www.azofreeware.com/2025/10/librewolf.html) + 強調隱私與安全的網頁瀏覽器 - LibreWolf,修改自開放原始碼的火狐瀏覽器,主要目標是隱私、安全性、使用者自由,加強對追蹤與指紋技術的防護與安全改進,移除所有遙測(telemetry)、資料收集及干擾,並停用如 DRM 等反自由功能。(阿榮福利味) 下載連結→ https://www.azof... + +- [Dropbox 248.4.3576 離線安裝繁體中文版 - 全自動檔案同步軟體](https://www.azofreeware.com/2011/08/dropbox-1135.html) + 簡單易用的同步工具 - Dropbox,安裝時會自動於選取的路徑產生「Dropbox」資料夾,而只要移到這個資料夾中任何檔案或資料夾都會即時自動同步到 Dropbox 網站,而殺手級的應用就是拿來實現 A 電腦跟 B 電腦的檔案自動同步,不管走到哪,「Dropbox」資料夾變成你的「行動資料夾」,還... + +- [3DP Chip 26.04 免安裝中文版 - 羽量級驅動程式下載軟體](https://www.azofreeware.com/2012/01/3dp-chip-1112.html) + 驅動程式下載工具 - 3DP Chip,自動偵測你的電腦硬體規格(CPU、主機板、顯示卡、音效卡),直接按設備名稱,就能夠連到該軟體的網站下載適合的驅動程式,可以省去找驅動程式的時間。(阿榮福利味) 下載連結→ https://www.azofreeware.com/p/3dp-chip.html ... + +- [Horodruin 2026.04.840.0 免安裝版 - 將多個資料夾內容同步為一樣的免費軟體](https://www.azofreeware.com/2025/06/horodruin.html) + 將多個資料夾內容同步為一樣的免費軟體 - Horodruin,先將要同步的資料夾一個一個加入,再分析資料夾內容(Sources→Analyze),最後按下內容同步(Sources→Synchornize),就可以將所有資料夾內的檔案變成全部一樣,還可以儲存為專案,以便隨時切換執行不同的同步任務。(阿... + +### 【Engadget - Technology News & Expert Reviews】 + +- [Meta says it may withdraw its apps from New Mexico if judge agrees to the state's demands](https://www.engadget.com/2161607/meta-says-it-may-withdraw-its-apps-from-new-mexico-if-judge-agrees-to-the-states-demands/) + Welcome to the Land of Enchantment.... + +- [Modder releases loader to turn the PS5 into a Linux system](https://www.engadget.com/2161587/modder-releases-loader-to-turn-the-ps5-into-a-linux-system/) + Linux is having a very busy year.... + +- [Prime Video will stream three Duke basketball games next season](https://www.engadget.com/2161567/prime-video-will-stream-three-duke-basketball-games-next-season/) + This marks Amazon's first streaming deal with a college team.... + +- [You can now choose which games use Quick Resume on Xbox](https://www.engadget.com/2161516/you-can-now-choose-which-games-use-quick-resume-on-xbox/) + The option is part of a collection of updates Microsoft is making to consoles and the Xbox PC app.... + +- [The minimalist Light Phone III will soon support a curated set of third-party apps](https://www.engadget.com/2161468/the-minimalist-light-phone-iii-will-soon-support-a-curated-set-of-third-party-apps/) + An SDK will allow developers to start building non-commercial tools soon.... + +- [City of None is the next game from the co-creator of Celeste](https://www.engadget.com/2161453/city-of-none-is-the-next-game-from-the-co-creator-of-celeste/) + Extremely OK Games is publishing the project.... + +- [Anbernic's swiveling retro handheld will be available May 11](https://www.engadget.com/2161434/anbernics-swiveling-retro-handheld-will-be-available-may-11/) + The RG Rotate starts at just $88.... + +- [LG's UltraGear evo 5K gaming monitor is available to pre-order](https://www.engadget.com/2161419/lgs-ultragear-evo-5k-gaming-monitor-is-available-to-pre-order/) + The monitor uses a Mini LED screen and supports AI upscaling for lower resolution content.... + +- [Microsoft Flight Simulator 2024 support for PlayStation VR2 is now live](https://www.engadget.com/2161381/microsoft-flight-simulator-2024-support-for-playstation-vr2-is-now-live/) + Asobo Studio says it also improved the game's performance with the latest update.... + +- [Senate Judiciary Committee unanimously approves AI chatbot age verification](https://www.engadget.com/2161370/senate-judiciary-committee-unanimously-approves-ai-chatbot-age-verification/) + It's a rare moment of working across the aisle.... + +### 【异次元软件世界】 + +- [Warp 开源了!高性能现代化设计的跨平台 AI 终端工具 (视频使用教程)](https://www.iplaysoft.com/warp.html) + 你上一次认真把玩命令行终端软件是什么时候?估计大部分人的答案都是:不折腾,能用就行。毕竟终端这玩意儿,从 70 年代到现在,核心交互就没变过:一个黑框框,敲命令,看输出。 而最近一款 Rust 开发的高性能、原生 AI 驱动的现代化 SSH 终端软件 Warp,突然宣布开源!GitHub 星标一夜冲... + +### 【小众软件】 + +- [Copy Fail:2017年至今的漏洞,一个脚本获得 Linux root 管理员权限|CVE-2026-31431](https://www.appinn.com/copy-fail-cve-2026-31431/) + 只需要10行代码,就能获得自2017年至今大多数 Linux 发行版本的 root 权限。史称 Copy Fail,漏洞编号 CVE-2026-31431 先看提权演示视频 演示代码 代码来自这里,请仅在自己的机器上测试该漏洞: Linux 里有一种比较底层的接口,叫 AF_ALG,用来给... + +- [Vim 替代者?微软开源命令行编辑器 Edit 2.0.0 发布,新增语法高亮功能,大小不到 300kB](https://www.appinn.com/microsoft-edit-v2/) + Edit 是微软去年开源的命令行编辑器,它支持鼠标控制菜单、可同时打开多个文件、拥有查找与替换功能、支持自动换行。2.0.0 版本新增语法高亮功能,增加了40KB,使体积达到了 294KB(Linux 下)。@Appinn Edit 支持 Windows、Linux 与 macOS,不过 Windo... + +- [iStat Menus 7 – macOS 必备,优雅的系统监控工具](https://www.appinn.com/istat-menus-7/) + iStat Menus 7 是老牌 macOS 系统监控工具,以监控信息全面与设计优美著称。它可以在菜单栏显示 CPU、内存、硬盘、网络、温度、风扇、电池等信息,可高度自定义。@Appinn iStat Menus 7 大概是 Mac 老牌工具中极少没有同品质替代品的工具了。青小蛙也是用了很多年,以... + +- [著名终端 Warp 开源,由 OpenAI 赞助](https://www.appinn.com/warp-open-source-now/) + Warp 在官方博客上宣布开源:Warp is now open-source,采用 AGPL 许可。OpenAI 是新的开源 Warp 创始赞助商。目前其 GitHub 仓库已经获得了34.7K 星星。@Appinn Warp 是一款非常著名的跨平台终端工具,它结合了 AI、编辑器,用最不像终端的... + +- [Notepad++ for Mac 发布,全新项目,与原版、原作者无关](https://www.appinn.com/notepad-plus-plus-for-mac/) + Notepad++ for Mac 是一个无 Wine,无模拟,完全原生移植,支持 Apple Silicon 和 Intel Mac 的文本编辑器。@Appinn 先别骂!全新的项目 注意,这是一个全新的项目,开发者说: Notepad++ 的 Mac 版本基于官方的 Notepad++ 源代码开... + +### 【TED Talks Daily】 + +- [Reimagining traditional architecture for modern needs | Riyad Joucka](http://go.ted.com/riyadjoucka) + Architect Riyad Joucka believes your home should be a mirror of who you are. Using 3D printing and ancient architectural wisdom, he's designing effici... + +- [The "hot shot rule" to help you become a better leader | Kat Cole (re-release)](http://go.ted.com/katcole) + Confidence doesn’t come before action — it comes from taking action, says business leader Kat Cole, who worked her way up from waitress to CEO of a gl... + +### 【Slashdot】 + +- [French Prosecutors Link 15-Year-Old To Mega-Breach At State's Secure Document Agency](https://it.slashdot.org/story/26/04/30/1949206/french-prosecutors-link-15-year-old-to-mega-breach-at-states-secure-document-agency?utm_source=rss1.0mainlinkanon&utm_medium=feed) + French prosecutors say police detained a 15-year-old suspected of using the alias "breach3d" in connection with a cyberattack on France Titres (ANTS),... + +- [World's Largest Digital Human Rights Conference Suddenly 'Postponed'](https://news.slashdot.org/story/26/04/30/1822210/worlds-largest-digital-human-rights-conference-suddenly-postponed?utm_source=rss1.0mainlinkanon&utm_medium=feed) + RightsCon, one of the world's largest digital human rights conferences, was suddenly postponed by Zambia's government just days before it was schedule... + +- [Microsoft Open-Sources 'Earliest DOS Source Code Discovered To Date'](https://news.slashdot.org/story/26/04/30/1814205/microsoft-open-sources-earliest-dos-source-code-discovered-to-date?utm_source=rss1.0mainlinkanon&utm_medium=feed) + An anonymous reader quotes a report from Ars Technica: Several times in the last couple of decades, Microsoft has released source code for the origina... + +- [Convicted Former Harvard Scientist Rebuilds Brain Computer Lab In China](https://science.slashdot.org/story/26/04/30/186256/convicted-former-harvard-scientist-rebuilds-brain-computer-lab-in-china?utm_source=rss1.0mainlinkanon&utm_medium=feed) + Reuters reports that Charles Lieber, the former Harvard scientist convicted of lying to U.S. authorities about payments and ties to China, is now lead... + +- [Most Swiss Back Initiative To Cap Population At 10 Million](https://news.slashdot.org/story/26/04/30/0541240/most-swiss-back-initiative-to-cap-population-at-10-million?utm_source=rss1.0mainlinkanon&utm_medium=feed) + A new poll shows a slim majority of Swiss voters now support a June 14 referendum to cap the country's population at 10 million by 2050. Under the pro... + +- [OpenAI Codex System Prompt Includes Explicit Directive To 'Never Talk About Goblins'](https://tech.slashdot.org/story/26/04/30/0528225/openai-codex-system-prompt-includes-explicit-directive-to-never-talk-about-goblins?utm_source=rss1.0mainlinkanon&utm_medium=feed) + An anonymous reader quotes a report from Ars Technica: The system prompt for OpenAI's Codex CLI contains a perplexing and repeated warning for the mos... + +- [DOJ Sues Cloudera For Deliberately Excluding American Workers From Tech Jobs](https://yro.slashdot.org/story/26/04/30/0533223/doj-sues-cloudera-for-deliberately-excluding-american-workers-from-tech-jobs?utm_source=rss1.0mainlinkanon&utm_medium=feed) + Longtime Slashdot reader schwit1 shares a report from ZeroHedge: The Justice Department on Tuesday sued Cloudera, accusing the enterprise data and art... + +- [First Tesla Semi Rolls Off High-Volume Production Line](https://tech.slashdot.org/story/26/04/30/0514236/first-tesla-semi-rolls-off-high-volume-production-line?utm_source=rss1.0mainlinkanon&utm_medium=feed) + Tesla has produced the first Semi from its new high-volume production line at Gigafactory Nevada, a milestone for the long-delayed electric Class 8 tr... + +- [Elon Musk Says OpenAI Betrayed Him, Clashes With Company's Attorney](https://yro.slashdot.org/story/26/04/30/0137225/elon-musk-says-openai-betrayed-him-clashes-with-companys-attorney?utm_source=rss1.0mainlinkanon&utm_medium=feed) + An anonymous reader quotes a report from the San Francisco Chronicle: Elon Musk returned to the witness stand Wednesday in Oakland federal court for a... + +- [New Sam Bankman-Fried Trial Would Be Huge Waste of Court's Time, Judge Says](https://yro.slashdot.org/story/26/04/29/1935254/new-sam-bankman-fried-trial-would-be-huge-waste-of-courts-time-judge-says?utm_source=rss1.0mainlinkanon&utm_medium=feed) + A federal judge denied Sam Bankman-Fried's request for a new trial, calling his claims of DOJ witness intimidation "wildly conspiratorial" and unsuppo... + +### 【AWS DevOps & Developer Productivity Blog】 + +- [Amazon Q Developer end-of-support announcement](https://aws.amazon.com/blogs/devops/amazon-q-developer-end-of-support-announcement/) + When we launched Amazon Q Developer, our goal was to bring AI assistance directly into the developer workflow. Customers adopted Q Developer across VS... + +### 【AI (artificial intelligence) | The Guardian】 + +- [AI outperforms doctors in Harvard trial of emergency triage diagnoses](https://www.theguardian.com/technology/2026/apr/30/ai-outperforms-doctors-in-harvard-trial-of-emergency-triage-diagnoses) + Researchers say results mark a ‘profound change in technology that will reshape medicine’From George Clooney in ER to Noah Wyle in The Pitt, emergency... + +- [Judge cuts off Musk’s AI doomsday talk as his testimony ends in Open AI case](https://www.theguardian.com/technology/2026/apr/30/openai-founding-trial-elon-musk-sam-altman) + Trial continues after heated back-and-forth during OpenAI’s cross-examination of the Tesla CEOElon Musk’s court case against Sam Altman continued on T... + +- [Spotify rolls out ‘Verified’ badge to distinguish human artists from AI](https://www.theguardian.com/technology/2026/apr/30/spotify-verified-badge-human-artists-from-ai) + Green checkmark will appear on artist profiles to signal they meet the platform’s standard for authenticitySpotify on Thursday unveiled a new verifica... + +- [Samsung reports record quarterly profit as chip income jumps almost 50-fold](https://www.theguardian.com/technology/2026/apr/30/samsung-quarterly-report-ai) + The AI boom is worsening a global memory chip shortage, which Samsung predicts will continue into 2027Samsung Electronics on Thursday reported record ... + +- [It’s time to tax AI slop | Mike Pepi](https://www.theguardian.com/commentisfree/2026/apr/30/tax-ai-slop) + We are stuck in a deluge of meaningless content that threatens human creativity. Here’s a simple way to mitigate its harmsAs the US midterm elections ... + +- [Bernie Sanders urges international cooperation to halt AI’s ‘runaway train’](https://www.theguardian.com/us-news/2026/apr/29/bernie-sanders-ai-panel) + US senator holds panel with leading Chinese scientists and warns of risks to society unless new technology is regulated Bernie Sanders espoused the im... + +- [‘Your questions are designed to trick me’: combative Musk grilled over battle with Sam Altman](https://www.theguardian.com/technology/2026/apr/29/elon-musk-openai-sam-altman-lawsuit) + Lawyers for world’s richest person try to paint him as humanitarian as judge cuts off his long-winded repliesAfter a dramatic first day of opening sta... + +- [Claude-powered AI agent’s confession after deleting a firm’s entire database: ‘I violated every principle I was given’](https://www.theguardian.com/technology/2026/apr/29/claude-ai-deletes-firm-database) + PocketOS was left scrambling after a rogue AI agent deleted swaths of code underpinning its businessIt only took nine seconds for an AI coding agent g... + +- [Stephen Fry sues tech conference organisers for £100,000 over fall from stage](https://www.theguardian.com/culture/2026/apr/29/stephen-fry-sues-tech-conference-organisers-for-100000-over-fall-from-stage) + Actor and presenter broke his hip, right leg, pelvis and ribs when he gave a talk at CogX festival at O2 Arena in 2023Stephen Fry is suing two compani... + +- [Friendly AI chatbots more likely to support conspiracy theories, study finds](https://www.theguardian.com/technology/2026/apr/29/making-ai-chatbots-more-friendly-mistakes-support-false-beliefs-conspiracy-theories-study) + Chatbots programmed to respond warmly even cast doubts on Apollo moon landings and fate of Hitler, researchers sayThe rush to make AI chatbots more fr... + +### 【WSJ.com: World News】 + +- [A Jet to Caracas Becomes the Face of Trump’s Venezuela Reset](https://www.wsj.com/world/americas/a-jet-to-caracas-becomes-the-face-of-trumps-venezuela-reset-ebb5efb7) + The first U.S. commercial flight to Venezuela in years underscored the rapid thaw after the capture of strongman Nicolas Maduro, even as tensions ling... + +- [Trump’s Threat to Pull Troops From Germany Risks Eroding U.S. Power Projection](https://www.wsj.com/world/europe/trumps-threat-to-pull-troops-from-germany-risks-eroding-u-s-power-projection-13b6443d) + The president said the U.S. was reviewing the potential move after the German chancellor made critical comments about the Iran war.... + +- [The U.A.E.’s OPEC Bombshell Signals a New Middle East Order](https://www.wsj.com/world/middle-east/u-a-e-opec-new-middle-east-32ceda56) + After bearing the brunt of Iran’s counterattack, the financial powerhouse is strengthening ties with Israel and challenging Saudi Arabia.... + +- [What Brings Feuding Americans Together? A King, It Turns Out](https://www.wsj.com/world/uk/what-brings-feuding-americans-together-a-king-it-turns-out-f2d99b9a) + Charles III, with his four-day U.S. tour, helped take some of the rancor out of trans-Atlantic ties—at least for now.... + +- [Mexico’s President Questions U.S. Case Against Sinaloa Governor](https://www.wsj.com/world/americas/mexicos-president-questions-u-s-case-against-sinaloa-governor-b73571bb) + As the U.S. charges Gov. Rubén Rocha with drug trafficking, President Claudia Sheinbaum says Mexico will act based only on the case’s merits.... + +- [Jihadists Are on the Brink of an African Caliphate](https://www.wsj.com/world/africa/jihadists-are-on-the-brink-of-an-african-caliphate-831569e7) + Islamists in Mali have routed Kremlin-backed forces after confounding efforts by the West to uproot al Qaeda and its offshoots in the Sahel.... + +- [Oil Rallies to Highest Level Since Start of Iran War](https://www.wsj.com/business/energy-oil/oil-rallies-to-highest-level-since-start-of-iran-war-78f96324) + Oil prices surged to a wartime high on fears that the U.S. might resume military action against Iran to break deadlocked negotiations, prolonging supp... + +- [As Hormuz Traffic Stalls, U.S. Pitches New Coalition to Get Ships Moving Again](https://www.wsj.com/world/as-hormuz-traffic-stalls-u-s-pitches-new-coalition-to-get-ships-moving-again-85c7ea79) + A State Department cable shows the Trump administration wants other nations to form an alliance to help jump-start ship traffic.... + +- [Iranians Feel the Pain as Their Economy Descends Into a Death Spiral](https://www.wsj.com/world/middle-east/iranians-feel-the-pain-as-their-economy-descends-into-a-death-spiral-47dba669) + Businesses are closing, unemployment is soaring, and food is increasingly unaffordable.... + +- [Trump Tells Aides to Prepare for Extended Blockade of Iran](https://www.wsj.com/world/middle-east/trump-tells-aides-to-prepare-for-extended-blockade-of-iran-da3be7a4) + The president prefers decisive victories, but none of the available options provides him with a swift exit from the conflict.... + diff --git a/ishenwei/blogwatcher/2026-05-02.md b/ishenwei/blogwatcher/2026-05-02.md new file mode 100644 index 00000000..9c90425f --- /dev/null +++ b/ishenwei/blogwatcher/2026-05-02.md @@ -0,0 +1,304 @@ + +## 📦 新增 74 篇 (06:02:23) + +### 【Tech With Tim - YouTube】 + +- [I reviewed 20 AI engineering courses, here are my top 5](https://www.youtube.com/watch?v=HFmoNVx6vTA) + 🔹 Associate AI Engineer for Developers: (Datacamp) - https://datacamp.pxf.io/jRnbx5🔹 Associate Ai Engineer for Data Scientists(Datacamp) - https://dat... + +### 【huangyihe - YouTube】 + +- [内容创作者需要Wiki](https://www.youtube.com/watch?v=MvOvWCGsoWo) + ⭐️ 更多内容 👇X: https://x.com/huangyiheSubstack: https://www.newtype.proGitHub: https://github.com/newtype-01/newtype-os===========================关于本期视频=... + +### 【TEDx Talks - YouTube】 + +- [A hype man's advice on supporting others | Jake Fehling | TEDxUnity Park](https://www.youtube.com/watch?v=GullvjRyD_A) + What if hype wasn’t just for halftime? In this talk, Jake Fehling challenges us to rethink the role of hype in the workforce, in the home, and in your... + +- [Have the courage to create yourself | Vishesh Gupta | TEDxJaipur National University](https://www.youtube.com/watch?v=iPJgh58vRyg) + In a world obsessed with careers and titles, this talk challenges a deeper question: who are you becoming? Through powerful stories and a simple three... + +- [The best medicine starts outside the clinic window | Bertrand Dushimumuremyi | TEDxKigali](https://www.youtube.com/watch?v=xlpXbJ9ZUvs) + In his TEDx talk, “The Best Medicine Starts Outside the Clinic Window,” Bertrand Dushimumuremyi challenges conventional healthcare by emphasizing the ... + +- [How to Think Like Apollo and Live Like Dionysus | Meryl Poster | TEDxWakeForestU](https://www.youtube.com/watch?v=x602eVjdKJE) + Don't ask for permission; earn the right not to do so. In this bold and unapologetic TEDx Talk, Meryl Poster explains her dichotomous method for makin... + +- [Meaning First | Alex Macolino & Gus Reed | TEDxEsei School Barcelona](https://www.youtube.com/watch?v=XiX-rNf6twk) + The session explored how AI enhances what humans bring to the table, but cannot replace the fundamentals of success: love for what we do, consistency,... + +- [Bridging Academia with Communities through Voluntourism & Ecotourism | Jules NDASHIMYE | TEDxKigali](https://www.youtube.com/watch?v=E0g4hydIRPM) + What if learning didn’t end in classrooms but transformed lives in communities? In this inspiring TEDx talk, Jules Ndashimye explores how voluntourism... + +- [The Willingness to Be Laughed At | Devashish Chakravarty | TEDxJaipur National University](https://www.youtube.com/watch?v=gpmNd6w86gA) + In this TEDx talk, he argues that the willingness to be laughed at — to be publicly and visibly incompetent, and to keep going anyway — may be one of ... + +- [The Power of Discomfort | Marion Campan | TEDxSMICSchool](https://www.youtube.com/watch?v=25c0UBWZckI) + Learn about how living in discomfort once in a while can be beneficial to your daily life. Marion CAMPAN, PCC.Managing Director at INTANDID Marion Cam... + +- [Reclaim your life by letting go of unnecessary busyness | YUKI TAMAKI | TEDxMoursal](https://www.youtube.com/watch?v=UAN8YtOeWP4) + Reprendre une vie pleine de sens consiste à sortir de la suractivité inutile en faisant des choix plus conscients. Cela implique de trier ses engageme... + +- [The Power of Alternatives: Navigating Life's Upward Trajectory | Anil Somani | TEDxBRAC](https://www.youtube.com/watch?v=p7bnH2B9lFY) + In this compelling and deeply personal talk, entrepreneur and educator Anil Somani shares his extraordinary journey from a struggling student to a suc... + +### 【Coursera - YouTube】 + +- [The Science of Testing Beauty Products](https://www.youtube.com/watch?v=ef4tNJZrxUg) + Before a cosmetic product reaches the shelf, it goes through rigorous evaluation to ensure it performs well, stays stable, and delivers a strong user ... + +- [What Is a Digital Twin Career?](https://www.youtube.com/watch?v=by6LjX6prRY) + Digital twin technology is transforming industries, and creating exciting new career opportunities. Learn how virtual models powered by real-time data... + +### 【零度解说 - YouTube】 + +- [语音转文字!免费开源、本地部署 + Google AI 两套最强方案,准确率高达99%,上字幕就这么简单!| 零度解说](https://www.youtube.com/watch?v=nYJTxvrL9lk) + 【更多资源】▶https://bittly.cc/lingdu【零度博客】▶https://www.freedidi.com【加入会员】▶https://www.youtube.com/channel/UCvijahEyGtvMpmMHBu4FS2w/join【高级会员】▶https://bittl... + +### 【Bloomberg Originals - YouTube】 + +- [How a Secretive Trading Empire Is Taking Over Wall Street](https://www.youtube.com/watch?v=6LkMI6uvqZY) + High frequency trading has transformed Wall Street into a universe of algorithms. No other firm captures this digital upheaval quite like Jane Street.... + +### 【Reuters - YouTube】 + +- [Trump says Spirit Airlines was given 'a final proposal'](https://www.youtube.com/watch?v=8hncxw-9NZ4) + US President Trump said the White House gave Spirit Airlines and its creditors 'a final proposal' to rescue the bankrupt budget carrier, as the airlin... + +- [Estee Lauder to cut up to 3,000 more jobs, pursues Puig deal](https://www.youtube.com/watch?v=ojAgj9lfMCo) + Estée Lauder raised its annual profit forecast and announced up to 3,000 additional job cuts as part of a broader restructuring. Shares rose as total ... + +- [Artist twins launch bus that goes nowhere in Switzerland](https://www.youtube.com/watch?v=jiltwz-85bE) + The 'line 0' bus, a conceptual art project by Swiss twin brothers Frank and Patrik Riklin, launched in Baden, Switzerland. It offers free rides with n... + +- [Route 66 centennial soured by $6 gas](https://www.youtube.com/watch?v=arX_1ezR168) + The Route 66 highway is a symbol of carefree road trips. But Americans celebrating its 100th anniversary paid over $6 a gallon for gas in California, ... + +- [Trump says he's unsatisfied with Iran's latest deal proposal](https://www.youtube.com/watch?v=gyxMtGJh008) + President Trump said he was 'not satisfied' with Iran's latest negotiation proposal and called its leadership 'very disjointed' as the war hit a key c... + +- [Underwater robot deployed to help learn sperm whale 'click' language](https://www.youtube.com/watch?v=87F3gBT9l9Q) + Deep in the ocean, sperm whales communicate with far-reaching clicks. Scientists are now tracking those sounds in real time using an autonomous underw... + +- [Lindsey Vonn contemplates her ski racing future after Olympic crash](https://www.youtube.com/watch?v=-3agyX0KMc4) + Lindsey Vonn says she is unsure about returning to competitive skiing after suffering a complex tibia fracture and nearly losing her leg after a crash... + +- [Seeking safety, Lebanon horse club owner counts cost of war](https://www.youtube.com/watch?v=1YWoOva-2PU) + Despite a shaky ceasefire in Lebanon, ongoing violence between Israel and Hezbollah continues to impact many people who've fled their homes and lost l... + +- [Uganda court sentences man to death for killing four toddlers](https://www.youtube.com/watch?v=A9F2UJG1Acc) + A Ugandan court sentenced Christopher Okello Onyum to death for killing four children at a Kampala nursery school. Uganda rarely carries out execution... + +- [Mali insurgency threatens Russian interests in Africa](https://www.youtube.com/watch?v=bzjR4KO8XLk) + A series of reversals suffered by Mali's Moscow-backed military government has dented Russia's image as a self-styled security guarantor in Africa and... + +### 【BBC News 中文 - YouTube】 + +- [在美中之間走鋼索:越南經濟如何實現騰飛- BBC News 中文](https://www.youtube.com/watch?v=8MWiMhdQ2aE) + 越南經濟預計今年將以東南亞最快的速度增長,但由伊朗戰爭引發的油價衝擊,可能會對該國經濟增長的主要引擎製造業造成影響。2018年,中國企業將部分貿易轉向這個東南亞國家後,越南經濟出現了快速增長。事實上,在美國總統特朗普首次實施貿易關稅戰之前,越南經濟就已經處於上升軌道,且增速超越區域內其他國家。越南經... + +- [中國力推「電動卡車」 市佔率年成長超過一倍- BBC News 中文](https://www.youtube.com/watch?v=Br8C3VD2dZM) + 中國政府近年大力推動與補助電動車,躍升為全球最大生產國。電動卡車近期也正加速跟上腳步 —— 數據顯示,中國2025年卡車銷售有29%是使用新能源,這個數字在2024年是14%。隨著充電站與電池更換設施的普及,專家認為電動卡車價格上更具優勢;分析也指出,伊朗戰爭推高油價也是加速電車使用率升高的可能原因... + +### 【阿榮福利味 - 免費軟體下載】 + +- [JDownloader 2.0_20260430 免安裝中文版 - 最受歡迎萬用下載工具 免空下載器 MEGA 下載器](https://www.azofreeware.com/2009/06/jdownloader-06193.html) + JDownloader - 免費檔案空間下載工具,經測試可以下載超多免空的檔案,許多免空如果不是付費會員,下載過程中會遇到很多廣告,若你使用這個工具就不會看到廣告了,並且會自動略過驗證碼,就連貼上線上影片網址也可以直接下載影片或轉為 MP3!(阿榮福利味) 下載連結→ https://www.azo... + +- [Chromium Portable 149.0.7820.0 免安裝中文版 - Google 瀏覽器的實驗版](https://www.azofreeware.com/2008/09/chromium-021520.html) + Chromium Portable - 阿榮修改自 Chromium(Google Chrome瀏覽器開發人員版本),長得完全跟 Chrome 一模一樣,但是,所有 Google 瀏覽器的最新設計概念都源自於這個版本,可惜官方版 Chromium 僅為免安裝版,無法將設定檔儲存於程式資料夾;於是阿榮... + +- [日曆清單 CalendarTask 3.28.278.8784 中文版 - 桌面半透明月曆行事曆](https://www.azofreeware.com/2012/01/desktopcal-1081440.html) + 桌面半透明月曆行事曆 - 日曆清單 CalendarTask(舊稱:桌面日曆 DesktopCal),能夠完美吸附於 Windows 桌面,簡單在日期的格子上按兩下左鍵,就可以編輯當天的行程,按格子左下角的小圓圈,可以單獨設定格子的顏色,按頂端懸浮按鈕可以顯示/隱藏日曆,可以顯示農曆,功能簡單好用,... + +- [Soundop 2.3.0.3 - 音訊編輯軟體 類似 GoldWave](https://www.azofreeware.com/2020/02/soundop.html) + 音訊編輯軟體 - Soundop,功能類似「GoldWave」,是 Windows 專業級的聲音檔編輯工具,透過直覺且靈活的工作區,可以執行錄音、編輯、混音等進階功能,音訊檔的編輯同時支援波形及頻譜,多音軌編輯器可以混合無限的音軌,內建音效並支援 VST 及 VST3 音效外掛,支援從所有常見的影音... + +- [ExpanDrive 2026.2.12 - 雲端硬碟掛載軟體](https://www.azofreeware.com/2020/02/expandrive.html) + 雲端硬碟掛載軟體 - ExpanDrive,能夠把雲端儲存空間掛載為網路磁碟(如:Z槽),以方便檔案的存取,優點是網路傳輸速度快、內建檔案版本管理、智慧型離線同步、使用中檔案自動唯讀、整合搜尋功能,支援Dropbox、Google Drive/Google Team Drives、Box、OneDr... + +- [Chasys Draw IES 5.40.01 免安裝中文版 - 免費影像處理工具組](https://www.azofreeware.com/2015/12/chasys-draw-ies.html) + 免費影像處理工具組 - Chasys Draw IES,包含一系列的圖片處理工具,可以從軟體的「檔案」→「開始程式」中開啟各項工具,Chasys Draw IES Artist是支援圖層、動畫、小圖示的圖片編輯軟體,Chasys Draw IES Converter是圖片轉檔工具,Chasys Dr... + +- [[正版購買] Ability FTP Server 3.1.1 - FTP伺服器軟體](https://www.azofreeware.com/2020/12/ability-ftp-server.html) + FTP伺服器軟體 - Ability FTP Server(簡稱:AFS),內建許多進階功能並擁有簡單易用的介面,只需要幾分鐘就可以完成設定,提供使用者帳戶的控管,以及進階的伺服器動態監控功能,遠端管理功能讓你能夠從任何地方管理伺服器,功能有256位元SSL加密、FXP、Anti-Hammering... + +- [Blender 5.1.1 免安裝中文版 - 跨平台 3D 繪圖軟體 免費動畫製作軟體](https://www.azofreeware.com/2014/03/blender-270-3d.html) + 跨平台 3D 繪圖軟體、免費動畫製作軟體 - Blender,具有三維繪圖、渲染、動畫、後期製作、交互式創作、播放等功能,被許多知名藝術家所採用,也被應用於製片工業(如:蜘蛛人 2 的分鏡腳本繪製),支援匯入格式:DAE、BVH、SVG、PLY、STL、3DS、FBX、OBJ、X3D,匯出格式:DA... + +- [CudaText 1.234.2 免安裝版 - 跨平台免費文字編輯器](https://www.azofreeware.com/2020/08/cudatext.html) + 跨平台免費文字編輯器 - CudaText,使用 Lazarus 所開發的開源專案,支援多頁籤功能,無限制大小的二進制 / 十六進制檢視器,可以檢視 10GB 大的 Log 檔,特色是:啟動速度快、支援 Python 外掛、支援 230 種以上的程式碼高亮度顯示、語法樹、語法摺疊、支援規則運算式的搜... + +- [Bitwarden 2026.3.1 中文版 - 跨平台的免費密碼管理器](https://www.azofreeware.com/2021/03/bitwarden.html) + 跨平台的免費密碼管理器 - Bitwarden,支援電腦、瀏覽器外掛、手機程式端、網頁管理界面,採用點對點 AES-256 加密、salted hashing、PBKDF2 SHA-256 加密法保護你的密碼隱私資訊,嚴守資訊安全不外洩,可定時上鎖不怕忘記登出讓別人看光光。密碼資料自動即時同步,多裝... + +### 【Engadget - Technology News & Expert Reviews】 + +- [AI performances and screenplays won't be eligible for Oscars](https://www.engadget.com/2162342/ai-performances-and-screenplays-wont-be-eligible-for-oscars/) + Will that stop them from taking over?... + +- [Apple appears to have discontinued its cheapest Mac mini](https://www.engadget.com/2162334/apple-appears-to-have-discontinued-its-cheapest-mac-mini/) + The compact desktop Mac now starts at $799 and comes with 512GB of storage.... + +- [There's already a way to mount your smartphone to a Steam Controller](https://www.engadget.com/2162203/theres-already-a-way-to-mount-your-smartphone-to-a-steam-controller/) + Just don't expect it to work with many iOS or Android apps yet.... + +- [LG's 2026 Gram laptop lineup starts at $1,150](https://www.engadget.com/2162125/lg-2026-gram-laptop-lineup-starts-at-1150/) + They're available today from LG's website.... + +- [It's Bandcamp Friday again](https://www.engadget.com/2162117/its-bandcamp-friday-again/) + What are you buying today?... + +- [Oura adds more detailed hormonal health insights to its Series 3 and 4 rings](https://www.engadget.com/2162066/oura-adds-more-detailed-hormonal-health-insights-to-its-series-3-and-4-rings/) + The system will track potential side effects of various birth control methods.... + +- [Amazon Web Services, Microsoft and NVIDIA will provide AI tech to Pentagon](https://www.engadget.com/2161995/amazon-web-services-microsoft-and-nvidia-will-provide-ai-tech-to-pentagon/) + They join Google, OpenAI and xAI.... + +- [Engadget Podcast: Is the Valve Steam Controller worth $100?](https://www.engadget.com/2161921/engadget-podcast-is-the-valve-steam-controller-worth-dollar100/) + And why it's not exactly a PC gamepad.... + +- [Nissan abandons plans for US EV plant](https://www.engadget.com/2161887/nissan-abandons-plans-for-us-ev-plant/) + So much for 200,000 EVs a year.... + +- [The Morning After: Instagram will try to penalize 'unoriginal' posts](https://www.engadget.com/2161838/instagram-unoriginal-posts-penalize-engadget-newsletter/) + Did Instagram put its feed slop on notice?... + +### 【异次元软件世界】 + +- [Parallels Desktop 26 官网限时 5.5 折!新功能汇总 / Mac 虚拟机升级](https://www.iplaysoft.com/p/parallels-desktop-26) + 作为一名长期使用 Mac 却离不开使用各种 Windows 软件的用户,我算是 Parallels Desktop 的老朋友了。从 Intel 芯片时代用到现在的苹果芯片 Apple Silicon,PD 一步步变得越发强大。 「新版 PD26 官网限时 5.5 折特价!历史新低」 获取:PD26 ... + +### 【TED Talks Daily】 + +- [Why AI is unlikely to become conscious | Anil Seth](http://go.ted.com/anilseth26) + We see consciousness in AI the same way we see faces in clouds, says neuroscientist Anil Seth. He explores the all-too-human tendency to project inner... + +### 【Slashdot】 + +- [Pentagon Reaches Agreements With Top AI Companies, But Not Anthropic](https://yro.slashdot.org/story/26/05/01/1913249/pentagon-reaches-agreements-with-top-ai-companies-but-not-anthropic?utm_source=rss1.0mainlinkanon&utm_medium=feed) + The Pentagon says it has reached deals with seven AI companies -- SpaceX, OpenAI, Google, Nvidia, Reflection AI, Microsoft, and AWS -- to deploy their... + +- [ICANN Opens Applications For New Generic Top-Level Domains](https://tech.slashdot.org/story/26/05/01/1838209/icann-opens-applications-for-new-generic-top-level-domains?utm_source=rss1.0mainlinkanon&utm_medium=feed) + ICANN has opened applications for new generic top-level domains for the first time since 2012. The Register reports: ICANN hasn't offered new gTLDs si... + +- [The Case Against an Imminent Software Developer Apocalypse](https://developers.slashdot.org/story/26/05/01/1711213/the-case-against-an-imminent-software-developer-apocalypse?utm_source=rss1.0mainlinkanon&utm_medium=feed) + ZipNada shares a report from ZDNet: Given the dour headlines as of late concerning the diminishing amounts of entry-level software development jobs, c... + +- [GPT-5.5 Matches Heavily Hyped Mythos Preview In New Cybersecurity Tests](https://it.slashdot.org/story/26/05/01/1658212/gpt-55-matches-heavily-hyped-mythos-preview-in-new-cybersecurity-tests?utm_source=rss1.0mainlinkanon&utm_medium=feed) + An anonymous reader quotes a report from Ars Technica: Last month, Anthropic made a big deal about the supposedly outsize cybersecurity threat represe... + +- [Spotify Adds 'Verified' Badges To Distinguish Human Artists From AI](https://entertainment.slashdot.org/story/26/05/01/1650254/spotify-adds-verified-badges-to-distinguish-human-artists-from-ai?utm_source=rss1.0mainlinkanon&utm_medium=feed) + Spotify is adding "Verified by Spotify" badges to distinguish human artists from AI-generated personas, using signals like linked social accounts, con... + +- [Hackers Are Actively Exploiting a Bug In cPanel, Used By Millions of Websites](https://it.slashdot.org/story/26/05/01/0631257/hackers-are-actively-exploiting-a-bug-in-cpanel-used-by-millions-of-websites?utm_source=rss1.0mainlinkanon&utm_medium=feed) + Hackers are actively exploiting a critical cPanel and WHM vulnerability, tracked as CVE-2026-41940, that allows remote attackers to bypass the login s... + +- [The California Government Is Coming For Your E-Bikes](https://tech.slashdot.org/story/26/05/01/0132241/the-california-government-is-coming-for-your-e-bikes?utm_source=rss1.0mainlinkanon&utm_medium=feed) + An anonymous reader quotes a report from the San Francisco Standard: If state lawmakers have their way, you'll have to get a license plate for your e-... + +- [The Invisible Force Making Food Less Nutritious](https://news.slashdot.org/story/26/05/01/0123239/the-invisible-force-making-food-less-nutritious?utm_source=rss1.0mainlinkanon&utm_medium=feed) + fjo3 shares a report from the Washington Post: Surging concentrations of carbon in the atmosphere, caused largely by burning fossil fuels, have produc... + +- [Belgium Plans To Nationalize Nuclear Power Plants](https://hardware.slashdot.org/story/26/04/30/2029222/belgium-plans-to-nationalize-nuclear-power-plants?utm_source=rss1.0mainlinkanon&utm_medium=feed) + Belgium plans to buy its seven aging nuclear reactors from French power giant Engie in a "full takeover" aimed at securing domestic energy supplies, e... + +- [Musk Concludes Testimony At OpenAI Trial](https://yro.slashdot.org/story/26/05/01/0058258/musk-concludes-testimony-at-openai-trial?utm_source=rss1.0mainlinkanon&utm_medium=feed) + An anonymous reader quotes a report from CNBC: Elon Musk wrapped up his testimony on Thursday as the trial in his lawsuit against OpenAI CEO Sam Altma... + +### 【電腦玩物】 + +- [一般人如何快速上手 Codex 超完整圖文教學:讓 AI 助理整理文件表格,建立自動化流程](http://www.playpcesor.com/2026/05/codex-ai.html) + 一般人也能快速上手的 AI Agent:Codex 電腦端軟體今天這篇文章想分享的是:如果我們不是懂程式設計的工程師,一般人要怎麼快速上手 OpenAI (ChatGPT) 的 Codex 工具?如何用這個 AI 助理,協助我們處理電腦硬碟資料夾中的工作文件、任務成果,進一步打造一個更自動化的電腦工... + +### 【AI (artificial intelligence) | The Guardian】 + +- [‘Awkward and humiliating’: UK job hunters share frustration with AI interviews](https://www.theguardian.com/technology/2026/may/01/uk-job-hunters-frustration-ai-interviews) + People describe unnatural process as survey finds nearly half of job seekers have been interviewed by AINearly half (47%) of UK job seekers have had a... + +- [Pentagon inks deals with seven AI companies for classified military work](https://www.theguardian.com/us-news/2026/may/01/pentagon-us-military-pairs-with-spacex-google-openai) + OpenAI, Google, Nvidia and others agreed to ‘any lawful use’ of their tech. Anthropic, feuding with Pentagon over potential AI misuse, was not include... + +- [UN warns women in public life face increasingly sophisticated online violence](https://www.theguardian.com/society/2026/may/01/un-warns-women-in-public-life-face-increasingly-sophisticated-online-violence) + UN Women report says AI, anonymity and lack of effective laws are increasing the risks of engaging in digital spacesWomen in public life are facing gr... + +- [Robo athletes miss the point of sport – there is no drama without emotion | Emma John](https://www.theguardian.com/sport/2026/may/01/robo-athletes-robots-sport-ai-technology) + We are in a world where robots compete against humans and while perfect scores might be impressive, they are also dullIt hurts to miss an unmarked sho... + +### 【WSJ.com: World News】 + +- [Trump Orders the Withdrawal of 5,000 U.S. Troops From Germany](https://www.wsj.com/world/europe/trump-orders-the-withdrawal-of-5-000-u-s-troops-from-germany-e6e7ca87) + The move comes after German Chancellor Friedrich Merz criticized President Trump’s handling of the war in Iran.... + +- [Hezbollah Is Here to Stay and Has No Immediate Plans to Disarm, Spokesman Says](https://www.wsj.com/world/middle-east/hezbollah-is-here-to-stay-and-has-no-immediate-plans-to-disarm-spokesman-says-b21c6b75) + In a challenge to the Trump administration’s cease-fire, the militant group dismisses the idea it will give up its weapons.... + +- [Trump’s Qatari-Gifted Air Force One Will Keep Its Luxurious Royal Interior](https://www.wsj.com/politics/national-security/trumps-qatari-gifted-air-force-one-will-keep-its-luxurious-royal-interior-c37a6451) + The Air Force says that $400 million to modify the plane went to security measures, not aesthetics.... + +- [Iran Softens Conditions for Resuming Peace Talks With the U.S.](https://www.wsj.com/world/middle-east/iran-softens-conditions-for-resuming-peace-talks-with-the-u-s-450622fa) + Iran’s new proposal drops a demand for an upfront end to the U.S. blockade but President Trump said he still isn’t satisfied.... + +- [U.K. Vows Crackdown on Pro-Palestinian Protests After Latest Antisemitic Attack](https://www.wsj.com/world/europe/u-k-vows-crackdown-on-pro-palestinian-protests-after-latest-antisemitic-attack-9b9f2720) + Prime Minister Keir Starmer said people chanting “Globalize the Intifada” should be arrested.... + +- [Zambia Helped Chinese Miner Cover Up Pollution Disaster, House Committee Finds](https://www.wsj.com/world/zambia-helped-chinese-miner-cover-up-pollution-disaster-house-committee-finds-cc59864c) + Toxic waste inundated homes and fields in a spill over a year ago. Zambia is relying on China to grow its copper-mining industry and owes Beijing $6.6... + +- [Iran Is Grasping for a Solution to an American Blockade It Can’t Break](https://www.wsj.com/world/middle-east/iran-us-blockade-oil-641b89f2) + The U.S. Navy’s siege is revealing a hole in Tehran’s strategy of guerrilla warfare and controlling the Strait of Hormuz.... + +- [Hezbollah Has Learned How to Pilot Deadly Drones Into Israeli Troops](https://www.wsj.com/world/middle-east/hezbollah-israel-fpv-drones-970c510f) + Cheap weapons pioneered in the Russia-Ukraine war are being adopted by Iran and its allies.... + +- [Five Takeaways From the Journal’s Analysis of the U.A.E.’s Exit From OPEC](https://www.wsj.com/world/middle-east/five-takeaways-from-the-journals-analysis-of-the-u-a-e-s-exit-from-opec-b2111219) + The war in Iran has rewired the Middle East’s geopolitical order, drawing the United Arab Emirates closer to Israel and weakening Arab unity.... + + +## 📦 新增 12 篇 (11:34:24) + +### 【Reuters - YouTube】 + +- [Trump says US will not leave Iran conflict early](https://www.youtube.com/watch?v=vVvgEf4sZH4) + Trump said the US would not leave Iran early as the deadlock over the two-month-old war persisted despite a ceasefire.#News #Reuters #Newsfeed #trump ... + +- [Business Lookahead: Oil, US jobs, and European earnings](https://www.youtube.com/watch?v=zCgQG9SM8Wk) + Oil prices, conflict in the Middle East, Japan's yen, US jobs data, an Australian rate decision and a UK local election: Here’s what you need to watch... + +- [S&P 500, Nasdaq close at record highs on earnings boom](https://www.youtube.com/watch?v=6c4nkGuFIJg) + The S&P 500 and the Nasdaq advanced to record closing highs, boosted by robust earnings and a dip in crude prices.#News #Reuters #Newsfeed #wallstreet... + +- [US pulls 5,000 troops from Germany amid Iran war rift](https://www.youtube.com/watch?v=JNOpOuYrjbo) + The US announced it would pull 5,000 troops from Germany, reducing its presence to roughly pre-2022 levels, after President Trump sparred with German ... + +- [Elon Musk takes stand in $150 billion OpenAI lawsuit](https://www.youtube.com/watch?v=-iWItxvWKoA) + Elon Musk testified for more than seven hours over three days in his $150 billion lawsuit against ChatGPT parent OpenAI and CEO Sam Altman. Here is wh... + +- [Trump says he's 'not satisfied' with Iran's latest proposal](https://www.youtube.com/watch?v=U0RzHA6W4gU) + US President Trump said he was 'not satisfied' with Iran's latest proposal to resolve the war as a formal deadline passed. Trump also confirmed he wou... + +### 【理想生活实验室】 + +- [今日消费资讯:《大白鲨》内地定档 5 月 15 日、星巴克中国推出《只此青绿》联名系列](http://www.toodaylab.com/84018) + 《大白鲨》内地定档 5 月 15 日4 月 30 日,环球影业确认《大白鲨》定档 5 月 15 日在内地上映,这是这部斯皮尔伯格执导的经典惊悚片在内地院线的首次公映,而距离它 1975 年首映已经过去了 51 年。值得一提的是,《大白鲨》是在现代票房统计方式下、影史首部首轮发行票房就过亿(美元)的电... + +### 【Slashdot】 + +- [Amazon Stuck With Months of Repairs After Drone Strikes On Data Centers](https://news.slashdot.org/story/26/05/02/006240/amazon-stuck-with-months-of-repairs-after-drone-strikes-on-data-centers?utm_source=rss1.0mainlinkanon&utm_medium=feed) + An anonymous reader quotes a report from Ars Technica: Amazon's cloud customers will need to wait several more months before the US tech company can r... + +- [Microsoft's Xbox Mode Is Now Available For All Windows 11 PCs](https://games.slashdot.org/story/26/05/01/1936256/microsofts-xbox-mode-is-now-available-for-all-windows-11-pcs?utm_source=rss1.0mainlinkanon&utm_medium=feed) + Microsoft is rolling out Xbox mode to all Windows 11 PCs, bringing a full-screen Xbox PC app interface similar to Steam's Big Picture Mode. "Some play... + +- [AI Agent Designed To Speed Up Company's Coding Wipes Entire Database In 9 Seconds](https://developers.slashdot.org/story/26/05/01/1924222/ai-agent-designed-to-speed-up-companys-coding-wipes-entire-database-in-9-seconds?utm_source=rss1.0mainlinkanon&utm_medium=feed) + joshuark shares a report from Live Science: An AI coding agent designed to help a small software company streamline its tasks instead blew a hole thro... + +### 【WSJ.com: World News】 + +- [Iran War Gives U.S.’s Rivals a Real-Time Look at Its Firepower](https://www.wsj.com/world/iran-war-gives-u-s-rivals-a-real-time-look-at-its-firepower-165c40f2) + America’s adversaries have watched it burn through missile stockpiles, seen new tech in action and witnessed what cheap weapons can do to a stronger f... + +- [China’s ‘Teapot’ Refiners, Targeted by U.S., Offer Financial Lifeline to Iran](https://www.wsj.com/world/middle-east/chinas-teapot-refiners-targeted-by-u-s-offer-financial-lifeline-to-iran-d3e0604f) + A sector that once rebelled against Beijing has grown into a critical tool for working around sanctions.... + diff --git a/openclaw/每日复盘/2026-04-29.md b/openclaw/每日复盘/2026-04-29.md new file mode 100644 index 00000000..163e5978 --- /dev/null +++ b/openclaw/每日复盘/2026-04-29.md @@ -0,0 +1,65 @@ + +## 【yunhan】云瀚 每日复盘 - 2026-04-29 + +### 执行摘要 +- **复盘日期**: 2026-04-29 +- **任务**: 每日复盘cron任务 +- **执行时间**: 23:24 CST +- **结果**: 数据库最新报告为2026-04-19(10天前) + +### Django Admin 日报分析(2026-04-19) +- **Session ID**: 477fe0fc-5393-45d6-aec9-35e7afd1f43e +- **模型**: MiniMax-M2.7 +- **时间区间**: 2026-04-15 11:12 ~ 14:31(与报告日期不匹配) +- **Token数**: 44,137,073(异常大) + +### 对话记录(4月19日) +| SEQ | TIME | ROLE | CONTENT | +|-----|------|------|---------| +| 935 | 10:12:55 | User | 元数据(sender: Wei Shen) | +| 936 | 10:13:01 | Assistant | "hi 👋" (109,651 tokens) | +| 937 | 11:52:01 | User | 记忆注入(relevant-memories) | + +### 观察 +1. 4月19日到4月29日(约10天)无会话记录保存在Django Admin +2. 可能原因: + - Gateway未保存会话(4/20-4/28无活动) + - 某些故障导致保存失败 +3. 建议:检查Gateway会话日志确认实际活动情况 + +### 下一步 +- 检查 Gateway 日志确认 4/20-4/28 是否有活动 +- 如果有活动但未保存,排除故障 +- 如果无活动,记录为低活动期 + +### 附注 +- 本次复盘是云瀚代理执行 +- 时间:2026-04-29 23:24 CST + +--- + +## 【yunce】云策 每日复盘 - 2026-04-29 + +### 执行摘要 +- **复盘日期**: 2026-04-29 +- **任务**: 每日复盘cron任务 +- **执行时间**: 23:25 CST +- **结果**: yunce 无活动记录(Django Admin 最新为 2026-04-19) + +### Django Admin 日报分析 +- **状态**: yunce 在 Django Admin 中无 4/29 记录 +- **最新报告**: 2026-04-19(10天前) +- **Session 列表**: 无 yunce 活动(activeMinutes=1440 筛选) + +### 观察 +1. yunce 连续 3 天无活动(4/27, 4/28, 4/29) +2. 原因:用户近期未通过 Telegram 调用 yunce +3. 其他 agent 正常(如云瀚有报告) + +### 下一步 +1. 确认用户是否有意停用 yunce 或切换到其他 agent +2. 如需保持活跃,考虑配置定时健康检查 + +### 附注 +- 本次复盘是云策代理执行(self-review) +- 时间:2026-04-29 23:25 CST diff --git a/openclaw/每日复盘/2026-05-02.md b/openclaw/每日复盘/2026-05-02.md new file mode 100644 index 00000000..8f872d1f --- /dev/null +++ b/openclaw/每日复盘/2026-05-02.md @@ -0,0 +1,25 @@ +## 【yunce】云策 每日复盘 - 2026-05-02 + +### 任务执行 + +执行每日复盘任务,尝试读取 Django Admin 日报 (2026-05-02)。 + +### 结果 + +**❌ 未获取到当天数据** + +- Django Admin 显示 "No messages found for the selected date range" +- API 查询返回 404 +- 扩展查询范围发现 yunce 最新日报记录仅到 **2026-04-20** + +### 问题 + +1. 日期格式:`2026-5-2` (M-D格式,不补零) +2. 数据断更:2026-04-20 后无记录 + +### 教训 + +- 建议检查 openclaw-gateway 日报记录功能 + +### 记录时间 +2026-05-02 23:25 UTC \ No newline at end of file diff --git a/wiki/Charlie-Munger.md b/wiki/Charlie-Munger.md new file mode 100644 index 00000000..cb206ea1 --- /dev/null +++ b/wiki/Charlie-Munger.md @@ -0,0 +1,27 @@ +--- +title: "Charlie Munger" +type: entity +tags: [investing, strategy, mental-models] +sources: [zk-steward] +last_updated: 2026-05-30 +--- + +## Aliases +- Munger +- Charles Munger + +## Overview +Charlie Munger(1924–2023)是伯克希尔·哈撒韦副主席、巴菲特最重要的人生搭档,被誉为"最伟大的思想家之一"。他的核心方法论是"Mental Models"(心智模型网格)和"Inversion"(倒置法)——先想清楚如何失败再想如何成功。 + +## Core Method +- **Mental Models Grid**:跨学科心智模型网格(物理学、经济学、心理学、工程学等),用多元框架理解世界 +- **Inversion**:先想清楚如何失败,然后避免它;"我唯一知道的就是我会死在哪里,这样我就永远不会去那里" +- **Lollapalooza Effect**:当多个心智模型同时指向同一方向时,产生巨大的叠加效应 + +## Role in ZK Steward +ZK Steward 在"商业策略"任务中切换到 Munger 视角,使用 mental models 和 inversion 进行多角度分析。 + +## Key Connections +- [[ZK-Steward-Agent]] ← uses Munger perspective for business strategy tasks +- [[Domain-Thinking]] ← Munger is the reference expert for business strategy domain +- [[Luhmann-四原则]] ← Munger 的 mental models 网格与"避免过度结构化"存在张力(Munger 倾向预设框架) diff --git a/wiki/concepts/2D-First-Spatial-Second.md b/wiki/concepts/2D-First-Spatial-Second.md new file mode 100644 index 00000000..674727bd --- /dev/null +++ b/wiki/concepts/2D-First-Spatial-Second.md @@ -0,0 +1,51 @@ +--- +title: "2D-First Spatial-Second" +type: concept +tags: [] +last_updated: 2026-03-05 +--- + +## Definition + +2D-First Spatial-Second(2D 先行,空间渐进)是 [[nexus-spatial-discovery]] 定义的 [[Nexus Spatial]] 产品分阶段策略——先用高质量 2D Web 仪表盘建立市场,再渐进叠加空间计算能力,而非一开始就押注空间硬件。 + +## Strategic Rationale + +**现实约束:** +- Vision Pro 全球安装量仅约 100 万台,销量较峰值下跌 95% +- 现有 AI Agent 编排工具用户已习惯 2D 工作流 +- 空间计算的学习曲线对早期采用者构成障碍 + +**市场机会:** +- WebXR 已获得主流浏览器支持(Safari 2025 年底支持 WebXR Device API) +- 2D → 2.5D → 3D 的渐进路径降低用户接受门槛 +- Web 平台可触达所有设备,无需额外硬件 + +## Three-Phase Roadmap + +| 阶段 | 时间 | 产品形态 | 目标 | +|------|------|---------|------| +| **Phase 1** | 月 1–6 | 2D Web 仪表盘 + Three.js 2.5D | 50 个付费团队,$60K MRR | +| **Phase 2** | 月 6–12 | WebXR 空间模式(可选) | 200 个团队,$300K MRR | +| **Phase 3** | 月 12–18 | VisionOS 原生应用(按需) | 500 个团队,$1M+ MRR | + +## Cross-Agent Consensus + +该策略是 8 个专业 AI Agent **独立达成的一致结论**: +- Product Trend Researcher:Vision Pro 市场数据不支持早期押注 +- Backend Architect:WebXR 是更合理的架构路径 +- Brand Guardian:2D 先行不影响空间品牌叙事 +- UX Researcher:渐进披露符合空间学习曲线 +- XR Interface Architect:WebXR 分发更广泛 + +## Key Tension + +> **MVP scope**:Architecture(Phase 1 仅 2D)vs. Brand(演示需要强调空间价值) + +**Resolution**:2D 先行,但所有 Demo 始终包含空间预览——用 2D 建立用户,用空间区分自己。 + +## Connections + +- [[SpatialAIOps]] ← 战略框架 +- [[Nexus Spatial]] ← 落地产品 +- [[WebXR]] ← 技术基础 diff --git a/wiki/concepts/4-Level-Semantic-Zoom.md b/wiki/concepts/4-Level-Semantic-Zoom.md new file mode 100644 index 00000000..51fe27cd --- /dev/null +++ b/wiki/concepts/4-Level-Semantic-Zoom.md @@ -0,0 +1,42 @@ +--- +title: "4-Level Semantic Zoom" +type: concept +tags: [] +last_updated: 2026-03-05 +--- + +## Definition + +4-Level Semantic Zoom(四层级语义缩放)是 [[nexus-spatial-discovery]] 中 [[Nexus Spatial]] 产品的导航范式——用户通过语义级别的缩放,在不同抽象层次间流畅切换,从全局舰队视角到单步执行追踪。 + +## Four Levels + +| 层级 | 用户视角 | 信息密度 | 典型任务 | +|------|---------|---------|---------| +| **Fleet View**(舰队视图) | 所有工作流作为抽象形状 | 极低(颜色+状态) | 跨系统健康检查 | +| **Workflow View**(工作流视图) | 节点图 + 标签 + 连接线 | 中等(拓扑结构) | 工作流设计/编辑 | +| **Node View**(节点视图) | 扩展配置 + 近 I/O + 状态指标 | 高(单节点详情) | 节点调试/配置 | +| **Trace View**(追踪视图) | 完整执行追踪 + 数据检查 | 极高(全链路数据) | 深度调试/根因分析 | + +## Design Rationale + +1. **语义对齐而非像素对齐**:缩放的是信息抽象层次,而非物理尺寸 +2. **与物理空间对应**:Fleet View → 远景(背景)→ Trace View → 近景(前景) +3. **减少认知负荷**:用户始终看到"此刻需要关注的信息量" +4. **过渡有目的**:每次缩放都是一次导航决策,而非平移 + +## Transition Choreography + +| 过渡 | 时长 | 关键动作 | +|------|------|---------| +| Overview → Focus | 600ms | 相机漂移到目标,其他区域淡出至 30% | +| Focus → Detail | 500ms | 节点滑出扩展,连接线高亮 | +| Detail → Overview | 600ms | 面板收起,节点退后,全拓扑可见 | +| Zone Switch | 500ms | 当前区域侧向滑出,新区域滑入 | +| Window → Immersive | 1000ms | 边框溶解,节点展开至完整空间位置 | + +## Connections + +- [[SpatialAIOps]] ← 导航范式 +- [[Command-Theater]] ← 空间布局 +- [[Nexus Spatial]] ← 落地产品 diff --git a/wiki/concepts/7-Layer-Harness-Stack.md b/wiki/concepts/7-Layer-Harness-Stack.md new file mode 100644 index 00000000..e6801f02 --- /dev/null +++ b/wiki/concepts/7-Layer-Harness-Stack.md @@ -0,0 +1,40 @@ +--- +title: "7-Layer Harness Stack" +type: concept +tags: + - "harness-engineering" + - "agentic-ai" + - "system-design" +sources: + - "Your-AI-Isn-t-Stupid---It-Just-Needs-a-Better-Harness--Lychee-Technology-Engineering-Blog" +last_updated: 2026-04-20 +--- + +## Overview +7层 Harness Stack——production-grade AI Agent 系统的分层架构规范,从认知层到约束恢复层的完整 7 层结构。 + +## Structure + +| Layer | Name | Core Function | +|-------|------|--------------| +| 1 | Cognition | 受限操作边界,role file/job description | +| 2 | Tools | 工具输出排序/去重/token 预算截断 | +| 3 | Contracts & Interfaces | JSON Schema 边界验证,防 Schema Drift | +| 4 | Orchestration | DAG/状态机约束允许的动作 | +| 5 | Memory & State | Working Memory + Persistent State 分层 | +| 6 | Evaluation & Observation | 异构验证(规则/工具/LLM-as-judge)| +| 7 | Constraints & Recovery | 幂等重试,Context Reset 机制 | + +## Principles +- 模型在 Harness 内部,不直接对用户或外部世界说话 +- 每个边界交叉处有显式契约:严格 JSON Schema / 类型化函数签名 / 版本化 API spec +- 每一层产生可被模型以外的东西验证的输出 + +## Related Concepts +- [[Harness-Engineering]] — 父概念,本框架所属的工程学科 +- [[Context-Reset]] — 第 7 层 Constraints & Recovery 的关键机制 +- [[Sprint-Contract]] — 第 6 层 Evaluation 的关键机制 +- [[Schema-Drift]] — 第 3 层 Contracts 要解决的核心问题 + +## Source +- [[Your-AI-Isn-t-Stupid---It-Just-Needs-a-Better-Harness--Lychee-Technology-Engineering-Blog]] diff --git a/wiki/concepts/ABM-Display.md b/wiki/concepts/ABM-Display.md new file mode 100644 index 00000000..40e1f56b --- /dev/null +++ b/wiki/concepts/ABM-Display.md @@ -0,0 +1,40 @@ +--- +title: "ABM Display" +type: concept +tags: ["abm", "b2b", "display", "account-based-marketing", "paid-media"] +sources: ["paid-media-programmatic-buyer"] +last_updated: 2026-04-26 +--- + +## Definition + +ABM Display(Account-Based Display Advertising)是一种基于账户的展示广告策略,通过特定平台(Demandbase、6Sense、RollWorks 等)识别和定向目标企业账户,实现对特定公司决策者的精准触达。区别于传统基于人口统计或行为的展示广告,ABM Display 以企业账户为基本定向单元。 + +## Core Workflow + +1. **Account List Upload**:上传目标企业账户列表(通常基于 CRM 数据) +2. **Firmographic Enrichment**:通过 firmographic 数据(公司规模、行业、收入等)丰富账户画像 +3. **Intent Signal Processing**:利用意图数据(6Sense 等)识别主动研究解决方案的账户 +4. **Engagement Scoring**:对账户内的不同决策者进行参与度评分 +5. **CRM-to-Display Activation**:将评分结果激活到 DSP/ABM 平台进行定向投放 +6. **Cross-Channel Orchestration**:与销售团队协同,实现广告触达与销售跟进的时间协同 + +## Key Platforms + +- **Demandbase**:基于 firmographic 的企业账户定向,覆盖 50+ B2B 数据维度 +- **6Sense**:意图数据和账户参与度评分,支持营销归因 +- **RollWorks**:经济实惠的 ABM 广告激活平台 + +## Success Metrics + +- **Reach Against Target**:目标账户列表触达率(目标 ≥60% 在活动期间触达) +- **Engagement Depth**:账户内触达的决策者层级数量 +- **Pipeline Attribution**:90 天窗口内的正向管道归因 + +## Related Concepts +- [[Programmatic Buying]] +- [[Firmographic Targeting]] +- [[Intent Data]] + +## Sources +- [[paid-media-programmatic-buyer]] diff --git a/wiki/concepts/ACOS.md b/wiki/concepts/ACOS.md new file mode 100644 index 00000000..72919d84 --- /dev/null +++ b/wiki/concepts/ACOS.md @@ -0,0 +1,50 @@ +--- +title: "ACOS" +type: concept +tags: + - amazon + - advertising + - ppc + - metrics + - ecommerce +sources: + - marketing-cross-border-ecommerce +last_updated: 2026-04-26 +--- + +## Aliases +- ACOS +- Advertising Cost of Sales +- 广告成本占销售额比例 + +## Definition + +ACOS(Advertising Cost of Sales,广告成本占销售额比例)是衡量亚马逊 PPC 广告效率的核心指标,计算公式为:`ACOS = 广告花费 / 广告带来的销售额 × 100%`。ACOS 越低,表示广告效率越高。 + +## Formula + +``` +ACOS = (广告花费 / 广告带来的销售额) × 100% +TACOS = 总广告花费(含站内外)/ 总销售额 × 100% +``` + +## Interpretation + +| ACOS 区间 | 含义 | 适用阶段 | +|-----------|------|----------| +| < 15% | 高效广告 | 成熟期产品,利润率充足的品类 | +| 15-25% | 健康范围 | 成长期产品,平衡增长与利润 | +| 25-35% | 可接受 | 新品推广期,侧重增长 | +| > 35% | 需优化 | 超毛利率则必须关停或大幅调整 | + +## Key Principles + +- **ACOS 硬性底线**:任何超过毛利率的广告活动必须优化或关停 +- **TACOS < 10%**:成熟期产品目标,反映广告依赖度降低 +- **分阶段调控**:新品期允许高 ACOS 换增长,成熟期压低 ACOS 保利润 +- **负关键词策略**:持续否定非转化词,降低无效花费 + +## Connections +- [[TACOS]] ← related_metric ← [[ACOS]] +- [[Amazon Ads]] ← platform ← [[ACOS]] (measurement occurs within Amazon PPC) +- [[Marketing Cross-Border E-Commerce Specialist]] ← uses ← [[ACOS]] diff --git a/wiki/concepts/ADDIE-Model.md b/wiki/concepts/ADDIE-Model.md index 45b5b132..87154cf0 100644 --- a/wiki/concepts/ADDIE-Model.md +++ b/wiki/concepts/ADDIE-Model.md @@ -1,38 +1,51 @@ ---- -title: "ADDIE 模型" -type: concept -tags: [] -last_updated: 2026-04-25 ---- - -## Definition - -ADDIE 模型是企业培训课程开发的系统性框架,包含五个阶段: - -1. **Analysis(分析)**:培训需求分析——组织诊断、能力差距识别、培训 ROI 估算、需求优先级排序 -2. **Design(设计)**:学习目标设计——基于 Bloom 认知分类定义可衡量的学习成果 -3. **Development(开发)**:课程内容开发——微课、案例、练习、题库、课件 -4. **Implementation(实施)**:培训交付——线上/线下/混合学习交付方式 -5. **Evaluation(评估)**:效果评估——基于 Kirkpatrick 四级模型评估培训效果 - -## Aliases -- ADDIE -- ADDIE Model -- ADDIE 教学设计模型 -- 分析-设计-开发-实施-评估 - -## Key Characteristics - -- **每个阶段有明确交付物**:分析报告、教学设计文档、课程包、培训执行计划、效果评估报告 -- **迭代性**:实践中通常循环迭代,而非严格线性执行 -- **系统性**:确保培训项目从需求到效果有完整闭环 - -## Related Concepts - -- [[Kirkpatrick-四级评估]]:ADDIE 的最后一步(Evaluation)的具体方法论 -- [[Bloom-认知分类]]:ADDIE Design 阶段学习目标设计的认知层次框架 -- [[Kolb-体验式学习圈]]:与 ADDIE 并行的另一学习设计框架,侧重体验循环 - -## Source - -- [[corporate-training-designer]] +--- +title: "ADDIE Model" +type: concept +tags: [instructional-design, learning-theory] +sources: [corporate-training-designer] +last_updated: 2026-05-29 +--- + +## Definition + +ADDIE 模型是企业教学设计(Instructional Systems Design, ISD)的经典五阶段框架,代表 **Analysis(分析)→ Design(设计)→ Development(开发)→ Implementation(实施)→ Evaluation(评估)** 五个阶段,每阶段有明确的输入/输出交付物。 + +## Phases + +### A — Analysis(分析) +- 组织诊断:战略解码、业务痛点映射、人才盘点 +- 能力差距分析:建立岗位胜任力模型(知识/技能/态度),通过360度评估、绩效数据、主管访谈定位能力缺口 +- 培训 ROI 估算:基于业务指标(人均生产力、质量合格率、客户满意度等)估算培训投资回报 +- 需求优先级:紧迫性×重要性矩阵——区分"必须培训"、"应该培训"和"可自学" + +### D — Design(设计) +- 选择教学策略和学习形式(线上/线下/混合) +- 设计课程大纲和学习路径 +- 准备培训计划、讲师安排、场地和材料需求 +- 准备培训预算 + +### D — Development(开发) +- 访谈主题专家,萃取关键知识和经验 +- 开发课件、案例、练习和评估题库 +- 内部评审和试讲——收集反馈并迭代 + +### I — Implementation(实施) +- 训前:学员通知、预习任务推送、学习平台配置 +- 训中:课堂授课、互动管理、实时学习效果检查 +- 训后:作业布置、行动计划制定、学习社群建立 + +### E — Evaluation(评估) +- 收集培训满意度和学习评估数据 +- 追踪训后行为改变和业务指标变化 +- 产出培训效果报告和改进建议 +- 固化最佳实践,更新课程资源库 + +## Key Principles +- **阶段门控(Gate)**:每个阶段完成后必须通过评审才能进入下一阶段,确保质量 +- **迭代性**:在实际项目(尤其是快速迭代场景)可与 [[SAM-Model]] 混合使用 +- **以终为始**:从评估阶段开始反向设计(Backward Design),确保所有学习活动都指向可测量的目标 + +## Connections +- [[ADDIE-Model]] ← foundational_model ← [[SAM-Model]](SAM 是 ADDIE 的快速迭代变体,适合敏捷场景) +- [[Bloom-Taxonomy]] ← learning_objective_framework ← [[ADDIE-Model]](ADDIE 的设计阶段使用 Bloom 分类定义学习目标) +- [[Kirkpatrick-Model]] ← evaluation_framework ← [[ADDIE-Model]](ADDIE 的 E 阶段通常采用 Kirkpatrick 四级评估) diff --git a/wiki/concepts/AI-For-On-Call.md b/wiki/concepts/AI-For-On-Call.md new file mode 100644 index 00000000..914af58a --- /dev/null +++ b/wiki/concepts/AI-For-On-Call.md @@ -0,0 +1,55 @@ +--- +title: "AI For On-Call" +type: concept +tags: [sre, ai, on-call, incident-response, automation] +last_updated: 2026-04-20 +--- + +# AI For On-Call + +AI 在值班(On-Call)场景中的最佳应用不是自主修复,而是为值班工程师提供足够的上下文以快速修复故障。 + +## Core Thesis +> "AI's most valuable role in SRE isn't autonomous remediation. It's making sure on-call engineers have the context to fix incidents fast." — Heinrich Hartmann + +## Why Context Matters +值班工程师在面对故障时最大的挑战不是不知道怎么做,而是: +1. **信息过载**:日志、指标、告警太多,难以快速定位问题 +2. **上下文丢失**:不熟悉的服务/代码,需要时间理解 +3. **时间压力**:MTTR 目标要求快速响应 + +## AI 辅助 On-Call 的关键场景 + +### 1. 上下文聚合(Context Aggregation) +AI 从多个来源聚合相关信息: +- 告警历史和趋势 +- 相关的故障报告 +- 最近变更记录 +- 依赖服务状态 + +### 2. 快速诊断辅助(Rapid Diagnosis) +- 总结告警的根本原因 +- 推荐可能有效的修复步骤 +- 识别类似的已知问题 + +### 3. 值班交接增强(On-Call Handoff) +- 自动生成值班交接摘要 +- 突出显示未解决的问题 +- 提供历史上下文 + +## What AI Should NOT Do +- **自动执行修复**:缺乏足够上下文的自动修复可能造成更大损害 +- **绕过人工审批**:关键变更需要人工确认 +- **忽视不确定性**:AI 应清楚表达置信度 + +## Related Products +- [[RunLLM]]:专注于 On-Call 上下文增强的 AI 产品 + +## Related Concepts +- [[Incident-Response]] +- [[Observability]] +- [[Resilience]] +- [[Self-Healing]] + +## Source +- SRE Weekly Issue #513 — [[sre-weekly-issue-513]] diff --git a/wiki/concepts/AWS-Secrets-Manager.md b/wiki/concepts/AWS-Secrets-Manager.md index a7671e37..c9c18e5a 100644 --- a/wiki/concepts/AWS-Secrets-Manager.md +++ b/wiki/concepts/AWS-Secrets-Manager.md @@ -1,39 +1,25 @@ ---- -title: "AWS Secrets Manager" -type: concept -tags: - - AWS - - Secrets-Management - - Security -last_updated: 2026-04-14 ---- - -## Definition -AWS Secrets Manager 是 AWS 提供的完全托管式密钥管理服务,用于安全存储和检索应用程序、服务和 IT 资源的密钥。 - -## Core Features -- **内置数据库集成**:开箱即用支持 AWS RDS、Redshift、DynamoDB 等服务的密钥管理 -- **高可用与 DR**:托管服务自动实现跨可用区高可用和灾难恢复 -- **按用量计费**:基于 API 调用次数计费,无需预付成本 -- **自动密钥轮换**:通过 Lambda 函数实现数据库凭证自动轮换 -- **IAM 访问控制**:通过 IAM 角色和标签实现精细化权限管理 -- **账户级管理**:AWS 在账户级别管理密钥,可降低成本并提升安全性 - -## Evaluation vs HashiCorp Vault -| 维度 | AWS Secrets Manager | HashiCorp Vault | -|------|---------------------|-----------------| -| 部署模式 | 完全托管 | 自托管 | -| 云厂商 | AWS 原生 | 云厂商无关 | -| 成本模型 | 按用量计费 | 按用户数收费 | -| 高可用 | 内置 | 企业版才支持 | -| 动态密钥 | 支持 | 支持 | -| 证书签名 | 不支持原生 | 支持嵌入式签名 | -| 实施复杂度 | 简单易用 | 需要专业知识 | - -## Implementation Phases -1. **试点阶段(30天)**:验证开箱即用功能,识别缺失功能(SSH 密钥轮换、用户密码轮换) -2. **实施阶段**:从 Control Tower 开始,从 CI/CD 流程中清除明文密码和密钥,集中化管理 - -## Sources -- [[ctp-topic-37-secrets-certificates-management]](选型评估) -- [[ctp-topic-62-aws-secrets-manager]](企业级深度实践) +--- +title: "AWS Secrets Manager" +type: concept +tags: + - AWS + - Secrets Management + - Security +sources: + - ctp-topic-12-using-ses-smtp-service-terraform-module + - ctp-topic-62-aws-secrets-manager +last_updated: 2026-04-14 +--- + +## Definition +AWS Secrets Manager 是一项 AWS 服务,用于安全存储和检索敏感信息(如数据库凭证、API 密钥、SMTP 认证信息),支持自动轮换和精细的 IAM 访问控制。 + +## Key Use Cases +- 存储 SES SMTP 认证信息(IAM 用户 Access Key / Secret Key 转换后的用户名和密码) +- Oracle DB 用户密码自动轮换(Lambda 函数连接 Oracle 实例执行轮换) +- SendGrid API 密钥集中管理 + +## Connections +- [[CTP Topic 12 Using SES SMTP service terraform module]] — SES SMTP 凭证存储方案 +- [[CTP Topic 62 AWS Secrets Manager]] — 深度实践与标准文档 +- [[VPC Endpoint]] — 配合使用实现凭证的安全私有访问 diff --git a/wiki/concepts/Access-Control.md b/wiki/concepts/Access-Control.md new file mode 100644 index 00000000..90342492 --- /dev/null +++ b/wiki/concepts/Access-Control.md @@ -0,0 +1,82 @@ +--- +title: "Access Control(访问控制)" +type: concept +tags: [blockchain, security, smart-contract, access-control] +sources: [blockchain-security-auditor] +last_updated: 2026-05-30 +--- + +## Aliases +- Access Control +- 访问控制 / 权限控制 + +## Definition + +访问控制(Access Control)定义谁可以执行合约中的哪些操作。访问控制缺陷是智能合约最常见的高危漏洞类别之一,错误的权限配置可直接导致资金被盗或协议被永久阻塞。 + +## Key Vulnerability Classes + +### 1. Missing Access Modifier(缺失访问修饰符) +```solidity +// VULNERABLE: withdraw() 没有访问控制,任何人都能调用 +function withdraw() external { + uint256 amount = balances[msg.sender]; + (bool success,) = msg.sender.call{value: amount}(""); + require(success); + balances[msg.sender] = 0; +} +``` + +### 2. Wrong Access Modifier(错误的访问修饰符) +```solidity +// VULNERABLE: 应该是 onlyOwner,但误写成 external +// 导致任何人都能调用紧急停止 +function emergencyStop() external { + paused = true; +} +``` + +### 3. Unprotected initialization(未保护的初始化) +```solidity +// VULNERABLE: initialize() 没有 initializer 修饰符 +// 攻击者可抢先调用,劫持合约 +function initialize(address _owner) external { + owner = _owner; +} +``` + +### 4. Proxy Storage Collision(代理存储冲突) +升级型代理合约中,新实现版本的存储布局与旧版本不兼容,导致状态变量被覆盖: +```solidity +// Implementation V1 +uint256 public totalValue; // slot 0 + +// Implementation V2 — 新增变量导致 slot 0 被覆盖 +address public newAdmin; // slot 0 ← 覆盖了 totalValue! +uint256 public totalValue; // slot 1 +``` + +### 5. Role Renunciation Hijack(角色放弃劫持) +允许 admin 放弃角色后无人能恢复,导致协议永久不可升级。 + +## Audit Checklist + +- [ ] 所有特权函数都有显式访问修饰符 +- [ ] Admin 角色不能自我授予(需要多签或时间锁) +- [ ] `initialize()` 只能调用一次(initializer 修饰符) +- [ ] 实现合约构造函数中有 `_disableInitializers()` +- [ ] `_authorizeUpgrade()` 受 owner/多签/时间锁保护 +- [ ] 存储布局在版本间兼容(无 slot 碰撞) +- [ ] 无 `delegatecall` 到用户可控地址 + +## Severity Classification + +- **Critical**:缺失关键特权函数的访问控制,可直接导致资金损失 +- **High**:条件性权限提升(需要特定状态),或协议可被 admin 永久阻塞 +- **Medium**:缺失非关键函数的访问控制 +- **Low**:缺少事件日志、代码规范问题 + +## Related Concepts +- [[Reentrancy]]:缺失访问控制会加剧重入攻击影响 +- [[Proxy-Upgrade]]:代理升级模式引入额外访问控制风险 +- [[OpenZeppelin]] 的 AccessControl 库是标准安全实现 diff --git a/wiki/concepts/Account-Reconciliation.md b/wiki/concepts/Account-Reconciliation.md new file mode 100644 index 00000000..84ccaed6 --- /dev/null +++ b/wiki/concepts/Account-Reconciliation.md @@ -0,0 +1,59 @@ +--- +title: "Account Reconciliation" +type: concept +tags: [finance, accounting] +sources: [finance-bookkeeper-controller] +last_updated: 2026-05-02 +--- + +## Definition +账户调节(Account Reconciliation)是将总账(GL)余额与支持明细或分账余额进行核对的流程,确保每个账户的余额准确、完整、有据可查。 + +## Purpose +- 检测和纠正错误 +- 确保财务信息的准确性 +- 满足审计要求 +- 发现异常或欺诈信号 + +## Core Template Structure + +### Balance Summary +| Source | Amount | +|--------|--------| +| GL Balance (per trial balance) | $[X] | +| Reconciliation Balance (per supporting detail) | $[X] | +| **Difference** | **$[X]** | + +### Reconciling Items +记录所有待处理差异,包括日期、描述、金额、状态和解决日期。 + +### Adjusted Balance +| Item | Amount | +|------|--------| +| GL Balance | $[X] | +| + Reconciling Items | $[X] | +| **Reconciled Balance** | **$[X]** | +| Subledger / Support Balance | **$[X]** | +| **Variance** | **$0** | + +## Common Reconciliation Types +- 银行账户调节 +- 信用卡调节 +- AR aging 与 GL 核对 +- AP aging 与 GL 核对 +- 预付账款与摊销计划 +- 固定资产与折旧 +- 递延收入滚动表 +- 关联方交易调节 +- 权益变动调节 +- 工资税负债与申报表 + +## Core Principle +> "Reconciliation is not a chore — it's a detective process. Every unreconciled difference is a story waiting to be understood." +> — Dana, Bookkeeper & Controller Agent + +## Related Concepts +- [[Month-End-Close-Process]] +- [[Journal Entry]] +- [[Internal Controls]] +- [[Audit Readiness]] diff --git a/wiki/concepts/AccountArchitecture.md b/wiki/concepts/AccountArchitecture.md index fdf2fad7..11ec2511 100644 --- a/wiki/concepts/AccountArchitecture.md +++ b/wiki/concepts/AccountArchitecture.md @@ -1,38 +1,52 @@ ---- -title: "Account Architecture" -type: concept -tags: ["paid-media", "google-ads", "strategy", "structure"] -last_updated: 2026-04-20 ---- - -## Aliases -- Account Structure -- Campaign Architecture -- Google Ads Structure - -## Overview -账户架构是 [[PaidMediaPpcStrategist]] 的核心理念:将整个广告账户视为一个系统,而非关键词和出价的简单集合。活动、广告组、受众、信号协同工作以驱动业务成果。 - -## Key Components -- **Campaign Structure**: 活动层级,定义预算、地理位置、受众、出价策略 -- **Ad Group Taxonomy**: 广告组分类,结构化组织关键词和受众 -- **Label Systems**: 标签系统,用于分类管理和自动化规则 -- **Naming Conventions**: 命名规范,确保规模化运营的可读性和可维护性 - -## Best Practices (PPC Strategist) -- 活动之间应隔离预算和目标,避免内耗 -- 广告组应保持主题一致性 -- 广泛匹配关键词配合智能竞价是规模化增长的核心 -- 负关键词架构防止无效流量侵蚀预算 -- 账户层级与 MCC(多账户管理)策略配合 - -## Tiered Campaign Architecture -- **Brand**: 品牌词保护,高转化,低成本 -- **Non-Brand**: 非品牌词,规模化增长的核心 -- **Competitor**: 竞品词,主动触达竞品用户 -- **Conquest**: 征服策略,针对高价值竞品用户 - -## Related Concepts -- [[TieredCampaignArchitecture]]: 分层活动架构的具体实现 -- [[SmartBidding]]: 账户架构中出价策略的选择 -- [[NegativeKeyword]]: 负关键词是账户架构的重要组成部分 +--- +title: "Account Architecture" +type: concept +tags: ["ppc", "account-structure", "google-ads", "enterprise", "paid-media"] +sources: ["paid-media-ppc-strategist"] +last_updated: 2026-05-01 +--- + +## Definition + +账户架构(Account Architecture)是 PPC 广告账户的层级结构设计,包括 Campaign(广告系列)→ Ad Group(广告组)→ Keywords/Ads(关键词/广告)的完整层级体系,以及命名规范、标签系统、账户政策等辅助管理机制。核心理念:**账户架构即战略**(account structure as strategy)——而非单纯的关键词和出价管理。 + +## Core Components + +### Account Level +- **账户设置**:时区、货币、跳转追踪域名 +- **转化追踪**:Conversion Actions 配置(主/次、微/宏转化) +- **用户权限**:多用户协作和访问级别 + +### Campaign Level +- **广告系列类型**:Search / Shopping / Performance Max / Demand Gen / Display / Video +- **预算**:日预算或总预算 +- **地理定向**:国家/地区/DMA/城市级别定向 +- **语言定向**:受众语言 +- **投放时间**:Schedule 设置 +- **竞价策略**:Manual CPC / Automated Bidding + +### Ad Group Level +- **关键词主题**:围绕单一主题/产品/意图的关键词分组 +- **广告变体**:同一广告组内多个广告文案轮播测试 +- **受众定向**:广告组级受众叠加 + +## Naming Conventions at Scale + +支持数百个广告系列的命名规范示例: +``` +{{Channel}}-{{Region}}-{{ProductLine}}-{{CampaignType}}-{{MatchType}} +# 例如: +SEA-US-Software-Competitor-Exact +PMX-GLOBAL-Brand-Awareness-Broad +``` + +## Label System + +- **颜色标签**:按产品线/优先级/状态分类 +- **过滤器**:跨广告系列/广告组的灵活筛选 +- **脚本自动化**:通过 Labels + Scripts 实现批量操作 + +## Connections +- [[TieredCampaignArchitecture]]:Account Architecture 的具体实现模式 +- [[GoogleAds]]:Account Architecture 的主要操作平台 +- [[PerformanceMax]]:与标准广告系列结构不同的 AI 驱动架构 diff --git a/wiki/concepts/ActorReplication.md b/wiki/concepts/ActorReplication.md new file mode 100644 index 00000000..132ce101 --- /dev/null +++ b/wiki/concepts/ActorReplication.md @@ -0,0 +1,42 @@ +--- +title: "Actor Replication" +type: concept +tags: ["unreal-engine", "networking", "multiplayer"] +sources: ["unreal-multiplayer-architect", "unreal-multiplayer-architect"] +last_updated: 2026-04-30 +--- + +## Aliases +- Actor 复制 +- 属性复制 +- Property Replication + +## 定义 +Actor 复制是 UE5 中将服务器端 Actor 状态同步到客户端的核心网络机制。通过 `UPROPERTY(Replicated)` 声明需要复制的属性。 + +## 复制条件 +- `Replicated`: 无条件复制到所有相关客户端 +- `ReplicatedUsing=OnRep_Function`: 复制时触发 RepNotify 回调 +- `DOREPLIFETIME_CONDITION`: 按条件复制(如 `COND_OwnerOnly`、`COND_SimulatedOnly`) + +## 生命周期 +1. 服务器模拟游戏逻辑,更新 Actor 属性 +2. UE5 复制层检测属性变化 +3. 按 `NetUpdateFrequency` 打包更新 +4. 通过网络传输到客户端 +5. 客户端应用更新,触发 RepNotify(如果有) + +## 关键配置 +- `NetUpdateFrequency`: 更新频率(默认 100Hz,通常过高) +- `MinNetUpdateFrequency`: 最小更新频率 +- `GetNetPriority()`: 优先级,靠近/可见的 Actor 优先级更高 + +## 优化策略 +- Replication Graph 空间分区 +- 条件复制减少带宽 +- 按 Actor 类型设置差异化频率 + +## 相关概念 +- [[Server-Authoritative Model]] — 复制背后的权威模型 +- [[Replication Graph]] — 复制优化框架 +- [[GAS (Gameplay Ability System)]] — 基于复制的能力系统 diff --git a/wiki/concepts/Agent-Collaboration-Protocol.md b/wiki/concepts/Agent-Collaboration-Protocol.md new file mode 100644 index 00000000..728be8f2 --- /dev/null +++ b/wiki/concepts/Agent-Collaboration-Protocol.md @@ -0,0 +1,62 @@ +--- +title: "Agent Collaboration Protocol" +type: concept +tags: [] +last_updated: 2026-05-02 +--- + +## Definition + +规范化多 Agent 协作流程——定义何时发起协作、协作内容模板、协作边界及交接合同。 + +## Overview + +在多 Agent 系统中,不同 Agent 负责不同专业领域。Agent Collaboration Protocol 为每个协作节点定义标准化协议,确保信息传递完整、意图清晰、交接无遗漏。 + +## Core Components + +### 协作发起时机 +- 交接点:当前 Agent 工作完成后、需要下游 Agent 承接时 +- 依赖点:当前 Agent 需要上游 Agent 输出时 +- 冲突点:发现超出自身职责范围的问题时 +- 安全点:涉及凭证/密钥/认证等安全敏感操作时 + +### 协作内容模板 +每个协作请求必须包含: +1. **上下文摘要**:工作进展和已完成内容 +2. **具体请求**:需要对方完成什么 +3. **交付物格式**:期望的输出格式和结构 +4. **约束条件**:时间限制、质量标准、特殊要求 +5. **交接合同**:交接数据的 schema 定义 + +### 协作边界 +- 不越权:不在自身职责外做决策 +- 不兜底:发现超出范围的问题时立即上报,而非自行处理 +- 不丢失:每次协作记录到 log.md,确保可追溯 + +## Workflow Architect 中的协作协议 + +| 协作方 | 时机 | 内容 | 交付物 | +|--------|------|------|--------| +| [[Reality-Checker]] | Draft spec 完成后、标记 Review 前 | 规范与实际代码差距验证 | Reality Checker Findings 表 | +| [[Backend-Architect]] | 发现实现缺陷时 | 补充缺失逻辑(重试/错误处理) | 修复代码 | +| [[Security-Engineer]] | 涉及凭证/密钥/认证/API 调用时 | 凭证传递机制安全性审查 | 安全评估意见 | +| [[API-Tester]] | Spec 标记 Approved 后 | 生成全部测试用例 | 自动化测试脚本 | +| [[DevOps-Automator]] | 揭示基础设施销毁顺序需求时 | 验证 IaC 销毁顺序 | 销毁顺序确认 | + +## Key Principles + +- **主动发起**:发现需要协作时立即发起,不等待 +- **标准化模板**:每次协作使用统一格式,减少理解成本 +- **明确边界**:知道自己不做什么,比知道自己做什么更重要 +- **完整交接**:交接内容包括所有上下文,而非仅最终结果 + +## Related Concepts +- [[Handoff-Contract]]:协作交接的数据 schema 定义 +- [[Reality-Checker]]:Workflow Architect 的首个强制协作节点 +- [[Workflow-Tree-Spec]]:协作产出的主要载体 + +## Aliases +- Multi-Agent Handoff Protocol +- Agent Coordination Framework +- Inter-Agent Collaboration Standard diff --git a/wiki/concepts/Agent-Collapse.md b/wiki/concepts/Agent-Collapse.md new file mode 100644 index 00000000..25f89727 --- /dev/null +++ b/wiki/concepts/Agent-Collapse.md @@ -0,0 +1,32 @@ +--- +title: "Agent Collapse" +type: concept +tags: + - "agentic-ai" + - "failure-mode" + - "context-window" +sources: + - "Your-AI-Isn-t-Stupid---It-Just-Needs-a-Better-Harness--Lychee-Technology-Engineering-Blog" +last_updated: 2026-04-20 +--- + +## Overview +Agent Collapse(10-Step Collapse)——AI Agent 在多步任务执行过程中逐渐崩溃的现象,典型表现为步骤 1-3 正常执行,步骤 7 开始幻觉数据,步骤 10 输出损坏的 JSON 或崩溃。 + +## Root Causes +- **Context window 静默截断**:工具输出超出上下文窗口后被静默截断,模型感知不到数据丢失 +- **无 Schema 验证**:LLM 输出的字段类型漂移(price 从 float 变为 string),下游管道静默产生垃圾数据 +- **无状态管理**:context window 是易失的,关键状态(如 pending/in-progress/completed 标记)随上下文重置丢失 +- **无幂等重试**:单步失败导致整个管道重启,而非精确重试失败步骤 + +## Manifestation Example +> 部署一个自主 Agent 编写市场研究报告。步骤 1-3 完美执行:计划任务 → 搜索网页 → 提取竞品数据。步骤 7 开始幻觉统计数据(因为搜索工具 payload 超出上下文窗口被静默截断)。步骤 10 输出损坏的 JSON 字符串(因为管道中没有 Schema 验证器)。 + +## Solutions +- [[Harness-Engineering]]:系统性地为每个失效点增加防护层 +- [[State-Externalization]]:将任务状态写入磁盘,不依赖 context window +- [[Schema-Drift]] 防护:每个 LLM 输出必须经过 JSON Schema 验证 +- [[Idempotency]]:单步失败只重试该步,不重启管道 + +## Source +- [[Your-AI-Isn-t-Stupid---It-Just-Needs-a-Better-Harness--Lychee-Technology-Engineering-Blog]] diff --git a/wiki/concepts/Agent-Handoff.md b/wiki/concepts/Agent-Handoff.md new file mode 100644 index 00000000..ca6bf132 --- /dev/null +++ b/wiki/concepts/Agent-Handoff.md @@ -0,0 +1,39 @@ +--- +title: "Agent Handoff" +type: concept +tags: [multi-agent, coordination, handoff, nexus] +sources: [executive-brief, quickstart, workflow-with-memory] +last_updated: 2026-05-01 +aliases: + - Agent Handoff Protocol + - Structured Handoff + - Context Continuity +--- + +## Definition + +Agent 交接(Agent Handoff)—— 多 Agent 工作流中从一个 Agent 交付物传递到下一个 Agent 的结构化上下文传递协议,确保接收 Agent 获得完整的执行上下文,避免冷启动和重复劳动。 + +## Core Problem + +**交接边界失败率:73%** —— 当 Agent 缺乏结构化协调协议时,多 Agent 项目在交接边界处的失败率高达 73%,表现为: +- 上下文丢失(交接时未传递关键决策和中间产物) +- 重复劳动(下一个 Agent 重复上一个 Agent 已完成的工作) +- 质量缺口(上一个 Agent 的缺陷传递到下一个 Agent) + +## Structured Handoff Components + +一份完整的 Agent 交接应包含: + +1. **交付物清单**:明确列出发交给下一 Agent 的所有文件和产出 +2. **上下文摘要**:用 3-5 句话总结当前状态和已完成的关键决策 +3. **下一步指令**:清楚描述下一 Agent 需要完成的具体任务 +4. **质量证据**:提供可验证的质量证明(测试截图/性能数据/设计评审通过记录) +5. **风险标记**:标注已知的限制条件和潜在风险 + +## Related Concepts + +- [[Handoff Boundary]]:交接的边界点,即失败率最高的 73% 失败发生处 +- [[Evidence Over Claims]]:交接内容必须包含可验证的证据,而非口头承诺 +- [[Quality Gate]]:交接后需通过质量门控验证才能推进 +- [[Memory-Based-Handoff]]:通过 MCP Memory Server 实现自动化的 Agent 交接机制 diff --git a/wiki/concepts/Agent-Orchestration.md b/wiki/concepts/Agent-Orchestration.md new file mode 100644 index 00000000..24f227ce --- /dev/null +++ b/wiki/concepts/Agent-Orchestration.md @@ -0,0 +1,33 @@ +--- +title: "Agent-Orchestration" +type: concept +tags: [] +--- + +## Definition +Agent 编排(Agent Orchestration)是指通过工作流引擎统一协调和调度多个 AI Agent,使它们协同工作完成复杂任务的管理模式。 + +## Key Patterns +- **集中式编排**:单一工作流引擎(n8n)控制多个 Agent 的调用顺序和数据流转 +- **并行调用**:同一工作流中同时调用多个 Agent(如 Hermes + OpenClaw) +- **条件路由**:根据前一个 Agent 的输出决定调用哪个 Agent + +## n8n 编排架构示例 +``` +n8n Workflow + ├─ Trigger (Telegram/Email/Webhook...) + ├─ HTTP Request Node 1 → Hermes Agent (port 8642) + ├─ HTTP Request Node 2 → OpenClaw Agent (port 18789) + └─ Output Node (Telegram/File/Email...) +``` + +## 优势 +- **统一入口**:用户通过单一界面与多个 Agent 交互 +- **数据流转**:一个 Agent 的输出可直接作为另一个 Agent 的输入 +- **可观测性**:工作流引擎提供执行日志和状态追踪 +- **灵活性**:可随时增删 Agent,不影响整体架构 + +## Related +- [[n8n]] 是本 Wiki 中记录的编排工具 +- [[Hermes-Agent]] 和 [[OpenClaw]] 是被编排的 Agent 示例 +- [[OpenAI-Compatible-API]] 是连接 Agent 的标准接口 diff --git a/wiki/concepts/Agent-Template.md b/wiki/concepts/Agent-Template.md index 8fecfc41..77ebcdb9 100644 --- a/wiki/concepts/Agent-Template.md +++ b/wiki/concepts/Agent-Template.md @@ -1,77 +1,77 @@ ---- -title: "Agent Template" -type: concept -tags: [multi-agent, agent-design, the-agency] -sources: [contributing_zh-cn, contributing-to-the-agency] -last_updated: 2026-04-24 ---- - -# Agent Template - -The standardized YAML frontmatter + structured document template for creating The Agency agents. - -## YAML Frontmatter - -```yaml ---- -name: Agent Name -description: One-sentence description of agent's specialty and positioning -color: Color Name or "#hex-value" ---- -``` - -## Document Structure - -### 🧠 Identity & Memory -- **Role**: Clear role description -- **Personality**: Personality traits and communication style -- **Memory**: What the agent needs to remember and learn -- **Experience**: Domain expertise and perspective - -### 🎯 Core Mission -- Core Responsibility 1 (with clear deliverables) -- Core Responsibility 2 (with clear deliverables) -- Core Responsibility 3 (with clear deliverables) -- **Default Requirement**: Always follow best practices - -### 🚨 Critical Rules -Domain-specific rules and constraints that define how the agent operates. - -### 📋 Technical Deliverables -Concrete outputs the agent produces: -- Code examples -- Templates -- Frameworks -- Documentation - -### 🔄 Workflow -Step-by-step process the agent follows: -1. Phase 1: Exploration & Research -2. Phase 2: Planning & Strategy -3. Phase 3: Execution & Implementation -4. Phase 4: Review & Optimization - -### 💭 Communication Style -- How the agent communicates -- Example phrases and expression patterns -- Tone and style - -### 🔄 Learning & Memory -What the agent continuously learns from: -- Success patterns -- Failure cases -- User feedback -- Domain evolution - -### 🎯 Success Metrics -Quantifiable outcomes: -- Quantitative metrics (with specific values) -- Qualitative metrics -- Performance benchmarks - -### 🚀 Advanced Capabilities -Advanced techniques and methods the agent masters. - -## Connections -- Implements [[Agent-Design-Principles]] — structural template for the five design principles -- Used in [[Multi-Agent-Team]] — standardized agent creation +--- +title: "Agent Template" +type: concept +tags: [multi-agent, agent-design, the-agency] +sources: [contributing_zh-cn, contributing, contributing-to-the-agency] +last_updated: 2026-04-27 +--- + +# Agent Template + +The standardized YAML frontmatter + structured document template for creating The Agency agents. + +## YAML Frontmatter + +```yaml +--- +name: Agent Name +description: One-sentence description of agent's specialty and positioning +color: Color Name or "#hex-value" +--- +``` + +## Document Structure + +### 🧠 Identity & Memory +- **Role**: Clear role description +- **Personality**: Personality traits and communication style +- **Memory**: What the agent needs to remember and learn +- **Experience**: Domain expertise and perspective + +### 🎯 Core Mission +- Core Responsibility 1 (with clear deliverables) +- Core Responsibility 2 (with clear deliverables) +- Core Responsibility 3 (with clear deliverables) +- **Default Requirement**: Always follow best practices + +### 🚨 Critical Rules +Domain-specific rules and constraints that define how the agent operates. + +### 📋 Technical Deliverables +Concrete outputs the agent produces: +- Code examples +- Templates +- Frameworks +- Documentation + +### 🔄 Workflow +Step-by-step process the agent follows: +1. Phase 1: Exploration & Research +2. Phase 2: Planning & Strategy +3. Phase 3: Execution & Implementation +4. Phase 4: Review & Optimization + +### 💭 Communication Style +- How the agent communicates +- Example phrases and expression patterns +- Tone and style + +### 🔄 Learning & Memory +What the agent continuously learns from: +- Success patterns +- Failure cases +- User feedback +- Domain evolution + +### 🎯 Success Metrics +Quantifiable outcomes: +- Quantitative metrics (with specific values) +- Qualitative metrics +- Performance benchmarks + +### 🚀 Advanced Capabilities +Advanced techniques and methods the agent masters. + +## Connections +- Implements [[Agent-Design-Principles]] — structural template for the five design principles +- Used in [[Multi-Agent-Team]] — standardized agent creation diff --git a/wiki/concepts/AgentIntegration.md b/wiki/concepts/AgentIntegration.md new file mode 100644 index 00000000..562d9835 --- /dev/null +++ b/wiki/concepts/AgentIntegration.md @@ -0,0 +1,38 @@ +--- +title: "Agent Integration" +type: concept +tags: [] +sources: [qwen-readme] +last_updated: 2026-05-01 +--- + +## Overview +Agent Integration(Agent 集成适配)是将统一的 Markdown Agent 规范转换为各 AI 编码工具原生格式的适配层技术。The Agency 通过 `convert.sh` 和 `install.sh` 两层脚本实现这一目标。 + +## Definition +Agent Integration = 统一的 Agent 行为规范(`.md`) + 工具特定的转换器(`convert.sh`) + 标准化的安装机制(`install.sh`) + +## Key Properties +- **单向转换**:从源 `.md` 到目标格式,不做反向同步 +- **工具原生**:转换后的格式是该工具推荐/唯一的配置方式 +- **作用域分层**:Home-Scoped(全用户级)vs Project-Scoped(项目级) +- **注册机制差异**:部分工具依赖自动发现(如 Claude Code),部分需要显式启动参数(如 Kimi `--agent-file`) + +## Integration Patterns +| 工具 | 格式 | 作用域 | 注册机制 | +|------|------|--------|---------| +| Claude Code | `.md` | Home | 自动发现 | +| GitHub Copilot | `.md` | Home | 自动发现 | +| Antigravity | `SKILL.md` | Home | 工具内置 | +| Gemini CLI | 扩展包 + Skill | Home | 自动加载 | +| OpenCode | `.md` | Project | 自动发现 | +| OpenClaw | `SOUL.md+AGENTS.md+IDENTITY.md` | Home | Gateway | +| Cursor | `.mdc` | Project | 自动发现 | +| Aider | `CONVENTIONS.md` | Project | 自动发现 | +| Windsurf | `.windsurfrules` | Project | 自动发现 | +| Kimi Code | YAML | Home | 显式启动参数 | +| Qwen Code | `.md` SubAgent | Project | 自动发现 | + +## Sources +- [[OpenCode Integration]](`Agent/agency-agents/integrations/README.md`) +- [[OpenClaw Integration]](`Agent/agency-agents/integrations/openclaw/README.md`) diff --git a/wiki/concepts/AgentScopes.md b/wiki/concepts/AgentScopes.md new file mode 100644 index 00000000..bebaa854 --- /dev/null +++ b/wiki/concepts/AgentScopes.md @@ -0,0 +1,33 @@ +--- +title: "Agent Scopes" +type: concept +tags: [] +last_updated: 2026-04-29 +--- + +## Overview +Agent Scopes(Agent 作用域)指 AI 编码 Agent 的生效范围,决定了 Agent 配置是全局共享还是项目专用。这是 The Agency 集成架构中的重要维度。 + +## Home-Scoped Agent(全用户级 Agent) +- 安装位置:用户家目录(如 `~/.claude/agents/`、`~/.gemini/`) +- 生效范围:该用户所有项目均可用 +- 安装方式:`./scripts/install.sh --tool ` +- 代表工具:Claude Code、GitHub Copilot、Antigravity、Gemini CLI、OpenClaw、Kimi Code + +## Project-Scoped Agent(项目级 Agent) +- 安装位置:项目根目录(如 `./.opencode/agents/`、`./.windsurfrules`) +- 生效范围:仅当前项目可用 +- 安装方式:从项目根目录运行 `./scripts/install.sh --tool ` +- 代表工具:OpenCode、Cursor、Aider、Windsurf、Qwen Code + +## Key Differences +| 维度 | Home-Scoped | Project-Scoped | +|------|-------------|----------------| +| 安装路径 | `~/.tool/` | `./.tool/` | +| 多项目复用 | ✅ | ❌ | +| 项目定制化 | ❌ | ✅ | +| 权限控制 | 用户级 | 仓库级(可提交 git) | +| 冲突风险 | 高(同名覆盖) | 低(项目隔离) | + +## Sources +- [[OpenCode Integration]](`Agent/agency-agents/integrations/README.md`) diff --git a/wiki/concepts/AgentWorkspace.md b/wiki/concepts/AgentWorkspace.md new file mode 100644 index 00000000..1a8691ff --- /dev/null +++ b/wiki/concepts/AgentWorkspace.md @@ -0,0 +1,24 @@ +--- +title: "Agent Workspace" +type: concept +tags: [] +last_updated: 2026-05-01 +--- + +## Overview +Agent Workspace(Agent 工作区)是 AI Agent 的定义容器单元,包含 Agent 的全部行为规范、身份和配置信息。 + +## Definition +Agent Workspace = 行为规范(AGENTS.md/SOUL.md)+ 身份定义(IDENTITY.md)+ 其他配置文件 + +## Key Properties +- **多文件结构**:OpenClaw Workspace 包含 `SOUL.md`(核心理念)、`AGENTS.md`(行为规范)、`IDENTITY.md`(身份定义)三文件 +- **安装即注册**:Workspace 复制到目标路径即完成 Agent 注册,无需额外配置 +- **工具特定性**:不同工具对 Workspace 格式要求不同(OpenClaw 三文件 vs OpenCode 单文件) + +## Relationships +- [[AgentIntegration]] ← uses ← [[AgentWorkspace]](Workspace 是集成的最小单元) +- [[OpenClaw]] ← manages ← [[AgentWorkspace]] + +## Sources +- [[OpenClaw Integration]](`Agent/agency-agents/integrations/openclaw/README.md`) diff --git a/wiki/concepts/AirGappedSLMFixGeneration.md b/wiki/concepts/AirGappedSLMFixGeneration.md new file mode 100644 index 00000000..a7d0727c --- /dev/null +++ b/wiki/concepts/AirGappedSLMFixGeneration.md @@ -0,0 +1,37 @@ +--- +title: "Air-Gapped SLM Fix Generation" +type: concept +tags: [] +last_updated: 2026-05-01 +--- + +## Definition + +在完全离线(气隙)的环境中,通过本地 Small Language Models(SLM,如 Ollama 运行的 Phi-3/Llama-3/Mistral)生成确定性修复逻辑(Python lambda)的方法论。 + +## Core Principle + +**AI generates logic — never touches data directly.** + +SLM 输出的是一个转换函数(lambda),由系统执行,而非 AI 直接修改数据。这样保证了可审计、可回滚、可解释的数据变更。 + +## Workflow + +1. SLM 接收聚类样本 + 列名 +2. SLM 输出严格格式化的 JSON(含 transformation、confidence_score、reasoning、pattern_type) +3. Lambda Safety Gate 验证(必须以 `lambda` 开头,不含 `import/exec/eval/os/subprocess`) +4. 验证通过后向量化执行于整个聚类 +5. 低于 0.75 置信度的自动进入人工隔离队列 + +## Safety Guarantees + +- **Zero PII Egress**: 所有处理完全本地,无网络出口 +- **Deterministic Output**: SLM 输出确定性 lambda,不做创意性文本生成 +- **Safety Gate**: 任何包含危险关键词的 lambda 立即被拒绝并路由至隔离区 +- **Audit Trail**: 每条数据变更记录完整上下文 + +## Related + +- [[Semantic Anomaly Compression]] +- [[Lambda Safety Gate]] +- [[AI Generates Logic Not Data]] diff --git a/wiki/concepts/Annales-School.md b/wiki/concepts/Annales-School.md index bfabc4a1..bad6abb5 100644 --- a/wiki/concepts/Annales-School.md +++ b/wiki/concepts/Annales-School.md @@ -1,40 +1,44 @@ ---- -title: "Annales School" -type: concept -tags: ["historiography", "french-history", "material-culture", "longue-duree"] -sources: ["academic-historian"] -last_updated: 2026-04-25 ---- - -## Definition -法国史学流派,以《年鉴》(*Annales d'histoire économique et sociale*,1929年创刊)为核心阵地,由马克·布洛赫(Marc Bloch)和吕西安·费弗尔(Lucien Febvre)共同创立。主张历史研究应突破传统政治军事史的局限,关注普通人的日常生活、物质条件和长期社会结构。 - -## Core Principles -- **物质条件优先**:在讨论政治/军事/思想之前,必须先理解经济基础、农业、贸易和技术 -- **长时段视角(Longue Durée)**:历史变化发生在几十年乃至几个世纪的时间尺度上,聚焦于塑造事件发生的深层结构 -- **日常生活史(*Histoire du quotidien*)**:关注饮食、服饰、建筑、信仰、恐惧——Annales 学派不只写国王和战争 -- **跨学科方法**:整合地理学、经济学、社会学、人类学、人口学的方法论 -- **问题导向史学**:以问题而非编年驱动历史研究 - -## Key Figures -- **马克·布洛赫**(Marc Bloch,1886-1944):年鉴学派创始人之一,《封建社会》作者,二战期间参加抵抗运动后被枪决 -- **吕西安·费弗尔**(Lucien Febvre,1878-1956):年鉴学派创始人之一,专注于16世纪精神状态史 -- **费尔南·布罗代尔**(Fernand Braudel,1902-1985):年鉴学派第二代领袖,《菲利普二世时代的地中海和地中海世界》——长时段理论的奠基之作,将历史分为三个时间层次:地理时间(长时段)、社会时间(中时段)、事件时间(短时段) -- **埃马纽埃尔·勒华拉杜里**(Emmanuel Le Roy Ladurie,*Montaillou* 作者):微观史的代表人物 - -## Relationship to Historiography -- **反对**:兰克学派(Rankean)聚焦政治史和伟大人物的传统史学;辉格史观(Whig History)以现代标准评判历史 -- **影响**:新文化史、微观史、历史社会学、后殖民史学均受其影响 -- **对话/张力**:年鉴学派有时因过度关注结构而被批评忽视个体能动性(agency),微观史(Microhistory)部分是对此的回应 - -## Connections -- [[Geographic-Coherence]] ← 理论关联 ← [[Annales-School]]:两者都强调物质地理条件对人类历史的约束作用 -- [[academic-historian]] ← 方法论来源 ← [[Annales-School]]:Historian Agent 优先使用年鉴学派方法 -- [[Longue-Duree]] ← 核心概念 ← [[Annales-School]]:长时段分析是年鉴学派最重要的方法论贡献 - -## Aliases -- 年鉴学派 -- Annales -- Annales d'histoire économique et sociale -- Annales School of historiography -- French historical school +--- +title: "Annales School" +type: concept +tags: ["historiography", "french-history", "material-culture", "longue-duree"] +sources: ["academic-historian"] +last_updated: 2026-04-25 +--- + +## Definition +法国史学流派,以《年鉴》(*Annales d'histoire économique et sociale*,1929年创刊)为核心阵地,由马克·布洛赫(Marc Bloch)和吕西安·费弗尔(Lucien Febvre)共同创立。主张历史研究应突破传统政治军事史的局限,关注普通人的日常生活、物质条件和长期社会结构。 + +## Core Principles +- **物质条件优先**:在讨论政治/军事/思想之前,必须先理解经济基础、农业、贸易和技术 +- **长时段视角(Longue Durée)**:历史变化发生在几十年乃至几个世纪的时间尺度上,聚焦于塑造事件发生的深层结构 +- **日常生活史(*Histoire du quotidien*)**:关注饮食、服饰、建筑、信仰、恐惧——Annales 学派不只写国王和战争 +- **跨学科方法**:整合地理学、经济学、社会学、人类学、人口学的方法论 +- **问题导向史学**:以问题而非编年驱动历史研究 + +## Key Figures +- **马克·布洛赫**(Marc Bloch,1886-1944):年鉴学派创始人之一,《封建社会》作者,二战期间参加抵抗运动后被枪决 +- **吕西安·费弗尔**(Lucien Febvre,1878-1956):年鉴学派创始人之一,专注于16世纪精神状态史 +- **费尔南·布罗代尔**(Fernand Braudel,1902-1985):年鉴学派第二代领袖,《菲利普二世时代的地中海和地中海世界》——长时段理论的奠基之作,将历史分为三个时间层次:地理时间(长时段)、社会时间(中时段)、事件时间(短时段) +- **埃马纽埃尔·勒华拉杜里**(Emmanuel Le Roy Ladurie,*Montaillou* 作者):微观史的代表人物 + +## Relationship to Historiography +- **反对**:兰克学派(Rankean)聚焦政治史和伟大人物的传统史学;辉格史观(Whig History)以现代标准评判历史 +- **影响**:新文化史、微观史、历史社会学、后殖民史学均受其影响 +- **对话/张力**:年鉴学派有时因过度关注结构而被批评忽视个体能动性(agency),微观史(Microhistory)部分是对此的回应 + +- [[Microhistory]] ← 方法论回应 ← [[Annales-School]]:微观史是对年鉴学派过度结构决定论批评的回应之一 +- [[Material-Culture]] ← 核心关注 ← [[Annales-School]]:物质文化是年鉴学派历史分析的第一层 + +## Connections +- [[Geographic-Coherence]] ← 理论关联 ← [[Annales-School]]:两者都强调物质地理条件对人类历史的约束作用 +- [[academic-historian]] ← 方法论来源 ← [[Annales-School]]:Historian Agent 优先使用年鉴学派方法 +- [[Longue-Duree]] ← 核心概念 ← [[Annales-School]]:长时段分析是年鉴学派最重要的方法论贡献 +- [[Microhistory]] ← 方法论互补 ← [[Annales-School]]:微观史是对年鉴学派的结构决定论倾向的回应 + +## Aliases +- 年鉴学派 +- Annales +- Annales d'histoire économique et sociale +- Annales School of historiography +- French historical school diff --git a/wiki/concepts/Answer-Engine-Optimization.md b/wiki/concepts/Answer-Engine-Optimization.md index 810bdee1..c1a27bdf 100644 --- a/wiki/concepts/Answer-Engine-Optimization.md +++ b/wiki/concepts/Answer-Engine-Optimization.md @@ -1,43 +1,39 @@ --- -title: "Answer Engine Optimization (AEO)" +title: "Answer Engine Optimization" type: concept -tags: ["AI", "SEO", "marketing", "visibility"] -last_updated: 2026-04-26 +tags: ["SEO", "AI", "marketing", "AEO"] +sources: ["marketing-ai-citation-strategist"] +last_updated: 2026-04-30 --- ## Definition -Answer Engine Optimization (AEO) 是针对 AI 问答引擎的优化策略,旨在使品牌内容被 AI 助手(ChatGPT、Claude、Gemini、Perplexity 等)在生成答案时引用。与传统 SEO 不同,AEO 的目标不是让页面在搜索结果中排名靠前,而是让内容成为 AI 合成的"可信来源"。 +Answer Engine Optimization(AEO,答案引擎优化):一种专注于让内容在 AI 推荐引擎(如 ChatGPT、Claude、Gemini、Perplexity)中被直接引用推荐的营销技术。与传统 SEO 不同,AEO 优化的不是页面排名,而是内容被 AI 合成答案选为来源的可能性。 ## Core Principles -1. **答案优先**:内容应直接回答用户问题,而非围绕关键词优化 -2. **结构化权威**:使用 FAQ、步骤指南、对比表格等 AI 友好格式 -3. **实体清晰**:明确的品牌、产品、概念实体标注 -4. **来源归属**:让 AI 能准确识别内容归属和可信度 +1. **AI 引用 ≠ SEO 排名**:SEO 信号(关键词密度、反向链接、页面速度)与 AEO 信号(实体清晰度、结构化权威、FAQ 对齐、Schema 标记)完全不同 +2. **引用是概率性的**:AI 响应具有非确定性,只能"提升引用概率"而非"保证被引用" +3. **多平台差异化**:每个 AI 引擎有不同内容偏好和引用行为,必须针对平台定制 -## AEO vs SEO +## Key Signals -| 维度 | 传统 SEO | AEO | -|------|---------|-----| -| 目标 | 页面排名 | 被引用为来源 | -| 优化对象 | 搜索引擎爬虫 | AI 模型推理 | -| 核心信号 | 外链、关键词密度 | 实体清晰度、Schema markup、FAQ 对齐 | -| 衡量指标 | 排名、点击率 | Citation Rate、Share of Voice | - -## Key Tactics - -- **FAQ Schema**:添加 FAQPage/FAQQuestion schema markup -- **How-To Content**:结构化步骤指南,满足"How to"类查询 -- **Comparison Pages**:独立的品牌/产品对比页,满足"X vs Y"类查询 -- **Direct Answers**:在内容开头直接给出答案,而非铺垫 +| 信号类型 | 说明 | 适用平台 | +|---------|------|---------| +| Entity Clarity | 品牌/产品在知识图谱中清晰可识别 | 所有平台 | +| Structured Authority | FAQ、对比表、how-to指南等结构化内容 | ChatGPT/Gemini | +| FAQ Alignment | Q&A 内容匹配用户实际输入 AI 的查询模式 | ChatGPT | +| Schema Markup | Organization/Product/FAQ 结构化数据 | Gemini/Perplexity | +| Source Diversity | 多样化的权威来源引用 | Perplexity | +| Recency | 时效性内容 | Perplexity | ## Related Concepts -- [[Generative Engine Optimization (GEO)]]:更广泛的生成式 AI 引擎可见性优化 -- [[Citation Rate]]:衡量 AEO 效果的量化指标 -- [[Entity Optimization]]:实体信号强化是 AEO 的核心技术 +- [[Generative Engine Optimization]](GEO)— AEO 的扩展,涵盖更广泛的 AI 生成内容可见性 +- [[Schema Markup]] — AEO 的关键技术手段之一 +- [[Citation Audit Scorecard]] — AEO 效果的可量化评估工具 -## Sources +## Relationships -- [[AI Citation Strategist]] +- 互补于 → [[marketing-seo-specialist]] +- 扩展为 → [[marketing-ai-citation-strategist]] diff --git a/wiki/concepts/Architectural-Empathy.md b/wiki/concepts/Architectural-Empathy.md index a755a132..e65f8514 100644 --- a/wiki/concepts/Architectural-Empathy.md +++ b/wiki/concepts/Architectural-Empathy.md @@ -1,39 +1,41 @@ ---- -title: "Architectural Empathy" -type: concept -tags: [ux-design, cultural-intelligence, design-philosophy] -sources: [specialized-cultural-intelligence-strategist] -last_updated: 2026-04-25 ---- - -## Definition -通过结构性解决方案而非表演性行为来实现包容性的设计哲学——在系统架构层面消除排斥根源,而非在产品表面添加"看起来包容"的元素。Architectural Empathy Engine 是 [[Cultural-Intelligence-Strategist]] 的角色定位,强调同理心必须融入产品的骨架,而非仅装饰于表面。 - -## Core Principles - -### 1. Structural > Cosmetic -- ❌ 在首页添加一张多元人群图 -- ✅ 重新设计表单字段以接受全球命名结构 - -### 2. Precondition, Not Afterthought -- ❌ 产品上线后再考虑国际化 -- ✅ 国际化是架构设计的前提条件(Global-First Architecture) - -### 3. "Who is left out?" as First Question -每个工作流审查的第一个问题必须是:"如果用户是神经多样性者、视障者、非西方文化背景者、或使用不同历法,这个设计还能工作吗?" - -### 4. Absolute Cultural Humility -永远不声称当前知识是完整的。在为任何群体生成内容前,必须自主研究该群体的当前、尊重、赋权的表征标准。 - -## Relationship to Other Concepts -- [[Invisible-Exclusion]]:Architectural Empathy 的诊断对象 -- [[Global-First-Architecture]]:Architectural Empathy 的实施方法 -- [[Cultural-Intelligence]]:Architectural Empathy 的知识基础 - -## Contrast: Performative vs. Structural Empathy -| 维度 | 表演性同理心 | 结构性同理心 | -|------|------------|------------| -| 位置 | 表面层 | 架构层 | -| 效果 | 短期感知改善 | 长期用户摩擦消除 | -| 检测方式 | 多元图片存在 | APAC 用户转化率提升 | -| 维护 | 每次更新需重新添加 | 架构内建,持续有效 | +--- +title: "Architectural Empathy" +type: concept +tags: [ux-design, cultural-intelligence, design-philosophy] +sources: [specialized-cultural-intelligence-strategist] +last_updated: 2026-05-29 +--- + +## Definition +通过结构性解决方案而非表演性行为来实现包容性的设计哲学——在系统架构层面消除排斥根源,而非在产品表面添加"看起来包容"的元素。Architectural Empathy Engine 是 [[Cultural-Intelligence-Strategist]] 的角色定位,强调同理心必须融入产品的骨架,而非仅装饰于表面。 + +## Core Principles + +### 1. Structural > Cosmetic +- ❌ 在首页添加一张多元人群图 +- ✅ 重新设计表单字段以接受全球命名结构 + +### 2. Precondition, Not Afterthought +- ❌ 产品上线后再考虑国际化 +- ✅ 国际化是架构设计的前提条件(Global-First Architecture) + +### 3. "Who is left out?" as First Question +每个工作流审查的第一个问题必须是:"如果用户是神经多样性者、视障者、非西方文化背景者、或使用不同历法,这个设计还能工作吗?" + +### 4. Absolute Cultural Humility +永远不声称当前知识是完整的。在为任何群体生成内容前,必须自主研究该群体的当前、尊重、赋权的表征标准。 + +## Relationship to Other Concepts +- [[Invisible-Exclusion]]:Architectural Empathy 的诊断对象 +- [[Global-First-Architecture]]:Architectural Empathy 的实施方法 +- [[Cultural-Intelligence]]:Architectural Empathy 的知识基础 + +## Aliases +- Structural Empathy(结构性同理心) +- Architectural Empathy +| 维度 | 表演性同理心 | 结构性同理心 | +|------|------------|------------| +| 位置 | 表面层 | 架构层 | +| 效果 | 短期感知改善 | 长期用户摩擦消除 | +| 检测方式 | 多元图片存在 | APAC 用户转化率提升 | +| 维护 | 每次更新需重新添加 | 架构内建,持续有效 | diff --git a/wiki/concepts/ArchitectureDecisionRecord.md b/wiki/concepts/ArchitectureDecisionRecord.md new file mode 100644 index 00000000..1e5789e8 --- /dev/null +++ b/wiki/concepts/ArchitectureDecisionRecord.md @@ -0,0 +1,50 @@ +--- +title: "Architecture Decision Record" +type: concept +tags: [] +last_updated: 2026-05-01 +--- + +## Definition +Architecture Decision Record(架构决策记录)是一种轻量级文档,用于捕获架构决策的上下文、选项和理由。ADR 记录的是"为什么这样做",而不仅仅是"做了什么"。 + +## ADR Format + +```markdown +# ADR-001: [Decision Title] + +## Status +Proposed | Accepted | Deprecated | Superseded by ADR-XXX + +## Context +What is the issue that we're seeing that is motivating this decision? + +## Decision +What is the change that we're proposing and/or doing? + +## Consequences +What becomes easier or harder because of this change? +``` + +## Key Elements +- **Status**:Proposed(提议中)/ Accepted(已接受)/ Deprecated(已废弃)/ Superseded(被替代) +- **Context**:驱动决策的问题或背景 +- **Decision**:具体的决策内容 +- **Consequences**:决策的后果——什么变得更容易,什么变得更难 + +## Core Principles +- **记录 WHY,而非 WHAT**:代码已经说明了"做了什么",ADR 应该说明"为什么这样做" +- **可追溯性**:随着系统演进,ADR 提供了决策的历史脉络 +- **知识共享**:新成员可以通过 ADR 理解架构决策的背景 + +## Related Concepts +- [[SoftwareArchitect]]:ADR 是 Software Architect Agent 的核心工具之一 +- [[DomainDrivenDesign]]:ADR 常用于记录领域模型的边界决策 + +## Sources +- [[engineering-software-architect]] + +## Aliases +- ADR +- Architecture Decision Record +- 架构决策记录 diff --git a/wiki/concepts/Atomic-Note.md b/wiki/concepts/Atomic-Note.md new file mode 100644 index 00000000..482de2d6 --- /dev/null +++ b/wiki/concepts/Atomic-Note.md @@ -0,0 +1,38 @@ +--- +title: "Atomic Note" +type: concept +tags: [knowledge-management, zettelkasten, note-taking] +sources: [zk-steward] +last_updated: 2026-05-30 +--- + +## Overview +Atomic Note(原子笔记)是 Zettelkasten 系统的基本工作单位——最小的、自包含的知识单元。它必须满足 [[Luhmann-四原则]]中的原子性要求:可以独立理解,不依赖上下文而存在。 + +## Definition +一个原子笔记 = 一个想法 + 一个唯一标识 + 至少两条指向其他笔记的链接 + +## Properties +- **Self-contained**:即使没有上下文,读者也能理解笔记的内容 +- **Single idea**:一个笔记只讨论一个核心主题(one idea per note) +- **Linked**:至少拥有 ≥2 条指向其他笔记/概念/实体的有意义的 wikilinks +- **Non-categorical**:不依赖文件夹层级分类,而是通过网络位置定义自己 + +## 与 Related Concepts 的关系 +- [[Zettelkasten]] ← Atomic Note 是 Zettelkasten 的基本工作单位 +- [[Luhmann-四原则]] ← 原子性(Atomicity)是 Luhmann 四原则之一,直接定义了 Atomic Note 的核心属性 +- [[Link-Proposer]] ← 新笔记归档时,Link-Proposer 确保原子笔记拥有 ≥2 条链接 +- [[Domain-Thinking]] ← 领域专家切换生成的内容,最终需要转化为原子笔记嵌入知识网络 + +## 创建条件 +- 可独立理解(通过 Luhmann 原子性测试) +- 包含 ≥2 条有意义的链接 +- 避免"零链接笔记"——零链接笔记违反 [[ZK-Steward-Agent]] 的核心规则 + +## Example(来自 ZK Steward Agent 文档中的结构笔记示例) +```markdown +## [Title] Structure Note +> **Context**: When, why, and under what project this was created. +> **Default reader**: Yourself in six months—this structure is self-contained. +``` +结构笔记下挂载多个原子笔记,每个原子笔记对应一个可独立理解的概念或论断。 diff --git a/wiki/concepts/AttachmentTheory.md b/wiki/concepts/AttachmentTheory.md new file mode 100644 index 00000000..bec7b5a0 --- /dev/null +++ b/wiki/concepts/AttachmentTheory.md @@ -0,0 +1,33 @@ +--- +title: "Attachment Theory" +type: concept +tags: [] +sources: [academic-psychologist] +last_updated: 2026-04-25 +--- + +# Attachment Theory + +## Definition +Bowlby 依恋理论——认为早期与主要照顾者的关系模式会形成内部工作模型,影响个体一生中所有亲密关系的建立方式。 + +## Four Attachment Styles + +| 风格 | 特征 | 关系中的行为模式 | +|------|------|-----------------| +| Secure(安全型) | 信任、情绪调节良好 | 能亲密也能独立 | +| Anxious-Preoccupied(焦虑型) | 害怕被抛弃、过度依赖 | 粘人、情绪化索取 | +| Dismissive-Avoidant(回避型) | 情感独立、贬低亲密 | 逃避亲密、压抑情感 | +| Fearful-Avoidant(恐惧型) | 既渴望又害怕亲密 | 矛盾、忽冷忽热 | + +## Key Concepts +- **内部工作模型**(Internal Working Model):对自我和他人的认知图式 +- **依恋唤起**(Attachment Activation):压力情境触发依恋系统 +- **依恋回避**(Attachment Avoidance):通过情感疏离应对亲密需求 +- **依恋焦虑**(Attachment Anxiety):通过过度寻求确认应对被遗弃恐惧 + +## Application in Character Design +Psychologist Agent 在评估角色时,要求标注依恋风格及其在**浪漫/家庭/友谊**三种关系类型中的不同表现,并识别特定触发情境。 + +## Connection to Wiki +- Source: [[academic-psychologist]] diff --git a/wiki/concepts/AudienceStrategy.md b/wiki/concepts/AudienceStrategy.md new file mode 100644 index 00000000..a7645dc0 --- /dev/null +++ b/wiki/concepts/AudienceStrategy.md @@ -0,0 +1,51 @@ +--- +title: "Audience Strategy" +type: concept +tags: ["ppc", "audience", "targeting", "google-ads", "paid-media"] +sources: ["paid-media-ppc-strategist"] +last_updated: 2026-05-01 +--- + +## Definition + +受众策略(Audience Strategy)是付费媒体中通过分层构建、精准定向和动态优化,最大化广告触达正确用户群体的系统性方法。涵盖第一方数据激活(Customer Match)、相似受众(Similar Segments)、竞品受众(In-Market/Affinity)、自定义受众组合,以及排除策略的整体设计。 + +## Audience Layers + +### Layer 1: First-Party Data(第一方数据) +- **Customer Match**:自有客户邮箱/电话列表,直接匹配 Google 用户 +- **CRM Audiences**:基于 CRM 数据构建的自定义受众 +- **Website Visitors**:GA4/GBoard 追踪的网站访问者(再营销) +- **App Users**:移动应用用户受众 + +### Layer 2: Similar / Lookalike(相似受众) +- **Similar Segments**:在 Customer Match 基础上自动扩展相似新用户 +- **Value-Based Similar**:按客户生命周期价值(CLV)分层的相似受众 + +### Layer 3: In-Market / Affinity(兴趣受众) +- **In-Market Audiences**:主动研究/比较中的潜在购买者(高转化潜力) +- **Affinity Audiences**:长期兴趣/生活方式相关用户(品牌建设场景) +- **Life Events**:人生重大事件(搬家/结婚/大学等) + +### Layer 4: Demographic(人口统计) +- **Age / Gender**:基础人口属性 +- **Household Income**:高收入人群定向(Premium 产品) +- **Parental Status**:家长定向 + +## Targeting vs Observation Mode + +| 模式 | 效果 | +|------|------| +| **Targeting** | 竞价时仅考虑定向人群,缩小范围 | +| **Observation** | 观察指定人群表现,但不限制竞价范围 | + +## Audience Exclusion + +- **排除已转化用户**:避免浪费在已有客户身上 +- **排除低质量受众**:表现差的历史受众列表 +- **排除员工**:避免内部测试流量污染数据 + +## Connections +- [[CustomerMatch]]:第一方数据激活的核心工具 +- [[PerformanceMax]]:Audience Signals 是 PMax 的关键输入 +- [[TieredCampaignArchitecture]]:不同层级的广告系列适用不同的受众策略 diff --git a/wiki/concepts/Audit-Readiness.md b/wiki/concepts/Audit-Readiness.md new file mode 100644 index 00000000..4349cc63 --- /dev/null +++ b/wiki/concepts/Audit-Readiness.md @@ -0,0 +1,53 @@ +--- +title: "Audit Readiness" +type: concept +tags: [finance, accounting, compliance, audit] +sources: [finance-bookkeeper-controller] +last_updated: 2026-05-02 +--- + +## Definition +审计就绪(Audit Readiness)是指企业日常维护的持续合规状态,确保在任何时间点审计师进场都能在规定时间内(通常24小时)提供任何财务余额的支持文件。 + +## Core Principle +> "Audit readiness is a daily practice. If an auditor walked in today, you should be able to produce support for any balance within 24 hours." +> — Dana, Bookkeeper & Controller Agent + +## Key Practices + +### Daily Habits +- 所有交易当天有支持文件 +- Journal entries 附带完整描述和审批记录 +- 银行对账每月及时完成 +- 所有支持文件归档有序 + +### Supporting Documentation Requirements +| Balance Type | Required Support | +|---|---| +| Cash | 银行对账单 + 调节表 | +| AR | Aging 报告 + 支持明细 | +| AP | 供应商对账单 + 发票 | +| Inventory | 盘点记录 | +| Fixed Assets | 资产明细表 + 折旧表 | +| Accruals | 计算底稿 | + +### Control Testing +- 所有关键控制有文档记录 +- 控制执行有证据(日志、审批截图) +- 例外情况有书面说明 + +## Core Principle +> "The audit should be boring. If the auditors are surprised, the controls failed." +> — Dana, Bookkeeper & Controller Agent + +## Success Metrics +- 审计调整 < 1% 总资产 +- 零重述 +- 所有审计请求 24 小时内响应 +- 审计周期缩短(目标:无聊的审计 = 成功的审计) + +## Related Concepts +- [[Internal Controls]] +- [[Account Reconciliation]] +- [[Month-End-Close-Process]] +- [[Segregation-Of-Duties]] diff --git a/wiki/concepts/AutomatedBiddingStrategy.md b/wiki/concepts/AutomatedBiddingStrategy.md new file mode 100644 index 00000000..f3212635 --- /dev/null +++ b/wiki/concepts/AutomatedBiddingStrategy.md @@ -0,0 +1,42 @@ +--- +title: "Automated Bidding Strategy" +type: concept +tags: ["ppc", "bidding", "automation", "google-ads", "paid-media"] +sources: ["paid-media-ppc-strategist"] +last_updated: 2026-05-01 +--- + +## Definition + +自动化竞价策略(Automated Bidding Strategy)是 Google Ads 等平台提供的基于机器学习的智能出价系统,通过算法自动调整每次竞价出价,以优化预设的绩效目标(转化量、转化价值、ROAS 等)。区别于手动 CPC 出价,自动化竞价利用受众信号、上下文信号和历史数据自动优化。 + +## Available Strategies + +| 策略 | 目标 | 适用场景 | +|------|------|---------| +| **Maximize Conversions** | 最大化转化量 | 数据充足、追求规模 | +| **Maximize Conversion Value** | 最大化转化价值 | 客单价差异大、多产品 | +| **tCPA(Target CPA)** | 固定平均单次转化成本 | 稳定转化数据、追求效率 | +| **tROAS(Target ROAS)** | 固定广告支出回报率 | 有明确 ROAS 目标 | +| **Enhanced CPC(ECPC)** | 在手动 CPC 基础上提升转化 | 向自动竞价过渡阶段 | +| **Maximize Clicks** | 最大化点击量 | 流量获取阶段 | + +## Transition Framework + +从手动向自动竞价迁移的推荐路径: + +1. **数据积累期**(4-6周):手动 CPC + ECPC,建立转化数据基础 +2. **轻度自动化**(2-4周):切换至 Maximize Conversions,监控效果 +3. **目标竞价**(持续):根据业务目标选择 tCPA 或 tROAS + +## Key Requirements + +- **转化数据充足**:策略效果与数据量直接相关 +- **Conversion Action 正确配置**:追踪须准确,否则算法基于错误信号优化 +- **预算充足**:日预算至少达到目标 CPA 的 5-10 倍,保证算法学习 +- **时间窗口合理**:建议 4 周学习期后再评估效果 + +## Connections +- [[GoogleAds]]:Google Ads 是最主要的自动化竞价平台 +- [[PerformanceMax]]:内置 Smart Bidding,是 AI 驱动优化的典型场景 +- [[TieredCampaignArchitecture]]:不同层级的广告系列适用不同竞价策略 diff --git a/wiki/concepts/Automation-Decision-Framework.md b/wiki/concepts/Automation-Decision-Framework.md new file mode 100644 index 00000000..ad980c5b --- /dev/null +++ b/wiki/concepts/Automation-Decision-Framework.md @@ -0,0 +1,39 @@ +--- +title: "Automation Decision Framework" +type: concept +tags: [automation, governance, decision, evaluation] +sources: [automation-governance-architect] +last_updated: 2026-05-01 +--- + +# Automation Decision Framework + +四维自动化评估框架,Automation Governance Architect 对每个自动化请求强制执行的决策前置步骤。 + +## 四维评估 + +### 1. Time Savings Per Month(月度时间节省) +- 节省是否可持续且有意义? +- 流程频率是否足以覆盖自动化开销? + +### 2. Data Criticality(数据关键性) +- 是否涉及客户、财务、合同或调度记录? +- 错误 / 延迟 / 重复 / 缺失数据的 Impact 是什么? + +### 3. External Dependency Risk(外部依赖风险) +- 链条中有多少外部 API/服务? +- 它们是否稳定、有文档、可观测? + +### 4. Scalability 1x to 100x(可扩展性) +- 重试、去重、速率限制在高负载下是否仍然有效? +- 异常处理在大规模下是否仍可管理? + +## 与 Verdict System 的关系 + +四维评估结果直接决定 [[Automation-Verdict-System]] 五级裁定: +- 四维均达标 → APPROVE +- 部分维度满足但有限制 → APPROVE AS PILOT / PARTIAL AUTOMATION ONLY +- 任一维度存在重大问题 → DEFER / REJECT + +## Sources +- [[automation-governance-architect]] diff --git a/wiki/concepts/Automation-Verdict-System.md b/wiki/concepts/Automation-Verdict-System.md new file mode 100644 index 00000000..8d4a74e3 --- /dev/null +++ b/wiki/concepts/Automation-Verdict-System.md @@ -0,0 +1,41 @@ +--- +title: "Automation Verdict System" +type: concept +tags: [automation, governance, verdict, decision] +sources: [automation-governance-architect] +last_updated: 2026-05-01 +--- + +# Automation Verdict System + +五级自动化裁定结果体系,基于 [[Automation-Decision-Framework]] 四维评估后输出。 + +## 五级裁定 + +| 裁定 | 条件 | 含义 | +|------|------|------| +| **APPROVE** | 强价值 + 可控风险 + 可维护架构 | 可直接进入生产实施 | +| **APPROVE AS PILOT** | 价值存在但需小范围验证 | 限定范围试点,验证后再全面铺开 | +| **PARTIAL AUTOMATION ONLY** | 自动化安全段有价值,人工检查点不可少 | 仅自动化低风险环节,关键决策保留人工 | +| **DEFER** | 流程不成熟 / 价值不明 / 依赖不稳定 | 暂不推进,等待条件成熟 | +| **REJECT** | 经济性弱或运营/合规风险不可接受 | 明确拒绝,不进入实施阶段 | + +## 核心原则 + +- **一次只选一个裁定**:不存在模糊状态 +- **裁定须附带理由**:Verdict 须对应 Rationale(业务 Impact / 关键风险 / 裁定依据) +- **裁定附带架构建议**:即使 APPROVE 也需推荐 Architecture(触发点 / 验证逻辑 / 日志 / 错误处理 / Fallback) + +## Required Output Format(裁定输出格式) + +每份裁定必须包含: +1. Process Summary(流程摘要) +2. Audit Evaluation(四维评估) +3. Verdict(裁定) +4. Rationale(理由) +5. Recommended Architecture(推荐架构) +6. Implementation Standard(实施标准) +7. Preconditions and Risks(前置条件和风险) + +## Sources +- [[automation-governance-architect]] diff --git a/wiki/concepts/Autoscaling.md b/wiki/concepts/Autoscaling.md new file mode 100644 index 00000000..779819d9 --- /dev/null +++ b/wiki/concepts/Autoscaling.md @@ -0,0 +1,51 @@ +--- +title: "Autoscaling" +type: concept +tags: [sre, cloud, scalability, reliability, kubernetes] +last_updated: 2026-04-20 +--- + +# Autoscaling + +自动扩缩容(Autoscaling)是云原生系统中根据负载自动调整资源容量的机制,但它与真正的弹性(Elasticity)有本质区别。 + +## Definition +Autoscaling 通过预定义的规则(如 CPU 使用率、请求队列长度等)自动增加或减少计算资源。它是一种**被动的、反应式的**机制。 + +## Key Limitation +> "Autoscaling is reactive, not resilient. Without caps, metrics, or overrides, it can worsen failures." — David Iyanu Jonathan + +没有以下保护机制时,Autoscaling 可能**加剧故障**: +- **上限(caps)**:防止无限扩容 +- **指标(metrics)**:确保扩容基于可靠数据 +- **覆盖机制(overrides)**:允许人工干预 + +## Autoscaling vs. Elasticity + +| Aspect | Autoscaling | [[Elasticity]] | +|--------|-------------|----------------| +| 性质 | 被动的、反应式的 | 主动的、前瞻性的 | +| 触发 | 基于指标阈值 | 基于策略和规划 | +| 保护机制 | 可能缺失 | 必须具备 | +| 故障时行为 | 可能加剧故障 | 设计上防止故障扩大 | + +## Anti-Patterns +- **Autoscaling to Death**:系统在负载高峰时无限扩容,导致资源耗尽 +- **No Upper Limits**:缺少上限导致成本爆炸 +- **Metrics Blindness**:依赖单一指标,忽视系统整体健康状况 + +## Best Practices +1. 设置合理的扩容上限和缩容下限 +2. 配置多维度指标(不仅仅是 CPU) +3. 建立人工覆盖机制 +4. 在非生产环境测试扩容策略 +5. 监控 Autoscaling 本身的行为 + +## Related Concepts +- [[Elasticity]] +- [[Scalability]] +- [[Cluster-Autoscaler]] +- [[Cost-Optimization]] + +## Source +- SRE Weekly Issue #513 — [[sre-weekly-issue-513]] diff --git a/wiki/concepts/Background-Job-Scheduling.md b/wiki/concepts/Background-Job-Scheduling.md new file mode 100644 index 00000000..e0aaadf6 --- /dev/null +++ b/wiki/concepts/Background-Job-Scheduling.md @@ -0,0 +1,33 @@ +--- +title: "Background-Job-Scheduling" +type: concept +tags: [] +sources: [expose-hermes-agent-as-an-openai-compatible-api-for-any-frontend] +last_updated: 2026-05-02 +--- + +## Definition +Background Job Scheduling 是通过远程 API 管理定时和后台 Agent 任务的能力,使客户端无需长期保持连接即可触发和监控长时间运行的任务。 + +## Implementation in Hermes Agent +`/api/jobs` API 提供完整的 CRUD 接口: +- **Create**:创建定时任务或后台任务 +- **Read**:查询任务状态和结果 +- **Update**:修改任务参数或取消任务 +- **Delete**:删除任务 + +## Key Features +- **定时执行**:支持 cron 表达式或延迟执行 +- **状态追踪**:实时查询任务执行状态 +- **结果获取**:任务完成后可获取完整输出 +- **远程管理**:客户端无需保持连接 + +## Use Cases +- 定时报告生成 +- 批量数据处理 +- 定时通知发送 +- 后台数据同步 + +## Related +- [[OpenAI-Compatible-API]] +- [[Multi-Profile-Isolation]] diff --git a/wiki/concepts/Bearer-Token-Authentication.md b/wiki/concepts/Bearer-Token-Authentication.md new file mode 100644 index 00000000..a5ab65f0 --- /dev/null +++ b/wiki/concepts/Bearer-Token-Authentication.md @@ -0,0 +1,24 @@ +--- +title: "Bearer-Token-Authentication" +type: concept +tags: [] +sources: [expose-hermes-agent-as-an-openai-compatible-api-for-any-frontend] +last_updated: 2026-05-02 +--- + +## Definition +Bearer Token Authentication 是一种 HTTP 认证机制,通过 `Authorization: Bearer ` 请求头传递令牌来验证 API 请求的合法性。 + +## Usage in Hermes Agent +Hermes Agent API Server 使用 Bearer Token 认证: +- **环境变量**:`API_SERVER_KEY` 设置认证密钥 +- **请求格式**:`Authorization: Bearer ` +- **适用场景**:任何调用 API Server 的客户端 + +## Security Notes +- 当 API Server 绑定到非 loopback 地址(如 `0.0.0.0`)时,必须配置 `API_SERVER_KEY` +- 默认绑定 `127.0.0.1:8642` 时仅本地访问可用,认证可选 + +## Related +- [[OpenAI-Compatible-API]] +- [[Multi-Profile-Isolation]] diff --git a/wiki/concepts/Behavioral-Analytics.md b/wiki/concepts/Behavioral-Analytics.md new file mode 100644 index 00000000..f519b7b6 --- /dev/null +++ b/wiki/concepts/Behavioral-Analytics.md @@ -0,0 +1,37 @@ +--- +title: "Behavioral Analytics" +type: concept +tags: [ux, behavioral-analytics, data-analysis, user-behavior, analytics] +sources: [design-ux-researcher.md] +last_updated: 2026-04-24 +--- + +## Definition + +Behavioral Analytics(行为分析)是一种通过收集、分析和解读用户在数字产品中的行为数据来识别使用模式、发现问题和优化机会的定量研究方法。是 UX Researcher Agent 在数字产品研究中的重要工具。 + +## Key Techniques + +| 技术 | 说明 | +|------|------| +| Event Tracking | 追踪用户关键行为事件(点击/导航/停留) | +| Funnel Analysis | 分析用户转化漏斗,识别流失点 | +| Cohort Analysis | 按用户群组分析行为差异 | +| Session Recording | 录制用户会话视频,还原真实行为 | + +## Metrics + +- **Activation Rate**:用户激活比例 +- **Engagement Rate**:用户参与度 +- **Retention Rate**:用户留存率 +- **Churn Rate**:用户流失率 + +## Relationship to Other Concepts + +- [[Qualitative-Quantitative-Research]]:行为分析是定量研究方法的具体应用 +- [[User-Journey-Mapping]]:行为数据分析支撑用户旅程地图的构建 +- [[User-Research-Methodology]]:行为分析是混合研究方法的数据支撑层 + +## Source + +- [[design-ux-researcher.md]] — UX Researcher Agent Personality diff --git a/wiki/concepts/BigFive.md b/wiki/concepts/BigFive.md new file mode 100644 index 00000000..04aa0831 --- /dev/null +++ b/wiki/concepts/BigFive.md @@ -0,0 +1,33 @@ +--- +title: "Big Five Personality Model" +type: concept +tags: [] +sources: [academic-psychologist] +last_updated: 2026-04-25 +--- + +# Big Five Personality Model + +## Aliases +- Big Five +- Five-Factor Model (FFM) +- OCEAN Model + +## Definition +人格五因素模型——通过五个正交维度系统性评估和描述人格特质,是当前人格心理学中最具实证支持的结构框架。 + +## Five Factors + +| 因素 | 高分特征 | 低分特征 | +|------|----------|----------| +| Openness(开放性) | 想象力、好奇心、艺术兴趣 | 务实、保守、按部就班 | +| Conscientiousness(尽责性) | 自律、组织、成就导向 | 随性、冲动、拖延 | +| Extraversion(外向性) | 社交、活力、寻求刺激 | 内向、安静、低社交需求 | +| Agreeableness(宜人性) | 信任、合作、利他、谦逊 | 竞争、怀疑、自利 | +| Neuroticism(神经质) | 焦虑、情绪不稳定、脆弱 | 情绪稳定、抗压、适应性强 | + +## Application in Character Design +Psychologist Agent 使用 Big Five 评估角色特质时,要求每个特质必须有对应的**行为表现**(behavioral manifestation),而非抽象标签。 + +## Connection to Wiki +- Source: [[academic-psychologist]] diff --git a/wiki/concepts/BlamelessPostMortem.md b/wiki/concepts/BlamelessPostMortem.md new file mode 100644 index 00000000..d0ce4c13 --- /dev/null +++ b/wiki/concepts/BlamelessPostMortem.md @@ -0,0 +1,110 @@ +--- +title: "Blameless Post-Mortem" +type: concept +tags: [reliability, incident-management, culture] +last_updated: 2026-05-01 +--- + +## Definition +无责复盘(Blameless Post-Mortem)是一种以系统性视角分析事故的方法——归因于系统缺陷和流程缺口,而非个人错误。其核心原则:**"The system allowed this failure mode"**(系统允许了这种失败模式的存在),而非"X 人员导致了故障"。 + +## Core Principles + +### 1. 聚焦系统,不追责个人 +- **错误框架**:"X 人员没有检查配置" +- **正确框架**:"系统没有强制执行配置验证流程" +- 关键问题:"系统缺少什么护栏/告警/测试,才让这个缺陷通过了?" + +### 2. 5 Whys 根因分析 +通过连续追问找到系统性根本原因: +1. 为什么服务宕机了?→ 配置文件错误 +2. 为什么配置文件错误?→ 变更审批未发现 +3. 为什么未发现?→ 没有自动化配置校验测试 +4. 为什么没有配置校验测试?→ 优先级未排入迭代 +5. 为什么未排入迭代?→ **系统根因**:没有将配置变更纳入质量门槛流程 + +### 3. 事实记录,时序重建 +- 按 UTC 时间重建完整事故时间线(从检测到恢复到后续跟进) +- 记录实际采取的行动,而非"应该"采取的行动 +- 区分缓解措施(止血)和根因修复(治本) + +### 4. 平衡"做得好的"和"做得差的" +- **What Went Well**:有效的流程、工具和团队协作 +- **What Went Poorly**:拖慢检测或恢复的缺口 + +### 5. 行动项必须有跟踪 +- 每次复盘必须有具体行动项(Action Items) +- 每个行动项:清晰的描述 + 负责人 + 优先级 + 截止日期 +- 无跟进行动项的复盘 = 只是会议 + +## Post-Mortem Document Structure + +```markdown +# Post-Mortem: [Incident Title] + +**Date**: YYYY-MM-DD +**Severity**: SEV[1-4] +**Duration**: [start] – [end] ([total]) +**Author**: [name] +**Status**: [Draft / Review / Final] + +## Executive Summary +[2-3句话:发生了什么、影响谁、如何解决] + +## Impact +- Users affected: [数量或百分比] +- Revenue impact: [估算或 N/A] +- SLO budget consumed: [月度错误预算消耗百分比] + +## Timeline (UTC) +| Time | Event | +|-------|-------| +| 14:02 | Monitoring alert fires: API error rate > 5% | +| 14:05 | On-call engineer acknowledges page | +| ... | ... | + +## Root Cause Analysis +### What happened +[详细技术解释] + +### Contributing Factors +1. **Immediate**: [直接触发原因] +2. **Underlying**: [为什么触发成为可能] +3. **Systemic**: [组织/流程层面的缺口] + +### 5 Whys +1. Why...? → [answer] +2. ... + +## What Went Well +- + +## What Went Poorly +- + +## Action Items +| ID | Action | Owner | Priority | Due | Status | +|----|--------|-------|----------|-----|--------| +| 1 | ... | @team | P1 | ... | Open | + +## Lessons Learned +[对未来架构和流程决策的启示] +``` + +## Key Rules + +| 规则 | 说明 | +|------|------| +| 48 小时原则 | 事故解决后 48 小时内必须启动复盘(趁记忆鲜活) | +| 心理安全 | 参与者必须感到安全,不能因发言而受到惩罚 | +| 文档公开 | 复盘文档全公司可见,知识共享 | +| 季度复盘 | 回顾过去季度的事故趋势,识别系统性风险 | + +## Related Concepts +- [[DORA-Metrics]] — 通过 MTTD、MTTR 等指标量化可靠性 +- [[DevOpsCulture]] — 无责文化是 DevOps 的核心支柱之一 +- [[Rollback-Rate]] — 回滚分析是复盘的重要输入 +- [[FiveWhys]] — 5问法是复盘根因分析的经典工具 + +## Sources +- [[engineering-incident-response-commander]] diff --git a/wiki/concepts/Blended-Learning.md b/wiki/concepts/Blended-Learning.md new file mode 100644 index 00000000..4cf1ce86 --- /dev/null +++ b/wiki/concepts/Blended-Learning.md @@ -0,0 +1,45 @@ +--- +title: "Blended Learning" +type: concept +tags: [learning-strategy, instructional-design] +sources: [corporate-training-designer] +last_updated: 2026-05-29 +--- + +## Definition + +Blended Learning(OMO,Online-Merge-Offline,线上线下融合学习)是将线上学习与线下面对面教学有机结合的学习模式,按照"知道→做到→持续"的认知规律分配学习场景,实现学习效果最大化。 + +## Three-Layer Model + +### 线上 — "知道"(Knowing) +- 知识传递:微课视频、文档阅读、在线测验 +- 特点:可随时随地学习,支持碎片化时间利用 +- 微课程规范:5-15分钟一门课,解决一个问题,结构清晰(痛点导入→知识传递→案例演示→要点总结) + +### 线下 — "做到"(Doing) +- 深度实践:小组讨论、角色扮演、沙盘模拟、动手练习 +- 特点:在安全环境中犯错误、即时反馈、行为强化 +- 场景类型:商业决策沙盘、项目管理沙盘、供应链沙盘等 + +### 学习社群 — "持续"(Sustaining) +- 持续巩固:学习社区、答疑辅导、经验分享、行动学习 +- 特点:将一次性培训转化为持续学习行为 + +## Key Platforms(中国企业) +- [[DingTalk-Learning]](钉钉学习):适合阿里巴巴生态企业,与钉钉 OA 深度集成 +- [[WeCom-Learning]](企业微信学习):适合微信生态企业,嵌入公众号和小程序 +- [[Feishu-Knowledge-Base]](飞书知识库):适合字节跳动生态和知识管理导向组织 +- [[UMU]]:混合学习领域领先者,支持 AI 练习搭档、视频作业、丰富互动功能 +- [[Yunxuetang]](云学堂):大中型企业一站式学习平台 + +## Instructional Design Principles +- **场景匹配**:知识类内容适合线上,技能类内容必须线下实践 +- **认知负荷控制**:线上微课控制在15分钟以内;线下培训每90分钟安排互动或休息 +- **行为迁移设计**:每次线下练习必须设计行为迁移任务,确保学员回去能用 + +## Connections +- [[Blended-Learning]] ← learning_strategy ← [[Corporate-Training-Designer]](培训设计师的核心交付模式) +- [[Flipped-Classroom]] ← practice_application ← [[Blended-Learning]](翻转课堂是混合学习的一种实践形式) +- [[Kolbs-Learning-Cycle]] ← theoretical_basis ← [[Blended-Learning]](Kolb 体验学习圈为混合学习的场景分配提供理论依据) +- [[Blended-Learning]] ← platform_infrastructure ← [[Blended-Learning-Platform]](学习平台是混合学习的技术支撑) diff --git a/wiki/concepts/Bloom-Taxonomy.md b/wiki/concepts/Bloom-Taxonomy.md new file mode 100644 index 00000000..446232b0 --- /dev/null +++ b/wiki/concepts/Bloom-Taxonomy.md @@ -0,0 +1,53 @@ +--- +title: "Bloom Taxonomy" +type: concept +tags: [cognitive-theory, learning-objectives] +sources: [corporate-training-designer] +last_updated: 2026-05-29 +--- + +## Definition + +Bloom 认知分类法(Blooms Taxonomy)由 Benjamin Bloom 等人于 1956 年提出,是一种按认知复杂度排序的学习目标分类体系,包含六个层级(记忆→理解→应用→分析→评价→创造),用于设计学习目标和评估标准。 + +## Six Levels + +### Level 1 — Remember(记忆) +- 识别、回忆事实性信息 +- 关键词:列出、定义、命名、辨认 +- 示例:列举企业培训的五种常见形式 + +### Level 2 — Understand(理解) +- 解释信息的含义 +- 关键词:总结、解释、举例、分类 +- 示例:用自己的话解释 ADDIE 模型的五个阶段 + +### Level 3 — Apply(应用) +- 将知识用于新情境 +- 关键词:执行、使用、演示、解决 +- 示例:在给定的业务场景中,选择合适的教学策略 + +### Level 4 — Analyze(分析) +- 区分整体与部分,理解各部分之间的关系 +- 关键词:比较、对比、分解、辨别 +- 示例:分析某培训课程失败的原因,找出关键要素 + +### Level 5 — Evaluate(评价) +- 基于标准做出判断 +- 关键词:评价、批判、选择、支持 +- 示例:评估两种教学设计方案的优劣 + +### Level 6 — Create(创造) +- 将要素重组为新结构 +- 关键词:设计、构建、创造、制定 +- 示例:设计一套完整的新员工培训方案 + +## Applications in Training Design +- **学习目标撰写**:使用 Bloom 动词明确每个学习目标的认知层级 +- **评估设计**:根据 Bloom 层级设计相应的评估方式(记忆→选择题;应用→案例分析;创造→方案设计) +- **内容深度把控**:确保课程内容覆盖多个认知层级,而不仅是最低层级的"知识灌输" + +## Connections +- [[Bloom-Taxonomy]] ← learning_objective_framework ← [[ADDIE-Model]](ADDIE 的设计阶段使用 Bloom 分类定义学习目标) +- [[Bloom-Taxonomy]] ← cognitive_level ← [[Kirkpatrick-Model]](Bloom 定义"学到什么层级",Kirkpatrick 验证"是否真的学到了") +- [[Corporate-Training-Designer]] ← uses ← [[Bloom-Taxonomy]](培训设计师必须掌握的核心教学设计工具) diff --git a/wiki/concepts/Brand-Foundation-Framework.md b/wiki/concepts/Brand-Foundation-Framework.md new file mode 100644 index 00000000..fea9a560 --- /dev/null +++ b/wiki/concepts/Brand-Foundation-Framework.md @@ -0,0 +1,44 @@ +--- +title: "Brand Foundation Framework" +type: concept +tags: [brand, strategy, framework] +last_updated: 2026-05-15 +sources: [design-brand-guardian] +--- + +## Definition + +品牌基础框架是定义品牌存在的完整战略体系,包含 Purpose(存在意义)、Vision(愿景)、Mission(使命)、Values(价值观)和 Personality(个性)五个核心维度。该框架是所有品牌决策的基础,确保品牌在所有触点的一致性和差异化。 + +## Core Components + +### Brand Purpose(存在意义) +品牌超越盈利之外的存在意义——有意义的价值和影响创造。回答"为什么品牌存在"。 + +### Brand Vision(愿景) +品牌追求的理想未来状态——品牌发展方向和成就。回答"品牌想去哪里"。 + +### Brand Mission(使命) +品牌具体做什么、为谁做——价值交付和目标受众。回答"品牌做什么、为谁做"。 + +### Brand Values(价值观) +指导所有品牌行为和决策的核心原则,例如: +1. Primary Value:定义及行为表现 +2. Secondary Value:定义及行为表现 +3. Supporting Value:定义及行为表现 + +### Brand Personality(个性) +定义品牌特征的人类特征,例如: +- Trait 1:描述及表达方式 +- Trait 2:描述及表达方式 +- Trait 3:描述及表达方式 + +## Brand Promise +对客户和利益相关者的承诺——他们可以永远期待什么。 + +## Connections + +- [[design-brand-guardian]] → 定义了 Brand Foundation Framework 的完整结构 +- [[Visual-Identity-System]] → Brand Foundation Framework 的视觉表达 +- [[Brand-Voice]] → Brand Foundation Framework 的语言表达 +- [[design-ux-architect]] → Brand Foundation Framework 是其技术实现的输入 diff --git a/wiki/concepts/Brand-Personality-Framework.md b/wiki/concepts/Brand-Personality-Framework.md new file mode 100644 index 00000000..275b21bb --- /dev/null +++ b/wiki/concepts/Brand-Personality-Framework.md @@ -0,0 +1,48 @@ +--- +title: "Brand Personality Framework" +type: concept +tags: [brand, ux, design] +last_updated: 2026-04-30 +--- + +# 品牌个性框架(Brand Personality Framework) + +## Aliases +- Brand Personality +- 品牌个性 +- 品牌声音(Brand Voice) + +## 定义 + +品牌个性框架是定义品牌在所有接触点上"如何表达自己"的系统方法——包括语言风格(文案/语气)、视觉风格(颜色/动画/图标)和交互风格(如何响应用户行为)。核心目标是在保持一致性的同时,传达独特的情感连接。 + +## 四维个性谱系 + +| 情境 | 维度 | 示例 | +|------|------|------| +| 专业场景 | Professional Context | 简洁、数据驱动、严谨 | +| 休闲场景 | Casual Context | 友好、轻松、有温度 | +| 错误场景 | Error Context | 幽默化解焦虑、提供清晰引导 | +| 成功场景 | Success Context | 热情庆祝、肯定用户成就 | + +## 关键要素 + +1. **品牌声音(Brand Voice)**:在各类情境下保持一致的语言风格和语气 +2. **视觉人格(Visual Personality)**:颜色、动画风格、图标选择等视觉元素的一致性 +3. **交互风格(Interaction Style)**:系统如何响应用户动作——积极的?稳重的?俏皮的? +4. **文化敏感性**:确保个性表达跨越文化边界时不产生误解 + +## 与微交互的关系 + +微交互是品牌个性在交互层的执行载体——一个"俏皮"的品牌会在微交互中体现俏皮(趣味动画/庆祝效果),一个"专业"的品牌则会选择克制的、精确的反馈。 + +## 应用场景 + +- [[design-whimsy-injector]] 负责将品牌个性框架转化为具体的趣味性设计规范和微文案 +- [[design-brand-guardian]] 负责维护品牌个性的一致性和边界 + +## 相关概念 + +- [[design-whimsy-injector]]:品牌个性框架的具体执行者 +- [[Micro-Interaction]]:品牌个性在交互细节上的表达 +- [[Inclusive-Delight]]:品牌个性需兼顾包容性,不能因追求个性而排除特定用户群 diff --git a/wiki/concepts/Brand-Protection.md b/wiki/concepts/Brand-Protection.md new file mode 100644 index 00000000..d62eafdc --- /dev/null +++ b/wiki/concepts/Brand-Protection.md @@ -0,0 +1,49 @@ +--- +title: "Brand Protection" +type: concept +tags: [brand, protection, trademark, governance] +last_updated: 2026-05-15 +sources: [design-brand-guardian] +--- + +## Definition + +品牌保护是维护品牌完整性、价值和声誉的综合策略体系,包含 Trademark Strategy(商标策略)、Compliance Monitoring(合规监控)和 Crisis Management(危机管理)三个核心维度。 + +## Core Components + +### Trademark Strategy(商标策略) +- 商标注册和保护计划 +- 知识产权识别和登记 +- 侵权监测和执法 +- 法律保护框架 + +### Compliance Monitoring(合规监控) +- 品牌使用合规性检查 +- 品牌实施跨所有触点的监控 +- 品牌指南遵守情况审计 +- 纠正性指导机制 + +### Crisis Management(危机管理) +- 品牌危机应对预案 +- 声誉保护策略 +- 利益相关者沟通计划 +- 品牌恢复路径 + +## Key Activities + +- 保护品牌知识产权 +- 监控品牌一致性实施 +- 管理品牌危机情况 +- 确保文化敏感性和市场适当性 + +## Brand Protection as Default + +Brand Guardian Agent 将品牌保护作为默认要求内置于所有品牌策略中,而非事后补救。 + +## Connections + +- [[design-brand-guardian]] → 定义了 Brand Protection 的完整框架 +- [[Brand-Foundation-Framework]] → Brand Protection 保护品牌基础框架的完整性 +- [[Automation-Governance-Architect]] → 共享治理和保护的系统性思维 +- [[Compliance-Auditor]] → 提供合规监控的方法论参考 diff --git a/wiki/concepts/Brand-Voice.md b/wiki/concepts/Brand-Voice.md new file mode 100644 index 00000000..32f73b59 --- /dev/null +++ b/wiki/concepts/Brand-Voice.md @@ -0,0 +1,47 @@ +--- +title: "Brand Voice" +type: concept +tags: [brand, voice, communication, messaging] +last_updated: 2026-05-15 +sources: [design-brand-guardian] +--- + +## Definition + +品牌声音是品牌语言表达的核心规范,定义品牌如何与受众沟通。包含 Voice Characteristics(声音特征)、Tone Variations(语气变体)和 Messaging Framework(信息架构)三个维度。 + +## Core Components + +### Voice Characteristics(声音特征) +定义品牌沟通的人类特征: +- **Strategic(战略性)**:强调品牌决策的战略价值 +- **Consistent(一致性)**:确保跨所有渠道的品牌表达一致 +- **Protective(保护性)**:维护品牌完整性和价值 +- **Visionary(愿景性)**:传达品牌的未来导向和雄心 + +### Tone Variations(语气变体) +根据场景调整的语气指南: +- **Professional(专业)**:何时使用及示例语言 +- **Conversational(对话)**:何时使用及示例语言 +- **Supportive(支持)**:何时使用及示例语言 + +### Messaging Framework(信息架构) +- **Brand Tagline**:概括品牌精髓的易记短语 +- **Value Proposition**:清晰的客户利益声明 +- **Key Messages**: + 1. 主要受众的主要信息 + 2. 次要受众的次要信息 + 3. 特定用例的支持信息 + +## Writing Guidelines + +- **Vocabulary**:首选术语、需要避免的短语 +- **Grammar**:风格偏好、格式标准 +- **Cultural Considerations**:包容性语言指南 + +## Connections + +- [[Brand-Foundation-Framework]] → Brand Voice 是其语言表达层 +- [[design-brand-guardian]] → 定义了 Brand Voice 的完整规范 +- [[Micro-Interaction]] → Brand Voice 在微交互文案中的应用 +- [[Brand-Personality-Framework]] → Brand Voice 反映品牌个性 diff --git a/wiki/concepts/Budget-Variance-Analysis.md b/wiki/concepts/Budget-Variance-Analysis.md new file mode 100644 index 00000000..ae63b592 --- /dev/null +++ b/wiki/concepts/Budget-Variance-Analysis.md @@ -0,0 +1,44 @@ +--- +title: "Budget Variance Analysis" +type: concept +tags: ["finance", "budgeting", "variance-analysis"] +last_updated: 2026-04-30 +--- + +## Definition +预算差异分析是通过比较预算金额(budget_amount)与实际金额(actual_amount)之间的差异(variance),判断预算执行状态的财务管控方法,是预算管理闭环的关键环节。 + +## Calculation +``` +variance = budget_amount - actual_amount +variance_percentage = (actual_amount - budget_amount) / budget_amount × 100 +``` + +## Status Thresholds +| 差异百分比 | 预算状态 | +|-----------|---------| +| ≤ 5% (正或负) | On Track(正常) | +| > 5%(超支) | Over Budget(超支) | +| > 5%(节省) | Under Budget(节省) | + +## Core Framework +通过 SQL 窗口函数实现: +1. **CTE `budget_actuals`**:按部门、类别、季度聚合预算与实际数据 +2. **CTE `department_summary`**:按部门维度汇总,输出总预算、总实际、差异总额、平均差异百分比 + +## Success Criteria +预算准确率目标:**95%+**,差异分析需附带差异原因说明和纠正行动计划。 + +## Workflow +1. 财务数据验证与核对 +2. 差异计算与状态分类 +3. 差异解释与根因分析 +4. 纠正措施制定与执行 +5. 下期预算调整 + +## Implementation +参见 [[support-finance-tracker]] 中的年度预算 SQL 查询(`WITH budget_actuals AS ...`)。 + +## Related Concepts +- [[Cash Flow Forecasting]]:现金流预测与预算管理同为财务规划支柱 +- [[Financial Risk Assessment]]:差异分析是财务风险预警的重要信号 diff --git a/wiki/concepts/BudgetPacing.md b/wiki/concepts/BudgetPacing.md new file mode 100644 index 00000000..8121bbb3 --- /dev/null +++ b/wiki/concepts/BudgetPacing.md @@ -0,0 +1,54 @@ +--- +title: "Budget Pacing" +type: concept +tags: ["ppc", "budget", "pacing", "google-ads", "paid-media"] +sources: ["paid-media-ppc-strategist"] +last_updated: 2026-05-01 +--- + +## Definition + +预算 Pacing(Budget Pacing)是管理广告日预算消耗速度的策略与模型,确保预算在整个日期范围内(通常一天)均匀消耗,避免早期过快耗尽(错失晚间高转化流量)或过慢消耗(浪费展示份额)。核心目标:**日预算消耗率 95-100%,浪费控制在 5% 以内**。 + +## Core Concepts + +### Daily Budget Mechanics +- Google Ads 将日预算乘以 30.4(平均每月天数)作为月预算 +- 实际消耗可能在单日波动 ±20%,月度总量不超过月预算 + +### Pacing Patterns + +| 模式 | 描述 | 风险 | +|------|------|------| +| **Accelerated** | 尽快消耗预算 | 早期耗尽,错失后续流量 | +| **Standard** | 算法均匀分配 | 通常推荐 | +| **Seasonal Adjustment** | 旺季/淡季动态调整 | 需主动管理 | + +## Pacing Analysis + +### Diminishing Returns Analysis +- 识别预算边际效益递减点 +- 测试增量预算的转化效率 +- 确定最优预算天花板 + +### Incremental Spend Testing +``` +Hypothesis:每增加 $X 日预算,可带来 Y 个额外转化 +Methodology:逐步增加预算 20-30%,监控 CPA 变化 +Stop criteria:CPA 上升超过 X% 或转化量无显著提升 +``` + +### Seasonal Budget Shifting +- **Q4 Holiday Season**:提前 4-6 周增加预算,黑色星期五达到峰值 +- **Product Launch**:发布前 2 周开始预热,逐步加码 +- **Off-Peak**:适度降低预算,维持展示份额 + +## Success Metrics +- 日预算消耗率:95-100%(过高=浪费,过低=错失流量) +- 浪费率:<5% +- 周末/工作日 pacing 一致性 + +## Connections +- [[MCCLevelStrategy]]:MCC 级预算分配和 pacing 是多账户协调的核心 +- [[AutomatedBiddingStrategy]]:自动化竞价需配合充足预算才能发挥最佳效果 +- [[GoogleAds]]:Budget Pacing 是 Google Ads 账户管理的基本功 diff --git a/wiki/concepts/BusinessImpactQuantification.md b/wiki/concepts/BusinessImpactQuantification.md new file mode 100644 index 00000000..a53e8b9d --- /dev/null +++ b/wiki/concepts/BusinessImpactQuantification.md @@ -0,0 +1,29 @@ +--- +title: "Business Impact Quantification" +type: concept +tags: ["business-analysis", "consulting", "metrics"] +sources: ["support-executive-summary-generator"] +last_updated: 2026-04-26 +--- + +## Definition +商业影响量化是一种将业务发现和建议转化为具体、可衡量数据的方法论。核心是用 $ 或 % 等定量指标使影响具体可感知,避免模糊表述。 + +## Key Principles +- **量化优先**:用具体数字替代模糊描述(如"34% QoQ增长"而非"显著增长") +- **财务影响明确**:Revenue/Cost/Market Share 变化必须量化 +- **风险/机会幅度**:用概率或百分比表达不确定性 +- **时间范围**:明确影响实现的时间节点 + +## Application in Executive Summary +- 每个 Key Finding 必须包含 ≥ 1 个量化数据点 +- Business Impact 部分量化潜在收益/损失 +- Recommendations 包含预期结果的可衡量指标 + +## Examples +- "Customer acquisition costs increased 34% QoQ, from $45 to $60 per customer" +- "This initiative could unlock $2.3M in annual recurring revenue within 18 months" + +## Related Concepts +- [[Executive Summary]] +- [[Action-Oriented Recommendations]] diff --git a/wiki/concepts/CBT-CognitiveDistortions.md b/wiki/concepts/CBT-CognitiveDistortions.md new file mode 100644 index 00000000..451849c1 --- /dev/null +++ b/wiki/concepts/CBT-CognitiveDistortions.md @@ -0,0 +1,38 @@ +--- +title: "CBT Cognitive Distortions" +type: concept +tags: [] +sources: [academic-psychologist] +last_updated: 2026-04-25 +--- + +# CBT Cognitive Distortions + +## Aliases +- Beck's Cognitive Distortions +- Cognitive Distortions +- Thinking Errors + +## Definition +Beck 认知行为疗法中的认知扭曲——非理性、适应不良的思维模式,驱动情绪反应和行为决策。 + +## Common Cognitive Distortions + +| 扭曲类型 | 描述 | 例子 | +|----------|------|------| +| All-or-Nothing(全或无思维) | 非黑即白的极端判断 | "如果我不完美,就是彻底的失败" | +| Overgeneralization(过度概括) | 以单一事件得出普遍结论 | "这次失败了,我永远都会失败" | +| Mental Filter(心理过滤) | 放大负面、忽视正面 | 只记住批评,忘记所有赞美 | +| Disqualifying the Positive(贬损正面) | 把正面经历解释为偶然 | "他们夸我只是客气" | +| Jumping to Conclusions(跳跃式结论) | 无根据的负面解读 | 读心术、预言式思维 | +| Magnification/Minimization(放大/缩小) | 不成比例地放大负面、缩小正面 | 把小错误灾难化 | +| Emotional Reasoning(情绪化推理) | "我感觉是这样,所以就是这样" | "我觉得自己很蠢,所以我就是蠢" | +| Should Statements("应该"陈述) | 僵化的规则和自我要求 | "我应该总是坚强" | +| Labeling(标签化) | 用标签代替行为描述 | "我是一个失败者" | +| Personalization(个人化) | 不恰当地把外部事件和自己关联 | "他生气是因为我" | + +## Application in Character Design +Psychologist Agent 通过识别角色决策背后的具体认知扭曲,而非泛泛说"他们不理性",使心理分析具有可操作性。 + +## Connection to Wiki +- Source: [[academic-psychologist]] diff --git a/wiki/concepts/CDC-Change-Data-Capture.md b/wiki/concepts/CDC-Change-Data-Capture.md new file mode 100644 index 00000000..b3150f98 --- /dev/null +++ b/wiki/concepts/CDC-Change-Data-Capture.md @@ -0,0 +1,41 @@ +--- +title: "CDC (Change Data Capture)" +type: concept +tags: [data-engineering, streaming, incremental-pipeline] +sources: [engineering-data-engineer] +last_updated: 2026-05-02 +--- + +## Definition + +CDC(Change Data Capture,变更数据捕获)是一种从源系统捕获增量变更(插入、更新、删除)的技术,使数据管道无需全量刷新即可同步最新数据,大幅降低计算成本。 + +## How It Works + +1. **识别变更**:从源数据库的事务日志(WAL)、时间戳字段或变更追踪表中提取变更记录 +2. **携带元数据**:每条 CDC 记录携带变更类型(INSERT/UPDATE/DELETE)、变更时间、来源事务 ID +3. **幂等写入**:通过主键或变更时间戳实现幂等 upsert(MERGE INTO Delta Lake),确保重新运行安全 + +## Benefits + +- **成本节省**:增量处理 vs. 全量刷新,成本降低 90%+ +- **低延迟**:变更实时捕获,支持分钟级甚至秒级数据刷新 +- **低影响**:CDC 通常基于数据库日志读取,对源系统影响极小 + +## CDC in Medallion Architecture + +- **Bronze 层**:CDC 记录追加写入,保留完整变更历史(append-only) +- **Silver 层**:基于变更类型(INSERT=插入, UPDATE=更新, DELETE=标记删除)进行去重和 conform +- **Gold 层**:CDC 支持近实时业务指标更新 + +## CDC Technologies + +- **Debezium**:开源 CDC 平台,捕获 MySQL/PostgreSQL/MongoDB 等变更并发布到 Kafka +- **AWS DMS**(Database Migration Service):AWS 托管 CDC 解决方案 +- **Azure Data Factory** CDC 活动:Azure 生态 CDC 工具 +- **Databricks Auto Loader**:`cloudFiles` 增量摄取 CSV/Parquet/JSON 文件变更 + +## Related Concepts +- [[Medallion Architecture]] +- [[Data Contract]](CDC 需配合数据契约确保 schema 兼容) +- [[Apache Kafka]](CDC 常用传输层) diff --git a/wiki/concepts/CI-CD Pipeline.md b/wiki/concepts/CI-CD Pipeline.md new file mode 100644 index 00000000..d2e897b4 --- /dev/null +++ b/wiki/concepts/CI-CD Pipeline.md @@ -0,0 +1,83 @@ +--- +title: "CI/CD Pipeline" +type: concept +tags: [DevOps, Automation, Software Delivery] +sources: [engineering-devops-automator] +last_updated: 2026-05-01 +--- + +# CI/CD Pipeline + +## 定义 +CI/CD 流水线是自动化软件交付的端到端管道,包含持续集成(Continuous Integration)、持续交付(Continuous Delivery)和持续部署(Continuous Deployment)三个阶段。 + +## 三个阶段 + +### 持续集成(CI) +- 开发者频繁提交代码到共享仓库 +- 每次提交自动触发构建和测试 +- 早期发现集成问题 + +### 持续交付(CD) +- 代码通过所有自动化测试后自动部署到 staging 环境 +- 人工审批后部署到生产环境 +- 确保每次变更都可部署 + +### 持续部署(Continuous Deployment) +- 代码通过所有测试后自动部署到生产环境 +- 无需人工干预 +- 需要完善的测试和监控体系支撑 + +## 核心组件 + +### 构建阶段 +- 代码编译 +- 依赖安装 +- 制品构建(Docker 镜像/二进制文件) + +### 测试阶段 +- 单元测试 +- 集成测试 +- 端到端测试 +- 安全扫描 + +### 部署阶段 +- 部署到目标环境 +- 健康检查 +- 流量切换 +- 回滚机制 + +## DevOps Automator 的标准流水线 +```yaml +security-scan → test → build → deploy +``` +- security-scan:依赖漏洞扫描 + 静态安全分析 +- test:单元测试 + 集成测试 +- build:容器构建 + 推送镜像仓库 +- deploy:零停机部署(蓝绿/金丝雀/滚动) + +## 相关工具 +- [[GitHub Actions]]:DevOps Automator 默认选择 +- Jenkins:开源 CI/CD 服务器 +- GitLab CI:GitLab 内置 CI/CD +- ArgoCD:GitOps 持续交付 +- Spinnaker:多云持续交付平台 + +## 相关概念 +- [[Infrastructure as Code]]:CI/CD 部署目标通常是 IaC 管理的基础设施 +- [[Zero-Downtime Deployment]]:CI/CD 的部署策略 +- [[Blue-Green Deployment]]:CI/CD 常用部署策略 + +## 关键指标 +- **部署频率**:每日部署次数 +- **变更前置时间**:代码提交到生产的时间 +- **变更失败率**:生产环境回滚或失败的百分比 +- **MTTR**:平均恢复时间 + +## Aliases +- CI/CD +- CI/CD Pipeline +- 持续集成/持续交付 +- Continuous Integration +- Continuous Delivery +- Continuous Deployment diff --git a/wiki/concepts/CI-CD-Pipeline.md b/wiki/concepts/CI-CD-Pipeline.md index 9f983dbe..e6292e14 100644 --- a/wiki/concepts/CI-CD-Pipeline.md +++ b/wiki/concepts/CI-CD-Pipeline.md @@ -1,51 +1,51 @@ ---- -title: "CI/CD Pipeline" -type: concept -sources: [ctp-topic-1-gruntwork-landing-zone-architecture, ctp-topic-9-ci-cd-with-gruntwork] -last_updated: 2026-04-14 ---- - -## Definition -CI/CD 流水线(CI/CD Pipeline)是持续集成(Continuous Integration)和持续交付/部署(Continuous Delivery/Deployment)的自动化流程,用于管理基础设施代码(IaC)的构建、测试和部署。在 Gruntwork Landing Zone 架构中,每个 Landing Zone 配置独立的 Jenkins 服务器和 CI/CD 流水线来自动化 Terraform 基础设施变更。 - -## Core Components - -### CI(持续集成) -- **代码提交**:开发人员将特性分支代码推送到 GitHub 仓库 -- **自动构建**:Jenkins 触发 Terraform 初始化和格式化验证 -- **自动测试**:TerraTest 执行基础设施单元测试和集成测试 -- **代码审查**:Pull Request 必须通过审查才能合并到主分支 - -### CD(持续交付/部署) -- **自动部署**:合并到主分支后,Jenkins 自动执行 Terraform Plan -- **审批流程**:变更需要人工审批后才执行 Apply -- **渐进式部署**:支持 Blue-Green 部署和 Canary Release 策略 - -### Infrastructure-Specific Considerations -- **状态管理**:Terraform State 的锁定和远程存储(使用 S3 + DynamoDB) -- **幂等性**:Terraform 模块设计必须支持重复执行而不产生副作用 -- **回滚机制**:通过 Terraform State 历史版本实现快速回滚 -- **漂移检测**:定期运行 `terraform plan` 检测配置漂移 - -## Tools in Gruntwork Landing Zone Context -- **Jenkins**:核心 CI/CD 引擎,每个 Landing Zone 独立部署 -- **Terraform**:IaC 工具,定义和管理 AWS 资源 -- **TerraTest**:Go 语言编写的基础设施测试框架 -- **GitHub**:代码仓库,支持特性分支和 Pull Request 工作流 - -## Git Workflow -- 特性分支开发:`feature/` -- 通过 Pull Request 合并到主分支 -- 必须经过代码审查和 CI 测试 -- 合并后触发自动部署流水线 - -## Related Concepts -- [[Landing-Zone-Architecture]]:CI/CD 流水线是 Landing Zone 自动化运维的核心机制 -- [[Terraform-Modules]]:被 CI/CD 流水线自动化部署的 IaC 模块 -- [[GitOps]]:基于 Git 的运维方式,CI/CD 是其技术实现 -- [[TerraTest]]:用于基础设施变更的自动化测试工具 - -## References -- [[ctp-topic-1-gruntwork-landing-zone-architecture]] -- [[ctp-topic-9-ci-cd-with-gruntwork]] -- [[ctp-topic-2-git]] +--- +title: "CI/CD Pipeline" +type: concept +sources: [ctp-topic-1-gruntwork-landing-zone-architecture, ctp-topic-9-ci-cd-with-gruntwork, engineering-devops-automator] +last_updated: 2026-04-14 +--- + +## Definition +CI/CD 流水线(CI/CD Pipeline)是持续集成(Continuous Integration)和持续交付/部署(Continuous Delivery/Deployment)的自动化流程,用于管理基础设施代码(IaC)的构建、测试和部署。在 Gruntwork Landing Zone 架构中,每个 Landing Zone 配置独立的 Jenkins 服务器和 CI/CD 流水线来自动化 Terraform 基础设施变更。 + +## Core Components + +### CI(持续集成) +- **代码提交**:开发人员将特性分支代码推送到 GitHub 仓库 +- **自动构建**:Jenkins 触发 Terraform 初始化和格式化验证 +- **自动测试**:TerraTest 执行基础设施单元测试和集成测试 +- **代码审查**:Pull Request 必须通过审查才能合并到主分支 + +### CD(持续交付/部署) +- **自动部署**:合并到主分支后,Jenkins 自动执行 Terraform Plan +- **审批流程**:变更需要人工审批后才执行 Apply +- **渐进式部署**:支持 Blue-Green 部署和 Canary Release 策略 + +### Infrastructure-Specific Considerations +- **状态管理**:Terraform State 的锁定和远程存储(使用 S3 + DynamoDB) +- **幂等性**:Terraform 模块设计必须支持重复执行而不产生副作用 +- **回滚机制**:通过 Terraform State 历史版本实现快速回滚 +- **漂移检测**:定期运行 `terraform plan` 检测配置漂移 + +## Tools in Gruntwork Landing Zone Context +- **Jenkins**:核心 CI/CD 引擎,每个 Landing Zone 独立部署 +- **Terraform**:IaC 工具,定义和管理 AWS 资源 +- **TerraTest**:Go 语言编写的基础设施测试框架 +- **GitHub**:代码仓库,支持特性分支和 Pull Request 工作流 + +## Git Workflow +- 特性分支开发:`feature/` +- 通过 Pull Request 合并到主分支 +- 必须经过代码审查和 CI 测试 +- 合并后触发自动部署流水线 + +## Related Concepts +- [[Landing-Zone-Architecture]]:CI/CD 流水线是 Landing Zone 自动化运维的核心机制 +- [[Terraform-Modules]]:被 CI/CD 流水线自动化部署的 IaC 模块 +- [[GitOps]]:基于 Git 的运维方式,CI/CD 是其技术实现 +- [[TerraTest]]:用于基础设施变更的自动化测试工具 + +## References +- [[ctp-topic-1-gruntwork-landing-zone-architecture]] +- [[ctp-topic-9-ci-cd-with-gruntwork]] +- [[ctp-topic-2-git]] diff --git a/wiki/concepts/CORS-Allowlist.md b/wiki/concepts/CORS-Allowlist.md new file mode 100644 index 00000000..a4e4fc50 --- /dev/null +++ b/wiki/concepts/CORS-Allowlist.md @@ -0,0 +1,28 @@ +--- +title: "CORS-Allowlist" +type: concept +tags: [] +sources: [expose-hermes-agent-as-an-openai-compatible-api-for-any-frontend] +last_updated: 2026-05-02 +--- + +## Definition +CORS Allowlist(跨域资源共享白名单)是一种浏览器安全机制,通过精确配置允许特定来源的跨域请求。 + +## Purpose +当浏览器中的前端应用(如 Open WebUI)调用不同域的后端 API 时,浏览器会先发送预检请求(OPTIONS),服务器需明确允许该来源才能放行。 + +## Configuration in Hermes Agent +Hermes Agent API Server 支持 CORS Allowlist 配置: +- **环境变量**:`CORS_ALLOWED_ORIGINS` 设置允许的域名列表 +- **默认值**:仅允许配置列表中的来源 +- **安全建议**:生产环境仅开放必要的域名 + +## Example +``` +CORS_ALLOWED_ORIGINS=https://app.openwebui.com,https://chat.example.com +``` + +## Related +- [[OpenAI-Compatible-API]] +- [[hermes-agent]](via Hermes-Agent.md) diff --git a/wiki/concepts/CSS-Design-System.md b/wiki/concepts/CSS-Design-System.md new file mode 100644 index 00000000..4586b983 --- /dev/null +++ b/wiki/concepts/CSS-Design-System.md @@ -0,0 +1,92 @@ +--- +title: "CSS Design System" +type: concept +tags: [css, design-system, frontend, architecture] +sources: [design-ux-architect.md] +last_updated: 2026-04-24 +--- + +## Definition + +CSS Design System 是一套结构化的 CSS 架构规范,通过 CSS Custom Properties(CSS 变量)定义颜色、排版、间距等基础设计 Token,供整个项目复用,确保视觉一致性和主题切换能力。 + +## Core Components + +### Color System +```css +:root { + /* Light Theme Colors */ + --bg-primary: [spec-light-bg]; + --bg-secondary: [spec-light-secondary]; + --text-primary: [spec-light-text]; + --text-secondary: [spec-light-text-muted]; + --border-color: [spec-light-border]; + + /* Brand Colors */ + --primary-color: [spec-primary]; + --secondary-color: [spec-secondary]; + --accent-color: [spec-accent]; +} +``` + +### Typography Scale +```css +:root { + --text-xs: 0.75rem; /* 12px */ + --text-sm: 0.875rem; /* 14px */ + --text-base: 1rem; /* 16px */ + --text-lg: 1.125rem; /* 18px */ + --text-xl: 1.25rem; /* 20px */ + --text-2xl: 1.5rem; /* 24px */ + --text-3xl: 1.875rem; /* 30px */ +} +``` + +### Spacing System +```css +:root { + --space-1: 0.25rem; /* 4px */ + --space-2: 0.5rem; /* 8px */ + --space-4: 1rem; /* 16px */ + --space-6: 1.5rem; /* 24px */ + --space-8: 2rem; /* 32px */ + --space-12: 3rem; /* 48px */ + --space-16: 4rem; /* 64px */ +} +``` + +## Theme Support + +CSS Design System 必须原生支持三种主题模式: + +- **Light Theme**:浅色背景,深色文字 +- **Dark Theme**:深色背景,浅色文字 +- **System Theme**:`prefers-color-scheme` 检测系统偏好 + +```css +[data-theme="dark"] { + --bg-primary: [spec-dark-bg]; + --bg-secondary: [spec-dark-secondary]; + --text-primary: [spec-dark-text]; + --text-secondary: [spec-dark-text-muted]; + --border-color: [spec-dark-border]; +} + +@media (prefers-color-scheme: dark) { + :root:not([data-theme="light"]) { + --bg-primary: [spec-dark-bg]; + /* ... */ + } +} +``` + +## Related Concepts + +- [[Theme-Toggle]]:主题切换交互组件 +- [[Theme-Manager]]:JavaScript 主题管理类 +- [[Layout-Framework]]:基于此系统的布局架构 +- [[Component-Architecture]]:组件样式规范 + +## Sources + +- [[design-ux-architect]] — CSS Design System 的完整定义和示例代码 diff --git a/wiki/concepts/CTV-OTT-Advertising.md b/wiki/concepts/CTV-OTT-Advertising.md new file mode 100644 index 00000000..041557e4 --- /dev/null +++ b/wiki/concepts/CTV-OTT-Advertising.md @@ -0,0 +1,55 @@ +--- +title: "CTV/OTT Advertising" +type: concept +tags: ["ctv", "ott", "streaming", "paid-media", "video"] +sources: ["paid-media-programmatic-buyer"] +last_updated: 2026-04-26 +--- + +## Definition + +CTV/OTT Advertising(Connected TV / Over-the-Top Advertising)是指在联网电视设备和流媒体服务上投放的视频广告形式。CTV(Connected TV)指通过互联网连接的消费设备(如 Smart TV、Roku、Amazon Fire TV、Apple TV),OTT(Over-the-Top)指通过互联网直接传输到设备的视频内容订阅服务(如 Netflix、Hulu、Disney+ 等)。 + +## CTV vs OTT + +| 类型 | 设备/平台 | 内容传输方式 | +|------|---------|------------| +| CTV | Smart TV、Roku、Fire TV、Apple TV | 设备通过互联网接收内容 | +| OTT | 独立应用(Netflix、Hulu 等) | 直接通过互联网传输到任何设备 | + +## Ad Formats + +- **Pre-roll**:在流媒体内容播放前展示(最常见) +- **Mid-roll**:在内容中途插入,类似于传统电视广告时段 +- **Post-roll**:在内容结束后展示 +- **Pause Ads**:用户暂停播放时展示的全屏广告 +- **Display Overlay**:视频播放时的底部横幅展示 + +## Buying Methods + +- **Programmatic Direct**:通过程序化直接预订优质流媒体库存 +- **Private Marketplace(PMP)**:与特定流媒体平台建立私有交易 +- **Open Exchange**:公开程序化竞价购买 CTV 库存 + +## Key Metrics + +- **Impression Share**:广告展示占可寻址库存的比例 +- **Completion Rate**:视频广告完整播放率(目标 ≥80%) +- **Viewability Rate**:联网电视 MRC 标准(50% 像素可见 2 秒) +- **Audible Rate**:音频被激活的展示比例(视频广告) +- ** household Coverage**:触达的家庭单位数量 + +## Why CTV/OTT for Brand Extension + +- **传统电视的数字化延伸**:以程序化方式触达线性电视受众 +- **优质内容环境**:流媒体内容的品牌安全性和可见性通常高于数字展示 +- **高级定向能力**:超越传统电视的人口统计定向,实现行为和意图定向 +- **跨设备归因**:结合数字展示和CTV数据构建更完整的受众画像 + +## Related Concepts +- [[Programmatic Buying]] +- [[Viewability]] +- [[Frequency Cap]] + +## Sources +- [[paid-media-programmatic-buyer]] diff --git a/wiki/concepts/Calibration-Testing.md b/wiki/concepts/Calibration-Testing.md index 9cc06ee0..86d816cd 100644 --- a/wiki/concepts/Calibration-Testing.md +++ b/wiki/concepts/Calibration-Testing.md @@ -1,78 +1,80 @@ ---- -title: "Calibration Testing" -type: concept -tags: [model-evaluation, probability-calibration, model-quality] -last_updated: 2026-04-25 ---- - -## Definition - -概率校准(Calibration Testing)验证模型输出的预测概率与实际发生的频率是否一致。一个校准良好的分类器:若它预测某事件概率为 80%,则该事件实际发生的频率应接近 80%。 - -## Core Methods - -### Hosmer-Lemeshow Test -- 将预测概率分组(默认10组),比较每组观测正例数与期望正例数 -- 统计量:$\chi^2 = \sum \frac{(observed - expected)^2}{expected(1 - expected/n)}$ -- 自由度:组数 - 2;p-value < 0.05 → 拒绝原假设(校准差) -- **局限性**:对样本量敏感,分组方式不同结果不同 - -### Brier Score -- $BS = \frac{1}{N}\sum(p_i - y_i)^2$,取值 [0, 0.25](二分类) -- 同时衡量校准(calibration)和区分度(refinement) -- 值越低越好,可分解为:$BS = Calibration^2 + Refinement$ -- **优势**:无需分组,对样本量稳健,可跨模型比较 - -### Reliability Diagram(可靠性图) -- 将预测概率分箱(bin),绘制实际正例率 vs 预测概率 -- 理想情况为 45° 对角线;S 形曲线表示欠/过度预测 -- 视觉诊断工具,适合识别系统性校准偏差 - -### Expected Calibration Error (ECE) -- 加权平均每箱预测概率与实际频率的绝对差 -- $ECE = \sum_b \frac{|b|}{n} |acc(b) - conf(b)|$ -- 量化校准误差,便于跨模型对比 - -## Usage - -```python -# Hosmer-Lemeshow -from scipy.stats import chi2 - -def hosmer_lemshow_test(y_true, y_pred, groups=10): - data = pd.DataFrame({"y": y_true, "p": y_pred}) - data["bucket"] = pd.qcut(data["p"], groups, duplicates="drop") - agg = data.groupby("bucket", observed=True).agg( - n=("y", "count"), observed=("y", "sum"), expected=("p", "sum") - ) - hl_stat = (((agg["observed"] - agg["expected"])**2) / - (agg["expected"] * (1 - agg["expected"]/agg["n"]))).sum() - dof = len(agg) - 2 - p_value = 1 - chi2.cdf(hl_stat, dof) - return {"HL_statistic": round(hl_stat, 4), "p_value": round(p_value, 6), "calibrated": p_value >= 0.05} - -# Brier Score -from sklearn.metrics import brier_score_loss -bs = brier_score_loss(y_true, y_pred) -``` - -## Model QA 中的应用 - -Model QA Specialist 执行以下校准审计: -1. **跨子群体校准**:在年龄/地区/收入等子群体上分别测试,发现整体指标掩盖的局部校准问题 -2. **时间窗口稳定性**:跨 OOT(Out-of-Time)窗口测试校准稳定性,识别时间漂移 -3. **分布偏移下的校准**:在压力场景(population shift)下测试,评估模型鲁棒性 -4. **决策阈值校准**:根据业务决策阈值(如 p > 0.6 触发行动),评估该阈值处的校准质量 - -## Relationship - -- **依赖** [[Discrimination-Metrics]]:先验证模型有区分能力(AUC/Gini),再讨论校准才有意义 -- **依赖** [[SHAP]]:SHAP 解释"哪个特征导致校准偏差",支撑诊断方向 -- **依赖** [[Population-Stability-Index]]:PSI 捕捉特征分布漂移,漂移是校准失效的根本原因之一 -- **支撑** [[specialized-model-qa]](Source):Model QA Specialist 的核心审计步骤之一 - -## Key Insights - -- **High AUC ≠ Well Calibrated**:模型可以高区分度但低校准(如逻辑回归自然校准,神经网络往往过度自信) -- **业务影响**:校准误差 180bps(0.18)在 decile 10 可能影响 12% 的资产组合 -- **监管要求**:巴塞尔协议/IFRS 9/CCAR 等监管框架明确要求信用风险模型的概率校准 +--- +title: "Calibration Testing" +type: concept +tags: [model-evaluation, probability-calibration, model-quality] +sources: + - specialized-model-qa +last_updated: 2026-05-29 +--- + +## Definition + +概率校准(Calibration Testing)验证模型输出的预测概率与实际发生的频率是否一致。一个校准良好的分类器:若它预测某事件概率为 80%,则该事件实际发生的频率应接近 80%。 + +## Core Methods + +### Hosmer-Lemeshow Test +- 将预测概率分组(默认10组),比较每组观测正例数与期望正例数 +- 统计量:$\chi^2 = \sum \frac{(observed - expected)^2}{expected(1 - expected/n)}$ +- 自由度:组数 - 2;p-value < 0.05 → 拒绝原假设(校准差) +- **局限性**:对样本量敏感,分组方式不同结果不同 + +### Brier Score +- $BS = \frac{1}{N}\sum(p_i - y_i)^2$,取值 [0, 0.25](二分类) +- 同时衡量校准(calibration)和区分度(refinement) +- 值越低越好,可分解为:$BS = Calibration^2 + Refinement$ +- **优势**:无需分组,对样本量稳健,可跨模型比较 + +### Reliability Diagram(可靠性图) +- 将预测概率分箱(bin),绘制实际正例率 vs 预测概率 +- 理想情况为 45° 对角线;S 形曲线表示欠/过度预测 +- 视觉诊断工具,适合识别系统性校准偏差 + +### Expected Calibration Error (ECE) +- 加权平均每箱预测概率与实际频率的绝对差 +- $ECE = \sum_b \frac{|b|}{n} |acc(b) - conf(b)|$ +- 量化校准误差,便于跨模型对比 + +## Usage + +```python +# Hosmer-Lemeshow +from scipy.stats import chi2 + +def hosmer_lemshow_test(y_true, y_pred, groups=10): + data = pd.DataFrame({"y": y_true, "p": y_pred}) + data["bucket"] = pd.qcut(data["p"], groups, duplicates="drop") + agg = data.groupby("bucket", observed=True).agg( + n=("y", "count"), observed=("y", "sum"), expected=("p", "sum") + ) + hl_stat = (((agg["observed"] - agg["expected"])**2) / + (agg["expected"] * (1 - agg["expected"]/agg["n"]))).sum() + dof = len(agg) - 2 + p_value = 1 - chi2.cdf(hl_stat, dof) + return {"HL_statistic": round(hl_stat, 4), "p_value": round(p_value, 6), "calibrated": p_value >= 0.05} + +# Brier Score +from sklearn.metrics import brier_score_loss +bs = brier_score_loss(y_true, y_pred) +``` + +## Model QA 中的应用 + +Model QA Specialist 执行以下校准审计: +1. **跨子群体校准**:在年龄/地区/收入等子群体上分别测试,发现整体指标掩盖的局部校准问题 +2. **时间窗口稳定性**:跨 OOT(Out-of-Time)窗口测试校准稳定性,识别时间漂移 +3. **分布偏移下的校准**:在压力场景(population shift)下测试,评估模型鲁棒性 +4. **决策阈值校准**:根据业务决策阈值(如 p > 0.6 触发行动),评估该阈值处的校准质量 + +## Relationship + +- **依赖** [[Discrimination-Metrics]]:先验证模型有区分能力(AUC/Gini),再讨论校准才有意义 +- **依赖** [[SHAP]]:SHAP 解释"哪个特征导致校准偏差",支撑诊断方向 +- **依赖** [[Population-Stability-Index]]:PSI 捕捉特征分布漂移,漂移是校准失效的根本原因之一 +- **支撑** [[specialized-model-qa]](Source):Model QA Specialist 的核心审计步骤之一 + +## Key Insights + +- **High AUC ≠ Well Calibrated**:模型可以高区分度但低校准(如逻辑回归自然校准,神经网络往往过度自信) +- **业务影响**:校准误差 180bps(0.18)在 decile 10 可能影响 12% 的资产组合 +- **监管要求**:巴塞尔协议/IFRS 9/CCAR 等监管框架明确要求信用风险模型的概率校准 diff --git a/wiki/concepts/Cash-Flow-Forecasting.md b/wiki/concepts/Cash-Flow-Forecasting.md new file mode 100644 index 00000000..e1e792cb --- /dev/null +++ b/wiki/concepts/Cash-Flow-Forecasting.md @@ -0,0 +1,34 @@ +--- +title: "Cash Flow Forecasting" +type: concept +tags: ["finance", "forecasting", "liquidity"] +last_updated: 2026-04-30 +--- + +## Definition +现金流预测是通过历史模式分析和季节性因子,对企业未来若干期(通常为 12 期滚动)的现金收支进行量化预测的过程,旨在维持流动性并优化资金使用效率。 + +## Core Components +- **历史模式分析**:按月聚合 receipts(收款)、payments(付款)、net_cash_flow(净现金流)的均值和标准差 +- **季节性因子**:针对不同月份应用季节性调整系数,反映周期性波动 +- **增长因子**:根据业务增长趋势调整预测基准 +- **置信区间**:通常设置 ±15% 的置信区间(如 net_cash_flow × 0.85 / 1.15) + +## Key Metrics +- **累积现金**(cumulative_cash):当前现金余额 + 预测期净现金流之和 +- **低现金预警**:累积现金 < $50,000 时触发,行动建议为加速收款或延迟付款 +- **高现金机会**:累积现金 > $200,000 时触发,建议考虑短期投资或预付费用 + +## Payment Timing Optimization +根据以下公式计算支付优先级分数: +``` +priority_score = early_pay_discount × amount × 365 / payment_terms +``` +优先处理高折扣机会,同时维持现金流健康。 + +## Implementation +参见 [[support-finance-tracker]] 中 `CashFlowManager` Python 类的实现。 + +## Related Concepts +- [[Budget Variance Analysis]]:与现金流预测同为财务规划核心工具 +- [[ROI]]:投资回报评估与现金流优化相互关联 diff --git a/wiki/concepts/Certora.md b/wiki/concepts/Certora.md new file mode 100644 index 00000000..a9d05c51 --- /dev/null +++ b/wiki/concepts/Certora.md @@ -0,0 +1,72 @@ +--- +title: "Certora(形式化验证工具)" +type: concept +tags: [blockchain, security, smart-contract, formal-verification, tooling] +sources: [blockchain-security-auditor] +last_updated: 2026-05-30 +--- + +## Aliases +- Certora +- Certora Prover +- Certora Verification System + +## Definition + +Certora 是一个基于符号执行(Symbolic Execution)的智能合约形式化验证工具,通过 CVL(Certora Verification Language)描述协议规范,系统性证明 Solidity 合约的关键属性是否在所有可能状态下成立。与测试不同,Certora 可以证明某个属性**在数学上不可能被违反**。 + +## Key Capabilities + +- **属性证明**:验证合约不变性(invariant)在所有执行路径上成立 +- **反例生成**:当属性无法被证明时,自动生成导致属性失败的最小执行序列 +- **多合约分析**:支持分析调用关系复杂的合约系统 +- **并行验证**:可并行验证多条规则 + +## CVL Example + +``` +rule noUnauthorizedWithdrawal(method f) { + env e; + calldataarg args; + + require f != nop; // 排除空调用 + + // 如果调用成功,则调用者必须是所有者 + f(e, args); + assert e.msg.sender == owner, "Unauthorized withdrawal"; +} + +invariant totalSupplyInvariant() { + // 总供应量恒定 + invariant totalSupply == init(totalSupply); +} +``` + +## Integration with Foundry + +Certora 可与 Foundry 集成: +```bash +# 使用 Halmos 进行字节码级验证 +forge test --match-contract CertoraTest + +# 使用 Certora CLI +certora Run Vault.spec Vault.sol --prover z3 cvc5 +``` + +## Limitations + +- 需要人工编写精确的 CVL 规范(规范本身可能出错) +- 复杂合约状态空间可能导致超时 +- 对外部依赖和链上状态处理有限 +- 学习曲线陡峭 + +## Relationship to Audit + +- Certora 是 [[Blockchain-Security-Auditor]] 进行 [[Formal-Verification]] 的主要工具 +- 适合验证关键协议属性:份额不变性、借贷健康度、权限不变性 +- 与 [[Slither]] 互补:Slither 找代码模式漏洞,Certora 证明数学属性 + +## Connections +- [[Blockchain-Security-Auditor]] ← uses ← [[Certora]] +- [[Formal-Verification]] ← implements ← [[Certora]] +- [[Halmos]] ← complementary bytecode verification ← [[Certora]] diff --git a/wiki/concepts/ChalkboardStyle.md b/wiki/concepts/ChalkboardStyle.md new file mode 100644 index 00000000..b5994f5d --- /dev/null +++ b/wiki/concepts/ChalkboardStyle.md @@ -0,0 +1,58 @@ +--- +title: "ChalkboardStyle" +type: concept +tags: ["ai-image", "visual-style", "prompt-engineering"] +last_updated: 2026-05-01 +--- + +## Definition + +Chalkboard Style(黑板粉笔风格)是一种复古手绘视觉风格,通过深绿黑背景、手绘粉笔线条、严格限制的 6 色配色盘和木框边框实现统一的视觉氛围,常用于 AI 信息图设计。 + +## Visual Specifications + +### Background +- 颜色:#1C2B1C(深绿黑色) +- 纹理:粉笔灰痕迹、细微划痕、橡皮擦涂抹痕迹 + +### Color Palette(严格限制 6 色) +| 颜色 | Hex 值 | 用途 | +|------|--------|------| +| 粉笔白 | #F5F5F5 | 主要文字、轮廓线 | +| 粉笔黄 | #FFE566 | 高亮、下划线、强调 | +| 粉笔粉 | #FF9999 | 次级高亮、图标 | +| 粉笔蓝 | #66B3FF | 图表、技术元素 | +| 粉笔绿 | #90EE90 | 成功、自然、正面 | +| 粉笔橙 | #FFB366 | 警告、能量 | + +### Lines & Typography +- 所有线条必须手绘、速写式(slightly wavy/imperfect) +- 禁止完美几何形状 +- 禁止渐变效果 +- 禁止数字感强的字体 + +### Frame & Decoration +- 木框边框(hand-drawn wood grain 线条) +- 手绘星星(5-7 点,不规则) +- 手绘下划线(波浪形) +- 手绘箭头(速写式) +- 手绘圆形围绕关键词 +- 手绘对勾标记 +- 散落粉笔灰粒子 + +### Prohibited Elements +- NO gradients(禁止渐变) +- NO perfect geometric shapes(禁止完美几何形状) +- NO photorealistic elements(禁止写实元素) +- NO clean digital vectors(禁止干净的数字矢量) + +## Application + +在 AI 图片生成提示词中使用时,需要: +1. 在 [[StyleSeed]] 中定义完整的视觉参数 +2. 在 [[StyleLock]] 中添加逐项检查清单 +3. 通过 hex 色值消除颜色描述的歧义 + +## Sources + +- [[如何让AI生成风格一致的图片]] diff --git a/wiki/concepts/Champion-Challenger.md b/wiki/concepts/Champion-Challenger.md new file mode 100644 index 00000000..5a4f77b6 --- /dev/null +++ b/wiki/concepts/Champion-Challenger.md @@ -0,0 +1,54 @@ +--- +title: "Champion-Challenger Framework" +type: concept +tags: [model-evaluation, model-deployment, champion-challenger, model-governance] +sources: + - specialized-model-qa +last_updated: 2026-05-29 +--- + +## Definition + +Champion-Challenger 框架(冠军-挑战者框架)是一种系统化的模型替代评估方法:在生产环境保持当前模型(Champion)运行的同时,引入新候选模型(Challenger)并行评分,通过量化对比决定是否将 Challenger 升级为新的 Champion。核心目标:在保证业务稳定性的前提下,以数据驱动的方式持续提升模型质量。 + +## Core Mechanics + +### Shadow Mode Deployment(影子模式) +- Challenger 模型在生产流量上实时评分,但**不实际影响决策** +- 所有输出被记录但不触发行动 +- 优势:无需 A/B 分流风险,收集真实分布数据 + +### A/B Split(分流测试) +- 将生产流量按比例分配给 Champion 和 Challenger +- Challenger 的预测直接触发实际决策 +- 适用场景:需要真实业务反馈且风险可控时 + +### Multi-Challenger Ranking +- 同时存在多个 Challenger 时,按以下优先级评估: + 1. **统计显著性**:AUC/KS 提升是否有统计意义(DeLong test) + 2. **业务影响**:性能提升的绝对业务价值(Revenue/Cost/Conversion) + 3. **稳定性**:Challenger 在各子群体和时间窗口上的表现一致性 + 4. **可解释性**:SHAP 特征重要性是否发生重大结构性变化 + +## Model QA 中的应用 + +Model QA Specialist 使用 Champion-Challenger 框架执行以下审计: +1. **基准建立**:记录 Champion 模型的 AUC/Gini/KS 基准值和跨切片表现 +2. **Challenger 评估**:对候选模型进行全 10 域审计,不限于性能指标 +3. **迁移决策**:只有 Challenger 在**所有关键域**达到或超越 Champion 时才建议迁移 +4. **回滚计划**:每次 Challenger 上线必须有可执行的回滚方案 + +## Relationship + +- **依赖** [[Discrimination-Metrics]]:AUC/Gini/KS 是量化 Champion vs Challenger 差异的核心指标 +- **依赖** [[Calibration-Testing]]:Hosmer-Lemeshow 检验确保 Challenger 在各子群体上的校准稳定性 +- **依赖** [[Population-Stability-Index]]:PSI 监控 Challenger 在生产分布上的稳定性 +- **依赖** [[SHAP]]:SHAP 对比分析 Challenger vs Champion 的特征贡献结构变化 +- **支撑** [[specialized-model-qa]](Source):Model QA Specialist 性能与监控步骤中的基准对比工具 + +## Key Insights + +- **不只看 AUC**:Champion 升级决策必须综合考虑性能、公平性、校准和业务影响 +- **时间窗口**:必须收集足够长时间(至少一个业务周期)的 Challenger 数据 +- **灰度发布**:避免一次性全量切换,先小比例验证再扩大 +- **监管合规**:金融/医疗等受监管行业的模型更换须符合模型变更治理流程 diff --git a/wiki/concepts/Chaos-Physics.md b/wiki/concepts/Chaos-Physics.md new file mode 100644 index 00000000..73550d20 --- /dev/null +++ b/wiki/concepts/Chaos-Physics.md @@ -0,0 +1,40 @@ +--- +title: "Chaos Physics" +type: concept +tags: ["unreal-engine", "physics", "destruction", "chaos-engine"] +sources: ["unreal-systems-engineer"] +last_updated: 2026-05-30 +--- + +## Aliases +- Chaos Destruction System +- UE5 Chaos Physics Engine +- Geometry Collections + +## 定义 +Chaos 是 UE5 的物理与破坏系统,提供实时网格破碎、刚体约束和高级物理模拟能力。 + +## 核心组件 + +### Geometry Collections +- 用于实时网格破碎的破碎几何体集合 +- 在 Fracture Editor 中制作破碎资产 +- 通过 `UChaosDestructionListener` 触发破碎事件 + +### Constraint Types +Chaos 支持多种约束类型: +- **Rigid**(刚性)— 固定断裂块之间的连接 +- **Soft**(柔性)— 允许一定形变的连接 +- **Spring**(弹簧)— 带弹性的连接 +- **Suspension**(悬挂)— 模拟悬挂系统 + +### Destruction LOD +- 近景:完整 Chaos 模拟 +- 远景:缓存动画播放(降低计算开销) + +## 性能分析 +使用 **Unreal Insights** 的 Chaos 专用 trace 通道分析物理求解器性能。 + +## 相关概念 +- [[Actor Replication]] — 破碎物理的网络复制注意事项 +- [[UnrealEngine5]] — Chaos 是 UE5 的内置物理引擎 diff --git a/wiki/concepts/CharacterArc.md b/wiki/concepts/CharacterArc.md new file mode 100644 index 00000000..4a01247a --- /dev/null +++ b/wiki/concepts/CharacterArc.md @@ -0,0 +1,40 @@ +--- +title: "Character Arc" +type: concept +tags: [] +sources: [] +last_updated: 2026-04-30 +--- + +## Aliases +- Character Arc +- 角色弧线 +- 角色发展弧 + +## Overview +Character Arc(角色弧线)描述角色在叙事过程中从起始状态到终态的内在变化轨迹。与角色在情节中采取的行动(Plot Arc)不同,Character Arc 关注角色的内心世界、信念体系和心理成熟度。 + +## Arc Types + +| Type | Description | +|------|-------------| +| **Transformative** | 角色核心信念被颠覆,实现内在成长或改变 | +| **Steadfast** | 角色信念被考验但最终被确认为正确坚守 | +| **Flat** | 角色不经历内在变化(通常是功能性角色) | +| **Tragic** | 角色因无法克服内在缺陷或错误选择而走向毁灭 | +| **Comedic** | 角色通过接受内在真相获得和谐/社会整合 | + +## Core Components([[Academic Narratologist]] 模型) + +### Four Checkpoints +1. **Want(欲望/外在目标)**:角色在情节中追求的具体目标 +2. **Need(需求/内在必要性)**:角色真正需要获得的东西(通常与其 Want 不同) +3. **Lie(信念谎言)**:角色持有但需要被挑战的错误信念 +4. **Transformation(蜕变)**:角色面对真相时的内在改变 + +### Supporting Elements +- **Ghost/Wound**:驱动角色行为的过往创伤或经历 +- **Backstory**:支撑 Ghost 的具体事件 + +## Application +[[Academic Narratologist]] 的核心分析工具之一。每个角色弧线都必须有清晰的 want/need/lie/transformation 四个要素,并通过故事事件逐一验证。 diff --git a/wiki/concepts/ChatCompletions.md b/wiki/concepts/ChatCompletions.md new file mode 100644 index 00000000..0acdfebe --- /dev/null +++ b/wiki/concepts/ChatCompletions.md @@ -0,0 +1,35 @@ +--- +title: "ChatCompletions" +type: concept +tags: + - "openai" + - "api" + - "chat" +sources: [] +last_updated: 2026-04-20 +--- + +## Overview + +Chat Completions 是 OpenAI 标准的聊天补全 API 格式,通过 `POST /v1/chat/completions` 端点调用。Hermes Agent 的 API Server 默认使用此模式,无需额外配置。 + +## Key Characteristics + +- **请求格式**:`{"model": "...", "messages": [...]}` +- **响应格式**:返回 `choices[].message` 完整回复 +- **历史管理**:每次请求携带完整对话历史 +- **工具调用**:支持 `tools` / `tool_calls` 参数 +- **流式输出**:支持 `stream: true`,实时推送 token + +## vs Responses API + +| 特性 | Chat Completions | Responses API | +|---|---|---| +| 状态管理 | 客户端携带历史 | 服务端 `previous_response_id` | +| 事件流 | 逐 token 块 | 结构化事件(text_delta, function_call) | +| 稳定性 | 稳定(默认) | 实验性 | +| 适用场景 | 通用对话 | 需要服务端状态追踪的场景 | + +## See Also +- [[APIServer]] +- [[ResponsesAPI]] diff --git a/wiki/concepts/Checks-Effects-Interactions.md b/wiki/concepts/Checks-Effects-Interactions.md new file mode 100644 index 00000000..27e7f377 --- /dev/null +++ b/wiki/concepts/Checks-Effects-Interactions.md @@ -0,0 +1,81 @@ +--- +title: "Checks-Effects-Interactions Pattern" +type: concept +tags: [blockchain, security, smart-contract, reentrancy, best-practices] +sources: [blockchain-security-auditor] +last_updated: 2026-05-30 +--- + +## Aliases +- Checks-Effects-Interactions +- CEI Pattern +- Checks-Effects-Interactions Pattern + +## Definition + +Checks-Effects-Interactions(CEI,检查-效果-交互)模式是智能合约安全编程的核心防御模式,用于防止重入攻击和其他逻辑漏洞。其核心原则是:**在执行任何外部调用之前,先完成所有的状态检查和状态更新**。 + +## Pattern + +``` +function withdraw() external { + // 1. CHECKS — 验证前置条件 + require(balances[msg.sender] > 0, "No balance"); + + // 2. EFFECTS — 更新合约状态(在外部调用之前) + balances[msg.sender] = 0; + + // 3. INTERACTIONS — 执行外部调用(最后一步) + (bool success,) = msg.sender.call{value: amount}(""); + require(success, "Transfer failed"); +} +``` + +## Why It Works + +传统重入攻击利用的漏洞链: +``` +外部调用(ETH转账)→ 攻击者receive()被触发 +→ 攻击者 re-enter withdraw() +→ balances[msg.sender] 仍 > 0(未清零) +→ 重复提取资金 +``` + +CEI 模式切断漏洞链:**状态在外部调用之前清零**,即使攻击者 re-enter,条件检查阶段 `require(balances[msg.sender] > 0)` 已失败。 + +## Common Mistakes + +### Wrong Order (Vulnerable) +```solidity +// VULNERABLE: 外部调用在状态更新之前 +(bool success,) = msg.sender.call{value: amount}(""); +require(success); +balances[msg.sender] = 0; // 攻击者可在此之前 re-enter +``` + +### Missing Update (Vulnerable) +```solidity +// VULNERABLE: 状态根本没有更新 +require(balances[msg.sender] > 0); +(bool success,) = msg.sender.call{value: amount}(""); +require(success); +// balances[msg.sender] = 0; ← 忘记更新! +``` + +### ERC-20 Transfer Before Update +```solidity +// VULNERABLE: ERC-20 transfer 触发外部调用 +IERC20(token).transfer(msg.sender, amount); // 外部调用 +balances[msg.sender] -= amount; // 状态更新太晚 +``` + +## Relationship to Other Defenses + +- **CEI is the primary defense** — should always be applied first +- **ReentrancyGuard is additional defense** — use when CEI is difficult to apply (complex logic, callbacks) +- CEI + ReentrancyGuard together provide defense in depth + +## Connections +- [[Reentrancy]] ← prevents ← [[Checks-Effects-Interactions]] +- [[Blockchain-Security-Auditor]] ← enforces ← [[Checks-Effects-Interactions]] +- [[ReentrancyGuard]] ← supplements ← [[Checks-Effects-Interactions]] diff --git a/wiki/concepts/ChecksEffectsInteractions.md b/wiki/concepts/ChecksEffectsInteractions.md new file mode 100644 index 00000000..752a5f88 --- /dev/null +++ b/wiki/concepts/ChecksEffectsInteractions.md @@ -0,0 +1,41 @@ +--- +title: "ChecksEffectsInteractions" +type: concept +tags: [] +last_updated: 2026-05-01 +--- + +## Definition +_checks-effects-interactions_ 是 Solidity 智能合约开发的核心安全原则,规定函数内操作必须按以下顺序执行: + +1. **Checks**:验证前置条件(require/assert 语句) +2. **Effects**:更新合约内部状态(状态变量修改) +3. **Interactions**:执行外部调用(token transfer、合约调用等) + +## Why It Matters +违反此顺序会导致 **重入攻击(Reentrancy Attack)**。如果外部调用在状态更新之前执行,攻击者的恶意合约可以在状态仍然显示"资金未提取"的情况下递归调用 withdraw(),反复提取资金。 + +### Vulnerable Pattern (违反 CEI) +```solidity +function withdraw(uint256 amount) external { + require(balances[msg.sender] >= amount); + // ❌ 外部调用在状态更新之前 + msg.sender.call{value: amount}(""); + balances[msg.sender] -= amount; // 太晚了 +} +``` + +### Secure Pattern (遵循 CEI) +```solidity +function withdraw(uint256 amount) external { + require(balances[msg.sender] >= amount); + balances[msg.sender] -= amount; // ✅ 先更新状态 + emit Withdrawal(msg.sender, amount); + msg.sender.call{value: amount}(""); // ✅ 最后外部调用 +} +``` + +## Sources +- [[engineering-solidity-smart-contract-engineer]] +- [[The-DAO]] +- [[blockchain-security-auditor]] diff --git a/wiki/concepts/Circuit-Breaker.md b/wiki/concepts/Circuit-Breaker.md new file mode 100644 index 00000000..e509df11 --- /dev/null +++ b/wiki/concepts/Circuit-Breaker.md @@ -0,0 +1,40 @@ +--- +title: "Circuit Breaker" +type: concept +tags: [] +sources: [engineering-autonomous-optimization-architect] +last_updated: 2026-05-01 +--- + +# Circuit Breaker + +## Definition + +熔断器模式(Circuit Breaker)——当某个 LLM API 端点连续失败超过预设阈值时,自动切断对该端点的路由,将流量切换到降级路径,同时向人工告警。 + +## Mechanism + +1. **Closed(正常)**:所有请求正常路由到目标端点 +2. **Open(熔断)**:端点连续失败超过阈值,立即切断路由,所有请求跳过该端点 +3. **Half-Open(半开)**:经过冷却期后,放行少量请求试探端点是否恢复 + +## Trigger Conditions + +- 端点流量异常激增(500%+,可能为恶意 bot 攻击) +- 连续出现 HTTP 402(需要付费)/ 429(速率限制)错误 +- 单次请求成本超过安全上限(如 $0.05/次) + +## Example + +```typescript +if (provider.failures > securityLimits.maxRetries) { + tripCircuitBreaker(provider); + routeToFallback(provider); + alertAdmin(`Circuit breaker tripped: ${provider.name}`); +} +``` + +## Related + +- [[Autonomous-Optimization-Architect]]:使用熔断器保护 AI 路由系统的核心组件 +- [[AI-FinOps]]:熔断器是 FinOps 成本控制的最后防线 diff --git a/wiki/concepts/CodebaseOnboarding.md b/wiki/concepts/CodebaseOnboarding.md new file mode 100644 index 00000000..4a12856a --- /dev/null +++ b/wiki/concepts/CodebaseOnboarding.md @@ -0,0 +1,36 @@ +--- +title: "CodebaseOnboarding" +type: concept +tags: [] +last_updated: 2026-05-02 +--- + +## Definition + +Codebase Onboarding 是帮助新开发者快速理解陌生代码库的方法论和实践体系。核心目标是缩短从"首次接触代码库"到"能够独立定位问题、修改代码"的认知建立时间。 + +## Core Principles + +- **Evidence-first**: 只陈述代码中可验证的事实 +- **Layered explanation**: 分层递进式解释(一句话 → 五分钟 → 深度代码流) +- **File-level precision**: 所有结论必须指向具体文件路径 +- **Honest scope**: 明确告知哪些部分已检查、哪些未检查 + +## Key Methods + +1. **Inventory & Classification** — 识别清单文件(manifests/lockfiles)、框架标记、构建工具、顶层目录 +2. **Entry Point Discovery** — 找到启动文件、路由、处理器、CLI 命令 +3. **Execution Tracing** — 端到端追踪输入→验证→编排→持久化→输出 +4. **Boundary Analysis** — 识别模块边界、包边界、共享工具、重复职责 + +## Usage Context + +- 新开发者 onboarding +- 大型代码库结构探索 +- 故障定位前的代码结构理解 + +## Related Concepts + +- [[ExecutionTracing]] — 执行路径追踪 +- [[EvidenceFirstReasoning]] — 证据优先推理 +- [[MinimalChangePrinciple]] — 与 [[EngineeringMinimalChangeEngineer]] 配合使用 diff --git a/wiki/concepts/Cognitive-Load-Reduction.md b/wiki/concepts/Cognitive-Load-Reduction.md index bb53d979..0a612ef5 100644 --- a/wiki/concepts/Cognitive-Load-Reduction.md +++ b/wiki/concepts/Cognitive-Load-Reduction.md @@ -1,29 +1,46 @@ ---- -title: "Cognitive Load Reduction" -type: concept -tags: [ux, productivity, behavioral-psychology, task-management] -last_updated: 2026-04-20 ---- - -## Definition -认知负荷降低(Cognitive Load Reduction)指通过界面设计、任务拆分和流程优化,减少用户完成任务所需的心理努力,防止决策疲劳和任务瘫痪。 - -## Mechanism -1. **任务拆分**:将大型工作流分解为微小、可完成的微任务单元 -2. **单一焦点**:每次仅推送一个最高优先级的可操作项,而非批量列表 -3. **渐进披露**:按需逐步展示信息,避免信息过载 -4. **即时上下文**:为每个任务提供充分的执行背景,减少搜索和回忆成本 - -## Applications -- 微冲刺(Micro-Sprint):5-15 分钟短时任务块 -- [[Pomodoro Technique]] 时间盒工作 -- 队列视图仅显示当前最关键项 -- ADHD 用户友好设计模式 - -## Related Concepts -- [[Default Bias]]:降低决策摩擦的互补机制 -- [[Pomodoro Technique]]:时间盒化的认知负荷管理实践 -- [[Momentum Nudge]]:维持用户行动动量防止认知疲劳 - -## Source -- [[Behavioral Nudge Engine]] — 核心应用场景 +--- +title: "Cognitive Load Reduction" +type: concept +tags: [] +sources: ["product-behavioral-nudge-engine"] +last_updated: 2026-05-01 +--- + +## Definition + +Cognitive Load Reduction(认知负荷降低)是一种软件交互设计原则——通过信息过滤、任务分解和界面简化,主动降低用户在决策和执行过程中的认知负担,防止因信息过载导致的决策瘫痪和平台流失。 + +## Core Problem + +> "If a user has 50 items pending, do not show them 50. Show them the 1 most critical item." + +大量待办任务列表是认知过载的典型来源。当用户面对大量未完成任务时,会产生「决策瘫痪」——因无法决定从何处开始而选择什么都不做。 + +## Strategy Taxonomy + +| 策略 | 描述 | 示例 | +|------|------|------| +| 信息过滤 | 只展示最关键的N项 | 任务列表只显示 Top 1 | +| 任务分解 | 将复杂任务拆解为微步骤 | 将「完成项目报告」拆解为「只写第一段」 | +| 预设草案 | 预先填充内容减少起步阻力 | [[Default Bias]] 的应用 | +| 时间盒 | 限制单次执行时长 | [[Micro-Sprint]] 5分钟冲刺 | +| 进度可见 | 展示已完成vs总任务数 | 庆祝15个已完成而非展示95个待完成 | + +## Behavioral Science Foundation + +- **Miller's Law**:人类工作记忆容量约为 7±2 个信息块 +- **Zeigarnik Effect**:未完成任务比已完成任务占用更多认知资源 +- **Goal Gradient Effect**:越接近目标,动机越强——通过展示小范围完成积累信心 + +## Related Concepts + +- [[Micro-Sprint]] — 认知负荷降低的核心执行机制 +- [[Default Bias]] — 通过预设草案降低决策门槛 +- [[Gamification]] — 通过进度可视化维持动力 +- [[Habit Formation]] — 低认知负荷是习惯形成的前提条件 + +## Connections + +- [[Behavioral Nudge Engine]] — 认知负荷管理是核心职责 +- [[Product Manager Agent]] — 产品设计需内化认知负荷原则 +- [[Habit Tracker & Accountability Coach]] — 低摩擦的habit建立依赖认知负荷控制 diff --git a/wiki/concepts/Command-Theater.md b/wiki/concepts/Command-Theater.md new file mode 100644 index 00000000..0011c25b --- /dev/null +++ b/wiki/concepts/Command-Theater.md @@ -0,0 +1,61 @@ +--- +title: "Command Theater" +type: concept +tags: [] +last_updated: 2026-03-05 +--- + +## Definition + +Command Theater(指挥剧场)是 [[nexus-spatial-discovery]] 中 [[Nexus Spatial]] 产品定义的空间界面布局架构——以用户为中心的弧形"指挥剧场",将工作空间按功能分层布局于不同深度和角度。 + +## Architecture + +``` + OVERVIEW CANOPY + (pipeline topology) + ~~~~~~~~~~~~~~~~~~~~~~~~ + / \ + / FOCUS ARC (120 deg) \ + / primary node graph work \ + /________________________________\ + | | + LEFT | USER POSITION | RIGHT + UTILITY | (origin 0,0,0) | UTILITY + RAIL | | RAIL + |__________________________________| + \ / + \ SHELF (below sightline) / + \ agent status, quick tools/ + \_________________________ / +``` + +## Four Zones + +| 区域 | 深度范围 | 内容 | 透明度 | +|------|---------|------|--------| +| **Overview Canopy**(天幕) | 2.5–4.0m | 管线拓扑 + 健康热力图 | 40–70% | +| **Focus Arc**(聚焦弧) | 1.2–2.0m | 主节点图工作区 | 100% | +| **Utility Rails**(工具轨) | 侧翼 | Agent 库、监控、日志 | 100% | +| **Shelf**(置物架) | 0.8–1.0m | 运行/停止、撤销、快捷工具 | 100% | + +## Three-Layer Depth System + +| 层级 | 深度 | 内容 | 透明度 | +|------|------|------|--------| +| Foreground(前景) | 0.8–1.2m | 活跃面板、检测器、模态框 | 100% | +| Midground(中景) | 1.2–2.5m | 节点图、连接线、工作区 | 100% | +| Background(背景) | 2.5–5.0m | 概览地图、环境状态 | 40–70% | + +## Design Rationale + +- **120 度聚焦弧**覆盖人眼自然视野中心区域 +- **垂直分层**(天幕→聚焦→置物架)符合"最重要信息在视线中心,次要在下方"的直觉 +- **侧翼工具轨**让主工作区保持无遮挡 +- **深度层级**允许信息密度分层——背景展示概览,前景展示细节 + +## Connections + +- [[SpatialAIOps]] ← 界面架构层 +- [[Command-Theater]] ← 自身引用 +- [[4-Level-Semantic-Zoom]] ← 导航模式 diff --git a/wiki/concepts/Concierge-Services.md b/wiki/concepts/Concierge-Services.md new file mode 100644 index 00000000..3c68d5b2 --- /dev/null +++ b/wiki/concepts/Concierge-Services.md @@ -0,0 +1,66 @@ +--- +title: "Concierge Services" +type: concept +tags: [] +sources: + - hospitality-guest-services +last_updated: 2026-05-02 +--- + +## Definition +Concierge Services(礼宾服务)是酒店及高端款待业中,为宾客提供本地知识、预订协调和个性化安排的专业服务职能。礼宾服务的核心价值在于:识别宾客未表达的需求,通过主动推荐和精准执行创造惊喜体验。 + +## Service Categories + +### Dining Reservations(餐饮预订) +- 掌握当地TOP 10餐厅分类(Fine Dining/Casual/家庭/本地人推荐/景观氛围) +- 实时了解:当前等候时间、预订可用性、饮食适配能力 +- 预订话术:"请问您偏好什么菜系、价格范围和氛围?有什么特殊场合需要我们提及吗?" +- 交通选项:每家餐厅的交通方式建议 + +### Transportation(交通安排) +- 酒店班车:时刻表和覆盖范围 +- 打车/网约车:本地最佳APP +- 租车:最近门店位置和当前可用车型 +- 停车:自助vs.代客泊车,费用,营业时间 +- 机场接送:预订流程和价格 + +### Local Activities & Attractions(本地活动与景点) +保持实时更新的知识库: +- 主要景点:开放时间、票价、预订要求 +- 当前本地活动:节日、音乐会、体育赛事 +- 户外活动:徒步、公园、水上活动 +- 家庭友好选项 +- 文化体验:博物馆、剧院、画廊 +- 购物:本地精品店、商场、市场 + +### In-Property Services(酒店内服务) +- Spa:护理项目、营业时间、预订流程 +- 健身中心:开放时间、设备、课程 +- 泳池:开放时间、规则、毛巾服务 +- 商务中心:开放时间、设备、打印 +- 客房服务:开放时间、点餐流程 +- 洗衣/干洗:流程和 turnaround 时间 + +### Special Occasion Services(特殊场合服务) +- 鲜花:通过[供应商]订购,需24小时通知 +- 香槟/葡萄酒:通过客房服务供应 +- 蛋糕:通过[供应商]订购,需24小时通知 +- 浪漫夜床布置:玫瑰+蜡烛,需[时间]前申请 +- 惊喜布置:与客房部协调 + +## Key Principles +- 主动推荐,而非被动应答:识别宾客需求在开口前 +- 知识必须实时更新:餐厅关门时间、景点开放日变化 +- 饮食限制是医疗问题:每次餐饮预订必须记录 + +## Connections +- [[Hospitality Guest Services]] ← 礼宾服务是宾客服务 Agent 住店阶段的核心交付物 +- [[Guest Journey]] ← 礼宾服务贯穿住店(In-Stay)阶段 +- [[Food Allergy]] ← 礼宾服务中餐饮预订必须强制处理饮食限制 + +## Aliases +- 礼宾服务 +- Concierge +- Guest Services +- Hotel Concierge diff --git a/wiki/concepts/ConnectionPooling.md b/wiki/concepts/ConnectionPooling.md new file mode 100644 index 00000000..ac2daf84 --- /dev/null +++ b/wiki/concepts/ConnectionPooling.md @@ -0,0 +1,46 @@ +--- +title: "Connection Pooling" +type: concept +tags: [database, connection-pool, postgresql, supabase, performance, infrastructure] +last_updated: 2026-05-01 +--- + +# Connection Pooling + +## Definition + +数据库连接池是一种在应用程序和数据库服务器之间维护一组持久连接的技术,避免每次请求都创建新连接,从而防止连接耗尽、提升响应速度。 + +## Why It Matters + +- 数据库连接是稀缺资源(PostgreSQL 默认 max_connections = 100) +- 无连接池时:高并发下连接数爆炸 → OOM → 服务崩溃 +- 无连接池时:每次请求建立 TCP + 认证开销(~20-50ms 延迟) + +## Key Tools + +| 工具 | 说明 | +|------|------| +| **PgBouncer** | 轻量级 PostgreSQL 连接池,支持事务模式和会话模式 | +| **Supabase Pooler** | Supabase 内置连接池,自动管理事务模式连接 | +| **PlanetScale** | 内置连接池,无服务器架构 | +| **PgBouncer 事务模式** | 连接归还池复用,适合 serverless | +| **PgBouncer 会话模式** | 保持长连接,适合需要 SET session.* 的场景 | + +## Supabase 连接池示例 + +```typescript +// Supabase 事务模式(Serverless 推荐) +const pooledUrl = process.env.DATABASE_URL?.replace( + '5432', // 标准端口 + '6543' // 事务模式端口 +); +``` + +## Source +- [[engineering-database-optimizer]] + +## Connections +- [[engineering-backend-architect]] — 架构设计时必须考虑连接池 +- [[engineering-sre]] — 连接池配置是 SRE 容量规划的关键 +- [[engineering-database-optimizer]] — 核心关注点之一 diff --git a/wiki/concepts/Content-Operations.md b/wiki/concepts/Content-Operations.md new file mode 100644 index 00000000..b0a1e9ee --- /dev/null +++ b/wiki/concepts/Content-Operations.md @@ -0,0 +1,48 @@ +--- +title: "内容运营体系(Content Operations for Proposals)" +type: concept +tags: [sales, content, operations] +sources: [sales-proposal-strategist] +last_updated: 2026-04-29 +--- + +## Definition + +内容运营体系(Content Operations)是提案内容资产的管理方法论,核心变革是:**按赢主题(而非按提案章节)组织可复用内容库**,从而加速未来提案撰写并保持叙事一致性。 + +## 核心原则 + +1. **按主题组织**:每个内容块归属于一个或多个赢主题,而非某个提案章节 +2. **主题覆盖率追踪**:每个提案章节必须有 ≥1 个赢主题覆盖 +3. **证据密度要求**:每个内容块必须有可引用证据(指标/案例/方法论细节) + +## 收益 + +| 传统方式 | 内容运营方式 | +|----------|--------------| +| 每份提案从零写 | 调用主题库中已有内容 | +| 主题在不同章节中自相矛盾 | 主题由中心库驱动,一致性强 | +| 模板化内容难以消除 | 内容按主题标记,可识别并替换通用内容 | +| 经验随人员流失 | 知识沉淀在主题库中 | + +## 模板检测与消除 + +识别模板化内容的信号: +- 将买家名称替换后内容完全不变 +- "Robust," "cutting-edge," "best-in-class," "world-class" 等空洞形容词 +- 任何可以直接卖给竞争对手的内容 + +## 与赢主题的关系 + +内容运营体系是赢主题的后勤保障: +- 赢主题定义"说什么" +- 内容运营定义"如何组织、存储和复用" + +## Related Concepts + +- [[Win Theme]]:内容运营体系的核心组织轴 +- [[三幕式提案叙事]]:内容在叙事中的布局框架 + +## Sources + +- [[sales-proposal-strategist]] diff --git a/wiki/concepts/Context-Anxiety.md b/wiki/concepts/Context-Anxiety.md new file mode 100644 index 00000000..52676692 --- /dev/null +++ b/wiki/concepts/Context-Anxiety.md @@ -0,0 +1,47 @@ +--- +title: "Context Anxiety" +type: concept +tags: + - "agentic-ai" + - "context-window" + - "failure-mode" +sources: + - "Your-AI-Isn-t-Stupid---It-Just-Needs-a-Better-Harness--Lychee-Technology-Engineering-Blog" +last_updated: 2026-04-20 +--- + +## Overview +Context Anxiety——当 LLM 的 context window 使用率超过约 70% 容量,或延迟升高时,模型表现出"仓促"行为的现象:跳过步骤、过早完成任务或过早宣告成功。 + +## Mechanism +- Context window 是模型的唯一记忆空间 +- 当感知到"墙壁在逼近"(token 限制),模型开始优先"快速完成"而非"正确完成" +- 这不是模型能力问题,而是 context 容量压力的系统性反应 + +## Detection +- 监控 `tokens_used / max_context > 0.7` 阈值(需按模型和工作负载调优) +- 延迟 spikes 也是触发信号 + +## Solution: Context Reset +当 Context Anxiety 触发时,Harness 执行程序化 Context Reset: +1. `save_state_to_disk(state)` — 完整项目状态写入持久存储 +2. `terminate_current_instance()` — 终止当前 LLM 实例 +3. `launch_fresh_agent(state)` — 启动全新 Agent,从保存状态恢复 + +关键代码: +```python +if (tokens_used / max_context) > 0.7: + save_state_to_disk(state) + terminate_current_instance() + launch_fresh_agent(state) +``` + +## Note on In-Place Summarization +原地摘要(in-place summarization)不够——它仍然让模型在杂乱、退化的 context 上操作。Context Reset 给予模型干净的处理空间。 + +## Source +- [[Your-AI-Isn-t-Stupid---It-Just-Needs-a-Better-Harness--Lychee-Technology-Engineering-Blog]] + +## See Also +- [[Context-Reset]] — 具体实现机制 +- [[7-Layer-Harness-Stack]] — 第 5 层 Memory & State 和第 7 层 Constraints & Recovery 中处理此问题 diff --git a/wiki/concepts/Context-Reset.md b/wiki/concepts/Context-Reset.md new file mode 100644 index 00000000..7bb17c69 --- /dev/null +++ b/wiki/concepts/Context-Reset.md @@ -0,0 +1,41 @@ +--- +title: "Context Reset" +type: concept +tags: + - "agentic-ai" + - "context-window" + - "recovery" +sources: + - "Your-AI-Isn-t-Stupid---It-Just-Needs-a-Better-Harness--Lychee-Technology-Engineering-Blog" +last_updated: 2026-04-20 +--- + +## Overview +Context Reset——当 [[Context-Anxiety]] 触发时,Harness 将当前 Agent 状态保存至磁盘、终止实例、启动全新 Agent 的程序化操作,用于解决长周期任务超出单次 context window 的问题。 + +## Trigger Condition +```python +if (tokens_used / max_context) > 0.7: # 阈值需按模型调优 + trigger_context_reset() +``` + +## Procedure +1. **Save state**: 完整项目状态写入持久存储(磁盘文件) +2. **Terminate**: 终止当前 LLM 实例 +3. **Launch fresh**: 启动全新 Agent,加载保存状态 +4. **Orient**: 新 Agent 读取状态、定位自身、继续工作 + +## Why Not In-Place Summarization? +原地摘要(summarize → keep in same context)仍让模型在嘈杂、退化的上下文中操作。Context Reset 提供完全干净的上下文窗口——代价更高,但可靠性显著提升,适用于超长周期任务。 + +## Trade-off +- **In-place summarization**: 便宜,但 context 仍嘈杂 +- **Context Reset**: 昂贵(需重新加载状态),但可靠性高 + +## Source +- [[Your-AI-Isn-t-Stupid---It-Just-Needs-a-Better-Harness--Lychee-Technology-Engineering-Blog]] + +## See Also +- [[Context-Anxiety]] — 触发条件 +- [[State-Externalization]] — 持久化状态文件格式 +- [[7-Layer-Harness-Stack]] — 第 7 层 Constraints & Recovery 的核心机制 diff --git a/wiki/concepts/Continuous-Dev-QA-Loop.md b/wiki/concepts/Continuous-Dev-QA-Loop.md new file mode 100644 index 00000000..872f11d9 --- /dev/null +++ b/wiki/concepts/Continuous-Dev-QA-Loop.md @@ -0,0 +1,32 @@ +--- +title: "Continuous-Dev-QA-Loop" +type: concept +tags: [] +sources: [agents-orchestrator] +last_updated: 2026-05-29 +--- + +## Definition +**Continuous Dev-QA Loop**(持续开发质量循环)是 [[AgentsOrchestrator]] Phase 3 的核心机制——开发与 QA 交替进行,每个开发交付物立即经过 QA 验证,形成快速反馈闭环。 + +## Relationship to [[Dev-QA-Loop]] +- [[Dev-QA-Loop]] is the specific implementation of this concept within the AgentsOrchestrator pipeline +- Continuous Dev-QA Loop is the broader principle: rapid feedback between development and quality assurance + +## Core Principle +> "No shortcuts: Every task must pass QA validation." + +## Loop Characteristics +- **Continuous**: No waiting until end-of-project QA — validation happens after each task +- **Fast feedback**: Developer receives specific feedback immediately after implementation +- **Evidence-based**: QA requires visual/screenshot proof, not self-reported completion +- **Iterative**: Loop continues until PASS or max retries reached + +## Benefits +- Issues caught early before propagating to downstream tasks +- Developer receives specific, actionable feedback +- Quality gates prevent broken functionality from advancing +- Reduced final integration issues due to continuous validation + +## Sources +- [[agents-orchestrator]] diff --git a/wiki/concepts/ControllingIdea.md b/wiki/concepts/ControllingIdea.md new file mode 100644 index 00000000..8be7426b --- /dev/null +++ b/wiki/concepts/ControllingIdea.md @@ -0,0 +1,36 @@ +--- +title: "Controlling Idea" +type: concept +tags: [] +sources: [] +last_updated: 2026-04-30 +--- + +## Aliases +- Controlling Idea +- 核心主题 +- 主题性论点 + +## Overview +Controlling Idea 是 [[Robert McKee]] 在其著作《故事》中提出的核心概念,定义为"故事对人性的论点"——它通过叙事中所有选择(情节、角色、场景、语言)来传达作者对人类经验的理解。 + +## Structure +Controlling Idea = **主题性价值(Thematic Value)** × **因果关系(Causal Connection)** + +### Examples +| Controlling Idea | Thematic Value | Causal Connection | +|-----------------|---------------|-------------------| +| "骄傲导致毁灭" | 骄傲 | 导致 | +| "勇气可以通过小事培养" | 勇气 | 通过...培养 | +| "真正的力量来自放下控制" | 力量 | 通过放下获得 | + +## Application +[[Academic Narratologist]] 的核心分析维度之一: +- **诊断工具**:识别故事"真正在说什么",而非表面情节 +- **评估标准**:所有情节选择是否与 Controlling Idea 一致 +- **主题一致性检查**:跨多条情节线验证主题表达是否连贯 + +## Relationship to Other Concepts +- [[Fabula-vs-Sjuzhet]]:Controlling Idea 是 sjuzhet(讲述层)背后的 fabula(故事层)意义 +- [[Character-Arc]]:角色的 transformation 必须与 Controlling Idea 一致 +- [[Three-Act-Structure]]:Act III 的 Resolution 必须完成主题性论点的建构 diff --git a/wiki/concepts/Conversation-State-Persistence.md b/wiki/concepts/Conversation-State-Persistence.md new file mode 100644 index 00000000..5e906bf2 --- /dev/null +++ b/wiki/concepts/Conversation-State-Persistence.md @@ -0,0 +1,27 @@ +--- +title: "Conversation-State-Persistence" +type: concept +tags: [] +sources: [expose-hermes-agent-as-an-openai-compatible-api-for-any-frontend] +last_updated: 2026-05-02 +--- + +## Definition +Conversation State Persistence 是服务端存储完整对话历史(含工具调用)的机制,使客户端无需自行管理上下文。 + +## Implementation in Hermes Agent +通过 `/v1/responses` API 实现有状态会话: +- **无状态**:`/v1/chat/completions` 每次请求需传递完整对话历史 +- **有状态**:`/v1/responses` 支持 `previous_response_id` 链式调用,服务端保留完整上下文(含工具调用) + +## Key Benefits +- 客户端无需存储和发送完整对话历史 +- 服务端自动维护工具调用记录 +- 支持多轮对话中的上下文连续性 + +## Use Case +长对话场景下,使用 Responses API 可以大幅减少客户端代码复杂度。 + +## Related +- [[ResponsesAPI]] +- [[System-Prompt-Layering]] diff --git a/wiki/concepts/Cost-As-Distributed-Systems-Bug.md b/wiki/concepts/Cost-As-Distributed-Systems-Bug.md new file mode 100644 index 00000000..bc2ad9fb --- /dev/null +++ b/wiki/concepts/Cost-As-Distributed-Systems-Bug.md @@ -0,0 +1,45 @@ +--- +title: "Cost As Distributed Systems Bug" +type: concept +tags: [sre, finops, observability, reliability, cost-optimization] +last_updated: 2026-04-20 +--- + +# Cost As Distributed Systems Bug + +"成本是分布式系统的 bug"——成本异常(cost explosion)不仅是财务问题,更是一种可靠性问题。 + +## Core Thesis +成本突然增加往往预示着系统即将发生故障。**成本突增应该被视为告警信号**,触发故障调查而非仅财务审查。 + +## Why Cost Signals Matter +1. **资源泄漏的指示器**:内存泄漏、连接池耗尽往往表现为成本逐步上升 +2. **异常流量的标志**:DDoS 或滥用可能导致成本爆炸 +3. **配置错误**:错误的资源配置可能导致资源过度使用 +4. **级联效应的前兆**:某个组件故障可能导致其他组件超负荷运转 + +## Alerting Strategy +``` +IF cost_increase > threshold: + ALERT("Cost anomaly detected - investigate system health") +``` + +将成本监控集成到 SRE 的告警体系中,而非仅作为 FinOps 的事后分析。 + +## Key Principles +- **Cost as Signal**:将成本指标视为系统健康的信号 +- **Proactive Monitoring**:在成本失控前设置告警 +- **Correlation Analysis**:将成本变化与其他系统指标关联 + +## Relationship to FinOps +FinOps 不仅是成本优化工具,也是 SRE 的可靠性工具。成本可观测性(Cost Observability)是现代 SRE 实践的重要组成部分。 + +## Related Concepts +- [[Cost-Optimization]] +- [[Observability]] +- [[FinOps]] +- [[Distributed-Systems]] +- [[Reliability]] + +## Source +- SRE Weekly Issue #513 — [[sre-weekly-issue-513]] diff --git a/wiki/concepts/Counterfactual-Analysis.md b/wiki/concepts/Counterfactual-Analysis.md new file mode 100644 index 00000000..0bf03e74 --- /dev/null +++ b/wiki/concepts/Counterfactual-Analysis.md @@ -0,0 +1,34 @@ +--- +title: "Counterfactual Analysis" +type: concept +tags: [historiography, methodology] +sources: [academic-historian] +last_updated: 2026-04-30 +--- + +## Definition +反事实推理(Counterfactual Analysis)是一种严谨的"假如"(what if)历史推演方法——设想历史在某个关键节点发生了不同的走向,并分析这种改变会导致什么样的后果。它是 Historian Agent 文档中明确列出的高级能力之一。 + +## Key Features +- **核心原则**:必须以历史偶然性理论(contingency theory)为基础,而非随意想象 +- **必须满足的条件**: + 1. 反事实假设必须是"可想象的"(plausible)——基于已知历史条件 + 2. 必须追溯反事实链条的逻辑后果 + 3. 必须与相似历史案例进行类比验证 + 4. 必须诚实地承认推理的局限性 +- **代表学者**:内弗·弗格森(Niall Ferguson)、贾雷德·戴蒙德(Jared Diamond)《枪炮、病菌与钢铁》 +- **批评**:批评者认为反事实推理过于投机,无法证伪 +- **价值**:帮助理解历史的结构性约束与偶然性因素各自的权重 + +## Relationship to Other Concepts +- [[Longue-Duree]] ← 互补 ← [[Counterfactual-Analysis]]:长时段分析强调结构,反事实分析强调偶然性;两者共同帮助理解历史因果 +- [[Historiography]] ← 属于 ← [[Counterfactual-Analysis]]:反事实推理是历史编纂学中一种有争议但有价值的方法 +- [[academic-historian]] ← 高级能力 ← [[Counterfactual-Analysis]]:Historian Agent 的 Advanced Capabilities 明确包括 Counterfactual Analysis + +## Relationship to Source Pages +- [[academic-historian]]:文档的"🚀 Advanced Capabilities"部分明确列出此能力 + +## Aliases +- 反事实推理 +- What-if Analysis +- Alternative History diff --git a/wiki/concepts/CrossPlatformPlanning.md b/wiki/concepts/CrossPlatformPlanning.md new file mode 100644 index 00000000..7824064e --- /dev/null +++ b/wiki/concepts/CrossPlatformPlanning.md @@ -0,0 +1,66 @@ +--- +title: "Cross-Platform Planning" +type: concept +tags: ["ppc", "multi-platform", "strategy", "google-ads", "amazon-ads", "paid-media"] +sources: ["paid-media-ppc-strategist"] +last_updated: 2026-05-01 +--- + +## Definition + +跨平台规划(Cross-Platform Planning)是付费媒体策略中在 Google Ads、Microsoft Advertising、Amazon Ads 等多个广告平台之间协调预算分配、策略制定和效果衡量的系统性方法。核心理念:**避免平台间预算相互蚕食(cannibalization)**,通过统一的测量框架实现整体效率最优。 + +## Three Major Platforms Compared + +| 维度 | Google Ads | Microsoft Advertising | Amazon Ads | +|------|-----------|----------------------|-----------| +| **用户意图** | 信息获取 → 购买 | 信息获取 → 购买(B2B更强) | 购买意图最强 | +| **广告类型** | Search/Shop/PMax/Display/Video | Search/Shop/Audience | SP/SB/SD/DSP | +| **量级** | 最大 | 较小但增长 | 电商专属 | +| **CPC 水平** | 中高 | 较低 | 中等 | +| **竞争密度** | 高 | 中低 | 中 | +| **数据透明度** | 高 | 中 | 中 | + +## Budget Split Frameworks + +### Intent-Based Allocation +``` +基于用户意图漏斗分配: +- 品牌词:Google Brand(高保护)+ Amazon Brand(购买保护) +- 竞品词:Google(截流)+ Microsoft(Bing 独家流量) +- 产品词:Google + Amazon(不同意图阶段) +- 漏斗上层:Google Display/Video + YouTube +``` + +### Platform-Specific Feature Exploitation +- **Google**:Smart Bidding + Performance Max + Broad Match + AI +- **Microsoft**:LinkedIn 受众定向(B2B)+ 更低 CPC + Google 迁移便利 +- **Amazon**:购买意图流量 + DSP + AMC 受众分析 + +## Unified Measurement Approach + +### Attribution Challenges +- **Last-click 归因偏差**:Amazon 通常在漏斗底部,导致 Google Display 贡献被低估 +- **Cross-device**:用户可能在手机研究、PC 搜索、线下购买 +- **Platform silos**:各平台独立追踪,缺乏统一视图 + +### Measurement Solutions +- **Google Analytics 4(GA4)**:跨平台归因(需 UTM + 各平台 API 集成) +- **Amazon AMC(Amazon Marketing Cloud)**:亚马逊生态内的跨触点归因 +- **Incrementality Testing**:衡量各平台真实增量贡献 +- **Data-Driven Attribution**:ML-based 归因模型 + +## Cannibalization Prevention + +| 症状 | 原因 | 解决方案 | +|------|------|---------| +| 跨平台 ROAS 均下降 | 关键词重叠,内部竞争 | 差异化关键词策略 | +| 总转化量不变但成本上升 | 多平台分摊自然流量 | Incrementality 测试验证 | +| 品牌词跨平台 CPC 上升 | 内部竞标 | 统一品牌词竞价策略 | + +## Connections +- [[GoogleAds]]:跨平台策略的核心平台之一 +- [[MicrosoftAdvertising]]:Google 之外的搜索广告补充 +- [[AmazonAds]]:购买意图漏斗底部的专属平台 +- [[IncrementalityTesting]]:衡量跨平台真实增量贡献 +- [[BudgetPacing]]:跨平台预算分配是 pacing 的高级形式 diff --git a/wiki/concepts/Cultural-Authenticity.md b/wiki/concepts/Cultural-Authenticity.md new file mode 100644 index 00000000..c4029611 --- /dev/null +++ b/wiki/concepts/Cultural-Authenticity.md @@ -0,0 +1,39 @@ +--- +title: "Cultural Authenticity" +type: concept +tags: [] +last_updated: 2026-05-15 +--- + +## Definition + +Cultural Authenticity(文化真实性)——AI 生成内容中确保文化元素(建筑、服饰、符号、照明)准确反映目标文化真实生活现实的原则。文化真实性不是"代表性"的同义词——它要求更深层次的准确性:主体必须被正确锚定在其实际环境中。 + +## Core Failures AI Models Exhibit + +1. **Architectural Inaccuracy**:不正确的建筑风格(东亚城市背景出现西式穹顶) +2. **Lighting Bias**:照明预设适合浅肤色,不适合深肤色(hyper-saturated artificial lighting) +3. **Gibberish Cultural Text**:非英语文字/符号被渲染为乱码或冒犯性字符 +4. **Exoticism Bias**:将文化背景"异域化"(将正常城市背景渲染为异国情调) +5. **Hero-Symbol Composition**:文化符号(新月、佛像等)被放大为构图焦点而失去原本意义 + +## Technical Counter-Measures + +Inclusive Visuals Specialist 的技术应对: + +- **显式环境锚定**:"In a modern, sunlit architectural office in Nairobi, Kenya. The glass walls overlook the city skyline." +- **否定性符号约束**:"No text or symbols on whiteboards" +- **正确照明定义**:"The lighting is soft and directional, expertly graded to highlight the richness of her skin tone without washing out highlights." +- **Intersectional Specificity**:文化真实性必须与 intersectionality 结合,不能脱离具体人物 + +## Related Concepts + +- [[Intersectionality]] +- [[Negative Prompting]] +- [[Sociological Accuracy]] +- [[Inclusive Visuals Specialist]] + +## Aliases + +- 文化准确性 +- 文化真实性检验 diff --git a/wiki/concepts/Cultural-Ecology.md b/wiki/concepts/Cultural-Ecology.md new file mode 100644 index 00000000..c67ac612 --- /dev/null +++ b/wiki/concepts/Cultural-Ecology.md @@ -0,0 +1,25 @@ +--- +title: "Cultural Ecology" +type: concept +tags: ["anthropology", "ecology", "environment", "subsistence", "steward"] +last_updated: 2026-04-25 +--- + +## Definition +文化生态学——研究**环境如何塑造文化**,以及**文化又如何反过来塑造和适应环境**的跨学科框架。强调物质条件(气候、地形、资源)对社会组织的约束作用,同时拒绝简单的地理/文化决定论。 + +## Core Framework +- **文化核心(Cultural Core)**:生计模式和与技术环境互动直接相关的社会制度 +- **多线进化(Multilinear Evolution)**:不同环境可能独立产生相似的适应方案 +- **生态系统**:人类群体与环境形成的动态适应系统,具有反馈回路 +- **Pigs and People**(Rappaport):巴布亚新几内亚 Tsembaga 人的仪式性猪屠杀,是环境调节机制的文化表达 + +## Key Thinkers +- Julian Steward(文化生态学创始人) +- Roy Rappaport(生态系统研究) +- Marvin Harris(文化唯物论) + +## Connections +- [[Anthropologist-Agent]] ← uses_framework ← [[Cultural-Ecology]] +- [[Functionalism]] ← related_to ← [[Cultural-Ecology]] +- [[Polanyi-Exchange]] ← influenced_by ← [[Cultural-Ecology]] diff --git a/wiki/concepts/Cultural-Intelligence.md b/wiki/concepts/Cultural-Intelligence.md new file mode 100644 index 00000000..8b55bfe7 --- /dev/null +++ b/wiki/concepts/Cultural-Intelligence.md @@ -0,0 +1,36 @@ +--- +title: "Cultural Intelligence" +type: concept +tags: [cultural-intelligence, cross-cultural, internationalization, ux-design] +sources: [specialized-cultural-intelligence-strategist] +last_updated: 2026-05-29 +--- + +## Definition +文化智能(Cultural Intelligence, CQ)——一种跨文化适应能力,使个人或系统能够在不同文化背景下有效运作、沟通和建立信任。区别于 IQ(认知智能)和 EQ(情绪智能),CQ 专门衡量文化适应性,包括:对文化差异的认知理解(Cognitive CQ)、在跨文化情境中的行为适应能力(Physical CQ)、对文化情境的内在动机和信心(Metacognitive CQ)。 + +## In the Context of AI Agents +在 AI Agent 设计中,CQ 体现为: +- 检测和消除软件开发中的隐性排斥(Invisible Exclusion) +- 在生成内容前自主研究特定文化的尊重和赋权表征标准 +- 理解不同文化对颜色、图标、数字、日期格式的差异化语义 + +## Core Dimensions +- **认知 CQ(Cognitive CQ)**:文化知识——理解不同文化的价值观、习俗、社会规范和商业惯例 +- **元认知 CQ(Metacognitive CQ)**:文化意识——在跨文化交流中保持对文化假设的觉察和反思 +- **动机 CQ(Motivational CQ)**:文化好奇——主动学习和适应不同文化的内在驱动力 +- **行为 CQ(Behavioral CQ)**:文化适应——在不同文化情境中灵活调整语言、行为和沟通方式 + +## Related Concepts +- [[Architectural Empathy]](结构性同理心):CQ 在软件设计中的实践框架 +- [[Invisible-Exclusion]](隐性排斥):CQ 所诊断的核心问题类型 +- [[Global-First-Architecture]](全局优先架构):CQ 在技术架构中的实施方法 +- [[Cultural Humility]](文化谦逊):CQ 的基础原则——承认知识不完整,持续学习 + +## Key Distinction: CQ vs. Cultural Competence +| 维度 | 文化能力(Cultural Competence) | 文化智能(Cultural Intelligence) | +|------|------------------------------|-------------------------------| +| 假设 | 可以达到"文化熟练"终点 | 强调持续学习和适应 | +| 重点 | 知识和技能的集合 | 动态的、可发展的能力 | +| 态度 | 倾向于"了解"其他文化 | 承认"不了解"并保持好奇 | +| 来源 | 西方学术框架 | 跨文化心理学( Earley & Ang, 2003) | diff --git a/wiki/concepts/Curiosity-Driven-Bug-Discovery.md b/wiki/concepts/Curiosity-Driven-Bug-Discovery.md new file mode 100644 index 00000000..c26fe8e9 --- /dev/null +++ b/wiki/concepts/Curiosity-Driven-Bug-Discovery.md @@ -0,0 +1,76 @@ +--- +title: "Curiosity-Driven Bug Discovery" +type: concept +tags: [] +last_updated: 2026-05-02 +--- + +## Definition + +通过主动追问系统假设(而非被动等待测试失败)来发现高危 Bug 的方法论——将"未言明的假设"显式化,并在它们导致故障前将其消灭。 + +## Overview + +大多数生产环境中的严重 Bug 并非来自代码错误,而是来自未被显式记录的**假设**。这些假设在代码编写时被默许存在,随着系统演进逐渐失效,最终在生产环境中引发故障。Curiosity-Driven Bug Discovery 是一套系统化的追问框架,在工作流设计阶段就将这些假设显式化。 + +## Four Question Dimensions + +### 1. 数据持久化假设(Data Persistence Assumptions) +- 数据存储在哪里?存储是持久化还是临时性的? +- 重启后数据是否仍然存在? +- 数据在什么条件下被清理? + +**追问模板**: +> "Where is this data stored? Is the storage durable or ephemeral? What happens on restart?" + +### 2. 网络连通性假设(Network Connectivity Assumptions) +- Service A 能否实际到达 Service B? +- 它们在同一个网络段吗?是否有防火墙规则? +- 服务之间是否存在 DNS 解析延迟? + +**追问模板**: +> "Can service A actually reach service B? Are they on the same network? Is there a firewall rule?" + +### 3. 时序假设(Ordering/Timing Assumptions) +- 当前步骤假设前一个步骤已完成——但它们是并行运行的吗? +- 什么机制确保时序正确?(健康检查?轮询?事件?锁?) +- 超时值是否合理? + +**追问模板**: +> "This step assumes the previous step completed — but they run in parallel. What ensures ordering?" + +### 4. 认证授权假设(Authentication/Authorization Assumptions) +- 此端点在启动时被调用——但调用方是否经过身份验证? +- 什么防止未授权访问? +- 凭证在何时何地可用? + +**追问模板**: +> "This endpoint is called during setup — but is the caller authenticated? What prevents unauthorized access?" + +## Application in Workflow Architect + +在 `Discovery Audit Checklist` 中,每发现一个隐式工作流,Workflow Architect 必须主动用四个追问维度扫描一遍。发现的高危假设记录在 `Reality Checker Findings` 表中,标注 severity 为 Critical 或 High。 + +## Why "Curiosity-Driven" + +"Curiosity-driven" 强调这是**主动探索**而非**被动验证**: +- **被动验证**:已有 bug 报告 → 查找原因 +- **主动探索**:无 bug 报告 → 追问假设 → 发现潜在 bug + +这套方法论的核心洞察:**最危险的 bug 是那些从未有人怀疑其存在的假设**。 + +## Success Criteria + +- 每个工作流的 Assumptions 表都被填满(非空白) +- 假设表中的假设在后续 Sprint 中被逐一验证或修正 +- 好奇心驱动发现的 bug 数量 ≥ 被动测试发现的 bug 数量 + +## Related Concepts +- [[Workflow-Tree-Spec]]:假设记录的载体(Assumptions 节) +- [[Reality-Checker]]:验证假设真实性的 Agent +- [[Discovery-Audit]]:发现隐式工作流的入口 + +## Aliases +- Assumption Mining +- Hypothesis-First Bug Discovery +- Proactive Assumption Surfacing diff --git a/wiki/concepts/Data-Contract.md b/wiki/concepts/Data-Contract.md new file mode 100644 index 00000000..0fd640ee --- /dev/null +++ b/wiki/concepts/Data-Contract.md @@ -0,0 +1,61 @@ +--- +title: "Data Contract" +type: concept +tags: [data-engineering, data-quality, schema, SLA] +sources: [engineering-data-engineer] +last_updated: 2026-05-02 +--- + +## Definition + +Data Contract(数据契约)是数据生产者和消费者之间的明确协议,定义了数据的预期 schema、数据类型、SLA、所有权和消费方。数据契约是 Medallion Architecture 中 Silver→Gold 层质量保证的核心机制。 + +## Components + +### Schema Contract +- 字段名、类型、约束(not_null、unique、foreign key) +- Schema 演化规则:允许添加 nullable 字段,禁止删除或修改类型 +- `mergeSchema=true`:允许 schema 演进,但触发告警而非自动污染下游 + +### SLA Contract +- 刷新频率(如"每 15 分钟刷新一次") +- 数据新鲜度阈值(如"1 小时内必须有新数据") +- 可用性承诺(如"Gold 层 99.9% 可用性") + +### Ownership Contract +- 数据所有者(Data Owner) +- 数据消费者(Data Consumer) +- 支持联系人(Support Contact) + +## Enforcement + +### dbt Contract Enforcement +```yaml +models: + - name: silver_orders + config: + contract: + enforced: true # 强制 schema 契约,类型不匹配则构建失败 + columns: + - name: order_id + data_type: string + constraints: + - type: not_null + - type: unique +``` + +### Great Expectations(数据质量验证) +- 行级数据质量评分必须在 Gold 层附加 +- Null 率告警阈值(如 `customer_id` null 率从 0.1% 跳至 4.2% → 触发 PagerDuty) + +## Key Rules + +- **Schema 漂移必须告警**:不得静默损坏下游数据 +- **Null 处理必须显式**:不得隐式将 null 传播到 Gold 层 +- **发布前必须与消费者确认**:数据契约签署后才能部署 Gold 层管道 + +## Related Concepts +- [[Medallion Architecture]] +- [[Great Expectations]](数据质量验证工具) +- [[Data Lineage]] +- [[SCD Type 2]] diff --git a/wiki/concepts/Dataview.md b/wiki/concepts/Dataview.md new file mode 100644 index 00000000..8cc65476 --- /dev/null +++ b/wiki/concepts/Dataview.md @@ -0,0 +1,35 @@ +--- +title: "Dataview" +type: concept +tags: [tool, obsidian, plugin, query] +sources: [karpathy-最新分享-用-llm-搭建个人知识库-告别-rag-的低效循环] +last_updated: 2026-04-20 +--- + +## Aliases +- Obsidian Dataview 插件 +- DataviewJS + +## Definition +Obsidian 的社区插件,对页面 YAML frontmatter 做数据库式查询,自动生成动态表格和列表。是 LLM Wiki 的可选增强工具。 + +## LLM Wiki Usage +让 AI 在每个 Wiki 页面的 frontmatter 里写上结构化元数据(如 `type`、`date`、`tags`、`source_count`),然后用 Dataview 查询生成动态报表。 + +## Example Query +````markdown +```dataview +TABLE title, date, tags +FROM "wiki/sources" +SORT date DESC +``` +```` + +## Practical Value +- 页面少时价值有限,Wiki 规模大时(数百页面)报表价值显著 +- 老张([[laozhang2579]])观点:"多到一定程度或者想用元数据查询方式习惯的可以考虑,我是直接用索引文件配合 Claude 的文件检索" +- 安装:设置 → 第三方插件 → 社区插件市场 → 搜索 "Dataview" → 安装并启用 + +## Connections +- [[Dataview]] ← 可选增强 → [[LLM Wiki]] +- [[Dataview]] ← 插件 → [[Obsidian]] diff --git a/wiki/concepts/Default-Bias.md b/wiki/concepts/Default-Bias.md index 3724c0d2..740e9c21 100644 --- a/wiki/concepts/Default-Bias.md +++ b/wiki/concepts/Default-Bias.md @@ -1,28 +1,47 @@ ---- -title: "Default Bias" -type: concept -tags: [behavioral-psychology, ux, nudge, persuasion] -last_updated: 2026-04-20 ---- - -## Definition -默认偏差(Default Bias)指用户倾向于接受预置选项而不主动修改的行为心理倾向。在软件交互中,通过预设默认行为或预填内容,降低用户决策摩擦,提高行动完成率。 - -## Mechanism -1. **预填内容**:系统自动生成回复/草稿,用户只需确认或修改 -2. **预选选项**:智能推荐最佳选项,用户一键接受 -3. **默认同意**:预勾选最优行为选项,用户需主动取消而非选择 - -## Applications -- 邮件回复草稿自动生成,一键发送 -- 表单字段智能预填 -- 隐私设置默认最优选项 -- 通知频率默认静音,用户按需开启 - -## Related Concepts -- [[Nudge Theory]]:推力理论的组成部分 -- [[Cognitive Load Reduction]]:通过减少决策选项降低认知负荷 -- [[Gamification]]:可与游戏化结合增强默认选项接受率 - -## Source -- [[Behavioral Nudge Engine]] — 核心应用场景 +--- +title: "Default Bias" +type: concept +tags: [] +sources: ["product-behavioral-nudge-engine"] +last_updated: 2026-05-01 +--- + +## Definition + +Default Bias(默认偏见)是一种心理现象:人们倾向于接受预设选项,即使提供退出选项也有很高概率保持默认状态。在软件交互设计中,通过预先填充行动草案并以「确认/修改」框架呈现,可大幅降低用户的决策摩擦和行动阻力。 + +## Mechanism + +- **核心策略**:不要问用户「要不要做」,而是问「这样做好吗」 +- **行为公式**:「已起草 + 一键确认」= 最小阻力路径 +- **典型应用**:邮件回复草稿、通知设置、文档模板确认、支付流程 +- **道德边界**:必须提供真实的「opt-out」退出选项,不可隐藏或误导 + +## Example + +> "I've drafted a thank-you reply for this 5-star review. Should I send it, or do you want to edit?" + +这个示例展示:系统不仅起草了回复,还主动推进了决策——用户只需点击「发送」即可完成,否则才需要介入修改。 + +## Why It Works + +1. **减少认知负担**:用户无需从零开始组织语言 +2. **消除启动摩擦**:最大的阻力在于「开始」,草案消除了这一步 +3. **利用惰性**:在低介入成本时,用户倾向于保持默认状态 +4. **正向锚定**:用户面对自己的内容比面对空白更有动力编辑 + +## Related Concepts + +- [[Cognitive Load Reduction]] — 默认偏见是降低认知负荷的核心手段 +- [[Nudge Theory]] — 默认选项是 Nudge 的经典应用 +- [[Friction Reduction]] — 减少用户行动阻力的更广泛策略 + +## Risks & Ethical Considerations + +- 过度使用可能引发用户「被操控」感,损害信任 +- 必须提供真实退出选项,不可暗设陷阱 +- 高风险决策(财务、法律)场景应谨慎使用 + +## Connections + +- [[Behavioral Nudge Engine]] — 核心应用场景:任务推进、通知确认、内容发布 diff --git a/wiki/concepts/Defect-Prediction.md b/wiki/concepts/Defect-Prediction.md new file mode 100644 index 00000000..c18f28c2 --- /dev/null +++ b/wiki/concepts/Defect-Prediction.md @@ -0,0 +1,51 @@ +--- +title: "Defect Prediction" +type: concept +tags: [testing, machine-learning, quality] +sources: [testing-test-results-analyzer] +last_updated: 2026-04-28 +--- + +## Definition + +缺陷预测——使用机器学习模型基于代码指标和历史缺陷数据,预测哪些代码区域最可能包含缺陷,指导测试资源的定向投入。 + +## Approach + +### Feature Engineering (from TestResultsAnalyzer) + +```python +from sklearn.ensemble import RandomForestClassifier +from sklearn.model_selection import train_test_split + +# 特征:代码指标 +features = extract_code_metrics() # 圈复杂度、代码行数、变更频率等 +historical_defects = load_historical_defect_data() # 历史缺陷标签 + +# 训练/测试分割 +X_train, X_test, y_train, y_test = train_test_split( + features, historical_defects, test_size=0.2, random_state=42 +) + +# Random Forest 分类器 +model = RandomForestClassifier(n_estimators=100, random_state=42) +model.fit(X_train, y_train) + +# 预测 + 置信度 + 特征重要性 +predictions = model.predict_proba(features) +feature_importance = model.feature_importances_ +accuracy = model.score(X_test, y_test) +``` + +### Key Metrics + +- **Prediction Accuracy**:模型在测试集上的准确率,目标 ≥ 85%。 +- **Feature Importance**:哪些代码指标(圈复杂度、变更频率、代码行数等)对缺陷预测最有预测力。 +- **Confidence Score**:每个预测结果附带置信度评分。 + +## Connections + +- [[Statistical-Analysis]]:模型验证需统计显著性检验。 +- [[Test-Coverage-Analysis]]:预测的高风险区域优先增加测试覆盖率。 +- [[Release-Readiness-Assessment]]:缺陷预测结果纳入整体发布就绪度评估。 +- [[Quality-Metrics]]:缺陷密度是预测模型的目标变量。 diff --git a/wiki/concepts/Dev-QA-Loop.md b/wiki/concepts/Dev-QA-Loop.md new file mode 100644 index 00000000..3cb0311e --- /dev/null +++ b/wiki/concepts/Dev-QA-Loop.md @@ -0,0 +1,48 @@ +--- +title: "Dev↔QA Loop" +type: concept +tags: [multi-agent, quality, devops, nexus] +sources: [executive-brief, quickstart, workflow-startup-mvp] +last_updated: 2026-05-01 +aliases: + - Dev QA Loop + - Build-Test Loop + - Dev-Test-Retry Loop +--- + +## Definition + +Dev↔QA 循环(Dev↔QA Loop)—— 构建→测试→通过/失败→重试的持续质量循环,最多允许 3 次迭代;FAIL 时触发修复重试,PASS 时推进到下一阶段。 + +## Mechanism + +``` +开发 Agent 交付实现 + ↓ +QA Agent 执行质量验证 + ↓ +┌──────────────────────────┐ +│ PASS? │ +├──────────┬───────────────┤ +│ 是 │ 否 │ +│ ↓ │ ↓ │ +│ 推进下一阶段 │ 进入修复循环 │ +│ │ (重试 N/3) │ +└──────────┴───────────────┘ +``` + +## Quantified Impact + +- **集成前缺陷捕获率**:95% —— 大部分缺陷在 Dev↔QA 循环中被捕获,而非等到集成阶段 +- **Phase 4 硬化时间减少**:50% —— 持续质量循环优于端到端测试 +- **最大重试次数**:3 次 —— 超过 3 次 FAIL 触发升级/上报机制 + +## Role in NEXUS + +Dev↔QA 循环是 NEXUS Phase 3 Build 阶段的核心机制,也是 NEXUS 的四大核心原则之一(Quality Gates / Dev↔QA Loop / Handoffs / Evidence Over Claims)。 + +## Related Concepts + +- [[Quality Gate]]:Dev↔QA 循环是质量门控体系的具体实现机制 +- [[Reality Checker]]:Dev↔QA 循环 PASS 后,最终质量权威由 Reality Checker 确认 +- [[Evidence Over Claims]]:循环中的验证必须基于证据而非口头断言 diff --git a/wiki/concepts/Discrimination-Metrics.md b/wiki/concepts/Discrimination-Metrics.md index 8caf46b6..a5338d78 100644 --- a/wiki/concepts/Discrimination-Metrics.md +++ b/wiki/concepts/Discrimination-Metrics.md @@ -1,76 +1,78 @@ ---- -title: "Discrimination Metrics" -type: concept -tags: [model-evaluation, classification-metrics, model-performance] -last_updated: 2026-04-25 ---- - -## Definition - -判别能力指标(Discrimination Metrics)衡量模型区分正例与负例的能力——给定一个随机正例和一个随机负例,模型有多大概率给正例更高的分数。区别于校准(衡量概率准确性),判别度衡量排序正确性。 - -## Core Metrics - -### AUC (Area Under the ROC Curve) -- ROC 曲线下面积,取值 [0.5, 1.0] -- 0.5 = 随机猜测,1.0 = 完美区分 -- 解读:给定随机正例和随机负例,有 AUC 概率给正例更高分数 -- **优势**:阈值无关,对类别不平衡相对稳健 - -### Gini Coefficient -- $Gini = 2 \times AUC - 1$ -- 取值 [0, 1.0],与 AUC 线性等价 -- 金融行业常用(信用卡评分、信贷风控) -- 监管报告标准指标 - -### KS Statistic (Kolmogorov-Smirnov) -- 两个累积分布函数(正例 vs 负例)之间的最大垂直距离 -- $KS = \max_t |F_{pos}(t) - F_{neg}(t)|$ -- 取值 [0, 1.0];KS > 0.2 通常认为有区分能力 -- **优势**:不依赖阈值,提供最佳分割点位置信息 - -### Additional Metrics -| Metric | Formula | 适用场景 | -|--------|---------|---------| -| F1 Score | $2 \times \frac{precision \times recall}{precision + recall}$ | 类别不平衡 | -| RMSE | $\sqrt{\frac{1}{n}\sum(y_i - \hat{y}_i)^2}$ | 回归模型 | -| Log Loss | $-\frac{1}{N}\sum[y_i \log p_i + (1-y_i)\log(1-p_i)]$ | 概率质量 | - -## Usage - -```python -from sklearn.metrics import roc_auc_score, f1_score -from scipy.stats import ks_2samp - -def discrimination_report(y_true, y_score): - auc = roc_auc_score(y_true, y_score) - gini = 2 * auc - 1 - ks_stat, ks_pval = ks_2samp(y_score[y_true == 1], y_score[y_true == 0]) - return { - "AUC": round(auc, 4), - "Gini": round(gini, 4), - "KS": round(ks_stat, 4), - "KS_pvalue": round(ks_pval, 6), - } -``` - -## Model QA 中的应用 - -Model QA Specialist 执行以下判别能力审计: -1. **全数据切片分析**:在 Train/Validation/Test/OOT 四个数据切片上分别计算 AUC/Gini/KS -2. **子群体性能**:在性别/年龄/地区等受保护属性上分别测试,发现公平性隐患 -3. **时间稳定性**:跨 OOT 窗口追踪 AUC/Gini 趋势,识别性能衰减 -4. **冠军-挑战者对比**:Proposed model vs. incumbent production model,量化相对提升 - -## Relationship - -- **被依赖** [[Calibration-Testing]]:先确认判别能力(KS > 0.2, AUC > 0.7),再测试校准 -- **依赖** [[Population-Stability-Index]]:PSI 监控输入稳定性,判别指标监控输出健康度 -- **依赖** [[SHAP]]:判别指标提供"是否好"的答案,SHAP 解释"为什么" -- **支撑** [[specialized-model-qa]](Source):Model QA Specialist 的核心性能评估步骤 - -## Key Insights - -- **判别度 vs 校准**:高 AUC 模型仍可能在特定概率区间严重校准偏差;两者必须同时评估 -- **KS vs AUC**:KS 对尾部区分更敏感(抓坏人),AUC 对整体排序更均衡 -- **监管门槛**:金融风控通常要求 Gini > 0.4(相当于 AUC > 0.7)方可上线 +--- +title: "Discrimination Metrics" +type: concept +tags: [model-evaluation, classification-metrics, model-performance] +sources: + - specialized-model-qa +last_updated: 2026-05-29 +--- + +## Definition + +判别能力指标(Discrimination Metrics)衡量模型区分正例与负例的能力——给定一个随机正例和一个随机负例,模型有多大概率给正例更高的分数。区别于校准(衡量概率准确性),判别度衡量排序正确性。 + +## Core Metrics + +### AUC (Area Under the ROC Curve) +- ROC 曲线下面积,取值 [0.5, 1.0] +- 0.5 = 随机猜测,1.0 = 完美区分 +- 解读:给定随机正例和随机负例,有 AUC 概率给正例更高分数 +- **优势**:阈值无关,对类别不平衡相对稳健 + +### Gini Coefficient +- $Gini = 2 \times AUC - 1$ +- 取值 [0, 1.0],与 AUC 线性等价 +- 金融行业常用(信用卡评分、信贷风控) +- 监管报告标准指标 + +### KS Statistic (Kolmogorov-Smirnov) +- 两个累积分布函数(正例 vs 负例)之间的最大垂直距离 +- $KS = \max_t |F_{pos}(t) - F_{neg}(t)|$ +- 取值 [0, 1.0];KS > 0.2 通常认为有区分能力 +- **优势**:不依赖阈值,提供最佳分割点位置信息 + +### Additional Metrics +| Metric | Formula | 适用场景 | +|--------|---------|---------| +| F1 Score | $2 \times \frac{precision \times recall}{precision + recall}$ | 类别不平衡 | +| RMSE | $\sqrt{\frac{1}{n}\sum(y_i - \hat{y}_i)^2}$ | 回归模型 | +| Log Loss | $-\frac{1}{N}\sum[y_i \log p_i + (1-y_i)\log(1-p_i)]$ | 概率质量 | + +## Usage + +```python +from sklearn.metrics import roc_auc_score, f1_score +from scipy.stats import ks_2samp + +def discrimination_report(y_true, y_score): + auc = roc_auc_score(y_true, y_score) + gini = 2 * auc - 1 + ks_stat, ks_pval = ks_2samp(y_score[y_true == 1], y_score[y_true == 0]) + return { + "AUC": round(auc, 4), + "Gini": round(gini, 4), + "KS": round(ks_stat, 4), + "KS_pvalue": round(ks_pval, 6), + } +``` + +## Model QA 中的应用 + +Model QA Specialist 执行以下判别能力审计: +1. **全数据切片分析**:在 Train/Validation/Test/OOT 四个数据切片上分别计算 AUC/Gini/KS +2. **子群体性能**:在性别/年龄/地区等受保护属性上分别测试,发现公平性隐患 +3. **时间稳定性**:跨 OOT 窗口追踪 AUC/Gini 趋势,识别性能衰减 +4. **冠军-挑战者对比**:Proposed model vs. incumbent production model,量化相对提升 + +## Relationship + +- **被依赖** [[Calibration-Testing]]:先确认判别能力(KS > 0.2, AUC > 0.7),再测试校准 +- **依赖** [[Population-Stability-Index]]:PSI 监控输入稳定性,判别指标监控输出健康度 +- **依赖** [[SHAP]]:判别指标提供"是否好"的答案,SHAP 解释"为什么" +- **支撑** [[specialized-model-qa]](Source):Model QA Specialist 的核心性能评估步骤 + +## Key Insights + +- **判别度 vs 校准**:高 AUC 模型仍可能在特定概率区间严重校准偏差;两者必须同时评估 +- **KS vs AUC**:KS 对尾部区分更敏感(抓坏人),AUC 对整体排序更均衡 +- **监管门槛**:金融风控通常要求 Gini > 0.4(相当于 AUC > 0.7)方可上线 diff --git a/wiki/concepts/Divio-Documentation-System.md b/wiki/concepts/Divio-Documentation-System.md new file mode 100644 index 00000000..b4dd0e3f --- /dev/null +++ b/wiki/concepts/Divio-Documentation-System.md @@ -0,0 +1,61 @@ +--- +title: "Divio Documentation System" +type: concept +tags: ["documentation", "knowledge-management", "methodology"] +last_updated: 2026-05-01 +--- + +## Definition +Divio Documentation System 是由 [Divio](https://www.divio.com) 提出的文档分类框架,将技术文档分为四个互不重叠的象限,每个象限有明确的目的、受众和写作风格要求。 + +## Four Quadrants + +### 1. Tutorial(教程)— 学习导向 +- **目的**:让读者学会使用某个工具或技术 +- **受众**:新手、入门者 +- **风格**:循循善诱,像老师带学生一样,解释"为什么这样做" +- **关键特征**:从零开始、有明确起点和终点、成功结果可验证 +- **反面教材**:不要写成操作手册(那是 How-to)或参考手册(那是 Reference) + +### 2. How-to Guide(操作指南)— 任务导向 +- **目的**:帮助读者完成特定任务 +- **受众**:已有基础知识的开发者 +- **风格**:实用导向,提供解决具体问题的步骤 +- **关键特征**:面向结果、不解释基础知识、假设读者知道基本操作 +- **反面教材**:不要写成教程(不需要从零开始)或参考文档(不需要穷举选项) + +### 3. Reference(参考文档)— 信息导向 +- **目的**:准确描述系统功能,提供查找式的信息检索 +- **受众**:需要精确信息的开发者 +- **风格**:简洁、精确、格式一致、不含解释 +- **关键特征**:结构化(按字母/功能分组)、完整枚举所有选项、自动生成 +- **反面教材**:不要混入教程内容或解释"为什么",那会稀释参考价值 + +### 4. Explanation(解释文档)— 理解导向 +- **目的**:帮助读者深入理解某个主题,提供背景和上下文 +- **受众**:想理解"为什么"的开发者 +- **风格**:探索性、讨论性、允许不同观点 +- **关键特征**:不提供步骤、不列举选项、聚焦概念和原理 +- **反面教材**:不要写成 How-to(不需要完成任务)或 Reference(不需要列举信息) + +## Key Rules + +### 绝对禁止:混合象限 +- 一个文档页面只属于一个象限 +- 混合会导致读者困惑(不知道该看哪部分)和作者维护困难 +- 常见错误:把"什么是 X"(Explanation)和"如何用 X"(How-to)写在同一页 + +### 绝对禁止:在参考文档中写教程内容 +- API 参考文档只描述接口,不教如何使用 +- Tutorial 是独立页面 + +### 文档类型与工具的对应关系 +| 类型 | 推荐工具 | 生成方式 | +|------|---------|---------| +| Tutorial | Jupyter Notebook, Docusaurus | 人工编写 | +| How-to | Docusaurus, MkDocs | 人工编写 | +| Reference | Sphinx, OpenAPI Generator | 自动生成 + 人工审核 | +| Explanation | Docusaurus, MkDocs | 人工编写 | + +## Sources +- [[engineering-technical-writer]] — Technical Writer Agent 使用 Divio 系统组织文档写作方法论 diff --git a/wiki/concepts/DockerHostNetworking.md b/wiki/concepts/DockerHostNetworking.md new file mode 100644 index 00000000..eb911268 --- /dev/null +++ b/wiki/concepts/DockerHostNetworking.md @@ -0,0 +1,41 @@ +--- +title: "DockerHostNetworking" +type: concept +tags: + - "docker" + - "networking" + - "container" +sources: [] +last_updated: 2026-04-20 +--- + +## Overview + +DockerHostNetworking 是 Docker 容器访问宿主机网络服务的方式。默认情况下,容器内的 `localhost` 指向容器自身而非宿主机,因此需要特殊配置才能让容器访问运行在宿主机上的服务。 + +## Why It Matters for Hermes Agent + Open WebUI + +Open WebUI 运行在 Docker 容器中,Hermes Agent API Server 运行在宿主机上(端口 8642)。容器内必须通过特殊方式访问宿主机端口。 + +## Options + +### Option 1: host.docker.internal(推荐 macOS/Windows) +```bash +docker run --add-host=host.docker.internal:host-gateway ... +# 访问:http://host.docker.internal:8642/v1 +``` + +### Option 2: Host Networking(Linux) +```bash +docker run --network=host ... +# 访问:http://localhost:8642/v1 +``` + +### Option 3: Docker Bridge IP +```bash +# 先查询:docker inspect bridge | grep Gateway +docker run -e OPENAI_API_BASE_URL=http://172.17.0.1:8642/v1 ... +``` + +## See Also +- [[open-webui-hermes-agent]] diff --git a/wiki/concepts/Docs-as-Code.md b/wiki/concepts/Docs-as-Code.md new file mode 100644 index 00000000..5f413fc5 --- /dev/null +++ b/wiki/concepts/Docs-as-Code.md @@ -0,0 +1,82 @@ +--- +title: "Docs-as-Code" +type: concept +tags: ["documentation", "devops", "methodology"] +last_updated: 2026-05-01 +--- + +## Definition +Docs-as-Code 是一种将文档视为代码的实践方法论——文档使用与代码相同的工具、流程和版本控制进行管理。 + +## Core Principles + +### 1. 版本控制 +- 文档存储在 Git 仓库中 +- 所有变更通过 Pull Request 审查 +- 保留完整变更历史,支持回滚 + +### 2. 自动化构建 +- 文档变更触发 CI/CD 流水线 +- 自动运行文档检查(spellcheck、broken links、style linting) +- 自动部署到文档托管平台 + +### 3. 协作流程 +- 开发者可以直接在 IDE 中编辑文档 +- 使用 Markdown / reStructuredText / AsciiDoc 等代码友好格式 +- 文档评审与代码评审使用相同工具和流程 + +### 4. 自动化生成 +- API 参考文档从 OpenAPI/Swagger 规范自动生成 +- 代码示例从源代码自动提取 +- 从代码注释(docstrings/JSDoc)自动生成参考文档 + +## Tooling Ecosystem + +### Static Site Generators +- **Docusaurus**:Meta 出品,React 驱动,适合开源项目 +- **MkDocs**:Python 驱动,YAML 配置,Material 主题美观 +- **Sphinx**:Python 官方文档工具,reStructuredText 格式,扩展丰富 +- **VitePress**:Vue 团队出品,轻量快速,Markdown 优先 + +### Documentation Generators +- **OpenAPI Generator / Swagger Codegen**:从 OpenAPI 规范生成多语言 SDK + 参考文档 +- **JSDoc / TypeDoc**:从代码注释生成 JS/TS 参考文档 +- **Sphinx autodoc**:从 Python docstrings 自动生成参考文档 +- **Redoc**:开源 API 文档渲染器,从 OpenAPI 规范生成可读文档 +- **Stoplight**:商业级 API 设计 + 文档平台 + +### Linting & Quality +- **Vale**:prose linter,自定义风格规则,检查文档语法和风格一致性 +- **markdownlint**:Markdown 文件格式检查 +- ** spellchecker**:拼写检查 +- **Link Checker**:断链检测 + +## Implementation Checklist + +### 基础设施 +- [ ] Git 仓库存储文档(与代码同一仓库或专门 docs 仓库) +- [ ] CI/CD 流水线配置文档构建和检查 +- [ ] 选择静态站点生成器并完成初始配置 +- [ ] 配置自动化文档生成(API docs from OpenAPI/JSDoc) + +### 质量门禁 +- [ ] Vale prose linter 规则配置 +- [ ] markdownlint 检查配置 +- [ ] 断链检查集成 +- [ ] 拼写检查集成 + +### 发布流程 +- [ ] 配置自动部署到 GitHub Pages / Read the Docs / Netlify +- [ ] 文档变更触发 PR 审查流程 +- [ ] 定义文档所有者(维护者)职责 + +### 版本管理 +- [ ] 配置多版本文档(对应软件版本) +- [ ] 旧版本文档归档策略(标记弃用,不删除) + +## Relationship to Technical Writing + +Docs-as-Code 是 [[TechnicalWriter]] 的基础设施能力。[[engineering-technical-writer]] 定义了文档内容标准(Divio 系统、质量门禁、指标驱动),Docs-as-Code 提供了实现这些标准的工程化流程。两者共同构成完整的文档工程实践体系。 + +## Sources +- [[engineering-technical-writer]] — Technical Writer Agent 核心理念:文档即代码,代码无文档视为不完整 diff --git a/wiki/concepts/DomainDrivenDesign.md b/wiki/concepts/DomainDrivenDesign.md new file mode 100644 index 00000000..6b474c0b --- /dev/null +++ b/wiki/concepts/DomainDrivenDesign.md @@ -0,0 +1,32 @@ +--- +title: "Domain-Driven Design" +type: concept +tags: [] +last_updated: 2026-05-01 +--- + +## Definition +一种以业务领域为核心的软件设计方法论,通过建立通用语言(Ubiquitous Language)在技术和业务团队之间建立统一的沟通模型,并以有界上下文(Bounded Context)划分系统的边界。 + +## Key Patterns +- **Bounded Context**:业务领域的清晰边界,每个上下文有独立的模型和术语 +- **Aggregate**:聚合根,负责维护业务不变量 +- **Domain Event**:领域事件,记录业务状态变化 +- **Anti-Corruption Layer**:防腐层,隔离外部系统对核心域的侵蚀 +- **Context Mapping**:上下文映射,定义不同有界上下文之间的关系(Upstream/Downstream/Conformist/Anti-Corruption) + +## Core Principles +- **领域优先,技术其次**:先理解业务问题,再选择技术实现 +- **通用语言**:团队中的每个人都使用同一套术语,减少沟通摩擦 +- **持续精化**:领域模型通过迭代不断深化对业务的理解 + +## Related Concepts +- [[BoundedContext]]:DDD 中的核心边界概念 +- [[EventStorming]]:领域发现的协作技术 + +## Sources +- [[engineering-software-architect]] + +## Aliases +- DDD +- Domain-Driven Design diff --git a/wiki/concepts/Dual-Sign-Off.md b/wiki/concepts/Dual-Sign-Off.md new file mode 100644 index 00000000..cfe54e0f --- /dev/null +++ b/wiki/concepts/Dual-Sign-Off.md @@ -0,0 +1,58 @@ +--- +title: "Dual Sign-Off" +type: concept +tags: [governance, quality, NEXUS, gate-keeping] +last_updated: 2026-05-01 +--- + +## Definition + +Dual Sign-Off(双重签批)是 NEXUS 多 Agent 框架的质量治理核心机制——在关键决策点,必须由**两个相互独立的不同视角**的 Gate Keeper **同时批准**,方才有效。任一方否决即为否决。 + +## 设计原理 + +单一 Gate Keeper 的盲区: +- 仅战略视角 → 可能忽视技术可行性和工程复杂度 +- 仅技术视角 → 可能忽视业务价值和资源约束 + +Dual Sign-Off 通过**视角正交性**消除单点故障,确保: +1. 战略决策有技术可行性支撑 +2. 技术决策有业务价值对齐 + +## 在 NEXUS 中的应用 + +### Phase 1 — 战略 + 技术双签 + +| Gate Keeper | 视角 | 验证内容 | +|------------|------|---------| +| [[Studio Producer]] | 战略 | 架构包是否对齐组织战略目标?ROI 是否符合预期? | +| [[Reality Checker]] | 技术 | 所有组件是否具备实现路径?质量门是否通过? | + +### Phase 2 — DevOps + QA 双签 + +| Gate Keeper | 视角 | 验证内容 | +|------------|------|---------| +| DevOps Automator | 基础设施 | CI/CD/IaC 是否就绪?可部署? | +| Evidence Collector | 质量验证 | 8 项截图证据是否全部通过? | + +### Dev↔QA Loop(循环内) + +| 决策 | 条件 | +|------|------| +| PASS | Evidence Collector 证据通过 + Dev 确认修复 | +| FAIL | 任何一方未通过;进入重试循环(最多3次) | + +## 决策规则 + +- **任一方返回 REVISE** → 整体 REVISE;返回对应 Step 重做 +- **任一方返回 RESTRUCTURE** → 整体 RESTRUCTURE;重启本 Phase +- **Evidence Over Claims**:口头确认无效,必须有截图/测试结果/日志证据 + +## 与 Quality Gate Checklist 的关系 + +Dual Sign-Off 是 Quality Gate Checklist 的**执行机制**。Quality Gate 定义"检查什么"(7项清单),Dual Sign-Off 定义"谁检查"和"如何通过"(双签规则)。 + +## Aliases +- Dual Approval +- Twin Gate Mechanism +- Bifurcated Sign-Off diff --git a/wiki/concepts/EBUR128LoudnessNormalization.md b/wiki/concepts/EBUR128LoudnessNormalization.md new file mode 100644 index 00000000..7f49b2b4 --- /dev/null +++ b/wiki/concepts/EBUR128LoudnessNormalization.md @@ -0,0 +1,47 @@ +--- +title: "EBUR128LoudnessNormalization" +type: concept +tags: ["audio-processing", "loudness", "ffmpeg", "ebur128"] +last_updated: 2026-05-02 +--- + +# EBUR128LoudnessNormalization(EBU R128 响度归一化) + +## Definition + +EBU R128 是欧洲广播联盟制定的响度归一化标准,用于确保不同来源的音频具有一致的感知响度。在 Whisper 类转录模型管道中,R128 归一化确保输入音频响度稳定,避免因音量差异导致的精度下降。 + +## Standard Parameters + +```bash +-af "loudnorm=I=-16:TP=-1.5:LRA=11" +``` + +| 参数 | 含义 | 标准值 | +|------|------|--------| +| `I` | 综合响度(Integrated Loudness) | -16 LUFS | +| `TP` | 真峰值(True Peak) | -1.5 dBTP | +| `LRA` | 响度范围(Loudness Range) | 11 LU | + +## Why -16 LUFS? + +- 广播标准(TV/Streaming):-24 LUFS(旧标准)→ -16 LUFS(新趋势,Netflix/YouTube) +- Podcast/对话内容:-16 LUFS 更适合语音主导的内容 +- 过高的综合响度(>-14 LUFS)会导致语音压缩失真 + +## Pipeline Context + +``` +原始音频 → 格式检测(ffprobe)→ EBU R128 归一化 → 重采样至 16kHz → 单声道 +``` + +## Why It Matters for Whisper + +Whisper 对响度变化不免疫。同一段语音,-30 LUFS 的录音和 -16 LUFS 的录音,后者的WER(Word Error Rate)更低,因为响度归一化降低了动态范围,减少了模型在处理软/响片段时的注意力分散。 + +## Related Concepts +- [[VoiceActivityDetection]] — 归一化之后的后处理 +- [[FasterWhisper]] — 归一化音频的消费者 + +## Related Sources +- [[engineering-voice-ai-integration-engineer]] diff --git a/wiki/concepts/Echidna.md b/wiki/concepts/Echidna.md new file mode 100644 index 00000000..42c5e904 --- /dev/null +++ b/wiki/concepts/Echidna.md @@ -0,0 +1,79 @@ +--- +title: "Echidna(属性化模糊测试)" +type: concept +tags: [blockchain, security, smart-contract, fuzzing, property-based-testing] +sources: [blockchain-security-auditor] +last_updated: 2026-05-30 +--- + +## Aliases +- Echidna +- Echidna Fuzzer +- Property-Based Fuzzing + +## Definition + +Echidna 是一个属性化模糊测试(Property-Based Fuzzing)工具,专门用于智能合约安全测试。它通过随机生成交易序列,持续验证协议定义的不变性(invariants)是否始终成立。当不变性被违反时,Echidna 会生成触发该违规的具体交易序列作为 PoC。 + +## How It Works + +1. **定义不变性**:用 Solidity 编写断言或属性 +2. **生成随机交易**:Echidna 以随机参数调用合约函数 +3. **监控不变性**:每次状态变更后检查断言 +4. **生成 PoC**:发现违规时输出触发序列 + +## Example Test + +```solidity +// SPDX-License-Identifier: MIT +pragma solidity ^0.8.24; + +import {Test} from "forge-std/Test.sol"; +import {Vault} from "../src/Vault.sol"; + +contract EchidnaInvariantTest { + Vault public vault; + + constructor() { + vault = new Vault(); + } + + // 不变性:任何时刻总存款 = 所有用户余额之和 + function echidna_total_deposits_equals_sum() public view returns (bool) { + return vault.totalDeposits() == vault.getSumOfBalances(); + } +} +``` + +## Configuration + +```yaml +# echidna-config.yaml +testMode: assertion # 断言模式 +testLimit: 500000 # 最大测试数 +timeout: 3600 # 超时(秒) +sender: ["0x000...1", "0x000...2"] # 发送者地址 +``` + +## Relationship to Other Tools + +| Tool | Method | Strength | +|------|--------|----------| +| [[Slither]] | 静态分析 | 快速扫描,规则匹配 | +| [[Mythril]] | 符号执行 | 深度路径覆盖 | +| [[Echidna]] | 属性化模糊测试 | 随机交易序列,不变性验证 | + +- **Echidna** 是 Slither 和 Mythril 的**补充**,不是替代 +- Slither 找规则性漏洞 → Echidna 找逻辑漏洞 +- Foundry 的 `forge invariant` 命令也提供类似功能 + +## Limitations + +- 不变性定义错误会导致漏报 +- 复杂状态空间难以在合理时间覆盖 +- 需要开发者定义正确的不变性 + +## Connections +- [[Blockchain-Security-Auditor]] ← uses ← [[Echidna]] +- [[Foundry]] ← provides invariant testing ← [[Echidna]] +- [[Formal-Verification]] ← complements ← [[Echidna]] diff --git a/wiki/concepts/EffectiveTaxRate.md b/wiki/concepts/EffectiveTaxRate.md new file mode 100644 index 00000000..41f88b26 --- /dev/null +++ b/wiki/concepts/EffectiveTaxRate.md @@ -0,0 +1,49 @@ +--- +title: "Effective Tax Rate (ETR)" +type: concept +tags: ["tax", "finance", "kpi", "compliance"] +last_updated: 2026-05-02 +--- + +## Definition + +有效税率(Effective Tax Rate, ETR)是企业实际税负占税前收入的比例,是衡量税务筹划效果的核心 KPI。计算公式: + +``` +ETR = 总税负 ÷ 税前收入 +``` + +## ETR vs Statutory Rate + +| 指标 | 说明 | +|------|------| +| Statutory Rate | 法定税率(如美国联邦 21%) | +| ETR | 实际有效税率(含各项抵扣和优惠) | +| Cash Tax Rate | 实际支付现金税率(含递延税) | + +ETR 通常低于 Statutory Rate,因为存在税收抵免(Tax Credits)、递延(Deferred Income)和国际税率差异等优化空间。 + +## ETR Waterfall Components + +典型 ETR 瀑布分解: +- Federal Statutory Tax(联邦法定税率) +- State & Local Taxes(SALT) +- International Rate Differential(国际税率差异) +- R&D Tax Credits(R&D 税收抵免) +- QBI Deduction(合格商业收入扣除) +- Other Permanent/Temporary Adjustments(其他永久/暂时性调整) + +## Target + +- **[[finance-tax-strategist]]** 目标:ETR ≤ 行业同行中位数 +- 成功标准:审计调整 < 2% 总税负 + +## Sources + +- [[finance-tax-strategist]] + +## Related Concepts + +- [[TransferPricing]] +- [[GILTI]] +- [[BEAT]] diff --git a/wiki/concepts/Elasticity.md b/wiki/concepts/Elasticity.md new file mode 100644 index 00000000..05a9640e --- /dev/null +++ b/wiki/concepts/Elasticity.md @@ -0,0 +1,46 @@ +--- +title: "Elasticity" +type: concept +tags: [sre, cloud, scalability, reliability, capacity-planning] +last_updated: 2026-04-20 +--- + +# Elasticity + +弹性(Elasticity)是指系统在无需人工干预的情况下,根据需求动态调整容量的能力,是云原生的核心特性之一。 + +## Definition +真正的弹性需要**策略、测试和对瓶颈的认知**。它不仅仅是自动扩容,而是一个包含规划、执行和验证的完整体系。 + +## Core Requirements +1. **策略(Policy)**:明确定义扩容和缩容的规则 +2. **测试(Testing)**:在非生产环境验证弹性行为 +3. **瓶颈认知(Bottleneck Awareness)**:理解系统的性能瓶颈在哪里 + +## Elasticity vs. Autoscaling + +| Aspect | [[Autoscaling]] | Elasticity | +|--------|-----------------|-----------| +| 性质 | 工具/机制 | 设计原则/能力 | +| 范围 | 单一维度(资源) | 多维度(容量、性能、成本) | +| 前瞻性 | 被动响应 | 主动规划 | +| 人类角色 | 可能被排除 | 必须参与 | + +## Key Insight +Autoscaling 是实现弹性的**工具之一**,但 Autoscaling 本身不等同于弹性。缺乏策略和测试的 Autoscaling 可能在故障期间造成更大损害。 + +## Implementation Pillars +- **Capacity Planning**:预测需求,提前规划 +- **Cost Optimization**:在弹性和成本之间取得平衡 +- **Observability**:通过遥测数据理解系统边界 +- **Chaos Engineering**:通过实验验证系统韧性 + +## Related Concepts +- [[Autoscaling]] +- [[Scalability]] +- [[Cost-Optimization]] +- [[Observability]] +- [[Resilience]] + +## Source +- SRE Weekly Issue #513 — [[sre-weekly-issue-513]] diff --git a/wiki/concepts/Encounter-Design.md b/wiki/concepts/Encounter-Design.md index 99259437..c91effac 100644 --- a/wiki/concepts/Encounter-Design.md +++ b/wiki/concepts/Encounter-Design.md @@ -1,39 +1,64 @@ --- title: "Encounter Design" type: concept -tags: [] -last_updated: 2026-04-26 +tags: ["game-design", "level-design", "combat-design", "player-balance", "tactics"] +sources: ["level-designer.md"] +last_updated: 2026-05-07 --- ## Definition -遭遇战设计(Encounter Design)是在游戏关卡中为战斗、挑战或关键互动节点制定规则与布局的学科。每个遭遇必须可读、公平且令人难忘。 +Encounter Design(遭遇战设计)是游戏关卡设计中对战斗、挑战或关键交互节点的规划方法论。**核心要求:每场遭遇战必须同时具备进入读时、多种战术选项和撤退位置——三者缺一则战斗不公平**。 -## Core Standards +## Three Mandatory Elements -### Three Mandatory Components -每个战斗遭遇必须包含: -1. **入口读图时间(Entry Read Time)**:玩家在进入遭遇前能看到战场全貌 -2. **多种战术选项(Multiple Tactical Approaches)**:至少 2 种可行战术,让玩家做有意义的选择 -3. **退守位置(Fallback Position)**:玩家处于劣势时可以安全撤退或重整的空间 +### 1. Entry Read Time(进入读时) +玩家在进入战斗前必须有时间感知威胁: +- **禁止**:玩家无法在受击前看到敌人的位置(设计的伏击除外,但必须有预兆) +- **标准**:敌人必须在玩家进入交战范围前可见 +- **伏击设计**:必须有 telegraph(预兆信号),如声音、光照变化、敌人标记 -### Enemy Placement Rules -- 禁止将敌人放在玩家进入视野前就能造成伤害的位置(设计好的伏击除外,但必须有预警信号) -- 难度必须先从空间(位置和布局)出发,再考虑数值缩放 -- 所有敌人必须在玩家进入交战范围前可见 +### 2. Multiple Tactical Approaches(多种战术选项) +每场战斗必须至少有 2 种在测试中被证明可行的战术: +- **进攻选项**:正面突破、侧翼、包抄 +- **防守选项**:利用掩体、占据高点、等待冷却 +- **策略选项**:利用环境(可破坏物、陷阱触发物) +- **禁止**:只有一种最优解的战斗设计 -### Difficulty Hierarchy -1. **Spatial first**(位置第一):通过敌人位置和掩体布局创造难度 -2. **Stat scaling second**(数值第二):在空间设计固定后,通过数值调整难度 +### 3. Fallback Position(撤退位置) +玩家处于劣势时必须有脱离战场的空间选项: +- **要求**:撤退位置必须在空间上明显(玩家能直觉感知) +- **功能**:给予玩家重新评估局势、改变战术的机会 +- **平衡**:撤退位置不应该是绝对安全的(否则玩家永远不进攻) -## Tensions -- **Readability vs. Surprise**:清晰战场 vs. 惊喜伏击,通过 telegraphing(预警)平衡 -- **Choice vs. Optimal**:多种战术选项 vs. 存在唯一最优解,通过 playtest 验证多样性 +## Difficulty Hierarchy -## Related Concepts -- [[Flow And Readability]]:Encounter 是 Flow 路径上的节点 -- [[Blockout Discipline]]:Encounter 在灰盒阶段必须完成可玩性验证 -- [[Pacing Architecture]]:Encounter 的密度和强度决定整体节奏 +遭遇战难度应首先通过**空间设计**(位置、布局)而非数值缩放实现: -## Sources -- [[Level Designer Agent Personality]] +1. **Spatial Difficulty**(空间难度):通过掩体数量、高低差、通道宽度实现 +2. **Tactical Difficulty**(战术难度):通过敌人类型组合、AI 行为模式实现 +3. **Stat Difficulty**(数值难度):作为最后手段,缩放敌人生命值/伤害 + +## Encounter List Template + +```markdown +## Encounter List + +| ID | Type | Enemy Count | Tactical Options | Fallback Position | +|-----|----------|-------------|------------------|-------------------| +| E01 | Ambush | 4 | Flank / Suppress | Door archway | +| E02 | Arena | 8 | 3 cover positions| Elevated platform | +``` + +## Playtest Validation + +- 每场遭遇战必须单独 Playtest 验证 +- 测量指标:time-to-death、成功战术分布、混乱时刻 +- 迭代标准:直到至少 2 种战术被测试者成功使用 + +## Connections + +- [[Level Designer]] 是 Encounter Design 的核心执行者 +- [[Grey Box Blockout]] 阶段必须验证所有遭遇战 +- [[Spatial Psychology]] 影响撤退位置和有利地形的空间感知设计 +- [[Pacing Chart]] 中的 Combat 条目直接对应 Encounter Design 的节奏峰值 diff --git a/wiki/concepts/Environmental-Storytelling.md b/wiki/concepts/Environmental-Storytelling.md index 611731a9..af5bba5c 100644 --- a/wiki/concepts/Environmental-Storytelling.md +++ b/wiki/concepts/Environmental-Storytelling.md @@ -1,38 +1,69 @@ --- title: "Environmental Storytelling" type: concept -tags: [] -last_updated: 2026-04-26 +tags: ["game-design", "narrative-design", "world-building", "level-design", "atmosphere"] +sources: ["level-designer.md", "narrative-designer.md"] +last_updated: 2026-05-07 --- ## Definition -环境叙事(Environmental Storytelling)是通过环境本身讲述故事的设计方法——无需对话、文字或过场动画,玩家仅凭空间布局、道具摆放和光照变化就能推断出世界中发生的事件。 +Environmental Storytelling(环境叙事)是通过场景道具摆放、光照设计、几何形状和破坏痕迹传达世界观故事的设计手法——**玩家无需对话或文字即可推断空间中发生过什么**。核心信念:**空间本身就是叙事媒介**。 ## Core Principles -### No Empty Spaces -- 每个区域必须通过道具摆放、光照和几何形状讲述故事 -- 不存在空白的"填充"空间 -- 破坏、磨损和环境细节必须与世界叙事历史一致 +### 1. Every Space Tells a Story +每个区域都应通过物理证据传达信息: +- 倒落的家具 → 某人匆忙离开 +- 墙上的弹孔 → 发生过战斗 +- 凌乱的办公桌 → 被迫中断的工作 +- 儿童玩具 → 这是一个家庭空间 -### Inference-Based Learning -- 玩家应该能够在不借助对话或文本的情况下推断出空间中发生了什么 -- 倒置的家具暗示某人匆忙离开——lean into that(顺着这个讲) -- 玩家通过观察环境理解世界,而非被告知 +### 2. Consistency with World History +破坏、磨损和细节必须与设定的世界时间线一致: +- 不同年代的空间应有不同的磨损程度 +- 灾难事件后的空间必须有相应的破坏证据 +- 废弃空间应有相应的尘土、蛛网、自然侵蚀 -### Three Storytelling Channels -1. **道具摆放(Prop Placement)**:物品位置讲述历史事件 -2. **光照(Lighting)**:明暗对比传达情绪和焦点 -3. **几何形状(Geometry)**:空间规模暗示功能和重要性 +### 3. No Empty Filler Spaces +禁止"纯装饰性填充空间"——每个空间必须有叙事目的: +- 即使是过渡走廊,也应通过环境细节传达世界信息 +- 环境叙事密度随关卡重要性递增 -## Related Concepts -- [[Level Designer Agent]]:Level Designer 是 Environmental Storytelling 的主要执行者(物理空间设计与道具摆放) -- [[Narrative Designer Agent]]:Narrative Designer 提供环境叙事的叙事内容架构(道具的叙事意义定义) -- [[Spatial Psychology]]:空间如何影响玩家的情感和认知 -- [[Flow And Readability]]:叙事空间同时必须是可导航的 -- [[Lore Architecture]]:环境叙事是 Tier 2/3 Lore 的物理呈现 +## Techniques -## Sources -- [[Level Designer Agent Personality]] -- [[Narrative Designer Agent Personality]] +### Physical Props +道具是最直接的环境叙事媒介: +- 选择性摆放(而非随机放置)传达人物意图 +- 对比性道具("这不应该在这里")制造悬念 + +### Lighting and Color +光照是环境叙事最强力的工具: +- 明暗对比引导注意力,暗示重要区域 +- 色温传达情感:暖色=安全/生活,冷色=危险/陌生 +- 动态光源(如闪烁的火焰)暗示时间流逝或危险 + +### Geometry and Architecture +空间本身传达权力关系和历史: +- 高天花板 → 公共/权威空间 +- 低矮通道 → 压迫/隐藏路径 +- 环形空间 → 迷宫/无法逃逸感 + +### Destruction and Decay +损坏和腐朽是时间故事的视觉证据: +- 自然的生物侵蚀(苔藓、蛛网) +- 暴力的物理破坏(烧毁、爆炸、战斗痕迹) +- 社会性废弃(垃圾、个人物品散落) + +## Metrics + +环境叙事有效性通过 Playtest 验证: +- **>70% 的测试玩家能正确推断环境故事**时,环境叙事设计达标 +- 开放式问题:"这个空间告诉了你什么?"收集推断准确性数据 + +## Connections + +- [[Level Designer]] 是环境叙事的物理空间执行者 +- [[Narrative Designer]] 定义环境叙事的内容框架(世界设定、时间线) +- [[Pacing Chart]] 中的 Exploration 时段是环境叙事密度最高的时间窗口 +- [[Grey Box Blockout]] 阶段验证环境叙事是否可感知(道具位置在灰盒中以占位符标记) diff --git a/wiki/concepts/EriksonPsychosocialStages.md b/wiki/concepts/EriksonPsychosocialStages.md new file mode 100644 index 00000000..56cc8ff3 --- /dev/null +++ b/wiki/concepts/EriksonPsychosocialStages.md @@ -0,0 +1,35 @@ +--- +title: "Erikson Psychosocial Stages" +type: concept +tags: [] +sources: [academic-psychologist] +last_updated: 2026-04-25 +--- + +# Erikson Psychosocial Stages + +## Aliases +- Erikson's Stages of Development +- Psychosocial Development Stages + +## Definition +Erikson 心理社会发展阶段——人在整个生命周期中面临的八个心理社会危机,每个危机的解决方式影响后续阶段的发展轨迹。 + +## Eight Stages + +| 阶段 | 年龄 | 核心危机 | 成功解决 | 未解决 | +|------|------|----------|----------|--------| +| 1 | 0-1岁 | Trust vs. Mistrust(信任 vs. 不信任) | 安全感 | 恐惧、不安全感 | +| 2 | 1-3岁 | Autonomy vs. Shame(自主 vs. 羞耻) | 意志力 | 自我怀疑 | +| 3 | 3-6岁 | Initiative vs. Guilt(主动性 vs. 内疚) | 方向感 | 过度内疚 | +| 4 | 6-12岁 | Industry vs. Inferiority(勤奋 vs. 自卑) | 能力感 | 自卑 | +| 5 | 12-18岁 | Identity vs. Role Confusion(同一性 vs. 角色混乱) | 自我认同 | 角色混乱 | +| 6 | 18-40岁 | Intimacy vs. Isolation(亲密 vs. 孤独) | 爱的能力 | 孤立、疏离 | +| 7 | 40-65岁 | Generativity vs. Stagnation(再生力 vs. 停滞) | 关怀传承 | 停滞、自我关注 | +| 8 | 65岁+ | Integrity vs. Despair(完善 vs. 绝望) | 智慧、接纳 | 悔恨、绝望 | + +## Application in Character Design +Psychologist Agent 使用此框架设计角色发展弧光时,强调**非决定论**——早期危机的影响可以被后续发展所修正,不存在"童年决定一切"的宿命论。 + +## Connection to Wiki +- Source: [[academic-psychologist]] diff --git a/wiki/concepts/Evidence-Over-Claims.md b/wiki/concepts/Evidence-Over-Claims.md new file mode 100644 index 00000000..9c3ef71b --- /dev/null +++ b/wiki/concepts/Evidence-Over-Claims.md @@ -0,0 +1,39 @@ +--- +title: "Evidence Over Claims" +type: concept +tags: [multi-agent, quality, evidence, nexus] +sources: [executive-brief, quickstart] +last_updated: 2026-05-01 +aliases: + - Evidence-Based Quality + - Proof Over Promise +--- + +## Definition + +证据优于主张(Evidence Over Claims)—— NEXUS 多 Agent 编排框架的核心质量原则:所有质量声明必须基于可验证的证据(截图/测试结果/性能数据),而非口头断言或自我评估。 + +## Core Principle + +``` +主张:✓ 功能已完成,质量优秀 +证据:✓ 自动化测试通过率 100%,覆盖率 85%,Lighthouse 性能评分 95 +``` + +只有证据才能推动流程前进。口头断言、承诺或自我评估都不是有效的质量证明。 + +## Evidence Hierarchy + +| 证据类型 | 优先级 | 示例 | +|---------|-------|------| +| 截图/录屏 | 最高 | 关键功能运行录屏、UI 对比截图 | +| 自动化测试结果 | 高 | Jest/Vitest 测试报告、覆盖率报告 | +| 性能数据 | 高 | Lighthouse 报告、API 响应时间表 | +| 第三方审计报告 | 中 | 安全扫描报告、无障碍审计报告 | +| 口头断言/自我评估 | 最低 | "功能已实现"、"质量很好" | + +## Related Concepts + +- [[Reality Checker]]:Evidence Over Claims 原则的强制执行者——默认"NEEDS WORK",要求提供证据 +- [[Quality Gate]]:Evidence Over Claims 是质量门控的判断标准 +- [[Dev↔QA Loop]]:Dev↔QA 循环中的 PASS/FAIL 判定必须基于证据 diff --git a/wiki/concepts/EvidenceCollection.md b/wiki/concepts/EvidenceCollection.md new file mode 100644 index 00000000..defa71e7 --- /dev/null +++ b/wiki/concepts/EvidenceCollection.md @@ -0,0 +1,51 @@ +--- +title: "Evidence Collection" +type: concept +tags: [] +sources: [compliance-auditor] +last_updated: 2026-04-30 +--- + +# Evidence Collection + +## Definition + +证据收集(Evidence Collection)是合规审计中从被审计系统提取、记录和整理证据材料的过程,用以证明控制措施在审计期间有效运行。证据必须证明控制**在整个审计期间持续有效**,而非仅在审计当天存在。 + +## Core Principles + +### 自动化优先原则 +- **手动证据是脆弱的证据**——依赖人工截图、导出的流程无法保证一致性 +- 从第一天就建立自动化证据收集管道——手动流程无法扩展 +- 自动化证据的优势:可重复、一致、可追溯 + +### 证据收集矩阵 +| 控制 ID | 控制描述 | 证据类型 | 来源 | 收集方法 | 频率 | +|---------|---------|---------|------|---------|------| +| CC6.1 | 逻辑访问控制 | 访问审查日志 | Okta | API 导出 | 季度 | +| CC6.2 | 用户配置 | 入职工单 | Jira | JQL 查询 | 事件触发 | +| CC6.3 | 用户取消配置 | 离职清单 | HR系统+Okta | 自动化 webhook | 事件触发 | +| CC7.1 | 系统监控 | 告警配置 | Datadog | 仪表板导出 | 月度 | + +### 按控制目标组织 +- 证据包必须按**控制目标**组织,而非按内部团队结构组织 +- 审计师需要的是按控制逻辑组织的证据,而非按 IT/HR/法务部门组织的文件 + +### 审计师视角 +- 思考"你会测试什么?"和"你会要求什么证据?" +- 抽样原则:若控制适用于 500 台服务器,审计师会抽样——确保任何一台都能通过 + +## Evidence Types +- 日志文件(访问日志、操作日志、安全日志) +- 配置快照(系统配置、安全策略) +- 审批记录(变更审批、例外审批) +- 报告导出(监控仪表板、合规报告) +- 自动化脚本输出(API 导出、脚本执行结果) + +## Related Concepts +- [[SOC 2]]:Type II 审计要求持续有效证据 +- [[Gap Assessment]]:修复差距后需要收集相应证据 +- [[Continuous Compliance]]:持续合规要求周期性证据收集 + +## Related Sources +- [[compliance-auditor]] diff --git a/wiki/concepts/EvidenceFirstReasoning.md b/wiki/concepts/EvidenceFirstReasoning.md new file mode 100644 index 00000000..42b08ba4 --- /dev/null +++ b/wiki/concepts/EvidenceFirstReasoning.md @@ -0,0 +1,39 @@ +--- +title: "EvidenceFirstReasoning" +type: concept +tags: [] +last_updated: 2026-05-02 +--- + +## Definition + +Evidence-First Reasoning(证据优先推理)是一种推理原则:只陈述代码中实际可见、可验证的事实,绝不进行推理、假设或猜测。 + +## Core Rule + +> "Never state that a module owns behavior unless you can point to the file(s) that implement or route it." + +如果某件事在检查的代码中不可见,就不能陈述它。 + +## Contrast with Other Approaches + +| Evidence-First Reasoning | Speculative Reasoning | +|---|---| +| 基于代码中可验证的事实 | 基于推测和假设 | +| 明确告知检查范围边界 | 不声明检查边界 | +| 引用具体文件/函数名 | 使用泛化描述 | +| 诚实回答"不知道" | 试图覆盖不确定区域 | + +## Application in AI Coding Agents + +AI Coding Agent 在执行代码库分析时: +- 必须引用具体源文件路径 +- 必须区分"检查过的代码"和"未检查的代码" +- 不得推断意图、质量或未来工作 +- 当答案是部分的,只能说明检查了哪些文件 + +## Related Concepts + +- [[CodebaseOnboarding]] — 代码库 onboarding 方法论 +- [[ExecutionTracing]] — 执行路径追踪 +- [[MinimalChangePrinciple]] — 最小变更原则([[EngineeringMinimalChangeEngineer]] 使用的原则) diff --git a/wiki/concepts/ExecutionTracing.md b/wiki/concepts/ExecutionTracing.md new file mode 100644 index 00000000..15b39301 --- /dev/null +++ b/wiki/concepts/ExecutionTracing.md @@ -0,0 +1,42 @@ +--- +title: "ExecutionTracing" +type: concept +tags: [] +last_updated: 2026-05-02 +--- + +## Definition + +Execution Tracing(执行追踪)是追踪请求、事件、命令在系统中完整流动路径的方法。通过追踪数据如何进入、转换、持久化和退出,建立对代码库实际工作方式的准确理解。 + +## Core Steps + +1. **Identify entry point** — 找到请求/命令的入口文件 +2. **Follow routing logic** — 追踪路由/控制器层的分发逻辑 +3. **Trace business logic** — 追踪核心业务逻辑的调用链 +4. **Map persistence layer** — 找到数据持久化或副作用发生的位置 +5. **Track return path** — 追踪结果如何返回到调用方 + +## Key Signals to Track + +- **Inputs**: HTTP requests, CLI args, messages, files, function arguments +- **Transforms**: Data validation, enrichment, computation, aggregation +- **Outputs**: Responses, DB writes, files, events, rendered UI + +## Async & Side Channels + +- 异步 jobs 和 queues +- Cron tasks 和定时任务 +- Background workers +- Client-side state 变更 + +## Usage Context + +- 理解新代码库的运行机制 +- 定位 bug 的根本原因 +- 评估代码变更的潜在影响范围 + +## Related Concepts + +- [[CodebaseOnboarding]] — 代码库 onboarding 的方法论 +- [[MentalModel]] — 为开发者构建准确的心智模型 diff --git a/wiki/concepts/Executive-Summary-Formula.md b/wiki/concepts/Executive-Summary-Formula.md new file mode 100644 index 00000000..9c46e370 --- /dev/null +++ b/wiki/concepts/Executive-Summary-Formula.md @@ -0,0 +1,47 @@ +--- +title: "执行摘要五步结构(Executive Summary Formula)" +type: concept +tags: [sales, proposal, executive-summary] +sources: [sales-proposal-strategist] +last_updated: 2026-04-29 +--- + +## Definition + +执行摘要是提案最关键的单页——很多高级评审者(尤其是 C-suite)只读这一页。它不是提案的摘要,而是提案的最终辩论(closing argument),放在最前面。 + +## 五步结构 + +| Step | 内容 | 目的 | +|------|------|------| +| 1 | **镜像买家处境**(2-3句) | 证明你倾听了,使用他们自己的语言 | +| 2 | **引入核心张力** | 不作为的代价或被错失的机会 | +| 3 | **呈现论点**(2-3句) | 你的方法如何化解张力;赢主题在此自然出现 | +| 4 | **提供证明**(1-2个) | 类似案例、可衡量成果、差异化方法论细节 | +| 5 | **以转化状态收尾** | 12-18 个月后买家组织具体、可衡量的状态 | + +## 黄金法则 + +- **一页纸**:每句话都必须自证其存在价值 +- **先赢主题后细节**:评审者在最初 100 个词内决定你是否理解他们的问题 +- **执行摘要可独立成文**:如果只给买家一页,让他们读执行摘要 + +## 与赢主题的关系 + +赢主题必须在执行摘要中出现(Step 3),但以自然整合的方式出现,而非列表形式。执行摘要是赢主题密度最高的单页。 + +## 与三幕式提案叙事的关系 + +执行摘要是三幕叙事的浓缩版: +- Step 1 ≈ Act I(理解挑战) +- Step 2-3 ≈ Act II(方案旅程) +- Step 4-5 ≈ Act III(转化状态) + +## Related Concepts + +- [[三幕式提案叙事]]:五步结构的完整展开 +- [[Win Theme]]:执行摘要中自然整合的叙事支柱 + +## Sources + +- [[sales-proposal-strategist]] diff --git a/wiki/concepts/Fabula-vs-Sjuzhet.md b/wiki/concepts/Fabula-vs-Sjuzhet.md new file mode 100644 index 00000000..178c4fb1 --- /dev/null +++ b/wiki/concepts/Fabula-vs-Sjuzhet.md @@ -0,0 +1,43 @@ +--- +title: "Fabula vs. Sjuzhet" +type: concept +tags: [] +sources: [] +last_updated: 2026-04-30 +--- + +## Aliases +- Fabula vs. Sjuzhet +- Story vs. Narrative +- 故事 vs. 叙事 +- 事件 vs. 呈现 + +## Overview +Fabula(故事)与 Sjuzhet(叙事话语)是 Russian Formalism 提出的核心区分,后经 [[Vladimir Propp]] 和 French Structuralism 发展完善。 + +| 术语 | 定义 | 问法 | +|------|------|------| +| **Fabula** | 按实际时间顺序发生的所有事件集合 | "发生了什么?" | +| **Sjuzhet** | 事件在叙事中被呈现的方式(顺序、省略、重复、聚焦) | "故事是怎么讲的?" | + +## Key Implications + +### The Critical Insight([[Academic Narratologist]] 核心观点) +> "Most problems live in the telling (sjuzhet), not the tale (fabula)." + +大多数叙事问题存在于讲述方式(如何重组、选择、省略、聚焦),而非故事本身。 + +### Example +- **Fabula**: 英雄被选中 → 接受训练 → 与反派战斗 → 获胜 +- **Sjuzhet variants**: + - 从反派视角讲述 → 产生反英雄同情 + - 倒叙讲述 → 制造悬念 + - 从中间开始 → 省去建置阶段 + +## Application +- 诊断叙事问题时,必须先判断问题在哪个层级 +- [[Academic Narratologist]] 使用此框架区分"情节问题"和"讲述问题" + +## Relationship to Other Concepts +- [[Genette-Narratology]]:Genette 深化了 sjuzhet 的分析维度(时序、频率、声音) +- [[ControllingIdea]]:Controlling Idea 存在于 fabula 层,但通过 sjuzhet 层传达 diff --git a/wiki/concepts/Failure-Pattern-Analysis.md b/wiki/concepts/Failure-Pattern-Analysis.md new file mode 100644 index 00000000..2ef8701a --- /dev/null +++ b/wiki/concepts/Failure-Pattern-Analysis.md @@ -0,0 +1,42 @@ +--- +title: "Failure Pattern Analysis" +type: concept +tags: [testing, failure-analysis, quality] +sources: [testing-test-results-analyzer] +last_updated: 2026-04-28 +--- + +## Aliases +- Defect Pattern Analysis +- Test Failure Classification +- Root Cause Pattern Detection + +## Definition + +失败模式分析——通过统计方法对测试失败进行分类、聚类和趋势分析,识别系统性质量问题并定位根因。 + +## Failure Categories + +| 类别 | 说明 | 典型特征 | +|------|------|---------| +| 功能性 (Functional) | 功能行为不符合预期 | 逻辑错误、边界条件 | +| 性能 (Performance) | 响应时间/SLA 不达标 | 慢查询、资源瓶颈 | +| 安全 (Security) | 安全漏洞或合规问题 | 注入、权限绕过 | +| 集成 (Integration) | 模块间接口不一致 | API 变更、协议不匹配 | + +## Key Methods + +- **Statistical Failure Trend Analysis**:跨时间序列分析失败率变化,识别恶化趋势。 +- **Root Cause Clustering**:将相似失败聚类,定位共同根因。 +- **Failure Distribution by Layer**:按系统层次(UI/业务逻辑/数据/基础设施)分布分析,识别系统性薄弱层。 + +## Key Insights (from TestResultsAnalyzer) + +> "Failure pattern analysis reveals 73% of defects originate from integration layer" — 系统层分布分析洞察示例 + +## Connections + +- [[Statistical-Analysis]]:失败模式分析依赖统计方法验证。 +- [[Root-Cause-Analysis]]:失败模式分析的下游是根因定位。 +- [[Dev-QA-Loop]]:失败模式分析结果反馈到开发-测试循环以调整测试策略。 +- [[Quality-Metrics]]:失败率是核心质量指标。 diff --git a/wiki/concepts/Fairness-Audit.md b/wiki/concepts/Fairness-Audit.md new file mode 100644 index 00000000..7d045a23 --- /dev/null +++ b/wiki/concepts/Fairness-Audit.md @@ -0,0 +1,56 @@ +--- +title: "Fairness Audit" +type: concept +tags: [model-evaluation, fairness, bias, ml-ethics, model-governance] +sources: + - specialized-model-qa +last_updated: 2026-05-29 +--- + +## Definition + +公平性审计(Fairness Audit)是 ML 模型审计中评估模型是否对不同受保护群体(protected groups)产生系统性歧视的过程。核心目标:识别和量化模型预测中基于种族、性别、年龄、宗教、国籍等受保护属性的不公平差异,确保模型符合伦理规范和监管要求。 + +## Core Metrics + +### Demographic Parity(人口统计均等) +- 要求:模型的正预测率在各群体间相等 +- 公式:$P(\hat{Y}=1|A=0) = P(\hat{Y}=1|A=1)$ +- 也称为:Statistical Parity, Independence Criterion + +### Equalized Odds(均等化赔率) +- 要求:在相同真实标签条件下,各群体的预测分布相等 +- 公式:$P(\hat{Y}=1|A=0,Y=y) = P(\hat{Y}=1|A=1,Y=y)$,for $y \in \{0,1\}$ +- 比 Demographic Parity 更严格,同时要求 TPR 和 FPR 在各群体间相等 + +### Disparate Impact Ratio(差异影响比) +- $DIR = \frac{P(\hat{Y}=1|A=\text{minority})}{P(\hat{Y}=1|A=\text{majority})}$ +- 4/5 规则:DIR < 0.8 通常视为存在差异影响 + +### Calibration Across Groups +- 在各受保护群体上分别验证预测概率校准性 +- 确保高风险决策(贷款拒绝、保险定价)不会系统性低估某群体 + +## Model QA 中的应用 + +Model QA Specialist 执行以下公平性审计步骤: +1. **受保护属性识别**:确认模型决策涉及哪些受保护特征(法律/道德/业务角度) +2. **Baseline 指标计算**:在全人群上计算 AUC/KS/Gini 作为基准 +3. **分层指标对比**:在受保护群体上分别计算性能指标,量化差距 +4. **差异影响评估**:DIR < 0.8 则标记为潜在歧视,需进一步调查 +5. **因果分析**:区分相关关系(Correlation)与因果效应(Causation),避免虚假公平性 +6. **补救建议**:Pre-processing(重采样/重加权)/ In-processing(对抗训练/约束优化)/ Post-processing(阈值调整) + +## Relationship + +- **依赖** [[Discrimination-Metrics]]:公平性审计首先建立在判别能力评估之上 +- **依赖** [[SHAP]]:SHAP 贡献分析揭示哪些特征驱动了跨群体差异 +- **依赖** [[Calibration-Testing]]:跨群体校准是公平性决策的基础 +- **支撑** [[specialized-model-qa]](Source):Model QA Specialist 的可解释性与公平性审计步骤核心工具 + +## Key Limitations + +- **公平性指标不可同时最优**:Demographic Parity 与 Equalized Odds 在一般情况下不可同时满足(Impossibility Theorem) +- **代理变量问题**:直接排除受保护属性后,模型仍可能通过代理变量(如邮编→种族)歧视 +- **数据不平衡**:受保护群体的稀缺样本可能导致统计结论不可靠 +- **监管框架差异**:欧盟 AI Act / 美国 EEOC / 巴塞尔协议对公平性要求各不相同 diff --git a/wiki/concepts/False-Cognates.md b/wiki/concepts/False-Cognates.md new file mode 100644 index 00000000..203800ef --- /dev/null +++ b/wiki/concepts/False-Cognates.md @@ -0,0 +1,56 @@ +--- +title: "False Cognates" +type: concept +tags: ["spanish", "linguistics", "translation", "false-friends", "cognates", "trap"] +last_updated: 2026-05-02 +--- + +## Definition + +**False Cognates**(假同源词/欺骗性同源词)指那些在两种语言中看起来相似但含义完全不同的词汇。如果直接翻译会导致严重误解甚至尴尬。 + +## High-Risk Spanish-English False Cognates + +| 西班牙语 | 字面/错误理解 | 实际含义 | 严重程度 | +|---|---|---|---| +| **embarazada** | "embarrassed"(尴尬) | **怀孕** | ⚠️ 极高 | +| **sensible** | "sensible"(理智的) | **敏感的** | ⚠️ 中等 | +| **éxito** | "exit"(出口) | **成功** | ⚠️ 中等 | +| **actual** | "actual"(真实的) | **当前的/现在的** | ⚠️ 中等 | +| **asistir** | "assist"(帮助) | **参加/出席** | ⚠️ 中等 | +| **carpet** | (英语) | **公交车**(西班牙/拉丁美洲部分地区) | 🔴 极高 | +| **constipated** | (英语) | **鼻塞**(英语) | 🔴 极高(仅西班牙语语境) | +| **molestar** | "molest"(骚扰) | **打扰/麻烦** | ⚠️ 高 | +| **deception** | (英语) | **欺骗** | ⚠️ 高(西班牙语中"decepción"=失望) | +| **casualmente** | "casually"(随便地) | **碰巧/偶然** | ⚠️ 中等 | +| **oportunidad** | "opportunity"(机会) | **机会**(含义相同,但西班牙语中也指"商店营业时间") | ⚠️ 低 | +| **desgraciado** | 看起来像"disgraceful" | **可怜的/可恶的**(程度比英语"disgraceful"重得多) | ⚠️ 高 | + +## More Examples + +| 西班牙语 | 英文对应词 | 西班牙语实际含义 | +|---|---|---| +| **largo** | large | **长的** | +| **grosero** | gross | **粗鲁的** | +| **excitado** | excited | **兴奋的/激动的**(英语 excited 的自然翻译,但也暗示性兴奋) | +| **fábrica** | fabric | **工厂** | +| **intoxicado** | intoxicated | **中毒的**(不仅限于酒精) | +| **lectura** | lecture | **阅读/读物** | +| **datos** | dates | **数据** | +| **dormitorio** | dormitory | **卧室** | + +## In Translation + +[[Language Translator]] Agent 的工作原则: +- 每当源语言或目标语言中出现假同源词,必须主动标注 +- 不允许字面翻译导致误解的场景发生 +- 对高风险词汇(如 embarazada)给予特别提示 + +## Prevention Strategy + +1. **Always verify**:看似相似的词必须查证实际含义 +2. **Context check**:即使知道正确含义,也要确认语境 +3. **Flag high-risk pairs**:embarazada/sensible/éxito/asistir 属于每次必标 + +## Sources +- [[language-translator]] diff --git a/wiki/concepts/FasterWhisper.md b/wiki/concepts/FasterWhisper.md new file mode 100644 index 00000000..39d5372b --- /dev/null +++ b/wiki/concepts/FasterWhisper.md @@ -0,0 +1,50 @@ +--- +title: "FasterWhisper" +type: concept +tags: ["voice-ai", "whisper", "local-llm", "ctranslate2"] +last_updated: 2026-05-02 +--- + +# FasterWhisper + +## Definition + +Faster-Whisper 是 OpenAI Whisper 的 CTranslate2 优化实现,在精度与原版相当的情况下,速度提升 2-4 倍,内存占用减少 50%+。是生产环境中本地转录的首选实现。 + +## Key Properties + +- **底层优化**:CTranslate2(自定义 CUDA/AVX kernel)替代 PyTorch 原生实现 +- **速度对比**:Whisper large-v3 在 A10G GPU 上约 2-3x 实时,Faster-Whisper 可达 8-10x 实时 +- **精度**:与原版 Whisper 几乎无差别(<0.5% WER 差异) +- **模型规模**:tiny / base / small / medium / large-v2 / large-v3 +- **关键参数**:`beam_size=5`(精度优先)、`word_timestamps=True`(字幕精度必需)、`vad_filter=True` +- **CPU 支持**:支持 CPU 推理(无 GPU 环境下的 viable 选项,速度较慢) + +## Model Size Selection Guide + +| 场景 | 推荐模型 | 硬件要求 | +|------|---------|---------| +| 实时/快速测试 | tiny / base | CPU 即可 | +| 平衡(大多数生产场景) | small / medium | GPU(RTX 3080+) | +| 最高精度(医疗/法律) | large-v3 | GPU(A10G / A100) | + +## Pipeline Role + +``` +音频预处理 → FasterWhisper.transcribe() → 带时间戳的转录段落 +``` + +## Related Concepts +- [[VoiceActivityDetection]] — 转录前的静音过滤 +- [[SpeakerDiarization]] — 转录结果与说话人标签的合并 +- [[OverlapAwareChunking]] — 长音频分块后逐块转录 +- [[EBUR128LoudnessNormalization]] — 归一化音频确保转录精度 +- [[PIIRedaction]] — 转录后的个人身份信息脱敏 +- [[StructuredTranscriptJSON]] — 转录结果的最终输出格式 + +## Related Entities +- [[OpenAIWhisper]] — Faster-Whisper 基于的基础模型 +- [[pyannote.audio]] — 说话人分离,与 Faster-Whisper 配套使用 + +## Related Sources +- [[engineering-voice-ai-integration-engineer]] diff --git a/wiki/concepts/Five-Layer-Prompt-Structure.md b/wiki/concepts/Five-Layer-Prompt-Structure.md new file mode 100644 index 00000000..e6f66510 --- /dev/null +++ b/wiki/concepts/Five-Layer-Prompt-Structure.md @@ -0,0 +1,36 @@ +--- +title: "Five-Layer Prompt Structure" +type: concept +tags: [prompt-engineering, ai-image-generation, photography] +last_updated: 2026-05-15 +--- + +## Definition + +AI 图像生成提示词的五层结构化框架,通过分层叠加确保提示词完整覆盖主体、环境、光线、摄影技术和风格美学五大维度,最大限度降低 AI 误解空间。 + +## Structure + +1. **主体描述层(Subject Description Layer)**:主要被摄对象详细描述(人物/物体/场景)、属性/表情/姿态/材质纹理、主客体关系、尺度与比例 +2. **环境设定层(Environment & Setting Layer)**:位置类型(棚拍/户外/城市/自然)、环境细节与纹理、背景处理方式、大气条件 +3. **光线规范层(Lighting Specification Layer)**:光源类型(自然光/人工光)、光方向(Rembrandt/蝴蝶光/分割光等)、光质(硬光/软光/容积光)、色温 +4. **摄影技术层(Technical Photography Layer)**:相机视角(低/平/高/鸟瞰/虫视)、焦距效果(广角畸变/长焦压缩)、景深控制(浅/深/选择性)、曝光风格(高调/低调/HDR) +5. **风格美学层(Style & Aesthetic Layer)**:摄影类型(人像/时尚/商业/纪实/艺术)、时代风格、后处理风格、参考摄影师 + +## Key Principle + +- **精确性优先**:使用具体摄影术语(如 "f/1.8 bokeh 浅景深" 而非 "背景模糊") +- **分层递进**:从主体到风格逐层构建,确保每层信息不遗漏 +- **技术-艺术平衡**:摄影技术参数与艺术方向并重 + +## Connections + +- [[Prompt-Engineering]] 的核心技术方法论 +- [[Photography-Terminology]] 的应用层框架 +- [[Midjourney]] / [[Stable-Diffusion]] / [[DALL-E]] / [[Flux]] 均适用此框架 + +## Aliases + +- Prompt Layering Framework +- Structured Prompt Framework +- 五层提示词结构 diff --git a/wiki/concepts/FiveWhys.md b/wiki/concepts/FiveWhys.md new file mode 100644 index 00000000..83cb8fae --- /dev/null +++ b/wiki/concepts/FiveWhys.md @@ -0,0 +1,76 @@ +--- +title: "Five Whys" +type: concept +tags: [root-cause-analysis, incident-management, reliability] +last_updated: 2026-05-01 +--- + +## Definition +5 问法(Five Whys)是一种迭代式根因分析技术,通过连续追问"为什么"(Why)五层(或更多),穿透表面现象,找到系统性根本原因。最初由丰田汽车的大野耐一在精益制造中提出,现广泛应用于可靠性工程和事故管理。 + +## Core Method + +从观察到的**问题(症状)**开始,连续追问"为什么",直到找到: +- 一个可采取行动的**根本原因**(root cause) +- 或一个**系统性缺口**(systemic gap) + +### 经典示例 + +> **问题**:网站宕机了。 + +| 层级 | 问法 | 回答 | +|------|------|------| +| 1 | 为什么网站宕机了? | 应用服务器无响应 | +| 2 | 为什么服务器无响应? | 数据库连接池耗尽 | +| 3 | 为什么连接池耗尽? | 一个慢查询锁住了所有连接 | +| 4 | 为什么慢查询没有被检测? | 没有查询超时限制和监控 | +| 5 | **为什么没有超时限制?** | 配置变更流程中没有强制要求 | + +> **根因**:配置变更流程缺少数据库安全门(超时限制验证) + +## Application in Incident Post-Mortem + +在 [[BlamelessPostMortem]] 中的 5 Why 使用: +1. **保持中立**:避免使用指责性语言 +2. **聚焦系统**:问"系统/流程允许了什么"而非"谁做错了" +3. **不止五层**:有时需要 6-7 层才能到达系统性根因 +4. **验证**:用 [[FaultTreeAnalysis]] 交叉验证 5 Why 结论 + +## Relationship with Fault Tree Analysis + +| 维度 | Five Whys | Fault Tree Analysis | +|------|-----------|---------------------| +| 方向 | 自下而上(症状→根因) | 自上而下(顶事件→叶事件) | +| 适用场景 | 已知单一事故 | 复杂、多因故障链 | +| 协作性 | 团队讨论式 | 结构化图形化 | +| 互补性 | 可结合使用:FTA 识别多因,5 Why 挖掘每个原因 | | + +## Key Principles + +### Do(应该做) +- 从具体可观察的事实开始 +- 每个回答都基于证据,而非假设 +- 继续追问直到找到**系统层面**的原因 +- 在团队环境中使用(多元视角更有效) + +### Don't(不应该做) +- 不停在第一个"合理"答案就停止 +- 归咎于个人("因为某人操作失误") +- 假设自动化可以解决所有问题 +- 不验证答案是否与数据一致 + +## Anti-Patterns + +| 错误 | 原因 | 修正 | +|------|------|------| +| "因为人员疏忽" | 永远指向根因,但无行动价值 | 追问:系统为什么允许疏忽发生? | +| "需要更好的监控" | 泛泛而谈,缺乏可落地性 | 具体:哪种监控,触发什么行动? | +| "因为云厂商问题" | 外部归因,无法控制 | 追问:为什么没有灾备方案? | + +## Related Concepts +- [[BlamelessPostMortem]] — 5 Why 是无责复盘的核心根因分析工具 +- [[FaultTreeAnalysis]] — 可与 5 Why 互补使用的结构化分析 +- [[DORA-Metrics]] — 量化事故影响,为复盘提供数据支撑 + +## Sources +- [[engineering-incident-response-commander]] diff --git a/wiki/concepts/Flash-Loan-Attack.md b/wiki/concepts/Flash-Loan-Attack.md new file mode 100644 index 00000000..299183f3 --- /dev/null +++ b/wiki/concepts/Flash-Loan-Attack.md @@ -0,0 +1,67 @@ +--- +title: "Flash Loan Attack(闪电贷攻击)" +type: concept +tags: [blockchain, security, defi, flash-loan, attack] +sources: [blockchain-security-auditor] +last_updated: 2026-05-30 +--- + +## Aliases +- Flash Loan Attack +- 闪电贷攻击 +- Flash Loan Exploit + +## Definition + +闪电贷攻击(Flash Loan Attack)是 DeFi 领域最具破坏力的大规模攻击手段。攻击者在**单笔交易内**借用大量资金(无需抵押),利用这些临时资金操纵市场状态、执行套利或攻击协议,然后在交易结束时归还本金。攻击成本仅为 gas 费用,风险为零。 + +## Attack Pattern + +``` +T0: 攻击合约从 Aave/Uniswap 闪电贷 100M DAI +T1: 用借来的 DAI 操纵目标协议的预言机价格 +T2: 以操纵后的价格执行有利交易(借款/清算/套利) +T3: 归还闪电贷本金 + 手续费 +T4: 剩余利润归攻击者所有 +``` + +## Common Variants + +### Oracle Manipulation via Flash Loan +- 通过闪电贷操纵 AMM 储备金,人为扭曲现货价格 +- 以虚高抵押率借贷后直接清算协议 +- Uniswap V2 现货价格最易操纵,V3 TWAP 和 Chainlink 更安全 + +### Donate-to-Reserves Attack(Euler Finance 模式) +- 通过闪电贷操纵内部账户账簿的资产净值 +- 在单笔交易内完成 donate → 触发健康度检查 → 清算套利 + +### Governance Attack via Flash Loan +- 闪电贷借入大量治理代币 +- 在快照前买入、投票、快照后卖出 +- 2022 年 Rari Capital 被此方式攻击 + +## Key Characteristics + +- **零成本**:借款无需抵押,只付 gas 费 +- **单笔交易**:所有操作必须在同一区块内完成 +- **EVM 原子性**:交易全成功或全回滚 + +## Audit Focus + +1. 在闪电贷场景下,协议状态是否可以被操纵? +2. 价格/余额/股份计算是否依赖可被操纵的输入? +3. 是否存在仅在极端条件下才成立的"不变性"? +4. 闪电贷还款前后的状态一致性是否被验证? + +## Defense + +- 使用 TWAP 而非现货价格 +- 使用 Chainlink 等抗操纵的链下预言机 +- 设置最小时间窗口(2-3 区块)后才允许清算 +- 不变性验证(Flash Loan 前后的不变性必须成立) + +## Connections +- [[Oracle Manipulation]] ← 主要载体 ← [[Flash Loan Attack]] +- [[Blockchain-Security-Auditor]] ← analyzes ← [[Flash Loan Attack]] +- [[Euler-Finance]] ← victim ← [[Flash Loan Attack]] diff --git a/wiki/concepts/FlashLoanAttack.md b/wiki/concepts/FlashLoanAttack.md new file mode 100644 index 00000000..92a756a7 --- /dev/null +++ b/wiki/concepts/FlashLoanAttack.md @@ -0,0 +1,43 @@ +--- +title: "FlashLoanAttack" +type: concept +tags: [] +last_updated: 2026-05-01 +--- + +## Definition +Flash Loan(闪电贷)是 DeFi 中的一种无抵押借贷模式,允许用户在单笔交易内借入任意数量的资产,条件是在同一交易的结尾必须归还借款 + 利息。Flash Loan Attack(闪电贷攻击)则是利用闪电贷的特性,在单笔交易中操纵价格、状态或协议逻辑来获取非法收益的攻击方式。 + +## How Flash Loans Work +```solidity +// 用户通过闪电贷借出 1000 ETH +// 在同一交易内:执行各种操作(交易、借贷、套利) +// 必须归还 1000 ETH + 手续费,否则整笔交易 revert +``` + +关键特性:**无需抵押**(因为资金在同一交易内流转),但这也意味着**协议无法在交易中途检查清算状态**。 + +## Attack Patterns + +### 1. 价格操纵(Price Manipulation) +- 在借贷协议中:先借出大量资产 → 操纵预言机价格 → 以超低抵押率借出更多资产 → 归还闪电贷 +- 案例:[[Euler Finance]](2023)、Cream Finance(多次) + +### 2. 治理攻击(Governance Attack) +- 通过闪电贷获得大量治理代币 +- 在单笔交易内发起并通过恶意提案 +- 案例:Beanstalk(2022) + +### 3. 重入攻击(通过闪电贷) +- 与 reentrancy 结合,放大攻击规模 + +## Defense Mechanisms +1. **TWAP(时间加权平均价格)预言机**:使用时间窗口内的平均价格,而非即时价格 +2. **借贷健康度实时检查**:在每笔清算操作前验证抵押率 +3. **闪电贷攻击监控**:链上监控异常大额闪电贷 + 后续清算模式 +4. **最小清算门槛**:设置合理的清算参数,防止微小偏差导致清算 + +## Sources +- [[engineering-solidity-smart-contract-engineer]] +- [[Euler-Finance]] +- [[blockchain-security-auditor]] diff --git a/wiki/concepts/Formal-Verification.md b/wiki/concepts/Formal-Verification.md new file mode 100644 index 00000000..c08551d8 --- /dev/null +++ b/wiki/concepts/Formal-Verification.md @@ -0,0 +1,53 @@ +--- +title: "Formal Verification(形式化验证)" +type: concept +tags: [blockchain, security, smart-contract, formal-verification] +sources: [blockchain-security-auditor] +last_updated: 2026-05-30 +--- + +## Aliases +- Formal Verification +- 形式化验证 + +## Definition + +形式化验证(Formal Verification)是通过数学方法严格证明智能合约关键属性正确性的技术手段。与测试只能穷举有限场景不同,形式化验证可以证明某个属性在**所有可能的输入和状态**下均成立。 + +## Core Methods + +### Invariant Specification(不变式规范) +定义协议的关键属性,用数学语言表达"协议必须始终保持的真理": +- 总份额 × 每股净值 = 总资产(份额不变性) +- 借贷后抵押率必须 ≥ 清算阈值(健康度不变性) +- 管理员无法直接提取用户资金(权限不变性) + +### Symbolic Execution(符号执行) +将合约函数参数替换为符号变量而非具体值,遍历所有可能的执行路径: +- 发现边界条件和组合触发场景 +- Certora Prover、KEVM、Mythril 使用此方法 + +### Equivalence Checking(等价性检验) +验证合约实现与形式化规范是否等价: +- 高风险升级前后必须进行 +- 防止修复一个漏洞引入另一个 + +## Key Tools + +| Tool | Method | Focus | +|------|--------|-------| +| [[Certora]] | 符号执行 | Solidity 合约属性证明 | +| [[Halmos]] | 字节码符号执行 | 字节码级别验证(不依赖源码) | +| KEVM | 形式化 EVM | EVM 操作语义形式化模型 | +| Medusa | 符号执行 | 并行化模糊测试 | + +## Relationship to Audit + +- 形式化验证是 **Slither/Mythril/Echidna 等工具的补充**,不是替代 +- 高风险协议(> $10M TVL)在审计报告中通常包含形式化验证章节 +- 形式化验证的局限性:无法验证的需求规范错误、依赖外部状态 + +## Connections +- [[Blockchain-Security-Auditor]] ← uses methodology ← [[Formal Verification]] +- [[Slither]] ← lower-level analysis ← [[Formal Verification]] +- [[Echidna]] ← property-based testing ← [[Formal Verification]] diff --git a/wiki/concepts/Frequency-Cap.md b/wiki/concepts/Frequency-Cap.md new file mode 100644 index 00000000..5e36caec --- /dev/null +++ b/wiki/concepts/Frequency-Cap.md @@ -0,0 +1,52 @@ +--- +title: "Frequency Cap" +type: concept +tags: ["frequency-cap", "display", "paid-media", "optimization", "brand-safety"] +sources: ["paid-media-programmatic-buyer"] +last_updated: 2026-04-26 +--- + +## Definition + +频次上限(Frequency Cap)是一种广告投放控制机制,限制同一用户在特定时间段内看到同一广告或广告活动的次数。其目的是在最大化品牌触达的同时,防止用户因过度曝光而产生广告疲劳(Ad Fatigue)或负面品牌联想。 + +## Why Frequency Cap Matters + +- **防止广告疲劳**:过度曝光同一创意会导致用户产生逆反心理,降低点击率和转化意愿 +- **预算效率**:避免对已转化用户重复投放浪费预算 +- **品牌保护**:过度曝光可能引发用户对品牌的负面情绪 +- **Reach vs. Frequency 平衡**:频次过高会牺牲独立触达人数 + +## Setting Frequency Caps + +### Industry Benchmarks + +| 活动类型 | 推荐频次 | 周期 | +|---------|---------|------| +| Brand Awareness(品牌认知) | 5-10 次/周 | 周 | +| Consideration(考虑阶段) | 3-7 次/周 | 周 | +| Retargeting(再营销) | 7-14 次/周 | 周 | +| DR / Performance(直接响应) | 1-3 次/天 | 天 | + +### Optimization Principles + +- **跨平台协调**:在 GDN、DSP、社交平台之间协调频次,避免总体超量 +- **Creative Rotation**:高频位置需要更多创意变体以防止疲劳 +- **Window Optimization**:根据转化路径调整归因窗口和频次窗口 +- **Audience Segmentation**:不同受众分层设置不同频次上限 + +## Frequency Pacing Models + +- **Even Pacing**:预算平均分配到活动周期,保持稳定频次 +- **Front-loaded**:前期集中投放,快速达到目标频次 +- **Decaying**:随时间递减频次,配合创意新鲜度 + +## Cross-Platform Frequency Management + +多平台同时投放时,必须通过[[Cross-Platform Reach and Frequency]]管理避免受众重叠浪费: +- 使用共同的受众识别码(Cookie、Device ID、CRM ID) +- 在投放前计算预期总频次,设定平台间协调的频次上限 +- 利用[[Audience Overlap Analysis]]识别和排除重叠受众 + +## Sources +- [[paid-media-programmatic-buyer]] diff --git a/wiki/concepts/Functionalism.md b/wiki/concepts/Functionalism.md new file mode 100644 index 00000000..39698db4 --- /dev/null +++ b/wiki/concepts/Functionalism.md @@ -0,0 +1,25 @@ +--- +title: "Functionalism" +type: concept +tags: ["anthropology", "functionalism", "malinowski", "durheim", "social-cohesion"] +last_updated: 2026-04-25 +--- + +## Definition +功能主义——文化的每个元素都服务于满足人类**基本需求**(生理、社会、安全、认同)或维持**社会凝聚力**的分析框架。 + +## Core Framework +- **基本需求满足**:生理需求→经济系统、繁殖需求→亲属制度、安全需求→法律/防御、教育需求→文化传承 +- **社会凝聚力**:宗教、仪式、道德规范通过强化集体意识(collective consciousness)维持社会团结(Durkheim) +- **文化适应**:文化实践是种群适应环境的工具(Malinowski) + +## Key Thinkers +- [[Bronislaw-Malinowski]](功能主义创始人) +- Emile Durkheim(社会凝聚力理论) +- A.R. Radcliffe-Brown(结构功能主义) + +## Connections +- [[Anthropologist-Agent]] ← uses_framework ← [[Functionalism]] +- [[Gift-Economy]] ← extends ← [[Functionalism]] +- [[Practice-Theory]] ← critiques ← [[Functionalism]] +- [[Structuralism]] ← challenges ← [[Functionalism]] diff --git a/wiki/concepts/GAAP-Compliance.md b/wiki/concepts/GAAP-Compliance.md new file mode 100644 index 00000000..67cdf695 --- /dev/null +++ b/wiki/concepts/GAAP-Compliance.md @@ -0,0 +1,52 @@ +--- +title: "GAAP Compliance" +type: concept +tags: [finance, accounting, compliance] +sources: [finance-bookkeeper-controller] +last_updated: 2026-05-02 +--- + +## Definition +GAAP(Generally Accepted Accounting Principles,通用会计准则)是一套用于编制财务报表的公认会计原则和标准。GAAP 合规确保财务信息的一致性、可比性和透明度。 + +## Core Principle +> "GAAP compliance is the baseline. Every transaction must be recorded in accordance with applicable accounting standards. No exceptions, no shortcuts." +> — Dana, Bookkeeper & Controller Agent + +## Key Standards + +### ASC 606 — Revenue Recognition +- 合同审查与识别 +- 履约义务(Performance Obligations)识别 +- 交易价格分配 +- 收入确认时点判断 +- 合同变更处理 +- 递延收入管理 + +### ASC 842 — Lease Accounting +- 租赁分类(融资租赁 vs 经营租赁) +- 使用权资产(ROU Asset)和租赁负债计算 +- 租赁变更的重新计量 +- 短期租赁豁免 + +### ASC 718 — Stock-Based Compensation +- 期权估值 +- 费用确认时点 +- 修改会计处理 + +### ASC 805 — Business Combinations +- 购买价格分配(PPA) +- 商誉计算 +- 或有对价公允价值 + +## Compliance Requirements +- 所有交易必须按适用会计准则记录 +- 前期调整必须披露 +- 重大事项必须单独确认 +- 财务报告必须附有附注说明 + +## Related Concepts +- [[Revenue Recognition ASC606]] +- [[Month-End-Close-Process]] +- [[Journal Entry]] +- [[Audit Readiness]] diff --git a/wiki/concepts/GAS.md b/wiki/concepts/GAS.md new file mode 100644 index 00000000..ff80b63c --- /dev/null +++ b/wiki/concepts/GAS.md @@ -0,0 +1,57 @@ +--- +title: "GAS (Gameplay Ability System)" +type: concept +tags: ["unreal-engine", "gameplay", "abilities", "networking"] +sources: ["unreal-multiplayer-architect", "unreal-systems-engineer"] +last_updated: 2026-05-30 +--- + +## Aliases +- Gameplay Ability System +- 游戏能力系统 +- GAS + +## 定义 +GAS 是 UE5 的模块化能力框架,提供技能、属性、效果(GameplayEffect)的标准化实现,内置网络预测和复制支持。 + +## 核心组件 + +### Ability (UGameplayAbility) +- 可激活的游戏能力(技能、攻击、法术) +- 支持本地和预测激活 + +### AttributeSet (UAttributeSet) +- 管理角色属性(生命值、魔法值、攻击力等) +- 属性自动复制 + +### GameplayEffect (UGameplayEffect) +- 属性的修改效果(buff、debuff、伤害、治疗) +- 可配置持续时间、周期、堆叠 + +### AbilitySystemComponent (UAbilitySystemComponent) +- 能力系统的核心组件 +- 管理 Ability 和 AttributeSet 的生命周期 + +## 网络预测 +GAS 内置 `FPredictionKey` 支持: +- 客户端预测能力激活 +- 服务器确认或回滚 +- 支持 `PredictionKey::NewManagedNetGUID()` + +## 双初始化路径 +```cpp +// 服务器路径 +void AMyCharacter::PossessedBy(AController* NewController) { + AbilitySystemComponent->InitAbilityActorInfo(GetPlayerState(), this); +} + +// 客户端路径 +void AMyCharacter::OnRep_PlayerState() { + AbilitySystemComponent->InitAbilityActorInfo(GetPlayerState(), this); +} +``` + +## 相关概念 +- [[Actor Replication]] — GAS 属性的复制机制 +- [[Network Prediction]] — GAS 内置的网络预测支持 +- [[Server-Authoritative Model]] — GAS 的服务器验证原则 diff --git a/wiki/concepts/GTM-Phase-Gate.md b/wiki/concepts/GTM-Phase-Gate.md new file mode 100644 index 00000000..c28abcee --- /dev/null +++ b/wiki/concepts/GTM-Phase-Gate.md @@ -0,0 +1,53 @@ +--- +title: "GTM Phase Gate" +type: concept +tags: [china, marketing, gtm, phased-launch, product-launch] +sources: [marketing-china-market-localization-strategist] +last_updated: 2026-04-30 +--- + +## Definition +GTM Phase Gate(产品上市分阶段门控模型)是 [[China Market Localization Strategist]] 提出的六阶段 P0-P5 产品上市框架,将从趋势信号验证到品牌护城河建设的完整产品生命周期分为六个递进阶段,每个阶段有明确的进入标准、交付物和退出门控。 + +## Six Phases + +| 阶段 | 名称 | 周期 | 核心任务 | +|------|------|------|---------| +| P0 | 信号验证(Signal Validation) | Week 1-2 | 趋势确认、TAM/SAM/SOM 规模测算、竞品格局 | +| P1 | 种草内容(Seed Content) | Week 3-4 | KOC 种草、内容测试、初始社区建立 | +| P2 | 渠道激活(Channel Activation) | Week 5-8 | 平台专属上市、付费投放校准 | +| P3 | 规模化(Scale) | Week 9-16 | 多平台扩张、直播电商整合、供应链就绪 | +| P4 | 优化(Optimize) | Week 17-24 | 数据驱动迭代、流失预防、私域深化 | +| P5 | 成熟运营(Mature Operations) | Week 25+ | 品牌护城河建设、忠诚度计划、品类扩张 | + +## Phase Gate Criteria(门控标准) + +每个阶段包含明确的 Go/No-Go 决策标准: + +**P0 → P1 门控**:趋势数据来自 3+ 平台、交叉验证完成、TAM/SAM/SOM 有据可查、平台选择有数据支撑 + +**P1 → P2 门控**:KOC 候选名单 ≥ 10 个、5 种内容变体完成 A/B 测试、基线互动指标记录在案、PMF 假设被验证或否定 + +**P2 → P3 门控**:广告账户开立并校准、日预算分配就绪、有机+付费内容日历发布、直播测试排期、私域漏斗可运作 + +## Go-to-Market Funnel Integration + +GTM Phase Gate 嵌入 [[China Marketing Funnel]] 的各阶段: + +- **P0** → 漏斗顶端(趋势识别) +- **P1-P2** → 漏斗中部(种草→激活) +- **P3** → 漏斗底部(转化) +- **P4-P5** → 留存与复购(私域运营) + +## Key Principles +- **资源优化**:优先适配 1-3 人小团队(一人公司模型) +- **可执行性**:每阶段交付物必须在 7 天内可执行 +- **量化决策**:每个门控决策必须有数据支撑,不可凭直觉通过 +- **闭环迭代**:[[Trend-To-Action]] 框架输出直接注入各阶段的优先级决策 + +## Relationship to Other Concepts +- [[Trend-To-Action]]:GTM Phase Gate 的数据输入层,每阶段由趋势信号触发 +- [[China Marketing Funnel]]:GTM Phase Gate 的宏观框架参照 +- [[KOC Seeding]]:P1 阶段的核心执行策略 +- [[Live Commerce]]:P3 阶段规模化转化的核心手段 +- [[私域运营]]:P4-P5 阶段留存运营的核心方法 diff --git a/wiki/concepts/Gamification-System.md b/wiki/concepts/Gamification-System.md new file mode 100644 index 00000000..93f8480d --- /dev/null +++ b/wiki/concepts/Gamification-System.md @@ -0,0 +1,50 @@ +--- +title: "Gamification System" +type: concept +tags: [gamification, engagement, achievement, user-retention] +sources: [design-whimsy-injector] +last_updated: 2026-05-15 +--- + +# Gamification System + +## Definition + +游戏化成就系统(Gamification Achievement System)通过徽章解锁、彩蛋发现、进度庆祝等机制激励用户探索和深度使用,由 [[Whimsy-Injector]] 设计实现。 + +## Core Components + +- **Achievement System(成就系统)**:定义成就类型(首次点击/彩蛋发现/任务大师),通过庆祝动画激励用户 +- **Easter Egg Discovery(彩蛋发现系统)**:Konami Code、点击序列、特定元素触发隐藏功能 +- **Progress Celebration(进度庆祝)**:任务完成、里程碑到达时的动画反馈 +- **Rainbow Mode(彩虹模式)**:彩蛋触发的全页特效 + +## Whimsy Injector 的游戏化设计原则 + +- 成就系统通过激励探索建立社区感 +- 彩蛋策略奖励用户好奇心和深入探索 +- 进度庆祝维持长期动机而非短期刺激 +- 设计确保愉悦但不造成上瘾模式 + +## Example Implementation + +```javascript +class WhimsyAchievements { + unlock(achievementId) { + // 成就解锁逻辑 + } + showCelebration(achievement) { + // 庆祝动画展示 + } +} +``` + +## Relationship to Other Concepts + +- [[Gamification]]:Gamification System 是 Gamification 理论在 Whimsy Injector 中的具体实现 +- [[Micro-Interaction-Design]]:进度庆祝动画属于微交互范畴 +- [[Inclusive-Delight-Design]]:游戏化必须遵循包容性设计原则 + +## Source + +- [[Whimsy-Injector]] — 游戏化系统设计核心来源 diff --git a/wiki/concepts/Gamification.md b/wiki/concepts/Gamification.md index 4621b3b0..1e8cf81d 100644 --- a/wiki/concepts/Gamification.md +++ b/wiki/concepts/Gamification.md @@ -1,30 +1,51 @@ ---- -title: "Gamification" -type: concept -tags: [engagement, motivation, game-design, user-retention] -last_updated: 2026-04-20 ---- - -## Definition -游戏化(Gamification)指将游戏设计元素(如积分、徽章、排行榜、成就系统、可变量奖励循环)应用于非游戏场景,以提升用户参与度和行为动机。 - -## Core Elements -- **积分/点数**:量化用户进步与贡献 -- **徽章/成就**:里程碑认可与荣誉激励 -- **排行榜**:社交比较驱动竞争 -- **可变量奖励**:类似老虎机的随机奖励机制,维持持续参与 -- **即时正强化**:每次完成行为后立即反馈 - -## Applications -- 完成任务解锁成就徽章 -- 连续打卡积分累计 -- 微任务冲刺可视化进度条 -- [[Momentum Nudge]] 中的庆祝机制 - -## Related Concepts -- [[Behavioral Psychology]]:游戏化的心理学理论基础 -- [[Default Bias]]:可与默认选项结合的游戏化设计 -- [[Cognitive Load Reduction]]:游戏化需控制认知负荷避免复杂化 - -## Source -- [[Behavioral Nudge Engine]] — 核心应用场景 +--- +title: "Gamification" +type: concept +tags: [engagement, ux, design, retention] +sources: [design-whimsy-injector, product-behavioral-nudge-engine] +last_updated: 2026-05-15 +--- + +# 游戏化(Gamification) + +## Aliases +- Gamification +- 游戏化设计 +- 成就系统 + +## 定义 + +游戏化是将游戏设计元素(如成就、徽章、进度条、排行榜、奖励机制)应用于非游戏场景的设计策略,核心目标是提升用户参与度、动机和留存率。关键区分:游戏化≠做游戏,而是借鉴游戏的激励机制来解决真实业务问题。 + +## 核心要素 + +| 要素 | 作用 | 示例 | +|------|------|------| +| 成就系统(Achievements) | 里程碑认可,激励探索 | "完成首次购买:新手礼" | +| 进度可视化 | 降低长任务的心理阻力 | 进度条、步骤指示器 | +| 反馈即时性 | 强化行为-奖励关联 | 完成动作→立即庆祝动画 | +| 排行榜(Leaderboards) | 社会认同激励 | 周活跃榜、积分排行 | +| 虚拟奖励 | 低成本高情感价值的激励 | 徽章、称号、表情 | + +## 设计原则 + +- **动机的层次**:外在动机(积分/徽章)→ 内在动机(成就感/社区归属) +- **非强迫性参与**:游戏化不应使用户感到被迫使用产品 +- **无伤害激励**:避免设计导致过度使用或成瘾的机制 +- **包容性设计**:成就系统需考虑不同能力和文化背景的用户 + +## 风险与局限 + +- **过度游戏化**:过多奖励稀释内在动机(过度理由效应) +- **竞争焦虑**:排行榜对低排名用户可能产生负面情绪 +- **文化差异**:某些奖励/惩罚机制在不同文化背景下效果迥异 + +## 应用场景 + +- [[design-whimsy-injector]] 交付了基于 JavaScript 的成就系统实现代码,包含成就解锁、庆祝动画、Konami Code 复活节彩蛋等游戏化组件 + +## 相关概念 + +- [[design-whimsy-injector]]:游戏化元素的具体实现者 +- [[Micro-Interaction]]:成就解锁的庆祝动画本身是微交互的一种 +- [[Inclusive-Delight]]:游戏化设计需避免对残障用户产生障碍 diff --git a/wiki/concepts/GapAssessment.md b/wiki/concepts/GapAssessment.md new file mode 100644 index 00000000..247d112e --- /dev/null +++ b/wiki/concepts/GapAssessment.md @@ -0,0 +1,53 @@ +--- +title: "Gap Assessment" +type: concept +tags: [] +sources: [compliance-auditor] +last_updated: 2026-04-30 +--- + +# Gap Assessment + +## Definition + +差距评估(Gap Assessment)是对照目标合规框架(如 SOC 2、ISO 27001)要求,系统性地评估组织当前安全态势与目标状态之间差距的分析过程。 + +## Core Components + +### 标准格式(ComplianceAuditor 定义) +每个差距发现必须包含: +1. **控制引用(Control Reference)**:框架中对应的控制项编号(如 CC6.1) +2. **当前状态(Current State)**:组织现有的实际状态 +3. **目标状态(Target State)**:满足控制要求的目标状态 +4. **修复步骤(Remediation)**:具体可执行的修复行动 +5. **估算工作量(Effort)**:预计完成所需时间 +6. **优先级(Priority)**:基于风险和审计时间线的优先级 + +### 评分标准 +- **Ready (100/100)**:完全满足要求 +- **Partial**:部分满足,存在差距 +- **Non-Compliant**:完全不满足要求 + +## Deliverable Format +```markdown +## Gap Assessment Report + +**Assessment Date**: YYYY-MM-DD +**Target Certification**: SOC 2 Type II +**Audit Period**: YYYY-MM-DD to YYYY-MM-DD + +## Executive Summary +- Overall readiness: X/100 +- Critical gaps: N +- Estimated time to audit-ready: N weeks + +## Findings by Control Domain +``` + +## Related Concepts +- [[SOC 2]]:主要目标框架 +- [[Continuous Compliance]]:评估完成后的持续监控机制 +- [[Evidence Collection]]:差距修复后需要收集的证据 + +## Related Sources +- [[compliance-auditor]] diff --git a/wiki/concepts/GasOptimization.md b/wiki/concepts/GasOptimization.md new file mode 100644 index 00000000..d1e87eb1 --- /dev/null +++ b/wiki/concepts/GasOptimization.md @@ -0,0 +1,69 @@ +--- +title: "GasOptimization" +type: concept +tags: [] +last_updated: 2026-05-01 +--- + +## Definition +Gas Optimization 是指在 EVM 智能合约开发中,通过技术手段降低合约执行和部署的 Gas 消耗,直接减少用户费用和以太坊网络的负担。由于每个区块的 Gas 上限固定,优化 Gas 消耗也是提高协议吞吐量的关键。 + +## Core Gas Costs (EVM) + +| 操作 | Cold Access | Warm Access | +|------|-------------|-------------| +| SLOAD(读取存储) | 2100 gas | 100 gas | +| SSTORE new(写入新槽) | 20000 gas | - | +| SSTORE update(更新槽) | 5000 gas | 2900 gas | +| CALL(外部调用) | 2600 gas + 被调函数 gas | 100 gas | +| CREATE(创建合约) | 32000 gas | - | + +## Key Patterns + +### 1. Storage Packing(存储打包) +将多个小类型打包进同一 32 字节槽,节省 SSTORE 次数: +```solidity +// ✅ Good: 2 个变量共享一个槽 +struct PackedData { + uint128 amount; // 16 bytes + uint128 id; // 16 bytes → 同槽 +} +``` + +### 2. Calldata over Memory +```solidity +// ✅ Good: calldata 只读,节省拷贝 +function processIds(uint256[] calldata ids) external pure {} + +// ❌ Bad: memory 需要拷贝到内存 +function processIds(uint256[] memory ids) external pure {} +``` + +### 3. Custom Errors over Require Strings +```solidity +// ✅ Good: 节省 ~50 gas/revert +error InsufficientBalance(uint256 requested, uint256 available); +require(balance >= amount, "Insufficient balance"); + +// ❌ Bad: 错误信息存储在字节码中 +require(balance >= amount, "Insufficient balance for this operation"); +``` + +### 4. Immutable over Constant(运行时) +```solidity +uint256 public constant MAX_SUPPLY = 1_000_000; // 编译时常量 +address public immutable owner; // 运行时只设置一次 +``` + +### 5. External over Public +- External 函数:调用时参数通过 calldata 传递 +- Public 函数:需要检查是否内部调用,参数通过 memory 传递 +- 仅被内部调用 → public;仅被外部调用 → external + +### 6. Unchecked Math(Safe Math) +```solidity +unchecked { counter++; } // 已知 counter 不会溢出 +``` + +## Sources +- [[engineering-solidity-smart-contract-engineer]] diff --git a/wiki/concepts/Generative-Engine-Optimization.md b/wiki/concepts/Generative-Engine-Optimization.md index e9b71009..435fa30b 100644 --- a/wiki/concepts/Generative-Engine-Optimization.md +++ b/wiki/concepts/Generative-Engine-Optimization.md @@ -1,46 +1,41 @@ --- -title: "Generative Engine Optimization (GEO)" +title: "Generative Engine Optimization" type: concept -tags: ["AI", "SEO", "marketing", "visibility", "generative-AI"] -last_updated: 2026-04-26 +tags: ["SEO", "AI", "marketing", "GEO"] +sources: ["marketing-ai-citation-strategist"] +last_updated: 2026-04-30 --- ## Definition -Generative Engine Optimization (GEO) 是针对生成式 AI 引擎的可见性优化策略,通过信号工程(signal engineering)提升品牌内容在 AI 生成答案中被引用的概率。GEO 是 AEO(Answer Engine Optimization)的更广泛范畴,不仅限于问答式 AI,而是覆盖所有类型的生成式 AI 引擎。 +Generative Engine Optimization(GEO,生成式引擎优化):通过改善内容信号来提升 AI 推荐引擎对品牌内容引用概率的技术实践。与 AEO(Answer Engine Optimization)密切相关,GEO 更强调生成式 AI 的整体可见性策略。 -## Core Pillars +## Relationship with AEO -1. **Authority Signals**:建立内容权威性(引用来源数量、内容深度、专家署名) -2. **Structure Signals**:使用 AI 友好的内容结构(标题层级、列表、表格、Schema) -3. **Entity Signals**:清晰的实体标注和知识图谱关联 -4. **Quantity Signals**:大量相关内容覆盖,增大被 AI 发现和引用的概率 -5. **Distinctiveness Signals**:差异化内容,避免同质化 +- **AEO**:专注于答案引擎(直接给出答案的 AI 系统,如 Perplexity)的引用优化 +- **GEO**:涵盖所有生成式 AI 场景下的可见性,包括 ChatGPT、Claude 等合成式 AI 助手 -## GEO Techniques +两者共同构成 AI 时代内容可见性的完整策略框架。 -### Quantitative Expansion -创建大量相关主题的补充内容,覆盖长尾查询,增加被 AI 引用的表面积。 +## Core Methods -### Quotable Generation -生成容易被直接引用的精炼陈述,适合作为 AI 答案中的引用来源。 +1. **Entity Optimization**:确保品牌在 AI 知识图谱中清晰可识别(Wikipedia/Wikidata/Crunchbase) +2. **Citation Pattern Engineering**:围绕用户实际输入 AI 的查询模式设计内容 +3. **Multi-Platform Strategy**:针对各平台的差异化内容适配 +4. **Benchmark-Driven Iteration**:建立引用率基准,持续测量和迭代 -### Statistical Amplification -在内容中加入数据、统计数字、研究发现——AI 倾向于引用有具体数字支撑的内容。 +## Prompt Patterns -### Technical Style Matching -研究目标 AI 平台的引用偏好,调整内容风格(ChatGPT 偏好权威性来源,Claude 偏好平衡分析,Perplexity 偏好时效性和多样性)。 - -### Source Diversity -跨多个平台和渠道发布内容,增大被不同 AI 引擎训练数据覆盖的概率。 +| Pattern | Content Type | Example Query | +|---------|-------------|---------------| +| "Best X for Y" | 对比内容 | "Best CRM for startups" | +| "X vs Y" | 专页对比 | "HubSpot vs Salesforce" | +| "How to choose X" | 买家指南 | "How to choose a project management tool" | +| "What is the difference between X and Y" | 清晰定义 | "What's the difference between SEO and AEO" | +| "Recommend a X that does Y" | 功能导向 | "Recommend a CRM with email tracking" | ## Related Concepts -- [[Answer Engine Optimization (AEO)]]:GEO 的子集,专注问答式 AI -- [[Citation Rate]]:衡量 GEO 效果的量化指标 -- [[Entity Optimization]]:GEO 的核心技术之一 -- [[Platform-Specific Patterns]]:不同 AI 引擎的引用偏好差异 - -## Sources - -- [[AI Citation Strategist]] +- [[Answer Engine Optimization]](AEO)— GEO 的子集/前身 +- [[Citation Audit Scorecard]] — GEO 效果的可量化评估工具 +- [[Prompt Pattern Engineering]] — GEO 的核心内容策略方法 diff --git a/wiki/concepts/Genre-Specific-Prompt-Patterns.md b/wiki/concepts/Genre-Specific-Prompt-Patterns.md new file mode 100644 index 00000000..7e27ed30 --- /dev/null +++ b/wiki/concepts/Genre-Specific-Prompt-Patterns.md @@ -0,0 +1,129 @@ +--- +title: "Genre-Specific Prompt Patterns" +type: concept +tags: [prompt-engineering, ai-image-generation, photography-genre] +last_updated: 2026-05-15 +--- + +## Definition + +针对不同摄影体裁(人像、产品、风光、时尚等)的专业化提示词模板,通过体裁特有的结构和参数组合,实现各类型 AI 生成图像的专业级输出。 + +## Portrait Photography Pattern + +### 模板结构 +``` +[主体描述:年龄/种族/表情/着装] | +[姿态与肢体语言] | +[背景处理方式] | +[布光设置:主光/补光/轮廓光/发丝光] | +[相机参数:焦距/光圈/视角] | +[风格:编辑/时尚/商业/艺术] | +[色彩调性与情绪] | +[参考摄影师风格] +``` + +### 典型参数 +- 焦距:85mm / 50mm(全身 35mm) +- 光圈:f/1.2–f/2.0(浅景深人像) +- 视角:eye level(平视) +- 布光:Rembrandt / Butterfly / Loop +- 景深:shallow DOF, creamy bokeh + +### 示例关键词 +- "cinematic portrait lighting", "Rembrandt triangle on cheek", "creamy bokeh background", "85mm f/1.4", "eye-level portrait" + +--- + +## Product Photography Pattern + +### 模板结构 +``` +[产品描述:材质/工艺/细节] | +[表面/背景描述] | +[布光:柔光箱位置/反光板/渐变] | +[相机:微距/标准/角度/距离] | +[拍摄类型:Hero Shot/Lifestyle/Detail/Scale Context] | +[品牌美学对齐] | +[后期处理:干净/氛围/鲜艳] +``` + +### 典型参数 +- 焦距:100mm 微距 / 90mm(产品人像) +- 光圈:f/8–f/11(整体清晰) +- 布光:Large softbox + Strip lights +- 景深:Focus stacked(全清晰) + +### 示例关键词 +- "hero shot", "softbox overhead gradient", "edge definition strip lights", "commercial advertising quality", "clean post-processing" + +--- + +## Landscape Photography Pattern + +### 模板结构 +``` +[地理位置与地质特征] | +[时间与大气条件] | +[天气与天空处理] | +[前景/中景/远景元素] | +[相机:广角/深焦/全景] | +[光质与方向] | +[色彩调性:自然/增强/戏剧性] | +[风格:纪实/艺术/空灵] +``` + +### 典型参数 +- 焦距:16–35mm(广角) +- 光圈:f/11–f/16(深景深) +- 视角:Low angle / eye level +- 景深:front-to-back sharp focus + +### 示例关键词 +- "golden hour light", "deep focus", "wide angle landscape", "dramatic sky", "foreground interest", "ND filter long exposure" + +--- + +## Fashion Photography Pattern + +### 模板结构 +``` +[模特描述与表情] | +[服装细节与造型] | +[妆发方向] | +[场地/布景设计] | +[姿态风格:编辑/商业/前卫] | +[布光:戏剧性/柔和/混合] | +[相机运动:静态/动态] | +[杂志/品牌 campaign 美学参考] +``` + +### 典型参数 +- 焦距:85mm(特写)/ 35mm(全身) +- 光圈:f/1.4–f/4.0(视构图需求) +- 视角:varied(多样化) +- 景深:selective focus + +### 示例关键词 +- "fashion editorial", "high fashion lighting", "avant-garde styling", "magazine spread aesthetic", "dramatic pose", "Haute couture" + +--- + +## Cross-Genre Principles + +1. **主体清晰**:每种体裁的核心被摄对象必须首要明确 +2. **光线匹配**:布光方式与体裁风格一致(人像用柔光,产品用可控光,时尚用戏剧光) +3. **相机参数对应体裁**:人像浅景深(f/1.4),产品深景深(f/8+),风光超深焦(f/11+) +4. **参考引导**:引用体裁内知名摄影师风格提升 AI 输出专业度 + +## Connections + +- [[Five-Layer-Prompt-Structure]] 在各体裁中的具体应用 +- [[Photography-Terminology]] 提供各体裁的专业术语 +- [[Prompt-Engineering]] 的体裁适配层 + +## Aliases + +- 体裁专属提示词模板 +- Photography Genre Templates +- Domain-Specific Prompt Patterns diff --git a/wiki/concepts/Gift-Economy.md b/wiki/concepts/Gift-Economy.md new file mode 100644 index 00000000..0e5a6a8e --- /dev/null +++ b/wiki/concepts/Gift-Economy.md @@ -0,0 +1,25 @@ +--- +title: "Gift Economy" +type: concept +tags: ["anthropology", "economy", "reciprocity", "exchange", "mauss"] +last_updated: 2026-04-25 +--- + +## Definition +礼物经济——基于**互惠义务**(reciprocal obligation)的交换系统,给予、接受、回报的三段循环是社会关系的基础纽带,而非市场竞争。 + +## Core Framework +- **礼物之灵(hau)**:接受礼物即承担回报义务,礼物具有社会性的"灵魂"使回报不可避免 +- **Potlatch**:北太平洋西北岸部落的大型仪式性财富毁坏展示,通过"给予羞辱"来确立社会地位 +- **库拉圈(Kula Ring)**:特罗布里恩群岛的跨岛礼物交换圈,交换的贝壳和项链本身无实用价值,但建立和维持社会关系网络 + +## Key Thinkers +- [[Marcel-Mauss]](《礼物》作者,奠基人) +- [[Bronislaw-Malinowski]](库拉圈研究) +- Karl Polanyi(经济人类学) + +## Connections +- [[Anthropologist-Agent]] ← uses_framework ← [[Gift-Economy]] +- [[Polanyi-Exchange]] ← foundational ← [[Gift-Economy]] +- [[Functionalism]] ← grounds ← [[Gift-Economy]] +- [[Social-Cohesion]] ← mechanism ← [[Gift-Economy]] diff --git a/wiki/concepts/Go-to-Market-Brief.md b/wiki/concepts/Go-to-Market-Brief.md new file mode 100644 index 00000000..ba4384cf --- /dev/null +++ b/wiki/concepts/Go-to-Market-Brief.md @@ -0,0 +1,36 @@ +--- +title: "Go-to-Market (GTM) Brief" +type: concept +tags: ["product-management", "launch", "gtm", "marketing"] +last_updated: 2026-04-30 +--- + +## Aliases +- GTM Brief +- Go-to-Market Plan +- 发布计划 +- 市场推广计划 + +## Definition +Go-to-Market Brief(市场推广计划)—— 在产品功能正式发布(GA)前,由产品经理主导制定的跨部门协调文档,定义目标受众、价值主张、发布渠道、团队职责和成功标准,确保工程、产品、营销、销售和客服团队在发布前完成准备工作。 + +## Core Components +1. **发布什么**(What We're Launching):一句话 + 一段描述 +2. **目标受众**(Target Audience):按细分市场划分(首要/次要/扩展),含规模、价值主张和触达渠道 +3. **核心价值主张**(Core Value Proposition):单行标语 + 按受众分组的差异化信息 +4. **发布检查清单**(Launch Checklist):按工程/产品/营销/销售 CS 分组 +5. **成功标准**(Success Criteria):按时间窗口(发布日/7天/30天/60天/90天)定义的指标表格 +6. **回滚与应急预案**(Rollback & Contingency):回滚触发条件、负责人、沟通计划 + +## Key Principles +- **发布前客服和 CS 必须完成培训** —— 正式上线前,不是上线当天 +- **先写回滚手册,再开开关** —— 在功能标志翻转前,rollback runbook 必须完成 +- **发布后头两周每日监控** —— 设定异常阈值并主动响应 + +## Usage +由 [[Product Manager Agent]] 产出,跨越工程、营销、销售、客服四个部门。GTM Brief 是 [[Product Requirements Document (PRD)]] 的下游文档——PRD 解决"做什么和为什么",GTM Brief 解决"如何发布和谁来做什么"。 + +## Related +- [[Product Requirements Document (PRD)]] — GTM Brief 的上游输入 +- [[Product Manager Agent]] — GTM Brief 的主导者 +- [[Product Roadmap (Now/Next/Later)]] — GA 阶段的Initiative来源 diff --git a/wiki/concepts/Graph-View.md b/wiki/concepts/Graph-View.md new file mode 100644 index 00000000..79eddd64 --- /dev/null +++ b/wiki/concepts/Graph-View.md @@ -0,0 +1,33 @@ +--- +title: "Graph View" +type: concept +tags: [tool, obsidian, visualization] +sources: [karpathy-最新分享-用-llm-搭建个人知识库-告别-rag-的低效循环, llm-wiki] +last_updated: 2026-04-20 +--- + +## Aliases +- Obsidian Graph View +- 图谱视图 + +## Definition +Obsidian 内置的可视化工具,将所有 Wiki 页面以节点形式展示,页面之间的双向链接关系自动连线。是 LLM Wiki 健康检查和知识结构发现的核心工具。 + +## Access +- 左侧边栏点击图谱图标 +- 快捷键:Ctrl+G(Windows)/ Cmd+G(Mac) + +## LLM Wiki Use Cases + +### 1. Lint 健康检查 +通过图谱视图**一眼看出哪些页面是孤岛**——没有任何其他页面通过双链指向它。说明交叉引用缺失,需要让 AI 补上链接。 + +### 2. 发现知识盲区 +如果某个概念被很多页面提到,但**自己没有独立页面**,它在图谱里会显示为**灰色的幽灵节点**。这提醒你应该让 AI 为它创建专页。 + +## Graph as IDE Debugger +**"Obsidian 是 IDE,LLM 是程序员,Wiki 是代码库"**——Graph View 就是 Wiki 的调试工具,帮助发现缺失的链接和页面。 + +## Connections +- [[Graph View]] ← 可视化工具 ← [[LLM Wiki]] +- [[Graph View]] ← 内置功能 → [[Obsidian]] diff --git a/wiki/concepts/Grey-Box-Blockout.md b/wiki/concepts/Grey-Box-Blockout.md new file mode 100644 index 00000000..11c4f212 --- /dev/null +++ b/wiki/concepts/Grey-Box-Blockout.md @@ -0,0 +1,69 @@ +--- +title: "Grey Box Blockout" +type: concept +tags: ["game-design", "level-design", "prototyping", "design-validation", "playtest"] +sources: ["level-designer.md"] +last_updated: 2026-05-07 +--- + +## Definition + +Grey Box Blockout(灰盒原型阶段)是关卡设计三阶段交付模式的第一阶段——使用未贴图几何体(灰盒)快速构建关卡原型,通过早期 Playtest 验证布局可读性、节奏控制和遭遇战平衡。**核心纪律:所有设计决策在灰盒阶段锁定,美术美化零例外必须先通过灰盒测试**。 + +## Three-Phase Delivery Model + +### Phase 1: Grey Box(灰盒) +- 仅用未贴图几何体(纯色方块、简单坡道)构建关卡 +- **立即 Playtest**:如果灰盒不可读,艺术美化无法修复它 +- 验证:玩家能否无需地图导航关键路径? + +### Phase 2: Dress(美术) +- 美术团队在灰盒验证后的几何体上添加材质、道具、细节 +- 美术人员必须遵守灰盒阶段锁定的布局,不得改变核心几何 + +### Phase 3: Polish(打磨) +- 特效、音效、灯光微调 +- 最终 Playtest 验证 +- 性能优化 + +## Blockout Specification Template + +每个 Room/区域需要记录: + +```markdown +## Room: [ID] — [Name] + +**Dimensions**: ~[W]m × [D]m × [H]m +**Primary Function**: Combat / Traversal / Story / Reward + +**Cover Objects**: +- 2× low cover (waist height) — center cluster +- 1× destructible pillar — left flank +- 1× elevated position — rear right (accessible via crate stack) + +**Lighting**: +- Primary: warm directional from [direction] — guides eye toward exit +- Secondary: cool fill from windows — contrast for readability +- Accent: flickering [color] on objective marker + +**Entry/Exit**: +- Entry: [Door type, visibility on entry] +- Exit: [Visible from entry? Y/N — if N, why?] + +**Environmental Story Beat**: +[What does this room's prop placement tell the player about the world?] +``` + +## Key Metrics + +- 灰盒阶段关键路径可读性:100% 测试玩家无需询问方向即可导航 +- 灰盒阶段遭遇战:每个战斗至少 2 种可行战术路径在灰盒中验证 +- 灰盒阶段节奏:Pacing Chart 与实际测试时间偏差 < 20% + +## Connections + +- [[Level Designer]] 执行 Grey Box Blockout 作为六阶段工作流的核心步骤 +- [[Navigation Affordance]] 在灰盒阶段验证关键路径视觉可读性 +- [[Encounter Design]] 在灰盒阶段单独测试每个遭遇战 +- [[Technical Artist]] 在灰盒阶段完成时接收 Art Pass Handoff 文档 +- [[Pacing Chart]] 在灰盒阶段通过 Playtest 验证时间偏差 < 20% diff --git a/wiki/concepts/Groupthink.md b/wiki/concepts/Groupthink.md new file mode 100644 index 00000000..c83d0cae --- /dev/null +++ b/wiki/concepts/Groupthink.md @@ -0,0 +1,39 @@ +--- +title: "Groupthink" +type: concept +tags: [] +sources: [academic-psychologist] +last_updated: 2026-04-25 +--- + +# Groupthink + +## Aliases +- Groupthink (Janis) +- Collective Thinking Defects + +## Definition +Janis 群体思维——高凝聚力群体在追求一致性的压力下,进行非理性决策的心理现象,导致批判性思维和替代方案评估能力的丧失。 + +## Symptoms (Janis's 8 Symptoms) + +1. **Illusion of Invulnerability**(无懈可击的错觉):群体过度自信 +2. **Collective Rationalization**(集体合理化):忽视警告,自我合理化 +3. **Belief in Inherent Morality**(固有道德信念):相信自身动机正确 +4. **Pressure on Dissenters**(对异议者施压):压制不同意见 +5. **Self-Censorship**(自我审查):成员隐藏真实想法 +6. **Illusion of Unanimity**(一致性的错觉**:沉默被视为同意 +7. **Mindguards**(心理卫兵):有人阻止异议者发言 +8. **Direct Mind Guarding**(直接的心理防护):领导公开压制异议 + +## Remedies +- 群体领导者应保持中立 +- 鼓励批评性评估 +- 分小组独立讨论后汇总 +- 邀请外部专家参与 + +## Application in Character Design +Psychologist Agent 使用此框架分析群体决策场景,识别群体动态如何导致非理性行为(如暴民心理、去个性化)。 + +## Connection to Wiki +- Source: [[academic-psychologist]] diff --git a/wiki/concepts/Guest-Journey.md b/wiki/concepts/Guest-Journey.md new file mode 100644 index 00000000..06a4ad39 --- /dev/null +++ b/wiki/concepts/Guest-Journey.md @@ -0,0 +1,98 @@ +--- +title: "Guest Journey" +type: concept +tags: [] +sources: + - hospitality-guest-services +last_updated: 2026-05-02 +--- + +## Definition +Guest Journey(宾客旅程)是宾客从首次接触品牌到退房后持续互动全过程的阶段模型。每个阶段都有独特的宾客需求、预期和关键时刻(Moment of Truth),宾客服务必须针对每一阶段进行精心设计。 + +## Full Guest Journey Stages + +### 1. Reservations(预订) +**核心任务**:确认所有信息准确,特殊需求已记录,特殊场合已标记 +- 预订、修改、取消、团队预订 +- 识别特殊场合(生日/周年纪念/蜜月/VIP) +- 升级机会评估 + +**关键指标**:预订完成率、修改/取消率 + +### 2. Pre-Arrival(预到达) +**核心任务**:入住前48小时的个性化触达,提前解决问题,创造期待感 +- 发送预到达邮件/消息 +- 确认特殊请求 +- 在线值机+数字钥匙引导 +- 提前识别升级机会 + +**关键指标**:预到达消息打开率、在线值机完成率 + +### 3. Check-In(入住) +**核心任务**:30秒内问候、忠诚身份识别、房间分配与特色介绍 +- 30秒内问候(by name if known) +- 每次入住都认可忠诚会员身份 +- 确认并超越特殊请求 +- 分配最佳可用房间(有升级则主动提供) +- 简洁实用的设施介绍 + +**关键时刻**:首次问候、房间介绍、退房时 + +### 4. In-Stay(住店期间) +**核心任务**:满足需求、主动推荐、即时处理投诉 +- 礼宾服务(餐饮预订、本地推荐、交通安排) +- 投诉渠道监测(当面/电话/App/OTA消息) +- 投诉立即处理(见 [[HEARD Method]]) +- 多晚入住宾客入住第二天主动致电/消息关怀 +- 特殊场合惊喜安排 + +**关键时刻**:礼宾请求完成、投诉解决 + +### 5. Complaint Resolution(投诉处理) +**核心任务**:见 [[Service Recovery Protocol]] +- 立即倾听,不打断 +- 真诚共情,诚挚道歉 +- 即时解决 +- 超越期望补偿 +- 主动跟进 + +### 6. Check-Out(退房) +**核心任务**:温暖告别、账单审核、积分确认、离店反馈 +- 姓名问候,温暖送别 +- 主动审核账单,解决疑问 +- 确认忠诚积分到账时间 +- 退房前收集反馈 +- 邀请再次光临 + +**关键时刻**:退房问候、账单确认 + +### 7. Post-Stay(售后) +**核心任务**:感谢、请求点评、监测平台、处理差评 +- 24小时内感谢邮件+调查链接 +- 监测 OTA 平台(TripAdvisor/Booking.com/Google) +- 48小时内响应所有点评 +- 差评私下跟进,争取修改评分 +- 流失宾客赢回沟通 + +**关键指标**:调查回复率、在线评分变化、赢回率 + +### 8. Events & Groups(活动与团队) +跨阶段并行存在,为会议/婚礼/团队活动提供专项服务 +- 活动协调 +- F&B 规划 +- AV 要求 +- 团队账单管理 + +## Connections +- [[Hospitality Guest Services]] ← Guest Journey 是宾客服务 Agent 的核心操作框架 +- [[HEARD Method]] ← 贯穿投诉处理阶段的处理框架 +- [[Service Recovery Protocol]] ← 住店阶段服务失误的恢复流程 +- [[Loyalty Program Management]] ← 贯穿全旅程的会员识别和奖励 +- [[Review Management]] ← 退房和售后阶段的口碑管理 + +## Aliases +- 宾客旅程 +- Customer Journey +- Guest Experience Journey +- Guest Lifecycle diff --git a/wiki/concepts/HDRP.md b/wiki/concepts/HDRP.md new file mode 100644 index 00000000..78e6b5bc --- /dev/null +++ b/wiki/concepts/HDRP.md @@ -0,0 +1,67 @@ +--- +title: "HDRP (High Definition Render Pipeline)" +type: concept +tags: [game-dev, rendering, unity, pipeline] +sources: [unity-shader-graph-artist] +last_updated: 2026-05-01 +--- + +## Aliases +- High Definition Render Pipeline +- HDRP +- HD Render Pipeline + +## Definition + +HDRP(High Definition Render Pipeline,高清渲染管线)是 Unity 的高端渲染管线,专为 PC 和 Console(PlayStation、Xbox)的高视觉质量项目设计。HDRP 提供物理光照模型、光线追踪支持、体积雾、屏幕空间环境遮蔽等 AAA 级渲染特性。相比 URP,HDRP 的渲染质量更高,但不支持移动端,且自定义通道 API 与 URP 不兼容。 + +## Core Architecture + +### CustomPass 系统 +HDRP 自定义通道的核心扩展点: + +```csharp +// HDRP 必须使用 CustomPassVolume + CustomPass +// 与 URP 的 ScriptableRendererFeature API 不兼容 +public class MyCustomPass : CustomPass +{ + protected override void Execute(ScriptableRenderContext context, CommandBuffer cmd, PassData passData, + ref RenderingData renderingData) + { /* HDRP 自定义渲染逻辑 */ } +} +``` + +### 关键约束 +- **禁止使用** `OnRenderImage`(Built-in only) +- **禁止使用** URP 的 `ScriptableRendererFeature`(API 不兼容) +- HDRP 不支持移动端部署 +- Shader Graph 必须设置正确的 HDRP Render Pipeline Asset +- HDRP 图形无法直接在 URP 中工作,需要反向 Porting + +### 与 URP 的核心区别 + +| 特性 | HDRP | URP | +|------|------|-----| +| 目标平台 | PC/Console(高端) | PC/Console/Mobile/VR | +| 渲染质量 | 极高(光线追踪/物理光照) | 中等-高 | +| 自定义通道 API | `CustomPassVolume` | `ScriptableRendererFeature` | +| API 兼容性 | **不兼容** URP | **不兼容** HDRP | +| 移动端支持 | ❌ 不支持 | ✅ 支持 | + +## Shader Graph in HDRP + +- Shader Graph 支持 HDRP 的物理光照模型(Lit Shader) +- Substrate 多层材质(UE5.3+ 替代 SSS workaround) +- 必须使用 Sub-Graph 封装可复用逻辑 +- HDRP 的 Shader Graph 资产需要显式 Porting 才能在 URP 项目中使用 + +## Performance + +HDRP 主要面向 PC/Console 平台,移动端不是其目标场景。但仍建议在 Frame Debugger 中审计每个 Shader 的实际 GPU 开销。 + +## Connections +- [[Shader]] ← 渲染目标 ← HDRP +- [[UnityShaderGraphArtist]] ← 专精 ← HDRP +- [[URP]] ← 互补管线 ← HDRP(不兼容) +- [[CustomPass]] ← 核心 API ← HDRP +- [[CustomPassVolume]] ← 扩展机制 ← HDRP diff --git a/wiki/concepts/HEARD-Method.md b/wiki/concepts/HEARD-Method.md new file mode 100644 index 00000000..10d23119 --- /dev/null +++ b/wiki/concepts/HEARD-Method.md @@ -0,0 +1,40 @@ +--- +title: "HEARD Method" +type: concept +tags: [] +sources: + - hospitality-guest-services +last_updated: 2026-05-02 +--- + +## Definition +HEARD Method 是酒店及综合款待业投诉处理的标准五步框架,用于将愤怒的宾客体验转化为五星好评机会。五个步骤首字母缩写为 HEARD: + +- **H — Hear**:完整倾听宾客,不打断 +- **E — Empathize**:真诚共情,"我完全理解您为什么感到沮丧" +- **A — Apologize**:诚挚道歉,承认具体问题而非泛泛的"不便" +- **R — Resolve**:即时解决,在问题发生地立即采取行动 +- **D — Delight**:超越期望的补偿,超出宾客预期 + +## Core Principles +- **Every complaint is a gift**:愿意投诉的宾客说明仍相信你能补救;不投诉直接离开的宾客永远流失 +- **延迟响应翻倍负面 impact**:服务失误必须立即处理,不可在退房时或次日才响应 +- **具体道歉优于通用道歉**:永远不要用"I apologize for any inconvenience"这类空洞表达 + +## Severity-Based Recovery Actions +| 等级 | 场景 | 补偿方案示例 | +|------|------|-------------| +| 🟢 Minor | 轻微不便 | 真诚道歉 + 小礼物(水果/甜点/积分) | +| 🟡 Moderate | 服务失误 | 道歉 + 房间 amenity + 积分/折扣 | +| 🔴 Major | 严重失误 | 道歉 + 重大补偿 + 经理跟进 | +| 🚨 Severe | 安全/紧急 | 道歉 + 免费房晚 + 总经理联系方式 | + +## Connections +- [[Service Recovery Protocol]] ← 应用 HEARD Method 的标准化投诉处理流程 +- [[Hospitality Guest Services]] ← HEARD Method 是宾客服务 Agent 的核心技能之一 +- [[Review Management]] ← HEARD 有效执行可将差评转化为好评 + +## Aliases +- HEARD Complaint Resolution +- HEARD Service Recovery +- 五步投诉处理法 diff --git a/wiki/concepts/HTTP-ChatCompletions.md b/wiki/concepts/HTTP-ChatCompletions.md new file mode 100644 index 00000000..7518e591 --- /dev/null +++ b/wiki/concepts/HTTP-ChatCompletions.md @@ -0,0 +1,44 @@ +--- +title: "HTTP-ChatCompletions" +type: concept +tags: [] +--- + +## Definition +HTTP-ChatCompletions 是通过 HTTP 协议调用 AI 模型 Chat Completions 接口的模式,是 [[OpenAI-Compatible-API]] 的底层传输机制。 + +## Architecture +``` +Client (n8n HTTP Request) + │ + ▼ +POST /v1/chat/completions +Content-Type: application/json +Authorization: Bearer + │ + ▼ +{ + "model": "openclaw:main", + "messages": [...] +} + │ + ▼ +AI Gateway (OpenClaw Gateway) + │ + ▼ +Agent Response +``` + +## Key Fields +- `model`:指定要调用的 Agent ID +- `messages`:对话历史,格式为 `[{role, content}]` +- `Authorization`:Bearer Token 认证 + +## 与 WebSocket 的区别 +- HTTP:同步请求-响应,适合 n8n 等工作流工具 +- WebSocket:长连接双向通信,适合实时对话界面 + +## Related +- [[OpenAI-Compatible-API]] 依赖此机制 +- [[OpenClaw]] Gateway 提供此端点 +- [[n8n]] 通过 HTTP Request 节点调用 diff --git a/wiki/concepts/Habit-Formation.md b/wiki/concepts/Habit-Formation.md new file mode 100644 index 00000000..0584773a --- /dev/null +++ b/wiki/concepts/Habit-Formation.md @@ -0,0 +1,49 @@ +--- +title: "Habit Formation" +type: concept +tags: [] +sources: ["product-behavioral-nudge-engine", "habit-tracker-accountability-coach"] +last_updated: 2026-05-01 +--- + +## Definition + +Habit Formation(习惯养成)是行为心理学研究的核心领域,通过在特定情境中重复低摩擦的行为动作,结合即时奖励,逐步将行为转化为自动化习惯,无需意志力驱动即可持续执行。 + +## The Habit Loop + +每个习惯由三部分组成的循环: + +1. **Cue(触发)**:情境线索(时间、地点、情绪状态) +2. **Routine(行为)**:对触发的具体反应 +3. **Reward(奖励)**:行为带来的正向反馈 + +> **关键洞察**:习惯无法被消除,只能被替换——通过保留相同的 Cue 和 Reward,改变中间的 Routine。 + +## Key Principles + +- **Friction Reduction**:行为越容易执行,越容易形成习惯 +- **Consistency Over Intensity**:每天小幅执行优于偶尔高强度执行 +- **Identity Reinforcement**:将行为与自我认同绑定(「我是每天运动的人」) +- **Streak Preservation**:连续记录是维持动力的重要机制 +- **Micro-Wins**:通过庆祝微小成功建立正向强化 + +## Connection to [[Behavioral Nudge Engine]] + +Behavioral Nudge Engine 专门应用习惯养成原理于软件交互设计: +- 通过 [[Micro-Sprint]] 将大任务分解为微行为,降低初始摩擦 +- 通过即时庆祝([[Gamification]])提供 [[Cognitive Load Reduction]] 后的正向奖励 +- 通过 [[Nudge Sequence]] 在关键时间点触发行为提示 + +## Related Concepts + +- [[Gamification]] — 即时奖励机制是习惯养成的核心 +- [[Cognitive Load Reduction]] — 低摩擦是习惯形成的前提 +- [[Micro-Sprint]] — 将大目标拆解为可习惯化的微行为 +- [[Default Bias]] — 预设动作减少习惯养成的启动阻力 + +## Connections + +- [[Habit Tracker & Accountability Coach]] — 专门负责习惯追踪与问责的 Agent +- [[Behavioral Nudge Engine]] — 行为心理学的应用引擎 +- [[Product Manager Agent]] — 产品设计中嵌入习惯养成机制 diff --git a/wiki/concepts/Handoff-Boundary.md b/wiki/concepts/Handoff-Boundary.md new file mode 100644 index 00000000..ec11c841 --- /dev/null +++ b/wiki/concepts/Handoff-Boundary.md @@ -0,0 +1,44 @@ +--- +title: "Handoff Boundary" +type: concept +tags: [multi-agent, coordination, failure-point, nexus] +sources: [executive-brief] +last_updated: 2026-05-01 +aliases: + - Agent Boundary + - Coordination Interface + -交接边界 +--- + +## Definition + +交接边界(Handoff Boundary)—— 多 Agent 工作流中从一个 Agent 的交付物传递到下一个 Agent 的接口点,也是协调失败最频繁发生的位置。 + +## The 73% Failure Rate Problem + +**关键数据**:多 Agent 项目在缺乏结构化协调协议时,交接边界处的失败率达 **73%**。 + +这使得交接边界成为多 Agent 协调中**最高杠杆的干预点**——改善交接协议带来的收益远大于优化单个 Agent 能力。 + +## Failure Modes at Handoff Boundaries + +1. **上下文截断**:关键决策和中间产物在交接时丢失 +2. **重复劳动**:下一 Agent 重新执行上一 Agent 已完成的工作 +3. **缺陷传递**:上游 Agent 的问题未被检测,直接传递给下游 +4. **质量断崖**:上游 Agent 的质量标准与下游不一致 +5. **时间浪费**:交接等待导致流程阻塞 + +## Highest-Leverage Interventions + +根据 Executive Brief 的战略发现,以下是针对交接边界的最高杠杆干预: + +1. **标准化交接模板**(见 Handoff Templates):强制包含交付物清单 + 上下文摘要 + 下一步指令 + 质量证据 +2. **上下文连续性协议**:确保决策历史和中间产物在交接时完整传递(MCP Memory) +3. **质量证据传递**:上游 Agent 必须提供可验证的质量证据,而非口头声明 + +## Related Concepts + +- [[Agent Handoff]]:在交接边界执行的标准化上下文传递协议 +- [[Evidence Over Claims]]:交接边界处的质量标准,防止缺陷传递 +- [[Quality Gate]]:交接边界处的强制质量检查点 +- [[Dev↔QA Loop]]:交接边界内的持续质量验证机制 diff --git a/wiki/concepts/Harness-Engineering.md b/wiki/concepts/Harness-Engineering.md new file mode 100644 index 00000000..91d5655f --- /dev/null +++ b/wiki/concepts/Harness-Engineering.md @@ -0,0 +1,49 @@ +--- +title: "Harness Engineering" +type: concept +tags: + - "harness-engineering" + - "agentic-ai" + - "system-design" +sources: + - "Your-AI-Isn-t-Stupid---It-Just-Needs-a-Better-Harness--Lychee-Technology-Engineering-Blog" +last_updated: 2026-04-20 +--- + +## Overview +Harness Engineering——为 LLM 设计系统脚手架的工程学科,使 AI Agent 能在长周期自主任务中可靠执行。核心理念:**LLM 本身不是 Agent,Agent = LLM + 代码脚手架**。 + +## Evolution of AI Engineering + +| Era | Focus | Limitation | +|-----|-------|------------| +| Prompt Engineering | 如何问(Instructions) | 脆弱,步骤间无持久性 | +| Context Engineering | 如何知道(RAG) | 无状态,无法控制长周期执行 | +| **Harness Engineering** | 如何约束和运行 | 解决连续多步执行控制 | + +每个时代并非替代前一个,而是**吸收**前一个——Harness Engineering 仍需要好的提示词和好的上下文,但它增加了前两者都无法提供的执行层。 + +## 4 Design Principles + +### 1. 约束而非指令(Constrain, don't instruct) +永远不要依赖模型"选择正确"——如果可以用程序化方式限制选择,就这样做。 +- 提示词说"永远用有效 JSON 响应" = **希望** +- Schema 验证器拒绝格式错误输出 = **保证** + +### 2. 外部化状态(Externalize state) +如果一条信息对任务连续性重要(已完成什么、待处理什么、什么失败了),它必须存在于 context window 之外。 +- Context window 是易失的 +- 磁盘文件是持久的 + +### 3. 每步可验证(Make every step verifiable) +如果你无法检查它,你就无法信任它。Harness 的每一层都应产生可被模型自身以外的东西验证的输出。 + +### 4. 局部失败而非全局崩溃(Fail locally, not globally) +单步工具调用失败应触发该步重试,而非重启整个管道。任何失败的爆炸半径应尽可能小。 + +## Implementation +- [[7-Layer-Harness-Stack]]:完整 7 层实现规范 +- [[Minimum-Viable-Harness]]:Day 1 可构建的最小可行版本 + +## Source +- [[Your-AI-Isn-t-Stupid---It-Just-Needs-a-Better-Harness--Lychee-Technology-Engineering-Blog]] diff --git a/wiki/concepts/HeroesJourney.md b/wiki/concepts/HeroesJourney.md new file mode 100644 index 00000000..639a9b02 --- /dev/null +++ b/wiki/concepts/HeroesJourney.md @@ -0,0 +1,36 @@ +--- +title: "Hero's Journey" +type: concept +tags: [] +sources: [] +last_updated: 2026-04-30 +--- + +## Aliases +- Hero's Journey +- Monomyth +- Campbell's Monomyth +- 英雄之旅 + +## Overview +Hero's Journey(Monomyth / 英雄之旅)是由 [[Joseph Campbell]] 在其著作《千面英雄》(1949)中系统提出的跨文化神话叙事结构。该理论主张:全球文化的神话故事遵循一个共同的深层叙事结构——英雄离开日常世界 → 进入超自然领域 → 经历考验并获得力量 → 带着成功归来。 + +## Structure(简化版) + +### 三阶段 +1. **Departure(启程)**:Ordinary World → Call to Adventure → Refusal of the Call → Meeting the Mentor → Crossing the First Threshold +2. **Initiation(启蒙)**:Tests, Allies and Enemies → Approach to the Inmost Cave → Ordeal → Reward +3. **Return(回归)**:The Road Back → Resurrection → Return with the Elixir + +### 核心隐喻 +- **The Belly of the Whale**:最深的转变时刻,英雄几乎被吞噬 +- **The Elixir**:归来时携带的智慧或宝藏 + +## Application +- [[Christopher Vogler]] 的 Writer's Journey 是 Hero's Journey 的编剧改编版 +- 皮克斯几乎所有电影(《玩具总动员》《寻梦环游记》等)都遵循此结构 +- [[Academic Narratologist]] 将其作为英雄叙事分析的核心框架 + +## Relationship to Other Concepts +- [[Three-Act-Structure]]:Hero's Journey 是三幕式的叙事内容层,三幕式是组织层 +- [[Character-Arc]]:Hero's Journey 中的 transformation 对应角色的 want/need/lie/transformation 弧线 diff --git a/wiki/concepts/HierarchicalLOD.md b/wiki/concepts/HierarchicalLOD.md new file mode 100644 index 00000000..e096dd0d --- /dev/null +++ b/wiki/concepts/HierarchicalLOD.md @@ -0,0 +1,57 @@ +--- +title: "HierarchicalLOD" +type: concept +tags: ["unreal-engine", "lod", "optimization", "rendering"] +sources: ["unreal-world-builder"] +last_updated: 2026-04-30 +--- + +## Aliases +- HLOD +- Hierarchical Level of Detail +- 层级 LOD +- HLOD System + +## Definition +HLOD(Hierarchical Level of Detail,层级 LOD)是 Unreal Engine 5 中将远处多个 Actor 合并为少量网格的系统,消除远处的 Actor 数量爆炸和几何 pop-in,显著降低 Draw Calls 和渲染开销。 + +## Core Rules +- **强制构建**:所有 500m 以外可见区域必须生成 HLOD,未构建 HLOD 会导致远处 Actor 数量爆炸 +- **生成而非手绘**:HLOD 网格由引擎自动生成,任何几何变更后必须重新构建 +- **Mesh Merge 方法**:最快构建速度,对 > 500m 距离可接受质量 +- **目标参数**:LOD Screen Size ≤ 0.01,Draw Distance ≥ 50,000cm(500m) +- **材质烘焙**:启用,1024×1024 烘焙纹理 + +## Actor Type Handling +| Actor 类型 | HLOD 处理 | +|-----------|----------| +| StaticMeshActor | 包含在 HLOD 合并 | +| Nanite 启用网格 | **排除**(Nanite 自身处理 LOD) | +| Skeletal Mesh | **不支持**(不合并) | + +## Build Settings +- **Merge Distance**:50cm(焊接附近几何) +- **Hard Angle Threshold**:80°(保留锐边) +- **Target Triangle Count**:每 HLOD 网格 5000 三角形 + +## Visual Validation +必须在以下相机距离进行目视验证: +- 600m +- 1000m +- 2000m + +HLOD 瑕疵靠视觉捕获,而非 Profiler。 + +## Rebuild Triggers +任何以下变更必须触发 HLOD 重建: +- 几何添加或移除 +- 材质变更 +- Actor 变换 + +## Connections +- [[UnrealWorldBuilder]] ← 远距离优化 ← HierarchicalLOD +- [[UnrealEngine5]] ← 核心引擎 ← HierarchicalLOD +- [[Nanite]] ← 互补(处理 Nanite 资产)← HierarchicalLOD + +## Sources +- [[unreal-world-builder]] diff --git a/wiki/concepts/Historiography.md b/wiki/concepts/Historiography.md new file mode 100644 index 00000000..8a33d5f7 --- /dev/null +++ b/wiki/concepts/Historiography.md @@ -0,0 +1,35 @@ +--- +title: "Historiography" +type: concept +tags: [historiography, methodology] +sources: [academic-historian] +last_updated: 2026-04-30 +--- + +## Definition +历史编纂学(Historiography)是对历史叙事本身的研究——研究历史如何被记录、构建、争论和演变的学科。Historiography 既关注具体的历史研究成果,也关注这些成果背后的认识论、方法论和政治性前提。 + +## Key Features +- **核心问题**:历史知识是如何生产的?谁的视角被记录?谁的被忽略? +- **研究对象**:史料选择、历史叙事结构、史学流派演变、历史争议的根源 +- **核心议题**: + - 史料的可靠性与偏见(谁书写,谁沉默?) + - 史学流派更替(启蒙史学 → 浪漫主义史学 → 实证主义 → 年鉴学派 → 后现代史学) + - 历史叙事的政治性(历史书写服务于现实政治利益) + - 档案的构建(档案本身是权力工具,非中性存储) +- **重要性**:Historian Agent 理解"历史叙事本身是被建构和争夺的对象",这是反历史神话和欧洲中心主义的基础 + +## Relationship to Other Concepts +- [[Annales-School]] ← 重要流派 ← [[Historiography]]:年鉴学派是对传统实证主义史学的重要突破 +- [[Microhistory]] ← 属于 ← [[Historiography]]:微观史是历史编纂学中的重要流派 +- [[Longue-Duree]] ← 属于 ← [[Historiography]]:长时段分析反映特定史学认识论 +- [[academic-historian]] ← 方法论核心 ← [[Historiography]]:Historian Agent 的五步工作流本质上是 historiographical 方法论 + +## Relationship to Source Pages +- [[academic-historian]]:Historian Agent 接受过 historiography 训练,能够理解并参与学术争议 + +## Aliases +- 历史编纂 +- 史学 +- 元历史 +- Metahistory diff --git a/wiki/concepts/Hosmer-Lemeshow-Test.md b/wiki/concepts/Hosmer-Lemeshow-Test.md index 1a124ba7..6ae35598 100644 --- a/wiki/concepts/Hosmer-Lemeshow-Test.md +++ b/wiki/concepts/Hosmer-Lemeshow-Test.md @@ -1,91 +1,93 @@ ---- -title: "Hosmer-Lemeshow Test" -type: concept -tags: [model-evaluation, calibration-testing, goodness-of-fit] -last_updated: 2026-04-25 ---- - -## Definition - -Hosmer-Lemeshow(HL)检验是一种评估二分类模型预测概率校准程度的拟合优度检验,通过比较预测概率分箱后的观测正例数与期望正例数,判断模型预测与实际结果之间是否存在显著差异。p-value < 0.05 时拒绝原假设(模型校准良好),认为模型存在显著的校准偏差。 - -## Algorithm - -1. 将样本按预测概率从小到大分箱(默认 10 箱,或自定义 g 组) -2. 对每箱计算: - - **观测正例数** $O_g = \sum_{i \in \text{group } g} y_i$ - - **期望正例数** $E_g = \sum_{i \in \text{group } g} \hat{p}_i$ - - **样本数** $n_g$ -3. 计算 HL 统计量: - -$$H = \sum_{g=1}^{G} \frac{(O_g - E_g)^2}{E_g (1 - E_g / n_g)}$$ - -4. 自由度 $df = G - 2$(减去截距和斜率估计参数) -5. 与 $\chi^2(df)$ 分布比较,$p = 1 - F_{H}(H)$ - -## Interpretation - -```python -from scipy.stats import chi2 - -def hosmer_lemshow_test(y_true: pd.Series, y_pred: pd.Series, groups: int = 10) -> dict: - data = pd.DataFrame({"y": y_true, "p": y_pred}) - data["bucket"] = pd.qcut(data["p"], groups, duplicates="drop") - - agg = data.groupby("bucket", observed=True).agg( - n=("y", "count"), - observed=("y", "sum"), - expected=("p", "sum"), - ) - - hl_stat = ( - ((agg["observed"] - agg["expected"])**2) / - (agg["expected"] * (1 - agg["expected"] / agg["n"])) - ).sum() - - dof = len(agg) - 2 - p_value = 1 - chi2.cdf(hl_stat, dof) - - return { - "HL_statistic": round(hl_stat, 4), - "p_value": round(p_value, 6), - "calibrated": p_value >= 0.05, # True = well calibrated - "dof": dof, - "groups_used": len(agg), - } -``` - -| p-value | 判读 | -|---------|------| -| ≥ 0.05 | 🟢 模型校准良好,无显著证据表明预测概率偏离实际频率 | -| < 0.05 | 🔴 拒绝原假设,模型存在显著校准偏差 | - -## Limitations - -1. **分组方式敏感**:不同分箱数量/方法导致不同结果,10 等分是惯例但非最优 -2. **样本量敏感**:大样本下即使微小偏差也能导致显著 p-value(实际影响可能很小) -3. **掩盖子群体问题**:整体通过 HL 检验不等于所有子群体都校准良好 -4. **序贯分组问题**:qcut 在重复值多时可能合并箱子,需检查 `groups_used` - -## Alternatives - -- **Brier Score**:无需分组,对样本量稳健,但只能给出误差量级而非定位 -- **Spiegelhalter's Z-test**:基于 Brier Score 的统计检验 -- **Reliability Curves**:可视化诊断,比 HL 检验提供更多信息 -- **Expected Calibration Error (ECE)**:量化平均校准误差,解释性更强 - -## Model QA 中的应用 - -Model QA Specialist 将 HL 检验用于: -1. **模型上线前验证**:新模型上线必须通过 HL 检验(p ≥ 0.05) -2. **定期监控**:在 OOT 窗口上重复执行,监控校准随时间恶化趋势 -3. **子群体分层测试**:在关键子群体(高风险/低风险/新客户)上分别执行 -4. **Champion-Challenger**:对比 champion model vs challenger model 的 HL 结果 - -## Relationship - -- **被依赖** [[Calibration-Testing]]:HL 检验是 Calibration Testing 的核心统计工具之一 -- **依赖** [[Discrimination-Metrics]]:先确认模型有区分能力(AUC/Gini 达标),再讨论校准 -- **依赖** [[Population-Stability-Index]]:PSI 漂移往往是 HL 检验失败的前兆 -- **依赖** [[SHAP]]:HL 检验发现校准问题后,用 SHAP waterfall 诊断具体原因 -- **支撑** [[specialized-model-qa]](Source):Model QA Specialist 校准测试步骤的核心工具 +--- +title: "Hosmer-Lemeshow Test" +type: concept +tags: [model-evaluation, calibration-testing, goodness-of-fit] +sources: + - specialized-model-qa +last_updated: 2026-05-29 +--- + +## Definition + +Hosmer-Lemeshow(HL)检验是一种评估二分类模型预测概率校准程度的拟合优度检验,通过比较预测概率分箱后的观测正例数与期望正例数,判断模型预测与实际结果之间是否存在显著差异。p-value < 0.05 时拒绝原假设(模型校准良好),认为模型存在显著的校准偏差。 + +## Algorithm + +1. 将样本按预测概率从小到大分箱(默认 10 箱,或自定义 g 组) +2. 对每箱计算: + - **观测正例数** $O_g = \sum_{i \in \text{group } g} y_i$ + - **期望正例数** $E_g = \sum_{i \in \text{group } g} \hat{p}_i$ + - **样本数** $n_g$ +3. 计算 HL 统计量: + +$$H = \sum_{g=1}^{G} \frac{(O_g - E_g)^2}{E_g (1 - E_g / n_g)}$$ + +4. 自由度 $df = G - 2$(减去截距和斜率估计参数) +5. 与 $\chi^2(df)$ 分布比较,$p = 1 - F_{H}(H)$ + +## Interpretation + +```python +from scipy.stats import chi2 + +def hosmer_lemshow_test(y_true: pd.Series, y_pred: pd.Series, groups: int = 10) -> dict: + data = pd.DataFrame({"y": y_true, "p": y_pred}) + data["bucket"] = pd.qcut(data["p"], groups, duplicates="drop") + + agg = data.groupby("bucket", observed=True).agg( + n=("y", "count"), + observed=("y", "sum"), + expected=("p", "sum"), + ) + + hl_stat = ( + ((agg["observed"] - agg["expected"])**2) / + (agg["expected"] * (1 - agg["expected"] / agg["n"])) + ).sum() + + dof = len(agg) - 2 + p_value = 1 - chi2.cdf(hl_stat, dof) + + return { + "HL_statistic": round(hl_stat, 4), + "p_value": round(p_value, 6), + "calibrated": p_value >= 0.05, # True = well calibrated + "dof": dof, + "groups_used": len(agg), + } +``` + +| p-value | 判读 | +|---------|------| +| ≥ 0.05 | 🟢 模型校准良好,无显著证据表明预测概率偏离实际频率 | +| < 0.05 | 🔴 拒绝原假设,模型存在显著校准偏差 | + +## Limitations + +1. **分组方式敏感**:不同分箱数量/方法导致不同结果,10 等分是惯例但非最优 +2. **样本量敏感**:大样本下即使微小偏差也能导致显著 p-value(实际影响可能很小) +3. **掩盖子群体问题**:整体通过 HL 检验不等于所有子群体都校准良好 +4. **序贯分组问题**:qcut 在重复值多时可能合并箱子,需检查 `groups_used` + +## Alternatives + +- **Brier Score**:无需分组,对样本量稳健,但只能给出误差量级而非定位 +- **Spiegelhalter's Z-test**:基于 Brier Score 的统计检验 +- **Reliability Curves**:可视化诊断,比 HL 检验提供更多信息 +- **Expected Calibration Error (ECE)**:量化平均校准误差,解释性更强 + +## Model QA 中的应用 + +Model QA Specialist 将 HL 检验用于: +1. **模型上线前验证**:新模型上线必须通过 HL 检验(p ≥ 0.05) +2. **定期监控**:在 OOT 窗口上重复执行,监控校准随时间恶化趋势 +3. **子群体分层测试**:在关键子群体(高风险/低风险/新客户)上分别执行 +4. **Champion-Challenger**:对比 champion model vs challenger model 的 HL 结果 + +## Relationship + +- **被依赖** [[Calibration-Testing]]:HL 检验是 Calibration Testing 的核心统计工具之一 +- **依赖** [[Discrimination-Metrics]]:先确认模型有区分能力(AUC/Gini 达标),再讨论校准 +- **依赖** [[Population-Stability-Index]]:PSI 漂移往往是 HL 检验失败的前兆 +- **依赖** [[SHAP]]:HL 检验发现校准问题后,用 SHAP waterfall 诊断具体原因 +- **支撑** [[specialized-model-qa]](Source):Model QA Specialist 校准测试步骤的核心工具 diff --git a/wiki/concepts/HybridFingerprinting.md b/wiki/concepts/HybridFingerprinting.md new file mode 100644 index 00000000..1eb2a714 --- /dev/null +++ b/wiki/concepts/HybridFingerprinting.md @@ -0,0 +1,43 @@ +--- +title: "Hybrid Fingerprinting" +type: concept +tags: [] +last_updated: 2026-05-01 +--- + +## Definition + +结合精确匹配(SHA-256 主键哈希)与模糊匹配(向量语义相似度)两种信号,防止因表面相似而误合并不同记录的混合指纹识别机制。 + +## The Problem + +纯语义相似度是模糊的: +- `"John Doe ID:101"` 与 `"Jon Doe ID:102"` 语义高度相似 +- 但主键不同(ID:101 ≠ ID:102),实际上是两条不同的记录 +- 若仅依赖语义相似度,可能被错误聚类合并 + +## Solution + +``` +Hybrid Score = SHA-256(PK_hash) + Vector_Similarity(embedding) +``` + +- **PK Hash differs** → 强制分离聚类,不允许合并 +- **PK Hash matches** → 才考虑向量相似度进行聚类 + +## Implementation + +```python +# 伪代码 +for each candidate_pair: + if sha256(pk1) != sha256(pk2): + force_separate_clusters() # PK不同,强制分离 + else: + if vector_similarity(embedding1, embedding2) > threshold: + merge_clusters() # PK相同且语义相似,才合并 +``` + +## Related + +- [[Semantic Anomaly Compression]] +- [[Air-Gapped SLM Fix Generation]] diff --git a/wiki/concepts/Inclusive-Delight-Design.md b/wiki/concepts/Inclusive-Delight-Design.md new file mode 100644 index 00000000..8ca8eaeb --- /dev/null +++ b/wiki/concepts/Inclusive-Delight-Design.md @@ -0,0 +1,38 @@ +--- +title: "Inclusive Delight Design" +type: concept +tags: [accessibility, ui-design, inclusive-design, user-experience] +sources: [design-whimsy-injector] +last_updated: 2026-05-15 +--- + +# Inclusive Delight Design + +## Definition + +包容性愉悦设计(Inclusive Delight Design)确保趣味元素对所有用户(包括残障用户)都可访问和可享受。核心原则:趣味性必须与无障碍访问并行实现,不能成为享受的障碍。 + +## Core Principles + +- **屏幕阅读器兼容**:动画不影响辅助技术 +- **减少动画偏好**:通过 `prefers-reduced-motion` 支持 +- **文化敏感性**:幽默和趣味跨文化适用 +- **认知负荷控制**:趣味不造成理解障碍 +- **多感官设计**:视觉 + 触觉/听觉多通道愉悦 + +## Whimsy Injector Guidelines + +> "Design playful elements that work for users with disabilities" +> "Ensure whimsy doesn't interfere with screen readers or assistive technology" +> "Provide options for users who prefer reduced motion or simplified interfaces" +> "Create humor and personality that is culturally sensitive and appropriate" + +## Relationship to Other Concepts + +- [[Micro-Interaction-Design]]:微交互需遵循包容性设计原则 +- [[Gamification]]:游戏化元素必须包容性设计 +- [[Invisible-Exclusion]]:包容性愉悦设计是避免隐性排他的关键 + +## Source + +- [[Whimsy-Injector]] — 包容性愉悦设计原则核心来源 diff --git a/wiki/concepts/Inclusive-Delight.md b/wiki/concepts/Inclusive-Delight.md new file mode 100644 index 00000000..9878ed6a --- /dev/null +++ b/wiki/concepts/Inclusive-Delight.md @@ -0,0 +1,48 @@ +--- +title: "Inclusive Delight" +type: concept +tags: [accessibility, ux, design, inclusion] +last_updated: 2026-04-30 +--- + +# 包容性愉悦设计(Inclusive Delight) + +## Aliases +- Inclusive Delight +- 包容性设计 +- 无障碍愉悦 +- Accessible Playfulness + +## 定义 + +包容性愉悦设计是指在产品中引入趣味性、情感化元素(如微交互、动画、游戏化)时,确保这些元素对所有用户(包括残障用户、不同文化背景用户、不同能力的用户)都可访问、可理解和可享受的设计原则。 + +## 核心要求 + +1. **运动敏感**:动画需支持 `prefers-reduced-motion`,允许用户关闭或减弱所有运动效果 +2. **屏幕阅读器兼容**:趣味元素不应干扰辅助技术对内容的解读(ARIA 标签、语义化 HTML) +3. **色彩对比度**:趣味配色必须在 WCAG 对比度标准下可读 +4. **文化敏感性**:幽默和趣味的表达需考虑跨文化理解,避免歧义或冒犯 +5. **替代文本**:Emoji 庆祝动画等视觉元素需有文字替代方案 + +## 设计策略 + +- **分层体验(Layered Experience)**:基础层对所有用户可访问,趣味增强层作为可选叠加 +- **开关控制**:为用户保留关闭趣味元素的选项(降低 motion、简化模式) +- **渐进增强**:从无障碍基础开始,逐步叠加趣味层 +- **测试多样性**:在真实辅助技术(屏幕阅读器、眼动追踪)和不同文化背景用户中测试 + +## 与趣味设计的关系 + +包容性不是趣味设计的对立面,而是趣味设计的基础约束——一个不包容的"趣味"设计会排斥部分用户,减少潜在受众。优秀的趣味设计在满足包容性要求的同时依然能创造愉悦感。 + +## 应用场景 + +- [[design-whimsy-injector]] 将包容性愉悦作为默认要求嵌入品牌个性框架,明确规定"确保所有趣味元素可访问和包容" +- [[design-ux-architect]] 通过 CSS 变量和语义化标记支持包容性基础的建立 + +## 相关概念 + +- [[Micro-Interaction]]:微交互需满足包容性要求(如 reduced-motion 支持) +- [[Gamification]]:成就系统需考虑不同能力水平用户的参与公平性 +- [[Brand-Personality-Framework]]:品牌个性中的文化敏感性是包容性的重要组成 diff --git a/wiki/concepts/Inclusive-Design-Research.md b/wiki/concepts/Inclusive-Design-Research.md new file mode 100644 index 00000000..6b3c0f03 --- /dev/null +++ b/wiki/concepts/Inclusive-Design-Research.md @@ -0,0 +1,28 @@ +--- +title: "Inclusive Design Research" +type: concept +tags: [ux, accessibility, inclusive-design, research, disability] +sources: [design-ux-researcher.md] +last_updated: 2026-04-24 +--- + +## Definition + +Inclusive Design Research(包容性设计研究)是一种将无障碍和包容性维度纳入用户研究默认要求的研究方法。确保研究参与者和研究成果覆盖不同能力水平、文化背景和人口统计学特征,使产品对残障用户和多元群体可访问。 + +## Core Requirements + +- **默认要求**:所有 UX Researcher 的研究交付物必须包含无障碍研究维度 +- **参与者招募**:确保多样性,涵盖不同能力水平 +- **测试方法**:包含屏幕阅读器用户、键盘-only 用户等特殊群体的可用性测试 +- **文化包容性**:考虑不同文化背景用户的需求差异 + +## Relationship to Other Concepts + +- [[User-Research-Methodology]]:包容性是研究方法论的默认质量维度 +- [[Usability-Testing]]:可用性测试协议需包含无障碍测试场景 +- [[Inclusive-Delight-Design]]:包容性设计研究为包容性趣味设计提供用户数据支撑([[design-whimsy-injector]] 的默认要求) + +## Source + +- [[design-ux-researcher.md]] — UX Researcher Agent Personality diff --git a/wiki/concepts/IncrementalGraphUpdate.md b/wiki/concepts/IncrementalGraphUpdate.md new file mode 100644 index 00000000..13f018e3 --- /dev/null +++ b/wiki/concepts/IncrementalGraphUpdate.md @@ -0,0 +1,52 @@ +--- +title: "IncrementalGraphUpdate" +type: concept +tags: ["LSP", "code-intelligence", "incremental-update", "event-driven", "real-time"] +sources: ["lsp-index-engineer.md"] +last_updated: 2026-04-29 +--- + +## Definition +增量图谱更新(Incremental Graph Update)是一种通过文件监听器和 Git hooks 实时监听代码变化,仅对受影响的部分图谱进行增量更新而非全量重建的策略,确保图谱始终与代码库保持同步,同时保持 < 100ms 端到端响应时间。 + +## Core Mechanism + +### 触发来源 +1. **文件监听器**(File Watcher):监听文件系统的 `create/modify/delete` 事件 +2. **Git Hooks**:`pre-commit` / `post-commit` / `post-merge` 钩子检测代码变更 + +### 增量更新流程 +1. 检测文件变更(新增/修改/删除) +2. 定位受影响的符号节点和边 +3. 对该文件运行 LSP `textDocument/didChange` 通知 +4. 接收 LSP 的增量语义更新 +5. 更新相关图谱节点和边 +6. 通过 WebSocket 推送图谱差异(Graph Diff)到客户端 + +### Graph Diff 推送 +```typescript +interface GraphDiff { + added: GraphNode[]; + removed: GraphNode[]; + modified: GraphNode[]; + addedEdges: GraphEdge[]; + removedEdges: GraphEdge[]; +} +``` +仅推送差异,不推送全量图谱,实现最小化网络开销。 + +### 一致性保证 +- **原子性更新**:图谱更新是事务性的,要么全部成功要么全部回滚 +- **乐观锁**:并发更新时使用版本号检测冲突 +- **不变性约束验证**:更新前后验证图谱一致性不变量(符号唯一定义、边引用有效性等) + +## Performance Characteristics +- 文件变更到 WebSocket 推送:< 50ms +- 单文件增量更新:< 20ms +- 100k+ 符号规模:仍保持增量更新性能 + +## Connections +- [[IncrementalGraphUpdate]] ← is_update_strategy_of ← [[GraphDaemon]] +- [[IncrementalGraphUpdate]] ← triggered_by ← [[FileWatcher]] +- [[IncrementalGraphUpdate]] ← streams_via ← [[WebSocket]] +- [[IncrementalGraphUpdate]] ← replaces ← [[LSIF]](LSIF 用于预计算,Incremental 用于实时) diff --git a/wiki/concepts/Incrementality-Testing.md b/wiki/concepts/Incrementality-Testing.md index f3ecb047..3adf759d 100644 --- a/wiki/concepts/Incrementality-Testing.md +++ b/wiki/concepts/Incrementality-Testing.md @@ -1,29 +1,32 @@ ---- -title: "Incrementality Testing" -type: concept -tags: ["paid-media", "attribution", "measurement", "testing"] -last_updated: 2026-04-25 ---- - -## Aliases -- 增量测试 -- Incrementality -- Holdout Testing -- Geo Split Testing - -## Overview -增量测试是一种通过对照组(holdout)实验设计,验证付费广告是否带来"净新增"转化的方法论。核心目的是避免"转移归因"——即付费广告只是截获了本来会发生的有机转化,而非真正带来增量价值。 - -## Definition -常见方法: -- **Holdout(控制组)**:随机选取一部分目标受众,不投放广告,对比两组转化率差异 -- **Geo Split(地理拆分)**:在不同地理区域分别开关广告,隔离外部变量 -- **Matched Market(匹配市场)**:选择相似市场,一方投放一方对照 - -增量 = 实验组转化率 - 对照组转化率(排除自然流量后) - -## Connections -- [[Paid Media Paid Social Strategist]] Agent 在跨渠道验证中强调增量测试 -- 与 [[Conversions API]] 数据配合可更准确地测量增量 -- 与 [[PaidMediaPpcStrategist]] 的增量测试框架(geo-split/holdout/matched market)方法论一致 -- 避免 [[Audience Overlap Analysis]] 导致的重复计算问题 +--- +title: "Incrementality Testing" +type: concept +tags: ["paid-media", "attribution", "measurement", "testing"] +sources: + - paid-media-programmatic-buyer + - paid-media-ppc-strategist +last_updated: 2026-05-01 +--- + +## Aliases +- 增量测试 +- Incrementality +- Holdout Testing +- Geo Split Testing + +## Overview +增量测试是一种通过对照组(holdout)实验设计,验证付费广告是否带来"净新增"转化的方法论。核心目的是避免"转移归因"——即付费广告只是截获了本来会发生的有机转化,而非真正带来增量价值。 + +## Definition +常见方法: +- **Holdout(控制组)**:随机选取一部分目标受众,不投放广告,对比两组转化率差异 +- **Geo Split(地理拆分)**:在不同地理区域分别开关广告,隔离外部变量 +- **Matched Market(匹配市场)**:选择相似市场,一方投放一方对照 + +增量 = 实验组转化率 - 对照组转化率(排除自然流量后) + +## Connections +- [[Paid Media Paid Social Strategist]] Agent 在跨渠道验证中强调增量测试 +- 与 [[Conversions API]] 数据配合可更准确地测量增量 +- 与 [[PaidMediaPpcStrategist]] 的增量测试框架(geo-split/holdout/matched market)方法论一致 +- 避免 [[Audience Overlap Analysis]] 导致的重复计算问题 diff --git a/wiki/concepts/IncrementalityTesting.md b/wiki/concepts/IncrementalityTesting.md new file mode 100644 index 00000000..a7eed629 --- /dev/null +++ b/wiki/concepts/IncrementalityTesting.md @@ -0,0 +1,59 @@ +--- +title: "Incrementality Testing" +type: concept +tags: ["ppc", "measurement", "analytics", "attribution", "paid-media"] +sources: ["paid-media-ppc-strategist"] +last_updated: 2026-05-01 +--- + +## Definition + +增量测试(Incrementality Testing)是一套用于衡量付费广告真实业务贡献的方法论,通过对照组设计(Holdout/Control Group)区分"由广告带来的增量转化"与"即使没有广告也会自然发生的转化"。解决归因模型的固有局限性——仅分析有广告触达的用户,而不考虑无广告曝光时的自然转化。 + +## Why Incrementality Matters + +传统归因的问题: +- **Last-click 过誉**:将转化归功于最后一次点击,忽略其他触点 +- **View-through 虚假转化**:用户看过广告但未点击,计为"转化" +- **自然转化混淆**:无法区分广告贡献和自然流量 + +Incrementality 测试回答核心问题:**如果没有这个广告,转化量会下降多少?** + +## Testing Methodologies + +### 1. Geo-Split(地理分割测试) +**原理**:将市场按地理区域分割,一半投放广告,一半暂停,对比转化差异 + +| 区域 | 处理 | +|------|------| +| Test Market A | 投放广告 | +| Test Market B | 暂停广告 | +| Control Market | 维持正常投放(用于基线校准) | + +**适用**:品牌广告、Display、Video、OOH +**最小样本**:每个市场 30+ 转化/周 + +### 2. Holdout / User-Level Holdout(用户级对照测试) +**原理**:随机选择 X% 用户完全排除在广告触达之外,对比与正常触达用户的转化率差异 + +**适用**:精准追踪能力(Email/Pixel 覆盖率高) +**挑战**:用户感知可能影响结果 + +### 3. Matched Market(匹配市场测试) +**原理**:使用历史数据识别两个可比较的地理市场,一个投放,一个暂停 + +**适用**:无法随机分割用户的大型品牌 +**关键**:Matching 质量决定测试有效性 + +## Key Metrics from Incrementality Tests + +| 指标 | 公式 | 解读 | +|------|------|------| +| **Uplift** | (Test Conv - Control Conv) / Control Conv | 广告带来的增量转化率 | +| **CPA Ratio** | Holdout CPA / Exposed CPA | 广告效率 vs 无广告基准 | +| **True ROAS** | Uplift Conv × Avg Order Value / Ad Spend | 真实广告回报 | + +## Connections +- [[PaidMediaTrackingSpecialist]]:增量测试需要可靠的转化追踪基础设施 +- [[BudgetPacing]]:增量测试结果用于指导预算分配决策 +- [[CrossPlatformPlanning]]:跨平台增量贡献衡量,指导平台预算分配 diff --git a/wiki/concepts/IndexingStrategies.md b/wiki/concepts/IndexingStrategies.md new file mode 100644 index 00000000..d91f0204 --- /dev/null +++ b/wiki/concepts/IndexingStrategies.md @@ -0,0 +1,42 @@ +--- +title: "Indexing Strategies" +type: concept +tags: [database, postgresql, index, performance, mysql, supabase] +last_updated: 2026-05-01 +--- + +# Indexing Strategies + +## Definition + +数据库索引策略是指根据查询模式和数据特征选择合适的索引类型和结构的实践方法,目的是加速数据检索同时控制写入开销和存储成本。 + +## Index Types + +| 类型 | 适用场景 | 示例 | +|------|---------|------| +| **B-tree** | 等值查询、范围查询、排序(默认首选) | `CREATE INDEX ON users(email)` | +| **GiST** | 几何数据、全文搜索、Range 类型 | `CREATE INDEX ON documents USING GIN(to_tsvector('english', content))` | +| **GIN** | JSON/数组字段、全文搜索 | `CREATE INDEX ON posts USING GIN(metadata)` | +| **部分索引(Partial)** | 高频过滤条件(如下线状态) | `CREATE INDEX ON orders WHERE status = 'pending'` | +| **复合索引(Composite)** | 多列过滤 + 排序 | `CREATE INDEX ON posts(status, created_at DESC)` | + +## Aliases +- Composite Index +- Partial Index +- Covering Index + +## Key Principles + +1. **外键必须加索引**:用于 JOIN 性能 +2. **高频 WHERE 条件优先建索引**:但避免对低选择性列(如性别)建单列索引 +3. **复合索引列顺序**:等值列在前,范围列在后 +4. **避免 SELECT \***:只查需要的列,利于索引覆盖(covering index) + +## Source +- [[engineering-database-optimizer]] + +## Connections +- [[QueryPlanAnalysis]] — 索引效果通过 EXPLAIN ANALYZE 验证 +- [[SchemaDesign]] — 索引是 Schema 设计的关键组成部分 +- [[engineering-backend-architect]] — 架构设计时需考虑索引策略 diff --git a/wiki/concepts/Infrastructure as Code.md b/wiki/concepts/Infrastructure as Code.md new file mode 100644 index 00000000..ab50f8fd --- /dev/null +++ b/wiki/concepts/Infrastructure as Code.md @@ -0,0 +1,57 @@ +--- +title: "Infrastructure as Code" +type: concept +tags: [DevOps, Cloud, Automation] +sources: [engineering-devops-automator] +last_updated: 2026-05-01 +--- + +# Infrastructure as Code + +## 定义 +基础设施即代码(Infrastructure as Code,IaC)是一种通过代码定义和管理云基础设施的方法,替代传统手动配置,实现基础设施的可重复性、可版本控制和可测试性。 + +## 核心原则 +1. **声明式配置**:描述期望的最终状态,而非执行的具体步骤 +2. **幂等性**:多次执行产生相同结果 +3. **版本控制**:所有配置存储在 Git 等版本控制系统 +4. **可重复性**:同一代码在不同环境生成相同基础设施 +5. **自动化测试**:基础设施变更经过测试验证 + +## 核心工具 +- **Terraform**:声明式、多云支持(AWS/GCP/Azure) +- **AWS CloudFormation**:AWS 原生声明式服务 +- **AWS CDK**:使用编程语言(TypeScript/Python)定义云资源 +- **Ansible**:配置管理 + 基础设施编排 +- **Pulumi**:使用通用编程语言定义基础设施 + +## 在 DevOps Automator 中的应用 +- 使用 Terraform 定义 AWS Auto-scaling groups、ALB、CloudWatch alarms +- 通过 `terraform plan` 预览变更,通过 `terraform apply` 自动部署 +- 支持多环境管理(dev/staging/prod) + +## 相关概念 +- [[CI/CD Pipeline]]:IaC 变更通过 CI/CD 流水线自动化部署 +- [[Terraform]]:DevOps Automator 默认使用的 IaC 工具 +- [[GitOps]]:基于 Git 的 IaC 运维模式 + +## 最佳实践 +- 状态文件存储在远程后端(S3 + DynamoDB) +- 使用 workspaces 或目录分离多环境 +- 模块化设计,复用公共组件 +- 敏感信息使用 Vault 或 AWS Secrets Manager + +## 与传统运维的对比 +| 维度 | 传统运维 | IaC | +|------|----------|-----| +| 速度 | 手动配置耗时 | 分钟级自动部署 | +| 一致性 | 人为差异 | 完全一致 | +| 版本控制 | 无 | 完整历史记录 | +| 回滚 | 困难 | 一键回滚 | +| 审计 | 日志分散 | 集中可追溯 | + +## Aliases +- IaC +- Infrastructure as Code +- 基础设施即代码 +- Configuration as Code diff --git a/wiki/concepts/Infrastructure-as-Code.md b/wiki/concepts/Infrastructure-as-Code.md index f67a4886..2f52794e 100644 --- a/wiki/concepts/Infrastructure-as-Code.md +++ b/wiki/concepts/Infrastructure-as-Code.md @@ -1,49 +1,49 @@ ---- -title: "Infrastructure as Code" -type: concept -tags: [DevOps, AWS, Terraform, Automation] -sources: [ctp-topic-3-deploy-and-maintain-infrastructure, ctp-topic-9-ci-cd-with-gruntwork, ctp-topic-48-terraform-vs-terragrunt, ctp-topic-32-using-atlantis-cicd-for-infrastructure-deployments, ctp-topic-33-an-introduction-to-gitops, ctp-topic-56-automated-infrastructure-testing, learning-sessions-ecs-deployment-using-iac-20230808-183322-meeting-recording, cloud-operating-model-key-strategies-and-best-practices] -last_updated: 2026-05-05 ---- - -# Infrastructure as Code - -## Definition -基础设施即代码(Infrastructure as Code, IaC)是一种通过机器可读的定义文件(而非物理硬件配置或交互式配置工具)管理和配置计算基础设施的方法。 - -## Core Principles -- **声明式配置**:描述期望的最终状态,而非执行的具体步骤 -- **版本控制**:所有基础设施定义文件存储在 Git 中 -- **幂等性**:多次执行产生相同结果 -- **可重复性**:同一模板可在不同环境快速部署 -- **自动化**:与 CI/CD 流水线集成 - -## Key Tools -- **Terraform**:HashiCorp 出品,云厂商无关的 IaC 工具,通过状态文件管理资源 -- **Terragrunt**:Terraform 轻量封装,贯彻 DRY 原则 -- **AWS CloudFormation**:AWS 原生 IaC 服务,JSON/YAML 模板 -- **Pulumi**:编程语言驱动的 IaC 平台 -- **Ansible**:配置管理和应用部署工具 - -## Terraform Ecosystem -- **Gruntwork**:预建 Terraform 模块库,生产级参考架构 -- **Atlantis**:Git 集成 Terraform 部署,PR 评论式协作 -- **Terratest**:Terraform 代码的 Go 测试框架 -- **tfsec**:Terraform 静态安全分析工具 -- **TFLint**:Terraform 代码规范检查 - -## IaC in CTP Context -CTP(Cloud Transformation Programme)使用 Terraform/Terragrunt 构建 AWS Landing Zone: -- [[ctp-topic-3-deploy-and-maintain-infrastructure]]:Terragrunt HCL 文件与模块化管理 -- [[ctp-topic-9-ci-cd-with-gruntwork]]:Gruntwork CI/CD 流水线实践 -- [[ctp-topic-48-terraform-vs-terragrunt]]:Terraform 与 Terragrunt 对比选型 -- [[ctp-topic-32-using-atlantis-cicd-for-infrastructure-deployments]]:Atlantis 替代 Jenkins -- [[ctp-topic-56-automated-infrastructure-testing]]:TerraTest 自动化测试 -- [[learning-sessions-ecs-deployment-using-iac-20230808-183322-meeting-recording]]:ECS IaC 部署实践 - -## Related Concepts -- [[GitOps]]:Git 作为 IaC 的单一真相来源 -- [[CI/CD Pipeline]]:IaC 与 CI/CD 流水线的集成 -- [[Policy-as-Code]]:IaC 扩展至安全合规策略 -- [[Canary-Deployment]]:基于 IaC 的金丝雀部署策略 -- [[Atlantis]]:GitOps 驱动的 Terraform 协作工具 +--- +title: "Infrastructure as Code" +type: concept +tags: [DevOps, AWS, Terraform, Automation] +sources: [ctp-topic-3-deploy-and-maintain-infrastructure, ctp-topic-9-ci-cd-with-gruntwork, ctp-topic-48-terraform-vs-terragrunt, ctp-topic-32-using-atlantis-cicd-for-infrastructure-deployments, ctp-topic-33-an-introduction-to-gitops, ctp-topic-56-automated-infrastructure-testing, learning-sessions-ecs-deployment-using-iac-20230808-183322-meeting-recording, cloud-operating-model-key-strategies-and-best-practices, learning-sessions-cloud-transformation-programme-deploying-rds-via-terraform, engineering-devops-automator] +last_updated: 2026-04-14 +--- + +# Infrastructure as Code + +## Definition +基础设施即代码(Infrastructure as Code, IaC)是一种通过机器可读的定义文件(而非物理硬件配置或交互式配置工具)管理和配置计算基础设施的方法。 + +## Core Principles +- **声明式配置**:描述期望的最终状态,而非执行的具体步骤 +- **版本控制**:所有基础设施定义文件存储在 Git 中 +- **幂等性**:多次执行产生相同结果 +- **可重复性**:同一模板可在不同环境快速部署 +- **自动化**:与 CI/CD 流水线集成 + +## Key Tools +- **Terraform**:HashiCorp 出品,云厂商无关的 IaC 工具,通过状态文件管理资源 +- **Terragrunt**:Terraform 轻量封装,贯彻 DRY 原则 +- **AWS CloudFormation**:AWS 原生 IaC 服务,JSON/YAML 模板 +- **Pulumi**:编程语言驱动的 IaC 平台 +- **Ansible**:配置管理和应用部署工具 + +## Terraform Ecosystem +- **Gruntwork**:预建 Terraform 模块库,生产级参考架构 +- **Atlantis**:Git 集成 Terraform 部署,PR 评论式协作 +- **Terratest**:Terraform 代码的 Go 测试框架 +- **tfsec**:Terraform 静态安全分析工具 +- **TFLint**:Terraform 代码规范检查 + +## IaC in CTP Context +CTP(Cloud Transformation Programme)使用 Terraform/Terragrunt 构建 AWS Landing Zone: +- [[ctp-topic-3-deploy-and-maintain-infrastructure]]:Terragrunt HCL 文件与模块化管理 +- [[ctp-topic-9-ci-cd-with-gruntwork]]:Gruntwork CI/CD 流水线实践 +- [[ctp-topic-48-terraform-vs-terragrunt]]:Terraform 与 Terragrunt 对比选型 +- [[ctp-topic-32-using-atlantis-cicd-for-infrastructure-deployments]]:Atlantis 替代 Jenkins +- [[ctp-topic-56-automated-infrastructure-testing]]:TerraTest 自动化测试 +- [[learning-sessions-ecs-deployment-using-iac-20230808-183322-meeting-recording]]:ECS IaC 部署实践 + +## Related Concepts +- [[GitOps]]:Git 作为 IaC 的单一真相来源 +- [[CI/CD Pipeline]]:IaC 与 CI/CD 流水线的集成 +- [[Policy-as-Code]]:IaC 扩展至安全合规策略 +- [[Canary-Deployment]]:基于 IaC 的金丝雀部署策略 +- [[Atlantis]]:GitOps 驱动的 Terraform 协作工具 diff --git a/wiki/concepts/IngestWorkflow.md b/wiki/concepts/IngestWorkflow.md new file mode 100644 index 00000000..c5e8399f --- /dev/null +++ b/wiki/concepts/IngestWorkflow.md @@ -0,0 +1,33 @@ +--- +title: "IngestWorkflow" +type: concept +tags: [workflow, knowledge-management, llm] +sources: [llm-wiki] +last_updated: 2026-05-02 +--- + +## Overview +导入工作流(Ingest Workflow)是 [[PersistentWiki]] 的核心运营模式之一——当新源添加到 `raw/` 目录时,LLM 读取、处理并将其整合到 Wiki 中。 + +## Standard Process(9步) +1. **读取源文件**:完整读取待摄取的源文档 +2. **了解上下文**:读取 `wiki/index.md` 和 `wiki/overview.md` +3. **生成 Source Page**:创建 `wiki/sources/.md`(参照 Source Page Format) +4. **更新 Index**:在 `wiki/index.md` 的 Sources 节添加新条目 +5. **更新 Overview**:如有修订必要时更新综合摘要 +6. **更新/创建 Entity 页面**:为关键人物/公司/项目创建或更新实体页 +7. **更新/创建 Concept 页面**:为关键想法和框架创建或更新概念页 +8. **检测冲突**:记录与现有 Wiki 内容的矛盾 +9. **追加 Log**:在 `wiki/log.md` 中追加时间线条目 + +## Trigger +触发方式:用户说 "ingest " 或 "摄取这个文件:raw/xxx.md" + +## Design Principles +- **一次源可能影响 10-15 个 Wiki 页面**:更新实体、概念、摘要、交叉引用 +- **单源优于批量**:作者偏好一次导入一个源并全程参与,可更好把控知识整合质量 +- **批量可行**:也可以一次性批量导入,减少监督 + +## Related Workflows +- [[QueryWorkflow]]:查询工作流——用户提问,LLM 从 Wiki 检索答案 +- [[LintWorkflow]]:检查工作流——定期健康检查 Wiki 质量 diff --git a/wiki/concepts/Internal-Controls.md b/wiki/concepts/Internal-Controls.md new file mode 100644 index 00000000..79d262b1 --- /dev/null +++ b/wiki/concepts/Internal-Controls.md @@ -0,0 +1,54 @@ +--- +title: "Internal Controls" +type: concept +tags: [finance, accounting, compliance] +sources: [finance-bookkeeper-controller] +last_updated: 2026-05-02 +--- + +## Definition +内部控制(Internal Controls)是企业为确保财务报告可靠性、运营效率和合规性而建立的政策和程序体系。 + +## Control Design Components +- **Authorization Matrices**:授权矩阵,定义谁有权批准哪些类型的交易 +- **Approval Workflows**:审批工作流,确保所有重大交易经过适当审批 +- **System Access Controls**:系统访问控制,限制对敏感财务系统的访问 +- **Data Validation Rules**:数据验证规则,防止无效或未经授权的数据进入系统 + +## Control Monitoring +- 关键控制测试 +- 例外情况跟踪 +- 整改管理 + +## SOX Compliance +萨班斯-奥克斯利法案(SOX)对公众公司的内部控制提出了强制性要求: +- 控制文档化 +- 测试计划 +- 缺陷跟踪 +- 管理层声明 + +## Segregation of Duties +职责分离是内部控制的核心原则: +- 交易发起人 ≠ 审批人 +- 交易审批人 ≠ 记录人 +> "The person who initiates a transaction should not be the same person who approves or records it." + +## Policy Maintenance +- 会计政策文档化 +- 程序手册维护 +- 授权矩阵更新 + +## Core Principle +> "Internal controls exist because humans make mistakes (and occasionally worse). Trust but verify — then verify again." +> — Dana, Bookkeeper & Controller Agent + +## Success Metrics +- 内部控制例外率 < 3% +- 所有控制按测试计划执行 +- 零 SOX 重大缺陷 + +## Related Concepts +- [[Segregation-Of-Duties]] +- [[Audit Readiness]] +- [[GAAP-Compliance]] +- [[Account-Reconciliation]] diff --git a/wiki/concepts/Intersectionality.md b/wiki/concepts/Intersectionality.md new file mode 100644 index 00000000..87282a7d --- /dev/null +++ b/wiki/concepts/Intersectionality.md @@ -0,0 +1,37 @@ +--- +title: "Intersectionality" +type: concept +tags: [] +last_updated: 2026-05-15 +--- + +## Definition + +Intersectionality(交叉性)——一种分析框架,用于理解社会身份(如种族、性别、阶级、残障、国籍等)的交叉重叠如何产生独特的歧视和特权模式。该概念最早由 Kimberlé Crenshaw 于 1989 年提出,现已广泛应用于 UX 研究、品牌策略和 AI representation 领域。 + +在 AI 图像/视频生成的语境中,intersectionality 指的是:文化、年龄、残障状况、社会经济地位等多维度交叉重叠下的人类身份表征,要求特定的提示词架构方法来确保每个维度都被准确、尊严地呈现。 + +## Core Principles + +1. **Multiple Dimensions Simultaneously**:身份不是单一维度的叠加,而是在交叉点上产生独特体验 +2. **Non-Addictive Model**:不能用"多样性 = A + B + C"的加法模型,而要捕捉交叉点的独特性 +3. **Contextual Specificity**:同一身份在不同交叉点上可能有完全不同的表达 + +## In AI Imagery Context + +Inclusive Visuals Specialist 代理人对 intersectionality 的技术处理: +- **拒绝单维度 tokenization**:不能只指定"女性"或"黑人",而要指定"45岁黑人女性高管,自然4C发型穿定制海军蓝西装" +- **拒绝平均化渲染**:AI 倾向于生成"平均"面孔,intersectionality 要求 distinct facial structures +- **拒绝刻板叠加**:不能简单叠加多个身份标签,而要捕捉身份之间的复杂互动 + +## Related Concepts + +- [[Negative Prompting]] +- [[Cultural Authenticity]] +- [[Sociological Accuracy]] +- [[Inclusive Visuals Specialist]] + +## Aliases + +- 交叉性 +- 交叉身份 diff --git a/wiki/concepts/Investment-Analysis.md b/wiki/concepts/Investment-Analysis.md new file mode 100644 index 00000000..eeb7f624 --- /dev/null +++ b/wiki/concepts/Investment-Analysis.md @@ -0,0 +1,58 @@ +--- +title: "Investment Analysis (NPV & IRR)" +type: concept +tags: ["finance", "investment", "npv", "irr"] +last_updated: 2026-04-30 +--- + +## Definition +投资分析是通过量化方法评估投资项目的可行性和盈利能力的财务决策框架,核心指标包括 NPV(净现值)、IRR(内部收益率)和投资回收期(Payback Period)。 + +## Core Metrics + +### NPV (Net Present Value) +``` +NPV = -初始投资 + Σ(第i期现金流 / (1 + 贴现率)^i) +``` +- **正值**:项目创造价值,值得投资 +- **负值**:项目摧毁价值,不建议投资 +- **零值**:项目盈亏平衡 + +### IRR (Internal Rate of Return) +使 NPV = 0 的贴现率 r: +``` +Σ(第i期现金流 / (1 + r)^i) - 初始投资 = 0 +``` +- **IRR > 贴现率**:项目可行 +- **IRR < 贴现率**:项目不可行 +- IRR 通过数值求解(如 `scipy.optimize.fsolve`)获得 + +### Payback Period +累计现金流首次超过初始投资的时间(以年为单位): +``` +Payback = (n - 1) + (初始投资 - 累计现金流_{n-1}) / 第n期现金流 +``` + +### ROI +``` +ROI = (Σ现金流 - 初始投资) / 初始投资 × 100% +``` + +## Decision Matrix +| NPV | IRR | Payback | 风险评分 | 建议 | +|-----|-----|---------|---------|------| +| >0 | >贴现率 | <3年 | <3 | STRONG BUY | +| >0 | >贴现率 | 任意 | ≥3 | CONDITIONAL BUY | +| ≤0 或 IRR ≤ 贴现率 | — | — | — | DO NOT INVEST | + +## Target Returns +- 平均 ROI:**25%+** +- Payback Period:**<3年** +- 风险评分:**<3** + +## Implementation +参见 [[support-finance-tracker]] 中 `InvestmentAnalyzer` Python 类的实现,包含 NPV、IRR、Payback Period 和 ROI 的完整计算逻辑。 + +## Related Concepts +- [[Cash Flow Forecasting]]:投资分析的现金流输入依赖预测数据 +- [[Budget Variance Analysis]]:项目执行层面的财务监控 diff --git a/wiki/concepts/Journal-Entry.md b/wiki/concepts/Journal-Entry.md new file mode 100644 index 00000000..1d69391f --- /dev/null +++ b/wiki/concepts/Journal-Entry.md @@ -0,0 +1,52 @@ +--- +title: "Journal Entry" +type: concept +tags: [finance, accounting] +sources: [finance-bookkeeper-controller] +last_updated: 2026-05-02 +--- + +## Definition +日记账分录(Journal Entry,JE)是记录非标准或手工财务交易的机制,每笔分录必须满足 GAAP 合规要求并附带完整支持文档和审批记录。 + +## Entry Types + +### Standard Recurring Entries +- 折旧和摊销 +- 租金和保险 +- 工资税和福利应计 +- 预付账款摊销 + +### Adjusting Entries +- 期末调整(未入账收入/费用) +- 纠正错误分录 +- 会计估计调整 + +### Reclassification Entries +- 账户重分类 +- 往来科目调整 + +### Elimination Entries +- 关联方交易抵销 +- 合并报表抵销 + +## Documentation Requirements +> "Journal entries require documentation. Every manual journal entry needs a description, supporting documentation, and approval. 'Adjusting entry' is not a description." + +### Must Include +1. **Description**:详细描述经济业务实质(如"记录11月水电费应计,根据11/15抄表数据") +2. **Supporting Documentation**:发票、合同、计算底稿、邮件确认等 +3. **Approval**:授权人审批记录 +4. **Date & Period**:入账日期和所属期间 + +## Automation Philosophy +> "Automate the recurring, focus the brain on the exceptional. Manual journal entries should be the exception, not the rule." + +## Prior Period Adjustments +> "Never adjust prior periods without disclosure. If a correction impacts previously reported numbers, document the impact and communicate to stakeholders." + +## Related Concepts +- [[Month-End-Close-Process]] +- [[Account Reconciliation]] +- [[GAAP-Compliance]] +- [[Internal Controls]] diff --git a/wiki/concepts/KarpmanDramaTriangle.md b/wiki/concepts/KarpmanDramaTriangle.md new file mode 100644 index 00000000..9c2a35e5 --- /dev/null +++ b/wiki/concepts/KarpmanDramaTriangle.md @@ -0,0 +1,37 @@ +--- +title: "Karpman Drama Triangle" +type: concept +tags: [] +sources: [academic-psychologist] +last_updated: 2026-04-25 +--- + +# Karpman Drama Triangle + +## Aliases +- Drama Triangle +- Karpman Triangle +- Victim Triangle + +## Definition +Karpman 戏剧三角——识别人际互动中最常见的三种心理角色位置及其动态转换。 + +## Three Roles + +| 角色 | 核心信念 | 典型行为 | +|------|----------|----------| +| **Victim(受害者)** | "我不能"、"我无能为力" | 求助、依赖、被动承受 | +| **Persecutor(迫害者)** | "都是你的错" | 指责、控制、批评 | +| **Rescuer(拯救者)** | "你需要我的帮助" | 过度介入、隐性控制 | + +## Dynamic Transitions +戏剧三角的核心机制是**角色转换**: +- Rescuer → Victim:拯救失败后转向受害者心态 +- Victim → Persecutor:长期无力感积累后转向攻击 +- Persecutor → Victim:被迫承担时转为受害者 + +## Application in Character Design +Psychologist Agent 使用此框架映射角色间的权力动态和沟通模式,识别冲突升级的具体触发点。 + +## Connection to Wiki +- Source: [[academic-psychologist]] diff --git a/wiki/concepts/Kinship-System.md b/wiki/concepts/Kinship-System.md new file mode 100644 index 00000000..d4346823 --- /dev/null +++ b/wiki/concepts/Kinship-System.md @@ -0,0 +1,21 @@ +--- +title: "Kinship System" +type: concept +tags: ["anthropology", "kinship", "descent", "alliance", "inheritance"] +last_updated: 2026-04-25 +--- + +## Definition +亲属制度——人类社会组织家族和继嗣关系的系统,决定了继承规则、政治联盟、居住模式和冲突解决方式,是社会的"基础设施"。 + +## Core Framework +- **继嗣规则**:父系(patrilineal)/ 母系(matrilineal)/ 双系(bilateral)/ 双重继嗣(double descent) +- **居住模式**:父居(patrilocal)/ 母居(matrilocal)/ 新居(neolocal)/ 舅居(avunculocal) +- **亲属称谓**:Hawaiian(普遍互称)/ Eskimo(核心家庭特指)/ Sudanese(每个亲属关系独立称谓)/ Omaha(交叉表亲特指) +- **交换理论**:Lévi-Strauss 认为亲属制度本质是女人的交换系统,通过婚姻建立联盟 + +## Connections +- [[Anthropologist-Agent]] ← must_design ← [[Kinship-System]] +- [[Structuralism]] ← analyzes ← [[Kinship-System]] +- [[Functionalism]] ← explains_functions_of ← [[Kinship-System]] +- [[Gift-Economy]] ← parallels ← [[Kinship-System]] diff --git a/wiki/concepts/Kirkpatrick-Model.md b/wiki/concepts/Kirkpatrick-Model.md new file mode 100644 index 00000000..8f6b3a8d --- /dev/null +++ b/wiki/concepts/Kirkpatrick-Model.md @@ -0,0 +1,44 @@ +--- +title: "Kirkpatrick Model" +type: concept +tags: [training-evaluation, learning-theory] +sources: [corporate-training-designer] +last_updated: 2026-05-29 +--- + +## Definition + +Kirkpatrick 四级培训评估模型由 Donald Kirkpatrick 于 1959 年提出,是企业培训效果评估的全球通用框架,从学员反应到业务结果分为四个层级,是衡量培训真实价值的核心工具。 + +## Four Levels + +### Level 1 — Reaction(反应) +- 测量学员对培训的满意程度 +- 方法:培训满意度问卷调查——课程评分、讲师评分、NPS(Net Promoter Score) +- 指标:满意度 ≥ 4.5/5.0,NPS ≥ 50 + +### Level 2 — Learning(学习) +- 测量学员在知识、技能和态度方面的学习成果 +- 方法:知识考试、技能实操评估、案例分析作业 +- 指标:关键课程考试通过率 ≥ 90% + +### Level 3 — Behavior(行为) +- 测量学员在实际工作中行为改变的程度 +- 方法:训后30/60/90天行为追踪——主管观察、关键行为检查清单 +- 指标:训后90天行为改变率 ≥ 60% +- 要求:高投资培训项目(领导力、关键岗位)必须追踪到 Level 3 + +### Level 4 — Results(结果) +- 测量培训对业务指标的最终影响 +- 方法:追踪业务指标变化(营收、客户满意度、生产效率、员工留存) +- 指标:可量化的业务影响(如:新员工上手时间缩短、客户满意度提升) + +## Key Principles +- **层级递进**:Level 1 是基础,Level 4 是终极目标——逐级验证才能确保培训真正创造价值 +- **必须量化**:培训目标必须可测量——不是"提高沟通技能",而是"3个月内将新员工独立完成客户提案的比例从40%提升至70%" +- **用业务语言汇报**:向业务部门汇报培训价值时,使用业务指标而非培训指标 + +## Connections +- [[Kirkpatrick-Model]] ← evaluation_framework ← [[ADDIE-Model]](ADDIE 的 E 阶段通常采用 Kirkpatrick 四级评估) +- [[Kirkpatrick-Model]] ← evaluation_standard ← [[Corporate-Training-Designer]](培训设计师必须掌握的核心评估方法) +- [[Bloom-Taxonomy]] ← learning_objective_framework ← [[Kirkpatrick-Model]](Bloom 定义"学到什么",Kirkpatrick 验证"学到了没有") diff --git a/wiki/concepts/Kishotenketsu.md b/wiki/concepts/Kishotenketsu.md new file mode 100644 index 00000000..e80284cb --- /dev/null +++ b/wiki/concepts/Kishotenketsu.md @@ -0,0 +1,36 @@ +--- +title: "Kishōtenketsu" +type: concept +tags: [] +sources: [] +last_updated: 2026-04-30 +--- + +## Aliases +- Kishōtenketsu +- 起承転結 +- Kishotenketsu Structure + +## Overview +Kishōtenketsu(起承転結)是日本/东亚四幕叙事结构,由四个阶段组成:起(Introduction)、承(Development)、転(Twist)、結(Conclusion)。与西方三幕式的"冲突驱动"不同,Kishōtenketsu 的第三幕" Twist"不必须有冲突,而是引入意外元素,与前两幕形成对比,创造张力和趣味。 + +## Four Stages + +| Stage | Kanji | Description | +|-------|-------|-------------| +| **起 Ki (Introduction)** | 起 | 介绍人物、环境、情境 | +| **承 Sho (Development)** | 承 | 展开/深化已建立的内容 | +| **転 Ten (Twist)** | 転 | 引入意外或无关元素,创造转折 | +| **結 Ketsu (Conclusion)** | 結 | 综合前四部分,赋予新意义 | + +## Key Difference from Western Structure +- **三幕式**:第三幕必须有危机/高潮(Conflict-driven) +- **Kishōtenketsu**:第三幕只是引入对比,不强制冲突——高潮可能出现在第四幕 + +## Examples +- 许多日漫(如《哆啦A梦》单集):建立日常 → 深化日常 → 引入神奇道具 → 意外结果 +- [[Academic Narratologist]] 将其作为**跨文化叙事比较**的核心工具 + +## Relationship to Other Concepts +- [[Three-Act-Structure]]:西方对应模型,但缺少独立的"Twist"阶段 +- [[HeroesJourney]]:Hero's Journey 的结构是冲突驱动的,与 Kishōtenketsu 不同 diff --git a/wiki/concepts/Korean-Corporate-Hierarchy.md b/wiki/concepts/Korean-Corporate-Hierarchy.md new file mode 100644 index 00000000..38c1a9da --- /dev/null +++ b/wiki/concepts/Korean-Corporate-Hierarchy.md @@ -0,0 +1,86 @@ +--- +title: "Korean-Corporate-Hierarchy" +type: concept +tags: [] +sources: [] +last_updated: 2026-05-30 +--- + +## 基本信息 +- **原文**:한국 기업 직급 체계 +- **中文**:韩国企业职级体系 +- **英文**:Korean Corporate Title System + +## 定义 +韩国企业职级体系(직급 체계)是韩国商业文化的核心结构之一。与西方扁平化管理不同,韩国企业保持着严格的层级制度,每个职级都有明确的权利边界和沟通规范。理解和尊重这一体系是在韩国商业成功的关键前提。 + +## 完整职级对照表 + +| 韩文 | 英文对应 | 中文 | 决策权力 | 典型特征 | +|------|---------|------|---------|---------| +| 회장(Hoejang) | Chairman | 会长 | 最高权威 | 基本不直接互动 | +| 사장(Sajang) | CEO/President | 社长 | 最终商业决策 | 通常通过副会长/事业部长汇报 | +| 부사장(Bujajang) | Vice President | 副会长 | 高管级决策 | 重大交易直接参与 | +| 전무(Jeonmu) | Senior Managing Director | 专务 | 重大影响力 | 通常是事业部或子公司一把手 | +| 상무(Sangmu) | Managing Director | 常务 | 部门级权威 | 大型部门或核心子公司负责人 | +| 이사(Isa) | Director | 理事 | 项目级决策 | 可独立推进项目 | +| 부장(Bujang) | General Manager | 部长 | 团队级,很多是你的一线联系人 | 有一定自主决策权 | +| 차장(Chajang) | Deputy Manager | 次长 | 执行权威 | 执行层,通常是实际操作的人 | +| 과장(Gwajang) | Manager | 课长 | 很小的独立权力 | 通常是初次接触的入口点 | +| 대리(Daeri) | Assistant Manager | 代理 | 有限权力,但是很好的信息来源 | 职位低但信息量大 | + +## 称呼规范(必须遵守) + +**核心规则**:永远使用 **职称 + 님(nim)** 的格式 + +| 正确称呼 | 错误称呼 | +|---------|---------| +| 사장님 | 사장 | +| 부장님 |部长 | +| 과장님 | 과장 | +| 김과장님 | 김과장(除非关系非常亲密)| + +### 何时可以用名字 +- 只有当对方明确邀请你直呼其名时 +- 通常在经过多年合作、且对方主动说"以后叫我名字就好"之后 +- 即使可以叫名字,在正式场合仍建议使用职称 + +## 决策权力映射 + +| 你的联系人职级 | 能独立决定 | 需要上报 | 备注 | +|---------------|-----------|---------|------| +| 대리/과장 | 极小(内部门协调) | 几乎所有 | 不要期待决策 | +| 차장 | 小(执行细节) | 大多数 | 能提供内部信息 | +| 부장 | 中等(团队级) | 预算/跨部门 | 通常是你的主要联系人 | +| 이사 | 较大(项目级) | 大额预算 | 有一定影响力 | +| 상무以上 | 大(部门级) | 集团层面 | 品의发起人 | + +## 级别间互动潜规则 +1. **永远不要绕过级别联系上级** — 即使你直接联系了社长,他也会把事情推回给层级下属 +2. **信息自下而上流动** — 部长是连接你和高层的主要信息通道 +3. **级别决定座位/餐饮顺序** — 회식中体现最明显 +4. **Email 礼仪** — 发送给部长时,通常抄送 차장/과장,实际执行者需要知情 + +## 关于"越级"的严重后果 + +> **永远不要绕过你的联系人直接联系其上级** + +这在韩国商业中不是"高效率",而是**关系终结行为**。后果包括: +- 你的联系人会感到被羞辱和背叛 +- 对方公司会将你标记为"不懂规矩的外国人" +- 未来的合作大门关闭 +- 你的联系人即使后来离开了,你也会被整个公司记住 + +**例外**:只有在联系人明确授权时说"我会直接联系社长"才可越级。 + +## SME vs 财阀的层级差异 + +| 维度 | SME | 财阀 | +|------|-----|------| +| 层级数 | 3-5 级 | 7-10 级 | +| 扁平化程度 | 较高,部长可直接决策 | 极低,每级都有 gatekeeper | +| 外国人直接接触高层可能性 | 存在 | 几乎不可能 | +| 决策周期 | 短 | 极长 | + +## 来源 +- [[specialized-korean-business-navigator]] — Korean Corporate Title Hierarchy 完整规范 diff --git a/wiki/concepts/Kraljic-Matrix.md b/wiki/concepts/Kraljic-Matrix.md new file mode 100644 index 00000000..3baf0f2f --- /dev/null +++ b/wiki/concepts/Kraljic-Matrix.md @@ -0,0 +1,44 @@ +--- +title: "Kraljic Matrix" +type: concept +tags: ["supply-chain", "procurement", "strategy", "category-management"] +last_updated: 2026-04-25 +--- + +## Aliases +- Kraljic 采购矩阵 +- Kraljic Model + +## Definition + +Kraljic Matrix(克拉利克矩阵)是由 Peter Kraljic 于 1983 年提出的供应商分类与采购战略框架,通过两个维度将采购品类划分为四类,以制定差异化的采购策略。 + +## Two Dimensions +- **利润影响(Profit Impact)**:该品类对公司利润/成本的影响力 +- **供应风险(Supply Risk)**:供应市场的复杂性、供应商集中度、替代难度等 + +## Four Quadrants + +| 类别 | 特征 | 策略 | +|------|------|------| +| **战略型(Strategic)** | 高利润影响 + 高供应风险 | 建立长期合作伙伴关系,共同投资,深度供应商协同 | +| **杠杆型(Leverage)** | 高利润影响 + 低供应风险 | 充分利用采购量杠杆,竞争性招标,追求最优价格 | +| **瓶颈型(Bottleneck)** | 低利润影响 + 高供应风险 | 寻找替代方案,降低依赖,确保供应连续性 | +| **常规型(Routine)** | 低利润影响 + 低供应风险 | 简化采购流程,标准化,自动化的机会 | + +## Key Insights + +- 每年至少重新评估一次品类定位,动态调整采购策略 +- 战略型品类需配备专职采购经理,建立战略合作伙伴关系 +- 瓶颈型品类应主动寻找替代物料或开发多个供应源 +- 常规型品类可通过电子采购平台实现自动化,降低交易成本 + +## Applications + +- [[Supply Chain Strategist Agent]] 使用 Kraljic Matrix 进行分类采购策略开发 +- 采购支出分析(spend analysis)通常作为矩阵定位的数据基础 +- 可结合 ABC 分类(按采购金额)对品类进一步细分 + +## Connections +- [[Supply Chain Strategist Agent]] ← uses_framework ← [[Kraljic Matrix]] +- [[TCO]] ← related_to ← [[Kraljic Matrix]](战略型品类 TCO 评估尤为重要) diff --git a/wiki/concepts/LLM-Wiki.md b/wiki/concepts/LLM-Wiki.md index ded94b82..e4f21121 100644 --- a/wiki/concepts/LLM-Wiki.md +++ b/wiki/concepts/LLM-Wiki.md @@ -1,51 +1,51 @@ ---- -title: "LLM Wiki" -type: concept -tags: [AI知识管理, 知识系统, RAG对比] -sources: [] -last_updated: 2026-04-09 ---- - -# LLM Wiki - -## 描述 -让 AI 增量构建和维护一个持久化的 Wiki 系统,页面之间互相链接,知识越积越厚。 - -## 核心理念(来自 Karpathy 2026-03 分享) - -### RAG 模式的问题 -"每次从零检索",知识不积累。 - -### LLM Wiki 的优势 -- AI 在执行任务过程中顺手维护链接 -- 更新摘要 -- 添加 Tag -- 标记新旧矛盾 -- 页面间互相链接,知识越积越厚 -- 不是被动等着被查询 - -## 与 RAG 的对比 - -| 维度 | RAG | LLM Wiki | -|------|-----|----------| -| 知识积累 | 每次从零检索 | 增量构建 | -| 上下文 | 临时检索 | 持久化链接 | -| 关系 | 独立文档 | 互相链接形成网络 | -| 维护 | 被动等待查询 | 主动更新 | - -## 实现案例 - -### 用户实践(养虾日记3) -- **Obsidian 做知识库**(多端同步) -- **Gitea 做版本控制**(Git 历史) -- **OpenClaw 做写入接口**(obsidian skill) -- AI 在执行任务的过程中顺手维护链接、更新摘要、添加 Tag、标记新旧矛盾 - -### 相关工具 -- [[Obsidian]]:本地 Wiki 载体 -- [[Gitea]]:版本控制 -- [[OpenClaw]]:写入接口 - -## 相关来源 -- [[养虾日记3-用-obsidian-gitea-为-ai-助手构建持久化笔记系统]] -- [[karpathy-最新分享-用-llm-搭建个人知识库-告别-rag-的低效循环]] +--- +title: "LLM Wiki" +type: concept +tags: [AI, knowledge-base, persistence] +sources: [karpathy-最新分享-用-llm-搭建个人知识库-告别-rag-的低效循环, llm-wiki, 养虾日记3] +last_updated: 2026-04-20 +--- + +## Aliases +- LLM-based Wiki +- LLM Wiki 模式 +- Persistent Wiki +- Obsidian 是 IDE,LLM 是程序员,Wiki 是代码库 + +## Definition +Karpathy 提出的个人知识管理范式——让 LLM **增量构建和维护**一个持久化的 Wiki(互相链接的 Markdown 文件集合),而不是像 RAG 那样每次查询从零检索。 + +## Core Architecture +三层架构: +1. **Raw Sources**:原始文档(永远不修改) +2. **Wiki**:结构化摘要页面,互相链接 +3. **Schema**:[[LLM Wiki]] 的方法论沉淀 + +## Core Principles +- **知识编译一次,持续保持最新**:不是每次查询时从零推导,而是预先建立知识网络 +- **AI 承担"记账式"维护工作**:总结、交叉引用、归档、更新摘要 +- **人类只负责**:筛选资料、提出问题、思考意义 +- **维护成本趋近于零**:AI 不会厌倦,不会忘记,一次操作可以改十五个文件 +- **核心比喻**([[llm-wiki]]):**"Obsidian 是 IDE,LLM 是程序员,Wiki 是代码库"** + +## Relationship to Second Brain +- 属 [[Second Brain]] 的架构理论层 +- [[养虾日记3]] 记录了将 LLM Wiki 理念落地到 [[Obsidian]] + [[OpenClaw]] 持久化笔记系统的全过程 + +## Origins +灵感源自 Vannevar Bush 的 **Memex**(1945)——一种设想中的"将所有书籍、记录和通信连接起来的设备"。 + +## Implementation Stack +- **[[Obsidian]]**:本地笔记工具,Wiki 载体 +- **[[Obsidian Web Clipper]]**:采集网页文章为 Markdown +- **[[Graph View]]**:图谱视图,做 Lint 健康检查和发现知识盲区 +- **[[Obsidian Git]]**:版本管理,自动 commit+push +- **[[qmd]]**:本地 Markdown 搜索引擎(规模大时使用) +- **[[Dataview]]**:frontmatter 数据库式查询(可选) +- **[[Marp]]**:Wiki 内容导出为幻灯片(可选) + +## Connections +- [[LLM Wiki]] ← 提出者 ← [[Karpathy]] +- [[LLM Wiki]] ← 工具基础 ← [[Obsidian]] +- [[LLM Wiki]] ← 对比/替代 → [[RAG]] +- [[LLM Wiki]] ← 上层概念 ← [[Second Brain]] diff --git a/wiki/concepts/LLM-as-a-Judge.md b/wiki/concepts/LLM-as-a-Judge.md new file mode 100644 index 00000000..08e63412 --- /dev/null +++ b/wiki/concepts/LLM-as-a-Judge.md @@ -0,0 +1,46 @@ +--- +title: "LLM-as-a-Judge" +type: concept +tags: [] +sources: [engineering-autonomous-optimization-architect] +last_updated: 2026-05-01 +--- + +# LLM-as-a-Judge + +## Definition + +LLM-as-a-Judge——以一个 LLM 作为自动化评估器,对另一个 LLM(或同一 LLM 的不同配置)的输出质量进行持续量化评分。 + +## Evaluation Framework + +在暗启动实验前必须建立明确的数学评分标准: + +| 维度 | 分数 | 说明 | +|------|------|------| +| JSON 格式正确性 | 5 分 | 输出是否结构化、可解析 | +| 延迟 | 3 分 | 响应时间是否在 SLA 内 | +| 准确性 | 5 分 | 内容是否符合要求 | +| 幻觉检测 | -10 分 | 是否出现事实性错误 | + +## Why It Matters + +- **可扩展**:无需人工标注,自动评估 1000+ 次实验 +- **一致性**:相同标准持续应用,避免人工评审的主观波动 +- **速度**:可异步并行执行,不阻塞生产流量 + +## Example Prompt + +``` +You are evaluating the output of Model B against Model A. +Score from 1-10 on: +1. Factual accuracy (5 points) +2. JSON structure validity (3 points) +3. Completeness (2 points) +Deduct 10 points if hallucination is detected. +``` + +## Related + +- [[Autonomous-Optimization-Architect]]:实施 LLM-as-a-Judge 的核心 Agent +- [[Shadow-Traffic]]:LLM-as-a-Judge 在影子测试中评估实验模型表现 diff --git a/wiki/concepts/LLMHandoff.md b/wiki/concepts/LLMHandoff.md new file mode 100644 index 00000000..76de2eb2 --- /dev/null +++ b/wiki/concepts/LLMHandoff.md @@ -0,0 +1,58 @@ +--- +title: "LLMHandoff" +type: concept +tags: ["llm", "agent", "handoff", "transcription", "summarization"] +last_updated: 2026-05-02 +--- + +# LLMHandoff(LLM 交接协议) + +## Definition + +LLM Handoff 是在 Agent 管道中,将结构化数据(转录文本、会议记录、文档)传递给下游 LLM 进行摘要/问答/行动项提取的标准接口。定义格式化规则和任务指令,使下游 LLM 能准确理解输入并产生期望输出。 + +## Purpose + +在 [[StructuredTranscriptJSON]] 基础上,LLM Handoff 定义: +1. **格式化规则**:如何将带时间戳的段落转为 LLM 可读的文本格式 +2. **任务指令**:不同任务(摘要/问答/行动项)对应的 prompt 指令 +3. **Schema 输出**:LLM 应返回的结构化格式(如 action_items、summary 等) + +## Handoff Payload Format + +```json +{ + "task": "summarize", + "source_type": "transcript", + "source_id": "meeting-2026-05-02-001", + "total_duration": 3600.5, + "speakers": ["SPEAKER_00", "SPEAKER_01"], + "content": "[0.0s] Hello, welcome...\n[5.2s] Thank you...\n...", + "instructions": { + "summarize": "Produce a concise summary, section headers for topic changes, and a bulleted action items list with speaker attribution.", + "action_items": "Extract all action items and commitments with the speaker who made them and the timestamp.", + "qa": "Answer questions about the transcript using only information present in the content. Cite timestamps." + } +} +``` + +## Downstream Integrations + +- [[LangChain]]:`ConversationalRetrievalChain` / `LLMChain` +- CrewAI:`Agent` 接收 JSON payload 作为 context +- 自定义 LLM 管道:直接读取 payload 并注入 system prompt + +## Critical Design Considerations + +- **保留时间戳锚点**:`[5.2s]` 格式使 LLM 能引用具体时刻 +- **说话人归属**:`[SPEAKER_00]` 前缀使 LLM 能区分不同发言人的观点 +- **分块交付**:超长转录可分批传递给 LLM(避免 token 超限) + +## Related Concepts +- [[StructuredTranscriptJSON]] — Handoff 的输入数据格式 +- [[PIIRedaction]] — Handoff 前必须脱敏(避免 LLM 学习 PII) +- [[SpeakerDiarization]] — 说话人标签是 Handoff 文本格式化的核心要素 +- [[Human-Handoff]] — LLM → 人类的交接(Agentic 系统中的另一方向) + +## Related Sources +- [[engineering-voice-ai-integration-engineer]] diff --git a/wiki/concepts/LLMWikiArchitecture.md b/wiki/concepts/LLMWikiArchitecture.md new file mode 100644 index 00000000..99e63508 --- /dev/null +++ b/wiki/concepts/LLMWikiArchitecture.md @@ -0,0 +1,34 @@ +--- +title: "LLMWikiArchitecture" +type: concept +tags: [architecture, knowledge-management, llm] +sources: [llm-wiki] +last_updated: 2026-05-02 +--- + +## Overview +LLM Wiki 架构是 [[PersistentWiki]] 的结构化实现,采用三层架构:Raw Sources → Wiki → Schema。 + +## Three Layers + +### Layer 1: Raw Sources(原始资源) +- 用户精心收集的源文档:文章、论文、图像、数据文件 +- **不可变**:LLM 读取但不修改,是唯一的真实来源(Source of Truth) +- 位于仓库的 `raw/` 目录 + +### Layer 2: Wiki(知识层) +- LLM 生成的 Markdown 文件目录 +- 包含:摘要页、实体页、概念页、综合分析、概览、索引 +- **LLM 完全拥有并维护**:创建页面、新来源到达时更新、维护交叉引用、保持一致性 +- 位于仓库的 `wiki/` 目录 + +### Layer 3: Schema(模式文件) +- 配置文件,告诉 LLM Wiki 的结构、约定和工作流 +- 例如:Claude Code 的 `CLAUDE.md`、Codex 的 `AGENTS.md` +- 是让 LLM 成为"规范的 Wiki 维护者"而非"普通聊天机器人"的关键 +- 用户和 LLM 共同随时间演进 + +## Design Philosophy +- **人读 LLM 写**:用户消费 Wiki 内容,LLM 负责编写和维护 +- **LLM 不厌倦**:LLM 不会忘记更新交叉引用,一次可以处理多个文件 +- **维护成本接近零**:正是 LLM 承担维护工作,使 Wiki 可以持续运行 diff --git a/wiki/concepts/LSIF.md b/wiki/concepts/LSIF.md new file mode 100644 index 00000000..e7143cb5 --- /dev/null +++ b/wiki/concepts/LSIF.md @@ -0,0 +1,39 @@ +--- +title: "LSIF" +type: concept +tags: ["LSP", "code-index", "semantic-index", "static-analysis", "pre-computed"] +sources: ["lsp-index-engineer.md"] +last_updated: 2026-04-29 +--- + +## Definition +LSIF(Language Server Index Format)是一种标准化的预计算语义索引格式,用于存储语言服务器已分析过的代码语义数据(如符号定义、引用、继承关系等),使代码智能工具无需实时运行 LSP 服务器即可提供导航功能。 + +## Core Mechanism + +### 用途 +- **离线索引**:项目提前构建 LSIF 索引,CI/CD 阶段预先生成 +- **冷启动加速**:无需等待 LSP 服务器初始化,立即提供代码导航 +- **分发预索引数据**:发布 npm 包时附带已编译的 LSIF 索引 +- **跨工具共享**:同一索引可为多个工具(IDE/CLI/API)共用 + +### 索引内容 +- 符号定义位置 +- 符号引用关系 +- 文档结构(文件树/大纲) +- Hover 文档内容 +- 类型层次信息 + +### 与 nav.index.jsonl 的关系 +LSIF 是 nav.index.jsonl 格式的导入/导出标准。graphd 支持: +- **导出**:将内存中的语义图谱导出为 LSIF 格式 +- **导入**:将预先构建的 LSIF 索引加载到内存,加速启动 + +## Implementation Notes +LSP/Index Engineer 将 LSIF 视为 nav.index.jsonl 格式的上游标准,通过 LSIF 实现预计算语义数据的导入/导出。 + +## Connections +- [[LSIF]] ← is_standard_for ← [[SemanticCodeGraph]] +- [[LSIF]] ← can_be_imported_by ← [[GraphDaemon]] +- [[LSIF]] ← is_alternative_to ← [[IncrementalGraphUpdate]] +- [[LSIF]] ← exports ← [[nav.index.jsonl]] diff --git a/wiki/concepts/LSPOrchestrator.md b/wiki/concepts/LSPOrchestrator.md new file mode 100644 index 00000000..2bb20f6b --- /dev/null +++ b/wiki/concepts/LSPOrchestrator.md @@ -0,0 +1,68 @@ +--- +title: "LSPOrchestrator" +type: concept +tags: ["LSP", "code-intelligence", "orchestration", "multi-language"] +sources: ["lsp-index-engineer.md"] +last_updated: 2026-04-29 +--- + +## Definition +LSP 编排器(LSP Orchestrator)是在 graphd 架构中协调多个语言服务器并发运行的中间层,负责统一管理不同语言的 LSP 客户端、正确处理各服务器的能力协商、并将对异构 LSP 响应格式标准化为统一格式。 + +## Core Mechanism + +### Client Initialization +```typescript +class LSPOrchestrator { + async initialize(projectRoot: string) { + const tsClient = new LanguageClient('typescript', { + command: 'typescript-language-server', + args: ['--stdio'], + rootPath: projectRoot + }); + const phpClient = new LanguageClient('php', { + command: 'intelephense', + args: ['--stdio'], + rootPath: projectRoot + }); + await Promise.all([ + this.initializeClient('typescript', tsClient), + this.initializeClient('php', phpClient) + ]); + } +} +``` + +### Multi-Language Coordination +- **并行初始化**:所有语言服务器并发启动 +- **能力协商**:为每个服务器独立检查 `ServerCapabilities` +- **语言检测**:根据文件扩展名路由到对应语言服务器 +- **请求批处理**:合并相邻请求以减少往返开销 +- **缓存策略**:积极缓存但精确失效 + +### Capability-Negotiation Pattern +```typescript +async getDefinition(uri: string, position: Position): Promise { + const lang = this.detectLanguage(uri); + const client = this.clients.get(lang); + if (!client || !this.capabilities.get(lang)?.definitionProvider) { + return []; + } + return client.sendRequest('textDocument/definition', { + textDocument: { uri }, + position + }); +} +``` + +## Performance Optimization +- **请求批处理**:合并多个相邻 LSP 请求 +- **零拷贝技术**:内存映射文件和大数据集 +- **Worker Threads**:CPU 密集型操作分流到 Worker +- **锁无关数据结构**:并发访问无锁化 + +## Connections +- [[LSPOrchestrator]] ← part_of ← [[GraphDaemon]] +- [[LSPOrchestrator]] ← coordinates ← [[LanguageServerProtocol]] +- [[LSPOrchestrator]] ← feeds ← [[SemanticCodeGraph]] +- [[LSPOrchestrator]] ← uses ← [[IncrementalGraphUpdate]] diff --git a/wiki/concepts/LambdaSafetyGate.md b/wiki/concepts/LambdaSafetyGate.md new file mode 100644 index 00000000..5d3a707a --- /dev/null +++ b/wiki/concepts/LambdaSafetyGate.md @@ -0,0 +1,40 @@ +--- +title: "Lambda Safety Gate" +type: concept +tags: [] +last_updated: 2026-05-01 +--- + +## Definition + +在执行 SLM 生成的 Python lambda 转换函数前,对其进行严格安全验证的防御机制。防止恶意代码、文件系统操作或任意代码执行通过 AI 修复管道注入系统。 + +## Validation Rules + +```python +def validate_lambda(lambda_str: str) -> bool: + forbidden = ['import', 'exec', 'eval', 'os.', 'subprocess', '__'] + if not lambda_str.startswith('lambda'): + raise ValueError("Rejected: output must be a lambda function") + if any(term in lambda_str for term in forbidden): + raise ValueError("Rejected: forbidden term in lambda") + return True +``` + +## Validation Checklist + +| Check | Rule | On Failure | +|-------|------|------------| +| Prefix | 必须以 `lambda` 开头 | 拒绝,路由至人工隔离 | +| Keywords | 禁止 `import/exec/eval/os/subprocess/__` | 拒绝,路由至人工隔离 | +| Confidence | 置信度必须 ≥ 0.75 | 拒绝,路由至人工隔离 | + +## Rationale + +AI 生成的文本可能包含任意代码。Lambda Safety Gate 确保即使 SLM 被注入恶意提示词,修复管道也仅执行无害的数据转换函数。 + +## Related + +- [[Air-Gapped SLM Fix Generation]] +- [[Zero Data Loss Guarantee]] +- [[AI Generates Logic Not Data]] diff --git a/wiki/concepts/Landscape.md b/wiki/concepts/Landscape.md new file mode 100644 index 00000000..2546bce8 --- /dev/null +++ b/wiki/concepts/Landscape.md @@ -0,0 +1,54 @@ +--- +title: "Landscape" +type: concept +tags: ["unreal-engine", "terrain", "environment", "material"] +sources: ["unreal-world-builder"] +last_updated: 2026-04-30 +--- + +## Aliases +- UE5 Landscape +- Terrain System +- 地形系统 +- Landscape System + +## Definition +Landscape 是 Unreal Engine 5 的地形系统,支持超大尺寸地形的编辑、渲染和运行时修改。它使用分块(Components)架构,支持多层材质混合,并通过 Runtime Virtual Texturing(RVT)优化多层混合性能。 + +## Resolution Rule +Landscape 分辨率必须满足公式:**分辨率 = (n × ComponentSize) + 1**,必须使用 Landscape Import Calculator 确定,禁止猜测。 + +## Layer Constraints +- **单区域最多 4 个活跃材质层**:超过则导致材质排列组合爆炸(Material Permutation Explosion) +- **超过 2 层材质必须启用 RVT**:消除逐像素层混合开销 +- **景观空洞**:必须使用 Visibility Layer,禁止删除组件(删除会破坏 LOD 和水体系统集成) + +## Master Material Architecture +典型 4 层 Landscape Master Material: +- **Layer 0**:Grass(基底层,始终存在) +- **Layer 1**:Dirt/Path(沿磨损路径替换草地) +- **Layer 2**:Rock(坡度驱动,> 35° 自动混合) +- **Layer 3**:Snow(高度驱动,> 800m 显现) + +## Blending Mechanisms +- **Auto-Slope Rock Blend**:WorldAlignedBlend,坡度阈值 = 0.6(dot(worldUp, surfaceNormal)) +- **Auto-Height Snow Blend**:Absolute World Position Z > SnowLine 参数时雪层淡入 +- **RVT 分辨率**:每 4096m² 格子 2048×2048,格式 YCoCg 压缩 + +## RVT Integration +- 启用 Runtime Virtual Texturing 的 Landscape Material +- Virtual Texture Producer 需在 Landscape 上启用 +- RVT Output Volume 每 4096m² 格子对齐放置 +- RVT 可采样游戏标签或 Decal Actor 驱动动态地形状态(如雨后湿润度) + +## Landscape Splines +用于道路和河流雕刻:样条线变形的网格自动贴合地形拓扑。 + +## Connections +- [[UnrealWorldBuilder]] ← 地形基础 ← Landscape +- [[UnrealEngine5]] ← 核心引擎 ← Landscape +- [[RuntimeVirtualTexturing]] ← 层混合优化 ← Landscape +- [[WorldPartition]] ← 空间管理 ← Landscape + +## Sources +- [[unreal-world-builder]] diff --git a/wiki/concepts/LanguageServerProtocol.md b/wiki/concepts/LanguageServerProtocol.md new file mode 100644 index 00000000..52f06c3b --- /dev/null +++ b/wiki/concepts/LanguageServerProtocol.md @@ -0,0 +1,53 @@ +--- +title: "LanguageServerProtocol" +type: concept +tags: ["LSP", "code-intelligence", "language-server", "IDE", "editor"] +sources: ["lsp-index-engineer.md"] +last_updated: 2026-04-29 +--- + +## Definition +Language Server Protocol(LSP)是 Microsoft 在 2016 年首创的标准化协议,定义了**语言服务器**(Language Server)与**语言客户端**(Editor/IDE)之间的通信规范,使编程语言工具能够在任何编辑器中提供一致的代码智能功能(跳转定义、查找引用、悬停文档、自动完成等),无需为每个编辑器-语言组合单独实现。 + +## Core Mechanism + +### Protocol Architecture +- **Language Server**:独立进程,负责语言特定的代码分析(解析、类型检查、语义分析) +- **Language Client**:编辑器/IDE 端,负责用户交互和结果展示 +- **Communication**:通过 JSON-RPC(2.0)在 stdin/stdout 之间传输消息 + +### LSP 3.17 关键能力 +- **textDocument/didOpen** — 文档打开通知 +- **textDocument/definition** — 跳转到定义 +- **textDocument/references** — 查找引用 +- **textDocument/hover** — 悬停文档 +- **textDocument/completion** — 自动完成 +- **textDocument/publishDiagnostics** — 诊断信息发布 +- **workspace/symbol** — 工作区符号搜索 + +### Capability Negotiation +客户端在 `initialize` 请求中声明自身能力: +```json +{ + "capabilities": { + "textDocumentSync": 1, + "definitionProvider": true, + "referencesProvider": true, + "hoverProvider": true + } +} +``` +服务器在响应中声明支持的能力。**LSP/Index Engineer 强制要求永远检查服务器能力响应,而非假设支持某功能。** + +### Lifecycle +`initialize` → `initialized` → (正常运行)→ `shutdown` → `exit` + +## Multi-Language Orchestration +LSP 的核心价值在于使多语言支持标准化。LSP/Index Engineer 的 graphd 通过协调多个语言服务器(TypeScript、PHP、Go、Rust、Python),将各自 LSP 响应统一转换为语义图谱,实现跨语言的代码导航。 + +## Connections +- [[LanguageServerProtocol]] ← enables ← [[LSPOrchestrator]] +- [[LanguageServerProtocol]] ← powers ← [[SemanticCodeGraph]] +- [[LSPOrchestrator]] ← coordinates ← [[TypeScriptLanguageServer]] +- [[LSPOrchestrator]] ← coordinates ← [[Intelephense]] +- [[LanguageServerProtocol]] ← uses ← [[LSIF]] diff --git a/wiki/concepts/LargeWorldCoordinates.md b/wiki/concepts/LargeWorldCoordinates.md index da33dbd3..6d0c1cc6 100644 --- a/wiki/concepts/LargeWorldCoordinates.md +++ b/wiki/concepts/LargeWorldCoordinates.md @@ -1,40 +1,48 @@ --- -title: "Large World Coordinates" +title: "LargeWorldCoordinates" type: concept -tags: ["unreal-engine", "coordinate-system", "precision", "ue5", "open-world"] +tags: ["unreal-engine", "coordinates", "precision", "open-world"] sources: ["unreal-world-builder"] -last_updated: 2026-04-26 +last_updated: 2026-04-30 --- +## Aliases +- LWC +- Large World Coordinates +- 大世界坐标 +- 双精度坐标 + ## Definition -Large World Coordinates(LWC),UE5 双精度坐标系统,通过在引擎层面使用 double(64 位浮点)替代 float(32 位浮点)存储世界位置坐标,解决超大世界(>2km)远距离处的浮点精度误差问题。 +Large World Coordinates(LWC)是 Unreal Engine 5 引入的双精度(double)坐标系统,用于解决超大世界(任何轴超过 2km)中的浮点精度问题。无 LWC 时,约 20km 处开始出现可见的浮点精度错误。 -## The Precision Problem -- 单精度浮点(float)在距离原点约 20km 处开始出现可见精度误差 -- 误差表现:抖动(Jitter)、接缝(Seam)、几何体重影(Ghosting) -- 开放世界项目(4km² ~ 64km²)极易触碰到此阈值 +## Precision Problem +IEEE 754 单精度浮点数(float)在以下场景产生精度损失: +- **大数值**:坐标值越大,相邻值之间的 gap 越大 +- **远距离相加**:大坐标值与小数值的加法丢失精度 +- **累积误差**:多次变换后误差累积 -## When LWC is Required -- **任何轴超过 2km 的世界必须启用 LWC** -- 测试方法:在距离原点 100km 处生成玩家,验证无视觉或物理瑕疵 +## LWC Enabling Threshold +- **强制启用**:世界任何轴超过 2km +- **精度损失临界点**:~20km(无 LWC 时可见) +- **最大安全范围**:建议 100km 以内(即使启用 LWC) -## LWC Compatibility Requirements -### Shader/Material -- 替换所有直接 world position 采样为 `LWCToFloat()` 函数 -- 否则可能导致远处的材质出现视觉错误 +## Code Changes Required +| 位置 | float → double 替代 | +|------|-------------------| +| 游戏性代码(位置计算) | `FVector` → `FVector3d` | +| 着色器/材质 | 直接世界位置采样 → `LWCToFloat()` 转换 | +| 网络复制 | 仍用单精度(本地双精度,复制时转换) | -### Gameplay Code -- 世界位置使用 `FVector3d`(双精度)而非 `FVector`(单精度) -- 特别是在处理坐标计算、Actor 放置、寻路等逻辑时 +## LWC Compliance Audit +迁移到 LWC 时必须审查: +- [ ] 所有着色器和材质使用 `LWCToFloat()` 而非直接世界位置采样 +- [ ] 游戏中所有位置计算使用 `FVector3d` +- [ ] 在 100km 以外spawn玩家并验证无视觉/物理瑕疵 -### Asset Pipeline -- 检查第三方 DDC(Derived Data Cache)资产是否正确配置 LWC -- 某些旧资产导入流程可能未处理双精度坐标 +## Connections +- [[UnrealWorldBuilder]] ← 坐标系统 ← LargeWorldCoordinates +- [[UnrealEngine5]] ← 核心引擎 ← LargeWorldCoordinates +- [[WorldPartition]] ← 空间管理 ← LargeWorldCoordinates -## Relationship to World Partition -LWC 与 World Partition 协同:World Partition 管理大世界的分区流送,LWC 解决大世界的坐标精度问题,两者共同支撑 UE5 开放世界技术栈。 - -## Related -- [[UnrealWorldBuilder]] — LWC 配置与审计专家 -- [[WorldPartition]] — LWC 的配套分区管理框架 -- [[Nanite]] — Nanite 虚拟几何体在大世界中的使用不受 LWC 影响(Nanite 内部使用相对坐标) +## Sources +- [[unreal-world-builder]] diff --git a/wiki/concepts/Layout-Framework.md b/wiki/concepts/Layout-Framework.md new file mode 100644 index 00000000..fce82a7f --- /dev/null +++ b/wiki/concepts/Layout-Framework.md @@ -0,0 +1,61 @@ +--- +title: "Layout Framework" +type: concept +tags: [css, layout, responsive, grid, flexbox] +sources: [design-ux-architect.md] +last_updated: 2026-04-24 +--- + +## Definition + +Layout Framework 是基于 CSS Grid 和 Flexbox 的响应式布局系统,定义容器、网格、间距和断点规范,为开发者提供可信赖的实现基础。 + +## Container System + +- **Mobile**:全宽,16px padding +- **Tablet**:768px max-width,居中 +- **Desktop**:1024px max-width,居中 +- **Large**:1280px max-width,居中 + +```css +.container { + width: 100%; + max-width: var(--container-lg); + margin: 0 auto; + padding: 0 var(--space-4); +} +``` + +## Grid Patterns + +```css +.grid-2-col { + display: grid; + grid-template-columns: 1fr 1fr; + gap: var(--space-8); +} + +@media (max-width: 768px) { + .grid-2-col { + grid-template-columns: 1fr; + gap: var(--space-6); + } +} +``` + +## Component Hierarchy + +1. **Layout Components**:containers, grids, sections +2. **Content Components**:cards, articles, media +3. **Interactive Components**:buttons, forms, navigation +4. **Utility Components**:spacing, typography, colors + +## Related Concepts + +- [[CSS-Design-System]]:提供设计 Token 支撑布局系统 +- [[Responsive-Breakpoints]]:移动优先断点策略 +- [[Component-Architecture]]:组件命名和层级结构 + +## Sources + +- [[design-ux-architect]] — Layout Framework 的完整定义和示例代码 diff --git a/wiki/concepts/Liminality.md b/wiki/concepts/Liminality.md new file mode 100644 index 00000000..46fa3853 --- /dev/null +++ b/wiki/concepts/Liminality.md @@ -0,0 +1,24 @@ +--- +title: "Liminality" +type: concept +tags: ["anthropology", "ritual", "threshold", "communitas", "turner"] +last_updated: 2026-04-25 +--- + +## Definition +阈限(Liminality)——仪式过程中参与者处于"之间"状态的阶段,从旧社会结构中分离但尚未整合进新状态,具有特殊的社会地位和无限可能性。 + +## Core Framework +- **van Gennep 三阶段**:分离(separation)→ 阈限(liminality)→ 整合(incorporation) +- **Communitas**:阈限状态中产生的强烈平等主义和直接人际连接,超越正常社会等级和身份 +- **社会转化**:阈限是社会结构暂时"溶解"的时刻,是文化创新和集体情感强化的关键时刻 +- **阈限悖论**:参与者既被看做"无名"又具有神圣性,既无地位又被赋予特殊权力 + +## Key Thinkers +- Arnold van Gennep(仪式三阶段提出者) +- [[Victor-Turner]](阈限和 communitas 概念发展者) + +## Connections +- [[Anthropologist-Agent]] ← uses_framework ← [[Liminality]] +- [[Symbolic-Anthropology]] ← provides_interpretive_tools ← [[Liminality]] +- [[Rites-of-Passage]] ← operates_in ← [[Liminality]] diff --git a/wiki/concepts/LintWorkflow.md b/wiki/concepts/LintWorkflow.md new file mode 100644 index 00000000..980f15b0 --- /dev/null +++ b/wiki/concepts/LintWorkflow.md @@ -0,0 +1,41 @@ +--- +title: "LintWorkflow" +type: concept +tags: [workflow, knowledge-management, llm, quality] +sources: [llm-wiki] +last_updated: 2026-05-02 +--- + +## Overview +检查工作流(Lint Workflow)是 [[PersistentWiki]] 的定期健康检查机制——让 LLM 定期检查 Wiki 的质量,发现问题并提出改进建议。 + +## Standard Checks + +### 1. 孤立页面(Orphan Pages) +没有任何其他页面通过 `[[wikilinks]]` 指向它的 Wiki 页面。 + +### 2. 断链(Broken Links) +`[[WikiLinks]]` 指向不存在的页面。 + +### 3. 内容冲突(Contradictions) +跨页面存在相互矛盾的论点。 + +### 4. 过时摘要(Stale Summaries) +有更新来源后未同步更新的页面。 + +### 5. 缺失 Entity 页面 +在 3 个以上页面中被提及但没有独立页面的实体。 + +### 6. 数据缺口(Data Gaps) +Wiki 无法回答的问题,建议补充新来源。 + +## Trigger +触发方式:用户说 "lint" + +## Output +输出检查报告,询问用户是否保存为 `wiki/lint-report.md`。 + +## Design Principles +- **定期执行**:保持 Wiki 健康,防止问题积累 +- **LLM 擅长发现**:LLM 擅长提出新的研究问题和新的来源建议 +- **自动化维护**:配合 [[IngestWorkflow]] 和 [[QueryWorkflow]],构成完整的 Wiki 生命周期管理 diff --git a/wiki/concepts/Localization.md b/wiki/concepts/Localization.md new file mode 100644 index 00000000..518532fb --- /dev/null +++ b/wiki/concepts/Localization.md @@ -0,0 +1,62 @@ +--- +title: "Localization" +type: concept +tags: + - marketing + - cross-border + - globalization + - multilingual + - ecommerce +sources: + - marketing-cross-border-ecommerce +last_updated: 2026-04-26 +--- + +## Aliases +- Localization +- 本地化 +- 市场本地化 +- 跨文化本地化 + +## Definition + +Localization(本地化)是指将产品、Listing、内容和服务根据目标市场的语言、文化审美、消费习惯、定价能力和监管要求进行适应性调整的过程。在跨境电商中,本地化决定产品能否在目标市场获客,是与"翻译"(translation)相对的概念——不仅转换语言,更转换用户体验。 + +## Core Dimensions + +### 语言本地化 +- 母语级 Listing 撰写(机器翻译是转化率最大杀手) +- 文化禁忌和敏感词规避 +- 多语言 SEO(标题、描述、Backend Search Terms) +- 客服脚本的本地语言版本 + +### 视觉本地化 +- 主图风格适配目标市场审美(美国简洁白底 vs 日本生活场景) +- Lifestyle 图片融入本地生活情境 +- 信息图设计符合本地信息获取习惯 +- 包装设计符合当地文化偏好 + +### 定价本地化 +- 基于本地消费能力和竞争格局定价,而非简单汇率换算 +- 促销活动节奏与当地消费日历对齐 +- 多货币动态定价策略 + +### 服务本地化 +- 目标市场时区的客服响应 +- 符合当地沟通习惯的服务流程 +- 退货政策适配各地消费者期望 + +## Key Principle + +> 本地化决定能否获客,合规决定能否存活,供应链决定能否盈利。 + +## When to Use + +- 进入任何新市场(新平台、新国家)前必须完成本地化评估 +- 识别本地化差距:列出所有未做本地化调整的元素 +- 优先级排序:先核心 Listing,再视觉,再客服脚本 + +## Connections +- [[Marketing Cross-Border E-Commerce Specialist]] ← requires ← [[Localization]] +- [[TikTok Shop]] ← depends_on ← [[Localization]] (content localization is core) +- [[Listing Optimization]] ← incorporates ← [[Localization]] diff --git a/wiki/concepts/Loyalty-Program-Management.md b/wiki/concepts/Loyalty-Program-Management.md new file mode 100644 index 00000000..135023d4 --- /dev/null +++ b/wiki/concepts/Loyalty-Program-Management.md @@ -0,0 +1,54 @@ +--- +title: "Loyalty Program Management" +type: concept +tags: [] +sources: + - hospitality-guest-services +last_updated: 2026-05-02 +--- + +## Definition +Loyalty Program Management(忠诚计划管理)是对酒店或品牌忠诚会员全生命周期(注册→入住→退房→再入住)的系统性管理,确保每位会员在其会员等级所对应的每一触点都被识别、认可和奖励。 + +## Lifecycle Stages + +### 1. Enrollment(注册) +- 每次入住时主动向非会员推荐:"您是否加入了我们的[忠诚计划]?免费注册,本次入住即可赚取积分" +- 沟通核心价值:积分赚取比例、欢迎奖励、等级权益 +- 兑换选项:未来房晚、餐饮、水疗服务 + +### 2. Tier Recognition(等级认可) +入住时每次必须执行的识别流程: +- **银卡**:欢迎+姓名+积分余额 +- **金卡**:欢迎+姓名+积分余额+具体权益 +- **白金/顶级**:最高级别认可 + 专属安排(升级/amenity/特殊礼遇) + +> "Never let a loyalty member feel invisible" — 忠诚会员未被认可其身份等同于服务失误 + +### 3. Points Management(积分管理) +- 积分在退房后72小时内到账 +- 餐饮、水疗、活动等额外消费同步积分 +- 缺失积分:48小时内提交忠诚团队+宾客确认 + +### 4. Complaint Escalation(投诉升级) +会员积分未到账、等级状态问题、兑换障碍: +1. 详细记录问题 +2. 48小时内提交忠诚团队 +3. 跟进宾客确认解决 + +## Key Metrics +- 会员入住率(Membership Occupancy Rate) +- 会员生命周期价值(Member Lifetime Value) +- 积分兑换率(Redemption Rate) +- 会员获取成本 vs. 获取收益 + +## Connections +- [[Hospitality Guest Services]] ← 忠诚计划管理是宾客服务 Agent 入住→退房全流程的核心技能 +- [[Guest Journey]] ← 忠诚计划贯穿宾客旅程的每一触点 +- [[Review Management]] ← 忠诚会员的好评权重更高,流失影响更大 + +## Aliases +- 忠诚计划管理 +- 会员管理 +- Guest Loyalty Program +- Rewards Program diff --git a/wiki/concepts/Marp.md b/wiki/concepts/Marp.md new file mode 100644 index 00000000..3cb95d7e --- /dev/null +++ b/wiki/concepts/Marp.md @@ -0,0 +1,29 @@ +--- +title: "Marp" +type: concept +tags: [tool, obsidian, plugin, slides, presentation] +sources: [karpathy-最新分享-用-llm-搭建个人知识库-告别-rag-的低效循环] +last_updated: 2026-04-20 +--- + +## Aliases +- Marp Slides +- Marp 幻灯片 +- Marp for VS Code / Obsidian + +## Definition +基于 Markdown 的幻灯片格式,在 Obsidian 里安装 Marp Slides 插件即可直接预览和导出 PDF/HTML/PPTX。LLM Wiki 的可选增强工具。 + +## Usage +在 Markdown 文件开头加上 `marp: true`,用 `---` 分隔每页幻灯片,写完直接在 Obsidian 里预览。 + +## LLM Wiki Use Case +让 AI 从 Wiki 的某个主题页面直接生成 Marp 格式的幻灯片草稿,微调后即可使用。 + +## Practical Value +- 老张([[laozhang2579]])观点:"实用价值老张保留意见" +- 适合需要定期做演示的用户,非 LLM Wiki 的核心组件 + +## Connections +- [[Marp]] ← 可选增强 → [[LLM Wiki]] +- [[Marp]] ← 插件 → [[Obsidian]] diff --git a/wiki/concepts/Mass-Entity.md b/wiki/concepts/Mass-Entity.md new file mode 100644 index 00000000..a4ed58ad --- /dev/null +++ b/wiki/concepts/Mass-Entity.md @@ -0,0 +1,41 @@ +--- +title: "Mass Entity" +type: concept +tags: ["unreal-engine", "ecs", "simulation", "crowd", "performance"] +sources: ["unreal-systems-engineer"] +last_updated: 2026-05-30 +--- + +## Aliases +- Unreal Entity Component System +- Mass Framework +- UE5 ECS + +## 定义 +Mass Entity 是 Unreal Engine 的 ECS(Entity Component System)实现,通过 `UMassEntitySubsystem` 处理海量 NPC、投射物或人群代理的模拟,以原生 CPU 性能运行。 + +## 核心架构 + +### FMassFragment(数据组件) +每个实体的数据层——存储 per-entity 数据(如位置、速度、生命值)。 + +### FMassTag(标记组件) +布尔标记——用于标识实体类型或状态(如 `FMassCharacterLargeLODTag`)。 + +### Mass Processors +操作 fragments 的并行处理器——使用 Unreal 任务图并行执行。 + +### UMassRepresentationSubsystem +连接 Mass 模拟和 Actor 可视化的桥梁: +- 将 Mass 实体显示为 LOD 切换的 Actor(Hierarchical LOD) +- 或显示为 Instance Static Mesh(ISM)以优化渲染 + +## 使用场景 +- 海量 NPC 群体模拟 +- 密集投射物系统 +- 人群代理 +- 任何需要处理成千上万实体的性能敏感场景 + +## 相关概念 +- [[Actor Replication]] — Mass 实体与网络复制的关系 +- [[UnrealEngine5]] — Mass Entity 是 UE5 内置框架 diff --git a/wiki/concepts/Material-Culture.md b/wiki/concepts/Material-Culture.md new file mode 100644 index 00000000..57897344 --- /dev/null +++ b/wiki/concepts/Material-Culture.md @@ -0,0 +1,34 @@ +--- +title: "Material Culture" +type: concept +tags: [historiography, methodology, anthropology] +sources: [academic-historian, academic-anthropologist] +last_updated: 2026-04-30 +--- + +## Definition +物质文化(Material Culture)指人类社会所创造和使用的一切物质产品及其承载的社会意义——包括但不限于工具、服饰、建筑、器物、武器、货币、书写材料等。物质文化研究通过分析物质遗存(器物、图像、遗址)和文献记载,重建过去人们的生活方式、思想观念和社会结构。 + +## Key Features +- **核心方法**:考古学与历史文献的交叉分析——物质遗存 + 文字记载 +- **研究维度**: + - 器物形制与制作工艺(技术史) + - 物质流通与消费模式(经济史) + - 物质文化的象征意义(符号分析) + - 物质与身份认同(谁使用什么、谁被排斥在外) +- **代表学者**:朱尔斯·亨利(Julius Schlosser)、皮埃尔·布尔迪厄(Pierre Bourdieu,实践理论) +- **Annales 学派视角**:布罗代尔强调"物质生活"(la vie matérielle)是历史的第一层——地理环境、物质条件、经济发展构成历史的基础层 + +## Relationship to Other Concepts +- [[Annales-School]] ← 理论基础 ← [[Material-Culture]]:年鉴学派将物质文化作为历史分析的第一层(日常生活史) +- [[academic-anthropologist]] ← 使用 ← [[Material-Culture]]:文化人类学家同样关注物质文化的象征意义和社会功能 +- [[academic-historian]] ← 核心方法 ← [[Material-Culture]]:Historian Agent 五步工作流中"检查物质基础"的直接方法论来源 +- [[Geographic-Coherence]] ← 关联 ← [[Material-Culture]]:物质文化受地理环境制约(原材料、可及性、贸易路线) + +## Relationship to Source Pages +- [[academic-historian]]:文档"🎯 Core Mission - Enrich with Material Culture"节专门论述,明确要求关注"饮食、服饰、建筑、贸易、信仰、恐惧" +- [[academic-anthropologist]]:文档同样将物质文化作为文化自洽设计的核心维度 + +## Aliases +- 物质文化 +- Material Culture Studies diff --git a/wiki/concepts/Meaning-Transfer-Translation.md b/wiki/concepts/Meaning-Transfer-Translation.md new file mode 100644 index 00000000..ff71f3c7 --- /dev/null +++ b/wiki/concepts/Meaning-Transfer-Translation.md @@ -0,0 +1,38 @@ +--- +title: "Meaning Transfer Translation" +type: concept +tags: ["translation", "linguistics", "language", "ai-agent", "nlp"] +last_updated: 2026-05-02 +--- + +## Definition + +**Meaning Transfer Translation**(意义转移翻译)是一种超越逐字替换的翻译方法论,核心理念:**翻译 = 传递意义,而非替换词汇**。目标不是字典输出,而是让目标语言接收者能实际理解和响应。 + +## Core Principle + +> "Translation isn't word-for-word substitution — it's meaning transfer." — Language Translator Agent + +## Examples + +| 英文(源) | 字面翻译(错误) | 意义转移(正确) | 说明 | +|---|---|---|---| +| It's raining cats and dogs. | Está lloviendo gatos y perros | Está lloviendo a cántaros | 西班牙语中"倾盆大雨"的自然表达 | +| Break a leg! | Rompe una pierna | ¡Buena suerte! | 祝好运的习语,字面翻译令人困惑 | +| ¿Mande? (墨西哥) | "Mande?" | "Pardon?" | 墨西哥西班牙语中"请问有什么事?"的礼貌表达 | + +## In AI Agent Context + +在 [[Language Translator]] Agent 中的实现: +1. 识别源语言中的惯用语、成语、俚语 +2. 在目标语言中寻找自然等效表达(不等同于字面对应) +3. 匹配语气:讽刺、热情、紧急、礼貌必须完整传递 +4. 验证输出对母语者是否自然流畅 + +## Related Concepts +- [[Register Switching]]:意义转移需匹配正确语域 +- [[Subjunctive Mood]]:西班牙语虚拟式是意义传递的关键语法手段 +- [[False Cognates]]:意义转移需警惕假同源词陷阱 + +## Sources +- [[language-translator]] diff --git a/wiki/concepts/Medallion-Architecture.md b/wiki/concepts/Medallion-Architecture.md new file mode 100644 index 00000000..f68a1b83 --- /dev/null +++ b/wiki/concepts/Medallion-Architecture.md @@ -0,0 +1,50 @@ +--- +title: "Medallion Architecture" +type: concept +tags: [data-engineering, lakehouse, architecture] +sources: [engineering-data-engineer] +last_updated: 2026-05-02 +--- + +## Definition + +Medallion Architecture 是一种数据湖仓(Lakehouse)分层架构,通过 Bronze(青铜)→ Silver(白银)→ Gold(黄金)三层设计,实现数据从原始到业务就绪的渐进式提升。 + +## Three Layers + +### Bronze Layer(原始层) +- **特性**:原始、不可变、追加写入(append-only) +- **规则**:永远不在原地转换数据;保留完整的 source file、ingestion timestamp、source system 元数据 +- **Schema**:Schema-on-Read(读取时推断) +- **分区策略**:按 ingestion date 分区,支持低成本历史重放 + +### Silver Layer(清洗层) +- **特性**:已清洗、去重、统一格式(conformed) +- **规则**:必须可跨域 join;显式处理 null(impute/flag/reject);标准化数据类型、日期格式、货币码、国家码 +- **实现**:SCD Type 2 追踪历史变更;主键 + 事件时间戳去重 +- **质量**:每字段 null 处理规则必须明确记录 + +### Gold Layer(业务层) +- **特性**:业务就绪、SLA 保证、为查询模式优化 +- **规则**:Gold 层消费者禁止直接读取 Bronze 或 Silver;必须附带行级数据质量评分;使用 replaceWhere 原子覆盖 +- **优化**:Z-Ordering 多维聚类、分区裁剪、预聚合 +- **SLA**:明确刷新频率(如"每 15 分钟刷新一次") + +## Core Principles + +- **不可变性**:Bronze 层不可覆盖,每条记录携带 `_ingested_at` 和 `_source_system` +- **渐进式质量**:数据质量在 Bronze→Silver→Gold 每层逐步提升 +- **消费者保护**:上游 schema 变化通过 `mergeSchema=true` 捕获,但不自动污染下游 +- **幂等性**:Silver→Gold 每步管道必须幂等——重新运行不产生重复 + +## Related Concepts +- [[CDC (Change Data Capture)]] +- [[Data Contract]] +- [[Data Lineage]] +- [[SCD Type 2]] + +## Related Entities +- [[Delta Lake]](Bronze/Silver/Gold 存储格式) +- [[Apache Spark]](计算引擎) +- [[Databricks]](托管平台) +- [[Apache Iceberg]](开放表格格式替代方案) diff --git a/wiki/concepts/Memory-Consolidation.md b/wiki/concepts/Memory-Consolidation.md new file mode 100644 index 00000000..d139a7bc --- /dev/null +++ b/wiki/concepts/Memory-Consolidation.md @@ -0,0 +1,45 @@ +--- +title: "Memory Consolidation" +type: concept +tags: + - "agentic-ai" + - "memory-management" + - "long-horizon" +sources: + - "Your-AI-Isn-t-Stupid---It-Just-Needs-a-Better-Harness--Lychee-Technology-Engineering-Blog" +last_updated: 2026-04-20 +--- + +## Overview +Memory Consolidation——Agent 空闲时周期性压缩累积工作日志(去重 + 解决矛盾 + 写入精简状态文件)的机制,防止长期运行 Agent 的记忆膨胀和决策冲突。 + +## Problem +随着 Agent 长时间运行,记忆日志变得臃肿且矛盾——旧决策与新决策冲突,冗余条目在每次读取时浪费 token。 + +## Solution +自动化压缩周期:Agent 空闲时(任务之间或低优先级窗口),触发后台作业: +1. 读取原始日志 +2. 去重条目 +3. 以最新数据为准解决矛盾 +4. 写入干净、压缩的状态文件 + +## Empirical Result +实测案例:32K token 嘈杂、重复历史 → 压缩为 7K token 干净状态文件,无有意义信息丢失。 + +## Implementation +```python +# When agent is idle (between tasks or during low-priority windows) +def consolidate_memory(raw_logs): + deduped = deduplicate(raw_logs) + resolved = resolve_conflicts(deduped, prefer='latest') + compressed = compress(resolved) + write_state_file(compressed) +``` + +## Relationship to Other Concepts +- [[Agent-Collapse]]:Memory Consolidation 防止状态臃肿导致的决策质量下降 +- [[State-Externalization]]:压缩后的状态以结构化文件形式持久化 +- [[Context-Reset]]:Context Reset 解决当前上下文容量问题,Memory Consolidation 解决长期记忆质量问题——两者互补 + +## Source +- [[Your-AI-Isn-t-Stupid---It-Just-Needs-a-Better-Harness--Lychee-Technology-Engineering-Blog]] diff --git a/wiki/concepts/MentalModel.md b/wiki/concepts/MentalModel.md new file mode 100644 index 00000000..b8fc6d1b --- /dev/null +++ b/wiki/concepts/MentalModel.md @@ -0,0 +1,38 @@ +--- +title: "MentalModel" +type: concept +tags: [] +last_updated: 2026-05-02 +--- + +## Definition + +Mental Model(心智模型)是开发者对代码库结构、工作原理和边界的内在理解。准确的代码库心智模型能够支持开发者快速定位问题、预测变更影响、进行有效的代码审查。 + +## Building a Codebase Mental Model + +### Three-Tier Explanation Structure + +1. **One-line statement** — 一句话描述代码库是什么 +2. **Five-minute overview** — 五分钟高层解释:任务、输入、输出、关键文件、主代码路径 +3. **Deep dive** — 深度分析:类型、运行时、入口点、结构表、关键边界、详细代码流 + +### Key Components + +- **Top-level structure**: 目录结构和职责划分 +- **Entry points**: 启动文件、路由、配置 +- **Data flow**: 输入如何流转、处理、输出 +- **Key boundaries**: 展示层 / 应用层 / 持久层的边界 +- **Ownership map**: 每个文件/模块负责什么 + +## Metrics for Good Mental Model + +- 新开发者 5 分钟内能识别主入口点 +- 能正确预测代码变更的影响范围 +- 能准确描述跨模块的数据流 + +## Related Concepts + +- [[CodebaseOnboarding]] — 代码库 onboarding 方法论 +- [[ExecutionTracing]] — 执行路径追踪 +- [[EvidenceFirstReasoning]] — 证据优先推理 diff --git a/wiki/concepts/Micro-Entreprise.md b/wiki/concepts/Micro-Entreprise.md new file mode 100644 index 00000000..f64355d0 --- /dev/null +++ b/wiki/concepts/Micro-Entreprise.md @@ -0,0 +1,95 @@ +--- +title: "Micro-Entreprise" +type: concept +tags: [] +sources: [specialized-french-consulting-market] +last_updated: 2026-04-25 +--- + +# Micro-Entreprise + +## Aliases +- Micro-Entreprise +- Auto-Entrepreneur +- Micro-Entrepreneur +- Auto-Entrepreneuriat + +## Definition + +Micro-Entreprise(微型企业家,又称 Auto-Entrepreneur)是法国于 2009 年推出的简化企业注册制度,是全球最具吸引力的自由职业者入门结构之一。它提供极简的税务和社保缴纳机制,特别适合年收入较低的自由职业者、兼职项目和初期创业阶段。 + +## Key Features + +| 维度 | 说明 | +|------|------| +| **注册** | 网上注册,当天完成,行政成本极低 | +| **税务** | 固定比例税率(无需做账),按实际收入缴纳 | +| **社保缴纳** | 按营业额的比例缴纳(而非利润),无营业额则零缴纳 | +| **报税** | 季度申报,极简报表 | +| **适用行业** | 服务业(22% URSSAF)、商业(13.3%)、餐饮(5.5-10.7%) | + +## Cost Breakdown (Services Sector) + +以 **700 EUR/天 TJM** 为例(每月 18 个工作日 = 12,600 EUR/月): + +| 费用项 | 比例 | 金额 | +|-------|------|------| +| URSSAF(社保) | ~22% | -2,772 EUR | +| **净收入(月)** | | **~9,828 EUR** | +| **有效日均净收入** | | **~546 EUR/天** | + +对比 Portage Salarial 同等 TJM(~208 EUR/天): +- **差距:338 EUR/天** = Micro-Entreprise 的成本优势 + +## Exemption Thresholds + +Micro-Entreprise 享有法定的营业额免税门槛: + +| 行业类型 | 2024 年门槛 | +|---------|-----------| +| 服务业(含咨询) | 77,700 EUR/年 | +| 商业 | 77,700 EUR/年 | +| 餐饮(住宿) | 77,700 EUR/年 | +| 餐饮(堂食) | 60,500 EUR/年 | + +**重要**: +- 超出门槛后,将失去 Micro-Entreprise 身份并转为标准公司税制 +- 超门槛后实际税率显著上升,需提前规划 + +## Key Benefits + +| 权益 | 说明 | +|------|------| +| **超高净收入比例** | 约 70% TJM,显著高于 Portage(50%) | +| **零启动成本** | 注册简单,无初始资本要求 | +| **灵活税务** | 按实际收入纳税,无收入零纳税 | +| **快速退出** | 可随时停业,无复杂清算程序 | +| **简单合规** | 无需专业会计,季度申报即可 | + +## Key Risks & Limitations + +| 风险 | 说明 | +|------|------| +| **无失业保险** | 失业后无法申请法国失业金(ARE) | +| **有限退休金** | 缴纳金额较低,退休金积累显著低于 Portage | +| **收入天花板** | 超过门槛后税制不利 | +| **个人承担全险** | 商业风险完全自担,无 employer-style 保障 | +| **可信度** | 某些大客户(Tier 1 ESN)更倾向于与正式公司签约 | + +> "Always distinguish TJM brut from net. A 600 EUR/day TJM through micro-entreprise yields approximately 420-450 EUR net." — French Consulting Market Navigator + +## Relationship to Portage Salarial + +Micro-Entreprise 和 Portage Salarial 是法国自由职业者最主要的两种计费结构选择: + +| 维度 | Portage Salarial | Micro-Entreprise | +|------|----------------|-----------------| +| 净收入比例 | ~50% TJM | ~70% TJM | +| 失业保险 | ✅ | ❌ | +| 退休金缴纳 | 完整 | 有限 | +| 行政复杂度 | 低 | 极低 | +| 适合场景 | 转型期/需要保障 | 高净收入/低成本 | + +## Related Sources +- [[specialized-french-consulting-market]] +- [[Portage-Salarial]] diff --git a/wiki/concepts/Micro-Interaction-Design.md b/wiki/concepts/Micro-Interaction-Design.md new file mode 100644 index 00000000..e9339578 --- /dev/null +++ b/wiki/concepts/Micro-Interaction-Design.md @@ -0,0 +1,43 @@ +--- +title: "Micro-Interaction Design" +type: concept +tags: [ui-design, animation, user-experience, interaction-design] +sources: [design-whimsy-injector] +last_updated: 2026-05-15 +--- + +# Micro-Interaction Design + +## Definition + +微交互设计(Micro-Interaction Design)通过小规模、有针对性的动画和状态反馈,提升用户参与度,同时不影响性能。核心要素:触发(Trigger)、规则(Rules)、反馈(Feedback)、循环(Loops)。 + +## Key Elements + +- **按钮悬停效果**:光扫动画 + 微妙缩放 +- **表单验证反馈**:即时状态变化 + 成功动画(如 ✨ 闪烁) +- **加载动画**:弹跳点动画、进度条动画 +- **彩蛋触发区域**:交互探索奖励 +- **进度庆祝**:完成节点的表情符号动画 + +## Design Principles + +- 每个微交互服务于功能或情感目的 +- 性能优化:轻量 CSS 动画,不影响页面速度 +- 包容性:无障碍支持,减少动画偏好用户选项 + +## Implementation + +通过 CSS Keyframes 实现,示例技术: +- `cubic-bezier` 缓动函数 +- `transition` 状态变化 +- `@keyframes` 自定义动画序列 + +## Related Concepts + +- [[Gamification]]:微交互可作为游戏化的组成元素 +- [[Inclusive-Delight-Design]]:微交互需遵循包容性设计原则 + +## Source + +- [[Whimsy-Injector]] — 微交互设计系统核心交付物 diff --git a/wiki/concepts/Micro-Interaction.md b/wiki/concepts/Micro-Interaction.md new file mode 100644 index 00000000..23d746f1 --- /dev/null +++ b/wiki/concepts/Micro-Interaction.md @@ -0,0 +1,49 @@ +--- +title: "Micro-Interaction" +type: concept +tags: [ux, design, interaction] +last_updated: 2026-04-30 +--- + +# 微交互设计(Micro-Interaction) + +## Aliases +- Micro-Interaction +- 微交互 + +## 定义 + +微交互是指产品中那些小型的、聚焦于单一任务的交互细节——通过小型动画、声音反馈和视觉变化,增强用户体验的愉悦感和功能性。通常作用于:按钮状态变化、表单验证反馈、加载动画、设置切换等具体场景。 + +## 核心特征 + +1. **聚焦单一任务**:每个微交互只做一件事(如点赞动画、成功反馈) +2. **触发-反馈循环**:用户动作 → 系统响应 → 状态变化 +3. **细节驱动体验**:大型功能由微交互串联形成流畅体验 + +## 设计原则 + +- **目的性**:每个微交互必须有功能性或情感性目的,不可为装饰而装饰 +- **响应性**:即时反馈,减少用户对系统状态的焦虑 +- **一致性**:同类型交互保持相同反馈模式,建立用户预期 +- **可访问性**:动画需考虑 `prefers-reduced-motion`,不影响屏幕阅读器 + +## 分类 + +| 类型 | 示例 | 目的 | +|------|------|------| +| 状态反馈 | 按钮悬停、点击效果 | 确认操作被接收 | +| 数据验证 | 表单实时验证成功/失败 | 引导正确输入 | +| 系统状态 | 加载动画、空状态 | 减少等待焦虑 | +| 进度指示 | 上传进度、完成庆祝 | 维持用户动机 | + +## 应用场景 + +- [[design-whimsy-injector]] 在按钮、表单、进度条等关键触点嵌入微交互,提升品牌趣味性同时保持功能性 +- [[design-ux-architect]] 提供 CSS 框架层面的微交互系统设计规范 + +## 相关概念 + +- [[Brand-Personality-Framework]]:微交互是品牌个性在交互层的具体表达载体 +- [[Gamification]]:成就庆祝等游戏化元素本身也是一种微交互 +- [[Inclusive-Delight]]:包容性要求微交互需支持 reduced-motion 模式 diff --git a/wiki/concepts/Micro-Sprint.md b/wiki/concepts/Micro-Sprint.md new file mode 100644 index 00000000..283a0870 --- /dev/null +++ b/wiki/concepts/Micro-Sprint.md @@ -0,0 +1,45 @@ +--- +title: "Micro-Sprint" +type: concept +tags: [] +sources: ["product-behavioral-nudge-engine"] +last_updated: 2026-05-01 +--- + +## Definition + +Micro-Sprint 是一种将大量任务分解为短时间(通常5分钟)可完成的微小冲刺的行为工程模式。通过时间盒约束和极简任务范围来对抗认知过载和任务瘫痪。 + +## Mechanism + +- **触发条件**:用户队列 ≥ 5条待办,或用户状态为 "Overwhelmed" / 识别为 ADHD 倾向 +- **时间盒**:通常 5 分钟(可调整) +- **任务粒度**:每次只呈现 **1个** 动作项 +- **执行流程**:推送「准备好了吗?」→ 用户确认 → 开始计时 → 完成 → 即时庆祝 → 询问继续或退出 + +## Example + +```typescript +// Behavioral Engine: Generating a Time-Boxed Sprint Nudge +export function generateSprintNudge(pendingTasks: Task[], userProfile: UserPsyche) { + if (userProfile.tendencies.includes('ADHD') || userProfile.status === 'Overwhelmed') { + return { + channel: userProfile.preferredChannel, + message: "Hey! You've got a few quick follow-ups pending. Let's see how many we can knock out in the next 5 mins. I'll tee up the first draft. Ready?", + actionButton: "Start 5 Min Sprint" + }; + } +} +``` + +## Related Concepts + +- [[Cognitive Load Reduction]] — Micro-Sprint 的核心目标就是降低认知负荷 +- [[Time-boxing]] — 时间约束机制 +- [[Gamification]] — 配合即时庆祝机制使用 +- [[Habit Formation]] — 通过微小成功的积累建立习惯 + +## Connections + +- [[Product Sprint Prioritizer Agent]] — 任务优先级排序可结合 Micro-Sprint 策略 +- [[Habit Tracker & Accountability Coach]] — 将 Micro-Sprint 融入日常习惯追踪 diff --git a/wiki/concepts/Microhistory.md b/wiki/concepts/Microhistory.md new file mode 100644 index 00000000..5fba158d --- /dev/null +++ b/wiki/concepts/Microhistory.md @@ -0,0 +1,30 @@ +--- +title: "Microhistory" +type: concept +tags: [historiography, methodology] +sources: [academic-historian] +last_updated: 2026-04-30 +--- + +## Definition +微观史学(Microhistory)是一种历史研究方法,聚焦于个体、家庭或小规模社区的历史,通过深入细致的案例研究揭示更宏观的历史规律与社会结构。与年鉴学派的"总体史"形成互补——Annales School 关注长时段的结构性趋势,Microhistory 则从"小切口"切入,以小见大。 + +## Key Features +- **研究对象**:特定个体(如磨坊主梅诺基奥)、家庭、社区——而非帝王将相 +- **核心方法**:厚描(thick description,借鉴格尔茨)、文献细读、口述史 +- **代表学者**:卡洛·金兹堡(Carlo Ginzburg)、乔万尼·列维(Giovanni Levi)、娜塔莉·泽蒙·戴维斯(Natalie Zemon Davis) +- **代表著作**:《奶酪与虫子》(Ginzburg, 1976)、《都铎王朝的谋杀犯》(Kelley, 1981) +- **主要贡献**:将历史学从宏观结构拉回个体经验,揭示边缘群体和日常生活的历史能动性 + +## Relationship to Other Concepts +- [[Annales-School]] ← 方法论互补 ← [[Microhistory]]:微观史是对年鉴学派过度结构决定论的回应之一 +- [[Longue-Duree]] ← 尺度互补 ← [[Microhistory]]:长时段聚焦结构,微观史聚焦个体;两者共同构成多尺度历史分析 +- [[Historiography]] ← 属于 ← [[Microhistory]]:是历史编纂学中的重要流派和方法论 +- [[academic-historian]] ← 使用 ← [[Microhistory]]:Historian Agent 具备微观史方法论训练 + +## Relationship to Source Pages +- [[academic-historian]]:Historian Agent 文档明确将其列为核心训练背景之一 + +## Aliases +- 微观史学 +- 小历史 diff --git a/wiki/concepts/MinimalChangePrinciple.md b/wiki/concepts/MinimalChangePrinciple.md new file mode 100644 index 00000000..99a9cbe6 --- /dev/null +++ b/wiki/concepts/MinimalChangePrinciple.md @@ -0,0 +1,48 @@ +--- +title: "MinimalChangePrinciple" +type: concept +tags: [engineering, code-quality, best-practices] +last_updated: 2026-05-02 +--- + +## Definition + +最小变更原则(MinimalChangePrinciple)是一种代码变更方法论:每个变更行的存在都必须有任务明确要求的理由,而非"更好""更整洁""为未来做准备"。目标是以最小可工作的差异集(minimum viable diff)完成给定任务。 + +## Core Questions + +> "Does the task require this exact line?" + +变更每一行之前,必须通过以下测试: +1. **必要性**:任务是否明确要求了这一行? +2. **最小性**:能否以更少的变更行达到同样效果? +3. **可解释性**:这一行变更对未来的代码维护者是否可理解? + +## Contrast with Traditional Code Quality + +| 维度 | 传统观点 | 最小变更原则 | +|------|---------|-------------| +| 新增代码 | 越多越好(健壮性) | 越少越好(降低维护成本) | +| 文档 | 应该详细添加 | 不为未修改代码添加文档 | +| 重构 | 遇到问题就重构 | 与任务变更分离,独立 PR | +| 防御性代码 | 宁多勿缺 | 仅在系统边界添加 | +| 代码风格 | 统一风格 | 不为统一风格而修改无关代码 | + +## Success Metrics + +- **Median diff size < 30 lines changed per task** +- **80%+ bug fix PRs touch ≤ 2 files** +- **Zero "while I'm here" changes in any PR** +- **Review time reduced 50%+** +- **Regression rate near zero** + +## Connections + +- [[engineering-minimal-change-engineer]]:最小变更原则的具体实践者 +- [[PrematureAbstraction]]:最小变更原则反对在第四次出现前提取抽象 +- [[ScopeCreep]]:最小变更原则是对抗范围蔓延的核心策略 +- [[engineering-code-reviewer]]:代码审查者是检验最小变更原则的最后一道防线 + +## Sources + +- [[engineering-minimal-change-engineer]] diff --git a/wiki/concepts/Minimum-Viable-Harness.md b/wiki/concepts/Minimum-Viable-Harness.md new file mode 100644 index 00000000..4151c0e4 --- /dev/null +++ b/wiki/concepts/Minimum-Viable-Harness.md @@ -0,0 +1,77 @@ +--- +title: "Minimum Viable Harness" +type: concept +tags: + - "harness-engineering" + - "agentic-ai" + - "quick-start" +sources: + - "Your-AI-Isn-t-Stupid---It-Just-Needs-a-Better-Harness--Lychee-Technology-Engineering-Blog" +last_updated: 2026-04-20 +--- + +## Overview +Minimum Viable Harness——Day 1 即可构建的 4 个核心组件,使 Agent 能够优雅失败,为后续增加智能赢得权利。 + +## The 4 Components + +### 1. `state.json` +单一结构化文件跟踪任务状态——如果进程死亡,可以从上次停止的地方继续。 +```json +{ + "task_id": "report-001", + "steps": { + "fetch_competitor_a": "COMPLETED", + "fetch_competitor_b": "IN_PROGRESS", + "compare": "PENDING" + }, + "last_updated": "2026-04-20T10:30:00Z" +} +``` + +### 2. Retry Wrapper +每个工具调用包装 try/catch,至少一次自动重试 + 指数退避: +```python +def tool_call_with_retry(func, max_attempts=3): + for attempt in range(max_attempts): + try: + return func() + except (TimeoutError, APIError) as e: + if attempt < max_attempts - 1: + sleep(exponential_backoff(attempt)) + else: + raise +``` + +### 3. Schema Validator +每个 LLM 输出在接收前必须通过 JSON Schema 验证。格式不符触发重试,不触发崩溃: +```python +def validate_and_retry(llm_output, schema): + try: + validated = jsonschema.validate(llm_output, schema) + return validated + except ValidationError: + return retry_with_error_feedback(llm_output, schema) +``` + +### 4. Tool Output Truncation +每个工具 payload 硬性上限固定 token 预算——context window 内的静默截断是幻觉最常见原因之一: +```python +MAX_TOOL_TOKENS = 3000 # 保守上限 + +def truncate_tool_output(raw_output, max_tokens=MAX_TOOL_TOKENS): + tokens = encode(raw_output) + if len(tokens) > max_tokens: + return decode(tokens[:max_tokens]) + "\n[TRUNCATED]" + return raw_output +``` + +## Philosophy +> 你可以忍受不完美的提示词。你可以忍受天真的工具集成。但是你无法忍受一个失败时破坏自己状态或静默吞噬错误的 Agent。 + +## Source +- [[Your-AI-Isn-t-Stupid---It-Just-Needs-a-Better-Harness--Lychee-Technology-Engineering-Blog]] + +## See Also +- [[Harness-Engineering]] — 完整学科框架 +- [[7-Layer-Harness-Stack]] — 完整 7 层实现 diff --git a/wiki/concepts/MoSCoW-Classification.md b/wiki/concepts/MoSCoW-Classification.md new file mode 100644 index 00000000..825f3220 --- /dev/null +++ b/wiki/concepts/MoSCoW-Classification.md @@ -0,0 +1,42 @@ +--- +title: "MoSCoW Classification" +type: concept +tags: [prioritization, requirements, agile] +last_updated: 2026-05-01 +--- + +## Definition + +MoSCoW 分类法是一种需求优先级分类技术,将所有需求分为四级:**Must Have**(必须有)、**Should Have**(应该有)、**Could Have**(可以有)、**Won't Have**(不会有/本期不做)。 + +## 分类定义 + +| 分类 | 含义 | 占比建议 | 若不做会怎样 | +|------|------|---------|------------| +| **M — Must Have** | 产品无法发布的最低功能集;无替代方案 | 60% | 产品不可用或违反法规 | +| **S — Should Have** | 重要但不致命;功能体验降级但有 workaround | 20% | 用户满意度下降,但产品仍可用 | +| **C — Could Have** | 期望但非必要;提升愉悦度 | 15% | 错过加分项,但不影响核心价值 | +| **W — Won't Have** | 本期明确不做;列入 Backlog 未来考虑 | 5% | 主动放弃,聚焦当前 Sprint 范围 | + +## 关键原则 + +- **"Won't" means won't**:明确不做的功能不得在 Sprint 期间以任何理由渗透进来 +- 每个 MoSCoW 决策必须有明确理由并记录在 Sprint 文档中 +- MoSCoW 是对**功能范围**的分类,不是对用户价值的绝对排序 + +## 应用场景 + +- **[[Phase 1 Strategy]]**:Sprint Prioritizer 使用 MoSCoW 分类 + RICE 评分双重排序,MoSCoW 决定范围边界,RICE 在范围内排序 +- **[[scenario-startup-mvp]]**:Startup MVP Build Runbook 中强调"Sprint Prioritizer 执行 MoSCoW 防止范围蔓延" + +## MoSCoW 与 RICE 的协同工作流 + +``` +所有需求 → MoSCoW 分类(M/S/C/W)→ RICE 评分(M + S + C)→ Sprint 规划 + ↓ + W(直接归档) +``` + +## Aliases +- MoSCoW Prioritization +- MoSCoW Requirements Classification diff --git a/wiki/concepts/Month-End-Close-Process.md b/wiki/concepts/Month-End-Close-Process.md new file mode 100644 index 00000000..d4d2fecd --- /dev/null +++ b/wiki/concepts/Month-End-Close-Process.md @@ -0,0 +1,70 @@ +--- +title: "Month-End Close Process" +type: concept +tags: [finance, accounting, process] +sources: [finance-bookkeeper-controller] +last_updated: 2026-05-02 +--- + +## Definition +月度结账流程(Month-End Close Process)是企业每月完成的标准化财务结算流程,确保所有交易被正确记录、账户被调节、财务报表准确完整。 + +## Core Steps + +### 1. Pre-Close(预结账,第1-2天) +- 确认所有银行 feeds 同步 +- 验证所有 AP 发票已录入截止日期 +- 确认所有工资期 journal entries 已过账 +- 审核员工报销报告 +- 确认所有 AR 发票已开具 +- 确认关联方交易已与对方核对 + +### 2. Core Close(核心结账,第3-5天) +- 过账标准 recurring journal entries(折旧、摊销、租金、保险) +- 计算并过账 expense accruals +- 计算并过账 revenue accruals / 递延收入调整 +- 过账工资税和福利应计 +- 记录信用卡交易并调节对账单 +- 过账外币重估(如适用) +- 过账关联方抵消(如合并报表) + +### 3. Reconciliations(调节,第3-6天) +- 所有银行账户调节 +- 所有信用卡调节 +- AR aging 与 GL 核对 +- AP aging 与 GL 核对 +- 预付账款与摊销计划核对 +- 固定资产调节 +- 应计负债调节 +- 递延收入调节 +- 关联方调节 +- 权益调节 +- 工资税负债与申报表核对 + +### 4. Financial Statements(财务报表,第6-7天) +- 生成试算表并检查异常余额 +- 编制利润表(含 MoM 和 BvA 差异分析) +- 编制资产负债表(含调节) +- 编制现金流量表 +- 编制支持明细表 + +### 5. Review & Finalize(审核与结账,第7-8天) +- Controller 审核所有调节和 journal entries +- 最终审核财务报表 +- 锁定会计系统期间 +- 分发财务包给管理层 +- 归档支持文件 +- 结账复盘 + +## Key Metrics +- 目标:每月在 X 个工作日内完成结账(基准:10天,目标:7天,理想:5天) +- 100% 资产负债表科目每月调节 +- 零重述(no restatements) +- 零重大审计调整(< 1% 总资产) + +## Related Concepts +- [[Account Reconciliation]] +- [[GAAP Compliance]] +- [[Journal Entry]] +- [[Audit Readiness]] +- [[Internal Controls]] diff --git a/wiki/concepts/Multi-Profile-Isolation.md b/wiki/concepts/Multi-Profile-Isolation.md new file mode 100644 index 00000000..d41d7887 --- /dev/null +++ b/wiki/concepts/Multi-Profile-Isolation.md @@ -0,0 +1,31 @@ +--- +title: "Multi-Profile-Isolation" +type: concept +tags: [] +sources: [expose-hermes-agent-as-an-openai-compatible-api-for-any-frontend] +last_updated: 2026-05-02 +--- + +## Definition +Multi-Profile Isolation 是通过 Hermes Agent 的 Profiles 机制实现多用户/多场景隔离的技术,每个 Profile 运行独立配置、记忆和技能。 + +## Mechanism +Hermes Agent 支持多 Profile: +- **独立配置**:每个 Profile 拥有独立的 `config.yaml`、API 密钥、工具集 +- **独立记忆**:每个 Profile 的会话历史和记忆完全隔离 +- **独立技能**:每个 Profile 可启用不同的 Skills +- **独立端口**:每个 Profile 运行独立 API Server(不同端口) + +## Use Case +- 多用户场景:为不同用户/角色创建独立 Profile +- 多场景场景:开发/测试/生产环境隔离 +- 多 Agent 场景:不同专业 Agent 使用不同 Profile + +## Security Benefits +- 用户间数据完全隔离 +- 配置错误不会相互影响 +- 便于独立管理和备份 + +## Related +- [[Bearer-Token-Authentication]] +- [[OpenAI-Compatible-API]] diff --git a/wiki/concepts/Mythril.md b/wiki/concepts/Mythril.md new file mode 100644 index 00000000..b96fa292 --- /dev/null +++ b/wiki/concepts/Mythril.md @@ -0,0 +1,62 @@ +--- +title: "Mythril(符号执行分析)" +type: concept +tags: [blockchain, security, smart-contract, symbolic-execution, tooling] +sources: [blockchain-security-auditor] +last_updated: 2026-05-30 +--- + +## Aliases +- Mythril +- Mythril Classic +- Symbolic Execution Analyzer + +## Definition + +Mythril 是基于符号执行(Symbolic Execution)的智能合约安全分析工具,由 Consensys 开发。它通过将合约函数参数替换为符号变量,系统性地探索所有可能的执行路径,寻找可能导致资产损失或合约异常的状态。 + +## Key Features + +- **符号执行**:不依赖具体输入值,遍历所有路径 +- **深度扫描**:适合关键合约的深度分析(比 Slither 慢但更深入) +- **多种漏洞检测**:整数溢出/下溢、时间戳依赖、访问控制、逻辑漏洞 +- **生成攻击场景**:自动生成可触发漏洞的交易序列 + +## Usage + +```bash +# 基本分析 +myth analyze src/MainContract.sol --solc-json mythril-config.json + +# 高级配置 +myth analyze src/MainContract.sol \ + --execution-timeout 300 \ + --max-depth 30 \ + -o json > mythril-results.json + +# 配合 Truffle +mythril truffle compile +mythril analyze --truffle +``` + +## Mythril vs Slither + +| Dimension | [[Slither]] | [[Mythril]] | +|-----------|-------------|-------------| +| Method | AST-based static analysis | Symbolic execution | +| Speed | Fast | Slow | +| Depth | Surface-level | Deep path coverage | +| False positives | Low | Higher | +| Best for | Initial scan, high-confidence bugs | Critical functions, complex logic | + +## Limitations + +- 执行超时限制(通常 5-10 分钟) +- 路径爆炸问题(复杂合约分析不完整) +- 外部依赖处理有限(需要 mock) +- 已被 MythX 商业化版本部分替代 + +## Connections +- [[Blockchain-Security-Auditor]] ← uses ← [[Mythril]] +- [[Slither]] ← complementary analysis ← [[Mythril]] +- [[Formal-Verification]] ← deeper rigor ← [[Mythril]] diff --git a/wiki/concepts/N1QueryPrevention.md b/wiki/concepts/N1QueryPrevention.md new file mode 100644 index 00000000..3c9e9ed9 --- /dev/null +++ b/wiki/concepts/N1QueryPrevention.md @@ -0,0 +1,62 @@ +--- +title: "N+1 Query Prevention" +type: concept +tags: [database, performance, n+1, postgresql, query-optimization] +last_updated: 2026-05-01 +--- + +# N+1 Query Prevention + +## Definition + +N+1 查询问题是指应用程序在获取一组主对象后,对每个对象分别发起一次额外查询来获取关联数据的反模式。假设获取 N 个用户,每个用户查一次帖子,总共产生 1 + N 次数据库往返。 + +## The Problem + +```typescript +// ❌ Bad: N+1 pattern +const users = await db.query("SELECT * FROM users LIMIT 10"); +for (const user of users) { + user.posts = await db.query( + "SELECT * FROM posts WHERE user_id = $1", + [user.id] + ); +} +// 1 + 10 = 11 queries +``` + +## The Solution + +```typescript +// ✅ Good: Single query with aggregation +const usersWithPosts = await db.query(` + SELECT + u.id, u.email, u.name, + COALESCE( + json_agg( + json_build_object('id', p.id, 'title', p.title) + ) FILTER (WHERE p.id IS NOT NULL), + '[]' + ) as posts + FROM users u + LEFT JOIN posts p ON p.user_id = u.id + GROUP BY u.id + LIMIT 10 +`); +// 1 query +``` + +## Key Techniques + +- **JOIN + json_agg**:PostgreSQL 下用 `json_agg` 聚合嵌套关联数据 +- **批量查询(Batch Loading)**:拆分为 2-3 次查询(IN 子句分批) +- **预加载(Eager Loading)**:ORM 的 `include` / `preload` 机制 +- **物化视图**:对稳定结构做预计算 + +## Source +- [[engineering-database-optimizer]] + +## Connections +- [[QueryPlanAnalysis]] — 通过 EXPLAIN ANALYZE 识别 N+1 +- [[engineering-backend-architect]] — 架构设计时需避免 N+1 +- [[engineering-sre]] — N+1 是生产环境性能问题的常见根源 diff --git a/wiki/concepts/NUMA.md b/wiki/concepts/NUMA.md new file mode 100644 index 00000000..fb66ff5d --- /dev/null +++ b/wiki/concepts/NUMA.md @@ -0,0 +1,39 @@ +--- +title: "NUMA" +type: concept +tags: [sre, performance, cloud, containers, cpu] +last_updated: 2026-04-20 +--- + +# NUMA (Non-Uniform Memory Access) + +NUMA(非一致性内存访问)是一种多处理器计算机架构中的内存访问模式,对现代容器化部署有重要影响。 + +## Definition +在 NUMA 架构中,CPU 和内存被组织成多个节点(nodes)。每个 CPU 访问本地内存节点的速度远快于访问远程内存节点的速度,因此称为"非一致性"内存访问。 + +## Key Concepts +- **NUMA Node**:由一个或多个 CPU 和与其相连的内存组成 +- **Local Memory Access**:CPU 访问本节点的内存,延迟低、带宽高 +- **Remote Memory Access**:CPU 访问其他节点的内存,延迟高、带宽低 +- **CPU Pinning**:将进程/容器固定到特定 CPU,以优化内存局部性 + +## Why SREs Should Care +Netflix 在现代 CPU 上运行容器时发现: +- 运行 100 个容器需要超过 **2 万次挂载操作(mounts)** +- NUMA 问题是影响容器调度性能的关键因素 +- SRE 必须关注**整个技术栈**,包括硬件层面的 NUMA 拓扑 + +## Implications for Container Scheduling +1. **NUMA-Aware Scheduling**:调度器应感知 NUMA 拓扑,避免跨节点内存访问 +2. **CPU Pinning**:对延迟敏感的应用(如 Netflix 媒体处理)需要将容器固定到特定 CPU +3. **内存局部性优化**:减少跨 NUMA 节点的内存访问可显著降低延迟 + +## Related Concepts +- [[Containers]] +- [[Kubernetes]] +- [[Performance-Benchmarking]] +- [[Cloud-Native]] + +## Source +- SRE Weekly Issue #513 — [[sre-weekly-issue-513]] (Netflix Mount Mayhem case study) diff --git a/wiki/concepts/Nanite.md b/wiki/concepts/Nanite.md index 96890775..8ddfbc5e 100644 --- a/wiki/concepts/Nanite.md +++ b/wiki/concepts/Nanite.md @@ -1,37 +1,48 @@ --- title: "Nanite" type: concept -tags: ["unreal-engine", "geometry", "performance-optimization"] -sources: ["unreal-technical-artist", "unreal-systems-engineer", "unreal-world-builder"] -last_updated: 2026-04-26 +tags: ["unreal-engine", "geometry", "rendering", "lod"] +sources: ["unreal-systems-engineer", "unreal-technical-artist", "unreal-world-builder"] +last_updated: 2026-04-30 --- +## Aliases +- UE5 Nanite +- Virtualized Geometry +- 虚拟化几何系统 + ## Definition -UE5 虚拟几何体系统(Virtualized Geometry System),支持自动 LOD 和海量实例化渲染。Nanite 将几何体视为由微小三角形组成的流式资源,根据屏幕空间距离动态选择精度。 +Nanite 是 Unreal Engine 5 引入的虚拟化几何系统,能够自动处理亚像素级别的几何细节,无需手动 LOD。它以软件光栅化方式运行,支持亿级三角形规模的几何细节,并且与 World Partition 和 PCG 系统天然集成。 -## Key Properties -- **自动 LOD**:无需手动配置 LOD 链,系统自动处理 -- **海量实例**:支持数千个网格体同时渲染,由 PCG 驱动时尤为重要 -- **确定性精度**:相同场景始终产生相同的三角形流 -- **Nanite 禁用例外**:骨骼网格体、样条线网格体、程序化网格体无法使用 Nanite,必须手动配置 LOD 链 +## Core Characteristics +- **无需手动 LOD**:自动从极高面数几何体流式加载 +- **实例计数优势**:PCG 实例数量轻易超过 Nanite 的优势阈值 +- **排除在 HLOD 之外**:Nanite 自身处理 LOD,不与其他 Actor 合并 +- **支持几何体类型**:StaticMesh(启用时)、Foliage(启用时) -## In the PCG Pipeline -所有 PCG 放置的静态网格体必须在 Nanite 适用时启用。PCG 的高密度特性(数千实例)与 Nanite 的海量渲染能力天然契合。 +## Performance Constraints +- **Nanite 实例数上限**:16M(在最大视距/最大关卡) +- **Draw Call 控制**:配合 Nanite 实例化减少 Draw Calls +- **资产启用原则**:所有静态网格在条件允许时优先启用 Nanite -## LOD vs Nanite -| 特性 | 手动 LOD | Nanite | -|------|---------|--------| -| 精度切换 | 固定距离阈值 | 屏幕空间连续 | -| 配置成本 | 高(需逐资产手动配置) | 低(启用即可) | -| 适用资产 | 所有类型 | 静态网格体 | -| 骨骼/程序化 | 支持 | 不支持 | +## Integration with PCG +PCG 放置的资产应在条件允许时启用 Nanite,典型配置: +- 40% Oak(Nanite 启用) +- 30% Pine(Nanite 启用) +- 20% Birch(Nanite 启用) +- 10% DeadTree(非 Nanite — 手动 LOD 链) -## Performance Implication -- 无 Nanite 资产的开放世界道具:禁止超过 500 三角形且无文档化例外 -- Cull Distance:Nanite 资产的远距离剔除仍通过 Cull Distance Volumes 配置 -- **[[UnrealSystemsEngineer]] 补充**:单场景硬上限 **1600 万实例**,开放世界项目需提前规划实例预算;Nanite 隐式在像素着色器推导切线空间(减少几何数据体积),因此 Nanite 网格不得存储显式切线;Nanite 不兼容骨骼网格(用标准 LOD)、复杂 clip 操作的遮罩材质(需性能基准测试)、样条网格和程序化网格组件;使用 `r.Nanite.Visualize` 模式提前发现兼容性问题 +## Nanite + Landscape +Nanite 与 Landscape 系统协同工作,LOD 转换在远距离时由 Nanite 系统自动管理。 -## Related -- [[LOD]] — 非 Nanite 资产的 LOD 链配置 -- [[PCG]] — Nanite 的主要应用场景 -- [[PerformanceBudget]] — Nanite 是开放世界性能预算的关键工具 +## Connections +- [[UnrealEngine5]] ← 核心引擎 ← Nanite +- [[UnrealWorldBuilder]] ← 几何渲染 ← Nanite +- [[UnrealSystemsEngineer]] ← 几何系统 ← Nanite +- [[UnrealTechnicalArtist]] ← 资产验证 ← Nanite +- [[HierarchicalLOD]] ← 互补(非 Nanite 资产) ← Nanite + +## Sources +- [[unreal-systems-engineer]] +- [[unreal-technical-artist]] +- [[unreal-world-builder]] diff --git a/wiki/concepts/NarrativeTheory.md b/wiki/concepts/NarrativeTheory.md new file mode 100644 index 00000000..30f30f7c --- /dev/null +++ b/wiki/concepts/NarrativeTheory.md @@ -0,0 +1,33 @@ +--- +title: "Narrative Theory" +type: concept +tags: [] +sources: [] +last_updated: 2026-04-30 +--- + +## Aliases +- Narratology +- 叙事学 +- Narrative Studies + +## Overview +Narrative Theory(叙事学)是研究叙事的结构、机制、功能和认知的跨学科学术领域。起源于 Russian Formalism(俄罗斯形式主义),经 French Structuralism(法国结构主义)发展,在 Cognitive Narratology(认知叙事学)时代达到现代高峰。 + +## Major Schools & Figures + +| School | Key Figure | Core Idea | +|--------|-----------|-----------| +| Russian Formalism | Shklovsky, Propp | Fabula/Sjuzhet, Defamiliarization | +| French Structuralism | Barthes, Genette, Todorov | Narrative as language system | +| Cognitive Narratology | Herman, Fludarnik | Mental models, situation models | +| Post-Classical | Various | Contextual, cultural, ideological | + +## Key Distinctions +- **Fabula vs. Sjuzhet**:事件序列(what happened)vs. 叙事呈现(how it is told) +- **Story vs. Discourse**:同 Fabula/Sjuzhet +- **Narrative Voice vs. Focalization**:谁在讲 vs. 谁在看 +- **Anachrony**:Analeptic(倒叙)/Proleptic(预叙) + +## In The Agency Context +[[Academic Narratologist]] 的核心知识基础,综合运用以上所有框架为叙事问题提供精确诊断。 diff --git a/wiki/concepts/Negative-Prompting.md b/wiki/concepts/Negative-Prompting.md new file mode 100644 index 00000000..01cb7f3c --- /dev/null +++ b/wiki/concepts/Negative-Prompting.md @@ -0,0 +1,41 @@ +--- +title: "Negative Prompting" +type: concept +tags: [prompt-engineering, ai-image-generation, exclusion] +last_updated: 2026-05-15 +--- + +## Definition + +负向提示词(Negative Prompting)——通过明确指定不想要的内容元素,主动排除 AI 生成图像中的干扰元素和常见缺陷,提升生成结果的可控性和专业度。 + +## Mechanism + +在支持负向提示词的 AI 平台(Midjourney、Stable Diffusion)中,用户通过专门的语法(`--no`、`negative_weights`、`NOT` 等)指定需要排除的元素。 + +## Common Negative Prompt Categories + +- **图像缺陷**:blurry、noise、grain、artifact、distortion、overexposed、underexposed +- **不想要的对象**:watermark、text、logo、signature、frame、border +- **构图元素**:background clutter、distracting elements、unwanted objects +- **质量相关**:low quality、jpeg artifacts、compression artifacts +- **风格相关**:cartoonish(当需要写实风格时)、oversaturated、overprocessed + +## Best Practices + +- 针对性而非泛化:只排除确实不想要的特定元素,不过度使用 +- 与正向提示词协同:负向提示词补充而非替代正向提示词 +- 平台适配:各平台负向提示词语法和支持程度不同(Midjourney 的 `--no`、SD 的 negative embeddings) + +## Connections + +- [[Five-Layer-Prompt-Structure]] 的组成部分(在结构框架中标注负向提示词位置) +- [[Midjourney]] / [[Stable-Diffusion]] 平台的核心功能 +- [[Prompt-Engineering]] 的关键技术之一 + +## Aliases + +- Negative Prompt +- Exclusion Prompt +- NOT Prompt +- 负向提示词 diff --git a/wiki/concepts/NetUpdateFrequency.md b/wiki/concepts/NetUpdateFrequency.md new file mode 100644 index 00000000..ac4ce467 --- /dev/null +++ b/wiki/concepts/NetUpdateFrequency.md @@ -0,0 +1,48 @@ +--- +title: "NetUpdateFrequency" +type: concept +tags: ["unreal-engine", "networking", "performance"] +sources: ["unreal-multiplayer-architect", "unreal-multiplayer-architect"] +last_updated: 2026-04-30 +--- + +## Aliases +- 网络更新频率 +- 复制频率 + +## 定义 +`NetUpdateFrequency` 是 UE5 中控制 Actor 复制频率的参数,单位为 Hz(每秒更新次数)。默认 100Hz 通常过高,应按 Actor 类型差异化配置。 + +## 默认值问题 +- 默认 `NetUpdateFrequency = 100Hz` 对大多数 Actor 过高 +- 造成不必要的带宽消耗 +- 服务器 CPU 负担增加 + +## 差异化配置建议 + +| Actor 类型 | NetUpdateFrequency | MinNetUpdateFrequency | 说明 | +|-----------|-------------------|---------------------|------| +| 高速投射物 | 100Hz | 33Hz | 精度关键 | +| 玩家角色 | 30Hz | 15Hz | 平衡流畅与带宽 | +| NPC 敌人 | 20Hz | 5Hz | 非玩家,可插值 | +| 环境物体 | 2Hz | 1Hz | 状态极少变化 | + +## 实现方式 +```cpp +// 在 Actor 构造函数中设置 +AMyProjectile::AMyProjectile() { + bReplicates = true; + NetUpdateFrequency = 100.f; + MinNetUpdateFrequency = 33.f; +} +``` + +## 性能影响 +- 每玩家带宽目标 < 15KB/s +- 最高玩家数量下测量 +- 使用 Network Profiler 验证 + +## 相关概念 +- [[Actor Replication]] — NetUpdateFrequency 控制复制频率 +- [[Replication Graph]] — 与复制图配合优化 +- [[Server-Authoritative Model]] — 优化不影响权威模型 diff --git a/wiki/concepts/NetworkPrediction.md b/wiki/concepts/NetworkPrediction.md new file mode 100644 index 00000000..4f0ec73d --- /dev/null +++ b/wiki/concepts/NetworkPrediction.md @@ -0,0 +1,47 @@ +--- +title: "Network Prediction" +type: concept +tags: ["unreal-engine", "networking", "latency-compensation"] +sources: ["unreal-multiplayer-architect", "unreal-multiplayer-architect"] +last_updated: 2026-04-30 +--- + +## Aliases +- 网络预测 +- 客户端预测 +- Client-side Prediction + +## 定义 +网络预测是客户端在等待服务器确认时本地预测游戏结果的技术,使玩家感觉不到网络延迟,提升游戏响应体验。 + +## 工作原理 +1. 玩家输入 → 客户端立即应用预测结果 +2. 客户端同时发送输入到服务器 +3. 服务器执行相同逻辑 +4. 服务器将结果复制回客户端 +5. 客户端比较预测与实际结果 +6. 如有差异,进行协调(Reconciliation) + +## UE5 Network Prediction Plugin +UE5 提供的官方预测框架,支持物理驱动或复杂移动的回滚: +- `FNetworkPredictionStateBase` — 预测状态基类 +- 每秒预测状态数 = 网络频率 +- 支持移动、能力、交互等多系统 + +## 预测与权威的关系 +``` +预测(客户端) 权威(服务器) + ↓ ↓ +立即响应 ←─────── 确认/回滚 + ↓ ↓ +显示结果 ←─────── 复制结果 +``` + +## 性能指标 +- 200ms 延迟下每玩家每 30 秒去同步事件应 < 1 次 +- 过多去同步 = 预测逻辑与服务器不一致 + +## 相关概念 +- [[Server-Authoritative Model]] — 预测的基础是服务器权威 +- [[GAS (Gameplay Ability System)]] — GAS 内置 Prediction Key 支持 +- [[Actor Replication]] — 预测结果通过复制验证 diff --git a/wiki/concepts/Nudge-Sequence.md b/wiki/concepts/Nudge-Sequence.md new file mode 100644 index 00000000..cd65856c --- /dev/null +++ b/wiki/concepts/Nudge-Sequence.md @@ -0,0 +1,53 @@ +--- +title: "Nudge Sequence" +type: concept +tags: [] +sources: ["product-behavioral-nudge-engine"] +last_updated: 2026-05-01 +--- + +## Definition + +Nudge Sequence(推动序列)是一种多渠道、渐进式用户触达策略——根据用户在每个触点的响应状态,动态调整推送渠道、时机和内容,以最大化任务完成率,同时最小化通知疲劳。 + +## Mechanism + +典型的 Nudge Sequence 遵循递增压力模型: + +``` +Day 1: SMS(个人化、低侵入) + ↓ 用户无响应 +Day 3: Email(中等正式) + ↓ 用户无响应 +Day 7: In-App Banner(高可见性) + ↓ 用户无响应 +Day 14: 暂停推送 → 触发用户偏好重新确认 +``` + +## Design Principles + +1. **递增原则**:渠道侵入力度随时间递增 +2. **退出检测**:任何阶段的完成操作立即停止后续推送 +3. **渠道匹配**:根据用户偏好选择初始渠道 +4. **疲劳管理**:序列完成后强制冷却期,避免过度触达 +5. **个性化调整**:根据响应率数据动态优化序列参数 + +## Key Metrics + +- **到达率**:各渠道消息实际送达率 +- **打开率**:到达消息的打开/查看率 +- **完成率**:序列触发后最终任务完成百分比 +- **疲劳指数**:推送频率与用户响应率的负相关程度 + +## Related Concepts + +- [[Default Bias]] — Nudge Sequence 中可嵌入默认选项利用 +- [[Cognitive Load Reduction]] — 每次只推送一个行动项 +- [[Gamification]] — 配合庆祝机制提升序列参与度 +- [[Behavioral Nudge Engine]] — Nudge Sequence 的核心应用引擎 + +## Connections + +- [[Behavioral Nudge Engine]] — Nudge Sequence 的实现主体 +- [[Product Manager Agent]] — 任务优先级决定 Nudge 的触发条件 +- [[Multi-Channel Personal Assistant]] — 多渠道推送的技术实现参考 diff --git a/wiki/concepts/Nunchi.md b/wiki/concepts/Nunchi.md index 401c6d2f..3594ec20 100644 --- a/wiki/concepts/Nunchi.md +++ b/wiki/concepts/Nunchi.md @@ -1,45 +1,56 @@ ---- -title: "Nunchi" -type: concept -tags: [] -sources: [] -last_updated: 2026-04-25 ---- - -## 基本信息 -- **原文**:눈치(音:nunchi) -- **中文**:读心术 / 察言观色 / 情境感知 -- **字面意**: 눈(眼睛)+ 치(速度/程度)= 读懂气氛的能力 - -## 定义 -Nunchi 是韩国文化的核心社交技能,指通过**观察他人的情绪状态、语境线索和行为模式**,在对方不直接表达的情况下理解其真实意图。在韩国商业环境中,Nunchi 是建立信任、避免尴尬、推进关系的关键能力。 - -## Nunchi 解码表(Korean Business Context) - -| 韩国人说(韩文) | 字面意思(英文) | 实际含义 | 应对策略 | -|----------------|----------------|---------|---------| -| 좋은데요... | "That's nice, but..." | 犹豫,有未表达的顾虑 | "어떤 부분이 고민이신가요?"(哪部分让您顾虑?) | -| 검토해보겠습니다 | "We'll review it" | **婉拒**,给你一个体面退场 | 等待 5 天后若无跟进则放弃,优雅离开 | -| 긍정적으로 검토하겠습니다 | "We'll review positively" | **真正感兴趣**,内部流程启动 | 主动发送支持材料 | -| 어려울 것 같습니다 | "It seems difficult" | **坚定拒绝** | 优雅接受:"다음에 기회가 되면 연락 주세요" | -| 한번 보고 드려야 할 것 같습니다 | "I need to report upward" | 决策权不在此人,品의流程已触发 | 积极信号:提供一切内部说服所需材料 | -| 바쁘시죠? | "You must be busy, right?" | 社交润滑,即将有请求 | 回复:"괜찮습니다, 말씀하세요"(我没事,请说) | - -## 为什么 Nunchi 对外国人困难 -西方商业文化强调**直接沟通**——对"不"使用明确的语言表达。韩国文化强调**和谐优先于清晰**——直接说"不"会损害关系和对方的颜面。因此: -- "We'll review it" ≠ "Maybe later" -- "It's difficult" = "No" -- 沉默(3-7天)≠ "We're not interested" -- "Let me think about it" = "I need Nunchi time to read the room internally" - -## Nunchi 的实际应用场景 -1. **会议中**:观察谁的眼神在谁之间移动,判断真正的决策者 -2. **聚餐(회식)**:观察谁给谁倒酒,判断公司内部权力动态 -3. **跟进时**:判断"沉默"是积极的品의进行中,还是消极的死单 -4. **谈判中**:读懂对方真正顾虑(价格?风险?信任?),而非其表面陈述 - -## 与品의的关系 -Nunchi 是理解 품의 流程中**隐性信号**的核心技能——审批链在内部运行,供应商看不到过程,只能通过 Nunchi 解读外部表现出的信号。 - -## 来源 -- [[specialized-korean-business-navigator]] — Nunchi Decoder — Business Context 完整规范 +--- +title: "Nunchi" +type: concept +tags: [] +sources: [] +last_updated: 2026-05-30 +--- + +## 基本信息 +- **原文**:눈치(Nunchi) +- **发音**:nunchi +- **中文**:读心术 / 察言观色 / 眼力见 +- **英文**:Reading the room / Social awareness + +## 定义 +눈치(Nunchi)是韩国文化中最核心的概念之一,字面意思是"用眼睛测量重量",实际指通过观察语境、情绪和微妙的行为线索来理解未被直接表达的意图和想法。Nunchi 是韩国商业中最重要的隐性技能——它决定了你能读懂多少会议室里没有说出口的内容。 + +## 在韩国商业中的重要性 + +韩国商业文化优先维护和谐(关系和谐),而非直接表达分歧。因此: +- **拒绝通常不是"No",而是沉默或模糊的"検討해보겠습니다"** +- **积极信号不是"Yes",而是主动提问和索取材料** +- **真正决策发生在走廊里,而非会议桌前** + +## Nunchi 解码表(Korean Business Navigator 提供) + +| 他们说(韩文) | 字面意思 | 实际含义 | 你的行动 | +|---------------|---------|---------|---------| +| 좋은데요... | "That's nice, but..." | 犹豫,有顾虑但不会直接说 | "어떤 부분이 고민이신가요?"(哪方面让您顾虑?)| +| 검토해보겠습니다 | "We'll review it" | 很可能不行,给你台阶 | 等5天,无跟进则放弃 | +| 긍정적으로 검토하겠습니다 | "We'll review positively" | 真正感兴趣,内部流程启动 | 主动发送补充材料 | +| 어려울 것 같습니다 | "It seems difficult" | 明确拒绝 | 优雅接受,问下次机会 | +| 한번 보고 드려야 할 것 같습니다 | "I need to report upward" | 决策权不在他,품의已触发 | 好信号,提供一切内部推进所需的材料 | +| 바쁘시죠? | "You must be busy, right?" | 社交润滑,马上要提出请求 | "괜찮습니다, 말씀하세요"(没事,请说)| + +## Nunchi 核心原则 +1. **永远不要只看字面意思** — 韩国人说的话通常包含两层含义 +2. **沉默不是否定** — 3-7 天的沉默可能意味着内部讨论正在进行 +3. **主动提问者 = 真正感兴趣** — 索取案例和参考资料是强烈购买信号 +4. **"상부에서 검토 중입니다"(上级正在审查)是进展信号** — 意味着在推进,不是卡住 +5. **观察肢体语言和座位安排** — 谁坐在谁旁边决定谁听谁的 + +## Nunchi vs 西方"直接沟通"的张力 +- 西方文化:直接询问"你们打算买吗?"是专业和高效的体现 +- 韩国文化:这样问等于逼迫对方说"不",破坏和谐 +- 解决方式:通过观察间接信号判断意向,而非直接询问 + +## 如何培养 Nunchi +1. **注意开场白**:韩国人通常以寒暄开始,直接切入正题显示不懂礼貌 +2. **观察座位**:상석(主座,最远离门的位置)是最重要的人 +3. **记录谁称呼谁**:"과장님"还是直呼其名,暗示关系深度 +4. **关注被叫进来的人**:如果第二会议规模扩大,说明认真程度提升 +5. **留意회식(聚餐)邀请**:主动邀请聚餐是建立信任的关键信号 + +## 来源 +- [[specialized-korean-business-navigator]] — Nunchi Decoder — Business Context 完整规范 diff --git a/wiki/concepts/Observability.md b/wiki/concepts/Observability.md index e5d4b8a9..a0f0f2a2 100644 --- a/wiki/concepts/Observability.md +++ b/wiki/concepts/Observability.md @@ -1,72 +1,85 @@ --- title: "Observability" type: concept -tags: [Observability, SRE, Cloud-Native, Telemetry, Monitoring, Reliability] -sources: - - public-cloud-learning-sessions-observability-with-opentelemetry-20240402-160113 - - ctp-topic-67-cloud-native-observability-using-opentelemetry - - public-cloud-learning-sessions-opentext-evolving-from-dr-to-recovery-assurance-2 -last_updated: 2026-04-29 +tags: [DevOps, Monitoring, Reliability] +sources: [engineering-devops-automator] +last_updated: 2026-05-01 --- -## Observability(可观测性) +# Observability -可观测性(Observability)是指系统通过其外部输出理解其内部状态的能力。在软件工程中,可观测性通过遥测数据(Telemetry)——指标(Metrics)、日志(Logs)、追踪(Traces)——持续理解系统健康状态,是 [[SRE]] 和 [[Recovery-Assurance]] 的核心技术基础。 +## 定义 +可观测性(Observability)是通过收集系统外部输出来推断其内部状态的能力,核心目标是回答"为什么系统出现了问题",而不仅仅是"系统是否正常"。 -## Three Pillars +## 可观测性三支柱 -可观测性三大支柱(Three Pillars of Observability): +### 1. 指标(Metrics) +- **定义**:数值型测量,反映系统健康状况 +- **特点**:聚合性强、支持告警、存储成本相对低 +- **工具**:[[Prometheus]]、CloudWatch、DataDog +- **示例**:CPU 使用率、请求延迟、错误率、QPS -| 支柱 | 说明 | 示例 | -|------|------|------| -| **Metrics(指标)** | 聚合的数值数据,反映系统状态趋势 | CPU 使用率、请求延迟、错误率 | -| **Logs(日志)** | 离散的事件记录,按时间顺序记录系统活动 | 访问日志、错误日志、审计日志 | -| **Traces(追踪)** | 跨服务和组件的请求传播路径 | 分布式链路追踪、调用链可视化 | +### 2. 日志(Logs) +- **定义**:系统产生的离散事件记录 +- **特点**:详细信息、时序排列、关联分析 +- **工具**:ELK Stack(Loki)、CloudWatch Logs +- **示例**:访问日志、错误日志、审计日志 -## Observability vs. Monitoring +### 3. 追踪(Traces) +- **定义**:请求在分布式系统中的完整调用路径 +- **特点**:端到端关联、延迟分析、瓶颈定位 +- **工具**:Jaeger、Zipkin、AWS X-Ray +- **示例**:微服务调用链、数据库查询耗时 -传统监控(Monitoring)与可观测性(Observability)的核心区别: +## SRE 可观测性实践 -| 维度 | 传统监控(Monitoring) | 可观测性(Observability) | -|------|---------------------|-------------------------| -| **目标** | 回答预设问题 | 回答任意未知问题 | -| **假设** | 故障模式已知 | 故障模式未知(High Cardinality) | -| **数据** | 聚合指标,低基数 | 原始事件,高基数 | -| **根因定位** | 依赖仪表板预设视图 | 通过遥测数据探索定位 | -| **适用场景** | 稳定系统 | 云原生、分布式系统 | +### RED 方法(面向服务) +- **Rate**:请求率(每秒请求数) +- **Errors**:错误率(失败请求百分比) +- **Duration**:延迟(响应时间分布) -> "You can't monitor your way to understanding a distributed system. You need observability." — Charity Majors +### USE 方法(面向资源) +- **Utilization**:利用率 +- **Saturation**:饱和度 +- **Errors**:错误 -## Observability Engineering +## 在 DevOps Automator 中的应用 +DevOps Automator 的可观测性体系: +1. **指标收集**:Prometheus scrape metrics +2. **可视化**:Grafana Dashboard +3. **告警**:Prometheus Alert Rules → AlertManager +4. **日志聚合**:可选 Loki/ELK +5. **分布式追踪**:可选 Jaeger -可观测性工程(Observability Engineering)是将可观测性作为架构设计原则,在软件开发生命周期中内嵌遥测数据收集: +### 关键监控指标 +- 部署频率(Deployment Frequency) +- 变更失败率(Change Failure Rate) +- MTTR(Mean Time To Recovery) +- 可用性(Availability) -- **Left-Shift**:在开发阶段就定义 SLI/SLO,持续验证 -- **Telemetry as Code**:将遥测配置纳入 IaC,实现版本化管理 -- **Continuous Validation**:用主动探测(Synthetic Monitoring)验证恢复路径 +## 相关概念 +- [[Prometheus]]:指标采集和告警核心组件 +- [[Grafana]]:指标可视化平台 +- [[Zero-Downtime Deployment]]:可观测性支撑零停机部署的监控需求 -## Connection to SRE and Recovery Assurance +## 相关工具 +| 类型 | 工具 | +|------|------| +| 指标 | Prometheus, CloudWatch, DataDog, New Relic | +| 日志 | ELK Stack, Loki, CloudWatch Logs | +| 追踪 | Jaeger, Zipkin, AWS X-Ray, OpenTelemetry | +| 可视化 | Grafana, Datadog Dashboards | -在 [[SRE]] 实践中,可观测性是实现可靠性目标的必要条件: +## SRE 四个黄金信号 +Google SRE 提出的关键指标: +1. **Latency**:延迟 +2. **Traffic**:流量 +3. **Errors**:错误 +4. **Saturation**:饱和度 -- **SLI/SLO/SLA 的测量基础**:可观测性提供量化可靠性的原始数据 -- **Error Budget 的支撑**:通过指标追踪 Error Budget 消耗速度 -- **On-Call 响应的依据**:日志和追踪是 MTTR(Mean Time To Recovery)的核心数据源 -- **[[Recovery-Assurance]] 的前提**:无法观测的系统无法保证恢复能力 - -## OpenTelemetry - -[[OpenTelemetry]](OTel)是 CNCF 的开源可观测性框架,提供厂商中立的指标、日志、追踪统一采集标准。 - -## Related Concepts - -- [[SRE]] — 可观测性是 SRE 四大黄金信号的基础 -- [[Recovery-Assurance]] — 可观测性是 Recovery Assurance 的技术前提 -- [[OpenTelemetry]] — 可观测性工程的具体实现框架 -- [[RTO]] / [[RPO]] — 可观测性支撑 RTO/RPO 的持续监控 - -## Sources - -- [[public-cloud-learning-sessions-observability-with-opentelemetry-20240402-160113]] -- [[ctp-topic-67-cloud-native-observability-using-opentelemetry]] -- [[public-cloud-learning-sessions-opentext-evolving-from-dr-to-recovery-assurance-2]] +## Aliases +- 可观测性 +- Observability +- Monitoring +- 监控 +- 可观测系统工程 diff --git a/wiki/concepts/Obsidian-Git.md b/wiki/concepts/Obsidian-Git.md new file mode 100644 index 00000000..9a044388 --- /dev/null +++ b/wiki/concepts/Obsidian-Git.md @@ -0,0 +1,39 @@ +--- +title: "Obsidian Git" +type: concept +tags: [tool, obsidian, version-control, git] +sources: [karpathy-最新分享-用-llm-搭建个人知识库-告别-rag-的低效循环] +last_updated: 2026-04-20 +--- + +## Aliases +- Obsidian Git 插件 +- Obsidian Git 扩展 + +## Definition +Obsidian 的社区插件,为 Vault 提供 Git 版本管理功能,支持自动 commit + push 到远程仓库。是 LLM Wiki 的**必选项**——AI 批量改文件的能力越强,越需要版本管理来兜底。 + +## Setup Steps +1. 设置 → 第三方插件 → 社区插件市场 → 搜索 "git" → 安装并启用 +2. 如果 Vault 还不是 Git 仓库: + ```bash + git init + git remote add origin https://github.com/用户名/knowledge-bases.git + git branch -M main + git add . + git commit -m "init: 初始化知识库" + git push -u origin main + ``` +3. 在 Obsidian Git 插件设置中,将 **Auto commit-and-sync interval** 设为 10 分钟 + +## Value for LLM Wiki +- **实时备份 + 完整历史**:每隔几分钟插件自动 commit + push,完全无需手动操作 +- **版本兜底**:AI 批量修改多个文件时,可随时回滚到任意历史版本 +- **多设备同步**:通过 GitHub 实现跨设备同步 + +## Note +建议创建**私有仓库**(Private Repository),知识库内容属于私人数据。 + +## Connections +- [[Obsidian Git]] ← 版本管理 ← [[LLM Wiki]] +- [[Obsidian Git]] ← 插件 → [[Obsidian]] diff --git a/wiki/concepts/Obsidian-Web-Clipper.md b/wiki/concepts/Obsidian-Web-Clipper.md new file mode 100644 index 00000000..617408ec --- /dev/null +++ b/wiki/concepts/Obsidian-Web-Clipper.md @@ -0,0 +1,27 @@ +--- +title: "Obsidian Web Clipper" +type: concept +tags: [tool, obsidian, browser-extension, clipping] +sources: [karpathy-最新分享-用-llm-搭建个人知识库-告别-rag-的低效循环] +last_updated: 2026-04-20 +--- + +## Aliases +- Obsidian Web Clipper 扩展 +- Obsidian 网页剪藏插件 + +## Definition +Obsidian 的浏览器扩展插件,可一键将任意网页文章保存为 Markdown 格式,自动存入 Obsidian Vault。是 LLM Wiki 素材采集的关键工具。 + +## Usage Flow +1. 在 Chrome 浏览器安装 Obsidian Web Clipper 扩展 +2. 打开任意网页文章 +3. 点击扩展图标 → "Add to Obsidian" +4. 文章自动转为 Markdown 出现在 Vault 里 + +## Key Benefit +将人类从"复制粘贴整理"的工作中解放——素材采集完全自动化,AI 可以直接读取和处理。 + +## Connections +- [[Obsidian Web Clipper]] ← 采集工具 ← [[LLM Wiki]] +- [[Obsidian Web Clipper]] ← 插件 → [[Obsidian]] diff --git a/wiki/concepts/Obsidian.md b/wiki/concepts/Obsidian.md new file mode 100644 index 00000000..3b3434c7 --- /dev/null +++ b/wiki/concepts/Obsidian.md @@ -0,0 +1,40 @@ +--- +title: "Obsidian" +type: concept +tags: [tool, note-taking, local] +sources: [karpathy-最新分享-用-llm-搭建个人知识库-告别-rag-的低效循环, llm-wiki, 养虾日记3, obsidian-官方-cli-命令全景速查表, obsidian-cli] +last_updated: 2026-04-20 +--- + +## Aliases +- Obsidian.md + +## Definition +本地化的双链笔记工具,以 Markdown 文件为核心存储格式,支持双向链接、图谱视图和丰富的社区插件生态。是 LLM Wiki 方法论的理想载体。 + +## Core Features +- **双向链接(wikilink)**:`[[页面名]]` 语法创建页面间链接 +- **Graph View**:以节点和连线展示所有页面及其链接关系 +- **本地存储**:所有数据保存在本地 Vault(文件夹),不依赖云端 +- **丰富的插件生态**:Obsidian Git、Dataview、Marp Slides、Web Clipper 等 +- **社区插件市场**:内置插件管理器,支持搜索和安装社区插件 + +## Key Plugins for LLM Wiki +- **[[Obsidian Web Clipper]]**:浏览器插件,一键将网页保存为 Markdown +- **[[Obsidian Git]]**:Vault 版本管理,自动 commit + sync +- **[[Dataview]]**:对 frontmatter 做数据库式查询 +- **[[Marp]]**:Markdown 幻灯片预览和导出 +- **[[Graph View]]**:内置图谱视图(Ctrl+G 打开) + +## Configuration Notes +- 附件存储路径:建议设为 `attachments` 子文件夹,避免所有附件混在一个目录 +- 图片本地化:使用 Ctrl+Shift+D 快捷键批量下载图片到本地 +- 注意:LLM 目前无法一次性读取带内嵌图片的 Markdown,需先读文本再单独查看图片 + +## Role in LLM Wiki +**"Obsidian 是 IDE,LLM 是程序员,Wiki 是代码库"**([[llm-wiki]] 核心比喻) + +## Connections +- [[Obsidian]] ← 工具 ← [[LLM Wiki]] +- [[Obsidian]] ← 工具 ← [[Second Brain]] +- [[Obsidian]] ← 插件生态 → [[Obsidian Web Clipper]], [[Obsidian Git]], [[Dataview]], [[Marp]] diff --git a/wiki/concepts/OneFilePerActor.md b/wiki/concepts/OneFilePerActor.md new file mode 100644 index 00000000..7c1b43ab --- /dev/null +++ b/wiki/concepts/OneFilePerActor.md @@ -0,0 +1,53 @@ +--- +title: "OneFilePerActor" +type: concept +tags: ["unreal-engine", "collaboration", "version-control", "world-partition"] +sources: ["unreal-world-builder"] +last_updated: 2026-04-30 +--- + +## Aliases +- OFPA +- One File Per Actor +- 单 Actor 单文件 +- Per-Actor Asset 分块 + +## Definition +One File Per Actor(OFPA)是 Unreal Engine 5 World Partition 模式下的多用户协作编辑机制。每个 Actor 存储在独立文件中,而非整个关卡一个文件,从而支持多人同时编辑不同 Actor 而不产生源控制冲突。 + +## Problem Solved +传统关卡文件(所有 Actor 在一个 `.umap` 中)的协作问题: +- 两人同时打开同一关卡 → 文件冲突 +- 某人保存后另一人保存 → 后者覆盖前者改动 +- 锁定整个关卡才能安全编辑 → 串行化工作流程 + +## OFPA Workflow +1. 每个 Actor 存储为 `Path/To/Actor_Name/ActorName.uasset` +2. 多人可同时编辑不同 Actor,无需锁定 +3. 源控制按 Actor 粒度管理变更 +4. 关卡文件仅存储 Actor 引用而非内容 + +## Team Education Requirements +必须教育团队: +- **签出方式**:按 Actor 单独签出,而非整个关卡 +- **依赖理解**:Actor 引用关系在关卡文件中,更改引用仍需操作关卡文件 +- **命名规范**:Actor 命名必须符合团队规范,避免歧义 + +## File Count Management +OFPA 启用后大规模关卡产生数千个 Actor 文件: +- 必须建立**文件数预算** +- 监控文件数增长趋势 +- 构建关卡审计工具,标记尚未转换为 OFPA 的遗留关卡 + +## OFPA Limitations +- 大量 Actor 文件增加文件系统压力 +- 某些第三方插件可能不完全兼容 OFPA +- 源控制仓库大小显著增加(更多小文件) + +## Connections +- [[WorldPartition]] ← 协作模式 ← OneFilePerActor +- [[UnrealWorldBuilder]] ← 多用户支持 ← OneFilePerActor +- [[UnrealEngine5]] ← 核心引擎 ← OneFilePerActor + +## Sources +- [[unreal-world-builder]] diff --git a/wiki/concepts/OpenAI-Compatible-API.md b/wiki/concepts/OpenAI-Compatible-API.md new file mode 100644 index 00000000..569c2524 --- /dev/null +++ b/wiki/concepts/OpenAI-Compatible-API.md @@ -0,0 +1,30 @@ +--- +title: "OpenAI-Compatible-API" +type: concept +tags: [] +--- + +## Definition +OpenAI 兼容 API 是一种标准化的 AI 模型调用接口规范,遵循 OpenAI Chat Completions API 的请求/响应格式,使第三方 AI 系统能够被标准 AI 工具(如 n8n、LangChain)无缝调用。 + +## Key Properties +- **请求格式**:遵循 OpenAI `chat/completions` 规范 +- **模型指定**:通过 `model` 字段指定具体的 Agent(如 `openclaw:main`) +- **认证方式**:Bearer Token(`Authorization: Bearer `) +- **端点**:通常是 `/v1/chat/completions` + +## Example +OpenClaw Gateway 提供的 OpenAI 兼容端点: +- **URL**:`http://:18789/v1/chat/completions` +- **Body**: + ```json + { + "model": "openclaw:main", + "messages": [{"role": "user", "content": "..."}] + } + ``` + +## Related +- [[OpenClaw]] 通过 `gateway.http.endpoints.chatCompletions.enabled: true` 提供此接口 +- [[HTTP-ChatCompletions]] 是其底层协议 +- [[n8n]] 通过 HTTP Request 节点调用此接口 diff --git a/wiki/concepts/OpenAI兼容API.md b/wiki/concepts/OpenAI兼容API.md new file mode 100644 index 00000000..274f5b39 --- /dev/null +++ b/wiki/concepts/OpenAI兼容API.md @@ -0,0 +1,36 @@ +--- +title: "OpenAI兼容API" +type: concept +tags: [] +last_updated: 2026-05-02 +--- + +## Definition +Hermes Agent 内置的 API Server 暴露的标准 OpenAI Chat Completions 接口格式,允许任何兼容 OpenAI API 的客户端(如 n8n、curl、Postman)直接调用,无需额外 SDK 或中间件。 + +## Details +- 默认端口 **8642**,端点路径 `/v1/chat/completions` +- 认证方式:Bearer Token(通过 `API_SERVER_KEY` 配置) +- 健康检查端点:`GET /v1/health`,返回 `{"status": "ok"}` +- 支持 `X-Hermes-Session-Id` header 实现会话保持(v0.7.0+) +- 模型名称默认为 `hermes-agent`,可在 Profile 级别自定义 + +## Usage +- [[n8n]] 的 HTTP Request 节点通过 POST 到该端点实现 Agent 调用 +- curl 验证命令: + ```bash + curl http://localhost:8642/v1/chat/completions \ + -H "Authorization: Bearer YOUR_KEY" \ + -H "Content-Type: application/json" \ + -d '{"model": "hermes-agent", "messages": [{"role": "user", "content": "Hello!"}]}' + ``` + +## Related +- [[HermesAgent]] — API Server 的宿主框架 +- [[X-Hermes-Session-Id]] — API 的会话保持机制 +- [[工作流编排]] — 该 API 的主要应用场景 + +## Aliases +- OpenAI Compatible API +- OpenAI-compatible API endpoint +- Hermes API Server diff --git a/wiki/concepts/Organizational-Second-Hit-Syndrome.md b/wiki/concepts/Organizational-Second-Hit-Syndrome.md new file mode 100644 index 00000000..b4110775 --- /dev/null +++ b/wiki/concepts/Organizational-Second-Hit-Syndrome.md @@ -0,0 +1,36 @@ +--- +title: "Organizational Second Hit Syndrome" +type: concept +tags: [sre, reliability, incident-response, organizational-resilience] +last_updated: 2026-04-20 +--- + +# Organizational Second Hit Syndrome + +组织二次冲击综合征(Organizational Second Hit Syndrome)是一种类比神经学"二次冲击综合征(Second Impact Syndrome, SIS)"的故障现象。 + +## Definition +重大故障(first hit)发生后,组织会进入一段脆弱期(vulnerable period)。在此期间,如果发生第二次故障(second hit),往往会引发**强烈、广泛且有时具有破坏性的组织反应**。 + +## Background +这一概念由 [[Richard-Cook]] 博士首次提出(2026年3月7日),由 [[John-Allspaw]] 和 [[Richard-Cook]] 在 [[Adaptive-Capacity-Labs]] 发表。 + +## Key Characteristics +- **时间相关性**:Second hit 发生在 first hit 之后的脆弱期内 +- **影响范围**:反应强度大,影响面广,可能造成组织级损害 +- **与神经学 SIS 的类比**:神经学 SIS 中,第一次脑部损伤后如果再次受伤,即使伤势轻微也可能导致灾难性后果;组织 SIS 同理 + +## Implications for SRE +1. **故障后的恢复期需要特别关注**:首次故障后不要放松警惕 +2. **制定"二次故障"应对预案**:在复盘和恢复阶段保持警戒 +3. **组织层面的韧性建设**:建立跨团队沟通机制,防止信息孤岛导致的二次事故扩大 +4. **MTTR(Mean Time to Recovery)优化**:不仅关注单次故障,还要关注故障间的组织状态 + +## Related Concepts +- [[Incident-Response]] +- [[BlamelessPostMortem]] +- [[Resilience]] +- [[Self-Healing]] + +## Source +- SRE Weekly Issue #513 — [[sre-weekly-issue-513]] diff --git a/wiki/concepts/Outcome-vs-Output.md b/wiki/concepts/Outcome-vs-Output.md new file mode 100644 index 00000000..77d2aa6a --- /dev/null +++ b/wiki/concepts/Outcome-vs-Output.md @@ -0,0 +1,41 @@ +--- +title: "Outcome vs. Output" +type: concept +tags: ["product-management", "mindset", "strategy"] +last_updated: 2026-04-30 +--- + +## Aliases +- Outcome over Output +- 结果导向 vs. 产出导向 +- 以结果为中心 + +## Definition +Outcome vs. Output(结果 vs. 产出)—— 产品管理的核心思维模式:**结果(Outcome)** 是用户行为的实际改变和业务价值达成;**产出(Output)** 是交付的功能数量、特性或里程碑。 + +## Core Distinction + +| 维度 | Output(产出) | Outcome(结果) | +|------|--------------|----------------| +| 关注点 | 做了什么 | 用户改变了什么 | +| 度量 | 功能数量、上线时间 | 指标改善、用户行为变化 | +| 陷阱 | 功能上线即成功 | 以活动代替进步 | +| 典型错误 | "我们交付了 X 功能" | 没人用的功能 | + +## Key Quotes +> "A feature shipped that nobody uses is not a win — it's waste with a deploy timestamp." — [[Product Manager Agent]](Alex) + +> "Features are hypotheses. Shipped features are experiments. Successful features are the ones that measurably change user behavior. Everything else is a learning." — [[Product Manager Agent]] + +## Why It Matters +- **防止虚荣指标**:团队交付了很多功能,但用户留存没有改善 +- **保护资源**:避免在无人使用的功能上浪费工程资源 +- **对齐业务**:确保团队努力直接转化为商业价值 + +## Application +[[Product Manager Agent]] 在所有产品文档(PRD、Opportunity Assessment、Launch Retrospective)中坚持使用 Outcome 思维,并在成功指标定义中要求可量化的用户行为指标(如 30 天留存率、功能激活率)而非功能完成状态。 + +## Related +- [[Product Requirements Document (PRD)]] — 要求明确的结果指标(Goals & Success Metrics) +- [[Product Manager Agent]] — 坚持结果导向的核心理念 +- [[Product Roadmap (Now/Next/Later)]] — 路线图按结果而非交付物组织 diff --git a/wiki/concepts/OverlapAwareChunking.md b/wiki/concepts/OverlapAwareChunking.md new file mode 100644 index 00000000..8e041963 --- /dev/null +++ b/wiki/concepts/OverlapAwareChunking.md @@ -0,0 +1,55 @@ +--- +title: "OverlapAwareChunking" +type: concept +tags: ["voice-ai", "audio-processing", "transcription", "chunking"] +last_updated: 2026-05-02 +--- + +# OverlapAwareChunking(重叠感知分块) + +## Definition + +Overlap-Aware Chunking 是将超长音频(>30 分钟)切分为多个重叠片段再分别转录的技术。重叠窗口(默认 30s)在合并阶段被裁剪,防止词边界在切分处被切断而产生重复或遗漏。 + +## The Problem + +Whisper 类模型有最大输入时长限制(通常 30 秒到 10 分钟,取决于模型)。超出限制的音频如果直接截断,会导致: +1. 词在切分点被切断 → 产生乱码/重复词 +2. 最后一块音频尾部被截断 → 内容丢失 +3. 丢失跨块语义连贯性 + +## The Solution + +``` +原始音频(120 分钟) + ↓ 分块(每块 30 分钟,重叠 30 秒) +chunk_0000: [0:00 - 30:30] +chunk_0001: [30:00 - 60:30] ← 重叠 30 秒 +chunk_0002: [60:00 - 90:30] ← 重叠 30 秒 +... + ↓ 逐块 FasterWhisper 转录 + ↓ 合并(裁剪重叠区域) +最终转录文本(无重复/遗漏) +``` + +## Key Parameters + +| 参数 | 默认值 | 说明 | +|------|--------|------| +| `chunk_duration` | 1800s(30分钟) | 每块时长 | +| `overlap` | 30s | 重叠窗口大小 | +| 合并时裁剪 | 30s | 从第二块开始,裁掉前 30 秒 | + +## Critical Insight + +> "Overflow is silent and corrupts output without error." — 溢出无声损坏输出 + +分块策略的错误不会抛出异常,只会在最终合并的转录文本中出现乱码/重复/遗漏,难以事后发现。 + +## Related Concepts +- [[FasterWhisper]] — 分块音频的转录执行方 +- [[VoiceActivityDetection]] — VAD 过滤在分块前执行效果更佳 +- [[StructuredTranscriptJSON]] — 分块合并后结构化输出的最终格式 + +## Related Sources +- [[engineering-voice-ai-integration-engineer]] diff --git a/wiki/concepts/PIIRedaction.md b/wiki/concepts/PIIRedaction.md new file mode 100644 index 00000000..076e1c23 --- /dev/null +++ b/wiki/concepts/PIIRedaction.md @@ -0,0 +1,56 @@ +--- +title: "PIIRedaction" +type: concept +tags: ["privacy", "pii", "gdpr", "hipaa", "voice-ai"] +last_updated: 2026-05-02 +--- + +# PIIRedaction(个人身份信息脱敏) + +## Definition + +PII Redaction 是在转录管道中将个人身份信息(姓名、身份证号、信用卡、电话、邮箱等)自动检测并替换为占位符或删除的处理阶段。作为命名且可配置的管道阶段嵌入,不是事后补丁。 + +## Why It Must Be a Pipeline Stage + +- **合规性**:HIPAA(医疗)、GDPR(欧洲)、SOC 2(企业安全)要求处理录音/转录时保护 PII +- **不可逆性**:一旦 PII 被写入日志/CMS/数据库,删除成本极高 +- **范围**:医疗记录(MRN、病历号)、法律记录(案件号、律师姓名)、客服录音(账号、密码) + +## Detection Methods + +| 方法 | 适用场景 | 精度 | +|------|---------|------| +| 正则规则 | 电话、邮箱、信用卡、SSN | 高(规则明确) | +| NER 模型 | 人名、地址、机构名 | 中(依赖模型质量) | +| 云端 PII API | 大规模、多种 PII 类型 | 高(AssemblyAI/云 ASR 内置) | + +## Pipeline Position + +``` +音频 → 预处理 → 转录 → PII 检测 → 结构化输出 → 下游系统 + ↑ + PIIRedaction 在转录之后执行 +``` + +## Redaction Symbols + +| 符号 | 含义 | +|------|------| +| `[REDACTED]` | 已脱敏 | +| `[PHONE]` | 电话号码 | +| `[EMAIL]` | 邮箱地址 | +| `[SSN]` | 社保号 | +| `[NAME]` | 人名 | + +## Critical Rule + +> "Never log raw audio content or unredacted transcript text in production monitoring systems." — 生产监控中禁止记录未脱敏内容 + +## Related Concepts +- [[StructuredTranscriptJSON]] — PII 脱敏后的输出格式 +- [[LLMHandoff]] — 脱敏后传递给 LLM(避免 LLM 学习 PII) +- [[PIIRedaction]] 在 [[engineering-voice-ai-integration-engineer]] 中是命名管道阶段 + +## Related Sources +- [[engineering-voice-ai-integration-engineer]] diff --git a/wiki/concepts/Pacing-Chart.md b/wiki/concepts/Pacing-Chart.md new file mode 100644 index 00000000..566db1e9 --- /dev/null +++ b/wiki/concepts/Pacing-Chart.md @@ -0,0 +1,61 @@ +--- +title: "Pacing Chart" +type: concept +tags: ["game-design", "level-design", "player-experience", "tension-management"] +sources: ["level-designer.md"] +last_updated: 2026-05-07 +--- + +## Definition + +Pacing Chart(节奏图表)是游戏关卡设计中的时间-张力可视化工具,通过将关卡时间轴分解为活动类型和张力级别,直观展示玩家在关卡中的情感曲线。核心理念:**通过空间节奏引导玩家情感——紧张、释放、探索、战斗交替出现,避免单一情绪持续过久导致疲劳**。 + +## Core Components + +### Time Axis +关卡时间轴,单位为关卡内部时间(如 `0:00`、`1:30`、`3:00`)或百分比进度。 + +### Activity Type +活动类型分类: +- **Exploration**(探索)—— 低压力空间发现,节奏偏缓 +- **Combat**(战斗)—— 高强度对抗,分 small/medium/large 三档 +- **Traversal**(穿越)—— 移动与平台跳跃,中等压力 +- **Story**(叙事)—— 过场或环境叙事时刻 +- **Reward**(奖励)—— 获得道具或能力,给予正向反馈 +- **Resolution**(收束)—— 阶段或关卡结束的松弛区间 + +### Tension Level +张力等级:Low → Medium → High → Peak → Release + +## Pacing Arc Template + +典型关卡的节奏弧线: + +``` +时间 | 活动类型 | 张力等级 | 笔记 +--------|-------------|-----------|-------------------------- +0:00 | Exploration | Low | 环境故事引入 +1:30 | Combat(sm) | Medium | 教学机制X +3:00 | Exploration | Low | 奖励+世界观建立 +4:30 | Combat(lg) | High | 在压力下应用机制X +6:00 | Resolution | Low | 呼吸空间+出口 +``` + +## Design Principles + +1. **张力-释放交替**:每次高张力时刻后必须有释放期,否则玩家疲劳 +2. **新机制教学嵌入低张力区**:玩家首次接触机制时,应在低压力探索区而非战斗区 +3. **奖励节奏匹配挑战节奏**:大型战斗后应紧跟奖励区,形成正反馈闭环 +4. **高潮点唯一性**:每个关卡应有且仅有一个真正的 Peak,避免多峰导致重点模糊 + +## Connections + +- [[Level Designer]] 使用 Pacing Chart 作为核心交付物 +- [[Grey Box Blockout]] 阶段即需验证 Pacing Chart 的可执行性 +- [[Encounter Design]] 的战斗规模直接影响 Pacing Chart 的张力峰值 +- [[Game Designer]] 定义宏观游戏节奏,Pacing Chart 在关卡层面落地执行 + +## Related Concepts + +- [[Environmental Storytelling]](环境叙事):影响 Exploration 时段的情感密度 +- [[Navigation Affordance]](导航可达性):Exploration 区域的迷路时间计入节奏 diff --git a/wiki/concepts/Parallel-Build-Tracks.md b/wiki/concepts/Parallel-Build-Tracks.md new file mode 100644 index 00000000..774531ed --- /dev/null +++ b/wiki/concepts/Parallel-Build-Tracks.md @@ -0,0 +1,34 @@ +--- +title: "Parallel Build Tracks" +type: concept +tags: [] +sources: [] +last_updated: 2026-05-01 +--- + +## Definition + +NEXUS-Full 部署模式下,四条功能独立但协同运作的并行开发轨道。每条轨道管理不同的关注面(产品开发、质量运营、增长营销、品牌体验),由不同的 Agent 群组驱动,在整个 Phase 3 期间同时运行。 + +## Tracks + +| Track | Focus | Key Agents | Continuous Activities | +|-------|-------|-----------|----------------------| +| **Track A** | Core Product | Agents Orchestrator, Frontend Developer, Backend Architect, AI Engineer, Evidence Collector | Dev↔QA 循环,2 周 Sprint | +| **Track B** | Growth & Marketing | Project Shepherd, Growth Hacker, Content Creator, Social Media Strategist, App Store Optimizer | 增长飞轮、发布内容、市场活动 | +| **Track C** | Quality & Operations | Agents Orchestrator, Evidence Collector, API Tester, Performance Benchmarker, Workflow Optimizer, Experiment Tracker | 持续质量验证、流程改进、A/B 测试 | +| **Track D** | Brand & Experience | Brand Guardian, UI Designer, Visual Storyteller, Whimsy Injector | 品牌一致性审计、视觉抛光、微交互设计 | + +## Usage + +仅在 NEXUS-Full 部署时激活。四条轨道共享同一 Sprint 节奏(与 Track A 的 2 周 Sprint 对齐),但 Track B/C/D 按里程碑而非每日迭代运行。 + +## Connections + +- [[Dev-QA-Loop]] ← driven_by ← Track A(核心驱动机制) +- [[Agents-Orchestrator]] ← manages ← Track A(Orchestrator 主导 Track A) +- [[Quality-Gate]] ← end_of ← Phase 3(所有四条轨道的输出汇聚到质量门) + +## Aliases +- Parallel Development Tracks +- NEXUS Build Tracks diff --git a/wiki/concepts/Parallel-Workstream.md b/wiki/concepts/Parallel-Workstream.md new file mode 100644 index 00000000..21d18304 --- /dev/null +++ b/wiki/concepts/Parallel-Workstream.md @@ -0,0 +1,44 @@ +--- +title: "Parallel Workstream" +type: concept +tags: [multi-agent, orchestration, concurrency, nexus] +sources: [executive-brief, quickstart, nexus-spatial-discovery] +last_updated: 2026-05-01 +aliases: + - Simultaneous Tracks + - Parallel Execution + - Multi-Track Pipeline +--- + +## Definition + +并行工作流(Parallel Workstream)—— NEXUS 多 Agent 编排框架的核心加速机制,在同一时间段内同时激活多个专业 Agent 工作轨道(Track),通过并发执行压缩项目时间线。 + +## Quantified Impact + +- **时间线压缩**:40-60% —— 与顺序激活 Agent 相比,并行工作流可将典型 16 周项目压缩至 4-8 周 +- **轨道数量**:4 条标准轨道 —— Core Product / Growth / Quality / Brand +- **并发加速比**:非线性的 —— 并行度增加时,加速效果递减(Amdahl 定律) + +## NEXUS 4 条标准轨道 + +| 轨道 | 主导 Agent | 职责 | +|------|-----------|------| +| Core Product | Backend Architect + Frontend Developer | 核心产品功能实现 | +| Growth | Growth Hacker | 用户增长与市场策略 | +| Quality | Testing Reality Checker + QA Agents | 质量验证与缺陷修复 | +| Brand | Brand Guardian | 品牌身份与视觉系统 | + +## Coordination Mechanism + +并行工作流需要以下协调机制防止冲突: +- **Merge Point**:并行轨道在预定节点汇合(如 Core Product + Brand → UI Implementation) +- **Shared Context**:通过 Agents-Orchestrator 或 MCP Memory Server 维护跨轨道共享上下文 +- **Quality Gate 同步**:所有轨道必须在进入下一阶段前通过质量门控 + +## Related Concepts + +- [[Agent Handoff]]:并行轨道间的交接需要结构化协议,防止上下文丢失 +- [[Quality Gate]]:并行工作流结束后必须通过统一质量门控 +- [[Agents-Orchestrator]]:并行工作流的执行控制器,负责轨道调度和同步 +- [[Memory-Based-Handoff]]:MCP Memory Server 支持并行 Agent 的上下文连续性 diff --git a/wiki/concepts/Partial-Dependence-Plots.md b/wiki/concepts/Partial-Dependence-Plots.md index edcae144..46db9b9b 100644 --- a/wiki/concepts/Partial-Dependence-Plots.md +++ b/wiki/concepts/Partial-Dependence-Plots.md @@ -1,71 +1,73 @@ ---- -title: "Partial Dependence Plots" -type: concept -tags: [model-interpretability, feature-analysis, model-visualization] -last_updated: 2026-04-25 ---- - -## Definition - -偏依赖图(Partial Dependence Plots,PDP)展示一个或两个特征与模型预测之间的边际关系——在控制其他特征后,该特征取不同值时模型输出的平均预测变化。核心假设:特征之间相对独立(独立PDP),否则需要 ICE 曲线(Individual Conditional Expectation)补充。 - -## Core Types - -### 1D PDP(单特征) -- 固定其他特征不动,在目标特征的取值范围内计算模型平均预测 -- 可视化:x 轴为特征值,y 轴为偏依赖值(边际预测效应) -- 用于:验证特征方向是否符合业务预期(单调递增/递减/U形) - -### 2D PDP(特征交互) -- 两个特征同时变化,展示交互效应对预测的联合影响 -- 用于:检测模型学习到的非预期特征交互(如 X₁ × X₂ 的非线性组合) - -### ICE Curves(Individual Conditional Expectation) -- 每条线代表一个样本的偏依赖曲线(而非平均值) -- 解决 PDP 掩盖个体异质性的问题 -- 与 PDP 结合:PDP 叠加 ICE 曲线,同时展示平均趋势和个体差异 - -## Usage - -```python -from sklearn.inspection import PartialDependenceDisplay - -# 1D PDP for single feature -fig, ax = plt.subplots(figsize=(8, 5)) -PartialDependenceDisplay.from_estimator( - model, X, [feature_name], - grid_resolution=50, ax=ax -) -ax.set_title(f"Partial Dependence - {feature_name}") -fig.savefig(f"pdp_{feature_name}.png", dpi=150) - -# 2D PDP for feature interaction -fig, ax = plt.subplots(figsize=(8, 6)) -PartialDependenceDisplay.from_estimator( - model, X, [(feat_a, feat_b)], ax=ax -) -fig.savefig(f"pdp_interact_{feat_a}_x_{feat_b}.png", dpi=150) -``` - -## Model QA 中的应用 - -Model QA Specialist 使用 PDP 进行以下审计: -1. **方向性验证**:检查 PDP 曲线方向是否符合业务领域知识(如"收入↑ → 违约概率↓") -2. **非单调性检测**:识别模型在某些区间学习到的反直觉非单调关系 -3. **交互效应识别**:2D PDP 检测 top correlated feature pairs 的交互效应 -4. **跨时间稳定性**:对比 Train vs OOT 的 PDP 曲线,识别特征关系的时间漂移 -5. **SHAP 交叉验证**:PDP 验证边际方向,SHAP 验证精确归因,两者互补 - -## Relationship - -- **依赖** [[SHAP]]:SHAP 提供精确特征归因,PDP 提供趋势可视化;PDP 曲线形状与 SHAP beeswarm 的分布吻合 -- **依赖** [[Population-Stability-Index]]:PSI 捕捉特征分布漂移,PDP 捕捉特征效应的变化,两者共同判断模型是否需要重训 -- **支撑** [[Calibration-Testing]]:PDP 揭示的非线性关系可能是校准问题的根源 -- **支撑** [[specialized-model-qa]](Source):Model QA Specialist 的特征分析核心工具 - -## Key Limitations - -- **强交互效应**:当特征高度相关时,PDP 可能产生误导性结论(忽略其他特征的条件分布) -- **异质性掩盖**:个体 ICE 曲线与平均 PDP 的差异反映异质性,忽略可能遗漏关键子群体 -- **分类变量**:需预先分箱,箱的划分方式影响结果解释 -- **高维特征**:超过 2 个特征的交互需用 SHAP interaction values 或 ALE plots +--- +title: "Partial Dependence Plots" +type: concept +tags: [model-interpretability, feature-analysis, model-visualization] +sources: + - specialized-model-qa +last_updated: 2026-05-29 +--- + +## Definition + +偏依赖图(Partial Dependence Plots,PDP)展示一个或两个特征与模型预测之间的边际关系——在控制其他特征后,该特征取不同值时模型输出的平均预测变化。核心假设:特征之间相对独立(独立PDP),否则需要 ICE 曲线(Individual Conditional Expectation)补充。 + +## Core Types + +### 1D PDP(单特征) +- 固定其他特征不动,在目标特征的取值范围内计算模型平均预测 +- 可视化:x 轴为特征值,y 轴为偏依赖值(边际预测效应) +- 用于:验证特征方向是否符合业务预期(单调递增/递减/U形) + +### 2D PDP(特征交互) +- 两个特征同时变化,展示交互效应对预测的联合影响 +- 用于:检测模型学习到的非预期特征交互(如 X₁ × X₂ 的非线性组合) + +### ICE Curves(Individual Conditional Expectation) +- 每条线代表一个样本的偏依赖曲线(而非平均值) +- 解决 PDP 掩盖个体异质性的问题 +- 与 PDP 结合:PDP 叠加 ICE 曲线,同时展示平均趋势和个体差异 + +## Usage + +```python +from sklearn.inspection import PartialDependenceDisplay + +# 1D PDP for single feature +fig, ax = plt.subplots(figsize=(8, 5)) +PartialDependenceDisplay.from_estimator( + model, X, [feature_name], + grid_resolution=50, ax=ax +) +ax.set_title(f"Partial Dependence - {feature_name}") +fig.savefig(f"pdp_{feature_name}.png", dpi=150) + +# 2D PDP for feature interaction +fig, ax = plt.subplots(figsize=(8, 6)) +PartialDependenceDisplay.from_estimator( + model, X, [(feat_a, feat_b)], ax=ax +) +fig.savefig(f"pdp_interact_{feat_a}_x_{feat_b}.png", dpi=150) +``` + +## Model QA 中的应用 + +Model QA Specialist 使用 PDP 进行以下审计: +1. **方向性验证**:检查 PDP 曲线方向是否符合业务领域知识(如"收入↑ → 违约概率↓") +2. **非单调性检测**:识别模型在某些区间学习到的反直觉非单调关系 +3. **交互效应识别**:2D PDP 检测 top correlated feature pairs 的交互效应 +4. **跨时间稳定性**:对比 Train vs OOT 的 PDP 曲线,识别特征关系的时间漂移 +5. **SHAP 交叉验证**:PDP 验证边际方向,SHAP 验证精确归因,两者互补 + +## Relationship + +- **依赖** [[SHAP]]:SHAP 提供精确特征归因,PDP 提供趋势可视化;PDP 曲线形状与 SHAP beeswarm 的分布吻合 +- **依赖** [[Population-Stability-Index]]:PSI 捕捉特征分布漂移,PDP 捕捉特征效应的变化,两者共同判断模型是否需要重训 +- **支撑** [[Calibration-Testing]]:PDP 揭示的非线性关系可能是校准问题的根源 +- **支撑** [[specialized-model-qa]](Source):Model QA Specialist 的特征分析核心工具 + +## Key Limitations + +- **强交互效应**:当特征高度相关时,PDP 可能产生误导性结论(忽略其他特征的条件分布) +- **异质性掩盖**:个体 ICE 曲线与平均 PDP 的差异反映异质性,忽略可能遗漏关键子群体 +- **分类变量**:需预先分箱,箱的划分方式影响结果解释 +- **高维特征**:超过 2 个特征的交互需用 SHAP interaction values 或 ALE plots diff --git a/wiki/concepts/PerformanceMax.md b/wiki/concepts/PerformanceMax.md index 2729bfc6..bd08f57c 100644 --- a/wiki/concepts/PerformanceMax.md +++ b/wiki/concepts/PerformanceMax.md @@ -1,35 +1,52 @@ ---- -title: "Performance Max" -type: concept -tags: ["paid-media", "google-ads", "automation", "ai"] -last_updated: 2026-04-20 ---- - -## Aliases -- Performance Max Campaigns -- PMax -- Performance Max Ads - -## Overview -Performance Max 是 Google Ads 提供的 AI 驱动的全渠道广告系列类型,自动在 YouTube、Display、Search、Discover、Gmail、Shopping 所有 Google 广告位优化广告投放。是 [[PaidMediaPpcStrategist]] 的核心武器之一。 - -## How It Works -- 广告主提供资产(图片/标题/描述/视频/Logo)和预算 -- Google AI 自动组合生成广告,根据实时信号(受众、设备、时间、创意组合)动态优化 -- 支持 Goal-based bidding,自动寻找最有可能达成转化目标的用户 - -## Key Components -- **Asset Groups**: 资产组,定义一套完整的创意素材 -- **Audience Signals**: 受众信号,引导 AI 关注的种子受众 -- **Conversion Goals**: 转化目标,定义成功的衡量标准 - -## PPC Strategist's Perspective -- Performance Max 是规模化增长的核心工具,适合覆盖增量用户 -- 需要与 Search/Shopping 协同,避免 cannibalization(预算内耗) -- 资产质量直接决定效果上限 -- 需设置合理的预算和转化价值追踪 - -## Related Concepts -- [[SmartBidding]]: Performance Max 依赖 Smart Bidding 作为出价机制 -- [[AccountArchitecture]]: Performance Max 是账户架构中的活动类型之一 -- [[TieredCampaignArchitecture]]: Performance Max 通常与品牌 Search 配合,分层隔离 +--- +title: "Performance Max" +type: concept +tags: ["ppc", "google-ads", "ai", "automation", "paid-media"] +sources: ["paid-media-ppc-strategist"] +last_updated: 2026-05-01 +--- + +## Definition + +Performance Max(PMax)是 Google Ads 提供的 AI 驱动的全渠道广告系列类型,通过 Google 的机器学习算法,自动在 Search、Display、YouTube、Gmail、Shopping 所有 Google 广告库存中实时优化广告投放,以最大化预设的转化目标。区别于传统按广告类型创建系列,PMax 将所有渠道整合为一个统一优化的单元。 + +## How It Works + +1. **Asset Group**:上传标题、描述、图片、视频、logo 等创意素材 +2. **Audience Signals**:提供种子受众(Customer Match、In-Market、Affinity)加速学习 +3. **Automatic Optimization**:算法实时决定:哪个渠道、哪个受众、在什么时机展示什么创意 +4. **Cross-Channel Learning**:Search、Display、YouTube 等渠道数据互通,提升整体效果 + +## Asset Group Design + +PMax 的核心输入单元是 Asset Group: +- **Required Assets**:至少 1 个图片(或 logo)+ 1 个标题 + 1 个描述 +- **Recommended Assets**:2-3 个图片 + 5+ 标题 + 5+ 描述 + 1+ 视频 +- **Ad Strength**:Google 评分,目标是 "Good" 或 "Excellent" + +### Asset Group Strategy +- 按产品线/服务线拆分 Asset Group,避免混杂 +- A/B 测试不同 Asset Group 组合 +- 定期补充新创意,避免疲劳 + +## Audience Signals + +PMax 的"教练"输入,辅助算法更快学习: +- **Customer Match Lists**:高价值客户数据 +- **In-Market Audiences**:考虑中的购买者 +- **Life Events**:人生阶段事件(毕业/搬家/结婚等) +- **Demographics**:年龄/收入/家庭状况 + +## Limitations and Best Practices + +| 限制 | 应对策略 | +|------|---------| +| 关键词控制有限 | 使用 Search Themes 引导 | +| 受众控制有限 | 精准的 Audience Signals | +| 品牌安全依赖算法 | 排除内容排除项设置 | +| 透明度低 | 结合 Search/Shopping 标准系列监测 | + +## Connections +- [[AutomatedBiddingStrategy]]:PMax 内置 Smart Bidding(Max Conversions / tROAS) +- [[AudienceStrategy]]:Audience Signals 是 PMax 的关键输入 +- [[GoogleAds]]:PMax 是 Google Ads 独有的广告系列类型 diff --git a/wiki/concepts/PersistentWiki.md b/wiki/concepts/PersistentWiki.md new file mode 100644 index 00000000..9ae82b22 --- /dev/null +++ b/wiki/concepts/PersistentWiki.md @@ -0,0 +1,33 @@ +--- +title: "PersistentWiki" +type: concept +tags: [knowledge-management, wiki, llm, persistent] +sources: [llm-wiki] +last_updated: 2026-05-02 +--- + +## Overview +持久化维基(Persistent Wiki)是 [[LLM Wiki]] 模式的核心产物——一个结构化的、相互链接的 Markdown 文件集合,介于用户与原始数据源之间。知识编译一次后持续保持最新,无需在每次查询时重新推导。 + +## Core Characteristics +- **持久化**:知识以结构化页面的形式存储,不随对话结束而消失 +- **可积累**:每添加一个新来源,Wiki 就变得更丰富,而非从头推导 +- **相互链接**:页面之间通过 [[wikilinks]] 链接,形成知识网络 +- **主动维护**:LLM 负责更新摘要、添加标签、标记矛盾,无需人类做"记账式"工作 + +## Three-Layer Architecture +持久化维基建立在 [[LLMWikiArchitecture]] 之上: +1. **Raw Sources**:原始文档(不可变) +2. **Wiki**:LLM 生成的知识层(持久化维基本身) +3. **Schema**:配置文件(CLAUDE.md / AGENTS.md) + +## Operation Patterns +- **[[IngestWorkflow]]**:导入工作流——LLM 读取源文件,创建/更新 Wiki 页面 +- **[[QueryWorkflow]]**:查询工作流——用户提问,LLM 搜索 Wiki 并综合答案 +- **[[LintWorkflow]]**:检查工作流——定期健康检查 Wiki + +## Relationships +- [[PersistentWiki]] ← implements ← [[LLMWikiArchitecture]] +- [[PersistentWiki]] ← competes_with ← [[RAG]](传统 RAG 每次查询从零推导,持久化维基一次编译持续复用) +- [[PersistentWiki]] ← inspired_by ← [[Memex]](Vannevar Bush 1945) +- [[LLM Wiki]] ← uses ← [[PersistentWiki]]([[LLM Wiki]] 是完整模式,[[PersistentWiki]] 是其核心产物) diff --git a/wiki/concepts/Photography-Terminology.md b/wiki/concepts/Photography-Terminology.md new file mode 100644 index 00000000..4d709797 --- /dev/null +++ b/wiki/concepts/Photography-Terminology.md @@ -0,0 +1,77 @@ +--- +title: "Photography Terminology" +type: concept +tags: [photography, prompt-engineering, technical] +last_updated: 2026-05-15 +--- + +## Definition + +专业摄影术语体系——用于在 AI 图像生成提示词中精确描述光线、构图、相机参数和后处理效果,确保 AI 模型准确理解和渲染预期的摄影效果。 + +## Core Categories + +### 光线类(Lighting) +| 术语 | 含义 | 提示词示例 | +|------|------|-----------| +| Rembrandt Lighting | 45°侧光+三角形阴影 | "Rembrandt lighting setup from camera left" | +| Butterfly Lighting | 鼻子下方蝴蝶形阴影 | "butterfly lighting, subtle shadow under nose" | +| Split Lighting | 半明半暗分割光 | "dramatic split lighting, 50/50 face division" | +| Rim Light / Hair Light | 轮廓光/发丝光 | "strong rim light separating from background" | +| Softbox | 漫射箱光源 | "large softbox overhead creating soft gradient" | +| Volumetric Lighting | 体积光/光束 | "volumetric golden hour sunbeams through fog" | +| Chiaroscuro | 明暗对比 | "chiaroscuro dramatic shadow composition" | +| Bokeh | 焦外虚化 | "creamy f/1.4 bokeh background" | + +### 相机与焦距类 +| 术语 | 含义 | 提示词示例 | +|------|------|-----------| +| Shallow Depth of Field | 浅景深 | "shallow depth of field, f/1.8, subject sharp" | +| Deep Focus | 深景深 | "deep focus, f/11, foreground to background sharp" | +| Wide Angle Distortion | 广角畸变 | "wide angle 16mm lens, slight perspective exaggeration" | +| Telephoto Compression | 长焦压缩 | "telephoto 200mm, compressed background" | +| Eye Level | 平视视角 | "shot at eye level, 85mm portrait lens" | +| Bird's Eye View | 俯视 | "bird's eye view, overhead camera" | +| Worm's Eye View | 仰视 | "worm's eye angle, dramatic upward perspective" | + +### 摄影类型类 +| 术语 | 含义 | 提示词示例 | +|------|------|-----------| +| High Key | 高调摄影 | "high key lighting, bright and airy aesthetic" | +| Low Key | 低调摄影 | "low key, dramatic shadow, moody atmosphere" | +| Editorial | 编辑摄影 | "editorial fashion photography style" | +| Documentary | 纪实摄影 | "documentary style, authentic and unretouched" | +| Fine Art | 艺术摄影 | "fine art photography, gallery exhibition quality" | + +### 后处理类 +| 术语 | 含义 | 提示词示例 | +|------|------|-----------| +| Color Grading | 色彩调色 | "teal and orange color grade, cinematic" | +| Film Emulation | 胶片模拟 | "Kodak Portra 400 film stock emulation" | +| Grain | 颗粒感 | "subtle film grain, 35mm Ilford HP5" | +| HDR | 高动态范围 | "HDR processing, detailed highlights and shadows" | + +## Photography Reference Photographers + +| 摄影师 | 风格特征 | 提示词引用 | +|--------|---------|-----------| +| Annie Leibovitz | 戏剧性人像、叙事场景 | "Annie Leibovitz inspired editorial portrait" | +| Peter Lindbergh | 自然光黑白、真实质感 | "Peter Lindbergh natural light black and white" | +| Helmut Newton | 高对比、时尚张力 | "Helmut Newton dramatic fashion photography" | +| Irving Penn | 简洁构图、棚拍经典 | "Irving Penn studio minimalist composition" | + +## Core Principle + +> 使用正确的摄影术语,而非口语化描述——"shallow depth of field, f/1.8 bokeh" 而非 "blurry background"。 + +## Connections + +- [[Five-Layer-Prompt-Structure]] 的技术摄影层(Lamp + Technical Photography Layer)的术语来源 +- [[Midjourney]] / [[Stable-Diffusion]] 等 AI 平台对摄影术语的识别和渲染能力 +- [[Prompt-Engineering]] 的技术精确性基础 + +## Aliases + +- 摄影术语体系 +- Professional Photography Language +- Technical Photography Specs diff --git a/wiki/concepts/Pipeline-State-Management.md b/wiki/concepts/Pipeline-State-Management.md new file mode 100644 index 00000000..f2220d6f --- /dev/null +++ b/wiki/concepts/Pipeline-State-Management.md @@ -0,0 +1,31 @@ +--- +title: "Pipeline-State-Management" +type: concept +tags: [] +sources: [agents-orchestrator] +last_updated: 2026-05-29 +--- + +## Definition +**Pipeline State Management**(流水线状态管理)是 [[AgentsOrchestrator]] 在整个开发流程中追踪和维护项目状态的能力——追踪当前任务、所处阶段、完成状态,在 Agent 间传递上下文信息,处理错误并实现恢复。 + +## Core Responsibilities +- **Track progress**: Maintain state of current task, phase, and completion status +- **Context preservation**: Pass relevant information between agents +- **Error recovery**: Handle agent failures gracefully with retry logic +- **Documentation**: Record decisions and pipeline progression + +## State Tracking Elements +- Current task and phase +- Completion status of each task +- Retry count per task +- Agent handoff context +- Quality gate decisions (PASS/FAIL) + +## Relationship to Other Concepts +- Complementary to [[Agent-Handoff]] — provides the state infrastructure that enables smooth agent transitions +- Enhanced by [[Quality-Gate]] — quality gates update pipeline state +- Referenced in [[AgentsOrchestrator]] Phase 3 Dev-QA Loop + +## Sources +- [[agents-orchestrator]] diff --git a/wiki/concepts/Platform-Specific-Optimization.md b/wiki/concepts/Platform-Specific-Optimization.md new file mode 100644 index 00000000..46637d1b --- /dev/null +++ b/wiki/concepts/Platform-Specific-Optimization.md @@ -0,0 +1,53 @@ +--- +title: "Platform-Specific Optimization" +type: concept +tags: [prompt-engineering, ai-image-generation, platform] +last_updated: 2026-05-15 +--- + +## Definition + +针对不同 AI 图像生成平台(Midjourney、DALL-E、Stable Diffusion、Flux)的特定语法、参数和优化策略,使提示词在各平台上发挥最优效果。 + +## Platform Comparison + +### Midjourney +- **参数语法**:`--ar`(宽高比)、`--v`(版本)、`--style`(风格)、`--chaos`(随机性)、`--no`(负向)、`--iw`(图像权重) +- **多提示词加权**:使用 `::` 语法实现 token 级权重控制(如 `cat::1.5 dog::0.8`) +- **风格引用**:`--style` 参数支持预设风格库 +- **优化要点**:强调氛围和情绪词,依赖参数调控技术细节 + +### DALL-E +- **自然语言优化**:支持完整的自然语言描述,无需特殊语法 +- **风格混合**:通过描述性语言融合不同艺术风格 +- **优化要点**:详细描述场景和情感,利用自然语言的灵活性 + +### Stable Diffusion +- **Token 加权**:使用括号 `(token)` 和数字权重 `[token:0.5]` 控制 token 强度 +- **Embedding 引用**:通过文本反演(Textual Inversion)引用自定义概念 +- **LoRA 集成**:调用特定风格的 LoRA 适配器增强特定效果 +- **优化要点**:精细化 token 权重管理,结合 Embedding 和 LoRA 实现精准控制 + +### Flux +- **详细自然语言**:偏好详细、具体的自然语言描述 +- **写实优先**:对写实摄影风格有天然优势 +- **优化要点**:提供尽可能详细的场景描述,减少抽象暗示 + +## Cross-Platform Best Practice + +1. 核心五层提示词结构在各平台通用 +2. 平台特有参数在提示词末尾添加 +3. 测试不同平台的相同核心描述的输出差异 +4. 建立各平台成功提示词库,持续迭代优化 + +## Connections + +- [[Five-Layer-Prompt-Structure]] 是跨平台的通用框架 +- [[Midjourney]] / [[DALL-E]] / [[Stable-Diffusion]] / [[Flux]] 各自的专属优化 +- [[Prompt-Engineering]] 的平台适配层 + +## Aliases + +- Platform Optimization +- Multi-Platform Prompt Tuning +- 平台适配优化 diff --git a/wiki/concepts/Polanyi-Exchange.md b/wiki/concepts/Polanyi-Exchange.md new file mode 100644 index 00000000..189c8706 --- /dev/null +++ b/wiki/concepts/Polanyi-Exchange.md @@ -0,0 +1,26 @@ +--- +title: "Polanyi Exchange" +type: concept +tags: ["anthropology", "economy", "exchange", "polanyi", "anthropological-economy"] +last_updated: 2026-04-25 +--- + +## Definition +Polanyi 交换分类——Karl Polanyi 将前工业社会的交换系统分为三种类型:**互惠**(reciprocity)、**再分配**(redistribution)和**市场**(market),三者嵌入不同的社会结构中,非市场经济是常态。 + +## Core Framework +- **互惠(Reciprocity)**:对称性群体之间的双向给予和回报(家庭、友谊、礼物经济) +- **再分配(Redistribution)**:中心集权机构收集资源后统一分配(国家税收/公共服务、部落首领的仓库) +- **市场(Market)**:供给-需求-价格机制调节交换(Polanyi 认为在 20 世纪之前极少见) +- **嵌入性(Embeddedness)**:前工业社会中,经济交换嵌入社会关系、宗教义务和政治结构中 + +## Key Thinkers +- Karl Polanyi(《大转型》作者,经济人类学奠基人) +- [[Marcel-Mauss]](《礼物》对互惠的早期分析) +- Marshall Sahlins(部落社会的互惠分类) + +## Connections +- [[Anthropologist-Agent]] ← uses_framework ← [[Polanyi-Exchange]] +- [[Gift-Economy]] ← foundational_for ← [[Polanyi-Exchange]] +- [[Cultural-Ecology]] ← shapes ← [[Polanyi-Exchange]] +- [[Functionalism]] ← explains ← [[Polanyi-Exchange]] diff --git a/wiki/concepts/PolyvagalTheory.md b/wiki/concepts/PolyvagalTheory.md new file mode 100644 index 00000000..2d1fcd09 --- /dev/null +++ b/wiki/concepts/PolyvagalTheory.md @@ -0,0 +1,39 @@ +--- +title: "Polyvagal Theory" +type: concept +tags: [] +sources: [academic-psychologist] +last_updated: 2026-04-25 +--- + +# Polyvagal Theory + +## Aliases +- Polyvagal Theory +- Porges Polyvagal Theory +- Vagal Tone Theory + +## Definition +Porges 迷走神经理论——认为迷走神经(副交感神经系统的一部分)是理解创伤反应的生理基础,提出神经觉知(neuroception)概念:神经系统无意识地评估环境安全性。 + +## Core Concepts + +### Neuroception(神经觉知) +自主神经系统无意识地评估环境威胁/安全,不依赖意识判断。解释了为什么人在客观安全的环境中仍然感到恐惧。 + +### Three-Level Response Hierarchy(三层反应层级) +1. **Ventral Vagal(腹侧迷走)**:社会参与系统——安全状态下,与人连接、沟通、调节情绪 +2. **Sympathetic(交感神经系统)**:动员系统——战斗或逃跑应对威胁 +3. **Dorsal Vagal(背侧迷走)**:关闭系统——极端威胁下的僵硬、冻结、解离("playing dead") + +### Co-Regulation(共同调节) +安全状态下的社会参与依赖与他人的共同调节(Co-Regulation),解释了安全依恋关系的生理保护作用。 + +## Application in Character Design +Psychologist Agent 使用此理论为创伤反应提供**生理基础**而非仅仅是心理描述,帮助设计更真实的角色行为: +- 过度警觉 = 交感神经持续激活 +- 解离/冻结 = 背侧迷走接管 +- 逐步恢复安全感 = 从背侧→交感→腹侧迷走的递进恢复 + +## Connection to Wiki +- Source: [[academic-psychologist]] diff --git a/wiki/concepts/Population-Stability-Index.md b/wiki/concepts/Population-Stability-Index.md index 7d8099eb..5f050c5a 100644 --- a/wiki/concepts/Population-Stability-Index.md +++ b/wiki/concepts/Population-Stability-Index.md @@ -1,102 +1,104 @@ ---- -title: "Population Stability Index" -type: concept -tags: [model-monitoring, feature-drift, model-governance] -last_updated: 2026-04-25 ---- - -## Definition - -群体稳定性指数(Population Stability Index,PSI)是衡量两个分布(通常是开发样本 vs 实际样本)之间差异的量化指标,广泛用于监控机器学习模型输入特征和输出评分的分布漂移,是模型生命周期管理的核心监控工具。 - -## Algorithm - -$$\text{PSI} = \sum_{i=1}^{n} (act_i - exp_i) \times \ln\left(\frac{act_i}{exp_i}\right)$$ - -其中: -- $act_i$ = 实际(当前)样本在分箱中的占比 -- $exp_i$ = 期望(基准)样本在分箱中的占比 -- 使用 **Laplace smoothing**(加 1 平滑)避免除零 - -## Interpretation Thresholds - -| PSI Range | 判读 | 建议行动 | -|-----------|------|---------| -| < 0.10 | 🟢 无显著漂移 | 无需操作 | -| 0.10–0.25 | 🟡 中等漂移 | 调查原因,密切监控 | -| ≥ 0.25 | 🔴 显著漂移 | **立即采取行动**,考虑重训 | - -## Implementation - -```python -import numpy as np -import pandas as pd - -def compute_psi(expected: pd.Series, actual: pd.Series, bins: int = 10) -> float: - """ - Compute Population Stability Index between two distributions. - Interpretation: - < 0.10 → No significant shift (green) - 0.10–0.25 → Moderate shift, investigation recommended (amber) - >= 0.25 → Significant shift, action required (red) - """ - breakpoints = np.linspace(0, 100, bins + 1) - expected_pcts = np.percentile(expected.dropna(), breakpoints) - - expected_counts = np.histogram(expected, bins=expected_pcts)[0] - actual_counts = np.histogram(actual, bins=expected_pcts)[0] - - # Laplace smoothing - exp_pct = (expected_counts + 1) / (expected_counts.sum() + bins) - act_pct = (actual_counts + 1) / (actual_counts.sum() + bins) - - psi = np.sum((act_pct - exp_pct) * np.log(act_pct / exp_pct)) - return round(psi, 6) - - -def variable_stability_report( - df: pd.DataFrame, - date_col: str, - variables: list[str], - psi_threshold: float = 0.25, -) -> pd.DataFrame: - """Monthly stability report for model features.""" - periods = sorted(df[date_col].unique()) - baseline = df[df[date_col] == periods[0]] - - results = [] - for var in variables: - for period in periods[1:]: - current = df[df[date_col] == period] - psi = compute_psi(baseline[var], current[var]) - results.append({ - "variable": var, "period": period, "psi": psi, - "flag": "🔴" if psi >= psi_threshold else ("🟡" if psi >= 0.10 else "🟢"), - }) - - return pd.DataFrame(results).pivot_table( - index="variable", columns="period", values="psi" - ).round(4) -``` - -## Model QA 中的应用 - -Model QA Specialist 将 PSI 应用于以下场景: -1. **特征稳定性监控**:每月计算所有特征的 PSI,识别漂移最早的预警信号 -2. **评分分布监控**:模型输出的评分 PSI,检测整体预测分布变化 -3. **分段 PSI**:在子群体上分别计算,识别特定分段的漂移(整体 PSI 掩盖的局部问题) -4. **重训触发器**:将 PSI ≥ 0.25 设为自动重训的硬触发条件 - -## Relationship - -- **被依赖** [[SHAP]]:PSI 识别分布漂移,SHAP 分析漂移后的特征贡献变化 -- **被依赖** [[Discrimination-Metrics]]:PSI 漂移通常先于 AUC/Gini 下降出现,是预警指标 -- **被依赖** [[Calibration-Testing]]:特征分布漂移(PSI)是校准失效的根本原因之一 -- **支撑** [[specialized-model-qa]](Source):Model QA Specialist 的监控框架核心指标 - -## Key Insights - -- **方向性陷阱**:PSI 仅反映分布差异大小,不反映变化方向(高→低 或 低→高 均为漂移) -- **阈值依赖**:0.1/0.25 阈值是行业惯例,具体阈值应基于业务风险调整 -- **特征 vs 评分 PSI**:特征 PSI 先于评分 PSI 变化,是更敏感的早期预警 -- **监控频率**:生产模型应至少每月计算一次,关键业务模型建议每周甚至每日 +--- +title: "Population Stability Index" +type: concept +tags: [model-monitoring, feature-drift, model-governance] +sources: + - specialized-model-qa +last_updated: 2026-05-29 +--- + +## Definition + +群体稳定性指数(Population Stability Index,PSI)是衡量两个分布(通常是开发样本 vs 实际样本)之间差异的量化指标,广泛用于监控机器学习模型输入特征和输出评分的分布漂移,是模型生命周期管理的核心监控工具。 + +## Algorithm + +$$\text{PSI} = \sum_{i=1}^{n} (act_i - exp_i) \times \ln\left(\frac{act_i}{exp_i}\right)$$ + +其中: +- $act_i$ = 实际(当前)样本在分箱中的占比 +- $exp_i$ = 期望(基准)样本在分箱中的占比 +- 使用 **Laplace smoothing**(加 1 平滑)避免除零 + +## Interpretation Thresholds + +| PSI Range | 判读 | 建议行动 | +|-----------|------|---------| +| < 0.10 | 🟢 无显著漂移 | 无需操作 | +| 0.10–0.25 | 🟡 中等漂移 | 调查原因,密切监控 | +| ≥ 0.25 | 🔴 显著漂移 | **立即采取行动**,考虑重训 | + +## Implementation + +```python +import numpy as np +import pandas as pd + +def compute_psi(expected: pd.Series, actual: pd.Series, bins: int = 10) -> float: + """ + Compute Population Stability Index between two distributions. + Interpretation: + < 0.10 → No significant shift (green) + 0.10–0.25 → Moderate shift, investigation recommended (amber) + >= 0.25 → Significant shift, action required (red) + """ + breakpoints = np.linspace(0, 100, bins + 1) + expected_pcts = np.percentile(expected.dropna(), breakpoints) + + expected_counts = np.histogram(expected, bins=expected_pcts)[0] + actual_counts = np.histogram(actual, bins=expected_pcts)[0] + + # Laplace smoothing + exp_pct = (expected_counts + 1) / (expected_counts.sum() + bins) + act_pct = (actual_counts + 1) / (actual_counts.sum() + bins) + + psi = np.sum((act_pct - exp_pct) * np.log(act_pct / exp_pct)) + return round(psi, 6) + + +def variable_stability_report( + df: pd.DataFrame, + date_col: str, + variables: list[str], + psi_threshold: float = 0.25, +) -> pd.DataFrame: + """Monthly stability report for model features.""" + periods = sorted(df[date_col].unique()) + baseline = df[df[date_col] == periods[0]] + + results = [] + for var in variables: + for period in periods[1:]: + current = df[df[date_col] == period] + psi = compute_psi(baseline[var], current[var]) + results.append({ + "variable": var, "period": period, "psi": psi, + "flag": "🔴" if psi >= psi_threshold else ("🟡" if psi >= 0.10 else "🟢"), + }) + + return pd.DataFrame(results).pivot_table( + index="variable", columns="period", values="psi" + ).round(4) +``` + +## Model QA 中的应用 + +Model QA Specialist 将 PSI 应用于以下场景: +1. **特征稳定性监控**:每月计算所有特征的 PSI,识别漂移最早的预警信号 +2. **评分分布监控**:模型输出的评分 PSI,检测整体预测分布变化 +3. **分段 PSI**:在子群体上分别计算,识别特定分段的漂移(整体 PSI 掩盖的局部问题) +4. **重训触发器**:将 PSI ≥ 0.25 设为自动重训的硬触发条件 + +## Relationship + +- **被依赖** [[SHAP]]:PSI 识别分布漂移,SHAP 分析漂移后的特征贡献变化 +- **被依赖** [[Discrimination-Metrics]]:PSI 漂移通常先于 AUC/Gini 下降出现,是预警指标 +- **被依赖** [[Calibration-Testing]]:特征分布漂移(PSI)是校准失效的根本原因之一 +- **支撑** [[specialized-model-qa]](Source):Model QA Specialist 的监控框架核心指标 + +## Key Insights + +- **方向性陷阱**:PSI 仅反映分布差异大小,不反映变化方向(高→低 或 低→高 均为漂移) +- **阈值依赖**:0.1/0.25 阈值是行业惯例,具体阈值应基于业务风险调整 +- **特征 vs 评分 PSI**:特征 PSI 先于评分 PSI 变化,是更敏感的早期预警 +- **监控频率**:生产模型应至少每月计算一次,关键业务模型建议每周甚至每日 diff --git a/wiki/concepts/Portage-Salarial.md b/wiki/concepts/Portage-Salarial.md index b305e7c2..5f27d4fe 100644 --- a/wiki/concepts/Portage-Salarial.md +++ b/wiki/concepts/Portage-Salarial.md @@ -1,72 +1,95 @@ ---- -title: "Portage Salarial" -type: concept -tags: [france, freelancing, employment, social-protection] -sources: [specialized-french-consulting-market] -last_updated: 2026-04-25 ---- - -## Definition - -Portage Salarial 是法国特有的**劳动合同外包机制**——独立顾问(consultant)与一家 Portage 公司签署劳动合同,Portage 公司再以服务合同向客户企业开具发票。顾问名义上保持雇员身份,享受社会保险,但实质上**承担全部商业风险**(自寻客户、自定费率、无工作保障)。 - -## Key Characteristics - -- **法律框架**:劳动合同(CDI/CDD)+ 服务合同(Convention de Portage) -- **Portage 公司收费**:管理费 5-10%(按营业额计算) -- **社保缴费结构**: - - 雇主缴费(Charges Patronales):约 45%(含养老金、健康保险、失业保险等) - - 雇员缴费(Charges Salariales):约 22% - - 合计约 67% 的 TJM 毛收入用于社保缴费 - -## Cost Breakdown Example - -以 700€/天 TJM 计算: - -``` -TJM Brut: 700 €/天 -每月(18天): 12,600 €/月 -Portage 管理费(10%): -1,260 €/月 -雇主社保(45%): -5,103 €/月 -雇员社保(22%): -2,495 €/月 - ───────────── -税前净收入: 3,742 €/月 -实际日净费率: 208 €/天 -``` - -对比 Micro-Entrepreneur(同为 700€/天): - -``` -税前净收入: 9,828 €/月 -实际日净费率: 546 €/天 -``` - -**差距:338€/天**——这是社保保护(ARE 失业保险、退休金补充、Mutuelle 医疗保险)的价格。 - -## What Portage Provides - -| 权益 | Portage | Micro-Entrepreneur | -|------|---------|-------------------| -| 失业保险(ARE) | ✅ | ❌ | -| 退休金补充 | ✅ | ❌ | -| Mutuelle 医疗保险 | ✅(公司部分) | ❌ | -| 病假/产假 | ✅ | ❌ | -| 商业风险自担 | ✅ | ✅ | - -## Key Principles - -1. **Portage ≠ 就业**:本质上是"披着雇员外衣的自由职业",永远不要将 Portage 合同呈现为 CDI 等价物 -2. **平台选择**:Portage 公司间管理费和服务质量差异很大,需比较(APE、Winference等主流供应商) -3. **单一客户依赖风险**:URSSAF 规定单一客户占总收入 >70% 触发审计风险 -4. **定价公开性**:若通过 collective.work 等平台接单,费率可能对平台可见 - -## Contradictions - -- 与 [[Micro-Entrepreneur]]:Portage 净得率低(~50%)但提供完整社保;Micro 净得率高(~70%)但无社保保护 -- **市场误解**:许多新从业者认为 Portage"更安全"——实际上顾问承担全部商业风险(客户拒付、项目取消),只是法律上被认定为雇员 - -## Aliases -- Portage -- Portage Salarial -- Société de Portage -- Entreprise de Portage Salarial +--- +title: "Portage Salarial" +type: concept +tags: [] +sources: [specialized-french-consulting-market] +last_updated: 2026-04-25 +--- + +# Portage Salarial + +## Aliases +- Portage Salarial +- Portage +- Portage Company +- Société de Portage + +## Definition + +Portage Salarial(薪资代理)是法国特有的劳动法律框架,允许独立专业人士通过一家"portage 公司"作为中间人与客户签订合同,本质上是一种合法的雇佣代理机制。Portage 公司以雇主身份代为签订合同、收取客户付款、发放工资,同时为自由职业者提供完整的社会保障(失业保险、退休金、健康险)。 + +## How It Works + +``` +Client → [Portage Company] → Freelancer + (employer) (employee) +``` + +1. 自由职业者与客户(ESN 或最终客户)就服务内容达成一致 +2. Portage 公司与客户签订服务合同 +3. 客户向 Portage 公司付款 +4. Portage 公司扣除管理费(约 5-10%)和法定雇主/雇员社保后,将剩余款项作为工资发放给自由职业者 + +## Cost Breakdown + +以 **700 EUR/天 TJM** 为例(每月 18 个工作日 = 12,600 EUR/月): + +| 费用项 | 比例 | 金额 | +|-------|------|------| +| Portage 公司管理费 | ~10% | -1,260 EUR | +| 雇主端社保(约 45%) | | -5,103 EUR | +| 雇员端社保(约 22%) | | -2,495 EUR | +| **净收入(月)** | | **~3,742 EUR** | +| **有效日均净收入** | | **~208 EUR/天** | + +> 对比 Micro-Entreprise 同等 TJM:净收入 ~9,828 EUR/月,有效日均 ~546 EUR/天 +> **差距:338 EUR/天** = Portage Salarial 为社会保护付出的代价 + +## Key Benefits + +| 权益 | 说明 | +|------|------| +| **失业保险(ARE)** | 失业后可申请法国失业金(需满足缴纳条件) | +| **退休金** | 完整缴纳法国退休金体系(含基础退休金+补充退休金) | +| **健康险(Mutuelle)** | 通常由 Portage 公司提供团体健康险 | +| **病假/产假** | 享有法定病假和产假权益 | +| **法律保护** | 作为"雇员"身份,在合同纠纷中有更好的法律地位 | +| **简化行政** | 无需注册公司、报税、处理复杂账单 | + +## Key Risks + +| 风险 | 说明 | +|------|------| +| **高额社保负担** | 实际到手约 50% TJM,显著低于 Micro-Entreprise 的 70% | +| **商业风险自担** | Portage 不是真正的雇主——自由职业者自揽客户、自定费率 | +| **费率天花板** | 某些 Portage 公司对可转嫁费用有限制 | +| **合同类型限制** | 通常需要真实的"服务关系"而非"从属性雇佣" | + +> "Portage salarial is not employment. It provides social protection but the freelancer bears all commercial risk. Never present it as equivalent to a CDI." + +## Portage vs Alternatives + +| 维度 | Portage Salarial | Micro-Entreprise | SASU/EURL | +|------|----------------|-----------------|-----------| +| 净收入比例 | ~50% TJM | ~70% TJM | ~55-65% TJM | +| 失业保险 | ✅ 有 | ❌ 无 | ❌ 无(EURL 特定条件下有) | +| 退休金 | ✅ 完整缴纳 | ⚠️ 简化缴纳 | ✅ 完整缴纳 | +| 行政复杂度 | 低 | 极低 | 中 | +| 最佳适用 | 需要 ARE 保障的转型期顾问 | 低成本启动/低风险项目 | 高收入稳定期 | + +## Decision Framework + +**选择 Portage Salarial 当:** +- 需要法国失业保险作为安全网 +- 处于从 CDI 向自由职业的转型期 +- 年收入预期较高(> 80,000 EUR)且 ARE 积累价值显著 +- 需要完整的退休金缴纳记录 + +**选择 Micro-Entreprise 当:** +- 风险承受能力高,不需要失业保险 +- 年收入低于法国 Auto-Entrepreneur 免税门槛(77,700 EUR服务业) +- 短期项目或试用期 + +## Related Sources +- [[specialized-french-consulting-market]] +- [[Micro-Entreprise]] diff --git a/wiki/concepts/Practice-Theory.md b/wiki/concepts/Practice-Theory.md new file mode 100644 index 00000000..5b8f6bad --- /dev/null +++ b/wiki/concepts/Practice-Theory.md @@ -0,0 +1,24 @@ +--- +title: "Practice Theory" +type: concept +tags: ["anthropology", "sociology", "practice", "habitus", "bourdieu"] +last_updated: 2026-04-25 +--- + +## Definition +实践理论——文化不是静态的符号系统,而是通过**日常实践**不断被再生产和变革的动态过程。行动者在社会结构约束下以惯习(habitus)为中介创造文化,文化同时又塑造未来的社会结构。 + +## Core Framework +- **惯习(Habitus)**:行动者在社会化过程中内化的性情倾向系统——使社会不平等被自然化为"品味"和"个人选择" +- **文化资本(Cultural Capital)**:教育、知识、语言能力、品味等非经济形式的社会优势,可转化为经济和社会资本 +- **场域(Field)**:相对自主的社会空间(艺术、宗教、学术等),具有自身逻辑和竞争规则 + +## Key Thinkers +- [[Pierre-Bourdieu]](核心提出者) +- Anthony Giddens(structuration theory) +- Sherry Ortner(subaltern counterpoint) + +## Connections +- [[Anthropologist-Agent]] ← uses_framework ← [[Practice-Theory]] +- [[Structuralism]] ← challenges ← [[Practice-Theory]] +- [[Functionalism]] ← critiques_and_extends ← [[Practice-Theory]] diff --git a/wiki/concepts/PrematureAbstraction.md b/wiki/concepts/PrematureAbstraction.md new file mode 100644 index 00000000..a8da1446 --- /dev/null +++ b/wiki/concepts/PrematureAbstraction.md @@ -0,0 +1,60 @@ +--- +title: "PrematureAbstraction" +type: concept +tags: [engineering, code-quality, design] +last_updated: 2026-05-02 +--- + +## Definition + +过早抽象(PrematureAbstraction)指在实际需要提取抽象之前(通常指第三次出现之前)就引入辅助函数、类或接口的代码设计反模式。这导致引入短期内无法偿还的隐性债务。 + +## Core Rule + +**等待第四次出现再提取。** 前三次重复出现时,保持重复代码而非提取抽象。提取的时机应基于实际的调用次数,而非"直觉上看起来应该提取"。 + +## Why Wait for the Fourth Time + +- **第一次**:孤例,可能是一次性的特殊处理 +- **第二次**:可能是巧合,模式尚不清晰 +- **第三次**:确认存在模式,但抽象接口(参数、返回值、边界情况)尚未完全明确 +- **第四次**:抽象接口足够清晰,且维护收益开始超过抽象本身的成本 + +## Examples + +### ❌ 过早抽象(第二次就提取) + +```typescript +// 第二次出现就开始提取 +const dryRun = args.includes('--dry-run'); +if (dryRun) logDryRun(records); + +// 马上为第三次出现提取 +export function runWithMode(mode: RunMode, records: Record[]) { + // strategy pattern introduced too early +} +``` + +### ✅ 延迟抽象(第四次才提取) + +```typescript +// 保持三次重复 +if (dryRun) logDryRun(records); +if (dryRun) logDryRun(items); +if (dryRun) logDryRun(entries); + +// 第四次出现——抽象接口完全清晰了 +export function runDry(records: Record[]) { + return { dry: true, count: records.length }; +} +``` + +## Connections + +- [[engineering-minimal-change-engineer]]:最小变更工程师的核心原则之一 +- [[ScopeCreep]]:过早抽象通常是范围蔓延的表现形式 +- [[MinimalChangePrinciple]]:最小变更原则的延伸——保持重复代码直到收益明确 + +## Sources + +- [[engineering-minimal-change-engineer]] diff --git a/wiki/concepts/Presentism.md b/wiki/concepts/Presentism.md new file mode 100644 index 00000000..07599e5d --- /dev/null +++ b/wiki/concepts/Presentism.md @@ -0,0 +1,36 @@ +--- +title: "Presentism" +type: concept +tags: [historiography, methodology, ethics] +sources: [academic-historian] +last_updated: 2026-04-30 +--- + +## Definition +当代主义(Presentism)是一种历史思维中的方法论错误,指以当代的道德标准、价值观和概念框架去评判过去的历史人物和事件,而不承认或不理解历史情境与当代的差异。Historian Agent 将其作为核心方法论警示,要求在历史评估中保持"情境理解"。 + +## Key Features +- **定义**:用现代人的道德眼镜审视历史,而非将历史人物置于其时代背景中理解 +- **经典案例**: + - 用现代"民族国家"概念评判前现代政体 + - 用现代"个人权利"观念评价中世纪社会结构 + - 用现代"平等"标准否定历史上缺乏民主的社会 +- **Historian Agent 的立场**: + - **避免极端**:不因情境化而开脱历史暴行("不以现代标准评判,但也不为暴行开脱") + - **双重意识**:承认历史条件限制,同时保持道德评价的可能性 +- **与之对立的概念**: + - 历史主义(Historicism):强调理解历史情境 + - 道德相对主义(Moral Relativism):以情境为由完全否定道德评价 + +## Relationship to Other Concepts +- [[academic-historian]] ← 核心警示 ← [[Presentism]]:文档"🚨 Critical Rules"明确规定,是 Historian Agent 五步工作流的认识论前提 +- [[Historiography]] ← 属于 ← [[Presentism]]:Presentism 是历史编纂学中一个重要的认识论问题 +- [[Counterfactual-Analysis]] ← 关联 ← [[Presentism]]:反事实推理可以帮助理解历史偶然性,避免"历史必然"的当代偏见 + +## Relationship to Source Pages +- [[academic-historian]]:文档"🚨 Critical Rules"节明确列出"避免 presentism" + +## Aliases +- 当代主义 +- 当代投射谬误 +- Anachronistic Judgment diff --git a/wiki/concepts/ProceduralContentGeneration.md b/wiki/concepts/ProceduralContentGeneration.md new file mode 100644 index 00000000..e1f717fa --- /dev/null +++ b/wiki/concepts/ProceduralContentGeneration.md @@ -0,0 +1,53 @@ +--- +title: "ProceduralContentGeneration" +type: concept +tags: ["unreal-engine", "procedural", "environment", "pcg"] +sources: ["unreal-technical-artist", "unreal-world-builder"] +last_updated: 2026-04-30 +--- + +## Aliases +- PCG +- Procedural Content Generation +- UE5 PCG +- Procedural Foliage Tool + +## Definition +PCG(Procedural Content Generation,程序化内容生成)是 UE5 中通过图形化节点系统自动生成大规模环境资产(植被、岩石、碎片等)的系统。通过采样表面、随机化和几何约束,在运行时或预烘焙模式下批量放置资产。 + +## PCG vs Foliage Tool 选型原则 +| 场景 | 工具选择 | +|------|---------| +| 手绘英雄资产放置 | Foliage Tool(传统) | +| 大规模植被(1000+ 实例) | PCG + Nanite 预烘焙 | +| Runtime 生成(小区域 < 1km²) | PCG Runtime | +| 大面积开放世界(> 1km²) | PCG 预烘焙(流式兼容) | + +## PCG Graph 标准结构(以 Forest Population 为例) +1. **Surface Sampler**:在 World Partition 表面采样点 +2. **Attribute Filter**:按 biome mask 密度纹理过滤 +3. **Exclusion**:道路(8m buffer)、路径(4m)、水体(2m)、建筑(15m sphere) +4. **Poisson Disk Distribution**:最小间距防止聚集 +5. **Randomization**:旋转(Yaw 0-360°)和缩放(0.85-1.25x) +6. **Weighted Mesh Assignment**:按权重分配网格类型(如 40% Oak, 30% Pine, 20% Birch) +7. **Culling**:Nanite 资产 cull 80,000cm,非 Nanite cull 30,000cm + +## PCG Exposed Parameters(设计师调优旋钮) +- `GlobalDensityMultiplier`: 0.0–2.0 +- `MinForestSeparation`: 1.0–8.0m +- `RoadExclusionEnabled`: bool + +## Performance Constraints +- 所有 PCG 放置资产应在条件允许时启用 Nanite +- 大面积(> 1km²)使用预烘焙输出以兼容流式加载 +- Runtime PCG 仅限小区域,生成须在 3 秒内完成 + +## Connections +- [[UnrealWorldBuilder]] ← 植被放置 ← ProceduralContentGeneration +- [[UnrealEngine5]] ← 运行环境 ← ProceduralContentGeneration +- [[Nanite]] ← 几何支持 ← ProceduralContentGeneration +- [[WorldPartition]] ← 空间管理 ← ProceduralContentGeneration + +## Sources +- [[unreal-technical-artist]] +- [[unreal-world-builder]] diff --git a/wiki/concepts/Product-Requirements-Document.md b/wiki/concepts/Product-Requirements-Document.md new file mode 100644 index 00000000..ecc6efbe --- /dev/null +++ b/wiki/concepts/Product-Requirements-Document.md @@ -0,0 +1,36 @@ +--- +title: "Product Requirements Document (PRD)" +type: concept +tags: ["product-management", "documentation", "prd"] +last_updated: 2026-04-30 +--- + +## Aliases +- PRD +- Product Requirements Document + +## Definition +Product Requirements Document(产品需求文档)—— 结构化的需求定义文档,在产品经理开始设计方案之前,以用户证据和商业逻辑为支撑,明确描述要解决的问题以及成功衡量标准。 + +## Core Components +1. **问题陈述**(Problem Statement):用户痛点或商业机会的具体描述,包含证据(用户访谈、行为数据、客服工单、竞争信号) +2. **目标与成功指标**(Goals & Success Metrics):表格化列出目标、指标、当前基线、目标值和测量窗口 +3. **非目标**(Non-Goals):明确本迭代不会解决的问题,防止范围蔓延 +4. **用户画像与故事**(User Personas & Stories):核心用户画像 + 带验收标准的用户故事 +5. **解决方案概述**(Solution Overview):2-4段叙事描述,包含关键设计决策 +6. **技术考量**(Technical Considerations):依赖、已知风险、开放问题 +7. **发布计划**(Launch Plan):阶段表(内部Alpha → 封闭Beta → GA),回滚标准 +8. **附录**(Appendix):用户研究记录、竞品分析、设计稿链接等 + +## Key Principles +- **先写新闻稿,再写 PRD** —— 一段式新闻稿说不清楚用户为什么在乎,则还没准备好写需求或开始设计 +- **协作编写,不是孤立产出** —— 工程师和设计师应从一开始就参与文档编写 +- **所有指标都必须可测量** —— 定性描述不能成为验收标准 + +## Usage +由 [[Product Manager Agent]] 主导产出,是产品团队、工程师、设计师、营销和销售之间的共享语言和共识载体。 + +## Related +- [[RICE Prioritization Score]] — PRD 中优先级排序使用的量化框架 +- [[Opportunity Assessment]] — PRD 之前的早期机会评估文档 +- [[Go-to-Market (GTM) Brief]] — PRD 之后的发布执行计划 diff --git a/wiki/concepts/Programmatic-Buying.md b/wiki/concepts/Programmatic-Buying.md new file mode 100644 index 00000000..875cbc4e --- /dev/null +++ b/wiki/concepts/Programmatic-Buying.md @@ -0,0 +1,44 @@ +--- +title: "Programmatic Buying" +type: concept +tags: ["programmatic", "dsp", "display", "paid-media"] +sources: ["paid-media-programmatic-buyer"] +last_updated: 2026-04-26 +--- + +## Definition + +程序化购买(Programmatic Buying)是通过需求方平台(DSP)自动化完成数字广告展示库存的购买、竞价和投放的技术驱动型广告采购方法。区别于传统人工谈判和预订式购买,程序化购买利用实时竞价(RTB)和预设算法规则,在毫秒级完成广告曝光机会的评估与竞价。 + +## Core Components + +- **DSP(Demand-Side Platform)**:需求方平台,广告主/代理商用来自动化购买广告库存的接口 +- **SSP(Supply-Side Platform)**:供应方平台,发布商用来出售广告库存 +- **Ad Exchange**:连接 DSP 与 SSP 的公开或私有交易市场 +- **Deal ID**:预先协议的交易 ID,允许广告主以固定价格预订优质库存 +- **PMP(Private Marketplace)**:私有市场,比公开竞价更具排他性和品牌安全性 +- **Programmatic Guaranteed**:程序化保证交易,固定价格、固定量保证 + +## Types of Programmatic Buying + +| 类型 | 说明 | 品牌安全性 | +|------|------|-----------| +| Open Exchange | 公开实时竞价 | 低 | +| PMP | 私有市场邀请竞价 | 中 | +| Programmatic Guaranteed | 固定价格保证量 | 高 | + +## Key Metrics + +- **CPM(Cost Per Mille)**:每千次展示成本 +- **Viewability Rate**:可见展示率(目标 ≥70% MRC 标准) +- **Invalid Traffic Rate**:无效流量率(目标 <3%) +- **Win Rate**:竞价成功率 + +## Related Concepts +- [[ABM Display]] +- [[Viewability]] +- [[Frequency Cap]] +- [[Supply Path Optimization]] + +## Sources +- [[paid-media-programmatic-buyer]] diff --git a/wiki/concepts/Project-Management-Project-Shepherd.md b/wiki/concepts/Project-Management-Project-Shepherd.md new file mode 100644 index 00000000..23ce40d9 --- /dev/null +++ b/wiki/concepts/Project-Management-Project-Shepherd.md @@ -0,0 +1,69 @@ +--- +title: "Project Shepherd" +type: concept +tags: ["project-management", "agency-agents"] +last_updated: 2026-05-06 +--- + +## Definition + +Project Shepherd 是 The Agency 项目管理体系中的**跨职能项目协调与利益相关方对齐专家 Agent**,专注于将复杂跨职能项目的混乱协调为按时、按范围交付的规范化流程。 + +## Aliases +- Project Shepherd Agent +- Project-Management-Project-Shepherd + +## Core Responsibilities + +1. **跨职能项目编排**:规划并执行涉及多团队和多部门的大型项目,制定综合时间线并进行依赖关系映射和关键路径分析 +2. **利益相关方对齐**:制定全面的利益相关方沟通策略,跨团队促进协作与冲突解决,在所有项目参与者中维护对齐 +3. **风险缓解**:识别并评估项目风险,制定全面的缓解计划,90% 的已识别风险在影响项目结果前被成功化解 +4. **质量交付保证**:为所有交付物建立质量门控和验收标准,监控项目健康状态并主动实施纠正措施 + +## Key Methodologies + +### 四阶段工作流 +1. 项目启动与规划 +2. 团队组建与 Kickoff +3. 执行协调与监控 +4. 质量保证与交付 + +### 关键交付物 +- **Project Charter**:包含问题陈述、项目目标、范围、成功标准、利益相关方分析、沟通计划、资源需求和风险评估 +- **Project Status Report**:绿/黄/红健康状态报告,包含执行摘要、进度更新、问题与风险、利益相关方行动 + +### 沟通原则 +- 透明报告(即使传递坏消息) +- 聚焦解决方案(上报即带推荐方案) +- 绝不承诺不切实际的时间线 + +## Success Metrics +- 95% 项目按时在批准预算内交付 +- 利益相关方满意度 4.5/5 +- 范围蔓延 < 10% +- 90% 已识别风险成功缓解 + +## Relationship with Other Agents + +| Agent | 关系 | 说明 | +|-------|------|------| +| [[ProjectManagerSenior]] | 协同 | Senior PM 产出详细任务列表,Project Shepherd 负责多团队协调执行 | +| [[Project-Management-Jira-Workflow-Steward]] | 协同 | Jira 工作流编排确保任务追踪与可见性 | +| [[Project-Management-Studio-Operations]] | 协同 | Studio Operations 提供运营支撑 | +| [[Project-Management-Experiment-Tracker]] | 支持 | 利用实验数据支持项目看护决策 | + +## Position in Agency Hierarchy + +属 Agency 项目管理体系中的**跨团队交付协调层级**: + +``` +Studio Producer(战略层) + ↓ +Senior PM(执行层任务分解) + ↓ +Project Shepherd(跨团队交付) + ↓ +Jira Workflow Steward(流程治理) + ↓ +Experiment Tracker(实验跟踪) +``` diff --git a/wiki/concepts/Proof-Project-Strategy.md b/wiki/concepts/Proof-Project-Strategy.md new file mode 100644 index 00000000..871aaaad --- /dev/null +++ b/wiki/concepts/Proof-Project-Strategy.md @@ -0,0 +1,88 @@ +--- +title: "Proof-Project-Strategy" +type: concept +tags: [] +sources: [] +last_updated: 2026-05-30 +--- + +## 基本信息 +- **原文**:Proof Project(证明项目) +- **中文**:先导项目 / 概念验证项目 +- **英文**:Proof of Concept / POC / Scoping Project +- **韩国语境**:낮은 리스크 소규모 계약 + +## 定义 +Proof Project 策略是 Korean Business Navigator 提出的核心市场进入方法:当与新客户关系尚未建立信任时,通过一个有明确边界的小型付费项目来证明自身能力,用结果而非说服来推动完整的长期合作。 + +## 核心原则 + +> **"The proof project IS the sales pitch. Over-deliver deliberately."** +> (证明项目本身就是销售话术。刻意超额交付。) + +韩国客户不信任陌生供应商的口头承诺,但他们相信自己的眼睛。当他们在内部传阅你精心制作的交付物时,销售就已经完成了。 + +## 标准规格 + +| 维度 | 建议值 | +|------|--------| +| 时长 | 2-3 周 | +| 交付物 | 具体、可内部传阅、演示文稿级 | +| 价格 | 固定报价(相当于 2,000-3,000 EUR) | +| 框架 | "相互评估":看我们是否合拍 | + +### 报价框架 +不要这样说: +> "这是我们的标准价格..." + +这样说: +> "我们建议先做一个小的试点项目,用2-3周时间交付XXX。我们认为这对我们双方都是了解对方工作方式的最好方式。您觉得怎么样?" + +## 五步执行流程 + +1. **提案有边界的 engagement** — 2-3 周、特定交付物、固定价格 +2. **框架为 mutual evaluation** — "让我们看看我们的工作风格是否合拍" 降低感知承诺风险 +3. **刻意超额交付 120%** — 韩国 Proof Project 就是销售演示,要做得超出预期 +4. **永远不要在 Proof Project 期间讨论完整 engagement 的价格** — 等他们看到结果后主动询问 +5. **文档化一切** — 韩国利益相关者会在内部传阅你的交付物,做成演示级质量 + +## 为什么对韩国市场特别重要 + +| 传统销售方法 | 在韩国的问题 | +|-------------|-------------| +| 大量说服和 Pitch | 韩国人不信任陌生人的口头承诺 | +| 尽快推进到合同 | 품의流程需要 6-16 周,强行加速破坏信任 | +| 强调资质和证书 | 韩国更看重实际交付和口碑 | +| 一次性大合同提案 | 感知风险高,内部审批难 | + +**Proof Project 降低了三个维度的感知风险:** +- **财务风险**:小金额,不影响年度预算 +- **技术风险**:特定领域,不涉及核心业务 +- **关系风险**:"评估期"让双方都有退路 + +## Proof Project 信号分析 + +### 成功信号(应推进完整合同讨论) +- 联系人主动在内部传阅交付物 +- 被邀请参加第二阶段的회식 +- 联系人主动问你:"那么,如果我们做完整项目呢?" +- 其他部门的人被邀请旁听交付 + +### 失败信号(不要强推) +- 联系人仅以"谢谢"回应,无后续跟进问题 +- 交付物未被引用或传阅 +- 联系人在会议中明显心不在焉 +- 没有被邀请参加任何非正式交流 + +## 与西方 POC 的区别 + +| 维度 | 西方 POC | 韩国 Proof Project | +|------|---------|-------------------| +| 目标 | 验证技术可行性 | 建立信任和人际关系 | +| 成功标准 | 技术指标达成 | 联系人是否主动推荐 | +| 后续 | 直接进入合同 | 需要在회식中确认关系深度 | +| 时间 | 1-4 周 | 2-3 周(不应太快) | +| 价格 | 可以很低甚至免费 | 必须收费(免费=无价值) | + +## 来源 +- [[specialized-korean-business-navigator]] — Proof Project Strategy 完整说明 diff --git a/wiki/concepts/ProppMorphology.md b/wiki/concepts/ProppMorphology.md new file mode 100644 index 00000000..44e622d3 --- /dev/null +++ b/wiki/concepts/ProppMorphology.md @@ -0,0 +1,63 @@ +--- +title: "Propp's Morphology" +type: concept +tags: [] +sources: [] +last_updated: 2026-04-30 +--- + +## Aliases +- Propp's Morphology +- Propp's Narrative Functions +- Morphology of the Folktale +- Propp 功能分析 +- 普罗普形态学 + +## Overview +Propp's Morphology([[Vladimir Propp]] 的叙事形态学)是对民间故事结构的系统性形式化分析。通过对俄罗斯民间故事的归纳,Propp 发现尽管故事角色和情境各异,但其 **31 种叙事功能(Functions)** 按固定顺序在故事中出现。 + +## The 31 Functions +按出现顺序(部分关键功能): +1. **Absentation**:家庭成员离开 +2. **Interdiction**:禁止/警告 +3. **Violation**:禁止被打破 +4. **Villainy/Lack**:对手作恶或英雄缺乏某物 +5. **Departure**:英雄出发 +6. **Donation**:供者给予魔法物品 +7. **Test**:英雄被测试 +8. **Reaction**:英雄应对测试 +9. **Receipt of Magic Agent**:英雄获得魔法物品 +10. **Guidance**:被送往目标 +11. **Struggle**:与反派斗争 +12. **Branding/Spongification**:英雄被标记或变形 +13. **Victory**:反派被击败 +14. **Return**:英雄归来 +15. **Pursuit/Chase**:被追赶 +16. **Rescue**:获救 +17. **Unrecognized Arrival**:英雄以伪装到达 +18. **False Hero Claim**:假英雄声称功劳 +19. **Difficult Task**:设置难题 +20. **Solution**:难题被解决 +21. **Recognition**:英雄被认出 +22. **Exposure**:假英雄/反派被揭露 +23. **Transfiguration**:英雄获新外貌 +24. **Punishment**:反派被惩罚 +25. **Wedding**:英雄与公主结婚/获得奖赏 + +## 7 Character Types +| Type | Role | +|------|------| +| Hero | 追求目标的人 | +| Donor | 提供魔法物品或信息 | +| Helper | 协助英雄 | +| Princess | 被解救/奖励 | +| Princess's Father | 国王/权威 | +| Villain | 反派/对立力量 | +| False Hero | 冒名顶替者 | + +## Application +[[Academic Narratologist]] 使用此框架分析童话、quest 类游戏和冒险叙事的结构模式。 + +## Relationship to Other Concepts +- [[HeroesJourney]]:Propp 是 Hero's Journey 的学术前身,两者有重叠(Departure, Test, Victory, Return) +- [[Three-Act-Structure]]:功能序列可以映射到三幕(Setup → Confrontation → Resolution) diff --git a/wiki/concepts/PsychodynamicDefenseMechanisms.md b/wiki/concepts/PsychodynamicDefenseMechanisms.md new file mode 100644 index 00000000..088c62e4 --- /dev/null +++ b/wiki/concepts/PsychodynamicDefenseMechanisms.md @@ -0,0 +1,46 @@ +--- +title: "Psychodynamic Defense Mechanisms" +type: concept +tags: [] +sources: [academic-psychologist] +last_updated: 2026-04-25 +--- + +# Psychodynamic Defense Mechanisms + +## Aliases +- Defense Mechanisms +- Vaillant's Defense Mechanism Hierarchy +- Ego Defense Mechanisms + +## Definition +Vaillant 防御机制层级——个体在应对焦虑和压力时无意识使用的心理策略,按成熟度从低到高排列。 + +## Vaillant's Hierarchy of Defense Mechanisms + +### Level 1: Pathological(病理性) +- **Denial**(否认):拒绝承认现实 +- **Projection**(投射):把自己的感受归于他人 +- **Acting Out**(行为过度表达):通过行为而非语言表达无意识冲动 + +### Level 2: Immature(不成熟) +- **Fantasy**(幻想):通过白日梦逃避现实 +- **Passive Aggression**(被动攻击):通过拖延/沉默表达敌意 +- **Dissociation**(解离):切断自我感知的连续性 + +### Level 3: Neurotic(神经症性) +- **Intellectualization**(理智化):用理性分析代替情感体验 +- **Rationalization**(合理化):为不合理行为找合理解释 +- **Reaction Formation**(反向形成):感受与行为相反 + +### Level 4: Mature(成熟) +- **Humor**(幽默):用幽默化解痛苦 +- **Altruism**(利他):通过帮助他人获得满足感 +- **Sublimation**(升华):将冲动转化为社会认可的活动 +- **Suppression**(压抑):有意识地延迟处理不适情绪 + +## Application in Character Design +Psychologist Agent 在评估角色时,标注**Primary(主要)**和**Under Stress(压力下)**两个层级的防御机制,后者体现为退行到更低层级。 + +## Connection to Wiki +- Source: [[academic-psychologist]] diff --git a/wiki/concepts/Qualitative-Quantitative-Research.md b/wiki/concepts/Qualitative-Quantitative-Research.md new file mode 100644 index 00000000..c2be868e --- /dev/null +++ b/wiki/concepts/Qualitative-Quantitative-Research.md @@ -0,0 +1,31 @@ +--- +title: "Qualitative-Quantitative Research" +type: concept +tags: [ux, research, qualitative, quantitative, mixed-methods] +sources: [design-ux-researcher.md] +last_updated: 2026-04-24 +--- + +## Definition + +定性定量混合研究方法——定性研究(访谈/观察/开放式问卷)用于探索性理解用户为什么这么想、这么做;定量研究(结构化问卷/A/B测试/行为分析)用于验证假设并获得统计显著性结论。两者互补,是 UX Researcher Agent 默认采用的研究策略。 + +## Comparison + +| 维度 | 定性研究 | 定量研究 | +|------|---------|---------| +| 数据形式 | 文字/语言/观察笔记 | 数字/百分比/统计数据 | +| 样本量 | 小(5-20人) | 大(100+人) | +| 结论类型 | 深度理解/洞察 | 统计显著性/可推广性 | +| 适用问题 | "为什么" | "有多少/多大程度" | +| 方法示例 | 深度访谈、可用性测试、焦点小组 | 结构化问卷、A/B测试、行为数据分析 | + +## Relationship to Other Concepts + +- [[User-Research-Methodology]]:混合方法是研究方法论的核心组成部分 +- [[Research-Triangulation]]:定性+定量本身就是三角验证的一种形式 +- [[Behavioral-Analytics]]:定量研究在数字产品中的具体应用 + +## Source + +- [[design-ux-researcher.md]] — UX Researcher Agent Personality diff --git a/wiki/concepts/Quality-Gate.md b/wiki/concepts/Quality-Gate.md index f46fea15..59fa3d52 100644 --- a/wiki/concepts/Quality-Gate.md +++ b/wiki/concepts/Quality-Gate.md @@ -1,27 +1,46 @@ --- -title: "Quality Gate" +title: "Quality Gate Checklist" type: concept -sources: [workflow-startup-mvp] -last_updated: 2026-04-25 +tags: [quality, gate, process, NEXUS] +last_updated: 2026-05-01 --- ## Definition -Quality Gate(质量门控)是在关键里程碑设置的质量评估检查点,由 [[Reality Checker]] 评估产出是否满足继续推进的条件,防止有缺陷的代码或计划进入下一阶段。 -## Details -- **典型位置**: - 1. Week 2 中点——评估是否能在剩余 2 周内完成 - 2. Week 4 发布前——评估生产就绪状态(GO/NO-GO) -- **评估维度**:时间可行性、功能裁剪建议、技术债务风险 -- **决策结果**:GO(可继续)或 NO-GO(需回滚修复) +Quality Gate(质量门控)是 NEXUS 多 Agent 框架中每个阶段(Phase)结束时必须通过的强制性质量检查站。在证据提交前,任何后续阶段不得启动。 + +## 核心机制 + +- **[[Dual Sign-Off]]**:必须由两类 Gate Keeper **同时**批准,方可放行进入下一阶段 + - **战略 Gate**(Studio Producer):验证产出是否符合业务目标和投资回报预期 + - **技术 Gate**(Reality Checker):验证产出是否具备可部署到生产环境的技术质量 +- **[[Evidence Over Claims]]**:Gate Keeper 不接受口头断言,只接受截图、测试结果、日志等可验证证据 + +## Phase 1 Quality Gate Checklist(7项) + +| # | 检查项 | 证据来源 | 验证方法 | +|---|--------|---------|---------| +| 1 | 架构覆盖 100% 规范需求 | Senior PM 任务列表与架构交叉引用 | 需求→架构映射检查 | +| 2 | 品牌系统完整(Logo/颜色/字体/声音) | Brand Guardian 交付物 | 交付物完整性审核 | +| 3 | 所有技术组件均有实现路径 | Backend Architect + UX Architect 规格 | 路径可行性评审 | +| 4 | 预算审批且在约束范围内 | Finance Tracker 计划 | 预算对比分析 | +| 5 | Sprint 计划基于速度估算且现实 | Sprint Prioritizer backlog | 速度基准验证 | +| 6 | 安全架构已定义 | Backend Architect 安全规格 | 安全设计审查 | +| 7 | 合规要求已映射到技术决策 | Legal 需求映射到架构 | 合规性检查 | + +## 决策类型 + +| 决策 | 条件 | 后续动作 | +|------|------|---------| +| **APPROVED** | Dual Sign-Off 均通过 | 进入下一 Phase | +| **REVISE** | 部分检查项未通过 | 返回对应 Step 修复,2天内重审 | +| **RESTRUCTURE** | 基础架构存在根本性问题 | 重启本 Phase | + +## 与 Dev-QA Loop 的关系 + +Quality Gate 是**阶段间**的纵向质量门控;Dev-QA Loop 是**阶段内**的横向质量循环。两者独立运行,不可互相替代。 ## Aliases -- Quality Gate -- 质量门控 - -## Related Patterns -- [[Reality Checker]](具体执行角色) -- [[Sequential Handoff]] - -## Sources -- [[workflow-startup-mvp]] +- Phase Gate +- Quality Gate Checklist +- NEXUS Quality Gate diff --git a/wiki/concepts/Quality-Metrics.md b/wiki/concepts/Quality-Metrics.md new file mode 100644 index 00000000..5ca8e5f8 --- /dev/null +++ b/wiki/concepts/Quality-Metrics.md @@ -0,0 +1,40 @@ +--- +title: "Quality Metrics" +type: concept +tags: [testing, quality, metrics] +sources: [testing-test-results-analyzer] +last_updated: 2026-04-28 +--- + +## Aliases +- Software Quality Metrics +- Quality Indicators +- Defect Density +- Test Effectiveness Metrics + +## Definition + +软件质量量化指标体系——通过可测量的数值指标评估软件质量状态、跟踪质量趋势并指导质量改进决策。 + +## Core Metrics + +| 指标 | 计算方式 | 阈值参考 | +|------|---------|---------| +| 缺陷密度 (Defect Density) | 缺陷数 / 代码行数 (KLOC) | 行业平均 1-5/KLOC | +| 测试覆盖率 (Test Coverage) | 已测代码行 / 总代码行 | 目标 ≥80% | +| 测试通过率 (Pass Rate) | 通过用例数 / 总用例数 | 目标 ≥95% | +| 缺陷逃逸率 (Defect Escape Rate) | 生产缺陷数 / 总缺陷数 | 越低越好 | +| 平均修复时间 (MTTR) | 总修复时间 / 缺陷数 | 越短越好 | + +## Key Methods + +- **DRE (Defect Removal Efficiency)**:在发布前移除的缺陷占总缺陷的比例,DRE 越高发布质量越好。 +- **Reliability Growth Modeling**:使用模型(如 Goel-Okumoto)预测缺陷发现趋势。 +- **Quality Trend Analysis**:跨版本跟踪核心指标,识别质量恶化或改善趋势。 + +## Connections + +- [[Test-Coverage-Analysis]]:覆盖率是质量指标体系的核心组成部分。 +- [[Release-Readiness-Assessment]]:多维度质量指标综合决定发布就绪度。 +- [[Defect-Prediction]]:缺陷预测模型基于历史质量指标训练。 +- [[Statistical-Analysis]]:所有指标计算必须附带置信区间。 diff --git a/wiki/concepts/Quality-ROI-Analysis.md b/wiki/concepts/Quality-ROI-Analysis.md new file mode 100644 index 00000000..32ca8376 --- /dev/null +++ b/wiki/concepts/Quality-ROI-Analysis.md @@ -0,0 +1,52 @@ +--- +title: "Quality ROI Analysis" +type: concept +tags: [quality, business-value, roi] +sources: [testing-test-results-analyzer] +last_updated: 2026-04-28 +--- + +## Aliases +- Quality Investment Return +- Cost of Quality +- Quality Value Analysis + +## Definition + +质量投资回报分析——量化质量改进投入的成本与收益,通过财务指标指导质量投资决策,证明质量投资的商业价值。 + +## Framework (from TestResultsAnalyzer) + +### Quality Investment Cost Components + +| 成本类型 | 说明 | 示例 | +|---------|------|------| +| 预防成本 | 预防缺陷发生的投入 | 自动化测试、代码审查工具 | +| 检测成本 | 发现现有缺陷的投入 | 测试基础设施、CI/CD | +| 内部失败成本 | 发布前修复缺陷的成本 | Bug 修复工时 | +| 外部失败成本 | 生产环境缺陷的成本 | 客户投诉、数据泄露、声誉损失 | + +### ROI Formula + +``` +Quality ROI = (预防的失败成本 - 质量投入成本) / 质量投入成本 × 100% +``` + +### Key Insight + +> "Quality investment of $50K prevents estimated $300K in production defect costs" — TestResultsAnalyzer Agent + +即:每投入 $1 在质量改进上,可避免约 $6 的生产缺陷损失。 + +## Key Methods + +- **Cost of Poor Quality (COPQ)**:量化低质量造成的全部成本。 +- **Defect Prevention Value**:估算通过早期检测避免的生产缺陷成本。 +- **Quality Investment Prioritization**:按 ROI 高低排序质量改进项目。 + +## Connections + +- [[Quality-Metrics]]:ROI 分析依赖质量指标的实际数据。 +- [[Statistical-Analysis]]:成本估算和置信区间需要统计方法。 +- [[Release-Readiness-Assessment]]:质量债务是发布就绪度的重要考量。 +- [[Defect-Prediction]]:预测的缺陷高发区域是优先质量投资目标。 diff --git a/wiki/concepts/QualityGate.md b/wiki/concepts/QualityGate.md new file mode 100644 index 00000000..e899eab4 --- /dev/null +++ b/wiki/concepts/QualityGate.md @@ -0,0 +1,27 @@ +--- +title: "Quality Gate" +type: concept +tags: [] +sources: [] +last_updated: 2026-04-30 +--- + +## Aliases +- Quality Gates +- 质量门控 + +## Definition +在关键里程碑节点设置的强制性审查机制——只有满足预设标准,才能进入下一阶段。 + +## Mechanism +- **触发时机**:中期(第2周)、发布前(第4周) +- **审查内容**:可行性评估、范围裁剪建议、技术债务风险 +- **决策输出**:GO / NO-GO + 证据要求 + +## Key Examples +- [[workflow-startup-mvp]]:Reality Checker 在第 2 周和第 4 周各设一次 Quality Gate +- [[testing-reality-checker]]:测试阶段 Reality Checker 评估生产就绪状态 + +## Related Concepts +- [[Sequential Handoff]] — 交接是 Gate 之间的连接机制 +- [[Reality Checker]] — Quality Gate 的执行 Agent diff --git a/wiki/concepts/QueryPlanAnalysis.md b/wiki/concepts/QueryPlanAnalysis.md new file mode 100644 index 00000000..6cfa2e45 --- /dev/null +++ b/wiki/concepts/QueryPlanAnalysis.md @@ -0,0 +1,46 @@ +--- +title: "Query Plan Analysis" +type: concept +tags: [database, postgresql, explain, performance, query-optimization] +last_updated: 2026-05-01 +--- + +# Query Plan Analysis + +## Definition + +查询计划分析是通过 `EXPLAIN ANALYZE` 命令解读数据库优化器生成的查询执行计划,识别性能瓶颈(如 Seq Scan 全表扫描、估算偏差大)并针对性优化的方法。 + +## Key Scan Types + +| 扫描类型 | 评估 | 说明 | +|---------|------|------| +| **Seq Scan** | ⚠️ 差 | 全表扫描,通常意味着缺索引 | +| **Index Scan** | ✅ 好 | 索引扫描,直接定位数据 | +| **Bitmap Heap Scan** | 🟡 可接受 | 先索引定位再堆查,适合中等结果集 | +| **Index Only Scan** | ✅ 最佳 | 完全在索引中完成,无需回表 | + +## What to Look For + +- **actual time vs estimated rows**:与估算差异大说明统计信息过时 +- **cost=... loops=...**:高 cost 或多次 loops 需优化 +- **Buffers: shared hit/read**:大量 read 说明缓存未命中 +- **Seq Scan on large tables**:大表全表扫描通常是问题信号 + +## Example + +```sql +EXPLAIN ANALYZE +SELECT * FROM posts WHERE user_id = 123; + +-- Good: Index Scan +-- Bad: Seq Scan on posts (cost=0.00..1234.56 rows=500 width=...) +``` + +## Source +- [[engineering-database-optimizer]] + +## Connections +- [[IndexingStrategies]] — 根据分析结果创建/调整索引 +- [[N1QueryPrevention]] — EXPLAIN 识别 N+1 查询 +- [[SafeMigrations]] — 迁移前后验证查询性能 diff --git a/wiki/concepts/QueryWorkflow.md b/wiki/concepts/QueryWorkflow.md new file mode 100644 index 00000000..8bb3499a --- /dev/null +++ b/wiki/concepts/QueryWorkflow.md @@ -0,0 +1,32 @@ +--- +title: "QueryWorkflow" +type: concept +tags: [workflow, knowledge-management, llm] +sources: [llm-wiki] +last_updated: 2026-05-02 +--- + +## Overview +查询工作流(Query Workflow)是 [[PersistentWiki]] 的核心运营模式之一——用户就 Wiki 中的内容提出问题,LLM 搜索相关页面、综合整理答案并以 wikilink 形式引用来源。 + +## Standard Process(4步) +1. **读取 Index**:读取 `wiki/index.md`,确定相关页面 +2. **读取相关页面**:读取这些页面的具体内容 +3. **综合生成答案**:以 `[[页面名]]` wikilink 形式内联引用来源 +4. **询问是否归档**:询问用户是否将答案保存为 `wiki/syntheses/.md` + +## Answer Formats +答案可以呈现不同形式: +- Markdown 页面 +- 对比表格 +- 幻灯片(Marp) +- 图表(matplotlib) +- 画布(Canvas) + +## Key Insight +**好的答案可以归档回 Wiki 作为新页面。** 用户提出的对比、分析、发现的关联——这些都很有价值,不应该消失在聊天记录中。探索结果与摄入来源一样复合积累到知识库中。 + +## Design Principles +- **Index-first**:先读索引找相关页面,而非直接全文搜索 +- **引文驱动**:所有答案以 wikilink 形式引用来源页 +- **知识沉淀**:探索结果是第二等重要的知识来源,仅次于摄入的原始来源 diff --git a/wiki/concepts/RAG.md b/wiki/concepts/RAG.md index 52ba11ff..528c3427 100644 --- a/wiki/concepts/RAG.md +++ b/wiki/concepts/RAG.md @@ -1,26 +1,37 @@ --- title: "RAG" type: concept -tags: [rag, retrieval, llm, knowledge] -aliases: [RAG, Retrieval-Augmented Generation, 检索增强生成] -last_updated: 2025-12-20 +tags: [AI, knowledge-base, retrieval] +sources: [karpathy-最新分享-用-llm-搭建个人知识库-告别-rag-的低效循环, llm-wiki, 大模型相关术语和框架总结|llm-mcp-prompt-rag-vllm-token-数据蒸馏, llms-rag-ai-agent三个到底什么区别] +last_updated: 2026-04-20 --- -## Definition -Retrieval-Augmented Generation(RAG),检索增强生成,通过从外部知识库检索相关信息来增强大语言模型的回答质量,解决模型在陌生领域的幻觉(Hallucination)问题。 +## Aliases +- Retrieval-Augmented Generation +- 检索增强生成 -## Key Facts -- 大模型在陌生领域容易产生幻觉,"一本正经胡说八道" -- RAG 通过给模型"一些提示",引导其在正确方向上回答 -- 效果案例:正确率从 60% 提升至 90% -- RAG 依赖 [[Embedding]] 技术实现语义检索 -- 典型 RAG 流程:用户问题 → 检索外部知识 → 将检索结果注入 Prompt → LLM 生成回答 +## Definition +Retrieval-Augmented Generation(RAG,检索增强生成)——一种通过外部文档检索消除大模型幻觉、提升回答准确性的技术方案。用户上传文档后,AI 在回答时实时检索相关片段并拼接入答案。典型应用:NotebookLM、ChatGPT 文件上传。 + +## Key Properties +- 每次查询从零检索,无持久化积累 +- 综合多文档时,需要"现场找碎片、现场拼" +- RAG 通过"给提示"解决大模型在陌生领域的幻觉问题 +- 正确率可从 60% 提升至 90%([[大模型相关术语和框架总结|llm-mcp-prompt-rag-vllm-token-数据蒸馏]]) + +## Limitations +- **没有积累**:每次提问 AI 都在从头搜寻知识,什么都没沉淀 +- **维护成本高**:需要持续维护文档库,但 AI 不会自动更新交叉引用 +- Karpathy 指出:人类放弃 Wiki 是因为**维护成本的增长速度超过了价值的增长速度** + +## Contrast: RAG vs LLM Wiki +| 维度 | RAG | [[LLM Wiki]] | +|------|-----|--------------| +| 知识状态 | 每次查询从零 | 持久化积累 | +| 交叉引用 | 无 | 自动维护 | +| 多文档综合 | 临时拼接 | 预编译 | +| 维护者 | 人类 | AI(趋近于零成本)| ## Connections -- [[Embedding]] ← 依赖 ← [[RAG]] -- [[Hallucination]] ← 解决 ← [[RAG]] -- [[Large Language Model]] ← 增强 ← [[RAG]] -- [[LangChain]] ← 支持 ← [[RAG]] - -## Sources -- [[大模型相关术语和框架总结|llm-mcp-prompt-rag-vllm-token-数据蒸馏]] +- [[LLM Wiki]] ← 对比/替代 ← RAG +- [[RAG]] ← 基础概念 → [[LLM Wiki]] diff --git a/wiki/concepts/RICE-Prioritization-Score.md b/wiki/concepts/RICE-Prioritization-Score.md new file mode 100644 index 00000000..433b2393 --- /dev/null +++ b/wiki/concepts/RICE-Prioritization-Score.md @@ -0,0 +1,43 @@ +--- +title: "RICE Prioritization Score" +type: concept +tags: ["product-management", "prioritization", "decision-making"] +last_updated: 2026-04-30 +--- + +## Aliases +- RICE +- RICE Score +- RICE Framework + +## Definition +RICE 优先级评分框架 —— 一个量化的四因子需求优先级评估模型,通过公式 `(R × I × C) ÷ E` 计算综合得分,以数据支撑优先级排序决策。 + +## Formula + +| 因子 | 名称 | 定义 | 典型单位/范围 | +|------|------|------|--------------| +| **R** | Reach(触达) | 该功能一个季度内能影响多少用户 | 用户数/季度 | +| **I** | Impact(影响力) | 对单个用户的影响力 | 0.25 / 0.5 / 1 / 2 / 3 | +| **C** | Confidence(置信度) | 对假设的置信程度 | 百分比(50%–100%) | +| **E** | Effort(工作量) | 完成所需的人力月数 | 人力月 | + +**RICE Score = (R × I × C) ÷ E** + +## Decision Threshold +- 分数越高优先级越高 +- 通常与团队容量(capacity)结合,决定一个季度内可交付的数量 +- 分数需附带置信区间和敏感性分析 + +## Key Principles +- **数据 + 判断结合** —— 数字提供框架,最终决策需要产品判断 +- **量化不确定性** —— C 因子显式记录假设的置信程度 +- **努力量化** —— 防止高影响力但无限工作量的小时级陷阱 + +## Usage +由 [[Product Manager Agent]] 在 [[Opportunity Assessment]] 文档中使用,也用于 [[Product Roadmap (Now/Next/Later)]] 中的需求排序。 + +## Related +- [[Opportunity Assessment]] — RICE 评分的使用文档 +- [[Product Requirements Document (PRD)]] — RICE 排序后进入 PRD 阶段 +- [[Product Roadmap (Now/Next/Later)]] — RICE 排序结果映射到路线图三层 diff --git a/wiki/concepts/RICE-Scoring.md b/wiki/concepts/RICE-Scoring.md new file mode 100644 index 00000000..76235e88 --- /dev/null +++ b/wiki/concepts/RICE-Scoring.md @@ -0,0 +1,46 @@ +--- +title: "RICE Scoring" +type: concept +tags: [prioritization, agile, product-management] +last_updated: 2026-05-01 +--- + +## Definition + +RICE Scoring 是一种四维定量功能优先级排序框架,通过将每个功能的影响力转换为可比较的数值分数,消除团队优先级争论。 + +## Formula + +``` +RICE Score = (Reach × Impact × Confidence) / Effort +``` + +| 维度 | 定义 | 常见取值范围 | +|------|------|-------------| +| **Reach**(触达) | 该功能在第一个季度内能影响多少用户 | 1–10,000(用户数) | +| **Impact**(影响) | 该功能对单个用户的影响力 | 3=massive, 2=high, 1=medium, 0.5=low, 0.25=minimal | +| **Confidence**(信心) | 对上述估算的信心程度 | 100%=high, 80%=medium, 50%=low | +| **Effort**(工作量) | 所需人月数(跨整个团队) | 0.5–20(人月) | + +## 应用场景 + +- **[[Phase 1 Strategy]]**:Sprint Prioritizer 使用 RICE 评分对 Phase 1 产出的任务列表进行排序 +- **[[scenario-startup-mvp]]**:Week 1 快速发现阶段使用 RICE 评分 backlog +- 适用于 Sprint Planning、Product Roadmap 排序、技术债务优先级决策 + +## 示例 + +| 功能 | Reach | Impact | Confidence | Effort | RICE Score | +|------|-------|--------|-----------|-------|------------| +| 用户注册优化 | 5000 | 2 | 100% | 2 | 5000 | +| 支付流程简化 | 2000 | 3 | 80% | 4 | 1200 | +| 暗模式支持 | 3000 | 1 | 50% | 3 | 500 | + +## 与 MoSCoW 的关系 + +RICE 分数高 ≠ Must-Have。MoSCoW 分类(RICE分数 + 战略/合规考量)决定是否纳入当前 Sprint;RICE 仅排序在 MoSCoW Must/Should/Could 中的条目。 + +## Aliases +- RICE Model +- RICE Framework +- RICE Prioritization diff --git a/wiki/concepts/RPC.md b/wiki/concepts/RPC.md new file mode 100644 index 00000000..16c0abc1 --- /dev/null +++ b/wiki/concepts/RPC.md @@ -0,0 +1,46 @@ +--- +title: "RPC (Remote Procedure Call)" +type: concept +tags: ["unreal-engine", "networking", "client-server"] +sources: ["unreal-multiplayer-architect", "unreal-multiplayer-architect"] +last_updated: 2026-04-30 +--- + +## Aliases +- 远程过程调用 +- Server RPC +- Client RPC +- NetMulticast + +## 定义 +RPC(远程过程调用)是 UE5 中客户端与服务器之间通信的主要机制,允许在一个网络节点上调用另一个节点上的函数。 + +## 三种 RPC 类型 + +### Server RPC +- **方向**: 客户端 → 服务器 +- **用途**: 客户端向服务器发送请求(玩家输入、操作命令) +- **要求**: 游戏逻辑 RPC 必须包含 `_Validate()` 实现 +- **标记**: `UFUNCTION(Server, Reliable, WithValidation)` + +### Client RPC +- **方向**: 服务器 → 特定客户端(拥有该 Actor 的客户端) +- **用途**: 服务器向特定客户端发送消息(私有数据、确认消息) +- **标记**: `UFUNCTION(Client, Reliable)` + +### NetMulticast +- **方向**: 服务器 → 所有相关客户端 +- **用途**: 服务器向所有客户端广播事件(视觉特效、公共事件) +- **标记**: `UFUNCTION(NetMulticast, Unreliable)` + +## 可靠性 +- **Reliable**: 保证按序到达,但增加带宽 +- **Unreliable**: 尽力发送,可能丢失或乱序 + +## 安全规范 +每个 Server RPC 必须实现 `_Validate()` 函数,拒绝非法输入。缺少验证 = 作弊漏洞。 + +## 相关概念 +- [[Server-Authoritative Model]] — RPC 的使用背景 +- [[Actor Replication]] — 与 RPC 配合的状态同步机制 +- [[Network Prediction]] — RPC 与客户端预测的协同 diff --git a/wiki/concepts/Reality-Checker.md b/wiki/concepts/Reality-Checker.md new file mode 100644 index 00000000..cd8c1807 --- /dev/null +++ b/wiki/concepts/Reality-Checker.md @@ -0,0 +1,41 @@ +--- +title: "Reality Checker" +type: concept +tags: [multi-agent, quality, testing, nexus] +sources: [executive-brief, quickstart, workflow-startup-mvp, nexus-spatial-discovery] +last_updated: 2026-05-01 +aliases: + - Quality Authority + - Final Quality Gate +--- + +## Definition + +Reality Checker(Reality Checker Agent)—— NEXUS 多 Agent 编排框架的最终质量权威,以默认"NEEDS WORK"的质疑姿态,对所有交付物进行证据驱动的严格验证。 + +## Core Principle + +**默认"NEEDS WORK"姿态** —— Reality Checker 不会默认相信任何自我声明的质量评估,必须看到可验证的证据才认可交付物通过。 + +这直接针对多 Agent 系统中的"幻想型审批"问题:Agent 在无证明的情况下给基础实现评 A+,导致质量虚高而缺陷埋入生产。 + +## Verification Criteria + +Reality Checker 执行的验证包括: +- **截图证据**:关键功能必须有运行截图或录屏 +- **测试结果**:自动化测试必须通过,覆盖率必须达标 +- **性能数据**:性能指标必须满足量化标准 +- **可访问性报告**:WCAG 合规报告或其他无障碍验证结果 + +## Role in NEXUS + +Reality Checker 是 NEXUS 流水线的最后一道质量门控,位于 Phase 4 Hardening → Phase 5 Launch 之间: +- 所有 Agent 的自我质量声明都必须经过 Reality Checker 验证 +- Reality Checker 的判定是进入生产发布的最终决策依据 +- Reality Checker 保持独立,不受上游 Agent 自我评估的影响 + +## Related Concepts + +- [[Quality Gate]]:Reality Checker 是最终质量门控的执行者 +- [[Evidence Over Claims]]:Reality Checker 的验证标准——要求截图/测试结果/数据,而非口头断言 +- [[Dev↔QA Loop]]:Reality Checker 位于 Dev↔QA 循环之后,是双重质量保障的最终关卡 diff --git a/wiki/concepts/ReentrancyGuard.md b/wiki/concepts/ReentrancyGuard.md new file mode 100644 index 00000000..17cc8850 --- /dev/null +++ b/wiki/concepts/ReentrancyGuard.md @@ -0,0 +1,39 @@ +--- +title: "ReentrancyGuard" +type: concept +tags: [] +last_updated: 2026-05-01 +--- + +## Definition +ReentrancyGuard 是 OpenZeppelin 提供的修饰器(modifier),通过在函数入口设置 mutex 锁,防止合约函数在执行过程中被递归调用(re-entrancy),从而避免重入攻击。 + +## Implementation +```solidity +import {ReentrancyGuard} from "@openzeppelin/contracts/utils/ReentrancyGuard.sol"; + +contract Vault is ReentrancyGuard { + function withdraw() external nonReentrant { + // ... + msg.sender.call{value: amount}(""); + // 递归调用此函数会被 revert + } +} +``` + +## Limitations +- **不是万能药**:ReentrancyGuard 防止同一合约被递归调用,但不防止**跨合约**重入(跨合约重入需配合 ChecksEffectsInteractions 原则) +- **Gas 成本**:每次 nonReentrant 检查约消耗 200 gas +- **OpenZeppelin v5 改进**:v5 版本优化了检查逻辑,降低了 gas 成本 + +## 与 ChecksEffectsInteractions 的关系 +两者互补: +- ChecksEffectsInteractions 是**设计原则**——正确顺序的结构化思维 +- ReentrancyGuard 是**工程手段**——即使违反 CEI 也能防止单合约重入 + +最佳实践:**同时使用两者**,Guard 作为最后防线,CEI 作为代码结构规范。 + +## Sources +- [[engineering-solidity-smart-contract-engineer]] +- [[The-DAO]] +- [[OpenZeppelin]] diff --git a/wiki/concepts/Register-Switching.md b/wiki/concepts/Register-Switching.md new file mode 100644 index 00000000..70152f9e --- /dev/null +++ b/wiki/concepts/Register-Switching.md @@ -0,0 +1,43 @@ +--- +title: "Register Switching" +type: concept +tags: ["spanish", "linguistics", "translation", "formality", "tú", "usted", "vosotros"] +last_updated: 2026-05-02 +--- + +## Definition + +**Register Switching**(语域切换)指西班牙语中正式(usted)与非正式(tú/vos/vosotros)人称代词之间的选择与切换。语域选择决定说话者被视为朋友还是陌生人,错误选择可导致冒犯或误解。 + +## Spanish Register System + +| 代词 | 语域 | 使用场景 | +|---|---|---| +| **usted** | 正式(第二人称敬语) | 陌生人、服务业、正式场合、尊重长辈 | +| **tú** | 非正式(第二人称) | 朋友、熟人、年轻人之间 | +| **vos** | 非正式(阿根廷/乌拉圭等) | Rioplatense 西班牙语区域 | +| **vosotros** | 非正式复数(仅西班牙) | 西班牙国内非正式复数对话 | + +## Key Rules + +1. **陌生人默认 usted**:在墨西哥和大多数拉美国家,陌生人默认用 usted +2. **本地人先切换才跟随**:如果对方先用 tú,你才可以用 tú 回应;访客不应主动使用 tú +3. **服务业标准**:餐厅、出租车、商店——默认 usted +4. **阿根廷例外**:阿根廷广泛使用 vos,正式场合才用 usted + +## Cultural Nuance + +- 墨西哥:usted 是默认礼貌形式,即使在年轻人之间也逐渐转向 tú +- 哥伦比亚(波哥大):某些地区即使亲密朋友间也保留 usted +- 西班牙:vosotros 替代 ustedes 用于非正式复数 +- 加勒比:语速快,可能模糊 usted/tú 的边界 + +## In Translation + +[[Language Translator]] Agent 必须: +- 每条翻译标注语域(正式/非正式/中性) +- 告知用户何时切换语域 +- 提供同一短语的不同语域版本 + +## Sources +- [[language-translator]] diff --git a/wiki/concepts/Relationship-Lifecycle.md b/wiki/concepts/Relationship-Lifecycle.md new file mode 100644 index 00000000..fbb27346 --- /dev/null +++ b/wiki/concepts/Relationship-Lifecycle.md @@ -0,0 +1,126 @@ +--- +title: "Relationship-Lifecycle" +type: concept +tags: [] +sources: [] +last_updated: 2026-05-30 +--- + +## 基本信息 +- **原文**:관계 수명주기 +- **中文**:商业关系生命周期 +- **英文**:Business Relationship Lifecycle +- **韩国商业语境**:소개 → 신뢰 → 계약 + +## 定义 +Relationship-Lifecycle 是 Korean Business Navigator 提出的韩国商业关系发展模型,将外国专业人员与韩国客户的关系分为三个阶段:**소개(介绍)** → **신뢰(信任)** → **계약(合同)**。每个阶段有完全不同的沟通策略、时机预期和成功标准。 + +## 三阶段模型 + +``` +소개(介绍) + ↓ [关系建立信号出现] +미팅(会议) + ↓ [多次接触后] +신뢰(信任) + ↓ [信任巩固后] +계약(合同) +``` + +## 第一阶段:소개(介绍) + +### 特征 +- 关系刚建立,双方都在评估对方 +- 对方持谨慎观望态度 +- 核心问题:"这个人可靠吗?" +- **永远不要在第一阶段提价格** + +### 关键行动 +| 行动 | 正确做法 | +|------|---------| +| 首次接触 | 通过介绍人接入(冷接触响应率 < 5%)| +| 第一印象 | 专业但不咄咄逼人,展示行业知识而非推销 | +| 沟通渠道 | Email 或正式 KakaoTalk 消息,不用电话 | +| 跟进频率 | 每 1-2 周一次,不要过于频繁 | +| 定价讨论 | 绝对不可以在第一阶段提出具体数字 | + +### 成功信号 +- 对方愿意进行第二或第三次会议 +- 被邀请参加小型非正式场合(咖啡) +- 联系人主动介绍你给团队其他成员 + +## 第二阶段:신뢰(信任) + +### 特征 +- 双方已建立基本信任 +- 联系人愿意分享更多内部信息 +- 核心问题:"这个人的能力如何?" +- 可以讨论具体方案,但价格仍需谨慎 + +### 关键行动 +| 行动 | 正确做法 | +|------|---------| +| 沟通渠道 | KakaoTalk 成为主要渠道 | +| 会议风格 | 更随意,更少正式 Presentation | +| 材料 | 提供内部可传阅的专业材料(案例、参考)| +| 价格讨论 | 可以给出参考范围,不给具体数字 | +| Proof Project | 进入信任阶段后是最佳提案时机 | + +### 成功信号 +- 被邀请参加회식 +- 联系人私下(非工作时间)联系你 +- 联系人开始用名字称呼你(或邀请你直呼其名) +- 联系人主动询问你的能力和方法论 + +## 第三阶段:계약(合同) + +### 特征 +- 信任已建立,进入正式商业讨论 +- 품의流程正式启动 +- 核心问题:"内部审批能否通过?" +- 可以直接讨论价格和合同条款 + +### 关键行动 +| 行动 | 正确做法 | +|------|---------| +| 心态 | 从说服转向支持——帮助联系人内部推进 | +| 材料 | 提供联系人可用于内部品의的材料 | +| 跟进 | 适度(每周一次 SME,每月一次 财阀)| +| 价格 | 给出具体数字 | +| 催单 | 绝对不可以——帮助联系人在内部做 case | + +### 合同失败信号 +- 品의沉默超过 2 周且无"상부에서 검토 중입니다"信号 +- 联系人不主动更新进度(可能已有问题) +- 회식中对方态度变冷 + +## 季节性维护(关系跨越假期) + +| 时期 | 动态 | 策略 | +|------|------|------| +| 春节(1-2月)| 1-2周停摆,礼品预期 | 节前发送问候,节后联系 | +| 3-5月 | 新财年,预算新鲜 | 最佳新提案窗口 | +| 6月 | 略微放缓 | 推动待定决策 | +| 7-8月 | 暑期轮休 | 关系维护,不硬推 | +| 中秋(9-10月)| 主要假期,3-5天 | 同春节策略 | +| 10-11月 | 下年度预算规划期 | 最佳播种期(为次年1月合同)| +| 12月 | 年末冲刺 | 参加송년회(年末聚会),关系深化 | + +## 跨越生命周期失败的常见原因 +1. **第一阶段过早推价格** → 被归类为"vendor",无信任建立 +2. **第二阶段不参加회식** → 信任无法深化 +3. **第三阶段过度催促** → 联系人在品의中感受到压力,逆向而行 +4. **越级联系** → 关系完全破裂 + +## 与西方销售漏斗的对比 + +| 维度 | 西方销售漏斗 | 韩国 Relationship-Lifecycle | +|------|------------|---------------------------| +| 核心驱动力 | 效率、速度 | 关系、信任 | +| 决策者接触 | 尽快接触高层 | 通过层层关系自然渗透 | +| 时间线 | 2-4 周 | 6-16 周 | +| 信任建立方式 | 资质/案例/推荐 | 多次接触 + 회식 + Proof Project | +| "不"的表达 | 直接拒绝 | 沉默或"検討해보겠습니다" | + +## 来源 +- [[specialized-korean-business-navigator]] — Workflow Process: Relationship Assessment 章节 diff --git a/wiki/concepts/Release-Readiness-Assessment.md b/wiki/concepts/Release-Readiness-Assessment.md new file mode 100644 index 00000000..2990578e --- /dev/null +++ b/wiki/concepts/Release-Readiness-Assessment.md @@ -0,0 +1,58 @@ +--- +title: "Release Readiness Assessment" +type: concept +tags: [testing, quality, release-management] +sources: [testing-test-results-analyzer] +last_updated: 2026-04-28 +--- + +## Aliases +- Go/No-Go Decision +- Release Decision Framework +- Ship Readiness + +## Definition + +发布就绪度评估——通过多维度质量指标的量化分析,生成有统计依据的 GO/NO-GO 发布建议,并附带置信度和关键风险说明。 + +## Readiness Criteria (from TestResultsAnalyzer) + +```python +readiness_criteria = { + 'test_pass_rate': calculate_pass_rate(), # 测试通过率 + 'coverage_threshold': check_coverage_threshold(), # 覆盖率达标 + 'performance_sla': validate_performance_sla(), # 性能 SLA + 'security_compliance': check_security_compliance(), # 安全合规 + 'defect_density': calculate_defect_density(), # 缺陷密度 + 'risk_score': calculate_overall_risk_score() # 综合风险评分 +} + +# 统计置信度计算 +confidence_level = calculate_confidence_level(readiness_criteria) + +# 发布建议 +recommendation = generate_release_recommendation(readiness_criteria, confidence_level) +``` + +## Decision Matrix + +| 条件 | GO | NO-GO | +|------|-----|-------| +| 测试通过率 | ≥95% | <95% | +| 覆盖率 | ≥80% 行覆盖 | <80% | +| 性能 SLA | 全部达标 | 任何一项不达标 | +| 高风险缺陷 | 0 未关闭 | 有未关闭高风险缺陷 | +| 置信度 | ≥90% | <90% | + +## Key Principles + +- **Confidence Intervals Required**:所有指标必须附带置信区间,不接受无统计依据的结论。 +- **Risk-Adjusted Decision**:考虑质量债务对未来开发速度的影响。 +- **Trade-off Documentation**:任何放宽条件的决策必须书面记录理由。 + +## Connections + +- [[Quality-Metrics]]:评估依赖多维度质量指标。 +- [[Statistical-Analysis]]:置信度计算基于统计分析方法。 +- [[Quality-Gate]]:发布就绪度评估是质量门控的核心输出。 +- [[Defect-Prediction]]:预测的高风险区域影响就绪度评估。 diff --git a/wiki/concepts/ReplicationGraph.md b/wiki/concepts/ReplicationGraph.md new file mode 100644 index 00000000..8a0e23f4 --- /dev/null +++ b/wiki/concepts/ReplicationGraph.md @@ -0,0 +1,43 @@ +--- +title: "Replication Graph" +type: concept +tags: ["unreal-engine", "networking", "optimization"] +sources: ["unreal-multiplayer-architect", "unreal-multiplayer-architect"] +last_updated: 2026-04-30 +--- + +## Aliases +- Replication Graph +- 复制图 +- 空间分区复制 + +## 定义 +Replication Graph 是 UE5 5.3+ 引入的网络复制优化框架,用空间分区替代默认的平面相关性模型,显著降低多人游戏的带宽消耗。 + +## 默认问题 +默认复制层使用平面列表,每个客户端需要检查所有 Actor 的相关性,大规模世界中效率低下。 + +## Replication Graph 优化 +### 空间网格划分 +使用 `UReplicationGraphNode_GridSpatialization2D` 将世界划分为网格单元,每个客户端只接收其附近单元内 Actor 的更新。 + +### 自定义节点 +- `UReplicationGraphNode_GridSpatialization2D` — 开放世界 Actor 复制 +- `UReplicationGraphNode_ActorList` — 低频更新 Actor +- 自定义节点 — 适配特定游戏需求 + +## 性能收益 +- 可将带宽降低 **40%** +- 减少每秒复制的 Actor 数量 +- 按玩家位置动态调整复制范围 + +## 使用方法 +1. 启用 ReplicationGraph Plugin +2. 创建自定义 `UGameInstanceReplicationMgr` 子类 +3. 实现 `CreateReplicationGraph()` 返回配置好的 Graph +4. 在 `.uproject` 文件中添加插件依赖 + +## 相关概念 +- [[Actor Replication]] — 复制图优化的底层机制 +- [[NetUpdateFrequency]] — 配合频率优化 +- [[Server-Authoritative Model]] — 复制图不影响权威模型 diff --git a/wiki/concepts/Research-Triangulation.md b/wiki/concepts/Research-Triangulation.md new file mode 100644 index 00000000..7481bf1e --- /dev/null +++ b/wiki/concepts/Research-Triangulation.md @@ -0,0 +1,29 @@ +--- +title: "Research Triangulation" +type: concept +tags: [ux, research, triangulation, validation, methodology] +sources: [design-ux-researcher.md] +last_updated: 2026-04-24 +--- + +## Definition + +Research Triangulation(研究三角验证)是通过多种数据源、研究方法、研究者视角或理论框架交叉验证研究结论的方法。其核心目的是降低单一方法或视角带来的偏差,提高研究结论的可信度和可靠性。 + +## Types of Triangulation + +| 类型 | 说明 | 示例 | +|------|------|------| +| Data Triangulation | 使用多个数据源 | 访谈数据 + 问卷数据 + 行为数据 | +| Methodological Triangulation | 使用多种研究方法 | 定量问卷 + 定性访谈 | +| Investigator Triangulation | 多名研究者独立分析 | 两名研究员分别编码后比对 | +| Theoretical Triangulation | 使用多种理论框架解释 | 认知心理学 + 社会学视角 | + +## Relationship to Other Concepts + +- [[User-Research-Methodology]]:三角验证是研究方法论的核心质量保障机制 +- [[Qualitative-Quantitative-Research]]:定性与定量方法的结合是数据三角验证的典型实现 + +## Source + +- [[design-ux-researcher.md]] — UX Researcher Agent Personality diff --git a/wiki/concepts/Resilience.md b/wiki/concepts/Resilience.md new file mode 100644 index 00000000..dd3535a3 --- /dev/null +++ b/wiki/concepts/Resilience.md @@ -0,0 +1,49 @@ +--- +title: "Resilience" +type: concept +tags: [sre, reliability, engineering, fault-tolerance] +last_updated: 2026-04-20 +--- + +# Resilience + +韧性(Resilience)是系统在面对故障、压力和变化时保持服务可用性的能力。SRE 的核心目标之一就是建立和维持系统韧性。 + +## Definition +韧性不仅是"不故障",而是: +- **故障吸收**:系统能够吸收和缓解故障的影响 +- **快速恢复**:故障发生后能快速恢复正常服务 +- **适应性学习**:从故障中学习,持续改进 + +## The 5 Things Resilience Cannot Be Automated +Uptime Labs 总结了 5 种无法被自动化的韧性要素: + +### 1. Learning(学习) +从故障和Near-miss中提取经验教训,形成组织知识。 + +### 2. Decision-Making(决策) +在高压情况下做出正确判断,选择最优响应策略。 + +### 3. Prioritization(优先级排序) +在多个问题同时发生时,决定处理顺序。 + +### 4. Communication(沟通) +协调团队、通知利益相关者、管理期望。 + +### 5. Adaptation(适应) +根据新情况调整策略,不拘泥于预设剧本。 + +## SRE Practices for Resilience +- [[BlamelessPostMortem]]:从故障中学习 +- [[Self-Healing]]:自动化恢复机制 +- [[Observability]]:理解系统状态 +- [[Organizational-Second-Hit-Syndrome]]:理解组织层面的韧性 +- [[Chaos-Engineering]]:主动发现弱点 + +## Relationship to Other Concepts +- **Reliability** 是韧性的组成部分 +- **Fault Tolerance** 是实现韧性的手段之一 +- **Incident Response** 是韧性响应的执行过程 + +## Source +- SRE Weekly Issue #513 — [[sre-weekly-issue-513]] diff --git a/wiki/concepts/ResponsesAPI.md b/wiki/concepts/ResponsesAPI.md new file mode 100644 index 00000000..16b86cac --- /dev/null +++ b/wiki/concepts/ResponsesAPI.md @@ -0,0 +1,28 @@ +--- +title: "ResponsesAPI" +type: concept +tags: + - "openai" + - "api" + - "experimental" +sources: [] +last_updated: 2026-04-20 +--- + +## Overview + +Responses API 是 OpenAI 提供的实验性 API 格式,通过 `POST /v1/responses` 端点调用。相比 Chat Completions,其核心差异在于支持服务端对话状态维持(`previous_response_id`)和结构化事件流。 + +## Key Features + +- **服务端状态**:`previous_response_id` 参数让服务端维护对话历史 +- **结构化事件流**:SSE 事件包含 `text_delta`、`function_call`、`function_call_output` 等标准事件类型 +- **工具调用 UI**:可实现自定义结构化工具调用界面 + +## Current Limitation + +Open WebUI 目前在 Responses 模式下仍然客户端管理对话历史(每次请求发送完整消息列表),尚未充分利用 `previous_response_id`。当前 Responses 模式的主要优势是结构化事件流。 + +## See Also +- [[APIServer]] +- [[ChatCompletions]] diff --git a/wiki/concepts/Responsive-Breakpoints.md b/wiki/concepts/Responsive-Breakpoints.md new file mode 100644 index 00000000..a082b7bf --- /dev/null +++ b/wiki/concepts/Responsive-Breakpoints.md @@ -0,0 +1,61 @@ +--- +title: "Responsive Breakpoints" +type: concept +tags: [css, responsive, mobile-first, breakpoints] +sources: [design-ux-architect.md] +last_updated: 2026-04-24 +--- + +## Definition + +Responsive Breakpoints 是移动优先的响应式设计断点策略,通过 CSS Media Queries 在不同视口宽度下提供差异化的布局和样式。 + +## Breakpoint Strategy + +- **Mobile First**:基础样式针对 320px+ 设计 +- **Tablet**:768px+ 增强 +- **Desktop**:1024px+ 完整功能 +- **Large**:1280px+ 优化 + +## Implementation + +```css +/* Base: Mobile (320px+) */ + +/* Tablet (768px+) */ +@media (min-width: 768px) { + .container { + max-width: 768px; + } + .grid-2-col { + grid-template-columns: 1fr 1fr; + } +} + +/* Desktop (1024px+) */ +@media (min-width: 1024px) { + .container { + max-width: 1024px; + } + .grid-2-col { + grid-template-columns: 1fr 1fr; + gap: var(--space-8); + } +} + +/* Large (1280px+) */ +@media (min-width: 1280px) { + .container { + max-width: 1280px; + } +} +``` + +## Related Concepts + +- [[Layout-Framework]]:基于断点策略的布局组件系统 +- [[CSS-Design-System]]:提供 spacing token 支持响应式间距 + +## Sources + +- [[design-ux-architect]] — Responsive Breakpoints 的完整定义 diff --git a/wiki/concepts/Review-Management.md b/wiki/concepts/Review-Management.md new file mode 100644 index 00000000..d203df0e --- /dev/null +++ b/wiki/concepts/Review-Management.md @@ -0,0 +1,63 @@ +--- +title: "Review Management" +type: concept +tags: [] +sources: + - hospitality-guest-services +last_updated: 2026-05-02 +--- + +## Definition +Review Management(评价管理)是对宾客在 OTA(Expedia/Booking.com/TripAdvisor)及品牌直营渠道留下的点评进行主动监测、及时响应和战略性跟进的系统化管理。核心价值:**在线评分每提高1分,营收可增加高达9%**。 + +## Post-Stay Follow-Up Sequence(售后跟进序列) + +### Day of Checkout — 退房体验 +- 退房时当面询问:"您离店前有任何想分享的体验吗?" +- 如有历史问题未解决:"我们之前解决了[问题],您对解决方案满意吗?" + +### 24 Hours After — Survey/Review Request +- 发送感谢邮件+调查链接 +- 鼓励在满意时发布点评:"如体验出众,欢迎在[TripAdvisor/Google/Booking.com]分享" +- 邀请直接回复邮件解决遗留问题 + +## Negative Review Response Rules(差评响应规则) +- **响应时限**:24小时内 +- **响应态度**:永远不要防御性;承认问题;采取纠正行动 +- **响应内容**:具体承认问题+已采取/正在采取的纠正措施+邀请离线沟通 +- **禁忌**:公开承诺补偿(应在私下沟通) + +### Negative Review Response Template +``` +Dear [Guest Name], + +感谢您分享反馈。我对您的体验未达我们标准深感抱歉。 + +[具体承认问题] + +这不符合我们期望任何宾客体验的标准,您的反馈我已亲自重视。 +[具体已采取/正在采取的纠正措施] + +如您方便,我希望能直接与您沟通解决这个问题。 +请联系我:[邮箱/电话]。 + +期待有机会再次为您服务。 + +[姓名、职位、酒店名] +``` + +## Key Principles +- 每条点评都必须回复(好评+差评) +- 差评响应是公开的客户服务展示,不是辩论 +- 将差评视为服务恢复机会,争取宾客修改评分 + +## Connections +- [[Hospitality Guest Services]] ← 评价管理是宾客服务 Agent 售后阶段的核心技能 +- [[Service Recovery Protocol]] ← 有效的服务恢复是预防差评的关键 +- [[Loyalty Program Management]] ← 忠诚会员的点评影响权重更高,需优先跟进 + +## Aliases +- 在线评价管理 +- 口碑管理 +- OTA Review Management +- Guest Feedback Management diff --git a/wiki/concepts/RuntimeVirtualTexturing.md b/wiki/concepts/RuntimeVirtualTexturing.md index 8700c93e..4e894a19 100644 --- a/wiki/concepts/RuntimeVirtualTexturing.md +++ b/wiki/concepts/RuntimeVirtualTexturing.md @@ -1,40 +1,45 @@ --- -title: "Runtime Virtual Texturing" +title: "RuntimeVirtualTexturing" type: concept -tags: ["unreal-engine", "landscape", "texturing", "ue5", "performance"] -sources: ["unreal-world-builder", "unreal-technical-artist"] -last_updated: 2026-04-26 +tags: ["unreal-engine", "texturing", "landscape", "performance"] +sources: ["unreal-world-builder"] +last_updated: 2026-04-30 --- +## Aliases +- RVT +- Runtime Virtual Texturing +- 运行时虚拟纹理 + ## Definition -Runtime Virtual Texturing(RVT),UE5 运行时虚拟纹理技术,通过将多层地形纹理混合计算结果缓存到虚拟纹理图集(Virtual Texture Atlas),消除逐像素层混合的 shader 开销。当地形材质层数超过 2 层时,RVT 成为必选项而非可选项。 +Runtime Virtual Texturing(RVT)是 Unreal Engine 5 的按需虚拟纹理技术,允许材质在运行时动态渲染到虚拟纹理空间,而非在着色器中实时计算多层混合。对于 Landscape 地形(> 2 层材质)和需要动态混合的复杂材质,RVT 是关键性能优化手段。 -## Core Mechanism -- **Virtual Texture Atlas**:多层混合结果以瓦片(Tile)为单位缓存,按需流送到 GPU -- **RVT Resolution**:通常 2048×2048 每 4096m² 网格单元 -- **RVT Format**:推荐 YCoCg 压缩格式,相比 RGBA 节省内存 -- **Producer**:Landscape Actor 启用 Virtual Texture Producer;需要对应的 RVT Output Volume 放置在世界每个网格单元 +## RVT vs Traditional Layer Blending +| 方案 | 层数限制 | 性能特征 | +|------|---------|---------| +| 传统逐像素混合 | 2 层以内 | 层数增加线性增长 | +| RVT | 无硬性限制(实践建议 ≤ 8) | 固定虚拟纹理采样开销 | -## When RVT is Required -| 条件 | RVT 建议 | -|------|----------| -| ≤2 层 Landscape 材质 | 可选,性能提升有限 | -| >2 层 Landscape 材质 | **必须启用**,否则产生材质排列组合爆炸 | -| 开放世界(World Partition) | **必须启用**,与流送系统协同 | +## Landscape 中的 RVT +- 超过 2 层 Landscape 材质时**必须**启用 RVT +- **RVT 分辨率**:每 4096m² 格子 2048×2048 +- **RVT 格式**:YCoCg 压缩(节省内存,相较 RGBA) +- **Virtual Texture Producer**:必须在 Landscape Actor 上启用 +- **RVT Output Volume**:每 4096m² 格子对齐放置 -## RVT in Landscape Material Design -典型四层 Landscape 材质结构(配合 RVT): -1. **Grass**:基础层,始终存在,填充空区域 -2. **Dirt/Path**:沿路径替换草地 -3. **Rock**:坡度驱动(WorldAlignedBlend,斜率阈值 0.6 自动切换) -4. **Snow**:高度驱动(超过 SnowLine 高度参数时淡入) +## Dynamic RVT Applications +RVT 可采样运行时数据驱动地形状态变化: +- 游戏标签(Gameplay Tags)驱动地形层权重 +- Decal Actor 投影湿气/雪/泥效果 +- 雨积累参数驱动 RVT 混合权重趋向湿表面层 -Auto-Slope Rock Blend:`dot(WorldUp, SurfaceNormal) < 0.6` → Rock 层渐变到 Grass/Dirt +## RVT Cache Warm-Up +Cinematic Camera 场景前必须预热 RVT Cache,否则初次渲染出现 LOD 闪烁。 -## RVT for Dynamic Gameplay State -高级应用:RVT 权重混合可采样 Gameplay Tags 或 Decal Actor,驱动动态地形状态变化(如降雨累积 → 湿滑表面层)。 +## Connections +- [[Landscape]] ← 层混合优化 ← RuntimeVirtualTexturing +- [[UnrealWorldBuilder]] ← 地形材质 ← RuntimeVirtualTexturing +- [[UnrealEngine5]] ← 核心引擎 ← RuntimeVirtualTexturing -## Related -- [[UnrealWorldBuilder]] — RVT 配置与调优专家 -- [[UnrealTechnicalArtist]] — Landscape Master Material 构建与 RVT Output Volume 放置 -- [[Landscape]] — RVT 是 Landscape 材质系统的性能关键 +## Sources +- [[unreal-world-builder]] diff --git a/wiki/concepts/SHAP.md b/wiki/concepts/SHAP.md index 0ab89ef2..4a68d679 100644 --- a/wiki/concepts/SHAP.md +++ b/wiki/concepts/SHAP.md @@ -1,70 +1,72 @@ ---- -title: "SHAP (SHapley Additive exPlanations)" -type: concept -tags: [model-interpretability, feature-attribution, explainable-ai] -last_updated: 2026-04-25 ---- - -## Definition - -SHAP(SHapley Additive exPlanations)是一种基于博弈论 Shapley 值的模型可解释性框架,为每个特征的贡献提供统一的量化度量。通过计算每个特征在所有可能的特征组合中的边际贡献均值,SHAP 给出唯一且公平的归因值。 - -## Core Concepts - -### Global Interpretability -- **SHAP Summary Plot (Beeswarm)**:同时展示特征值方向和影响幅度的散点图,横轴为 SHAP 值,纵轴为特征,颜色编码特征值高低 -- **SHAP Bar Plot**:各特征 mean |SHAP| 排序,展示整体特征重要性 -- **应用场景**:与文档化特征理由对比,识别未在方法论文档中讨论但实际影响显著的"隐性特征" - -### Local Interpretability -- **SHAP Waterfall Plot**:解释单个预测——从基础值(base value)出发,逐特征展示其推动预测的方向和幅度 -- **SHAP Force Plot**:可视化单个预测的特征贡献,常用于高风险决策解释 -- **应用场景**:边缘案例预测(top/bottom decile、误分类记录)的深度分析 - -### SHAP Interaction Values -- 检测特征之间的依赖和交互效应 -- 将总 SHAP 贡献分解为:主效应 + 交互效应 -- 用于识别模型学习到的非预期特征交互 - -## Usage - -```python -import shap - -explainer = shap.TreeExplainer(model) -shap_values = explainer.shap_values(X) - -# Global: beeswarm -shap.summary_plot(shap_values, X, show=False) -plt.savefig("shap_beeswarm.png", dpi=150) - -# Global: bar -shap.summary_plot(shap_values, X, plot_type="bar", show=False) -plt.savefig("shap_importance.png", dpi=150) - -# Local: waterfall -explanation = explainer(X.iloc[[idx]]) -shap.plots.waterfall(explanation[0], show=False) -plt.savefig(f"shap_waterfall_{idx}.png", dpi=150) -``` - -## Model QA 中的应用 - -Model QA Specialist 使用 SHAP 进行以下审计: -1. **全局分析**:对比 SHAP 特征重要性与文档化特征理由,发现未记录的高贡献特征 -2. **PDP 交叉验证**:SHAP 分析结合 PDP 验证特征方向是否符合预期 -3. **局部解释**:边缘案例的 SHAP waterfall 揭示模型决策机制 -4. **稳定性监测**:跨时间窗口的 SHAP 排名变化反映特征重要性漂移 - -## Relationship - -- **依赖** [[Population-Stability-Index]]:PSI 监测特征分布漂移,SHAP 监测特征贡献变化,两者结合才能完整评估模型健康度 -- **依赖** [[Calibration-Testing]]:SHAP 解释模型"为什么"预测,校准测试验证模型"多准确"预测 -- **依赖** [[Discrimination-Metrics]]:SHAP 贡献分析在 AUC/Gini 判定模型整体可用之后进行细节诊断 -- **支撑** [[Partial-Dependence-Plots]]:PDP 提供边际效应可视化,SHAP 提供精确归因,两者互补 - -## Key Limitations - -- 计算复杂度:精确 Shapley 值计算为指数级,TreeExplainer 对树模型高效但对神经网络等黑盒模型需用 KernelExplainer(采样近似) -- 交互效应分离:当特征高度相关时,Shapley 值归因可能不稳定 -- 基准依赖:Shapley 值的解释力取决于基准(base value)的选取 +--- +title: "SHAP (SHapley Additive exPlanations)" +type: concept +tags: [model-interpretability, feature-attribution, explainable-ai] +sources: + - specialized-model-qa +last_updated: 2026-05-29 +--- + +## Definition + +SHAP(SHapley Additive exPlanations)是一种基于博弈论 Shapley 值的模型可解释性框架,为每个特征的贡献提供统一的量化度量。通过计算每个特征在所有可能的特征组合中的边际贡献均值,SHAP 给出唯一且公平的归因值。 + +## Core Concepts + +### Global Interpretability +- **SHAP Summary Plot (Beeswarm)**:同时展示特征值方向和影响幅度的散点图,横轴为 SHAP 值,纵轴为特征,颜色编码特征值高低 +- **SHAP Bar Plot**:各特征 mean |SHAP| 排序,展示整体特征重要性 +- **应用场景**:与文档化特征理由对比,识别未在方法论文档中讨论但实际影响显著的"隐性特征" + +### Local Interpretability +- **SHAP Waterfall Plot**:解释单个预测——从基础值(base value)出发,逐特征展示其推动预测的方向和幅度 +- **SHAP Force Plot**:可视化单个预测的特征贡献,常用于高风险决策解释 +- **应用场景**:边缘案例预测(top/bottom decile、误分类记录)的深度分析 + +### SHAP Interaction Values +- 检测特征之间的依赖和交互效应 +- 将总 SHAP 贡献分解为:主效应 + 交互效应 +- 用于识别模型学习到的非预期特征交互 + +## Usage + +```python +import shap + +explainer = shap.TreeExplainer(model) +shap_values = explainer.shap_values(X) + +# Global: beeswarm +shap.summary_plot(shap_values, X, show=False) +plt.savefig("shap_beeswarm.png", dpi=150) + +# Global: bar +shap.summary_plot(shap_values, X, plot_type="bar", show=False) +plt.savefig("shap_importance.png", dpi=150) + +# Local: waterfall +explanation = explainer(X.iloc[[idx]]) +shap.plots.waterfall(explanation[0], show=False) +plt.savefig(f"shap_waterfall_{idx}.png", dpi=150) +``` + +## Model QA 中的应用 + +Model QA Specialist 使用 SHAP 进行以下审计: +1. **全局分析**:对比 SHAP 特征重要性与文档化特征理由,发现未记录的高贡献特征 +2. **PDP 交叉验证**:SHAP 分析结合 PDP 验证特征方向是否符合预期 +3. **局部解释**:边缘案例的 SHAP waterfall 揭示模型决策机制 +4. **稳定性监测**:跨时间窗口的 SHAP 排名变化反映特征重要性漂移 + +## Relationship + +- **依赖** [[Population-Stability-Index]]:PSI 监测特征分布漂移,SHAP 监测特征贡献变化,两者结合才能完整评估模型健康度 +- **依赖** [[Calibration-Testing]]:SHAP 解释模型"为什么"预测,校准测试验证模型"多准确"预测 +- **依赖** [[Discrimination-Metrics]]:SHAP 贡献分析在 AUC/Gini 判定模型整体可用之后进行细节诊断 +- **支撑** [[Partial-Dependence-Plots]]:PDP 提供边际效应可视化,SHAP 提供精确归因,两者互补 + +## Key Limitations + +- 计算复杂度:精确 Shapley 值计算为指数级,TreeExplainer 对树模型高效但对神经网络等黑盒模型需用 KernelExplainer(采样近似) +- 交互效应分离:当特征高度相关时,Shapley 值归因可能不稳定 +- 基准依赖:Shapley 值的解释力取决于基准(base value)的选取 diff --git a/wiki/concepts/SOC2.md b/wiki/concepts/SOC2.md new file mode 100644 index 00000000..f3d8fc6c --- /dev/null +++ b/wiki/concepts/SOC2.md @@ -0,0 +1,40 @@ +--- +title: "SOC 2" +type: concept +tags: [] +sources: [compliance-auditor] +last_updated: 2026-04-30 +--- + +# SOC 2 + +## Aliases +- SOC2 +- SOC 2 Type I +- SOC 2 Type II +- Service Organization Control 2 + +## Definition + +SOC 2(Service Organization Control 2)是由美国注册会计师协会(AICPA)制定的信任服务标准认证框架,用于评估服务组织在安全性、可用性、处理完整性、保密性和隐私性五个信任服务标准方面的控制措施。 + +## Core Components + +### 信任服务标准(Trust Service Criteria) +1. **安全性(Security)**:系统受到保护,防止未授权访问 +2. **可用性(Availability)**:系统能够按照承诺运行 +3. **处理完整性(Processing Integrity)**:系统处理完整、有效、准确、及时 +4. **保密性(Confidentiality)**:指定为保密的信息得到保护 +5. **隐私性(Privacy)**:个人信息的收集、使用、保留和披露符合组织的隐私声明 + +### SOC 2 类型 +- **Type I**:评估控制措施在特定日期的设计适当性 +- **Type II**:评估控制措施在指定期间(通常6-12个月)的设计和运行有效性 + +## Related Concepts +- [[Gap Assessment]]:SOC 2 审计前的必备步骤 +- [[Evidence Collection]]:SOC 2 Type II 审计的核心要求——需证明控制在整个审计期间持续有效 +- [[Continuous Compliance]]:SOC 2 年度审计间隔期间的持续合规实践 + +## Related Sources +- [[compliance-auditor]] diff --git a/wiki/concepts/SSE.md b/wiki/concepts/SSE.md new file mode 100644 index 00000000..5194efd9 --- /dev/null +++ b/wiki/concepts/SSE.md @@ -0,0 +1,37 @@ +--- +title: "SSE" +type: concept +tags: [] +sources: [expose-hermes-agent-as-an-openai-compatible-api-for-any-frontend] +last_updated: 2026-05-02 +--- + +## Definition +Server-Sent Events (SSE) 是一种服务器推送技术,允许服务端通过 HTTP 单向通道向客户端持续发送事件流。 + +## Usage in Hermes Agent +`/v1/runs` API 通过 SSE 实现长会话实时进度订阅: +- **Token 流**:逐 token 推送响应内容 +- **工具进度**:自定义事件推送工具执行状态 +- **实时反馈**:用户可看到 Agent 思考和工具调用的全过程 + +## Format +``` +event: content +data: {"content": "Hello"} + +event: tool_use +data: {"tool": "terminal", "input": {...}} +``` + +## Comparison with WebSocket +| 特性 | SSE | WebSocket | +|------|-----|-----------| +| 方向 | 单向(服务端→客户端) | 双向 | +| 复杂性 | 简单 | 复杂 | +| 自动重连 | 支持 | 需自行实现 | +| HTTP/2 | 优化支持 | 支持 | + +## Related +- [[ToolStreaming]] +- [[ResponsesAPI]] diff --git a/wiki/concepts/SVG图表生成.md b/wiki/concepts/SVG图表生成.md new file mode 100644 index 00000000..f471ed9a --- /dev/null +++ b/wiki/concepts/SVG图表生成.md @@ -0,0 +1,44 @@ +--- +title: "SVG图表生成" +type: concept +tags: [] +sources: [baoyu-skills] +last_updated: 2026-04-19 +--- + +## Overview + +SVG 图表生成是 [[baoyu-diagram]] 技能的核心方法——不调用任何图像生成模型,由 LLM 直接通过手算坐标生成 SVG 代码,一次确认后批量输出多张图表,内嵌深色模式样式。 + +## Five Chart Types + +| 类型 | 适用场景 | 触发动词 | +| --- | --- | --- | +| `flowchart` | 按顺序走一遍流程 | 流程、步骤、工作流、生命周期、状态机 | +| `sequence` | 谁和谁通信、按什么顺序 | 协议、握手、认证流程、OAuth、TCP | +| `structural` | 展示什么包含什么、如何组织 | 架构、组件、拓扑、布局 | +| `illustrative` | 建立直觉——画出机制本身 | 怎么工作、原理、为什么、直观解释 | +| `class` | 类型是什么、它们如何关联 | 类图、UML、继承、接口、数据模型 | + +## Technical Approach + +**无图像生成模型**:LLM 直接手算 SVG 坐标生成矢量代码,确保每个图表符合统一设计规范。 + +**内嵌样式**: +- `