Repository navigation
Enhance roller-security skill via SQLite-backed LangGraph CLI - #401
Conversation
snoopdave
left a comment
There was a problem hiding this comment.
PR-Review: 19 inline comments posted; three more general issues follow as a PR comment.
|
PR-Review: General Issues The following issues were found but cannot be attached to a specific line in the diff:
|
|
🤖Claude: on the general issues:
|
mraible
left a comment
There was a problem hiding this comment.
Your replies from 19:08 say these are fixed, with 18 pytest tests, but the branch is still at 8985e49. It has the original commit and the two TUTORIAL.md edits, and no tests/ directory, _ask(), thread.lua check, _base_branch() or umask. I think the fix commit didn't get pushed. Could you push it? I'll review again once it's up.
On 8985e49, these from your review are still there: an unknown decision becomes reject (graph.py:479), start restarts an existing case (cli.py:124), an HTTP 200 counts as archived (tools.py:275), the tests run on the checked-out branch with a master.. range (graph.py:781-782), and failed merge, ancestor and archive checks still go forward (graph.py:1184, 1263-1265).
A few that weren't in your review are inline. One more that has no line to attach to: this deletes triage-status.py, migrate-status.py and the TRACKING.md template, but nothing imports existing TRACKING.md cases into cases.db, so cases already in progress won't show on the new board. An importer, or keeping triage-status.py until cases are moved, plus a note in SKILL.md, would cover it.
- Gates ask again on invalid answers, failed merge, release and archive checks return to their gate, and the archive check uses the list API. - Fix tests run on the fix branch against the right base, start refuses an existing case, case files are private, and --local-llm covers the PR draft. - Pin dependencies, commit uv.lock, export briefs only for committed fixes, keep triage-status.py for TRACKING.md cases, and add pytest tests.
|
🤖Claude: You're right, the fix commit wasn't pushed; it's up now in e6ecd4e. The five you list are in it:
On the deleted tracking scripts: I kept |
- start saves the report it is given as original-report.md (0600) and never overwrites an existing copy. - Folders the runner writes to are made 0700 with 0600 files, including ones created by hand or by an earlier version. - SKILL.md says what a case folder holds at each stage.
mraible
left a comment
There was a problem hiding this comment.
Thanks, Dave. e6ecd4e and 8d13ae6 cover my four comments, and the 18 tests pass for me locally. Saving original-report.md without overwriting it and making the case folders 0700 look good.
One thing left: the License headers job fails because Apache RAT flags skills/roller-security/uv.lock, which is generated and can't carry a header. Adding <inputExclude>/skills/roller-security/uv.lock</inputExclude> to the RAT inputExcludes in the root pom.xml, next to the other generated files, should make it pass. I'll approve once it's green.
RAT reads .gitignore, and the "!skills/roller-security/uv.lock" rule made it check the lock file for a license header, which it can't have. The file is already committed, so git keeps tracking it without that rule, and the License headers check passes again.
mraible
left a comment
There was a problem hiding this comment.
I pushed 5d59d38 to get License headers passing, so I'll leave the approval to someone else now that the PR has a commit of mine. A RAT exclude in pom.xml didn't help, because RAT reads .gitignore and the !skills/roller-security/uv.lock rule made it check the lock file again. I removed that rule and left a comment in its place. uv.lock is already committed, so git keeps tracking it, and every check passes now. Could you take a look at that one-line change?
The rest looks good to me: e6ecd4e and 8d13ae6 cover my comments, and the 18 tests pass locally.
The skill's Python tests weren't run by any workflow, so a new workflow runs them with uv whenever skills/roller-security changes. The README now says how to run them locally, since pytest is in the optional dev extra and a plain `uv run pytest` can't find it. Also adds a test for the needs_work route, where a failed fix check returns the case to the CVE gate, and updates the --db help text to mention ROLLER_SECURITY_DB, which takes precedence over --triage-dir.
|
Pushed 7f7bc16 after checking the how-it-works guide against the code: the skill's Python tests now run in CI (new |
Summary
This is the skill I have been using to traige Roller vulnerabilities recently. It no longer depends on Obsidian and uses LangGraph for more deterministic behavior and use of frontier and a lesser model for cost efficiency.
This document explains how the skill works: https://claude.ai/artifact/Hae8ThAcTe3XQXVv92UdjU
skills/roller-security/with a self-contained, SQLite-backed LangGraph workflow (skills/roller-security/src/roller_security/).references/obsidian-tasks-tracking.md,assets/item-template/TRACKING.md,assets/SUMMARY.md,scripts/triage-status.py,scripts/migrate-status.py) while preserving all ASF process/codebase references,IMPLEMENTATION.md/CVE_FORM.mdtemplates, andscripts/check-private.sh.0600SQLite DB (<triage-dir>/cases.dbby default) and automatically generates plain GitHub-Flavored Markdown views (CASE.md,SUMMARY_BOARD.md).check-private.sh, Maven tests,git merge-base --is-ancestor, SQLite consistency/overlap checks, Markdown rendering.--local-llm): Provenance extraction, routine email drafts, and neutral PR text drafted from an air-gappedPublicBrief(no access to raw reports or CVE IDs).interrupt()human approval gates across the full ASF security response lifecycle and adds a TUTORIAL +langgraph.jsonfor LangGraph Studio..gitignorefor Python.venv/,__pycache__/,*.pyc, anduv.lock.Verification
--dry-run --mock-llmworkflow across all 6interrupt()gates (accept path + reject path),export-briefsleak-safety, androller-security graph --format mermaid.mvn -V -ntp -N apache-rat:checkreports zero unapproved license headers inskills/roller-security/.