Skip to content

Add global mood control file for centralized agent behavior#14380

Merged
pelikhan merged 3 commits intomainfrom
copilot/add-mood-markdown-file
Feb 7, 2026
Merged

Add global mood control file for centralized agent behavior#14380
pelikhan merged 3 commits intomainfrom
copilot/add-mood-markdown-file

Conversation

Copy link
Contributor

Copilot AI commented Feb 7, 2026

Implements a centralized behavioral control mechanism for all agentic workflows through a shared mood.md file that can provide fleet-wide guidance or remain empty when no global direction is needed.

Changes

  • Created .github/workflows/shared/mood.md as global control file
  • Updated 147 workflow frontmatter to import mood.md
  • Recompiled all workflow lock files to include mood content at runtime

Usage

The mood file is imported via frontmatter and its content is passed to agents during execution:

---
imports:
  - shared/mood.md
  - shared/other-imports.md
---

Update mood.md content and run make recompile to propagate changes across all workflows. Currently configured for release mode (quality/stability focus).

Architecture

  • Import processed during compilation via existing frontmatter import mechanism
  • Content merged into agent prompt at runtime
  • No changes to import resolution or workflow execution logic
  • File can be empty when no global guidance is needed
Original prompt

This section details on the original issue you should resolve

<issue_title>Mood</issue_title>
<issue_description>Add a markdown file at .github/workflows/shared/mood.md.

This markdown file should be imported in all agentic workflows via their frontmatter. The purpose of this file is to provide global controls and filters that steer the entire fleet of agents.

The file can be empty when there is no global guidance. Currently, the team mood is:

We are in release mode, focusing on quality and stability. Skip any work that does not directly improve quality or stability. Non-critical fixes or updates are not needed and should be skipped or canceled. If your task does not clearly contribute to product stability or is not mission critical, you should do nothing (call noop)

Update all agentic-workflows so they import this mood.md file in their frontmatter at runtime and use it as the controlling prompt.</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits February 7, 2026 15:45
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Add mood markdown file for agent workflows Add global mood control file for centralized agent behavior Feb 7, 2026
Copilot AI requested a review from pelikhan February 7, 2026 15:54
@pelikhan pelikhan marked this pull request as ready for review February 7, 2026 15:56
Copilot AI review requested due to automatic review settings February 7, 2026 15:56
@pelikhan pelikhan merged commit 5c597c7 into main Feb 7, 2026
141 checks passed
@pelikhan pelikhan deleted the copilot/add-mood-markdown-file branch February 7, 2026 15:56
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Introduces a centralized “team mood” prompt fragment (.github/workflows/shared/mood.md) and wires it into the agentic workflow import chain so fleet-wide behavioral guidance can be updated in one place and propagated via workflow recompilation.

Changes:

  • Added .github/workflows/shared/mood.md containing the current release-mode guidance.
  • Updated agentic workflow frontmatter to import shared/mood.md.
  • Recompiled workflow .lock.yml files so the resolved prompt content includes the mood section.

Reviewed changes

Copilot reviewed 295 out of 295 changed files in this pull request and generated no comments.

File Description
.github/workflows/shared/mood.md New shared global guidance content (“Team Mood”) to steer all agents consistently.
.github/workflows/*.md (agentic workflows) Frontmatter updated to import shared/mood.md so every workflow picks up global guidance.
.github/workflows/*.lock.yml (compiled workflows) Regenerated resolved manifests/prompt assembly to include the mood content at execution time.

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

@github-actions
Copy link
Contributor

github-actions bot commented Feb 7, 2026

CI run 34258 is failing in both js-integration-live-api and js because frontmatter_hash_github_api.test.cjs still compares against the old Go hash for audit-workflows.md. The new shared/mood.md import in this change updated the frontmatter content, so the computed hash is now bb5cbd9552401591e9476ae803f1736a88dca3f654f725dadffa5a7dbc31d639 while the test still asserts ff56a35b191afe28f76a09217de1597695a225e8f41502cc815a0a9e0eb2f96e, leading to the expect(jsHash).toBe(goHash) assertion failure. I updated the JS test file to use the new hash and documented the go test output. Local npm ci still fails here because the git dependency (git/redacted) can’t be fetched without SSH credentials (git dep preparation failed`), so I couldn’t run the JS test locally, but CI should be able to fetch it. Please rerun the JS jobs to confirm the fix.

AI generated by CI Failure Doctor

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mood

3 participants