You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary: Extract the duplicated newbie-docs audit rubric into one shared fragment and keep only workflow-specific deltas in each workflow source.
Problem
gh-aw-newbie-contributor-patrol.md and gh-aw-estc-newbie-contributor-patrol-external.md duplicated the same baseline docs-audit instructions (data gathering, core checks, and reporting bar), so prompt updates required synchronized edits in two files.
Concrete evidence:
Shared imports/config shape in both files, now both importing the new fragment:
Both workflows changed together recently (coupling signal):
17f7a24 (“disable stale checks”)
fa79dff (“update workflow versions”)
91477ff (“remove stale check for remote workflows”)
Proposed Approach
Create one shared fragment for the baseline newbie-docs rubric and import it in both workflows. Keep ESTC-specific behavior local (Elastic docs MCP cross-reference + contradictions-as-blockers rule), and keep issue format text per workflow.
Proof of Concept
I partially implemented this refactor on one representative slice to verify viability:
### Data Gathering1. Discover documentation files ...
2. Follow the quick start ...
### What to Look For- Missing prerequisites ...
- Inconsistent instructions ...
...
### Reporting Bar
Only report **blocking** or **high-impact** ...
Verification:
make compile completed successfully (updated lock files).
make lint completed successfully.
PATH=$HOME/.local/bin:$PATH UV_CACHE_DIR=/tmp/gh-aw/agent/uv-cache make test completed successfully (53 passed).
Incremental Rollout Plan
This refactor can be completed incrementally:
Extract shared baseline rubric and migrate the two newbie workflows (completed in this POC).
Apply the same pattern to other workflow pairs that share a baseline + variant deltas.
Keep variant-specific checks local; evolve shared fragment only for true baseline behavior.
Risks and Mitigations
Risk: Over-centralizing could hide variant-specific requirements. Mitigation: Keep only baseline checks in the shared fragment; preserve variant-only sections in source workflows.
Risk: Prompt behavior drift after extraction. Mitigation: Compile lock files on every change and keep workflow-specific issue format blocks local.
🏗️ Refactor Proposal
Summary: Extract the duplicated newbie-docs audit rubric into one shared fragment and keep only workflow-specific deltas in each workflow source.
Problem
gh-aw-newbie-contributor-patrol.mdandgh-aw-estc-newbie-contributor-patrol-external.mdduplicated the same baseline docs-audit instructions (data gathering, core checks, and reporting bar), so prompt updates required synchronized edits in two files.Concrete evidence:
.github/workflows/gh-aw-newbie-contributor-patrol.md:5-16.github/workflows/gh-aw-estc-newbie-contributor-patrol-external.md:5-16.github/workflows/gh-aw-fragments/newbie-contributor-docs-core.md:1-2117f7a24(“disable stale checks”)fa79dff(“update workflow versions”)91477ff(“remove stale check for remote workflows”)Proposed Approach
Create one shared fragment for the baseline newbie-docs rubric and import it in both workflows. Keep ESTC-specific behavior local (Elastic docs MCP cross-reference + contradictions-as-blockers rule), and keep issue format text per workflow.
Proof of Concept
I partially implemented this refactor on one representative slice to verify viability:
Files changed:
.github/workflows/gh-aw-fragments/newbie-contributor-docs-core.md(new).github/workflows/gh-aw-newbie-contributor-patrol.md.github/workflows/gh-aw-estc-newbie-contributor-patrol-external.md.github/workflows/gh-aw-newbie-contributor-patrol.lock.yml(generated).github/workflows/gh-aw-estc-newbie-contributor-patrol-external.lock.yml(generated)Before → After:
### Data Gathering,### What to Look For,### Reporting Bar).gh-aw-fragments/newbie-contributor-docs-core.md; each workflow now imports it, and ESTC keeps only its extra sections:.github/workflows/gh-aw-estc-newbie-contributor-patrol-external.md:105-116Snippet (new shared core):
Verification:
make compilecompleted successfully (updated lock files).make lintcompleted successfully.PATH=$HOME/.local/bin:$PATH UV_CACHE_DIR=/tmp/gh-aw/agent/uv-cache make testcompleted successfully (53 passed).Incremental Rollout Plan
This refactor can be completed incrementally:
Risks and Mitigations
Mitigation: Keep only baseline checks in the shared fragment; preserve variant-only sections in source workflows.
Mitigation: Compile lock files on every change and keep workflow-specific issue format blocks local.
Evidence
.github/workflows/gh-aw-fragments/newbie-contributor-docs-core.md:1-21.github/workflows/gh-aw-newbie-contributor-patrol.md:5-16,93-117.github/workflows/gh-aw-estc-newbie-contributor-patrol-external.md:5-16,103-14117f7a24,fa79dff,91477ffNote
🔒 Integrity filter blocked 28 items
The following items were blocked because they don't meet the GitHub integrity level.
search_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".search_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".search_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".search_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".search_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".search_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".search_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".search_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".search_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".search_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".search_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".search_issues: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".search_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".search_pull_requests: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".To allow these resources, lower
min-integrityin your GitHub frontmatter:What is this? | From workflow: Trigger Refactor Opportunist
Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.