AAK-SKILL-LIFECYCLE-ATTRIBUTION-001: Skill execute mutates state without outcome-attribution record (SkillsVote arXiv:2605.18401, research-grade)
- Severity
- MEDIUM
- Category
- Tool Poisoning (
tool-poisoning) - Scanner
agent_audit_kit/scanners/skill_lifecycle_attribution.py- Auto-fixable
- No.
- SARIF name
SkillLifecycleAttributionMissing
What it detects
A Skill execute / run function mutates persistent state (file write, DB commit, side-effecting HTTP verb) without emitting an outcome-attribution call (record_outcome / log_outcome / attribute_* / etc.) in the same function body. Per SkillsVote: Lifecycle Governance of Agent Skills (Liu et al., arXiv:2605.18401, 2026-05-18), the evidence-gated update loop depends on per-execution attribution; missing attribution silently degrades repeat invocations. Research-grade — MEDIUM reflects non-trivial false-positive risk (per-project attribution-call naming varies; the paper does not prescribe a specific schema).
How to fix
Emit a structured outcome record at the end of the skill's execute function: e.g., record_outcome(skill_id=..., outcome='success'|'failure', signals={...}). The schema can be project-local — SkillsVote does not prescribe a specific format — but the call must be present in the same function body so the evidence-gated update loop can consume it.
To confirm the finding is gone, report only this rule:
agent-audit-kit scan . --rules AAK-SKILL-LIFECYCLE-ATTRIBUTION-001
Limitations
Recognises a skill by a decorator (@skill, @skill_fn, @register_skill, @skills_vote_skill) or by a function named execute, run_skill, invoke_skill or skill_main in a folder named exactly skill, skills, agent-skills, .skills or skill-pack; agent_skills/ is not one. A state change is a call named write_text, write_bytes, save, dump, persist, commit, post, put, patch, delete and a few others, so open(path, "w") followed by handle.write(text) is not one. A Python file over 512 KB is not read.
References
- Incidents and advisories: ARXIV-2605.18401
- CSA AI Controls Matrix (AICM): LOG-06, AIS-12
All rules. This page is generated from the rule registry when the documentation is built; to change it, change the rule in agent_audit_kit/rules/builtin.py. To give the rule a hand-written write-up, add docs/rules/AAK-SKILL-LIFECYCLE-ATTRIBUTION-001.md: the page then shows that text, with the registry reference appended under it.