• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Alan-Jowett / CoPilot-For-Consensus / 20648709675
78%

Build:
DEFAULT BRANCH: main
Ran 02 Jan 2026 01:21AM UTC
Jobs 27
Files 129
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Jan 2026 01:20AM UTC coverage: 76.261% (+0.07%) from 76.192%
20648709675

push

github

web-flow
refactor: Optimize prompts for KV cache reuse and proper adapter separation (#678)

* refactor: optimize prompts for KV cache reuse

- Move static instructions to system prompt to create stable cacheable prefix
- Keep variable thread data in user prompt
- Improves performance by caching instructions across requests
- No functional changes to prompt behavior or output

* feat: integrate prompt files into orchestrator service

- Add COPY instruction in Dockerfile to include orchestrator/prompts
- Load system and user prompts from files at service startup
- Pass system_prompt_path and user_prompt_path from environment config
- Update _publish_summarization_requested to send actual prompt content
- Replace hardcoded 'consensus-summary-v1' identifier with file-based prompts
- Enables KV cache reuse optimization from PR #673
- Honors SYSTEM_PROMPT_PATH and USER_PROMPT_PATH environment variables
  (defaults: /app/prompts/system.txt and /app/prompts/user.txt)

* fix: merge prompts into prompt_template field to match event schema
refactor(adapters): make summarizers dumb - move all prompt construction to service layer

- Orchestrator now merges system_prompt and user_prompt into single prompt_template
- Maintains event schema contract (single string field)
- System prompt stays static (instructions), user prompt stays variable (data)
- Merged at event publish time with newline separation
- Enables KV cache reuse while honoring event schema

BREAKING CHANGE: Thread.prompt_template is now Thread.prompt (complete pre-constructed prompt)

- All three summarizer adapters (local_llm, openai, llamacpp) now receive complete prompts
- Removed prompt construction logic from adapters (no business logic in adapters)
- Summarization service now fully responsible for: template substitution, message formatting, prompt assembly
- Thread model updated: prompt_template field -> prompt field (semantic: complete ready-to-use prompt)
- Adapters now true dumb wrappers: receive prom... (continued)

65 of 75 new or added lines in 6 files covered. (86.67%)

5985 of 7848 relevant lines covered (76.26%)

0.85 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
10
67.17
-0.34% orchestrator/app/service.py
Jobs
ID Job ID Ran Files Coverage
1 ingestion - 20648709675.1 02 Jan 2026 01:21AM UTC 5
82.34
GitHub Action Run
2 copilot_events - 20648709675.2 02 Jan 2026 01:22AM UTC 11
60.44
GitHub Action Run
3 copilot_archive_fetcher_integration - 20648709675.3 02 Jan 2026 01:21AM UTC 9
45.68
GitHub Action Run
4 copilot_schema_validation - 20648709675.4 02 Jan 2026 01:21AM UTC 7
87.46
GitHub Action Run
5 copilot_vectorstore - 20648709675.5 02 Jan 2026 01:23AM UTC 8
71.73
GitHub Action Run
6 copilot_schema_validation_integration - 20648709675.6 02 Jan 2026 01:21AM UTC 7
40.75
GitHub Action Run
7 copilot_embedding - 20648709675.7 02 Jan 2026 01:23AM UTC 3
92.0
GitHub Action Run
8 chunking - 20648709675.8 02 Jan 2026 01:22AM UTC 2
83.25
GitHub Action Run
9 copilot_storage_integration - 20648709675.9 02 Jan 2026 01:21AM UTC 6
36.16
GitHub Action Run
10 reporting - 20648709675.10 02 Jan 2026 01:22AM UTC 2
89.97
GitHub Action Run
11 copilot_storage - 20648709675.11 02 Jan 2026 01:23AM UTC 6
67.51
GitHub Action Run
12 orchestrator - 20648709675.12 02 Jan 2026 01:21AM UTC 2
67.29
GitHub Action Run
13 copilot_archive_fetcher - 20648709675.13 02 Jan 2026 01:21AM UTC 9
67.49
GitHub Action Run
14 copilot_vectorstore_integration - 20648709675.14 02 Jan 2026 01:21AM UTC 8
20.29
GitHub Action Run
15 summarization - 20648709675.15 02 Jan 2026 01:22AM UTC 2
92.56
GitHub Action Run
16 embedding - 20648709675.16 02 Jan 2026 01:21AM UTC 2
90.17
GitHub Action Run
17 parsing - 20648709675.17 02 Jan 2026 01:21AM UTC 7
84.27
GitHub Action Run
18 copilot_chunking - 20648709675.18 02 Jan 2026 01:23AM UTC 2
93.75
GitHub Action Run
19 copilot_consensus - 20648709675.19 02 Jan 2026 01:21AM UTC 3
98.67
GitHub Action Run
20 copilot_draft_diff - 20648709675.20 02 Jan 2026 01:23AM UTC 6
98.77
GitHub Action Run
21 copilot_summarization - 20648709675.21 02 Jan 2026 01:21AM UTC 8
96.65
GitHub Action Run
22 copilot_logging - 20648709675.22 02 Jan 2026 01:22AM UTC 7
71.7
GitHub Action Run
23 copilot_reporting - 20648709675.23 02 Jan 2026 01:21AM UTC 5
73.17
GitHub Action Run
24 copilot_events_integration - 20648709675.24 02 Jan 2026 01:21AM UTC 11
35.15
GitHub Action Run
25 copilot_config - 20648709675.25 02 Jan 2026 01:23AM UTC 14
75.33
GitHub Action Run
26 copilot_metrics - 20648709675.26 02 Jan 2026 01:23AM UTC 6
41.74
GitHub Action Run
27 copilot_auth - 20648709675.27 02 Jan 2026 01:23AM UTC 12
43.59
GitHub Action Run
Source Files on build 20648709675
  • Tree
  • List 129
  • Changed 7
  • Source Changed 7
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20648709675
  • 00854030 on github
  • Prev Build on main (#20646713635)
  • Next Build on main (#20649650818)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc