Repository navigation
feat(docs): project SOUL.md to the opencharly.ai site - #15
Conversation
The docs generator projects charly's root narrative files onto the site
(VISION.md, GRIEVANCES.md, LIBERATION.md, README.md). SOUL.md — the identity
of charly and every charly agent — is now added to that set: gen_soul.go
publishes it as soul.md, dropping the source H1 (Starlight renders the
frontmatter title) and rewriting nothing, because SOUL.md is deliberately
self-contained and carries no links.
- gen_soul.go + gen_soul_test.go: the projection and its unit tests
(published body, header, H1 dropped; absent source is an error).
- generate.go: wire generateSoul into the pipeline; the "cleared exceeds
written" count now reads six, not five.
- generate_test.go: assert the soul.md call site is wired.
- testdata/{project,bed-fixture/project}/SOUL.md: the fixture roots carry a
SOUL.md, as they already carry the other root narratives.
- charly.yml: the docs-resolve R10 bed gains a fifth plan step witnessing
the SOUL projection (emitted, generated header, H1 dropped, body intact).
Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)
Review — BLOCKHead SHA: Security screen: PASS (no secrets/egress, no guardrail or rulebook edit, no new deps, no obfuscation). Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
No source change — the review BLOCK was body-only (a stale diff-stat paste, a four-vs-five step count, and an ambiguous dependency reference), all fixed in the PR body. This empty commit mints a fresh head so the required pr-validator re-reads the corrected body with the full live thread. Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)
Review — PASSHead SHA: Security screen: PASS — no secrets/egress, no guardrail or rulebook edit, no new deps, no obfuscation; the
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
…26.277.1529 — add soul.md (#148) Projects the new SOUL.md (opencharly/charly#789) onto the site as `/soul/` ("Who We Are"), the identity of charly and every charly agent. The page is emitted verbatim by the generator's new SOUL projection (opencharly/plugin-docs#15). - deploy.yml: bump the charly CI-time commit b79851d -> b8241dcd (carries SOUL.md) and the plugin-docs tag v2026.275.2127 -> v2026.277.1529 (carries the SOUL projection). - astro.config.mjs: a `Who We Are` sidebar entry pointing at /soul/. - regenerate the generated content tree at those pins: new soul.md; the home page (README, now linking "who charly is"); plugin-page re-keying as the plugin-docs pin advances (plain plugin-*.md -> versioned dirs for plugin-build/command/docs/fleet/installstep/task); providers.md and the cli deploy/docs/task pages. Assisted-by: OpenCode ollama-cloud DeepSeek V4.1 Flash (fully tested and validated) Co-authored-by: atrawog <[email protected]>
Summary
Adds the SOUL projection to the docs generator:
SOUL.md— the identity of charly and everycharly agent — is now published on the site as
soul.md, alongside theother root-narrative pages the generator already projects (
VISION.md,GRIEVANCES.md,LIBERATION.md,README.md). The file itself is carried by opencharly/charly#789 (tracked byumbrella issue opencharly/charly#787).
gen_soul.gomirrorsgen_vision.goexactly: it publishes the source verbatim apart from the onemechanical edit every root page gets — the source H1 is dropped, because Starlight renders the
frontmatter title (
"Who We Are") as the page heading, so keeping the H1 would show the titletwice. It deliberately carries no link-rewrite map, because
SOUL.mdis self-contained bydesign (it cites no other document and has no repo-relative links); a future link would be caught
by the whole-site link gate like any other page — which is the point of projecting it rather than
transcribing it.
Changes:
candy/plugin-docs/gen_soul.go(new) — the projection.candy/plugin-docs/gen_soul_test.go(new) — the published body, the generated header, thedropped H1, and the absent-source error (the same pair
gen_liberation_test.gocarries).candy/plugin-docs/generate.go— wiregenerateSoulinto the pipeline. The count comment("cleared exceeds the printed sum by five") becomes six, since the emitted page set grew by
one.
candy/plugin-docs/generate_test.go— addsoul.md/generateSoulto the leaf-wiring table, soa dropped call site fails by name.
candy/plugin-docs/testdata/project/SOUL.md+candy/plugin-docs/testdata/bed-fixture/project/SOUL.md(new) — the two hermetic fixture rootscarry a
SOUL.md, as they already carry the other root narratives.candy/plugin-docs/catalog_test.go— the in-memoryTestGenerateRegenNoOpfixture root gains aSOUL.md.charly.yml— thedocs-resolveR10 bed gains a fifth plan step witnessing the new path,and its header/description prose is swept from "THREE generator paths" to "FOUR".
Producer-first. This is the generator leg of a multi-repo chain: the docs site can only show
soul.mdonce (a) this change has merged and released, and (b) opencharly/charly#789 (SOUL.md)has merged, so the docs repo's
deploy.ymlcan pin both. It does not touch the docs repo.How tested
Head
e4ce88b5593db7c3bddd2ceedb132f3bc7127f36, session worktree.worktrees/soul-md/plugin-docs(branched off freshorigin/main = e09c852;git merge-base --is-ancestor origin/main HEADholds). The head carries one empty re-freeze commiton top of
eedc9bd— a body-only review fix, no source change;git diffagainsteedc9bdisempty.
Change-class pre-flight — the Go module suite (
candy/plugin-docs/)The structural gate —
charly box validateThe R10 witness —
charly check run docs-resolveThe bed composes the local
plugin-docscandy and runscharly docs generateover the hermeticfixture; every generator path it names executes live.
Its five generator plan steps, from
.check/docs-resolve/<calver>/check-live.log:The fifth step (
docs-resolve-soul) is the new witness: it assertssoul.mdwas emitted, carriesthe
DO-NOT-EDITgenerated header (so it is prunable, not an orphan the moment the emitter stopsproducing it), carries the
title: "Who We Are"frontmatter, has dropped the source H1, andkeeps the identity body. The fixture project's
SOUL.mdis the source this step reads, so thestep is red exactly when the projection is absent or malformed.
Rulebook compliance
Umbrella
AGENTS.mdrules 1–11:.worktrees/soul-md/plugin-docs.git -C <absolute-path>.go.work— N/A — no workspace file touched.origin/main— HOW: branched offorigin/main;origin/main = e09c852is an ancestor of the head.plugin-docs/AGENTS.mdand loaded/charly-build:docs.gh pr list --repo opencharly/plugin-docs --state openwas checked before opening.Agent:-then-Assisted-by:footer is last in this body.Ground-truth rules R1–R10 (
charly/AGENTS.md):generate.gocount comment and the bed'sdescription/header prose both enumerated the emitted-page/projection sets; both became stalethe moment this change added a page, so both are corrected in the same commit. The external
sibling of the same claim — the
/charly-build:docsskill entity's "six top-levelentries" / emitted-entries table — is swept in the sibling
opencharly/layer-charly-buildPR.gen_soul.goreuses the sharedpage.writepath and the same H1-dropidiom the other root emitters use; it adds no second sanitizer, no second link rewriter.
repo that ships a
disposable: truebed, so it takes the union gate: the module suite +charly box validate+charly check run docs-resolve, all on the final committed tree. Thenew bed step executes the changed path (the fixture project carries
SOUL.md; the step readsthe emitted
soul.md).Change classification
charlyGo code (inside a candy/plugin repo) ∪ candy/config — the union gate.gofmt -l .·go vet ./...·go test ./...) +charly box validate(0 warnings, 0 errors) +
charly check run docs-resolve(6 lifecycle steps PASS, 5 generatorplan steps PASS).
fully tested and validated.Owning skill:
/charly-build:docsBrings
opencharly/charly#789(SOUL.md; tracked by issue #787) to the site. Depends on it merging so the docs repo canpin the commit that carries
SOUL.md.Agent:
soul-md· sessionses_ef8af7149ffe5G0oj20EhTQn6VAssisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)