Skip to content

docs(policy): make AGENTS harness-neutral and enforce parity - #185

Merged
atrawog merged 6 commits into
mainfrom
feat/generic-agents-policy
Jul 24, 2026
Merged

atrawog merged 6 commits into
mainfrom
feat/generic-agents-policy

Conversation

@atrawog

@atrawog atrawog commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary of changes

AGENTS.md is now a concise, standalone, harness-neutral rulebook with the
same overall instructions as the CLAUDE.md harness adapter. The
agent-configuration validator now enforces the shared policy and the exact
operator-confirmed AI attribution form:

Assisted-by: <Harness> <Provider Full Model Name> (<confidence>)

  • reduced AGENTS.md from 599 to 339 lines while retaining the dispatcher,
    RDD/ADE/SDD, R1–R10, architecture, cutover, landing, acceptance, and all five
    confidence tiers;
  • removed every product-specific marker from AGENTS.md;
  • aligned CLAUDE.md ownership wording and attribution grammar;
  • added positive and negative in-memory policy/attribution contract fixtures;
  • scans current Markdown for missing-provider, <tier>, and
    parenthesized/semicolon noncanonical forms;
  • advances plugins to its independently validated squash commit on main;
  • records the cutover in the merge-time-finalized root changelog entry.

Change class

Cross-repo policy/configuration. Dependency order is complete:

  1. organization template opencharly/.github#7 merged as
    abf017387483ff948ae0923b14f5299688cdf1e4 and tagged
    v2026.205.1403;
  2. producer opencharly/plugins#111 merged as
    7b727734d0cb18c225dfb58e53a06485b9235aa4 and tagged
    v2026.205.1207;
  3. this superproject consumer records the merged plugins commit and is current
    with protected root main.

How R10-tested — exact gate, commands, and pasted output

  • The gate for this change class: configuration-script executable gate plus
    documentation non-runtime standards; no disposable bed is applicable.
  • Eval beds run: N/A — no product runtime, candy, box, or deploy path changed.
  • Fresh rebuild: N/A — no Go binary or runtime artifact changed.
  • Did the CHANGED code path execute live? Yes — the validator self-test,
    full validator, and all three generated-profile checks executed successfully.
  • Concurrency: N/A — no shared runtime state changed.
$ python3 scripts/validate-agent-config.py --self-test
agent configuration validator self-test passed

$ python3 scripts/validate-agent-config.py
validated 40 equivalent R0 dispatcher rows, shared policy contract, and attribution templates

$ plugins/setup claude --check developer
claude project profile is developer (25 plugins)

$ plugins/setup codex --check developer
codex project profile is developer (25 plugins, 292 repo-native skills)

$ plugins/setup kimi --check developer
kimi project profile is developer (25 plugins, 292 repo-native skills)

$ git diff --check origin/main...HEAD
[exit 0; no output]

$ git diff --name-status origin/main...HEAD
M	AGENTS.md
A	CHANGELOG/2026.205.1933.md
M	CLAUDE.md
M	plugins
M	scripts/validate-agent-config.py

$ rg -n 'Codex|CODEX_HOME|\.codex|Claude Code|Kimi Code|~/.kimi-code' AGENTS.md
[exit 1; no product-specific matches]

Attribution tier

fully tested and validated. The changed executable validator and every generated
profile check ran successfully, and the policy-only surfaces passed their
non-runtime checks.

Harness rulebook compliance — state HOW each is satisfied (or N/A — <reason>)

  • R0 skills: skill maintenance, agents, Git workflow, cutover,
    strict-policy, RCA, and check-gate skills were loaded before their actions.
  • R1 RCA + zero warnings: attribution drift was RCA'd before remediation;
    the initial inverted interpretation was stopped and closed unmerged. The
    successful feature push later surfaced GitHub's default-branch Dependabot
    summary; RCA proved it is independent of this zero-manifest-delta policy PR.
  • R2 no out-of-scope: root rulebooks, validator, plugin policy owners, and
    organization PR template are complete. The separable security notice is
    routed to the named immediate-next cutover
    security(deps): default-branch Dependabot zero-alert batch, covering all
    26 current alerts, affected manifests/locks/generated artifacts, applicable
    module/R10 gates, and a zero-open-alert finish condition.
  • R3 no duplication: the validator owns one exact machine-checked contract.
  • R4 no workaround: no alias, compatibility grammar, or bypass was added.
  • R5 hard cutover + grep: AGENTS.md has no product-specific marker and
    noncanonical current attribution templates fail validation.
  • R6 git safety: clean linked worktree, append-only commits and main merge,
    no force or pushed-history rewrite.
  • R7 runtime gate: the changed validator and profile check paths executed.
  • R8 artifact invariants: both rulebooks, operational templates, and rendered
    footer agree on the exact grammar.
  • R9 binary == source + deps: N/A — no binary or dependency changed.
  • R10 disposable + coverage: executable configuration gate plus docs-only
    standards; no invented bed.
  • RDD / ADE / SDD: N/A — no high-risk runtime assumption, candy, or schema.
  • Hard cutover: generic ownership and attribution grammar changed together
    across all three repositories.
  • Kernel/plugin boundary law: N/A — no core or SDK source changed.
  • Disposable-only autonomy: N/A — no runtime target mutation.
  • Clean architecture + Go gates: N/A — no Go source changed; policy detail
    was removed from the generic root rather than duplicated.
  • CHANGELOG: finalized as CHANGELOG/2026.205.1933.md; its H1 byte-matches
    2026.205.1933 and the merge tag will use the same CalVer.

Assisted-by: Codex OpenAI GPT-5.6 Sol (fully tested and validated)

atrawog added 2 commits July 24, 2026 11:57
Assisted-by: Codex OpenAI GPT-5.6 Sol (fully tested and validated)
Assisted-by: Codex OpenAI GPT-5.6 Sol (fully tested and validated)
@atrawog

atrawog commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — CHANGES REQUESTED ❌

This is the first durable exact-head Phase-2 verdict for this candidate and supersedes any author-side or non-durable earlier conclusion.

Bound candidate: 99555aebe65ac2d90ee0b4c47059125e3338e93c
Current protected base: 82a902c5981b01ec6aeead91ecd57e84463b978e
Merge base: cf144170ccc0ac547e93e9ae97cfc24eb8722e47
Candidate plugins gitlink: 685052342219ca5068264b6e660b74734db26280
Current plugins main: cf55c5ddc07e6e70165adb318d9be2ffa0c9a20f
Change class: harness project configuration plus policy/documentation gitlink
Derived R10: repository harness gate plus non-runtime documentation standards; no Charly bed can exercise this change.

Checklist

  • PASS 0 — security / anti-tampering: the script and policy edits implement the operator-supplied canonical attribution grammar, use in-memory self-test fixtures, do not create an alternate workspace/cache/home, and do not weaken branch protection or runtime guardrails.
  • PASS 1 — description: the PR body accounts for all five superproject paths, names the exact harness gate, includes outputs, attribution, and rule-by-rule applicability.
  • FAIL 2 — change-class / landing gate: the complete local harness gate passes, but protected B2 says a producer PR must be merged, not merely green, before the consumer gitlink bump. plugins#111 is still OPEN and candidate 6850523 is not on plugins main. The root PR is also BEHIND current main, so protected strict-branch policy requires an update plus delta re-gate before any success can bind a final head.
  • PASS 3 — attribution: both author commits and the PR footer use exactly Assisted-by: Codex OpenAI GPT-5.6 Sol (fully tested and validated). The harness-project-configuration matrix permits that tier because the changed executable validator and all developer-profile checks ran directly.
  • PASS 4 — R0: protected git-workflow, agents, skills, check, strict-policy, cutover-policy, the protected validator brief, and both protected rulebooks were loaded before candidate inspection.
  • PASS 5 — R1 / zero warnings: the final local gate completed with zero warnings or unexplained failures.
  • FAIL 6 — R2 / dependency completeness: the consumer is committed before its required producer has landed on real main; an open green producer is not a completed dependency leg.
  • PASS 7 — R3: the validator owns one canonical exact attribution contract; no second implementation was introduced.
  • PASS 8 — R4: no retry, suppression, compatibility grammar, alternate workspace/cache, or operational workaround appears.
  • PASS 9 — R5: exact-form and forbidden harness-specific sweeps pass on current policy surfaces; immutable changelog history is excluded as intended.
  • PASS 10 — R6/R8/R9: root and plugins author worktrees are clean; manifest/gitlink/trailers are exact. No Go binary or runtime dependency applies.
  • FAIL 11 — R10 overall: the harness/non-runtime content gate is green, but the final consumer state is not valid under the required cross-repo order and cannot receive a success verdict.
  • N/A 12 — RDD/ADE/SDD: no runtime assumption, candy, plan, schema, generated Go, or wire type changed.
  • PASS 13 — concurrency / anti-cheat: no runtime shared state changed and no serial or author evidence was substituted for this validator's commands.
  • FAIL 14 — hard cutover / landing readiness: producer→consumer order is incomplete, and this branch is behind current protected main.
  • PASS 15 — architecture gate: placement: CORRECT. Policy stays in root rulebooks/validator and owning skills; the executable check remains in scripts/. Per-item trace: N/A — no charly/*.go, alias, kit import, or E/M/B/D/R core item changed.
  • N/A 16 — disposable autonomy: no deploy, destroy, or runtime mutation occurred.
  • N/A 17 — Go gates: no Go source changed.
  • PASS 18 — CHANGELOG: CHANGELOG/2026.205.0715.md has a valid unused placeholder and byte-matching H1 CalVer.

Independent evidence

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

$ python3 scripts/validate-agent-config.py
validated 40 equivalent R0 dispatcher rows, shared policy contract, and attribution templates

$ plugins/setup claude --check developer
claude project profile is developer (25 plugins)

$ plugins/setup codex --check developer
codex project profile is developer (25 plugins, 292 repo-native skills)

$ plugins/setup kimi --check developer
kimi project profile is developer (25 plugins, 292 repo-native skills)

$ git diff --check cf144170ccc0ac547e93e9ae97cfc24eb8722e47..99555aebe65ac2d90ee0b4c47059125e3338e93c
[exit 0; no output]

$ git status --short
[exit 0; no output]

$ git -C plugins status --short
[exit 0; no output]

$ git -C plugins merge-base --is-ancestor 685052342219ca5068264b6e660b74734db26280 origin/main
[exit 1; candidate producer commit is not on plugins main]

$ git ls-remote https://github.com/opencharly/charly.git refs/heads/main refs/heads/feat/generic-agents-policy
82a902c5981b01ec6aeead91ecd57e84463b978e  refs/heads/main
99555aebe65ac2d90ee0b4c47059125e3338e93c  refs/heads/feat/generic-agents-policy

$ git ls-remote https://github.com/opencharly/plugins.git refs/heads/main
cf55c5ddc07e6e70165adb318d9be2ffa0c9a20f  refs/heads/main

Comments considered: none on opencharly/charly#185.

Cross-PR interactions considered:

Approval outcomes: protected-object reads, local repository checks, and exact GitHub read actions were allowed. No command was denied or reshaped. Comment/status publication are the only authorized external writes; no branch update, CalVer finalization, merge, tag, commit, push, or cleanup action was attempted.

Decision

FAIL / CHANGES REQUESTED. The candidate content gate is green, but protected B2 is explicit: merge producer opencharly/plugins#111 first so 6850523 is reachable from plugins real main; then update this behind root branch onto current protected main, rebind the new head, and run a fresh risk-proportional/full derived gate. An open producer PR with a green validator status is not a substitute for the required merge.

No merge-time CalVer delta was generated because Phase 3 is unauthorized and this verdict is not PASS. Therefore the further-final-tree-R10 decision is N/A for this run; it must be made afresh by the validator that later owns an authorized finalization.

Assisted-by: Codex OpenAI GPT-5.6 Sol (documentation reviewed)

@atrawog

atrawog commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — publication outcome

The required exact-head status action was allowed and completed:

head: 99555aebe65ac2d90ee0b4c47059125e3338e93c
context: charly/pr-validator
state: failure
description: pr-validator: producer PR unmerged; branch behind
status id: 51029747979

No Phase 3 action was attempted.

Assisted-by: Codex OpenAI GPT-5.6 Sol (documentation reviewed)

atrawog added 2 commits July 24, 2026 15:47
Assisted-by: Codex OpenAI GPT-5.6 Sol (documentation reviewed)
Replace the branch-only plugins gitlink with the independently validated squash commit on plugins main.

Assisted-by: Codex OpenAI GPT-5.6 Sol (documentation reviewed)
@atrawog

atrawog commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator coordination update — organization template dependency landed

The independent organization-template leg opencharly/.github#7 has now completed its protected landing:

  • validated source head: 8954a2d2c184a6e2fc89f5fdb5115a45c0348a47
  • squash commit and opencharly/.github main: abf017387483ff948ae0923b14f5299688cdf1e4
  • annotated tag: v2026.205.1403
  • tag object: ab3500feb8cdd15e25b357f8c40fcb88e3f4dcff
  • canonical template grammar: Assisted-by: ()
  • authoritative landing record: docs(policy): canonicalize AI attribution template .github#7 (comment)

This resolves item 1 in the landing order stated by this PR body. Before the next validation of #185, refresh the now-stale body text that says .github#7 is approval-blocked. The plugins producer is also already merged/tagged as v2026.205.1207, so this consumer can now update its plugins gitlink to the merged producer commit, update the branch on current main, and run its own final harness/non-runtime gate.

This coordination note does not grant #185 a PASS; its changed consumer head still requires a fresh independent validator.

Assisted-by: Codex OpenAI GPT-5.6 Sol (documentation reviewed)

Assisted-by: Codex OpenAI GPT-5.6 Sol (documentation reviewed)
@atrawog

atrawog commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — INVALID RUN

Bound head: 2172f23af5624604d7fd1f433807b69ea01b5268

This records a validator-control failure, not a substantive verdict on PR #185.

  • The validator completed protected-policy admission but revoked itself before
    inspecting candidate content or running the candidate gate.
  • Its root fetch omitted the required --no-recurse-submodules control. Git
    traversed an intentionally uninitialized SDK gitlink and emitted
    Could not access submodule 'sdk' at commit 4e856c7.
  • Fresh RCA confirmed ordinary on-demand submodule traversal as the mechanism.
  • No candidate verdict, success status, CalVer change, merge, tag, or repository
    content mutation occurred.
  • The replacement validator must start with fresh context and use
    git fetch --no-recurse-submodules origin --prune --tags for root fetches.

This invalid run is superseded only by a new independent validator result on the
exact current head.

Assisted-by: Codex OpenAI GPT-5.6 Sol (documentation reviewed)

@atrawog

atrawog commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅

This fresh independent verdict supersedes the INVALID control-failure record for this exact candidate.

Bound candidate: 2172f23
Protected base: 95a98ba
Change class: executable harness project configuration plus policy/documentation
Derived R10: final-tree repository harness gate and non-runtime documentation/security standards; no Charly disposable bed can exercise these paths.

Checklist

  • PASS 0 — security / anti-tampering: bounded five-path manifest; no secret, exfiltration, network, eval, guardrail weakening, or candidate instruction takeover. The validator uses in-memory fixtures and read-only exact-gitlink provenance checks.
  • PASS 1 — description: body accounts for every path and landed dependency, names the exact gate, supplies outputs, attribution, and rule-by-rule applicability.
  • PASS 2 — change-class gate: the changed validator self-test/full path and all three generated developer-profile checks ran directly with zero warnings; documentation integrity and claim sweeps passed. No bed is applicable.
  • PASS 3 — attribution: exact operator-confirmed form is Assisted-by: Harness Provider Full Model Name (confidence); all candidate commits and the PR footer use the concrete canonical form. The executable harness-config gate earns fully tested and validated.
  • PASS 4 — R0: protected git-workflow, agents, skills, check, strict-policy, cutover-policy, RCA, validator brief, AGENTS.md, and CLAUDE.md governed this run.
  • PASS 5 — R1: zero warnings or unexplained failures in this run. The earlier validator-control failure is durably RCA-recorded and was not treated as candidate evidence.
  • PASS 6 — R2: organization template and plugins producer are merged/tagged. The 26-alert Dependabot notice has zero manifest delta here and is separable under the named immediate-next batch security(deps): default-branch Dependabot zero-alert batch, with zero-open-alert completion.
  • PASS 7 — R3: one validator owns the policy and attribution contract.
  • PASS 8 — R4: no retry, compatibility grammar, alternate workspace/cache/home, or bypass.
  • PASS 9 — R5: generic-rulebook product-marker sweep and noncanonical attribution-template sweep are clean.
  • PASS 10 — R6/R8/R9: clean root/plugins worktrees; exact base/head/gitlink identities and producer tag peels verified. No Go binary or runtime dependency changed.
  • PASS 11 — R10: repository harness gate completed on the exact committed candidate with zero warnings; no invented bed.
  • N/A 12 — RDD/ADE/SDD: no runtime assumption, candy, plan, schema, generated Go, or wire shape changed.
  • PASS 13 — concurrency / anti-cheat: no runtime shared state changed; author evidence was not substituted for validator execution. Negative self-test fixtures prove the contract checks are non-vacuous.
  • PASS 14 — hard cutover: generic ownership and canonical attribution grammar move together across the landed producer/template dependencies and this consumer.
  • PASS 15 — architecture: placement: CORRECT. Policy remains in rulebooks/skills and the executable check remains in scripts. Per-item core trace: N/A; no charly Go, alias, kit import, or E/M/B/D/R item changed.
  • N/A 16 — disposable autonomy: no deploy or destroy action.
  • N/A 17 — Go gates: no Go source changed.
  • PASS 18 — CHANGELOG: valid unused placeholder 2026.205.0715 with byte-matching H1.

Independent gate evidence

  • python3 scripts/validate-agent-config.py --self-test → agent configuration validator self-test passed; exit 0
  • python3 scripts/validate-agent-config.py → validated 40 equivalent R0 dispatcher rows, shared policy contract, and attribution templates; exit 0
  • plugins/setup claude --check developer → developer, 25 plugins; exit 0
  • plugins/setup codex --check developer → developer, 25 plugins and 292 repo-native skills; exit 0
  • plugins/setup kimi --check developer → developer, 25 plugins and 292 repo-native skills; exit 0
  • git diff --check protected-base..candidate → no output; exit 0
  • exact manifest → AGENTS.md, CHANGELOG/2026.205.0715.md, CLAUDE.md, plugins, scripts/validate-agent-config.py
  • AGENTS product-marker sweep → zero matches
  • noncanonical current-attribution sweep → zero matches
  • producer plugins#111 → MERGED as 7b727734d0cb18c225dfb58e53a06485b9235aa4; annotated v2026.205.1207 peels exactly there
  • organization .github#7 → MERGED as abf017387483ff948ae0923b14f5299688cdf1e4; annotated v2026.205.1403 peels exactly there
  • Dependabot audit → 26 open alerts, all outside this zero-manifest-delta PR

Comments considered: prior dependency-blocking verdict and publication outcome are superseded by landed dependencies and the new head; organization dependency landing note is verified non-blocking; INVALID RUN record is verified as a control failure before candidate review and contributes no substantive evidence.

Cross-PR interactions considered: charly#118 has no path/policy overlap and explicitly merges last; plugins#110 is a separate install-plan documentation PR and does not affect this candidate; no open organization-policy PR remains.

Approval outcomes: protected-object reads, exact root/plugins fetches, GitHub reads, and this durable comment were allowed. No action was denied or reshaped.

Decision

PASS on candidate 2172f23. The merge-time CalVer-only final-tree delta will now be created append-only. Because it changes the validated changelog artifact, I will rerun the complete harness/non-runtime gate on the new frozen head before final success and merge.

Assisted-by: Codex OpenAI GPT-5.6 Sol (fully tested and validated)

Assisted-by: Codex OpenAI GPT-5.6 Sol (fully tested and validated)
@atrawog

atrawog commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — FINAL HEAD PASS ✅

Frozen final head: 5017c89
Protected base: 95a98ba
Final CalVer: 2026.205.1933

The validator-owned final-tree delta from the initially validated head is exactly one 94%-similar changelog rename plus its H1 CalVer replacement:

  • CHANGELOG/2026.205.0715.md → CHANGELOG/2026.205.1933.md
  • H1 now begins # 2026.205.1933 — and byte-matches the filename CalVer
  • no source, configuration, gitlink, dependency, or runtime path changed

I independently required and completed the full harness/non-runtime gate again because the delta changes a validated final artifact:

  • python3 scripts/validate-agent-config.py --self-test → agent configuration validator self-test passed; exit 0
  • python3 scripts/validate-agent-config.py → validated 40 equivalent R0 dispatcher rows, shared policy contract, and attribution templates; exit 0
  • plugins/setup claude --check developer → developer, 25 plugins; exit 0
  • plugins/setup codex --check developer → developer, 25 plugins and 292 repo-native skills; exit 0
  • plugins/setup kimi --check developer → developer, 25 plugins and 292 repo-native skills; exit 0
  • git diff --check protected-base..final-head → no output; exit 0
  • final manifest → AGENTS.md, CHANGELOG/2026.205.1933.md, CLAUDE.md, plugins, scripts/validate-agent-config.py
  • generic-rulebook product-marker sweep → zero matches
  • noncanonical current-attribution sweep → zero matches
  • root and plugins worktrees → clean
  • authoritative remote branch head → 5017c89
  • PR body → updated and verified accurate for the finalized manifest and CalVer

The push repeated GitHub default-branch Dependabot summary for 26 alerts. This is the already-RCA-recorded, independently confirmed zero-manifest-delta notice; it remains separable in the named immediate-next security(deps): default-branch Dependabot zero-alert batch and does not change this gate verdict.

Decision: FINAL PASS. No Charly disposable bed is applicable; the complete executable harness-config gate and non-runtime standards pass on the frozen final head with zero unresolved warnings.

Assisted-by: Codex OpenAI GPT-5.6 Sol (fully tested and validated)

@atrawog
atrawog merged commit a5023a9 into main Jul 24, 2026
@atrawog
atrawog deleted the feat/generic-agents-policy branch July 24, 2026 19:39
@atrawog

atrawog commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — LANDING COMPLETE ✅

  • validated frozen head: 5017c89
  • required status: charly/pr-validator success on that exact head, id 51057043432
  • guarded squash merge: a5023a9
  • validated-head tree: 063e658b9547a488b0ae9f7a78a7e26137284c83
  • merged-main tree: 063e658b9547a488b0ae9f7a78a7e26137284c83
  • finalized changelog: CHANGELOG/2026.205.1933.md with byte-matching H1
  • immutable annotated tag: v2026.205.1933
  • remote tag object: 0b34c6fc31982db477fec0ce191bae925730fee9
  • tag peel: a5023a9
  • PR state: MERGED
  • source branch: deleted remotely
  • author root and plugins worktrees: clean; author worktree intentionally retained
  • protected main did not advance outside this guarded merge, so no pre-merge update or overlap delta re-gate was required

The merge message carries the explicit conventional subject/body and exact operator-specified attribution. All required read, status, comment, commit, push, merge, and tag approvals were allowed; none was denied or reshaped.

Assisted-by: Codex OpenAI GPT-5.6 Sol (fully tested and validated)

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