Repository navigation
docs(autonomy): context-exhaustion is a forbidden excuse; "fresh context" = DELEGATE - #61
Conversation
…ext" = DELEGATE Close the last stop-excuse loophole in the autonomous-loop doctrine and make delegation-for-fresh-context crystal clear across the root rulebook + the reminder hooks (paired with opencharly/marketplace#27's discipline-skill edits). - CLAUDE.md "Hard Cutover by Default": the forbidden-excuse "Size / budget" bullet becomes "Size / budget / context" and absorbs the CONTEXT framings ("I'm running out of / have exhausted context", "continuing would leave a broken, unbuildable tree" — FABRICATED, zero evidence, never raised again, "it needs a fresh session / fresh context"). States the rule: low context is NEVER a stop reason — COMPACT-and-continue OR DELEGATE to a fresh teammate/ sub-agent. - CLAUDE.md "Agents, Workflows & Teams": new bullet — "Delegation is how you get FRESH CONTEXT without stopping — this is the primitives' primary purpose"; spawning a teammate IS "a fresh session," delivered on demand; a big program is driven a teammate per cutover to merged PRs inside the one autonomous run. - .claude/hooks/runtime-verification-reminder.sh (UserPromptSubmit): new terse AUTONOMY trigger (pointer-shaped, not a rule-body copy). - .claude/hooks/end-of-turn-challenge.sh (Stop): new bullet catching the stop-for-context impulse -> compact-and-continue OR delegate. - plugins submodule pointer -> opencharly/marketplace@e29bc34. Change class: hook/workflow scripts (the two reminder hooks' emitted heredoc body changed). Gate: parse + execute the changed scripts live — both pass `bash -n` and emit the new AUTONOMY trigger / context-exhaustion bullet (output pasted in the PR). CLAUDE.md + CHANGELOG + the all-docs plugins bump ride along in the same commit. Assisted-by: Claude (analysed on a live system)
pr-validator — CHANGES REQUESTED ❌Change class: hook / workflow scripts (the two I re-derived compliance independently (fresh context; trusting none of the author's claims). The change itself verifies clean on every substantive axis — the block is a description-completeness gate, not a defect in the code/prose. Checklist
Cross-repo verification. DecisionCHANGES REQUESTED — not merged. Everything substantive verifies clean; the only blocker is the description-completeness gate (item 1). To land, update the PR body in place (append a fix commit / edit the body) to fill the org template — mirror the structure used in #56/#54: add Assisted-by: Claude (analysed on a live system) |
pr-validator merge-time version stamp: rename placeholder CHANGELOG/2026.192.1201.md -> CHANGELOG/2026.192.1221.md and rewrite its H1 to match. Folded into the squash merge of #61. Assisted-by: Claude (analysed on a live system)
pr-validator — APPROVED ✅ (re-run after description fix)Supersedes the prior CHANGES-REQUESTED verdict. Independently re-derived from the PR, the repo, CLAUDE.md, and the loaded skills — author and prior evaluator not trusted. Change class: hook / workflow scripts (docs ride along) — NOT documentation-only. Two Checklist
Cross-repo: plugins bump Decision: APPROVED. Every applicable rule positively confirmed from the diff + my own re-run; no enforcement gate weakened; the change strengthens the autonomy/forbidden-excuse doctrine. Finalizing the merge-time CalVer 2026.192.1221 (strictly greater than the latest tag Assisted-by: Claude (analysed on a live system) |
…_types + dead code (#137) K3 (build-engine lane) core-minimization cutover, ready-now half: deletes all 24 remaining charly/*_aliases.go/*_alias.go files (ZERO-ALIASES dissolution), labels.go's LabelX alias block, install_plan.go's alias slice, and calamares_types.go (relocated to sdk/spec via already-merged sdk PR #61); sweeps 10 stale doc references including a genuine R1 boundary-law reasoning fix in candy_model_accessors.go. Independently re-validated: all 24 deletions confirmed gone, R5 self-test clean, sdk gitlink verified merged+tagged, package-level sdk-subpackage set unchanged (no new mechanism-kit dependency), build/vet/test/lint green, check-pod bed re-run fresh and PASS (12 steps). Assisted-by: Claude Sonnet 5 (fully tested and validated)
/#61) Updates the bed-run evidence to the full 7-step check-charly-selftest-pod run (2026.198.2033, post sdk#71 R3/CUE fixes) and documents all 4 check-live failures found there, each independently root-caused: - 2 claude-code failures: a NEW cross-worktree candy-resolution contamination finding (task #61, sequenced post-W9 since the fix lands in this wave's own loader-cone relocation target) — the check-bed's repo-identity-keyed candy cache picked up a sibling worktree's uncommitted higher-CalVer candy via the shared git object store's "newest wins" version arbiter. - 2 pre-existing main defects (MCP box.list.boxes unknown-tool + `charly check --help`'s generic placeholder): baseline-reproduced by two independent parties on clean main; root-caused to buildCLIModel()'s pre-existing inability to reflect dynamic out-of-process command words (PR #89, an ancestor of the W9 fork point) — tracked as task #60. None of the 4 are W9 regressions; the change class's tier stands. Assisted-by: Claude Sonnet 5 (analysed on a live system)
…d roster The prior R10 section cited numbers not backed by fresh artifacts — check-builder-vm had never run, check-charly-vm's only run was 16 days stale (predating the #59 fix), and it falsely claimed check-k3s-vm green. Replaced with the real 2026-07-28 roster run against the final terminus binary: 9 green (each backed by an on-disk summary.yml), and check-k3s-vm honestly recorded as the pre-existing #61 k3s-kubeconfig-timeout failure (R2-separable, deploy mechanism proven, not a #118 regression). Assisted-by: Claude Code Anthropic Claude Opus 4.8 (fully tested and validated)
…E/M/B/D fabric floor (RESIDUE 0) The terminus of the "everything is a plugin" core-minimization program (#118). Core is now a PLUGIN HOST: charly/ retains only the E/M/B/D fabric floor (plugin discovery/loading, provider registry + transports, CLI/kind prescan + word→plugin dispatch, the kind-decode materialize, the reverse-channel broker). Every capability resolves its config into a generic envelope an in-core mechanism consumes. The kernel-manifest floor gate TestKernelManifest_CoreIsPinnedToTheFabricFloor PASSES at RESIDUE 0. Consumer leg of the two-repo B2 landing: sdk gitlink → a11380625e04dbb3fa0c0392987edc8006db7611 (v0.2026209.2002, sdk#105 merged first). Net -3,064 charly/ core LOC. Terminal R10: 9 disposable beds green (artifact-backed, fresh-rebuild) — check-pod, check-builder-vm, check-charly-vm, check-jupyter-pod, check-substrate, check-group, check-structkind, check-preempt-local, check-commands-local. One R2-separable pre-existing fail (check-k3s-vm, #61 candy kubeconfig timeout), not a #118 regression. Three real bugs the roster caught (BuilderConfig/DistroDef on synthetic boxes, out-of-process check-verb connect) fixed + folded in. Review round 2 cleared: removed stray handoff notes, gofmt clean, golangci-lint 0 issues (dead relocation-orphaned helpers deleted), single changelog per squash. Validated by a fresh, independent pr-validator (RESIDUE-0 gate, go build/vet/test + golangci-lint 0 re-run, all 9 bed artifacts reconciled on disk, forward-gitlink verified) at CalVer 2026.209.2044. Assisted-by: Claude Code Anthropic Claude Opus 4.8 (fully tested and validated)
…imeout non-fix RCA on a live check-k3s-vm bed REFUTED #61's stated root cause (kubeconfig-wait timeout too tight): with wait_second bumped 120->300 the bed STILL failed at 5m, while guest inspection showed k3s healthy (API up ~44s) and the kubeconfig present and world-readable. The real defect is charly's artifact-retrieval reading a context that can't see the present guest file (intermittent — passed 07-25) — a separate, deeper bug that gets its own RCA cutover. Reverted the non-fix (wait_second back to 120); the batch lands the one genuine, proven fix (#57 command expect_non_zero, check-pod 13/13 live+fresh-rebuild). #58/#63 already-fixed on main; #60 probe absent. Assisted-by: Claude Code Anthropic Claude Opus 4.8 (fully tested and validated)
…tness batch The `command:` check verb gains an `expect_non_zero` field (additive, optional) to assert a command SHOULD fail when the exact non-zero code is non-deterministic or irrelevant — the negative-expectation class that the base #Op exit_status matcher (one exact code) could not express. SDD: candy/plugin-command/schema/command.cue is the single source; task cue:gen regenerated params/cue_types_gen.go (reproducible no-op). RunVerb asserts exitCode != 0 when set and ignores exit_status; default false preserves the historic behaviour. Coverage: 3 unit tests (fail without the field) + a live check-expect-non-zero step in check-stack-layer, proven on check-pod 13/13 with exit=1 PASS in both fresh-rebuild phases. The post-#118 bed-robustness batch narrowed under RCA to this one genuine fix: #58 and #63 were already fixed on main, #60's described probe does not exist, and #61's stated root cause was refuted on a live bed (k3s healthy, kubeconfig present+readable) and reverted. CHANGELOG/2026.209.2249.md. Assisted-by: Claude Code Anthropic Claude Opus 4.8 (fully tested and validated)
…-protection (#490) * feat: Home-based mise shims + install_command vocabulary; mirror loop-protection - charly/charly.yml: the embedded builder: mise: vocabulary moves to the Home-based data dir (~/.local/share/mise), adds install_command (mise.toml/.tool-versions -> mise install), and drops the cache_mount (the data dir cannot be a BuildKit cache mount — the artifacts must land in the image, not an ephemeral cache). - charly/embed_defaults_test.go: assert the Home-based shims path + install_command mapping. - charly/go.mod/go.sum: sdk -> f476722d (BoxNeedsBuilder recognizes the mise detection files — the build-graph ordering fix), spec -> 90c1b7c7 (mise added to the #BuildType enum). plugin-vm 1323 -> 812: plugin-vm 1323 requires sdk 1217, which lacks the mise detection fix; the iso-VM pin is restored when the sdk release line includes the mise work. - .pi/settings.json + .pi/extensions/loop-protection.ts: mirror the loop-protection extension (the umbrella slimmed it out in PR #61). * chore: re-trigger the PR validator (body updated with fresh-rebuild bed evidence + WARNING RCA)
… out, umbrella status tools in (#509) * chore(pi): mirror-harness cleanup - retired extensions/agents/prompts out, umbrella status tools in Remove the umbrella-retired .pi/extensions/loop-protection.ts (deleted in the umbrella #61 cleanup) and the stale .pi/agents/validator.md + .pi/prompts/* (also retired umbrella-side); add the umbrella's github-pr-status.ts and charly-status.ts extensions and register both in .pi/settings.json alongside charly-gates.ts. Keep charly's subagents.agentOverrides and package set (hand-reviewed mirror per HARNESS-PARITY.md). * fix(pi): R5-sweep the retired .pi/prompts references out of PROGRAM/pi-integration.md The mirror cleanup retired the template files; the doc still documented and exemplified them. Replace with the current mechanism (corpus agents + standing discipline). --------- Co-authored-by: atrawog <[email protected]>
Summary of changes
Close the last stop-excuse loophole in the autonomous-loop doctrine and make
delegation-for-fresh-context crystal clear across the root rulebook and the
reminder hooks. Paired with opencharly/marketplace#27 (cutover-policy /
strict-policy / agents skill edits), consumed here via the
pluginssubmodulebump
879422b → e29bc34.CLAUDE.md"Hard Cutover by Default" — the forbidden-excuse Size / budgetbullet becomes Size / budget / context and absorbs the CONTEXT framings:
"I'm running out of / have exhausted context", "continuing would leave a
broken, unbuildable tree" (called out as FABRICATED, ZERO evidence, never to be
raised again), "it needs a fresh session / fresh context". The bullet states
the rule outright: low context is NEVER a stop — COMPACT-and-continue OR DELEGATE
the remaining work to a fresh teammate / sub-agent.
CLAUDE.md"Agents, Workflows & Teams" — a new bullet: "Delegation is howyou get FRESH CONTEXT without stopping — this is the primitives' primary
purpose." Spawning a teammate/sub-agent IS "a fresh session," delivered on
demand; a big multi-cutover program is executed by spawning a teammate per
cutover and driving them to merged PRs inside the one autonomous run.
.claude/hooks/runtime-verification-reminder.sh(UserPromptSubmit) — a newterse AUTONOMY trigger (pointer-shaped per the hooks doctrine, not a rule-body
copy).
.claude/hooks/end-of-turn-challenge.sh(Stop) — a new bullet catching thestop-for-context impulse → compact-and-continue OR delegate; NEVER hand the user
a "start a fresh session on task #N" note.
pluginssubmodule pointer879422b → e29bc34(the paired refactor(config): decouple ResolvedBox.InitConfig → Generator (P3-unit-3) #27 skill edits).Change class
Hook / workflow scripts — NOT documentation-only.
CLAUDE.md, the CHANGELOGentry, and the
pluginsbump are pure documentation, but the two reminder hooksare
.shscripts whose emitted heredoc BODY changed (the reminder prose isexecutable payload, not comment lines). Per CLAUDE.md AI Attribution,
documentation reviewedis forbidden the moment any code payload is touched, sothe whole commit takes a runtime tier and the docs ride along;
pre-commit-gateindependently enforces this (a non-comment
.shdiff is non-documentation).Splitting the hooks into a second commit would violate one-commit-per-cutover, so
this lands as ONE commit.
How R10-tested
Change-class gate for hook/workflow scripts = parse + execute the changed
scripts live. Both hooks are pure
cat <<EOFreminder emitters with nobranching or gate logic, so live execution fully exercises them; no
charlybedexists for a reminder hook.
Both
bash -nPASS; both execute with exit 0 and empty stderr; each emits exactlythe new reminder text. Eval beds: None — a reminder hook has no runtime surface
(no build, no deploy, no
charlyverb); parse + live execute is the complete gate.Attribution tier
analysed on a live system— the changed hook payload ran live and its output ispasted above.
documentation reviewedis correctly rejected (the.shpayload isnon-documentation); no disposable rebuild exists for a reminder hook, so the higher
runtime tier does not apply.
CLAUDE.md rule compliance
/charly-internals:cutover-policy+/charly-internals:strict-policy(the discipline surfaces this cutover edits) and/charly-internals:skills(mirroring-surface sweep) before touching any file; thehook edits follow
/charly-internals:agents"Hooks doctrine".stderr); no failure, warning, or flake framing.
plugins skill edits landed as refactor(config): decouple ResolvedBox.InitConfig → Generator (P3-unit-3) #27 first (their own repo), consumed here.
(no rule-body duplication); R5 claim-keyed sweep clean — every
fresh session/exhausted contexthit is the new FORBIDDEN-excuse text or the DELEGATEclarification, no un-caveated "fresh session is a valid stop" surface remains.
second commit; no transitional/dual-mode/Phase-2 residue.
pre-commit-gate.sh/pre-push-gate.sh),branch-protection, validator spec, or
settings.jsonwas touched — only the twoSOFT reminder hooks +
CLAUDE.md+CHANGELOG+ the all-docspluginsbump; theCLAUDE.mdedits STRENGTHEN the forbidden-excuse catalog.e29bc34)before this pointer bump; the
879422b..e29bc34submodule diff is all-documentation.CHANGELOG/2026.192.1201.mdstaged (placeholder CalVer; the freshpr-validatorfinalizes it at merge).Assisted-by: Claude (analysed on a live system)