Skip to content

docs(agents): make AGENTS.md fully harness-neutral; move harness detail to the harness skill (#286) - #728

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/agents-harness-neutral
Sep 28, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/agents-harness-neutral

Conversation

@aitrawog

Copy link
Copy Markdown
Contributor

Summary

charly/AGENTS.md is declared the single harness-neutral rulebook, but its R0
skill-loading prose still named four consumer harnesses. This change removes
every harness name from the policy prose and re-tightens the neutrality gate
that PR #727 deliberately relaxed.

  • R0 prose neutralized. The parenthetical enumerating per-harness skill
    loading (Claude Code's marketplace, pi's package, Kimi's plugin, Codex's
    catalog) is replaced with harness-neutral language: every supported harness
    loads the opencharly/marketplace repo through its own plugin market,
    package, or catalog (the per-harness install table lives in that repo's
    README), and a harness that cannot resolve the canonical
    /charly-<family>:<skill> form reads
    <family>/skills/<skill>/SKILL.md by path. Every mandate is preserved — load
    all dispatched skills, load all matches before acting, and missing
    registration remains a project-profile defect, never permission to skip.
  • Gate re-tightened. scripts/validate-agent-config.py's
    FORBIDDEN_GENERIC_RULEBOOK_MARKERS again forbids harness NAMES — Claude
    (covers Claude Code/CLAUDE.md), Codex, Kimi (covers Kimi Code),
    opencode, reasonix, cursor — alongside the config identifiers, plus a
    new word-boundary \bpi\b pattern (a bare pi substring would match
    api/pipeline/capabilities). The self-test exercises every restored
    marker and the pi negative control.

Where each moved harness fact landed

The removed R0 enumeration duplicated the marketplace README's per-harness
install table (marketplace/README.md → "Install per harness"), which already
documents all four mechanisms product-wide: Claude Code/Cursor (the
charly-plugins catalog), Codex/AGENTS (.agents/plugins/marketplace.json),
Kimi Code (kimi.plugin.json / the repo-as-one-plugin), and pi
(git:github.com/opencharly/marketplace, installed via package.json's pi
resource). The primitive detail for Claude Code, Codex and Kimi also lives in
/charly-internals:agents → references/agent-roster.md (its per-harness
table). pi's mechanism is documented both product-wide in the marketplace
README and in charly's own harness config (charly/.pi/README.md). Every
removed fact was therefore already covered — no layer-charly-internals source
edit was required, and the rulebook now points at the canonical skill/README
source.

How tested

Final tree = 2271bd941f0e275661ee2ad3464bb5c729afd0ac (base origin/main).

$ python3 scripts/validate-agent-config.py --self-test
agent configuration validator self-test passed
exit=0

$ python3 scripts/validate-agent-config.py
validated 82 R0 dispatcher rows, shared policy contract, and attribution templates
exit=0

$ git grep -niE 'claude|codex|kimi|\bpi\b|opencode|reasonix' AGENTS.md
(no output)
grep exit=1

R1 defect proof — the restored gate rejects the pre-fix rulebook and accepts the
neutralized one (invoked live against origin/main:AGENTS.md and the fixed
tree):

origin/main AGENTS.md -> ["AGENTS.md contains harness-specific policy marker 'Claude'",
                          "AGENTS.md contains harness-specific policy marker 'Codex'",
                          "AGENTS.md contains harness-specific policy marker 'Kimi'",
                          "AGENTS.md contains harness-specific policy marker 'pi'"]
worktree AGENTS.md    -> CLEAN
AGENTS.md                        | 18 ++++++------
scripts/validate-agent-config.py | 60 +++++++++++++++++++++++++++++++++++-----
2 files changed, 63 insertions(+), 15 deletions(-)

Rulebook compliance

Umbrella rulebook rules 1–10 (the umbrella AGENTS.md currently enumerates ten;
there is no rule 11) plus charly AGENTS.md R1–R10:

  • U1 never edit inside a submodule — HOW: only files in charly/ were
    edited, from a session worktree; no submodule content touched.
  • U2 git -C <abs> — HOW: every git/gh action ran via git -C <abs>.
  • U3 no nested go.work — N/A — no Go workspace change.
  • U4 session worktree — HOW: fresh
    .worktrees/agents-neutral-charly branched off origin/main; the tracked
    charly/ checkout stays clean.
  • U5 pin only merged refs — N/A — no pins or gitlinks changed.
  • U6 Policy B is the contract — N/A — no distro-*/gitlink change.
  • U7 read the subrepo rulebook — HOW: read charly/AGENTS.md (the edited
    rulebook) and the charly/.pi/README.md harness config before editing.
  • U8 harness config shared core + deliberate forks — HOW: no shared-core
    gate/hook file changed; the neutrality work is exactly this change and the
    forked /charly-internals:agents skill remains the harness-detail home.
  • U9 session-scoped ownership — HOW: only this session's worktree, branch
    and files were touched; other sessions' worktrees left untouched.
  • U10 read the PR live state + write the body before any update push — HOW:
    the whole body was written before the first push, keyed to the real head SHA;
    any later push re-reads the live thread first.
  • R1 RCA every anomaly — HOW: root-caused the relaxed gate (PR chore(agents): retire CLAUDE.md — AGENTS.md is the sole rulebook (#286) #727
    narrowed the markers); proved the restored gate fails the pre-fix rulebook.
  • R2 finish the whole cutover — HOW: every harness name removed and the gate
    • self-test tightened in one change.
  • R3 no duplication — HOW: removed the R0 prose's duplication of the
    marketplace README's per-harness install table.
  • R4 no workarounds — HOW: no ad-hoc command; the gate itself is the fix,
    with the word-boundary \bpi\b pattern chosen for correctness (not a
    substring that false-matches ordinary words).
  • R4a fix the product first — N/A — no documented-behaviour vs code
    divergence in this change.
  • R5 delete legacy completely — HOW: no harness name or config identifier
    survives in AGENTS.md (grep above returns nothing).
  • R6 preserve user work and Git safety — HOW: status/diff inspected before
    committing; no force-push, no push to main, no hook bypass.
  • R7 prove behaviour — HOW: the self-test fails without the change (asserts
    every restored marker + the pi negative), and the validator ran live on the
    final tree.
  • R7a live or skip — N/A — no live-service boundary crossed.
  • R8 preserve emitted artifacts — HOW: the validator's self-test + full-run
    output is retained above.
  • R9 binary equals source — N/A — no Go build or binary produced.
  • R10 fresh disposable proof — N/A — no runtime target exists for a
    rulebook + validator-script change; the applicable non-runtime standards
    (--self-test and the full validator run) passed on the final committed tree.

Change classification

Code + docs — AGENTS.md (policy prose) plus
scripts/validate-agent-config.py (marker list + self-test). Because a script
changed, this is NOT documentation-only and documentation reviewed is
forbidden. Tier: analysed on a live system — the changed validator ran
live with retained output on the final tree (self-test, full run, and the
pre-fix defect demonstration); no fresh-rebuild runtime target exists.

Refs #286

Agent: org-readme-agents · session ses_org-readme-agents
Assisted-by: opencode deepseek-v4.1-flash (analysed on a live system)

…il to the harness skill (#286)

Neutralize the R0 skill-loading prose: remove the per-harness enumeration
(Claude Code's marketplace, pi's package, Kimi's plugin, Codex's catalog) and
point at the canonical `/charly-<family>:<skill>` reference plus the
per-harness install table in the marketplace README. No mandate changes: load
every dispatched skill, load all matches before acting, and missing
registration remains a profile defect — never permission to skip a skill.

Re-tighten scripts/validate-agent-config.py: FORBIDDEN_GENERIC_RULEBOOK_MARKERS
again forbids harness NAMES (Claude / Codex / Kimi / opencode / reasonix /
cursor) alongside the config identifiers, plus a word-boundary `\bpi\b`
pattern (a bare `pi` substring would match api / pipeline / capabilities). The
self-test now covers every restored marker and the pi negative control; the
pre-fix origin/main rulebook fails the gate, the neutral rulebook passes.

Refs #286

Assisted-by: opencode deepseek-v4.1-flash (analysed on a live system)
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 2271bd941f0e275661ee2ad3464bb5c729afd0ac (branch: feat/agents-harness-neutral)

Security screen: PASS — change STRENGTHENS the neutrality gate (adds Claude/Codex/Kimi/opencode/reasonix/cursor markers + word-boundary \bpi\b); no secrets, no egress, no supply-chain or guardrail weakening; T4 self-modifying-security change is opened under the maintainer account @aitrawog (in the configured AI_REVIEW_MAINTAINER set) with an explicit justification (restores what #727 relaxed).

Checklist: All applicable rules PASS or NA.

  • A1/A3 — body accounts for both files, pastes real --self-test + full-run + pre-fix defect output, footer ends with the required *Assisted-by: opencode deepseek-v4.1-flash (analysed on a live system)* line; tier not inflated.
  • A2/B12 — code+docs class; no runtime bed target exists, applicable non-runtime standards (--self-test, full validator run) pasted; self-test FAILS without the change (asserts every restored marker + pi negative control), so coverage is real.
  • B5/B6/B7/B8/B10/B15 — zero warnings, no R2 split, removes R0↔README duplication, no ad-hoc workaround (\bpi\b correctness choice), grep self-test pasted (exit=1), single atomic commit.
  • B16 — placement CORRECT: policy doc + repo validator tooling only; no core/sdk/candy misplacement, no alias/core-import/Legacy smells.
  • Diff internal consistency verified: marker list matches self-test cases; AGENTS.md ±count (+10/−8) and script (±) reconcile to the body's 63 insertions(+), 15 deletions(-); grep pattern omitting cursor is harmless because the full validator run (which covers cursor) passed.

Comment thread: empty (0 comments) — nothing to disposition.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) September 28, 2026 11:14
@github-actions
github-actions Bot merged commit 5250799 into main Sep 28, 2026
2 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Sep 28, 2026
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.

2 participants