Skip to content

feat(docs): project SOUL.md to the opencharly.ai site - #15

Merged
github-actions[bot] merged 2 commits into
mainfrom
feat/soul-md
Oct 4, 2026
Merged

github-actions[bot] merged 2 commits into
mainfrom
feat/soul-md

Conversation

@aitrawog

@aitrawog aitrawog commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds the SOUL projection to the docs generator: SOUL.md — the identity of charly and every
charly agent — is now published on the site as soul.md, alongside the
other 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 by
umbrella issue opencharly/charly#787).

gen_soul.go mirrors gen_vision.go exactly: it publishes the source verbatim apart from the one
mechanical 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 title
twice. It deliberately carries no link-rewrite map, because SOUL.md is self-contained by
design (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, the
    dropped H1, and the absent-source error (the same pair gen_liberation_test.go carries).
  • candy/plugin-docs/generate.go — wire generateSoul into 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 — add soul.md/generateSoul to the leaf-wiring table, so
    a 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 roots
    carry a SOUL.md, as they already carry the other root narratives.
  • candy/plugin-docs/catalog_test.go — the in-memory TestGenerateRegenNoOp fixture root gains a
    SOUL.md.
  • charly.yml — the docs-resolve R10 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.md once (a) this change has merged and released, and (b) opencharly/charly#789 (SOUL.md)
has merged, so the docs repo's deploy.yml can pin both. It does not touch the docs repo.

How tested

Head e4ce88b5593db7c3bddd2ceedb132f3bc7127f36, session worktree
.worktrees/soul-md/plugin-docs (branched off fresh origin/main = e09c852;
git merge-base --is-ancestor origin/main HEAD holds). The head carries one empty re-freeze commit
on top of eedc9bd — a body-only review fix, no source change; git diff against eedc9bd is
empty.

$ git diff --stat origin/main...HEAD
 candy/plugin-docs/catalog_test.go                       |  3 +
 candy/plugin-docs/gen_soul.go                           | 41 +++++++++++++
 candy/plugin-docs/gen_soul_test.go                      | 69 ++++++++++++++++++++++
 candy/plugin-docs/generate.go                           | 11 ++--
 candy/plugin-docs/generate_test.go                      |  1 +
 .../testdata/bed-fixture/project/SOUL.md                |  3 +
 candy/plugin-docs/testdata/project/SOUL.md              |  3 +
 charly.yml                                              | 39 +++++++++++-
 8 files changed, 163 insertions(+), 7 deletions(-)

Change-class pre-flight — the Go module suite (candy/plugin-docs/)

$ gofmt -l .
                        # no output (exit 0)

$ go vet ./...
                        # no output (exit 0)

$ go test ./...
ok  	github.com/opencharly/plugin-docs/candy/plugin-docs	2.577s
?   	github.com/opencharly/plugin-docs/candy/plugin-docs/cmd/serve	[no test files]

The structural gate — charly box validate

$ charly box validate
charly box validate: OK — checked 1 candy, 1 deploy, 7 distros, 7 builders; 0 warnings, 0 errors

The R10 witness — charly check run docs-resolve

The bed composes the local plugin-docs candy and runs charly docs generate over the hermetic
fixture; every generator path it names executes live.

$ charly check run docs-resolve
charly check run docs-resolve: [deploy-add] PASS after 3.919s [allowlisted=1]
charly check run docs-resolve: [bring-up-members] PASS after 0s
charly check run docs-resolve: [check-live] PASS after 7.732s [allowlisted=1]
charly check run docs-resolve: [update] PASS after 2.554s [allowlisted=1]
charly check run docs-resolve: [cleanup] PASS after 16.741s [allowlisted=1]
charly check run docs-resolve: [cleanup-members] PASS after 0s
charly check run docs-resolve: PASS (steps=6)

Its five generator plan steps, from .check/docs-resolve/<calver>/check-live.log:

  PASS  check stage the hermetic fixture into a scratch site and run charly docs generate (the composed command:docs plugin) against a project with extra_repos [plugin-gh, plugin-box]  [docs-resolve-generate]  exit=0
  PASS  check the generated plugin-gh page is keyed by a Go-module tag (v0.<YYYYDDD>.<HHMM>), NOT the stale plain tag  [docs-resolve-tag]  exit=0
  PASS  check the projected home page lifts the tagline from UNDER the hero's badge lines, keeps the badges in the body, and never prints the tagline twice  [docs-resolve-tagline]  exit=0
  PASS  check the CLI page path for a colon-carrying command word is the SANITIZED form, and no raw-colon page is written  [docs-resolve-cli-slug]  exit=0
  PASS  check SOUL.md is projected to soul.md — published with the generated header, its source H1 dropped, and its identity body intact  [docs-resolve-soul]  exit=0

The fifth step (docs-resolve-soul) is the new witness: it asserts soul.md was emitted, carries
the DO-NOT-EDIT generated header (so it is prunable, not an orphan the moment the emitter stops
producing it), carries the title: "Who We Are" frontmatter, has dropped the source H1, and
keeps the identity body. The fixture project's SOUL.md is the source this step reads, so the
step is red exactly when the projection is absent or malformed.

Rulebook compliance

Umbrella AGENTS.md rules 1–11:

  1. Never edit inside a submodule — HOW: every edit is in the session worktree .worktrees/soul-md/plugin-docs.
  2. Git op rule — HOW: submodule git run via git -C <absolute-path>.
  3. No nested go.work — N/A — no workspace file touched.
  4. Sessions root at the umbrella; worktree off fresh origin/main — HOW: branched off origin/main; origin/main = e09c852 is an ancestor of the head.
  5. Pin discipline — N/A — no pin or gitlink changed.
  6. Policy B — N/A.
  7. Read the subrepo's rulebook first — HOW: read plugin-docs/AGENTS.md and loaded /charly-build:docs.
  8. Harness config — N/A.
  9. Session-scoped ownership — HOW: only this session's worktree/branch; gh pr list --repo opencharly/plugin-docs --state open was checked before opening.
  10. Read the PR's live state before an update push — N/A for the first push; will be honoured on any review round.
  11. Agent identity footer — HOW: the canonical Agent:-then-Assisted-by: footer is last in this body.

Ground-truth rules R1–R10 (charly/AGENTS.md):

  • R1/R5 (RCA; delete legacy completely) — the generate.go count comment and the bed's
    description/header prose both enumerated the emitted-page/projection sets; both became stale
    the moment this change added a page, so both are corrected in the same commit. The external
    sibling of the same claim — the /charly-build:docs skill entity's "six top-level
    entries" / emitted-entries table — is swept in the sibling opencharly/layer-charly-build PR.
  • R3 (no duplication) — gen_soul.go reuses the shared page.write path and the same H1-drop
    idiom the other root emitters use; it adds no second sanitizer, no second link rewriter.
  • R7/R10 (prove behavior; fresh disposable proof) — the change is Go code inside a candy/plugin
    repo that ships a disposable: true bed, so it takes the union gate: the module suite +
    charly box validate + charly check run docs-resolve, all on the final committed tree. The
    new bed step executes the changed path (the fixture project carries SOUL.md; the step reads
    the emitted soul.md).

Change classification

  • Change class: charly Go code (inside a candy/plugin repo) ∪ candy/config — the union gate.
  • Gate: module suite (gofmt -l . · go vet ./... · go test ./...) + charly box validate
    (0 warnings, 0 errors) + charly check run docs-resolve (6 lifecycle steps PASS, 5 generator
    plan steps PASS).
  • Attribution tier: fully tested and validated.

Owning skill: /charly-build:docs

Brings opencharly/charly#789 (SOUL.md; tracked by issue #787) to the site. Depends on it merging so the docs repo can
pin the commit that carries SOUL.md.

Agent: soul-md · session ses_ef8af7149ffe5G0oj20EhTQn6V
Assisted-by: OpenCode DeepSeek V4.1 Flash (fully tested and validated)

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)
@github-actions

github-actions Bot commented Oct 4, 2026

Copy link
Copy Markdown

Review — BLOCK

Head SHA: eedc9bd41a6371bb39f5f9dd74d957c5540f101b (branch: feat/soul-md)
Change class: Go code inside a candy + box config (union gate).
Placement: CORRECT — a docs-generator projection is a candy capability and it lands in the plugin-docs candy; nothing is pulled into core/sdk, no alias file, no new core import.

Security screen: PASS (no secrets/egress, no guardrail or rulebook edit, no new deps, no obfuscation).

Blocks

  1. A1 / R1 / ground-rule 4 — the body's pasted evidence does NOT reproduce against the CURRENT diff. The git diff --stat origin/main...HEAD block in "How tested" is stale/fabricated: it contradicts the changed files it purports to summarize.

    • candy/plugin-docs/gen_soul.go — body says 35; the diff is +41 (@@ -0,0 +1,41 @@).
    • candy/plugin-docs/gen_soul_test.go — body says 76; the diff is +69 (@@ -0,0 +1,69 @@).
    • candy/plugin-docs/generate.go — body says 8; the diff is +7/-4 (11 changed lines).
    • candy/plugin-docs/charly.yml — body says 33 at path candy/plugin-docs/charly.yml; the actual changed file is repo-root charly.yml at +36/-3.
      Four of the seven stat lines are wrong and one path is wrong. A "How tested" block whose pasted command output is not the current head's output is not evidence. Re-run the command on the current head and paste the real output (or drop the block).
  2. A1 — internal body contradiction. "Its four generator plan steps" is immediately followed by a list of five steps (docs-resolve-generate, -tag, -tagline, -cli-slug, -soul). State five (or list four) — the bed actually carries five steps.

  3. A1 — dependency reference is ambiguous. The summary attributes SOUL.md to opencharly/charly#787, while "Producer-first" and the closing line name opencharly/charly#789 for the same SOUL.md. Name the single PR that actually carries SOUL.md so the pinned dependency is unambiguous.

Verdict: BLOCK


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

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)
@github-actions

github-actions Bot commented Oct 4, 2026

Copy link
Copy Markdown

Review — PASS

Head SHA: e4ce88b5593db7c3bddd2ceedb132f3bc7127f36 (branch: feat/soul-md)

Security screen: PASS — no secrets/egress, no guardrail or rulebook edit, no new deps, no obfuscation; the charly.yml change only ADDS a plan step (strengthens the witness).
Checklist: All applicable rules PASS or NA. Go candy + box-config class takes the union gate; module suite, charly box validate (0/0) and the docs-resolve bed (6 lifecycle + 5 plan steps) are pasted, the new docs-resolve-soul step executes the changed generateSoul path against the fixture SOUL.md and is red without it; tests (gen_soul_test.go, generate_test.go wiring) ship in-tree; generate.go "five→six" count sweep is internally consistent with the emitted page set; footer is the canonical Agent:-then-Assisted-by: form; fully tested and validated is justified (changed branch ran live).
Comment intake: 1 comment — bot BLOCK @5981489861 (by @github-actions[bot]), three findings, all asserted against prior head eedc9bd:

  • (1) stale git diff --stat — stale-superseded: the current body's stat matches the CURRENT 8-file diff line-for-line (gen_soul.go 41, gen_soul_test.go 69, generate.go 11, charly.yml 39 @ repo-root; 163 insertions / 7 deletions).
  • (2) "four generator plan steps" vs five listed — stale-superseded: body now reads "Its five generator plan steps" and lists five.
  • (3) #787/#789 ambiguity — stale-superseded: summary now names #789 as the carrier with #787 as umbrella, matching the closing line.
    No surviving findings.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) October 4, 2026 15:28
@github-actions
github-actions Bot merged commit f2c1932 into main Oct 4, 2026
1 check passed
charly-auto-merge Bot added a commit that referenced this pull request Oct 4, 2026
github-actions Bot pushed a commit to opencharly/docs that referenced this pull request Oct 4, 2026
…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]>
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