Skip to content

[caveman] Optimize instruction verbosity — enclaves.md, evals.md, experiments.md, formal-methods.md (2026-11-18) - #79114

Merged
pelikhan merged 1 commit into
mainfrom
caveman/optimize-2026-11-18-44393780431-fea01edfaed88e58
Nov 18, 2026
Merged

pelikhan merged 1 commit into
mainfrom
caveman/optimize-2026-11-18-44393780431-fea01edfaed88e58

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

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:

"Why use many token when few do trick."

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

File Before bytes After bytes Contract-end byte Change
.github/aw/evals.md 7545 7397 7397 Shortened runtime prose and merged a duplicate anti-pattern
.github/aw/enclaves.md 11020 11192 7088 Added an early route line and a prefix marker; removed duplicate legacy bullets
.github/aw/experiments.md 12239 12351 6895 Moved Anti-Patterns before the optional catalog and added routes and a marker
.github/aw/formal-methods.md 11266 11820 5521 Moved the model/check/report workflow and failure rules first; install/update recipes now come after the marker
.github/aw/drive-memory.md 2511 2511 2511 No change needed (already concise)
View Details

What Was Changed

  • evals.md: Merged the sentences about the engine/AWF bypass and token accounting. Folded the "external evidence" anti-pattern into "Unobservable questions", since it repeated it. The whole file now fits within the contract.
  • enclaves.md: Overview, prerequisites, example, rules, Docker credential staging, Cloud Hypervisor constraints and GitHub tool config now sit before <!-- instruction-prefix-end -->. A route line points to the later sections: dynamic:, the deprecated issues-read-v1 profile, and the trusted string schemas. Removed a repeated "trusted is public-equivalent" bullet.
  • experiments.md: Anti-Patterns now come right after the design principles and stay inside the prefix. Routes point to Lifecycle and the experimental continual: ramps. Removed a repeated "never write __GH_AW_EXPERIMENTS__*" callout; the same rule remains in Anti-Patterns and Lifecycle.
  • formal-methods.md: Content was reordered with no lines removed; two ### 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.
  • Other .github/aw files outside this batch still go past the prefix budget, for example debug-playbook.md and github-mcp-server-tools.md. Later runs will pick them up.
  • The steering issue [WIP] Daily Caveman Optimizer: work in progress #79111 had no comments.

Round-Robin Progress

Processed files 22–26 of 79 total files in the queue (indices 21–25).

🤖 Generated with [Claude Code]((claude.com/redacted)

Generated by ⚡ Daily Caveman Optimizer · claude · haiku45 · ~90 AIC · ⊞ 4.5K · ◷

  • expires on Nov 21, 2026, 12:49 PM UTC-08:00

… formal-methods

Co-Authored-By: Claude <noreply@anthropic.com>

Copilot AI 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.

🟡 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
pelikhan merged commit 0818d94 into main Nov 18, 2026
3 checks passed
@pelikhan
pelikhan deleted the caveman/optimize-2026-11-18-44393780431-fea01edfaed88e58 branch November 18, 2026 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants