mirror of
https://github.com/ThearchyHelios/AgentLab.git
synced 2026-11-16 14:32:00 +00:00
数据源不可用时的 db_schema 替身也收 keyword;重读范围内读不到结构的表不记成按需加入;起草、剖析排在探查后面的测试
- tools/datasource._unavailable_tool:db_schema__ 多了可选的 keyword,固定的版本不在了时的替身也要收这个参数(调用工具节点按 参数模型的全部字段传参,不收就报「不接受名为 keyword 的参数」,全量测试里 test_run_data_versions 抓到的)。 - source_objects.add_to_scope:本来就在范围里、只是上次没读到结构的表(pinned、规则命中的)这次重读一遍,不改原因、不记留痕, 不算进「每次运行最多按需加入 8 张」,也不出现在面板的「按需加入的表」里。 - tests/test_introspect_jobs.py:起草、剖析任务排在同源的探查任务后面时 waiting_for 是 introspect。
This commit is contained in:
@@ -939,8 +939,11 @@ async def add_to_scope(source_id: str, names: list[str], *, trail: Trail, reason
|
||||
for o in todo:
|
||||
was_in = bool(o.in_scope)
|
||||
o.in_scope = True
|
||||
if not was_in or reason == "explicit":
|
||||
o.scope_reason = reason if not was_in or o.scope_reason in (None, "on_demand") else o.scope_reason
|
||||
if not was_in or (reason == "explicit" and o.scope_reason in (None, "on_demand")):
|
||||
o.scope_reason = reason
|
||||
elif was_in:
|
||||
# 本来就在范围里、只是上次没读到结构(pinned、规则命中的):这次重读一遍,不算「加入」,不记留痕
|
||||
continue
|
||||
o.added_via, o.added_by, o.added_at = trail.via, (trail.actor or None), now
|
||||
o.added_run_id, o.added_conversation_id = trail.run_id, trail.conversation_id
|
||||
o.added_ref = (trail.ref or None) and str(trail.ref)[:64]
|
||||
|
||||
Reference in New Issue
Block a user