Skip to content

Milestone 6: resolve governed lesson media#21

Merged
botsarefuture merged 1 commit into
mainfrom
feat/academy-media-resolution
Jul 17, 2026
Merged

Milestone 6: resolve governed lesson media#21
botsarefuture merged 1 commit into
mainfrom
feat/academy-media-resolution

Conversation

@botsarefuture

Copy link
Copy Markdown
Owner

Purpose

Make governed published media usable by learner-facing lessons without sacrificing deterministic revisions or resilient bundled fallback.

What changed

  • adds exact lesson assetRef pins using asset id, version, and locale
  • retains every immutable published media revision in the public manifest
  • resolves only exact, kind-matched, fully reviewed assets
  • applies governed sources and accessibility alternatives while preserving bundled fallback
  • adds structured asset-reference fields to lesson authoring
  • pins the real Foundations pathway illustration
  • aligns delivery sources with the same-origin content-security policy
  • serves HTML with no-cache so deployments discover new hashed bundles while manifests remain cacheable

Validation

  • npm test (32 tests)
  • PYTHONPATH=server python3 -m unittest discover -s server -p "test_*.py" (21 tests)
  • npm run build
  • npm run check:version
  • staging author → reviewer → publisher publication of the real “How voice learning works” lesson and a Foundations course
  • learner rendering of governed media accessibility metadata on desktop and 390px mobile with no overflow
  • exact v1 pin remains v1 when v2 exists; missing, mismatched, and incompletely reviewed assets retain bundled media
  • verified HTML Cache-Control: no-cache and media public, max-age=300, stale-while-revalidate=3600

Known limitation

Real localized teaching media and binary upload/storage remain later Milestone 6 slices.

@botsarefuture
botsarefuture marked this pull request as ready for review July 17, 2026 13:31
@botsarefuture
botsarefuture merged commit 97064a0 into main Jul 17, 2026
3 checks passed
@botsarefuture
botsarefuture deleted the feat/academy-media-resolution branch July 17, 2026 13:31
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