Skip to content

fix(docs): derive maintained guide source from trusted checkout at build - #633

Merged
athNdev merged 1 commit into
mainfrom
codex/docs-source-proxmox
Nov 19, 2026
Merged

athNdev merged 1 commit into
mainfrom
codex/docs-source-proxmox

Conversation

@athNdev

@athNdev athNdev commented Nov 19, 2026

Copy link
Copy Markdown
Owner

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.sh command (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.json is 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.py derives the exact source revision from the checked-out git HEAD of 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-channel maintained-guides.json attesting the revision, its origin and each blob's SHA-256.
  • The Proxmox page uses whole-page mode and also renders a separately labelled Guide source link to the exact authored blob, so the existing Pinned to application 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.
  • Product pins, generated identity files, aliases, schema and unrelated pages are never rewritten. Missing/duplicate/out-of-allowlist entries, absent blobs, absent pinned slugs, floating refs and broken anchors fail closed.
  • Website Checks (.github/workflows/docs.yml) now runs scripts.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

  • Base / reviewed head: f93c3a9a5b1ee900bb55bbb1c59307b93cced431 (exact current main).
  • PR head: 305f42a703d6da872b6927b7d9c9c64ecbfe93e2 (codex/docs-source-proxmox).
  • Commands and results at that head:
    • 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 OK
    • python scripts/check_brand_assets.py — OK
    • python scripts/version_bump.py prepare --check — OK
    • python 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 — OK
    • go run ./cmd/knowledge-lint -root . -fix then -root . — OK (191 concepts, indexes current; 40/40 queries pass). Pre-existing invariant timestamp WARNs are unrelated.
  • Actual built artifact inspected at .website-build/site:
    • docs/getting-started/proxmox/index.html and docs/nightly/getting-started/proxmox/index.html: first-party installer present, guest instructions present, --compose update guidance present, retired community-scripts/ProxmoxVE/main/ct/carbon-panel.sh command absent, Guide source link present, original Pinned to app banner preserved.
    • docs/faq/index.html and docs/nightly/faq/index.html: corrected first-party Proxmox entry present, old enter update alias and old summary absent, other FAQ content preserved.
    • Both maintained-guides.json files attest source revision f93c3a9a… with origin git HEAD and the two exact blob digests.
  • Limit: verification is of the committed exact-source build and its rendered HTML. No claim of a live installer download or live Pages deployment is made here.

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.

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.
@athNdev

athNdev commented Nov 19, 2026

Copy link
Copy Markdown
Owner Author

CI receipt on PR head 305f42a703d6da872b6927b7d9c9c64ecbfe93e2: Website Build and Links pass (the new maintained-guides suite runs there), plus Landing Page Checks, Knowledge Base, Release tooling contracts, Proxmox installer fixtures and all backend/frontend/proto gates pass. Go Race Detector was still pending at check time and is unrelated to this docs-source change; no result is claimed for it.

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
athNdev merged commit cfb3781 into main Nov 19, 2026
18 checks passed
@athNdev
athNdev deleted the codex/docs-source-proxmox branch November 19, 2026 20:37
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.
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