Skip to content

fix(docs): pin additional catalog sources - #957

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/docs-pinned-source-corpus-20261016
Oct 16, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/docs-pinned-source-corpus-20261016

Conversation

@aitrawog

Copy link
Copy Markdown
Contributor

Summary

The documentation generator was resolving four additional plugin sources through bare repo names, so upstream releases could rename generated pages without a docs commit. This change empties release_repos and extra_repos and declares the same four sources as versioned candy references: [email protected], [email protected], [email protected], and [email protected].

check/docs-sources/main.go is the single acceptance implementation. The docs-source-proof task and disposable check-docs-sources bed run it against the consumer corpus and pinned narrative source. It asserts the committed source config, four generated plugin pages, identical content from two independent fresh caches, and a byte-identical third regeneration. This resolves the deterministic-source portion of docs#143; that issue remains open for its separate required-check ruleset change.

Head 7e8251b4d297132dd4386a2a1902df418f31cd94

How tested

The new acceptance check rejects the unchanged origin/main source lists before invoking the generator. The source config is identical at the earlier baseline and current origin/main:

$ git diff --exit-code 26bbc32c334b3b4939edc5f02b1f38349e8f5915 origin/main -- charly.yml
exit 0 (no difference)

$ GOCACHE=/tmp/docs157-go-cache GOTMPDIR=/tmp/docs157-go-tmp TMPDIR=/tmp/cs go run ./check/docs-sources/main.go --root ../charly-baseline --generator /home/atrawog/Sync/Atrapub/a/codex/opencharly/.worktrees/docs157/plugin-docs-generator/bin/plugin-docs --site /home/atrawog/Sync/Atrapub/a/codex/opencharly/.worktrees/docs157/docs --narrative /tmp/docs157-narrative
release_repos must be empty; bare source names resolve moving tags
origin/main baseline exit: 1
BASELINE-REGRESSION-PASS: the acceptance check rejects the floating-source baseline

Go suite and vet, from charly/:

$ GOCACHE=/tmp/docs157-go-cache GOTMPDIR=/tmp/docs157-go-tmp TMPDIR=/tmp/cs go test ./...
ok  github.com/opencharly/charly/charly 101.091s
ok  github.com/opencharly/charly/charly/internal/pluginsgen 131.272s

$ GOCACHE=/tmp/docs157-go-cache GOTMPDIR=/tmp/docs157-go-tmp TMPDIR=/tmp/cs go vet ./...
exit 0

Static validation and the worktree binary:

$ GOCACHE=/tmp/docs157-go-cache GOTMPDIR=/tmp/docs157-go-tmp TMPDIR=/tmp/cs scripts/bootstrap-charly.sh
bootstrap-charly: regenerating compiled-in plugin wiring
bootstrap-charly: building bin/charly
bootstrap-charly: built ./bin/charly (2026.289.0622)

$ ./bin/charly version
2026.289.0622

$ ./bin/charly box validate
charly box validate: OK — checked 602 candies, 122 boxes, 48 deploys, 7 distros, 7 builders; 0 warnings, 0 errors

The final-tree R10 gate used the standalone generator built from plugin-docs tag v2026.278.0442, the docs consumer checkout, and narrative commit e631aacf32df4e26a66f2cb6a75fc9e85e212399:

$ DOCS_GENERATOR_BIN=/home/atrawog/Sync/Atrapub/a/codex/opencharly/.worktrees/docs157/plugin-docs-generator/bin/plugin-docs DOCS_SITE_SOURCE=/home/atrawog/Sync/Atrapub/a/codex/opencharly/.worktrees/docs157/docs DOCS_NARRATIVE_SOURCE=/tmp/docs157-narrative ./bin/charly check run check-docs-sources
charly check run check-docs-sources: [deploy-add] PASS after 1m17.269s
charly check run check-docs-sources: [bring-up-members] PASS after 0s
charly check run check-docs-sources: [check-live] PASS after 1m6.592s
charly check run check-docs-sources: [update] PASS after 1m6.908s
charly check run check-docs-sources: [cleanup] PASS after 11.692s
charly check run check-docs-sources: [cleanup-members] PASS after 0s
charly check run check-docs-sources: PASS (steps=6)

summary.yml: ok=true; total_seconds=222; errors=0; warnings=0; advisories=0; skipped=0

The live acceptance step reports one task run, one passed, zero failed. The task’s DOCS-SOURCES-PASS assertion covers four pinned pages, equal fresh-cache content hashes, and a no-op regeneration. charly box validate was run in the writable canonical execution context so external provider builds completed; the final output above has zero warnings.

The source grep below leaves the generic docs-schema round-trip fixture in charly/harness_kind_load_test.go; it is test input only. The active root config contains empty source lists, and the acceptance checker enforces that state:

$ rg -n 'release_repos|extra_repos' --glob '!CHANGELOG/**' --glob '!**/.git/**' .
./check/docs-sources/main.go:49: for _, key := range []string{"release_repos", "extra_repos"} {
./check/docs-sources/main.go:52:  return fmt.Errorf("%s must be empty; bare source names resolve moving tags", key)
./charly.yml:3754: release_repos: []
./charly.yml:3755: extra_repos: []
./charly/harness_kind_load_test.go:92: release_repos: [plugin-review, plugin-pipeline]
./charly/harness_kind_load_test.go:93: extra_repos: [plugin-gh]

Rulebook compliance

  • R0: Loaded the dispatched git, strict-policy, RCA, Go, plugin, validation, and check skills before source edits and Git actions.
  • R1: Root-caused the floating-tag behavior and corrected it at its source. RCA: early validation ran before the external provider was available, a later sandboxed provider build hit the read-only shared cache, and the first bootstrap lacked GitHub access. The missed control was using restricted execution for commands that resolve/build external providers. The canonical writable/networked runs then passed: bootstrap and validation succeeded, and the final R10 reports zero warnings. The worktree mistake came from running git worktree add at the umbrella root; the missed control was not checking --show-toplevel. It created only a clean local umbrella worktree, which I preserved. I then created the producer worktree through the charly repository from the refreshed base. The separately filed guidance issue layer-charly-local#9 was resolved by chore: bump sdk → aur-builder empty-output guard (6c20071) #10 before this PR was prepared.
  • R2: One pinned source declaration is used by the existing docs walk; one Go proof implementation backs both the task and bed.
  • R3: Uses immutable refs and independent fresh-cache comparisons; no retry, sleep, fallback, or alias was added.
  • R4: The producer configuration is corrected before docs regeneration; no prose route-around or new user-facing command was added.
  • R5: The live root lists are empty. The only populated lists in active source are the existing docs-schema parser fixture; historical entries remain in CHANGELOG/.
  • R6: The candidate is on a clean charly feature worktree based on the refreshed origin/main at be0f7a04; the earlier unpushed tree was preserved. No force push, history rewrite after push, or direct main push.
  • R7: The committed acceptance check fails on the unchanged baseline and passed live on this tree; it validates generated pages and complete-tree hashes at the consumer boundary.
  • R8: Generation uses the actual public pinned repositories and real consumer inputs; no service is mocked.
  • R9: Used the worktree-local ./bin/charly; its CalVer is 2026.289.0622. No charly runtime source or installed binary was changed.
  • R10: check-docs-sources is disposable: true; the full run, fresh update, cleanup, and zero-warning summary are pasted above.

Change classification

Producer-side documentation-source determinism: configuration plus a Go acceptance tool and its disposable R10 bed. No runtime behavior or schema changes.

Filed issues

Agent: docs157
Assisted-by: Codex OpenAI GPT-6 (fully tested and validated)

Assisted-by: Codex OpenAI GPT-6 (fully tested and validated)
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 7e8251b4d297132dd4386a2a1902df418f31cd94 (branch: feat/docs-pinned-source-corpus-20261016)

Security screen: PASS — no embedded directives, secrets, egress, guardrail weakening, or supply-chain drift; pinned refs are immutable.
Checklist: All applicable rules PASS or NA (A1 body complete with footer *Assisted-by: …* last; A2 code/config class ran a disposable bed with pasted output; A3 tier supported by live run; R1 RCA present, zero warnings; R5 grep output line numbers reconcile with the diff; ADE candy has description: + plan:/check:; SDD N/A — no CUE/*_gen.go/proto touched; ARCH placement CORRECT; DISP bed disposable: true; no forbidden framing; single cutover commit). No comments to disposition.

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) October 16, 2026 06:48
@github-actions
github-actions Bot merged commit bafd8db into main Oct 16, 2026
2 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Oct 16, 2026
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