Named prompt resolution (experimental)¶
spb.catalog.list_catalog(project_root) lists catalog entries without
rendering or fetching Git skills. spb.resolution.resolve_catalog_prompt
resolves one named entry with a required expected_harness. The result is
immutable and contains literal text, its SHA-256, identity, and available
provenance. Treat the text as literal; do not render it as another template.
spb.manifest.build_manifest builds the same versioned manifest format
used by the CLI without writing files. It hides all variable values by default.
The CLI retains its existing name-based redaction for compatibility; that
redaction does not reliably identify every secret.
Source resolution can fetch Git skills and write caches. It does not write a
release or perform CLI release-collision checks. Variable values are not
returned in the resolution metadata. Artifact resolution accepts version 1 and
legacy unversioned manifests, reads exact UTF-8 bytes, and verifies the normal
or compressed artifact hash. Legacy producer version and missing provenance
remain unknown; spb_version identifies the installed resolver, not the
artifact’s producer. source_sha256 for a live render hashes the UTF-8
encoding of the source text read by the renderer, after Python’s universal
newline conversion. An artifact’s source_sha256 is a claim from the
manifest; artifact verification does not read or verify that source file.
Likewise, artifact layout, fragment, and skill hashes are manifest claims, not
independently verified inputs. Missing legacy lists are reported as None;
an empty list means the manifest explicitly recorded no inputs.
A hash proves agreement with the supplied manifest, not its authenticity. Trust the catalog, source and manifest. Paths are checked against the project root when the catalog is read, but concurrent filesystem changes are not protected against. Do not use this experimental API as a security boundary.