Repository navigation
[caveman] Optimize instruction verbosity — enclaves.md, evals.md, experiments.md, formal-methods.md (2026-11-18) - #79114
Merged
pelikhan merged 1 commit intoNov 18, 2026
Conversation
… formal-methods Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The reordered section breaks the Koka installation smoke test because its extractor assumes a fixed heading order and raises an IndexError.
1 open issue
What changed in this PR
This PR optimizes four agent instruction files to fit their required contracts within the 7,500-byte instruction-prefix budget while preserving detailed guidance behind explicit routes. The formal-methods heading reorder currently breaks the existing Koka installation test's section extractor.
Changes:
- Compresses evals guidance and removes duplicated anti-pattern wording.
- Moves enclave and experiment safety guidance, anti-patterns, and routes before their prefix markers.
- Reorders formal-methods verification and fail-closed tooling guidance before the marker while deferring installation recipes.
- The prefix checker passes for all modified files.
| File | Description |
|---|---|
| .github/aw/formal-methods.md | Reorders model-checking procedures and fail-closed tooling guidance before the prefix marker, moving installation recipes afterward. |
| .github/aw/experiments.md | Moves anti-patterns and lifecycle routes into the visible prefix and removes duplicated environment-variable guidance. |
| .github/aw/evals.md | Compresses runtime and anti-pattern guidance while preserving evaluation behavior and failure semantics. |
| .github/aw/enclaves.md | Adds early routes and moves enclave safety guidance before the prefix marker while removing duplicated sensitivity guidance. |
Review effort: Lite (adaptive)
| workflow and verify downloaded artifacts against trusted checksums. The | ||
| `shared/tla-plus.md` import does not install Koka. | ||
|
|
||
| ## Install Koka in GitHub Actions |
pelikhan
deleted the
caveman/optimize-2026-11-18-44393780431-fea01edfaed88e58
branch
November 18, 2026 21:13
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.

Warning
Threat detection engine error
Threat detection could not complete its analysis due to a tooling error. This is not a security finding.
What happened
The threat detection engine failed to produce results.
Review the workflow run logs to troubleshoot the error.
Caveman Optimization Run — 2026-11-18
Applies the caveman optimization principle to instruction files:
This batch fixes the 8,000-byte prefix limit. Four files had their required contract cut off past byte 7,500. All five batch files now pass
scripts/check-instruction-prefixes.py.Files Optimized
.github/aw/evals.md.github/aw/enclaves.md.github/aw/experiments.md.github/aw/formal-methods.md.github/aw/drive-memory.mdView Details
What Was Changed
<!-- instruction-prefix-end -->. A route line points to the later sections:dynamic:, the deprecatedissues-read-v1profile, and the trusted string schemas. Removed a repeated "trustedis public-equivalent" bullet.continual:ramps. Removed a repeated "never write__GH_AW_EXPERIMENTS__*" callout; the same rule remains in Anti-Patterns and Lifecycle.###headings became##. A new route paragraph summarizes the fail-closed install rules: stop and report a tooling failure, never bypass verification, never substitute unreviewed JARs or checksums. It also points to the TLA+ install, runtime-update review and Koka install recipes.What Was Preserved
All technical accuracy, field names, YAML/JSON examples, version pins, checksums, schema definitions, and security rules were kept intact.
Notes
.github/aw/imports/**files are vendored upstream copies. They were left out of the queue, matching the cached queue..github/awfiles outside this batch still go past the prefix budget, for exampledebug-playbook.mdandgithub-mcp-server-tools.md. Later runs will pick them up.Round-Robin Progress
Processed files 22–26 of 79 total files in the queue (indices 21–25).
🤖 Generated with [Claude Code]((claude.com/redacted)