Skip to content

docs(rulebook): say what a merge commit owes the attribution trailer - #670

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/merge-commit-attribution-613
Oct 24, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/merge-commit-attribution-613

Conversation

@aitrawog

@aitrawog aitrawog commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The umbrella's AI Attribution section says every AI-authored commit ends with the
Assisted-by: trailer. It did not say what a merge commit is — and a merge commit
is exactly the case where two readings are defensible: it brings upstream's commits in
and adds no content of its own, while its own message is the agent's authorship. The
rulebook picked neither, so a published merge commit carrying no trailer was neither
clearly a violation nor clearly compliant, and the org could not tell which. Three such
commits sit on one published branch, one per review round's catch-up merge
(#613).

This PR states the rule, once: a merge commit is judged by its message, not by
its content. A merge the agent writes ends with the trailer like any other commit; a
merge whose message the agent did not write — the one gh pr update-branch writes
on GitHub's behalf — carries no trailer and owes none.

file what it carries
AGENTS.md the AI Attribution section's new paragraph — what a merge commit owes the Assisted-by: trailer, and the one exemption

The rule matches what the org already does: a published catch-up merge on the
umbrella's feat/size-claims branch
carries the trailer (95e91f5), and the three that
do not are exactly the ones the finding names. (origin/main itself carries no merge
commit — the umbrella lands one squash per PR — so the evidence is read off the published
branches, which is where a review round's catch-up merge lives.)

The other half of the finding is the control, and it lands in the repo that owns the
self-audit: opencharly/layer-charly-internals gains a preflight arm that reads every
commit in the pushed range and resolves the ones that owe a trailer. That leg follows
this one, and it lands before the corpus and the umbrella's pins move.

Refs #613

How tested

The head this body describes

$ git rev-parse HEAD
d22abba404903b54b2723a70605a6a5159fd76dd
$ git diff --shortstat origin/main HEAD
 1 file changed, 6 insertions(+)
$ git status --short --untracked-files=no
# empty — the worktree carries nothing beyond the commit

The change-class gate, on the committed tree this body describes — this diff is a
rulebook edit in this repo, so the gate is the umbrella's own verify task, run on the
committed tree with the worktree-local, CalVer-stamped build (R9):

$ ./charly/bin/charly version
2026.297.0121
$ ./charly/bin/charly task verify > /tmp/attr613-verify2.log 2>&1; echo "VERIFY_EXIT=$?"
VERIFY_EXIT=0
$ grep -E "^task verify:" /tmp/attr613-verify2.log
task verify: 33 step(s), 0 failed
$ grep -ciE "warn|error" /tmp/attr613-verify2.log
0

The changed file's live consumers, on the committed tree. AGENTS.md is read by the
umbrella's own gates, and one command in the tree can write it: the dispatcher splice. In
THIS repo the splice is a no-op by design — the umbrella's dispatcher table is
hand-curated and lives outside any generated markers, so the script never writes
AGENTS.md here. The new paragraph is therefore never at risk from it, and the tree is
byte-identical after the run:

$ grep -c "BEGIN GENERATED SKILL DISPATCHER" AGENTS.md
0
$ cp AGENTS.md /tmp/agents-pre-splice.md
$ bash scripts/sync-dispatcher.sh > /tmp/splice.log 2>&1; echo "SPLICE_RC=$?"
SPLICE_RC=0
$ diff /tmp/agents-pre-splice.md AGENTS.md; echo "DIFF_RC=$?"
DIFF_RC=0
$ bash scripts/sync-dispatcher.sh --check; echo "CHECK_RC=$?"
sync-dispatcher: AGENTS.md has no generated markers (hand-curated table) — no-op
CHECK_RC=0
$ bash scripts/sync-dispatcher.sh --self-test; echo "SELFTEST_SCRIPT_RC=$?"
sync-dispatcher: self-test OK (splice writes, steady-state passes, stale fails)
SELFTEST_SCRIPT_RC=0
$ ./charly/bin/charly task self-test > /tmp/umbrella-selftest.log 2>&1; echo "SELFTEST_RC=$?"
SELFTEST_RC=0
$ grep -E "^task self-test:" /tmp/umbrella-selftest.log
task self-test: 1 step(s), 0 failed

The rule's own evidence — the org's published history. The rule says a merge the
agent writes carries the trailer, and a merge whose message the agent did not write
carries none. Both halves are measured on commits the org actually published, read from
the umbrella's published branches (not from origin/main, which carries no merge
commit at all — the umbrella lands one squash per PR):

$ git -C /home/atrawog/Sync/Atrapub/a/claude/opencharly log origin/main --merges --format='%s' | wc -l
0
$ git -C /home/atrawog/Sync/Atrapub/a/claude/opencharly log -1 --format='%h %s' 95e91f5
95e91f5 Merge origin/main into feat/size-claims
$ git -C /home/atrawog/Sync/Atrapub/a/claude/opencharly log -1 --format='%B' 95e91f5 | grep -c '^Assisted-by:'
1

That is a catch-up merge whose message the agent wrote, and it carries the trailer — the
compliant form the new rule describes. The three the finding names are catch-up merges
of the same shape whose message the agent also wrote, and none carries it:

$ for c in 0f0dd72 73b8328 7cfd480; do printf '%s ' "$c"; git -C /home/atrawog/Sync/Atrapub/a/claude/opencharly log -1 --format='%B' "$c" | grep -c '^Assisted-by:'; done
0f0dd72 0
73b8328 0
7cfd480 0

The three are local merges — the message form is git's own
Merge remote-tracking branch 'origin/main' into feat/light-init, not the
Merge <sha> into <branch> a platform-written catch-up carries:

$ for c in 0f0dd72 73b8328 7cfd480; do git -C /home/atrawog/Sync/Atrapub/a/claude/opencharly log -1 --format='%h %s' "$c"; done
0f0dd72 Merge remote-tracking branch 'origin/main' into feat/light-init
73b8328 Merge remote-tracking branch 'origin/main' into feat/light-init
7cfd480 Merge remote-tracking branch 'origin/main' into feat/light-init

And no commit in the umbrella's published history carries the platform form at all, so
the rule's one exemption protects a path this repo has not taken — it is stated for the
sanctioned gh pr update-branch catch-up, not to excuse anything already published:

$ git -C /home/atrawog/Sync/Atrapub/a/claude/opencharly rev-list --all --merges | sort -u | while read -r c; do git -C /home/atrawog/Sync/Atrapub/a/claude/opencharly log -1 --format='%s' "$c"; done | grep -cE '^Merge [0-9a-f]{7,40} into '
0

So the rule this PR states is the rule the org's own compliant commits already follow,
and the three exceptions are the ones the rule now names as violations.

The rule is stated once. The new sentence is the umbrella's only statement about a
merge commit, and the only place in the tree that says what one owes:

$ git grep -n -iE "merge commit" -- '*.md' ':!CHANGELOG'
AGENTS.md:483:**A merge commit is judged by its message, not by its content.** It brings upstream's
$ git grep -c "A merge commit is judged by its message" -- '*.md'
AGENTS.md:1

The CHANGELOG/ entries that mention a merge commit are history, not rules. The
umbrella's own trailer statements are the attribution rule this paragraph amends
(AGENTS.md:476) and the coordination order on comments and PR bodies
(AGENTS.md:683) — a different proposition, about the ORDER of two footer lines.

Rulebook compliance

  • R0 — the umbrella AGENTS.md dispatcher row for git/gh work selected
    /charly-internals:git-workflow, read in full before the first git or gh action in
    this leg, and this repo's own AGENTS.md selected it again for the same work. The
    change edits the rulebook's AI Attribution section, which is the umbrella's own
    prose; no other dispatcher row's trigger applies to a one-paragraph rulebook edit.
  • R1 — the finding this change carries is two published merge commits carry no Assisted-by: trailer, and no control reads the pushed range's trailers #613's first half, and it is fixed
    here
    : the rule is stated once, in the repo that owns the rulebook. Its second half —
    the control that reads the pushed range's trailers — is fixed in
    opencharly/layer-charly-internals, the repo that owns the self-audit, and it is
    filed and tracked there; it cannot be fixed in this repo, because this repo owns the
    rule and not the skill. No new issue was filed by this change. The RCA in two published merge commits carry no Assisted-by: trailer, and no control reads the pushed range's trailers #613 names
    the mechanism (a rule that does not say what a merge commit is, so two readings stay
    defensible), the missed control (nothing read the pushed range's trailers, so a gap
    below the head stayed invisible), the blast radius (three published commits on one
    branch, and an org that cannot tell a violation from compliance) and the root fix
    (state the rule, and add the arm that reads the range).
    The gate's first run in this worktree failed before any step ran — the manifest's
    import: block names four local paths and the worktree had one of them materialized,
    so the project load stopped at ./layer-openclaw. That is fixed here, not narrated:
    the worktree now carries the manifest's local import set, and the gate is green on
    the committed tree.
  • R2 — one rule, one owner, one place. The umbrella's AGENTS.md states the rule;
    the skill that owns the self-audit states the control, and the corpus projection of
    that skill is generated rather than hand-edited. The sweep above shows the rule is
    stated in exactly one file.
  • R3 — no workaround: the rule names the two real cases (a merge the agent wrote, a
    merge whose message the agent did not) rather than a way around the trailer.
  • R4 — the product was fixed before the prose. The gate that could not read the
    pushed range's trailers is the second half of the same finding, and it is fixed in the
    repo that owns that control, in the leg that follows this one.
  • R5 — no legacy survives this change: there was no prior statement of a merge
    commit's trailer to delete, and the sweeps above show the tree holds exactly one
    statement of the rule and no other statement about merge commits.
  • R6 — git status was clean before the edit, and the diff touches exactly the one
    file its table names. The branch is off fresh origin/main (12cc058), no history is
    rewritten, nothing is force-pushed, no hook is bypassed, and the umbrella's own
    hooks/pre-commit ran on the commit (it reported pre-commit: OK).
  • R7 — the changed path executes live: the umbrella's own gates read AGENTS.md
    (the validator rule-map gate reconciles the committed rulebook against the live
    AI_REVIEW_PROMPT and runs inside task verify), and the only command in the tree
    that can WRITE the file leaves it byte-identical, as pasted above. The rule's two halves
    are proved on published commits rather than asserted.
  • R8 — no service boundary is crossed: the gate and the sweeps ran against the real
    files of the real tree, and nothing is mocked.
  • R9 — the gate ran on the worktree-local, CalVer-stamped build (2026.297.0121),
    built in this worktree by ./charly/scripts/bootstrap-charly.sh, never a shared host
    install.
  • R10 — the change-class gate ran on the committed tree that is being pushed, and
    passed with zero warnings: charly task verify → 33 step(s), 0 failed, exit 0.

Change classification

One authored rulebook paragraph — prose only.

  • Change class: a docs change. The diff touches no code, no pin, no script, no
    manifest and no behavioural config: it adds one paragraph to the umbrella's own
    rulebook, in the section that states the attribution rule. The change is a
    clarification of a rule, in the repo that owns the rulebook.
  • Diffstat: 1 file changed, 6 insertions(+). No file is added and no
    file is deleted.
  • Gate run: charly task verify on the committed tree — 33 step(s), 0 failed,
    exit 0 — plus the dispatcher splice check, charly task self-test, and the
    claim-keyed sweeps above.
  • Attribution tier: documentation reviewed — the change is prose only, every
    non-runtime standard passed, and no runtime tier is permitted for prose-only work.
  • No gitlink, pin or gitlink-verification leg applies to this diff.

Filed issues

None filed by this change. The other half of the same finding — the control that reads
the pushed range's trailers — is #613, being fixed in the repo that
owns the self-audit (opencharly/layer-charly-internals).

Agent: charly

Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (documentation reviewed)

The umbrella's *AI Attribution* section says every AI-authored commit ends
with the `Assisted-by:` trailer, but it did not say what a MERGE commit is.
A merge brings upstream's commits in and adds no content of its own, while
its own message is the agent's authorship — two readings were defensible and
the rulebook picked neither, so a published merge commit carrying no trailer
was neither clearly a violation nor clearly compliant.

The rule is now written once: a merge commit is judged by its MESSAGE, not by
its content. A merge the agent writes ends with the trailer like any other
commit; a merge whose message the agent did not write — the one
`gh pr update-branch` writes on GitHub's behalf — carries no trailer and owes
none.

The control that reads the pushed range's trailers is the other half of the
same finding, and it lands in the repo that owns the self-audit
(opencharly/layer-charly-internals), before the corpus and the umbrella's
pins move.

Refs #613

Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (documentation reviewed)
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Scope & correctness. The PR is a single-file, prose-only change: AGENTS.md, +6/−0, adding one paragraph to the AI Attribution section. The diff does exactly what the body's table claims — it states that a merge commit is judged by its message, not its content; that a merge the agent writes ends with the Assisted-by: trailer; and that a merge whose message the agent did not write (gh pr update-branch) owes none. The paragraph sits immediately after the tier/attribution prose and before the confidence table, i.e. inside the section it says it amends, and it introduces no code, pin, script, manifest, or behavioural config. The diffstat (1 file, 6 insertions), head SHA (d22abba), and file/line reference (AGENTS.md:483) are all internally consistent with the diff shown.

Honesty of the body. Every claim that is checkable against the provided state checks out: the changed-file count, the insertion count, the single-commit history, the quoted added text, and the "stated once" assertion (the diff contains exactly one such sentence and no competing statement about merge commits). The evidence blocks (gate exit 0, dispatcher splice no-op, published-history trailer counts on 95e91f5 / 0f0dd72 / 73b8328 / 7cfd480) are unverifiable from this message, but they are presented as reproducible commands with expected outputs, are not contradicted by anything in the diff, and are proportionate to a docs change. The R4/R1 framing — that the control half lands in layer-charly-internals in a following leg — is disclosed rather than hidden, and is a defensible split because the rule and the self-audit live in different repos.

Tests. Not applicable in the conventional sense: this is a rulebook edit with no runtime surface. The relevant "test" is the change-class gate on the committed tree, which the body reports as 33 step(s), 0 failed, plus the dispatcher-splice no-op proof that the only writer of AGENTS.md in this tree leaves it byte-identical. That is the appropriate coverage for a prose-only change.

Security. No secrets, no injection surface, no dependency or privilege change — the diff is six lines of Markdown.

Scope & cleanliness. No legacy path to remove (the body correctly notes there was no prior merge-commit statement to delete), no duplication, no dead code. The change is coherent and complete for the rule it sets out to state.

Comments. The comment thread is empty, so there is no maintainer/operator sign-off to weigh and none is claimed. The change stands on its own evidence: a self-evident, internally consistent one-paragraph rulebook edit.

No blocking findings.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) October 24, 2026 08:41
@github-actions
github-actions Bot merged commit 92564bd into main Oct 24, 2026
3 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Oct 24, 2026
aitrawog added a commit to opencharly/layer-charly-internals that referenced this pull request Oct 24, 2026
…ushed head

Round 2 of #148, on the validator's two BLOCK
findings.

1. The step's range was written as `origin/<branch>..HEAD`, and read literally
   as the PUSHED FEATURE branch that is only the UNPUSHED commits — which
   would never surface the published gaps the step is about. The range is now
   the PR's BASE branch's head to this branch's head, `origin/<base>..HEAD`,
   named as such, and the step says to run it over YOUR OWN head over THAT
   range: a range you chose yourself proves a different range's commits.

2. The body proved the GREEN half over a range that was not the pushed head's,
   so the head's own trailer status was unverified. The GREEN half is now run
   over `origin/main..HEAD` of this branch, on the head this body describes.

The rule the arm applies is unchanged and is not restated here; it is the
umbrella rulebook's *AI Attribution* section, which landed in
opencharly/opencharly#670 (tag v2026.297.0842).

Refs opencharly/opencharly#613

Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (documentation reviewed)
github-actions Bot pushed a commit to opencharly/layer-charly-internals that referenced this pull request Oct 24, 2026
* docs(skills): read the pushed range's trailers before the push

The pre-validator self-audit had no arm that read the COMMITS a branch is
about to push. The body linter reads the body's last line, and the org
rulebook's *AI Attribution* section says every AI-authored commit ends with
an `Assisted-by:` trailer — but nothing joined the two, so a trailer-less
commit could sit below the head while every control stayed green.

Measured: the umbrella PR opencharly/opencharly#591's published branch
(feat/light-init) carried three merge commits with no trailer, one per review
round's catch-up merge, and the gap surfaced only when the history was
re-read by hand. The rate, not the three, is the defect.

The new preflight step reads the range and resolves every commit it names: a
commit still local is amended before the push, and a published one is
reported — never rewritten (R6). The RULE the arm applies is the rulebook's
and is not restated here; the arm points at the org rulebook's *AI
Attribution* section, which owns it.

Refs opencharly/opencharly#613

Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (documentation reviewed)

* docs(skills): read the base..HEAD range, and prove the arm over the pushed head

Round 2 of #148, on the validator's two BLOCK
findings.

1. The step's range was written as `origin/<branch>..HEAD`, and read literally
   as the PUSHED FEATURE branch that is only the UNPUSHED commits — which
   would never surface the published gaps the step is about. The range is now
   the PR's BASE branch's head to this branch's head, `origin/<base>..HEAD`,
   named as such, and the step says to run it over YOUR OWN head over THAT
   range: a range you chose yourself proves a different range's commits.

2. The body proved the GREEN half over a range that was not the pushed head's,
   so the head's own trailer status was unverified. The GREEN half is now run
   over `origin/main..HEAD` of this branch, on the head this body describes.

The rule the arm applies is unchanged and is not restated here; it is the
umbrella rulebook's *AI Attribution* section, which landed in
opencharly/opencharly#670 (tag v2026.297.0842).

Refs opencharly/opencharly#613

Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (documentation reviewed)
github-actions Bot pushed a commit that referenced this pull request Oct 24, 2026
…— nine gitlinks to their producers' served mains (#671)

The rule landed as #670 and the arm as
opencharly/layer-charly-internals#148 (tag v2026.297.0850); the corpus
regenerated and merged as opencharly/marketplace#575 (tag v2026.297.0931).
This advances the umbrella's own pins through the pin contract's verb, so the
umbrella's tree carries the arm that reads the pushed range's trailers, and it
aligns the umbrella's two `charly task pin-check` rows with the contract
#664 implemented — the read-set the corpus's canonical
text names, and the umbrella's own rows did not.

Refs #613

Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)
@aitrawog
aitrawog deleted the feat/merge-commit-attribution-613 branch November 1, 2026 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant