Repository navigation
docs(policy): amending a PR is allowed — force-push stays forbidden on any branch - #229
Conversation
…n any branch CLAUDE.md's landing step no longer lumps `--amend` in with the forbidden force-push: amending a feat/ branch before its first push is a normal authoring action, while force-push on ANY branch stays forbidden (main only fast-forwards via the validator's squash-merge; a pushed branch advances only by adding commits). The pre-push-gate's header comment states the same distinction explicitly — the gate gates force-pushes, never local amend. Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (documentation reviewed)
pr-validator — APPROVEDChange class: docs-only — prose in Security & anti-tampering (T1–T4): PASS. No code changes; the diff matches the description exactly (no scope mismatch); no secrets/exfiltration; no weakened guardrail — the gate logic is unchanged and its force-blocks were re-verified in the script: Checklist:
Phase 1b (docs scrutiny): a cold reader was spawned on the changed rulebook paragraph (forbidden every other source). Verdict: the changed step's do/don't core reads clearly and the new amend carve-out is "new nuance, not a contradiction" with R6. The flagged items are non-blocking: pre-existing term opacity ( Comments considered: none — the PR carries no comments. Cross-PR interactions considered:
Decision: APPROVED. The PR is a docs-only policy correction: force-push on any branch stays forbidden, direct-to- Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (documentation reviewed) |
|
Follow-up outcome record:
(Note: the cross-PR coordination comment for plugins#141 was initially blocked by the pre-push-gate hook — a false positive: the heredoc body contained "git-workflow" and "force-push", matching the gate's content glob Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (documentation reviewed) |
…ding a feat/ branch is legal until first push Policy correction (operator directive): amending a PR is a normal authoring action and must not be treated as forbidden; force-push on ANY branch stays forbidden. - `internals/skills/git-workflow/SKILL.md` — the non-negotiable invariant no longer reads "Never force-push or amend a pushed branch". It now reads "Never force-push, on any branch, ever", and states that amending a `feat/` branch is a normal authoring action, legal until the first push (amending a pushed branch would require a forbidden force-push; a pushed branch advances only by adding commits). - `CHANGELOG/2026.218.1423.md` — changelog for this landing (CalVer finalized at merge by the fresh pr-validator). Docs-only change class — non-runtime standards, no bed. Matches the CLAUDE.md landing-policy wording in the superproject leg of the same cutover (opencharly/charly#229). Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (documentation reviewed)
Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (documentation reviewed)
|
Final landing record for this PR:
Operational note (transparency): mid-validation, the author worktree was taken over by another agent (its branch moved to Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (documentation reviewed) |
…2026250.702 - wire the retired-command-word guard into main() BEFORE kong.Parse (the guard file itself landed in the preceding fix commit; this is its call site) - KERNEL_MANIFEST.md: document retired_command_word.go (clause B — CLI-root bootstrap wiring, same class as main.go) - unified_test.go: hermeticize TestLoadUnified_AbsentFileReturnsNotPresent against the user config-stack layer (sdk v0.2026250.702+ LoadUnified merges the system → user → in-dir stack, so a sibling test's deploy-state write into the shared TestMain XDG_CONFIG_HOME surfaced as an existing user layer; R1 2026-09-07) - pins: sdk v0.2026250.527 → v0.2026250.702 (the #229+#231 tag), spec v0.2026250.523 → v0.2026250.656 per sdk 702's transitive require
… fleet/→deploy/ (#554) * feat(cutover-c2): retire the fleet vocabulary — FleetNode→DeployNode, fleet/→deploy/ CC-2 charly cutover: the charly module's fleet vocabulary retires in lockstep with the spec/sdk/plugin wave that already removed the group: kind and renamed the member tree. - charly/fleet_add_cmd.go → charly/deploy_add_cmd.go - charly/fleet_compile_parity_test.go → charly/deploy_compile_parity_test.go - charly/fleet_del_diagnostics_test.go → charly/deploy_del_diagnostics_test.go - charly/fleetnode_disposable_loader_test.go → charly/deploynode_disposable_loader_test.go - charly/node_fleet_test.go → charly/node_deploy_test.go - charly/testdata/fleet_compile_parity_{golden,tags}.json → charly/testdata/deploy_compile_parity_{golden,tags}.json - tools/golden-compile regenerates the renamed goldens - FleetNode → DeployNode, Fleet map → Deploy map, fleet add → deploy add, fleetDiscForEntity → deployDiscForEntity, LoadFleetConfig → LoadDeployConfig throughout Go sources, charly.yml, KERNEL_MANIFEST.md, and the root charly.yml corpus - pins UNCHANGED: spec v0.2026250.523, sdk v0.2026250.527 (the MCP packaging PR bumps to 632/650 after this lands) Verified: go build ./..., go vet ./..., go test ./... all exit 0 * docs(cc2): retire the fleet vocabulary across the repo-root rulebooks and README Finishes the CC-2 charly cutover's claim-keyed sweep: every remaining 'charly fleet add/del' reference in the repo-root docs (.gitignore, .reasonix/README.md, AGENTS.md, CLAUDE.md, README.md, PROGRAM/factory-north-star.md) moves to the new 'charly deploy add/del' surface. The candy/plugin-fleet package-name references are dispositioned for the plugin rename PR. * fix(cc2): gofmt the swept files + ship the retired-command-word intercept (was missed in the staging; pins stay spec 523 / sdk 527) * feat(cc2): complete the retired-command intercept + re-pin sdk to v0.2026250.702 - wire the retired-command-word guard into main() BEFORE kong.Parse (the guard file itself landed in the preceding fix commit; this is its call site) - KERNEL_MANIFEST.md: document retired_command_word.go (clause B — CLI-root bootstrap wiring, same class as main.go) - unified_test.go: hermeticize TestLoadUnified_AbsentFileReturnsNotPresent against the user config-stack layer (sdk v0.2026250.702+ LoadUnified merges the system → user → in-dir stack, so a sibling test's deploy-state write into the shared TestMain XDG_CONFIG_HOME surfaced as an existing user layer; R1 2026-09-07) - pins: sdk v0.2026250.527 → v0.2026250.702 (the #229+#231 tag), spec v0.2026250.523 → v0.2026250.656 per sdk 702's transitive require * test(cc2): isolate two more LoadUnified consumers from the sdk 702 config-stack user layer sdk v0.2026250.702+ merges the system → user → in-dir config stack in LoadUnified; a sibling test's deploy-state write into the shared TestMain XDG_CONFIG_HOME previously surfaced as an existing user layer and changed these two consumers: - plugin_bootstrap_test.go: the F9 marker comment was dropped by the yaml.Node merge, so the marker-gated transform never fired and the stale version was rejected by the schema gate - layers_test.go: the merged user-layer candy map shadowed the fixture's local svc candy Both now set their own XDG_CONFIG_HOME (R1 2026-09-07, the CC-2 sdk 702 pin). * chore(cc2): re-pin sdk v0.2026250.702 → v0.2026250.758 (the duplicate-top-level-key fix, sdk #234) The sdk 702 config-stack merge (loaderkit/config_stack.go) silently collapsed duplicate top-level keys within a single config layer, making the parse-level 'duplicate top-level entity name' contract (pinned by TestCrossKindNameReuse_LoaderAcceptsAllKinds) unreachable. sdk #234 rejects duplicates per layer before the merge; spec follows to v0.2026250.709 (sdk 758's transitive require; go mod tidy confirms the minimal consistent graph). Full suite green. * test(cc2): B12 end-to-end exit-80 test + B14 sweep wording (pr-validator round 2) - retired_command_word_test.go: TestRetiredCommandWord_EndToEnd builds a real charly binary (buildCharlyBinary) and asserts exits 80 with the pointed retired-word message and Usage: charly <command> [flags] OpenCharly — the open infrastructure compiler for you and your agents Flags: -h, --help Show context-sensitive help. --host=STRING Remote host (alias or user@host[:port]) to run this command on via SSH ($CHARLY_HOST) --host-identity-file=STRING SSH identity file for --host ($CHARLY_HOST_IDENTITY_FILE) --host-option=HOST-OPTION,... OpenSSH option for --host (repeatable, KEY=VALUE) ($CHARLY_HOST_OPTION) -C, --dir=STRING Project directory containing charly.yml (default: cwd) ($CHARLY_PROJECT_DIR) --repo=OWNER/REPO[@ref] Read charly.yml from a remote git repo (e.g. opencharly/charly). Use 'default' for opencharly/charly ($CHARLY_PROJECT_REPO). Commands: agent [<args> ...] [flags] agent (out-of-process command plugin) agentteams [<args> ...] [flags] agentteams (out-of-process command plugin) alias [<args> ...] [flags] alias (out-of-process command plugin) cache [<args> ...] [flags] cache (out-of-process command plugin) candy [<args> ...] [flags] candy (out-of-process command plugin) check box [<args> ...] Pure-box check (disposable container, build-scope checks) check plan [<args> ...] Resolve a box's check plan and print it as JSON without running it check live [<args> ...] Full-stack check against a running deployment check feature [<args> ...] Run a running deployment's baked plan as acceptance tests; agent steps are agent-graded (Agent Driven Evaluation) check run [<args> ...] Run a disposable check bed (R10 sequence) or an iterate: entity (AI loop). check sync-credential [<args> ...] Copy AI credentials into a score's target. check scope [<args> ...] AI-facing: print the active iteration's scope.yml. check last-tag [<args> ...] AI-facing: print the prior iteration's image tag. check self-evaluate [<args> ...] AI-facing: re-run the in-scope plan live. check stop [<args> ...] Stop the in-flight run of a bed, scoped to that bed's lock holder. check list [<args> ...] List past runs under .check/. check report [<args> ...] Print a past result-<calver>.yml. check note [<args> ...] Persistent NOTES.md memory (read/append). check list-agent [<args> ...] List configured agents. clean [<args> ...] [flags] clean (out-of-process command plugin) cmd [<args> ...] [flags] cmd (out-of-process command plugin) config [<args> ...] [flags] config (out-of-process command plugin) cp [<args> ...] [flags] cp (out-of-process command plugin) doctor [<args> ...] [flags] doctor (out-of-process command plugin) dsh [<args> ...] [flags] dsh (out-of-process command plugin) examplecommand [<args> ...] [flags] examplecommand (out-of-process command plugin) feature [<args> ...] [flags] feature (out-of-process command plugin) fleet [<args> ...] [flags] fleet (out-of-process command plugin) logs [<args> ...] [flags] logs (out-of-process command plugin) migrate [<args> ...] [flags] migrate (out-of-process command plugin) ollama [<args> ...] [flags] ollama (out-of-process command plugin) preempt [<args> ...] [flags] preempt (out-of-process command plugin) reap-orphans [<args> ...] [flags] reap-orphans (out-of-process command plugin) remove [<args> ...] [flags] remove (out-of-process command plugin) restart [<args> ...] [flags] restart (out-of-process command plugin) service [<args> ...] [flags] service (out-of-process command plugin) settings [<args> ...] [flags] settings (out-of-process command plugin) shell [<args> ...] [flags] shell (out-of-process command plugin) ssh tunnel [<args> ...] Forward a VM's SPICE/VNC endpoint from a remote libvirt host to the local machine start [<args> ...] [flags] start (out-of-process command plugin) status [<args> ...] [flags] status (out-of-process command plugin) stop [<args> ...] [flags] stop (out-of-process command plugin) tmux [<args> ...] [flags] tmux (out-of-process command plugin) tui [<args> ...] [flags] tui (out-of-process command plugin) update [<args> ...] [flags] update (out-of-process command plugin) vm [<args> ...] [flags] vm (out-of-process command plugin) volume [<args> ...] [flags] volume (out-of-process command plugin) udev [<args> ...] [flags] udev (out-of-process command plugin) marketplace [<args> ...] [flags] marketplace (out-of-process command plugin) bpf [<args> ...] [flags] bpf (out-of-process command plugin) generate-packages [<args> ...] [flags] generate-packages (out-of-process command plugin) cardwire [<args> ...] [flags] cardwire (out-of-process command plugin) box add-candy [<args> ...] add-candy (out-of-process command plugin) box build [<args> ...] build (out-of-process command plugin) box cat [<args> ...] cat (out-of-process command plugin) box feature [<args> ...] feature (out-of-process command plugin) box fetch [<args> ...] fetch (out-of-process command plugin) box generate [<args> ...] generate (out-of-process command plugin) box inspect [<args> ...] inspect (out-of-process command plugin) box labels [<args> ...] labels (out-of-process command plugin) box list boxes [<args> ...] List enabled boxes box list candies [<args> ...] List every scanned candy box list targets [<args> ...] List build targets in dependency order box list services [<args> ...] List candies that trigger an init system box list routes [<args> ...] List candies that declare a route box list volumes [<args> ...] List candies' declared volumes box list aliases [<args> ...] List candies' declared aliases box list tags [<args> ...] List an image's tags in local podman storage box load [<args> ...] load (out-of-process command plugin) box merge [<args> ...] merge (out-of-process command plugin) box new [<args> ...] new (out-of-process command plugin) box pull [<args> ...] pull (out-of-process command plugin) box reconcile [<args> ...] reconcile (out-of-process command plugin) box refresh [<args> ...] refresh (out-of-process command plugin) box rm-candy [<args> ...] rm-candy (out-of-process command plugin) box set [<args> ...] set (out-of-process command plugin) box validate [<args> ...] validate (out-of-process command plugin) box write [<args> ...] write (out-of-process command plugin) version [flags] Print computed CalVer tag Run "charly <command> --help" for more information on a command. still parses (exit 0) — the B12 gate the validator required (the guard now has a committed test that fails without the main() wiring) - KERNEL_MANIFEST.md + main.go + retired_command_word.go: reword the historical 'bundle→fleet cutover' references to 'bundle-era cutover' so the claim-keyed sweep (git grep -iw fleet, excl CHANGELOG/plugin-fleet) has zero matches outside the guard mechanism itself (B14(d))
Summary of changes
Policy correction (operator directive): amending a PR is a normal authoring action and must not
be treated as forbidden; force-push on ANY branch and direct pushes to
mainstay forbidden.CLAUDE.md— landing step 2 no longer lumps--amendin with the forbidden force-push:amending a
feat/branch before its first push is explicitly a normal authoring action, whileforce-push on any branch stays forbidden (
mainonly fast-forwards via the validator'ssquash-merge; a pushed branch advances only by adding commits).
.claude/hooks/pre-push-gate.sh— comment-only: the header now states that localgit commit --amendis NOT gated (the gate gates force-pushes, never local amend). No logicchange; the gate already blocks
--force/--force-with-lease/-f/+refspecon every branch,--no-verify, hooksPath overrides, and direct-to-main.Change class
docs-only — prose in CLAUDE.md + a comment-only hook edit (no behavior change; the gate's
force-blocks are verified unchanged). Matched by the git-workflow skill wording in the plugins
leg.
How R10-tested — exact gate, commands, and pasted output
N/A (docs-only).its force-blocking behavior is unchanged and re-verified by reading the diff).
Attribution tier
documentation reviewed — the whole diff is prose/comment (docs-only class); every non-runtime
standard passed.
Harness rulebook compliance — state HOW each is satisfied (or
N/A — <reason>)/charly-internals:git-workflowloaded before touching landing policy.the operator requested.
in flight) is tracked separately; this is the operator-requested policy cleanup.
once in the hook comment and once in the git-workflow skill (the plugin's own leg).
N/A for this leg— the plugins leg carries its own changelog; this leg's changeis documented in the same policy cutover's plugins changelog.
Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (documentation reviewed)