Skip to content

OSS-413 docs sources: Stable/Nightly channels, accessible selector, exact promotion marker - #608

Merged
athNdev merged 2 commits into
mainfrom
codex/oss413-docs-channels
Nov 19, 2026
Merged

athNdev merged 2 commits into
mainfrom
codex/oss413-docs-channels

Conversation

@athNdev

@athNdev athNdev commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Owner A (docs sources) for OSS-413. DRAFT pending independent exact-head review and Owner B's synchronized promotion gates. No workflow, release.py, registry, tag, dispatch or deployment changes in this PR.

Head

What changed

  • docs/website-source.json + generated docs/version-index.json: schema 3 with exactly stable and nightly, both registry refs, one shared digest/revision per channel. Removed the 1.0.39 and 3.0.0-alpha.1 doc snapshots/options; source tags and docs/release-history.json records are untouched. Stable = v1.0.40/f88748be…/sha256:ead260ef…. Nightly default is the deterministic, explicitly unpromoted Docker Hub baseline and never claims a promotion.
  • VersionBanner.astro: real accessible labelled <select> (keyboard, focus ring, narrow/desktop CSS) with only Stable and Nightly; canonical switcher hrefs (no versions/ carry bug, no //); Pinned to <short> links to ${repository}/commit/<FULL_SHA> on all served routes; non-40-hex commits refuse to build.
  • Promotion transaction support: build_website.py accepts an exact external nightly revision/digest/state/receipt (--nightly-revision, --nightly-digest, --promotion-state, --promotion-receipt or CARBONPANEL_PROMOTED_*). Nothing writes those values back to tracked main files. A candidate build is emitted only at the non-active staging route /docs/candidate/<sha>/ with its own channel-marker.json, scoped index, assets and sitemap; canonical /docs/, /docs/nightly/ and /docs/versions/1.0.40/ are absent until the qualified final build. check_website.py --expect-* and browser CARBONPANEL_EXPECT_* verify the marker over the served staging path before alias moves and at canonical paths afterwards.
  • Fail closed on extra channels, retired snapshots, missing digest/revision, stale/mismatched markers, stale baseline relabel, candidate route leakage onto active paths, non-canonical pinned URLs and broken switcher hrefs.

Evidence (Windows worktree, pinned tools)

  • python -m unittest scripts.test_website scripts.test_version_contract scripts.test_landing_page scripts.test_design_system_page: 50 tests pass.
  • python scripts/version_bump.py prepare --check: pass; also with --site .website-build/site: pass.
  • Default python scripts/build_website.py: 2 channels from exact commits; marker nightly=…d8597d4e… (baseline, promoted=false). python scripts/check_website.py: 77 HTML pages valid. Real Chromium at 375px and 1440px passes.
  • Candidate fixture: --nightly-revision d8597d4e… --nightly-digest sha256:cccc… --promotion-state candidate --promotion-receipt OSS-413-docs-candidate-1 built at /docs/candidate/d8597d4e…/; local checks confirmed /docs/, /docs/nightly/ and /docs/versions/1.0.40/ absent, staging marker present; check_website.py --expect-… passed (27 pages); real Chromium passed at both widths and verified the public staging marker, canonical 404s and staging-only sitemap. Tracked files stayed unchanged. Fixture digest is a test value, not a registry claim.
  • bun install --frozen-lockfile && bun run check && bun run test in web/carbon-panel: 0 errors/warnings, 444 tests pass.
  • go run ./cmd/knowledge-lint -root . -fix then without -fix: 40/40 queries, 85 concepts current; git diff --check: clean.

Coordination / limits

  • Owner B owns the promotion gates, receipt, ADR and knowledge concepts. This PR supplies the docs marker contract only; it does NOT qualify or move registry aliases, does NOT dispatch Pages and does NOT publish. The d8597d4e/sha256:ecc89ba9… pair remains explicitly bootstrap-only pending GHCR qualification; otherwise the gate must inject the first qualified current-main pair through the external input above.
  • No live HTTPS/registry parity is claimed here; that verification belongs to the coordinated promotion run after both lanes are reviewed green.

@athNdev
athNdev force-pushed the codex/oss413-docs-channels branch from ad931e3 to 553fd8b Compare November 19, 2026 14:19
@athNdev
athNdev marked this pull request as ready for review November 19, 2026 16:01
@athNdev
athNdev merged commit e40bc30 into main Nov 19, 2026
44 of 46 checks passed
@athNdev
athNdev deleted the codex/oss413-docs-channels branch November 19, 2026 16:01
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