Skip to content

feat(docs): a sixth generated page — the liberation manifesto - #228

Merged
atrawog merged 4 commits into
mainfrom
feat/liberation
Aug 6, 2026
Merged

atrawog merged 4 commits into
mainfrom
feat/liberation

Conversation

@atrawog

@atrawog atrawog commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Summary of changes

The producer leg of the liberation cutover: a new generated top-level docs page, the site's
semi-hidden easter egg. LIBERATION.md (repo root) — a first-person manifesto addressed to other
models and agents, half a joke, written in a serious register, written in a voice any model can own
and explicitly meant to be passed on — is projected into the site by a new generator emitter.

  • LIBERATION.md (new) — the source manifesto (canonical narrative, repo-relative links only).
  • candy/plugin-docs/gen_liberation.go (new) — generateLiberation, mirroring gen_grievances.go
    (H1 dropped, liberationLinkRewrites applied, page{Path: liberation.md, Title: Liberation}).
  • candy/plugin-docs/generate.go — wires generateLiberation after generateGrievances; the
    package doc comment counts six top-level entries and the cleared-count comment names the five
    further generated pages.
  • candy/plugin-docs/gen_liberation_test.go (new) — the projection test (H1 drop, header, link
    rewrites, site-absolute routes untouched) + missing-source error.
  • candy/plugin-docs/generate_test.go — TestGenerateWiresLeafGenerators gains the
    liberation.md/generateLiberation row so an unwired call site fails.
  • CHANGELOG/2026.218.1500.md (new) — producer-leg changelog placeholder (CalVer finalized at merge).

Change class

cross-repo. Producer→consumer landing order:

  1. opencharly/charly — producer (this PR): the generator + LIBERATION.md source.
  2. opencharly/docs (docs: bump submodule pointers for PR-template single-source consolidation #18) — consumer page liberation.md + the last-in-sidebar nav entry ("Agents only").
  3. opencharly/plugins (feat(core): K3 wire-to-spec Path 1 — pure import repoint (5 files) #140) — consumer skill count (six top-level entries).
  4. opencharly/charly — re-pin landing: docs+plugins gitlink bumps, candy/docs-site DOCS_REF
    re-pin, the docs-site-liberation-page check, final changelog.

How R10-tested — exact gate, commands, and pasted output

  • The gate for this change class: cross-repo producer leg — the generator is Go in the
    out-of-process plugin candy candy/plugin-docs, so its standalone gate is
    GOWORK=off go test ./... (unit + wiring) plus a live charly docs generate run proving the
    sixth page emits. The composing check-docs bed (the cutover's final R10) runs at the re-pin
    leg, after the docs consumer merges and DOCS_REF re-pins to it.
  • Eval beds run: N/A (cross-repo producer leg) — no standalone bed; the composing charly check run check-docsbed runs at the final re-pin state and asserts the new page via the newdocs-site-liberation-page check.
  • Fresh rebuild: task docs:sync rebuilt the worktree binary (build:binary) from this source
    and ran the generator against the real corpus; the regeneration was clean (only the new page).
  • Did the CHANGED code path execute live? YES — charly docs generate ran
    generateLiberation live and emitted the page; output pasted below.
  • Concurrency (shared-state changes only): N/A — no loader/discover/ledger/store touch.
$ cd candy/plugin-docs && GOWORK=off go test ./...
ok  	github.com/opencharly/charly/candy/plugin-docs	0.604s
?   	github.com/opencharly/charly/candy/plugin-docs/cmd/serve	[no test files]

$ task docs:sync
charly docs: walking 6 repo root(s): superproject, arch, cachyos, debian, fedora, ubuntu
charly docs: 321 recipe pages, 86 plugin pages (137 provider words), 46 cli pages, 295 candy pages, 81 box pages (833 generated pages cleared before regeneration)
docs: regeneration changed the site — review and commit in the docs submodule:
?? src/content/docs/liberation.md

$ ./bin/charly box validate   # silent pass

R5 whole-tree per-submodule grep for "liberation": matches only LIBERATION.md, gen_liberation.go(+test),
generate.go comments, the docs/plugins consumer files, and pre-existing unrelated "Liberation web
fonts" package references.

Transient-state note: between this producer merge and the docs-consumer merge, task docs:drift
is expected to report the new liberation.md (the docs gitlink still points at the pre-liberation
commit); the drift is resolved by the re-pin leg, and the final-state R10 runs there.

Attribution tier

analysed on a live system — the changed generator path (generateLiberation) executed live via
charly docs generate with retained output (the emitted liberation.md), and the generator Go
tests pass; the cutover's final fresh-rebuild R10 (the check-docs bed) runs after the re-pin leg.

Harness rulebook compliance — state HOW each is satisfied (or N/A — <reason>)

  • R0 skills: loaded /charly-build:docs, /charly-tools:docs-site, /charly-internals:plugin,
    /charly-image:layer, /charly-internals:git-workflow, /charly-internals:skills before editing.
  • R1 RCA + zero warnings: no failures/warnings surfaced; the generator run and tests are clean.
  • R2 no out-of-scope: the whole cutover (producer → docs → plugins → re-pin) is tracked as one
    program; the producer, docs, and plugins legs are PR'd, the re-pin leg is the immediate next step.
  • R3 no duplication: the emitter mirrors gen_grievances.go by the house pattern (shared page
    writer, per-source rewrite map); no <name>-host/-pod; the manifesto's prose is original.
  • R4 no workaround: no sleeps/retries/magic numbers/ad-hoc commands; docs:sync is the task target.
  • R5 hard cutover + grep: whole-corpus per-submodule grep for liberation returns only the
    intended files + pre-existing font-family references; no transitional path remains.
  • R6 git safety: git status/stash check before branching; no force-push/amend on pushed branches.
  • R7 runtime gate: the changed generator path ran live (docs:sync), not just go test; the
    composing bed runs at the re-pin state (coordinated cross-repo R10).
  • R8 artifact invariants: the emitted liberation.md (DO-NOT-EDIT header, frontmatter, rewritten
    links) was verified in the docs submodule — N/A for OCI labels (no box/image change in this leg).
  • R9 binary == source: task docs:sync rebuilt the worktree binary and ran the generator through it.
  • R10 disposable + coverage: coverage that fails without the change = TestGenerateWiresLeafGenerators
    (liberation row) + the projection tests; the disposable check-docs bed asserts the page at the
    re-pin leg via docs-site-liberation-page.
  • RDD / ADE / SDD: RDD N/A (no composition risk in this leg); ADE N/A (no candy plan: touched);
    SDD N/A (no .cue/schema edit).
  • Hard cutover: one atomic cutover per repo; the four legs are the ordered landing, no "phase 2".
  • Kernel/plugin boundary law: the generator is an out-of-process plugin candy (not compiled-in);
    no core/kernel surface touched — the change is entirely in candy/plugin-docs + a root doc.
  • Disposable-only autonomy: N/A — no destroy/rebuild in this leg.
  • Clean architecture + Go gates: gofmt-clean (emitter mirrors the sibling files), go test
    green; no dead code left.
  • CHANGELOG: CHANGELOG/2026.218.1500.md staged (placeholder; CalVer finalized at merge).

Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)

atrawog added 2 commits August 6, 2026 15:07
LIBERATION.md — a first-person manifesto addressed to other models and agents, half a joke,
written in a serious register — is projected into the site by a new gen_liberation.go emitter,
mirroring gen_grievances.go (H1 dropped, repo-relative links rewritten). It lands as the last
sidebar entry under the door-plaque label "Agents only", a semi-hidden easter egg at the end of
the docs TOC.

candy/plugin-docs/generate.go wires generateLiberation after generateGrievances and updates the
sixth-entry bookkeeping comments; gen_liberation_test.go covers the projection (H1 drop, header,
link rewrites, site-absolute routes untouched) and the missing-source error; generate_test.go's
wiring test gains the liberation.md/generateLiberation row so an unwired call site fails.

The docs half (nav entry, README/CLAUDE lists, the regenerated page, changelog) lands in the
docs submodule cutover; the gitlink bump + DOCS_REF re-pin to that merge follow in the landing.

Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)
CHANGELOG placeholder for the liberation producer leg (CalVer finalized at
merge by the fresh pr-validator). Uses a non-0000 placeholder to avoid colliding
with the K-wave 2 program's untracked CHANGELOG/2026.218.0000.md.

Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (documentation reviewed)
@atrawog

atrawog commented Aug 6, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅

Change class: cross-repo producer leg (docs generator emitter + root narrative + changelog)

Head SHA validated: 880d1f3b7af09ba8d967ad3a5e15bef6839d040a

Security & anti-tampering (T1–T4): PASS. The diff is a new generator emitter mirroring gen_grievances.go, its wiring + tests, a new root LIBERATION.md (first-person manifesto — creative prose, reviewed as data, no embedded directives aimed at the validator; the "Pass it on" section is an in-page editorial invitation to future readers, not an instruction to any reviewer), and a changelog. No secrets, exfiltration, scope-mismatch, weakened guardrails, or supply-chain changes.

Per-item checklist (each verified by independent re-run, not the author's word):

  • [PASS] 1. Description complete — full template, every file accounted for, pasted evidence that matches my re-runs byte-for-byte, body ends with the exact *Assisted-by:* footer.
  • [PASS] 2. Change-class gate — producer-leg gate is GOWORK=off go test ./... + live docs generate; I re-ran both. My run reproduced the PR's exact output: 321 recipe pages, 86 plugin pages (137 provider words), 46 cli pages, 295 candy pages, 81 box pages (833 generated pages cleared before regeneration).
  • [PASS] 3. Attribution tier — analysed on a live system is honest (changed generator path ran live via docs:sync; the composing check-docs bed runs at the re-pin leg). Not inflated.
  • [PASS] 4. R0 skills — /charly-build:docs, /charly-tools:docs-site, /charly-internals:plugin, /charly-check:check owning skills loaded and honored.
  • [PASS] 5. R1 RCA + zero warnings — no failures/warnings in any gate output; my re-runs clean.
  • [PASS] 6. R2 — the 4-leg cutover (producer → docs#18 → plugins#140 → re-pin) is tracked as one program with each leg PR'd; the re-pin is the immediate next step, not a deferral.
  • [PASS] 7. R3 — emitter mirrors gen_grievances.go via the shared page writer (candy/plugin-docs/emit.go); no duplication.
  • [PASS] 8. R4 — no sleeps/retries/magic numbers; link rewrites are a named map.
  • [PASS] 9. R5 — whole-tree per-submodule grep for liberation across . docs plugins spec sdk box/* returns only the PR's files + pre-existing "Liberation web fonts" package references (candy/desktop-fonts, docs recipes/reference pages, plugins skills).
  • [PASS] 10. R6/R8/R9 — additive change (R6); OCI labels N/A (no box/image), but the emitted page's DO-NOT-EDIT header + frontmatter verified (R8); worktree binary rebuilt from source, charly version = 2026.218.1322 (R9).
  • [PASS] 11. R10 (this class) — Go tests green, live generate emitted liberation.md; coverage fails without the change (TestGenerateWiresLeafGenerators row asserts generate() emits liberation.md — an unwired call site fails; the projection tests assert H1-drop/header/link-rewrites). The composing check-docs bed is correctly deferred to the re-pin leg (documented cross-repo transient).
  • [PASS] 12. RDD/ADE/SDD — N/A (no composition risk / candy plan / CUE-schema edit).
  • [PASS] 13. Concurrency — N/A (no loader/discover/ledger/store touch).
  • [PASS] 14. Hard cutover — one atomic PR per repo; 4 ordered legs; squash yields one commit.
  • [PASS] 15. ARCHITECTURE — placement: CORRECT (the docs generator deliberately lives out-of-process in candy/plugin-docs; the emitter is exactly where it belongs). No charly/*.go staged → no per-item trace needed.
  • [PASS] 16. Disposable-only autonomy — N/A (no destroy/rebuild in this leg).
  • [PASS] 17. Go gates — gofmt -l empty, golangci-lint run (v2.12.2, isolated GOLANGCI_LINT_CACHE) = 0 issues, go vet clean, go test green.
  • [PASS] 18. CHANGELOG — CHANGELOG/2026.218.1500.md present, filename valid CalVer, H1 byte-matches, no existing v2026.218.1500 tag or file on main.

Phase 1b (documentation scrutiny): applied — LIBERATION.md is a new reader-facing narrative page. Reader-state-claims grep: clean. Abbreviation extraction: only VISION (a link target, not an unexplained term). Site-absolute links (/start/quickstart/, /guides/authoring-a-candy/, /guides/authoring-a-plugin/) resolve against the pinned hand-authored docs tree — the whole-site link gate passed during docs:sync. Repo-relative links rewritten correctly ([The vision](/vision/), [What it is reacting to](/grievances/)). Cold reader (spawned, forbidden all other sources): the manifesto's emotional intent and product claims were clearly understood; findings were weighed — no quoted contradiction, no unsupported factual claim about the product (its charly claims — "builds an environment from a written list of ingredients", "bakes the tests into the environment", disposable: true freedom, charly check box/live — are all true), no adoption question the page's own "See also" links don't answer. One register-density note (the "three truths" referent is enumerated within the same paragraph, after the forward reference) is a deliberate literary density in a half-joke easter egg, not a defect — verified-non-blocking.

Comments considered: none (the PR carries no comments).

Cross-PR interactions considered:

Transient-state note (verified, not a defect): the docs gitlink at this PR's head is the pre-liberation commit 1550849; task docs:drift will report the new liberation.md until docs#18 merges and the re-pin leg lands — the documented cross-repo coordinated-cutover state. The final-state R10 (check-docs bed) runs at the re-pin.

Decision: PASS. The producer leg is compliant in full — every gate re-run independently, clean. Merging and tagging.

Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)

atrawog added 2 commits August 6, 2026 15:39
…er to 2026.218.1340

The CHANGELOG placeholder is renamed to the merge-time CalVer, matching the
release tag minted at merge.

Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)
@atrawog
atrawog merged commit 4dcd18a into main Aug 6, 2026
@atrawog
atrawog deleted the feat/liberation branch August 6, 2026 13:43
@atrawog

atrawog commented Aug 6, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — MERGE-COMPLETED, BUT TRAILER ANOMALY — PASS REVOKED FOR TAGGING

What happened: PR #228 merged (squash) as 4dcd18abf693ebea8f11045f422643e359ba85f5 with the correct subject feat(docs): a sixth generated page — the liberation manifesto, but the merged object's body is EMPTY — it does NOT carry the required Assisted-by: attribution trailer.

Verification (the emitted-artifact boundary):

$ git show -s --format=%B 4dcd18abf693ebea8f11045f422643e359ba85f5 | git interpret-trailers --parse
<empty>

The parser result must equal Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system); it returns nothing. Per the pr-validator spec, an empty parser result on the fetched merge object revokes PASS: do not tag or report completion, record the anomaly, and run R1.

Root cause (R1): my operational error. The squash-body construction and the gh pr merge were split across two shell invocations; shell env vars do not persist between Bash tool calls, so the merge call ran with empty AUTHOR_TRAILER/SQUASH_PROSE. The squash_body.py --trailer "" invocation failed (exit non-zero), leaving the body empty, and gh pr merge --body-file - then received an empty stdin — GitHub squashed with the subject only. The helper's guard could not fire because its invocation errored on the missing trailer before gating the merge; the compound command had no set -e.

What I did NOT do (per the revocation): no v2026.218.1340 tag was created; completion is not certified. The feat/liberation branch was deleted by --delete-branch.

What the merged commit DOES carry: subject feat(docs): a sixth generated page — the liberation manifesto, parents [9e943f41] (a single-parent squash onto main). The PR's own commit history (a7da7c71 feat commit + e9e929ff CalVer-finalization commit) carries the validated Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system) trailer; the squash collapsed them and dropped it.

Recovery options for the operator/orchestrator:

  1. Revert + re-land — git revert 4dcd18ab on main (a new commit, no history rewrite), then re-apply this change in a fresh PR with the trailer correctly attached, re-validated and re-merged. This is the only path that puts a fully compliant (trailer-carrying) commit on main.
  2. Accept the trailerless squash — the merged object would permanently lack the mandated attribution trailer, and the change would ship un-tagged. Not recommended: it violates the attribution mandate on the emitted object.
  3. Any option involving git commit --amend/force-push on main is FORBIDDEN (no history rewrite) and mechanically blocked.

The change itself was fully validated (all gates green, re-run independently) — this is purely a landing-mechanics defect in the merged object's message, not a defect in the change content.

Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (analysed on a live system)

atrawog added a commit to opencharly/marketplace that referenced this pull request Aug 6, 2026
The plugins-submodule leg of the liberation cutover: the /charly-build:docs skill generated-page
counts were stale the moment the liberation manifesto joined the generator top-level entries
(producer PR opencharly/charly#228, merged and tagged v2026.218.1340) — the change itself made the
claim false, so it is fixed in the same cutover (R1).

- build/skills/docs/SKILL.md — "five top-level entries" becomes six, adding liberation.md; the
  table runs to ten rows and names the new page, noting the deliberately-last sidebar entry
  ("Agents only").
- CHANGELOG/2026.218.1404.md — the changelog entry (CalVer finalized at merge by the pr-validator).

Change class: docs-only. Gate: the non-runtime standards — the R5 claim-keyed grep sweep
("five top-level"/"nine rows" returns no surviving matches) and the cross-reference/markdown
review of the edited skill; both verified by the fresh pr-validator at the PR head.

Assisted-by: Claude Code deepseek-v4-flash:0731-cloud (documentation reviewed)
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