perf(news): scope first-stage Skill prompts to each task
Development CI / check-and-build (push) Successful in 4m3s
GitHub Git mirror / mirror (push) Successful in 7s
Development CI / deploy-development (push) Successful in 2m30s

This commit is contained in:
eezd committed 2026-11-05 21:36:14 +08:00
1 parent f2ef39e99a
commit 1397a076e1
8 files changed
+131 -30

No files matched your search

+1 -1
View File
@@ -92,7 +92,7 @@ def test_published_skill_retains_base_instructions(trading, monkeypatch):
monkeypatch.setattr(service, 'provider_for', AsyncMock(return_value=provider))
session = SimpleNamespace(get=AsyncMock(side_effect=[
SimpleNamespace(id=9, scope='news', kind='skill', enabled=True, parent_id=None, published_version_id=10),
SimpleNamespace(version_no=3, content='PUBLISHED'),
SimpleNamespace(version_no=3, content='## 索引规则\nPUBLISHED\n## 归属规则\nASSIGN'),
]))
_, skill, rules = asyncio.run(service.model_config(session, {'index': {'provider_id': 7, 'model': 'test', 'skill_id': 9}}, 'index'))
assert skill == BASE+'\nPUBLISHED' and rules['base'] == BASE