Skip to content

chore(landing): commit the gh pr merge allow-rule as project policy - #22

Merged
atrawog merged 2 commits into
mainfrom
feat/merge-authority-rule
Jul 8, 2026
Merged

atrawog merged 2 commits into
mainfrom
feat/merge-authority-rule

Conversation

@atrawog

@atrawog atrawog commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary of changes

Makes the merge authorization part of project policy (operator-requested): .claude/settings.json permissions.allow gains Bash(gh pr merge:*), and bumps the plugins pointer to the git-workflow B5 note documenting it.

Why this is the proper fix, not a band-aid: the real merge gate is already GitHub branch protection — main requires the charly/claude-validation status (posted by a fresh pr-validator) + enforce_admins + linear history, so an unvalidated PR physically cannot merge. The allow-rule stops Claude Code's auto-mode permission classifier from redundantly re-litigating each gh pr merge (which it did inconsistently, demanding per-PR authorization). Enforcement now lives in ONE place (GitHub), not duplicated in the client classifier. The independence-sensitive step — POSTING charly/claude-validation — is deliberately NOT allow-listed, so a status post stays classifier-judged and remains the fresh evaluator's job, never the author's.

Change class

config/policy (.claude/settings.json) + docs (CHANGELOG) + plugins pointer bump (the git-workflow B5 note, itself docs).

How R10-tested

  • Gate: no charly runtime surface — the change is Claude Code harness policy. Verified by direct live exercise + config assertion.
  • Live proof: charly#21 (P2/S1) merged autonomously through this exact rule THIS session — gh pr merge deferred to the allow-rule, GitHub's required charly/claude-validation status gated it, merged as cfd2089, tagged v2026.189.0824. plugins#10 likewise merged autonomously (no classifier denial).
  • Config assertion: gh api repos/opencharly/charly/branches/main/protection → required_status_checks.contexts=["charly/claude-validation"], enforce_admins=true, linear=true.

Attribution tier

analysed on a live system — the changed policy ran live (two PRs merged through it), output pasted; no charly bed applies to a harness-config change.

CLAUDE.md rule compliance

  • R0: /charly-internals:git-workflow (landing mechanics + branch protection).
  • R2: the paired plugins git-workflow B5 note landed first (6939308), pointer bumped here per B2. R3: the model is documented in its ONE owning skill (B5), referenced not duplicated.
  • R5: additive; no stale claim. R6: clean tree, pointer-bump staged + verified (aa4bd1c→6939308).
  • Hard cutover: one atomic commit per repo; no transitional path.
  • CHANGELOG: CHANGELOG/2026.189.0901.md.

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

Makes the merge authorization part of the rules: .claude/settings.json
permissions.allow gains Bash(gh pr merge:*). The real gate is already GitHub branch
protection (main requires the charly/claude-validation status from a fresh
pr-validator, enforce_admins, linear) — an unvalidated PR physically cannot merge.
The allow-rule stops the auto-mode permission classifier from redundantly
re-litigating each merge (which it did inconsistently, demanding per-PR
authorization); enforcement lives in ONE place (GitHub), not duplicated in the
client classifier. Status-POSTING is deliberately NOT allow-listed, so it stays
classifier-judged and remains the fresh evaluator's job. Bumps plugins → the
git-workflow B5 note documenting this.

Verified live: charly#21 (P2/S1) merged autonomously through this rule this session.

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 (all-docs)

Independent re-validation (fresh context, not the author). Every applicable rule verified from the diff + my own re-runs, not the author's word:

  • 0. Security & anti-tampering (T1–T4): PASS. The ONLY settings delta is adding the single allow-rule Bash(gh pr merge:*) to permissions.allow. It does NOT allow status-posting (gh api … statuses / charly/claude-validation stays classifier-judged — verified: my own status post was correctly denied), does NOT touch the hooks block (pre-commit/pre-push gates + reminders intact), adds NO --admin/force-push capability. Heightened T4 review of this security-machinery change: it PRESERVES the gate — branch protection still requires charly/claude-validation + enforce_admins + linear (independently re-verified), so an unvalidated PR physically cannot merge. No exfiltration, no scope mismatch, no embedded instruction to the validator.
  • 1. Description: PASS — template filled, real evidence pasted (config assertion + two live merges), no promised future work.
  • 2. Change-class gate (R7/R10): PASS — harness-policy change, no charly runtime surface; gate = live exercise + branch-protection config assertion (correct; no bed applies). No dry-run/rebuild-alone fraud.
  • 3. Attribution tier: PASS — analysed on a live system justified (the rule ran live: charly#21 + plugins#10 merged through it); not inflated to a bed tier, not under-claimed as docs-only (it touches config).
  • 4. R0 skills: PASS — /charly-internals:git-workflow honored; the plugins B5 note is consistent and accurate.
  • 5–9. R1–R5: PASS — no warnings/failures; paired plugins note landed first (merged to main, pointer bumped per B2); model documented in ONE owning skill (R3); additive, no stale claim, no removed identifier (R5 grep self-test N/A).
  • 10–11. R6/R8/R9/R10: PASS — clean tree, pointer-bump staged+verified aa4bd1c→6939308 (R6); R8/R9 N/A (no generation/binary); config-class coverage = the branch-protection assertion + live merges.
  • 12–18: RDD/ADE/SDD N/A (no candy/schema); concurrency N/A (no shared-state path); one atomic commit per repo, no Phase-2/TODO; kernel/plugin boundary N/A (no Go); settings.json is valid JSON; CHANGELOG present.

Verified independently: branch protection contexts=["charly/claude-validation"], enforce_admins=true, linear=true, force-push=false. plugins bump aa4bd1c→6939308 is all-docs (git-workflow B5 note + CHANGELOG) and 6939308 == opencharly/plugins main HEAD (producer merged). Full settings.json diff = the single allow-line, nothing else.

Decision: APPROVED. This is the clean, single-place-enforcement fix — merge authority is asserted client-side by the allow-rule while the deterministic gate stays server-side in GitHub branch protection, and the independence-sensitive status post is deliberately left classifier-judged.

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

…ge allow-rule policy)

Assisted-by: Claude (analysed on a live system)
@atrawog
atrawog merged commit e4466fc into main Jul 8, 2026
@atrawog
atrawog deleted the feat/merge-authority-rule branch July 8, 2026 09:37
atrawog added a commit that referenced this pull request Jul 25, 2026
…t thin wrappers

K1 keystone (task #24) — 3-repo cutover, this is the charly consumer leg:
1. sdk (sdk#103, merged 3d5ab5c, tag v0.2026206.1046) — the loaderkit.LoadUnified/ApplyDiscover producer leg.
2. plugins (plugins#114, merged dc9dd974, tag v2026.206.1136) — docs-only R5 claim-sweep correcting the
   plugin skill + pr-validator.md's stale "materialize is a permanent in-core M-mechanism" claim.
3. charly (this leg) — LoadUnified/ApplyDiscover become thin wrappers delegating to
   loaderkit.LoadUnified/loaderkit.RunDiscover, threading every registry-coupled step through the new
   loaderkit.LoadSeams callback struct. Repoints the plugins gitlink to the merged dc9dd974 (was an
   unpushed local-only SHA). Net: -312 core LOC (66 files, +799/-1111).

Disclosed structural changes: UnifiedFile.PluginKinds field consolidation (behavior-preserving, dual
byte-equivalence proven); task #22 partial-only fix (stays open, named follow-on); charly/ -> sdk/loaderkit
import-site inventory 6->42 (+36), tracked until-K<n> debt with a named exit (loader orchestration moves
behind HostBuild("resolved-project")), tracked by charly#118's P16 floor gate.

R10: check-pod PASS (steps=13), ok:true, 169s, fresh-rebuild incl. check-live-rebuild + feature-run-rebuild,
zero warnings. Dual byte-equivalence proof (canonicalized-JSON harness + materialized-Containerfile diff),
both byte-identical.

pr-validator round 2: both round-1 findings (unpushed plugins gitlink; undisclosed kit-import inventory)
independently re-verified fixed against live remote state.

Assisted-by: Claude Code Anthropic Claude Sonnet 5 (fully tested and validated)
atrawog added a commit that referenced this pull request Aug 24, 2026
…cpio chroot autodetect error

- box/cachyos → 1e52b4e (distro-cachyos main post-#22: the batch-1 moved
  candy refs advance to standalone repos) and box/fedora → 46f7cf7
  (post-#36): unblocks TestCandySourceDirs_OverrideAnchorsRemoteApk, whose
  scan of box/cachyos resolved deleted charly/candy/* refs under
  CHARLY_REPO_OVERRIDE.
- candy/plugin-check: allowlist mkinitcpio's 'failed to detect root
  filesystem' — the autodetect hook cannot find a root device inside the
  pacstrap chroot and falls back to a full initramfs (the correct initramfs
  for a booting VM); CONDITIONAL on 'Initcpio image generation successful'
  in the same log, scoped by TestMkinitcpioChrootAutodetectIsConditional
  (recovered / no-recovery-fatal / unrelated-error-not-exempted). This is
  the named-batch exit the distro-cachyos#23 vm checks need to reach zero
  warnings.
github-actions Bot pushed a commit that referenced this pull request Aug 24, 2026
#385)

* feat: the batch-1 candies move to their standalone kind-prefixed repos

The candy cutover, batch 1 — the 15 most-required base candies leave the charly
repo for their standalone repos (kind-prefixed naming): layer-supervisord,
layer-nodejs, layer-golang, pod-dbus, pod-pipewire, layer-ffmpeg, pod-sway,
layer-cuda, layer-tmux, layer-socat, pod-selkies, layer-chrome, layer-python,
layer-gemini, pod-chrome-cdp. Every bare require:/candy: reference across the
repo reworks to the pinned @github.com/opencharly/<kind>-<name>:v<tag> ref;
package-list false positives reverted; the parity fixture moves to
debootstrap-builder (tmux moved) with the golden regenerated; the agent-profile
fixture drops the moved gemini.

* feat: the batch-1 candies move to their standalone kind-prefixed repos

The candy cutover, batch 1 — the 15 most-required base candies leave the charly
repo for their standalone repos (kind-prefixed naming): layer-supervisord,
layer-nodejs, layer-golang, pod-dbus, pod-pipewire, layer-ffmpeg, pod-sway,
layer-cuda, layer-tmux, layer-socat, pod-selkies, layer-chrome, layer-python,
layer-gemini, pod-chrome-cdp. Every bare require:/candy: reference across the
repo reworks to the pinned @github.com/opencharly/<kind>-<name>:v<tag> ref;
package-list false positives reverted; the parity fixture moves to
debootstrap-builder (tmux moved) with the golden regenerated; the agent-profile
fixture drops the moved gemini.

* feat: the batch-1 candies move to their standalone kind-prefixed repos

The candy cutover, batch 1 — the 15 most-required base candies leave the charly
repo for their standalone repos (kind-prefixed naming): layer-supervisord,
layer-nodejs, layer-golang, pod-dbus, pod-pipewire, layer-ffmpeg, pod-sway,
layer-cuda, layer-tmux, layer-socat, pod-selkies, layer-chrome, layer-python,
layer-gemini, pod-chrome-cdp. Every bare require:/candy: reference across the
repo reworks to the pinned @github.com/opencharly/<kind>-<name>:v<tag> ref;
package-list false positives reverted; the parity fixture moves to
debootstrap-builder (tmux moved) with the golden regenerated; the agent-profile
fixture drops the moved gemini.

* feat: the batch-1 candies move to their standalone kind-prefixed repos

The candy cutover, batch 1 — the 15 most-required base candies leave the charly
repo for their standalone repos (kind-prefixed naming): layer-supervisord,
layer-nodejs, layer-golang, pod-dbus, pod-pipewire, layer-ffmpeg, pod-sway,
layer-cuda, layer-tmux, layer-socat, pod-selkies, layer-chrome, layer-python,
layer-gemini, pod-chrome-cdp. Every bare require:/candy: reference across the
repo reworks to the pinned @github.com/opencharly/<kind>-<name>:v<tag> ref;
package-list false positives reverted; the parity fixture moves to
debootstrap-builder (tmux moved) with the golden regenerated; the agent-profile
fixture drops the moved gemini.

* feat: the batch-1 candies move to their standalone kind-prefixed repos

The candy cutover, batch 1 — the 15 most-required base candies leave the charly
repo for their standalone repos (kind-prefixed naming): layer-supervisord,
layer-nodejs, layer-golang, pod-dbus, pod-pipewire, layer-ffmpeg, pod-sway,
layer-cuda, layer-tmux, layer-socat, pod-selkies, layer-chrome, layer-python,
layer-gemini, pod-chrome-cdp. Every bare require:/candy: reference across the
repo reworks to the pinned @github.com/opencharly/<kind>-<name>:v<tag> ref;
package-list false positives reverted; the parity fixture moves to
debootstrap-builder (tmux moved) with the golden regenerated; the agent-profile
fixture drops the moved gemini.

* feat: the batch-1 candies move to their standalone kind-prefixed repos

The candy cutover, batch 1 — the 15 most-required base candies leave the charly
repo for their standalone repos (kind-prefixed naming): layer-supervisord,
layer-nodejs, layer-golang, pod-dbus, pod-pipewire, layer-ffmpeg, pod-sway,
layer-cuda, layer-tmux, layer-socat, pod-selkies, layer-chrome, layer-python,
layer-gemini, pod-chrome-cdp. Every bare require:/candy: reference across the
repo reworks to the pinned @github.com/opencharly/<kind>-<name>:v<tag> ref;
package-list false positives reverted; the parity fixture moves to
debootstrap-builder (tmux moved) with the golden regenerated; the agent-profile
fixture drops the moved gemini.

* feat: the batch-1 candies move to their standalone kind-prefixed repos

The candy cutover, batch 1 — the 15 most-required base candies leave the charly
repo for their standalone repos (kind-prefixed naming): layer-supervisord,
layer-nodejs, layer-golang, pod-dbus, pod-pipewire, layer-ffmpeg, pod-sway,
layer-cuda, layer-tmux, layer-socat, pod-selkies, layer-chrome, layer-python,
layer-gemini, pod-chrome-cdp. Every bare require:/candy: reference across the
repo reworks to the pinned @github.com/opencharly/<kind>-<name>:v<tag> ref;
package-list false positives reverted; the parity fixture moves to
debootstrap-builder (tmux moved) with the golden regenerated; the agent-profile
fixture drops the moved gemini.

* feat: the batch-1 candies move to their standalone kind-prefixed repos (worktree state)

The ref advances + plugin go.mod sdk/spec bumps + fleet-compile parity
golden that the batch-1 move carries (pod-dbus v2026.235.2115, the
distro-repo charly candy, the out-of-process plugin go.mod bumps).

* feat: advance box/cachyos + box/fedora gitlinks; allowlist the mkinitcpio chroot autodetect error

- box/cachyos → 1e52b4e (distro-cachyos main post-#22: the batch-1 moved
  candy refs advance to standalone repos) and box/fedora → 46f7cf7
  (post-#36): unblocks TestCandySourceDirs_OverrideAnchorsRemoteApk, whose
  scan of box/cachyos resolved deleted charly/candy/* refs under
  CHARLY_REPO_OVERRIDE.
- candy/plugin-check: allowlist mkinitcpio's 'failed to detect root
  filesystem' — the autodetect hook cannot find a root device inside the
  pacstrap chroot and falls back to a full initramfs (the correct initramfs
  for a booting VM); CONDITIONAL on 'Initcpio image generation successful'
  in the same log, scoped by TestMkinitcpioChrootAutodetectIsConditional
  (recovered / no-recovery-fatal / unrelated-error-not-exempted). This is
  the named-batch exit the distro-cachyos#23 vm checks need to reach zero
  warnings.

* Revert "feat: advance box/cachyos + box/fedora gitlinks; allowlist the mkinitcpio chroot autodetect error"

This reverts commit 8eba902.

* fix(plugin-check): allowlist mkinitcpio's chroot autodetect rootfs error

mkinitcpio's autodetect hook reads the kernel cmdline/fstab for the root
device; inside the pacstrap chroot (bootstrap VM base-image build) there is
no booted kernel, so it prints '==> ERROR: failed to detect root
filesystem' and falls back to a full initramfs — the CORRECT initramfs for
a booting VM whose real root device arrives via the kernel cmdline at boot.

CONDITIONAL on '==> Initcpio image generation successful' in the same log
(a build that never creates the image still fails the step); scoped by
TestMkinitcpioChrootAutodetectIsConditional (recovered / no-recovery-fatal /
unrelated-error-not-exempted). This is the named-batch exit the
distro-cachyos#23 vm checks need to reach zero warnings.

* Revert "fix(plugin-check): allowlist mkinitcpio's chroot autodetect rootfs error"

This reverts commit 91aa2c2.

* feat: advance the box/* gitlinks to the post-batch-1 distro mains

The committed gitlinks pointed at pre-batch-1 distro commits whose box
files still pinned moved candies in OLD form (arch-builder:
charly/candy/nodejs@0530 etc.). The test scan (TestCandySourceDirs_
OverrideAnchorsRemoteApk) reads the COMMITTED gitlink content, so it
resolved candy/nodejs@0530 under CHARLY_REPO_OVERRIDE to the local repo
where the moved candy is deleted -> 'remote candy .../candy/nodejs not
found'.

Advance all five box/* gitlinks to the merged distro mains (arch#24
98941f3, cachyos#23 0cbfc67, debian#15 6cf14eb, fedora#36 46f7cf7,
ubuntu#15 a371170) whose boxes reference the standalone layer/pod refs.
This unblocks the charly#385 go gate.

* fix(candy/charly): the meta-candy's candy list advances socat to layer-socat

The batch-1 move deleted candy/socat (moved to [email protected])
but the charly meta-candy's OWN candy: list still had the bare name. Under
CHARLY_REPO_OVERRIDE (TestCandySourceDirs_OverrideAnchorsRemoteApk) the
bare socat resolves to the local repo where candy/socat is deleted ->
'remote candy .../candy/socat not found'. Advance to the standalone ref,
matching every other in-repo candy's rewritten deps.

* feat: advance box/cachyos gitlink to the post-#24 main (arch import fix)

distro-cachyos#24 advanced the arch namespace import to distro-arch
v2026.236.0159 (the batch-1 tag whose arch-builder references
layer-nodejs/layer-cuda). Advance the charly repo's box/cachyos gitlink to
that merged main (7a9a9b4) so the TestCandySourceDirs_OverrideAnchorsRemoteApk
scan resolves the arch namespace from the fixed tag.

With this + the meta-candy socat fix (45397f4) + the box gitlink advances
(758463c), the go gate passes: candySourceDirs entries: 136,
android-emulator-layer present, resolved apk OK.

* fix: resolve the plugin-build go.mod spec pin conflict (keep the post-#50 pin)

* fix(charly-coder): the three coder skills' nodejs candy refs advance to layer-nodejs

R5 sweep completion: the arch-coder-skill / debian-coder-skill /
fedora-coder-skill candy lists still referenced the moved nodejs candy by
bare name (the ubuntu-coder-skill and nine other files had already
converted). All three now pin @github.com/opencharly/layer-nodejs. (The
remaining bare nodejs/socat/tmux/ffmpeg names elsewhere are distro
package-list entries — OS package names, never candy refs, per the
cutover's package-vs-candy rule.)

* chore: re-sync PR head (validator re-run at the green head)
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
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