Skip to content

fix(hook): stop singling out proposal accept/reject/drain in prompt note#77

Open
itlackey wants to merge 1 commit into
mainfrom
fix/drop-proposal-prompt-guard
Open

fix(hook): stop singling out proposal accept/reject/drain in prompt note#77
itlackey wants to merge 1 commit into
mainfrom
fix/drop-proposal-prompt-guard

Conversation

@itlackey

@itlackey itlackey commented Jun 9, 2026

Copy link
Copy Markdown
Owner

What

The user-prompt-expansion hook special-cased /akm-proposal accept|reject|drain (and bare proposal drain) with a proposal-specific "confirm before mutating" note. This removes that special case — proposal commands now get the same generic /akm- slash-command note as every other command. The akm-memory-promote|reject note is unchanged (message tightened to "mutating memory flows").

Why

It was the last remnant of the proposal-approval gating. The hard PreToolUse block on akm proposal accept|reject was already removed upstream; this note was the only proposal-specific guard left, and it added friction to authorized proposal review without being an actual stop.

Tests

Updated the four affected user-prompt-expansion tests to match the new behavior (memory note text; akm-proposal reject/drain now assert the generic guidance and not.toContain the memory note). Full suite green locally:

324 pass, 0 fail (bun test tests/, with opencode workspace deps installed)

No version bump — leaving that to the release workflow.

🤖 Generated with Claude Code

The user-prompt-expansion hook special-cased /akm-proposal accept|reject|drain
(and bare 'proposal drain') with a proposal-specific 'confirm before mutating'
note. That guard was the last remnant of the proposal-approval gating; the
hard PreToolUse block was already removed. Proposal commands now get the same
generic /akm- slash-command note as everything else; the memory-promote/reject
note is unchanged (message tightened to 'mutating memory flows').

Updated the four affected user-prompt-expansion tests to match (memory note
text; proposal reject/drain now assert the generic guidance).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Eval diff

  • Baseline SHA: f5424051799b4e4e2660c511cbbbdc82e42a25a3
  • Candidate SHA: 87ef4ec9efd7433edd50ec447a279cafaa64c4c4

Metric deltas

Metric Key Baseline Candidate Δ Δ% Status
curation mean_expected_coverage 0.9125 0.9125 0 0.00% • unchanged
curation mean_reciprocal_rank 0.9208 0.9208 0 0.00% • unchanged
curation zero_hit_rate 0.0500 0.0500 0 0.00% • unchanged
context_budget claude_violations 0 0 0 0.00% • unchanged
context_budget opencode_violations 0 0 0 0.00% • unchanged
context_budget claude_drop_rate 0 0 0 0.00% • unchanged
context_budget opencode_drop_rate 0 0 0 0.00% • unchanged
feedback claude_precision 1 1 0 0.00% • unchanged
feedback claude_recall 1 1 0 0.00% • unchanged
feedback claude_polarity_flips 0 0 0 0.00% • unchanged
feedback opencode_precision 1 1 0 0.00% • unchanged
feedback opencode_recall 1 1 0 0.00% • unchanged
feedback opencode_polarity_flips 0 0 0 0.00% • unchanged
memory claude_avg_body_chars 1278 1194 -84 -6.57% • unchanged
memory claude_name_format_violations 0 0 0 0.00% • unchanged
memory claude_secret_leakages 0 0 0 0.00% • unchanged

Plugin surface

No surface changes.

No regressions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant