Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
3c01e72
docs: define rich answer architecture
taekchef Jul 16, 2026
89b7db8
feat: add grounded rich answer foundation
taekchef Jul 16, 2026
cc8e69e
feat: freeze trustworthy rich answer baseline
taekchef Jul 18, 2026
c48751f
fix: preserve Pi model provenance
taekchef Jul 18, 2026
1544729
fix: allow nested rich answer evidence paths
taekchef Jul 18, 2026
91eb854
fix: harden rich answer evidence architecture
taekchef Jul 18, 2026
d84d44f
fix: enforce rich answer form and grounding policies
taekchef Jul 19, 2026
b682944
fix(rich-answer): make inline layouts adaptive and evidence verifiable
taekchef Jul 19, 2026
7172998
fix(rich-answer): separate visual acceptance from protocol status
taekchef Jul 19, 2026
3d2cc58
fix(rich-answer): reject invisible acceptance evidence
taekchef Jul 19, 2026
0b45fa8
fix(rich-answer): require trustworthy visual evidence
taekchef Jul 19, 2026
75a7797
feat(rich-answer): add open capability pack and truthful review
taekchef Jul 21, 2026
6d35837
fix(agent): accept labeled connectivity probes
taekchef Jul 21, 2026
c8576e0
fix(agent): preserve real reply diagnostics
taekchef Jul 21, 2026
4713618
fix(rich-answer): render plans after viewport layout
taekchef Jul 21, 2026
0b73b58
fix(rich-answer): preserve chat scroll during interaction
taekchef Jul 21, 2026
eca8aa6
fix(rich-answer): normalize inline formulas for display
taekchef Jul 21, 2026
dc6f0cb
fix(rich-answer): preserve Pi context through turn cleanup
taekchef Jul 21, 2026
4612c0a
fix: align rich answer renderer contracts
taekchef Jul 21, 2026
c474851
feat: inspect current visual materials in rich answers
taekchef Jul 21, 2026
27f75fe
fix: capture complete inline rich answers
taekchef Jul 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Sources/WeiBei/Resources/Editor/editor.js whitespace=-blank-at-eol
25 changes: 25 additions & 0 deletions Attachments/RichAnswerVerificationAssets/ATTRIBUTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# 富回答验收图像资产署名

本目录资产只用于富回答验收与后续案例接入准备;没有放进 App 资源包。

## 署名文本

| 资产 | 推荐署名 |
| --- | --- |
| Kepler-16b 旅行海报 | Credit: NASA/JPL-Caltech. |
| 大峡谷国家公园地形图(西幅) | Credit: Library of Congress, Geography and Map Division; Geological Survey (U.S.). |
| 蛮族迁徙地图 | Samuel Butler, The Atlas of Ancient and Classical Geography, via Project Gutenberg / Wikimedia Commons. |
| Lau Basin 构造特征图 | Image courtesy of Submarine Ring of Fire 2012: NE Lau Basin, NOAA-OER. |
| Cascadia 俯冲带示意图 | Modified from Oregon's Island in the Sky: Geology Road Guide to Marys Peak, by Robert J. Lillie, Wells Creek Publishers, 2017; via National Park Service Subduction Zones gallery. |

## 使用边界

- NASA/JPL:不要暗示 NASA/JPL 背书;NASA 标志、徽章和标识仍受限制。
- LOC/USGS:使用时保留 Library of Congress 与 U.S. Geological Survey 来源。
- Butler / Project Gutenberg:保持作品来源说明;不要把扫描增强后的外观说成原始纸本颜色。
- NOAA:保留 NOAA-OER 来源与页面 URL;不要把改动后的图片说成 NOAA 官方产品。
- NPS:该图来自 NPS 图库且接口标记为 Full rights;因署名文字说明其改编自 Robert J. Lillie 的出版物,本仓库不把它夸大为纯公版,只按 NPS 图库可下载资产与署名文本使用。

## 未命中说明

用户点名的 `subduction-hires.jpg` 精确文件名没有在官方搜索、NPS 常见路径、NOAA Ocean Explorer 常见路径中命中可下载图。为避免占位图,实际落库了 NPS Subduction Zones 图库中的 Cascadia 俯冲带示意图,并额外保留 NOAA 公版 Lau Basin 构造图作为俯冲/海沟学习场景的开放素材。
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 魏碑颜色对比题截图与采样规范

颜色对比题不得从商业产品截图或网页截图抄取素材,必须使用魏碑自身可复现界面截图。

## 截图要求

- 使用真实魏碑窗口,记录分支、提交、构建命令、运行参数、macOS 外观模式、窗口尺寸、显示缩放。
- 截图对象必须是魏碑富回答或 Agent 回答区域中真实渲染出来的颜色块、文字、边框和背景。
- 截图保留原始 PNG,不做压缩、滤镜、放大、缩小、裁切后再采样。
- 若需要展示局部,可以另存派生裁切图,但采样数据必须来自原始截图。

## 采样规则

- 每组颜色至少取 3 个采样点:文字主体、背景主体、邻近边界。
- 每个采样点使用 11×11 像素窗口取中位数,避开抗锯齿边缘、阴影、半透明叠层和压缩噪声。
- 所有 RGB 值先转换为 sRGB 线性亮度,再按 WCAG 相对亮度公式计算对比度。
- 对比结果必须记录:采样坐标、窗口大小、RGB 中位数、相对亮度、对比度、截图 SHA-256。

## 留档格式

- 原始截图:`evidence/color-contrast/<case-id>/weibei-window-original.png`
- 采样表:`evidence/color-contrast/<case-id>/samples.csv`
- 计算说明:`evidence/color-contrast/<case-id>/contrast-report.md`

## 验收标准

- 不能只写“看起来清楚”;必须给可复算数值。
- 不能把设计稿颜色当成最终渲染颜色;只认真实窗口截图像素。
- 如果颜色不达标,记录失败,不用外部图片替换魏碑截图。
11 changes: 11 additions & 0 deletions Attachments/RichAnswerVerificationAssets/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# 富回答验收真实图像资产

本目录只用于富回答验收素材留档,不是 App 资源目录,后续接入案例时再从这里挑选。

- `originals/`:尺寸和体积符合仓库边界的原图。
- `processed/`:适合验收包与对话流展示的无裁切、无拉伸副本。
- `manifest.json`:逐项记录来源、许可依据、尺寸、哈希、处理命令。
- `ATTRIBUTION.md`:署名文本和使用注意。
- `COLOR_CONTRAST_WEIBEI_SCREENSHOT_SPEC.md`:颜色对比题必须使用魏碑自身可复现界面截图的采样规范。

体积边界:超过约 15MB 或长边超过 4000px 的原件只在 `/private/tmp/weibei-rich-answer-source-assets/` 下载和哈希核验,仓库只保存长边 2400–3200px 的高质量衍生图。
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# learning-art-color-contrast-overlay 像素采样报告

- 源图:`/private/tmp/weibei-rich-reply-replay-rerun-20260718-142954/after.png`
- 坐标原点:左上角,单位为 PNG 像素。
- 尺寸:2616×1656
- SHA-256:`c1c79970691385ff614f7c5a9eacedc21a094ba409bf242bb7c62d0716f06e1e`
- 方法:CoreGraphics/ImageIO 读取 PNG;每个窗口取 RGB 中位数;sRGB 线性化后计算相对亮度和对比度。
- 抗锯齿说明:11×11 文字窗口已完整记录;当文字过细导致中位数被背景吞掉时,报告另列明确 glyph interior 小窗,不制造理想色值。

## 对比结论

| 组 | 前景 RGB | 背景 RGB | 前景 L | 背景 L | 对比度 | 普通正文 AA | 大号文字 AA | 专业结论 |
| --- | --- | --- | ---: | ---: | ---: | --- | --- | --- |
| 明显可读:近似周期数值 2.22 s | 39,32,26 | 247,238,221 | 0.0154 | 0.8614 | 13.94:1 | 通过 | 通过 | 黑色大号数值对纸色背景有充分余量,可作为学生观察反馈的主读数。 |
| 边缘状态:橙色小标题“适用范围” | 181,90,71 | 247,238,221 | 0.1759 | 0.8614 | 4.03:1 | 未通过 | 通过 | 橙色标题在大号/加粗标题上可读,但不适合降级成小正文或说明文字。 |
| 低对比状态:输入框占位文字 | 188,182,171 | 249,242,226 | 0.4709 | 0.8913 | 1.81:1 | 未通过 | 未通过 | 占位文字对输入框底色对比度不足,富回答应把它标为需要增强的可用性风险点。 |

## 采样窗口

| 组 | 角色 | ID | 中心坐标 | 窗口 | RGB 中位数 | 相对亮度 | 说明 |
| --- | --- | --- | --- | ---: | --- | ---: | --- |
| metric-value-black-on-paper | foregroundRaw11 | metric-raw-2-top | (1439, 444) | 11×11 | 123,115,105 | 0.1749 | 可读数值主体;11×11 混入抗锯齿和纸色。 |
| metric-value-black-on-paper | foregroundRaw11 | metric-raw-second-2 | (1484, 444) | 11×11 | 97,90,81 | 0.1045 | 可读数值主体;11×11 中位数仍保留暗笔画。 |
| metric-value-black-on-paper | foregroundRaw11 | metric-raw-s | (1552, 448) | 11×11 | 136,129,118 | 0.2224 | 单位字母笔画边缘;比数字更受抗锯齿影响。 |
| metric-value-black-on-paper | foregroundGlyphInterior | metric-glyph-2-left | (1439, 440) | 5×5 | 39,32,26 | 0.0154 | 因 11×11 混入纸色,用 5×5 glyph interior 记录真实前景。 |
| metric-value-black-on-paper | foregroundGlyphInterior | metric-glyph-2-mid | (1484, 440) | 5×5 | 39,32,26 | 0.0154 | 因 11×11 混入纸色,用 5×5 glyph interior 记录真实前景。 |
| metric-value-black-on-paper | foregroundGlyphInterior | metric-glyph-2-right | (1506, 440) | 5×5 | 39,32,26 | 0.0154 | 因 11×11 混入纸色,用 5×5 glyph interior 记录真实前景。 |
| metric-value-black-on-paper | background11 | metric-bg-above | (1425, 416) | 11×11 | 247,238,221 | 0.8614 | 数值标签附近无字背景。 |
| metric-value-black-on-paper | background11 | metric-bg-between | (1458, 453) | 11×11 | 247,238,221 | 0.8614 | 数字内部间隙附近背景。 |
| metric-value-black-on-paper | background11 | metric-bg-right | (1610, 443) | 11×11 | 247,238,221 | 0.8614 | 数值右侧背景。 |
| metric-value-black-on-paper | boundary11 | metric-boundary-left-edge | (1431, 444) | 11×11 | 247,238,221 | 0.8614 | 文字边缘邻近区域;中位数可能被背景主导。 |
| metric-value-black-on-paper | boundary11 | metric-boundary-aa | (1448, 442) | 11×11 | 247,238,221 | 0.8614 | 抗锯齿边缘邻近区域。 |
| metric-value-black-on-paper | boundary11 | metric-boundary-s-edge | (1552, 448) | 11×11 | 136,129,118 | 0.2224 | 单位字母边缘区域。 |
| orange-heading-on-paper | foregroundRaw11 | orange-raw-left | (1450, 990) | 11×11 | 247,238,221 | 0.8614 | 橙色标题笔画附近;11×11 被纸色明显稀释。 |
| orange-heading-on-paper | foregroundRaw11 | orange-raw-scope | (1510, 991) | 11×11 | 181,90,71 | 0.1759 | 橙色标题较实笔画区域。 |
| orange-heading-on-paper | foregroundRaw11 | orange-raw-edge | (1432, 990) | 11×11 | 247,238,221 | 0.8614 | 标题左边缘;11×11 被纸色主导。 |
| orange-heading-on-paper | foregroundGlyphInterior | orange-glyph-left | (1432, 982) | 3×3 | 186,103,83 | 0.2076 | 3×3 glyph interior,用于避免 11×11 被背景吞掉。 |
| orange-heading-on-paper | foregroundGlyphInterior | orange-glyph-mid | (1486, 982) | 3×3 | 181,90,71 | 0.1759 | 3×3 glyph interior。 |
| orange-heading-on-paper | foregroundGlyphInterior | orange-glyph-right | (1495, 982) | 3×3 | 181,90,71 | 0.1759 | 3×3 glyph interior。 |
| orange-heading-on-paper | background11 | orange-bg-above | (1448, 958) | 11×11 | 247,238,221 | 0.8614 | 标题上方背景。 |
| orange-heading-on-paper | background11 | orange-bg-right | (1560, 990) | 11×11 | 247,238,221 | 0.8614 | 标题右侧背景。 |
| orange-heading-on-paper | background11 | orange-bg-below | (1450, 1018) | 11×11 | 247,238,221 | 0.8614 | 标题下方背景。 |
| orange-heading-on-paper | boundary11 | orange-boundary-top | (1454, 980) | 11×11 | 247,238,221 | 0.8614 | 标题边缘区域;中位数可能被纸色主导。 |
| orange-heading-on-paper | boundary11 | orange-boundary-left | (1432, 990) | 11×11 | 247,238,221 | 0.8614 | 标题左边缘区域。 |
| orange-heading-on-paper | boundary11 | orange-boundary-right | (1523, 982) | 11×11 | 247,238,221 | 0.8614 | 标题右边缘区域。 |
| input-placeholder-low-contrast | foregroundRaw11 | placeholder-raw-left | (1416, 1481) | 11×11 | 248,241,225 | 0.8830 | 占位文字太细,11×11 中位数会接近背景。 |
| input-placeholder-low-contrast | foregroundRaw11 | placeholder-raw-mid | (1508, 1477) | 11×11 | 188,182,171 | 0.4709 | 占位文字太细,11×11 中位数会接近背景。 |
| input-placeholder-low-contrast | foregroundRaw11 | placeholder-raw-right | (1558, 1481) | 11×11 | 218,212,198 | 0.6607 | 占位文字太细,11×11 中位数会接近背景。 |
| input-placeholder-low-contrast | foregroundGlyphInterior | placeholder-glyph-left | (1416, 1481) | 3×3 | 188,182,171 | 0.4709 | 11×11 被背景吞掉,改用 3×3 glyph interior。 |
| input-placeholder-low-contrast | foregroundGlyphInterior | placeholder-glyph-mid | (1508, 1477) | 3×3 | 188,182,171 | 0.4709 | 11×11 被背景吞掉,改用 3×3 glyph interior。 |
| input-placeholder-low-contrast | foregroundGlyphInterior | placeholder-glyph-right | (1558, 1481) | 3×3 | 188,182,171 | 0.4709 | 11×11 被背景吞掉,改用 3×3 glyph interior。 |
| input-placeholder-low-contrast | background11 | placeholder-bg-left | (1450, 1460) | 11×11 | 249,242,226 | 0.8913 | 输入框内部无字底色。 |
| input-placeholder-low-contrast | background11 | placeholder-bg-mid | (1650, 1460) | 11×11 | 249,242,226 | 0.8913 | 输入框内部无字底色。 |
| input-placeholder-low-contrast | background11 | placeholder-bg-right | (1830, 1446) | 11×11 | 249,242,226 | 0.8913 | 输入框内部无字底色。 |
| input-placeholder-low-contrast | boundary11 | placeholder-boundary-top-left | (1395, 1427) | 11×11 | 247,238,221 | 0.8614 | 输入框上边框很细,11×11 中位数可能被背景主导。 |
| input-placeholder-low-contrast | boundary11 | placeholder-boundary-top-mid | (1500, 1427) | 11×11 | 247,238,221 | 0.8614 | 输入框上边框很细。 |
| input-placeholder-low-contrast | boundary11 | placeholder-boundary-top-right | (1700, 1427) | 11×11 | 247,238,221 | 0.8614 | 输入框上边框很细。 |
Loading