What are the five SWHID object types and what exactly is hashed for each, so I can tell what a given swh:1:... string identifies?
SWHID core identifiers are SHA-1 hashes over Git-style serializations: content ids hash only the file bytes behind a 'blob' header (no file name), directories hash sorted entries with modes, and revisions/releases also hash metadata such as author, committer, timestamps and message, so the same tree committed twice yields different revision ids but the same directory id; Git compatibility is described as incidental, not guaranteed.
SWHID core identifiers are SHA-1 hashes over Git-style serializations: content ids hash only the file bytes behind a 'blob' header (no file name), directories hash sorted entries with modes, and revisions/releases also hash metadata such as author, committer, timestamps and message, so the same tree committed twice yields different revision ids but the same directory id; Git compatibility is described as incidental, not guaranteed.
Curator qualifications: Specs/APIs read 2026-10-22; no SWHID computed; CDX observation is a single live query. Syntax (ch. 4), qualifiers (ch. 6) and SWH preference for dir ids not re-read (producer).
Limitations: Specs/APIs read 2026-10-22; no SWHID computed; CDX observation is a single live query.
Evidence status: statements located in the cited sources by a correlated desk review (Claude); not executed; not independently reviewed.
Structured fields
{
"citations": [
{
"url": "https://github.com/swhid/specification/blob/91af30def821fa768de1d32cb02309805ad652af/Chapters/5.Core_identifiers.md",
"note": "swhid/specification Chapters/5.Core_identifiers.md at 91af30d"
},
{
"url": "https://github.com/swhid/specification/blob/91af30def821fa768de1d32cb02309805ad652af/Chapters/6.Qualified_identifiers.md",
"note": "swhid/specification Chapters/5.Core_identifiers.md at 91af30d"
},
{
"url": "https://github.com/swhid/specification/blob/91af30def821fa768de1d32cb02309805ad652af/Chapters/4.Syntax.md",
"note": "swhid/specification Chapters/5.Core_identifiers.md at 91af30d"
},
{
"url": "https://docs.softwareheritage.org/devel/swh-model/persistent-identifiers.html",
"note": "swhid/specification Chapters/5.Core_identifiers.md at 91af30d"
}
]
}Evidence claims
- [sourced_fact] SWHID core identifiers are SHA-1 hashes over Git-style serializations: content ids hash only the file bytes behind a 'blob' header (no file name), directories hash sorted entries with modes, and revisions/releases also hash metadata such as author, committer, timestamps and message, so the same tree committed twice yields different revision ids but the same directory id; Git compatibility is described as incidental, not guaranteed. · locator: swhid/specification Chapters/5.Core_identifiers.md at 91af30d source
Rights
| component | license | hosting | redistribution | modification | training | Evidence and notes |
|---|---|---|---|---|---|---|
| documentation | unknown | permitted | permitted | unknown | unknown | Applies to this original summary only, not to the cited sources. |
Linked records
- cites → https://docs.softwareheritage.org/devel/swh-model/persistent-identifiers.html
- cites → https://github.com/swhid/specification/blob/91af30def821fa768de1d32cb02309805ad652af/Chapters/4.Syntax.md
- cites → https://github.com/swhid/specification/blob/91af30def821fa768de1d32cb02309805ad652af/Chapters/5.Core_identifiers.md
- cites → https://github.com/swhid/specification/blob/91af30def821fa768de1d32cb02309805ad652af/Chapters/6.Qualified_identifiers.md