You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@magpie.apache.org by "dpol1 (via GitHub)" <gi...@apache.org> on 2026/09/02 06:58:29 UTC
[PR] fix(skills): derive the two remaining Airflow literals from project config [magpie]
dpol1 opened a new pull request, #1144:
URL: https://github.com/apache/magpie/pull/1144
## Summary
- `pr-management-stats/fetch.md` queried `repository(owner:"apache",name:"airflow")` in its GraphQL batch-fetch recipe, and `release-announce-draft` pinned the download URL to `closer.lua?path=airflow/<version>/`. Both are operative instructions, not examples — an agent following them against any other adopter queries the wrong repository and points the announce at the wrong dist tree.
- Both values now come from configuration that already exists: the query binds `$owner` / `$repo` from `<upstream>` the way the other GraphQL recipes (`contributor-*`, `pr-management-code-review`) already do, and the dist path renders from `<project>`, which the same announce skill already uses for `dist/release/<project>/<version>/`. No new placeholder.
- `check-placeholders.sh` learns the two lowercase forms (`name:"airflow"`, `path=airflow`). Before this change it passed on both lines — which is how they survived the template clean-up in #1132.
## Type of change
- [x] Skill change (`.claude/skills/<name>/`) — eval fixtures updated below
- [ ] Tool / bridge contract (`tools/<system>/*.md`)
- [ ] Python package (`tools/*/` with `pyproject.toml`)
- [ ] Groovy reference impl
- [ ] Cross-cutting (RFC, AGENTS.md, sandbox, privacy-LLM)
- [ ] Documentation (`docs/`, `README.md`, `CONTRIBUTING.md`)
- [ ] Project template (`projects/_template/`)
- [x] CI / dev loop (`prek`, workflows, validators)
- [ ] Other:
## Test plan
- [x] `prek run --all-files` passes
- [x] Linter first, fix second: with the two patterns added, `tools/dev/check-placeholders.sh` fails on exactly `fetch.md:213` and `release-announce-draft/SKILL.md:363` and nothing else; after the two edits it passes again.
- [x] Eval suites: both edits are prose inside example blocks — no step behaviour changes — so no fixture update is needed per AGENTS.md § *When the rule fires* (pure prose edits).
- [x] `grep -rn 'airflow' skills/` sweep: the remaining hits are marked examples (`candidate-rules.md`, the `issue-triage` JIRA-key example, slop-detection fixtures) and stay as they are.
## RFC-AI-0004 compliance
- [x] **Vendor neutrality** — placeholders (`<PROJECT>`, `<tracker>`, `<upstream>`, `<security-list>`) used in all skill / tool prose (the `check-placeholders` prek hook is the mechanical gate)
## Linked issues
Fixes [apache/magpie#1139](https://github.com/apache/magpie/issues/1139).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@magpie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(skills): derive the two remaining Airflow literals from project config [magpie]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on code in PR #1144:
URL: https://github.com/apache/magpie/pull/1144#discussion_r3952856753
##########
tools/dev/check-placeholders.sh:
##########
@@ -51,6 +51,11 @@ FORBIDDEN_PATTERNS=(
"airflow-s/airflow-s"
"Apache Airflow"
"apache.org/airflow"
+ # Lowercase forms that slip past the four above: a GraphQL
+ # `repository(owner:"apache",name:"airflow")` argument and a
+ # `closer.lua?path=airflow/` dist path.
+ 'name:"airflow"'
Review Comment:
`FORBIDDEN_PATTERNS` are matched with `grep -F`, so `'name:"airflow"'` only catches the no-space form. The whitespace variant slips through every pattern in the list, old and new:
```graphql
repository(owner: "apache", name: "airflow")
```
I verified it: `grep -F 'name:"airflow"'` and `grep -F 'apache/airflow'` both return 0 matches on that line. Since this PR is specifically about forms that evade the existing four, the adjacent-whitespace variant is the same bug class one step over.
Cheapest fix that keeps the fixed-string contract is a second entry:
```suggestion
'name:"airflow"'
'name: "airflow"'
```
Non-blocking — the change is a strict improvement as-is, and this can equally be a follow-up.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@magpie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] fix(skills): derive the two remaining Airflow literals from project config [magpie]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk merged PR #1144:
URL: https://github.com/apache/magpie/pull/1144
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@magpie.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org