Skip to content

Add remaining examples: batch, stamps, CI/CD, verification - #72

Merged
crtahlin merged 2 commits into
mainfrom
feature/examples-remaining-four
Feb 25, 2026
Merged

crtahlin merged 2 commits into
mainfrom
feature/examples-remaining-four

Conversation

@crtahlin

Copy link
Copy Markdown

Summary

Details

Example Directory Key Features
Batch Processing 04-batch-processing/ Stamp reuse with --stamp-id, --size medium, -v
Stamp Management 07-stamp-management/ stamps list/info/check/pool-status lifecycle
CI/CD Integration 08-ci-cd-integration/ Artifact archival with --std "CI-ARTIFACT-V1", GitHub Actions + GitLab CI configs
Verification 09-verification/ SHA-256 integrity, tamper detection, --verify flag

Each example includes: README.md, demo.sh, run_demo.py, helper scripts, and sample data files (26 new files total).

All 4 demos verified against the dev gateway (provenance-gateway.dev.datafund.io).

Test plan

  • All 535 unit tests pass (171 new in test_examples.py)
  • 04-batch-processing/run_demo.py — 3 files uploaded with stamp reuse, integrity verified
  • 07-stamp-management/run_demo.py — upload, stamps list/info/check all succeed
  • 08-ci-cd-integration/run_demo.py — 2 artifacts archived and verified
  • 09-verification/run_demo.py — integrity + tamper detection + notary check pass

Closes #23, #26, #27, #28

…rification (#23, #26, #27, #28)

Complete the examples epic (#18) with the final four examples:
- 04-batch-processing: stamp reuse across multiple uploads with --stamp-id
- 07-stamp-management: full stamp lifecycle (list, info, check, pool-status)
- 08-ci-cd-integration: artifact archival with GitHub Actions/GitLab CI configs
- 09-verification: tamper detection, SHA-256 integrity, --verify flag
The CLI outputs 'Stamp ID Received: <hex> (Length: 64)' in verbose mode.
extract_stamp_id() was capturing the full string including the suffix,
causing stamp reuse and stamp info/check to fail on the gateway.

Fix: extract only the first token (hex ID) after the colon.
Update test helper to match real CLI output format.
@crtahlin
crtahlin merged commit a5829af into main Feb 25, 2026
11 checks passed
@crtahlin crtahlin mentioned this pull request Feb 26, 2026
15 tasks
@crtahlin
crtahlin deleted the feature/examples-remaining-four branch February 26, 2026 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Examples: Batch Processing / Cost Optimization

1 participant