Repository navigation
docs(agents): make AGENTS.md fully harness-neutral; move harness detail to the harness skill (#286) - #728
Merged
Conversation
…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)
Contributor
Review — PASSHead SHA: Security screen: PASS — change STRENGTHENS the neutrality gate (adds Checklist: All applicable rules PASS or NA.
Comment thread: empty (0 comments) — nothing to disposition. Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
charly/AGENTS.mdis declared the single harness-neutral rulebook, but its R0skill-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.
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/marketplacerepo 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.mdby path. Every mandate is preserved — loadall dispatched skills, load all matches before acting, and missing
registration remains a project-profile defect, never permission to skip.
scripts/validate-agent-config.py'sFORBIDDEN_GENERIC_RULEBOOK_MARKERSagain forbids harness NAMES —Claude(covers
Claude Code/CLAUDE.md),Codex,Kimi(coversKimi Code),opencode,reasonix,cursor— alongside the config identifiers, plus anew word-boundary
\bpi\bpattern (a barepisubstring would matchapi/pipeline/capabilities). The self-test exercises every restoredmarker 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 alreadydocuments all four mechanisms product-wide: Claude Code/Cursor (the
charly-pluginscatalog), Codex/AGENTS (.agents/plugins/marketplace.json),Kimi Code (
kimi.plugin.json/ the repo-as-one-plugin), and pi(
git:github.com/opencharly/marketplace, installed viapackage.json'spiresource). The primitive detail for Claude Code, Codex and Kimi also lives in
/charly-internals:agents→references/agent-roster.md(its per-harnesstable). pi's mechanism is documented both product-wide in the marketplace
README and in charly's own harness config (
charly/.pi/README.md). Everyremoved fact was therefore already covered — no
layer-charly-internalssourceedit was required, and the rulebook now points at the canonical skill/README
source.
How tested
Final tree =
2271bd941f0e275661ee2ad3464bb5c729afd0ac(baseorigin/main).R1 defect proof — the restored gate rejects the pre-fix rulebook and accepts the
neutralized one (invoked live against
origin/main:AGENTS.mdand the fixedtree):
Rulebook compliance
Umbrella rulebook rules 1–10 (the umbrella
AGENTS.mdcurrently enumerates ten;there is no rule 11) plus charly
AGENTS.mdR1–R10:charly/wereedited, from a session worktree; no submodule content touched.
git -C <abs>— HOW: every git/gh action ran viagit -C <abs>.go.work— N/A — no Go workspace change..worktrees/agents-neutral-charlybranched offorigin/main; the trackedcharly/checkout stays clean.distro-*/gitlink change.charly/AGENTS.md(the editedrulebook) and the
charly/.pi/README.mdharness config before editing.gate/hook file changed; the neutrality work is exactly this change and the
forked
/charly-internals:agentsskill remains the harness-detail home.and files were touched; other sessions' worktrees left untouched.
the whole body was written before the first push, keyed to the real head SHA;
any later push re-reads the live thread first.
narrowed the markers); proved the restored gate fails the pre-fix rulebook.
marketplace README's per-harness install table.
with the word-boundary
\bpi\bpattern chosen for correctness (not asubstring that false-matches ordinary words).
divergence in this change.
survives in
AGENTS.md(grep above returns nothing).committing; no force-push, no push to
main, no hook bypass.every restored marker + the pi negative), and the validator ran live on the
final tree.
output is retained above.
rulebook + validator-script change; the applicable non-runtime standards
(
--self-testand the full validator run) passed on the final committed tree.Change classification
Code + docs —
AGENTS.md(policy prose) plusscripts/validate-agent-config.py(marker list + self-test). Because a scriptchanged, this is NOT documentation-only and
documentation reviewedisforbidden. Tier:
analysed on a live system— the changed validator ranlive 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· sessionses_org-readme-agentsAssisted-by: opencode deepseek-v4.1-flash (analysed on a live system)