You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
marketplace generate reverts ~892 lines belonging to two open PRs whose plugins legs merged before their source legs #323
charly marketplace generate on a clean tree rewrites ~33 generated artifacts and removes
~1188 lines. An RCA attributed them:
cause
files
lines
regeneration is
stale projection — main edited the source, nobody regenerated
15
~59
correct
orphaned projection — plugins leg merged, source leg still open
20
~892
destructive
The 892 belong to the plugins-side legs of #289 (feat/validator-evidence-rules) and #297 (feat/emit-quoting-doc-drift). Their content exists only in plugins/ and on
those branches — never in candy/ on any ancestor of main. Committing a wholesale
regeneration today would delete live, in-review documentation.
The generator is not at fault: candy/plugin-marketplace/emit_skills.go:28-44 is a pure
concatenation with no truncation. Verified byte-for-byte against the candy sources.
Grim detail: one of the casualties is multi-repo-coordination.md, and the 49 lines it
would lose are the two-directional pin rule that describes exactly this failure mode.
Why it was invisible
task skills:drift and task docs:drift both existed and were invoked by nothing —
no CI job, no hook. That is now fixed (gates land with the ollama cutover), so this cannot
recur silently.
What resolves it
Landing #289 and #297 — the source legs — after which their artifacts stop being stale and
their baseline entries must be deleted (the gate fails on entries that are no longer stale,
so the baseline is forced to shrink).
Recommended order: #297 first (13 files, smaller, and independently verified as the
correct direction — the committed projection names EmitDownload/TaskCacheMounts/ Generator.EmitTasks, which exist, while the candy source at HEAD names lowercase variants
that exist nowhere in the tree). Then #289 (7 files, 785 lines).
Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)
The two original instances are CLEARED — and a third arrived four hours later, from the same mechanism
Measured on main at 9d839c55 with a binary built from that tree (charly version 2026.230.1903), drift first (it never writes — superproject and plugins both 0 changed before and after), then generate in a throwaway detached worktree.
The two this issue named are gone
Both source legs landed: charly#297 → 162b54a3 (v2026.230.1529) and charly#289 → 9d839c55 (v2026.230.1856). The three artifacts this issue reported as destructive have inverted:
The ~892-line destructive deletion is gone. Regenerating against the plugins commit the superproject pins (5bd2454a) yields 22 files, +226/-90 — a normal projection update, and it clears finding 1's seventh site (internals/skills/plugin/SKILL.md goes 1 → 0 on the retracted CI wording).
But regenerating against the real plugins/main destroys 132 lines
plugins/main is b2d46cc, one commit ahead of what the superproject pins — plugins#189 merged at 18:10Z. Against that true base:
Zero insertions. The pages are deleted outright, because their candy source is not on main:
candy source on charly main: charly-build:load -> 0 files, nested-podman-socket -> 0 files
open charly#315 tree: charly-build:load -> 1 file, nested-podman-socket -> 3 files
plugins#189 merged 18:10Z | charly#315 still OPEN
I discarded it rather than committing. Nothing was pushed.
The root cause is the ordering itself, and it will recur every time
This is not an accident of #289/#297. Projection-first ordering — land the plugins leg before the superproject leg — creates an orphaned projection by construction. Between the two merges there is always a window where the published page exists and its source does not, and any regeneration in that window deletes live, in-review documentation at exit 0 with no conflict and no error.
So the closing condition for this issue is not "the current orphans cleared". It is either:
a gate that refuses to regenerate an artifact whose source is absent from main (turning a silent deletion into a failure), or
an ordering change that removes the window.
Filed alongside charly#318, which is the same window seen from the other side: nothing automatic observes it, so the only thing standing between a routine charly marketplace generate and 132 deleted lines today was someone diffing before committing.
Practical note for anyone regenerating meanwhile: the submodule checkout in a superproject worktree is at the pinned commit, not the submodule's main. Regenerating there and committing silently reverts whatever landed in between — which is how this near-miss started. Check out the submodule's own origin/main first, then diff before you commit.
A third instance arrived while this issue was open — the window is not closing, it is widening
plugins#205 merged at 20:51 (7b74028c, v2026.230.2049) and landed ahead of its source leg, charly#309, which is still open. Measured on the trees, not inferred:
plugins/main has ollama/skills/ollama-cli/SKILL.md -> yes
candies on charly/main naming 'ollama-cli' -> 0
candies in the OPEN charly#309 naming it -> 3
candy/charly-ollama/charly.yml · candy/ollama/charly.yml · candy/plugin-ollama/charly.yml
So a regeneration today deletes that page too, for exactly the reason this issue describes.
The known destructive set is now at least three pages across two source legs:
build/skills/load/SKILL.md source only in open charly#315
distros/skills/nested-podman-socket/SKILL.md source only in open charly#315
ollama/skills/ollama-cli/SKILL.md source only in open charly#309 <- NEW
This is the third occurrence, and none of the three was a mistake anyone made. Each followed the mandated projection-first ordering correctly: plugins#189 before charly#315, plugins#205 before charly#309. The ordering produces the orphan by construction, so "the current orphans are cleared" can never be this issue's closing condition — clearing them only resets the counter until the next mirror leg lands ahead of its source.
Restating the closing condition, now with three data points behind it:
a gate that refuses to emit an artifact whose source is absent from main — turning a silent deletion into a failure, or
an ordering change that removes the window.
The practical hazard while it stays open is asymmetric and worth stating plainly. A regeneration run in this window succeeds, exits 0, produces no conflict, and deletes live in-review documentation. The only tell is diffing before committing. Anyone reaching for charly marketplace generate right now — including to "fix drift" — should first ask which PRs have a merged mirror leg and an open source leg, because those are exactly the pages the run will remove.
Detection, two commands: list open PRs in the superproject, then for each page the regeneration would touch, check whether its identifier appears in candy/ on main. Zero on main and non-zero in an open PR means the page is orphaned and the run will delete it.
Also worth noting for whoever picks this up: charly#315 landing clears the first two, and charly#309 landing clears the third. Neither clears the mechanism.
Verified against current repos. The resolution path the issue itself prescribed completed: the source legs #289 and #297 both merged (2026-08-18), so their artifacts stopped being stale and the ~892 destructive lines are no longer at risk. The gates also landed ("That is now fixed (gates land with the ollama cutover)"), and the marketplace drift gate now fails on any corpus mismatch, so a destructive regeneration cannot recur silently.
Activity
atrawog commentedon Aug 18, 2026
The two original instances are CLEARED — and a third arrived four hours later, from the same mechanism
Measured on
mainat9d839c55with a binary built from that tree (charly version 2026.230.1903),driftfirst (it never writes — superproject andpluginsboth0changed before and after), thengeneratein a throwaway detached worktree.The two this issue named are gone
Both source legs landed:
charly#297→162b54a3(v2026.230.1529) andcharly#289→9d839c55(v2026.230.1856). The three artifacts this issue reported as destructive have inverted:The ~892-line destructive deletion is gone. Regenerating against the plugins commit the superproject pins (
5bd2454a) yields22 files, +226/-90— a normal projection update, and it clears finding 1's seventh site (internals/skills/plugin/SKILL.mdgoes 1 → 0 on the retracted CI wording).But regenerating against the real
plugins/maindestroys 132 linesplugins/mainisb2d46cc, one commit ahead of what the superproject pins —plugins#189merged at 18:10Z. Against that true base:Zero insertions. The pages are deleted outright, because their candy source is not on
main:I discarded it rather than committing. Nothing was pushed.
The root cause is the ordering itself, and it will recur every time
This is not an accident of
#289/#297. Projection-first ordering — land thepluginsleg before the superproject leg — creates an orphaned projection by construction. Between the two merges there is always a window where the published page exists and its source does not, and any regeneration in that window deletes live, in-review documentation at exit 0 with no conflict and no error.So the closing condition for this issue is not "the current orphans cleared". It is either:
main(turning a silent deletion into a failure), orFiled alongside
charly#318, which is the same window seen from the other side: nothing automatic observes it, so the only thing standing between a routinecharly marketplace generateand 132 deleted lines today was someone diffing before committing.Practical note for anyone regenerating meanwhile: the submodule checkout in a superproject worktree is at the pinned commit, not the submodule's
main. Regenerating there and committing silently reverts whatever landed in between — which is how this near-miss started. Check out the submodule's ownorigin/mainfirst, then diff before you commit.docs(ollama): re-project the ollama family from opencharly/charly#309
docs(ollama): re-project the ollama pages from opencharly/charly#309
fix(drift): both gates this PR ships now pass on this PR's own head
Revert the 24 non-ollama artifacts 1d74893 swept in by accident
docs(ollama): re-project the ollama skill corpus for the command:olla…
fix(drift): liquidate five paid baseline entries, and pin the settled…
atrawog commentedon Aug 18, 2026
A third instance arrived while this issue was open — the window is not closing, it is widening
plugins#205merged at 20:51 (7b74028c,v2026.230.2049) and landed ahead of its source leg,charly#309, which is still open. Measured on the trees, not inferred:So a regeneration today deletes that page too, for exactly the reason this issue describes.
The known destructive set is now at least three pages across two source legs:
This is the third occurrence, and none of the three was a mistake anyone made. Each followed the mandated projection-first ordering correctly:
plugins#189beforecharly#315,plugins#205beforecharly#309. The ordering produces the orphan by construction, so "the current orphans are cleared" can never be this issue's closing condition — clearing them only resets the counter until the next mirror leg lands ahead of its source.Restating the closing condition, now with three data points behind it:
main— turning a silent deletion into a failure, orThe practical hazard while it stays open is asymmetric and worth stating plainly. A regeneration run in this window succeeds, exits 0, produces no conflict, and deletes live in-review documentation. The only tell is diffing before committing. Anyone reaching for
charly marketplace generateright now — including to "fix drift" — should first ask which PRs have a merged mirror leg and an open source leg, because those are exactly the pages the run will remove.Detection, two commands: list open PRs in the superproject, then for each page the regeneration would touch, check whether its identifier appears in
candy/onmain. Zero onmainand non-zero in an open PR means the page is orphaned and the run will delete it.Also worth noting for whoever picks this up:
charly#315landing clears the first two, andcharly#309landing clears the third. Neither clears the mechanism.atrawog commentedon Aug 28, 2026
Validation (2026-08-28) — RESOLVED
Verified against current repos. The resolution path the issue itself prescribed completed: the source legs #289 and #297 both merged (2026-08-18), so their artifacts stopped being stale and the ~892 destructive lines are no longer at risk. The gates also landed ("That is now fixed (gates land with the ollama cutover)"), and the marketplace drift gate now fails on any corpus mismatch, so a destructive regeneration cannot recur silently.
Closing as resolved.