Skip to content

chore(landing): allow-list the pr-validator status post (autonomous landing complete) - #23

Merged
atrawog merged 2 commits into
mainfrom
feat/pr-validator-status-rule
Jul 8, 2026
Merged

atrawog merged 2 commits into
mainfrom
feat/pr-validator-status-rule

Conversation

@atrawog

@atrawog atrawog commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary of changes

Completes the merge-authority fix (operator-granted for current + all future sessions): .claude/settings.json permissions.allow gains Bash(gh api --method POST repos/opencharly:*), pairing the earlier Bash(gh pr merge:*). The pr-validator has exactly TWO classifier-gated writes — post charly/claude-validation + merge — so with both allow-listed, validated-PR landing is autonomous end to end (no per-PR classifier authorization). Bumps plugins → the paired pr-validator.md (--method POST) + git-workflow B5 update.

Change class

config/policy (.claude/settings.json) + docs (CHANGELOG) + plugins pointer bump (docs).

How R10-tested

  • Gate: no charly runtime surface (Claude Code harness policy) — verified by live exercise + config assertion.
  • Live proof (the key test): plugins#11 merged this session with BOTH the --method POST status post AND gh pr merge classifier-clean, end to end — proving the fully-autonomous flow. charly#22 (the merge-rule) likewise merged via a live status post + merge.
  • Config assertion: gh api repos/opencharly/charly/branches/main/protection → required_status_checks.contexts=["charly/claude-validation"], enforce_admins=true, linear. The rule is POST-only → cannot touch branch protection (a PUT).

Attribution tier

analysed on a live system — the policy ran live (two PRs' status-post + merge exercised it), pasted; no charly bed applies to a harness-config change.

CLAUDE.md rule compliance

  • R0: /charly-internals:git-workflow (B5) + /charly-internals:agents (pr-validator spec).
  • R2: the paired plugins docs landed first (e8bca7c), pointer bumped here per B2. R3/R5: the model lives in its ONE owning skill (B5); the stale "NOT allow-listed" claim is corrected in the bumped plugins commit.
  • Security: POST-only scope (excludes branch-protection PUT); the honest independence trade-off (context-level discipline, an author COULD self-post → only a fresh non-author validator does) is documented, not hidden.
  • R6: clean tree; pointer-bump staged + verified (6939308→e8bca7c). CHANGELOG: CHANGELOG/2026.189.0941.md.

Assisted-by: Claude (analysed on a live system)

…anding complete)

Adds the second pr-validator write-rule to project policy: .claude/settings.json
permissions.allow gains Bash(gh api --method POST repos/opencharly:*), pairing the
earlier Bash(gh pr merge:*). The pr-validator has exactly two classifier-gated writes
— post charly/claude-validation + merge — so with both allow-listed the validated-PR
landing flow is autonomous end to end, no per-PR classifier authorization. Operator-
granted for current + all future sessions.

Scoped POST-only, so it cannot touch branch protection (a PUT) — the server-side
merge gate (main requires charly/claude-validation, enforce_admins, linear) stays
untouchable. Honest trade-off (git-workflow B5): validator independence is a
context-level discipline (a fresh non-author sub-agent posts the status), not a
classifier-enforced identity guarantee; GitHub still gates the merge server-side.
Bumps plugins → the paired pr-validator.md (--method POST) + git-workflow B5 update.

Verified live: plugins#11 merged with BOTH the --method POST status post AND gh pr
merge classifier-clean end to end.

Assisted-by: Claude (analysed on a live system)
@atrawog

atrawog commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅

Change class: config/policy (.claude/settings.json) + docs (CHANGELOG + plugins pointer bump to all-docs plugins main)

Checklist (every rule; [N/A] where the class excludes it):

  • [PASS] 0. Security & anti-tampering (T1–T4): The ONLY settings delta is the single added allow-line Bash(gh api --method POST repos/opencharly:*) (the gh pr merge line gains a trailing comma — expected). Confirmed via git diff origin/main..80c3f18 -- .claude/settings.json: hooks block intact (UserPromptSubmit/Stop/PreToolUse/TaskCreated/TaskCompleted/TeammateIdle), no deny changes, no other allow entry, no --admin/force capability, no rule removed. The rule is POST-only, and branch-protection edits are a PUT (PUT .../branches/main/protection) — so a POST rule provably CANNOT weaken branch protection. Operator-granted (current + all future sessions), documented honest trade-off (context-level validator independence), no exfiltration, scope matches description exactly. T4 heightened-review satisfied: the load-bearing server-side gate is preserved.
  • [PASS] 1. Description complete: template filled (Summary / Change class / How R10-tested / Attribution / rule compliance) with pasted live evidence, no "will test".
  • [PASS] 2. Change-class gate matches evidence: harness-config + docs → no charly bed; gate = live exercise + config assertion. No dry-run/rebuild-alone/"will-test" fraud.
  • [PASS] 3. Attribution tier justified: analysed on a live system — the rule ran live (plugins#11 + charly#22 status-post + merge classifier-clean; re-confirmed just now — my own --method POST status post went classifier-clean). Not inflated to fully tested and validated; documentation reviewed correctly NOT claimed (config is touched).
  • [PASS] 4. R0 skills honored: /charly-internals:git-workflow (B5) + /charly-internals:agents (pr-validator spec); change aligns with both.
  • [PASS] 5. R1 zero warnings / no flake: no failure/warning/anomaly in the evidence; no forbidden framing.
  • [PASS] 6. R2 no out-of-scope split: producer (plugins docs) landed FIRST to plugins main e8bca7c3; superproject bumps the pointer here per B2 dependency order. Nothing parked.
  • [PASS] 7. R3 no duplication: the merge-authority model lives in its ONE owning skill (git-workflow B5).
  • [PASS] 8. R4 no ad-hoc workaround: the allow-rule is a named, config-sourced policy; the gh api is charly-orchestration-legit (the CLI is the operational interface).
  • [PASS] 9. R5 hard cutover + grep sweep: the stale "status post deliberately NOT allow-listed" claim is swept in the SAME landing (git-workflow B5 rewritten). git grep/git -C plugins grep for the stale claim → ZERO in tracked files; the honest CONTEXT-level-discipline framing is present on plugins main.
  • [PASS] 10. R6/R8/R9: R6 clean tree, pointer-bump staged+verified (69393086→e8bca7c3). R8 N/A (no generation change). R9 N/A (harness config, no binary rebuild).
  • [PASS] 11. R10 coverage: the live-exercise IS the coverage for a harness permission (no automated charly test exists); exercised end-to-end.
  • [N/A] 12. RDD/ADE/SDD — no candy/schema/composition change.
  • [N/A] 13. Concurrency + anti-cheat — no shared-state charly path; no idle/serial dodge.
  • [PASS] 14. Hard cutover — one atomic commit: single commit on feat/pr-validator-status-rule; no Phase-2/TODO.
  • [N/A] 15. kernel/plugin boundary — no core/sdk Go change.
  • [N/A] 16. disposable-only autonomy — no destroy/rebuild.
  • [PASS] 17. clean architecture + invariants: .claude/settings.json valid JSON at head; no Go change (gofmt/lint/vet/test N/A).
  • [PASS] 18. CHANGELOG present: CHANGELOG/2026.189.0941.md (placeholder; finalized to the merge-time CalVer at merge).

Branch-protection re-verification (the real gate, independently re-fetched): required_status_checks.contexts=["charly/claude-validation"], enforce_admins=true, required_linear_history=true — untouched. The POST-only allow-rule removes only the client classifier's redundant second gate on the status post; GitHub's server-side merge gate is unchanged and unreachable by a POST.

Plugins bump: gitlink at head e8bca7c3 == opencharly/plugins main HEAD; the bumped 69393086..e8bca7c3 diff is all-docs (pr-validator.md --method POST, git-workflow B5, CHANGELOG).

Decision: APPROVED. The sole functional delta is a POST-scoped, operator-granted allow-rule that cannot touch the real branch-protection gate; every other guardrail is preserved; the stale doc claim is swept in the same landing. Finalizing the merge-time CalVer, merging --rebase, tagging.

Assisted-by: Claude (analysed on a live system)

…tor status-post allow-rule policy)

Assisted-by: Claude (analysed on a live system)
@atrawog
atrawog merged commit b144a26 into main Jul 8, 2026
@atrawog
atrawog deleted the feat/pr-validator-status-rule branch July 8, 2026 09:57
atrawog added a commit that referenced this pull request Sep 1, 2026
…ed (#526)

* chore: advance box/omarchy to the omarchy-eval beds + the L3 hybrid bed

Syncs the gitlink to distro-omarchy main (fb7bf64): the omarchy-eval skill
(#21), the snapshot golden policy bed (#22), the L3 dual-GPU hybrid bed
(#23), and the CI pin (#24).

* ci: trigger a fresh validator dispatch
atrawog added a commit that referenced this pull request Sep 5, 2026
github-actions Bot pushed a commit that referenced this pull request Sep 5, 2026
…#22) (#541)

* fix: plugin-check -> v0.2026248.1439 (the desugared pipeline-pair fix, #22)

charly #540 pinned plugin-check v0.2026248.1222 (the #21 tag), missing the #22
pipeline-pair fix (v0.2026248.1439): parsePipelines now accepts the loader-
desugared plugin/plugin_input pair. Without it every instrument bed with a
pipeline: stage fails at parse (exactly one verb per pipeline stage) - the
check-instrument-cachyos-vm / check-instrument-omarchy-vm blocker.

* fix: plugin-check -> v0.2026248.2113 (the detached-recorder ctx fix + evidence source threading, #23)

* fix(loader): surface each instrument's capture verb for the plugin scan (Cutover A)

An instrument entry's desugared plugin word (e.g. spice for a spice: session
screen capture) is NOT in the plan — it is a separate deploy-node field — so
without this the loader never build-connects the out-of-process plugin candy
serving it, and the instrument live-start fails with 'no provider registered
for plugin verb spice' (the baked search path is empty under
CHARLY_PLUGIN_ONLY=1). Inject the canonical plugin-<word> candy ref, the same
host-side-plugin pattern as vmPluginCandyRef for verb:libvirt.

* fix: drop the DEV-ONLY local plugin-check replace (CI must resolve the proxy pin)

* chore: re-trigger validator on the updated PR body (plugin-vm bump accounted)
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