fix: correct stale skill exclusion text and mutation state display#40
Merged
Conversation
The deterministic candidate template stamped "advisory until replay and shadow evaluation pass" into every package exclusion, and the installer rendered it verbatim into SKILL.md — a self-contradiction, since installation only happens after both stages passed. New candidates now carry stage-neutral phrasing; the installer recognizes the exact legacy line in already-registered (immutable) packages and renders the corrected text instead. propose/synthesize rows also printed the registration outcome's initial state, so an already shadow_passed or retired mutation displayed as "candidate". Both commands now fetch and print each mutation's current stored state; the JSON reports gain an additive current_states map. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Deterministic generation re-derives the same mutation id from the same evidence, so a template-text change between releases makes regeneration conflict with the immutable stored package. The registry correctly refuses the overwrite, but propose/synthesize turned that refusal into a hard error that aborted the whole batch on any database with candidates registered by an earlier template. Catch the content conflict per candidate, keep the stored package authoritative, surface a warning in text and JSON output, and let the rest of the batch register. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Claim
Two honesty bugs found in today's hands-on audit, plus a batch-abort regression the fix itself would have introduced:
mutations installonly runs after replay and shadow both passed, and the same file states so two lines later.mutations propose/synthesizeprinted a stale state column. Rows rendered the registration outcome's initial state, so a mutation that was alreadyshadow_passedorretireddisplayed ascandidate.propose/synthesizebatch on any pre-existing database (reproduced against a real 69k-event corpus).Fix
autophagy-mutations: new candidates carry stage-neutral phrasing — "Do not block execution; this instruction is advisory." (ADVISORY_EXCLUSION); old text preserved asLEGACY_ADVISORY_UNTIL_REPLAY_EXCLUSIONfor structural matching.autophagy-install: stored packages are immutable and never rewritten; at render time the installer exact-matches the one legacy template line and renders the corrected text, leaving every other exclusion verbatim.autophagy-cli+autophagy-store: after registration,propose/synthesizefetch each generated mutation's current stored state and print that; a per-candidateMutationContentConflictbecomes a warning ("earlier-template content; the stored immutable package is kept") instead of a batch abort. JSON note: reports gain an additivecurrent_statesmap and (proposal, only when non-empty) awarningsarray — no existing fields changed.Evidence
generated_skill_has_no_self_contradicting_exclusionandinstaller_tolerates_legacy_advisory_exclusion_phrasing(autophagy-install)generated_exclusions_stay_true_at_every_lifecycle_stage(autophagy-mutations)propose_and_synthesize_display_current_mutation_state_not_stale_candidateandpropose_and_synthesize_survive_immutable_template_conflicts(autophagy-cli integration)active,candidate).mise run checkgreen (exit 0, unpiped).Privacy
None — template text and display state only; no new persisted data beyond the derived state map in command output.
🤖 Generated with Claude Code
https://claude.ai/code/session_015LY7xtercMc3NtLeX2z4YV