cait-certificate-schema 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.
- cait_certificate_schema-0.2.0/.gitignore +44 -0
- cait_certificate_schema-0.2.0/AGENTS.md +14 -0
- cait_certificate_schema-0.2.0/CHANGELOG.md +14 -0
- cait_certificate_schema-0.2.0/CITATION.cff +19 -0
- cait_certificate_schema-0.2.0/LICENSE +176 -0
- cait_certificate_schema-0.2.0/NOTICE +9 -0
- cait_certificate_schema-0.2.0/PKG-INFO +270 -0
- cait_certificate_schema-0.2.0/README.md +255 -0
- cait_certificate_schema-0.2.0/SECURITY.md +22 -0
- cait_certificate_schema-0.2.0/docs/accounting.md +118 -0
- cait_certificate_schema-0.2.0/docs/cli.md +46 -0
- cait_certificate_schema-0.2.0/docs/generated_reference.md +28 -0
- cait_certificate_schema-0.2.0/docs/index.md +17 -0
- cait_certificate_schema-0.2.0/docs/interchange.md +49 -0
- cait_certificate_schema-0.2.0/docs/release.md +59 -0
- cait_certificate_schema-0.2.0/docs/release_notes.md +22 -0
- cait_certificate_schema-0.2.0/docs/reproduction.md +40 -0
- cait_certificate_schema-0.2.0/docs/requirements.md +36 -0
- cait_certificate_schema-0.2.0/examples/invalid/arrival_external_share_above_threshold.json +52 -0
- cait_certificate_schema-0.2.0/examples/invalid/arrival_missing_audit_freshness.json +52 -0
- cait_certificate_schema-0.2.0/examples/invalid/arrival_missing_subcertificate_links.json +50 -0
- cait_certificate_schema-0.2.0/examples/invalid/arrival_operational_metrics_mismatch.json +52 -0
- cait_certificate_schema-0.2.0/examples/invalid/arrival_residual_risk_above_threshold.json +52 -0
- cait_certificate_schema-0.2.0/examples/invalid/arrival_transfer_coverage_below_threshold.json +52 -0
- cait_certificate_schema-0.2.0/examples/invalid/arrival_unresolved_share_above_threshold.json +52 -0
- cait_certificate_schema-0.2.0/examples/invalid/arrival_with_nonpositive_queue_margin.json +52 -0
- cait_certificate_schema-0.2.0/examples/invalid/arrival_with_unresolved_high_defeater.json +61 -0
- cait_certificate_schema-0.2.0/examples/invalid/conditional_certificate_claims_full_capital.json +19 -0
- cait_certificate_schema-0.2.0/examples/invalid/interval_lower_greater_than_upper.json +46 -0
- cait_certificate_schema-0.2.0/examples/invalid/invalid_lifecycle_status.json +19 -0
- cait_certificate_schema-0.2.0/examples/invalid/missing_required_status.json +18 -0
- cait_certificate_schema-0.2.0/examples/invalid/nonaccepted_certificate_claims_full_capital.json +19 -0
- cait_certificate_schema-0.2.0/examples/invalid/outside_boundary_coordinate_not_abstained.json +35 -0
- cait_certificate_schema-0.2.0/examples/invalid/positive_claim_without_witness.json +19 -0
- cait_certificate_schema-0.2.0/examples/valid/accepted_token_record.json +26 -0
- cait_certificate_schema-0.2.0/examples/valid/arrival_record.json +62 -0
- cait_certificate_schema-0.2.0/examples/valid/defeater_record.json +16 -0
- cait_certificate_schema-0.2.0/examples/valid/evaluation_certificate.json +40 -0
- cait_certificate_schema-0.2.0/examples/valid/minimal_certificate_record.json +37 -0
- cait_certificate_schema-0.2.0/examples/valid/minimal_registry_record.json +44 -0
- cait_certificate_schema-0.2.0/examples/valid/transfer_certificate.json +27 -0
- cait_certificate_schema-0.2.0/examples/valid/window_balance_certificate.json +52 -0
- cait_certificate_schema-0.2.0/mkdocs.yml +12 -0
- cait_certificate_schema-0.2.0/pyproject.toml +97 -0
- cait_certificate_schema-0.2.0/schemas/accounting/bundle.schema.json +483 -0
- cait_certificate_schema-0.2.0/schemas/accounting/contract.schema.json +398 -0
- cait_certificate_schema-0.2.0/schemas/accounting/event.schema.json +1406 -0
- cait_certificate_schema-0.2.0/schemas/accounting/evidence.schema.json +106 -0
- cait_certificate_schema-0.2.0/schemas/accounting/model.schema.json +262 -0
- cait_certificate_schema-0.2.0/schemas/accounting/report.schema.json +717 -0
- cait_certificate_schema-0.2.0/schemas/accounting/schema_index.json +8 -0
- cait_certificate_schema-0.2.0/schemas/cait/arrival_record.schema.json +71 -0
- cait_certificate_schema-0.2.0/schemas/cait/assurance_case.schema.json +49 -0
- cait_certificate_schema-0.2.0/schemas/cait/cait.schema.json +22 -0
- cait_certificate_schema-0.2.0/schemas/cait/certificate_record.schema.json +43 -0
- cait_certificate_schema-0.2.0/schemas/cait/common.schema.json +238 -0
- cait_certificate_schema-0.2.0/schemas/cait/controller_certificate.schema.json +29 -0
- cait_certificate_schema-0.2.0/schemas/cait/defeater_record.schema.json +29 -0
- cait_certificate_schema-0.2.0/schemas/cait/domain_witness.schema.json +20 -0
- cait_certificate_schema-0.2.0/schemas/cait/evaluation_certificate.schema.json +36 -0
- cait_certificate_schema-0.2.0/schemas/cait/evidence_budget_ledger.schema.json +28 -0
- cait_certificate_schema-0.2.0/schemas/cait/operator_bundle_record.schema.json +33 -0
- cait_certificate_schema-0.2.0/schemas/cait/registry_record.schema.json +40 -0
- cait_certificate_schema-0.2.0/schemas/cait/schema_index.json +40 -0
- cait_certificate_schema-0.2.0/schemas/cait/semantic_rules.json +163 -0
- cait_certificate_schema-0.2.0/schemas/cait/token_record.schema.json +34 -0
- cait_certificate_schema-0.2.0/schemas/cait/transfer_certificate.schema.json +29 -0
- cait_certificate_schema-0.2.0/schemas/cait/window_balance_certificate.schema.json +40 -0
- cait_certificate_schema-0.2.0/scripts/check_artifacts.py +44 -0
- cait_certificate_schema-0.2.0/scripts/check_coverage.py +29 -0
- cait_certificate_schema-0.2.0/scripts/check_faults.py +101 -0
- cait_certificate_schema-0.2.0/scripts/check_installed.py +52 -0
- cait_certificate_schema-0.2.0/scripts/check_source.py +55 -0
- cait_certificate_schema-0.2.0/scripts/generate.py +57 -0
- cait_certificate_schema-0.2.0/security/legacy-manifest.json +46 -0
- cait_certificate_schema-0.2.0/src/cait_schema/__init__.py +8 -0
- cait_certificate_schema-0.2.0/src/cait_schema/accounting/__init__.py +1 -0
- cait_certificate_schema-0.2.0/src/cait_schema/accounting/checker.py +458 -0
- cait_certificate_schema-0.2.0/src/cait_schema/accounting/cli.py +115 -0
- cait_certificate_schema-0.2.0/src/cait_schema/accounting/examples.py +263 -0
- cait_certificate_schema-0.2.0/src/cait_schema/accounting/fixtures/censored-expiry.json +141 -0
- cait_certificate_schema-0.2.0/src/cait_schema/accounting/fixtures/companions/ccr-LICENSE +181 -0
- cait_certificate_schema-0.2.0/src/cait_schema/accounting/fixtures/companions/ccr-NOTICE +7 -0
- cait_certificate_schema-0.2.0/src/cait_schema/accounting/fixtures/companions/ccr-phase-observation.schema.json +58 -0
- cait_certificate_schema-0.2.0/src/cait_schema/accounting/fixtures/companions/ccr-task.json +83 -0
- cait_certificate_schema-0.2.0/src/cait_schema/accounting/fixtures/companions/ccr-task.schema.json +494 -0
- cait_certificate_schema-0.2.0/src/cait_schema/accounting/fixtures/companions/manifest.json +50 -0
- cait_certificate_schema-0.2.0/src/cait_schema/accounting/fixtures/companions/vek-LICENSE +16 -0
- cait_certificate_schema-0.2.0/src/cait_schema/accounting/fixtures/companions/vek-capacity-report.schema.json +624 -0
- cait_certificate_schema-0.2.0/src/cait_schema/accounting/fixtures/companions/vek-report-negative.json +194 -0
- cait_certificate_schema-0.2.0/src/cait_schema/accounting/fixtures/companions/vek-report-positive.json +194 -0
- cait_certificate_schema-0.2.0/src/cait_schema/accounting/fixtures/correction.json +145 -0
- cait_certificate_schema-0.2.0/src/cait_schema/accounting/fixtures/costly.json +151 -0
- cait_certificate_schema-0.2.0/src/cait_schema/accounting/fixtures/external.json +141 -0
- cait_certificate_schema-0.2.0/src/cait_schema/accounting/fixtures/inconsistent.json +141 -0
- cait_certificate_schema-0.2.0/src/cait_schema/accounting/fixtures/interchange.json +149 -0
- cait_certificate_schema-0.2.0/src/cait_schema/accounting/fixtures/matrix-boundary.json +141 -0
- cait_certificate_schema-0.2.0/src/cait_schema/accounting/fixtures/model-resource.json +151 -0
- cait_certificate_schema-0.2.0/src/cait_schema/accounting/fixtures/multi-parent.json +149 -0
- cait_certificate_schema-0.2.0/src/cait_schema/accounting/fixtures/positive.json +141 -0
- cait_certificate_schema-0.2.0/src/cait_schema/accounting/fixtures/unresolved.json +141 -0
- cait_certificate_schema-0.2.0/src/cait_schema/accounting/installed_check.py +69 -0
- cait_certificate_schema-0.2.0/src/cait_schema/accounting/interchange.py +215 -0
- cait_certificate_schema-0.2.0/src/cait_schema/accounting/numeric.py +81 -0
- cait_certificate_schema-0.2.0/src/cait_schema/accounting/replay.py +230 -0
- cait_certificate_schema-0.2.0/src/cait_schema/accounting/report.py +167 -0
- cait_certificate_schema-0.2.0/src/cait_schema/accounting/reproduction.py +137 -0
- cait_certificate_schema-0.2.0/src/cait_schema/accounting/schema.py +297 -0
- cait_certificate_schema-0.2.0/src/cait_schema/accounting/source.py +312 -0
- cait_certificate_schema-0.2.0/src/cait_schema/cli.py +44 -0
- cait_certificate_schema-0.2.0/src/cait_schema/schema_loader.py +95 -0
- cait_certificate_schema-0.2.0/src/cait_schema/semantics.py +297 -0
- cait_certificate_schema-0.2.0/src/cait_schema/validator.py +85 -0
- cait_certificate_schema-0.2.0/tests/test_accounting.py +314 -0
- cait_certificate_schema-0.2.0/tests/test_accounting_boundaries.py +128 -0
- cait_certificate_schema-0.2.0/tests/test_accounting_delivery.py +150 -0
- cait_certificate_schema-0.2.0/tests/test_accounting_matrix.py +186 -0
- cait_certificate_schema-0.2.0/tests/test_cli.py +18 -0
- cait_certificate_schema-0.2.0/tests/test_invalid_examples.py +43 -0
- cait_certificate_schema-0.2.0/tests/test_readme_examples.py +16 -0
- cait_certificate_schema-0.2.0/tests/test_schema_index.py +38 -0
- cait_certificate_schema-0.2.0/tests/test_schema_integrity.py +31 -0
- cait_certificate_schema-0.2.0/tests/test_semantic_rules_manifest.py +25 -0
- cait_certificate_schema-0.2.0/tests/test_valid_examples.py +13 -0
- cait_certificate_schema-0.2.0/uv.lock +1979 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Python
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[cod]
|
|
4
|
+
*.pyo
|
|
5
|
+
*.pyd
|
|
6
|
+
.pytest_cache/
|
|
7
|
+
.coverage
|
|
8
|
+
htmlcov/
|
|
9
|
+
build/
|
|
10
|
+
dist/
|
|
11
|
+
*.egg-info/
|
|
12
|
+
|
|
13
|
+
# uv / environments
|
|
14
|
+
.venv/
|
|
15
|
+
venv/
|
|
16
|
+
env/
|
|
17
|
+
.python-version
|
|
18
|
+
|
|
19
|
+
# Local environment and secrets
|
|
20
|
+
.env
|
|
21
|
+
.env.*
|
|
22
|
+
*.pem
|
|
23
|
+
*.key
|
|
24
|
+
*.p12
|
|
25
|
+
*.pfx
|
|
26
|
+
|
|
27
|
+
# OS / editor
|
|
28
|
+
.DS_Store
|
|
29
|
+
Thumbs.db
|
|
30
|
+
desktop.ini
|
|
31
|
+
.idea/
|
|
32
|
+
.vscode/
|
|
33
|
+
*.swp
|
|
34
|
+
*.swo
|
|
35
|
+
|
|
36
|
+
# Local scratch
|
|
37
|
+
tmp/
|
|
38
|
+
scratch/
|
|
39
|
+
.hypothesis/
|
|
40
|
+
.mypy_cache/
|
|
41
|
+
.ruff_cache/
|
|
42
|
+
coverage.json
|
|
43
|
+
fault-results.json
|
|
44
|
+
site/
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# CAIT development instructions
|
|
2
|
+
|
|
3
|
+
Preserve `schemas/cait`, legacy fixtures, public imports and `cait-validate` meanings.
|
|
4
|
+
Read `docs/accounting.md`, `docs/reproduction.md` and `docs/interchange.md` before changing
|
|
5
|
+
computed evidence. Accounting origin is not causal identification; hashes are not authentication.
|
|
6
|
+
No computed result grants execution authority. Never turn missing negative evidence into zero.
|
|
7
|
+
|
|
8
|
+
Keep changes in CAIT. Companion interfaces are pinned read-only JSON, with manifest hashes.
|
|
9
|
+
Use the independent checker and original source bytes. Do not make it call the production reducer.
|
|
10
|
+
Run the commands in `docs/release.md`, including separate >=90% statement and branch coverage
|
|
11
|
+
on the complete new core, selected fault checks, legacy identity and built-wheel checks.
|
|
12
|
+
Generated schema/example/reference edits must originate in their generator inputs.
|
|
13
|
+
Do not bypass reviews, quality gates, environments or immutable artifact identity checks.
|
|
14
|
+
Agent-facing operational guide: `docs/cli.md`. Analysis is local and read-only; output is a new derived file.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
- Add closed source-bound accounting records, exact joint-scenario replay and an independent checker.
|
|
6
|
+
- Derive unique stock/service credit, receiver reuse, physical costs, lifecycle, corrections and origin partitions.
|
|
7
|
+
- Check supplied conditional reproduction bounds with exact positive-vector witnesses.
|
|
8
|
+
- Add `cait-analyze`, offline examples, pinned VEK/CCR interchange and explicit claim layers.
|
|
9
|
+
- Preserve all legacy schemas/fixtures and `cait-validate` meanings.
|
|
10
|
+
- Add reproducible Python/OS quality gates and artifact-identical Trusted Publishing.
|
|
11
|
+
|
|
12
|
+
## 0.1.0
|
|
13
|
+
|
|
14
|
+
Initial language-neutral schema set and lightweight local semantic validator.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
cff-version: 1.2.0
|
|
2
|
+
message: "If you use this schema package, please cite both this repository and the related CAIT manuscript."
|
|
3
|
+
title: "CAIT Certificate Schema"
|
|
4
|
+
authors:
|
|
5
|
+
- family-names: "Takahashi"
|
|
6
|
+
given-names: "K."
|
|
7
|
+
license: "Apache-2.0"
|
|
8
|
+
repository-code: "https://github.com/kadubon/cait-certificate-schema"
|
|
9
|
+
version: "0.2.0"
|
|
10
|
+
date-released: "2026-09-13"
|
|
11
|
+
references:
|
|
12
|
+
- type: "article"
|
|
13
|
+
title: "Certified Autocatalytic Intelligence Theory: Net-Growth Certificate Algebra for Verified Capability Capital"
|
|
14
|
+
authors:
|
|
15
|
+
- family-names: "Takahashi"
|
|
16
|
+
given-names: "K."
|
|
17
|
+
year: 2026
|
|
18
|
+
doi: "10.5281/zenodo.20061296"
|
|
19
|
+
url: "https://doi.org/10.5281/zenodo.20061296"
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
CAIT Certificate Schema
|
|
2
|
+
|
|
3
|
+
This repository provides JSON Schemas and local validation tooling derived from:
|
|
4
|
+
|
|
5
|
+
Takahashi, K. (2026). Certified Autocatalytic Intelligence Theory:
|
|
6
|
+
Net-Growth Certificate Algebra for Verified Capability Capital. Zenodo.
|
|
7
|
+
https://doi.org/10.5281/zenodo.20061296
|
|
8
|
+
|
|
9
|
+
The repository is distributed under the Apache License, Version 2.0.
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: cait-certificate-schema
|
|
3
|
+
Version: 0.2.0
|
|
4
|
+
Summary: JSON Schemas and local validation tooling for CAIT-style certified AI R&D capability-capital records.
|
|
5
|
+
Author: K. Takahashi
|
|
6
|
+
License: Apache-2.0
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
License-File: NOTICE
|
|
9
|
+
Keywords: AI R&D validation,CAIT,JSON Schema,certificate records,verified capability capital
|
|
10
|
+
Requires-Python: >=3.11
|
|
11
|
+
Requires-Dist: jsonschema>=4.23.0
|
|
12
|
+
Provides-Extra: dev
|
|
13
|
+
Requires-Dist: pytest>=8.0.0; extra == 'dev'
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
|
|
16
|
+
# CAIT Certificate Schema
|
|
17
|
+
|
|
18
|
+
JSON Schemas for CAIT-style records: certificates, tokens, defeaters, transfer/evaluation boundaries, window balances, and arrival records.
|
|
19
|
+
Deterministic local validation checks record shape plus lightweight fail-closed semantics.
|
|
20
|
+
This is not an AGI detector, model evaluator, deployment authorization system, or safety guarantee.
|
|
21
|
+
|
|
22
|
+
Version 0.2.0 additionally provides an opt-in **experimental finite accounting kernel**:
|
|
23
|
+
`cait-analyze example interchange` runs source-bound replay, exact balances, conditional
|
|
24
|
+
reproduction witnesses, an independent report checker and pinned released VEK/CCR adapters.
|
|
25
|
+
Read [accounting semantics](docs/accounting.md), [CLI/API](docs/cli.md),
|
|
26
|
+
[mathematical boundaries](docs/reproduction.md) and [release evidence](docs/release.md).
|
|
27
|
+
The established schemas and `cait-validate` retain their original meanings.
|
|
28
|
+
|
|
29
|
+
## Start Here
|
|
30
|
+
|
|
31
|
+
If you are new to the project, read these files in order:
|
|
32
|
+
|
|
33
|
+
1. `schemas/cait/schema_index.json`: maps each `record_type` to its schema file and semantic profile.
|
|
34
|
+
2. `schemas/cait/semantic_rules.json`: lists portable fail-closed rule IDs and logic.
|
|
35
|
+
3. `examples/valid/arrival_record.json`: shows a complete synthetic arrival record accepted by the local validator.
|
|
36
|
+
|
|
37
|
+
Minimal adoption path:
|
|
38
|
+
|
|
39
|
+
1. Use `schema_index.json` to choose the schema for each `record_type`.
|
|
40
|
+
2. Run JSON Schema Draft 2020-12 structural validation.
|
|
41
|
+
3. Implement the rule IDs in `semantic_rules.json` that apply to your record types.
|
|
42
|
+
4. Keep local registry thresholds, evidence rules, and evaluation boundaries explicit in your own records.
|
|
43
|
+
|
|
44
|
+
This repository is based on:
|
|
45
|
+
|
|
46
|
+
Takahashi, K. (2026). *Certified Autocatalytic Intelligence Theory: Net-Growth Certificate Algebra for Verified Capability Capital*. Zenodo. https://doi.org/10.5281/zenodo.20061296
|
|
47
|
+
|
|
48
|
+
## What This Project Is
|
|
49
|
+
|
|
50
|
+
This project provides a small, auditable schema layer for machine-readable CAIT records:
|
|
51
|
+
|
|
52
|
+
- registry records;
|
|
53
|
+
- certificate records;
|
|
54
|
+
- domain witnesses;
|
|
55
|
+
- token records;
|
|
56
|
+
- operator bundle records;
|
|
57
|
+
- defeater records;
|
|
58
|
+
- evidence budget ledgers;
|
|
59
|
+
- assurance cases;
|
|
60
|
+
- transfer, evaluation, and controller certificates;
|
|
61
|
+
- window balance certificates;
|
|
62
|
+
- arrival records.
|
|
63
|
+
|
|
64
|
+
It also includes a deterministic local validator for basic structural and semantic checks.
|
|
65
|
+
|
|
66
|
+
The language-neutral interface is the schema directory itself: `schemas/cait/*.schema.json`, `schemas/cait/schema_index.json`, and `schemas/cait/semantic_rules.json`.
|
|
67
|
+
|
|
68
|
+
## What This Project Is Not
|
|
69
|
+
|
|
70
|
+
This project is not:
|
|
71
|
+
|
|
72
|
+
- an AGI detector;
|
|
73
|
+
- a frontier model evaluator;
|
|
74
|
+
- a deployment authorization system;
|
|
75
|
+
- a safety guarantee;
|
|
76
|
+
- an autonomous agent system;
|
|
77
|
+
- a database, server, dashboard, or workflow engine;
|
|
78
|
+
- a complete implementation of the CAIT paper.
|
|
79
|
+
|
|
80
|
+
The schemas support machine-readable records. They do not certify AGI, ASI, deployment readiness, or real-world safety by themselves.
|
|
81
|
+
|
|
82
|
+
## Limitations
|
|
83
|
+
|
|
84
|
+
- The legacy schema/validator surface provides JSON Schema plus lightweight local semantic validation.
|
|
85
|
+
- JSON Schema validates record shape, not scientific truth.
|
|
86
|
+
- The validator performs lightweight local checks only.
|
|
87
|
+
- The legacy validator does not replay source evidence. The new opt-in kernel replays finite declared histories and checks exact mathematical witnesses; neither surface establishes scientific truth, causal inference, AGI/ASI, safety guarantees or deployment approval.
|
|
88
|
+
- It is not a frontier model evaluator, risk-governance process, autonomous agent system, or complete CAIT implementation.
|
|
89
|
+
- Users must add registry-specific thresholds, evidence rules, evaluation boundaries, and policy semantics for their own setting.
|
|
90
|
+
- The included thresholds and examples are synthetic and illustrative.
|
|
91
|
+
- A passing validation result means a record is structurally and minimally semantically consistent with this schema package. It does not mean the underlying claim is true.
|
|
92
|
+
|
|
93
|
+
## Why It Exists
|
|
94
|
+
|
|
95
|
+
CAIT treats acceleration as certified net reproduction of verified capability capital, not as raw benchmark gain or candidate volume. The schemas in this repository make CAIT-style records easier for engineers, researchers, auditors, and AI agents to inspect, exchange, validate, and reuse.
|
|
96
|
+
|
|
97
|
+
The fail-closed principle is central: if a positive claim depends on missing evidence, missing scope, unresolved severe defeaters, invalid lifecycle status, invalid transfer/evaluation boundary, or non-positive endogenous net growth, the local validator reports that the record cannot support a positive CAIT-style claim.
|
|
98
|
+
|
|
99
|
+
## Quick Start
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
uv sync
|
|
103
|
+
uv run cait-validate examples/valid/arrival_record.json
|
|
104
|
+
uv run pytest
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
Validate a specific schema:
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
uv run cait-validate examples/valid/minimal_certificate_record.json --schema certificate_record
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
If `--schema` is omitted, the validator infers the schema from the top-level `record_type` field.
|
|
114
|
+
|
|
115
|
+
## For Non-Python Users
|
|
116
|
+
|
|
117
|
+
Python is only a reference validator. It is not the only specification. Other implementations can use the language-neutral files directly:
|
|
118
|
+
|
|
119
|
+
- `schemas/cait/schema_index.json` to map `record_type` values to schema files;
|
|
120
|
+
- `schemas/cait/*.schema.json` for Draft 2020-12 structural validation;
|
|
121
|
+
- `schemas/cait/semantic_rules.json` for portable fail-closed semantic checks.
|
|
122
|
+
|
|
123
|
+
Minimal implementation steps in another language:
|
|
124
|
+
|
|
125
|
+
1. Read the top-level `record_type` key.
|
|
126
|
+
2. Load the matching schema file from `schema_index.json`.
|
|
127
|
+
3. Validate structure with any JSON Schema Draft 2020-12 implementation.
|
|
128
|
+
4. Apply each relevant rule from `semantic_rules.json`.
|
|
129
|
+
5. Report the same `rule_id` values where feasible.
|
|
130
|
+
|
|
131
|
+
The semantic rules manifest contains stable rule IDs, severity, affected record types, primary JSON paths, portable logic, and human-readable descriptions.
|
|
132
|
+
The `portable_logic` fields are JSONPath-like pseudocode for implementers. They are intended to make the rule semantics clear across languages, not to require a specific JSONPath library.
|
|
133
|
+
|
|
134
|
+
## Core Concepts
|
|
135
|
+
|
|
136
|
+
- `registry_record`: declares the coordinate dictionary, lifecycle table, evidence modes, external-input boundary, evaluator boundary, service graph, transfer boundary, and acceptance rule.
|
|
137
|
+
- `certificate_record`: carries a lower/upper interval, evidence mode, lifecycle status, dependency support, defeaters, freshness, and provenance links.
|
|
138
|
+
- `domain_witness`: records whether certificate composition predicates are satisfied, including compatible scope, accepted dependencies, valid budget, fresh evidence, no open blocking defeater, and disjoint support.
|
|
139
|
+
- `token_record`: represents a content-addressed capability artifact with lifecycle status, evidence links, lineage, transfer/evaluation boundary links, and resource charges.
|
|
140
|
+
- `defeater_record`: records a possible blocker or downgrader, including severity, affected scope, and resolution status.
|
|
141
|
+
- `arrival_record`: reports whether a target profile satisfies the registered CAIT-style arrival decision rule.
|
|
142
|
+
- `endogenous_net_growth_interval`: lower/upper interval for net endogenous growth after losses and resource/risk charges.
|
|
143
|
+
- `external_injection_share`: share of reported production attributable to logged external injection.
|
|
144
|
+
- `unresolved_attribution_share`: share of reported production that remains unresolved.
|
|
145
|
+
- `transfer_coverage`: fraction of target coordinates covered by accepted transfer evidence.
|
|
146
|
+
- `queue_margin`: lower service capacity minus arrival demand.
|
|
147
|
+
- `safety_control_status`: whether service and safety-control constraints pass, fail, or remain conditional.
|
|
148
|
+
|
|
149
|
+
## Minimal Example
|
|
150
|
+
|
|
151
|
+
```json
|
|
152
|
+
{
|
|
153
|
+
"record_type": "arrival_record",
|
|
154
|
+
"arrival_id": "arr_demo_001",
|
|
155
|
+
"target_profile_id": "synthetic_target_profile",
|
|
156
|
+
"final_decision": "pass",
|
|
157
|
+
"mandatory_subcertificates_status": "accepted",
|
|
158
|
+
"mandatory_subcertificate_ids": [
|
|
159
|
+
"cert_window_balance_demo",
|
|
160
|
+
"cert_transfer_demo",
|
|
161
|
+
"cert_evaluation_demo",
|
|
162
|
+
"cert_controller_demo"
|
|
163
|
+
],
|
|
164
|
+
"endogenous_net_growth_interval": {
|
|
165
|
+
"lower": 1.25,
|
|
166
|
+
"upper": 2.0,
|
|
167
|
+
"unit": "capability_tokens_per_window",
|
|
168
|
+
"confidence": 0.95
|
|
169
|
+
},
|
|
170
|
+
"queue_margin": {
|
|
171
|
+
"lower": 0.4,
|
|
172
|
+
"upper": 1.1,
|
|
173
|
+
"unit": "verified_tokens_per_day"
|
|
174
|
+
},
|
|
175
|
+
"external_injection_share": 0.1,
|
|
176
|
+
"unresolved_attribution_share": 0.0,
|
|
177
|
+
"transfer_coverage": 1.0,
|
|
178
|
+
"acceptance_thresholds": {
|
|
179
|
+
"max_external_injection_share": 0.2,
|
|
180
|
+
"max_unresolved_attribution_share": 0.05,
|
|
181
|
+
"min_transfer_coverage": 0.9,
|
|
182
|
+
"max_residual_risk_upper": 0.1
|
|
183
|
+
},
|
|
184
|
+
"target_coordinate_statuses": [
|
|
185
|
+
{
|
|
186
|
+
"coordinate": "synthetic_code_repair",
|
|
187
|
+
"status": "accepted",
|
|
188
|
+
"within_boundary": true
|
|
189
|
+
}
|
|
190
|
+
],
|
|
191
|
+
"target_defeaters": [],
|
|
192
|
+
"safety_control_status": "pass",
|
|
193
|
+
"transfer_status": "pass",
|
|
194
|
+
"evaluation_status": "pass",
|
|
195
|
+
"window_balance_status": "pass",
|
|
196
|
+
"operational_metrics": {
|
|
197
|
+
"external_injection_share": 0.1,
|
|
198
|
+
"unresolved_attribution_share": 0.0,
|
|
199
|
+
"transfer_coverage": 1.0,
|
|
200
|
+
"audit_freshness": "pass",
|
|
201
|
+
"residual_risk": {
|
|
202
|
+
"lower": 0.0,
|
|
203
|
+
"upper": 0.05,
|
|
204
|
+
"unit": "risk_score"
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
All examples in this repository are synthetic and illustrative.
|
|
211
|
+
|
|
212
|
+
## Schema List
|
|
213
|
+
|
|
214
|
+
Schemas are in `schemas/cait/`.
|
|
215
|
+
|
|
216
|
+
- `schema_index.json`
|
|
217
|
+
- `semantic_rules.json`
|
|
218
|
+
- `cait.schema.json`
|
|
219
|
+
- `common.schema.json`
|
|
220
|
+
- `registry_record.schema.json`
|
|
221
|
+
- `certificate_record.schema.json`
|
|
222
|
+
- `domain_witness.schema.json`
|
|
223
|
+
- `token_record.schema.json`
|
|
224
|
+
- `operator_bundle_record.schema.json`
|
|
225
|
+
- `defeater_record.schema.json`
|
|
226
|
+
- `evidence_budget_ledger.schema.json`
|
|
227
|
+
- `assurance_case.schema.json`
|
|
228
|
+
- `transfer_certificate.schema.json`
|
|
229
|
+
- `evaluation_certificate.schema.json`
|
|
230
|
+
- `controller_certificate.schema.json`
|
|
231
|
+
- `window_balance_certificate.schema.json`
|
|
232
|
+
- `arrival_record.schema.json`
|
|
233
|
+
|
|
234
|
+
## Validation Semantics
|
|
235
|
+
|
|
236
|
+
JSON Schema validates record structure. The Python validator adds lightweight semantic checks:
|
|
237
|
+
|
|
238
|
+
- every interval must satisfy `lower <= upper`;
|
|
239
|
+
- passing arrival records require `endogenous_net_growth_interval.lower > 0`;
|
|
240
|
+
- passing arrival records require `queue_margin.lower > 0`;
|
|
241
|
+
- passing arrival records cannot contain unresolved high or blocking target defeaters;
|
|
242
|
+
- passing arrival records must have accepted mandatory subcertificates;
|
|
243
|
+
- passing arrival records must list at least one mandatory subcertificate ID;
|
|
244
|
+
- passing arrival records must have pass status for safety-control, transfer, evaluation, and window-balance subcertificates;
|
|
245
|
+
- passing arrival records must keep `external_injection_share` at or below the registered threshold;
|
|
246
|
+
- passing arrival records must keep `unresolved_attribution_share` at or below the registered threshold;
|
|
247
|
+
- passing arrival records must meet or exceed the registered `transfer_coverage` threshold;
|
|
248
|
+
- passing arrival records must have `operational_metrics.audit_freshness = "pass"`;
|
|
249
|
+
- passing arrival records must keep `operational_metrics.residual_risk.upper` at or below the registered threshold;
|
|
250
|
+
- top-level attribution/coverage shares must match the corresponding `operational_metrics` values;
|
|
251
|
+
- lifecycle statuses other than `accepted` cannot claim `positive_capital_effect = "full"`;
|
|
252
|
+
- evidence mode strengthening must include an explicit witness;
|
|
253
|
+
- a positive claim that requires a domain witness fails if the witness is missing or invalid;
|
|
254
|
+
- target coordinates outside the transfer/evaluation boundary must be `abstained_or_uncertified`.
|
|
255
|
+
|
|
256
|
+
These checks are intentionally limited. They are meant to catch obvious schema-level misuse, not to establish scientific truth.
|
|
257
|
+
|
|
258
|
+
## Local-Only Behavior
|
|
259
|
+
|
|
260
|
+
The validator reads local files and local schemas. It does not send data anywhere, call external services, download runtime resources, or collect telemetry.
|
|
261
|
+
|
|
262
|
+
## Citation
|
|
263
|
+
|
|
264
|
+
If you use this repository, cite the related manuscript:
|
|
265
|
+
|
|
266
|
+
Takahashi, K. (2026). *Certified Autocatalytic Intelligence Theory: Net-Growth Certificate Algebra for Verified Capability Capital*. Zenodo. https://doi.org/10.5281/zenodo.20061296
|
|
267
|
+
|
|
268
|
+
## License
|
|
269
|
+
|
|
270
|
+
Apache License 2.0. See `LICENSE`.
|