ARTEX/db
Autumn-27 0961f347b4 fix(agent): list_assets 按任务范围过滤,修复任务间资产互串 (#59)
list_assets 此前把任务 id 写死为 0、裸查整个共享资产库,模型又无从写出
范围过滤条件,于是把别的任务的资产(尤其 IP)当成本任务目标,测试方向
被带偏。

- 新增 QueryDSLInScope / GetByIDsInScope:只返回落在【本任务及直接关联
  任务】task_scope 内的资产,按归属匹配而非字面值(根域范围含其全部子域/
  服务/接口,网段范围含段内主机及服务);越权 id 静默丢弃
- 新增 scopeTargetCTE(纯 scope 归属判定,不含 anchor/tested);whereBuilder
  加占位符偏移,$1 留给 taskID
- 修复 IP 直连主机(http://1.2.3.4/api)无法被网段范围命中的盲区:谓词加
  OR ts.net >>= try_inet(a.domain)
- 非任务上下文(Auto/pentest, taskID<=0)无范围可依,回退全库
- QueryDSL/CountDSL 原样未动,UI 的「测试资产」视图(按生产者过滤)不受影响
2026-09-12 03:25:47 -04:00
..
activity_page_test.go feat(activity): 任务会话历史反向分页 + SSE 可靠性整改 2026-08-11 09:13:12 -04:00
asset_dsl.go fix(agent): list_assets 按任务范围过滤,修复任务间资产互串 (#59) 2026-09-12 03:25:47 -04:00
assets.go fix(assets): ip 字段拒收主机名,并告诉调用方该怎么改 2026-08-24 10:32:10 -04:00
assets_test.go fix(agent): list_assets 按任务范围过滤,修复任务间资产互串 (#59) 2026-09-12 03:25:47 -04:00
commands.go fix: prevent OOM when archiving large tasks 2026-08-28 15:25:20 +08:00
companies.go feat(assets): 去掉企业资产范围 256 条规则上限 2026-08-31 11:22:34 -04:00
companies_test.go 修复 2026-08-28 07:37:24 +08:00
company_lock_test.go feat(assets): add editable company and task scopes 2026-08-24 19:29:14 +08:00
company_scope.go feat(assets): add editable company and task scopes 2026-08-24 19:29:14 +08:00
company_scope_consistency_test.go feat(assets): 去掉企业资产范围 256 条规则上限 2026-08-31 11:22:34 -04:00
company_scope_test.go feat(assets): add editable company and task scopes 2026-08-24 19:29:14 +08:00
config.go fix(mcp): http 传输支持跳过 TLS 证书校验(自签证书) 2026-09-11 11:37:56 -04:00
config_max_tokens_test.go feat(llm): 模型配置新增输出上限,支持 max_completion_tokens 字段名 2026-08-31 12:20:31 -04:00
config_test.go feat(llm): add profile failover and pool health 2026-08-24 19:28:18 +08:00
constants.go feat(digest): 探索图冷节点压缩(cold-digest) 2026-09-09 11:52:15 -04:00
constraints.go 同步 2026-08-24 14:14:15 +08:00
conversation.go 1、将排序做到border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted里,无需单独做个button 2、指定重命名使用ICO,无需使用菜单 2026-08-25 14:56:15 +08:00
conversation_pin_test.go feat(chat): add conversation pinning and rename controls 2026-08-24 19:29:38 +08:00
customtool_test.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
db.go fix: prevent OOM when archiving large tasks 2026-08-28 15:25:20 +08:00
db_test.go fix: prevent OOM when archiving large tasks 2026-08-28 15:25:20 +08:00
digest.go feat(digest): 探索图冷节点压缩(cold-digest) 2026-09-09 11:52:15 -04:00
exploration.go fix(db): side_question checkpoint 入库前剥除 jsonb 不支持的 NUL 转义 2026-09-12 03:00:28 -04:00
exploration_sources.go chore: sync upstream v0.3.6 changes 2026-08-28 14:03:07 +08:00
exploration_sources_test.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
exploration_test.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
exploration_tokens_test.go Merge upstream/main into codex/btw-side-question 2026-09-11 08:47:57 +08:00
finding_assets.go fix(findings): 补齐「按资产」视图的 mock,修两处标签重复 2026-08-31 11:10:47 -04:00
finding_assets_test.go feat(findings): 发现页新增「按资产」视图 2026-08-31 10:58:32 -04:00
finding_retests.go fix: 修复合并后审查发现的 6 个中/高问题 2026-09-10 10:15:24 -04:00
finding_retests_test.go feat: 支持会话级漏洞复测与运行状态展示 2026-09-10 16:06:08 +08:00
finding_traffic.go fix: 修复合并后审查发现的 6 个中/高问题 2026-09-10 10:15:24 -04:00
finding_traffic_archive.go feat: 支持漏洞关联多条流量证据 2026-09-10 13:03:20 +08:00
finding_traffic_archive_test.go feat: 支持漏洞关联多条流量证据 2026-09-10 13:03:20 +08:00
findings.go Merge PR #102: feat: 支持漏洞关联多条流量证据 2026-09-10 10:04:53 -04:00
findings_test.go 归档 2026-08-28 12:56:29 +08:00
intent_admission.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
intent_control_test.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
intercept.go feat(intercept): 增加审批记录详情与执行审计 2026-09-10 15:10:50 +08:00
intercept_detail.go feat(intercept): 增加审批记录详情与执行审计 2026-09-10 15:10:50 +08:00
intercept_detail_test.go feat(intercept): 增加审批记录详情与执行审计 2026-09-10 15:10:50 +08:00
jsonb_clean_test.go fix(db): side_question checkpoint 入库前剥除 jsonb 不支持的 NUL 转义 2026-09-12 03:00:28 -04:00
llm_records_migrate_test.go feat(llmrec): 录制 LLM 请求/响应 HTTP 原文 2026-08-25 09:40:05 -04:00
llm_usage.go fix: prevent OOM when archiving large tasks 2026-08-28 15:25:20 +08:00
llmhealth.go feat(llm): add profile failover and pool health 2026-08-24 19:28:18 +08:00
llmretry.go feat(llm): 五层重试的次数与间隔可配 2026-09-09 13:35:04 -04:00
llmretry_test.go feat(llm): 五层重试的次数与间隔可配 2026-09-09 13:35:04 -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 fix(mcp): http 传输支持跳过 TLS 证书校验(自签证书) 2026-09-11 11:37:56 -04:00
settings.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
side_questions.go fix(db): side_question checkpoint 入库前剥除 jsonb 不支持的 NUL 转义 2026-09-12 03:00:28 -04:00
side_questions_test.go fix(btw): 修复长对话上下文预算与旁路输入布局 2026-09-11 00:41:01 +08:00
skill_usage.go 归档 2026-08-28 12:56:29 +08:00
skill_usage_test.go feat(skills): track usage and missing dependencies 2026-08-24 19:30:14 +08:00
task_archive_aggregate_stats.go 归档 2026-08-28 12:56:29 +08:00
task_archives.go Merge origin/main into codex/btw-side-question 2026-09-11 00:54:51 +08:00
task_archives_restore.go Merge origin/main into codex/btw-side-question 2026-09-11 00:54:51 +08:00
task_archives_test.go fix: prevent OOM when archiving large tasks 2026-08-28 15:25:20 +08:00
task_assets.go style(db): 对齐 ICP 范围匹配 SQL 缩进,并注明手工挂载资产的语句顺序依赖 2026-08-24 08:55:55 -04:00
task_assets_context.go fix(agent): list_assets 按任务范围过滤,修复任务间资产互串 (#59) 2026-09-12 03:25:47 -04:00
task_assets_test.go feat(assets): add editable company and task scopes 2026-08-24 19:29:14 +08:00
task_categories.go feat(tasks): 任务列表支持批量修改分类 2026-08-24 09:16:44 -04:00
task_categories_test.go feat(tasks): 任务列表支持批量修改分类 2026-08-24 09:16:44 -04:00
task_context.go feat(llm): 任务 LLM 配置链改为任何状态都可修改 2026-08-31 09:26:33 -04:00
task_context_lock_test.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
task_context_unit_test.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
task_delete_concurrency_test.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
task_list_performance_test.go 修复BUG: 1、当存在较多任务时,系统会发生卡顿,加载对话或者加载界面时候存在明显卡顿,优化性能找出问题 2026-08-28 08:00:36 +08:00
task_metadata_test.go 1、将排序做到border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted里,无需单独做个button 2、指定重命名使用ICO,无需使用菜单 2026-08-25 14:56:15 +08:00
task_queue_test.go feat(tasks): add runtime controls and inherited context 2026-08-24 19:29:00 +08:00
task_scope.go fix(assets): 企业归属重算不再被单行非法 ip 打挂,并明确告知是哪些资产 2026-08-24 10:16:17 -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 runtime controls and inherited context 2026-08-24 19:29:00 +08:00
task_templates.go feat(tasks): add categories templates and batch controls 2026-08-24 19:29:46 +08:00
task_templates_test.go feat(tasks): add categories templates and batch controls 2026-08-24 19:29:46 +08:00
tasks.go 修复BUG: 1、当存在较多任务时,系统会发生卡顿,加载对话或者加载界面时候存在明显卡顿,优化性能找出问题 2026-08-28 08:00:36 +08:00
tasks_test.go feat(llm): 任务 LLM 配置链改为任何状态都可修改 2026-08-31 09:26:33 -04:00
testmain_test.go chore: ARTEX 初始化 2026-07-26 04:27:45 -04:00
tool_usage.go 归档 2026-08-28 12:56:29 +08:00
tool_usage_test.go 抽屉优化 2026-08-25 12:05:26 +08:00
tools.go 抽屉优化 2026-08-25 12:05:26 +08:00
triggers.go feat(trigger): 新增"任务创建"触发机制(on_task_create) 2026-08-09 02:19:29 -04:00