create-only-idempotent-artifact-write-5c5155 — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited create-only-idempotent-artifact-write-5c5155 (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Domain: tool-orchestration Trigger: Apply when a deterministic artifact is keyed by a stable invocation ID and may be replayed across retries, compaction, or resume passes. Source Pattern: Distilled from reviewed tool-loop and result-shaping patterns.
When an artifact path is derived from a stable identity, write it once with an atomic create-only operation instead of checking for existence first. If the write hits "already exists," treat that as proof the earlier successful write already materialized the deterministic content and continue with the normal readback or preview path. This removes the stat-then-write race, avoids useless rewrites during replay, and keeps repeated passes behaviorally identical.
tool_use_id so repeated calls target the same location.flag: 'wx' to collapse "create if absent" into one filesystem operation.EEXIST as idempotent success when the content is deterministic for that key; only unexpected filesystem errors should fail the operation.If a large tool result is persisted under tool-results/<tool_use_id>.json, write it once with a create-only flag. When transcript replay or micro-compaction revisits that same tool result, the write sees EEXIST, skips the rewrite, and still returns the same preview payload and saved path to the caller.
stat() and then writeFile() for idempotency; another writer can win between those calls.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.