-
Notifications
You must be signed in to change notification settings - Fork 1
Wave 3C: README Update Workflow & Wave 4 Specification #536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
72f3540
fd7f477
e500d2f
8b3358d
c3d825c
c9122d2
249bcef
220b27a
ae143f5
70349de
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,7 @@ title: "Workflow Coordination Patterns" | |
| description: "Canonical reference for GitHub Actions workflow patterns: always-run vs. agent-triggered, coordination between agents and workflows, and orchestration strategies." | ||
| created_date: "2026-05-28" | ||
| last_updated: "2026-05-28" | ||
| version: "v1.0.0" | ||
| version: "v1.1.0" | ||
| file_type: "documentation" | ||
| maintainer: "LightSpeed Team" | ||
| tags: ["workflows", "automation", "agents", "coordination", "ci-cd"] | ||
|
|
@@ -80,14 +80,15 @@ Agent-triggered workflows are invoked **on demand** via `workflow_dispatch` or c | |
|
|
||
| ### Agent-Triggered Workflow Registry | ||
|
|
||
| | Workflow | Primary Trigger | Agent | Purpose | | ||
| | Workflow | Primary Trigger | Agent/Caller | Purpose | | ||
| | --- | --- | --- | --- | | ||
| | `release.yml` | workflow_dispatch + workflow_call | Release Agent | Orchestrate semantic versioning, tag, publish | | ||
| | `planner.yml` | workflow_dispatch | Planner Agent | Generate implementation plans | | ||
| | `reporting.yml` | workflow_dispatch | Reporting Agent | Generate audit/metric reports | | ||
| | `reviewer.yml` | workflow_dispatch (manual) | Reviewer Agent | Post PR review summaries | | ||
| | `metrics.yml` | workflow_dispatch ± scheduled | Metrics Agent | Collect repo health metrics | | ||
| | `project-meta-sync.yml` | workflow_dispatch | Project Meta Sync Agent | Sync GitHub Project board fields | | ||
| | `readme-update.yml` | workflow_dispatch + workflow_call | Release Agent (post-release) | Apply README & Mermaid diagram fixes | | ||
|
|
||
| ### When to Use | ||
|
|
||
|
|
@@ -139,37 +140,53 @@ Release Agent (Orchestrator) | |
|
|
||
| --- | ||
|
|
||
| ## Proposed New Workflows (Wave 3C) | ||
| ## Implemented Workflows (Wave 3C & Beyond) | ||
|
|
||
| Wave 3C (Workflow & Agent Coordination Setup) will introduce two new agent-triggered workflows for README audits: | ||
| Wave 3C (Workflow & Agent Coordination Setup) introduces new agent-triggered workflows for README management: | ||
|
|
||
| ### `readme-audit.yml` | ||
| ### `readme-update.yml` | ||
|
|
||
| **Trigger**: `workflow_dispatch` (via README Review Agent) | ||
| **Trigger**: `workflow_dispatch` (manual) or `workflow_call` (from Release Agent) | ||
|
|
||
| **Purpose**: Run Mermaid diagram syntax validation, WCAG compliance checks, and staleness detection | ||
| **Purpose**: Apply automated fixes to README files and embedded Mermaid diagrams | ||
|
|
||
| **Calls**: | ||
| **Capabilities**: | ||
|
|
||
| - Mermaid validator (external or custom) | ||
| - WCAG contrast checker | ||
| - Staleness detector (compare `last_updated` to current date) | ||
| - Fix Mermaid diagram formatting and add accessibility attributes (`accTitle`, `accDescr`) | ||
| - Update stale frontmatter dates for files exceeding 6-month threshold | ||
| - Support selective scope: `all` (default), `mermaid` (diagrams only), or `staleness` (dates only) | ||
| - Dry-run mode for safe preview before applying changes | ||
| - Generate audit report with change summary | ||
|
|
||
| **Output**: `.github/reports/mermaid-audit/audit-results.json` | ||
| **Input Parameters**: | ||
|
|
||
| ### `readme-update.yml` | ||
| - `scope`: "all" | "mermaid" | "staleness" (default: "all") | ||
| - `dry_run`: "true" | "false" (default: "false" — applies changes) | ||
|
|
||
| **Output**: | ||
|
|
||
| **Trigger**: `workflow_dispatch` (via README Review Agent) | ||
| - Updated README files (if not dry-run) | ||
| - Report: `.github/reports/mermaid-audit/update-report.md` | ||
| - Artifact: `readme-update-report` (always) | ||
|
|
||
| **Purpose**: Apply fixes to README files and embedded Mermaid diagrams | ||
| **Integration Points**: | ||
|
|
||
| **Calls**: | ||
| - Called by Release Agent in post-release phase | ||
| - Can be manually triggered via GitHub UI for ad-hoc updates | ||
| - Non-blocking: failures do not prevent release completion | ||
|
|
||
| - Mermaid formatter (auto-fix syntax) | ||
| - Accessibility enhancer (add `accTitle`, `accDescr`) | ||
| - Link validator and updater | ||
| **Example Release Agent Invocation**: | ||
|
|
||
| **Output**: PR with fixes grouped by category | ||
| ```yaml | ||
| - name: Apply README updates | ||
| uses: actions/workflow_dispatch@v4 | ||
| with: | ||
| workflow: readme-update.yml | ||
| ref: main | ||
| inputs: | ||
| scope: all | ||
| dry_run: 'false' | ||
| ``` | ||
|
Comment on lines
+180
to
+189
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correct the workflow invocation syntax in the example. The example uses 🔧 Proposed fix for workflow_call pattern **Example Release Agent Invocation**:
```yaml
-- name: Apply README updates
- uses: actions/workflow_dispatch@v4
- with:
- workflow: readme-update.yml
- ref: main
- inputs:
- scope: all
- dry_run: 'false'
+- name: Apply README updates (post-release)
+ uses: ./.github/workflows/readme-update.yml
+ with:
+ scope: all
+ dry_run: 'false'🤖 Prompt for AI Agents |
||
|
|
||
| --- | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The example uses
actions/workflow_dispatch@v4which is not an official or valid GitHub Action. Sincereadme-update.ymlsupportsworkflow_call, it should be invoked directly as a reusable workflow using the standardusessyntax. Additionally, please rename this file toWORKFLOW_COORDINATION.mdto comply with the rule that documentation and governance files in thedocs/directory must use UPPERCASE naming with underscores.References
docs/directory must use UPPERCASE naming with underscores (e.g.,GOVERNANCE_REVISION_LOG.md), as the lowercase-with-hyphens naming convention applies to other asset types and not todocs/files.