Repository navigation
Conversation
A rule cap that counts rule applications per thread and can stop one rule after its first n, checked once per rule attempt in ActionPool::process_op and inert unless armed; Funcdata::vararg_folded, the register-save stores the varargsave fold removes; kuna_narrowext::rules_for for a given mode; IfaceStatus::last_command; and interface::quote_filename, moved from kuna-cli so other callers can reach it. With every hook unset kuna's output is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sjkim1127
force-pushed
the
diffverify-hooks
branch
from
December 5, 2026 01:36
241cff3 to
7d7d8e1
Compare
This branch has not been deployed
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.
The first of four pieces that #1830 is split into. It adds the hooks a differential checker needs from the engine. With every hook unset,
kunaemits exactly what it emits today.infra/kuna_rulecap.rs): when armed on the current thread, it counts each rule application by name and address, in order. It can also let one named rule apply only its firstntimes while everything else runs.ActionPool::process_opchecks it once per rule attempt. Unarmed (the only statekunauses), that check is one thread-local flag read.Funcdata::vararg_folded: the record of the register-save stores that thevarargsavefold removes. With it, a reader of the IR can put back whatva_startmeans.kuna_narrowext::rules_for(arch, mode): the narrowing rules for a given mode, not only the architecture's current one.IfaceStatus::last_commandholds the words of the command just run.interface::quote_filenameis the quotingkuna-clialready used, moved where other callers can reach it.The spec describes the rule cap (
00-overview.md) and the fold record (04-calls-and-prototypes.md).make testandmake test-stagesare unchanged, at 675/675 and parity.🤖 Generated with Claude Code
Model:
anthropic/claude-opus-5-5