Skip to content

Reduce ambient prompt duplication in daily cache analyzer + shared workflow imports - #48733

Merged
pelikhan merged 3 commits into
mainfrom
copilot/daily-ambient-context-optimizer
Jul 29, 2026
Merged

Reduce ambient prompt duplication in daily cache analyzer + shared workflow imports#48733
pelikhan merged 3 commits into
mainfrom
copilot/daily-ambient-context-optimizer

Conversation

Copilot AI commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Daily ambient-context sampling flagged repeated prompt fragments across workflow first requests, with the highest duplicate ratios in daily-cache-strategy-analyzer and recurring shared imports (shared/reporting.md, shared/mcp/serena-go.md). This PR trims those repeated sections without changing workflow intent.

  • Shared reporting fragment consolidation

    • Simplified .github/workflows/shared/reporting.md by merging duplicated heading blocks into one compact guideline section.
    • Preserved all required rules (header level, details usage, run-link format, reference limits, footer behavior).
  • Serena Go guidance dedup

    • Reduced .github/workflows/shared/mcp/serena-go.md to only Go-specific constraints, relying on shared/mcp/serena.md for base Serena behavior.
    • Removes repeated “code analysis” explanatory prose imported across workflows.
  • Daily cache analyzer table/example compression

    • Replaced three near-identical severity table templates in .github/workflows/daily-cache-strategy-analyzer.md with one canonical format plus per-severity detail sections.
    • Keeps output expectations intact while lowering duplicate line/paragraph pressure in the prompt body.
  • Regenerated compiled workflows

    • Recompiled markdown workflow specs so .lock.yml outputs reflect the prompt-surface changes.
### Findings

Use the table format below for each severity group:

| Severity | Workflow | Miss Streak | Miss Rate (14d) | Root Cause | Issue |
|----------|----------|------------:|----------------:|------------|-------|
| 🔴/🟠/🟡 | ... | N days | X% | ... | #N or n/a |

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Optimize daily ambient context for 2026-07-28 Reduce ambient prompt duplication in daily cache analyzer + shared workflow imports Jul 28, 2026
Copilot AI requested a review from pelikhan July 28, 2026 21:35
@pelikhan
pelikhan marked this pull request as ready for review July 28, 2026 21:48
Copilot AI review requested due to automatic review settings July 28, 2026 21:48
@pelikhan

Copy link
Copy Markdown
Collaborator

@copilot resolve the merge conflicts on this branch.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reduces duplicated ambient prompt content while preserving workflow behavior.

Changes:

  • Consolidates shared reporting and Serena Go guidance.
  • Compresses repeated cache-analyzer finding tables.
  • Regenerates many dependent lockfile hashes, though some importers remain stale.
Show a summary per file
File Description
.github/workflows/shared/reporting.md Consolidates reporting guidance.
.github/workflows/shared/mcp/serena-go.md Retains only Go-specific guidance.
.github/workflows/daily-cache-strategy-analyzer.md Replaces repeated severity tables.
.github/workflows/daily-cache-strategy-analyzer.lock.yml Regenerates cache analyzer output.
.github/workflows/workflow-normalizer.lock.yml Refreshes generated body hash.
.github/workflows/workflow-health-manager.lock.yml Refreshes generated body hash.
.github/workflows/test-quality-sentinel.lock.yml Refreshes generated body hash.
.github/workflows/terminal-stylist.lock.yml Refreshes generated body hash.
.github/workflows/super-linter.lock.yml Refreshes generated body hash.
.github/workflows/static-analysis-report.lock.yml Refreshes generated body hash.
.github/workflows/spec-extractor.lock.yml Refreshes generated body hash.
.github/workflows/smoke-copilot.lock.yml Refreshes generated body hash.
.github/workflows/smoke-copilot-arm.lock.yml Refreshes generated body hash.
.github/workflows/smoke-copilot-aoai-entra.lock.yml Refreshes generated body hash.
.github/workflows/smoke-copilot-aoai-apikey.lock.yml Refreshes generated body hash.
.github/workflows/smoke-codex.lock.yml Refreshes generated body hash.
.github/workflows/scout.lock.yml Refreshes generated body hash.
.github/workflows/research.lock.yml Refreshes generated body hash.
.github/workflows/repo-tree-map.lock.yml Refreshes generated body hash.
.github/workflows/pr-triage-agent.lock.yml Refreshes generated body hash.
.github/workflows/pr-nitpick-reviewer.lock.yml Refreshes generated body hash.
.github/workflows/pr-description-caveman.lock.yml Refreshes generated body hash.
.github/workflows/poem-bot.lock.yml Refreshes generated body hash.
.github/workflows/pdf-summary.lock.yml Refreshes generated body hash.
.github/workflows/org-health-report.lock.yml Refreshes generated body hash.
.github/workflows/linter-miner.lock.yml Refreshes generated body hash.
.github/workflows/issue-triage-agent.lock.yml Refreshes generated body hash.
.github/workflows/issue-arborist.lock.yml Refreshes generated body hash.
.github/workflows/impeccable-skills-reviewer.lock.yml Refreshes generated body hash.
.github/workflows/gpclean.lock.yml Refreshes generated body hash.
.github/workflows/go-pattern-detector.lock.yml Refreshes generated body hash.
.github/workflows/glossary-maintainer.lock.yml Refreshes generated body hash.
.github/workflows/functional-pragmatist.lock.yml Refreshes generated body hash.
.github/workflows/dictation-prompt.lock.yml Refreshes generated body hash.
.github/workflows/dev.lock.yml Refreshes generated body hash.
.github/workflows/dev-hawk.lock.yml Refreshes generated body hash.
.github/workflows/design-decision-gate.lock.yml Refreshes generated body hash.
.github/workflows/deployment-incident-monitor.lock.yml Refreshes generated body hash.
.github/workflows/dependabot-go-checker.lock.yml Refreshes generated body hash.
.github/workflows/deep-report.lock.yml Refreshes generated body hash.
.github/workflows/dataflow-pr-discussion-dataset.lock.yml Refreshes generated body hash.
.github/workflows/daily-syntax-error-quality.lock.yml Refreshes generated body hash.
.github/workflows/daily-hippo-learn.lock.yml Refreshes generated body hash.
.github/workflows/daily-function-namer.lock.yml Refreshes generated body hash.
.github/workflows/daily-aw-cross-repo-compile-check.lock.yml Refreshes generated body hash.
.github/workflows/copilot-pr-nlp-analysis.lock.yml Refreshes generated body hash.
.github/workflows/copilot-pr-merged-report.lock.yml Refreshes generated body hash.
.github/workflows/copilot-opt.lock.yml Refreshes generated body hash.
.github/workflows/commit-changes-analyzer.lock.yml Refreshes generated body hash.
.github/workflows/cloclo.lock.yml Refreshes generated body hash.
.github/workflows/cli-version-checker.lock.yml Refreshes generated body hash.
.github/workflows/ci-coach.lock.yml Refreshes generated body hash.
.github/workflows/aw-failure-investigator.lock.yml Refreshes generated body hash.
.github/workflows/auto-triage-issues.lock.yml Refreshes generated body hash.
.github/workflows/artifacts-summary.lock.yml Refreshes generated body hash.
.github/workflows/archie.lock.yml Refreshes generated body hash.
.github/workflows/approach-validator.lock.yml Refreshes generated body hash.
.github/workflows/agent-persona-explorer.lock.yml Refreshes generated body hash.
.github/workflows/agent-performance-analyzer.lock.yml Refreshes generated body hash.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 60/60 changed files
  • Comments generated: 2
  • Review effort level: Medium

---

## Report Structure Guidelines
## Reporting Guidelines
---

## Serena Go Code Analysis
## Go-specific constraints
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

Copilot AI commented Jul 28, 2026

Copy link
Copy Markdown
Contributor Author

@copilot resolve the merge conflicts on this branch.

Resolved in commit f9843e8cf1 by merging latest origin/main, resolving all lockfile conflicts, and recompiling to keep workflow markdown and .lock.yml files in sync.

@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.83.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ambient-context] Daily Ambient Context Optimizer - 2026-07-28

3 participants