Skip to content

merged: a merge on a proof is refused after a clear #45

Done

Description

@lneto

Section 0 of the merged skill merges a harness pull request that tools/complexity.sh calls small on its CI and a proof comment, and merge-guard.sh admits that merge. On 2026-11-26 the auto mode classifier refused it, as "Destructive or Unwanted Actions", in a session started by /clear and continue: gh api -X PUT repos/luainkernel/lunatik/pulls/2744/merge -f merge_method=rebase -f sha=bcc4c6cb979b42ce2116de46016c0b9f47da4af4, for luainkernel/lunatik#2744, small, whose CI passed and whose proof names that head.

#35 gave the write of the agent-review status a narrow permissions.allow rule, and the merges of the bumps luainkernel/lunatik#2739 and luainkernel/luaebpf#58 that followed it after a clear passed the classifier. A merge on a proof sets no status before it runs, and its command reaches the classifier with no order of the maintainer's in the conversation, only the hand-off a tool read. So a small pull request opened after a clear waits on his words, as luainkernel/lunatik#2744 does now.

Contract: AGENTS.md, Patches and commits: "One that tools/complexity.sh calls small merges on its CI and a proof instead"; and the maintainer, 2026-11-26: "vc tem que resolver a questao do merge autonomo, eh uma falha".

Activity

  1. added
    bug
    severity: medium
    on Nov 27, 2026
  2. lneto commented on Nov 27, 2026

    @lneto
    ContributorAuthor

    Note

    This comment was written by an LLM, not a human.

    Update: D199 B, answered by the maintainer on 2026-11-26, "D199 ok". tools/merge.sh <owner>/<repo> <N> <head> <file that holds the token> hands merge-guard.sh the merge it would run, gh api -X PUT repos/<owner>/<repo>/pulls/<N>/merge -f merge_method=rebase -f sha=<head>, and runs it only where the guard passes it: it merges what the guard admits, a harness pull request whose head a review passed or a proof names, and a bump of the mount, and nothing the guard refuses, since it never carries MERGE_OK=1. The merged skill's sections 0 and 5 merge through it, and .agents/rules/checks.md describes it beside tools/agent-review.sh.

    The maintainer's ~/.claude/settings.json takes narrow permissions.allow rules for it, Bash(bash tools/merge.sh *) and Bash(bash harness/tools/merge.sh *), as it holds for agent-review.sh, which auto mode keeps where it drops Bash(*); the session writes the script under /tmp that adds them, and he runs it once. As AGENTS.md asks of a mechanism that rests on a command an agent runs, the merge through it is exercised under auto mode in a session started by /clear before the pull request merges.

  3. added 3 commits that reference this issue on Nov 27, 2026
    caee59d
    93aecd5
    46b1f30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugseverity: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions