<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Doc Accuracy Contract on Homelab IaC Documentation</title><link>https://blue126.github.io/IaC/docs/reference/doc-accuracy-contract/</link><description>Recent content in Doc Accuracy Contract on Homelab IaC Documentation</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Mon, 01 Jan 0001 00:00:00 +0000</lastBuildDate><atom:link href="https://blue126.github.io/IaC/docs/reference/doc-accuracy-contract/index.xml" rel="self" type="application/rss+xml"/><item><title>Credential Boundary and Accepted Risk</title><link>https://blue126.github.io/IaC/docs/reference/doc-accuracy-contract/security-boundary/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://blue126.github.io/IaC/docs/reference/doc-accuracy-contract/security-boundary/</guid><description>&lt;h2 id="decision"&gt;Decision&#10;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Status:&lt;/strong&gt; Accepted risk&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Accepted by:&lt;/strong&gt; Project owner&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Date:&lt;/strong&gt; 2026-09-05&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Behavior baseline:&lt;/strong&gt; &lt;code&gt;e5dd546e965e6878b5edffe093699c81ff1e0dce&lt;/code&gt;&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Scope:&lt;/strong&gt; Existing direct invocation and the existing &lt;code&gt;Jenkinsfile&lt;/code&gt; post-deployment &lt;code&gt;Sync to Notion&lt;/code&gt; stage only.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;The synchronizer reads repository &lt;code&gt;.env&lt;/code&gt; configuration, decrypts Ansible Vault when available (or reads Terraform secret data), constructs system/application credential fields, stores them in the project&amp;rsquo;s private Notion workspace, and may print masked prefixes during local dry-run output. It can be run directly and is also invoked by the existing Jenkins post-deployment stage with credentials binding. Notion is a third-party cloud service even though the managed homelab is on a private LAN; the accepted exposure is therefore the private Notion account/workspace, integration token and direct/Jenkins execution or logging path—not merely LAN reachability.&lt;/p&gt;</description></item><item><title>OINK AI Documentation Automation Roadmap</title><link>https://blue126.github.io/IaC/docs/reference/doc-accuracy-contract/automation-roadmap/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://blue126.github.io/IaC/docs/reference/doc-accuracy-contract/automation-roadmap/</guid><description>&lt;h2 id="contract-role"&gt;Contract role&#10;&lt;/h2&gt;&#10;&lt;p&gt;本 companion 说明现有交付物是什么、离线测试实际证明什么，以及从当前手动 AI prototype 到自动 Draft PR 的阶段边界。它不授权模型调用、GitHub 写入、生产访问或公开报告。&lt;/p&gt;&#10;&lt;p&gt;现有文档不整体作废：&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;a href="https://blue126.github.io/IaC/docs/reference/doc-accuracy-contract/spec/"&gt;SPEC.md&lt;/a&gt;&#10; 与本目录 companions 是当前 canonical contract；&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;spec-oink-doc-accuracy-integration-phase-1.md&lt;/code&gt; 保留 &lt;code&gt;done&lt;/code&gt;，作为带 change log 的滚动交付记录，反映 known-claim consistency gate 的当前已交付范围，而非不可变的原始快照；&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;spec-doc-gardening-phase-2.md&lt;/code&gt; 保留 &lt;code&gt;done&lt;/code&gt;，同样作为滚动交付记录，反映单文档 manifest、手动 live Codex、recorded replay 与 proposal validation 的当前已交付范围；&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;spec-doc-gardening-agent/SPEC.md&lt;/code&gt; 继续提供更广义的 evidence gate、人工升级和不自动 merge 原则；其中 production observation/runtime evidence 属于本路线 Phase 3，不代表当前已实现；&lt;/li&gt;&#10;&lt;li&gt;本路线扩展而非替换上述成果；若历史 artifact 与当前能力描述冲突，以 canonical contract 与可执行代码/测试为准，并修正历史事实说明。&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h2 id="current-capability--当前能力"&gt;Current capability / 当前能力&#10;&lt;/h2&gt;&#10;&lt;div class="td-table-scroll td-table-scroll--static"&gt;&#10;&lt;table&gt;&#10; &lt;thead&gt;&#10; &lt;tr&gt;&#10; &lt;th scope="col"&gt;Component&lt;/th&gt;&#10; &lt;th scope="col"&gt;State&lt;/th&gt;&#10; &lt;th scope="col"&gt;What exists&lt;/th&gt;&#10; &lt;th scope="col"&gt;What does not exist&lt;/th&gt;&#10; &lt;/tr&gt;&#10; &lt;/thead&gt;&#10; &lt;tbody&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;OINK/Hugo site&lt;/td&gt;&#10; &lt;td&gt;Delivered&lt;/td&gt;&#10; &lt;td&gt;Repository Markdown rendering and GitHub Pages workflow&lt;/td&gt;&#10; &lt;td&gt;Accuracy report is not publicly rendered&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Phase 1 consistency gate&lt;/td&gt;&#10; &lt;td&gt;Delivered&lt;/td&gt;&#10; &lt;td&gt;Six explicit Markdown/defaults comparisons, stable report, read-only PR check&lt;/td&gt;&#10; &lt;td&gt;Open-ended claim discovery, production truth or semantic repair&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Phase 2 AI controller prototype&lt;/td&gt;&#10; &lt;td&gt;Delivered&lt;/td&gt;&#10; &lt;td&gt;Single-document manifest, strict candidate/proposal schemas, recorded replay, explicitly confirmed local &lt;code&gt;codex exec&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;Patch application or PR publication&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Phase 2A Shadow candidate discovery&lt;/td&gt;&#10; &lt;td&gt;Delivered&lt;/td&gt;&#10; &lt;td&gt;Deterministic changed-document selection, v2 manifests, trusted base-object validation, bounded read-only Claude matrix, numeric Summary and 14-day JSON evidence&lt;/td&gt;&#10; &lt;td&gt;Model-quality proof, unchanged-document inference, edits, comments or policy enforcement&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Automated repair loop&lt;/td&gt;&#10; &lt;td&gt;Not implemented&lt;/td&gt;&#10; &lt;td&gt;Contract and reusable validator primitives plus non-writing Shadow evidence&lt;/td&gt;&#10; &lt;td&gt;Isolated apply, write identity and Draft PR publisher&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;Runtime evidence&lt;/td&gt;&#10; &lt;td&gt;Deferred&lt;/td&gt;&#10; &lt;td&gt;Policy and observation design&lt;/td&gt;&#10; &lt;td&gt;Credentialed collectors and production reconciliation&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&#10;&lt;p&gt;The current live implementation in &lt;code&gt;tools/doc-gardening/run-analysis.py&lt;/code&gt; uses a locally installed Codex CLI only when both &lt;code&gt;--live&lt;/code&gt; and &lt;code&gt;--confirm-live&lt;/code&gt; are supplied. Its default model is an implementation detail, not a correctness authority. Existing CI never takes this path.&lt;/p&gt;</description></item><item><title>OINK 文档准确性集成：确定性基础与 AI 自动化边界</title><link>https://blue126.github.io/IaC/docs/reference/doc-accuracy-contract/spec/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://blue126.github.io/IaC/docs/reference/doc-accuracy-contract/spec/</guid><description>&lt;hr&gt;&#10;&lt;p&gt;id: SPEC-oink-doc-accuracy-integration&#10;companions:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;claim-registry.md&lt;/li&gt;&#10;&lt;li&gt;security-boundary.md&lt;/li&gt;&#10;&lt;li&gt;automation-roadmap.md&#10;sources:&lt;/li&gt;&#10;&lt;li&gt;../../planning-artifacts/research/technical-oink-doc-accuracy-integration-2026-08-26/research.md&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;hr&gt;&#10;&lt;blockquote&gt;&#10;&lt;p&gt;&lt;strong&gt;Canonical contract.&lt;/strong&gt; 本 SPEC 与 &lt;code&gt;companions:&lt;/code&gt; 中的文件共同构成构建、测试和验证必须遵守的完整契约。&lt;code&gt;sources:&lt;/code&gt; 仅用于追溯，不是下游必读材料。已完成的 Phase 1/Phase 2 implementation artifacts 保留为交付历史；本契约与 companions 定义当前语义和后续路线。&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;h2 id="why"&gt;Why&#10;&lt;/h2&gt;&#10;&lt;p&gt;IaC 文档中的错误端口、镜像、版本或配置会误导维护者和 coding agent。封闭的静态比较能可靠发现少量已登记值的两端不一致，但不能开放式阅读文档、发现新 claim 或撰写修复；这些工作需要 AI。系统因此将 AI 用于候选发现和最小编辑，把证据、权限、范围及验收保留在 deterministic control plane，并让 OINK 继续只承担无特权展示。&lt;/p&gt;&#10;&lt;p&gt;项目所有者有意将私人 Notion workspace 用作 credential GUI，并于 2026-09-05 接受直接运行及现有 Jenkins post-deployment stage 所带来的第三方 SaaS/账户和执行风险。该决定取消 Notion 去凭据化对 OINK/AI 路线的阻塞，但不授权文档 AI/CI、OINK 或公开制品读取、转发或发布这些凭据；完整边界见 &lt;a href="https://blue126.github.io/IaC/docs/reference/doc-accuracy-contract/security-boundary/"&gt;security-boundary.md&lt;/a&gt;&#10;。&lt;/p&gt;&#10;&lt;h2 id="capabilities"&gt;Capabilities&#10;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;strong&gt;CAP-1 — Known-claim consistency gate (&lt;code&gt;delivered&lt;/code&gt;)&lt;/strong&gt;&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;intent:&lt;/strong&gt; 系统能够对 &lt;a href="https://blue126.github.io/IaC/docs/reference/doc-accuracy-contract/claim-registry/"&gt;claim-registry.md&lt;/a&gt;&#10; 中的封闭 claim，确定性比较 Markdown locator 与 checked-in Ansible defaults scalar。&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;success:&lt;/strong&gt; 当前六个 claim ID 被独立回归基线锁定；相等、矛盾、缺失及歧义 fixture 均产生规定状态、provenance 和 exit code。&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;strong&gt;CAP-2 — Bounded AI analysis contract (&lt;code&gt;prototype delivered&lt;/code&gt;)&lt;/strong&gt;&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;intent:&lt;/strong&gt; 系统能够把单一允许文档、Git diff span 和脱敏 evidence 打包给 AI，并以本地 schema/validator 约束 candidate 与 edit proposal。&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;success:&lt;/strong&gt; 模型不能签发 &lt;code&gt;verified&lt;/code&gt;、伪造 source/evidence、越出单文档范围或绕过 stale/secret 检查；当前只支持 recorded replay 和显式确认的手动 live analysis，不应用修改。&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;/li&gt;&#10;&lt;li&gt;&#10;&lt;p&gt;&lt;strong&gt;CAP-3 — Automated draft repair loop (&lt;code&gt;planned&lt;/code&gt;)&lt;/strong&gt;&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;intent:&lt;/strong&gt; 系统能够自动发现可能漂移的文档陈述，对可确定性证明的候选生成并验证最小 patch，再创建供人审阅的 Draft PR。&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;success:&lt;/strong&gt; 只有 evidence gate、scope check、修改后 consistency regression 与文档构建全部通过的单文档 patch 可进入 publisher；unknown 或冲突只报告，不修改；永不自动 merge。&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;/li&gt;&#10;&lt;/ul&gt;</description></item><item><title>Phase 1 Known-Claim Consistency Registry</title><link>https://blue126.github.io/IaC/docs/reference/doc-accuracy-contract/claim-registry/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://blue126.github.io/IaC/docs/reference/doc-accuracy-contract/claim-registry/</guid><description>&lt;p&gt;此 registry 是 Phase 1 的闭集和回归基线，不是开放式文档扫描、AI 候选发现或生产事实认证机制。每条记录只允许一个 checked-in Markdown locator 和一个 checked-in YAML 标量 oracle；检测器不得从 runtime、Terraform state、Notion、Vault 或日志补全证据。&lt;/p&gt;&#10;&lt;p&gt;&lt;strong&gt;权威运行时来源是 &lt;code&gt;tools/check-doc-claims.py&lt;/code&gt; 的 &lt;code&gt;CLAIMS&lt;/code&gt;。&lt;/strong&gt; 下表是它的文档投影，&lt;code&gt;CLAIMS&lt;/code&gt; 变动时必须同步重新导出。&lt;code&gt;tests/doc-claims/doc-claims-test.py&lt;/code&gt; 另以独立、显式的六 ID tuple 锁定当前成员与顺序，避免代码与 report 互相引用同一列表而静默缩减。扩大、替换或重排闭集必须同时经过人工批准并更新三处。&lt;/p&gt;&#10;&lt;h2 id="status-contract"&gt;Status contract&#10;&lt;/h2&gt;&#10;&lt;div class="td-table-scroll td-table-scroll--static"&gt;&#10;&lt;table&gt;&#10; &lt;thead&gt;&#10; &lt;tr&gt;&#10; &lt;th scope="col"&gt;Status&lt;/th&gt;&#10; &lt;th scope="col"&gt;Deterministic condition&lt;/th&gt;&#10; &lt;th scope="col"&gt;Required report data&lt;/th&gt;&#10; &lt;/tr&gt;&#10; &lt;/thead&gt;&#10; &lt;tbody&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;verified&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;locator 恰好匹配一次，oracle key 恰好解析为一个标量，规范化后相等&lt;/td&gt;&#10; &lt;td&gt;document locator、oracle path/key、非敏感 expected/observed value、revision/digest&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;contradiction&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;两端均可唯一解析，但规范化后不相等&lt;/td&gt;&#10; &lt;td&gt;同上，以及两端值&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;tr&gt;&#10; &lt;td&gt;&lt;code&gt;indeterminate&lt;/code&gt;&lt;/td&gt;&#10; &lt;td&gt;source 缺失、不可解析、locator 缺失或多次匹配、key 缺失/重复/非标量&lt;/td&gt;&#10; &lt;td&gt;failure reason、可用的 path/locator、revision/digest；不得编造值&lt;/td&gt;&#10; &lt;/tr&gt;&#10; &lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;/div&gt;&#10;&#10;&lt;p&gt;规范化只移除 Markdown code fence/table 的表示层并解析 YAML scalar；不得改写端口数字、版本字符串、大小写或语义等价关系。对于本 registry，原始标量的 exact equality 是唯一的 &lt;code&gt;verified&lt;/code&gt; 条件。这里的 &lt;code&gt;verified&lt;/code&gt; 只表示文档值与 checked-in defaults 值一致；它不证明生产状态、部署有效性或现实世界绝对正确性。如果两端同步变成同一个错误值，此 gate 仍可能通过。&lt;/p&gt;</description></item></channel></rss>