Repository navigation
fix(docs): derive maintained guide source from trusted checkout at build - #633
Merged
Merged
Conversation
Product docs stay pinned to each channel's exact application commit, but the published Proxmox page and FAQ still carried a retired third-party helper. Add a narrow classification/path/compatibility manifest for release-independent operational guides, derive the exact source revision from git HEAD at build, overlay the declared files before link rebasing, and attest the revision and blob digests in a generated per-channel guide manifest. The whole Proxmox page also gets a visible Guide source link so the application pin is not mistaken for the guide source. No product repin, no hand-pinned source SHA, no ad hoc HTML edits, no broad page migration; CD/release/landing workflows untouched. Adds ADR 0050 and focused integration coverage for Stable/Nightly rendered content, idempotent already-current snapshots, no-manifest-edit refresh and fail-closed validation. Website Checks runs the new suite.
Owner
Author
|
CI receipt on PR head OSS-413 updated with the exact-head evidence and moved to In Review. No direct Pages workaround and no registry/deploy write here: qualified publication stays with the existing dispatch gate after review and green CI, followed by live marker/image verification before Done. |
athNdev
added a commit
that referenced
this pull request
Nov 19, 2026
An equal version-index hash is not proof of the deployed artifact: a #633 docs-only rebuild (artifact 14570669551, run 44610571376) shared the live index with the real deployment but was never deployed. Resolve the prior from the successful github-pages deployment status -> run -> named artifact chain, require the artifact head SHA to match the deployment SHA, and compare every published page byte-for-byte with the live site before accepting the rollback source. Verified against deployment 7924139974 / run 44602759613 / artifact 14568077771. Fixture covers two equal-index receipts with different guide contents.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Both active published documentation channels were built from pinned application commits whose authored Proxmox page still told readers to run the retired third-party
community-scripts/ProxmoxVE/main/ct/carbon-panel.shcommand (now HTTP 404). The first-party installer now exists on the maintained docs source, but fixing prose in a snapshot, repinning product docs, or hardcoding a new SHA in a second manifest would recreate the same stale-pin defect.Systemic change
docs/maintained-guides.jsonis a classification/path/compatibility declaration only — which docs slugs are release-independent operational guides, their allowlisted source paths, page vs fragment mode, provenance text, and the guarantee that pinned identity/schema stay untouched. It contains no revision and no content hashes.scripts/maintained_guides.pyderives the exact source revision from the checked-outgit HEADof the trusted website build (no floating ref, no secondary SHA input), reads the exact Git blobs, overlays the declared files onto each channel snapshot before link rebasing, and writes a generated per-channelmaintained-guides.jsonattesting the revision, its origin and each blob's SHA-256.Pinned toapplication link is not mistaken for the guide source. The FAQ uses fragment mode: only the retired Proxmox<details>answer is replaced; all other FAQ content stays pinned/versioned. The overlay is idempotent across old and already-current snapshots..github/workflows/docs.yml) now runsscripts.test_maintained_guides. CD, release and landing workflows are not edited. ADR 0050 (0049 is reserved by another draft) and the website docs/knowledge concepts record the decision.Exact-head review receipt
f93c3a9a5b1ee900bb55bbb1c59307b93cced431(exact current main).305f42a703d6da872b6927b7d9c9c64ecbfe93e2(codex/docs-source-proxmox).python -m unittest scripts.test_website scripts.test_version_contract scripts.test_maintained_guides scripts.test_landing_page scripts.test_design_system_page— 56 tests OKpython scripts/check_brand_assets.py— OKpython scripts/version_bump.py prepare --check— OKpython scripts/build_website.py— OK (2 channels from exact pinned commits)python scripts/check_website.py— OK (77 HTML pages)python scripts/version_bump.py prepare --check --site .website-build/site— OKgo run ./cmd/knowledge-lint -root . -fixthen-root .— OK (191 concepts, indexes current; 40/40 queries pass). Pre-existing invariant timestamp WARNs are unrelated..website-build/site:docs/getting-started/proxmox/index.htmlanddocs/nightly/getting-started/proxmox/index.html: first-party installer present, guest instructions present,--composeupdate guidance present, retiredcommunity-scripts/ProxmoxVE/main/ct/carbon-panel.shcommand absent, Guide source link present, originalPinned toapp banner preserved.docs/faq/index.htmlanddocs/nightly/faq/index.html: corrected first-party Proxmox entry present, oldenter updatealias and old summary absent, other FAQ content preserved.maintained-guides.jsonfiles attest source revisionf93c3a9a…with origingit HEADand the two exact blob digests.Publication
This PR prepares the artifact only. Do not use a direct Pages workaround. Qualified publication stays with the existing dispatch gate owned by the separate landing/release session (
landing.yml,refs/heads/main, read-only exact-commit verification); this PR only makes the Website Checks gate exercise the new coverage and leaves that publication path unchanged.Refs: OSS-413, ADR 0045, ADR 0050.