Skip to content

Add Instructions Janitor workflow and shared mood file#1165

Merged
shm11C3 merged 1 commit into
developfrom
chore/add-docs-gh-aw
Feb 24, 2026
Merged

Add Instructions Janitor workflow and shared mood file#1165
shm11C3 merged 1 commit into
developfrom
chore/add-docs-gh-aw

Conversation

@shm11C3

@shm11C3 shm11C3 commented Feb 24, 2026

Copy link
Copy Markdown
Owner
  • Created a new workflow file for the Instructions Janitor to review and clean up instruction files.
  • Added a shared mood file for potential future use.

- Created a new workflow file for the Instructions Janitor to review and clean up instruction files.
- Added a shared mood file for potential future use.
Copilot AI review requested due to automatic review settings February 24, 2026 17:49
@github-actions github-actions Bot added github_actions Pull requests that update GitHub Actions code docs labels Feb 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 94.16% (🎯 60%) 952 / 1011
🔵 Statements 92.54% (🎯 60%) 993 / 1073
🔵 Functions 90.43% (🎯 60%) 227 / 251
🔵 Branches 79.94% (🎯 60%) 283 / 354
File CoverageNo changed files found.
Generated in workflow #2331 for commit 053a723 by the Vitest Coverage Report Action

@shm11C3 shm11C3 merged commit 5d6aea9 into develop Feb 24, 2026
31 checks passed
@shm11C3 shm11C3 deleted the chore/add-docs-gh-aw branch February 24, 2026 17:50
@github-actions

Copy link
Copy Markdown
Contributor

Rust Backend Coverage Report

Coverage Details
Filename                                         Regions    Missed Regions     Cover   Functions  Missed Functions  Executed       Lines      Missed Lines     Cover    Branches   Missed Branches     Cover
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
_tests/commands/background_image_test.rs              39                 0   100.00%           6                 0   100.00%          21                 0   100.00%           0                 0         -
_tests/commands/settings_test.rs                     220                 0   100.00%          18                 0   100.00%         166                 0   100.00%           0                 0         -
commands/background_image.rs                          22                 7    68.18%          11                 5    54.55%          19                 7    63.16%           0                 0         -
commands/hardware.rs                                  69                69     0.00%          22                22     0.00%          69                69     0.00%           0                 0         -
commands/settings.rs                                 526               526     0.00%          94                94     0.00%         448               448     0.00%           0                 0         -
commands/system.rs                                     6                 6     0.00%           3                 3     0.00%           5                 5     0.00%           0                 0         -
commands/ui.rs                                        17                17     0.00%           2                 2     0.00%          13                13     0.00%           0                 0         -
commands/updater.rs                                   97                97     0.00%          15                15     0.00%          66                66     0.00%           0                 0         -
enums/error.rs                                       105                 0   100.00%           8                 0   100.00%          89                 0   100.00%           0                 0         -
enums/hardware.rs                                    188                 1    99.47%          15                 0   100.00%         114                 0   100.00%           0                 0         -
enums/settings.rs                                    415                 6    98.55%          24                 0   100.00%         279                 0   100.00%           0                 0         -
infrastructure/database/db.rs                         21                21     0.00%           2                 2     0.00%          12                12     0.00%           0                 0         -
infrastructure/database/gpu_archive.rs                49                49     0.00%           4                 4     0.00%          18                18     0.00%           0                 0         -
infrastructure/database/hardware_archive.rs           41                41     0.00%           4                 4     0.00%          21                21     0.00%           0                 0         -
infrastructure/database/migration.rs                   8                 8     0.00%           1                 1     0.00%          37                37     0.00%           0                 0         -
infrastructure/database/process_stats.rs              41                41     0.00%           4                 4     0.00%          29                29     0.00%           0                 0         -
infrastructure/providers/linux/dmidecode.rs          229                15    93.45%          16                 3    81.25%         319                14    95.61%           0                 0         -
infrastructure/providers/linux/drm_sys.rs            143               143     0.00%          13                13     0.00%          87                87     0.00%           0                 0         -
infrastructure/providers/linux/hwmon.rs              119                94    21.01%           8                 6    25.00%          68                56    17.65%           0                 0         -
infrastructure/providers/linux/kernel.rs             165                22    86.67%          19                 2    89.47%         161                 8    95.03%           0                 0         -
infrastructure/providers/linux/lspci.rs               23                23     0.00%           1                 1     0.00%          12                12     0.00%           0                 0         -
infrastructure/providers/linux/net_sys.rs            171               171     0.00%          13                13     0.00%          93                93     0.00%           0                 0         -
infrastructure/providers/linux/procfs.rs             261                24    90.80%          25                 3    88.00%         222                19    91.44%           0                 0         -
infrastructure/providers/sysinfo_provider.rs          54                54     0.00%           2                 2     0.00%          45                45     0.00%           0                 0         -
lib.rs                                               205               205     0.00%           5                 5     0.00%         111               111     0.00%           0                 0         -
main.rs                                                3                 3     0.00%           1                 1     0.00%           3                 3     0.00%           0                 0         -
models/hardware.rs                                     9                 9     0.00%           1                 1     0.00%           7                 7     0.00%           0                 0         -
models/settings.rs                                   190                 0   100.00%          11                 0   100.00%         163                 0   100.00%           0                 0         -
platform/factory.rs                                   18                18     0.00%           4                 4     0.00%          15                15     0.00%           0                 0         -
platform/linux/cache.rs                               53                53     0.00%           4                 4     0.00%          38                38     0.00%           0                 0         -
platform/linux/gpu.rs                                139               139     0.00%          13                13     0.00%         102               102     0.00%           0                 0         -
platform/linux/memory.rs                              43                43     0.00%           6                 6     0.00%          41                41     0.00%           0                 0         -
platform/linux/mod.rs                                 34                34     0.00%          11                11     0.00%          70                70     0.00%           0                 0         -
platform/linux/network.rs                              4                 4     0.00%           1                 1     0.00%           4                 4     0.00%           0                 0         -
services/archive_service.rs                          417               417     0.00%          42                42     0.00%         333               333     0.00%           0                 0         -
services/background_image_service.rs                 165                96    41.82%          16                10    37.50%          93                59    36.56%           0                 0         -
services/cpu_service.rs                               32                32     0.00%           4                 4     0.00%          15                15     0.00%           0                 0         -
services/gpu_service.rs                               41                41     0.00%          12                12     0.00%          35                35     0.00%           0                 0         -
services/hardware_service.rs                          67                67     0.00%           5                 5     0.00%          43                43     0.00%           0                 0         -
services/language_service.rs                          21                 1    95.24%           3                 0   100.00%          13                 1    92.31%           0                 0         -
services/memory_service.rs                            22                22     0.00%           4                 4     0.00%          15                15     0.00%           0                 0         -
services/monitoring_service.rs                       261               261     0.00%          23                23     0.00%         150               150     0.00%           0                 0         -
services/motherboard_service.rs                       10                10     0.00%           3                 3     0.00%           7                 7     0.00%           0                 0         -
services/network_service.rs                            9                 9     0.00%           1                 1     0.00%           7                 7     0.00%           0                 0         -
services/process_service.rs                           86                86     0.00%           5                 5     0.00%          50                50     0.00%           0                 0         -
services/settings_service.rs                         246               129    47.56%          30                14    53.33%         234               129    44.87%           0                 0         -
services/system_service.rs                            22                22     0.00%           2                 2     0.00%          12                12     0.00%           0                 0         -
services/ui_service.rs                                45                45     0.00%           8                 8     0.00%          36                36     0.00%           0                 0         -
utils/color.rs                                        66                 1    98.48%           4                 0   100.00%          26                 0   100.00%           0                 0         -
utils/file.rs                                        224                 5    97.77%          14                 0   100.00%         144                 4    97.22%           0                 0         -
utils/formatter.rs                                   195                 8    95.90%          16                 0   100.00%         160                12    92.50%           0                 0         -
utils/ip.rs                                           65                 0   100.00%           5                 0   100.00%          33                 0   100.00%           0                 0         -
utils/logger.rs                                       71                71     0.00%           1                 1     0.00%          38                38     0.00%           0                 0         -
utils/rounding.rs                                     68                 0   100.00%           7                 0   100.00%          41                 0   100.00%           0                 0         -
utils/tauri.rs                                       138                 0   100.00%          17                 0   100.00%          82                 0   100.00%           0                 0         -
workers/hardware_archive.rs                           52                52     0.00%           6                 6     0.00%          36                36     0.00%           0                 0         -
workers/mod.rs                                        24                24     0.00%           2                 2     0.00%          16                16     0.00%           0                 0         -
workers/system_monitor.rs                             53                53     0.00%           4                 4     0.00%          36                36     0.00%           0                 0         -
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
TOTAL                                               6127              3395    44.59%         621               391    37.04%        4622              2484    46.26%           0                 0         -

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

Adds new gh-aw agentic workflows intended to automate upkeep of instruction/documentation guidance, plus a shared “mood” import and the generated lock/maintenance workflows that support scheduled runs.

Changes:

  • Added an “Instructions Janitor” workflow and compiled .lock.yml.
  • Added a “Daily Documentation Updater” workflow and compiled .lock.yml.
  • Added shared mood.md import and the generated agentics-maintenance.yml workflow.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
.github/workflows/shared/mood.md Adds a shared import file used by multiple workflows.
.github/workflows/instructions-janitor.md New agentic workflow definition for instruction-file maintenance.
.github/workflows/instructions-janitor.lock.yml Compiled workflow output for instructions-janitor.md.
.github/workflows/daily-doc-updater.md New agentic workflow definition for daily documentation updates.
.github/workflows/daily-doc-updater.lock.yml Compiled workflow output for daily-doc-updater.md.
.github/workflows/agentics-maintenance.yml Generated maintenance workflow for expiring safe-output entities.

Comment on lines +36 to +40
bash:
- "cat .github/aw/github-agentic-workflows.md"
- "wc -l .github/aw/github-agentic-workflows.md"
- "git log --since='*' --pretty=format:'%h %s' -- docs/"
- "git describe --tags --abbrev=0"

Copilot AI Feb 24, 2026

Copy link

Choose a reason for hiding this comment

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

The workflow whitelists and references .github/aw/github-agentic-workflows.md, but that file does not exist in this repository (the .github/aw folder only contains actions-lock.json and imports/). This will cause the allowed cat/wc commands and the workflow’s stated mission to fail; update the workflow to target the actual instruction files that exist here (e.g. .github/instructions/**, .github/copilot-instructions.md, .github/agents/**) or add the missing file.

Copilot uses AI. Check for mistakes.
- The tone and voice guidelines (neutral, technical, not promotional)
- Proper use of headings (markdown syntax, not bold text)
- Code samples with appropriate language tags (use `aw` for agentic workflows)
- Astro Starlight syntax for callouts, tabs, and cards

Copilot AI Feb 24, 2026

Copy link

Choose a reason for hiding this comment

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

These instructions mention “Astro Starlight” components, but this repository’s docs under docs/** don’t appear to use Starlight, and the repo documentation instructions don’t mention it. This is likely to lead to irrelevant formatting changes; suggest removing Starlight-specific guidance unless the repo actually uses it.

Suggested change
- Astro Starlight syntax for callouts, tabs, and cards
- Existing formatting conventions for callouts, tabs, and cards used in this repository

Copilot uses AI. Check for mistakes.
Comment on lines +115 to +119
Review the documentation in the `docs/src/content/docs/` directory:

- Check if new features are already documented
- Identify which documentation files need updates
- Determine the appropriate documentation type (tutorial, how-to, reference, explanation)

Copilot AI Feb 24, 2026

Copy link

Choose a reason for hiding this comment

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

The workflow tells the agent to review docs in docs/src/content/docs/, but this repository’s documentation is located directly under docs/** (no docs/src/content/docs tree). Update this path (and the subsequent file mappings) to match the actual docs layout so the agent doesn’t search/edit nonexistent locations.

Copilot uses AI. Check for mistakes.
Comment on lines +72 to +75
```bash
# Get documentation commits since the last release
git log --since="RELEASE_DATE" --pretty=format:"%h %s" -- docs/
```

Copilot AI Feb 24, 2026

Copy link

Choose a reason for hiding this comment

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

The bash allowlist includes git log --since='*' ..., but the workflow body instructs running git log --since="RELEASE_DATE" .... If the tool allowlist is exact-match (as the compiled lock suggests), the agent won’t be able to run the documented command, and the literal '*' value is not a valid --since date. Consider allowing git log more generally (like the doc-updater workflow does with "git"), or change the instructions to use an allowed, concrete command.

Copilot uses AI. Check for mistakes.
git describe --tags --abbrev=0
```

If no tags exist, use the date from the CHANGELOG.md file to find the latest release version.

Copilot AI Feb 24, 2026

Copy link

Choose a reason for hiding this comment

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

This references using CHANGELOG.md to find a release date when no tags exist, but the repository does not contain a CHANGELOG.md. Either add the file, or update the fallback instructions to use an existing source of release/version info (or explicitly state to skip the “since latest release” logic when tags are absent).

Suggested change
If no tags exist, use the date from the CHANGELOG.md file to find the latest release version.
If no tags exist, skip the “since latest release” logic and instead review the full documentation history (treat all commits in `docs/` as in scope).

Copilot uses AI. Check for mistakes.
network:
allowed:
- defaults
- github

Copilot AI Feb 24, 2026

Copy link

Choose a reason for hiding this comment

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

Including the github network preset substantially expands the firewall allowlist (e.g., adds *.githubusercontent.com and other GitHub asset domains) compared to other workflows in this repo that list only the needed stacks (e.g. defaults, node, rust). If not strictly required, drop github to keep network access minimal.

Suggested change
- github

Copilot uses AI. Check for mistakes.
on:
schedule:
# Every day at 6am UTC
- cron: daily

Copilot AI Feb 24, 2026

Copy link

Choose a reason for hiding this comment

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

The comment says “Every day at 6am UTC”, but the schedule uses cron: daily (which compiles to a scattered time, not a fixed 06:00 UTC). Update the comment to match the actual behavior or change the schedule to a concrete cron expression if a fixed time is desired.

Suggested change
- cron: daily
- cron: "0 6 * * *"

Copilot uses AI. Check for mistakes.
Comment on lines +98 to +104
The documentation follows the **Diátaxis framework** with four distinct types:

- **Tutorials** (Learning-Oriented): Guide beginners through achieving specific outcomes
- **How-to Guides** (Goal-Oriented): Solve specific real-world problems
- **Reference** (Information-Oriented): Provide accurate technical descriptions
- **Explanation** (Understanding-Oriented): Clarify and illuminate topics

Copilot AI Feb 24, 2026

Copy link

Choose a reason for hiding this comment

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

This asserts the repo’s docs follow the Diátaxis framework, but .github/instructions/documentation.instructions.md (the repo’s actual documentation guidance) doesn’t mention Diátaxis. Consider removing this claim and relying on the instructions file so the agent doesn’t impose an incorrect structure on this repo’s docs.

Suggested change
The documentation follows the **Diátaxis framework** with four distinct types:
- **Tutorials** (Learning-Oriented): Guide beginners through achieving specific outcomes
- **How-to Guides** (Goal-Oriented): Solve specific real-world problems
- **Reference** (Information-Oriented): Provide accurate technical descriptions
- **Explanation** (Understanding-Oriented): Clarify and illuminate topics
The documentation structure, document types, and organization are defined in `.github/instructions/documentation.instructions.md`.
Do not assume any particular documentation framework; instead, strictly follow the conventions and categories described in that file.

Copilot uses AI. Check for mistakes.
Comment on lines +22 to +23
- github

Copilot AI Feb 24, 2026

Copy link

Choose a reason for hiding this comment

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

Including the github network preset expands the AWF allowlist (notably *.githubusercontent.com and GitHub asset domains). If this workflow only needs GitHub API access plus normal package registries, consider removing github and keeping the network list minimal.

Suggested change
- github

Copilot uses AI. Check for mistakes.
pull-requests: write
steps:
- name: Setup Scripts
uses: github/gh-aw/actions/[email protected]

Copilot AI Feb 24, 2026

Copy link

Choose a reason for hiding this comment

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

This workflow uses github/gh-aw/actions/[email protected] (a mutable tag). For supply-chain safety, prefer pinning to a commit SHA (as the compiled *.lock.yml workflows do) or adjust the generator/compile settings so the generated maintenance workflow is SHA-pinned.

Suggested change
uses: github/gh-aw/actions/[email protected]
uses: github/gh-aw/actions/setup@8f6c2b96158a3b16130ad8fe7a22ccf7ecd6c629 # v0.50.1

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants