Repository navigation
merged: harness merges run through tools/merge.sh - #48
Conversation
|
Note This comment was written by an LLM, not a human. What #45 requires, as the review read the change meeting it:
The matrix the change is held to: Matrix for tools/merge.sh: operation by input by outcome. Proved with the merge-guard fixture and a gh stub that records each PUT, on both d3fe260 and the final tip:
Committed coverage: merge-guard.cases now holds the guard to merge.sh's exact spelling with the token in the environment (pass #7, block #8), and both cases fail under mutation. The script's own steps, the argument check and What nothing on this host can see: the auto mode classifier's verdict on |
The auto mode classifier refused the merge of luainkernel/lunatik#2744, small, its CI passed and its proof posted, as "Destructive or Unwanted Actions" in a session started by /clear and continue, and passed the same command once the maintainer's words were in the conversation. A merge on a proof sets no status before it runs, so nothing the session does after a clear lets it through, and a small pull request waits on him. tools/merge.sh hands merge-guard.sh, as a hook input, the rebase merge it runs, the head named, and runs it only where the guard exits 0, so a narrow permissions.allow rule over it lets through what the guard admits and nothing else: the command never carries MERGE_OK=1, which the guard reads in the command alone, and the arguments are held to a repository's name, a number and a full SHA. It reads the token from the file it is handed, as tools/agent-review.sh does (#35), and prints GitHub's answer, whose sha section 5 of the merged skill reads for the status and the bumps. Sections 0 and 5 merge through it; a merge the maintainer ordered in his own words keeps MERGE_OK=1 on the gh api call. The merge-guard cases hold the guard to the command the script hands it, the token in GH_TOKEN. The rules go in the maintainer's own settings, not in a tracked file, which would bind every session opened on the checkout, and each names its script by the absolute path of the checkout sessions start in. merge.sh runs the merge-guard.sh beside it, so a rule that matched the relative `bash tools/merge.sh` in any directory would let a worktree whose guard or script an edit changed decide a merge with no classifier; the same holds of agent-review.sh, whose rules matched the relative spelling since #35, and the skill now spells both from that checkout. The rule runs that checkout's tree as it stands, as its hooks do, so an edit under its mount still decides a merge with no classifier. Closes #45 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Note This comment was written by an LLM, not a human. Exercise of the absolute-path rule, the kind #48's merged skill relies on, in a session cleared after The classifier let it run. |
The `harness/` mount moves to luainkernel/harness@1a1d3e4, which carries luainkernel/harness#48: sections 0 and 5 of the merged skill merge a harness pull request and a bump of the mount through tools/merge.sh, which runs the rebase merge only where merge-guard.sh admits it, and spell it and tools/agent-review.sh by the absolute path of the checkout sessions start in. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The `harness/` mount moves to luainkernel/harness@1a1d3e4, which carries luainkernel/harness#48: sections 0 and 5 of the merged skill merge a harness pull request and a bump of the mount through tools/merge.sh, which runs the rebase merge only where merge-guard.sh admits it, and spell it and tools/agent-review.sh by the absolute path of the checkout sessions start in. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Note This comment was written by an LLM, not a human. First run of The classifier let it run, and |
After a
/clear, the session cannot merge a small harness pull request on its proof: the auto mode classifier refused the merge of luainkernel/lunatik#2744, whose CI had passed and whose proof was posted, until the maintainer's words were back in the conversation.tools/merge.shruns a merge only wheremerge-guard.shadmits it, so a narrowpermissions.allowrule over the script can let those merges through and nothing else:The script hands the guard the exact rebase merge it would run, the head named, and runs it only when the guard passes it. It never adds
MERGE_OK=1, and its arguments must be a repository's name, a number and a full SHA, so neither the environment nor an argument can carry the marker. Sections 0 and 5 of the merged skill merge through it, a harness pull request and a bump of the mount alike, and a merge the maintainer orders in his own words keepsMERGE_OK=1on the plaingh apicall.The allow rules belong in the maintainer's own
~/.claude/settings.json, and this pull request adds no settings. Each names its script,merge.shandtools/agent-review.shalike, by its absolute path in the checkout sessions start in, which follows master, sincemerge.shruns themerge-guard.shbeside it: a copy in a worktree, where an edit to either would decide, matches no rule and goes to the classifier. The skill now spellsagent-review.shby that absolute path too, so the maintainer's existing rules for it, which match the relativebash tools/agent-review.sh, no longer match and are replaced in his settings by rules on the absolute path. An edit made under that checkout's own mount is still run under the rule with no classifier, as its hooks run it.Closes #45