Skip to content

chore: sync 23 submodule gitlinks (policy B) — lands the internals stdio github MCP removal - #32

Merged
github-actions[bot] merged 1 commit into
mainfrom
chore/sync-gitlinks-mcp-chain
Aug 28, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
chore/sync-gitlinks-mcp-chain

Conversation

@atrawog

@atrawog atrawog commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Summary

task sync (scripts/sync-gitlinks.sh) run on the umbrella, recording 23
gitlink advances. Policy B holds — the 5 distro-* pins still equal charly's own
gitlinks.

Three of the 23 close the chain that removed the charly-internals stdio
github MCP server:

Submodule Old → New Lands
pod-charly-hooks eead8c9 → 3377c6b opencharly/pod-charly-hooks#2 — the source fix
charly a2cc84b → 084dc90 opencharly/charly#426 (candy ref bump) + #425 (skills)
marketplace 7072e53 → 9ded51f opencharly/marketplace#234 — the regenerated corpus

That server was type: stdio shelling to github-mcp-server, a binary no candy
installs, in a plugin that ships no pod — so it failed to start on every
session on any host lacking it, while duplicating the gh CLI
/charly-internals:git-workflow already mandates. The other four mcp_servers
declarations are type: http endpoints served by the pod each plugin ships and
are untouched.

The remaining 20 are unrelated org advances that task sync picks up by design;
rule 6 forbids hand-pinning a subset.

How tested

The new marketplace pin no longer contains the artifact — the whole point of
the chain:

$ git -C marketplace cat-file -e 9ded51f:internals/.mcp.json
fatal: path 'internals/.mcp.json' does not exist in '9ded51f'

task verify green on the final committed tree:

$ task verify
check-policy-b: OK — 5 distro pins equal charly's gitlinks
verify-pins: OK — 344 submodules, policy B holds
OK: .pi/extensions/umbrella-gates.ts parses (node type-strip pass)
exit=0

Harness parity intact, and the pre-commit gate ran green on the commit:

check-harness-parity: OK — 5 shared harness files identical to charly/
pre-commit: OK

Pins verified to be merged refs, never PR branches:

$ git -C pod-charly-hooks log --oneline -1 3377c6b
3377c6b fix: drop the internals plugin's stdio github MCP server (#2)
$ git -C marketplace log --oneline -1 9ded51f
9ded51f docs: add CHANGELOG 2026.240.2219 for PR #234
$ git -C charly log --oneline -1 084dc90
084dc90d docs: add CHANGELOG 2026.240.2219 for PR #414

Diff is gitlinks only:

 23 files changed, 23 insertions(+), 23 deletions(-)

Clone hygiene performed (not in the diff)

task verify initially FAILED with docs: dirty working tree. Root cause: the
Phase-4 candy cutover removed the charly submodule from each candy repo
(e.g. docs' own "fix: remove the charly submodule; clone charly recursively at CI
time"), but this clone kept the old working trees on disk, so 207 submodules
carried a stale untracked charly/ directory
— a review blocker under rule 1.

Before removing anything I confirmed the scope was uniform and the content
disposable:

$ git submodule foreach 'st=$(git status --porcelain); [ -n "$st" ] && echo "$name :: $st"'
docs :: ?? charly/
layer-a11y-tools :: ?? charly/
…
dirty submodules: 207
entries that are NOT an untracked charly/: 0

$ # every leftover checked for local work
checked: 207 | dirty or with stashes: 0

$ git submodule foreach 'git clean -ffdn charly'     # dry run
207 lines, all exactly "Would remove charly/"

Then git clean -ffd charly per submodule. Afterwards zero submodules are dirty
and verify passes. This touches only untracked files, so it appears in no diff
and lands in no commit — it is local clone state, recorded here because it is
what moved verify from FAIL to PASS.

Rulebook compliance

  • Rule 1 — Never edit inside a submodule. No submodule content was edited.
    Every functional change in this chain landed as a PR to its owning repo
    (pod-charly-hooks#2 → charly#425/#426 → marketplace#234); this PR only
    records gitlinks. The 207 removals were untracked leftovers, not content.
  • Rule 6 / R4 — Sync, never hand-pin. Produced by task sync; the 20
    unrelated advances are carried rather than filtered, because selecting a subset
    would be hand-pinning.
  • Pin discipline. All 23 point at merged default-branch refs, verified above.
  • R1 — RCA every anomaly. The verify failure was root-caused to the
    Phase-4 de-submodule leftovers before any remediation, not dismissed as
    pre-existing.
  • R6 — Git safety. git status, git stash list, gh pr list and
    git worktree list preflight; a dry run before the only destructive step, with
    its full output reviewed; chore/ branch; no force-push, no hook bypass, no
    direct push to main. The pre-commit gate was never bypassed — two commit
    attempts it refused to tokenize were reformulated as git commit -F <file>,
    as the gate itself instructs.
  • R7 / R10 — Prove the gate. task verify pasted above, run on the final
    committed tree.

Change classification

Field Value
Change class gitlink sync (policy B), 23 submodules
Blast radius umbrella pins only; no submodule content, no scripts, no harness config
Verification gate task verify + check-harness-parity.sh on the final tree
Attribution tier fully tested and validated — the full gate passed on the committed tree, and the end state was confirmed by the absence of internals/.mcp.json at the new pin

Completes #30 → opencharly/pod-charly-hooks#2 →
opencharly/charly#425 → opencharly/charly#426 → opencharly/marketplace#234.

Assisted-by: Claude Code anthropic/claude-opus-5[1m] (fully tested and validated)

…P removal

Runs scripts/sync-gitlinks.sh (task sync) and records the result. Policy B holds:
the 5 distro pins still equal charly's own gitlinks.

Three of the 23 close the chain that removed the charly-internals stdio github
MCP server:

  pod-charly-hooks  eead8c9 -> 3377c6b  the source fix (#2)
  charly            a2cc84b -> 084dc90  the candy ref bump (#426) + skills (#425)
  marketplace       7072e53 -> 9ded51f  the regenerated corpus (#234)

At the new marketplace pin, internals/.mcp.json no longer exists -- the artifact
that made plugin:charly-internals:github fail to start on every session.

The remaining 20 are unrelated org advances that task sync picks up by design;
policy forbids hand-pinning a subset.

Also removes 207 stale untracked charly/ checkouts left in this clone by the
Phase-4 candy cutover (each candy repo dropped its charly submodule; the old
working trees stayed on disk). They made 207 submodules dirty, which failed
verify-pins on a dirty docs working tree. All 207 were pristine -- no edits, no
stashes -- and are plain re-clonable checkouts. This is clone hygiene, not a
tracked change, so it appears in no diff.

Claude-Session: https://claude.ai/code/session_01MJWYgjRyvYkQsApe3Nvccq
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: fd53becc329f (branch: chore/sync-gitlinks)

Security screen: PASS — diff is 23 submodule gitlink bumps only; no code, no secrets, no guardrail changes, no embedded directives, no scope mismatch (body accounts for all 23).

Checklist: All applicable rules PASS or NA.

  • Change class: gitlink sync (policy B). Gate task verify + harness parity is the correct gate for a pointer-only change; pasted output is internally consistent (23 files/23+/23− matches meta; the 3 chain-closing pins pod-charly-hooks eead8c9→3377c6b, charly a2cc84b→084dc90, marketplace 7072e53→9ded51f match the diff exactly).
  • R1: the verify failure was root-caused (Phase-4 de-submodule leftovers) and remediated, not dismissed.
  • R5/R10: end-state confirmed by git cat-file -e absence of internals/.mcp.json at the new pin (tool-limited cross-check — output internally consistent and plausible).
  • R6: git-safety preflight and dry-run documented; pins verified as merged refs.
  • Attribution footer present and tier justified for this change class; no forbidden framing; no comments on thread.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) August 28, 2026 22:31
@github-actions
github-actions Bot merged commit 02e2458 into main Aug 28, 2026
1 check passed
charly-auto-merge Bot added a commit that referenced this pull request Aug 28, 2026
@aitrawog
aitrawog deleted the chore/sync-gitlinks-mcp-chain branch September 25, 2026 18:26
@aitrawog

Copy link
Copy Markdown
Contributor

STATUS — measured reproduction, 2026-10-15, from the umbrella at feat/harness-config-firecracker

Adding this session's evidence to the currency defect. Three measurements, each with its command and its raw output.

1. currency is declared in the task entity AND in the schema source — but the LOADED plugin rejects it.

$ ./charly/bin/charly task pins -p MODE=currency
rc=1
task pins: 1 step(s), 1 failed
  [fail] run — run git-submodules in the selected mode
      plugin verb:git-submodules: plugin_input fails #GitSubmodulesInput:
        #GitSubmodulesInput.mode: 3 errors in empty disjunction: (and 3 more errors)

2. The schema SOURCE has it, as a disjunct of exactly the field that rejects it:

$ sed -n '30,36p' plugin-task/candy/plugin-task/schema/task.cue
#GitSubmodulesInput: {
        // mode: status lists; bump stages new gitlinks; verify asserts CONSISTENCY — …
        mode: "status" | "bump" | "verify" | "currency"

3. And that source is clean at a recorded gitlink:

$ git ls-files -s plugin-task
160000 97bc375b9d236ed3ca50ad28098f66d485a05bef 0	plugin-task
$ git -C plugin-task status --short      (empty — no local modification)

So this is the STALE-BUILD class, not an incomplete landing: the source carries currency, the submodule carries no
local edit, and the plugin the umbrella loads does not. The remedy is a plugin refresh/rebuild, not a schema edit — and the
umbrella's charly.yml line 111 lists status|bump|verify|currency as valid, so the declaration and the loaded schema
disagree in a way a user cannot diagnose from either file alone.

One note on the error's shape: 3 errors in empty disjunction names the field and the type but not the accepted values,
which is what made this cost several rounds to classify. Naming the legal disjuncts in the message would have made it
self-diagnosing.

Agent: charly-dsh
Assisted-by: DSH DeepSeek deepseek-v4.1-flash (documentation reviewed)

github-actions Bot pushed a commit that referenced this pull request Nov 13, 2026
… spec; re-home the pod census row and citation (#1002)

The five pins 2.1 unit 3 (pod) landed were behind, and the two design
ledgers described the pre-move tree. This advances exactly the five pins
the currency question named and reconciles the census, the citation, the
rows the relocation touched, and one version-sentinel prose surface:

- charly            9a988fe7 -> 85149793 (v2026.317.0814, PR #1130)
- plugin-check      b56b37e3 -> 7e9dbd2d (v2026.317.0744, PR #144)
- plugin-substrate  1e97151e -> 25586c76 (v2026.317.0614, PR #32)
- sdk               24279099 -> fe1bd998 (v0.2026317.712, PR #504)
- spec              64f85a36 -> 9cfcc117 (v0.2026317.703, PR #307)

`charly task sync` moved exactly those five and nothing else (it reports
5 pin(s) moved), and `charly task pins --param MODE=currency` then reads
0 of 409 pin(s) NOT current.

spec#307 deleted #Pod/#PodValue and plugin-substrate's CUE module gained
them, so the census row for `#PodValue: (#Pod | schema.#DeployValue)` is
RELOCATED, not lost: it re-homes from spec/schema/node.cue to
plugin-substrate/candy/plugin-substrate/schema/pod.cue with the same rule
and the same count. The total is unchanged (357 known violations, every
per-rule count identical), so this is a relocation, not new debt. The one
line citation that showed the kind body (spec/schema/pod.cue:10-19) is
re-anchored onto the plugin copy as the NAME citations #Pod and #PodValue
— the full definition set that moved — and its baseline row is lowered
with it, so `design/cite-baseline.tsv` keeps only citations that hold.

TODO.md carried three findings on `main` before this change, in two gate
legs, and it is the only prose this wave touches.

`charly task verify` was red on the literal-pathspec leg
(`scripts/check-guidance-pathspec.mjs`, #751): the
unit-2 lesson's sweep names its path argument as `git ls-tree origin/main
-- "$p"`, which git may REINTERPRET, instead of `":(literal)$p"`. Fixed to
the literal form; the paste below it is unchanged, proven by running both
forms over every `plugin-*` path at origin/main (0 differ, and 0 of them
carry a glob metacharacter).

Leg 13 of the pre-commit gate (`scripts/check-cited-plugin-task-version.mjs`)
pairs every line naming `plugin-task` with every version literal on that
line, so unit 2's `sdk` row — which names the plugin in its prose and the
sdk module tag in its version column — and its lesson sentence, which
quoted the retired literal, both read as live plugin-task version claims.
Measured on the pristine `origin/main` worktree: the same two findings, on
either charly pin. Both lines now state what they mean, and the retired
literal stays once in `CHANGELOG/2026.317.0537.md`, where history is
immutable. The control's class — a predicate keyed to a module MENTION
rather than the citation FORM — is filed as #1001.

Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

Co-authored-by: aitrawog <[email protected]>
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.

2 participants