Repository navigation
feat(landing): squash-only merges; a PR is updated in place, never closed and recreated - #42
Conversation
…osed and recreated `main` now gains exactly ONE commit per cutover, and a PR under review is UPDATED IN PLACE instead of being closed and recreated. Both follow from one change of merge method. The problem: the flow merged --rebase and required the author's cutover to be a single commit on feat/<slug>. Force-push is forbidden absolutely, so on a CHANGES-REQUESTED verdict there was no way to update the branch in place -- an amended commit diverges and can only be published by a force-push, and a second change commit would land on main as a second commit. The only move left was to close the PR and open a replacement, churning the review history once per round (six times across PRs #36-#41 for one hook cutover). The fix -- atomicity is a property of `main`, not of the branch: - scripts/apply-branch-protection.sh enforces SQUASH-ONLY merge settings (allow_squash_merge=true, allow_rebase_merge=false, merge-commit off, delete-branch on) across all 11 repos. required_linear_history, enforce_admins, allow_force_pushes=false, allow_deletions=false and the required charly/claude-validation context are UNCHANGED: this changes the merge METHOD only and weakens no gate. - The evaluator merges `gh pr merge --squash --delete-branch`, composing the squash message itself (subject + body + the author's Assisted-by trailer). The author's change, any review-round fix commits, and the merge-time version stamp fold into ONE commit on main. - On CHANGES REQUESTED the author APPENDS a fix commit and pushes fast-forward; the status resets and the evaluator re-runs. Closing a PR is reserved for work that will not land at all (a disproven premise, an abandoned approach). - The force-push ban is untouched and still absolute. `git commit --amend` on a PUSHED branch is now named explicitly as forbidden for the same reason: it diverges the branch and can only be published by a force-push. Amend only before the first push. R10 (script class -- the changed script executed LIVE): `bash -n` clean; `verify` against the pre-change live settings reported drift on all 11 repos (exit 1), proving the predicate discriminates rather than rubber-stamping; `apply` then reported every repo compliant (exit 0); an independent re-verify confirmed it. Branch protection re-read from the API afterwards: enforce_admins=true linear=true force_push=false deletions=false ctx=charly/claude-validation strict=true -- unchanged. Paired doctrine sweep: plugins PR #17 (gitlink bumped) carries the skill/agent side and corrects the merge-authority model -- the authority is the superproject's committed permissions.allow pair, and NO autoMode key exists in any settings file. That PR was itself updated in place, the first exercise of this policy. Assisted-by: Claude (fully tested and validated)
plugins PR #17 merged as CHANGELOG/2026.190.1823.md — the skill/agent side of the squash-only + PR-update-in-place landing policy, plus the permissions.allow merge-authority correction. Records the finalized CalVer in this repo's changelog. Appended as a second commit on the feat branch: legal under the new policy, since --squash folds it into the single main commit. Assisted-by: Claude (fully tested and validated)
pr-validator — APPROVED ✅Change class: hook/workflow SCRIPT ( I re-derived every verdict independently (fresh evaluator, trusted nothing the author claimed). Checklist
DecisionThe change alters the merge METHOD only (rebase→squash) to make atomicity a property of Assisted-by: Claude (analysed on a live system) |
…ly landing policy) Merge-time version stamp for the squash-only landing-policy cutover (scripts/apply-branch-protection.sh + CLAUDE.md + plugins doctrine bump). Assisted-by: Claude (fully tested and validated)
…D2 plugins half (#49) The chain-final pointer bump: plugins #42 (the boundary-law plugin-host skill rewrite, the pr-validator ARCHITECTURE GATE, the orchestrator integrity duty + responsibility matrix) merged as b7082ae on plugins main; this superproject commit pins it. Pure submodule-pointer bump to an all-documentation submodule commit — the narrative lives in the plugins CHANGELOG and the superproject 2026.194.0751 entry from the first commit. Assisted-by: Claude (documentation reviewed) Claude-Session: https://claude.ai/code/session_017rPy3PE6EuVHWsBbAUvxxL
…ks-doctrine enumeration (#49) R5 fix (V-D2chain CHANGES-REQUESTED on #88): the Hooks-doctrine PreToolUse-gate enumeration named 6 gates but omitted the 7th this cutover adds — the ZERO-ALIASES no-new-alias block. Appended it (declaration-form, tier-independent, fail-open, allows residual kit imports/calls) so CLAUDE.md matches the hook gate-set and the merged #42 agents-skill layer-1 enforcement wording. Docs-only; the hook files are unchanged (no gate re-run needed). Assisted-by: Claude (documentation reviewed) Claude-Session: https://claude.ai/code/session_017rPy3PE6EuVHWsBbAUvxxL
docs → 25fe13e (opencharly/docs#41 endpoint fix + #42 local-only regen, tag v2026.224.2253) plugins → 6d58de3 (opencharly/marketplace#151 agentteams family, tag v2026.224.2253) Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)
## Summary of changes
Unit 7 of the AgentTeams integration — the documentation surface, plus the controller-endpoint
default correction it surfaced. The AgentTeams stack now ships as a first-class `agentteams`
marketplace family, discoverable and documented end to end:
- **Marketplace family registry** — `agentteams` joins the `marketplace:` `families:` map in
`candy/charly-hooks/charly.yml` (`category: images`, `profiles: [container]`), so any skill
declaring the family publishes under `plugins/agentteams/` instead of failing the generator's
closed family gate.
- **`agentteams` candy skill entity** (`candy/agentteams/charly.yml`) — the full-stack box skill:
the decomposed minio/matrix/element/higress/controller candies, the home-relative volumes
(`~/.agentteams/{minio,matrix,higress,controller}`), the container ports, the pod + vm deploy
substrates, the deploy-overridable `AGENTTEAMS_*` env, and the controller-spawns-manager →
create-worker → room verification sequence.
- **`agentteams-cli` candy skill entity** (`candy/plugin-agentteams/charly.yml`) — the compiled-in
`charly agentteams` management CLI skill: command tree (`status`, `worker|team|human …`,
`apply -f`, `config`), endpoint/token discovery, and worker-create flags.
- **Controller endpoint default corrected** (`candy/plugin-agentteams/control.go` + the skill
description) — the CLI's hardcoded default was the upstream published-port convention
`http://127.0.0.1:18090`, which this box never reproduces: the controller serves `:8090`
in-container with host mappings auto-allocated at deploy, so a default pointing at 18090 failed
every reader. Fixed at the code (the default constant → `http://127.0.0.1:8090`) before the
prose, per R4a. New deterministic coverage: unit test `TestNewAPIClientDefaultEndpoint` (fails
without the change) + the pod-bed check `agentteams-plugin-config-default` (`charly agentteams
config` asserts the 8090 default, no network).
- **`AGENTTEAMS_LOCAL_ONLY` removed from the deploy-overridable env list**
(`candy/agentteams/charly.yml` skill entity) — the plugins validator's FAIL #2 surfaced the
false claim: nothing consumes the variable (the controller candy's `env_accept:` lacks it, the
start script never reads it, and the upstream AgentTeams v1.2.2 controller binary never reads it
— it is an interactive install-time choice in the upstream installer, not a runtime env var).
Removed at the source; the marketplace and docs projections are regenerated in the producer PRs
(opencharly/marketplace#151, opencharly/docs#42).
- **`charly-agentteams` enabled plugin** (`.claude/settings.json` `enabledPlugins`) — consistent
with the existing tracked marketplace-plugin entries.
- **Regenerated surfaces** — `charly marketplace generate` materializes `plugins/agentteams/`
and `charly docs generate` emits the reference pages + `recipes/agentteams/*`, both with the
corrected default. Both regenerations are deterministic no-ops on a clean tree. The regenerated
producer heads ride via **gitlink bumps** (commit `c9f10bcd`): docs → `25fe13e`
(opencharly/docs#41 endpoint fix + #42 local-only regen, tag `v2026.224.2253`), plugins →
`6d58de3` (opencharly/marketplace#151 agentteams family, tag `v2026.224.2257`).
- **CHANGELOG** — `CHANGELOG/2026.224.2355.md` staged (placeholder CalVer, finalized at merge),
covering both the endpoint-default fix and the `AGENTTEAMS_LOCAL_ONLY` source fix.
## Change class
`mixed (Go + config + docs)` — a runtime code change (`control.go` endpoint default constant +
its test) + declarative doc entities + a new bed check in `charly.yml` + CHANGELOG. The
runtime-class gate applies: the disposable pod bed.
## How R10-tested — exact gate, commands, and pasted output
- **The gate for this change class:** the **runtime standard** — `charly check run
check-agentteams-pod` on the disposable pod bed (build → check box → fleet add → config →
start → check live → fresh update → teardown), now including the new
`agentteams-plugin-config-default` check — at **zero warnings**; plus the non-runtime
standards: `charly box validate` clean, both regenerations deterministic no-ops, the
fail-closed whole-site link gate, and the unit suite (`go test ./...` in the charly module
including the new default-endpoint test).
- **Eval beds run:** `check-agentteams-pod` (disposable).
- **Fresh rebuild:** the worktree `bin/charly` (2026.224.2157) rebuilt from the fixed source; the
changed code path — the CLI's `newAPIClient` default resolution — executes live inside the bed
via the `agentteams-plugin-config-default` host step.
- **Concurrency:** N/A — no shared loader/deploy/arbiter state touched.
```
# the exact gate — unit suite (incl. the new default test) + source-surface validation
$ cd charly && go test ./... # green, incl. TestNewAPIClientDefaultEndpoint
$ cd .. && ./bin/charly box validate
exit 0, zero warnings
# deterministic regeneration of both derived surfaces (each re-run is a no-op, exit 0)
$ ./bin/charly marketplace generate # writes plugins/agentteams/* + marketplace/profiles index
$ ./bin/charly marketplace generate # no-op
$ ./bin/charly docs generate --out docs/src/content/docs --root . # emits the agentteams pages
$ ./bin/charly docs generate --out docs/src/content/docs --root . # no-op; link gate passed
# the runtime standard — the disposable pod bed (fills the R10 evidence)
$ ./bin/charly check run check-agentteams-pod
charly check run check-agentteams-pod: [image-build] PASS after 1m15.032s
charly check run check-agentteams-pod: [check-image] PASS after 26.604s
charly check run check-agentteams-pod: [deploy-add] PASS after 27.373s
charly check run check-agentteams-pod: [config] PASS after 19.449s
charly check run check-agentteams-pod: [start] PASS after 15.991s
charly check run check-agentteams-pod: [bring-up-members] PASS after 41ms
charly check run check-agentteams-pod: [check-live] PASS after 1m0.317s
charly check run check-agentteams-pod: [feature-run] PASS after 25.558s
charly check run check-agentteams-pod: [update] PASS after 1m36.888s # fresh rebuild
charly check run check-agentteams-pod: [check-live-rebuild] PASS after 44.776s
charly check run check-agentteams-pod: [feature-run-rebuild] PASS after 25.225s
charly check run check-agentteams-pod: [cleanup] PASS after 18.589s
charly check run check-agentteams-pod: [cleanup-members] PASS after 0s
charly check run check-agentteams-pod: PASS (steps=13)
# the changed path executed live — the new check in both the initial and the fresh-rebuild check-live:
# .check/check-agentteams-pod/2026.224.2223/check-live.log:78
# PASS check the compiled-in `charly agentteams config` command reports the controller endpoint default 8090 [agentteams-plugin-config-default] exit=0
# .../check-live-rebuild.log:77 — same PASS on the fresh rebuild
# suite summary (both runs identical): 74 steps: 65 passed, 0 failed, 9 skipped (verify-only mutating run steps)
```
## Attribution tier
`fully tested and validated` — every runtime standard ran: the fresh-rebuild disposable pod bed
at zero warnings (including the new `agentteams-plugin-config-default` check that fails without
the `control.go` change), the unit suite including the new default-endpoint test, `charly box
validate` clean, both regenerations deterministic no-ops incl. the fail-closed link gate. The
changed runtime path (the CLI default endpoint resolution) executed live inside the bed.
## Harness rulebook compliance — state HOW each is satisfied (or `N/A — <reason>`)
- **R0 skills:** `/charly-internals:skills` (skill authoring + marketplace-family mechanics +
published-surface rules), `/charly-internals:plugin` (the `plugin:` block + family registry),
`/charly-build:docs` (the generated-site contract + link gate), `/charly-check:check` (the bed
+ R10 gate by change class), `/charly-internals:go` (the compiled-in plugin module) loaded
before authoring.
- **R1 RCA + zero warnings:** the 18090 default was RCA'd to its root — the CLI's hardcoded
fallback inherited the upstream published-port convention the agentteams box does not reproduce
(the candy `port:` schema has no host-port pinning; host mappings auto-allocate). Fixed at the
code before the prose (R4a). Bed + validate + regenerations all at zero warnings.
- **R2 no out-of-scope:** the endpoint fix is the same cutover's surfaced issue (it made the
Unit-7 docs wrong); the source drifts the regeneration surfaced (gemini split, k8s→kubernetes
projection) are absorbed in the producer PRs, not parked.
- **R3 no duplication:** the family registry is the single `marketplace:` source; the skills are
generated from the candy `skill:` entities; the endpoint default is a single constant.
- **R4 no workaround:** no sleeps/retries/magic-numbers; no ad-hoc commands against
charly-managed resources; the fix is the product's behavior, not a doc caveat.
- **R5 hard cutover + grep:** no legacy path; a claim-keyed `git grep 18090` on the sources
returns only fix-narrative context — the historical `CHANGELOG/2026.224.0759.md` (the Unit-5
record of the original default), the env-override test in `control_test.go` (which exercises
`AGENTTEAMS_CONTROLLER_URL` with a non-default URL), and the bed-check comment in `charly.yml`
explaining the fix — never a live default; every generated page and the code carry 8090. A
claim-keyed `grep -rn AGENTTEAMS_LOCAL_ONLY` on the superproject sources returns nothing (the
false deploy-overridable claim is fully removed; the identifier never shipped in docs history).
- **R6 git safety:** branch from `origin/main` (`55dc23ea`); the gitlink bumps landed as a
fast-forward commit (`c9f10bcd`) only after both producers merged — never staged against
unmerged branch commits.
- **R7 runtime gate:** the `check-agentteams-pod` bed ran (below), exit 0, zero warnings.
- **R8 artifact invariants:** `N/A` for the docs half; the OCI artifact's baked checks are
asserted by the bed's check-live phase.
- **R9 binary == source + deps:** the worktree `bin/charly` (2026.224.2157) built from the
fixed source; no runtime OS deps added.
- **R10 disposable + coverage:** `charly check run check-agentteams-pod` on the
`disposable: true` pod bed, fresh rebuild; the new `agentteams-plugin-config-default` check +
`TestNewAPIClientDefaultEndpoint` fail without the change. The `AGENTTEAMS_LOCAL_ONLY` source
fix is a skill-entity text change — its gate is the regeneration determinism (both producer
regenerations are no-ops on the committed tree) + the R5 grep, both green.
- **RDD / ADE / SDD:** ADE: the declaring candies each ship `description:` + a deterministic
`check:` — `charly box validate` passes. SDD/RDD: `N/A` — no schema change.
- **Hard cutover:** the Unit-7 cutover (commit `77929297`) + the endpoint fix commit + the
gitlink-bump commit (`c9f10bcd`) after both producers merged; no "Phase 2/TODO/deferred" left
in scope.
- **Kernel/plugin boundary law:** the fix lives in the compiled-in plugin module
(`candy/plugin-agentteams/`), not the kernel; import purity unchanged.
- **Disposable-only autonomy:** the bed is `disposable: true`; no other destroy/rebuild.
- **Clean architecture + Go gates:** `go test ./...` green, zero warnings.
- **CHANGELOG:** `CHANGELOG/2026.224.2355.md` staged (placeholder CalVer — the pr-validator
finalizes it).
Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)
…clude expansion (#42) The released plugin-check v0.2026250.1843 never spliced plan includes in the live-gather path ('charly check run <bed>' collected the raw plan, so include: steps were reported SKIP and never executed). plugin-check #42 (v0.2026254.5) applies expandPlanIncludes in all three live arms + threads the run dir as CHECK_RUN_DIR. Adopt the pin; the dev-only local replace is removed.
…clude expansion (#42) (#581) * chore: re-pin sdk to v0.2026253.1947 (the deploy-hop qualified-from: fix) * re-trigger validator: R10 scoped to the pin changed path * chore: bump the plugin-check pin to v0.2026254.5 — the live-gather include expansion (#42) The released plugin-check v0.2026250.1843 never spliced plan includes in the live-gather path ('charly check run <bed>' collected the raw plan, so include: steps were reported SKIP and never executed). plugin-check #42 (v0.2026254.5) applies expandPlanIncludes in all three live arms + threads the run dir as CHECK_RUN_DIR. Adopt the pin; the dev-only local replace is removed. * chore: re-trigger validator after the released-pin R10 bed-run evidence
…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]>
Summary
mainnow gains exactly ONE commit per cutover, and a PR under review is updated in place instead of closed and recreated. Both follow from one change of merge method.Change class: script (
scripts/apply-branch-protection.sh) + CLAUDE.md + CHANGELOG +pluginsgitlink bump. Gate: execute the changed script live. Tier:fully tested and validated(the docs ride along at the script's runtime tier).The problem
The flow merged
--rebaseand required the author's cutover to be a single commit onfeat/<slug>. Force-push is forbidden absolutely, so on a CHANGES-REQUESTED verdict there was no way to update the branch in place: an amended commit diverges and can only be published by a force-push, and a second change commit would land onmainas a second commit. The only move left was to close the PR and open a replacement — churning review history once per round. That happened six times across PRs #36–#41 for a single hook cutover.The fix — atomicity is a property of
main, not of the branchscripts/apply-branch-protection.shenforces squash-only merge settings across all 11 repos (allow_squash_merge=true,allow_rebase_merge=false, merge-commit off, delete-branch on).gh pr merge --squash --delete-branch, composing the squash message itself (subject + body + the author'sAssisted-by:trailer). The author's change, any review-round fix commits, and the version stamp fold into ONE commit.git commit --amendon a PUSHED branch is now named explicitly as forbidden for the same reason.No gate is weakened (T4 self-check)
This PR edits the branch-protection script — the security machinery. Only the merge METHOD changed. Re-read from the API after
apply:R10 evidence — the changed script executed live
bash -nclean.verifyagainst the pre-change live settings reported drift on all 11 repos (exit 1) — proving the predicate discriminates rather than rubber-stamping:Then
apply— every repo applied and self-verified compliant (exit 0):An independent re-
verifyafterwards:✓ opencharly/charly: compliant/✓ opencharly/plugins: compliant, exit 0.The policy proved itself before landing
Paired
pluginsPR #17 was updated in place (append + fast-forward push, never closed) and squash-merged: a three-commit branch (original +gh pr update-branchmerge + fix commit) landed as exactly one commit on pluginsmain(3149fc9 → 1043577), carrying itsAssisted-by: Claude (documentation reviewed)trailer. This PR's gitlink bump points at it.That PR also corrects the merge-authority model: the authority is the superproject's committed
permissions.allowpair, and noautoModekey exists in any settings file — a false claim that had been sitting onmain.Note for the evaluator
This branch carries two commits (policy + gitlink bump). That is intentional and is what the new policy prescribes. Merge with
--squash—--rebaseis now disabled on the repo; verify withgh api repos/opencharly/charly --jq '.allow_squash_merge, .allow_rebase_merge'. Compose the squash message yourself and carry theAssisted-by: Claude (fully tested and validated)trailer.R0–R10
git grep -- --rebasereturns onlyCHANGELOG/history in both repos; no authority-claimingautoModereference survives outsideCHANGELOG/.git status+git stash listchecked before every tree action.bash -n+ the changed script executed live in both modes, drift-then-compliant, outputs pasted. Superproject tree clean.Assisted-by: Claude (fully tested and validated)