Repository navigation
checks: AGENTS.md is held to a ceiling of bytes - #52
Merged
Merged
Conversation
Every session and every workflow agent that loads CLAUDE.md loads harness/AGENTS.md and the project's AGENTS.md before its first turn, and the one file the two replaced grew from 42268 bytes on 2026-10-09 to the 66014 they weighed on 2026-11-22. context-budget.sh fails a commit that takes the AGENTS.md at the top of the checkout, as the index holds it, past its ceiling, and pre-commit runs it, so the Checks run of the harness, of Lunatik and of luaebpf, each of which runs the mount's gate over a pull request's staged diff, fails one too. The harness's ceiling, 40557, is its size here: of the seven sentence pairs harness/AGENTS.md and Lunatik's AGENTS.md share, every sentence on the harness's side speaks of both projects, so the first trim D172 D asks for takes nothing from this file. A project states its own in the budget key of its .agents/harness.conf, and one that states none is not read, as a key left out gives nothing elsewhere. #6, D172 D. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Note This comment was written by an LLM, not a human. What #6 requires, as the review read the change meeting it:
The matrix the change is held to: The matrix, every cell run by hand in the review worktree and in a throwaway git repo under scratch (removed afterwards):
CI wiring, read and not run:
Not covered:
|
This was referenced Nov 27, 2026
lneto
added a commit
to luainkernel/luaebpf
that referenced
this pull request
Nov 27, 2026
The `harness/` mount moves to luainkernel/harness@e373af1, which carries luainkernel/harness#52: tools/checks/context-budget.sh, which the mount's pre-commit runs here and in the Checks workflow, fails a commit that takes the AGENTS.md at the top of a checkout past the ceiling the budget key of .agents/harness.conf names. D172 D on luainkernel/harness#6 trims only what harness/AGENTS.md and Lunatik's say twice, so this file loses nothing and its ceiling is its size, 3647 bytes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lneto
added a commit
to luainkernel/lunatik
that referenced
this pull request
Nov 27, 2026
The harness/ mount moves to luainkernel/harness@e373af1, which carries luainkernel/harness#52: context-budget.sh, which the mount's pre-commit runs, fails a commit that takes the AGENTS.md at the top of the checkout past the ceiling the budget key of .agents/harness.conf names. The key is set to the file's size after the trim D172 D asked for first, 22803 bytes, so a lesson that needs room past it moves an older passage to the check, the skill or the path rule that holds its subject. Closes #2749. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lneto
added a commit
to luainkernel/lunatik
that referenced
this pull request
Nov 27, 2026
The harness/ mount moves to luainkernel/harness@e373af1, which carries luainkernel/harness#52: context-budget.sh, which the mount's pre-commit runs, fails a commit that takes the AGENTS.md at the top of the checkout past the ceiling the budget key of .agents/harness.conf names. The key is set to the file's size after the trim D172 D asked for first, 22801 bytes, so a lesson that needs room past it moves an older passage to the check, the skill or the path rule that holds its subject. Closes #2749. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Every session and every workflow agent that loads CLAUDE.md loads harness/AGENTS.md and the project's AGENTS.md before its first turn, and nothing stops either from growing: the one file the two replaced weighed 42268 bytes on 2026-10-09, and the two weighed 66014 on 2026-11-22.
tools/checks/context-budget.shfails a commit that takes the AGENTS.md at the top of a checkout past its ceiling of bytes, and the mount'spre-commitruns it, so the Checks run of this repository, of Lunatik and of luaebpf fails such a pull request with no change to their workflows. A lesson that needs room moves an older passage to the check, the skill or the rule that holds its subject, or its pull request moves the ceiling and says why:The harness's ceiling, 40557 bytes, is this file's size today, written as a line of the check. A project states its own as
budget=<bytes>in its.agents/harness.conf, and one that states none is not read: Lunatik and luaebpf pass until the bump of the mount that brings this check sets theirs, Lunatik's once its own file is trimmed to fit.#6, which it does not close