Metadata-Version: 2.4
Name: uc30
Version: 0.1.0
Summary: Record-level evidence profile for a medical-device lifecycle (check, chain, export, MCP).
Author: Xinghua Zhao
License: MIT
Keywords: medical-device,evidence,in-toto,mcp,lifecycle
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Topic :: Scientific/Engineering :: Medical Science Apps.
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: LICENSE-CODE
Dynamic: license-file

# FG-TIDA Paris 2026 — eleven contributions, mapped to each group's work

> **Independent re-run wanted — 5 minutes, no account.** Run `python uc30/check_uc30.py --self-test` (expected `self-test 52/52 as expected`) and paste the output in [issue #26](https://github.com/zhaoxinghua09-cell/fg-tida-paris-2026/issues/26). A terminal transcript is enough; no endorsement is asked.

- The methods behind the results, with their boundaries: [uc30/METHODOLOGY.md](uc30/METHODOLOGY.md).
- MCP server (read-only, stdio): [uc30/MCP.md](uc30/MCP.md) — `pip install uc30==0.1.0`, then `uc30-mcp`.

One page: what we submitted, which group it belongs to, what that group can take from it, and the command that proves it.
Every number here was produced by us on 2026-11-28; nothing here is a group decision.

- **[Overview (5 pages)](pages/overview.pdf)** — the eleven items, four runnable, one document, six described from text with a hash per file.
- **[Mapping page (1 page)](pages/mapping.pdf)** — group by group: the item, the words it can be taken in, and how to check it.
- **[Nine gates](pages/nine-gates.pdf)** — our own pre-publication check, including what is **not** met (G1, G9, G10, G11 at 0/4; G5 has 2 receipts).
- **[Competitor matrix, first version](pages/matrix.pdf)** — eight dimensions × seven parties, kept for the record; it has since been narrowed to the four parties we could check line by line in `pages/peers-matrix.pdf`, and the landscape note below explains why the field is larger than either page suggests.

**Per-group take-away sheets** (one page each, the group's own items with the one thing to take and the command that proves it): `pages/wg-sheet-wg0.{html,pdf}`, `pages/wg-sheet-wg1.{html,pdf}`, `pages/wg-sheet-wg2.{html,pdf}`. Each group also has **one flow page** in the same visual language — `pages/wg0-flow.{html,pdf}` (whose act: entering versus analysing), `pages/wg1-flow.{html,pdf}` (three records, and the sixteen silent-failure modes split 8 + 8), `pages/wg2-flow.{html,pdf}` (evidence, authority, judgement).

**Two pages to look at first, if you only look at two:** `pages/pack-map.{html,pdf}` — eleven items in, eleven reader pages out, one command, on one screen; and `pages/evidence-ladder.{html,pdf}` — four kinds of evidence on one shared 0–4 scale, with the two empty rungs named as things no command of ours can fill. Both use position and length for numbers, label each mark directly instead of a legend, and carry a three-box note saying what the page is not. The site root `index.html` puts those two first and then orders everything else by group.

## Where each item lands

| Group | Item | What the group can take | Check |
|---|---|---|---|
| WG0 | WG0-002 | D1 glossary: 28 paste-ready terms, 19 second tranche, 17 excluded; a source per entry | text hash `98ab6553` / `01bedbdb` |
| WG0 | WG0-001 | Three use cases in the FG template, five requirements each for ToR §4.1 analysis | text hash `1ec26558` |
| WG0 | WG0-004 | A metric must show where it discriminates: 3 of 6 dimensions returned the same value for all 12 skills | `c45-skill-metrics` @ `bea1738f`, `python demo/score_demo.py` |
| WG0 | WG0-056 / UC30 | Record schema: pass / fail / not evaluated, one not evaluated blocks a pass | 7 pages, DOI 10.5281/zenodo.24548619 |
| WG1 | WG1-004 | Five lifecycle stages, each with the silent failure left when the exit condition is not met | `a22-trust-lifecycle` @ `9a822384`, `python lifecycle_demo.py` → 10/10 |
| WG1 | WG1-006 | What a static audit can and cannot establish, on twelve skills, five findings | `a18-skill-supply-chain` @ `4279a57b`, `python demo/audit_demo.py` |
| WG1 | WG1-005 | Sixteen ways a check passes while nothing is checked | text hash `6cc628f5` |
| WG1 | WG1-001 | Registry, Evidence, Gates, with a minimal completeness check each | text hash `3020e0c3` |
| WG2 | WG2-006 (= WG2-004) | Two axes kept apart; 11 tests, 22 named codes, six steps in the draft's order, 14 corpus cases, 8 wire vectors | `d4-evidence-authorization` @ `03dd47e`, `python d4conformance/conformance.py` |
| WG2 | WG2-001 | A gate's three-field binding record: who acted, on whose authority, what changed | text hash `bb5d7d0b` |
| INCUBATION | INCUBATION-004 | Five questions a discovery record must answer, three absence outcomes, freshness as a pair | text hash `7545e710` |

## Run it yourself

```bash
python demos/run_paris_pack.py --clone ./_work     # clones the four repos at the pinned commits, then runs
python demos/run_paris_pack.py --from ./_work      # if you already cloned them
```

One of those suites needs no clone at all: the runner also executes `uc30/check_uc30.py --self-test` against the fifty fixtures in this repository, so a reader who only has this folder still gets one suite that runs.

It prints one line per suite with `expected` and `got`, writes `run_report.json`, and exits 0 only if every line matches. `SKIP` means a repository was not found — it is not a pass.

Tested here on 2026-11-28 with the d4 repository at its pinned commit: **7/7 pass**, the other three suites reported `SKIP` because this machine could not reach `github.com` to clone them. So the runner's logic is exercised, not its clone path.

Anonymous read of this repository was verified on 2026-11-28 without any credential (`api.github.com` metadata, `README.md`, `pages/mapping.pdf` — 4,194 B and 87,969 B). Anonymous `git clone` was **not** verified from our network.

## What is not in this repository, and why

- **The six extracted texts are not republished here.** Their sha256 prefixes are given above; the texts themselves stay with the group's own submission record. A description is not a republication of someone else's document.
- **No run here is independent verification by the author.** G9 remains 0/4; **G5 has two independent receipts** (2026-11-29, Linux/Ubuntu; see below) but not 4/4.
- **WG0 is written-only at Paris.** The co-chair has confirmed the presentation is in person only, so no speaking slot is assumed in these pages.
- **Submitted is not adopted.** Nothing here is a group decision, and the d4 selection is unconfirmed.

## Receipts

- `records/aitb_receipt_*.json` — the newest file in that folder is the sealing that covers the files in this repository as they stand now (strict 7/7); its `manifest_root` is the value to check against `SITE_MANIFEST.json`
- Earlier receipts are kept rather than deleted, because each one covered an earlier state of these files; only the newest covers the current bytes.
- `records/gate_reading.json` — the twelve-gate reading behind the nine-gate page
- `records/runs.md` — the ten suites, their repositories and expected outputs

Receipts are excluded from the manifest they seal: a receipt cannot cover itself. That is why the count of covered files is smaller than the number of files you see.

## Landscape, re-read on 2026-11-29

The format side of this field is now crowded, and saying so is part of the pack. A single read of the IETF archive on 2026-11-29 found at least these neighbouring drafts, each with its own slot: `draft-noa-scitt-ai-agent-receipt-01` (per-action receipt, published 14 Aug 2026, and now splitting pre-execution authorisation, downstream report and physical effect into separately failable claims), `draft-mih-scitt-agent-action-capsule`, `draft-sahu-agent-action-receipts`, `draft-schrock-ep-authorization-receipts-13`, `draft-sabey-succession-receipts-05` (authority succession), `draft-emirdag-scitt-ai-agent-execution`, `draft-bailey-scitt-agent-session-receipt`, `draft-wilder-scitt-physical-site-engage-receipt` (physical site, TEE-anchored), `draft-yetis-scitt-figure-receipts` (published 24 Nov 2026), and `draft-nelson-agent-delegation-receipts-10`.

What that changes for us: this pack is **not a wire format and does not compete for that slot**. Its lane is the ITU side — use cases, requirements phrased for ToR §4.1, coordination terms, and re-runnable evidence behind each claim. The peer matrix page still compares four parties on eight dimensions because that is what we could check directly; it is now understating the field, not overstating us. Anyone reading the matrix should read this paragraph with it.

**Peer matrix and our own gap table** (2026-11-28 late): pages/peers-matrix.{html,pdf} compares the pack against RFC 9943, draft-noa-scitt-ai-agent-receipt-01, draft-gruszka-signed-evaluation-receipts-04 and W3C VC 2.0 with its public test suite, with a direct link per claim; pages/our-gaps.{html,pdf} lists twelve things this pack cannot yet show (O1-O12) and why the wording is not softened. Neither page claims superiority; where a peer is ahead, the page says so.

**Handing it to someone else:** `pages/outsider-kit.{html,pdf}` is the one page to give a person with no relation to us — three steps, the three files a receipt must contain, and how a PASS, a FAIL or a SKIP will be recorded. A blank receipt is at `demos/RECEIPT_TEMPLATE.txt`. If you run it, your result is the one number we cannot produce ourselves.

**One sheet for the room:** `pages/handout.{html,pdf}` — A4 landscape, two sides. Front: three columns, one per group, each with what was filed, what that group can take today, the check command and its boundary line. Back: the pack map, the evidence ladder, and how a reader's result would be recorded. Print double-sided; it is the only page here meant to be held in a hand.

## Use case 30 — the part we maintain ourselves

UC30 is ours: filed 2026-10-15, four comments, zero replies from anyone else. This folder is what we do about
that, and it is **runnable from here** — no clone, no credential, no network:

```bash
cd uc30
python check_uc30.py --self-test     # 52 synthetic records, 19 field checks, 18 reason codes
python uc30/check_links.py --write   # 40 external URLs: 404/410 fail, 403/network warn
python check_uc30.py --metric        # the case's own counting rule: decided vs cannot-determine, plus a histogram
```

- `uc30/UC30_field_matrix.pdf` — 52 records × 19 checks on one page; **the column that broke**, not an argument about the verdict.
- `uc30/UC30_seven_gates.pdf` — which of seven gates we can answer, which are partial, which is empty and why.
- `uc30/REQUIREMENTS_MAP.md` — R1–R5: what would evidence each, what we hold, what is missing.
- `uc30/R4_SLOTS_DRAFT.md` — a **draft** map onto EU MDR Annex II §3/§4/§6 and 21 CFR 807.87/807.92, ending at three questions for a regulatory reader. It counts as no evidence until someone answers them.
- `uc30/CHAIN.md` — full-lifecycle chain: 12 records linked by digest, one chain root, one command.
- `uc30/ADVANTAGES.md` — master inventory A1–A31: own theory, record, offline, whole chain.
- [One page: all advantages](pages/advantages.png) — theory / record / offline / whole chain in four boxes.
- `uc30/THEORY-ADVANTAGE.md` — LGD three laws × medical practice: every advantage A1–A12 with its test.
- [One page: twelve advantages](pages/theory-advantage.png) — the A1–A12 sheet, generated from the same files.
- `uc30/RUN_RECORD.md` — the blank form a person outside fills in. Their result is the one number we cannot produce.

Observed today: `self-test 52/52 as expected`; `artefacts 50 | decided 52 | cannot determine 0`. What that does
**not** show: that any manufacturer's artefacts pass, or that anyone outside has run it. The matrix page says so
in its own three boxes, and the gate page still prints `none` for the reviewer gate.

## Use case 53 — the second one we maintain ourselves

#53 was filed in the register by us and, on 2026-11-29, carried no comments, no group label and a
title still showing the template's angle brackets. `uc53/` is the material that would make it
reviewable; **none of it has been posted to the issue**.

The subject is different from #30 — not one batch of three acts, but a sequence of stages and a
stop: `candidate → verified → released → monitored`, plus `withdrawn` as a terminal stop that
nothing may follow. Every stage must carry its own gate record, a version that advances, evidence
whose digest is in the committed batch, an enrolled actor, and a grant that is live at the moment
of entry. 19 checks; 18 reason codes; 52 synthetic records, one defect each, expected verdicts
fixed before the first run — two of those records were built by a red team against our own checker,
which is how two holes were found.

```bash
cd uc53
python build_fixtures_uc53.py
python redteam_uc53.py              # two probes aimed at our own checker
python check_uc53.py --self-test    # 11/11 as expected
python check_uc53.py --metric       # artefacts 11 | decided 9 | cannot determine 2
```

`uc53/UC53_lifecycle.pdf` is the one page: the five stages across the top with the gate each must
carry, the eleven records below with the column that broke, and a box naming the two defects the red
team found. `uc53/UC53_vs_neighbours.pdf` compares the case with #71, #62, #46 and #77 and says where
each of them is ahead; one requirement from #71 became a check here, two are left as named gaps. `uc53/RUN_RECORD.md` records the run —
including the first build's crash, which is kept rather than tidied away.

## The register, read whole

`register/REGISTER_SCAN.pdf` is a read-only snapshot of all fifty issues in `FG-TIDA/use-cases`,
pulled through the public API on 2026-11-29: 52 cases (6 closed), **16 with no comments at all**
(15 of them still open), **2 placed with a working group** (#21, #35), **3 titles still truncated
template text** (#51, #60, #72), and 6 filed by us (#14 #25 #31 closed; #30 #32 #53 open). The page
names five places where our existing material would attach to somebody else's open question — #71,
#42, #56, #77, #53 — and stops there: attaching is a comment someone has to post, not a claim we
can make for them.
`uc53/UC53_format_lane.pdf` reads the ten neighbouring IETF formats on 2026-11-29 — nine
drafts and RFC 9943 — and records, per row, what each commits that we do not and what each
leaves to a case like ours.

## License and open access

Content is **CC BY 4.0** (`LICENSE`); code is **MIT** (`LICENSE-CODE`). Verification needs no account, no token and no network: `python uc30/check_uc30.py --self-test` runs on the standard library alone. UIBC's `spec`, `vectors` and `uibc-bench` repositories are public and **Apache-2.0**. Details: `uc30/OPEN-ACCESS.md` · adapters: `uc30/INTEROP.md` · `python uc30/export_record.py --self-test` (50/52 records -> in-toto/DSSE/CSV/VC).

## External review (review-level, not execution)

- **Qwen** (`builtin-llm-qwen35-4b`, via WeKnora), 2026-11-29 — different vendor, retrieval-based, no clone and no run. Verdicts: claims 1/2/3/5 PASS; claim 4 (`claims 240/240`) **UNVERIFIED** because the model did not see the `claims_map.py` output. This is a review, not a conversion of any claim into external evidence; it does not change any evidence level.
- **G5: two independent receipts (2026-11-29).** (1) A. P. (no connection to our accounts), Linux: minimal `52/52`; full pack `10 PASS / 1 FAIL` because optional `cbor2` was missing, `11/11` with `cbor2`/`cryptography`/`jcs`. That is finding **F-01**: a missing module is now **SKIP**, not FAIL (`requirements-d4.txt`). Receipt: [W3C 0096](https://lists.w3.org/Archives/Public/public-agentprotocol/2026Nov/0096.html). (2) Lars Kersten Kroehl (no connection), Ubuntu 24.04, Python 3.13.18: minimal `52/52`; did not run the networked pack because of an egress allowlist — the right call. Receipt: `runs/self/20261129-lars.md`.

