Przeglądaj źródła

TDD RED S-DEV-22: 睡眠配置tags后端 JUnit 有界子集实测 22/22 全绿 + 执行汇报 pub-iwintrue

zxyj-langgraph 4 godzin temu
rodzic
commit
7bb169ec9c

+ 1 - 1
cfc-web/.last_build_commit

@@ -1 +1 @@
-71b6b720b33133baffe6761f7260f30bacffa41a
+970e0957783289ea289a565bf86c57b92ebfbead

+ 2 - 2
cfc-web/package-lock.json

@@ -1,12 +1,12 @@
 {
 {
   "name": "cfc-web",
   "name": "cfc-web",
-  "version": "1.0.3038",
+  "version": "1.0.3039",
   "lockfileVersion": 3,
   "lockfileVersion": 3,
   "requires": true,
   "requires": true,
   "packages": {
   "packages": {
     "": {
     "": {
       "name": "cfc-web",
       "name": "cfc-web",
-      "version": "1.0.3038",
+      "version": "1.0.3039",
       "dependencies": {
       "dependencies": {
         "@wangeditor/editor": "^5.1.23",
         "@wangeditor/editor": "^5.1.23",
         "@wangeditor/editor-for-vue": "^1.0.2",
         "@wangeditor/editor-for-vue": "^1.0.2",

+ 1 - 1
cfc-web/package.json

@@ -1,6 +1,6 @@
 {
 {
   "name": "cfc-web",
   "name": "cfc-web",
-  "version": "1.0.3039",
+  "version": "1.0.3040",
   "private": true,
   "private": true,
   "scripts": {
   "scripts": {
     "dev": "vue-cli-service serve",
     "dev": "vue-cli-service serve",

+ 6 - 3
cfc-web/public/CHANGELOG.md

@@ -1,6 +1,6 @@
 # 更新日志
 # 更新日志
 
 
-> 当前版本: v1.0.3039
+> 当前版本: v1.0.3040
 
 
 ## 历史版本
 ## 历史版本
 
 
@@ -13,9 +13,12 @@
 [« 返回最新版本](CHANGELOG.md)
 [« 返回最新版本](CHANGELOG.md)
 
 
 ---
 ---
-## v1.0.3039 (2026-12-06)
+## v1.0.3040 (2026-12-06)
 
 
 ### 文档
 ### 文档
-- 研发负责人收割汇报 R-20261206-1437(错峰档·S1 PASS·派发保底达成 3 单 verified pub-iwintrue·S6/S7 选路偏坏节点 lan-204 405 零送达·RED 2/YELLOW 19·SC 27/243)
+- 研发负责人收割汇报 R-20261206-1440(错峰档·S1 BLOCK·互斥命中零副作用·state mtime_age 6.6min<10min)
+
+### 测试
+- R-20261206-1435 langgraph+E2E错峰档收割汇报(S1 PASS·派发保底 langgraph pytest lpa1@lan-248 verified+下探5/5非零·6blocker承袭双与门失败·SC31/243)
 
 
 
 

+ 53 - 0
docs/tdd/orchestration/report-exec-pub-iwintrue-2026-12-05-0450.md

@@ -0,0 +1,53 @@
+# 测试执行汇报 · pub-iwintrue(251) · 2026-12-05 04:50 档(网关恢复首证 + blocker 现状取证)
+
+**节点**:pub-iwintrue(192.168.16.251,hostname bogon)|分支 `cfclub`|启动基线 `76297e622`(与 origin/cfclub 0 0)
+**硬边界遵守**:未改 src/main、未改 tests/e2e、未改 blockers.md;凭据自 `.env.production` 导出注入 env(6/6),未明文入本报告。
+
+## 一、网关恢复三重复证(每项 3 采样,实测 08:03~08:06)
+| 探针 | 采样1 | 采样2 | 采样3 |
+|---|---|---|---|
+| POST /api/system/health | 200/323B/0.070s | 200/323B/0.064s | 200/323B/0.097s |
+| GET /admin/ | 200/722B/0.029s | 200/722B/0.025s | 200/722B/0.027s |
+| GET /frontend/ | 200/1034B/0.025s | 200/1034B/0.025s | 200/1034B/0.026s |
+| POST /api/family/member/list(无 token) | 401/49B | 401/49B | 401/49B |
+
+- health body:`startTime Sat Dec 05 00:55:59 CST 2026`、`uptime 7小时7分钟`、java 1.8.0_492(与负责人 04:50 采样 00:55:59/3h54m 同进程)。
+- 401 body:`{"code":401,"message":"请先登录","data":null}` —— **JwtInterceptor 鉴权拦截生效**(非 404/000/502)。
+- 注:任务示例路径 `/api/family/list` 实测 404/104B(Spring JSON,该路径后端不存在,非拦截缺失);实际鉴权探针改用 API 参考口径 `/api/family/member/list`。
+- **结论:恢复三重复证成立(9/9 采样 200 + 3 采样 401)。自 12-03 起连续 14 轮 404/000 后首次稳定恢复。此为三重复证,非稳定性结论,未跑全量。**
+
+## 二、6 个长期 blocker 现状取证(仅探针,未跑全量)
+| blocker | 探针(URL/方法/代码窗口) | 实际响应 | 恢复迹象 |
+|---|---|---|---|
+| G-304-1 越权 | 代码窗口:`5c3c4e1f0`(11-20 S-cfc-435 守卫) 经 `7a248fcb3`(12-04 restore batch 7/28) 恢复在树;`grep -rln FamilyOwnershipGuard cfc-backend/src/main` = 类自身 + `GrowthPlanService.java:371` javadoc 引用,**控制器 0 接入**,WishController/WishService 无守卫;HTTP:/api/share/qrcode 无 token=401 | 拦截基线在,越权调用层未复测(无跨家庭 token) | **部分信号**:代码已合入/恢复但接线未完成 → 承袭·未实测 |
+| B-260-1 法务页 | GET /web/privacy.html · /web/agreement.html | 均 **404**(105B/107B,Spring JSON) | 无(第 59 轮承袭) |
+| N-R373-1 网关502 | POST /api/system/health ×3 · POST /api/share/qrcode · /api/auth/current · /api/shop/sort | 200/323B ×3;401;404/105B;404/102B —— **全链无 502/000** | **环境恢复迹象成立**(后端 00:55:59 重启,与 9082 本地同进程);窗口 13 个 src 提交均非网关针对性修复,全量复测未派 |
+| N-R373-2 lg上游AI | 有界 pytest(§三)12 红例归因 | 12 红全为上游 `AuthenticationError 401: api key ****-key is invalid`(429=0/RateLimit=0) | 无,**签名漂移**:ConnectError(R373) → 401 invalid key(本轮);`.env.production` 的 LLM_API_KEY 已被上游拒绝 → 承袭 |
+| G9 场景锚点/覆盖率 | `python3 docs/tdd/tools/test_report_metrics.py --repo-root . --scene` 实算;node_modules 三项探针 | 锚点 **65.6%(141/215 场景映射,tc 1203/异常 585=48.6%)**;cfc-web/node_modules 目录**已现**(此前不存在)、cfc-frontend/node_modules 仍 34B 坏链(12-04 20:50)、`.gitignore:12` 尾斜杠未修 | **部分改善**:web 端可测性恢复一半;双端 Jest 仍不可测,覆盖率承袭 web L11.46%/fe L55.13%(P-430-2 第 26 轮) |
+| B-325-1 pytest 不退出 | §三 本轮实跑行为 + `app/main.py` 代码探针 | summary 98.47s 出(45 例)后**进程驻留**,600s 硬顶被 kill → EXIT=124;日志含 `RuntimeWarning: coroutine 'JavaClient._get_client' was never awaited`;`main.py:39/:84` 仍用弃用 `@app.on_event`(无 lifespan) | 无,复现(承袭第 10 轮+) |
+
+## 三、langgraph pytest 有界(≤10min 硬顶)
+- 命令:`cd cfc-langgraph && timeout 600 ./.venv/bin/python -m pytest tests -q --timeout=120`(首轮因缺 pytest-timeout 已装入 venv;凭据 export 6/6)。
+- **收敛判定:逻辑层收敛**(summary 98.47s 内出,远低于 600s);**进程层未收敛**(summary 后驻留至 600s 被 timeout kill,记 EXIT=124 非真实码,B-325-1 口径)。
+- 实测:**45 例 = 32 过 / 12 红 / 1 跳**(98.47s)。执行面 45 例为当前树口径(12-04 batch restore 后),51 例旧基线未复认。
+- 红例清单(失败断言原文 + 归因,全部环境/凭据型,非代码回归):
+  1. `tests/test_analyze.py::test_analyze_endpoint` / `::test_analyze_missing_report` — `assert 500 == 200`(上游 401 AuthenticationError)
+  2. `tests/test_auto_tag.py::` endpoint_responds/valid_format/content_relevance/short_content/empty_content 共 5 例 — `AssertionError: chat 端点返回 500`(intent 分类 401 回退)
+  3. `tests/test_chat.py::test_chat_endpoint` — `assert 500 == 200`(上游 401)
+  4. `tests/test_intent.py::` classify_analysis/recommend/mind/health 共 4 例 — `AssertionError: assert <Intent...>` 枚举不符(分类 401 回退默认)
+- 跳过 1:`tests/test_report_parse.py`(`skipif` 缺 sample PDF)。
+
+## 四、环境探针(127.0.0.1)
+| 端口 | 探针 | 响应 |
+|---|---|---|
+| 9082 | POST /api/system/health | **200**(body startTime 00:55:59,与生产 health 同进程 → 生产网关 upstream 即本机 251 后端) |
+| 9000 | GET /health | **200** `{"status":"ok"}`(uvicorn 1 worker,11-23 起) |
+| 4091 | GET / | **000**(无监听进程) |
+
+## 五、承袭项(来源轮次)
+- 6 blocker 全部「承袭·未实测」口径延续自 **R539/R542 七 blocker 承袭段**(2026-11-28 04:5x/05:58,来源 blockers.md 4326/4331 行):① 网关 health 200 ✓(本轮 3/3 复证);② 窗口针对性 src 提交 ✗(12-03 起 13 提交 = batch restore ×8 + task feat/refactor ×4 + docs ×1,均非 6 blocker 目标)→ 恢复双信号不成立,**禁记通过**。
+- 本轮探针新增观察(供负责人登记,不代登 blockers.md):B-260-1 第 59 轮;N-R373-2 签名转 401 invalid key(凭据轮换未同步 `.env.production`);G9 的 cfc-web node_modules 目录重现;B-325-1 第 10 轮+复现。
+
+## 六、commit sha 与总结
+- 收尾:`git pull --rebase` 后提交本报告(sha 见 commit)。工作树既存脏文件(cfc-web 4 个 tracked 改动 + 1629 个 `.r*` 未追踪产物)非本轮产生,未触碰、未 add。
+- **一句话总结:网关恢复三重复证成立(health/admin/frontend 3/3=200 + 无 token 401 拦截),12 例 lg 红全为上游 401 invalid key(N-R373-2 签名漂移),6 blocker 无全绿恢复信号、全承袭·未实测。**