szl-artifact-lineage
Audits the provenance chain of a result: every source, intermediate and output artifact as a versioned id, each transformation's required inputs and stages, producer uniqueness, and whether the digest a step consumed is the digest its parent actually produced, against independently read-back digests. Use when a figure or table must be traced to raw data, when a pipeline rerun silently used a newer input, or when a reviewer asks which version of the data produced which result. Not a workflow engine; it executes nothing.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- szl-artifact-lineage
- license
- Apache-2.0
- description
- Audits the provenance chain of a result: every source, intermediate and output artifact as a versioned id, each transformation's required inputs and stages, producer uniqueness, and whether the digest a step consumed is the digest its parent actually produced, against independently read-back digests. Use when a figure or table must be traced to raw data, when a pipeline rerun silently used a newer input, or when a reviewer asks which version of the data produced which result. Not a workflow engine; it executes nothing.
02 资源文件 5
- 资产文件assets/example.json1.9 KB
- 脚本kernel.py10.4 KB
- 参考文档references/contract.md2.7 KB
- 参考文档references/provenance.md1.3 KB
- 脚本scripts/run.py1.8 KB
03 SKILL.md 正文
Artifact lineage
Raw reads became a count matrix became a normalized matrix became Figure 3. Lineage asks whether each step consumed exactly the bytes the previous step produced, with no version substituted along the way. Python 3.9+, stdlib, offline; it reads no artifact files and runs no transformations.
Use when
- A reviewer asks which raw data version is behind a published table.
- A rerun produced a different figure and nobody is sure which intermediate changed.
- Two pipelines claim to share an input; their declared digests should match.
Quick start
python scripts/run.py assets/example.json --output lineage-report.json
The synthetic manifest (raw -> normalize -> summarize) returns
"status": "CONTINUITY_ON_SUPPLIED_DIGESTS" with stage order ["normalize", "summarize"], three
artifacts observed as MATCH and authentic: false. Substitute a parent digest and the status becomes
REVIEW_REQUIRED with PARENT_DIGEST_MISMATCH; omit a readback and the artifact is INPUT_NOT_OBSERVED.
Building the manifest
Read references/contract.md. Preserve each source, intermediate and result as a separate versioned id;
record every required stage and input, consumed and produced digests, and exact code/config digest
pins. A descriptive operation is data, never a command to run. Obtain readback digests independently
for the selected artifacts and place them in observed_digests; ids, filenames, timestamps or an absent
observation never count as matching bytes. Call szl_audit_lineage(manifest) in kernel.py.
What it does not do
A clean result means continuity on the supplied digests. It does not establish that the declared
transform actually ran, that a code pin was checked, that an unsigned record is authentic, or that the
result is scientifically correct. Supplied readbacks are caller assertions; use a separately trusted
retained record for adversarial integrity. Limits: 1 MiB input, 1000 artifacts and stages, 10,000 IO
entries. Provenance: references/provenance.md.
04 同仓库更多 Skills
szl-unit-invariants
Checks declared SI dimensions, allowlisted unit conversions, expected ranges and fixed pointwise invariants (equal, sum, difference, product, ratio) over selected measurement or simulation columns, flagging incompatible quantities, scale errors of 1000x and broken conservation checks. Use when merging instrument exports with different units, validating simulation output against conservation laws, or when a reviewer asks how unit errors were ruled out. Not an uncertainty-propagation or symbolic tool.
szl-uncertainty-lineage
Propagate declared measurement uncertainty through a small arithmetic dependency graph using a first-order delta approximation. Use when a researcher needs to see how corrected inputs or shared-source correlation change a reported standard uncertainty; require unit checks separately.
szl-typesafe-ai
TypeSafe/Jev: Choice/Noul/Score in code, not TypeScript types. System One models turn natural language and application state into probabilities that software can compose. Use when building routing, ranking, extraction, verification, or replacing an LLM prompt-and-parse step with structured decisions; also when brainstorming what TypeSafe could make possible. Do not use for TypeScript/Java/Rust static types, Zod/Pydantic/mypy/JSON Schema/protobuf codegen, or asking whether a pipeline is type-safe. At SZL, Jev is an optional second reader only.
demo
暂无简介
demo
暂无简介
szl-skill-update-review
Compare pinned local skill packages using inventories and a retained lock; report changed skills, files, declarations and reruns without approving safety or validity.