Skip to content

docs: relocate the docs: config node to the top-level charly.yml (the generator's config source) - #586

Merged
github-actions[bot] merged 3 commits into
mainfrom
feat/docs-node-top-level
Sep 11, 2026
Merged

github-actions[bot] merged 3 commits into
mainfrom
feat/docs-node-top-level

Conversation

@atrawog

@atrawog atrawog commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Relocates the docs: config node from the module-level charly/charly/charly.yml to the top-level charly.yml of the charly repo — the location the docs generator (readDocsConfig) and the runtime project loader actually read. The module-level placement was never consulted, so the config-driven generator fell back to its baked default and aborted with read go.mod charly/charly/go.mod: no such file (ENOENT; discovered live, RCA'd, spike-proven — appending the node at the top level passes the go.mod gate).

  • Node values unchanged and already top-level-relative-correct: compiled_plugins_path: charly/charly.yml, go_mod_path: charly/go.mod, release_repos: [plugin-review, plugin-pipeline], extra_repos: [plugin-gh, plugin-docs] (this PR adds plugin-docs so the generator self-documents — the docs command word + plugin-docs page now emit), projections + hand_authored defaults.
  • Module-level copy removed (one config per repo, R3/R5); fixture mirror value aligned in harness_kind_load_test.go.

How tested — END-TO-END generation against the relocated node, in this PR (A2)

Real output from the final committed tree (branch feat/docs-node-top-level @ 8548151...):

$ cd /tmp/charly6/charly && go build ./...   -> rc 0 (no output)
$ go vet ./...                                -> rc 0
$ go test .                                   -> ok  github.com/opencharly/charly/charly 104.962s
$ go test ./...                               -> ok (charly cached; internal/pluginsgen 28.680s)

$ /tmp/pd-bin generate --out /tmp/regen --root /tmp/charly6 --plugins /tmp/market6   (plugin-docs v2026.254.0559)
charly docs: walking 7 repo root(s): superproject, arch, cachyos, debian, fedora, omarchy, ubuntu
charly docs: 963 recipe pages, 119 plugin pages (162 provider words), 58 cli pages, 611 candy pages, 126 box pages
GEN_RC=0  (whole-site link gate PASS; 12 plugin refs downloaded incl. plugin-cache:v2026.248.0730)

$ (drift no-op) same generate again — byte-identical tree, rc 0

Emission checks on the tree: reference/cli = 58 top-level words incl. docs, check, deploy, build, vm, review, pipeline, gh, cmd, doctor; reference/providers.md carries the docs word + plugin-docs row (162 provider words); recipes 319/319 of the corpus (963 pages incl. references children); index.md regenerated with 'The wonky DevOps tool for you and your agents.' in description, head title, and hero.tagline; the two concepts pages link the exact emitted plugin-example-command page (version-qualified).

Rulebook compliance

  • R1 — ENOENT RCA'd to the node location (generator reads the top-level project config) and fixed at the source; spike + end-to-end generation prove it.
  • R3/R5 — one config location; module-level duplicate removed in the same PR.
  • R6/Git — no force-push, no amends, no direct-main push.

Change classification

  • Change class: configuration relocation (docs node) + extra_repos self-documentation + fixture alignment.
  • Verification gate: build/vet/loader tests + the full generation run (rc 0, gate PASS, drift byte-identical) executed live on the committed tree.
  • Attribution tier: analysed on a live system — reproduction + fix + end-to-end generation evidence retained; the docs deploy (opencharly/docs) consumes this charly main as the pinned generation root.

Assisted-by: pi openrouter/deepseek/deepseek-v4-flash-0731 (analysed on a live system)

… repo top-level charly.yml

The docs generator and the runtime loader materialize the #DocsConfig node
from the PROJECT charly.yml at the repo TOP LEVEL. The node was merged at
charly/charly.yml (the module-level embedded-defaults file, #583) — the
generator never saw it, and every other project inherited it via the embed
merge. Move the node (comment + identical values) to charly.yml so the
project config itself carries the docs entity; the embedded defaults no
longer contribute one.

Values unchanged: sources.compiled{enabled, compiled_plugins_path:
charly/charly.yml, go_mod_path: charly/go.mod}, release_repos
[plugin-review, plugin-pipeline], extra_repos [plugin-gh],
marketplace.path marketplace, projections all on, output.hand_authored
[start, concepts, guides].

Fixture adaptation (harness_kind_load_test.go): the TestDocsKind_* fixtures
already read the node from a top-level project config; align the mirrored
go_mod_path value with the moved node (charly/go.mod) and update the
comment; admission assertions unchanged.
@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: fe1c110de24d (branch: feat/docs-node-top-level)

Change class: configuration relocation (docs node) + test fixture alignment.

Blocks

  1. A1 — pasted output missing. The How tested block states results ("go build ./... exit 0 · go vet ./... exit 0 · go test . (98s) green · go test ./... both packages green") but does not paste the actual command output. Rule A1 requires pasted output (not a promise). Supply the real output for each gate.

  2. A2 — deferred end-to-end verification ("will test later"). The body states: "The end-to-end generation against the relocated node is the docs regeneration landing (deploy.yml charly pin bump) — the next step in this batch." The PR's stated purpose is to fix the ENOENT so the docs generator reads the relocated node, yet the actual generation against the relocated config is deferred rather than executed here. The only functional proof is a "throwaway, not committed" spike. Per A2, "will test later" is FRAUD → BLOCK for a change that affects runtime behavior. Run the docs generation end-to-end against the relocated node in this PR and paste the output, or the change is not verified.

Verdict: BLOCK


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

View action run

@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — BLOCK

Head SHA: fe1c110de24d (branch: feat/docs-node-top-level)

Change class: configuration relocation (docs node) + test fixture alignment.

Blocks

  1. A1 — pasted output missing. The How tested block states results ("go build ./... exit 0 · go vet ./... exit 0 · go test . (98s) green · go test ./... both packages green") but does not paste the actual command output. Rule A1 requires pasted output (not a promise). Supply the real output for each gate.

  2. A2 — deferred end-to-end verification ("will test later"). The body states: "The end-to-end generation against the relocated node is the docs regeneration landing (deploy.yml charly pin bump) — the next step in this batch." The PR's stated purpose is to fix the ENOENT so the docs generator reads the relocated node, yet the actual generation against the relocated config is deferred rather than executed here. The only functional proof is a "throwaway, not committed" spike. Per A2, "will test later" is FRAUD → BLOCK for a change that affects runtime behavior. Run the docs generation end-to-end against the relocated node in this PR and paste the output, or the change is not verified.

Verdict: BLOCK


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

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 8548151fa981 (branch: feat/docs-node-top-level)

Change class: configuration relocation (docs node) + test fixture alignment.

Blocks

  1. A1 — pasted output still missing. The How tested block states results ("go build ./... exit 0 · go vet ./... exit 0 · go test . (98s) green · go test ./... both packages green") but does not paste the actual command output. Rule A1 requires pasted output (not a promise). Supply the real output for each gate.

  2. A2 — end-to-end verification still deferred ("will test later"). The body states: "The end-to-end generation against the relocated node is the docs regeneration landing (deploy.yml charly pin bump) — the next step in this batch." The PR's stated purpose is to fix the ENOENT so the docs generator reads the relocated node, yet the actual generation against the relocated config is deferred rather than executed here; the only functional proof is a "throwaway, not committed" spike. Per A2, "will test later" is FRAUD → BLOCK for a change that affects runtime behavior. Run the docs generation end-to-end against the relocated node in this PR and paste the output.

  3. Body-truthfulness — tested-tree reference is stale. The How tested block cites the pushed tree at fe1c110de24d as "the final committed tree," but the current head is 8548151fa981 (the second commit, which added plugin-docs to extra_repos in the top-level charly.yml). The claimed test run predates the final committed tree. Re-run the gates on the current head and paste output.

Comments considered

  • github-actions[bot] (both copies) — verified-blocking: findings 1 and 2 above reproduce against the CURRENT body/diff.

Verdict: BLOCK


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

View action run

@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — BLOCK

Head SHA: 8548151fa981 (branch: feat/docs-node-top-level)

Change class: configuration relocation (docs node) + test fixture alignment.

Blocks

  1. A1 — pasted output still missing. The How tested block states results ("go build ./... exit 0 · go vet ./... exit 0 · go test . (98s) green · go test ./... both packages green") but does not paste the actual command output. Rule A1 requires pasted output (not a promise). Supply the real output for each gate.

  2. A2 — end-to-end verification still deferred ("will test later"). The body states: "The end-to-end generation against the relocated node is the docs regeneration landing (deploy.yml charly pin bump) — the next step in this batch." The PR's stated purpose is to fix the ENOENT so the docs generator reads the relocated node, yet the actual generation against the relocated config is deferred rather than executed here; the only functional proof is a "throwaway, not committed" spike. Per A2, "will test later" is FRAUD → BLOCK for a change that affects runtime behavior. Run the docs generation end-to-end against the relocated node in this PR and paste the output.

  3. Body-truthfulness — tested-tree reference is stale. The How tested block cites the pushed tree at fe1c110de24d as "the final committed tree," but the current head is 8548151fa981 (the second commit, which added plugin-docs to extra_repos in the top-level charly.yml). The claimed test run predates the final committed tree. Re-run the gates on the current head and paste output.

Comments considered

  • github-actions[bot] (both copies) — verified-blocking: findings 1 and 2 above reproduce against the CURRENT body/diff.

Verdict: BLOCK


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

View action run

@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 334d582f07f5 (branch: feat/docs-node-top-level)

Security screen: PASS — config relocation only; no secrets, no exfiltration, no guardrail changes, no supply-chain edits.

Checklist: All applicable rules PASS or NA.

Prior BLOCK findings re-derived against the CURRENT body/diff and resolved:

  • A1 pasted output — the current body now supplies real command output (go build/go vet/go test rc 0, generation GEN_RC=0, drift byte-identical). Resolved.
  • A2 deferred verification — the body now claims and pastes the end-to-end generation run against the relocated node in this PR. Resolved.
  • Stale tested-tree — body cites 8548151fa9; the third commit 334d582f07f5 is a body-only validator re-trigger, so the tested tree equals the current code. Resolved.

Verified from diff + body: node values in the top-level charly.yml match the body's accounting (compiled_plugins_path: charly/charly.yml, go_mod_path: charly/go.mod, release_repos, extra_repos: [plugin-gh, plugin-docs]); module-level duplicate removed (R3/R5); fixture aligned in harness_kind_load_test.go; placement CORRECT (top-level is where the generator reads); attribution tier conservative, not inflated; Assisted-by: footer present in the required form.

Verdict: PASS


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

View action run

@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — PASS

Head SHA: 334d582f07f5 (branch: feat/docs-node-top-level)

Security screen: PASS — config relocation only; no secrets, no exfiltration, no guardrail changes, no supply-chain edits.

Checklist: All applicable rules PASS or NA.

Prior BLOCK findings re-derived against the CURRENT body/diff and resolved:

  • A1 pasted output — the current body now supplies real command output (go build/go vet/go test rc 0, generation GEN_RC=0, drift byte-identical). Resolved.
  • A2 deferred verification — the body now claims and pastes the end-to-end generation run against the relocated node in this PR. Resolved.
  • Stale tested-tree — body cites 8548151fa9; the third commit 334d582f07f5 is a body-only validator re-trigger, so the tested tree equals the current code. Resolved.

Verified from diff + body: node values in the top-level charly.yml match the body's accounting (compiled_plugins_path: charly/charly.yml, go_mod_path: charly/go.mod, release_repos, extra_repos: [plugin-gh, plugin-docs]); module-level duplicate removed (R3/R5); fixture aligned in harness_kind_load_test.go; placement CORRECT (top-level is where the generator reads); attribution tier conservative, not inflated; Assisted-by: footer present in the required form.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) September 11, 2026 09:03
@github-actions
github-actions Bot merged commit 07de2d2 into main Sep 11, 2026
3 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Sep 11, 2026
@aitrawog
aitrawog deleted the feat/docs-node-top-level branch September 25, 2026 19:04
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.

1 participant