admin and Claude Fable 5
f2c101ec65
feat(bioflow): 样本配置智能分析——描述文件优先+实况分析+解压
...
- ensure_samples_yaml 重写(用户要求,不做变体匹配):
1. 描述文件发现(源目录树限深度 4):tsv/csv > xlsx > yaml/yml
2. 实况分析:分类原始序列与压缩包(tar/zip 解压到 input/archives/,
幂等),R1/R2 语义配对(不假设命名规律)
3. 描述文件路径校正:失效路径按 run 标识在实况中定位(唯一命中替换,
按 R1/R2 分边;零命中保留由 CLI 报错)
4. 生成 samples.yaml 引用真实路径,返回 fastq 父目录并入执行容器挂载
- 176 实测:rice 目录 24 样本全部通过输入校验,fastp 真实执行
- 340 用例 + 4 场景(tsv 校正/xlsx/实况配对/压缩包)全绿
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-16 19:54:21 +08:00
admin and Claude Fable 5
750e218541
fix(bioflow): 卡片防误操作+暂停立即生效+确认幂等
...
- 可调整参数卡「继续」成功后按钮隐藏,显示「参数已确认」
- 确认分析路径卡「确认创建任务」成功后按钮隐藏,显示「任务已创建」
- 后端 confirm_stage 幂等:已确认且 running/queued 的重复确认放行(不再 409)
- 暂停立即生效:docker run 加 --name,docker kill 终止执行容器,
running 阶段置 paused、任务即时暂停(kill 的 exit 137 不误判 failed)
- 340 后端用例 + 121 r3debug + 373 主套件全绿;已部署 176
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-16 18:01:24 +08:00
admin and Claude Fable 5
becf76ecd9
feat(bioflow): 分析路径规划中提示——planning 帧+前端思考中状态
...
- 后端 chat 流在规划开始前发 planning 帧(seq=-2,与 plan_ready 同机制)
- 前端收到 planning 帧立即创建 bioflow_path 块(status=running,
脉动圆点+「正在分析需求并规划分析路径…」),plan_ready 填入候选并关闭
- bioflow store 增加 planning/planningText 状态
- 339 后端用例 + 121 r3debug + 373 主套件全绿;已部署 176
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-16 16:15:17 +08:00
admin and Claude Fable 5
dcb810a758
feat(bioflow): wgs/pop/gwas 26 阶段参数契约(与 rnaseq 同款机制)
...
- stage_image_map 加 26 个 wgs/pop/gwas 阶段 cli_contract:
--workspace/--job-id/--prefix 公共三元组 + 上游 manifest 注入
(prev_manifest:<stage> 解析为 workspace/final/{prefix}.{stage}.manifest.json)
+ param:<name> 用户参数 + tool:<name> 镜像内工具
- kernel _contract_args 扩展 prev_manifest/tool 两种 source
- catalog 补 wgs/pop/gwas 参数 schema(确认表单收集参考基因组/样本清单/
表型文件/主成分等)
- 339 用例全绿;已部署 176
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-16 15:33:43 +08:00
admin and Claude Fable 5
3b512fffd0
fix(bioflow): rnaseq/wgs 阶段参数契约——CLI 参数注入+样本配置自动生成+产物路径对齐
...
- stage_image_map 加 cli_contract(13 个 rnaseq 阶段):-i/-o/-c 等
标志按契约注入;无契约阶段保持 --input-dir 默认形态
- rnaseq 系 -o 语义=产物目录,契约注入 workspace/final(CLI 内部以
output.parent 为 workspace 并建 output.parent/final——此前注入
workspace 导致 /job/final 权限错误)
- 登记目录自动生成 samples.yaml(按 f1/r1+f2/r2 配对,不覆盖手工配置;
此前 CLI -c 必填无来源,rnaseq 全链从未真实跑通)
- catalog 补 hisat2_index/gtf/prefix 参数 schema(确认表单收集)
- 338 用例全绿;176 真实任务验证:fastp 在真实 fastq 上产出 clean
产物+报告(首个真实跑通的 rnaseq 阶段)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-16 15:23:50 +08:00
admin and Claude Fable 5
04fb306624
fix(bioflow): 内核树运行时挂载——非 gf 阶段镜像缺 cli 模块
...
- 8 个阶段镜像中仅 bioflow-gf 内置 /bioflow-kernel,其余 7 个
(rnaseq/wgs/gfpy/rnar/rde/pan/interproscan) 执行时 No module named cli
- 服务端统一 -v kernel_dir:/bioflow-kernel:ro + -w /bioflow-kernel,
全部镜像可用,免重建 7 个镜像
- config 新增 kernel_dir/container_kernel_dir(env 可覆盖)
- 337 用例全绿
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-15 23:22:06 +08:00
admin and Claude Fable 5
2ee9af4bd0
fix(bioflow): 路径登记目录展开+黑名单+自动挂载
...
- 登记目录自动展开多文件(扩展名白名单过滤,上限 200)
- 移除白名单根校验(用户数据可在任意位置),改敏感路径黑名单
(/etc /root /proc /var/lib/docker 等前缀 + .env/*.key/id_ed25519 等文件名)
- 登记文件 symlink 进任务 input + server_registered.json 持久化
- 执行容器自动挂载登记路径(-v src:src:ro),跨重启恢复
- 前端 chat.js 兼容 items[] 响应(单文件亦在 items[0])
- 336 用例全绿
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-15 23:11:27 +08:00
admin and Claude Fable 5
957f3cb062
feat(ui): 导航按钮迁移右上角+删除会话栏底部工具栏
...
- 会话/扩展/知识图谱/设置 4 按钮自侧栏迁移至 TopBar 右侧(与主题按钮并列)
- 按需求收敛为扩展/设置两按钮,与主题按钮右上角同行水平对齐
(.theme-toggle-anim 改 inline-flex + svg 脱离基线,消除图标下沉)
- SessionRail 全档位删除(桌面底部工具栏/折叠态图标轨/窄屏抽屉)
- 清理死接线:openKg 函数与 toggle-side/goto-kg 事件
- 同步删除 r3debug 的 SessionRail 测试用例
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-15 22:49:41 +08:00
admin
e3870d19de
fix(extension): run 方法守卫与 trial 统一——适配器 _real 非 None 即执行
2026-09-15 12:35:48 +08:00
admin and Claude Fable 5
a008fbba2a
fix(extension): 产物收割排除代码副本+删 work 目录——输出契约校验语义不变
...
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-15 11:59:42 +08:00
admin and Claude Fable 5
3989dd3c3a
fix(extension): 容器入口可写工作目录——代码复制进 run_dir 执行+产物收割输出
...
18 用例脚本在 cwd 写 outputs/ 相对目录,代码挂载只读致 trial 失败。
等价做法:代码复制进 output/work 执行,{code_dir} 指向可写副本,
成功后 work 产物合并进 output_dir,输出契约校验不变。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-15 11:58:17 +08:00
admin
8a58703d61
fix(extension): converted_code 镜像保留嵌套结构(与 raw_code 落盘一致)
2026-09-15 11:51:27 +08:00
admin
4266a89872
fix(extension): 容器入口默认 cwd 改为代码目录(run.sh 相对脚本路径语义)
2026-09-15 11:43:16 +08:00
admin
1bce4bf587
fix(extension): context 接线改用 _default_exec_config(entry_script_dir 空串致 trial 入口缺失)
2026-09-15 11:37:39 +08:00
admin and Claude Fable 5
9bbe2c83f6
fix(extension): 入口脚本目录解析——176 部署树路径深度不同致 trial 报入口缺失
...
_resolve_extension_entry_dir 按 parents[4] 推导,175 仓库布局成立,
176 部署树(bioflow_service 独立树)深度不同 → 找不到 run_extension.py
→ 试运行报「入口脚本缺失」。修复:env BIOFLOW_EXT_ENTRY_DIR 优先 +
从 __file__ 向上逐级搜索 */bioflow_kernel/cli/run_extension.py + 兜底。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-15 11:24:05 +08:00
admin and Claude Fable 5
82b954b957
docs(deploy): BFF 手动重启 venv 绝对路径陷阱(2026-09-15 实测)
...
根因:venv 在部署根 install/venv,BFF 必须 cd sdk 起 app.main:app——
cd sdk 后相对路径 venv/bin/python 解析成不存在的
install/sdk/venv/bin/python(setsid failed to execute,端口静默 DOWN)。
修正 5f 示例命令(cd 前解析绝对路径)并补老进程 socket 失效场景。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-15 10:54:10 +08:00
admin and Claude Fable 5
d12071a4d7
feat(extension): 上传支持 zip/tar/目录三形态+结构自适应分类
...
- 前端零打包:归档文件(zip/tar/tar.gz/tgz)原样上传服务端解压;
目录拖入/选择器走 webkitRelativePath 多文件直传(filename=相对路径),
隐藏文件/__pycache__ 过滤 + 公共根剥离(参考 PlantAI-dev 主路径)
- 后端 _read_archive 魔数分派(zip/tar.gz/tar)+保留嵌套路径;
code_files 多文件字段;结构自适应分类(目录前缀→命令解析→扩展名,
未知归代码,纯数据 422 可读,纯脚本合法);store 嵌套落盘
- 存量 bug 修复:FormData 字段名 file→code_zip;golden File→JSON+test_file;
http size hint 兼容 code_zip 与多文件求和
- 测试:后端 334/334(新增 10 个变体用例),前端 122/373 全绿
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-15 10:34:52 +08:00
admin and Claude Fable 5
76529f78ab
docs(deploy): 环境镜像全量同步原则固化
...
2026-09-14 起为部署原则:175 全部 26 个环境类镜像
(8 bioflow-* + 16 plantai-env-* + allenv + protected)必须部署
到 176——扩展分析 runtime_image 可选范围 = 176 本地镜像全集。
含新增/修复镜像的同步流程、旧 tag 回退纪律、activate.d
宿主路径断链陷阱(panfamily 案例)。同步 175 docs/DEPLOY_SKILL.md
与本地 skill 的 §7.4。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-14 22:15:47 +08:00
admin
835d55cb5b
docs(images): bioflow-pan 镜像 panfamily 模块修复记录\n\n- 根因: conda activate.d 注入的 PYTHONPATH 指向宿主路径,容器内断链,\n 所有 from panfamily.io import 失败\n- 修复: panfamily 模块(68K)COPY 进 site-packages + 删断链脚本;\n 新镜像已 load 176,panfamily.io read_fasta 端到端通过(49432 序列)\n\nCo-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-09-14 22:05:45 +08:00
admin and Claude Fable 5
653d2211cf
fix(extension): inject_executor 废弃——曾把生信 stage runner 函数塞进扩展 store
...
根因:get_store() 惰性创建时调用旧 inject_executor,把 context.executor
(生信阶段 runner 执行函数)赋给扩展 store.executor 字段;启动注入真实
执行器时 .inject_real 撞函数对象('function' object has no attribute)。
修复:get_store 不再调;inject_real_executor 一律新建适配器实例注入;
inject_executor 保留空壳兼容。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-14 17:30:09 +08:00
admin and Claude Fable 5
4128fbf3bf
fix(extension): 执行器守卫与注入修复——active_store 不存在+占位误判已注入适配器
...
验收实测:176 启动日志『has no attribute active_store』(注入
跳过),且占位守卫按 type is ExtensionExecutor 判断——TL 接线的
适配器正是该类,已注入也会被误判 503。修复:注入走 get_store();
守卫改判 _real is None(真正未注入)。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-14 17:27:49 +08:00
admin and Claude Fable 5
68b45c60a0
fix(extension): 扩展意图检测提前到 route_intent 之前
...
验收实测:『创建一个扩展用于统计 fastq 质量』被 route_intent 判
qa(生信词库不识别扩展创建语义),扩展意图判定在 bioflow 分支内
永远到不了。修复:扩展两层判定移到 gen() 开头,命中发
extension_* 帧后返回;不命中走原逻辑(漏判安全)。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-14 17:24:27 +08:00
admin and Claude Fable 5
c0b3026209
fix(extension): docker 镜像引用双后缀拼接——已含 tag 的自动镜像再补 suffix
...
build_command 无脑拼 {image}:{suffix};自动生成镜像名已含 tag
(bioflow-ext-<fp>:<suffix>)→ 拼成 a:b:b 非法引用,175 真实执行
exit 125 invalid reference format。修复:含冒号视为已带 tag,
不补后缀;用例 04 真实容器执行(自动镜像+解析脚本+过滤断言)通过。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-14 16:01:28 +08:00
admin and Claude Fable 5
bb560d7bea
fix(extension): 自动镜像生成两缺陷——Dockerfile FROM 顺序+timeout 参数名
...
真实 docker build 冒烟暴露:
- render_dockerfile 把 LABEL 放在 FROM 之前,buildkit 报 no build stage
- _inspect_image/_cleanup_failed_build/collect_garbage 传 timeout=
而 _run_docker 形参是 timeout_sec,调用即 TypeError
验证:175 真实 docker build 补装 pandas 3.0.5 成功、指纹去重
REUSE_OK、容器内 import 通过;全量 324/15/122/373 转绿。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-14 15:59:33 +08:00
admin and Claude Fable 5
2a6315e615
docs(extension): 测试报告——TL 接管测试循环,B1-B4 缺陷修复,全量测试绿
...
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-14 15:10:10 +08:00
admin and Claude Fable 5
812decf310
fix(extension): 测试隔离+注入惰性适配+chat_stream 意图接线
...
TL 测试循环修复:
- conftest 两处 Settings 补 extensions_dir=tmp 隔离(此前测试扩展
落仓库默认目录,跨测试污染致列表排序断言失败)
- inject_real_executor 惰性创建适配器(store.executor 默认 None)
- chat_stream 接扩展意图两层判定:create→extension_upload 帧、
run→extension_candidates 帧、create_ambiguous→引导帧;
扩展链路异常不回退生信主链
- .gitignore 排除 tests/extension_cases_18/(2.6G 测试数据不入库)
验证:bioflow_service 324/324、内核 15/15、ui 122/122+373/373、
真实 docker 冒烟 SMOKE_OK。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-14 15:09:15 +08:00
admin and Claude Fable 5
3b16397baf
feat(extension): TL 接线——executor 适配/validate 帧/form_defaults/context 注入
...
- extensions.py: ExtensionExecutor 占位改为适配 Dev-B extension_exec
(ExtensionRunSpec→ExtensionRunRequest 翻译;inject_real_executor 注入)
- validate 两落点补 extension_validate 帧(ready_to_publish+form_defaults,
Dev-C 发布卡依赖);新增 _confirm_form_defaults
- context.py: init_context 尾部注入真实执行器,失败静默降级 503
全量测试:bioflow_service 324/324、内核 15/15、ui 122/122+373/373、build 通过。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-14 13:53:44 +08:00
admin
4fa758d602
Merge branch 'dev/extension-backend' into feature/bioflow-conversation-orchestration
2026-09-14 13:49:25 +08:00
admin
d95c2b5761
Merge branch 'dev/extension-frontend' into feature/bioflow-conversation-orchestration
2026-09-14 13:49:18 +08:00
admin and Claude Fable 5
4866b0408a
feat(bioflow): extension lifecycle backend (P0) - spec whitelist, state machine, AI build, intent layers
...
服务端生命周期部分(契约 §1/§2/§4/§5/§6;Dev-A):
- extension_spec.py: spec_v2 白名单 12 占位符 + {output_dir} 必含 + 白名单外拒绝
- extensions.py: 生命周期状态机(契约 §2 枚举) + {extensions}/{ext_id} 文件存储
+ ExtensionExecutor 接口占位(Dev-B 实现 extension_exec.py, inject_executor 注入)
+ extension_* 事件帧经 EventBus 发布(events.py 注册, 不改 job_* 语义)
- extension_llm.py: build/repair AI 转换(DOCGEN_LLM_* 优先, BIOFLOW_EXTENSION_* 别名)
LLM 不可用/坏输出一律回退规则版(_detect_requirements/_command_to_template 移植), 绝不 500
- routers/extension.py: 契约 §6 端点全集; trial/run 执行器未接入返回 503
- intent.py: 契约 §5 两层判定纯函数(A 创建词库 × B 已发布扩展打分 + 歧义消解 + 漏判安全)
chat/stream 接线留给 Dev-C 主分支整合
- config/schemas/main: upload_ext_allow 加 .zip/.py/.r/.sh; extensions_dir +
extension_max_repair_rounds(20) + LLM 键注释; 模型; router 注册
- tests: 5 个测试文件 71 用例; 全仓 286 用例通过
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-14 13:48:37 +08:00
admin and Claude Fable 5
03e6ff508a
feat(extension-frontend): 扩展分析前端引导卡 + 事件分派(Dev-C)
...
按 EXTENSION_CONTRACT.md §4 事件帧契约实现用户自定义扩展分析前端:
- chat.js: applyExtensionFrame extension_* 全事件集分派 + patchExtension*
块更新器(与 patchBioflow* 同幂等模式)+ sendExtension 引导流
+ uploadExtensionFile/trialRunExtension/confirmExtensionRun 动作
+ retry 扩展消息路由;现有 bioflow 路径零改动
- api/bioflow.js: 契约 §6 扩展端点封装(CRUD/build/trial-run/repair/
publish/run/runs/events SSE)
- 8 个扩展卡组件(Upload/Build/Trial/Validate/Publish/Candidates/
Confirm/Run)+ AssistantMessage 渲染挂接 + extension_published 确认块
- extensions store(侧栏数据面)+ ExtensionsPane + SessionRail 扩展入口
- intent.js A 层创建意图词典(§5 与后端同表双跑)+ Composer 分流
- i18n/bioflow.js 扩展卡文案 + 8 base 镜像表
- 单测 33 例:事件→块映射幂等/sendExtension 流/store 动作/8 卡 mount 冒烟/
创建意图词典;vitest 全绿 122/122 + build 通过
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-14 13:43:20 +08:00
admin and Claude Fable 5
79b4c7c52c
feat(extension): docker 执行内核入口 + 176 本地自动镜像生成(并行链路)
...
- cli/run_extension.py:容器通用入口(宿主挂载 /opt/bioflow-entry,镜像零改动);
extension.json → 模板渲染(白名单 12 占位符 + param_*,{output_dir} 必含)→
subprocess 执行(无 shell,进程组 SIGTERM→3s→SIGKILL)→ 输出契约校验(空目录退出码 3);
零第三方依赖(镜像内标准库)
- extension_exec.py:服务端 docker 执行器(list-form;三数据卷+入口卷;
--cpus/--memory 白名单独立复制不 import kernel.py;terminate→kill 同约定;
返回 {exit_code,timed_out,log_tail,cmd};run_stream 逐行增量)
- extension_image.py:指纹 sha256(base+tag+排序依赖) 前 12 位 →
bioflow-ext-<fp>:dev;inspect 命中复用;Dockerfile FROM base + apt + /opt/conda/bin/pip;
失败分类(pip/apt/network/timeout/docker_missing)+ LABEL 定位中间层清理;
registry 台账 + 引用计数 + collect_garbage
- extension_streams.py:契约 §4 事件流(trial/run async 生成器,增量日志节流,
EventBus 双发,防御性失败帧,aclose 回收)
- 单测 53 用例(15 unittest + 38 pytest)全绿;现有 bioflow 226 用例回归通过
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-14 13:36:18 +08:00
admin and Claude Fable 5
f0a1711ebc
fix(aqua): batch_runner path sanitize, loader batch embed, alias expansion
...
- batch_runner: sanitize paper_id to disk dir name (was skipping all
papers whose paper_id contains :/()); keeps explicit result path
compat; verified 5/5 no-skip on paren-DOI papers
- qdrant_loader: batch embed via Ollama array input (32/batch, 14x:
2.7 -> 36.9 texts/s, 24.5k points ~10min vs 2.5h); per-batch fail
falls back to single; checkpoint format unchanged
- entity_alias_aqua: +Streptococcus agalactiae (GBS), RAS
(forbidden_expansions), Danio rerio; merged vernacular/Chinese
aliases for O. niloticus / O. mykiss / S. salar / L. vannamei;
g02 gap entities now normalize correctly
- note for P3: ingest manifest MUST carry paper sidecar (pilot
manifest_pilot.json does not - would emit paper_id="result" dirt)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-13 01:06:38 +08:00
admin and Claude Fable 5
688edba169
docs(aqua): backfill measured budget numbers from 530-paper pilot
...
- measured: MD 1.6 calls/paper, PDF 28.2 calls/paper (assumed 8)
- full-scale LLM cost: ¥3110 (was ¥454 assumption-based)
- wall-clock: MD ~1.8d @4w; PDF ~4.5d @8w LLM-bound
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-12 22:20:06 +08:00
admin and Claude Fable 5
730692a1f6
feat(aqua): KB build tooling, aqua configs, QA artifacts (P1)
...
- phase2b_converter: result.json -> neo4j.cypher + qdrant_points.jsonl
(payload keys replicate direct_flow_retriever contract; kb_version=
aqua_srt_v1_20260930_normalized, source_system=Aqua_canonical)
- qdrant_loader: bge-m3 embed + batched upsert + checkpoint resume
- registry_builder: paper blocks -> registry jsonl (plant format)
- batch_runner: manifest -> convert -> neo4j -> qdrant, all checkpointed
- start_aqua_kb.sh: user-space trial instances (Neo4j 19889 / Qdrant 27435)
- smoke 11/11 green incl. resume drills
- aqua configs: entity_alias_aqua.yaml (22 entries), relation_taxonomy_aqua.yaml
(45 groups); manifest points to aqua configs
- QA artifacts: golden_aqua.jsonl (41 Qs zh/en), qc_standards.md,
budget_template.md + cost_model.py (measured pilot tokens)
- pilot: 500 MD + 30 PDF extracted, 0 failures; QC stats computed
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-12 22:19:40 +08:00
admin and Claude Fable 5
a9a0ece4b4
feat(aqua): aqua extraction chain v16_aqua_1_0 (copy of v16_1_2, aquatized)
...
- entity validator: 66 aquatic entity types / 45 aquatic relation categories
(fish/mollusk/crustacean/algae/water_quality/feed_ingredient/...)
- V16_SYSTEM_PROMPT rewritten for aquaculture; snake_case predicate rules
- rule seed vocab aquatized (60+ species incl. Litopenaeus vannamei,
Oreochromis niloticus, Oncorhynchus mykiss, Salmo salar)
- cost hook on all 4 chat.completions.create (no-op by default)
- run_v16_aqua_one_paper.py: --md entry (skip MinerU) + --pdf (MinerU)
- run_v16_aqua_batch.py: workers + batch_progress.json resume
- pilot: 500 MD + 30 PDF extracted, 0 failures
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-12 22:19:32 +08:00
admin and Claude Fable 5
00c77aa323
feat(aqua): figure chain dual-key generalization (PMCID/DOI)
...
- answer_composer: prefer [[FIG:PMCID]], fallback [[FIG:DOI:fullDOI]]
- sse_relay: marker regex accepts DOI form; DOI key passed through to figures
- figures: local index dual-key (pmcid + doi via registry paper_id/doi);
resolve_figures recognizes DOI form -> local first, EPMC search
(DOI->PMCID) fallback; silent degrade semantics unchanged
- normalize/humanizer: block protection covers [[FIG:DOI:...]] form
- plant KB unaffected: PMCID path byte-for-byte behavior kept; retrieval
chain untouched; 52 sdk tests pass
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-12 22:19:25 +08:00
admin and Claude Fable 5
6bcb88cf76
docs(deploy): 部署方法 Skill 化——含换机/无生信/自定义库路径变体与提示词示例
...
与本地 Claude Code skill(plantai-deploy)同源,面向 agent 自动执行;
新增 §7 部署变体(7.1 换机=密钥+路径+基础设施一次准备;7.2 无生信=
不部署 bioflow 树+env 关 BIOFLOW_ENABLED,start_all 自动跳过;7.3 自定义
库路径=QA_DB_ROOT/VSTORE_ROOT env 纯配置)与 §9 提示词示例(全量/新机
裁剪/纯前端/换库四种)。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-12 20:05:57 +08:00
admin and Claude Fable 5
037790c609
fix(aqua): DOI pairing decoder and MD extraction regexes
...
- MD: allow parens in DOI (old-style 10.1016/0006-3207(93)90088-i was
truncated at ")"); prioritize DOI-line doi.org URL; strip trailing
paren only when unbalanced
- PDF: require 10. at segment start (fixes year artifacts like
2010.0170 masquerading as DOI); keep full candidate on no-hit instead
of shortest prefix (10.1002/pd.71 was truncated to 10.1002); absorb
paren segments (10.1061/(asce)wr.1943-...); stop at DOI未知 marker
keeping registrant prefix; accept 10_ segment start variant
- undecodable PDFs: 71 -> 54; manifest DOI values now complete
- pairing count unchanged (3404) = true DOI overlap of the two corpora
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-12 19:46:13 +08:00
admin
afa7cce938
feat(aqua): unlock normalized KB identity via env with plant fallback
...
- normalized_release EXPECTED_RELEASE defaults to NORMALIZED_RELEASE_ID (plant value)
- from_env falls back to constant on empty env; backend_guard uses env-or-constant
- start.sh sources env/active_library.env after prod.env (qa + legacy-rag)
- build_all.sh --library <name|dir> renders library identity (no name whitelist)
- add kb-libraries skeleton (plant/aqua identity cards) and tooling/aqua_kb
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-12 19:10:08 +08:00
admin and Claude Fable 5
7444edf525
docs(acceptance): r4 六项缺陷验收用例与 TL 实测记录
...
测试 agent 编制的 S1/S2 验收用例 + TL §10 实测记录,
此前一直以未跟踪状态存在,本轮随 r4 修复链一并入库。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-12 18:40:08 +08:00
admin and Claude Fable 5
8d115f8f1c
fix(ui): SourceRow 徽标宽度级联修正(特异性提升)
...
上一提交的 .ft-ico width:auto 与 base.css 的 .ft-item .ft-ico
width:16px 特异性同为(0,2,0),bundle 中后者后发胜出,徽标仍被
裁成 16px。改 .source-row .ft-ico 提升特异性,生产实测徽标宽度
16px→86px,完整显示 paper_id 截断文本,与标题 8px gap 零重叠。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-12 18:38:07 +08:00
admin and Claude Fable 5
18e69046f1
fix(ui): 文献来源 SourceRow 徽标与标题重叠
...
r4 #27 把徽标从序号换成 paper_id(12 字符+…),但 ft-ico 仍是
文件树时代的固定 16px——13 个 mono 字符溢出与 ft-name 重叠。
改自适应宽度(width:auto 覆盖 base.css 全局规则,min 16px/
max 96px + ellipsis 截断),badgeTitle 属性保留完整值。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-12 18:32:51 +08:00
admin and Claude Fable 5
4b5b501463
fix(statusbar): loadSession 恢复时重建生信派生 pipeline 块
...
刷新/切会话后消息块来自持久化——派生块是瞬态镜像不落库,
恢复的消息没有它,阶段推进期间 4 点不亮。loadSession 的生信
任务事件订阅循环里补 syncBioflowDotBlock(m) 从持久化进度块
stages 重建,后续阶段事件经 patchBioflowEvent 链持续刷新。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-12 18:25:44 +08:00
admin and Claude Fable 5
7037a1d5d8
fix(deploy): restart 脚本 lsof 只取 LISTEN 态进程
...
2026-09-12 部署实测:lsof -ti tcp:PORT 返回该端口上所有 socket 的
进程——包括 BFF 到 8098/8094 的已建立连接,不只监听者。kill 多行
PID 时旧进程存活、新进程绑定失败静默退出(vstore 报 address already
in use;生信 restart 后仍是旧进程)。改 -sTCP:LISTEN 只取监听者,
kill 不再加引号(多 PID 需分词)。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-12 18:22:11 +08:00
admin and Claude Fable 5
36fc2a7250
fix(statusbar): 生信任务活跃期回退消息列表点亮 4 点
...
生产实测暴露缺口:生信对话的 chat/stream 在 plan_ready 后即关闭
(_finishCtx 清 streamCtx→currentMessage 为 null),而任务阶段恰在
流关闭后才真正运行——StatusBar 只读 currentMessage,阶段运行期
间 4 点仍不亮。这正是用户报的 bug 主场景。
- chat.js 新增 agentDotMessage getter:优先流式中 currentMessage;
流已收口时回退到消息列表里持有活跃生信任务(progress.jobId 且
jobStatus ∈ created/running/paused)的最后一条助手消息——其派生
pipeline 块正被任务事件订阅(connectJobEvents onEvent →
patchBioflowEvent → syncBioflowDotBlock)持续刷新。
- StatusBar.vue 数据源换 agentDotMessage;TopBar.vue runningPhaseOf
同换 + aggregate 在生信任务活跃期(busy=false 但有 running 相位)
点亮聚合点。
- 单测补生产实测场景:流已收口任务活跃→回退点亮;阶段推进随动;
任务终态正确收口空态。
验证:r3debug 89/89(新增回退用例)、主套件 373/373、dist 重建。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-12 18:22:03 +08:00
admin and Claude Fable 5
9d7ed1bdd3
feat(deploy): start_all.sh 编排生信服务(存在则启动/重启)
...
2026-09-12 陷阱 6:176 整机重启后 start_all 只拉五服务,独立树
bioflow_service(8098)掉进程无告警——生信 TAB 静默消失
(TAB 显隐由 /api/bioflow/health 轮询驱动)。
- start_all 模板新增生信编排段:探测 install 同级
bioflow/bioflow_service/restart.sh,存在则启动/重启并
8098 探活(restart.sh 自带旧进程 kill+重启语义),不存在
跳过;失败不阻断主服务。
- DEPLOY_FLOW §5.1 同步:生信首次部署与新机自动拉起区分。
验证:build_all.sh bash -n OK;生成的 start_all.sh 从 heredoc
提取后 bash -n OK。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-12 16:55:47 +08:00
admin and Claude Fable 5
f74b27daa1
fix(statusbar): 生信对话 4 个 agent 点不随相位点亮
...
根因:StatusBar/TopBar 只读 chat.currentMessage 的 pipeline 块 steps,生信对话
(sendBioflow)从不创建 pipeline 块——相位推进只写在 bioflow_progress.stages,
4 个点永远空态。
修复:
- chat.js 生信消息派生 pipeline 块(derived:true):bioflowDotStepsFromStages
按「每 4 阶段一轮」把 stages 镜像为 4 相位 steps(running→running、
failed→error 单调保持、done/skipped→done);newBioflowSkeletonMessage 自带
派生块,patchBioflowEvent/patchBioflowSnapshot 每次推进后同步,error 分支
收口当前 running 相位;AssistantMessage 与 _persistableBlocks 跳过派生块
(不渲染、不落库,后端 Block union 不受影响)。
- 连带修复:web_search_started 相位 retrieval→evidence(sse_relay.py 语义
属证据补全环节,原映射会在联网检索时造成「证据→检索」倒流跳变);
labels.js 兜底表补两条与 BFF 对齐。
验证:r3debug 88/88(新增 bioflowDots 14 + statusBarDots 6,含真实时序
mount→流到达→相位推进→终态)、主套件 373/373、sse_relay 29/29、dist 构建。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com >
2026-09-12 16:32:21 +08:00
admin
00fe6a379e
docs(debug): r4 缺陷记录(六项缺陷+过程问题 P1-P7+环境部署问题 E1-E10,含根因/修复/验证/终态)
2026-09-12 09:32:59 +08:00
admin
faa8686461
fix(figures): PMC 解析冷连接重试——176 实测首次 TLS 握手 10s+ 超时,重连秒回;失败重试一次走热路径
bugfix-r4-20260912
2026-09-12 01:55:42 +08:00