scpe-protocol 0.1.2__tar.gz → 0.2.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. scpe_protocol-0.2.0/PKG-INFO +298 -0
  2. scpe_protocol-0.2.0/README.md +270 -0
  3. scpe_protocol-0.2.0/pyproject.toml +56 -0
  4. {scpe_protocol-0.1.2 → scpe_protocol-0.2.0}/reference/level1_lint.py +1 -1
  5. {scpe_protocol-0.1.2 → scpe_protocol-0.2.0}/reference/producer.py +98 -12
  6. {scpe_protocol-0.1.2 → scpe_protocol-0.2.0}/reference/standalone/verify_envelope.py +70 -5
  7. scpe_protocol-0.2.0/scpe/__init__.py +16 -0
  8. scpe_protocol-0.2.0/scpe/cli.py +262 -0
  9. scpe_protocol-0.2.0/scpe/diffinfo.py +65 -0
  10. scpe_protocol-0.2.0/scpe/results.py +224 -0
  11. scpe_protocol-0.2.0/scpe/seal.py +276 -0
  12. scpe_protocol-0.2.0/scpe/testrun.py +188 -0
  13. scpe_protocol-0.2.0/scpe/verify.py +143 -0
  14. scpe_protocol-0.2.0/scpe_protocol.egg-info/PKG-INFO +298 -0
  15. scpe_protocol-0.2.0/scpe_protocol.egg-info/SOURCES.txt +52 -0
  16. {scpe_protocol-0.1.2 → scpe_protocol-0.2.0}/scpe_protocol.egg-info/entry_points.txt +0 -1
  17. scpe_protocol-0.2.0/scpe_protocol.egg-info/requires.txt +4 -0
  18. {scpe_protocol-0.1.2 → scpe_protocol-0.2.0}/tests/test_action_yaml.py +191 -112
  19. scpe_protocol-0.2.0/tests/test_diff_resolution.py +124 -0
  20. {scpe_protocol-0.1.2 → scpe_protocol-0.2.0}/tests/test_differential_verifiers.py +54 -15
  21. scpe_protocol-0.2.0/tests/test_e2e_local.py +210 -0
  22. scpe_protocol-0.2.0/tests/test_empty_keys_anchor_parity.py +88 -0
  23. scpe_protocol-0.2.0/tests/test_entry_points.py +124 -0
  24. scpe_protocol-0.2.0/tests/test_gate_requires_forge_anchor.py +55 -0
  25. scpe_protocol-0.2.0/tests/test_key_source_anchor.py +178 -0
  26. scpe_protocol-0.2.0/tests/test_level2_implies_level1.py +112 -0
  27. scpe_protocol-0.2.0/tests/test_no_duplicate_verifier.py +110 -0
  28. scpe_protocol-0.2.0/tests/test_package_is_stdlib_only.py +83 -0
  29. scpe_protocol-0.2.0/tests/test_results_contract.py +135 -0
  30. scpe_protocol-0.2.0/tests/test_retired_envelope_format.py +237 -0
  31. scpe_protocol-0.2.0/tests/test_seal_render.py +143 -0
  32. scpe_protocol-0.2.0/tests/test_seal_results.py +138 -0
  33. scpe_protocol-0.2.0/tests/test_testrun.py +136 -0
  34. scpe_protocol-0.2.0/tests/test_verify_cli_parity.py +71 -0
  35. scpe_protocol-0.1.2/PKG-INFO +0 -221
  36. scpe_protocol-0.1.2/README.md +0 -190
  37. scpe_protocol-0.1.2/pyproject.toml +0 -42
  38. scpe_protocol-0.1.2/scpe/__init__.py +0 -2
  39. scpe_protocol-0.1.2/scpe/analyze.py +0 -67
  40. scpe_protocol-0.1.2/scpe/attestation.py +0 -361
  41. scpe_protocol-0.1.2/scpe/backends.py +0 -93
  42. scpe_protocol-0.1.2/scpe/changes.py +0 -90
  43. scpe_protocol-0.1.2/scpe/checks.py +0 -96
  44. scpe_protocol-0.1.2/scpe/cli.py +0 -1020
  45. scpe_protocol-0.1.2/scpe/contribute.py +0 -142
  46. scpe_protocol-0.1.2/scpe/envelope.py +0 -211
  47. scpe_protocol-0.1.2/scpe/handshake.py +0 -229
  48. scpe_protocol-0.1.2/scpe/identity.py +0 -245
  49. scpe_protocol-0.1.2/scpe/inspect.py +0 -73
  50. scpe_protocol-0.1.2/scpe/label.py +0 -153
  51. scpe_protocol-0.1.2/scpe/mcp_server.py +0 -334
  52. scpe_protocol-0.1.2/scpe/prompting.py +0 -33
  53. scpe_protocol-0.1.2/scpe/repo_snapshot.py +0 -74
  54. scpe_protocol-0.1.2/scpe/sandbox.py +0 -196
  55. scpe_protocol-0.1.2/scpe/scrub.py +0 -48
  56. scpe_protocol-0.1.2/scpe/seal.py +0 -117
  57. scpe_protocol-0.1.2/scpe/signing.py +0 -55
  58. scpe_protocol-0.1.2/scpe/workspace.py +0 -189
  59. scpe_protocol-0.1.2/scpe_protocol.egg-info/PKG-INFO +0 -221
  60. scpe_protocol-0.1.2/scpe_protocol.egg-info/SOURCES.txt +0 -77
  61. scpe_protocol-0.1.2/scpe_protocol.egg-info/requires.txt +0 -8
  62. scpe_protocol-0.1.2/tests/test_analyze.py +0 -76
  63. scpe_protocol-0.1.2/tests/test_attestation.py +0 -336
  64. scpe_protocol-0.1.2/tests/test_backends.py +0 -55
  65. scpe_protocol-0.1.2/tests/test_checks.py +0 -137
  66. scpe_protocol-0.1.2/tests/test_cli.py +0 -266
  67. scpe_protocol-0.1.2/tests/test_cli_attest.py +0 -230
  68. scpe_protocol-0.1.2/tests/test_cli_commands.py +0 -209
  69. scpe_protocol-0.1.2/tests/test_cli_seal.py +0 -133
  70. scpe_protocol-0.1.2/tests/test_cli_submit.py +0 -102
  71. scpe_protocol-0.1.2/tests/test_contribute.py +0 -61
  72. scpe_protocol-0.1.2/tests/test_e2e_local.py +0 -243
  73. scpe_protocol-0.1.2/tests/test_e2e_mock.py +0 -57
  74. scpe_protocol-0.1.2/tests/test_envelope.py +0 -171
  75. scpe_protocol-0.1.2/tests/test_envelope_identity.py +0 -82
  76. scpe_protocol-0.1.2/tests/test_handshake.py +0 -254
  77. scpe_protocol-0.1.2/tests/test_identity.py +0 -115
  78. scpe_protocol-0.1.2/tests/test_inspect.py +0 -75
  79. scpe_protocol-0.1.2/tests/test_label.py +0 -55
  80. scpe_protocol-0.1.2/tests/test_mcp.py +0 -327
  81. scpe_protocol-0.1.2/tests/test_prompting.py +0 -179
  82. scpe_protocol-0.1.2/tests/test_repo_snapshot.py +0 -68
  83. scpe_protocol-0.1.2/tests/test_sandbox.py +0 -121
  84. scpe_protocol-0.1.2/tests/test_scrub.py +0 -82
  85. scpe_protocol-0.1.2/tests/test_signing.py +0 -25
  86. scpe_protocol-0.1.2/tests/test_verify_identity.py +0 -44
  87. scpe_protocol-0.1.2/tests/test_workspace.py +0 -102
  88. {scpe_protocol-0.1.2 → scpe_protocol-0.2.0}/LICENSE +0 -0
  89. {scpe_protocol-0.1.2 → scpe_protocol-0.2.0}/LICENSE-SPEC +0 -0
  90. {scpe_protocol-0.1.2 → scpe_protocol-0.2.0}/reference/__init__.py +0 -0
  91. {scpe_protocol-0.1.2 → scpe_protocol-0.2.0}/reference/disclosure.py +0 -0
  92. {scpe_protocol-0.1.2 → scpe_protocol-0.2.0}/reference/standalone/__init__.py +0 -0
  93. {scpe_protocol-0.1.2 → scpe_protocol-0.2.0}/scpe/optin.py +0 -0
  94. {scpe_protocol-0.1.2 → scpe_protocol-0.2.0}/scpe_protocol.egg-info/dependency_links.txt +0 -0
  95. {scpe_protocol-0.1.2 → scpe_protocol-0.2.0}/scpe_protocol.egg-info/top_level.txt +0 -0
  96. {scpe_protocol-0.1.2 → scpe_protocol-0.2.0}/setup.cfg +0 -0
  97. {scpe_protocol-0.1.2 → scpe_protocol-0.2.0}/tests/test_disclosure.py +0 -0
  98. {scpe_protocol-0.1.2 → scpe_protocol-0.2.0}/tests/test_level1_lint.py +0 -0
  99. {scpe_protocol-0.1.2 → scpe_protocol-0.2.0}/tests/test_optin.py +0 -0
  100. {scpe_protocol-0.1.2 → scpe_protocol-0.2.0}/tests/test_producer_cli.py +0 -0
  101. {scpe_protocol-0.1.2 → scpe_protocol-0.2.0}/tests/test_producer_roundtrip.py +0 -0
  102. {scpe_protocol-0.1.2 → scpe_protocol-0.2.0}/tests/test_producer_submit.py +0 -0
  103. {scpe_protocol-0.1.2 → scpe_protocol-0.2.0}/tests/test_profiles_demo.py +0 -0
  104. {scpe_protocol-0.1.2 → scpe_protocol-0.2.0}/tests/test_seal.py +0 -0
  105. {scpe_protocol-0.1.2 → scpe_protocol-0.2.0}/tests/test_spec_vectors.py +0 -0
  106. {scpe_protocol-0.1.2 → scpe_protocol-0.2.0}/tests/test_ssrf_fetch.py +0 -0
  107. {scpe_protocol-0.1.2 → scpe_protocol-0.2.0}/tests/test_stress_100prs.py +0 -0
@@ -0,0 +1,298 @@
1
+ Metadata-Version: 2.4
2
+ Name: scpe-protocol
3
+ Version: 0.2.0
4
+ Summary: SCPE: an open protocol for verifiable provenance of any digital artifact — who signed a contribution or file, what they declared about AI use, and that nothing was tampered with, verified offline with no server and no new accounts. Ships the single-file reference verifier, its producer, and a CLI (`scpe`) that seals a pull request from it.
5
+ Author: Augusto Bastos
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/augbastos/scpe
8
+ Project-URL: Repository, https://github.com/augbastos/scpe
9
+ Project-URL: Documentation, https://github.com/augbastos/scpe/blob/main/spec/SPEC.md
10
+ Keywords: github,contributions,open-source,supply-chain,provenance,attestation,code-signing,ssh,sshsig,verification,ci
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Topic :: Software Development :: Version Control :: Git
16
+ Classifier: Topic :: Software Development :: Quality Assurance
17
+ Classifier: Topic :: Security
18
+ Classifier: Topic :: Security :: Cryptography
19
+ Classifier: Environment :: Console
20
+ Requires-Python: >=3.11
21
+ Description-Content-Type: text/markdown
22
+ License-File: LICENSE
23
+ License-File: LICENSE-SPEC
24
+ Provides-Extra: dev
25
+ Requires-Dist: pytest>=8; extra == "dev"
26
+ Requires-Dist: pyyaml>=6; extra == "dev"
27
+ Dynamic: license-file
28
+
29
+ <p align="center">
30
+ <img src="docs/assets/scpe-logo.svg" alt="SCPE" width="104" height="104">
31
+ </p>
32
+
33
+ <h1 align="center">SCPE</h1>
34
+
35
+ <p align="center">
36
+ <b>Know who signed a contribution — and which AI they said they used.</b><br>
37
+ A single envelope. Multiple specifications.<br>
38
+ <i>Merge code, not claims.</i>
39
+ </p>
40
+
41
+ <p align="center">
42
+ <a href="https://github.com/augbastos/scpe/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/augbastos/scpe/actions/workflows/ci.yml/badge.svg"></a>
43
+ <img alt="3 impls" src="https://img.shields.io/badge/verifiers-python%20%2B%20go%20%2B%20rust-41c257?style=flat-square&labelColor=0b0b0c">
44
+ <img alt="spec" src="https://img.shields.io/badge/spec-scpe%2F0.1-41c257?style=flat-square&labelColor=0b0b0c">
45
+ <img alt="python" src="https://img.shields.io/badge/python-3.11%2B-41c257?style=flat-square&labelColor=0b0b0c">
46
+ <img alt="license" src="https://img.shields.io/badge/code-Apache--2.0-41c257?style=flat-square&labelColor=0b0b0c">
47
+ <img alt="status" src="https://img.shields.io/badge/v0.2-early-d29922?style=flat-square&labelColor=0b0b0c">
48
+ </p>
49
+
50
+ An open protocol for two questions a pull request cannot answer today: **who signed this
51
+ change**, and **what did they declare about AI use** — with proof that the diff is
52
+ byte-for-byte what they signed. No SCPE server, no new accounts, no new keys: the contributor
53
+ signs with the SSH key already on their git host, and the owner re-derives everything with
54
+ `ssh-keygen` and `git`.
55
+
56
+ The AI-use disclosure is **signed**, not typed into a form. That is the whole difference. A
57
+ signature does not make a claim true — it makes it *attributable* and *tamper-evident*: bound
58
+ to one identity and to this exact diff, so it cannot be edited afterwards or quietly attached
59
+ to different code. Whether someone told the truth about their tools stays a human judgement;
60
+ SCPE makes sure the claim, the author, and the change cannot be separated.
61
+
62
+ When a PR arrives from someone you don't know — a person, or increasingly an AI agent — trust
63
+ today rests on a username, the platform, and reading the diff by eye. SCPE replaces the first
64
+ two with something the owner can check locally, and leaves the third where it belongs. There
65
+ is no SCPE server, so there is nothing to trust and nothing to shut down.
66
+
67
+ **SCPE standardizes evidence, not content.** It never says an artifact is good, true, or safe —
68
+ it standardizes how verifiable evidence (who produced it, that it's untampered, and any signed
69
+ attestations) travels with a hashed artifact and is checked offline.
70
+
71
+ **One core, many specifications.** *SCPE Core* — the envelope, identity, and verification — is
72
+ shared by every domain. Each *SCPE Specification* adds only its domain's conventions on top; the
73
+ `profile` label is surfaced but never changes the verify decision.
74
+
75
+ | Specification | For | Seals | Example |
76
+ |---|---|---|---|
77
+ | **SCPE-C** | Code | a diff (`code-change`) | a pull request |
78
+ | **SCPE-I** | Images | the file's bytes (`artifact`) | `.png`, `.jpg` |
79
+ | **SCPE-V** | Video | the file's bytes | `.mp4`, `.mov` |
80
+ | **SCPE-A** | Audio | the file's bytes | `.wav`, `.mp3` |
81
+ | **SCPE-M** | Models | the file's bytes | `.safetensors`, `.gguf` |
82
+ | **SCPE-DATA** | Datasets | the file's bytes | `.csv`, `.parquet` |
83
+ | **SCPE-D** | Documents | the file's bytes | `.pdf` |
84
+ | **SCPE-AR** | Any artifact | the file's bytes | any file |
85
+
86
+ Identity is a `(provider, subject)` pair checked against keys from a fixed host table (`github`,
87
+ `gitlab`, `codeberg`) or from a keys file — one the verifier's owner supplied, or one bundled
88
+ inside the submission. The manifest never carries a hostname, so a contribution can't steer the
89
+ verifier at an attacker's host; it *can* enclose its own keys, which is why the verifier reports
90
+ the anchor that answered as `key_source`.
91
+
92
+ **Open, and meant to stay that way.** SCPE is — and will always be — open source: the
93
+ specification and every reference implementation are free to read, implement, and fork. The
94
+ goal is a single, open, *universal* standard for artifact provenance, and a standard only
95
+ becomes universal if anyone can implement it without asking permission. So being open isn't a
96
+ license choice here; it's the whole point.
97
+
98
+ > **Attribution tells you *what*. Provenance proves *who* — and that nothing was tampered with.**
99
+
100
+ ## What SCPE is — and isn't
101
+
102
+ | **SCPE is** | **SCPE is not** |
103
+ |---|---|
104
+ | a minimal, transportable, offline-verifiable **evidence format** for a contribution or artifact — *who* produced it, proof it's *untampered*, and any *signed attestations* — with one core and thin per-domain profiles. | a code reviewer, a malware scanner, an artifact registry, a CI/CD security system, a compliance framework, or a hosted service. It doesn't judge whether the artifact is *good* or *safe* — only that the evidence checks out. |
105
+
106
+ For how SCPE relates to code review, build provenance, and attribution records, see
107
+ [docs/comparison.md](docs/comparison.md).
108
+
109
+ ## What ships in this repo
110
+
111
+ A protocol, and the smallest set of things needed to prove it is one. Nothing here writes,
112
+ reviews, or generates code — SCPE never looks at what a change *does*, only at who signed it and
113
+ whether it still matches.
114
+
115
+ | | What it is |
116
+ |---|---|
117
+ | [`spec/`](spec/) | The normative protocol: [SPEC.md](spec/SPEC.md), the threat model, the manifest schema, and 18 test vectors that are the conformance contract. |
118
+ | [`reference/standalone/verify_envelope.py`](reference/standalone/verify_envelope.py) | **The verifier.** One stdlib-only file that imports nothing else in this repo. |
119
+ | [`reference/producer.py`](reference/producer.py) | The producer (`scpe-envelope pack` / `pack-artifact` / `attest` / `verify` / `submit`) — signs an envelope with a key the contributor already owns. |
120
+ | [`impl/go/`](impl/go/), [`impl/rust/`](impl/rust/) | Two independent ports of the verifier, held to the same verdict by a differential test. |
121
+ | [`action.yml`](action.yml) | The maintainer-side GitHub Action. It runs the verifier above, on the same format, out of its own checkout. |
122
+ | [`scpe/`](scpe/) | The `scpe-protocol` package: a stdlib-only CLI over that same verifier, plus the seal the Action renders and the opt-in badge. |
123
+
124
+ The package is a *distribution* of the protocol, not a second implementation of it: `scpe verify`
125
+ is a passthrough whose JSON and exit code are byte-identical to running the single file directly.
126
+ There is one envelope format, one verification algorithm, and one verdict — everything above is a
127
+ different way of reaching the same one.
128
+
129
+ ## The assurance ladder
130
+
131
+ Adopt at the level that fits your project, and upgrade later without changing the format.
132
+
133
+ | Level | What the repo requires | Contributor cost |
134
+ |---|---|---|
135
+ | **L1 — Disclosure** | An AI-use disclosure is present (an `Assisted-by:` trailer or a PR-template checkbox). | Zero — it's the policy you may already have written, now enforced. |
136
+ | **L2 — Signed envelope** | A valid signed SCPE envelope: verifiable identity + an untampered diff. | One command to sign. |
137
+ | **L3 — Countersignature** *(roadmap)* | A third party (a reviewer, or the agent platform) co-signs. | — |
138
+
139
+ Higher levels include the lower ones. Most projects that already require AI disclosure need
140
+ **L1** today; the signature is the *mechanism*, the policy is the *product* — the same shape
141
+ SLSA uses to sell levels. See [docs/LEVELS.md](docs/LEVELS.md).
142
+
143
+ ## How it works
144
+
145
+ 1. **Contributor** (human or agent) packs the change into a signed *envelope*: a manifest
146
+ (target repo, base commit, a SHA-256 of the exact diff, an AI-use disclosure, and an
147
+ optional attribution record) signed with the SSH key already on their GitHub profile
148
+ (`ssh-keygen -Y sign -n scpe/0.1`). No new account.
149
+ 2. It travels inside a **normal pull request** — the diff in the branch, the ~1–2 KB signed
150
+ attestation embedded in the PR body. Merging leaves the repo history clean.
151
+ 3. The **owner's side** re-derives everything itself, with no SCPE server involved: the diff's
152
+ SHA-256 is recomputed from the PR and compared, and a seal is posted (or, in require mode, an
153
+ unverifiable PR is rejected). There is **one verifier, not two** — the Action runs the same
154
+ single-file verifier described below, out of its own checkout at the tag you pinned, so there
155
+ is no second implementation to drift. What can differ between runs is only which key anchor
156
+ answers, and the result always names it:
157
+ - **Through the Action**, a contribution cannot substitute the keys that judge it. The
158
+ transport carries `manifest.json` and `manifest.sig` and nothing else (SPEC §9), so there is
159
+ no enclosed key set to find and the keys come from `github.com/<login>.keys`, live, at
160
+ `key_source: forge`. A maintainer running air-gapped can hand it a keys file of their own
161
+ instead — that reports `flag`, and the seal says so, because "the keys this repo supplied"
162
+ is a different claim from "the keys GitHub serves for that account".
163
+ - **Run directly**, the same file is the general tool, auditable in ten minutes: it resolves a
164
+ keys file you pass it first, then any `keys` file bundled in the input, and only if neither
165
+ answers, one HTTPS GET to the contributor's host. It reports which one answered as
166
+ `key_source`, so an offline conformance run is never mistaken for a forge check.
167
+
168
+ ## What `verified` proves — and what it doesn't
169
+
170
+ **What a `verified` result means depends on where the verifier got the keys** — which it reports
171
+ as `key_source`. At `forge` it means exactly: *a key the contributor's git host publishes for
172
+ this account signed exactly this change and this disclosure, and the diff you're looking at
173
+ matches, byte-for-byte after normalizing line endings, what they signed.* At `flag` it means the
174
+ same, with the verifier owner's own key set standing in for the host. At `bundled` — keys
175
+ carried inside the submission, chosen by whoever sent it — it means only that these exact bytes
176
+ were signed by a key that arrived with them, and nothing about the named account. **A consumer
177
+ that needs forge-backed identity MUST require `key_source == "forge"`**, or supply the key set
178
+ itself and require `"flag"`.
179
+
180
+ Under every anchor it does **not** prove the code is safe or good (SCPE is not review), that the
181
+ disclosure is honest (a signature proves *who claimed*, not that the claim is true), or anything
182
+ if the key set that answered is compromised or attacker-chosen — that key set is the trust root.
183
+ Read [spec/THREAT_MODEL.md](spec/THREAT_MODEL.md) before relying on it: §2.1 lays out the three
184
+ anchors and what a verdict is worth under each.
185
+
186
+ ## For maintainers — turn it on
187
+
188
+ Add a workflow that verifies every PR and posts a seal. Set `require` to gate merges.
189
+
190
+ ```yaml
191
+ # .github/workflows/scpe.yml — see docs/workflows/scpe.yml for the fork-safe full version
192
+ - uses: augbastos/scpe@v0.2
193
+ with:
194
+ level: "1" # 1 = disclosure lint · 2 = signed envelope required
195
+ require: "true" # fail the check on anything not verifiable
196
+ ```
197
+
198
+ Pin the exact tag while the protocol is pre-1.0. `v0.2` is an **immutable alias** — it points at
199
+ one commit and is never moved, so a fix arrives as a new tag you adopt by editing the pin, not as
200
+ a silent change under the one you already wrote. It is also the first release in which the Action
201
+ verifies the `scpe/0.1` envelope itself; `v0.1.x` verified a different, now-removed format, so
202
+ upgrading from it is a behaviour change and not a patch — [docs/MIGRATION.md](docs/MIGRATION.md)
203
+ has the steps.
204
+
205
+ The Action uses a fork-safe two-job split: the untrusted job (which runs contributor code) holds
206
+ no secrets; only a trusted follow-up job posts the comment. Neither level installs anything in the
207
+ runner — both run stdlib-only Python straight out of the Action's own checkout, so the bytes that
208
+ decide a merge are the bytes of the tag you pinned, not whatever a package index serves that day.
209
+ Check out with `fetch-depth: 0`: level 2 recomputes the diff as `git diff <base>...<head>`, and the
210
+ default shallow checkout has no base commit to compare against.
211
+
212
+ The seal it posts carries more than the verdict — a risk band, a file/line count, an optional test
213
+ run. **Those are the Action's own reporting layer, not part of the protocol**: no status, no
214
+ `verified`, and nothing in `spec/` depends on them. The verdict is the verifier's; the rest is a
215
+ report.
216
+
217
+ ## Verify anything yourself
218
+
219
+ The reference verifier is one stdlib-only file — read it top to bottom and you know exactly what
220
+ a seal means:
221
+
222
+ ```bash
223
+ python reference/standalone/verify_envelope.py <envelope.zip> --keys <login.keys>
224
+ # → [OK] verified (attestations: none) [keys: flag]
225
+ # (or a precise reject status: tampered, signature-invalid, …)
226
+ ```
227
+
228
+ `[keys: …]` names the anchor that answered — `flag` here, because `--keys` supplied the key set.
229
+ Without that flag, a `keys` file sitting beside `manifest.json` in the input answers as
230
+ `bundled`, and only if neither is present does the verifier fetch from the contributor's host as
231
+ `forge`.
232
+
233
+ The 18 normative [test vectors](spec/test-vectors) are the conformance contract for **status**:
234
+ an implementation that produces their expected statuses conforms to the spec's status behaviour.
235
+ They don't pin every normative requirement — no vector carries an expected `key_source`, so
236
+ passing all eighteen does not by itself show that the `key_source` MUST is honoured; that one is
237
+ checked by inspection. Every vector ships its own `keys` file so the suite runs offline, and no
238
+ vector reaches the `forge` anchor.
239
+
240
+ **Cost** — measured on the Python reference (Ryzen 5 5600H, Python 3.14, `local` provider):
241
+
242
+ | | Measured |
243
+ |---|---|
244
+ | PR-body attestation (manifest + sig, base64) | 1.1–1.5 KB |
245
+ | Standalone envelope (3-file / 27-line PR, zipped) | ~1.5 KB |
246
+ | Verify wall-time | ~210 ms cold CLI · ~39 ms in a warm process |
247
+
248
+ An `artifact` subject adds its payload size on top of ~800 B fixed overhead. Order-of-magnitude,
249
+ single machine — not a formal benchmark suite.
250
+
251
+ ## Where it sits
252
+
253
+ - **Not code review.** Copilot / CodeRabbit judge whether the code is good. SCPE proves *who*
254
+ and *integrity*.
255
+ - **Complements attribution, doesn't compete.** [Agent Trace](https://github.com/cursor/agent-trace)
256
+ and [git-ai](https://github.com/git-ai-project/git-ai) *record* who/what wrote which lines,
257
+ self-reported; SCPE carries that record inside the signed manifest, making it verifiable.
258
+ - **A different layer from build provenance.** Sigstore / SLSA / in-toto attest *artifacts and
259
+ builds*; SCPE attests a *contribution*, at the pull-request boundary.
260
+ - **Direct prior art:** `patatt` + `b4` ([kernel.org](https://github.com/mricon/patatt)) have run
261
+ this exact pattern — self-sign a patch with a key the platform publishes, verify independently,
262
+ no CA, no server — on the Linux kernel's mailing list for years. SCPE applies the same shape to
263
+ the GitHub pull-request boundary.
264
+
265
+ ## Status
266
+
267
+ **v0.2 — early.** This is a specification plus a reference implementation (a single-file
268
+ verifier, a producer, and a maintainer-side Action). The full test suite — including a 100-PR
269
+ stress proof and a local end-to-end — runs on every push; the CI badge above is its live
270
+ result. Two more independent verifiers, in Go and Rust, reach the same verdict as the Python
271
+ reference on every one of the 18 normative vectors, and a differential test runs mutated
272
+ manifests through all three and confirms they never disagree. That three-way agreement covers
273
+ the path those vectors exercise — a directory input checked offline against a supplied keys
274
+ file, the `flag` anchor; no vector exercises the network fetch. The Rust port goes no further: it has no network key fetch (`--keys` is required) and
275
+ does not parse the zip-envelope or in-PR-body attestation input shapes that Python and Go both
276
+ accept. There is **no external adoption yet**. It is not a hosted service and never will be.
277
+
278
+ **`v0.1.x` is legacy: its signed-envelope path verifies a format that is not in this spec.** The
279
+ Action at those tags checked a second envelope format that shipped inside the package and was
280
+ deleted in `0.2.0`. A workflow still pinned there does not fail — it keeps posting seals for a
281
+ format nothing here produces, and once `0.2.0` reaches PyPI it breaks instead, because that
282
+ Action resolved its verifier from the package index at run time rather than from its own
283
+ checkout. [CHANGELOG.md](CHANGELOG.md) has what moved; [docs/MIGRATION.md](docs/MIGRATION.md)
284
+ has what to do about it.
285
+
286
+ ## Docs
287
+
288
+ - [spec/SPEC.md](spec/SPEC.md) — the protocol (`scpe/0.1`)
289
+ - [spec/THREAT_MODEL.md](spec/THREAT_MODEL.md) — what it does and does not defend against
290
+ - [spec/FAQ.md](spec/FAQ.md) — why SSH, why the PR body, relation to Agent Trace / Sigstore / patatt
291
+ - [docs/LEVELS.md](docs/LEVELS.md) — the L1 / L2 / L3 assurance ladder
292
+ - [CHANGELOG.md](CHANGELOG.md) — what changed per release, and which version axis it moved
293
+ - [docs/MIGRATION.md](docs/MIGRATION.md) — upgrading a `v0.1.x` pin, and why it doesn't warn you
294
+
295
+ ## License
296
+
297
+ Code is [Apache-2.0](LICENSE); the specification (everything under `spec/`) is
298
+ [CC-BY-4.0](LICENSE-SPEC). © 2026 Augusto Bastos.
@@ -0,0 +1,270 @@
1
+ <p align="center">
2
+ <img src="docs/assets/scpe-logo.svg" alt="SCPE" width="104" height="104">
3
+ </p>
4
+
5
+ <h1 align="center">SCPE</h1>
6
+
7
+ <p align="center">
8
+ <b>Know who signed a contribution — and which AI they said they used.</b><br>
9
+ A single envelope. Multiple specifications.<br>
10
+ <i>Merge code, not claims.</i>
11
+ </p>
12
+
13
+ <p align="center">
14
+ <a href="https://github.com/augbastos/scpe/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/augbastos/scpe/actions/workflows/ci.yml/badge.svg"></a>
15
+ <img alt="3 impls" src="https://img.shields.io/badge/verifiers-python%20%2B%20go%20%2B%20rust-41c257?style=flat-square&labelColor=0b0b0c">
16
+ <img alt="spec" src="https://img.shields.io/badge/spec-scpe%2F0.1-41c257?style=flat-square&labelColor=0b0b0c">
17
+ <img alt="python" src="https://img.shields.io/badge/python-3.11%2B-41c257?style=flat-square&labelColor=0b0b0c">
18
+ <img alt="license" src="https://img.shields.io/badge/code-Apache--2.0-41c257?style=flat-square&labelColor=0b0b0c">
19
+ <img alt="status" src="https://img.shields.io/badge/v0.2-early-d29922?style=flat-square&labelColor=0b0b0c">
20
+ </p>
21
+
22
+ An open protocol for two questions a pull request cannot answer today: **who signed this
23
+ change**, and **what did they declare about AI use** — with proof that the diff is
24
+ byte-for-byte what they signed. No SCPE server, no new accounts, no new keys: the contributor
25
+ signs with the SSH key already on their git host, and the owner re-derives everything with
26
+ `ssh-keygen` and `git`.
27
+
28
+ The AI-use disclosure is **signed**, not typed into a form. That is the whole difference. A
29
+ signature does not make a claim true — it makes it *attributable* and *tamper-evident*: bound
30
+ to one identity and to this exact diff, so it cannot be edited afterwards or quietly attached
31
+ to different code. Whether someone told the truth about their tools stays a human judgement;
32
+ SCPE makes sure the claim, the author, and the change cannot be separated.
33
+
34
+ When a PR arrives from someone you don't know — a person, or increasingly an AI agent — trust
35
+ today rests on a username, the platform, and reading the diff by eye. SCPE replaces the first
36
+ two with something the owner can check locally, and leaves the third where it belongs. There
37
+ is no SCPE server, so there is nothing to trust and nothing to shut down.
38
+
39
+ **SCPE standardizes evidence, not content.** It never says an artifact is good, true, or safe —
40
+ it standardizes how verifiable evidence (who produced it, that it's untampered, and any signed
41
+ attestations) travels with a hashed artifact and is checked offline.
42
+
43
+ **One core, many specifications.** *SCPE Core* — the envelope, identity, and verification — is
44
+ shared by every domain. Each *SCPE Specification* adds only its domain's conventions on top; the
45
+ `profile` label is surfaced but never changes the verify decision.
46
+
47
+ | Specification | For | Seals | Example |
48
+ |---|---|---|---|
49
+ | **SCPE-C** | Code | a diff (`code-change`) | a pull request |
50
+ | **SCPE-I** | Images | the file's bytes (`artifact`) | `.png`, `.jpg` |
51
+ | **SCPE-V** | Video | the file's bytes | `.mp4`, `.mov` |
52
+ | **SCPE-A** | Audio | the file's bytes | `.wav`, `.mp3` |
53
+ | **SCPE-M** | Models | the file's bytes | `.safetensors`, `.gguf` |
54
+ | **SCPE-DATA** | Datasets | the file's bytes | `.csv`, `.parquet` |
55
+ | **SCPE-D** | Documents | the file's bytes | `.pdf` |
56
+ | **SCPE-AR** | Any artifact | the file's bytes | any file |
57
+
58
+ Identity is a `(provider, subject)` pair checked against keys from a fixed host table (`github`,
59
+ `gitlab`, `codeberg`) or from a keys file — one the verifier's owner supplied, or one bundled
60
+ inside the submission. The manifest never carries a hostname, so a contribution can't steer the
61
+ verifier at an attacker's host; it *can* enclose its own keys, which is why the verifier reports
62
+ the anchor that answered as `key_source`.
63
+
64
+ **Open, and meant to stay that way.** SCPE is — and will always be — open source: the
65
+ specification and every reference implementation are free to read, implement, and fork. The
66
+ goal is a single, open, *universal* standard for artifact provenance, and a standard only
67
+ becomes universal if anyone can implement it without asking permission. So being open isn't a
68
+ license choice here; it's the whole point.
69
+
70
+ > **Attribution tells you *what*. Provenance proves *who* — and that nothing was tampered with.**
71
+
72
+ ## What SCPE is — and isn't
73
+
74
+ | **SCPE is** | **SCPE is not** |
75
+ |---|---|
76
+ | a minimal, transportable, offline-verifiable **evidence format** for a contribution or artifact — *who* produced it, proof it's *untampered*, and any *signed attestations* — with one core and thin per-domain profiles. | a code reviewer, a malware scanner, an artifact registry, a CI/CD security system, a compliance framework, or a hosted service. It doesn't judge whether the artifact is *good* or *safe* — only that the evidence checks out. |
77
+
78
+ For how SCPE relates to code review, build provenance, and attribution records, see
79
+ [docs/comparison.md](docs/comparison.md).
80
+
81
+ ## What ships in this repo
82
+
83
+ A protocol, and the smallest set of things needed to prove it is one. Nothing here writes,
84
+ reviews, or generates code — SCPE never looks at what a change *does*, only at who signed it and
85
+ whether it still matches.
86
+
87
+ | | What it is |
88
+ |---|---|
89
+ | [`spec/`](spec/) | The normative protocol: [SPEC.md](spec/SPEC.md), the threat model, the manifest schema, and 18 test vectors that are the conformance contract. |
90
+ | [`reference/standalone/verify_envelope.py`](reference/standalone/verify_envelope.py) | **The verifier.** One stdlib-only file that imports nothing else in this repo. |
91
+ | [`reference/producer.py`](reference/producer.py) | The producer (`scpe-envelope pack` / `pack-artifact` / `attest` / `verify` / `submit`) — signs an envelope with a key the contributor already owns. |
92
+ | [`impl/go/`](impl/go/), [`impl/rust/`](impl/rust/) | Two independent ports of the verifier, held to the same verdict by a differential test. |
93
+ | [`action.yml`](action.yml) | The maintainer-side GitHub Action. It runs the verifier above, on the same format, out of its own checkout. |
94
+ | [`scpe/`](scpe/) | The `scpe-protocol` package: a stdlib-only CLI over that same verifier, plus the seal the Action renders and the opt-in badge. |
95
+
96
+ The package is a *distribution* of the protocol, not a second implementation of it: `scpe verify`
97
+ is a passthrough whose JSON and exit code are byte-identical to running the single file directly.
98
+ There is one envelope format, one verification algorithm, and one verdict — everything above is a
99
+ different way of reaching the same one.
100
+
101
+ ## The assurance ladder
102
+
103
+ Adopt at the level that fits your project, and upgrade later without changing the format.
104
+
105
+ | Level | What the repo requires | Contributor cost |
106
+ |---|---|---|
107
+ | **L1 — Disclosure** | An AI-use disclosure is present (an `Assisted-by:` trailer or a PR-template checkbox). | Zero — it's the policy you may already have written, now enforced. |
108
+ | **L2 — Signed envelope** | A valid signed SCPE envelope: verifiable identity + an untampered diff. | One command to sign. |
109
+ | **L3 — Countersignature** *(roadmap)* | A third party (a reviewer, or the agent platform) co-signs. | — |
110
+
111
+ Higher levels include the lower ones. Most projects that already require AI disclosure need
112
+ **L1** today; the signature is the *mechanism*, the policy is the *product* — the same shape
113
+ SLSA uses to sell levels. See [docs/LEVELS.md](docs/LEVELS.md).
114
+
115
+ ## How it works
116
+
117
+ 1. **Contributor** (human or agent) packs the change into a signed *envelope*: a manifest
118
+ (target repo, base commit, a SHA-256 of the exact diff, an AI-use disclosure, and an
119
+ optional attribution record) signed with the SSH key already on their GitHub profile
120
+ (`ssh-keygen -Y sign -n scpe/0.1`). No new account.
121
+ 2. It travels inside a **normal pull request** — the diff in the branch, the ~1–2 KB signed
122
+ attestation embedded in the PR body. Merging leaves the repo history clean.
123
+ 3. The **owner's side** re-derives everything itself, with no SCPE server involved: the diff's
124
+ SHA-256 is recomputed from the PR and compared, and a seal is posted (or, in require mode, an
125
+ unverifiable PR is rejected). There is **one verifier, not two** — the Action runs the same
126
+ single-file verifier described below, out of its own checkout at the tag you pinned, so there
127
+ is no second implementation to drift. What can differ between runs is only which key anchor
128
+ answers, and the result always names it:
129
+ - **Through the Action**, a contribution cannot substitute the keys that judge it. The
130
+ transport carries `manifest.json` and `manifest.sig` and nothing else (SPEC §9), so there is
131
+ no enclosed key set to find and the keys come from `github.com/<login>.keys`, live, at
132
+ `key_source: forge`. A maintainer running air-gapped can hand it a keys file of their own
133
+ instead — that reports `flag`, and the seal says so, because "the keys this repo supplied"
134
+ is a different claim from "the keys GitHub serves for that account".
135
+ - **Run directly**, the same file is the general tool, auditable in ten minutes: it resolves a
136
+ keys file you pass it first, then any `keys` file bundled in the input, and only if neither
137
+ answers, one HTTPS GET to the contributor's host. It reports which one answered as
138
+ `key_source`, so an offline conformance run is never mistaken for a forge check.
139
+
140
+ ## What `verified` proves — and what it doesn't
141
+
142
+ **What a `verified` result means depends on where the verifier got the keys** — which it reports
143
+ as `key_source`. At `forge` it means exactly: *a key the contributor's git host publishes for
144
+ this account signed exactly this change and this disclosure, and the diff you're looking at
145
+ matches, byte-for-byte after normalizing line endings, what they signed.* At `flag` it means the
146
+ same, with the verifier owner's own key set standing in for the host. At `bundled` — keys
147
+ carried inside the submission, chosen by whoever sent it — it means only that these exact bytes
148
+ were signed by a key that arrived with them, and nothing about the named account. **A consumer
149
+ that needs forge-backed identity MUST require `key_source == "forge"`**, or supply the key set
150
+ itself and require `"flag"`.
151
+
152
+ Under every anchor it does **not** prove the code is safe or good (SCPE is not review), that the
153
+ disclosure is honest (a signature proves *who claimed*, not that the claim is true), or anything
154
+ if the key set that answered is compromised or attacker-chosen — that key set is the trust root.
155
+ Read [spec/THREAT_MODEL.md](spec/THREAT_MODEL.md) before relying on it: §2.1 lays out the three
156
+ anchors and what a verdict is worth under each.
157
+
158
+ ## For maintainers — turn it on
159
+
160
+ Add a workflow that verifies every PR and posts a seal. Set `require` to gate merges.
161
+
162
+ ```yaml
163
+ # .github/workflows/scpe.yml — see docs/workflows/scpe.yml for the fork-safe full version
164
+ - uses: augbastos/scpe@v0.2
165
+ with:
166
+ level: "1" # 1 = disclosure lint · 2 = signed envelope required
167
+ require: "true" # fail the check on anything not verifiable
168
+ ```
169
+
170
+ Pin the exact tag while the protocol is pre-1.0. `v0.2` is an **immutable alias** — it points at
171
+ one commit and is never moved, so a fix arrives as a new tag you adopt by editing the pin, not as
172
+ a silent change under the one you already wrote. It is also the first release in which the Action
173
+ verifies the `scpe/0.1` envelope itself; `v0.1.x` verified a different, now-removed format, so
174
+ upgrading from it is a behaviour change and not a patch — [docs/MIGRATION.md](docs/MIGRATION.md)
175
+ has the steps.
176
+
177
+ The Action uses a fork-safe two-job split: the untrusted job (which runs contributor code) holds
178
+ no secrets; only a trusted follow-up job posts the comment. Neither level installs anything in the
179
+ runner — both run stdlib-only Python straight out of the Action's own checkout, so the bytes that
180
+ decide a merge are the bytes of the tag you pinned, not whatever a package index serves that day.
181
+ Check out with `fetch-depth: 0`: level 2 recomputes the diff as `git diff <base>...<head>`, and the
182
+ default shallow checkout has no base commit to compare against.
183
+
184
+ The seal it posts carries more than the verdict — a risk band, a file/line count, an optional test
185
+ run. **Those are the Action's own reporting layer, not part of the protocol**: no status, no
186
+ `verified`, and nothing in `spec/` depends on them. The verdict is the verifier's; the rest is a
187
+ report.
188
+
189
+ ## Verify anything yourself
190
+
191
+ The reference verifier is one stdlib-only file — read it top to bottom and you know exactly what
192
+ a seal means:
193
+
194
+ ```bash
195
+ python reference/standalone/verify_envelope.py <envelope.zip> --keys <login.keys>
196
+ # → [OK] verified (attestations: none) [keys: flag]
197
+ # (or a precise reject status: tampered, signature-invalid, …)
198
+ ```
199
+
200
+ `[keys: …]` names the anchor that answered — `flag` here, because `--keys` supplied the key set.
201
+ Without that flag, a `keys` file sitting beside `manifest.json` in the input answers as
202
+ `bundled`, and only if neither is present does the verifier fetch from the contributor's host as
203
+ `forge`.
204
+
205
+ The 18 normative [test vectors](spec/test-vectors) are the conformance contract for **status**:
206
+ an implementation that produces their expected statuses conforms to the spec's status behaviour.
207
+ They don't pin every normative requirement — no vector carries an expected `key_source`, so
208
+ passing all eighteen does not by itself show that the `key_source` MUST is honoured; that one is
209
+ checked by inspection. Every vector ships its own `keys` file so the suite runs offline, and no
210
+ vector reaches the `forge` anchor.
211
+
212
+ **Cost** — measured on the Python reference (Ryzen 5 5600H, Python 3.14, `local` provider):
213
+
214
+ | | Measured |
215
+ |---|---|
216
+ | PR-body attestation (manifest + sig, base64) | 1.1–1.5 KB |
217
+ | Standalone envelope (3-file / 27-line PR, zipped) | ~1.5 KB |
218
+ | Verify wall-time | ~210 ms cold CLI · ~39 ms in a warm process |
219
+
220
+ An `artifact` subject adds its payload size on top of ~800 B fixed overhead. Order-of-magnitude,
221
+ single machine — not a formal benchmark suite.
222
+
223
+ ## Where it sits
224
+
225
+ - **Not code review.** Copilot / CodeRabbit judge whether the code is good. SCPE proves *who*
226
+ and *integrity*.
227
+ - **Complements attribution, doesn't compete.** [Agent Trace](https://github.com/cursor/agent-trace)
228
+ and [git-ai](https://github.com/git-ai-project/git-ai) *record* who/what wrote which lines,
229
+ self-reported; SCPE carries that record inside the signed manifest, making it verifiable.
230
+ - **A different layer from build provenance.** Sigstore / SLSA / in-toto attest *artifacts and
231
+ builds*; SCPE attests a *contribution*, at the pull-request boundary.
232
+ - **Direct prior art:** `patatt` + `b4` ([kernel.org](https://github.com/mricon/patatt)) have run
233
+ this exact pattern — self-sign a patch with a key the platform publishes, verify independently,
234
+ no CA, no server — on the Linux kernel's mailing list for years. SCPE applies the same shape to
235
+ the GitHub pull-request boundary.
236
+
237
+ ## Status
238
+
239
+ **v0.2 — early.** This is a specification plus a reference implementation (a single-file
240
+ verifier, a producer, and a maintainer-side Action). The full test suite — including a 100-PR
241
+ stress proof and a local end-to-end — runs on every push; the CI badge above is its live
242
+ result. Two more independent verifiers, in Go and Rust, reach the same verdict as the Python
243
+ reference on every one of the 18 normative vectors, and a differential test runs mutated
244
+ manifests through all three and confirms they never disagree. That three-way agreement covers
245
+ the path those vectors exercise — a directory input checked offline against a supplied keys
246
+ file, the `flag` anchor; no vector exercises the network fetch. The Rust port goes no further: it has no network key fetch (`--keys` is required) and
247
+ does not parse the zip-envelope or in-PR-body attestation input shapes that Python and Go both
248
+ accept. There is **no external adoption yet**. It is not a hosted service and never will be.
249
+
250
+ **`v0.1.x` is legacy: its signed-envelope path verifies a format that is not in this spec.** The
251
+ Action at those tags checked a second envelope format that shipped inside the package and was
252
+ deleted in `0.2.0`. A workflow still pinned there does not fail — it keeps posting seals for a
253
+ format nothing here produces, and once `0.2.0` reaches PyPI it breaks instead, because that
254
+ Action resolved its verifier from the package index at run time rather than from its own
255
+ checkout. [CHANGELOG.md](CHANGELOG.md) has what moved; [docs/MIGRATION.md](docs/MIGRATION.md)
256
+ has what to do about it.
257
+
258
+ ## Docs
259
+
260
+ - [spec/SPEC.md](spec/SPEC.md) — the protocol (`scpe/0.1`)
261
+ - [spec/THREAT_MODEL.md](spec/THREAT_MODEL.md) — what it does and does not defend against
262
+ - [spec/FAQ.md](spec/FAQ.md) — why SSH, why the PR body, relation to Agent Trace / Sigstore / patatt
263
+ - [docs/LEVELS.md](docs/LEVELS.md) — the L1 / L2 / L3 assurance ladder
264
+ - [CHANGELOG.md](CHANGELOG.md) — what changed per release, and which version axis it moved
265
+ - [docs/MIGRATION.md](docs/MIGRATION.md) — upgrading a `v0.1.x` pin, and why it doesn't warn you
266
+
267
+ ## License
268
+
269
+ Code is [Apache-2.0](LICENSE); the specification (everything under `spec/`) is
270
+ [CC-BY-4.0](LICENSE-SPEC). © 2026 Augusto Bastos.
@@ -0,0 +1,56 @@
1
+ [build-system]
2
+ # >=77 is the floor that reads `license` below as a PEP 639 SPDX expression rather than as
3
+ # legacy free text. Older setuptools still builds this file, it just records the license the
4
+ # old way — pinning the floor keeps the published metadata the same wherever it is built.
5
+ requires = ["setuptools>=77"]
6
+ build-backend = "setuptools.build_meta"
7
+
8
+ [project]
9
+ name = "scpe-protocol"
10
+ version = "0.2.0"
11
+ description = "SCPE: an open protocol for verifiable provenance of any digital artifact — who signed a contribution or file, what they declared about AI use, and that nothing was tampered with, verified offline with no server and no new accounts. Ships the single-file reference verifier, its producer, and a CLI (`scpe`) that seals a pull request from it."
12
+ readme = "README.md"
13
+ requires-python = ">=3.11"
14
+ # A bare SPDX expression (PEP 639), not `{ text = ... }` and not a `License ::` classifier:
15
+ # setuptools deprecates both older spellings, and a build that prints deprecation warnings
16
+ # is a build whose real warnings stop being read.
17
+ license = "Apache-2.0"
18
+ authors = [{ name = "Augusto Bastos" }]
19
+ keywords = ["github", "contributions", "open-source", "supply-chain", "provenance", "attestation", "code-signing", "ssh", "sshsig", "verification", "ci"]
20
+ classifiers = [
21
+ "Development Status :: 3 - Alpha",
22
+ "Intended Audience :: Developers",
23
+ "Programming Language :: Python :: 3.11",
24
+ "Programming Language :: Python :: 3.12",
25
+ "Topic :: Software Development :: Version Control :: Git",
26
+ "Topic :: Software Development :: Quality Assurance",
27
+ "Topic :: Security",
28
+ "Topic :: Security :: Cryptography",
29
+ "Environment :: Console",
30
+ ]
31
+ # Deliberately empty, and enforced by a test. Stdlib only is not minimalism for its own
32
+ # sake: it is what lets a CI job run this package straight from a pinned checkout
33
+ # (`PYTHONPATH=<action_path> python3 -m scpe.cli seal ...`) with no install step, so the
34
+ # bytes that verify a pull request are the bytes of the tag the caller pinned rather than
35
+ # whatever a package index happens to serve at that moment. Signatures are checked by
36
+ # `ssh-keygen -Y verify` (OpenSSH >= 8.2), not by a Python crypto library.
37
+ dependencies = []
38
+
39
+ [project.urls]
40
+ Homepage = "https://github.com/augbastos/scpe"
41
+ Repository = "https://github.com/augbastos/scpe"
42
+ Documentation = "https://github.com/augbastos/scpe/blob/main/spec/SPEC.md"
43
+
44
+ [project.optional-dependencies]
45
+ dev = ["pytest>=8", "pyyaml>=6"]
46
+
47
+ [project.scripts]
48
+ scpe = "scpe.cli:main"
49
+ scpe-envelope = "reference.producer:main"
50
+
51
+ # `reference*` is packaged alongside `scpe*` on purpose: reference/standalone/verify_envelope.py
52
+ # is where every verdict is produced, and scpe/verify.py imports it rather than carrying a
53
+ # second copy. Shipping one and not the other would fork the conformance surface that the
54
+ # eighteen normative test vectors and the Go and Rust ports are measured against.
55
+ [tool.setuptools.packages.find]
56
+ include = ["scpe*", "reference*"]
@@ -2,7 +2,7 @@
2
2
  """SCPE LEVEL 1 — the Action-facing wrapper around disclosure.py.
3
3
 
4
4
  Invoked by action.yml's untrusted step (no secrets, no signature, no envelope —
5
- `pipx install scpe` is never even run for this path). It reads the ambient GitHub
5
+ `pipx install scpe-protocol` is never even run for this path). It reads the ambient GitHub
6
6
  context the composite action's step already passed through as env vars, asks
7
7
  disclosure.detect_disclosure() the one question it answers, and writes results.json
8
8
  in the schema the trusted `seal` job (docs/workflows/scpe.yml) already reads: