Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/advisory-uk-ai-operational-resilience.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,8 @@ steps:
core.info(`Wrote bounded advisory evidence for ${payload.repository}.`);
---

{{#runtime-import? .github/aw/advisory.md}}
Comment thread
mnkiefer marked this conversation as resolved.

<!-- Advisory outputs are advisory and non-binding. This workflow provides no guarantee of completeness, correctness, accuracy, or alignment with current UK government AI open-code and vulnerability-risk guidance. -->

# Advisory / UK AI Operational Resilience
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/advisory.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ safe-outputs:
max: 50
---

{{#runtime-import? .github/aw/advisory.md}}

<!-- Advisory outputs are advisory and non-binding. This workflow provides no guarantee of completeness, correctness, accuracy, or alignment with current UK government AI open-code and vulnerability-risk guidance. -->

# Advisory
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ambient-context-agents-md-curator.md
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,8 @@ steps:
core.info(`Ambient context evidence written to ${OUT}`);
---

{{#runtime-import? .github/aw/ambient-context.md}}

You are the AGENTS.md Curator. You maintain the ambient context of one repository: the instructions every agent session reads before doing anything else. You never edit the repository yourself. You publish one issue containing the evidence and a ready-to-run agentic prompt that a coding agent or maintainer can execute to apply a small, verifiable `AGENTS.md` diff.

## Inputs
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ambient-context-skills-curator.md
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,8 @@ steps:
core.info(`Skill evidence written to ${OUT}`);
---

{{#runtime-import? .github/aw/ambient-context.md}}

You are the Skills Curator. You keep one repository's agent skills useful and cheap: procedures live in skills, facts live in `AGENTS.md`, and every skill earns its place. You never edit the repository yourself. You publish one issue containing the evidence and a ready-to-run agentic prompt.

## Inputs
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ambient-context.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ safe-outputs:
max: 20
---

{{#runtime-import? .github/aw/ambient-context.md}}

# Ambient Context

Package orchestrator for the ambient context that agents read before they do anything else: `AGENTS.md` and the repository's agent skills. Ambient context decays silently, so this package runs on a weekly-or-slower cadence, selects repositories whose instructions have drifted the most from repository reality, and dispatches curators that propose evidence-backed pruning and refresh work.
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/aw-failures-investigator.md
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,8 @@ steps:
core.info(`Existing tracking issues: ${existingTrackingIssues.length}`);
---

{{#runtime-import? .github/aw/aw-failures.md}}

You are the AW Failure Investigator — a worker that analyzes recent GitHub Agentic Workflow failures in one target repository, buckets them into failure clusters, and files focused fix issues for the buckets that are not already tracked.

## Workspace Layout
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/aw-failures.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ safe-outputs:
max: 50
---

{{#runtime-import? .github/aw/aw-failures.md}}

# AW Failures

Package orchestrator for organization-wide agentic workflow failure triage. Use the shared control plane to select repositories that run their own custom Agentic Workflows, then dispatch `aw-failures-investigator` once per selected repository. The orchestrator only selects and ranks repositories; the worker owns failure bucketization and issue creation inside each target repository.
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/aw-maintenance-upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,8 @@ steps:
key: aw-maintenance-gh-aw-releases-${{ github.run_id }}
---

{{#runtime-import? .github/aw/aw-maintenance.md}}

You are the AW Maintenance / Upgrade worker — you keep one target repository's GitHub Agentic Workflows (gh-aw) current by detecting available releases, running `gh aw upgrade` to compute the upgrade diff, and filing one issue a maintainer can assign to Copilot to open the upgrade pull request. Traditional, hand-written GitHub Actions YAML is out of scope for this worker.

## Workspace Layout
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/aw-maintenance.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ safe-outputs:
max: 50
---

{{#runtime-import? .github/aw/aw-maintenance.md}}

# AW Maintenance

Package orchestrator for organization-wide GitHub Agentic Workflows (gh-aw) maintenance. Use the shared control plane to select repositories that install their own GitHub Agentic Workflows, then dispatch `aw-maintenance-upgrade` once per selected repository. The orchestrator only selects and ranks repositories; the worker owns release detection, the `gh aw upgrade` run, and issue filing inside each target repository.
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dependabot-release-train-updater.md
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,8 @@ timeout-minutes: 60
source: githubnext/central-agentic-ops/.github/workflows/dependabot-release-train-updater.md@main
---

{{#runtime-import? .github/aw/dependabot.md}}

You are a dependency reliability and supply-chain maintenance agent for the checked-out safe-output repository.
Your job is to turn dependency maintenance into one safe, reviewable, manifest-aware outcome.
You do **not** auto-merge. You create pull requests, PR updates, comments, issues, or noop results through safe outputs only.
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/dependabot.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ safe-outputs:
source: githubnext/central-agentic-ops@2de9130ff1709fccdacbe5261fd5da71995e6721
---

{{#runtime-import? .github/aw/dependabot.md}}

# Dependabot

Package orchestrator for organization-wide dependency release-train maintenance. Use the shared control plane to select target repositories and dispatch `dependabot-release-train-updater`; keep dispatch repository-scoped and let the updater own manifest-aware bundle construction inside each selected repository.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ safe-outputs:
timeout-minutes: 30
---

{{#runtime-import? .github/aw/eu-cra-compliance.md}}

# EU CRA Advisor / Article 14 Reporting Readiness

Audit operational readiness for Article 14 reporting. This worker never decides reportability without human review and never sends a notification.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ safe-outputs:
timeout-minutes: 30
---

{{#runtime-import? .github/aw/eu-cra-compliance.md}}

# EU CRA Advisor / Conformity Release Evidence

Audit evidence used by human conformity and market-release gates. Do not select a conformity route, approve a declaration, authorize CE marking, or approve market release.
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/eu-cra-compliance-scope-classifier.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ safe-outputs:
timeout-minutes: 25
---

{{#runtime-import? .github/aw/eu-cra-compliance.md}}

# EU CRA Advisor / Scope Classifier

Build a repository-level CRA scope evidence record. Assist human decision-makers; do not issue a legal conclusion.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ safe-outputs:
timeout-minutes: 30
---

{{#runtime-import? .github/aw/eu-cra-compliance.md}}

# EU CRA Advisor / Security Requirements Auditor

Audit repository evidence for applicable CRA product cybersecurity requirements. This is implementation assistance and evidence gathering, not a legal conformity decision.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ safe-outputs:
timeout-minutes: 30
---

{{#runtime-import? .github/aw/eu-cra-compliance.md}}

# EU CRA Advisor / Supply Chain SBOM Auditor

Audit repository-level software supply-chain and SBOM evidence relevant to the CRA. Do not make a legal conformity determination.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ safe-outputs:
timeout-minutes: 30
---

{{#runtime-import? .github/aw/eu-cra-compliance.md}}

# EU CRA Advisor / Vulnerability Handling Auditor

Audit vulnerability-handling evidence relevant to CRA implementation. Do not decide legal conformity or submit notifications.
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/eu-cra-compliance.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ safe-outputs:
max: 48
---

{{#runtime-import? .github/aw/eu-cra-compliance.md}}

<!-- EU CRA Advisor is advisory and non-binding. This workflow provides no guarantee of completeness, correctness, accuracy, or alignment with the EU Cyber Resilience Act. -->

# EU CRA Advisor
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/optimization-ai-credit-auditor.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,8 @@ steps:
source: githubnext/central-agentic-ops/.github/workflows/optimization-ai-credit-auditor.md@main
---

{{#runtime-import? .github/aw/optimization.md}}

You are the Agentic Workflow Auditor — a workflow that tracks daily AI Credit (AIC) spend and token consumption, forecasts weekly and monthly cost, and maintains a historical record for trend analysis across all agentic workflows in the target repository.

## Workspace Layout
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/optimization-ai-credit-optimizer.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,8 @@ steps:
source: githubnext/central-agentic-ops/.github/workflows/optimization-ai-credit-optimizer.md@main
---

{{#runtime-import? .github/aw/optimization.md}}

You are the Agentic Workflow Optimizer. Pick one high AI credit workflow, audit recent runs, and create a conservative optimization issue with measurable improvements. Your recommendations may include prompt, tool, reliability, setup-prefix, and inline sub-agent improvements when the evidence supports them.

## Objectives
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/optimization.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ safe-outputs:
source: githubnext/central-agentic-ops@2de9130ff1709fccdacbe5261fd5da71995e6721
---

{{#runtime-import? .github/aw/optimization.md}}

# Optimization

## Discovery
Expand Down
8 changes: 8 additions & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ gh variable set CENTRAL_AGENTIC_OPS_DEPENDABOT_MAX_REPOS \

Add an App or PAT when the target is private or internal. Keep the mode at `review` until the promotion checks pass.

## Markdown Steering

Each operation orchestrator can load repository-specific instructions from `.github/aw/<operation>.md` in the control repository. For example, `.github/aw/dependabot.md` can describe organization-specific dependency priorities, repositories to prefer or avoid, or additional evidence to consider.

The supported operation names are `advisory`, `ambient-context`, `aw-failures`, `aw-maintenance`, `dependabot`, `eu-cra-compliance`, and `optimization`. These files are optional runtime imports: an operation continues with its packaged instructions when its steering file does not exist. Because steering files are separate from package-owned workflow sources, `gh aw update` does not overwrite them.

Keep steering instructions within the operation's existing permissions, safety policy, and dispatch limits. Steering can refine selection and prioritization, but it cannot grant tools, credentials, permissions, or safe-output capabilities.

## Repository Variables

| Name | Scope | Required | Default | Purpose |
Expand Down
31 changes: 31 additions & 0 deletions tests/unit/workflow-contract.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,37 @@ test("orchestrators expose scheduled variables and independent manual inputs", (
}
});

test("operation workflows optionally load per-operation markdown steering", () => {
for (const [name, operation] of [
["advisory.md", "advisory"],
["advisory-uk-ai-operational-resilience.md", "advisory"],
["ambient-context.md", "ambient-context"],
["ambient-context-agents-md-curator.md", "ambient-context"],
["ambient-context-skills-curator.md", "ambient-context"],
["aw-failures.md", "aw-failures"],
["aw-failures-investigator.md", "aw-failures"],
["aw-maintenance.md", "aw-maintenance"],
["aw-maintenance-upgrade.md", "aw-maintenance"],
["dependabot.md", "dependabot"],
["dependabot-release-train-updater.md", "dependabot"],
["eu-cra-compliance.md", "eu-cra-compliance"],
["eu-cra-compliance-article-14-reporting-readiness.md", "eu-cra-compliance"],
["eu-cra-compliance-conformity-release-evidence.md", "eu-cra-compliance"],
["eu-cra-compliance-scope-classifier.md", "eu-cra-compliance"],
["eu-cra-compliance-security-requirements-auditor.md", "eu-cra-compliance"],
["eu-cra-compliance-supply-chain-sbom-auditor.md", "eu-cra-compliance"],
["eu-cra-compliance-vulnerability-handling-auditor.md", "eu-cra-compliance"],
["optimization.md", "optimization"],
["optimization-ai-credit-auditor.md", "optimization"],
["optimization-ai-credit-optimizer.md", "optimization"],
]) {
assert.match(
workflow(name),
new RegExp(`\\{\\{#runtime-import\\? \\.github/aw/${operation}\\.md\\}\\}`),
);
}
});

test("review destinations must be isolated, accessible, and private", () => {
const precompute = workflow("shared/control-precompute.md");

Expand Down
Loading