Skip to content

fix(skills): the git-workflow skill described machinery that does not exist - #429

Merged
github-actions[bot] merged 2 commits into
mainfrom
fix/git-workflow-skill-matches-reality
Aug 28, 2026
Merged

github-actions[bot] merged 2 commits into
mainfrom
fix/git-workflow-skill-matches-reality

Conversation

@atrawog

@atrawog atrawog commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Summary

I audited every claim the git-workflow skill makes about the landing machinery against the
actual opencharly/.github repo and the live repos, rather than trusting the skill.
Five were false. A skill that misdescribes the gate is worse than no skill: it is what an
agent reaches for before touching the gate.

# The skill said Reality
1 on PASS it "feeds the auto-merge workflow that merges (squash) and CalVer-tags" There is no auto-merge workflow. pr-validator.yml calls enablePullRequestAutoMerge inline — GitHub's own native auto-merge. The tag and CHANGELOG come from the separate tag-on-merge workflow the merge triggers. The skill's own body already said this correctly, so it contradicted itself.
2 "GitHub branch protection (enforce_admins) block it in every repo" The legacy branch-protection API is used nowhere. Protection is a per-repo ruleset. branch-protection.sh deletes legacy protection where it survives, because it has no bypass slot for the app that writes the CHANGELOG.
3 "the pre-push-gate … is NOT wired under Claude Code" It is — .claude/settings.json PreToolUse hooks. It blocked a push to main during this session.
4 the required check is charly/pr-validator The workflow is named that; the check is validate / validate.
5 corpus paths under plugins/ That corpus is marketplace/ now.

The evidence

1 — no auto-merge workflow:

$ grep -rln 'auto-merge' dotgithub/.github/workflows/
pr-validator.yml            ← enables it inline
tag-on-merge-dispatcher.yml
$ grep -n 'enablePullRequestAutoMerge' dotgithub/.github/workflows/pr-validator.yml
98:  enablePullRequestAutoMerge(input: {

2 — no legacy protection anywhere:

$ for r in spec sdk charly; do gh api repos/opencharly/$r/branches/main/protection; done
{"message":"Branch not protected", …}     (all three)

and scripts/branch-protection.sh carries # the legacy protection blocks the app's changelog write (no bypass) — remove it, with verify asserting it is absent.

3 — the hook is wired here:

$ grep -n 'pre-push-gate' .claude/settings.json
24:  "command": "$CLAUDE_PROJECT_DIR/.claude/hooks/pre-push-gate.sh",

4 — the check name, measured off a real run:

called job (.github/workflows/pr-validator.yml):  validate
live caller job (opencharly/spec):                validate
observed check on opencharly/spec#64:             validate / validate
$ grep -n 'readonly CONTEXT' dotgithub/scripts/branch-protection.sh
7:readonly CONTEXT="validate / validate"

This one is load-bearing, not cosmetic: it is the string a ruleset must require, and getting it
wrong deadlocks a repo. It also turned out to be a live defect in the templates —
opencharly/.github#78 fixes a dispatcher template whose job naming would produce
charly/pr-validator / validate and thus never satisfy the required check.

5 — the corpus moved. 37 path corrections across three candies, each verified to resolve:

literal marketplace/ paths that resolve: 19
that do NOT resolve: 0

The runtime plugin directory /usr/lib/charly/plugins/ is a different thing and is
deliberately untouched (a regex with a negative lookbehind, not a blanket replace):

$ grep -c '/usr/lib/charly/plugins/' candy/charly-internals/charly.yml
3        ← preserved

Plus four skill Source: paths the candy de-submodule invalidated
(candy/plugin-vm/… → plugin-vm/candy/plugin-vm/…, all four verified to exist) and two stale
family names (charly-core/charly-build → core/build).

No skill was removed

I checked whether any of the 303 skills is obsolete by testing the Source: paths each one
declares. Only two failed, and both were de-submodule path drift, not dead subjects — now fixed.
Every skill has a live subject, so deleting any of them would have destroyed working
documentation to satisfy a tidy-up instinct.

How tested

$ ./bin/charly box validate                    # charly built from this tree
15 candy-resolution artifacts
$ ./bin/charly box validate                    # control: pristine main, same binary
15 candy-resolution artifacts

Identical to the control — those are the standalone-scan artifacts, not something this diff adds.

$ go test . -run 'Skill|Marketplace|Candy' -count=1
ok  github.com/opencharly/charly/charly  1.241s

Diff audit — every changed line accounted for, no collateral:

added lines containing marketplace/ : 37
removed lines containing plugins/   : 37
lines mentioning neither            : 13   ← exactly the three prose corrections

Rulebook compliance

  • R0 — /charly-internals:git-workflow loaded first; this change is that skill.
  • R1 — every claim was verified against the live system before being called false; the
    check-context rule was measured off a real check run rather than inferred from YAML.
  • R2 — nothing deferred. The .github template defect this audit surfaced is its own PR
    (opencharly/.github#78) because it is a different repo, and it is opened, not parked.
  • R3 — the skill is generated; the source candy entity was edited, never the artifact. The
    regenerated corpus is opencharly/marketplace (paired PR).
  • R4 — no blanket plugins/→marketplace/ sweep; the runtime dir is excluded by construction
    and every rewritten path is verified to resolve.
  • R5 — the false claims are replaced, not annotated.
  • R6 — git status checked; branch off fresh main; no force-push, no bypass.
  • R7 — validate + tests + the diff audit pasted above.
  • R8 — the emitted artifact is the regenerated SKILL.md corpus; the paired marketplace PR
    shows it, and nothing beyond these corrections moved.
  • R9/R10 — N/A: documentation-generating config. No image, no bed. The honest gate is
    "does every claim hold against the live system", which is what is pasted.

Change classification

  • Class: candy skill: entity content (documentation source).
  • Verification gate: claim-by-claim verification against .github + live repos + live check
    runs, charly box validate against a control, the skill guards, and a diff audit.
  • Attribution tier: analysed on a live system — every corrected claim was checked against
    the running system with retained output; no bed applies to a docs-source change.

Paired PRs

  • opencharly/marketplace — the regenerated corpus (this change's projection).
  • opencharly/.github#78 — the dispatcher-template deadlock this audit found.

Assisted-by: Claude Code Anthropic Opus 5 (analysed on a live system)

… exist

Verified every claim the skill makes about the landing machinery against the
actual .github repo and the live repos. Five were false:

1. "on a PASS verdict, feeds the `auto-merge` workflow that merges (squash) and
   CalVer-tags" — there is no auto-merge workflow. pr-validator.yml enables
   GitHub's OWN native auto-merge inline (`enablePullRequestAutoMerge`), and the
   CalVer tag + CHANGELOG are written by the separate tag-on-merge workflow that
   the merge triggers. The skill's own body already said this correctly, so it
   contradicted itself.

2. "GitHub branch protection (`enforce_admins`) block it in every repo" — the
   legacy branch-protection API is not in use anywhere; `repos/<r>/branches/main
   /protection` returns "Branch not protected" on spec, sdk and charly alike.
   Protection is a per-repo RULESET (creation + deletion + non_fast_forward + a
   required `validate / validate` check, with the charly-auto-merge App as the
   sole bypass actor). branch-protection.sh actively DELETES legacy protection,
   because it has no bypass slot for the app that writes the CHANGELOG.

3. "the `pre-push-gate` ... is NOT wired under Claude Code" — it is, via
   .claude/settings.json's PreToolUse hooks. It blocked a push to main in this
   very session.

4. The required check is named `validate / validate`, not `charly/pr-validator`.
   The workflow is named charly/pr-validator; the CHECK is `<caller job name> /
   <called job name>` and both jobs are `validate`. The distinction is
   load-bearing: it is what a ruleset must require.

5. Every path into the skill corpus still said `plugins/` — that corpus is now
   `marketplace/`. 37 path corrections across three candies, each verified to
   resolve. The RUNTIME plugin directory (/usr/lib/charly/plugins/) is a
   different thing and is deliberately untouched.

Also repoints four skill `Source:` paths that the candy de-submodule invalidated
(candy/plugin-vm/... -> plugin-vm/candy/plugin-vm/...), and two stale family
names (charly-core/charly-build -> core/build).

No skill was removed: all 303 have live subjects. What was stale was the paths
they cite, not the skills themselves.
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 0e223ee0e314 (branch: PR #429)

Security screen: PASS — docs-only candy skill-content change; no secrets, no exfiltration, no scope mismatch, no weakened guardrails (it corrects the skill's description of the gate to match reality, a strengthening).

Checklist: All applicable rules PASS or NA.

  • Change class: candy skill: entity content (documentation source) — docs-only, no bed required; R9/R10 correctly N/A.
  • A1/A3: Body complete, accounts for the diff (37 plugins/→marketplace/ path corrections, 4 de-submodule Source: paths, 2 family-name fixes, prose corrections), pasted evidence, analysed on a live system tier justified and not inflated; ends with the correctly-formatted *Assisted-by: Claude Code Anthropic Opus 5 (analysed on a live system)* footer.
  • R0–R10: The change is the git-workflow skill; false claims replaced (R5), no blanket sweep (R4), .github template defect routed to its named PR opencharly/.github#78 (R2), source candy entity edited not the generated artifact (R3), git status checked (R6), regenerated corpus in the paired marketplace PR (R8).
  • Architecture gate: placement CORRECT — skill documentation lives in the candy skill: entity, the right layer.
  • SDD/ADE: N/A — no CUE/schema/proto changes, no new candies.

Verdict: PASS


ollama/deepseek-v4-flash — pi-review-action.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) August 28, 2026 23:06
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: e1db07d8de2f (branch: fix/git-workflow-skill-matches-reality)

Security screen: PASS — docs-only candy skill: content change; no secrets, no exfiltration, no scope mismatch, no weakened guardrails (it corrects the skill's description of the landing machinery to match reality — a strengthening, not a change to the machinery itself). No embedded directives aimed at the validator.

Checklist: All applicable rules PASS or NA.

  • Change class: candy skill: entity content (documentation source) — docs-only, no bed required; R9/R10 correctly N/A.
  • A1/A3: Body complete, accounts for the diff (37 plugins/→marketplace/ path corrections, 4 de-submodule Source: paths, 2 family-name fixes, prose corrections on the landing machinery), pasted evidence, analysed on a live system tier justified by the live-system verification and not inflated; ends with the correctly-formatted *Assisted-by: Claude Code Anthropic Opus 5 (analysed on a live system)* footer.
  • R0–R10: The change is the git-workflow skill; false claims replaced not annotated (R5), no blanket sweep — runtime dir /usr/lib/charly/plugins/ preserved by construction (R4), .github template defect routed to its named PR opencharly/.github#78 (R2), source candy entity edited not the generated artifact (R3), git status checked (R6), regenerated corpus in the paired marketplace PR (R8).
  • Architecture gate: placement CORRECT — skill documentation lives in the candy skill: entity, the right layer.
  • SDD/ADE: N/A — no CUE/schema/proto changes, no new candies.
  • Comment intake: the single prior github-actions[bot] PASS (at head 0e223ee0e314) is verified-non-blocking — consistent with the current diff/body after the merge commit synced with main; no new findings.

Verdict: PASS


ollama/deepseek-v4-flash — pi-review-action.

View action run

@github-actions
github-actions Bot merged commit 7aa8609 into main Aug 28, 2026
3 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Aug 28, 2026
@aitrawog
aitrawog deleted the fix/git-workflow-skill-matches-reality branch September 25, 2026 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant