Message codes: ID registry ids and keys¶
See also: Message codes (the index of every code) and Messages and codes (the line grammar, what a code guarantees and when to trust one).
Trust a code only when the line is one of the lines below, a value in place of
each <name>, after at most one prefix: the index lists the prefixes and
message-codes-values.md the values.
Codes¶
| Code | Level | Means | Since |
|---|---|---|---|
index-path-no-effect |
WARNING | A PATH given to 'loom id generate' (or IdRegistry.generate) is in a directory the file walk always skips (build/, .git/, a virtual environment), so it indexes nothing. | 0.25.0 |
registry-conflict |
WARNING | Two elements of one SBOM match one ID registry entry: a stale entry outlived the element it named, or one name is pinned for two elements. One id never names two elements. | 0.25.0 |
registry-conflict/concurrent |
WARNING | Two runs saved the ID registry at once and both took one id, minted from the same counter or moved to another key: the file keeps the other run's key for it. | 0.25.0 |
registry-conflict/file-set |
WARNING | The ID registry file named for a run lies inside what the run describes: the project's file set, or a directory dataset a loom.Run script adds. Each save changes the file, so it would change the hash of what holds it. | 0.25.0 |
registry-conflict/held |
INFO | 'loom id import' meets an element whose id the registry holds under another key that no element of the SBOM moves: the held key keeps it. | 0.25.0 |
registry-conflict/spelling |
WARNING | A loom.Run script names one dataset two ways, and the ID registry pins the later spelling to another id than the first. | 0.25.0 |
registry-conflict/type |
WARNING | A loom.Run script looks a model up by a name the ID registry holds only under another element type. | 0.25.0 |
registry-entry-missing |
WARNING | A loom.Run script looks up an element the ID registry holds no entry for: expected on a first run, or for an element new since. | 0.25.0 |
registry-hash-conflict |
WARNING, INFO | An element's content is not what its ID registry entry records: the SHA-256 differs, or (a model) the entry records none. Changed bytes are another element, so they get another id. | 0.25.0 |
registry-hash-conflict/gate |
INFO | An SBOM's element has another id than the ID registry entry that records its content's SHA-256, and the element states no hash or an older one. | 0.25.0 |
registry-hash-missing |
WARNING, INFO | An ID registry lookup or pin has no SHA-256 to gate on: the element's content was not hashed (no file, a file gone, or over the hashing cap), or the pin records no hash. A pin given its hash later keeps its id. | 0.25.0 |
registry-identity-missing |
INFO | A package has no name or version to key it by: a wheel or sdist whose metadata states none (Pitloom names it unknown), or a 'loom id generate -e' package pin without '@VERSION'. | 0.25.0 |
registry-key-ambiguous |
WARNING, INFO | One ID registry key stands for several things: files whose names are one once NFC-normalised (where the file system keeps both), several held layout aliases (src/ or lib/) of one key, or one name held by several elements of an imported SBOM. | 0.25.0 |
registry-key-moved |
INFO | Files moved between a source layout and their installed path (src/pkg/a.py and pkg/a.py) are one file to the ID registry: a lookup through the layout alias keeps its id, and 'loom id generate' moves the entry to the file's own key. | 0.25.0 |
registry-path-key-unusable |
WARNING, INFO | An element's path cannot key it in the ID registry: the file is outside the registry's project root or not there, not a regular file, a model with no unique file holding its SHA-256, or files whose path leads outside the root. The line says why. | 0.25.0 |
index-path-no-effect¶
- Level: WARNING.
- Means: A PATH given to 'loom id generate' (or IdRegistry.generate) is in a directory the file walk always skips (build/, .git/, a virtual environment), so it indexes nothing.
- SBOM effect: none: the SBOM states what the input holds.
- Pitloom did: Indexed nothing under that PATH; the other PATHs are indexed and the registry is written.
- Tell the user: which PATH indexes nothing and why, as the line says. They name a PATH outside the skipped directory. Do not move files for them; ask first, and with nobody to ask, report it only.
- Lines:
WARNING: ID registry: PATH '<path>' is under a skipped directory name (<name>); not indexed [index-path-no-effect]
registry-conflict¶
- Level: WARNING.
- Means: Two elements of one SBOM match one ID registry entry: a stale entry outlived the element it named, or one name is pinned for two elements. One id never names two elements.
- SBOM effect: weaker: what the SBOM says is less sure.
- Pitloom did: Said by a document build that looks ids up (generate, project, wheel, env, embed-wheel, the build hook, the library) and loom.Run. The first element in document order keeps the id; the second gets a new one. The SBOM is written.
- Tell the user: which id two elements claim, as the line names them. Expected on every run after an ambiguous-name pin. Otherwise the registry holds a stale entry: 'loom id generate' re-indexes the project, or 'loom id generate -e' pins the two elements apart. Do not edit the registry for them; ask first, and with nobody to ask, report it only.
- Lines:
WARNING: ID registry: <spdx-id> is registered for both <entity> and <claimant>; the second gets a new id [registry-conflict]
registry-conflict/concurrent¶
- Level: WARNING.
- Means: Two runs saved the ID registry at once and both took one id, minted from the same counter or moved to another key: the file keeps the other run's key for it.
- SBOM effect: none: the SBOM states what the input holds.
- Pitloom did: Saved the registry with the other run's entry; this run's key for the id is not recorded. The SBOM keeps the id; the next run mints a new one for that key.
- Tell the user: that another run saved the registry at the same time, as the line says. Running once more records the element under a new id; runs that share a registry are best run one at a time. Do not run again for them; ask first, and with nobody to ask, report it only.
- Lines:
WARNING: ID registry: another run saved <spdx-id> for '<type>' <entity> first; not recording it for <claimant> [registry-conflict/concurrent]
registry-conflict/file-set¶
- Level: WARNING.
- Means: The ID registry file named for a run lies inside what the run describes: the project's file set, or a directory dataset a loom.Run script adds. Each save changes the file, so it would change the hash of what holds it.
- SBOM effect: none: the SBOM states what the input holds.
- Pitloom did: Left the registry file out of the project's files and Merkle root (and its copy out of a wheel's or an sdist's members), or out of the dataset's Merkle root. Said once per run; for a dataset, once per directory. The SBOM is written.
- Tell the user: that the registry file is inside the project or the dataset and is left out of it, as the line says. Expected for a registry kept in the project; for no line, they keep it outside. Do not move files for them; ask first, and with nobody to ask, report it only.
- Lines:
WARNING: ID registry: FILE=<file>: inside the project's file set; left out of it [registry-conflict/file-set]
WARNING: ID registry: FILE=<file>: inside dataset directory <dir>; left out of its Merkle root [registry-conflict/file-set]
registry-conflict/held¶
- Level: INFO.
- Means: 'loom id import' meets an element whose id the registry holds under another key that no element of the SBOM moves: the held key keeps it.
- SBOM effect: none: the SBOM states what the input holds.
- Pitloom did: Left the element out of the registry; the held key keeps the id. A run's own harvest leaves such an element out silently.
- Nothing to do: Nothing to do: one id is held under one key. To key the element under its new key, the user removes the old entry first.
- Lines:
INFO: ID registry: '<type>' <entity> not imported: its id is held under <claimant> [registry-conflict/held]
registry-conflict/spelling¶
- Level: WARNING.
- Means: A loom.Run script names one dataset two ways, and the ID registry pins the later spelling to another id than the first.
- SBOM effect: weaker: what the SBOM says is less sure.
- Pitloom did: Used the first spelling's id for the dataset; the later spelling's pin is not used. The SBOM is written.
- Tell the user: which dataset is named two ways, each pinned, as the line names them. They name it one way in the script, or drop one pin. Do not edit the script or the registry for them; ask first, and with nobody to ask, report it only.
- Lines:
WARNING: ID registry: dataset <entity> is pinned to <spdx-id>, but it is read as <claimant>, whose id is used [registry-conflict/spelling]
registry-conflict/type¶
- Level: WARNING.
- Means: A loom.Run script looks a model up by a name the ID registry holds only under another element type.
- SBOM effect: weaker: what the SBOM says is less sure.
- Pitloom did: Minted a new id for the model; the entry of the other type is left as it is. The SBOM is written.
- Tell the user: which name is held under another type, as the line names it. They pin the model as a model ('loom id generate -e NAME:ai_AIPackage') or rename one. Do not edit the registry for them; ask first, and with nobody to ask, report it only.
- Lines:
WARNING: ID registry: <entity> is held under another type; minting a new spdxId [registry-conflict/type]
registry-entry-missing¶
- Level: WARNING.
- Means: A loom.Run script looks up an element the ID registry holds no entry for: expected on a first run, or for an element new since.
- SBOM effect: none: the SBOM states what the input holds.
- Pitloom did: Minted a new id; a run that saves the registry records it.
- Nothing to do: Nothing to do on a first run. Otherwise 'loom id generate' or a saving run records the element, and the next run reuses its id.
- Lines:
WARNING: ID registry: <kind> <entity> not found; minting a new spdxId [registry-entry-missing]
registry-hash-conflict¶
- Level: WARNING, INFO.
- Means: An element's content is not what its ID registry entry records: the SHA-256 differs, or (a model) the entry records none. Changed bytes are another element, so they get another id.
- SBOM effect: weaker: what the SBOM says is less sure.
- Pitloom did: Said by every command that reads an ID registry (generate, project, wheel, env, embed-wheel, model, enrich, id generate, id import), the build hook, the library and loom.Run. Minted a new id; 'loom id generate' and a saving run replace the entry. The SBOM is written.
- Tell the user: which element changed, as the line names it. Expected after a retrain, a new download or an edit; if the content should not have changed, they check the file. Do not restore files for them; ask first, and with nobody to ask, report it only.
- Lines:
WARNING: ID registry: <kind> <entity>: its SHA-256 no longer matches the entry; minting a new spdxId [registry-hash-conflict]
INFO: ID registry: content changed for <entity>; minting a new spdxId (old: <spdx-id>) [registry-hash-conflict]
INFO: ID registry: model <entity>: no registry entry records its SHA-256; a new id is used [registry-hash-conflict]
registry-hash-conflict/gate¶
- Level: INFO.
- Means: An SBOM's element has another id than the ID registry entry that records its content's SHA-256, and the element states no hash or an older one.
- SBOM effect: none: the SBOM states what the input holds.
- Pitloom did: 'loom id import' takes the imported id and drops the entry's hash; a run's harvest keeps the entry as it is.
- Nothing to do: Nothing to do: the line says which id the registry keeps.
- Lines:
INFO: ID registry: content gate dropped for '<type>' <entity>: imported id <spdx-id> replaces <claimant> [registry-hash-conflict/gate]
INFO: ID registry: content gate kept for '<type>' <entity>: harvested id <spdx-id> not recorded over <claimant> [registry-hash-conflict/gate]
INFO: ID registry: content gate kept for '<type>' <entity>: element id <spdx-id> with an older SHA-256 not recorded over <claimant> [registry-hash-conflict/gate]
registry-hash-missing¶
- Level: WARNING, INFO.
- Means: An ID registry lookup or pin has no SHA-256 to gate on: the element's content was not hashed (no file, a file gone, or over the hashing cap), or the pin records no hash. A pin given its hash later keeps its id.
- SBOM effect: weaker: what the SBOM says is less sure.
- Pitloom did: Said by every command that reads an ID registry (generate, project, wheel, env, embed-wheel, model, enrich, id generate, id import), the build hook, the library and loom.Run. An entry recording a hash is not vouched for without one: a new id is minted. Otherwise the element is looked up or pinned by its key alone, its content not checked. The SBOM is written.
- The caller may fix: The caller may give the element a file the run can hash (a loom path= that exists at exit, a dataset below the project root, a larger --max-dataset-hash-bytes) so its id is gated by its content.
- Lines:
WARNING: ID registry: <kind> <entity>: the entry records a SHA-256 but no content was hashed; minting a new spdxId [registry-hash-missing]
INFO: ID registry: dataset <entity> looked up ungated: not hashed [registry-hash-missing]
INFO: ID registry: dataset <entity> matched a pin without SHA-256; content not checked [registry-hash-missing]
INFO: ID registry: dataset <entity> pinned without SHA-256: <why> [registry-hash-missing]
INFO: ID registry: dataset <entity> pin now gated by its SHA-256 [registry-hash-missing]
registry-identity-missing¶
- Level: INFO.
- Means: A package has no name or version to key it by: a wheel or sdist whose metadata states none (Pitloom names it unknown), or a 'loom id generate -e' package pin without '@VERSION'.
- SBOM effect: none: the SBOM states what the input holds.
- Pitloom did: A package of unknown identity is neither looked up nor recorded: its id is the SBOM's own. A pin without a version holds only a package that states none.
- Nothing to do: Nothing to do: an id is never shared by every release. A pin for one release takes 'NAME@VERSION'.
- Lines:
INFO: ID registry: package identity unknown; not looked up or recorded [registry-identity-missing]
INFO: ID registry: -e <entity> stored without a version: holds only a package that states none [registry-identity-missing]
registry-key-ambiguous¶
- Level: WARNING, INFO.
- Means: One ID registry key stands for several things: files whose names are one once NFC-normalised (where the file system keeps both), several held layout aliases (src/ or lib/) of one key, or one name held by several elements of an imported SBOM.
- SBOM effect: weaker: what the SBOM says is less sure.
- Pitloom did: Neither stands for the key: 'loom id generate' indexes none of the files, a lookup reuses no alias, 'loom id import' imports none of the elements. Each gets an id of its own; the SBOM is written.
- Tell the user: which key is ambiguous, as the line names it. They rename one of the files, or pin each element with 'loom id generate -e'. Do not rename files for them; ask first, and with nobody to ask, report it only.
- Lines:
WARNING: ID registry: <number> files have one key once NFC-normalised, none is indexed: <entity> [registry-key-ambiguous]
INFO: ID registry: <entity> matches more than one layout alias (<entities>); none reused [registry-key-ambiguous]
INFO: ID registry: <outcome> (name held by several elements): <entities> [registry-key-ambiguous]
registry-key-moved¶
- Level: INFO.
- Means: Files moved between a source layout and their installed path (src/pkg/a.py and pkg/a.py) are one file to the ID registry: a lookup through the layout alias keeps its id, and 'loom id generate' moves the entry to the file's own key.
- SBOM effect: none: the SBOM states what the input holds.
- Pitloom did: Said by every command that reads an ID registry (generate, project, wheel, env, embed-wheel, model, enrich, id generate, id import), the build hook, the library and loom.Run. Reused the id held under the other spelling of the path, and counted the files.
- Nothing to do: Nothing to do: each file keeps one id.
- Lines:
INFO: ID registry: <number> element(s) matched a registry key through the src/lib layout alias [registry-key-moved]
INFO: ID registry: <number> key(s) promoted from a layout alias [registry-key-moved]
INFO: ID registry: <number> key(s) of changed content took their layout alias's id [registry-key-moved]
INFO: ID registry: <number> file(s) imported under their layout alias: their own key holds other content [registry-key-moved]
registry-path-key-unusable¶
- Level: WARNING, INFO.
- Means: An element's path cannot key it in the ID registry: the file is outside the registry's project root or not there, not a regular file, a model with no unique file holding its SHA-256, or files whose path leads outside the root. The line says why.
- SBOM effect: none: the SBOM states what the input holds.
- Pitloom did: Said by every command that reads an ID registry (generate, project, wheel, env, embed-wheel, model, enrich, id generate, id import), the build hook, the library and loom.Run. Keyed the element by its name (a loom.Run file outside the root gets a new id; a hashed model with no unique file is not recorded). The SBOM is written.
- Nothing to do: Nothing to do: the id stays stable under the name. A path key needs the file below the registry's project root.
- Lines:
WARNING: ID registry: file <entity> is outside the project root '<root>'; minting a new spdxId [registry-path-key-unusable]
INFO: ID registry: <kind> <entity> keyed by its name: <key-reason> [registry-path-key-unusable]
INFO: ID registry: model <entity> imported under its name: no unique file with its SHA-256 [registry-path-key-unusable]
INFO: ID registry: model <entity> not recorded: no unique file with its SHA-256 [registry-path-key-unusable]
INFO: ID registry: -e <entity> stored by name: <key-reason> [registry-path-key-unusable]
INFO: ID registry: <number> file(s) keyed by their path as read: <key-reason> [registry-path-key-unusable]
Summaries¶
A summary is an INFO: line that reports what a run did under its own rule (a
count, the key it wrote), with no condition to name: it carries no code, and
there is nothing to do.
- 'loom id import' keys a dataset package by the path its name leads to, below the registry's root, as every run looks it up.
INFO: ID registry: dataset <entity> keyed by its path: <name>
- 'loom id import' keys a model whose file the SBOM does not list by the one file entry of the registry that records its SHA-256.
INFO: ID registry: model <entity> keyed by the registry's file with its SHA-256: <name>