Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/extract/remote/test_hub_repository_not_found.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

The answers are ``huggingface_hub``'s own exceptions, raised by its
``hf_raise_for_status`` from the responses the Hub was measured to send
(working-docs/implementation/pre-release-review-0.25.0.md, "CLI-7").
(working-docs/implementation/remote-fetch-policy.md, "Measured"; #561).

See also: tests/extract/remote/test_hub_api.py (the other failures),
tests/extract/remote/test_hub_repository_not_found_live.py (the real Hub)
Expand Down
16 changes: 8 additions & 8 deletions working-docs/design/known-bugs.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Created: 2026-10-03
Last-Modified: 2026-12-03
Last-Modified: 2026-12-04
SPDX-FileCopyrightText: 2026-present Arthit Suriyawongkul
SPDX-FileType: DOCUMENTATION
SPDX-License-Identifier: CC0-1.0
Expand Down Expand Up @@ -61,13 +61,13 @@ lists its open entries first, ranked as described under
| [AI model readers and metadata](known-bugs/ai-models-readers-and-metadata.md) | - | - | - | 32 | 9 | - | 41 | - |
| [AI model readers and metadata, fixed](known-bugs/ai-models-readers-and-metadata-fixed.md) | - | - | - | - | - | - | - | 28 |
| [Licences and LicenseID](known-bugs/licences-and-licenseid.md) | - | - | 3 | 2 | 10 | - | 15 | 21 |
| [ID registry and identity](known-bugs/id-registry-and-identity.md) | - | 1 | - | - | 13 | 1 | 15 | 15 |
| [Messages, catalogue and provenance](known-bugs/messages-and-provenance.md) | - | - | - | 2 | 21 | - | 23 | 20 |
| [Remote sources, Git LFS and datasets](known-bugs/remote-sources-lfs-and-datasets.md) | - | - | - | - | 24 | - | 24 | 12 |
| [Extraction, fragments and merge](known-bugs/extraction-and-fragments.md) | - | - | 4 | 8 | 21 | - | 33 | 14 |
| [CLI, Action, hook and wheel](known-bugs/surfaces-hook-and-wheel.md) | - | - | - | 6 | 9 | 2 | 17 | 6 |
| [Process, tooling and release checks](known-bugs/process-tooling-and-release-checks.md) | - | - | - | 2 | 9 | - | 11 | 11 |
| **Total** | **-** | **1** | **7** | **52** | **116** | **3** | **179** | **127** |
| [ID registry and identity](known-bugs/id-registry-and-identity.md) | - | 1 | - | - | 18 | 1 | 20 | 15 |
| [Messages, catalogue and provenance](known-bugs/messages-and-provenance.md) | - | - | - | 2 | 29 | - | 31 | 20 |
| [Remote sources, Git LFS and datasets](known-bugs/remote-sources-lfs-and-datasets.md) | - | - | - | - | 25 | - | 25 | 12 |
| [Extraction, fragments and merge](known-bugs/extraction-and-fragments.md) | - | - | 4 | 8 | 22 | - | 34 | 14 |
| [CLI, Action, hook and wheel](known-bugs/surfaces-hook-and-wheel.md) | - | - | - | 6 | 21 | 2 | 29 | 6 |
| [Process, tooling and release checks](known-bugs/process-tooling-and-release-checks.md) | - | - | - | 2 | 11 | - | 13 | 11 |
| **Total** | **-** | **1** | **7** | **52** | **145** | **3** | **208** | **127** |

Open = the `- [ ]` entries plus the Leads, which are plain bullets with no box;
Fixed = the `- [x]` entries. The P and Found columns count `- [ ]` entries only.
Expand Down
19 changes: 15 additions & 4 deletions working-docs/design/known-bugs/extraction-and-fragments.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Created: 2026-11-02
Last-Modified: 2026-12-03
Last-Modified: 2026-12-04
SPDX-FileCopyrightText: 2026-present Arthit Suriyawongkul
SPDX-FileType: DOCUMENTATION
SPDX-License-Identifier: CC0-1.0
Expand Down Expand Up @@ -88,8 +88,9 @@ the one list.
space stays (as
0.19.0). Stripping a writer's whole fold width needs telling it from the
text's own indent.
- [ ] **`loom fragment validate A B` fails on two `loom.run` fragments (S).**
Both fragments name their creation info `_:CreationInfo0`, so the
- [ ] **`loom fragment validate A B` fails on two Pitloom documents whose
`created` differ (S).** Two `loom.run` fragments, or two `loom model` SBOMs,
each name their creation info `_:CreationInfo0`, so the
merged-graph check sees one `CreationInfo` with several `created` values
(14 `ERROR:` lines); each fragment alone, and `--no-merge`, is valid.
`loom merge` of the same three fragments succeeds. The validator is at
Expand All @@ -101,7 +102,11 @@ the one list.
nodes (a fresh `BNode()` per label) before the union, then bump the pin.
rdflib 7.6 offers no shortcut: `skolemize=True` gives both documents one
IRI, and a `Dataset` with a named graph per document still yields one
`BNode('CreationInfo0')`.
`BNode('CreationInfo0')`. Upstream: `src/spdx3_validate/core.py:719-722`
at the pinned `0e2e3562`; add a test with two such documents, check that
a blank node referenced twice within one document stays one node, and
leave single-document validation unchanged. Ruled 2026-11-27: the merged
check stays, with the caveat in `docs/fragments.md` (`--no-merge`).
- [ ] **Non-directory targets ignore configured fragments.** `loom model`
(and `generate` on a model file), Hugging Face, `wheel`, `env` and sdist
runs never call `merge_fragments()`, so fragments in `--config` or
Expand Down Expand Up @@ -295,6 +300,12 @@ the one list.
applies PEP 263 only to a name ending `.py`, so a `.pyw` (also `.pyi`,
`.pyx`) with a latin-1 cookie loses its SPDX tags to a false
`file-unreadable/not-utf8` warning. Follow-up of #645.
- [ ] **`Homepage` becomes the download location (S).** Found in the
0.25.0 pre-release review (TRY-8; ruled 2026-11-27: next release). With
no `Source` in `[project.urls]`, `Homepage` is written as `software_downloadLocation` too
(`assemble/spdx3/_document_main_package.py:83`). A home page is no
download location: leave it unset (or `NOASSERTION`) without `Source`
or a `Download` URL.

## Fixed

Expand Down
32 changes: 31 additions & 1 deletion working-docs/design/known-bugs/id-registry-and-identity.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Created: 2026-11-02
Last-Modified: 2026-12-03
Last-Modified: 2026-12-04
SPDX-FileCopyrightText: 2026-present Arthit Suriyawongkul
SPDX-FileType: DOCUMENTATION
SPDX-License-Identifier: CC0-1.0
Expand Down Expand Up @@ -132,6 +132,36 @@ entries stay in the last section for history.
reservation-exempt keys from the raw name, while `id import` stores the
escaped spelling, so the element's own id is reserved against it and the
rebuild renumbers it and later ids. Build both from one key helper.
- [ ] **`id generate` refuses a path in another letter case on macOS (S).**
Found in the 0.25.0 pre-release review (REG-4). `loom id generate
<dir>/PTH/src --project-dir <dir>/pth` is `outside --project-dir
[option-invalid]`: `_resolve_id_generate_path` (`cli/id.py:105-136`) uses
`relative_to` then `realpath`, neither folds case. Fall back to an
`(st_dev, st_ino)` ancestor match, as `path_key` does.
- [ ] **An over-cap dataset pin is an `INFO:` with an absolute path (S).**
Found in the 0.25.0 pre-release review (REG-5). `loom id generate .
--max-dataset-hash-bytes 3 -e data/train.csv:dataset_DatasetPackage` says
`INFO: ... FILE=<absolute>: larger than the 3-byte max-dataset-hash-bytes
cap ... [registry-hash-missing]` (`cli/_id_entity.py:138-158`): the
run's `over-cap` `WARNING:` is lost, and it names the key, not the flag.
- [ ] **`registry-wrong-format` shows a Python repr and no action (S).**
Found in the 0.25.0 pre-release review (REG-6, TRY-9a). A registry with
`"version": null` or `true` gives `version None` / `version True, expected
4 (no migration support)` (`id_registry/_format.py:183`,
`messages/_registry_file.py:191`). Show the JSON value; add the remedy the
docs give (delete, then `loom id import` the last SBOM).
- [ ] **A UTF-16 BOM registry is "not valid JSON" (S).** Found in the
0.25.0 pre-release review (CLI-11). A registry starting `FF FE` gives
`json-malformed` (`'utf-16-le' codec can't decode ...`):
`json.loads(bytes)` (`id_registry/_format.py:144`) detects UTF-16;
`--config` says `file-unreadable/not-utf8`. Check UTF-8 first, as the
config reader does.
- [ ] **`IdRegistry` takes a wrong-type argument with a bare error (S).**
Found in the 0.25.0 pre-release review (deferred).
`IdRegistry.new(1)` and `IdRegistry(1)` raise an uncoded `TypeError`;
`lookup`, `get`, `has_name`, `reserve_id`, `promote_alias` and
`require_project_root` check no type. Check each public entry with the
shared argument helper.

### Leads to verify

Expand Down
42 changes: 41 additions & 1 deletion working-docs/design/known-bugs/messages-and-provenance.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Created: 2026-11-02
Last-Modified: 2026-12-03
Last-Modified: 2026-12-04
SPDX-FileCopyrightText: 2026-present Arthit Suriyawongkul
SPDX-FileType: DOCUMENTATION
SPDX-License-Identifier: CC0-1.0
Expand Down Expand Up @@ -176,6 +176,46 @@ entries stay in the last section for history.
0.25.2 docs sweep: its `model-wrong-format` error quotes the resolved
working directory, while `loom model a/..` quotes `'a/..'` as typed. Quote
the typed path through the shared helper.
- [ ] **Paths in messages are absolute on some commands, as typed on
others (M).** Found in the 0.25.0 pre-release review (CLI-10, MSG-5,
TRY-9b, TRY-10, SKL-5). `loom project emptyd` names it resolved
(`cli/commands/project.py:141`), `generate` as `'emptyd'`, with no `DIR=`;
`PITLOOM_SBOM_OUTPUT_PATH` and `WARNING: Build:` are absolute for
`model`/`env` (`model.py:97`). One "as typed" helper; fold `enrich a/..`.
- [ ] **`-v` misreports option sources and omits options (S).** Found in
the 0.25.0 pre-release review (CLI-5). With `SOURCE_DATE_EPOCH` set it
prints `OPTION=creation_datetime SOURCE=default VALUE=None`; a found
`pyproject.toml` is `config_file SOURCE=command-line`
(`cli/verbose.py:67-69,107-108`); no rows for credentials, `offline`,
`use_lockfile` or the caps. List every effective option with its source.
- [ ] **Config and basename messages leak internals or blur causes (S).**
Found in the 0.25.0 pre-release review (HOOK-5, TRY-12). The hook says
`unknown keys colour` for one key (`messages/_config.py:136`), names a
`hatch.toml` table `[tool.hatch.build.hooks.pitloom]` (`_hatch_config.py`)
and raises the private `ConfigError`; `sbom-name-invalid` names both
causes. Pluralise by count, name the file's table, say the one cause.
- [ ] **loom SDK refusals are inconsistent (S).** Found in the 0.25.0
pre-release review (LIB-13, LIB-14). `loom.run(pitloom_config=5)` and
`max_dataset_hash_bytes=True` lack the `loom SDK:` prefix that
`output_file` has; `set_model()` outside a run is an uncoded
`RuntimeError` (`loom.py:201`); `CredentialPolicy(accepted="sha256:...")`
splits the string and does not name `accepted`.
- [ ] **An argument the subcommand does not take is framed `loom:` (S).**
Found in the 0.25.0 pre-release review (CLI-12, DOC-3). `loom model x
--debug` prints `ERROR: loom: unrecognized arguments: --debug`: the
top-level `parse_args()` (`__main__.py:103`) reports a subcommand's
leftovers. Parse known args per subcommand and frame as `loom model:`.
- [ ] **Action users are advised in CLI flag names (S).** Found in the
0.25.0 pre-release review (MSG-7). `messages/_surface.py:10-13` treats
the Action as the CLI, so advice names `--trust-model-files`, not the
`trust-model-files` input. By design today; decide whether an Action
surface earns its own wording.
- [ ] **`fetch_pypi_file` does not configure logging (S).** Found in the
0.25.0 pre-release review (deferred): the public entry point never
calls `configure_logging()`, which every library entry point must.
- [ ] **The `credentials-unsafe/git-userinfo` summary says "an empty host"
(S).** Found in the 0.25.0 pre-release review (deferred):
`messages/_url_credentials_git.py:95` no longer matches the condition.

## Fixed

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Created: 2026-11-02
Last-Modified: 2026-11-30
Last-Modified: 2026-12-04
SPDX-FileCopyrightText: 2026-present Arthit Suriyawongkul
SPDX-FileType: DOCUMENTATION
SPDX-License-Identifier: CC0-1.0
Expand Down Expand Up @@ -78,6 +78,16 @@ the last section for history.
`-n 3` run there (the worker gets the interrupt) and pass serially and in
CI.
*Found 2026-11-05, review of #446.*
- [ ] **`docs/api.md` omits names the narrative pages point to (S).** Found
in the 0.25.0 pre-release review (LIB-12). `CredentialPolicy`,
`PitloomConfig`, `RemoteFetchPolicy`, `InternalError` and
`CodedValueError` are named in `docs/python-api*.md` but have no `:::`
entry, so the test walking `api.md` misses them. Add them, and a test
that every library name a page cites is in `api.md`.
- [ ] **A test holds a literal combining accent (S).** Found in the 0.25.0
pre-release review (REG-7). `tests/id_registry/test_registry_nfc.py:30-31`
write U+0301 and U+00E9 as raw characters. Use the `\u0301` and
`\u00e9` escapes, as CLAUDE.md asks.

## Fixed

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Created: 2026-11-02
Last-Modified: 2026-12-03
Last-Modified: 2026-12-04
SPDX-FileCopyrightText: 2026-present Arthit Suriyawongkul
SPDX-FileType: DOCUMENTATION
SPDX-License-Identifier: CC0-1.0
Expand Down Expand Up @@ -169,6 +169,13 @@ entries stay in the last section for history.
checks `looks_like_wheel_path` before `is_huggingface_source`, so
`generate` says the wheel file is not found, `model` reads it as a Hub
model and `project` gives a wrong-format error. Check the Hub first.
- [ ] **A Hub URL without its scheme is read as a model id (S).** Found in
the 0.25.0 pre-release review (Hub follow-up). `loom model
huggingface.co/gpt2` is named `https://huggingface.co/huggingface.co/gpt2`
with no hint. Refuse a host-shaped owner with a hint to add `https://`.
Related, left as ruled with #561: `https://huggingface.co/gpt2/discussions`
reads as the model `gpt2/discussions` (`hub-response-invalid`, an SBOM,
exit 0), since a page kind with nothing after it is a valid model name.

## Fixed

Expand Down
69 changes: 68 additions & 1 deletion working-docs/design/known-bugs/surfaces-hook-and-wheel.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
Created: 2026-11-02
Last-Modified: 2026-11-30
Last-Modified: 2026-12-04
SPDX-FileCopyrightText: 2026-present Arthit Suriyawongkul
SPDX-FileType: DOCUMENTATION
SPDX-License-Identifier: CC0-1.0
Expand Down Expand Up @@ -81,6 +81,73 @@ entries come first; fixed entries stay in the last section for history.
- [ ] **The GitHub Action is covered for registry keys only through the CLI
(S).** The Action's own step is not tested for them.
*Found 2026-10-30, from #407 (registry package key).*
- [ ] **A stdout record puts a path that may hold a space first (S).** Found
in the 0.25.0 pre-release review (CLI-4). `verify-wheel` prints
`WHEEL=my demo-0.1-py3-none-any.whl STATUS=failed`; same shape at
`cli/commands/validate_wheel.py:116`, `_embed_wheel_batch.py:71` and
`fragment.py:80,195-196` (`FILE=`, `PATH=`). Move the path pair last, as
the CLI output rule asks, and update the skills that parse these lines.
- [ ] **A configured option a surface cannot act on is dropped silently
(M).** Found in the 0.25.0 pre-release review (CLI-6, HOOK-1, TRY-5).
`pretty = true` (`embed-wheel`, hook) and `use-lockfile = true` (hook)
say nothing: `configured_options()` (`core/inert_options.py:348-362`)
lists two keys; `--content-type-method` without `--content-type` is
silent too. Cover every key and dependent flag in the inert table.
- [ ] **`loom generate env` ignores a project directory named `env` (S).**
Found in the 0.25.0 pre-release review (CLI-8). With `./env` a project,
`loom generate env -o x.json` reads Pitloom's own environment, no
warning (`assemble/__init__.py:152`); `./env` reads the directory. Warn
when the keyword shadows an existing path, naming the `./env` spelling.
- [ ] **`--creator-email` takes any string as an email (S).** Found in the
0.25.0 pre-release review (CLI-9). `--creator-email notanemail` is
written as an `email` `ExternalIdentifier` with no word
(`cli/parser.py:91`). Check the shape at parse (an `@` with text on both
sides) and refuse with `option-invalid`, exit 2.
- [ ] **Some CLI values are checked after parsing: exit 1, not 2 (S).**
Found in the 0.25.0 pre-release review (CLI-12). `embed-wheel
--sbom-basename a/b` (or `a\nb`, called "not a path") is refused by
`checked_embed_basename` (`cli/commands/embed_wheel.py:197`), exit 1,
while `''` exits 2; `--max-download-bytes 1_000` and non-ASCII digits
pass `int()` (`cli/options.py:236-241`). Check both as argparse `type=`.
- [ ] **Library generators fail on a wrong-type object argument with a bare
error (M).** Found in the 0.25.0 pre-release review (LIB-9).
`generate_wheel_sbom(w, creation_metadata=5)` is `AttributeError`,
`pitloom_config=5` or `"x"` `TypeError: replace() ...` (`generate()`:
`AttributeError`); `generate_model_sbom(pitloom_config={})` is accepted
silently. Check them as `loom.run` does (`check_sdk_arguments`).
- [ ] **`creation_metadata=` replaces the whole creation block (S).** Found
in the 0.25.0 pre-release review (LIB-11). A library call passing only a
date loses the project's `[[tool.pitloom.creator]]`
(`assemble/_generators.py:395`, `creation_metadata or ...`); the CLI's
`--creation-datetime` keeps them (`cli/options_resolve.py:141-197`).
Merge field by field, as the CLI does.
- [ ] **An ID registry inside the package is left out of the hook's SBOM
(S).** Found in the 0.25.0 pre-release review (HOOK-2). With
`src/demo/ids.json`, the wheel ships the file but the SBOM omits it
(`plugins/_hatch_document.py:121` `exclude_path`), with a
`registry-conflict/file-set` warning. The reason (rewritten after the
SBOM, `core/_models_wheel.py:305-309`) does not hold for the hook: keep it.
- [ ] **A staging-directory failure in the hook is an uncoded error (S).**
Found in the 0.25.0 pre-release review (HOOK-3). `mkdtemp`
(`plugins/hatch.py:138`) runs outside `coded_write` (`:142`), so an
unwritable temp dir gives `ERROR: Pitloom build hook: [Errno 13] ...`
with no code; same at `core/temp_dirs.py:65,88`. Wrap the creation in
the coded write path (`file-unwritable`).
- [ ] **The Action counts `embed-wheel` matches unlike loom (S).** Found in
the 0.25.0 pre-release review (ACT-1). `action.yml:369,613` use
`glob.glob`; loom reads a pattern matching nothing as a literal path, so
a wheel at `dist[1]/x.whl` is embedded while the Action warns `matches 0
wheels` and sets no `sbom-path`. Read the count from loom's stdout.
- [ ] **The Action's annotation escape is quadratic on bash 3.2 (S).** Found
in the 0.25.0 pre-release review (ACT-2). `line=${line//'%'/%25}`
(`action.yml:571`) took 18.5 s on one URL of 10,000 `%`; credential lines
print whole URLs. Escape with one `sed` or Python pass per stream.
- [ ] **Empty library arguments, the leftovers (S).** Found in the 0.25.0
pre-release review (deferred). `read_wheel("")` gives
`target-wrong-format FILE=.` where the other readers give
`input-not-found`; `set_model(path="")` warns at exit instead of refusing;
`generate_pypi_sbom(project_dir="")` only warns; a blank creator `email`
(config or `Creator(email="")`) is dropped silently. One non-empty rule.

### Leads to verify

Expand Down
Loading
Loading