investigate-write-failure — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited investigate-write-failure (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.
In v1.5.0, every addLesson / addDecision re-reads its row from SQLite before returning. If the follow-up SELECT comes back empty, the tool returns ERROR: Lesson NOT recorded. Do not claim this was saved. and appends an audit line to ~/.claude-amplifier/write-errors.jsonl.
This ERROR is a feature, not a flake. It means the database genuinely did not get your write. The wrong move is to retry the identical call and hope; the right move is to find out why the read-back failed.
A tool returned ERROR: Lesson NOT recorded or ERROR: Decision NOT recorded (or any AmplifierWriteError).
the stuck-loop pattern. Diagnose first.
~/.claude-amplifier/write-errors.jsonl(append-only; the failing call's arguments and timestamp are the last line). Look for the real cause: bad/oversized arguments, a constraint violation, a transient SQLite lock, a permissions/disk issue.
claude-amplifier doctor — it diagnoses common setupissues (DB path, write permissions, schema state) and prints actionable fixes.
expect: ~/.claude-amplifier/amplifier.db by default (overridable via the storage path env). Check it exists, is writable, and is not zero-bytes or locked by another process.
(e.g. "argument exceeded a column limit", "DB was read-only") fix it and make one corrected call. Confirm it returns a numeric id (read-back passed).
report the failure honestly — do not say the lesson/decision was saved.
Write a report to:
./knowledge/write_failure_report_{timestamp}.mdUse a real timestamp (run date first). The report must contain: the exact ERROR string returned, the relevant write-errors.jsonl line(s), the claude-amplifier doctor output, the verified DB path + its state (exists/writable/size), the identified root cause, and the result of the single corrected re-attempt (the numeric id on success, or an honest "still failing").
the exact bug v1.5.0 was built to kill.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.