Repository navigation
feat(task): replace the umbrella Taskfile + scripts with the charly task surface - #247
Conversation
…ask surface
Cut the umbrella over to the compiled-in `charly task` surface (served by the
`charly/` submodule's binary), deleting Taskfile.yml, taskfiles/ and the
human-facing scripts/*.sh in the same change (R5).
- Add the umbrella project manifest `charly.yml` with the task surface: map,
sync, verify, policy-b, harness, skills, org-map, omarchy-agents, pi-forks,
hooks, self-test. sync/verify/policy-b compose verb:git-submodules
(policy B: the six distro-* gitlinks equal charly's box/* gitlinks; the bump
rolls charly FIRST, then distro-* from its new gitlinks). harness composes
verb:file-parity; skills composes verb:splice-region. The org-map,
omarchy-agents and pi-forks scripts are ported inline (org-specific);
sync-pin-evidence.sh + sync-pr-body.sh stay (umbrella-specific CI PR-body
builders) and are self-tested by `charly task self-test`.
- Delete Taskfile.yml, taskfiles/, scripts/{check-policy-b,check-harness-parity,
sync-dispatcher,sync-gitlinks,verify-pins,check-org-map,
check-omarchy-eval-agents,sync-pi-forks}.sh and scripts/lib/policy-b.sh.
- Rewire hooks/pre-commit to `charly task policy-b|harness|self-test`; rewire
.github/workflows/sync.yml to `charly task sync|skills|policy-b`.
- Bump the charly submodule gitlink to its origin/main (v2026.268.0549+), which
carries plugin-task v0.2026268.534 (the four maintenance verbs + the corrected
bump order).
- Docs + harness allow-lists: AGENTS/CLAUDE/README/HARNESS-PARITY/
DOC-VERIFICATION, opencode.json, reasonix.toml, .claude/settings.json,
.claude/workflows/*, .opencode/agent/pr-validator.md.
Proven: ./charly/scripts/bootstrap-charly.sh builds charly/bin/charly
(2026.268.0550); `charly task verify` PASS (policy B over 408 submodules + the
full remote branch audit); `charly task map|harness|org-map|omarchy-agents|
self-test` PASS; hooks/pre-commit PASS; `charly box validate` clean.
Review — BLOCKHead SHA: Change class: umbrella config/cutover — new Blocks
Security screen: PASS — no secrets/exfiltration, no injection directives in PR content, and the harness allow-list rewrites ( Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
- R3: the 6-entry policy-B pin_map was copy-pasted under policy-b/sync/verify. Introduce ONE `pins` task owning the map (mode via param) and make policy-b, sync and verify thin `verb:task` wrappers — restoring the single canonical definition scripts/lib/policy-b.sh provided. - R5: rewire the last dangling `verify-pins.sh` reference in sync-pr-body.sh's emitted body; fix `bash -x ./charly/bin/charly` (a BINARY, not a script) and the remaining verify-pins.sh mentions in .claude/workflows/triage-check-failure.js. - R10: restore the `node scripts/check-opencode-plugin.mjs` assertion the deleted verify-pins.sh ran, as a third `verify` step. - skills: port the former sync-dispatcher.sh NO-OP semantics inline (fragment absent OR target markers absent => pass, not fail), which splice-region's strict form lost.
… exercised Body reconciles CLAUDE.md (symlink) and the absent taskfiles/ dir, pastes every task's output, and names the pi-forks credential skip.
…ella-p4 # Conflicts: # charly.yml
Review — BLOCKHead SHA: Change class: umbrella config/cutover — Blocks
Prior comment 5828230578 (bot, head Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…ix headers/tier - R10/T3: restore scripts/sync-dispatcher.sh (the tested splice + --self-test) and have the `skills` task CALL it instead of an untested inline copy; `charly task self-test` and hooks/pre-commit both run its --self-test again, so the pre-commit gate keeps its prior assertions. - R1: fix the merged charly.yml header (the roster banner's subject line was lost in the merge) and drop the false "taskfiles/" mention (that dir never existed at origin/main). - A1/A3: the charly gitlink is main's own (9e62bcbf, PR #248); state that rather than claiming a bump. Attribute `pi-forks` explicitly as a gh-auth MUTATION task (not a gate) ported faithfully and not run in this change.
Review — BLOCKHead SHA: Change class: umbrella config/cutover — new Blocks
Comments considered
Security screen: PASS — no secrets/exfiltration, no injected directives in PR content; the harness allow-lists ( Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
- .github/workflows/sync.yml: reword the `git add -A` comment (sync-gitlinks.sh ->
`charly task sync`).
- charly.yml: reword the verify echo ("verify: OK —") and the opencode-gate step
("the former verify-pins.sh").
- scripts/sync-pr-body.sh: the self-test fixture's policy-B log line now reads
"charly task policy-b: OK".
Review — BLOCKHead SHA: Change class: umbrella config/cutover — new Blocks
Comments considered
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…y-bump claim, refresh self-test description All prior findings addressed: the footer now matches the body's own analysed-on-a-live-system tier (pi-forks unrun), the change-class line no longer claims a charly gitlink bump (main's pin is carried by the merge), and the pasted task list / version / script count match the tree.
Review — PASSHead SHA: Change class: umbrella config/cutover — Security screen: PASS — no secrets/exfiltration, no injected directives in PR content. Checklist: All applicable rules PASS or NA. A1 (all 24 files accounted for; footer Comment dispositions (all re-derived against the current head):
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Change class: umbrella config/cutover — Security screen: PASS — no secrets/exfiltration, no injected directives in PR content. Checklist: All applicable rules PASS or NA. A1 (all 24 files accounted for; body ends with the italicized Comments considered (all re-derived against the current head
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Sweep the last stale references to the former umbrella Taskfile task names after the P4 cutover (#247): .opencode/instructions.md and .pi/APPEND_SYSTEM.md now name `charly task verify`, and scripts/sync-dispatcher.sh's failure hint names `charly task skills`. Documentation/prose only.
* fix(sync): restore honest sync evidence + ignore root local state The Taskfile→task cutover (#247) deleted scripts/sync-gitlinks.sh, whose log carried the per-pin ` <path> -> <sha>` lines the sync PR body (scripts/ sync-pr-body.sh) grepped. verb:git-submodules only returns a one-line summary AND `charly task`'s text reporter drops a passing step's own message, so the grep matched nothing and every moved pin read "MISSING from producer log — investigate" in the body (measured with the real post-cutover producer shape). Root fix: stop coupling the body builder to any incidental producer-log format. The authoritative per-pin proof is already the index-derived `staged-gitlink` vs remote default-branch HEAD table (scripts/sync-pin-evidence.sh); the producer log is now pasted verbatim as context, bounded inside the function (never via a caller `head`, which this SIGPIPE-ignoring harness would let flood). The self-test now exercises BOTH historical producer shapes — it previously fed only the retired `->` form, so it could not fail on the shape reality produces. Also ignore the root local-state classes (`charly check run check-all-beds` writes `.check/`; `.build/`, `.opencharly/`, `scratchpad/`, `.claude/worktrees/`, `bin/`), so the root `git status` is honest after a roster run. Modelled on charly/.gitignore; the parity gate checks only the 5 shared files, not .gitignore. Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated) * docs: re-freeze the PR body against the final head Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (analysed on a live system) --------- Co-authored-by: atrawog <[email protected]>
* docs(task): rewire the umbrella Taskfile-era task references Sweep the last stale references to the former umbrella Taskfile task names after the P4 cutover (#247): .opencode/instructions.md and .pi/APPEND_SYSTEM.md now name `charly task verify`, and scripts/sync-dispatcher.sh's failure hint names `charly task skills`. Documentation/prose only. * chore: re-freeze the PR body against the final head (classify analysd-on-live) * chore: re-freeze the PR body — full verify passed; route PLAN-mise residue to issue #254 --------- Co-authored-by: opencode <[email protected]>
…runs (#394) Both published descriptions of that gate were one change behind the hook itself. `charly.yml`'s `hooks` task advertised a mechanism that no longer exists: "Install the pre-commit gate for this clone (policy B + parity)". Parity was real when f230518 (#247) wrote it: that commit's own hooks/pre-commit listed "harness parity -- the 5 files byte-identical to charly's by design" and called `"$CHARLY" task harness` (verb:file-parity) at the end of the gate. f092c21 (#341, "rule 8 reversal" in its own subject -- the same content is rule 5 in today's AGENTS.md) absorbed the harness config into the umbrella and deleted the mechanism, leaving the sentence that announced it. Nothing has been compared since: `grep -rn -i parity hooks/ scripts/` returns 0, and AGENTS.md rule 5 states the position outright, "no mirrors, no parity gate". What the hook runs is policy B, the self-tests, and the opencode, pi and pr-watch gate scripts. `hooks/pre-commit`'s own header carried the same staleness in the other direction: cfd30b2 (#390) added the pi gate call to the body without adding it to the list of what the hook runs, so the header said four gates while the file ran five. Both now name the five gates. The task description enumerates them because that is this surface's own idiom -- `verify`, `map` and `self-test` say what they run too. Proved on the tree, by execution rather than inspection: `charly task list` renders the new description; `charly task hooks` reports the plan step and leaves `core.hooksPath = hooks`; `node scripts/check-harness-config.mjs` passes; and the changed hook itself ran all five gates green on this commit. Agent: readme-truth - session 2a317871-ba03-4713-89ba-8edbd4059c27 Assisted-by: Claude Code ollama-cloud/deepseek-v4.1-flash (fully tested and validated) Co-authored-by: atrawog <[email protected]>
Summary
Cut the umbrella over to the compiled-in
charly tasksurface, deletingTaskfile.ymland the human-facingscripts/*.shin the same change (R5).Merged with
origin/mainPR #248 (another session's umbrella-rootcheck-roster). Main had already created a rootcharly.ymlfor the roster andhad already bumped the charly gitlink to
9e62bcbf(v2026.268.0651, which carriesBOTH the roster support and
plugin-task v0.2026268.534); this PR takes main'sgitlink as-is (no further bump) and merges the two
charly.ymlfiles ratherthan replacing either: the file now carries main's
repo/import: charly: ./charly/defaults/check-all-bedsand this PR'scharly tasksurface.The umbrella project manifest
charly.ymldeclares the task surface:pins,map,sync,verify,policy-b,harness,skills,org-map,omarchy-agents,pi-forks,hooks,self-test.pinsowns the ONE policy-B operation (the formerscripts/lib/policy-b.shrole — a single canonical definition, not copy-pasted three times): the 6-entry
distro-*→box/*map appears exactly once, andpolicy-b/sync/verifyare thin
verb:taskwrappers selecting the mode. It composesverb:git-submodules.harnesscomposesverb:file-parity.skillsruns the restoredscripts/sync-dispatcher.sh(a no-op when thefragment OR the target markers are absent; splice otherwise), preserving that
script's tested
--self-test— whichcharly task self-testandhooks/pre-commitnow both run.
org-map,omarchy-agents,pi-forksare org-specific, ported inline intotask steps. The three umbrella-specific committed scripts
(
sync-pin-evidence.sh,sync-pr-body.sh,sync-dispatcher.sh) stay and areexercised by
charly task self-test.Deleted (R5):
Taskfile.yml, andscripts/{check-policy-b,check-harness-parity,sync-gitlinks,verify-pins,check-org-map,check-omarchy-eval-agents,sync-pi-forks}.shscripts/lib/policy-b.sh. (sync-dispatcher.shis RETAINED: its splice +--self-testis the tested implementationskillscalls.) (There was notaskfiles/directory atorigin/main— only the top-level
Taskfile.yml;CLAUDE.mdis a symlink toAGENTS.md,so the AGENTS.md edits are the CLAUDE.md edits.)
Rewired:
hooks/pre-commit→charly task policy-b|harness|self-test;.github/workflows/sync.yml→charly task sync|skills|policy-b; docs(
AGENTS.md→CLAUDE.mdsymlink;README.md,HARNESS-PARITY.md,DOC-VERIFICATION.md); harness allow-lists (opencode.json,reasonix.toml,.claude/settings.json) and the workflow/agent task references(
.claude/workflows/*,.opencode/agent/pr-validator.md).Hook git-var RCA. The hook now scrubs
GIT_DIR/GIT_INDEX_FILE(and theother git repo vars) after
rev-parse: git leaks them into every hook subprocess,and they corrupt nested
git -C <submodule>operations (the former scriptsscrubbed them internally at each git call; the task surface runs git through
subprocesses, so the hook scrubs them once at its boundary).
charly submodule carries main's own gitlink
9e62bcbf(v2026.268.0651) — thisPR does NOT move it (PR #248 already did). That charly carries
plugin-task v0.2026268.534(the four verbs + the corrected bump order) and theroster support, so the task surface and the roster coexist.
How tested
Build + the task surface
Every task exercised
sync/ thepinsbump order — proven live on an isolated fixtureThe operator worktree's
sync(preview) contends with the opencode snapshotter'sindex.lock, so the bump is proven on an isolated fixture with REAL submodules,where
charlyitself rolls anddistro-archmust be pinned from its NEW gitlink:charlyrolled toBfirst, thendistro-archwas pinned from charly@B'sbox/archgitlinkL2— the corrected order, via the ONEpinsdefinition.pi-forksis a mutation task requiring realghauth and is not run here (it isnot a gate).
R5 sweep — executed
Both surviving hits are intentional historical comments that NAME what was
replaced ("the former …"); no operational reference to any deleted script remains
at the umbrella root. Submodule paths are other repos (rule 1) and are excluded by
the sweep's
.gitmodules-derived exclude list;CHANGELOG/+plan/are history.Rulebook compliance
/charly-internals:git-workflow,/charly-internals:plugin,/charly-internals:go,/charly-internals:cutover-policy,/charly-internals:strict-policy,/charly-check:check.syncbump-order defect was root-caused and fixed in plugin-taskPR refactor: drop CHANGELOG placeholder, simplify workflows, add dotgithub submodule #4 before this consumer; the
verifyaudit's 90s never-hang trip was RCA'd to408 remotes and fixed with an explicit step
timeout:.scripts) is delivered; nothing deferred.
pinstask(aliased by three thin wrappers); no copy-pasted map.
Taskfile.ymland 8scripts/*files (incl.scripts/lib/policy-b.sh) are DELETED; every reference rewired (the lastdangling
verify-pins.shreference in the CI-body builder and thebash -x <binary>bug are fixed). The executed sweep is pasted above.feat/branch + PR; no force-push, no hook bypass.charly task verifypassed on the final tree (above).charly box validateclean../charly/bin/charlybuilt bybootstrap-charly.shfrom the pinned submodule.charly task verify;it passed with all THREE assertions (policy B + the 408-remote audit + the
restored opencode gate). The
syncmutation was proven on a disposable fixture.pi-forksneeds realghauth and is a mutation task, not a gate.
tag-on-mergewritesCHANGELOG/<calver>.mdfrom this body.Change classification
(No
charlygitlink change — main's own pin is carried by the merge.)./charly/scripts/bootstrap-charly.sh+charly task verify(3 assertions, 408 submodules) + every other task +hooks/pre-commit+ the isolatedsyncfixture +charly box validate.analysed on a live system— the umbrella's full pinninggate (
charly task verify, 3 assertions) passed on the final tree and the gatepaths ran live (map/sync-fixture/verify/policy-b/harness/skills/org-map/
omarchy-agents/hooks/self-test); the
pi-forkspath is agh-auth MUTATION(syncs 8 upstream repos) that did NOT run here, which caps the tier at
analysed on a live systemper A3 / AGENTS.md's tier table.Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (analysed on a live system)