feat(audit): add stability audit mode with active-skill filtering#1
Open
aworki wants to merge 1 commit intohao-cyber:masterfrom
Open
feat(audit): add stability audit mode with active-skill filtering#1aworki wants to merge 1 commit intohao-cyber:masterfrom
aworki wants to merge 1 commit intohao-cyber:masterfrom
Conversation
Author
|
补充说明:\n\n这个改动主要是为了提高日报结论的稳定性与可操作性,避免把已下线 skill 反复报成主问题。\n\n兼容性方面:\n- 不传 时,原有安全审计逻辑完全不变;\n- 是新增可选模式;\n- 默认 active-only,但保留 供历史回溯分析使用。\n\n如果你认可,我可以再补一段 README 的日常用法示例(daily stability gate)。 |
Author
|
更正一版(避免格式歧义): 这个改动主要是为了提高日报结论的稳定性与可操作性,避免把已下线 skill 反复报成主问题。 兼容性:
如果你认可,我可以再补一段 README 的 daily stability gate 用法示例。 |
Author
|
Hi! Just checking in on this PR. It has been open for a bit without maintainer feedback, so I wanted to confirm whether this audit-mode direction still fits the project's roadmap. If the scope should be adjusted, narrowed, or closed out, I'm happy to follow your preference. Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Add an optional stability audit mode to
scripts/audit.pythat detects A→D churn inskills/*from git history.Why
Daily evolution reports can miss real change signals or over-report removed skills. This PR adds a deterministic pre-check that:
--include-deletedfor explicit historical analysisHow
--stability-auditmode with options:--repo,--days,--top,--report-file,--include-deletedgit log --name-status) to compute A/D churn candidatesskills/directories by defaultchurn_candidates_totalchurn_candidatesfiltered_out_removedtopevidence (recent add/delete commits)--stability-auditis not setValidation
python3 scripts/audit.py --helppython3 scripts/audit.py --stability-audit --repo . --days 30 --top 1python3 -m py_compile scripts/audit.pyIf preferred, I can also add a short README snippet showing recommended daily usage.