Open-Source Adoption Model¶
DearAuditor Open QMS Baseline can be published as a public upstream baseline without forcing adopters to expose their live QMS evidence.
This repository is the upstream baseline, not the adopter's operational QMS. A company creates its operational QMS by adopting a released baseline into its own controlled repository, tailoring the company-owned records, validating the configured toolchain for intended use, training users, and approving the adopted system before use.
Operating Model¶
- this repository remains the public upstream source for reusable SOPs, WIs, templates, validators, automations, and example seed files
- each adopting company creates a private repository from a selected upstream baseline ref, normally a
QMS-YYYY-MM-DD-RNNNtag - product or study execution records stay in separate designated private repositories as already described in
../architecture/README.md - release notes for this repository's own
QMS-*publication may live in this upstream repo because they govern the upstream baseline release itself rather than an adopter implementation release
The downstream repo is not expected to ingest every upstream tag. It records one adopted upstream ref at a time in adoption/upstream-baseline.json and only moves when the company approves an upgrade PR.
Adoption Model 2¶
Use this sequence when turning the public baseline into a company-controlled QMS:
- Select a released upstream baseline tag from the
QMS-*namespace. - Run
../../tools/bootstrap_company_repo.shto create the downstream repository from that exact tag. The bootstrap syncs.github/CODEOWNERSfrommatrices/signer_registry.jsonandmatrices/training_matrix.yml: the registered signers who hold the Management Representative or QA Lead role own every path, so code owner review follows the signers who approve controlled documents. The signers who hold the Technical QMS Maintainer role own the tooling paths (.github/,scripts/,services/signature-worker/,tools/), so a tooling-only change does not request quality review. Re-runpython3 tools/qms_distribution.py sync-codeownersafter changing either file. - Tailor company-owned files, including company profile, market scope, signer registry, training matrix, supplier state, QMS tooling inventory, and live operational records.
- Configure repository settings, required variables/secrets, branch protection or equivalent rules, signature hosting, and service dependencies. When the target GitHub repository is created and pushed during bootstrap, pass
--configure-githubto copy the upstream baseline rulesets and branch protection into the downstream repo. Create the GitHub App used by repository automation and the GitHub OAuth App used by the signature worker in the adopting company's GitHub organization or account, then install/configure them only for the adopter-controlled repositories that need them. - Run
../../tools/check_adoption_readiness.shto confirm placeholders, the regulatory commitments ledger, CODEOWNERS alignment, and required repository settings are resolved. - Validate the configured QMS toolchain for intended use under
SOP-006, using the adopter's designated controlled validation repository or record location. - Train assigned roles on the adopted controlled-document set and capture training evidence in the adopter repository.
- Approve the adopted QMS baseline for operational use through the adopter's controlled PR, signature, and release process.
Only after this sequence is complete should the adopter use the repository as the governing QMS for product, study, supplier, release, validation, or operational evidence.
The upstream gap analyses are product-independent preparation artifacts. They help adopters understand how the baseline maps to ISO 9001, ISO 13485, ISO 14971, IEC 62304, IEC 62366-1, IEC 82304-1, ISO/IEC 27001, ISO/IEC 42001, EN 18286:2026 (EU AI Act provider QMS), EU MDR clinical evaluation and PMCF (Art. 61, Annex XIV; Swiss MedDO), GDPR, and Swiss nFADP/nFDAP, but they do not replace adopter-specific applicability decisions, validation evidence, training, or approval.
The privacy controls are used when GDPR or Swiss nFADP/nFDAP is in scope for the adopting company's quality manual. Adopters whose approved scope does not yet include in-scope personal data processing should record the scope rationale and review trigger, then instantiate the records/privacy/ templates before privacy-relevant processing begins.
Repo Boundaries¶
The machine-readable source of truth is ../../distribution-map.json.
sync_includes: paths that can be proposed from upstream into downstream upgrade PRscompany_owned_paths: paths that belong to the adopter once bootstrappedbootstrap_overlays: generic seed files copied into company-owned destinations during onboarding
Current intent:
- upstream-owned:
.github/,qm/,sops/,wis/,scripts/,services/signature-worker/, record templates, upstream release notes underrecords/releases/, open-source docs, licensing, and the distribution scripts - company-owned:
matrices/, live operational records, signer assignments, training logs, supplier state, and downstream adoption metadata
While the upstream project is still being actively developed, it continues to dogfood the workflow model using named company/person data in the live upstream matrices/ and selected records/ paths. That state is retained on purpose so the automations can be exercised end to end. Downstream adopters should not copy it directly; they should start from the generic seed files in ../../examples/bootstrap.
Historical validation or mock-trial artifacts that are useful as public reference examples should live under docs/open-source/ rather than under live operational record paths.
CLI Entry Points¶
Use the repository scripts instead of ad hoc copy/paste:
../../tools/bootstrap_company_repo.shCreates a downstream repo from a selected upstream ref, overlays generic company-owned seed files, syncs CODEOWNERS from the signer registry and training matrix, and can optionally copy baseline GitHub merge controls with--configure-github.../../tools/open_upstream_upgrade_pr.shOpens a controlled branch containing only upstream-owned changes from a selected upstream ref.../../tools/check_adoption_readiness.shFails if placeholder tokens remain, the regulatory commitments ledger is missing or has an overdue or invalidreview_bydate, CODEOWNERS does not match the signer registry and training matrix, or required GitHub repo settings are missing.
Upgrade Notes¶
Regulatory commitments ledger¶
Baselines that include SOP-024 (EN 18286:2026) add a regulatory_commitments ledger to matrices/regulatory_market_scope.yml, and check_adoption_readiness.sh runs tools/qms_distribution.py check-commitments against it. New bootstraps get the ledger from the seed file. Existing adopters do not, because matrices/ is company-owned and open_upstream_upgrade_pr.sh does not change it. Before or with the upgrade PR:
- Copy the
regulatory_commitmentsblock from../../examples/bootstrap/matrices/regulatory_market_scope.ymlinto yourmatrices/regulatory_market_scope.yml. - The block lists every framework the baseline ships a gap analysis for, each as
not_selected. Change thestatusof each framework you follow toapplied,planned,not_applicable, orunknown. List evidence paths forappliedentries. Giveplannedandunknownentries a quotedreview_bydate inYYYY-MM-DDform.not_selectedentries are never checked. - Replace every
REPLACE_WITH_value. The readiness check now scansmatrices/regulatory_market_scope.ymlfor placeholders. - Run
python3 tools/qms_distribution.py check-commitments --repo-root .andtools/check_adoption_readiness.sh --skip-gh, then approve the matrix change through your controlled PR process.
Clinical evaluation (SOP-025)¶
Baselines that include SOP-025 add MDR Art. 61 and Annex XIV clinical evaluation and PMCF controls, the records/clinical/ templates, and matrices/mdr_clinical_evaluation_gap_analysis.yml. The upgrade PR brings the SOP and templates. It does not change matrices/, because that folder is company-owned. Medical device adopters should, before or with the upgrade PR:
- Copy
matrices/mdr_clinical_evaluation_gap_analysis.ymlfrom the upstream release into your repository. - Add the
Regulation (EU) 2017/745 Art. 61 and Annex XIVentry from../../examples/bootstrap/matrices/regulatory_market_scope.ymlto yourregulatory_commitmentsledger and set its status. For a device on the EU or Swiss market it is normallyapplied, with evidence paths. - Map
SOP-025to the roles that plan, review, or approve clinical evaluations inmatrices/training_matrix.yml, and addSOP-025andrecords/clinicalto your adoption profile if you keep one. - Run
python3 tools/qms_distribution.py check-commitments --repo-root .andtools/check_adoption_readiness.sh --skip-gh.
Signature Hosting Options¶
Adopters that want the GitHub-native signing flow have two practical options:
- self-host the worker in
../../services/signature-worker - use the hosted signing endpoint
https://sign.qms.dearauditor.chby separate arrangement, if offered for the adopter's use case
The hosted endpoint is not part of the open-source license grant by itself. Any commercial terms, support scope, uptime expectations, data-handling terms, or onboarding conditions for hosted use are separate from the repository license and still to be defined.
Regardless of hosting model, the GitHub trust boundary remains adopter-owned. The GitHub App that posts attestations or drives repository automation, and the GitHub OAuth App that verifies signer identity, should be created under the adopting company's GitHub organization or account. Do not reuse the public upstream project's app registrations as the adopter's regulated-system trust boundary.
Tag Namespaces¶
The current automations treat QMS-* as the formal upstream baseline channel.
QMS-*: curated baseline refs intended to be eligible for downstream adoptionQMSPREVIEW-*: reserved for immutable upstream preview baselines when needed; these are not automatically treated as downstream-adoptablesig-*,record-*,trn-*, and similar prefixes: immutable evidence/publication tags and explicitly out of scope for downstream sync tooling
For formal QMS-YYYY-MM-DD-RNNN tags, the date component is the publication date recorded for the
approved upstream baseline release, and RNNN is the global sequential upstream baseline release
number.
This keeps high-volume immutable record/signature tags available for evidence retention without making them part of the downstream upgrade surface.
Contact¶
For adoption, pilot use, hosted-signing inquiries, or support: aliaksei@dearauditor.ch