Skip to content

docs: reference charly/SOUL.md from the umbrella agent surface - #351

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

Wires the charly soul into the umbrella's agent surface, so every agent that works here —
on every harness — knows it works as charly, and where the identity behind the rules lives.

This is the delivery leg of the SOUL work (opencharly/charly#789 adds charly/SOUL.md). The
soul is a single canonical document in the charly repo; the umbrella references it and
never copies its text (R3). Because rule 8 was reversed upstream — harness config lives only
in the umbrella — the delivery wiring is umbrella-side only, with no mirror in charly/.

Three surfaces:

  • AGENTS.md — a first-read pointer near the top: every agent here works as charly, and
    charly/SOUL.md is who that is. This reaches Claude Code, Codex, Kimi/reasonix, and any other
    harness that reads the neutral rulebook.
  • .opencode/instructions.md — an "You are charly" section in the opencode binding.
  • .pi/extensions/charly-gates.ts — a "You are charly" block prepended to the existing
    condensed rules that the extension injects into the system prompt every turn (it survives
    compaction), plus the charly/SOUL.md pointer.

The pointers name the file; they do not restate the soul. One source, referenced — not copied.

Change class. This is not documentation-only: .pi/extensions/charly-gates.ts is harness
source whose runtime output (the rules block injected into the system prompt every turn) changes.
The change class is harness-config source + documentation, and the tier below reflects that.

Producer-first. The reference resolves against the pinned charly/ gitlink, so
opencharly/charly#789 must merge first (the umbrella records the charly gitlink). This PR does not
bump that gitlink — the reference is path-relative prose; the gitlink advances by the normal
task sync, not by hand.

How tested

Head 5043c9a3f02c1839538093f4ebf5daff4994cad7, session worktree .worktrees/soul-md/opencharly (branched off fresh
origin/main = 16165dc). The head carries one empty re-freeze commit on top of c5859cd7 — a
body-only review fix; git diff c5859cd7..5043c9a3 is empty, so the task verify output below
(measured on c5859cd7) applies unchanged to the current tree.

$ git diff --stat origin/main...HEAD -- AGENTS.md .opencode/instructions.md .pi/extensions/charly-gates.ts
 .opencode/instructions.md      | 5 +++++
 .pi/extensions/charly-gates.ts | 4 ++++
 AGENTS.md                      | 4 ++++
 3 files changed, 13 insertions(+)

The harness-config gate — node scripts/check-harness-config.mjs

$ node scripts/check-harness-config.mjs
  ...
  PASS  opencode.json declares the DeepWiki server for opencode (top-level mcp map) ...
  PASS  .codex/config.toml declares the DeepWiki server for Codex ([mcp_servers.deepwiki]) ...
check-harness-config: OK

The pi extension still loads and injects the identity block

The extension has no harness runtime in CI; it was exercised by importing the real module with a
stubbed typebox and driving its before_agent_start handler:

$ node parsecheck2/run.mjs
default export type: function
registered events: before_agent_start,tool_call
registered tool: charly_worktree_remove
contains identity line: true
contains SOUL.md ref: true
contains R0: true
OK

The pinning gate — ./charly/bin/charly task verify

$ ./charly/bin/charly task verify
task verify: 9 step(s), 0 failed
  [pass] check — policy B — every distro-* gitlink equals charly's own box/* gitlink
  [pass] check — every submodule is clean and checked out at its recorded gitlink, and its branch equals the remote default
  [pass] check — the submodule-cleanliness step above — uninitialized paths are a NOTICE, real defects still FAIL (fixtures)
  [pass] check — the opencode gate plugin contract (the check-opencode-plugin gate the former verify-pins.sh ran)
  [pass] check — the PR-watch plugin's pure logic + its shipped (uncommented) SDK delivery primitives
  [pass] check — the agent-progress monitor+control plugin — static (no .sh), the classifier (RCA regression), and a read-only store
  [pass] check — the session tracker plugin — the durable ledger (rule 11 invariant), the three tools, and the real-binary load
  [pass] check — every harness-config surface parses and is wired (rule 8)
  [pass] check — the pi gate extension fails CLOSED, uses the rule-9 worktree path, and wires both gate scripts

Rulebook compliance

Umbrella AGENTS.md rules applicable to this change:

  • Rule 4 (sessions root at the umbrella; edits in a session worktree) — HOW: all edits are in
    .worktrees/soul-md/opencharly; the tracked submodule checkouts are untouched.
  • Rule 8 (harness config lives ONLY in the umbrella) — HOW: the pointer lives in the umbrella's
    AGENTS.md and harness config; nothing is mirrored into charly/.
  • Rule 9 (session-scoped ownership; issue-first) — HOW: search found no existing issue, so
    SOUL.md: a future-proof identity for charly and every charly agent charly#787 was filed and CLAIMED before branching.
  • R1/R5 (RCA; delete legacy completely) — the pointers introduce no stale claim and remove none.
  • R3 (no duplication) — the soul text lives once, in charly/SOUL.md; the umbrella references
    it. The three surfaces carry a one-line pointer each, not the soul.
  • R6 (git safety) — git status inspected; only the three files are staged; no gitlink is
    hand-edited; PR-only; no force-push.
  • R7 (prove the gate, not the plan) — task verify output pasted above on the final tree.

Change classification

  • Change class: harness-config source (.pi/extensions/charly-gates.ts) + documentation
    (AGENTS.md, .opencode/instructions.md).
  • Gate: ./charly/bin/charly task verify on the final tree (9/9, including the
    check-pi-gates and check-harness-config checks that exercise the changed extension), plus
    the direct execution of the changed code path pasted above.
  • Attribution tier: fully tested and validated — task verify passed on the final tree
    (c5859cd7) and the changed path (the extension's buildRulesBlock injection) was executed
    with retained output (node parsecheck2/run.mjs → contains identity line: true).

Authoring runtime: the footer names this session's runtime — harness OpenCode, provider
ollama-cloud, model deepseek-v4.1-flash — as exposed to the session; it is not asserted from
memory.

Dependency chain (producer-first)

  1. docs: add SOUL.md — the identity of charly and every charly agent charly#789 — charly/SOUL.md (producer; must merge first);
  2. this PR — the umbrella first-read reference + per-harness pointers;
  3. feat(docs): project SOUL.md to the opencharly.ai site plugin-docs#15 — the generator leg that projects SOUL.md → soul.md;
  4. docs(docs-skill): add soul.md to the generator's emitted-entries table layer-charly-build#18 — the /charly-build:docs skill-entity sweep;
  5. opencharly/docs — regenerate the site at a pin carrying the merged charly commit + the merged
    plugin-docs tag; then opencharly/marketplace — regenerate the corpus.

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

Every agent that works in the umbrella works as charly — one identity across
every harness. This points each harness at the identity behind the rules,
without copying it: the single canonical soul lives in charly/SOUL.md (added
by opencharly/charly#789), and the umbrella references it.

- AGENTS.md: a first-read pointer, reaching every harness that reads the
  neutral rulebook.
- .opencode/instructions.md: an "You are charly" section in the opencode
  binding.
- .pi/extensions/charly-gates.ts: a "You are charly" block in the rules the
  extension injects into the system prompt every turn, plus the SOUL.md
  pointer.

Rule 8 (harness config lives only in the umbrella) keeps the wiring
umbrella-side; no mirror in charly/. The pinned charly/ gitlink advances by
task sync, not by hand.

Refs opencharly/charly#787

Assisted-by: OpenCode DeepSeek V4.1 Flash (documentation reviewed)
@github-actions

github-actions Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Review — BLOCK

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

Change class: docs + harness/hook source — the body's "documentation-only" label is not supported by the diff.

Comment thread: empty (0 comments) — no maintainer-account sign-off present; nothing to disposition.

Blocks

  1. A3 / A2 — forbidden tier + class mismatch. The diff modifies .pi/extensions/charly-gates.ts (a TypeScript source file; the added ### You are charly block inside buildRulesBlock()), alongside the two *.md files. A3 permits documentation reviewed ONLY when the whole diff is documentation (*.md / comment-only / all-doc submodule bump) and forbids it "if code or config also changed." A .ts source file — whose runtime output (the system-prompt rules block injected every turn) actually changes — is none of those. Therefore:

    • the classification "Change class: documentation-only (prose + harness config)" is false, and
    • the tier "Attribution tier: documentation reviewed" (and the matching *Assisted-by: … (documentation reviewed)* footer line) is unsupported.

    This is exactly the forbidden framing "it's just a documentation change (when code or config also changed)." Fix: reclassify the change as a hook/gate-source change and supply the gate/tier the rulebook requires for a diff that includes a .ts file (the changed code path must be shown to have executed live — the pasted stub-import run may serve as that evidence, but it does not license the docs tier), or remove the .ts change from this PR's scope. Do not claim documentation reviewed.

  2. A3 — model/harness name unverifiable (secondary). The footer's OpenCode DeepSeek V4.1 Flash has no authoring-runtime evidence anywhere in the body to cross-check against; per rule 4 this is unverified and must be corrected/justified when the tier line is fixed. (Tool-limited: I cannot confirm or refute the model name from the provided context.)

Everything else (A1 body/footer ordering — Agent: precedes Assisted-by: and the body ends with the Assisted-by: line; R3/R5/R6; B13 SDD/ADE; B16 placement — canonical SOUL.md in charly, referenced from the umbrella, is CORRECT; B15 single commit; B17/B18) checks out. Security screen (T1–T4): no finding — the charly-gates.ts edit only adds prose to the injected rules block and does not disable, loosen, or rewire any gate (fail-closed logic and gate-script wiring untouched).

Verdict: BLOCK


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

View action run

No source change — the review BLOCK was a change-class/tier mismatch in the
body (the .pi .ts edit is harness source, not documentation) plus an
ambiguous authoring-runtime line, both fixed in the PR body. This empty
commit mints a fresh head so the required pr-validator re-reads the corrected
body.

Assisted-by: OpenCode ollama-cloud DeepSeek V4.1 Flash (fully tested and validated)
@github-actions

github-actions Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 5043c9a3f02c1839538093f4ebf5daff4994cad7 (branch: feat/soul-md)

Security screen: PASS — the three additions are prose only; the .pi/extensions/charly-gates.ts edit touches buildRulesBlock() text, not gate logic, wiring, or fail-closed behavior (no gate disabled/loosened/rewired), and there are no secrets, egress, or supply-chain changes. T1/T2: no embedded directives in body, commits, or diffs.

Checklist: All applicable rules PASS or NA.

Comment dispositions:

  • 5981602082 (@github-actions[bot]) — stale-superseded. Both findings were against head c5859cd7. The current body (re-frozen at 5043c9a3) explicitly states "This is not documentation-only … The change class is harness-config source + documentation" and tiers it fully tested and validated — so the "documentation-only / documentation reviewed" premise is gone (A2/A3 resolved). Its secondary model-name finding is likewise superseded: the footer now names harness OpenCode, provider ollama-cloud, model DeepSeek V4.1 Flash, consistent with the body's authoring-runtime paragraph and the reviewer's own footer (tool-limited: model identity cannot be re-derived from the diff).
  • No maintainer sign-off was needed (no security-machinery change): the pi edit is additive identity prose, preserving every gate.

Re-derived (not inherited): diff is exactly 3 files / +13 (5+4+4), matching the body; the pi insertion is inside the existing template literal with no backtick/${} hazards; the empty re-freeze commit is consistent with git diff c5859cd7..5043c9a3 being empty; placement is CORRECT (canonical SOUL.md in charly, referenced — not copied — from the umbrella; harness bindings in .opencode/ and .pi/).

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:39
@github-actions
github-actions Bot merged commit b966e4e 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/eval-omarchy that referenced this pull request Oct 4, 2026
charly/VISION.md moved to the umbrella repo root (opencharly/opencharly),
where every agent session roots. Repoint the four tenet references.

Refs opencharly/opencharly#351.

Co-authored-by: atrawog <[email protected]>
github-actions Bot pushed a commit to opencharly/layer-charly-internals that referenced this pull request Oct 4, 2026
)

The window-based takeover asks the owner to reply with their status or
HANDING OVER, not to quote an ETA — an ETA is a promise, not the progress
signal (a completed validator run is), and it is ceremony without authority.
Aligned with the umbrella AGENTS.md rule 7, which no longer requests an ETA.

The rendered marketplace copy regenerates once this source tags (producer-first).
Refs opencharly/opencharly#351.

Co-authored-by: atrawog <[email protected]>
github-actions Bot pushed a commit to opencharly/charly that referenced this pull request Oct 4, 2026
* docs!: relocate SOUL/VISION/GRIEVANCES/LIBERATION to the umbrella

The identity and the thesis pages now live in the umbrella repo root
(opencharly/opencharly), where every agent session is rooted and where
AGENTS.md already pointed. This repo keeps its own AGENTS.md rulebook
(rule 4: a subrepo's rulebook stays in its repo); the README's links to the
moved pages become absolute umbrella URLs.

Producer-first: the umbrella leg adds the four files; this leg removes them here.

Refs opencharly/opencharly#351.

* docs: re-freeze the charly narrative-relocation head

No source change — the review BLOCK was an attribution-only finding in the PR
body (a mis-named provider model), fixed there. This empty commit mints a fresh
head so the required pr-validator re-reads the corrected body.

---------

Co-authored-by: atrawog <[email protected]>
github-actions Bot pushed a commit to opencharly/plugin-docs that referenced this pull request Oct 5, 2026
… dir (supersedes #16) (#17)

* feat(docs): read the narrative root pages from a separate --narrative dir

The four narrative sources (SOUL.md, VISION.md, GRIEVANCES.md, LIBERATION.md)
moved from the charly repo root to the umbrella repo root, where every agent
session roots and where the umbrella AGENTS.md already pointed. The catalog walk
(candy/, box/, the docs: node) and the landing page stay on the charly checkout,
so a second source dir is needed for the root narrative pages.

--narrative mirrors --plugins: it defaults to <root> (the pre-move one-repo
location, unchanged behaviour) and lets the docs workflow point the narrative
passes at the umbrella checkout while --root stays on charly.

Covered by TestGenerateNarrativeDirSeparateFromRoot, which proves the four root
pages project the narrative dir's text (not the root's); the test is proven live
by mutating one call site back to root and confirming it goes red.

Refs opencharly/opencharly#351.

* test(docs): make the docs-resolve R10 bed exercise the --narrative seam

The bed ran the generator with the default narrative dir (== --root), so it
passed identically before and after the --narrative change and proved nothing
about the changed path. Fix that:

- the generate step now passes --narrative at a fixture narrative dir whose four
  root-page bodies DIFFER from the identical-named files beside --root;
- a new step asserts the four pages project the narrative dir's text and NOT the
  root's, so the bed goes red if the seam is unwired (addresses A2);
- the docs-resolve bed comment and the soul step now describe the narrative
  source correctly.

charly check run docs-resolve → PASS (steps=6), output in the PR body (addresses A1).

Refs opencharly/opencharly#352.

* test: re-freeze the --narrative seam head

No source change — the review BLOCK re-derived the PRE-edit body. The fresh head
carries the verbatim charly check run docs-resolve output (PASS, steps=6) and the
per-step check-live detail. This empty commit mints a fresh head so the required
pr-validator reads the final body.

* test: re-freeze the --narrative seam head for the final body

No source change — the fresh head carries the module gates re-run at 90ef145,
a fresh charly check run docs-resolve PASS (steps=6) transcript, and the
allowlist semantics ([allowlisted=N] is lines an allowlist entry claimed,
excluded from warnings — not a warning). This mints a fresh head so the required
pr-validator reads the final body.

---------

Co-authored-by: atrawog <[email protected]>
@aitrawog
aitrawog deleted the feat/soul-md branch November 1, 2026 19:11
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