ARTEX/db
Autumn-27 cb8df6a2e3 feat(task): 资产覆盖度功能可按任务开关
创建任务时新增「资产覆盖度功能」开关(默认开)。关闭后:
- 不计算/展示测试覆盖度,总览卡片隐藏、覆盖度 API 返回 enabled:false
- 态势图仅展示资产不显示测试进度(B1:抹平 tested、去已测统计与图例)
- 不再自动累积 task_scope(source=auto)
- planner/mainagent 的 add_task_scope、list_untested_assets 从工具列表剔除
- graph_overview 丢弃 coverage 度量块、保留 scope 字段(防上下文污染)

company 关联(task_scope kind=company)与此开关无关,永不受影响:
insertTaskCompanies 不 gate,TaskCompanyIDs 照常读回,scope 字段照常喂给 agent。

DB:tasks 加 coverage_enabled 列(schema.sql + ALTER ADD COLUMN IF NOT EXISTS
补旧库,默认 true 保持存量任务原行为)。

Claude-Session: https://claude.ai/code/session_01Jm87Gr5fq5aso6SfLyguhx
2026-08-22 10:03:18 -04:00
..
activity_page_test.go feat(activity): 任务会话历史反向分页 + SSE 可靠性整改 2026-08-11 09:13:12 -04:00
asset_dsl.go feat(tasks): add templates findings workflows and batch controls 2026-08-21 21:01:39 +08:00
assets.go feat(tasks): add templates findings workflows and batch controls 2026-08-21 21:01:39 +08:00
assets_test.go feat(tasks): add templates findings workflows and batch controls 2026-08-21 21:01:39 +08:00
commands.go init 2026-08-21 11:16:19 +08:00
companies.go feat: prepare 0.3.3 worker llm agent and ui enhancements 2026-08-21 23:55:43 +08:00
companies_test.go feat: prepare 0.3.3 worker llm agent and ui enhancements 2026-08-21 23:55:43 +08:00
company_lock_test.go feat(tasks): add templates findings workflows and batch controls 2026-08-21 21:01:39 +08:00
company_scope.go fix(scope): 含点号的文本不再被误判为 ICP 备案号 2026-08-22 06:26:07 -04:00
company_scope_consistency_test.go feat(tasks): add templates findings workflows and batch controls 2026-08-21 21:01:39 +08:00
company_scope_test.go fix(scope): 含点号的文本不再被误判为 ICP 备案号 2026-08-22 06:26:07 -04:00
config.go init 2026-08-21 11:16:19 +08:00
config_test.go feat(tasks): add inherited context and resilient LLM execution 2026-08-20 18:34:24 +08:00
constants.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
conversation.go feat(tasks): add templates findings workflows and batch controls 2026-08-21 21:01:39 +08:00
conversation_pin_test.go feat(tasks): add templates findings workflows and batch controls 2026-08-21 21:01:39 +08:00
customtool_test.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
db.go init 2026-08-21 11:16:19 +08:00
db_test.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
exploration.go feat(tasks): add templates findings workflows and batch controls 2026-08-21 21:01:39 +08:00
exploration_sources.go feat(tasks): add inherited context and resilient LLM execution 2026-08-20 18:34:24 +08:00
exploration_sources_test.go init 2026-08-21 11:16:19 +08:00
exploration_test.go feat(tasks): add inherited context and resilient LLM execution 2026-08-20 18:34:24 +08:00
exploration_tokens_test.go feat(tasks): add templates findings workflows and batch controls 2026-08-21 21:01:39 +08:00
findings.go feat(tasks): add templates findings workflows and batch controls 2026-08-21 21:01:39 +08:00
findings_test.go feat(tasks): add templates findings workflows and batch controls 2026-08-21 21:01:39 +08:00
intent_admission.go feat(tasks): add templates findings workflows and batch controls 2026-08-21 21:01:39 +08:00
intent_control_test.go feat(tasks): add templates findings workflows and batch controls 2026-08-21 21:01:39 +08:00
intercept.go feat: 拦截规则 allow/deny 命中也进审批记录(三种 action 全可观测) 2026-08-17 10:03:56 -04:00
llm_usage.go init 2026-08-21 11:16:19 +08:00
llmhealth.go feat(llm): LLM 配置轮询(故障转移),某个配置没额度/失效时自动切下一个 2026-08-19 11:07:53 -04:00
logs.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
nkey.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
schema.sql feat(task): 资产覆盖度功能可按任务开关 2026-08-22 10:03:18 -04:00
settings.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
skill_usage.go init 2026-08-21 11:16:19 +08:00
skill_usage_test.go init 2026-08-21 11:16:19 +08:00
task_assets_context.go fix(ui): 任务总览的测试范围显示企业名称而非 ID 2026-08-22 06:43:08 -04:00
task_context.go feat(tasks): add templates findings workflows and batch controls 2026-08-21 21:01:39 +08:00
task_context_lock_test.go feat(tasks): add inherited context and resilient LLM execution 2026-08-20 18:34:24 +08:00
task_context_unit_test.go feat(tasks): add inherited context and resilient LLM execution 2026-08-20 18:34:24 +08:00
task_delete_concurrency_test.go feat(tasks): add inherited context and resilient LLM execution 2026-08-20 18:34:24 +08:00
task_queue_test.go feat(tasks): add templates findings workflows and batch controls 2026-08-21 21:01:39 +08:00
task_scope.go feat(task): 资产覆盖度功能可按任务开关 2026-08-22 10:03:18 -04:00
task_scope_test.go fix(scope): add_task_scope 支持 host:port 目标,入库前剥端口 2026-08-09 09:09:59 -04:00
task_source_limit_test.go feat(tasks): add templates findings workflows and batch controls 2026-08-21 21:01:39 +08:00
task_templates.go feat(tasks): add templates findings workflows and batch controls 2026-08-21 21:01:39 +08:00
task_templates_test.go feat(tasks): add templates findings workflows and batch controls 2026-08-21 21:01:39 +08:00
tasks.go feat(task): 资产覆盖度功能可按任务开关 2026-08-22 10:03:18 -04:00
tasks_test.go feat(tasks): add templates findings workflows and batch controls 2026-08-21 21:01:39 +08:00
testmain_test.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
tools.go feat: goal_met 默认不绑任何 agent + 去掉 planner 相关提示词 2026-08-17 09:26:59 -04:00
triggers.go feat(trigger): 新增"任务创建"触发机制(on_task_create) 2026-08-09 02:19:29 -04:00