Skip to main content

10 - Multi-Tenant Content Management: Versioning and SCORM

How to keep one course shared across many customers: per-key overrides, semantic versions, a consistent SCORM package and expiring signed URLs.

What do you think about this article?

At a Glance

How to keep one course shared across many customers: per-key overrides, semantic versions, a consistent SCORM package and expiring signed URLs.

One training module, five hundred customers, a single copy to fix

The problem is this: a vendor has a workplace-safety course that regulation forces them to update, and many customers use it, each with its own logo, its own examples and its own LMS. It works if you separate three things that often get mixed: the shared content (a single copy), each customer's customizations (few, explicit, at key level) and the version each customer sees (numbered, lockable, never modified after publication). The SCORM format is how the package talks to the customer's LMS; distribution has to get the right files to the right person.

The listings are self-contained modules, run with Python 3.14 and Node 24: the output shown is the real one. I did not start any LMS, any object store or any CDN: the LMS is a fake in-memory object, and distribution is the logic of the signature, not a service. The example does not depend on any storage or CDN vendor: the rules that matter hold with any infrastructure. Where I wrote about SCORM I could open only the 1EdTech guide to the package format; the ADL specification was unreachable, and I flag it in the sources. The tenant topic is already in the article Scalable LMS Architecture: here it is applied to content.

Shared content with customizations: three levels, key by key

The three-level model (master, customer category, single customer) works if customization is a set of replacement keys and not a modified copy of the course. If the customer copies the master and changes it, from the next day on it receives no more fixes. If instead it declares "for the key example.1 I use this text", everything else stays attached to the master. The resolve function does this: where several levels define the same key, the most specific wins.

overrides.py: three-level resolution and orphaned overrides
def resolve(master, category, tenant):
    """Three levels: the most specific wins, key by key. Returns (content, warnings)."""
    texts = {**master["texts"], **category.get("texts", {}), **tenant.get("texts", {})}
    hidden = set(category.get("hidden_modules", [])) | set(tenant.get("hidden_modules", []))
    modules = [m for m in master["modules"] if m not in hidden] + tenant.get("extra_modules", [])
    warnings = []
    for livello, override in (("category", category), ("tenant", tenant)):
        for key in override.get("texts", {}):
            if key not in master["texts"]:
                warnings.append(f"{livello}: orphaned override '{key}' (no longer exists in the master)")
        for m in override.get("hidden_modules", []):
            if m not in master["modules"]:
                warnings.append(f"{livello}: hidden module '{m}' no longer exists in the master")
    return {"version": master["version"], "logo": tenant.get("logo", "logo-default.svg"),
            "texts": texts, "modules": modules}, warnings


master_21 = {"version": "2.1.0",
             "texts": {"intro": "Worker obligations", "example.1": "A building site", "notice": "2025 regulation"},
             "modules": ["m1-risks", "m2-ppe", "m3-emergencies"]}
categoria = {"texts": {"notice": "2025 regulation, healthcare sector"}, "hidden_modules": ["m2-ppe"]}
acme = {"logo": "acme.svg", "texts": {"example.1": "An intensive care unit"}, "extra_modules": ["x-acme-procedures"]}

contenuto, avvisi = resolve(master_21, categoria, acme)
print("modules  :", contenuto["modules"])
print("text     :", contenuto["texts"]["example.1"], "|", contenuto["texts"]["notice"], "|", contenuto["logo"])
print("warnings :", avvisi)

# Master 2.2 removes example.1 and renames module m2-ppe
master_22 = {"version": "2.2.0",
             "texts": {"intro": "Worker obligations", "notice": "2026 regulation"},
             "modules": ["m1-risks", "m2-protections", "m3-emergencies"]}
contenuto, avvisi = resolve(master_22, categoria, acme)
print("v2.2     :", contenuto["modules"], "|", contenuto["texts"]["notice"])
for a in avvisi:
    print("  !", a)

# Output (executed):
# modules  : ['m1-risks', 'm3-emergencies', 'x-acme-procedures']
# text     : An intensive care unit | 2025 regulation, healthcare sector | acme.svg
# warnings : []
# v2.2     : ['m1-risks', 'm2-protections', 'm3-emergencies', 'x-acme-procedures'] | 2025 regulation, healthcare sector
#   ! category: hidden module 'm2-ppe' no longer exists in the master
#   ! tenant: orphaned override 'example.1' (no longer exists in the master)

In the first part of the output, the customer Acme gets its own example ("intensive care unit"), the healthcare category's notice, its own logo and an additional module, while m2-ppe is hidden by the category. This is the ordinary case. The second part shows the hidden problem: master 2.2.0 removes example.1 and renames the module. The customer's override now points to a key that does not exist, and the category's one hides a module that is no longer there. If the function did not flag it, the customer would keep believing it has a customized example while the text no longer appears, and the category notice (2025 regulation, healthcare sector) would stay old even after the master moved to the 2026 regulation. That last case is the most dangerous in a compliance course: an override that silently overwrites an updated text.

From here a design rule: every master update must produce the list of orphaned or conflicting overrides for each customer, before publication. Text keys are stable identifiers (example.1), not the English inside them, and they are not reused for different texts. Full copies of the course for a customer remain the exceptional case, with a name and an owner.

Semantic versioning: who updates on their own and who must approve

The Semantic Versioning specification defines MAJOR.MINOR.PATCH: you increment MAJOR for incompatible changes, MINOR for functionality added in a backward-compatible way, PATCH for backward-compatible fixes. For content you need to translate the three levels into rules of your own, for example: PATCH is a typo or a corrected figure, MINOR adds a section or an example, MAJOR changes the learning objectives or the passing score, and so can invalidate certificates already issued. This translation is a convention of your catalog, it is not in the specification.

versions.py: classifying the update and planning the rollout
import re

SEMVER = re.compile(r"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-[0-9A-Za-z.-]+)?(?:\+[0-9A-Za-z.-]+)?$")
RANK = {"none": 0, "patch": 1, "minor": 2, "major": 3}


def parse(v):
    m = SEMVER.match(v)
    if not m:
        raise ValueError(f"invalid version: {v!r}")
    return tuple(int(x) for x in m.groups())


def classify(current, new):
    c, n = parse(current), parse(new)
    if n <= c:
        raise ValueError(f"{new} is not later than {current}")
    if n[0] > c[0]:
        return "major"
    return "minor" if n[1] > c[1] else "patch"


def plan(current, new, policy, tenants):
    """policy = the highest change the master applies on its own; every tenant can lock."""
    bump = classify(current, new)
    out = {}
    for name, locked in tenants.items():
        if locked:
            out[name] = "locked: stays at " + locked
        elif RANK[bump] <= RANK[policy]:
            out[name] = "automatic update"
        elif bump == "major":
            out[name] = "requires approval"
        else:
            out[name] = "notification only"
    return bump, out


tenants = {"acme": None, "beta": None, "gamma": "2.1.0"}
for new, policy in (("2.1.1", "minor"), ("2.1.1", "none"), ("2.2.0", "minor"), ("2.2.0", "patch"), ("2.2.0", "none"), ("3.0.0", "minor")):
    bump, out = plan("2.1.0", new, policy, tenants)
    print(f"2.1.0 -> {new} ({bump}), policy '{policy}':", out["acme"], "|", out["gamma"])

print("comparison as strings '1.10.0' < '1.9.0':", "1.10.0" < "1.9.0", "| as numbers:", parse("1.10.0") < parse("1.9.0"))
for v in ("2.1", "2.1.0.0", "v2.1.0", "01.2.3"):
    try:
        parse(v)
    except ValueError as e:
        print("discarded:", e)
try:
    classify("2.1.0", "2.0.5")
except ValueError as e:
    print("discarded:", e)

# Output (executed):
# 2.1.0 -> 2.1.1 (patch), policy 'minor': automatic update | locked: stays at 2.1.0
# 2.1.0 -> 2.1.1 (patch), policy 'none': notification only | locked: stays at 2.1.0
# 2.1.0 -> 2.2.0 (minor), policy 'minor': automatic update | locked: stays at 2.1.0
# 2.1.0 -> 2.2.0 (minor), policy 'patch': notification only | locked: stays at 2.1.0
# 2.1.0 -> 2.2.0 (minor), policy 'none': notification only | locked: stays at 2.1.0
# 2.1.0 -> 3.0.0 (major), policy 'minor': requires approval | locked: stays at 2.1.0
# comparison as strings '1.10.0' < '1.9.0': True | as numbers: False
# discarded: invalid version: '2.1'
# discarded: invalid version: '2.1.0.0'
# discarded: invalid version: 'v2.1.0'
# discarded: invalid version: '01.2.3'
# discarded: 2.0.5 is not later than 2.1.0

The plan function crosses three pieces of data: the type of update (classify), the master's policy (the highest change that applies by itself) and each customer's lock. The output rows show that the same 2.2.0 release is automatic with the minor policy and only a notification with patch or none; that a MAJOR always requires approval unless the policy is major; and that the customer gamma, which locked the version at 2.1.0, never moves. Note the 2.1.1 row with policy none: the fix does not apply by itself. Some circulating versions of this example update all PATCHes anyway, ignoring the policy; for a typo that is fine, for the correction of a wrong regulation probably not, so decide it on purpose.

The last rows show two classic errors. Comparing versions as strings gives "1.10.0" < "1.9.0" true, because the comparison goes character by character; comparing them as numbers gives false. And a malformed version (2.1, v2.1.0, 01.2.3) is discarded instead of being treated as MAJOR, as a "cautious choice" used to do, one that in reality started an approval for a typo. The regular expression in the listing is a simplified version of the official one from semver.org: it does not check all the constraints on pre-release identifiers. One last design note: updating customers one by one, with a write for each and then updating the master, leaves a mixed state if the process stops halfway. It is better for the customer to store only its own policy or lock and for the effective version to be computed on read, or for everything to happen in a single transaction.

The SCORM package: a manifest consistent with the files

A SCORM package is a ZIP archive with an imsmanifest.xml file at the root. The 1EdTech guide to the content packaging format, on which SCORM is based, explains that the manifest describes the organizations (the structure the student sees, made of item elements) and the resources (the files): an item links to a resource through the identifierref attribute. A wrong reference gives no obvious errors in the package: it is the LMS, at upload or at launch, that rejects it or shows an empty course.

manifest.py: a SCORM 1.2 manifest built and checked
import xml.etree.ElementTree as ET

IMSCP = "http://www.imsproject.org/xsd/imscp_rootv1p1p2"
ADLCP = "http://www.adlnet.org/xsd/adlcp_rootv1p2"
ET.register_namespace("", IMSCP)
ET.register_namespace("adlcp", ADLCP)


def q(ns, tag):
    return f"{{{ns}}}{tag}"


def build(course_id, title, modules):
    """modules: list of (id, title, launch file, mastery). ElementTree does the escaping itself."""
    m = ET.Element(q(IMSCP, "manifest"), identifier=course_id, version="1.0")
    md = ET.SubElement(m, q(IMSCP, "metadata"))
    ET.SubElement(md, q(IMSCP, "schema")).text = "ADL SCORM"
    ET.SubElement(md, q(IMSCP, "schemaversion")).text = "1.2"
    orgs = ET.SubElement(m, q(IMSCP, "organizations"), {"default": f"ORG-{course_id}"})
    org = ET.SubElement(orgs, q(IMSCP, "organization"), identifier=f"ORG-{course_id}")
    ET.SubElement(org, q(IMSCP, "title")).text = title
    res = ET.SubElement(m, q(IMSCP, "resources"))
    for mid, mtitle, href, mastery in modules:
        item = ET.SubElement(org, q(IMSCP, "item"), identifier=f"ITEM-{mid}", identifierref=f"RES-{mid}")
        ET.SubElement(item, q(IMSCP, "title")).text = mtitle
        ET.SubElement(item, q(ADLCP, "masteryscore")).text = str(mastery)
        r = ET.SubElement(res, q(IMSCP, "resource"), {"identifier": f"RES-{mid}", "type": "webcontent",
                                                      q(ADLCP, "scormtype"): "sco", "href": href})
        ET.SubElement(r, q(IMSCP, "file"), href=href)
    return m


def check(root, files_in_package):
    """Internal consistency: the manifest's references must point to something that exists."""
    ns = {"c": IMSCP}
    errors = []
    org_ids = {o.get("identifier") for o in root.iterfind(".//c:organization", ns)}
    if root.find("c:organizations", ns).get("default") not in org_ids:
        errors.append("organizations/@default does not point to an organization")
    res = {r.get("identifier"): r for r in root.iterfind(".//c:resource", ns)}
    for item in root.iterfind(".//c:item", ns):
        if item.get("identifierref") not in res:
            errors.append(f"item {item.get('identifier')}: identifierref '{item.get('identifierref')}' has no resource")
    for r in res.values():
        if r.get("href") not in files_in_package:
            errors.append(f"resource {r.get('identifier')}: file '{r.get('href')}' missing from the package")
    return errors


mods = [("m1", "Risks & prevention", "m1/index.html", 70), ("m2", "Emergencies", "m2/index.html", 80)]
root = build("SIC-2026", "Workplace safety", mods)
ET.indent(root)
xml = ET.tostring(root, encoding="unicode")
print(xml[xml.index("<organizations"):xml.index("</organizations>") + 16])
print("errors (complete package):", check(root, {"m1/index.html", "m2/index.html"}))
print("errors (a file is missing):", check(root, {"m1/index.html"}))

rotto = build("SIC-2026", "Workplace safety", mods)
rotto.find(f".//{q(IMSCP, 'item')}").set("identifierref", "RES-m9")        # typo
print("errors (typo in the ref.):", check(rotto, {"m1/index.html", "m2/index.html"}))

ingenuo = f'<title>{mods[0][1]}</title>'                                    # concatenated string: no escaping
try:
    ET.fromstring(ingenuo)
except ET.ParseError as e:
    print("title with & in the string:", e)

# Output (executed):
# <organizations default="ORG-SIC-2026">
#     <organization identifier="ORG-SIC-2026">
#       <title>Workplace safety</title>
#       <item identifier="ITEM-m1" identifierref="RES-m1">
#         <title>Risks &amp; prevention</title>
#         <adlcp:masteryscore>70</adlcp:masteryscore>
#       </item>
#       <item identifier="ITEM-m2" identifierref="RES-m2">
#         <title>Emergencies</title>
#         <adlcp:masteryscore>80</adlcp:masteryscore>
#       </item>
#     </organization>
#   </organizations>
# errors (complete package): []
# errors (a file is missing): ["resource RES-m2: file 'm2/index.html' missing from the package"]
# errors (typo in the ref.): ["item ITEM-m1: identifierref 'RES-m9' has no resource"]
# title with & in the string: not well-formed (invalid token): line 1, column 14

The listing does two things. build constructs the manifest with ElementTree instead of concatenating strings: the last line of the output shows that a title like "Risks & prevention" inserted into a string produces malformed XML, while with ElementTree the character is converted to &amp; (you can see it in the organization printed). check verifies the internal relations: that organizations/@default points to an existing organization, that every identifierref has its resource and that every href is in the package. The three "errors" rows show the complete package (no errors), one with a missing file and one with a typo in the reference.

The limits are declared: I did not validate the manifest against the SCORM XSD schemas, which I could not download, and the namespaces (adlcp_rootv1p2) and the name of the masteryscore element come from my knowledge of SCORM 1.2, not from reading the specification during this work. Before distributing, load the package into a test LMS or an official validator. One last choice: the listing writes the passing threshold (masteryscore) into the manifest, because that is where the LMS reads it, and the wrapper receives it as a parameter.

The JavaScript wrapper: talking to the LMS without spelling out its details everywhere

In SCORM 1.2 the content runs in the browser inside a frame of the LMS, and the LMS exposes an object called API in a parent window. The content looks for it by climbing the chain of windows, then calls functions such as LMSInitialize and LMSSetValue, which return the strings "true" or "false", not booleans. A wrapper isolates these details in one place: that way the rest of the content does not change if tomorrow the LMS is different, and the wrapper can be tested with a fake LMS.

scorm_wrapper.mjs: a SCORM 1.2 wrapper tested on a fake LMS
// Minimal SCORM 1.2 wrapper, tested against a fake in-memory LMS
function trovaAPI(finestra, limite = 10) {
  let w = finestra;
  while (!w.API && w.parent && w.parent !== w && limite-- > 0) w = w.parent;
  return w.API ?? null;
}

export function creaScorm(finestra) {
  const api = trovaAPI(finestra) ?? (finestra.opener ? trovaAPI(finestra.opener) : null);
  const ok = (r) => r === 'true';
  return {
    disponibile: () => api !== null,
    init: () => api !== null && ok(api.LMSInitialize('')),
    set(elemento, valore) {
      const riuscito = api !== null && ok(api.LMSSetValue(elemento, String(valore)));
      if (!riuscito && api) console.log(`  error ${api.LMSGetLastError()} on ${elemento}`);
      return riuscito;
    },
    registraPunteggio(raw, mastery) {                // the threshold comes from the manifest, it is not written here
      this.set('cmi.core.score.raw', raw);
      this.set('cmi.core.lesson_status', raw >= mastery ? 'passed' : 'failed');
      return api.LMSCommit('') === 'true';
    },
    fine: () => api !== null && ok(api.LMSCommit('')) && ok(api.LMSFinish('')),
  };
}

// --- Fake LMS: it knows only three elements, like an LMS that does not implement everything
function lmsFinto() {
  const dati = {};
  const noti = ['cmi.core.score.raw', 'cmi.core.lesson_status', 'cmi.core.exit'];
  let errore = '0';
  return {
    dati,
    LMSInitialize: () => 'true',
    LMSSetValue: (k, v) => { if (!noti.includes(k)) { errore = '401'; return 'false'; } dati[k] = v; errore = '0'; return 'true'; },
    LMSGetLastError: () => errore,
    LMSCommit: () => 'true',
    LMSFinish: () => 'true',
  };
}

const lms = lmsFinto();
const radice = { API: lms };
const cornice = { parent: radice };                  // the content sits in a frame inside the LMS
const contenuto = { parent: cornice };

const s = creaScorm(contenuto);
console.log('API found by climbing the frames:', s.disponibile(), '| init:', s.init());
console.log('commit:', s.registraPunteggio(72, 70), '| data:', JSON.stringify(lms.dati));
s.registraPunteggio(65, 70);
console.log('after 65 with threshold 70 :', JSON.stringify(lms.dati));
s.set('cmi.core.session_time', '00:10:00');
console.log('end:', s.fine());
const fuori = creaScorm({ parent: null });
console.log('outside an LMS             : available =', fuori.disponibile(), '| init =', fuori.init());

# Output (executed):
# API found by climbing the frames: true | init: true
# commit: true | data: {"cmi.core.score.raw":"72","cmi.core.lesson_status":"passed"}
# after 65 with threshold 70 : {"cmi.core.score.raw":"65","cmi.core.lesson_status":"failed"}
#   error 401 on cmi.core.session_time
# end: true
# outside an LMS             : available = false | init = false

The listing builds a chain of three "windows" (content, frame, root with the API) and shows that trovaAPI finds it by climbing. registraPunteggio receives the threshold as a parameter: with 72 against a threshold of 70 the fake LMS records passed, with 65 it records failed. The value 70 written inside the function, as in some versions of this example, is a mistake: the threshold is in the manifest and is per module. The limit on the climb (10 frames) is a choice of mine for the example, not a value from the specification.

The last three lines are the behavior that no example shows. Setting an element the LMS does not know (cmi.core.session_time in the fake) returns "false" and an error code retrievable with LMSGetLastError: the wrapper logs it instead of ignoring it. And outside an LMS (preview, local test) the disponibile() function is false and init() returns false without throwing, so the course can be opened in an ordinary browser to try it. This is a fake LMS: compatibility with your customers' real LMSs has to be tested on each of them, because they implement the details of the data model differently.

Distribution: versioned paths and expiring signed URLs

Two distribution decisions depend on what you have just built. The first: putting the version in the path (/tenants/acme/content/safety/2.1.0/...) means that the content of a path never changes after publication. A resource that does not change can say so: the immutable extension of Cache-Control, defined by RFC 8246, indicates that the resource will not be updated during its freshness lifetime and that the client must not revalidate it. If every version has its own path, nothing needs invalidating at publication: 2.1.1 lives at a new address. A method that requires "always invalidating the cache after the upload" treats the symptom of a path that changes content.

signed_url.py: a signed URL with expiry and tenant check
import hashlib
import hmac
from urllib.parse import urlencode, urlsplit, parse_qs

SEGRETO = b"example-secret-to-keep-out-of-the-code"
HOST = "https://content.example"


def firma(path, scade_ts):
    return hmac.new(SEGRETO, f"{path}\n{scade_ts}".encode(), hashlib.sha256).hexdigest()


def url_firmato(tenant, content, version, file, now, ore=8):
    path = f"/tenants/{tenant}/content/{content}/{version}/{file}"
    scade = int(now) + ore * 3600
    return f"{HOST}{path}?" + urlencode({"exp": scade, "sig": firma(path, scade)})


def verifica(url, now, tenant_richiedente):
    parti = urlsplit(url)
    q = parse_qs(parti.query)
    exp, sig = int(q["exp"][0]), q["sig"][0]
    if not hmac.compare_digest(sig, firma(parti.path, exp)):      # constant-time comparison
        return "rejected: invalid signature"
    if now > exp:
        return "rejected: expired"
    if not parti.path.startswith(f"/tenants/{tenant_richiedente}/"):
        return "rejected: the path belongs to another tenant"
    return "ok"


ora = 1_800_000_000
u = url_firmato("acme", "safety", "2.1.0", "m1/index.html", ora)
print(u[:62] + "...")
print("right away     :", verifica(u, ora + 60, "acme"))
print("after 9 hours  :", verifica(u, ora + 9 * 3600, "acme"))
print("altered path   :", verifica(u.replace("acme", "beta"), ora + 60, "beta"))
print("another tenant :", verifica(u, ora + 60, "beta"))
print("other version  :", url_firmato("acme", "safety", "2.1.1", "m1/index.html", ora)[:62] != u[:62])

# Output (executed):
# https://content.example/tenants/acme/content/safety/2.1.0/m1/i...
# right away     : ok
# after 9 hours  : rejected: expired
# altered path   : rejected: invalid signature
# another tenant : rejected: the path belongs to another tenant
# other version  : True

The second decision is who can download. A signed URL contains the path, an expiry and an HMAC-SHA256 signature computed with a secret that only the server knows: anyone who changes the path or the expiry invalidates the signature. In the output, the URL works right away, is rejected after 9 hours (the expiry is 8), does not pass if the tenant in the path is changed (invalid signature) and does not pass if a customer tries to use another customer's URL (belongs to another tenant). The signature comparison uses hmac.compare_digest, which the Python documentation recommends instead of == to reduce the risk of timing attacks.

Two warnings. The secret in the listing is an example value: in production it lives outside the code and can be rotated. And CDN vendors have signing schemes of their own, with different formats: this listing shows the logic to ask for, not the format to use, and if the signature sits in the query string you must check that the CDN does not include it in the cache key, otherwise every user generates a different entry; I did not try it on any CDN. The URL should also expire after a time long enough for a study session, or the video stops halfway through the lesson (delivering video in segments is covered in Video Streaming for Education): the 8 hours in the example are a choice, to be tuned to the real length of the modules.

SCORM or xAPI: what changes in the project

The difference you see in the code is where the communication lives. In SCORM the content talks to a JavaScript object of the LMS that hosts it, as in the wrapper above: without an LMS, no tracking. In xAPI the content sends statements to a Learning Record Store through HTTP requests (the pipeline is in Learning Analytics with xAPI and Kafka), and it is not obliged to sit inside an LMS. The price is one more component to manage, the LRS. I am not quoting numerical comparisons of how widespread the two formats are: I have no primary source.

To decide, start from the customer. If their LMS accepts only SCORM packages, you need SCORM, and which version (1.2 or 2004) is up to the customer: ask them which one they support, do not take it for granted. If the customer wants to know what the student does beyond "completed" and "score", or wants content usable outside the LMS too (like the app in the article Offline-First Learning Apps: Caching, Write Queues and Sync), xAPI is the path. Many vendors publish both from the same source content: the wrapper in this article is the place to add a second channel.

Where it hurts

The mistakes you really meet in a shared catalog, with the part that avoids them.

  • A copy of the course for each customer: it no longer receives fixes; use key-level overrides.
  • Orphaned overrides after an update: an old text overwrites the new one; list the conflicting overrides before publishing.
  • Versions compared as strings or accepted malformed: "1.10.0" looks smaller than "1.9.0"; parse the numbers and discard the rest.
  • Package modified after publication: the same version has different contents at different customers; every change is a new version.
  • Manifest written by hand or by concatenating strings: a special character makes it invalid; build it with an XML library and check its references.
  • Passing threshold written in the code: it diverges from the manifest; pass it from the manifest to the wrapper.
  • One URL valid for everyone: anyone who copies it reads the others' content; signature, expiry and tenant check.

The common thread is that version and tenant are identities, not attributes: they sit in the path, in the signature and in the override key, so no check depends on the memory of whoever writes the code. If you have to prioritize, start from the rule "a published version is not touched": it is what lets you both avoid invalidating the cache and explain to a customer which text their employee saw that day, and with a compliance course it can matter in a dispute.

Frequently asked questions

Can I use Semantic Versioning for a course?

Yes, provided you define what PATCH, MINOR and MAJOR mean for content. The specification defines the meaning for software APIs, and the translation to courses is a convention that you must write down and enforce.

What does imsmanifest.xml do?

It describes the structure of the course (organization and items) and the files (resources) of a package, and it is the file the LMS reads first. Every item points to a resource with identifierref.

Do I need to invalidate the cache with every new version?

Not if the version is in the path: every version has a new address, and the content of an address does not change, so it can be marked immutable as RFC 8246 describes.

Has xAPI made SCORM obsolete?

Not everywhere. If the customer's LMS accepts only SCORM, you need SCORM. xAPI makes sense when you want to track more or outside an LMS and you can run a Learning Record Store.

What you can do now

You can organize a catalog with a shared master and key-level overrides, flag orphaned overrides before a publication, classify an update with Semantic Versioning and decide who receives it on their own, build a SCORM 1.2 manifest checked in its internal relations, write a wrapper tested on a fake LMS and distribute the files with versioned paths and expiring signed URLs. This article closes the series: the platform starts from Scalable LMS Architecture, goes through adaptivity, video, the tutor, gamification, analytics, collaboration and offline, and ends in the content that all the rest serves.

Sources

The listings were run with Python 3.14 and Node 24. I could not open the ADL SCORM specification (the site was not responding): the namespaces, element names and SCORM 1.2 API functions used in the listings are written from my own knowledge and were not validated against the official schemas or against a real LMS. No CDN, no object store and no LMS were started.

Commenti

Caricamento commenti...

Sign in to comment

New articles and tools on Telegram too

The Telegram channel flags the site's new articles and tools.

Did you like this article?

Explore other content on the blog or discover my projects