You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@magpie.apache.org by "potiuk (via GitHub)" <gi...@apache.org> on 2026/09/27 20:57:56 UTC
[PR] perf(security): one safe-create recipe and board pointers instead of copies [magpie]
potiuk opened a new pull request, #1437:
URL: https://github.com/apache/magpie/pull/1437
Third of a four-PR stack for the **security** family (#1344).
## Summary
- **One safe-create recipe.** `security-issue-import`, `-from-md` and `-from-pr` each carried their own copy of "create a tracker from an attacker-controlled title": title written to a file with the Write tool, then `gh api -F title=@…`. That recipe now lives once, in `tools/github/operations.md` → *Create*. Each skill points at it and keeps only its own title/body file names and labels.
- The *Create* entry it replaces used `gh issue create --title '<title>'`, which is exactly the shell-injectable form the import skills forbid for attacker-controlled titles.
- **Board recipes by pointer.** from-md 5c, from-pr 7d and invalidate 5c inlined the Projects V2 GraphQL that `tools/github/project-board.md` already documents (orphan-issue path, column write, introspection, archive). They now point at those recipes. Side effects:
- The reference adopter's board IDs (`PVT_…`, `PVTSSF_…`, an option ID) were hardcoded in from-pr and invalidate; they are removed and now come from `<project-config>/project.md`.
- invalidate's `items(first: 100)` lookup missed items on boards with more than 100 entries. The shared introspection query reads the issue's `projectItems` instead.
`security-issue-import` Step 7 is the only eval input that changed.
## Type of change
- [x] Skill change: `plugins/magpie-security/skills/issue-import*`, `issue-invalidate`
- [x] Tool / bridge contract: `tools/github/operations.md`
## Test plan
- [x] `prek run --all-files` passes, including lychee
- [x] `skill-and-tool-validate` green
- [x] `security-issue-import/step-7-apply` eval, run outside the sandbox: **3/3 pass before, 3/3 pass after**
- [x] The other 70 security eval inputs are byte-identical to the previous PR in the stack. Evals extract skill sections only, so the `tools/github` edits never reach an eval prompt.
## Not in this PR
The three importers' tracker-body heredocs differ in the payload they put into each of the 11 fields, so they stay per-skill. The first-rollup-comment templates are left for the next layer, which moves rollup writes onto `github-rollup`. That first needs `github-rollup` to stop hardcoding the `airflow-s` rollup marker.
## Stack
1. drop Snapshot drift
2. split into siblings
3. **this PR**: one safe-create recipe, board-recipe pointers
4. trim the `security-model-*` always-on descriptions
Part of #1344.
Generated-by: Claude Code (Opus 5.5)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
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] perf(security): one safe-create recipe and board pointers instead of copies [magpie]
Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk merged PR #1437:
URL: https://github.com/apache/magpie/pull/1437
--
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