# Pre-publication security, privacy and licence inventory: live Hugging Face artifacts

**Status: BLOCKED until the owner approves in writing.** This is an inventory and a review aid.
It is not an approval, and it changes no flag in `huggingface/manifest.json`.
Drafted 2026-12-03. Scope: issue #726 (HF-010).

Scope: the four live destinations in `huggingface/manifest.json` (organization card, showcase,
benchmark dataset, demo Space), the Collection, and the personal `mskazemi` profile text (#726
names it; section 1.7). The synthetic static HCI Space (#693) is not live and is covered by its
own gate in section 2.1.

Evidence: a static reading of repository files, the offline preflight, and offline searches,
all done on 2026-12-03. No Hub page was fetched and no Space was run. Anything about the Hub's
own behaviour is **NOT VERIFIED**.

## 0. Sign-off (open)

| Item | State |
|---|---|
| Owner approval, organization card | OPEN (what happens to the existing `yazses` card and Collection, `HF_LAUNCH_STATUS_MATRIX.md` section 1) |
| Owner approval, showcase | OPEN |
| Owner approval, benchmark dataset | OPEN |
| Owner approval, hosted demo Space (hosted-audio policy, section 2.2) | OPEN |
| Owner approval, Collection | OPEN (which Collection is canonical) |
| Owner approval, personal `mskazemi` profile text (section 1.7) | OPEN (draft only; not a manifest destination) |
| Reviewer name and date | OPEN. Not filled in by this document |
| Overall release | **BLOCKED** until the owner approves each artifact in writing |

**Manifest approvals:** the owner set `owner_approved: true` in `huggingface/manifest.json` for the
organization card, showcase, benchmark dataset, demo Space and the Collection (commit `3d3042e8`).
That approval predates #726 and does not record the #726 privacy and licence sign-off, which stays
open above. This document does not change the flags. See section 6 for what `--require-approved`
checks.

## 1. Per-artifact review

### 1.1 Organization card, Space `yazses/README` (manifest `org-card`)

- **Files (preflight plan, 2026-12-03):** `README.md`, 6116 bytes, from `huggingface/organization/`.
- **Data handled:** none. Static text.
- **Network and egress:** the page has no script. Its links are for a visitor to follow. The
  preflight checks that external links use HTTPS and do not point at a local or private address.
- **Retention:** none on the YazSes side. Hugging Face's own practice: NOT VERIFIED.
- **Secrets:** none found by the preflight secret scan (values are never printed by that scan).
- **Licence:** `apache-2.0` in the front matter, matching the README's licence statement.
- **Attribution:** the card names SYSTRAN for the faster-whisper models and links the source.
- **Ownership:** #715 decided on the personal account `mskazemi`, and says not to create a YazSes
  organization as a prerequisite or silently. This card already exists under `yazses`; what happens
  to it is open.
- **Owner:** OPEN.

### 1.2 Showcase Space `mskazemi/yazses-showcase` (manifest `showcase`)

- **Files (preflight plan):** `README.md` (775 B), `index.html` (12206 B), `styles.css` (7430 B),
  `assets/logo.svg` (1095 B), `assets/settings-window.png` (109023 B).
- **Data handled:** none. The page processes no audio and has no form.
- **Network and egress:** no resource is loaded from another server when the page opens. The page
  has no script, iframe or image or stylesheet from elsewhere: its stylesheet, icon, logo and
  screenshot are files in the Space (`<link>` and `<img>` tags in `index.html`). The preflight's
  remote-load scan passed. `HF_PRIVACY_PREPUBLISH.md` records the showcase's static check in the
  "A3 (showcase)" line of its 2026-11-06 re-check table.
  The page has outbound links that transmit nothing until a visitor follows them.
- **Images:** `settings-window.png` is a screenshot of the desktop app's Features window. Looked at
  on 2026-12-03: it shows the app's interface, with no personal data or file paths visible. Its
  file metadata (for example text chunks) was NOT CHECKED.
- **Logo:** `assets/logo.svg` is byte-identical to `contrib/icons/yazses.svg` (compared 2026-12-03).
- **Retention:** none on the YazSes side. Hub behaviour: NOT VERIFIED.
- **Secrets:** none found by the preflight.
- **Licence:** `apache-2.0` in the front matter.
- **Attribution:** links the source and the demo. The screenshot is of YazSes.
- **Owner:** OPEN.

### 1.3 Benchmark dataset `mskazemi/yazses-benchmark-results` (manifest `benchmarks`)

- **Files (preflight plan, 17 files):** `README.md` (18460 B); 14 CSV files in `data/`;
  `data/export-metadata.json` (79300 B); `data/SHA256SUMS` (1321 B).
- **Data handled, per the card:** measured results (error rates, real-time factors, latency,
  memory, diarisation error, command accuracy). The card says it holds no audio, no transcripts and
  no corpus text. Each row also carries a `machine` description (CPU model, logical CPUs, RAM, OS),
  a source file name and its SHA-256.
- **Items for the owner to review:**
  1. `data/export-metadata.json` has an `excluded` list of archive paths with the reason each was
     left out. The paths show the layout of the private archive. Read in part only (the first
     entries); NOT REVIEWED line by line. Owner decision whether that is acceptable to publish.
  2. The `machine` fields describe the hosts the measurements ran on, with CPU model, logical CPUs,
     RAM and OS. The card's section 6 names three: an Intel Core i7-1370P laptop and two virtual
     machines (Intel Xeon Platinum 8573C and AMD EPYC). A search on 2026-12-03 found no hostname
     field in the data. Owner decision whether these descriptions are acceptable to publish.
  3. The `argv` column replaces home directories with `$HOME` (per the card). The preflight's
     home-path scan passed.
- **Network and egress:** none from the content.
- **Retention:** none on the YazSes side. Hub behaviour: NOT VERIFIED.
- **Secrets:** the preflight's secret scan passed (tokens, keys, credentials in URLs, home paths).
- **Export check:** the manifest declares no `export_check` for this destination, so the preflight
  runs no check that the tables match the archive. The exporter named in #722 is not in `scripts/`.
  Whether the committed tables match the archive today is NOT VERIFIED.
- **Licence:** `cc-by-4.0` in the card front matter. Owner confirmation OPEN.
- **Third-party corpora:** the card names LibriSpeech, Google FLEURS, Mozilla Common Voice and the AMI
  Meeting Corpus as sources. `huggingface/benchmarks/README.md` section 12 records their licences as
  stated there: LibriSpeech CC BY 4.0, Google FLEURS CC BY 4.0, Common Voice `fa` CC0 1.0, AMI CC BY.
  Those are the card's statements, not checked against the upstream sources. The card asks readers
  to cite them.
- **Attribution:** the card gives a BibTeX entry for the paper and cites the software's concept DOI.
- **Manifest evidence:** "14 configs, 18 files" on 2026-10-28. The repository upload set is 17 files.
  The eighteenth is not identified (NOT VERIFIED).
- **Owner:** OPEN.

### 1.4 Hosted demo Space `mskazemi/yazses-offline-transcription-demo` (manifest `demo-space`)

The hosted-audio policy for this Space is in section 2.2. This section reviews the code.

- **Files (preflight plan):** `README.md` (4464 B), `app.py` (6947 B), `requirements.txt` (807 B),
  `validation.py` (7843 B), all in `huggingface/space-demo/`.
- **Data handled:** the visitor's recording or upload (audio). The transcript goes back to the
  visitor. The code writes no audio or transcript to disk, a database or a log. It does read the
  uploaded file: `validation.py` checks that it exists, its extension and size, and reads its header
  for a declared length (`wave`, or PyAV); `app.py` also calls `os.path.getsize` on it and passes
  `audio_path` to `model.transcribe`, which decodes the whole file (the comment at `app.py` lines
  91-94 says faster-whisper decodes it all into memory).
- **Network and egress from the code:**
  1. On the first request that passes the upload checks, the Space loads the `base.en` model through
     faster-whisper (`WhisperModel(MODEL_NAME, ...)` in `app.py`). The repository maps `base.en` to
     `Systran/faster-whisper-base.en` in `src/yazses/stt/download.py` (line 49). If the model is not
     already cached on the server, the library fetches it from the Hub at run time. That download is
     done by the library, not by code in this repository, and was not observed.
  2. `app.py` and `validation.py` contain no other network call (a search on 2026-12-03 found no
     `requests`, `urllib` or `socket` use in either file).
  3. Gradio's own network traffic is outside the repository: NOT VERIFIED.
  4. The page's links (GitHub, arXiv, the documentation site) are for a visitor to follow.
- **Logging and analytics:** `analytics_enabled=False` is set. `app.py` has no `print` call and no
  logger (both are checked by tests in `tests/test_hf_space_demo.py`). Gradio's own logs: NOT VERIFIED.
- **Retention of uploads:** Gradio keeps recordings and uploads in a temporary cache on the server.
  `app.py` passes `delete_cache=(600, 600)`. The README reads this as: check every 10 minutes, delete
  files older than 10 minutes. `docs/hugging-face.md` (lines 55-56) states the worst case: a recording
  can stay in that cache for up to about 20 minutes. Gradio's exact behaviour is NOT VERIFIED here.
  The README's wording depends on it.
- **Removal of the upload after decoding:** `validation.py` defines `safe_cleanup`, which deletes a
  file inside a temporary directory. It is tested, but **no code in `app.py` calls it.** A search over
  the repository on 2026-12-03 found calls to the function only in `tests/test_hf_space_demo.py`. The name
  itself also appears in `validation.py` (the definition). A dysfluency evaluation script uses different
  identifiers that share the text (`safe_cleanups`, `safe_cleanup_yield_nonfluent`) and does not call it.
  None of these is `app.py`. So removal relies on the Gradio cache sweep above.
- **Secrets:** `app.py` and `validation.py` read no environment variable and no token (a search on
  2026-12-03). The preflight secret scan passed. Whether the Space settings hold any secret: NOT
  VERIFIED.
- **Dependencies:** `requirements.txt` lists `faster-whisper>=1.2.1`, `av>=15,<19` and `gradio>=6.22.0`,
  with no URL, path or pip option. `app.py` imports `spaces`, which `requirements.txt` does not list,
  and the repository does not say where it comes from (NOT VERIFIED).
- **Limits (enforced in code):** 60 seconds, 25 MB, six extensions (WAV, FLAC, MP3, OGG, M4A, WebM).
  The size and extension checks run before decoding. The length check before decoding runs only
  when the header declares a length (WAV, or a container PyAV reads a duration from). A file whose
  container does not declare its length is passed to the decoder if it is 512 KiB or less
  (`MAX_UNKNOWN_DURATION_BYTES` in `validation.py`, `check_declared_duration`). The 60 s check then
  runs only after `model.transcribe` has returned `info.duration`, and `app.py` notes that
  faster-whisper decodes the whole file into memory before it returns that value. So for such a file
  the decoder reads the whole file before any length limit is applied. The queue holds at most 20
  requests (`app.py`).
- **Hardware note (`app.py` lines 74-78):** the model runs on CPU int8, not CUDA. The Space runs on
  ZeroGPU, and the `@spaces.GPU(duration=60)` decorator exists because ZeroGPU refuses to start a
  Space without one.
- **Licence:** `apache-2.0` in the README front matter for the Space's code. faster-whisper (MIT) and
  PyAV (BSD-3-Clause) are recorded in `NOTICE`. Gradio and `spaces` are NOT RECORDED in the repository.
- **Model licence (affects the model the Space loads):** the Systran conversion card for `base.en`
  declares `mit`, while the upstream `openai/whisper-base.en` card declares `apache-2.0`
  (`design/hci-huggingface/model-provenance.md`). That mismatch is recorded there. Owner decision OPEN.
- **Attribution:** the README names faster-whisper (CTranslate2), links the source and the paper, and
  gives a BibTeX entry. It does not name SYSTRAN, and neither does `app.py`. Owner decision whether
  to add it.
- **Owner:** OPEN. See section 5 for the open questions.

### 1.5 Collection (manifest `collection`)

- **Items:** one paper (2607.28878), one demo Space, one showcase Space, one dataset, and three
  upstream Systran models (tiny.en, base.en, small.en).
- **Data handled:** none. Each item's note is at most 500 characters (checked by the preflight).
- **Network, retention, secrets:** none on the YazSes side.
- **Manifest flag:** `owner_approved: true`, set by the owner; it is not the #726 sign-off (section 0).
- **Owner:** OPEN. The owner decision on the canonical Collection is open (`HF_LAUNCH_STATUS_MATRIX.md`
  section 1).

### 1.6 The JFK sample (not a Hub artifact, reviewed here for #726)

- **Files:** `data/librispeech-sample/jfk.wav` (352078 B) and `data/librispeech-sample/jfk.txt`
  (105 B). Both are tracked in git (checked 2026-12-03).
- **Hub use:** none. `data/` is outside the upload root `huggingface/` (preflight), no manifest
  destination lists these files, and no file under `huggingface/` mentions "jfk" (a search on
  2026-12-03). The demo Space does not use the clip.
- **Origin recorded:** `scripts/download-sample.py` fetches `samples/jfk.wav` from the
  `ggerganov/whisper.cpp` repository on GitHub and writes the reference text. The script has no
  licence statement.
- **Rights recorded:** `design/research/2026-11-20-dictation-latency-decode.md` says the clip is
  "public domain, 11 s". `CHANGELOG.md` (the entry that names the JFK sample),
  `docs/releases/v2.43.2.md` (line 34, "a public-domain speech sample"),
  `src/yazses/audio/speech_presence.py` (lines 17 and 38) and `tests/test_speech_presence.py`
  (line 14) also call the sample public domain. These are repeated statements, not a licence. No
  licence file or upstream licence text for the clip was found in the repository. **NOT VERIFIED.**
  The claim has not been checked against the upstream source.
- **Decision:** nothing in this inventory uploads the clip. Any future upload needs a separate owner
  decision and a verified licence.

### 1.7 Personal profile `mskazemi` (issue #726 names it; not a manifest destination)

- **Source:** the draft `HF_PROFILE_TEXT.md` (#717). It is not in `huggingface/manifest.json`, so
  `scripts/hf_preflight.py` does not plan, scan or check it. Nothing in this section was checked
  against the Hub profile page.
- **Data handled:** none. Static text: a short bio and an About text. It names no personal contact
  detail; the contact email in `CITATION.cff` is not copied.
- **Network and egress:** the About text contains the URLs of GitHub, the paper and the demo Space.
  A link transmits nothing until a visitor follows it. How the Hub renders them: NOT VERIFIED.
- **Demo disclosure:** the draft says the hosted demo processes audio on Hugging Face infrastructure
  and points to the desktop app for private use. Keep that sentence wherever the demo is linked.
- **Ownership:** the personal `mskazemi` account, as recorded in #715 on 2026-10-29 (issue #726 and
  #717 both cite this). The paste-ready text (sections 1 and 2 of the draft) does not name any
  organization.
- **Owner:** OPEN. The owner approves the wording (`HF_PROFILE_TEXT.md`, section 9). Profile field
  limits and the Hub's rendering: NOT VERIFIED.

## 2. Two policies, kept apart

### 2.1 Synthetic demo (static HCI lab, #693): not live

- **Source:** `examples/hci-hf-lab/`. Governed by `design/hci-huggingface/HF_PRIVACY_PREPUBLISH.md` (#701).
- **Scope:** synthetic fixtures only. No camera, microphone or other sensor. The page makes no
  network call (static checks in that document, rows A1 to A4). No real participant data.
- **Status: BLOCKED.** That document's release gate is BLOCKED until the owner reviews the static
  demo, the publication playbook and the model provenance, accepts each open row in writing, and
  decides ADR-030 alignment. None of those is recorded as done.
- This policy does **not** apply to the hosted audio preview in section 2.2. Issue #726 says the
  #701 policy must not be read as approving real audio.

### 2.2 Hosted audio preview (demo Space): real visitor audio

- **Scope:** a visitor's microphone recording or upload leaves the visitor's computer and is
  processed on Hugging Face infrastructure. The Space's own documentation says so, and the
  desktop app does not do this.
- **What the code does (fact):**
  - shows the hosted-processing notice above the recorder and uploader (`PRIVACY_NOTICE` in
    `app.py`, rendered before the audio input; test `test_privacy_notice_renders_above_the_audio_input`);
  - enforces the 25 MB and extension limits before decoding, and the 60 s limit before decoding only
    where the header declares a length; a file with no declared length of 512 KiB or less is decoded
    and its 60 s check runs after decoding (section 1.4);
  - sets analytics off, and writes no audio or transcript itself;
  - sets a Gradio cache sweep with `delete_cache=(600, 600)`.
- **What the code does not do (fact):**
  - it has no consent step before recording or upload beyond the notice (no checkbox or
    acknowledgement in `app.py`);
  - it does not call `safe_cleanup` after a decode;
  - the text in `app.py` states no retention period; the README describes the cache sweep.
- **Open owner decisions (questions, not requirements this inventory asserts):**
  1. Whether a consent or acknowledgement step is required before recording or upload. OWNER DECISION OPEN.
  2. Whether `safe_cleanup` should run after each decode, or whether the Gradio cache setting is
     enough. OWNER DECISION OPEN. The README's retention wording depends on the answer.
  3. What Hugging Face itself logs and keeps for Space traffic. NOT VERIFIED. The README already says it
     makes no promise about this. Whether the page should say more is an owner decision.
  4. Whether the wording of the notice matches the owner's intent, including the text "This is a hosted
     demonstration. Audio submitted here is processed on Hugging Face infrastructure." OWNER DECISION OPEN.
- **Cost limits:** #718 says never to buy hardware for this Space, and #715 says no billing or paid
  compute without owner approval. The free-resources rule in `design/hci-huggingface/HF_PUBLICATION.md`
  section 2 is limited to "any HCI artifact", and that playbook says it does not describe the existing
  product pages (section 7).
- **Status: BLOCKED** until the owner answers items 1 to 4 and signs off.

## 3. Licences and attribution, summary

| Item | Licence as stated in the repository | Gap or conflict |
|---|---|---|
| Organization card, showcase, demo code | `apache-2.0` (front matter; README states Apache-2.0) | The `LICENSE` file is present. Its text was not compared. |
| Benchmark dataset | `cc-by-4.0` (card front matter) | Owner confirmation OPEN. The corpus licences the card states are in the corpora row below. |
| Systran `base.en`, `tiny.en`, `small.en` conversions | `mit` on the Systran cards | Upstream `openai/whisper-*.en` cards say `apache-2.0`. Recorded in `model-provenance.md`. Owner decision OPEN. No model is re-uploaded. |
| faster-whisper, PyAV | faster-whisper MIT, PyAV BSD-3-Clause, both in `NOTICE` | Recorded; upstream licence text not compared |
| Gradio, `spaces` | NOT RECORDED in the repository | NOT VERIFIED |
| Benchmark corpora (LibriSpeech, FLEURS, Common Voice `fa`, AMI) | LibriSpeech CC BY 4.0, FLEURS CC BY 4.0, Common Voice `fa` CC0 1.0, AMI CC BY (`huggingface/benchmarks/README.md` section 12) | Card's statement; not checked upstream |
| JFK sample | "public domain" (stated in the files listed in section 1.6) | NOT VERIFIED. Not uploaded. |

## 4. Rollback and credential revocation

- **Rollback:** as in `HF_LAUNCH_STATUS_MATRIX.md` section 6. That section is drafted from
  `HF_PUBLICATION.md` section 6 and is not reviewed.
- **Credentials:** the publish workflow uses GitHub OIDC and Hugging Face Trusted Publishers, with no
  stored token (`huggingface/README.md`; the workflow's header). The preflight's secret scan covers the
  files in the upload set, not the whole repository.
- **If a token were ever exposed:** no revocation procedure is recorded in the repository. NOT DRAFTED.
  Any revocation would happen in the Hub's token settings, whose address is not recorded in the
  repository.

## 5. Open items and blockers

1. The #726 sign-off for each of the four live destinations, the Collection and the personal profile
   text. OPEN. The manifest's `owner_approved: true` flags predate it (section 0).
2. Ownership is decided (#715: personal account). Open: what happens to the existing `yazses` card and Collection.
3. Benchmark `excluded` path list in `export-metadata.json` (read in part only) and the `machine`
   descriptions (section 1.3). Owner review OPEN.
4. Benchmark export check: no `export_check` in the manifest, exporter not in `scripts/`. NOT VERIFIED.
5. Benchmark file count: manifest evidence says 18 files; the upload set has 17. NOT VERIFIED.
6. Demo: the live Space's code has not been compared with the repository. NOT VERIFIED.
7. Demo: `safe_cleanup` is not called by `app.py`. OPEN.
8. Demo: `import spaces` is not in `requirements.txt`. NOT VERIFIED.
9. Demo: consent step and notice wording (section 2.2). OWNER DECISION OPEN.
10. Model licence mismatch for the Systran conversions. OWNER DECISION OPEN.
11. JFK clip rights. NOT VERIFIED. No upload planned.
12. Hub-side logging and retention for Space and dataset traffic. NOT VERIFIED.
13. Screenshot metadata (`settings-window.png`). NOT CHECKED.
14. No browser network test of the live pages (row A11 in `HF_PRIVACY_PREPUBLISH.md`). OPEN.
15. Demo: undeclared-length files up to 512 KiB are decoded before the 60 s limit is applied (section
    1.4). Owner decision OPEN: accept, or tighten the pre-decode check.
16. Demo: a recording can stay in the Gradio cache for up to about 20 minutes (section 1.4). OWNER
    DECISION OPEN, together with item 2 of section 2.2.
17. Personal profile `mskazemi` (section 1.7): wording approval OPEN; not in the manifest, so the
    preflight does not check it.
18. Demo: the Space README does not name SYSTRAN (section 1.4). Owner decision OPEN.

## 6. Checks behind this inventory (2026-12-03, offline)

- `scripts/hf_preflight.py --print-plan`: OK, 4 destinations, 0 warnings. The plan lists the upload-set
  files used in section 1.
- `--require-approved` (`scripts/hf_preflight.py`, `select_destinations`) only checks `owner_approved` and
  `status`. Those flags are `true` and `live` for the organization card, showcase, benchmark dataset and
  demo Space, and `owner_approved` is `true` for the Collection, so that option does not enforce the
  OPEN/BLOCKED state of this document.
- Read on 2026-12-03: `huggingface/manifest.json`; `huggingface/space-demo/app.py` and `validation.py`;
  `NOTICE` (faster-whisper, PyAV); `huggingface/benchmarks/README.md` sections 6 and 12; `CHANGELOG.md`,
  `docs/releases/v2.43.2.md`, `src/yazses/audio/speech_presence.py` and `tests/test_speech_presence.py`
  (JFK wording); `docs/hugging-face.md` lines 55-56; `huggingface/showcase/index.html` and `styles.css`
  (resource tags); the draft `HF_PROFILE_TEXT.md`.
- Searches over the repository: callers of `safe_cleanup` (`app.py` has none); environment, token and
  network use in `app.py` and `validation.py` (none); email addresses under `huggingface/` (none);
  hostname fields in the benchmark data (none); "jfk" under `huggingface/` (none).
- `git ls-files data/librispeech-sample`: the two JFK files are tracked.
- Byte comparison of `huggingface/showcase/assets/logo.svg` with `contrib/icons/yazses.svg`: identical.

## 7. Not done

- No Hub request, no Space run, no browser network test, and no reading of Hub or Gradio documentation.
- No approval is recorded here, and no manifest flag is changed.
