Hermes Agent
|
9ddf8bbef4
|
test(backup): 异机备份恢复 smoke 测试增强
- backup_restore_smoke.py 扩展端到端覆盖
- test_backup_restore_service_level.py 增加服务级断言
- test_backup_workflow.py 工作流覆盖同步
为 L-B 备份恢复异机演练做准备 (脚本本地已就绪, 待目标主机执行)
|
2026-06-25 09:26:46 +08:00 |
|
Hermes Agent
|
4c732eb836
|
fix(crowd_db): 高信任数据系统性修复 — 契约硬化+真相单一化+防漂移
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
review 发现数据本身真实达标(7 high / 20 usable / 0 skeleton),
但代码/文档/测试/元数据 4 层出现严重脱节,存在静默升级风险与
合规假象回归漏洞。
Phase 1: 契约硬化(P0)
- risk_report.py 新增 _classify_score_bands + _compute_quality_level
- 质量等级判定从"仅看 confidence"升级为综合门槛
(conf + sr + recs + alts + 三层分数带),对齐 plan §4
- 新增 low 等级区分"已脱离骨架但未达可用"
- _load_provenance_metadata 改为优先 load_province 取完整数据
- finding_to_risk_dict 不再二次规范化已规范化数据
- quality_summary.py 增加 low 等级统计
- SCHEMA.md §6 同步完整门槛定义
Phase 2: 测试加固(P0)
- 新增 test_high_trust_thresholds.py 锁死 high/usable 完整门槛
(plan §9.2 要求的"防静默升级"测试)
- 修复 test_crowd_db_data_quality.py 等级枚举支持 low
- 修复 test_risk_report.py 硬编码日期脆弱性
Phase 3: 真相源单一化(P0)
- CURRENT_STATE.md §0.5 清除 6/20 旧文案"4 high + 3 usable + 20 skeleton"
- 改为引用顶部状态词 + 历史轨迹仅供审计
- NATIONALIZATION §4 清除"当前 high 已扩展为 5 省"矛盾文案
- 顶部状态词从"Phase 0 收口中"升级为"已完成"
Phase 4: 元数据状态对齐(P1)
- hunan.json / sichuan.json trusted_sources.kind
province_official_pending_review -> province_official
- 同步更新 quality_note 说明已完成 2025 年度复核
- 消除"状态 high/usable 但 kind=pending_review"的矛盾
Phase 5: 防漂移机制(P1)
- 新增 scripts/check_crowd_db_consistency.py
跨文档+数据+测试白名单一致性检查(5 项检查)
- dev-verify.sh 接入 crowd_db quality summary 打印
验证:
- ruff: All checks passed
- mypy: Success, no issues in 16 source files
- pytest crowd_db/: 148 passed, 2 skipped
- pytest 全量: 1283 passed, 2 skipped (无回归)
- consistency check: high=7 usable=20 low=0 skeleton=0
Refs: docs/plans/2026-06-23-national-high-trust-crowd-db-plan.md §4/§9
|
2026-06-25 07:41:11 +08:00 |
|
Hermes Agent
|
09caa3309f
|
feat(legal+data): harden legal drafts and crowd_db provenance
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
|
2026-06-21 11:54:16 +08:00 |
|
hermes
|
240c38e312
|
feat(scripts 6/20 v2.1.4): 性能+集成+模拟+部署 4 维度验证
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
## 4 个新脚本
| 脚本 | 用途 | 结果 |
|---|---|---|
| scripts/perf_benchmark.py | 性能 baseline + 10 并发压测 | p95=3ms/10.68ms, 1250 rps |
| scripts/integration_test.py | 全链路 E2E (DB+admin+portal+retention) | 7/7 PASS |
| scripts/user_simulation.py | Playwright 5 跳 × 2 视口 | 10/10 PASS |
| scripts/deploy_ops_verify.py | 12 项 health/auth/CRUD/ops-alerts | 12/12 PASS |
## reports 落地
- reports/perf_2026_06_20.json
- reports/integration_2026_06_20.json
- reports/deploy_ops_2026_06_20.json
- reports/user_simulation_2026_06_20/ (10 PNG + captures.json)
- reports/PRODUCTION_LAUNCH_READINESS_2026-06-20.md (总报告 + PRODUCTION_DEPLOYMENT_CHECKLIST §7 A 8 项勾选)
- docs/VERIFICATION_SCRIPTS_2026-06-20.md (脚本索引)
## 关键发现 (投产必读)
1. **GAOKAO_ORDERS_FERNET_KEY 必须在 systemd unit Environment= 显式设置**, 否则
订单写入抛 MissingEncryptionKey → 兜底 except 抛 500 E03003 (表面像'数据保存失败')
2. **/api/orders 与 /api/orders/{id} 响应都是嵌套 {order: {...}}**, portal 路径平铺
3. **portal_token 不在 order 响应里**, 需 data/customer_portal/token.issue_portal_token(order_id, secret)
## PRODUCTION_DEPLOYMENT_CHECKLIST §7 A 8 项
本地可推进 5/8 全过: 密钥目录 / 健康端点 / 联调文档 / 隐私政策 / 数据密度
3/8 文档级 (SMTP 真实联调 / 告警渠道 / 备份异机演练 需 PM+Ops+凭据)
## 状态分级
- 整体: CONDITIONAL_APPROVED
- 本地验证: 4 维度 36/36 项全 PASS
- 外部前置: 6 项需 PM/Ops/Legal/真实商户协调 (T12-A / 异机演练 / 法务审定 / 真实告警 / 真实压测 / data_year 更新)
|
2026-06-20 18:57:45 +08:00 |
|
Hermes Agent
|
6d0feeb090
|
build: prove pdf runtime and strict remediation gates
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
|
2026-06-18 17:40:12 +08:00 |
|
Hermes Agent
|
d415d8a494
|
build: tighten runtime contracts and dependency reproducibility
|
2026-06-18 15:50:23 +08:00 |
|
Hermes Agent
|
6b0a4a9038
|
fix: make coverage gate reflect application code only
|
2026-06-18 14:07:26 +08:00 |
|
Hermes Agent
|
65f44c9718
|
fix: make backup verify safe for wal sqlite
|
2026-06-18 13:39:02 +08:00 |
|
Hermes Agent
|
246f21c7f2
|
feat(review): land unified remediation and rules evidence closure
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
|
2026-06-18 10:21:38 +08:00 |
|
Hermes Agent
|
8a61b8fe4a
|
fix(rules): close phase15 verify and legacy checker migration
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
|
2026-06-17 09:01:43 +08:00 |
|
Hermes Agent
|
ae4835eeab
|
feat(rules): add phase1 truth source loader and rules cli
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
|
2026-06-16 18:14:41 +08:00 |
|
Hermes Agent
|
bf7cce90f9
|
feat(ops): add admin ops alert audit and watchdog alert sink
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
|
2026-06-15 18:17:30 +08:00 |
|
Hermes Agent
|
5a57ec4705
|
feat(quality): make dev-verify a stable one-shot entrypoint
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
|
2026-06-15 14:23:27 +08:00 |
|
Hermes Agent
|
ac2d6d1c44
|
fix(quality): tighten P1-4/P1-6/P1-8 regressions for db scoping and backup verify
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
|
2026-06-15 13:52:56 +08:00 |
|
Hermes Agent
|
243d1b9427
|
fix(quality): unify coverage gate across CI, dev-verify, and codecov
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
|
2026-06-15 12:45:06 +08:00 |
|
Hermes Agent
|
7fabc23715
|
fix(t12): close payment delivery and governance remediation
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
|
2026-06-15 11:39:31 +08:00 |
|
Hermes Agent
|
7fe4ddcbc4
|
feat: harden T12 backup and portal workflows
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
|
2026-06-14 23:12:18 +08:00 |
|
Hermes Agent
|
8787600eee
|
feat: add retention cleanup workflow
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
|
2026-06-14 20:55:06 +08:00 |
|
Hermes Agent
|
e24107c517
|
feat: add delivery watchdog and crowd quality summary
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
|
2026-06-14 20:47:25 +08:00 |
|
Hermes Agent
|
9d1a6a11b0
|
feat: harden delivery and deletion workflows
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
|
2026-06-14 20:37:39 +08:00 |
|
Hermes Agent
|
2f4eabf681
|
ops: add backup verification script
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
|
2026-06-14 19:36:57 +08:00 |
|
Hermes Agent
|
08148fe282
|
feat: add consent gating and dev verify
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
|
2026-06-14 13:02:03 +08:00 |
|
Hermes Agent
|
e7706e3b11
|
chore: harden real payment onboarding gate
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
|
2026-06-14 06:50:21 +08:00 |
|
Hermes Agent
|
ca480ebf84
|
chore(quality): close T5.5 coverage gate
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
|
2026-06-13 22:31:40 +08:00 |
|
Hermes Agent
|
9510fd16ec
|
chore(release): finalize T5.5 coverage gate artifacts
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
|
2026-06-13 16:25:54 +08:00 |
|
Hermes Agent
|
3f46811e49
|
release: cut v2.1
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
|
2026-06-13 14:49:58 +08:00 |
|
Hermes Agent
|
6af6e0156b
|
feat(crowd-db): T2.4 扎堆报告生成器 + 端到端渲染验证
- data/crowd_db/risk_report.py: build_crowd_risks 把 RiskFinding 转
模板所需 crowd_risks 字典;高/中/低三色 emoji(🔴/🟡/🟢);
group_by_risk / format_risk_summary / render_risk_table 辅助能力;
LoaderLike Protocol 避免对 CrowdDBLoader 强依赖
- data/crowd_db/tests/test_risk_report.py: 22 用例覆盖三色 emoji、
模板字段、alternatives 重映射、防御 fallback、空方案、不存在
省份、自定义 loader 注入
- scripts/verify_t2_4_e2e.py: 用真实湖南 575 分数据 + audit_report.html
模板渲染一遍,6/6 集成断言通过
- CHANGELOG: T2.4 记录
验证:data/crowd_db/tests/ 105/105、仓库全量 392/392、ruff All checks
passed、validate_template.py PASS
|
2026-06-12 16:35:20 +08:00 |
|
hermes-coder
|
29f3f4d362
|
feat(share): T7.1 短链接生成 (base62 + SQLite 映射表)
CI / pytest (Python 3.10) (push) Has been cancelled
CI / pytest (Python 3.11) (push) Has been cancelled
CI / pytest (Python 3.12) (push) Has been cancelled
- data/share/short_link.py (657 行):ShortLinkService 核心模块
- base62 编解码 + secrets.choice 加密随机短码
- SQLite WAL 模式持久化,share_links 表 + 3 索引
- 访问控制:permission (read/comment/edit/admin) + sha256 密码 + expires_at + revoked
- 完整 CRUD: create/get/resolve/revoke/list_by_*/get_stats/purge_expired
- route_short_link() 路由辅助供 Flask/FastAPI 等挂载 /s/<code>
- data/share/tests/test_short_link.py (447 行):25 个 pytest 用例覆盖全部 API
- scripts/gaokao-shortlink (271 行):CLI 入口 (create/resolve/revoke/list/stats/purge)
|
2026-06-12 15:20:10 +08:00 |
|
Hermes Agent
|
6b067d9c24
|
v2.0: 初始化项目,建立完整目录结构
- 创建项目目录 /home/long/projects/gaokao-volunteer-system/
- 迁移3个Skills(gaokao-college-advisor, gaokao-spec-checker, zhangxuefeng-skillset)
- 迁移独立脚本(5个当前版本+4个legacy版本)
- 复制所有文档和示例
- 创建规则库(rules/)
- provinces/ 省份规则
- errors/ 错误模式库(15种)
- 创建文档体系(docs/)
- case-studies/ 真实案例
- optimization-log/ 优化日志
- future-plan.md 未来规划
- 添加 .gitignore 排除临时文件
- 添加 README.md 和 CHANGELOG.md
- 已支持27个省份自动适配
- 已识别15种错误模式
|
2026-06-11 16:06:34 +08:00 |
|