init: sxbh.ltd 官网初始提交

- nginx 安全加固 (CSP, HSTS, 缓存策略)
- 共享 style.css
- 138个页面全部接入

Co-authored-by: Hermes AI <agent@hermes>
This commit is contained in:
Hermes CI Fix
2026-07-11 17:29:24 +08:00
co-authored by Hermes AI
commit e1a9b25afa
177 changed files with 21447 additions and 0 deletions
+105
View File
@@ -0,0 +1,105 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>系列二:从复盘到自愈 — 梦境模式如何自动修Skill | 博海技术</title>
<style>
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;background:#f5f6f7;color:#2c3e50;line-height:1.9}
.container{max-width:780px;margin:0 auto;padding:0 20px}
.header{background:linear-gradient(135deg,#0f172a,#1e293b);padding:36px 0;text-align:center}
.header h1{font-size:24px;font-weight:700;color:#fff;line-height:1.4}
.header .meta{color:#94a3b8;font-size:13px;margin-top:10px}
.header .meta span{margin:0 8px}
.content{background:#fff;padding:30px 0}
.content h2{font-size:20px;font-weight:700;margin:28px 0 12px;padding-bottom:6px;border-bottom:2px solid #e2e8f0}
.content p{font-size:15px;margin-bottom:12px;color:#334155}
.content ul{padding-left:20px;margin-bottom:12px;font-size:15px;color:#334155}
.content li{margin-bottom:4px}
.code{background:#1e2a35;border-radius:6px;padding:12px 16px;margin:10px 0;overflow-x:auto;font-family:monospace;font-size:13px;line-height:1.5;color:#e2e8f0}
.code .cm{color:#6b7280}
table{width:100%;border-collapse:collapse;margin:12px 0;font-size:14px}
td,th{padding:8px 12px;text-align:left;border-bottom:1px solid #e2e8f0}
th{background:#0f172a;color:#fff;font-weight:600}
tr:nth-child(even){background:#f8fafc}
.quote{background:#f0f9ff;border-left:3px solid #38bdf8;padding:10px 16px;margin:12px 0;border-radius:0 6px 6px 0;font-size:14px}
.footer{background:#0f172a;color:#94a3b8;text-align:center;padding:20px 0;font-size:12px}
.tag{display:inline-block;background:rgba(52,211,153,.12);color:#34d399;padding:3px 12px;border-radius:12px;font-size:12px;margin-top:8px}
</style>
<link rel="stylesheet" href="/style.css">
</head>
<body>
<div class="header">
<div class="container">
<h1>系列二:从复盘到自愈<br>梦境模式如何自动修Skill</h1>
<div class="meta"><span>📅 2026-06-26</span><span>🏷️ 自进化 · Skill体系</span><span>⏱ 4分钟</span></div>
<span class="tag">🧩 工程实践</span>
</div>
</div>
<div class="content">
<div class="container">
<h2>一、Phase 2:从"看到问题"到"会修问题"</h2>
<p>Phase 1 的复盘报告能指出问题,但不会修。Phase 2 补上了这个缺口。</p>
<p>核心思路:Agent 读完 Session 后,再读取现有的 Skill 知识库,针对重复出现的错误生成具体的文件修改建议(Patch)。</p>
<p>每个补丁包含:</p>
<ul>
<li><strong>target</strong> — 要改哪个 Skill 文件</li>
<li><strong>old_text</strong> — 原文定位标记(供 patch 工具使用)</li>
<li><strong>new_text</strong> — 替换后的内容</li>
<li><strong>confidence</strong> — high / medium / low</li>
<li><strong>requires_approval</strong> — 默认 true,必须人类确认</li>
</ul>
<h2>二、实例:6个补丁一夜生成</h2>
<p>第一次有内容的复盘就生成了6个补丁:</p>
<table>
<tr><th>ID</th><th>内容</th><th>置信度</th><th>目标Skill</th></tr>
<tr><td>#001</td><td>工具预检原则:调用前先检查配置</td><td>🔵 high</td><td>system-stewardship</td></tr>
<tr><td>#002</td><td>SearXNG发现机制:已运行但未配</td><td>🔵 high</td><td>system-stewardship</td></tr>
<tr><td>#003</td><td>正面行为模式固化</td><td>🟡 medium</td><td>system-stewardship</td></tr>
<tr><td>#004</td><td>跨工具分析自动存档</td><td>🔵 high</td><td>technology-evaluation</td></tr>
<tr><td>#005</td><td>导航失败处理</td><td>🟡 medium</td><td>daily-ops-report</td></tr>
<tr><td>#006</td><td>已部署未连线扫描</td><td>🟡 medium</td><td>system-stewardship</td></tr>
</table>
<h2>三、安全设计</h2>
<p>Phase 2 的补丁只是"建议",不会自动执行。三阶段的安全递进是关键设计:</p>
<ul>
<li><strong>Phase 1</strong>(只读复盘)— 零风险,不改任何文件</li>
<li><strong>Phase 2</strong>(补丁建议)— 只输出 patch 文件,需 human-in-the-loop</li>
<li><strong>Phase 3</strong>(自动执行)— high confidence 的补丁才自动写,且先备份</li>
</ul>
<div class="quote"><strong>💡 原则:</strong> 自进化的速度要快,但回滚的路径要更短。每次自动写入前创建备份(.bak),确保能一键恢复。</div>
<h2>四、交叉验证:让判断越来越准</h2>
<p>单个 Session 发现的错误可能是偶发。但如果同一个错误模式出现在多个 Session、多份报告中呢?</p>
<p>梦境内置了跨报告追踪机制:</p>
<ul>
<li>同一模式出现2次 → severity 自动升一级</li>
<li>出现3次 → 自动生成 high confidence 补丁</li>
<li>标记 fixed 后又出现 → 标记为 regression,优先级最高</li>
</ul>
<p>经过4轮复盘,web_search 问题出现4次自动升级,Nginx 转义出现2次自动升级——不是靠人拍脑袋定优先级,而是数据驱动的。</p>
<h2>五、效果</h2>
<p>6个补丁中,4个在对话过程中被直接应用,2个由后续交互中的 cronjob 自动写入。Agent 的 system-stewardship 技能在一天内从5条原则扩展到了7条原则+正面模式+新陷阱。</p>
<p>下一篇(系列三)用实际案例收尾:<strong>web_search 从"不存在"到"20条结果"的完整修复链</strong></p>
</div>
</div>
<div class="footer">博海技术管理 · 2026-06-26</div>
</body>
</html>