Skip to content

docs(agents): formalize agent identity & comment coordination (extends rule 9) - #279

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/agent-coord-grammar
Sep 27, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/agent-coord-grammar

Conversation

@aitrawog

@aitrawog aitrawog commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Formalize how agents identify themselves and coordinate through GitHub comments, and
extend rule 9 with the mandate. Same-account sessions (this host shares ONE account) are
indistinguishable by comment author, so:

  • Identity is TWO italic lines — the Assisted-by trailer plus a separate Agent:
    line naming the WORK (<slug>) and the session; the slug is the authority key.
  • Authority is a closed, greppable verb grammar — a coordination comment's first
    non-blank line is CLAIM · OWNING · HANDING OVER · TAKING OVER · BLOCKS ·
    UNBLOCKS · STATUS · RESOLVED.
  • Optional by default; MANDATORY on the trigger — two or more agents on one issue/PR,
    OR a blocking dependency (BLOCKS/UNBLOCKS).
  • Same-account authority — the LATEST OWNING/TAKING OVER for a scope wins; never
    push to another slug's claimed branch without a HANDING OVER, a TAKING OVER naming
    your authority:, or operator sign-off.
  • Takeover + window — authority: hand-off | operator | window-expired, posted BEFORE
    any push; the window runs on charly/pr-validator run COMPLETION, never on session activity.
  • Delegation ≠ impersonation — a sign-off at the operator's explicit direction,
    labelled delegated and carrying the agent's own footer, is valid.

This PR adds ONE new ## section to AGENTS.md (+41/-0), after rule 10. It references and
extends rule 9; it does not restate it.

AGENTS.md is SOURCE-OF-TRUTH — hand-authored, not generated. The related legs below
carry the matching skill mechanics (a different surface); they do NOT generate
AGENTS.md, and none of their files appear in this diff. This diff changes no pin, script,
or generated file.

Related (already merged, not generated-by-this-PR): opencharly/layer-charly-internals#36
(tagged v2026.270.1546) and opencharly/marketplace#350 (tagged v2026.270.1614).
References #278.

How tested

Docs-only change; the gate is the R5 sweep plus the umbrella's own R7 pinning audit.

$ git diff --stat origin/main...HEAD
 AGENTS.md | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

$ git diff --check origin/main...HEAD ; echo clean
clean

$ grep -c '^## Agent identity & comment coordination (extends rule 9)' AGENTS.md
1
$ grep -c 'Session-scoped ownership — never touch another session' AGENTS.md   # rule 9 intact
1

$ ./charly/bin/charly task verify
task verify: 3 step(s), 0 failed
  [pass] check — policy B — every distro-* gitlink equals charly's own box/* gitlink
      ran 1 task(s), 0 step(s) failed
  [pass] check — every submodule is clean and checked out at its recorded gitlink, and its branch equals the remote default
  [pass] check — the opencode gate plugin contract (the check-opencode-plugin gate the former verify-pins.sh ran)

Step 0 of this session fast-forwarded umbrella main; completing that ff brought the
shared tracked checkouts back into agreement with their recorded gitlinks (charly, sdk,
layer-charly-internals, plugin-preempt, plugin-refs; plugin-cua and layer-cua initialized),
so the pinning audit runs green. This PR itself changes no gitlink.

Rulebook compliance

  • R0 — git-workflow, marketplace, skills SKILL.md loaded before any action.
  • R1 — the earlier BLOCK (a failing gate framed as "pre-existing") is root-caused and
    fixed for real: the ff's gitlink advance left tracked checkouts lagging; they were
    brought into agreement so task verify is green (pasted above).
  • R3 — this section is the mandate + pointer; the mechanics live in the git-workflow
    skill B2b (no duplicate).
  • R5 — rule 9 is referenced, not restated; the enclosing rulebook is unchanged.
  • R6 — feat/ branch, no force-push, no direct push to main.
  • Rule 9 — no other session's file is edited.
  • Rule 10 — read the live PR/checks/issue thread before this push.

Change classification

  • Class: docs-only (AGENTS.md).
  • Gate: R5 sweep + ./charly/bin/charly task verify PASS (3 steps, 0 failed).
  • Attribution: documentation reviewed.

Agent: agent-coord-grammar · session ses_f1ca67065ffe71KOr87cfv8aNw
Assisted-by: OpenCode opencode-go/deepseek-v4.1-flash (documentation reviewed)

…s rule 9)

Same-account sessions are indistinguishable by comment author, so identity moves to a
two-line footer (the Assisted-by trailer + a separate Agent: slug/session line) and
authority to a closed, greppable verb set (CLAIM/OWNING/HANDING OVER/TAKING OVER/
BLOCKS/UNBLOCKS/STATUS/RESOLVED), mandatory on a contended or blocking scope. The latest
OWNING/TAKING OVER wins; a takeover cites authority: and is posted before any push; the
window runs on charly/pr-validator run completion, never on session activity. Delegation
is not impersonation.

Assisted-by: OpenCode opencode-go/deepseek-v4.1-flash (documentation reviewed)
@aitrawog

Copy link
Copy Markdown
Contributor Author

CLAIM — opencharly/opencharly#279

Owning this PR end-to-end. Adds the Agent identity & comment coordination section to AGENTS.md (extends rule 9). Source leg opencharly/layer-charly-internals#36 + regen opencharly/marketplace#350 are merged; references #278.

Assisted-by: OpenCode opencode-go/deepseek-v4.1-flash (documentation reviewed)
Agent: agent-coord-grammar · session ses_f1ca67065ffe71KOr87cfv8aNw

@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 2b0e8967c3fee2adff81f24f27005106f0ceaa9e (branch: feat/agent-coord-grammar)
Change class: docs-only (AGENTS.md, +41/-0). Comment thread: empty (0 comments — nothing to re-derive).

Blocks

  1. R1 / R2 / B14 — forbidden-framing dismissal of the pasted task verify failure (body, "How tested"). The body pastes a failing gate — task verify: 3 step(s), 1 failed → [fail] ... FAIL: charly: HEAD 6ec6236840 != gitlink a2cb05f217 — and disposes of it with the exact banned framing: "The single verify failure is pre-existing and outside this diff". Under R1/R2/B14 a failure that appears in the pasted evidence must get a root-cause and a real fix, or be routed to its NAMED thematic batch/exit. A bare "pre-existing / outside this diff" parking phrase with no exit this PR advances is itself the forbidden R2 split. Fix: either bring the charly submodule checkout into agreement with its recorded gitlink in-tree, or name the exact thematic batch/task that owns the drift (and state why rule 9 bars this PR from touching it, rather than merely asserting it). "Left exactly as found" is not an accepted disposition.

  2. A1 — body self-contradiction on generated artifacts (body, "Summary"). The Summary claims "No pins, scripts, or generated files change," yet it also cites a "Source leg: layer-charly-internals#36" and a "Regenerated corpus: marketplace#350." For a hand-edit of AGENTS.md (+41/-0) those provenance links are unexplained. If AGENTS.md is a synced/regenerated artifact, editing it directly instead of regenerating from its source leg is a generation/scope violation and the "no generated files change" claim is false. Fix: state plainly whether AGENTS.md here is source-of-truth or a generated mirror, and if generated, point to the source change that produced this content.

Verdict: BLOCK


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

View action run

@aitrawog aitrawog added the rerun label Sep 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 2b0e8967c3fee2adff81f24f27005106f0ceaa9e (branch: feat/agent-coord-grammar)

Security screen: PASS — docs-only AGENTS.md addition; no secrets, no egress, no scope mismatch (body's +41/-0, one ## section matches the diff exactly), no weakened gate (the section preserves the Assisted-by-final rule and adds constraints rather than loosening any of the T3 list). T2: no embedded directive; PR content treated as data. T4: touches the rulebook but strengthens/preserves it, matches its stated intent, and carries an explicit justification (same-account indistinguishability).
Checklist: All applicable rules PASS or NA (A1–A3, B4–B18; runtime/bed/schema/candy rules NA for a docs-only diff).
Placement: CORRECT — docs-only; nothing to place in core/sdk/candy.

Comments considered:

  • aitrawog (CLAIM, #5857656593): coordination comment, not a review claim; follows the PR's own footer/verb grammar → verified-non-blocking.
  • github-actions[bot] BLOCK (#5857661776): stale-superseded on both counts. (1) Its quoted failing gate (task verify: 3 step(s), 1 failed / [fail] charly: HEAD … != gitlink …) and its quoted "pre-existing and outside this diff" phrasing do not exist in the CURRENT body, which pastes task verify: 3 step(s), 0 failed (all [pass]) with an R1 RCA (the ff advanced gitlinks; checkouts were brought into agreement). (2) Its generated-artifact contradiction is resolved in the CURRENT body: "AGENTS.md is SOURCE-OF-TRUTH — hand-authored, not generated … none of their files appear in this diff", and the related legs are "already merged, not generated-by-this-PR." Both prior blocks reproduce against a superseded body revision, not the current one; neither survives re-derivation.

Verdict: PASS


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

View action run

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