ssot-pack-contracts 0.2.19.dev8__tar.gz → 0.2.19.dev10__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ssot-pack-contracts
3
- Version: 0.2.19.dev8
3
+ Version: 0.2.19.dev10
4
4
  Summary: Shared governance-pack metadata, manifest, and packaged document contracts for SSOT.
5
5
  Author-email: Jacob Stewart <jacob@swarmauri.com>
6
6
  License-Expression: Apache-2.0
@@ -23,7 +23,7 @@ Description-Content-Type: text/markdown
23
23
  Requires-Dist: tomli>=2.0.1; python_version < "3.11"
24
24
 
25
25
  <div align="center">
26
- <h1>ssot-pack-contracts</h1>
26
+ <h1>🔷 ssot-pack-contracts</h1>
27
27
  <p><strong>Shared metadata, manifest, and packaged-document contracts for installable SSOT governance packs.</strong></p>
28
28
  </div>
29
29
 
@@ -33,14 +33,13 @@ Requires-Dist: tomli>=2.0.1; python_version < "3.11"
33
33
  <a href="https://pepy.tech/project/ssot-pack-contracts"><img src="https://static.pepy.tech/badge/ssot-pack-contracts" alt="Downloads" /></a>
34
34
  <a href="https://hits.sh/github.com/groupsum/ssot-registry/"><img src="https://hits.sh/github.com/groupsum/ssot-registry.svg?style=flat-square" alt="Repository hits" /></a>
35
35
  <!-- ssot-schema-badges:start -->
36
- <img src="https://img.shields.io/badge/schema_version-0.4.0-blue" alt="schema_version 0.4.0" />
37
- <img src="https://img.shields.io/badge/migration%20coverage-11%2F11-brightgreen" alt="Migration coverage 11/11" />
36
+ <img src="https://img.shields.io/badge/schema_version-0.5.0-blue" alt="schema_version 0.5.0" />
38
37
  <!-- ssot-schema-badges:end -->
39
38
  </div>
40
39
 
41
- `ssot-pack-contracts` is the shared Python contract layer for installable SSOT governance packs.
40
+ `ssot-pack-contracts` is the shared Python contract package for installable SSOT governance packs.
42
41
 
43
- It gives external governance packs one common API for declaring pack identity, schema compatibility, trust metadata, document manifests, and packaged ADR/SPEC resources. It does not mutate `.ssot/registry.json` and does not depend on [ssot-core](https://pypi.org/project/ssot-core/) or [ssot-cli](https://pypi.org/project/ssot-cli/).
42
+ It gives external governance packs one common API for declaring pack identity, schema compatibility, trust metadata, document manifests, and packaged ADR/SPEC resources. It is the contract layer between pack authors and the SSOT runtime: governance packs use it to expose stable package metadata, while [ssot-core](https://pypi.org/project/ssot-core/) and [ssot-cli](https://pypi.org/project/ssot-cli/) use those contracts to inspect, preflight, and synchronize pack content.
44
43
 
45
44
  - GitHub: https://github.com/groupsum/ssot-registry/tree/main/pkgs/ssot-pack-contracts
46
45
  - PyPI: https://pypi.org/project/ssot-pack-contracts/
@@ -54,25 +53,31 @@ It gives external governance packs one common API for declaring pack identity, s
54
53
  - Packaged document text and byte readers
55
54
  - Document ID listing and manifest-entry lookup helpers
56
55
  - Fail-closed validation errors for invalid pack metadata or manifest entries
56
+ - A reusable binder that exposes the same root API from every compatible governance pack
57
57
 
58
58
  ## When to use this package
59
59
 
60
- Use `ssot-pack-contracts` when you are building an installable governance pack that ships SSOT ADRs, SPECs, or other governed pack documents as Python package resources.
60
+ Use `ssot-pack-contracts` when you want:
61
+
62
+ - to publish an installable governance pack that ships governed ADR, SPEC, or packaged policy documents
63
+ - a stable root API for pack metadata, document manifests, and packaged document resources
64
+ - fail-closed validation around pack identity, compatibility, trust metadata, and manifest shape
65
+ - the package contract consumed by SSOT pack inspection, preflight, and synchronization workflows
61
66
 
62
67
  Use another package when you want:
63
68
 
64
- - [ssot-contracts](https://pypi.org/project/ssot-contracts/) for canonical SSOT schemas, templates, and generated contract metadata
69
+ - [ssot-contracts](https://pypi.org/project/ssot-contracts/) for canonical SSOT schemas, registry templates, and generated contract metadata
65
70
  - [ssot-core](https://pypi.org/project/ssot-core/) for registry loading, validation, synchronization, pack ingestion, and mutation APIs
66
- - [ssot-cli](https://pypi.org/project/ssot-cli/) for operator commands such as pack inspection, preflight checks, and sync workflows
71
+ - [ssot-cli](https://pypi.org/project/ssot-cli/) for command-line pack inspection, preflight checks, and sync workflows
67
72
  - [ssot-registry](https://pypi.org/project/ssot-registry/) for the umbrella runtime bundle
68
73
 
69
74
  ## Governance packs using this contract
70
75
 
71
- These governance packs are expected to expose the `ssot-pack-contracts` API surface from their package root:
76
+ These governance packs implement this contract and expose the `ssot-pack-contracts` API surface from their package root:
72
77
 
73
- - [seo-aeo-aieo-governance-pack](https://pypi.org/project/seo-aeo-aieo-governance-pack/) packages SEO, AEO, and AiEO governance ADR/SPEC content.
74
- - [digital-signature-governance-pack](https://pypi.org/project/digital-signature-governance-pack/) packages digital-signature governance ADR/SPEC content.
75
- - [cache-freshness-governance-pack](https://pypi.org/project/cache-freshness-governance-pack/) packages cache freshness and cache governance ADR/SPEC content.
78
+ - [seo-aeo-aieo-governance-pack](https://pypi.org/project/seo-aeo-aieo-governance-pack/) supplies governed SEO, AEO, and AiEO decision/specification templates for search, answer-engine, and AI-engine optimization work.
79
+ - [cache-freshness-governance-pack](https://pypi.org/project/cache-freshness-governance-pack/) supplies HTTP caching and freshness governance templates for cache-control, ETag, CDN, invalidation, and stale-content policy surfaces.
80
+ - [digital-signature-governance-pack](https://pypi.org/project/digital-signature-governance-pack/) supplies digital-signature, electronic-signature, timestamping, validation, archival, and assurance-language governance templates.
76
81
 
77
82
  Each pack should depend on `ssot-pack-contracts`, include a packaged `metadata.json`, include declared document manifests, and bind the shared API at the package root.
78
83
 
@@ -130,8 +135,8 @@ Required top-level fields:
130
135
  },
131
136
  "compatibility": {
132
137
  "python": ">=3.10,<3.15",
133
- "ssot_registry_schema": ">=0.4.0,<0.5.0",
134
- "ssot_pack_contract": ">=0.2.18,<0.3.0"
138
+ "ssot_registry_schema": ">=0.5.0,<0.6.0",
139
+ "ssot_pack_contract": ">=0.2.19,<0.3.0"
135
140
  },
136
141
  "trust": {
137
142
  "origin": "extension-pack",
@@ -167,6 +172,8 @@ from ssot_pack_contracts import (
167
172
  )
168
173
  ```
169
174
 
175
+ ## Programmatic usage
176
+
170
177
  Load pack identity and schema version:
171
178
 
172
179
  ```python
@@ -195,11 +202,22 @@ entry = get_packaged_document_entry("seo_aeo_aieo_governance_pack", document_ids
195
202
  body = read_packaged_document_text("seo_aeo_aieo_governance_pack", "spec", entry["filename"])
196
203
  ```
197
204
 
205
+ Bind the contract into a pack root:
206
+
207
+ ```python
208
+ from ssot_pack_contracts import bind_pack_contract
209
+
210
+ pack_api = bind_pack_contract("seo_aeo_aieo_governance_pack")
211
+ print(pack_api["__ssot_package_name__"])
212
+ print(pack_api["list_packaged_document_ids"]("spec"))
213
+ ```
214
+
198
215
  ## Contract rules
199
216
 
200
217
  - Pack root APIs must be loaded from `ssot-pack-contracts`, not copied by hand.
201
218
  - `metadata.schema_version` is required and must be available through `load_pack_schema_version`.
202
219
  - `metadata.ssot_package_name` is required and must match `metadata.origin.package_name`.
220
+ - `metadata.origin.id` must use the `pack:*` identity model.
203
221
  - `metadata.origin.import_name` must match the installed import package.
204
222
  - `metadata.origin.kind` must be `governance-pack`.
205
223
  - `metadata.trust.origin` must be `extension-pack`.
@@ -212,7 +230,7 @@ body = read_packaged_document_text("seo_aeo_aieo_governance_pack", "spec", entry
212
230
 
213
231
  - Package type: governance-pack contract package
214
232
  - Depends on: standard library only, plus `tomli` on Python earlier than 3.11
215
- - Used by: governance packs such as [seo-aeo-aieo-governance-pack](https://pypi.org/project/seo-aeo-aieo-governance-pack/), [digital-signature-governance-pack](https://pypi.org/project/digital-signature-governance-pack/), and [cache-freshness-governance-pack](https://pypi.org/project/cache-freshness-governance-pack/)
233
+ - Used by: governance packs such as [seo-aeo-aieo-governance-pack](https://pypi.org/project/seo-aeo-aieo-governance-pack/), [cache-freshness-governance-pack](https://pypi.org/project/cache-freshness-governance-pack/), and [digital-signature-governance-pack](https://pypi.org/project/digital-signature-governance-pack/)
216
234
  - Consumed by: [ssot-core](https://pypi.org/project/ssot-core/) pack ingestion and [ssot-cli](https://pypi.org/project/ssot-cli/) pack inspection, preflight, and sync workflows
217
235
 
218
236
  If you are publishing an SSOT governance pack, use `ssot-pack-contracts` as the root API contract. If you are consuming packs, use [ssot-cli](https://pypi.org/project/ssot-cli/) or [ssot-core](https://pypi.org/project/ssot-core/) to inspect, preflight, and synchronize pack content into a governed registry.
@@ -1,5 +1,5 @@
1
1
  <div align="center">
2
- <h1>ssot-pack-contracts</h1>
2
+ <h1>🔷 ssot-pack-contracts</h1>
3
3
  <p><strong>Shared metadata, manifest, and packaged-document contracts for installable SSOT governance packs.</strong></p>
4
4
  </div>
5
5
 
@@ -9,14 +9,13 @@
9
9
  <a href="https://pepy.tech/project/ssot-pack-contracts"><img src="https://static.pepy.tech/badge/ssot-pack-contracts" alt="Downloads" /></a>
10
10
  <a href="https://hits.sh/github.com/groupsum/ssot-registry/"><img src="https://hits.sh/github.com/groupsum/ssot-registry.svg?style=flat-square" alt="Repository hits" /></a>
11
11
  <!-- ssot-schema-badges:start -->
12
- <img src="https://img.shields.io/badge/schema_version-0.4.0-blue" alt="schema_version 0.4.0" />
13
- <img src="https://img.shields.io/badge/migration%20coverage-11%2F11-brightgreen" alt="Migration coverage 11/11" />
12
+ <img src="https://img.shields.io/badge/schema_version-0.5.0-blue" alt="schema_version 0.5.0" />
14
13
  <!-- ssot-schema-badges:end -->
15
14
  </div>
16
15
 
17
- `ssot-pack-contracts` is the shared Python contract layer for installable SSOT governance packs.
16
+ `ssot-pack-contracts` is the shared Python contract package for installable SSOT governance packs.
18
17
 
19
- It gives external governance packs one common API for declaring pack identity, schema compatibility, trust metadata, document manifests, and packaged ADR/SPEC resources. It does not mutate `.ssot/registry.json` and does not depend on [ssot-core](https://pypi.org/project/ssot-core/) or [ssot-cli](https://pypi.org/project/ssot-cli/).
18
+ It gives external governance packs one common API for declaring pack identity, schema compatibility, trust metadata, document manifests, and packaged ADR/SPEC resources. It is the contract layer between pack authors and the SSOT runtime: governance packs use it to expose stable package metadata, while [ssot-core](https://pypi.org/project/ssot-core/) and [ssot-cli](https://pypi.org/project/ssot-cli/) use those contracts to inspect, preflight, and synchronize pack content.
20
19
 
21
20
  - GitHub: https://github.com/groupsum/ssot-registry/tree/main/pkgs/ssot-pack-contracts
22
21
  - PyPI: https://pypi.org/project/ssot-pack-contracts/
@@ -30,25 +29,31 @@ It gives external governance packs one common API for declaring pack identity, s
30
29
  - Packaged document text and byte readers
31
30
  - Document ID listing and manifest-entry lookup helpers
32
31
  - Fail-closed validation errors for invalid pack metadata or manifest entries
32
+ - A reusable binder that exposes the same root API from every compatible governance pack
33
33
 
34
34
  ## When to use this package
35
35
 
36
- Use `ssot-pack-contracts` when you are building an installable governance pack that ships SSOT ADRs, SPECs, or other governed pack documents as Python package resources.
36
+ Use `ssot-pack-contracts` when you want:
37
+
38
+ - to publish an installable governance pack that ships governed ADR, SPEC, or packaged policy documents
39
+ - a stable root API for pack metadata, document manifests, and packaged document resources
40
+ - fail-closed validation around pack identity, compatibility, trust metadata, and manifest shape
41
+ - the package contract consumed by SSOT pack inspection, preflight, and synchronization workflows
37
42
 
38
43
  Use another package when you want:
39
44
 
40
- - [ssot-contracts](https://pypi.org/project/ssot-contracts/) for canonical SSOT schemas, templates, and generated contract metadata
45
+ - [ssot-contracts](https://pypi.org/project/ssot-contracts/) for canonical SSOT schemas, registry templates, and generated contract metadata
41
46
  - [ssot-core](https://pypi.org/project/ssot-core/) for registry loading, validation, synchronization, pack ingestion, and mutation APIs
42
- - [ssot-cli](https://pypi.org/project/ssot-cli/) for operator commands such as pack inspection, preflight checks, and sync workflows
47
+ - [ssot-cli](https://pypi.org/project/ssot-cli/) for command-line pack inspection, preflight checks, and sync workflows
43
48
  - [ssot-registry](https://pypi.org/project/ssot-registry/) for the umbrella runtime bundle
44
49
 
45
50
  ## Governance packs using this contract
46
51
 
47
- These governance packs are expected to expose the `ssot-pack-contracts` API surface from their package root:
52
+ These governance packs implement this contract and expose the `ssot-pack-contracts` API surface from their package root:
48
53
 
49
- - [seo-aeo-aieo-governance-pack](https://pypi.org/project/seo-aeo-aieo-governance-pack/) packages SEO, AEO, and AiEO governance ADR/SPEC content.
50
- - [digital-signature-governance-pack](https://pypi.org/project/digital-signature-governance-pack/) packages digital-signature governance ADR/SPEC content.
51
- - [cache-freshness-governance-pack](https://pypi.org/project/cache-freshness-governance-pack/) packages cache freshness and cache governance ADR/SPEC content.
54
+ - [seo-aeo-aieo-governance-pack](https://pypi.org/project/seo-aeo-aieo-governance-pack/) supplies governed SEO, AEO, and AiEO decision/specification templates for search, answer-engine, and AI-engine optimization work.
55
+ - [cache-freshness-governance-pack](https://pypi.org/project/cache-freshness-governance-pack/) supplies HTTP caching and freshness governance templates for cache-control, ETag, CDN, invalidation, and stale-content policy surfaces.
56
+ - [digital-signature-governance-pack](https://pypi.org/project/digital-signature-governance-pack/) supplies digital-signature, electronic-signature, timestamping, validation, archival, and assurance-language governance templates.
52
57
 
53
58
  Each pack should depend on `ssot-pack-contracts`, include a packaged `metadata.json`, include declared document manifests, and bind the shared API at the package root.
54
59
 
@@ -106,8 +111,8 @@ Required top-level fields:
106
111
  },
107
112
  "compatibility": {
108
113
  "python": ">=3.10,<3.15",
109
- "ssot_registry_schema": ">=0.4.0,<0.5.0",
110
- "ssot_pack_contract": ">=0.2.18,<0.3.0"
114
+ "ssot_registry_schema": ">=0.5.0,<0.6.0",
115
+ "ssot_pack_contract": ">=0.2.19,<0.3.0"
111
116
  },
112
117
  "trust": {
113
118
  "origin": "extension-pack",
@@ -143,6 +148,8 @@ from ssot_pack_contracts import (
143
148
  )
144
149
  ```
145
150
 
151
+ ## Programmatic usage
152
+
146
153
  Load pack identity and schema version:
147
154
 
148
155
  ```python
@@ -171,11 +178,22 @@ entry = get_packaged_document_entry("seo_aeo_aieo_governance_pack", document_ids
171
178
  body = read_packaged_document_text("seo_aeo_aieo_governance_pack", "spec", entry["filename"])
172
179
  ```
173
180
 
181
+ Bind the contract into a pack root:
182
+
183
+ ```python
184
+ from ssot_pack_contracts import bind_pack_contract
185
+
186
+ pack_api = bind_pack_contract("seo_aeo_aieo_governance_pack")
187
+ print(pack_api["__ssot_package_name__"])
188
+ print(pack_api["list_packaged_document_ids"]("spec"))
189
+ ```
190
+
174
191
  ## Contract rules
175
192
 
176
193
  - Pack root APIs must be loaded from `ssot-pack-contracts`, not copied by hand.
177
194
  - `metadata.schema_version` is required and must be available through `load_pack_schema_version`.
178
195
  - `metadata.ssot_package_name` is required and must match `metadata.origin.package_name`.
196
+ - `metadata.origin.id` must use the `pack:*` identity model.
179
197
  - `metadata.origin.import_name` must match the installed import package.
180
198
  - `metadata.origin.kind` must be `governance-pack`.
181
199
  - `metadata.trust.origin` must be `extension-pack`.
@@ -188,7 +206,7 @@ body = read_packaged_document_text("seo_aeo_aieo_governance_pack", "spec", entry
188
206
 
189
207
  - Package type: governance-pack contract package
190
208
  - Depends on: standard library only, plus `tomli` on Python earlier than 3.11
191
- - Used by: governance packs such as [seo-aeo-aieo-governance-pack](https://pypi.org/project/seo-aeo-aieo-governance-pack/), [digital-signature-governance-pack](https://pypi.org/project/digital-signature-governance-pack/), and [cache-freshness-governance-pack](https://pypi.org/project/cache-freshness-governance-pack/)
209
+ - Used by: governance packs such as [seo-aeo-aieo-governance-pack](https://pypi.org/project/seo-aeo-aieo-governance-pack/), [cache-freshness-governance-pack](https://pypi.org/project/cache-freshness-governance-pack/), and [digital-signature-governance-pack](https://pypi.org/project/digital-signature-governance-pack/)
192
210
  - Consumed by: [ssot-core](https://pypi.org/project/ssot-core/) pack ingestion and [ssot-cli](https://pypi.org/project/ssot-cli/) pack inspection, preflight, and sync workflows
193
211
 
194
212
  If you are publishing an SSOT governance pack, use `ssot-pack-contracts` as the root API contract. If you are consuming packs, use [ssot-cli](https://pypi.org/project/ssot-cli/) or [ssot-core](https://pypi.org/project/ssot-core/) to inspect, preflight, and synchronize pack content into a governed registry.
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "ssot-pack-contracts"
7
- version = "0.2.19.dev8"
7
+ version = "0.2.19.dev10"
8
8
  description = "Shared governance-pack metadata, manifest, and packaged document contracts for SSOT."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10,<3.15"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ssot-pack-contracts
3
- Version: 0.2.19.dev8
3
+ Version: 0.2.19.dev10
4
4
  Summary: Shared governance-pack metadata, manifest, and packaged document contracts for SSOT.
5
5
  Author-email: Jacob Stewart <jacob@swarmauri.com>
6
6
  License-Expression: Apache-2.0
@@ -23,7 +23,7 @@ Description-Content-Type: text/markdown
23
23
  Requires-Dist: tomli>=2.0.1; python_version < "3.11"
24
24
 
25
25
  <div align="center">
26
- <h1>ssot-pack-contracts</h1>
26
+ <h1>🔷 ssot-pack-contracts</h1>
27
27
  <p><strong>Shared metadata, manifest, and packaged-document contracts for installable SSOT governance packs.</strong></p>
28
28
  </div>
29
29
 
@@ -33,14 +33,13 @@ Requires-Dist: tomli>=2.0.1; python_version < "3.11"
33
33
  <a href="https://pepy.tech/project/ssot-pack-contracts"><img src="https://static.pepy.tech/badge/ssot-pack-contracts" alt="Downloads" /></a>
34
34
  <a href="https://hits.sh/github.com/groupsum/ssot-registry/"><img src="https://hits.sh/github.com/groupsum/ssot-registry.svg?style=flat-square" alt="Repository hits" /></a>
35
35
  <!-- ssot-schema-badges:start -->
36
- <img src="https://img.shields.io/badge/schema_version-0.4.0-blue" alt="schema_version 0.4.0" />
37
- <img src="https://img.shields.io/badge/migration%20coverage-11%2F11-brightgreen" alt="Migration coverage 11/11" />
36
+ <img src="https://img.shields.io/badge/schema_version-0.5.0-blue" alt="schema_version 0.5.0" />
38
37
  <!-- ssot-schema-badges:end -->
39
38
  </div>
40
39
 
41
- `ssot-pack-contracts` is the shared Python contract layer for installable SSOT governance packs.
40
+ `ssot-pack-contracts` is the shared Python contract package for installable SSOT governance packs.
42
41
 
43
- It gives external governance packs one common API for declaring pack identity, schema compatibility, trust metadata, document manifests, and packaged ADR/SPEC resources. It does not mutate `.ssot/registry.json` and does not depend on [ssot-core](https://pypi.org/project/ssot-core/) or [ssot-cli](https://pypi.org/project/ssot-cli/).
42
+ It gives external governance packs one common API for declaring pack identity, schema compatibility, trust metadata, document manifests, and packaged ADR/SPEC resources. It is the contract layer between pack authors and the SSOT runtime: governance packs use it to expose stable package metadata, while [ssot-core](https://pypi.org/project/ssot-core/) and [ssot-cli](https://pypi.org/project/ssot-cli/) use those contracts to inspect, preflight, and synchronize pack content.
44
43
 
45
44
  - GitHub: https://github.com/groupsum/ssot-registry/tree/main/pkgs/ssot-pack-contracts
46
45
  - PyPI: https://pypi.org/project/ssot-pack-contracts/
@@ -54,25 +53,31 @@ It gives external governance packs one common API for declaring pack identity, s
54
53
  - Packaged document text and byte readers
55
54
  - Document ID listing and manifest-entry lookup helpers
56
55
  - Fail-closed validation errors for invalid pack metadata or manifest entries
56
+ - A reusable binder that exposes the same root API from every compatible governance pack
57
57
 
58
58
  ## When to use this package
59
59
 
60
- Use `ssot-pack-contracts` when you are building an installable governance pack that ships SSOT ADRs, SPECs, or other governed pack documents as Python package resources.
60
+ Use `ssot-pack-contracts` when you want:
61
+
62
+ - to publish an installable governance pack that ships governed ADR, SPEC, or packaged policy documents
63
+ - a stable root API for pack metadata, document manifests, and packaged document resources
64
+ - fail-closed validation around pack identity, compatibility, trust metadata, and manifest shape
65
+ - the package contract consumed by SSOT pack inspection, preflight, and synchronization workflows
61
66
 
62
67
  Use another package when you want:
63
68
 
64
- - [ssot-contracts](https://pypi.org/project/ssot-contracts/) for canonical SSOT schemas, templates, and generated contract metadata
69
+ - [ssot-contracts](https://pypi.org/project/ssot-contracts/) for canonical SSOT schemas, registry templates, and generated contract metadata
65
70
  - [ssot-core](https://pypi.org/project/ssot-core/) for registry loading, validation, synchronization, pack ingestion, and mutation APIs
66
- - [ssot-cli](https://pypi.org/project/ssot-cli/) for operator commands such as pack inspection, preflight checks, and sync workflows
71
+ - [ssot-cli](https://pypi.org/project/ssot-cli/) for command-line pack inspection, preflight checks, and sync workflows
67
72
  - [ssot-registry](https://pypi.org/project/ssot-registry/) for the umbrella runtime bundle
68
73
 
69
74
  ## Governance packs using this contract
70
75
 
71
- These governance packs are expected to expose the `ssot-pack-contracts` API surface from their package root:
76
+ These governance packs implement this contract and expose the `ssot-pack-contracts` API surface from their package root:
72
77
 
73
- - [seo-aeo-aieo-governance-pack](https://pypi.org/project/seo-aeo-aieo-governance-pack/) packages SEO, AEO, and AiEO governance ADR/SPEC content.
74
- - [digital-signature-governance-pack](https://pypi.org/project/digital-signature-governance-pack/) packages digital-signature governance ADR/SPEC content.
75
- - [cache-freshness-governance-pack](https://pypi.org/project/cache-freshness-governance-pack/) packages cache freshness and cache governance ADR/SPEC content.
78
+ - [seo-aeo-aieo-governance-pack](https://pypi.org/project/seo-aeo-aieo-governance-pack/) supplies governed SEO, AEO, and AiEO decision/specification templates for search, answer-engine, and AI-engine optimization work.
79
+ - [cache-freshness-governance-pack](https://pypi.org/project/cache-freshness-governance-pack/) supplies HTTP caching and freshness governance templates for cache-control, ETag, CDN, invalidation, and stale-content policy surfaces.
80
+ - [digital-signature-governance-pack](https://pypi.org/project/digital-signature-governance-pack/) supplies digital-signature, electronic-signature, timestamping, validation, archival, and assurance-language governance templates.
76
81
 
77
82
  Each pack should depend on `ssot-pack-contracts`, include a packaged `metadata.json`, include declared document manifests, and bind the shared API at the package root.
78
83
 
@@ -130,8 +135,8 @@ Required top-level fields:
130
135
  },
131
136
  "compatibility": {
132
137
  "python": ">=3.10,<3.15",
133
- "ssot_registry_schema": ">=0.4.0,<0.5.0",
134
- "ssot_pack_contract": ">=0.2.18,<0.3.0"
138
+ "ssot_registry_schema": ">=0.5.0,<0.6.0",
139
+ "ssot_pack_contract": ">=0.2.19,<0.3.0"
135
140
  },
136
141
  "trust": {
137
142
  "origin": "extension-pack",
@@ -167,6 +172,8 @@ from ssot_pack_contracts import (
167
172
  )
168
173
  ```
169
174
 
175
+ ## Programmatic usage
176
+
170
177
  Load pack identity and schema version:
171
178
 
172
179
  ```python
@@ -195,11 +202,22 @@ entry = get_packaged_document_entry("seo_aeo_aieo_governance_pack", document_ids
195
202
  body = read_packaged_document_text("seo_aeo_aieo_governance_pack", "spec", entry["filename"])
196
203
  ```
197
204
 
205
+ Bind the contract into a pack root:
206
+
207
+ ```python
208
+ from ssot_pack_contracts import bind_pack_contract
209
+
210
+ pack_api = bind_pack_contract("seo_aeo_aieo_governance_pack")
211
+ print(pack_api["__ssot_package_name__"])
212
+ print(pack_api["list_packaged_document_ids"]("spec"))
213
+ ```
214
+
198
215
  ## Contract rules
199
216
 
200
217
  - Pack root APIs must be loaded from `ssot-pack-contracts`, not copied by hand.
201
218
  - `metadata.schema_version` is required and must be available through `load_pack_schema_version`.
202
219
  - `metadata.ssot_package_name` is required and must match `metadata.origin.package_name`.
220
+ - `metadata.origin.id` must use the `pack:*` identity model.
203
221
  - `metadata.origin.import_name` must match the installed import package.
204
222
  - `metadata.origin.kind` must be `governance-pack`.
205
223
  - `metadata.trust.origin` must be `extension-pack`.
@@ -212,7 +230,7 @@ body = read_packaged_document_text("seo_aeo_aieo_governance_pack", "spec", entry
212
230
 
213
231
  - Package type: governance-pack contract package
214
232
  - Depends on: standard library only, plus `tomli` on Python earlier than 3.11
215
- - Used by: governance packs such as [seo-aeo-aieo-governance-pack](https://pypi.org/project/seo-aeo-aieo-governance-pack/), [digital-signature-governance-pack](https://pypi.org/project/digital-signature-governance-pack/), and [cache-freshness-governance-pack](https://pypi.org/project/cache-freshness-governance-pack/)
233
+ - Used by: governance packs such as [seo-aeo-aieo-governance-pack](https://pypi.org/project/seo-aeo-aieo-governance-pack/), [cache-freshness-governance-pack](https://pypi.org/project/cache-freshness-governance-pack/), and [digital-signature-governance-pack](https://pypi.org/project/digital-signature-governance-pack/)
216
234
  - Consumed by: [ssot-core](https://pypi.org/project/ssot-core/) pack ingestion and [ssot-cli](https://pypi.org/project/ssot-cli/) pack inspection, preflight, and sync workflows
217
235
 
218
236
  If you are publishing an SSOT governance pack, use `ssot-pack-contracts` as the root API contract. If you are consuming packs, use [ssot-cli](https://pypi.org/project/ssot-cli/) or [ssot-core](https://pypi.org/project/ssot-core/) to inspect, preflight, and synchronize pack content into a governed registry.