Turn any AI agent into an AI Scientist. The #1 Agent Skills library for science, used by 250,000+ scientists worldwide. 177 ready-to-use validated skills plus 100+ scientific databases covering biology, chemistry, medicine, and drug discovery. Compatible with Cursor, Claude Code, Codex, Pi, Antigravity, and the open Agent Skills standard.
Python agent-skillsai-scientistbioinformaticschemoinformaticsclaudeclaude-skillsclaudecodeclinical-researchcomputational-biologydata-analysisdrug-discoverygenomicsmaterials-sciencemetabolomicsproteomicsscientific-computingscientific-visualization
Replace iso-13485-certification with iso-standards-readiness
Timothy Kassis6d22863f8d86
diff --git a/docs/examples.md b/docs/examples.mdindex 259238e2..cfa98e27 100644--- a/docs/examples.md+++ b/docs/examples.md@@ -3544,7 +3544,7 @@ Expected Output:**Objective**: Prepare draft QMS scope, controlled-document scaffolds, and evidence manifests for qualified ISO 13485 readiness review. The workflow does not determine legal applicability, compliance, audit outcome, or certification.**Skills Used**:-- `iso-13485-certification` - Draft scope, controlled-document, and evidence preparation+- `iso-standards-readiness` - Draft scope, controlled-document, and evidence preparation- `scientific-writing` - Evidence provenance and accountable draft controls- `markdown-mermaid-writing` - Process diagrams and SOP flowcharts- `docx` - Formatted Word deliverables@@ -3556,7 +3556,8 @@ Expected Output:Step 1: Authorized evidence inventory- Confirm access to the applicable licensed standard and current jurisdiction-specificrequirements through qualified RA/QA or legal owners-- Use iso-13485-certification to inventory supplied documents, implementation records,+- Use iso-standards-readiness with `--standard iso-13485` to inventory supplied+ documents, implementation records,evidence status, owners, and unresolved blockers- Do not infer readiness or conformity from filenames, keywords, document counts,percentages, templates, or script results@@ -3750,7 +3751,7 @@ The examples in this document cover the following skill categories:- `scientific-writing`, `scientific-visualization`, `scientific-schematics`, `scientific-slides`, `markdown-mermaid-writing`, `infographics`- `clinical-reports`, `clinical-decision-support`- `literature-review`, `scientific-critical-thinking`-- `research-grants`, `peer-review`, `venue-templates`, `iso-13485-certification`+- `research-grants`, `peer-review`, `venue-templates`, `iso-standards-readiness`- `pdf`, `docx`, `pptx`, `xlsx`, `latex-posters`, `pptx-posters`- `citation-management`, `market-research-reports`diff --git a/docs/skills.md b/docs/skills.mdindex fd8ebaa2..f5bba065 100644--- a/docs/skills.md+++ b/docs/skills.md@@ -196,7 +196,7 @@- **[Scholar Evaluation](../skills/scholar-evaluation/)** - Version 2.0 provides qualitative-first, evidence-traceable developmental review of scholarly works and audits low-stakes assessment rubrics with optional Python 3.11+ local JSON/CSV quality controls that use no network, credentials, external models, or subprocesses. Optional rubric scores only summarize submitted evidence against predeclared anchors; they are not natural measurements or decision recommendations. Never rank people or use the skill for hiring, promotion, tenure, admissions, funding, prizes, sanctions, or other consequential decisions### Regulatory & Standards Evidence Preparation-- **[ISO 13485 Certification](../skills/iso-13485-certification/)** - Prepare draft ISO 13485 QMS scope, controlled-document scaffolds, traceability, and local evidence manifests, while separating related FDA QMSR, MDSAP, and EU MDR/IVDR evidence boundaries. Bundled Python 3.11+ standard-library checks use bounded local JSON/Markdown only and make no network calls. The skill does not reproduce the standard, perform an audit, determine applicability or compliance, certify a QMS, validate a certificate, or promise an audit result; qualified RA/QA, legal, management, auditor, and certification-body review is required+- **[ISO Standards Readiness](../skills/iso-standards-readiness/)** - Prepare draft scope, controlled-document scaffolds, traceability, and local evidence manifests for ISO 13485 (medical device QMS), ISO 14971 (device risk management), ISO/IEC 17025 (testing and calibration laboratories), and ISO 15189 (medical laboratories), while separating ISO certification from laboratory accreditation, FDA QMSR inspection, CLIA certification, MDSAP, and EU MDR/IVDR evidence boundaries. Per-standard process domains, scope vocabulary, and reference files are selected with a `--standard` profile. Bundled Python 3.11+ standard-library checks use bounded local JSON/Markdown only and make no network calls. The skill does not reproduce the standards, perform an audit or assessment, determine applicability or compliance, certify a QMS, accredit a laboratory, validate a certificate, or promise an outcome; qualified RA/QA, legal, management, laboratory director, assessor, accreditation-body, and certification-body review is required## Scientific Thinking & Analysisdiff --git a/skills/iso-13485-certification/SKILL.md b/skills/iso-13485-certification/SKILL.mddeleted file mode 100644index f9b6af0e..00000000--- a/skills/iso-13485-certification/SKILL.md+++ /dev/null@@ -1,299 +0,0 @@-----name: iso-13485-certification-description: Prepare and structurally review ISO 13485 QMS scope, controlled documentation, and local evidence manifests. Use for ISO 13485 certification-readiness documentation or for separating related FDA QMSR, MDSAP, and EU MDR/IVDR evidence boundaries; not for legal applicability, compliance, or certification decisions.-license: MIT-compatibility: Python 3.11+; bundled CLIs use only the standard library and bounded local JSON/Markdown files, with no network access or credentials.-allowed-tools: Read Write Bash Glob-metadata:- version: "1.1"- skill-author: K-Dense Inc.------# ISO 13485 QMS Evidence Preparation--## Purpose--Use this skill to organize QMS scope, controlled documents, implementation records,-traceability, and readiness evidence for substantive review. It summarizes process-workflows and provides deterministic local checks; it does not contain ISO clause-text or perform an audit.--## Non-negotiable boundary--This skill cannot:--- certify a QMS, issue or validate a certificate, or promise an audit result;-- determine legal/regulatory applicability, device classification, reportability,- conformity route, product authorization, market access, or compliance;-- replace authorized management, the management representative, RA/QA, legal- counsel, regulatory/competent authorities, a notified body, an MDSAP Auditing- Organization, an accreditation body, or a certification body; or-- infer implementation, conformity, compliance, or readiness from a template,- checklist, filename, keyword, document count, percentage, or script result.--Always label outputs **draft evidence-preparation material for authorized human-review**. Preserve unresolved decisions as blockers.--## ISO copyright--ISO standards are copyrighted. Obtain ISO 13485 and related standards from-[ISO](https://www.iso.org/standard/59752.html), an ISO national member, or another-authorized source. Do not retrieve, paste, reproduce, or generate clause text.-Summarize the organization's process and cite the controlled authorized copy.-See [ISO copyright](https://www.iso.org/copyright.html).--## Current baseline (researched 2026-07-23)--- **ISO 13485:** ISO 13485:2016, Edition 3, was confirmed after its 2025- systematic review and remains current.-- **European amendment:** EN ISO 13485:2016/A11:2021 is a European EN amendment,- not an ISO international “Amendment 1:2021.” Track AC:2018/A11:2021 only where- the European source basis applies.-- **FDA QMSR:** effective and enforced since **2026-02-02**. Current Part 820 is- titled *Quality Management System Regulation*. FDA stopped using QSIT and uses- Compliance Program **7382.850**. Treat this as implemented, not a future- transition.-- **MDSAP:** current official Audit Approach is **MDSAP AU P0002.010**, version- date **2026-02-02**.-- **EU:** use current consolidated MDR/IVDR texts, current OJEU harmonised-standard- decisions, current MDCG guidance, and the product-specific conformity route.-- **Risk management:** ISO 14971:2019, Edition 3, was confirmed in 2025. For- European work, distinguish EN ISO 14971:2019/A11:2021.--Read `references/source-ledger.md` before making a time-sensitive statement.--## Keep five lanes separate--### 1. ISO 13485 certification--A certification body evaluates the defined management-system scope against the-authorized standard and certification scheme. A certificate is limited to its stated-organization, sites, activities, technical/product scope, edition, and validity.--### 2. FDA QMSR inspection/compliance--FDA assesses applicable FDA requirements. ISO certification does not exempt a-manufacturer from inspection, and FDA does not issue ISO 13485 certificates. Use the-current eCFR and FDA supplemental provisions; do not use the former QSR section-structure as a current requirements map.--### 3. MDSAP audit--An MDSAP-recognized Auditing Organization conducts a regulatory audit using the-current MDSAP approach and applicable participating-jurisdiction requirements. An-ISO-only audit is not MDSAP; an FDA inspection does not follow the MDSAP audit plan.--### 4. EU MDR/IVDR conformity assessment--EU conformity assessment includes product, technical-documentation, postmarket,-vigilance, economic-operator, and notified-body requirements beyond generic QMS-documentation. Verify a notified body's current legislation/task/designation-code-scope in NANDO. ISO certification/accreditation alone is not notified-body-designation or EU product conformity.--### 5. Product- and jurisdiction-specific controls--Classification, intended purpose, claims, software/cybersecurity, clinical or-performance evidence, biocompatibility, electrical safety, sterilization, UDI,-registration, reporting, and other controls require separate authorized analysis.--## Core workflow--### Step 1: Define purpose and authorized owners--State whether the work supports internal QMS development, ISO certification-preparation, FDA inspection preparation, MDSAP, EU conformity assessment, or a-specific combination. Name the management representative, RA/QA owner, legal/-applicability owner, process owners, approvers, and escalation route.--Run:--```bash-PYTHONDONTWRITEBYTECODE=1 python3 scripts/validate_scope_intake.py \- assets/templates/scope-intake-template.json-```--The distributed template intentionally fails closed. Copy it outside the skill and-complete it with controlled organizational evidence.--### Step 2: Freeze source/version evidence--For every standard, regulation, guidance, audit model, and product source, record:--- publisher, official title, edition/version/date, and authorized location;-- access and currency-review dates;-- scope/applicability owner;-- impact assessment, status, evidence, and approval.--Do not use search snippets as controlled requirements. Do not silently update an-incorporated edition when a publisher releases a new edition.--### Step 3: Inventory controlled documents and records--Do not count named procedures or scan keywords. Build an explicit register linking-documents, records, source versions, owners, approvals, effective dates, retention-bases, training, and change records.--```bash-PYTHONDONTWRITEBYTECODE=1 python3 scripts/audit_document_records.py \- assets/templates/document-register-template.json-```--Read `references/mandatory-documents.md` for the evidence architecture.--### Step 4: Review process implementation--Assess controlled procedures **and sampled records** for:--- scope, governance, roles, and management authority;-- document/record/external-source control;-- risk management;-- design/development, transfer, and changes;-- suppliers, purchasing, and outsourced processes;-- production/service, infrastructure, environment, acceptance, and release;-- process, equipment, test-method, and software validation;-- identification, traceability, preservation, installation, and service;-- feedback, complaints, postmarket surveillance, and vigilance;-- nonconformity, CAPA, and effectiveness;-- internal audit and management review;-- competence/training; and-- integrated change control.--Each item needs owner, status, evidence IDs, source/version, approval, and open-gap-links. Read `references/iso-13485-requirements.md`.--### Step 5: Build traceability and focused checks--Risk/design/production/postmarket:--```bash-PYTHONDONTWRITEBYTECODE=1 python3 scripts/check_traceability.py \- assets/templates/traceability-matrix-template.json-```--CAPA/effectiveness:--```bash-PYTHONDONTWRITEBYTECODE=1 python3 scripts/check_capa.py \- assets/templates/capa-record-template.json-```--Supplier controls:--```bash-PYTHONDONTWRITEBYTECODE=1 python3 scripts/check_supplier_controls.py \- assets/templates/supplier-controls-template.json-```--Pending or ineffective CAPA effectiveness evidence blocks closure. Critical supplier-controls stay blocked until risk-based controls and approvals are evidenced.--### Step 6: Address current QMSR evidence separately--```bash-PYTHONDONTWRITEBYTECODE=1 python3 scripts/check_qmsr_transition.py \- assets/templates/qmsr-transition-template.json-```--Review current Part 820/FDA source basis, supplemental provisions, obsolete-QSR/QSIT references, pre-effective-date records, inspection-accessible management/-quality/supplier-audit records, current inspection-process training, complaint and-servicing records, labeling/packaging controls, supplier/software/change evidence,-and prohibited certificate-equivalence claims.--Do not build an old-820-to-ISO clause map as the current control framework.--### Step 7: Assemble a bounded readiness manifest--Copy the evidence template outside the skill. Use relative paths to local `.json`,-`.md`, or `.markdown` evidence only.--```bash-PYTHONDONTWRITEBYTECODE=1 python3 scripts/validate_evidence_manifest.py \- /path/to/evidence-manifest.json \- --base-dir /path/to/controlled-export \- --verify-files \- --output /path/to/manifest-report.json-```--Then generate a domain-level gap view:--```bash-PYTHONDONTWRITEBYTECODE=1 python3 scripts/gap_analyzer.py \- /path/to/evidence-manifest.json \- --base-dir /path/to/controlled-export \- --verify-files \- --output /path/to/gap-report.json-```--The analyzer uses explicit manifest labels. It does not infer evidence from filenames,-keywords, or proprietary standard text and does not calculate a compliance score.--### Step 8: Human review and controlled handoff--Present:--- declared scope, assurance lanes, and unresolved applicability decisions;-- exact source/version baseline;-- evidence sampled and limitations;-- structural findings grouped by process and risk;-- actions/change/CAPA owners and dates;-- approval state; and-- the authorized party responsible for the next decision.--Never title the result “certificate,” “compliance report,” “audit pass,” or “ready for-inspection.” A suitable title is **Draft QMS evidence review for authorized human-assessment**.--## CLI behavior and safety--All bundled CLIs:--- use the Python standard library only;-- perform no network requests;-- accept bounded local JSON; optional evidence verification accepts only bounded- local JSON/Markdown;-- reject symbolic-link inputs, duplicate JSON keys, non-finite numbers, excessive- size/nesting/items, and unsafe evidence paths;-- use no dynamic evaluation, executable deserialization, pickle, or shell execution;-- refuse to overwrite reports unless `--force` is explicit; and-- produce deterministic sorted JSON.--Treat the manifest itself as a controlled organizational record. An optional SHA-256-comparison detects a local file mismatch only; it does not establish provenance,-authenticity, adequacy, or trust in a user-supplied manifest. Values in JSON-`local_path` and `evidence.location` fields refer to the user's controlled export,-not to bundled skill resources; unresolved placeholders must never be opened.--Exit codes:--- `0`: no structural finding for the supplied fields; **not a compliance result**;-- `1`: structural/evidence gaps found;-- `2`: invalid or unsafe input/output.--Run `python3 scripts/<name>.py --help` for each interface.--## Templates--- `assets/templates/quality-manual-template.md`-- `assets/templates/procedures/CAPA-procedure-template.md`-- `assets/templates/procedures/document-control-procedure-template.md`-- `assets/templates/scope-intake-template.json`-- `assets/templates/document-register-template.json`-- `assets/templates/capa-record-template.json`-- `assets/templates/traceability-matrix-template.json`-- `assets/templates/qmsr-transition-template.json`-- `assets/templates/evidence-manifest-template.json`-- `assets/templates/supplier-controls-template.json`--Every template is deliberately `draft`/`pending`, uses placeholders, and includes-owner/status/evidence/approval fields. Copy and control it; never edit a distributed-template into a purported approved record.--## References--- `references/iso-13485-requirements.md` — process/evidence framework and assurance boundaries-- `references/mandatory-documents.md` — documentation and record architecture-- `references/gap-analysis-checklist.md` — fail-closed evidence review questions-- `references/quality-manual-guide.md` — controlled manual development-- `references/source-ledger.md` — dated authoritative official-source baselinediff --git a/skills/iso-13485-certification/scripts/_catalog.py b/skills/iso-13485-certification/scripts/_catalog.pydeleted file mode 100644index 0390fc32..00000000--- a/skills/iso-13485-certification/scripts/_catalog.py+++ /dev/null@@ -1,56 +0,0 @@-#!/usr/bin/env python3-"""Public-process labels used by the local evidence checks.--The labels are workflow topics, not ISO clause text or a substitute for an-authorized copy of any standard.-"""--from __future__ import annotations--PROCESS_DOMAINS = (- "scope-and-roles",- "document-and-record-control",- "risk-management",- "design-and-development",- "supplier-controls",- "production-and-service",- "process-and-software-validation",- "identification-and-traceability",- "complaints-and-feedback",- "postmarket-and-vigilance",- "nonconformity-and-capa",- "internal-audit",- "management-review",- "training-and-competence",- "change-control",-)--QMSR_TRANSITION_ITEMS = (- "qmsr-source-basis",- "applicability-owner",- "fda-supplemental-provisions",- "legacy-qsr-reference-disposition",- "pre-effective-date-record-review",- "inspection-accessible-records",- "inspection-process-training",- "qsit-retirement",- "complaint-and-servicing-records",- "labeling-and-packaging-controls",- "software-validation-impact",- "supplier-and-outsourced-process-controls",- "certificate-claims-review",- "change-control-approval",-)--TRACEABILITY_LINKS = (- "intended_use",- "hazard_or_signal",- "risk_evaluation",- "risk_control",- "design_input",- "design_output",- "verification",- "validation",- "production_control",- "postmarket_source",-)diff --git a/skills/iso-standards-readiness/SKILL.md b/skills/iso-standards-readiness/SKILL.mdnew file mode 100644index 00000000..4e703251--- /dev/null+++ b/skills/iso-standards-readiness/SKILL.md@@ -0,0 +1,352 @@+---+name: iso-standards-readiness+description: Prepares and structurally reviews readiness evidence for ISO management-system and laboratory-competence standards - ISO 13485 medical device QMS, ISO 14971 device risk management, ISO/IEC 17025 testing and calibration laboratories, and ISO 15189 medical laboratories. Use when organizing declared scope, controlled documents, risk-management files, scope of accreditation, traceability, CAPA, external-provider controls, or bounded local evidence manifests, and when separating ISO certification from laboratory accreditation, FDA QMSR inspection, CLIA certification, MDSAP, and EU MDR/IVDR evidence boundaries. Not for legal applicability, compliance, certification, or accreditation decisions; contains no clause text.+license: MIT+compatibility: Python 3.11+; bundled CLIs use only the standard library and bounded local JSON/Markdown files, with no network access or credentials.+allowed-tools: Read Write Bash Glob+metadata:+ version: "1.0"+ skill-author: K-Dense Inc.+ supersedes: iso-13485-certification+ last-reviewed: "2026-07-26"+---++# ISO Standards Readiness Evidence Preparation++## Purpose++Use this skill to organize declared scope, controlled documents, implementation+records, traceability, and readiness evidence for substantive human review against a+named standard. It summarizes process workflows and provides deterministic local+checks. It contains no clause text and performs no audit.++This is a router. `SKILL.md` holds the boundary, the lane discipline, the shared+workflow, and the CLI contract. Per-standard depth lives in `references/`.++## Non-negotiable boundary++This skill cannot:++- certify or accredit anything, issue or validate a certificate, accreditation+ schedule, or licence, or promise an audit, assessment, or inspection result;+- determine legal/regulatory applicability, device classification, reportability,+ conformity route, product authorization, market access, licensure, personnel+ qualification, or compliance;+- replace authorized management, the management representative, laboratory director,+ quality manager, authorized signatory, RA/QA, legal counsel, regulatory/competent+ authorities, a notified body, an MDSAP Auditing Organization, an accreditation body,+ an assessor, or a certification body;+- validate a method, compute or approve measurement uncertainty, establish+ metrological traceability, set risk-acceptability criteria, or judge whether a risk,+ decision rule, or reference interval is fit for purpose; or+- infer implementation, competence, conformity, compliance, or readiness from a+ template, checklist, filename, keyword, document count, percentage, or script+ result.++Always label outputs **draft evidence-preparation material for authorized human+review**. Preserve unresolved decisions as blockers rather than resolving them.++## ISO and IEC copyright++ISO and IEC standards are copyrighted. Obtain each standard from+[ISO](https://www.iso.org/standards.html), IEC, an ISO national member, or another+authorized source. Do not retrieve, paste, reproduce, or generate clause text.+Summarize the organization's own process and cite the controlled authorized copy. See+[ISO copyright](https://www.iso.org/copyright.html). Accreditation-body, CAP, and+scheme checklists that quote requirements are separately licensed — keep them out of+shared repositories and prompts too.++## Standards covered++Read the reference file for the standard in play **before** preparing evidence. Each+one carries its own current edition, lane, domain vocabulary, and failure modes.++| Standard | Profile key | Lane | Reference |+| --- | --- | --- | --- |+| ISO 13485 medical device QMS | `iso-13485` | Certification | `references/iso-13485.md` |+| ISO 14971 device risk management | `iso-14971` | No lane of its own | `references/iso-14971.md` |+| ISO/IEC 17025 testing and calibration laboratories | `iso-17025` | Accreditation | `references/iso-17025.md` |+| ISO 15189 medical laboratories | `iso-15189` | Accreditation | `references/iso-15189.md` |++A standard absent from this table is out of scope for the bundled checks. Do not+repurpose a profile for a standard it does not name — a domain vocabulary borrowed from+a different standard produces a report that looks complete and means nothing.++## Current baseline (read the ledger before any time-sensitive statement)++- **ISO 13485:2016** Edition 3, confirmed after its 2025 systematic review.+ **EN ISO 13485:2016/A11:2021** is a European amendment, not an ISO international+ "Amendment 1:2021."+- **ISO 14971:2019** Edition 3, confirmed in 2025, with **ISO/TR 24971:2020** as its+ informative guidance companion. There is no ISO 14971 certificate.+- **ISO/IEC 17025:2017** Edition 3 remains current; no successor edition identified.+- **ISO 15189:2022** Edition 4 replaced the 2012 edition, absorbed the POCT+ requirements formerly in ISO 22870, and its accreditation transition closed in+ **December 2025** — implemented, not upcoming.+- **FDA QMSR** effective and enforced since **2026-02-02**; Part 820 is titled+ *Quality Management System Regulation*; QSIT is retired in favour of Compliance+ Program **7382.850**.+- **MDSAP** current Audit Approach is **MDSAP AU P0002.010**, version date+ **2026-02-02**.+- **Accreditation recognition:** Global Accreditation Cooperation Incorporated+ commenced full operations **2026-01-01**, replacing ILAC and IAF, with its own MRA;+ former IAF MLA / ILAC MRA outputs stay recognized during the transition.+- **EU:** use current consolidated MDR/IVDR texts, current OJEU harmonised-standard+ decisions, current MDCG guidance, and the product-specific conformity route.++Read `references/source-ledger.md` before making any time-sensitive statement. It+records provenance limitations, including which entries still need confirmation against+the ISO catalogue.++## Keep the assurance lanes separate++Lane confusion, not missing documents, causes most substantive errors here.+Certification, accreditation, regulator inspection, mandatory licensure, regulatory+audit programmes, and product conformity assessment are decided by different bodies+against different bases, and none substitutes for another. Two rules that are violated+constantly:++- Organizations are **certified**; laboratories are **accredited**. "ISO 17025+ certified" and "ISO 15189 certified" are category errors.+- A certificate never displaces a regulator. ISO 13485 certification does not exempt+ anyone from FDA inspection, and ISO 15189 accreditation does not satisfy CLIA.++Read `references/assurance-lanes.md` for the full lane table, scope-statement limits,+and the titling rule.++## Core workflow++### Step 1: Declare the standard, purpose, and authorized owners++Name the standard(s), the lane(s) the work supports, and the owners: management+representative or laboratory director, quality owner, legal/applicability owner,+process or technical owners, approvers, and escalation route. A lane is a declared+input, never an inference.++```bash+PYTHONDONTWRITEBYTECODE=1 python3 scripts/validate_scope_intake.py \+ assets/templates/scope-intake-template.json --standard iso-13485+```++Use the matching template and profile:++| Profile | Template |+| --- | --- |+| `iso-13485`, `iso-14971` | `assets/templates/scope-intake-template.json` |+| `iso-17025` | `assets/templates/laboratory-scope-intake-template.json` |+| `iso-15189` | `assets/templates/medical-laboratory-scope-intake-template.json` |++`--standard` defaults to `iso-13485`. Every distributed template intentionally fails+closed; copy it outside the skill and complete it with controlled organizational+evidence. Undetermined applicability raises `HUMAN_DECISION_REQUIRED` — leave it as a+blocker.++### Step 2: Freeze source/version evidence++For every standard, regulation, guidance, scheme document, audit model, and product+source, record publisher, official title, edition/version/date, authorized location,+access and currency-review dates, scope/applicability owner, impact assessment, status,+evidence, and approval.++Do not use search snippets as controlled requirements. Do not silently update an+incorporated edition when a publisher releases a new one — FDA incorporated a specific+ISO 13485 edition, and a later ISO or EN publication does not change it.++### Step 3: Inventory controlled documents and records++Do not count named procedures or scan keywords. Build an explicit register linking+documents, records, source versions, owners, approvals, effective dates, retention+bases, training, and change records.++```bash+PYTHONDONTWRITEBYTECODE=1 python3 scripts/audit_document_records.py \+ assets/templates/document-register-template.json+```++This check is standard-agnostic. Read `references/evidence-architecture.md` for the+evidence architecture.++### Step 4: Review process implementation++Assess controlled procedures **and sampled records** across the domains your profile+declares — the per-standard reference file lists them. Each item needs owner, status,+evidence IDs, source/version, approval, and open-gap links.++A procedure describing an activity is not evidence the activity happened. Sample+records in every domain you report on, and state what you sampled and what you did not.++### Step 5: Run the focused checks that apply to the lane++Device lanes (`iso-13485`, `iso-14971`) — risk/design/production/post-market chain:++```bash+PYTHONDONTWRITEBYTECODE=1 python3 scripts/check_traceability.py \+ assets/templates/traceability-matrix-template.json+```++All standards — corrective action and effectiveness:++```bash+PYTHONDONTWRITEBYTECODE=1 python3 scripts/check_capa.py \+ assets/templates/capa-record-template.json+```++All standards — suppliers and externally provided products and services, including+calibration providers, reference-material suppliers, and referral or subcontracted+laboratories:++```bash+PYTHONDONTWRITEBYTECODE=1 python3 scripts/check_supplier_controls.py \+ assets/templates/supplier-controls-template.json+```++Pending or ineffective CAPA effectiveness evidence blocks closure. Critical supplier+controls stay blocked until risk-based controls and approvals are evidenced.++Note that `check_traceability.py` concerns design and risk traceability, **not**+metrological traceability — the words collide and it is the wrong tool for laboratory+work.++### Step 6: Address lane-specific regulator evidence separately++For the US device lane only:++```bash+PYTHONDONTWRITEBYTECODE=1 python3 scripts/check_qmsr_transition.py \+ assets/templates/qmsr-transition-template.json+```++Review current Part 820/FDA source basis, supplemental provisions, obsolete QSR/QSIT+references, pre-effective-date records, inspection-accessible management/quality/+supplier-audit records, current inspection-process training, complaint and servicing+records, labeling/packaging controls, supplier/software/change evidence, and prohibited+certificate-equivalence claims. Do not build an old-820-to-ISO clause map as the+current control framework.++Laboratory lanes have no equivalent bundled check. CLIA, licensure, and national+inspection evidence stays with the authorized compliance owner; see+`references/iso-15189.md`.++### Step 7: Assemble a bounded readiness manifest++Copy the evidence template outside the skill. Use relative paths to local `.json`,+`.md`, or `.markdown` evidence only, and one declared lane purpose per manifest.++```bash+PYTHONDONTWRITEBYTECODE=1 python3 scripts/validate_evidence_manifest.py \+ /path/to/evidence-manifest.json \+ --standard iso-17025 \+ --base-dir /path/to/controlled-export \+ --verify-files \+ --output /path/to/manifest-report.json+```++Then generate a domain-level gap view against the same profile:++```bash+PYTHONDONTWRITEBYTECODE=1 python3 scripts/gap_analyzer.py \+ /path/to/evidence-manifest.json \+ --standard iso-17025 \+ --base-dir /path/to/controlled-export \+ --verify-files \+ --output /path/to/gap-report.json+```++The analyzer uses explicit manifest labels. It does not infer evidence from filenames,+keywords, or proprietary standard text, and does not calculate a compliance score. A+domain absent from `expected_domains` is reported `not-assessed`, which is **not** a+not-applicable determination.++Read `references/gap-analysis-checklist.md` for the fail-closed review questions.++### Step 8: Human review and controlled handoff++Present:++- declared standard, scope, assurance lane(s), and unresolved applicability decisions;+- the exact source/version baseline;+- evidence sampled and the limitations of that sample;+- structural findings grouped by process and risk;+- actions, change, and CAPA owners with dates;+- approval state; and+- the authorized party responsible for the next decision.++Never title the result "certificate," "accreditation," "compliance report," "audit+pass," "deemed status," or "ready for inspection." A suitable title is **Draft evidence+review for authorized human assessment**, naming the lane it was prepared for.++## CLI behavior and safety++All bundled CLIs:++- use the Python standard library only;+- perform no network requests;+- accept bounded local JSON; optional evidence verification accepts only bounded local+ JSON/Markdown;+- reject symbolic-link inputs, duplicate JSON keys, non-finite numbers, excessive+ size/nesting/items, and unsafe evidence paths;+- refuse an unlisted `--standard` value rather than falling back to a default;+- use no dynamic evaluation, executable deserialization, pickle, or shell execution;+- refuse to overwrite reports unless `--force` is explicit; and+- produce deterministic sorted JSON.++Treat the manifest itself as a controlled organizational record. An optional SHA-256+comparison detects a local file mismatch only; it does not establish provenance,+authenticity, adequacy, or trust in a user-supplied manifest. Values in JSON+`local_path` and `evidence.location` fields refer to the user's controlled export, not+to bundled skill resources; unresolved placeholders must never be opened.++Exit codes:++- `0`: no structural finding for the supplied fields; **not a compliance, conformity,+ competence, or accreditation result**;+- `1`: structural/evidence gaps found;+- `2`: invalid or unsafe input/output, including an unlisted standard.++Run `python3 scripts/<name>.py --help` for each interface.++## Templates++Scope intake, per profile:++- `assets/templates/scope-intake-template.json` — device lifecycle+- `assets/templates/laboratory-scope-intake-template.json` — testing/calibration+- `assets/templates/medical-laboratory-scope-intake-template.json` — examinations++Shared registers and records:++- `assets/templates/document-register-template.json`+- `assets/templates/capa-record-template.json`+- `assets/templates/traceability-matrix-template.json`+- `assets/templates/supplier-controls-template.json`+- `assets/templates/evidence-manifest-template.json`+- `assets/templates/qmsr-transition-template.json` — US device lane only++Management-system documentation:++- `assets/templates/quality-manual-template.md`+- `assets/templates/procedures/CAPA-procedure-template.md`+- `assets/templates/procedures/document-control-procedure-template.md`++Every template is deliberately `draft`/`pending`, uses placeholders, and includes+owner/status/evidence/approval fields. Copy and control it; never edit a distributed+template into a purported approved record.++## References++Shared:++- `references/assurance-lanes.md` — what each lane decides, and the titling rule+- `references/source-ledger.md` — dated authoritative source baseline and provenance+ limitations+- `references/evidence-architecture.md` — documentation and record architecture+- `references/gap-analysis-checklist.md` — fail-closed evidence review questions+- `references/quality-manual-guide.md` — controlled manual development++Per standard:++- `references/iso-13485.md` — device QMS process/evidence framework, QMSR, MDSAP, EU+- `references/iso-14971.md` — risk-management chain and the missing-link failure modes+- `references/iso-17025.md` — laboratory competence, traceability, uncertainty, and+ decision rules+- `references/iso-15189.md` — medical laboratories, POCT, reporting, and the CLIA lanediff --git a/skills/iso-13485-certification/assets/templates/capa-record-template.json b/skills/iso-standards-readiness/assets/templates/capa-record-template.jsonsimilarity index 100%rename from skills/iso-13485-certification/assets/templates/capa-record-template.jsonrename to skills/iso-standards-readiness/assets/templates/capa-record-template.jsondiff --git a/skills/iso-13485-certification/assets/templates/document-register-template.json b/skills/iso-standards-readiness/assets/templates/document-register-template.jsonsimilarity index 100%rename from skills/iso-13485-certification/assets/templates/document-register-template.jsonrename to skills/iso-standards-readiness/assets/templates/document-register-template.jsondiff --git a/skills/iso-13485-certification/assets/templates/evidence-manifest-template.json b/skills/iso-standards-readiness/assets/templates/evidence-manifest-template.jsonsimilarity index 100%rename from skills/iso-13485-certification/assets/templates/evidence-manifest-template.jsonrename to skills/iso-standards-readiness/assets/templates/evidence-manifest-template.jsondiff --git a/skills/iso-standards-readiness/assets/templates/laboratory-scope-intake-template.json b/skills/iso-standards-readiness/assets/templates/laboratory-scope-intake-template.jsonnew file mode 100644index 00000000..67e658b0--- /dev/null+++ b/skills/iso-standards-readiness/assets/templates/laboratory-scope-intake-template.json@@ -0,0 +1,111 @@+{+ "_notice": "DRAFT EXAMPLE ONLY. Authorized humans must determine and approve the scope of laboratory activities. This file cannot establish competence, conformity, accreditation, or the validity of any result.",+ "_standard": "Validate with: validate_scope_intake.py <file> --standard iso-17025",+ "metadata": {+ "intake_id": "<controlled intake ID>",+ "review_date": "<YYYY-MM-DD>",+ "owner": "<assigned role>",+ "status": "draft",+ "evidence": [],+ "approval": {+ "status": "pending",+ "by": "",+ "date": ""+ },+ "source_refs": [+ {+ "id": "SOURCE-LEDGER",+ "title": "Organization-controlled source ledger",+ "version_or_date": "<revision/date>",+ "url": "https://example.invalid/replace-with-controlled-official-source",+ "accessed": "<YYYY-MM-DD>"+ }+ ]+ },+ "organization": {+ "legal_name": "<legal entity>",+ "declared_lifecycle_role": "<declared laboratory role; not a legal determination>",+ "authorized_management_representative": "<named role with management authority>",+ "raqa_owner": "<named quality manager or equivalent role>",+ "applicability_decision_owner": "<authorized role owning scheme/scope decisions>"+ },+ "scope": {+ "laboratory_activities": [+ "testing"+ ],+ "sites": [+ {+ "id": "<site/location ID>",+ "name": "<site name>",+ "address": "<site address>",+ "activities": [+ "testing"+ ],+ "owner": "<assigned role>",+ "status": "draft",+ "evidence": [],+ "approval": {+ "status": "pending",+ "by": "",+ "date": ""+ },+ "source_refs": []+ }+ ],+ "scope_items": [+ {+ "id": "<scope item ID>",+ "discipline": "<field of testing or calibration>",+ "method_or_procedure": "<controlled method/procedure reference and issue>",+ "measurand_or_property": "<measurand, property, or characteristic determined>",+ "range_and_uncertainty": "<range and reported uncertainty basis reference>",+ "market_ids": [+ "<jurisdiction ID>"+ ],+ "owner": "<assigned role>",+ "status": "draft",+ "evidence": [],+ "approval": {+ "status": "pending",+ "by": "",+ "date": ""+ },+ "source_refs": []+ }+ ],+ "markets": [+ {+ "id": "<jurisdiction ID>",+ "jurisdiction": "<jurisdiction or accreditation scheme territory>",+ "applicability": "undetermined",+ "decision_rationale": "<authorized human decision and rationale>",+ "owner": "<assigned role>",+ "status": "draft",+ "evidence": [],+ "approval": {+ "status": "pending",+ "by": "",+ "date": ""+ },+ "source_refs": []+ }+ ],+ "outsourced_processes": [+ {+ "id": "<process ID>",+ "process": "<subcontracted or externally provided activity>",+ "provider": "<provider and its own accreditation status, if any>",+ "control_strategy": "<risk-based control and customer-notification strategy>",+ "owner": "<assigned role>",+ "status": "draft",+ "evidence": [],+ "approval": {+ "status": "pending",+ "by": "",+ "date": ""+ },+ "source_refs": []+ }+ ]+ }+}diff --git a/skills/iso-standards-readiness/assets/templates/medical-laboratory-scope-intake-template.json b/skills/iso-standards-readiness/assets/templates/medical-laboratory-scope-intake-template.jsonnew file mode 100644index 00000000..55d6ddad--- /dev/null+++ b/skills/iso-standards-readiness/assets/templates/medical-laboratory-scope-intake-template.json@@ -0,0 +1,111 @@+{+ "_notice": "DRAFT EXAMPLE ONLY. Authorized humans must determine and approve the scope of examinations. This file cannot establish competence, conformity, accreditation, licensure, or CLIA certification, and it cannot substitute for any national requirement.",+ "_standard": "Validate with: validate_scope_intake.py <file> --standard iso-15189",+ "metadata": {+ "intake_id": "<controlled intake ID>",+ "review_date": "<YYYY-MM-DD>",+ "owner": "<assigned role>",+ "status": "draft",+ "evidence": [],+ "approval": {+ "status": "pending",+ "by": "",+ "date": ""+ },+ "source_refs": [+ {+ "id": "SOURCE-LEDGER",+ "title": "Organization-controlled source ledger",+ "version_or_date": "<revision/date>",+ "url": "https://example.invalid/replace-with-controlled-official-source",+ "accessed": "<YYYY-MM-DD>"+ }+ ]+ },+ "organization": {+ "legal_name": "<legal entity>",+ "declared_lifecycle_role": "<declared medical laboratory role; not a legal determination>",+ "authorized_management_representative": "<named laboratory director or equivalent>",+ "raqa_owner": "<named quality manager or equivalent role>",+ "applicability_decision_owner": "<authorized role owning licensure/scheme decisions>"+ },+ "scope": {+ "laboratory_activities": [+ "examination"+ ],+ "sites": [+ {+ "id": "<site/location ID>",+ "name": "<site name>",+ "address": "<site address>",+ "activities": [+ "examination"+ ],+ "owner": "<assigned role>",+ "status": "draft",+ "evidence": [],+ "approval": {+ "status": "pending",+ "by": "",+ "date": ""+ },+ "source_refs": []+ }+ ],+ "scope_items": [+ {+ "id": "<examination scope item ID>",+ "discipline": "<discipline or specialty>",+ "examination_or_measurand": "<examination, measurand, or analyte reported>",+ "method_or_procedure": "<controlled examination procedure reference and issue>",+ "primary_sample_type": "<primary sample type and acceptance requirements reference>",+ "market_ids": [+ "<jurisdiction ID>"+ ],+ "owner": "<assigned role>",+ "status": "draft",+ "evidence": [],+ "approval": {+ "status": "pending",+ "by": "",+ "date": ""+ },+ "source_refs": []+ }+ ],+ "markets": [+ {+ "id": "<jurisdiction ID>",+ "jurisdiction": "<jurisdiction, licensure regime, or scheme territory>",+ "applicability": "undetermined",+ "decision_rationale": "<authorized human decision and rationale>",+ "owner": "<assigned role>",+ "status": "draft",+ "evidence": [],+ "approval": {+ "status": "pending",+ "by": "",+ "date": ""+ },+ "source_refs": []+ }+ ],+ "outsourced_processes": [+ {+ "id": "<process ID>",+ "process": "<referral laboratory or externally provided activity>",+ "provider": "<referral laboratory and its own accreditation/licensure status>",+ "control_strategy": "<selection, monitoring, and result-communication strategy>",+ "owner": "<assigned role>",+ "status": "draft",+ "evidence": [],+ "approval": {+ "status": "pending",+ "by": "",+ "date": ""+ },+ "source_refs": []+ }+ ]+ }+}diff --git a/skills/iso-13485-certification/assets/templates/procedures/CAPA-procedure-template.md b/skills/iso-standards-readiness/assets/templates/procedures/CAPA-procedure-template.mdsimilarity index 100%rename from skills/iso-13485-certification/assets/templates/procedures/CAPA-procedure-template.mdrename to skills/iso-standards-readiness/assets/templates/procedures/CAPA-procedure-template.mddiff --git a/skills/iso-13485-certification/assets/templates/procedures/document-control-procedure-template.md b/skills/iso-standards-readiness/assets/templates/procedures/document-control-procedure-template.mdsimilarity index 100%rename from skills/iso-13485-certification/assets/templates/procedures/document-control-procedure-template.mdrename to skills/iso-standards-readiness/assets/templates/procedures/document-control-procedure-template.mddiff --git a/skills/iso-13485-certification/assets/templates/qmsr-transition-template.json b/skills/iso-standards-readiness/assets/templates/qmsr-transition-template.jsonsimilarity index 100%rename from skills/iso-13485-certification/assets/templates/qmsr-transition-template.jsonrename to skills/iso-standards-readiness/assets/templates/qmsr-transition-template.jsondiff --git a/skills/iso-13485-certification/assets/templates/quality-manual-template.md b/skills/iso-standards-readiness/assets/templates/quality-manual-template.mdsimilarity index 100%rename from skills/iso-13485-certification/assets/templates/quality-manual-template.mdrename to skills/iso-standards-readiness/assets/templates/quality-manual-template.mddiff --git a/skills/iso-13485-certification/assets/templates/scope-intake-template.json b/skills/iso-standards-readiness/assets/templates/scope-intake-template.jsonsimilarity index 100%rename from skills/iso-13485-certification/assets/templates/scope-intake-template.jsonrename to skills/iso-standards-readiness/assets/templates/scope-intake-template.jsondiff --git a/skills/iso-13485-certification/assets/templates/supplier-controls-template.json b/skills/iso-standards-readiness/assets/templates/supplier-controls-template.jsonsimilarity index 100%rename from skills/iso-13485-certification/assets/templates/supplier-controls-template.jsonrename to skills/iso-standards-readiness/assets/templates/supplier-controls-template.jsondiff --git a/skills/iso-13485-certification/assets/templates/traceability-matrix-template.json b/skills/iso-standards-readiness/assets/templates/traceability-matrix-template.jsonsimilarity index 100%rename from skills/iso-13485-certification/assets/templates/traceability-matrix-template.jsonrename to skills/iso-standards-readiness/assets/templates/traceability-matrix-template.jsondiff --git a/skills/iso-standards-readiness/references/assurance-lanes.md b/skills/iso-standards-readiness/references/assurance-lanes.mdnew file mode 100644index 00000000..51e23fb1--- /dev/null+++ b/skills/iso-standards-readiness/references/assurance-lanes.md@@ -0,0 +1,116 @@+# Assurance Lanes: What Each One Actually Decides++Research basis: **2026-07-26**. Read this before preparing evidence for any standard in+this skill. Most substantive errors in readiness work are lane confusion, not missing+documents: an output that is correct for one lane is wrong, and sometimes a false claim,+in another.++Every lane below is decided by a different body, against a different basis, producing a+different artifact with a different scope. None of them is a substitute for another, and+this skill produces none of them.++## The seven lanes++| Lane | Who decides | Basis | Artifact | Applies to |+| --- | --- | --- | --- | --- |+| Management-system certification | Certification body under ISO/IEC 17021-1 | Authorized standard + certification scheme | Certificate, scoped | ISO 13485 |+| Laboratory accreditation | Accreditation body under ISO/IEC 17011 | Authorized standard + scheme rules | Accreditation + scope schedule | ISO/IEC 17025, ISO 15189 |+| Regulator inspection | National regulator | That jurisdiction's law | Inspection outcome, enforcement | FDA QMSR, CLIA, national regimes |+| Mandatory certification/licensure | Government or its agent | Statute | Certificate/licence to operate | CLIA |+| Regulatory audit programme | Recognized Auditing Organization | Programme audit model | Audit report used by participating regulators | MDSAP |+| Conformity assessment | Notified body / manufacturer per route | Product regulation | Product certificate, declaration of conformity | EU MDR/IVDR |+| Assessed-inside-another-lane | Whoever runs the host lane | The standard, as evidence | No artifact of its own | ISO 14971 |++## Certification and accreditation are not synonyms++This is the most frequent wording error in readiness documents.++- Organizations and management systems are **certified** by a certification body.+ ISO 13485 is a certification lane.+- Laboratories, inspection bodies, proficiency-testing providers, and reference-material+ producers are **accredited** by an accreditation body, for a defined technical scope.+ ISO/IEC 17025 and ISO 15189 are accreditation lanes.+- Accreditation bodies themselves are peer-evaluated through the international+ recognition arrangement; they are not certified.++"ISO 17025 certified" and "ISO 15189 certified" are category errors. So is treating an+accreditation schedule as if it covered the whole organization: an accreditation scope+is per location and per activity or examination, and work outside it must carry no+accreditation claim.++Since **2026-01-01**, Global Accreditation Cooperation Incorporated has replaced the+former ILAC and IAF and operates a single Multilateral Recognition Arrangement.+Certificates and accredited results issued under the former IAF MLA / ILAC MRA remain+recognized during the transition. Before reproducing any recognition claim, logo, or+document designation, verify the current wording — legacy phrasing may be transitional+rather than current.++## A certificate never displaces a regulator++Hold these apart in every output:++- **ISO 13485 certification does not exempt a manufacturer from FDA inspection, and+ FDA does not issue ISO 13485 certificates.** FDA assesses applicable FDA+ requirements; QMSR has been effective and enforced since 2026-02-02, and FDA uses+ Compliance Program 7382.850 rather than the retired QSIT.+- **ISO 15189 accreditation does not satisfy CLIA.** CLIA certification by CMS is+ mandatory before a US laboratory may accept human specimens. Deemed status comes only+ from a CMS-approved accreditation organization's programme, not from ISO 15189.+- **An MDSAP audit is not generic ISO certification, and an FDA inspection does not+ follow the MDSAP audit plan.**+- **Accreditation or certification alone is not notified-body designation.** Verify a+ notified body's current legislation, task, and designation-code scope in NANDO.+- **EU conformity assessment covers product, technical documentation, post-market,+ vigilance, and economic-operator requirements** well beyond generic+ management-system documentation.++## What a scope statement limits++Whatever the lane, the artifact is bounded. Record the boundaries explicitly, because a+claim that quietly exceeds them is the failure mode:++- named legal organization and the specific sites or locations;+- activities, and for laboratories the specific methods, measurands, or examinations+ with ranges and uncertainty basis;+- the product or technical areas covered;+- the standard edition and any amendment basis, and the scheme applied;+- validity dates and current status, including suspension or withdrawal; and+- the issuing body and its own accreditation or designation status.++## Product- and jurisdiction-specific controls sit outside all of this++Classification, intended purpose and claims, software and cybersecurity, clinical or+performance evidence, biocompatibility, electrical safety, sterilization, UDI,+registration, personnel qualification, reporting, and payer conditions each require+separate authorized analysis. A management-system or laboratory-competence readiness+output says nothing about any of them.++## Lane declaration is a required input, not an inference++Before evidence work starts, name the lane or lanes in the intake, with an owner for+each applicability decision. The bundled checks record what humans declared; they never+infer a lane from a document set. Where a lane is undetermined, the intake check raises+`HUMAN_DECISION_REQUIRED` as a blocker — leave it as a blocker.++Manifest `audit_context.purpose` accepts one declared purpose per manifest:+`internal-audit`, `iso-certification-readiness`,+`accreditation-assessment-readiness`, `fda-inspection-readiness`,+`national-regulatory-inspection-readiness`, `mdsap-audit-readiness`, or+`eu-conformity-assessment-readiness`. Preparing for two lanes means two manifests with+two scopes and two sets of limitations, not one manifest with a blended purpose.++## Titling rule++Never title an output "certificate," "accreditation," "compliance report," "audit+pass," "deemed status," or "ready for inspection." Use **Draft evidence review for+authorized human assessment**, and state which lane the evidence was prepared for.++## Sources++- `references/source-ledger.md` — dated official sources for every claim above+- [GLOBAC launch](https://iaf.nu/en/news/global-accreditation-cooperation-incorporated-launch-unifies-international-accreditation-organisations-and-strengthens-worldwide-trust/)+- [Specifying use of GLOBAC accreditation](https://ilac.org/latest_ilac_news/iaf-and-ilac-release-information-on-specifying-use-of-globac-accreditation/)+- [FDA QMSR](https://www.fda.gov/medical-devices/postmarket-requirements-devices/quality-management-system-regulation-qmsr)+- [CMS CLIA](https://www.cms.gov/medicare/quality/clinical-laboratory-improvement-amendments)+- [MDSAP Audit Approach](https://www.mdsap.global/documents/library/audit-approach)+- [NANDO](https://webgate.ec.europa.eu/single-market-compliance-space/notified-bodies)diff --git a/skills/iso-13485-certification/references/mandatory-documents.md b/skills/iso-standards-readiness/references/evidence-architecture.mdsimilarity index 75%rename from skills/iso-13485-certification/references/mandatory-documents.mdrename to skills/iso-standards-readiness/references/evidence-architecture.mdindex 345fcddc..7b85bc68 100644--- a/skills/iso-13485-certification/references/mandatory-documents.md+++ b/skills/iso-standards-readiness/references/evidence-architecture.md@@ -1,7 +1,11 @@# Documentation and Evidence Architecture-Research basis: **2026-07-23**. This is a process-oriented planning reference, not a-list of copyrighted ISO requirements.+Research basis: **2026-07-23**, extended **2026-07-26** for laboratory lanes. This is a+process-oriented planning reference, not a list of copyrighted ISO or IEC requirements.++The five-layer hierarchy below applies to every standard this skill covers. Where the+wording is device-specific, the laboratory equivalent is noted; for depth read+`references/iso-17025.md` or `references/iso-15189.md`.## Do not use a fixed “31 procedures” claim@@ -99,6 +103,30 @@ Do not claim that an ISO 13485 “medical device file” automatically replacesFDA, EU, or other jurisdiction-specific file or record concept. Build a cross-referencethat preserves each required record and its source/version.+**Laboratory equivalent.** For ISO/IEC 17025 and ISO 15189 the technical evidence layer+is organized per scope item — per method, measurand, or examination — rather than per+product family. Depending on the activity it may include:++- the controlled method or examination procedure and its issue, with the authorization+ to put it into service;+- verification or validation evidence: performance characteristics evaluated,+ acceptance criteria, data, and approval;+- the measurement-uncertainty evaluation and its stated basis;+- metrological traceability evidence: stated reference, provider and its accreditation+ scope, certificate identity, uncertainty carried forward, interval justification, and+ intermediate checks;+- the documented decision rule and customer-agreement record where conformity is+ stated;+- proficiency-testing or external-quality-assessment enrolment, results, evaluation+ against criteria, and investigation of unsatisfactory outcomes;+- equipment, reagent, consumable, and reference-material records;+- technical records sufficient to reproduce the reported result; and+- report and certificate templates, amendment/retraction handling, and authorized+ signatories.++An accredited scope schedule is not this layer — it is the output of the accreditation+body. Keep the two apart in the register.+### 5. Implementation-record layerProcedures describe controls; records show what happened. Sample actual records for:@@ -152,6 +180,33 @@ certification-body and accreditation-scope evidence, audit program, findings, ancertificate status. A certificate is limited to its scope and is not a product orregulatory authorization.+### Laboratory accreditation (ISO/IEC 17025, ISO 15189)++Maintain the authorized standard edition, the scope of laboratory activities as+declared and as accredited, per-location coverage, the accreditation body and its own+recognition status, assessment history and findings with their closure evidence, and+current accreditation status including any suspension or scope reduction.++Additional controls specific to this lane:++- **Claim control.** Record where accreditation symbols and endorsement wording may and+ may not be used, and who authorizes each use. Work outside the accredited scope must+ carry no accreditation claim. Since 2026-01-01 the recognition arrangement sits with+ Global Accreditation Cooperation Incorporated — verify current wording rather than+ reusing legacy ILAC MRA / IAF MLA phrasing.+- **Scope-change control.** New methods, extended ranges, new locations, and new+ authorized signatories are scope questions for the accreditation body, not only+ internal change control. Keep the notification and approval records.+- **Authorized signatories.** Maintain the current list, the scope each is authorized+ for, and the competence evidence behind each authorization.+- **Subcontracting and referral.** Record the provider, its own accreditation or+ licensure status, the customer-notification basis, and how results are reported.++For ISO 15189 specifically, keep CLIA, licensure, and payer evidence in a **separate**+register. ISO 15189 accreditation does not satisfy CLIA, and blending the two produces+a register that implies an equivalence that does not exist. See+`references/iso-15189.md`.+### FDA QMSRSince **2026-02-02**, use currentdiff --git a/skills/iso-13485-certification/references/gap-analysis-checklist.md b/skills/iso-standards-readiness/references/gap-analysis-checklist.mdsimilarity index 66%rename from skills/iso-13485-certification/references/gap-analysis-checklist.mdrename to skills/iso-standards-readiness/references/gap-analysis-checklist.mdindex 4050de91..5cbccec2 100644--- a/skills/iso-13485-certification/references/gap-analysis-checklist.md+++ b/skills/iso-standards-readiness/references/gap-analysis-checklist.md@@ -1,7 +1,13 @@-# Fail-Closed QMS Evidence Review+# Fail-Closed Evidence Review-Research basis: **2026-07-23**. This checklist organizes evidence questions; it is-not ISO text, an audit, a legal determination, or a compliance score.+Research basis: **2026-07-23**, extended **2026-07-26** for laboratory lanes. This+checklist organizes evidence questions; it is not ISO or IEC text, an audit, an+assessment, a legal determination, or a compliance score.++Sections up to "Training, competence, and change control" apply to the device QMS lanes+(`iso-13485`, `iso-14971`). The laboratory sections near the end apply to `iso-17025`+and `iso-15189`. Use the sections your declared profile covers; do not report on a+domain you did not sample.## Status vocabulary@@ -38,7 +44,9 @@ Blank, placeholder, inaccessible, stale, or unapproved fields fail closed.## Workflow1. Freeze the review purpose and boundaries: internal audit, ISO certification- preparation, FDA inspection preparation, MDSAP, or EU conformity assessment.+ preparation, laboratory accreditation assessment preparation, FDA inspection+ preparation, national regulatory inspection preparation, MDSAP, or EU conformity+ assessment. One purpose per review.2. Obtain authorized standards and current official regulatory sources.3. Record product/site/market/activity scope; route applicability decisions toauthorized management, RA/QA, and legal roles.@@ -223,11 +231,93 @@ As of this research date, QMSR is effective and FDA uses Compliance ProgramUse `scripts/check_qmsr_transition.py`; do not create a legacy-QSR clause map as thecurrent control framework.+## Laboratory scope, impartiality, and competence (`iso-17025`, `iso-15189`)++- [ ] Declared scope of laboratory activities is recorded per location, per method or+ examination, with the measurand or property and the range or sample type.+- [ ] Declared scope is reconciled against the current accredited scope schedule, and+ any work outside it is identified with its claim controls.+- [ ] Accreditation symbols, endorsement wording, and recognition-arrangement phrasing+ are current, authorized, and used only within scope.+- [ ] Impartiality risks are identified with controls, review evidence, and an owner —+ not a bare policy statement.+- [ ] Authorized signatories are listed with the scope each covers and the competence+ evidence behind the authorization.+- [ ] Personnel competence is evidenced per activity: training, authorization,+ ongoing monitoring, and reauthorization after change.+- [ ] Facilities and environmental conditions that affect results are monitored, with+ records and action on excursions.+- [ ] Equipment records cover calibration status, intermediate checks, out-of-service+ handling, and the effect of any failure on previously reported results.++## Metrological traceability, uncertainty, and decision rules (`iso-17025`, `iso-15189`)++- [ ] Traceability is documented as a chain per measurement: stated reference, provider+ and its accreditation scope, certificate identity, uncertainty carried forward,+ interval justification, and intermediate checks.+- [ ] Where no reference system exists for a measurand, that fact and the alternative+ comparability approach are recorded and authorized.+- [ ] Measurement uncertainty is evaluated for the measurands that require it, with a+ stated basis, contributions, and controlled revision.+- [ ] Reported uncertainty and its relationship to the decision rule are consistent+ with the report wording.+- [ ] Where conformity is stated, the decision rule is documented, agreed where+ required, and applied consistently at the specification limit.+- [ ] The policy basis for traceability and decision rules is cited by current+ designation and issue, confirmed rather than assumed.++## Methods, validity of results, and reporting (`iso-17025`, `iso-15189`)++- [ ] Each scope item is classified: standard method as published, standard method+ requiring verification, modified method, or laboratory-developed method — with+ the evidence that classification demands.+- [ ] Verification or validation records show performance characteristics evaluated,+ acceptance criteria, data, and authorized approval to put into service.+- [ ] Methods are revisited after instrument, reagent, personnel, or issue changes.+- [ ] Proficiency-testing or external-quality-assessment enrolment covers the scope+ items it should, with a documented plan and frequency.+- [ ] Every questionable or unsatisfactory PT/EQA result has an investigation, an+ action, and effectiveness evidence. **Treat an uninvestigated unsatisfactory+ result as a blocker.**+- [ ] Where no scheme exists, the alternative comparison approach is recorded and+ authorized.+- [ ] Technical records are sufficient to reproduce the reported result, with+ identifiable personnel, dates, and revisions.+- [ ] Report and certificate content, amendment and retraction handling, and+ authorized signature are controlled.+- [ ] Nonconforming work has documented evaluation, action, customer notification where+ required, and recall or amendment of affected results.++## Medical laboratory pre- and post-examination (`iso-15189`)++- [ ] Request content, patient identification, and primary sample identification+ controls are evidenced by records, including identification-error events and their+ investigations.+- [ ] Collection, transport, stability, acceptance, and rejection criteria are recorded,+ with rejection and transport-excursion records sampled.+- [ ] Result review and authorization before release is evidenced per examination.+- [ ] Biological reference intervals and clinical decision limits have a documented+ basis for the population served, not only a package-insert citation.+- [ ] Critical-result notification records exist, with recipient, time, read-back, and+ timeliness against the defined requirement.+- [ ] Interpretive comments are made only by authorized persons, per a controlled basis.+- [ ] Point-of-care testing under the laboratory's responsibility has governance,+ operator authorization, QC, connectivity, and reconciliation evidence.+- [ ] Laboratory information management covers data integrity, access control, change+ control, validation of the system and of interfaces, and downtime handling.+- [ ] Continuity and emergency arrangements have been exercised, with records — not a+ plan nobody has tested.+- [ ] CLIA, licensure, and payer evidence is kept in a separate register, with no+ implication that ISO 15189 accreditation satisfies any of them.+## Regime handoffBefore final review, state which authorized party owns the next decision:- ISO certification body for certification audit/certificate decisions;+- the accreditation body and its assessors for accreditation and scope decisions;+- CMS, the CMS-approved accreditation organization, or the state agency for CLIA+ certification, deemed status, and licensure decisions;- FDA for inspection and enforcement decisions;- MDSAP-recognized Auditing Organization and participating authorities for MDSAP;- designated MDR/IVDR notified body and competent authorities for applicable EU@@ -237,14 +327,20 @@ Before final review, state which authorized party owns the next decision:## Deterministic tooling-- `validate_scope_intake.py` — accountable scope/applicability decisions+- `validate_scope_intake.py` — accountable scope/applicability decisions (`--standard`)- `audit_document_records.py` — document, record, retention, and source register- `check_capa.py` — CAPA/effectiveness closure gates-- `check_traceability.py` — risk/design/production/postmarket links-- `check_qmsr_transition.py` — current post-effective-date QMSR evidence-- `validate_evidence_manifest.py` — bounded local readiness manifest-- `check_supplier_controls.py` — risk-based supplier evidence+- `check_traceability.py` — risk/design/production/postmarket links; device lanes only,+ and **not** metrological traceability+- `check_qmsr_transition.py` — current post-effective-date QMSR evidence; US device lane+- `validate_evidence_manifest.py` — bounded local readiness manifest (`--standard`)+- `check_supplier_controls.py` — risk-based supplier and external-provider evidence- `gap_analyzer.py` — domain coverage without keyword or percentage scoring+ (`--standard`)++Pass `--standard iso-13485|iso-14971|iso-17025|iso-15189` to the three profile-aware+checks so the domain vocabulary matches the standard under review. An unlisted value is+refused rather than defaulted.All tools are local JSON/Markdown structural checks. Exit 0 means only that nostructural finding was generated for the supplied data.diff --git a/skills/iso-13485-certification/references/iso-13485-requirements.md b/skills/iso-standards-readiness/references/iso-13485.mdsimilarity index 98%rename from skills/iso-13485-certification/references/iso-13485-requirements.mdrename to skills/iso-standards-readiness/references/iso-13485.mdindex c267c317..175fa516 100644--- a/skills/iso-13485-certification/references/iso-13485-requirements.md+++ b/skills/iso-standards-readiness/references/iso-13485.md@@ -51,6 +51,10 @@ Use outputs as a list of evidence questions for accountable human review.## Keep the assurance regimes separate+`references/assurance-lanes.md` holds the full lane table across every standard in this+skill, including how certification differs from laboratory accreditation. The+device-specific detail follows here.+### ISO 13485 management-system certificationA certification body audits the defined QMS scope against the authorized standard anddiff --git a/skills/iso-standards-readiness/references/iso-14971.md b/skills/iso-standards-readiness/references/iso-14971.mdnew file mode 100644index 00000000..a9e41088--- /dev/null+++ b/skills/iso-standards-readiness/references/iso-14971.md@@ -0,0 +1,172 @@+# ISO 14971 Process Framework (No Standard Text)++Research basis: **2026-07-26**, building on the 2026-07-23 device-lane baseline. This+reference summarizes a preparation process and evidence architecture for medical device+risk management. It does not reproduce requirements and is not a substitute for the+standard.++## Copyright and authorized access++ISO publications are copyrighted. Obtain ISO 14971 and ISO/TR 24971 from+[ISO](https://www.iso.org/standard/72704.html), an ISO national member, or another+authorized source; see [ISO copyright](https://www.iso.org/copyright.html). Do not ask+an agent to retrieve, transcribe, summarize clause-by-clause, or store proprietary+text.++## Current edition, the guidance companion, and the European amendment++- [ISO 14971:2019](https://www.iso.org/standard/72704.html) is Edition 3, published+ December 2019, reviewed and confirmed in 2025.+- [ISO/TR 24971:2020](https://www.iso.org/standard/74437.html) is Edition 2 and is the+ guidance companion, following the same clause structure. It is a **Technical+ Report**: informative, not normative. Conformity is claimed to ISO 14971, never to+ ISO/TR 24971, and a TR cannot relax or reinterpret a normative requirement. Record+ which guidance the organization adopted and why.+- **EN ISO 14971:2019/A11:2021** is a European amendment to the EN adoption, cited for+ MDR and, through the corresponding decision, IVDR support. It does not change the+ international normative part. Track it only where the European source basis applies.++## No certification lane exists for this standard++There is no ISO 14971 certificate. A body cannot certify a risk-management system to+ISO 14971 the way it certifies a QMS to ISO 13485. Risk management is instead assessed+*inside* other lanes:++- an ISO 13485 certification audit examines the risk-management process as part of the+ QMS;+- an FDA inspection examines risk-based decisions against applicable FDA requirements;+- an MDSAP audit treats risk management as a foundation across its process areas; and+- EU conformity assessment examines the risk-management file as part of technical+ documentation against the applicable general safety and performance requirements.++Any claim of "ISO 14971 certification" is a category error. Report risk-management+readiness as evidence supporting a named lane, never as its own assurance result.++## Hard boundary++This skill and its files cannot:++- certify, approve, or validate a risk-management file or process;+- determine device classification, intended use, reportability, conformity route,+ market access, or product authorization;+- decide whether a risk is acceptable, whether benefit outweighs residual risk, or+ whether a risk-control measure is adequate or safe;+- set or approve risk-acceptability criteria, severity or probability scales, or a+ risk matrix;+- replace top management, the risk-management owner, qualified clinical and engineering+ reviewers, RA/QA, a notified body, or a regulator; or+- infer that a hazard set is complete, or that residual risk is acceptable, from a+ template, a matrix, a document count, or a script result.++Use outputs as a list of evidence questions for accountable human review. **Completeness+of hazard identification cannot be established by any check in this skill** — a+zero-finding structural result says the declared links are present, not that the+analysis found everything.++## Process and evidence domains++The `iso-14971` profile carries these domain labels for manifests and gap reports.+They are workflow topics, not clause references:++`risk-management-plan`, `risk-management-file`, `competence-and-authority`,+`intended-use-and-characteristics`, `hazard-identification`,+`risk-estimation-and-evaluation`, `risk-control-option-analysis`,+`risk-control-implementation-and-verification`, `risk-control-side-effects-review`,+`residual-risk-evaluation`, `benefit-risk-analysis`,+`overall-residual-risk-evaluation`, `risk-management-review-and-report`,+`production-and-postproduction-information`, `change-control`.++Each domain needs an owner, status, evidence IDs, source/version reference, recorded+approval, and links to open gaps.++## The chain that has to hold together++Risk-management evidence is judged as a connected chain, not as a set of documents. For+each analysed item, the following must be traceable in both directions:++intended use and reasonably foreseeable misuse → characteristics related to safety →+hazard → foreseeable sequence of events → hazardous situation → harm with severity →+probability basis → risk evaluation against declared criteria → risk-control option+analysis and decision → implemented control → verification that the control was+implemented → verification of its effectiveness → review for new or increased risks+introduced by the control → residual risk evaluation → benefit-risk analysis where+residual risk is not acceptable → contribution to overall residual risk → disclosure of+residual risk → production and post-production information feeding back.++Break any one link and the file stops being evidence. The two links most often missing+are **verification of control effectiveness** (distinct from verifying the control+exists) and **review of risks introduced by the control itself**.++Build the traceability register with:++```bash+PYTHONDONTWRITEBYTECODE=1 python3 scripts/check_traceability.py \+ /path/to/traceability-matrix.json+```++That check links intended use, hazard or signal, risk evaluation, risk control, design+input and output, verification, validation, production control, and post-market source.+It verifies declared linkage, not analytical adequacy.++## Where risk management meets the QMS++ISO 14971 work is not separable from the device QMS. Keep these joins explicit and+evidenced:++- **Design and development** — risk controls that are design outputs must appear as+ design inputs with verification, not only as risk-file rows.+- **Production** — controls realized as process parameters, in-process checks, or+ acceptance criteria need production evidence, and process validation where the+ control cannot be fully verified on the finished device.+- **Purchasing** — controls that depend on a supplier's process or component need+ supplier controls and change notification. See+ `scripts/check_supplier_controls.py`.+- **Post-market** — complaints, service records, vigilance signals, and production+ nonconformities must actually re-enter risk estimation, with evidence that the file+ was reassessed and that changed estimates were acted on.+- **CAPA** — where a risk estimate changes, the resulting action needs effectiveness+ evidence before closure. See `scripts/check_capa.py`.+- **Change control** — any change to intended use, design, process, supplier, or+ materials triggers a documented risk reassessment.++The production and post-production feedback loop is the single most common structural+gap: files that were complete at design transfer and never updated by field+experience.++## Risk-acceptability criteria and the matrix problem++Acceptability criteria belong in the risk-management plan, are set by authorized humans+with a documented rationale, and must be applied consistently. Recurring failure modes+to look for, none of which this skill can adjudicate:++- criteria written after the analysis so that every risk lands acceptable;+- probability values asserted with no stated basis and no data;+- a matrix whose cells were adjusted per project to move results across the boundary;+- risk reduction claimed from labelling or an instruction alone, where a design or+ protective measure was available;+- residual risk described as acceptable with no benefit-risk analysis where the+ declared criteria were not met;+- overall residual risk never evaluated as a whole — only item by item; and+- no disclosure of residual risk to users where the analysis assumed it.++Flag these as blockers for authorized review. Do not resolve them.++## Shared checks that apply here++- `scripts/validate_scope_intake.py --standard iso-14971` — declared scope, product+ families, intended use references, and applicability owners.+- `scripts/check_traceability.py` — the risk/design/production/post-market chain.+- `scripts/check_capa.py` — corrective action with effectiveness evidence.+- `scripts/check_supplier_controls.py` — controls that depend on external providers.+- `scripts/validate_evidence_manifest.py` and `scripts/gap_analyzer.py` with+ `--standard iso-14971`.++## Sources++- [ISO 14971:2019](https://www.iso.org/standard/72704.html) — catalogue entry+- [ISO/TR 24971:2020](https://www.iso.org/standard/74437.html) — guidance companion+- [Decision (EU) 2022/757](https://eur-lex.europa.eu/eli/dec_impl/2022/757/oj/eng) —+ EN ISO 14971:2019/A11:2021 citation basis+- `references/iso-13485.md` — the QMS lane this evidence usually supports+- `references/source-ledger.md` — dated baseline and provenance limitations+- `references/assurance-lanes.md` — why this standard has no certification lanediff --git a/skills/iso-standards-readiness/references/iso-15189.md b/skills/iso-standards-readiness/references/iso-15189.mdnew file mode 100644index 00000000..fb0a9b98--- /dev/null+++ b/skills/iso-standards-readiness/references/iso-15189.md@@ -0,0 +1,219 @@+# ISO 15189 Process Framework (No Standard Text)++Research basis: **2026-07-26**. This reference summarizes a preparation process and+evidence architecture for medical laboratory quality and competence work. It does not+reproduce requirements and is not a substitute for the standard.++## Copyright and authorized access++ISO publications are copyrighted. Obtain ISO 15189 from+[ISO](https://www.iso.org/standard/76677.html), an ISO national member, or another+authorized source; see [ISO copyright](https://www.iso.org/copyright.html). Do not ask+an agent to retrieve, transcribe, summarize clause-by-clause, or store proprietary+text. Accreditation-body and CAP checklists that quote requirements are separately+licensed material — do not paste them into shared repositories or prompts.++## Current edition and the closed transition++- [ISO 15189:2022](https://www.iso.org/standard/76677.html) is Edition 4, published+ December 2022, cancelling and replacing ISO 15189:2012. Confirm on the ISO catalogue+ page, which refused automated access during this research.+- The 2022 edition aligns structurally with ISO/IEC 17025:2017 and **incorporates+ point-of-care testing requirements previously held in ISO 22870**. Do not cite+ ISO 22870 as a separate current POCT basis without confirming its status.+- The ILAC-agreed transition for accredited medical laboratories ran to **December+ 2025**. A 2012-based quality system is out of date, not "in transition" — do not+ build a gap baseline that assumes a future deadline.+- Record publisher, title, edition, amendments, authorized location, access date,+ source owner, currency-review date, impact decision, and approval in the controlled+ source ledger.++## Keep four lanes separate++### 1. ISO 15189 accreditation++An accreditation body grants accreditation for a defined scope of examinations, per+laboratory and per location, under ISO/IEC 17011. A medical laboratory is+**accredited**, not "ISO 15189 certified." Since 2026-01-01 the recognition arrangement+sits with Global Accreditation Cooperation Incorporated; verify current claim and logo+wording with the accreditation body.++### 2. United States CLIA certification++CLIA certification by CMS is **mandatory** before a US laboratory may accept human+specimens for testing. It is federal law, not a voluntary quality scheme.++**ISO 15189 accreditation does not satisfy CLIA and cannot replace a CLIA-based+accreditation.** Deemed status flows only from a CMS-approved accreditation+organization's program. CMS approves a limited set of accreditation organizations whose+standards must meet or exceed CLIA requirements, with reapproval every six years or+more often; read the+[current AO list](https://www.cms.gov/Regulations-and-Guidance/Legislation/CLIA/Downloads/AOList.pdf)+rather than relying on a remembered count. The CAP 15189 program is layered on top of+CAP Laboratory Accreditation Program accreditation rather than offered as a standalone+substitute — confirm current prerequisites with CAP.++Never let an ISO 15189 readiness output be read as CLIA compliance, deemed status,+licensure, or an inspection result.++### 3. Other national licensure and inspection regimes++State licensure, national health-authority requirements, and payer conditions of+participation are separate again, with their own inspection processes and their own+records. Non-US jurisdictions may make ISO 15189 accreditation mandatory, voluntary, or+irrelevant. This is an applicability decision for authorized humans.++### 4. IVD device regulation++The performance of an in vitro diagnostic device, and any laboratory-developed test+regime that applies to it, is regulated separately from laboratory accreditation. EU+IVDR conformity assessment, notified-body involvement, and performance-study+requirements are not laboratory accreditation questions. See `references/iso-13485.md`+and the EU entries in `references/source-ledger.md`.++## Hard boundary++This skill and its files cannot:++- accredit a laboratory, issue or validate an accreditation certificate or schedule,+ or predict an assessment or inspection outcome;+- establish CLIA certification, deemed status, licensure, or personnel qualification;+- decide which scheme, jurisdiction requirement, or payer condition applies;+- replace the laboratory director, quality manager, authorized signatory,+ accreditation body, assessor, EQA provider, or competent authority;+- verify or validate an examination procedure, set biological reference intervals,+ establish traceability of assigned values, or judge clinical suitability; or+- infer competence or patient safety from a document title, keyword, template,+ checklist, or script result.++Use outputs as a list of evidence questions for accountable human review.++## Scope of accreditation is per examination++Each scope item is defined by discipline, the examination or measurand reported, the+controlled procedure and its issue, and the primary sample type with its acceptance+requirements. Point-of-care testing performed under the laboratory's responsibility+belongs in the scope discussion explicitly, including devices operated by clinical+staff outside the laboratory.++```bash+PYTHONDONTWRITEBYTECODE=1 python3 scripts/validate_scope_intake.py \+ /path/to/medical-laboratory-scope-intake.json --standard iso-15189+```++Copy `assets/templates/medical-laboratory-scope-intake-template.json` outside the skill+first. The distributed template fails closed by design.++## Process and evidence domains++The `iso-15189` profile carries these domain labels for manifests and gap reports.+They are workflow topics, not clause references:++`scope-and-impartiality`, `organizational-structure-and-governance`,+`personnel-competence`, `facilities-and-safety`, `equipment-and-calibration`,+`metrological-traceability`, `reagents-and-consumables`,+`externally-provided-products-and-services`, `pre-examination-processes`,+`examination-methods-verification-and-validation`, `measurement-uncertainty`,+`validity-of-results-and-external-quality-assessment`, `point-of-care-testing`,+`post-examination-and-reporting`, `laboratory-information-management`, `complaints`,+`nonconformity-and-corrective-action`, `risk-management-and-improvement`,+`internal-audit`, `management-review`, `continuity-and-emergency-preparedness`.++Each domain needs an owner, status, evidence IDs, source/version reference, recorded+approval, and links to open gaps. Sample **records**, not only procedures.++## Where medical laboratory evidence differs from ISO/IEC 17025++### Pre-examination processes carry disproportionate risk++Most avoidable patient harm originates before the analyser: request content and+patient identification, collection and identification of the primary sample, transport+and stability conditions, acceptance and rejection criteria, and handling of+compromised samples. Sample: rejection records, identification-error events, transport+excursions, and the resulting investigations — not only the collection manual.++### Post-examination and reporting is clinical communication++Assemble evidence for result review and authorization, reference intervals and+clinical decision limits with their basis, interpretive comments and who is authorized+to make them, report content and amendment or retraction handling, and — the item most+often thin — **critical-result notification with documented read-back and+timeliness**. Turnaround-time monitoring belongs here too.++### Point-of-care testing is inside the scope++POCT requirements now sit within ISO 15189. Record governance of devices outside the+laboratory, operator training and authorization, connectivity and result capture into+the patient record, quality-control regimes, and reconciliation with central+laboratory methods.++### Verification is the normal case, validation the exception++Most medical laboratories verify commercial IVD examinations for their own setting+rather than validating a new method. Record which performance characteristics were+verified against the manufacturer's claims, the acceptance criteria, the data, and the+authorized approval to report patient results. Laboratory-developed and modified+procedures need the fuller validation evidence and the applicable regulatory analysis.++### External quality assessment, not just proficiency testing++Record EQA enrolment per scope item, results, evaluation against criteria, and+investigation of unsatisfactory performance. Where no EQA scheme exists for an+examination, record the alternative comparison approach and its authorization. An+unacceptable EQA outcome with no documented investigation is a blocker.++### Metrological traceability of assigned values++For measurands where higher-order reference materials and reference measurement+procedures exist, record the traceability of assigned values and the resulting+commutability and comparability limitations. Where no reference system exists, record+that fact and what the laboratory does about result comparability.++### Risk and continuity are explicit++The 2022 edition treats risk to patients as a running requirement rather than an annex.+Record identified risks, controls, residual acceptance with authority, and improvement+actions. Continuity and emergency preparedness — instrument failure, LIS outage,+reagent supply interruption, facility loss — needs tested arrangements, not a plan+nobody has exercised.++## Shared checks that apply here++- `scripts/audit_document_records.py` — controlled documents, records, retention basis,+ and external-source currency. Standard-agnostic.+- `scripts/check_capa.py` — nonconformity and corrective action with effectiveness+ evidence before closure.+- `scripts/check_supplier_controls.py` — reagents, consumables, calibration providers,+ and referral laboratories, including the referral laboratory's own accreditation or+ licensure status.+- `scripts/validate_evidence_manifest.py` and `scripts/gap_analyzer.py` with+ `--standard iso-15189`.++`scripts/check_traceability.py` and `scripts/check_qmsr_transition.py` are+device-lifecycle checks and do not apply here.++## Common preparation failures++- Presenting ISO 15189 readiness as CLIA compliance or deemed status.+- Saying "certified" when the laboratory is accredited.+- Citing ISO 22870 as the current separate POCT basis, or ISO 15189:2012 as current.+- POCT devices operating outside the laboratory with no governance, training, or QC+ evidence in the accreditation scope discussion.+- Critical-result notification procedures with no notification records or timeliness+ evidence.+- Reference intervals adopted from a package insert with no documented basis for the+ served population.+- EQA scores filed without investigation of unsatisfactory results.+- Continuity plans that have never been exercised.++## Sources++- [ISO 15189:2022](https://www.iso.org/standard/76677.html) — catalogue entry+- [ILAC: ISO 15189:2022 published](https://ilac.org/latest_ilac_news/iso-151892022-for-medical-labs-published/)+- [CMS CLIA program](https://www.cms.gov/medicare/quality/clinical-laboratory-improvement-amendments)+- [CLIA accreditation and exemptions](https://www.cms.gov/medicare/quality/clinical-laboratory-improvement-amendments/accreditation-exemptions)+- [CMS approved accreditation organizations](https://www.cms.gov/Regulations-and-Guidance/Legislation/CLIA/Downloads/AOList.pdf)+- [CAP 15189 program](https://www.cap.org/laboratory-improvement/accreditation/cap-15189-accreditation-program)+- `references/source-ledger.md` — dated baseline and provenance limitations+- `references/assurance-lanes.md` — how accreditation, certification, and regulatory+ inspection differdiff --git a/skills/iso-standards-readiness/references/iso-17025.md b/skills/iso-standards-readiness/references/iso-17025.mdnew file mode 100644index 00000000..db4789a9--- /dev/null+++ b/skills/iso-standards-readiness/references/iso-17025.md@@ -0,0 +1,208 @@+# ISO/IEC 17025 Process Framework (No Standard Text)++Research basis: **2026-07-26**. This reference summarizes a preparation process and+evidence architecture for testing and calibration laboratory competence work. It does+not reproduce requirements and is not a substitute for the standard.++## Copyright and authorized access++ISO and IEC publications are copyrighted. Obtain ISO/IEC 17025 from+[ISO](https://www.iso.org/standard/66912.html), IEC, an ISO national member, or another+authorized source; see [ISO copyright](https://www.iso.org/copyright.html). Do not ask+an agent to retrieve, transcribe, summarize clause-by-clause, or store proprietary+text. Accreditation-body checklists that quote the standard are equally copyrighted and+are usually licensed only to the accredited laboratory.++## Current edition++- [ISO/IEC 17025:2017](https://www.iso.org/standard/66912.html) is Edition 3. No+ successor edition was identified at the research basis date — confirm on the ISO+ catalogue page, which refused automated access during that research.+- The 2017 edition restructured the 2005 edition around laboratory activities and+ risk-based thinking. A quality system still organized around the 2005 clause+ structure is out of date; do not treat a 2005-era manual as a current gap baseline.+- Record publisher, title, edition, amendments/corrigenda, authorized location, access+ date, source owner, currency-review date, impact decision, and approval in the+ controlled source ledger.++## The vocabulary trap: laboratories are accredited, not certified++A laboratory is **accredited** to ISO/IEC 17025 by an accreditation body. It is not+"ISO 17025 certified," and no certification body issues an ISO/IEC 17025 certificate.+Writing "certified" in a report, tender response, or quality manual is a substantive+error that assessors and customers both notice.++- Accreditation bodies operate under ISO/IEC 17011 and are peer-evaluated through the+ recognition arrangement. Certification bodies operate under ISO/IEC 17021-1. These+ are different schemes with different scope statements.+- Since **2026-01-01**, Global Accreditation Cooperation Incorporated has replaced the+ former ILAC and IAF and operates its own Multilateral Recognition Arrangement.+ Results and certificates issued under the former ILAC MRA / IAF MLA remain+ recognized during the transition. Verify current logo, claim, and endorsement wording+ with the accreditation body before reproducing any of it.+- ISO/IEC 17025 accreditation is not ISO 9001 certification, not a product approval,+ not a regulatory authorization, and not a statement that any particular result is+ correct.++## Hard boundary++This skill and its files cannot:++- accredit a laboratory, issue or validate an accreditation certificate or schedule,+ or predict an assessment outcome;+- decide which accreditation scheme, jurisdiction requirement, or customer+ specification applies;+- replace the laboratory's technical management, quality manager, authorized signatory,+ accreditation body, assessor, or proficiency-testing provider;+- validate a method, compute or approve a measurement uncertainty budget, establish+ metrological traceability, or judge whether a decision rule is fit for purpose; or+- infer competence from a document title, keyword, template, checklist, or script+ result.++Use outputs as a list of evidence questions for accountable human review.++## Scope of accreditation is per activity, not per organization++The accredited scope is defined item by item: field or discipline, method or procedure+and its issue, the measurand or property determined, and the range with the reported+uncertainty basis. For calibration laboratories this is normally expressed through+calibration and measurement capability statements.++Consequences for evidence preparation:++- Work outside the accredited scope must not carry an accreditation claim or+ endorsement, even at an accredited site under an accredited quality system.+- A method change, a range extension, a new location, or a new authorized signatory is+ a scope question, not only an internal change-control question.+- Subcontracted work has its own rules for customer notification and for the+ subcontractor's own accreditation status. Record both.++Capture scope items with:++```bash+PYTHONDONTWRITEBYTECODE=1 python3 scripts/validate_scope_intake.py \+ /path/to/laboratory-scope-intake.json --standard iso-17025+```++Copy `assets/templates/laboratory-scope-intake-template.json` outside the skill first.+The distributed template fails closed by design.++## Process and evidence domains++The `iso-17025` profile carries these domain labels for manifests and gap reports.+They are workflow topics, not clause references:++`scope-and-impartiality`, `organizational-structure-and-management`,+`personnel-competence`, `facilities-and-environmental-conditions`,+`equipment-and-calibration`, `metrological-traceability`,+`externally-provided-products-and-services`, `review-of-requests-and-contracts`,+`method-selection-verification-and-validation`, `sampling`, `handling-of-items`,+`technical-records`, `measurement-uncertainty`,+`validity-of-results-and-proficiency-testing`, `reporting-and-decision-rules`,+`complaints`, `nonconforming-work`, `data-and-information-management`,+`internal-audit`, `management-review`, `corrective-action-and-improvement`.++Each domain needs an owner, status, evidence IDs, source/version reference, recorded+approval, and links to open gaps. Sample **records**, not only procedures: a procedure+describing uncertainty evaluation is not evidence that a budget exists for a reported+measurand.++## The four technical areas that carry most findings++### 1. Metrological traceability++Traceability is a documented, unbroken chain to a stated reference with stated+uncertainty at each step — not a drawer of calibration certificates. The governing+policy is **ILAC P10:07/2020** (implementation July 2021, revised for the 2017+edition); confirm its current designation, since the P/G series numbering may move+under GLOBAC.++Evidence to assemble per measurement: the stated reference, the calibration provider+and its accreditation status and scope, certificate identity and date, the uncertainty+contribution carried forward, interval justification, and intermediate-check records.++### 2. Measurement uncertainty++Record which measurands have evaluated uncertainty, the evaluation basis, the+contributions included, how uncertainty is reported, and how it interacts with the+decision rule. An uncertainty budget that exists only in a spreadsheet with no+controlled revision, owner, or approval is a gap, not evidence.++This skill does not compute uncertainty. For the repo's uncertainty tooling, see the+`uncertainty-and-units` skill; its outputs still require authorized technical review+before entering a controlled record.++### 3. Method selection, verification, and validation++Distinguish, per scope item: a standard method used as published, a standard method+requiring verification of the laboratory's ability to perform it, a modified standard+method, and a laboratory-developed method. The evidence expected differs in each case.+Record the performance characteristics evaluated, the acceptance criteria, the data,+and the authorized approval to put the method into service.++### 4. Decision rules and statements of conformity++If reports state conformity to a specification, the decision rule must be documented,+agreed with the customer where required, and applied consistently — including how+measurement uncertainty is treated at the specification limit. The guidance basis is+**ILAC G8:09/2019**, with JCGM 106:2012 / ISO/IEC Guide 98-4 as the metrological+companion. Confirm current issues before citing either in a controlled procedure.++Assemble, per scope item that reports conformity: the rule, the agreement record, the+uncertainty treatment, the report wording, and the authorized signatory.++## Validity of results and proficiency testing++Interlaboratory comparison and proficiency-testing participation is monitoring+evidence, and a passing result is not a competence conclusion. Record the plan (which+scope items, what frequency, what provider), each result, the evaluation against+acceptance criteria, and — most importantly — the investigation and corrective action+for any questionable or unsatisfactory outcome. An unsatisfactory result with no+documented investigation is a blocker; treat it as one.++Where the laboratory cannot participate because no scheme exists for a measurand,+record the alternative approach and its authorization rather than leaving a silence.++## Shared checks that apply here++- `scripts/audit_document_records.py` — controlled documents, technical records,+ retention basis, and external-source currency. Standard-agnostic.+- `scripts/check_capa.py` — nonconforming work and corrective action, including+ effectiveness evidence before closure.+- `scripts/check_supplier_controls.py` — externally provided products and services,+ including calibration providers, reference-material suppliers, and subcontracted+ laboratories.+- `scripts/validate_evidence_manifest.py` and `scripts/gap_analyzer.py` with+ `--standard iso-17025` — bounded evidence manifest and domain-level gap view.++`scripts/check_traceability.py` and `scripts/check_qmsr_transition.py` are+device-lifecycle checks and do not apply to laboratory accreditation work. Note that+`check_traceability.py` concerns design/risk traceability, **not** metrological+traceability — the words collide and the check is the wrong tool here.++## Common preparation failures++- Claiming "ISO 17025 certified" instead of accredited, or attaching an accreditation+ symbol to results outside the accredited scope.+- Treating calibration certificates as traceability evidence without the uncertainty+ chain, provider scope, or interval justification.+- Reporting conformity with no documented decision rule, or a rule that ignores+ uncertainty at the limit.+- Verifying a standard method once at introduction and never revisiting it after a+ method issue, instrument, or personnel change.+- Recording proficiency-testing scores while leaving unsatisfactory results+ uninvestigated.+- Presenting an impartiality statement with no identified risks, no controls, and no+ review.+- Filing a document register as the deliverable when no technical records were sampled.++## Sources++- [ISO/IEC 17025:2017](https://www.iso.org/standard/66912.html) — catalogue entry+- [ISO/IEC 17025 landing page](https://www.iso.org/ISO-IEC-17025-testing-and-calibration-laboratories.html)+- [ILAC policy series](https://ilac.org/publications-and-resources/ilac-policy-series/) — P10 traceability policy+- [GLOBAC launch](https://iaf.nu/en/news/global-accreditation-cooperation-incorporated-launch-unifies-international-accreditation-organisations-and-strengthens-worldwide-trust/)+- [Specifying use of GLOBAC accreditation](https://ilac.org/latest_ilac_news/iaf-and-ilac-release-information-on-specifying-use-of-globac-accreditation/)+- `references/source-ledger.md` — dated baseline and provenance limitations+- `references/assurance-lanes.md` — how this lane differs from certification and+ regulatory inspectiondiff --git a/skills/iso-13485-certification/references/quality-manual-guide.md b/skills/iso-standards-readiness/references/quality-manual-guide.mdsimilarity index 89%rename from skills/iso-13485-certification/references/quality-manual-guide.mdrename to skills/iso-standards-readiness/references/quality-manual-guide.mdindex 332262e3..b8ba5ee3 100644--- a/skills/iso-13485-certification/references/quality-manual-guide.md+++ b/skills/iso-standards-readiness/references/quality-manual-guide.md@@ -1,7 +1,14 @@# Quality Manual Development Guide-Research basis: **2026-07-23**. This guide explains an evidence-controlled authoring-process. It does not reproduce ISO 13485 text or prescribe a universal manual format.+Research basis: **2026-07-23**, extended **2026-07-26** for laboratory lanes. This guide+explains an evidence-controlled authoring process. It does not reproduce standard text+or prescribe a universal manual format.++The authoring process applies to any management-system documentation this skill covers.+Where it says "QMS scope," a laboratory's equivalent is the **scope of laboratory+activities** — per location and per method or examination — and a laboratory manual+should point to the accredited scope schedule rather than restate it. Read+`references/iso-17025.md` or `references/iso-15189.md` alongside this guide.## Boundary and copyright@@ -249,6 +256,14 @@ Record the certification body's scope and, if accredited certification is soughtaccreditation scope relevant to ISO 13485 technical areas. This does not establishnotified-body designation or product conformity.+For a laboratory, the manual describes a system that an accreditation body assesses —+the laboratory is accredited, not certified, and the manual must not say otherwise.+Record the accreditation body, the scope schedule reference, authorized signatories and+what each may sign, and the rules for using accreditation symbols and endorsement+wording. Verify current recognition-arrangement phrasing before reproducing it: Global+Accreditation Cooperation Incorporated replaced ILAC and IAF on 2026-01-01, so legacy+"ILAC MRA" or "IAF MLA" wording may be transitional rather than current.+## Review questions- Does the scope match actual sites, products, and activities?diff --git a/skills/iso-13485-certification/references/source-ledger.md b/skills/iso-standards-readiness/references/source-ledger.mdsimilarity index 58%rename from skills/iso-13485-certification/references/source-ledger.mdrename to skills/iso-standards-readiness/references/source-ledger.mdindex 9c355db9..abdee163 100644--- a/skills/iso-13485-certification/references/source-ledger.md+++ b/skills/iso-standards-readiness/references/source-ledger.md@@ -1,10 +1,23 @@# Official Source Ledger-**Research date:** 2026-07-23-**Method:** targeted `parallel-cli search` and `parallel-cli extract`, restricted to-official publishers and regulator/program sites.+**Baseline research date:** 2026-07-23 — device lanes (ISO 13485, ISO 14971, FDA+QMSR, MDSAP, EU MDR/IVDR), established with targeted `parallel-cli search` and+`parallel-cli extract` against official publishers and regulator/program sites.++**Extension research date:** 2026-07-26 — laboratory lanes (ISO/IEC 17025,+ISO 15189), ISO/TR 24971, and accreditation-scheme documents, established with web+search against official publishers, accreditation bodies, and CMS.+**Purpose:** version baseline for this skill; not legal advice, an applicability-decision, certification criteria, or a substitute for controlled source copies.+decision, certification or accreditation criteria, or a substitute for controlled+source copies.++**Provenance limitation on the 2026-07-26 additions.** `iso.org` returned HTTP 403+to automated fetching during that research, so the ISO catalogue metadata below was+taken from search-result summaries and from accreditation-body and ILAC pages rather+than read directly off the ISO catalogue page. Entries carrying that limitation are+marked **[confirm on iso.org]**. Confirm each against the linked official page, or an+authorized copy, before relying on an edition, date, or stage.Recheck every source before operational use. Web pages and consolidated texts canchange after the research date.@@ -49,6 +62,48 @@ change after the research date.international ISO 14971 normative part.- Limitation: risk-management evidence remains product- and jurisdiction-specific.+### ISO/TR 24971:2020++- Official page:+ [ISO/TR 24971:2020](https://www.iso.org/standard/74437.html)+- Verified metadata: Edition 2; guidance companion to ISO 14971:2019, with the same+ clause structure and numbering. **[confirm on iso.org]**+- Verified status: a Technical Report. Its guidance is informative, not normative, and+ conformity is claimed to ISO 14971, never to ISO/TR 24971.+- Limitation: a TR cannot be used to relax or reinterpret a normative requirement.+ Record which guidance the organization adopted and why.++### ISO/IEC 17025:2017++- Official page:+ [ISO/IEC 17025:2017](https://www.iso.org/standard/66912.html)+- Landing page:+ [ISO/IEC 17025 — Testing and calibration laboratories](https://www.iso.org/ISO-IEC-17025-testing-and-calibration-laboratories.html)+- Verified metadata: Edition 3; published 2017; no successor edition identified at the+ research date. **[confirm on iso.org]**+- Use: identifies the current edition for laboratory competence work.+- Limitation: ISO/IEC 17025 is an accreditation standard, not a certification scheme+ and not a product standard. Accreditation is granted by an accreditation body for a+ defined scope of laboratory activities; nothing in this skill grants or predicts it.++### ISO 15189:2022++- Official page:+ [ISO 15189:2022](https://www.iso.org/standard/76677.html)+- ILAC announcement:+ [ISO 15189:2022 for medical labs published](https://ilac.org/latest_ilac_news/iso-151892022-for-medical-labs-published/)+- Verified metadata: Edition 4; published December 2022; cancels and replaces+ ISO 15189:2012. **[confirm on iso.org]**+- Verified structural facts: the 2022 edition aligns structurally with+ ISO/IEC 17025:2017 and incorporates point-of-care testing requirements previously+ held in ISO 22870. Do not cite ISO 22870 as a separate current POCT basis without+ confirming its status.+- Verified transition: the ILAC-agreed transition period for accredited medical+ laboratories ran to **December 2025**. Treat the 2022 edition as implemented, not+ upcoming; a 2012-based quality system is out of date, not "in transition."+- Limitation: accreditation scope is per laboratory, per location, and per+ examination. It is not organization-wide and not equivalent to licensure.+### ISO copyright- Official page: [ISO copyright](https://www.iso.org/copyright.html)@@ -217,6 +272,63 @@ change after the research date.ISO 13485 under ISO/IEC 17021-1. It does not establish product conformity,notified-body designation, regulatory applicability, or market authorization.+### Accreditation: GLOBAC and the recognition arrangement++- Launch announcement:+ [Global Accreditation Cooperation Incorporated launch](https://iaf.nu/en/news/global-accreditation-cooperation-incorporated-launch-unifies-international-accreditation-organisations-and-strengthens-worldwide-trust/)+- Transition guidance:+ [Specifying use of GLOBAC accreditation](https://ilac.org/latest_ilac_news/iaf-and-ilac-release-information-on-specifying-use-of-globac-accreditation/)+- Verified transition: Global Accreditation Cooperation Incorporated commenced full+ operations on **2026-01-01**, bringing together the former ILAC and IAF and+ launching its own Multilateral Recognition Arrangement. Certificates and accredited+ results issued under the former IAF MLA / ILAC MRA continue to be recognized during+ the transition.+- Operational rule: check the *current* recognition-arrangement wording, logo rules,+ and document designations before reproducing any accreditation claim in a document.+ Legacy "ILAC MRA" / "IAF MLA" phrasing may be transitional rather than current.+- Boundary: recognition arrangements concern accreditation bodies. They do not make an+ accredited result a regulatory approval or a product conformity decision.++### Accreditation: traceability and decision-rule policy++- Policy series:+ [ILAC policy series (P documents)](https://ilac.org/publications-and-resources/ilac-policy-series/)+- Metrological traceability: **ILAC P10:07/2020**, implementation date July 2021,+ revised to reflect ISO/IEC 17025:2017.+- Decision rules and statements of conformity: **ILAC G8:09/2019**; JCGM 106:2012 /+ ISO/IEC Guide 98-4 is the companion metrological basis.+- Limitation and open item: no GLOBAC renumbering of the P/G series was identified at+ the research date, and the ILAC designations above were still in use. Confirm the+ current designation and issue before citing either document in a controlled+ procedure — this is the most likely item in this ledger to have moved.+- Boundary: a stated decision rule is a documented rule for declaring conformity+ against a specification. It is not a compliance determination, and this skill does+ not evaluate whether a chosen rule is fit for a customer's purpose.++### United States medical laboratories: CLIA is a separate lane++- CMS program page:+ [Clinical Laboratory Improvement Amendments (CLIA)](https://www.cms.gov/medicare/quality/clinical-laboratory-improvement-amendments)+- Accreditation and exemption page:+ [CLIA accreditation and testing](https://www.cms.gov/medicare/quality/clinical-laboratory-improvement-amendments/accreditation-exemptions)+- Approved accreditation organizations:+ [Specialty/subspecialty information for approved AOs](https://www.cms.gov/Regulations-and-Guidance/Legislation/CLIA/Downloads/AOList.pdf)+- Verified facts: CLIA certification by CMS is mandatory before a US laboratory may+ accept human specimens for testing. CMS approves a limited set of accreditation+ organizations whose standards must meet or exceed CLIA requirements; approval is+ reapplied for every six years or more often. Seven approved AOs were reported at the+ research date — read the current AO list rather than repeating that count.+- Verified boundary: **ISO 15189 accreditation does not satisfy CLIA and cannot+ replace a CLIA-based accreditation for a US laboratory.** Deemed status flows only+ from a CMS-approved accreditation organization's program, not from ISO 15189 itself.+- Program note: the CAP 15189 program is layered on top of CAP Laboratory+ Accreditation Program accreditation rather than offered as a standalone substitute.+ See [CAP 15189](https://www.cap.org/laboratory-improvement/accreditation/cap-15189-accreditation-program);+ confirm current program prerequisites with CAP.+- Operational rule: never present an ISO 15189 readiness output as CLIA compliance,+ deemed status, licensure, or an inspection result. Keep the CLIA decision with the+ authorized laboratory director and compliance owner.+## Research queries usedParallel searches/extracts covered:@@ -230,4 +342,16 @@ Parallel searches/extracts covered:- NANDO/notified-body designation boundaries; and- the 2026 Global ACI transition and current MD 8/MD 9 documents.-No Parallel research JSON was saved in the repository.+The 2026-07-26 extension searched:++- ISO/IEC 17025 revision status and whether a successor edition exists;+- ISO 15189 edition, POCT consolidation, and the ILAC transition deadline;+- ISO/TR 24971 edition and its status relative to ISO 14971;+- the GLOBAC launch date, its MRA, and transitional recognition wording;+- ILAC P10 and ILAC G8 current issues; and+- CMS CLIA certification, approved accreditation organizations, and whether+ ISO 15189 confers deemed status.++No Parallel research JSON was saved in the repository. Several 2026-07-26 results came+from secondary summaries of ISO catalogue pages because `iso.org` refused automated+access; those entries are marked **[confirm on iso.org]** above.diff --git a/skills/iso-standards-readiness/scripts/_catalog.py b/skills/iso-standards-readiness/scripts/_catalog.pynew file mode 100644index 00000000..aaa049d6--- /dev/null+++ b/skills/iso-standards-readiness/scripts/_catalog.py@@ -0,0 +1,248 @@+#!/usr/bin/env python3+"""Per-standard process labels and scope vocabulary used by the local checks.++The labels are workflow topics. They are not clause text from any standard, not a+clause map, and not a substitute for an authorized copy. Listing a standard here+does not decide that the standard applies to an organization, and the profiles+carry no assurance meaning: selecting an accreditation profile does not make a+result an accreditation outcome.+"""++from __future__ import annotations++from dataclasses import dataclass++# --- Scope vocabulary ------------------------------------------------------++DEVICE_LIFECYCLE_ACTIVITIES = (+ "design-and-development",+ "manufacturing",+ "contract-manufacturing",+ "sterilization",+ "packaging-and-labeling",+ "storage",+ "distribution",+ "installation",+ "servicing",+ "software-development",+ "complaint-handling",+ "postmarket-surveillance",+ "regulatory-reporting",+)++LABORATORY_ACTIVITIES = (+ "sampling",+ "testing",+ "calibration",+ "examination",+ "point-of-care-testing",+ "specimen-collection-and-transport",+ "method-development-and-validation",+ "interpretation-and-advice",+ "subcontracted-activity",+ "storage-and-retention",+ "data-and-reporting",+)++# --- Process/evidence domains ---------------------------------------------++# Retained under its original name: the device QMS domain set stays the default+# vocabulary for manifests written against earlier versions of this skill.+PROCESS_DOMAINS = (+ "scope-and-roles",+ "document-and-record-control",+ "risk-management",+ "design-and-development",+ "supplier-controls",+ "production-and-service",+ "process-and-software-validation",+ "identification-and-traceability",+ "complaints-and-feedback",+ "postmarket-and-vigilance",+ "nonconformity-and-capa",+ "internal-audit",+ "management-review",+ "training-and-competence",+ "change-control",+)++RISK_MANAGEMENT_DOMAINS = (+ "risk-management-plan",+ "risk-management-file",+ "competence-and-authority",+ "intended-use-and-characteristics",+ "hazard-identification",+ "risk-estimation-and-evaluation",+ "risk-control-option-analysis",+ "risk-control-implementation-and-verification",+ "risk-control-side-effects-review",+ "residual-risk-evaluation",+ "benefit-risk-analysis",+ "overall-residual-risk-evaluation",+ "risk-management-review-and-report",+ "production-and-postproduction-information",+ "change-control",+)++TESTING_LABORATORY_DOMAINS = (+ "scope-and-impartiality",+ "organizational-structure-and-management",+ "personnel-competence",+ "facilities-and-environmental-conditions",+ "equipment-and-calibration",+ "metrological-traceability",+ "externally-provided-products-and-services",+ "review-of-requests-and-contracts",+ "method-selection-verification-and-validation",+ "sampling",+ "handling-of-items",+ "technical-records",+ "measurement-uncertainty",+ "validity-of-results-and-proficiency-testing",+ "reporting-and-decision-rules",+ "complaints",+ "nonconforming-work",+ "data-and-information-management",+ "internal-audit",+ "management-review",+ "corrective-action-and-improvement",+)++MEDICAL_LABORATORY_DOMAINS = (+ "scope-and-impartiality",+ "organizational-structure-and-governance",+ "personnel-competence",+ "facilities-and-safety",+ "equipment-and-calibration",+ "metrological-traceability",+ "reagents-and-consumables",+ "externally-provided-products-and-services",+ "pre-examination-processes",+ "examination-methods-verification-and-validation",+ "measurement-uncertainty",+ "validity-of-results-and-external-quality-assessment",+ "point-of-care-testing",+ "post-examination-and-reporting",+ "laboratory-information-management",+ "complaints",+ "nonconformity-and-corrective-action",+ "risk-management-and-improvement",+ "internal-audit",+ "management-review",+ "continuity-and-emergency-preparedness",+)++# --- Scope-item field sets -------------------------------------------------++DEVICE_PRODUCT_FIELDS = (+ ("family", 300),+ ("intended_use", 2_000),+ ("classification_or_rationale", 1_000),+)++CALIBRATION_SCOPE_FIELDS = (+ ("discipline", 300),+ ("method_or_procedure", 500),+ ("measurand_or_property", 500),+ ("range_and_uncertainty", 500),+)++EXAMINATION_SCOPE_FIELDS = (+ ("discipline", 300),+ ("examination_or_measurand", 500),+ ("method_or_procedure", 500),+ ("primary_sample_type", 300),+)+++@dataclass(frozen=True)+class StandardProfile:+ """Declared vocabulary for one standard. Carries no conformity meaning."""++ key: str+ label: str+ assurance_lane: str+ activities_section: str+ scope_activities: tuple[str, ...]+ scope_item_section: str+ scope_item_fields: tuple[tuple[str, int], ...]+ process_domains: tuple[str, ...]+++STANDARDS: dict[str, StandardProfile] = {+ "iso-13485": StandardProfile(+ key="iso-13485",+ label="ISO 13485 medical device quality management system",+ assurance_lane="third-party certification",+ activities_section="lifecycle_activities",+ scope_activities=DEVICE_LIFECYCLE_ACTIVITIES,+ scope_item_section="products",+ scope_item_fields=DEVICE_PRODUCT_FIELDS,+ process_domains=PROCESS_DOMAINS,+ ),+ "iso-14971": StandardProfile(+ key="iso-14971",+ label="ISO 14971 application of risk management to medical devices",+ assurance_lane="no certification scheme; assessed inside other lanes",+ activities_section="lifecycle_activities",+ scope_activities=DEVICE_LIFECYCLE_ACTIVITIES,+ scope_item_section="products",+ scope_item_fields=DEVICE_PRODUCT_FIELDS,+ process_domains=RISK_MANAGEMENT_DOMAINS,+ ),+ "iso-17025": StandardProfile(+ key="iso-17025",+ label="ISO/IEC 17025 competence of testing and calibration laboratories",+ assurance_lane="accreditation by an accreditation body",+ activities_section="laboratory_activities",+ scope_activities=LABORATORY_ACTIVITIES,+ scope_item_section="scope_items",+ scope_item_fields=CALIBRATION_SCOPE_FIELDS,+ process_domains=TESTING_LABORATORY_DOMAINS,+ ),+ "iso-15189": StandardProfile(+ key="iso-15189",+ label="ISO 15189 quality and competence of medical laboratories",+ assurance_lane="accreditation by an accreditation body",+ activities_section="laboratory_activities",+ scope_activities=LABORATORY_ACTIVITIES,+ scope_item_section="scope_items",+ scope_item_fields=EXAMINATION_SCOPE_FIELDS,+ process_domains=MEDICAL_LABORATORY_DOMAINS,+ ),+}++STANDARD_KEYS = tuple(sorted(STANDARDS))+DEFAULT_STANDARD = "iso-13485"++# --- Lane-specific catalogs ------------------------------------------------++QMSR_TRANSITION_ITEMS = (+ "qmsr-source-basis",+ "applicability-owner",+ "fda-supplemental-provisions",+ "legacy-qsr-reference-disposition",+ "pre-effective-date-record-review",+ "inspection-accessible-records",+ "inspection-process-training",+ "qsit-retirement",+ "complaint-and-servicing-records",+ "labeling-and-packaging-controls",+ "software-validation-impact",+ "supplier-and-outsourced-process-controls",+ "certificate-claims-review",+ "change-control-approval",+)++TRACEABILITY_LINKS = (+ "intended_use",+ "hazard_or_signal",+ "risk_evaluation",+ "risk_control",+ "design_input",+ "design_output",+ "verification",+ "validation",+ "production_control",+ "postmarket_source",+)diff --git a/skills/iso-13485-certification/scripts/_common.py b/skills/iso-standards-readiness/scripts/_common.pysimilarity index 90%rename from skills/iso-13485-certification/scripts/_common.pyrename to skills/iso-standards-readiness/scripts/_common.pyindex e331189b..7b55fe3b 100644--- a/skills/iso-13485-certification/scripts/_common.py+++ b/skills/iso-standards-readiness/scripts/_common.py@@ -1,8 +1,9 @@#!/usr/bin/env python3-"""Shared, bounded helpers for local QMS evidence checks.+"""Shared, bounded helpers for local standards-readiness evidence checks.These helpers validate structure and evidence metadata only. They never determine-regulatory applicability, conformity, compliance, certification, or audit outcome.+regulatory applicability, conformity, compliance, certification, accreditation, or+audit outcome."""from __future__ import annotations@@ -16,6 +17,8 @@ from datetime import datefrom pathlib import Pathfrom typing import Any, Iterable+from _catalog import DEFAULT_STANDARD, STANDARD_KEYS, STANDARDS, StandardProfile+MAX_INPUT_BYTES = 2_000_000MAX_ITEMS = 5_000MAX_DEPTH = 30@@ -52,8 +55,9 @@ PLACEHOLDER_RE = re.compile(DISCLAIMER = ("Structural evidence check only. A zero-finding result does not establish "- "legal applicability, regulatory compliance, ISO conformity or certification, "- "MDSAP acceptability, EU conformity, or inspection readiness."+ "legal applicability, regulatory compliance, conformity to any standard, "+ "certification, accreditation, MDSAP acceptability, EU conformity, or "+ "inspection readiness.")@@ -413,12 +417,28 @@ class Review:self.source_refs(obj, path)-def standard_parser(description: str, input_help: str) -> argparse.ArgumentParser:+def standard_parser(+ description: str,+ input_help: str,+ *,+ with_standard: bool = False,+) -> argparse.ArgumentParser:parser = argparse.ArgumentParser(description=description,epilog=DISCLAIMER,)parser.add_argument("input", help=input_help)+ if with_standard:+ parser.add_argument(+ "--standard",+ choices=STANDARD_KEYS,+ default=DEFAULT_STANDARD,+ help=(+ "Declared standard profile supplying the process-domain and scope "+ "vocabulary. Selecting a profile does not decide that the standard "+ "applies. An unlisted value is refused."+ ),+ )parser.add_argument("--output",help="Write the JSON report locally instead of stdout",@@ -436,18 +456,29 @@ def standard_parser(description: str, input_help: str) -> argparse.ArgumentParsereturn parser+def profile_for(args: argparse.Namespace) -> StandardProfile:+ """Return the declared standard profile, defaulting to the device QMS set.++ argparse refuses an unlisted --standard value with exit code 2, so this never+ silently falls back to the default for an unknown standard.+ """++ return STANDARDS[getattr(args, "standard", DEFAULT_STANDARD)]++def build_report(tool: str,findings: Iterable[Finding],*,metrics: dict[str, Any] | None = None,- basis: str = "2026-07-23",+ basis: str = "2026-07-26",+ standard: str | None = None,) -> dict[str, Any]:ordered = sorted(findings,key=lambda item: (item.path, item.code, item.message, item.severity),)- return {+ report = {"basis_date": basis,"disclaimer": DISCLAIMER,"findings": [item.as_dict() for item in ordered],@@ -455,6 +486,9 @@ def build_report("result": "gaps-found" if ordered else "complete-for-human-review","tool": tool,}+ if standard is not None:+ report["standard"] = standard+ return reportdef emit_report(@@ -498,8 +532,14 @@ def finish(args: argparse.Namespace,*,metrics: dict[str, Any] | None = None,+ standard: str | None = None,) -> int:- report = build_report(tool, review.findings, metrics=metrics)+ report = build_report(+ tool,+ review.findings,+ metrics=metrics,+ standard=standard,+ )emit_report(report,args.output,diff --git a/skills/iso-13485-certification/scripts/audit_document_records.py b/skills/iso-standards-readiness/scripts/audit_document_records.pysimilarity index 100%rename from skills/iso-13485-certification/scripts/audit_document_records.pyrename to skills/iso-standards-readiness/scripts/audit_document_records.pydiff --git a/skills/iso-13485-certification/scripts/check_capa.py b/skills/iso-standards-readiness/scripts/check_capa.pysimilarity index 100%rename from skills/iso-13485-certification/scripts/check_capa.pyrename to skills/iso-standards-readiness/scripts/check_capa.pydiff --git a/skills/iso-13485-certification/scripts/check_qmsr_transition.py b/skills/iso-standards-readiness/scripts/check_qmsr_transition.pysimilarity index 100%rename from skills/iso-13485-certification/scripts/check_qmsr_transition.pyrename to skills/iso-standards-readiness/scripts/check_qmsr_transition.pydiff --git a/skills/iso-13485-certification/scripts/check_supplier_controls.py b/skills/iso-standards-readiness/scripts/check_supplier_controls.pysimilarity index 100%rename from skills/iso-13485-certification/scripts/check_supplier_controls.pyrename to skills/iso-standards-readiness/scripts/check_supplier_controls.pydiff --git a/skills/iso-13485-certification/scripts/check_traceability.py b/skills/iso-standards-readiness/scripts/check_traceability.pysimilarity index 100%rename from skills/iso-13485-certification/scripts/check_traceability.pyrename to skills/iso-standards-readiness/scripts/check_traceability.pydiff --git a/skills/iso-13485-certification/scripts/gap_analyzer.py b/skills/iso-standards-readiness/scripts/gap_analyzer.pysimilarity index 92%rename from skills/iso-13485-certification/scripts/gap_analyzer.pyrename to skills/iso-standards-readiness/scripts/gap_analyzer.pyindex 917c944d..7eea694e 100644--- a/skills/iso-13485-certification/scripts/gap_analyzer.py+++ b/skills/iso-standards-readiness/scripts/gap_analyzer.py@@ -11,13 +11,14 @@ import argparsefrom collections import Counterfrom typing import Any-from _catalog import PROCESS_DOMAINS+from _catalog import StandardProfilefrom _common import (InputError,build_report,emit_report,guarded_main,load_json,+ profile_for,require_root_object,standard_parser,)@@ -45,23 +46,25 @@ def analyze(*,base_dir: str | None,verify_files: bool,+ profile: StandardProfile,) -> tuple[dict[str, Any], int]:review, manifest_metrics = validate_manifest(data,base_dir=base_dir,verify_files=verify_files,+ profile=profile,)expected_raw = data.get("expected_domains")expected = {itemfor item in expected_raw- if isinstance(item, str) and item in PROCESS_DOMAINS+ if isinstance(item, str) and item in profile.process_domains} if isinstance(expected_raw, list) else set()entries_raw = data.get("entries")entries = entries_raw if isinstance(entries_raw, list) else []by_domain: dict[str, list[dict[str, Any]]] = {- domain: [] for domain in PROCESS_DOMAINS+ domain: [] for domain in profile.process_domains}for item in entries:if not isinstance(item, dict):@@ -72,7 +75,7 @@ def analyze(domain_results: list[dict[str, Any]] = []statuses: Counter[str] = Counter()- for domain in PROCESS_DOMAINS:+ for domain in profile.process_domains:domain_entries = by_domain[domain]if domain not in expected:status = "not-assessed"@@ -116,6 +119,7 @@ def analyze(**manifest_metrics,"domain_status_counts": dict(sorted(statuses.items())),},+ standard=profile.key,)report["domains"] = domain_resultsreport["method"] = (@@ -129,6 +133,7 @@ def main() -> int:parser = standard_parser("Create a fail-closed evidence gap report from a local readiness manifest.","Path to the local evidence-manifest JSON file",+ with_standard=True,)parser.add_argument("--base-dir",@@ -147,6 +152,7 @@ def main() -> int:data,base_dir=args.base_dir,verify_files=args.verify_files,+ profile=profile_for(args),)emit_report(report,diff --git a/skills/iso-13485-certification/scripts/validate_evidence_manifest.py b/skills/iso-standards-readiness/scripts/validate_evidence_manifest.pysimilarity index 94%rename from skills/iso-13485-certification/scripts/validate_evidence_manifest.pyrename to skills/iso-standards-readiness/scripts/validate_evidence_manifest.pyindex c3f3c2c0..bf9e05ea 100644--- a/skills/iso-13485-certification/scripts/validate_evidence_manifest.py+++ b/skills/iso-standards-readiness/scripts/validate_evidence_manifest.py@@ -8,7 +8,7 @@ import hashlibfrom pathlib import Pathfrom typing import Any-from _catalog import PROCESS_DOMAINS+from _catalog import StandardProfilefrom _common import (ALLOWED_STATUSES,MAX_INPUT_BYTES,@@ -17,6 +17,7 @@ from _common import (finish,guarded_main,load_json,+ profile_for,require_root_object,standard_parser,)@@ -24,7 +25,9 @@ from _common import (PURPOSES = {"internal-audit","iso-certification-readiness",+ "accreditation-assessment-readiness","fda-inspection-readiness",+ "national-regulatory-inspection-readiness","mdsap-audit-readiness","eu-conformity-assessment-readiness",}@@ -86,8 +89,10 @@ def validate(*,base_dir: str | None,verify_files: bool,+ profile: StandardProfile,) -> tuple[Review, dict[str, int]]:review = Review()+ domains = set(profile.process_domains)metadata = review.object(data.get("metadata"), "metadata")if metadata is not None:review.controlled_item(metadata, "metadata", require_approved=True)@@ -109,7 +114,7 @@ def validate(review,data.get("expected_domains"),"expected_domains",- set(PROCESS_DOMAINS),+ domains,)if verify_files and base_dir is None:@@ -128,7 +133,7 @@ def validate(domain = review.choice(entry,"domain",- set(PROCESS_DOMAINS),+ domains,path,)if domain:@@ -208,6 +213,7 @@ def main() -> int:parser = standard_parser("Validate a local audit/readiness evidence manifest.","Path to the local evidence-manifest JSON file",+ with_standard=True,)parser.add_argument("--base-dir",@@ -219,13 +225,21 @@ def main() -> int:help="Verify bounded local JSON/Markdown evidence paths and optional hashes",)args: argparse.Namespace = parser.parse_args()+ profile = profile_for(args)data = require_root_object(load_json(args.input))review, metrics = validate(data,base_dir=args.base_dir,verify_files=args.verify_files,+ profile=profile,+ )+ return finish(+ "validate_evidence_manifest",+ review,+ args,+ metrics=metrics,+ standard=profile.key,)- return finish("validate_evidence_manifest", review, args, metrics=metrics)if __name__ == "__main__":diff --git a/skills/iso-13485-certification/scripts/validate_scope_intake.py b/skills/iso-standards-readiness/scripts/validate_scope_intake.pysimilarity index 75%rename from skills/iso-13485-certification/scripts/validate_scope_intake.pyrename to skills/iso-standards-readiness/scripts/validate_scope_intake.pyindex 3aa53538..049666d8 100644--- a/skills/iso-13485-certification/scripts/validate_scope_intake.py+++ b/skills/iso-standards-readiness/scripts/validate_scope_intake.py@@ -1,38 +1,26 @@#!/usr/bin/env python3-"""Validate a declared QMS applicability and scope intake.+"""Validate a declared applicability and scope intake for one standard profile.The script checks whether accountable humans documented decisions and evidence. It-does not decide whether a law, regulation, standard, or conformity route applies.+does not decide whether a law, regulation, standard, conformity route, or+accreditation scheme applies."""from __future__ import annotationsfrom typing import Any+from _catalog import StandardProfilefrom _common import (Review,finish,guarded_main,load_json,+ profile_for,require_root_object,standard_parser,)-ACTIVITIES = {- "design-and-development",- "manufacturing",- "contract-manufacturing",- "sterilization",- "packaging-and-labeling",- "storage",- "distribution",- "installation",- "servicing",- "software-development",- "complaint-handling",- "postmarket-surveillance",- "regulatory-reporting",-}APPLICABILITY = {"applicable", "not-applicable", "undetermined"}@@ -66,8 +54,12 @@ def _text_list(return result-def validate(data: dict[str, Any]) -> tuple[Review, dict[str, int]]:+def validate(+ data: dict[str, Any],+ profile: StandardProfile,+) -> tuple[Review, dict[str, int]]:review = Review()+ activities = set(profile.scope_activities)metadata = review.object(data.get("metadata"), "metadata")if metadata is not None:@@ -100,14 +92,14 @@ def validate(data: dict[str, Any]) -> tuple[Review, dict[str, int]]:scope = review.object(data.get("scope"), "scope")sites: list[Any] = []- products: list[Any] = []+ scope_items: list[Any] = []markets: list[Any] = []if scope is not None:_text_list(review,- scope.get("lifecycle_activities"),- "scope.lifecycle_activities",- allowed=ACTIVITIES,+ scope.get(profile.activities_section),+ f"scope.{profile.activities_section}",+ allowed=activities,)sites = review.list(scope.get("sites"), "scope.sites", min_items=1) or []@@ -123,31 +115,26 @@ def validate(data: dict[str, Any]) -> tuple[Review, dict[str, int]]:review,site.get("activities"),f"{path}.activities",- allowed=ACTIVITIES,+ allowed=activities,)review.controlled_item(site, path, require_approved=True)review.unique_ids(sites, "scope.sites")- products = (- review.list(scope.get("products"), "scope.products", min_items=1) or []+ section = profile.scope_item_section+ scope_items = (+ review.list(scope.get(section), f"scope.{section}", min_items=1) or [])- for index, item in enumerate(products):- path = f"scope.products[{index}]"- product = review.object(item, path)- if product is None:+ for index, item in enumerate(scope_items):+ path = f"scope.{section}[{index}]"+ scope_item = review.object(item, path)+ if scope_item is None:continue- review.text(product, "id", path, max_chars=120)- review.text(product, "family", path, max_chars=300)- review.text(product, "intended_use", path, max_chars=2_000)- review.text(- product,- "classification_or_rationale",- path,- max_chars=1_000,- )- _text_list(review, product.get("market_ids"), f"{path}.market_ids")- review.controlled_item(product, path, require_approved=True)- review.unique_ids(products, "scope.products")+ review.text(scope_item, "id", path, max_chars=120)+ for field, max_chars in profile.scope_item_fields:+ review.text(scope_item, field, path, max_chars=max_chars)+ _text_list(review, scope_item.get("market_ids"), f"{path}.market_ids")+ review.controlled_item(scope_item, path, require_approved=True)+ review.unique_ids(scope_items, f"scope.{section}")markets = review.list(scope.get("markets"), "scope.markets", min_items=1) or []for index, item in enumerate(markets):@@ -194,20 +181,28 @@ def validate(data: dict[str, Any]) -> tuple[Review, dict[str, int]]:return review, {"markets": len(markets),- "products": len(products),+ profile.scope_item_section: len(scope_items),"sites": len(sites),}def main() -> int:parser = standard_parser(- "Validate a local QMS scope/applicability intake without deciding applicability.",+ "Validate a local scope/applicability intake without deciding applicability.","Path to the local scope-intake JSON file",+ with_standard=True,)args = parser.parse_args()+ profile = profile_for(args)data = require_root_object(load_json(args.input))- review, metrics = validate(data)- return finish("validate_scope_intake", review, args, metrics=metrics)+ review, metrics = validate(data, profile)+ return finish(+ "validate_scope_intake",+ review,+ args,+ metrics=metrics,+ standard=profile.key,+ )if __name__ == "__main__":diff --git a/tests/iso-13485-certification/test_scripts.py b/tests/iso-standards-readiness/test_scripts.pysimilarity index 86%rename from tests/iso-13485-certification/test_scripts.pyrename to tests/iso-standards-readiness/test_scripts.pyindex 28f896e1..fa7718e7 100644--- a/tests/iso-13485-certification/test_scripts.py+++ b/tests/iso-standards-readiness/test_scripts.py@@ -11,7 +11,7 @@ from pathlib import Pathfrom typing import Any-ROOT = Path(__file__).resolve().parents[2] / "skills" / "iso-13485-certification"+ROOT = Path(__file__).resolve().parents[2] / "skills" / "iso-standards-readiness"SCRIPTS = ROOT / "scripts"CLI_NAMES = ("gap_analyzer.py",@@ -334,10 +334,14 @@ def qmsr_data() -> dict[str, Any]:}-def manifest_data(local_path: str = "evidence.md", digest: str | None = None) -> dict[str, Any]:+def manifest_data(+ local_path: str = "evidence.md",+ digest: str | None = None,+ domain: str = "document-and-record-control",+) -> dict[str, Any]:entry = {"id": "MAN-ENTRY-1",- "domain": "document-and-record-control",+ "domain": domain,"title": "Controlled document evidence","owner": "Evidence Owner","status": "verified",@@ -362,7 +366,7 @@ def manifest_data(local_path: str = "evidence.md", digest: str | None = None) ->"approval": approval(),"source_refs": [source()],},- "expected_domains": ["document-and-record-control"],+ "expected_domains": [domain],"entries": [entry],"open_gaps": [],}@@ -606,6 +610,70 @@ class CLITests(unittest.TestCase):report = json.loads(result.stdout)self.assertEqual(report["result"], "gaps-found")+ def test_standard_specific_templates_fail_closed(self) -> None:+ cases = {+ "scope-intake-template.json": "iso-13485",+ "laboratory-scope-intake-template.json": "iso-17025",+ "medical-laboratory-scope-intake-template.json": "iso-15189",+ }+ for template, standard in cases.items():+ with self.subTest(template=template):+ result = self.run_cli(+ "validate_scope_intake.py",+ str(ROOT / "assets" / "templates" / template),+ "--standard",+ standard,+ )+ self.assertEqual(result.returncode, 1, result.stderr + result.stdout)+ report = json.loads(result.stdout)+ self.assertEqual(report["result"], "gaps-found")+ self.assertEqual(report["standard"], standard)++ def test_unknown_standard_is_refused(self) -> None:+ for script in (+ "validate_scope_intake.py",+ "validate_evidence_manifest.py",+ "gap_analyzer.py",+ ):+ with self.subTest(script=script):+ with tempfile.TemporaryDirectory() as temp:+ path = self.write_json(Path(temp), "input.json", manifest_data())+ result = self.run_cli(script, str(path), "--standard", "iso-99999")+ self.assertEqual(result.returncode, 2, result.stdout)+ self.assertIn("invalid choice", result.stderr)++ def test_laboratory_profile_uses_its_own_domains(self) -> None:+ data = manifest_data(domain="metrological-traceability")+ data["audit_context"]["purpose"] = "accreditation-assessment-readiness"+ with tempfile.TemporaryDirectory() as temp:+ path = self.write_json(Path(temp), "manifest.json", data)+ result = self.run_cli("gap_analyzer.py", str(path), "--standard", "iso-17025")+ self.assertEqual(result.returncode, 0, result.stderr + result.stdout)+ report = json.loads(result.stdout)+ self.assertEqual(report["standard"], "iso-17025")+ domains = {row["domain"]: row["status"] for row in report["domains"]}+ self.assertEqual(+ domains["metrological-traceability"],+ "evidence-present-for-human-review",+ )+ self.assertIn("reporting-and-decision-rules", domains)+ self.assertNotIn("postmarket-and-vigilance", domains)++ def test_device_domain_is_refused_under_laboratory_profile(self) -> None:+ with tempfile.TemporaryDirectory() as temp:+ path = self.write_json(Path(temp), "manifest.json", manifest_data())+ result = self.run_cli(+ "validate_evidence_manifest.py",+ str(path),+ "--standard",+ "iso-15189",+ )+ self.assertEqual(result.returncode, 1)+ report = json.loads(result.stdout)+ codes = {item["code"] for item in report["findings"]}+ self.assertIn("CHOICE_INVALID", codes)+ self.assertIn("VALUE_UNKNOWN", codes)+def test_no_bytecode_artifacts_created(self) -> None:for path in ROOT.rglob("__pycache__"):self.fail(f"unexpected bytecode directory: {path}")diff --git a/tests/skill-requirements.toml b/tests/skill-requirements.tomlindex d6df5717..45e22065 100644--- a/tests/skill-requirements.toml+++ b/tests/skill-requirements.toml@@ -170,7 +170,7 @@ packages = [][skills.experimental-design]packages = ["numpy", "pandas", "pyDOE3"]-[skills.iso-13485-certification]+[skills.iso-standards-readiness]packages = [][skills.clinical-decision-support]