Skip to content

merge-guard: a small harness change merges on a posted proof - #5

Merged
lneto merged 1 commit into
masterfrom
merge_small
Nov 22, 2026
Merged

lneto merged 1 commit into
masterfrom
merge_small

Conversation

@lneto

@lneto lneto commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

A harness pull request the session opens merges without the maintainer only after review.js, an agent review that spends model tokens, has passed its head, so a correction of a few lines either pays for that review or waits for his approval.

With this change, merge-guard.sh, the guard that decides whether the session may merge, lets a harness pull request of 40 added lines at most, the size tools/complexity.sh labels small, merge without that review once its CI passes and the session has posted a proof on it. The maintainer asked on 2026-11-22 that mechanical changes merge without spending tokens, after the one-line fix of #2 had waited for him. Whether a change is mechanical is nothing a guard can read, so the line is the size, and a small new rule takes this path as well as a fix.

Of the proof, the guard reads one thing: a comment by the account that opened the pull request whose text contains the first nine characters of the head commit's hash, so a push after the proof needs a new one. What else the comment shows is the session's to write, and the AGENTS.md text this change adds asks for it: for a change a command runs, a check or a script, the command that shows the defect before the change, its result after it and a case still refused; for text no command reads, a rule's wording, the passage it replaces beside the new one. A medium or large pull request still needs the review.

A small harness pull request then reaches master with no second reader, held by its proof, its CI and the maintainer's read of the report the merged skill hands him after the merge.

A harness pull request the session opened merged on the agent-review
status alone, which review.js sets at high, so a change of a few
mechanical lines spent a review's agents or waited on the maintainer's
words. One complexity.sh calls small now merges on its CI and a proof the
session posts on it: a comment of the posting account that names its head,
beside the command that shows the defect before, its result after and the
case still refused. The maintainer asked for it on 2026-11-22, "devemos
atualizar o harness tb para contemplar mudancas mecanicas como essa sem
queimar token".

complexity.sh takes the repository as a second argument, since the guard
reads a pull request of whichever repository the merge names, and the 40
lines it calls small stay its own. A small pull request merged on its
proof takes the agent-review status on its merged commit too, so the bump
of each project's mount reads it as it reads a reviewed one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lneto lneto added the complexity: medium Several call sites, a new test, or a core path to audit label Nov 22, 2026
@lneto
lneto merged commit bf17f38 into master Nov 22, 2026
1 check passed
@lneto
lneto deleted the merge_small branch November 22, 2026 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

complexity: medium Several call sites, a new test, or a core path to audit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant