跳转至

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-RNNN tag
  • 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:

  1. Select a released upstream baseline tag from the QMS-* namespace.
  2. Run ../../tools/bootstrap_company_repo.sh to create the downstream repository from that exact tag. The bootstrap syncs .github/CODEOWNERS from matrices/signer_registry.json and matrices/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-run python3 tools/qms_distribution.py sync-codeowners after changing either file.
  3. Tailor company-owned files, including company profile, market scope, signer registry, training matrix, supplier state, QMS tooling inventory, and live operational records.
  4. 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-github to 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.
  5. Run ../../tools/check_adoption_readiness.sh to confirm placeholders, the regulatory commitments ledger, CODEOWNERS alignment, and required repository settings are resolved.
  6. Validate the configured QMS toolchain for intended use under SOP-006, using the adopter's designated controlled validation repository or record location.
  7. Train assigned roles on the adopted controlled-document set and capture training evidence in the adopter repository.
  8. 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 PRs
  • company_owned_paths: paths that belong to the adopter once bootstrapped
  • bootstrap_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 under records/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:

  1. ../../tools/bootstrap_company_repo.sh Creates 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.
  2. ../../tools/open_upstream_upgrade_pr.sh Opens a controlled branch containing only upstream-owned changes from a selected upstream ref.
  3. ../../tools/check_adoption_readiness.sh Fails if placeholder tokens remain, the regulatory commitments ledger is missing or has an overdue or invalid review_by date, 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:

  1. Copy the regulatory_commitments block from ../../examples/bootstrap/matrices/regulatory_market_scope.yml into your matrices/regulatory_market_scope.yml.
  2. The block lists every framework the baseline ships a gap analysis for, each as not_selected. Change the status of each framework you follow to applied, planned, not_applicable, or unknown. List evidence paths for applied entries. Give planned and unknown entries a quoted review_by date in YYYY-MM-DD form. not_selected entries are never checked.
  3. Replace every REPLACE_WITH_ value. The readiness check now scans matrices/regulatory_market_scope.yml for placeholders.
  4. Run python3 tools/qms_distribution.py check-commitments --repo-root . and tools/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:

  1. Copy matrices/mdr_clinical_evaluation_gap_analysis.yml from the upstream release into your repository.
  2. Add the Regulation (EU) 2017/745 Art. 61 and Annex XIV entry from ../../examples/bootstrap/matrices/regulatory_market_scope.yml to your regulatory_commitments ledger and set its status. For a device on the EU or Swiss market it is normally applied, with evidence paths.
  3. Map SOP-025 to the roles that plan, review, or approve clinical evaluations in matrices/training_matrix.yml, and add SOP-025 and records/clinical to your adoption profile if you keep one.
  4. Run python3 tools/qms_distribution.py check-commitments --repo-root . and tools/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.ch by 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 adoption
  • QMSPREVIEW-*: reserved for immutable upstream preview baselines when needed; these are not automatically treated as downstream-adoptable
  • sig-*, 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