Skip to content

Add context guide, skill files and dev scripts - #1132

Merged
anvacaru merged 14 commits into
masterfrom
claude-integration
Aug 12, 2026
Merged

Add context guide, skill files and dev scripts#1132
anvacaru merged 14 commits into
masterfrom
claude-integration

Conversation

@anvacaru

@anvacaru anvacaru commented Apr 9, 2026

Copy link
Copy Markdown
Contributor

Adds Claude Code support for the Kontrol repo: a context guide for navigating the codebase, three workflow skills, and two developer scripts.

  • CLAUDE.md/AGENTS.md: guide covering project structure, K semantic definitions, CLI commands, cheatcode inventory (Foundry and Kontrol-proprietary), testing conventions, dev workflow, and gotchas.

  • Skills

  • /build - runs scripts/build-kontrol, captures output, surfaces K compiler errors on failure

  • /add-cheatcode - step-by-step guide for adding a new cheatcode (K rule, selector, Solidity test, CI registration)

  • /update-expected-output — runs golden file regeneration for foundry / CSE+minimize / end-to-end suites; recommends scoping with --foundry/--cse/--end-to-end and -k test_name

  • /writing-kontrol-lemmas — helps generate K lemmas to facilitate proof execution. To be used in downstream projects.

  • Scripts

  • scripts/build-kontrol — K version check/install, uv sync, kdist clean+build

  • scripts/selector — computes ABI function selector as decimal integer (wraps cast sig)

  • scripts/update-expected-output — pytest .expected file regeneration with per-suite flags and parallel worker tuning

@anvacaru
anvacaru marked this pull request as ready for review April 24, 2026 07:23

@juliankuners juliankuners left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments

Comment thread AGENTS.md Outdated
Comment thread AGENTS.md Outdated
Comment thread scripts/build-kontrol
@anvacaru anvacaru closed this Jun 17, 2026
@palinatolmach palinatolmach reopened this Aug 7, 2026
palinatolmach and others added 4 commits August 7, 2026 15:02
Co-authored-by: Julian Kuners <julian.kuners@gmail.com>
Co-authored-by: Julian Kuners <julian.kuners@gmail.com>
Under `set -e`, `root=$(git rev-parse --show-toplevel)` exits the script
on failure before `if [ $? -eq 0 ]` is ever evaluated, so the "not
inside a Git repository" branch was dead code. Move the failing command
into the `if` condition (which exempts it from `set -e`) and `exit 1` on
failure so the build never proceeds outside a repository.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add a skill for authoring and validating K simplification lemmas when
`kontrol prove` leaves pending/stuck KCFG leaves. Ships the
runLemma/doneLemma scaffolding, a kompile+prove wrapper, a stuck-term
extractor, and a lemma-set minimizer, plus supporting docs on flag-level
fixes, soundness testing, minimization, and lessons learned.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@palinatolmach
palinatolmach self-requested a review August 7, 2026 12:31
@palinatolmach
palinatolmach dismissed juliankuners’s stale review August 7, 2026 14:05

Most issues were fixed, the rest will be addressed in a follow up.

@anvacaru
anvacaru merged commit 98fdebb into master Aug 12, 2026
12 checks passed
@anvacaru
anvacaru deleted the claude-integration branch August 12, 2026 17:45
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.

3 participants