Repository navigation
feat!: PR-only agent-validated landing — forbid + disable direct pushes to main - #1
Merged
Merged
Conversation
…es to main The runtime-enforcement half of the PR-only landing cutover. main advances ONLY through a PR that a fresh pr-validator agent validates and merges: - .claude/hooks/pre-push-gate.sh: block any push whose refspec destination is main (feat/ and refs/tags/ pushes stay allowed; bare push → server-side protection) - scripts/apply-branch-protection.sh: idempotent apply/verify of per-repo rebase- only + branch protection (require PR, required charly/claude-validation status strict, linear history, no force/deletion, enforce_admins) — the spike-proven body - .github/pull_request_template.md: canonical PR template - CLAUDE.md: Post-Execution Auto-land → two-step PR flow; hooks doctrine main-block; pr-validator in the roster; acceptance-checklist + dispatcher updated - plugins pointer → merged pr-validator agent + git-workflow/skills rewrites Live-proven: the hook blocks main pushes (19/19 push-form cases); the protection mechanics were RDD-spiked on a throwaway repo; the plugins half landed through this very flow (the fresh evaluator caught a real R5 miss and blocked the merge until fixed, then finalized the merge-time CalVer and rebase-merged). Assisted-by: Claude (analysed on a live system) Claude-Session: https://claude.ai/code/session_01LjLm6DGQasmXaXw2ZorwhE
Fresh pr-validator finalized the merge-time CalVer for opencharly/charly PR #1 (PR-only agent-validated landing, superproject half): renamed the placeholder CHANGELOG/2026.188.0950.md to CHANGELOG/2026.188.0958.md. Independently re-verified the pre-push-gate main-block push matrix (blocks main, allows feat/ + refs/tags/), apply-branch-protection.sh verify (compliant on charly + plugins), the plugins gitlink alignment (5e5f523 == plugins main), and the R5 sweep (clean, superproject + plugins). Assisted-by: Claude (analysed on a live system) Claude-Session: https://claude.ai/code/session_01LjLm6DGQasmXaXw2ZorwhE
This was referenced Jul 9, 2026
atrawog
added a commit
that referenced
this pull request
Jul 16, 2026
…e two more copies Per ruling: item #1 of the wave-3-leaves batch is genuinely IMPORT-PURITY-safe (both the helper and its callers are core, no kit-import change) — the other five items ride the K4 consumer cutover instead. bundle_add_cmd_k8s.go was a stray one-function file: its sole caller, k8sDeployPreresolve (the deploy:k8s F1 host preresolver), is core-legitimate and stays core, so there is no plugin/kit "owner" to relocate to — the honest fix is folding the helper next to its actual sibling, GenerateK8sKustomize, in k8s_generate.go, and deleting the stray file. While fixing the inline duplicate in k8s_deploy_from_box.go (its own opts.OutputDir default recomputed the identical cwd+.opencharly/k8s join), found a THIRD copy in status_collect_k8s.go's k8sTreeRoot — same file cluster, same theme, zero new imports, zero architectural risk, so unified that one too rather than leaving a freshly-discovered duplicate standing next to the code already being touched. Also fixed k8sTreeRoot's own doc comment, which cited a filename ("deploy_add_cmd_k8s.go") that never matched the real file even before this deletion. Verified k8s_deploy_from_box.go's unification is behavior-preserving: its one caller (bundle_from_box_cmd.go) always passes ProjectDir as os.Getwd(), so switching its empty-OutputDir fallback to the shared cwd-based helper changes nothing observable; no test exercises the empty-ProjectDir edge case. R5 grep: no remaining reference to the deleted filename outside this commit's own explanatory "moved from" comment; defaultK8sOutputDir has exactly one definition (k8s_generate.go) and three call sites. Assisted-by: Claude Code Claude Sonnet 5 (fully tested and validated)
This was referenced Jul 17, 2026
This was referenced Aug 3, 2026
Merged
This was referenced Aug 12, 2026
atrawog
added a commit
that referenced
this pull request
Aug 17, 2026
…cumented anti-pattern
Two claims the previous fix left standing, both of which plugins/main already
had right.
The dependency table was corrected to supervisord-only, but the same skill kept
"CUDA toolkit dependency" in a Related Candies bullet 67 lines below it, and
"with CUDA GPU support" in its description — still contradicting the sibling
ollama skill, which states the candy carries no cuda dependency and that GPU
boxes compose CUDA at the IMAGE level. The earlier self-test was keyed to the
table-row string, so it could not match the word in a bullet: knowing a claim
is fixed somewhere is not knowing it is fixed everywhere.
The check prose used ${CONTAINER_IP}:${HOST_PORT:11434}. The candy itself uses
127.0.0.1:${HOST_PORT:11434}, and this corpus's own authoring-gotchas page rules
that construction WRONG as gotcha #1 — in rootless podman the pod-network IP is
not reachable host-side. So the projection would have published a named
anti-pattern as the documented check for a candy that does it correctly. That
form was transcribed rather than authored: the previous commit rewrote the
prose around it and preserved it verbatim.
Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)
This was referenced Aug 24, 2026
Merged
aitrawog
pushed a commit
that referenced
this pull request
Oct 5, 2026
…osts
Replace the "is PRE-EXISTING and structural, not a regression" framing in the
six-step budget note with the measured calibration:
- the step `shell-oneshot-roundtrip` costs 94.9s on a QUIET host, measured
directly on the live deploy (not inferred from `charly box validate`);
- this bed's `plan:` is 13 steps -- 7 `check:` and 6 `run:`. A check-live pass
dispatches the 7 `check:` steps and SKIPS the 6 `run:` steps ("skipped --
verify-only mode (mutating step)"), and all 7 `check:` steps invoke
`${CHARLY_BIN}`. Six of the seven declared no `timeout:`, so each inherited
the runner's per-attempt never-hang floor;
- measured: `shell-oneshot-roundtrip` PASSED in this bed's check-live phase and
was killed in its check-live-rebuild phase after 2m0.023s -- same tree, same
binary. 94.9s under a 120s floor is a 1.27x margin, so ordinary timing
variation is enough; no roster-wide saturation is required to explain it.
The note now names the exit this budget advances instead of parking the cost:
#650's recorded direction #1 ("give load-sensitive bed steps
an explicit `timeout:`"), for six further members of that batch. The
load-sensitive project-evaluation COST stays filed as opencharly/sdk#319 /
#650, and the pure-CPU-saturation measurement that belongs to
that cost (1112.7s at sustained load ~125) is recorded there, not here.
Comment-only: no plan step, id, command or `timeout:` changes.
Agent: readme-truth - session 2a317871-ba03-4713-89ba-8edbd4059c27
Assisted-by: Claude Code 2.1.288 deepseek-v4.1-flash:cloud
github-actions Bot
pushed a commit
that referenced
this pull request
Oct 6, 2026
… bed (#803) * fix(check): declare the missing step budgets in the check-sidecar-pod bed The bed opencharly/plugin-deploy-vm#39 nominates as its R10 coverage failed non-deterministically: `shell-oneshot-roundtrip` PASSED in the check-live phase (exit=0) and was killed by the never-hang ceiling after 2m0.023s in the check-live-rebuild phase of the same run — same tree, same binary, two verdicts. Root cause (R1, measured): the step declares no `timeout:`, so its probe inherits the ~120s per-attempt never-hang fallback, while every executing `${CHARLY_BIN}` step in this bed pays charly's own project evaluation before it does its own work — 65s measured on an idle host. /charly-check:check states the rule: "`timeout:` is MANDATORY for any step longer than the never-hang ceiling (~120s)". A SIGQUIT goroutine dump of a hung step shows exactly one busy goroutine, [runnable], CPU-bound in CUE disjunction/overlay expansion — not I/O, not a lock, not a plugin wait. Excluded by measurement: stale plugin locks, plugin-spawn fan-out, stdin/TTY, .check fixture poisoning. Not a #762 regression: the umbrella's pinned pre-#762 checkout measures 68s / 609-125-45 against this base's 65s / 609-125-42 — identical scale and cost. Declare 300s on the six executing `${CHARLY_BIN}` steps of this bed — sidecar-pod-running, service-status-output-present, sidecar-pod-restarted, shell-oneshot-roundtrip, ephemeral-register-roundtrip, box-pull-dispersal-roundtrip. 300s is the value this file already carries for this step class in three landed instances (sidecar-pod-roundtrip-final, check-pod-overlay/pod-overlay-running, check-commands-local/status-runs), whose comment records the same mechanism; this bed's executing steps were the ones never swept. No product change: the budget buys the bed correctness, and the project-evaluation COST stays filed as opencharly/sdk#319 and #650, as that precedent's comment already says. Same-mechanism siblings in other beds are recorded with their evidence on #650; a bed-runner phase budget is not a plan step and is untouched here. Assisted-by: Claude Code 2.1.288 deepseek-v4.1-flash:cloud (fully tested and validated) * fix(check): rewrite the check-sidecar-pod budget note with measured costs Replace the "is PRE-EXISTING and structural, not a regression" framing in the six-step budget note with the measured calibration: - the step `shell-oneshot-roundtrip` costs 94.9s on a QUIET host, measured directly on the live deploy (not inferred from `charly box validate`); - this bed's `plan:` is 13 steps -- 7 `check:` and 6 `run:`. A check-live pass dispatches the 7 `check:` steps and SKIPS the 6 `run:` steps ("skipped -- verify-only mode (mutating step)"), and all 7 `check:` steps invoke `${CHARLY_BIN}`. Six of the seven declared no `timeout:`, so each inherited the runner's per-attempt never-hang floor; - measured: `shell-oneshot-roundtrip` PASSED in this bed's check-live phase and was killed in its check-live-rebuild phase after 2m0.023s -- same tree, same binary. 94.9s under a 120s floor is a 1.27x margin, so ordinary timing variation is enough; no roster-wide saturation is required to explain it. The note now names the exit this budget advances instead of parking the cost: #650's recorded direction #1 ("give load-sensitive bed steps an explicit `timeout:`"), for six further members of that batch. The load-sensitive project-evaluation COST stays filed as opencharly/sdk#319 / #650, and the pure-CPU-saturation measurement that belongs to that cost (1112.7s at sustained load ~125) is recorded there, not here. Comment-only: no plan step, id, command or `timeout:` changes. Agent: readme-truth - session 2a317871-ba03-4713-89ba-8edbd4059c27 Assisted-by: Claude Code 2.1.288 deepseek-v4.1-flash:cloud --------- Co-authored-by: atrawog <[email protected]>
This was referenced Oct 13, 2026
This was referenced Oct 23, 2026
This was referenced Nov 1, 2026
github-actions Bot
pushed a commit
that referenced
this pull request
Nov 2, 2026
… 0 (#1088) (#1102) The per-call idle guard was blind to a compiled-in peer: providerPid returned 0, so the process-tree source watched nothing, and a build whose work lives in buildkitd was killed at the 90s no-progress window while it was working (opencharly/.github#263 item (c), measured on pod-crabbox PR #1). Root fix in charly/plugin_activity.go: - A compiled-in peer now watches the HOST's DESCENDANTS (buildctl, the engine's load child) instead of pid 0, with the host root excluded so the runtime's own ticks cannot mask a wedged call. - The tree sample is CPU ticks PLUS /proc/<pid>/io bytes (rchar+wchar), so an I/O-bound OCI export / engine load is observed as work. - A compiled-in peer also follows the charly-owned DETACHED daemon trees (buildkitd under rootlesskit, reparented to init), discovered generically by argv under the user's charly cache/runtime dirs -- never by a daemon kind word. This covers a quiet BuildKit RUN, where the client emits nothing for longer than the window. - The stop func now joins the watcher, so a stopped clock cannot sample after return (and cannot race a restored test seam). Tests: descendant-I/O arm, detached-daemon arm (fails with discovery off), the daemon-discovery unit, and the genuine-hang arm (no descendant, no daemon) still trips. R5: providerPid/treeTicks/cpu()/cpus/lastCPU are gone. Reproduction (pod-crabbox PR #1 head d9b11549, charly#1101 pin tree): default pre-fix rc=1 (killed at OCI export); CHARLY_PLUGIN_NO_PROGRESS=20m rc=0; final default rc=0 (542s). Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated) Co-authored-by: Andreas Trawoeger <[email protected]>
github-actions Bot
pushed a commit
that referenced
this pull request
Nov 2, 2026
…04 (#1101) sdk #478 (squash 8656f7d, tag v0.2026305.2312) makes deploykit's candy COPY source origin-driven, so a candy declared in an imported namespace is marked Remote and staged under .build/_candy/<name>.<version>/ instead of the impossible project-relative candy/<name>/ (opencharly/.github#263 item (b)). plugin-build v0.2026305.2204 (#42) is the release that resolves an imported `arch` intermediate from the charly image store instead of re-pulling it from ghcr — the first blocker on .github#263. The sdk bump is a root requirement, so MVS also selects it for the compiled-in plugin-build packages; the plugin-build pin advance brings the image-store base resolution. The pin-currency PR gate fires on charly/go.mod, so this change also aligns the tools/* lockstep modules with `charly task mods-tidy` and advances the four behind/STALE box/* leaf pins with `charly task sync`. Gate (the repo's .github/workflows/ci.yml and pin-currency.yml): - go test ./charly/... rc=0 (466.189s) - tools/* GOWORK=off sweep rc=0 (gomod-canonical shared-pin contract) - go build ./... (charly module) rc=0 - go vet ./... rc=0 - gofmt -l charly tools empty - golangci-lint (go1.26.8, CI toolchain) rc=0, 0 issues (charly + every tools module) - scripts/bootstrap-charly.sh rc=0; ./bin/charly version = 2026.303.0223 - charly task mods-tidy rc=0 - charly task sync rc=0 (4 box/* leaf pins advanced) - charly task pin-currency-proof rc=0 - measure-pin-cadence.py --self-test rc=0 (PIN-CADENCE-SELF-TEST-OK) - charly task pin-current rc=0 (0 of 6 NOT current; 6 cur) Live: pod-crabbox PR #1 head d9b11549 built end to end with the rebuilt charly under CHARLY_PLUGIN_NO_PROGRESS=20m CHARLY_PLUGIN_LEAF_CAP=60m. The generated Containerfile emits COPY .build/_candy/cachyos-os-skills/ and COPY .build/_candy/cachyos-base-check/, and the image ghcr.io/opencharly/pod-crabbox:2026.305.2333 was produced (rc=0). The default bounds still hit the separately-diagnosed 90s no-progress ceiling in charly/plugin_activity.go (opencharly/.github#263 item (c)). Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated) Co-authored-by: Andreas Trawoeger <[email protected]>
This was referenced Nov 15, 2026
This was referenced Nov 22, 2026
This was referenced Nov 27, 2026
Merged
github-actions Bot
pushed a commit
that referenced
this pull request
Nov 28, 2026
…so a cold build is not cancelled (#1328) * fix(plugin): give the deploy REBUILD dispatch the heavy idle window, so a cold build is not cancelled #1322, part 1. 'charly update <pod> --build' runs 'charly box build <box>' INSIDE the deploy plugin, and buildkitd does the work in its own detached daemon, so the plugin's tree shows no CPU for minutes. On the 90s probe no_progress window that dispatch was cancelled mid-build and reached the operator as a bare 'signal: killed' - measured on pod-strata, whose strata box build died at '#1 load build definition' with buildkitd logging 'context canceled'. Measured fix: CHARLY_PLUGIN_NO_PROGRESS=15m made the same rebuild complete (rc=0). The window is now chosen per OP as well as per class: the rebuild op gets the heavy per-attempt window, the rest of the deploy class (config/start/stop/status) keeps the probe window, and a genuine hang still trips. Part 2 (the message half - a cancelled dispatch must NAME the bound instead of flattening to the plugin's child signal) stays open on #1322. Agent: cdi-audit · Claude Code session f760307f-53b4-4f48-87da-00f95e5300ed Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated) (cherry picked from commit 229da86) * chore: re-freeze — R7 claim corrected, every candidate carries its exit code No tree change. Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated) * chore: re-freeze — candidate D carries its pasted instrument No tree change. D now shows the code line a global window change would move (plugin_activity.go:519-524). Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated) * chore: re-freeze — D removed as a non-candidate, with the reason No tree change. D is not a solution to this cause; it is a global window relaxation, omitted rather than spiked. Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated) * chore: re-freeze — the Spike section is rebuilt without the orphaned D row No tree change. The previous edit left D's continuation lines behind the table, which is what the block saw. Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated) * chore: re-freeze — the round RCA is on the thread No tree change. Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated) * test(plugin): the dispatch call site now passes the op, so its source assertion moves with it TestStepWindowCallSiteUsesTheClassSelector asserted the literal call 'pluginInvokeNoProgressFor(class)' — the arity this change replaces with 'pluginInvokeNoProgressFor(class, req.GetOp())'. The go job on CI caught it; both assertions now match the call the diff makes, and the bare-probe-window guard still holds. Assisted-by: Claude Code deepseek-v4.1-flash:cloud (syntax check only) * chore: re-freeze — the body's commit and file counts match the diff No tree change. Four files, two code commits; the Summary said one commit / three files. Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated) * chore: re-freeze — round RCA posted for the count fix No tree change. Assisted-by: Claude Code deepseek-v4.1-flash:cloud (fully tested and validated)
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 of changes
The runtime-enforcement half of the project-wide cutover to a PR-only, agent-validated landing model. A direct push to
mainis forbidden AND mechanically disabled; every change lands through a PR that a FRESHpr-validatoragent independently validates and merges, generating + rewriting the merge-time CalVer..claude/hooks/pre-push-gate.sh— blocks anygit pushwhose refspec destination ismain/refs/heads/main;feat/+refs/tags/…pushes stay allowed; a baregit pushis left to server-side protection. Force-push/--no-verify/core.hooksPathblocks unchanged.scripts/apply-branch-protection.sh— idempotent apply/verify of per-repo rebase-only + branch protection (require PR, requiredcharly/claude-validationstatus strict, linear history, no force/deletion,enforce_admins)..github/pull_request_template.md— canonical PR template.CLAUDE.md— Post-Execution Auto-land → two-step PR flow; hooks-doctrine main-block;pr-validatorin the roster; acceptance-checklist + dispatcher updated.pluginspointer → the mergedpr-validatoragent + git-workflow/skills rewrites (opencharly/plugins landed via this same flow).How tested (R10)
Change class: code/config + hook/workflow (the pre-push gate + the branch-protection script are behavioral).
main/HEAD:main/+main/refs/heads/main/feat:main+ force +--no-verify+core.hooksPath; allowsfeat/…,refs/tags/…,main:feat/x, bare push).enforce_admins+ rebase-merge + status re-post +gh pr update-branchconcurrent recovery + direct-push-to-main block) were RDD-spiked live on a throwaway repo before any code depended on them.apply-branch-protection.shverify path exercised read-only; apply path applied live toopencharly/plugins+opencharly/charly.pr-validatorcaught a real incomplete-R5-sweep on pass 1 and blocked the merge, then on the fix finalized the merge-time CalVer (2026.188.0947) and rebase-merged into pluginsmainat5e5f523(no force-push, no--admin).Attribution tier
analysed on a live system— the changed runners (the pre-push gate, the protection script) executed live with pasted output, and the whole landing flow was exercised end-to-end via the plugins dogfood.Rule-compliance checklist
git grepcleanCHANGELOG/<CalVer>.mdstaged (placeholder 2026.188.0950 — the pr-validator finalizes it)Assisted-by: Claude (analysed on a live system)