chokr-spec 0.0.1__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.
- chokr_spec-0.0.1/.gitignore +23 -0
- chokr_spec-0.0.1/LICENSE +201 -0
- chokr_spec-0.0.1/NOTICE +4 -0
- chokr_spec-0.0.1/PKG-INFO +118 -0
- chokr_spec-0.0.1/README.md +92 -0
- chokr_spec-0.0.1/pyproject.toml +114 -0
- chokr_spec-0.0.1/registry/error_codes.yaml +27 -0
- chokr_spec-0.0.1/registry/evidence_types.yaml +17 -0
- chokr_spec-0.0.1/registry/kinds.yaml +24 -0
- chokr_spec-0.0.1/registry/obligation_types.yaml +12 -0
- chokr_spec-0.0.1/registry/reason_codes.yaml +42 -0
- chokr_spec-0.0.1/registry/signal_codes.yaml +387 -0
- chokr_spec-0.0.1/schemas/actions.schema.json +104 -0
- chokr_spec-0.0.1/schemas/approval.schema.json +106 -0
- chokr_spec-0.0.1/schemas/budget_event.schema.json +61 -0
- chokr_spec-0.0.1/schemas/config.schema.json +1864 -0
- chokr_spec-0.0.1/schemas/envelope.schema.json +561 -0
- chokr_spec-0.0.1/schemas/ledger_record.schema.json +92 -0
- chokr_spec-0.0.1/schemas/pack.schema.json +107 -0
- chokr_spec-0.0.1/schemas/plugin_manifest.schema.json +163 -0
- chokr_spec-0.0.1/schemas/signal.schema.json +130 -0
- chokr_spec-0.0.1/schemas/verdict.schema.json +259 -0
- chokr_spec-0.0.1/src/chokr_spec/__init__.py +19 -0
- chokr_spec-0.0.1/src/chokr_spec/__main__.py +7 -0
- chokr_spec-0.0.1/src/chokr_spec/canonical.py +51 -0
- chokr_spec-0.0.1/src/chokr_spec/cli.py +44 -0
- chokr_spec-0.0.1/src/chokr_spec/errors.py +21 -0
- chokr_spec-0.0.1/src/chokr_spec/executors.py +100 -0
- chokr_spec-0.0.1/src/chokr_spec/ledger.py +152 -0
- chokr_spec-0.0.1/src/chokr_spec/py.typed +0 -0
- chokr_spec-0.0.1/src/chokr_spec/runner.py +135 -0
- chokr_spec-0.0.1/src/chokr_spec/signatures.py +101 -0
- chokr_spec-0.0.1/src/chokr_spec/versioning.py +32 -0
- chokr_spec-0.0.1/tests/conftest.py +17 -0
- chokr_spec-0.0.1/tests/test_canonical.py +53 -0
- chokr_spec-0.0.1/tests/test_cli.py +53 -0
- chokr_spec-0.0.1/tests/test_data.py +106 -0
- chokr_spec-0.0.1/tests/test_language_alignment.py +33 -0
- chokr_spec-0.0.1/tests/test_ledger.py +116 -0
- chokr_spec-0.0.1/tests/test_runner.py +126 -0
- chokr_spec-0.0.1/tests/test_signatures.py +154 -0
- chokr_spec-0.0.1/tests/test_versioning.py +37 -0
- chokr_spec-0.0.1/tools/check_spec.py +119 -0
- chokr_spec-0.0.1/tools/gen_vectors.py +346 -0
- chokr_spec-0.0.1/vectors/connect/verdict/alg_hs256.json +45 -0
- chokr_spec-0.0.1/vectors/connect/verdict/alg_none.json +45 -0
- chokr_spec-0.0.1/vectors/connect/verdict/key_with_other_algorithm.json +38 -0
- chokr_spec-0.0.1/vectors/connect/verdict/kid_allowed.json +47 -0
- chokr_spec-0.0.1/vectors/connect/verdict/kid_not_allowed.json +48 -0
- chokr_spec-0.0.1/vectors/connect/verdict/signature_in_the_standard_alphabet.json +45 -0
- chokr_spec-0.0.1/vectors/connect/verdict/signature_not_base64.json +45 -0
- chokr_spec-0.0.1/vectors/connect/verdict/signature_object_malformed.json +41 -0
- chokr_spec-0.0.1/vectors/connect/verdict/signature_with_padding.json +45 -0
- chokr_spec-0.0.1/vectors/connect/verdict/signature_with_unused_bits_set.json +45 -0
- chokr_spec-0.0.1/vectors/connect/verdict/signature_with_whitespace.json +45 -0
- chokr_spec-0.0.1/vectors/connect/verdict/tampered_added_field.json +46 -0
- chokr_spec-0.0.1/vectors/connect/verdict/tampered_outcome.json +45 -0
- chokr_spec-0.0.1/vectors/connect/verdict/unknown_kid.json +45 -0
- chokr_spec-0.0.1/vectors/connect/verdict/unknown_kid_not_allowed.json +48 -0
- chokr_spec-0.0.1/vectors/connect/verdict/unsigned.json +40 -0
- chokr_spec-0.0.1/vectors/connect/verdict/valid.json +44 -0
- chokr_spec-0.0.1/vectors/connect/verdict/valid_key_order_does_not_matter.json +44 -0
- chokr_spec-0.0.1/vectors/connect/verdict/valid_other_key.json +44 -0
- chokr_spec-0.0.1/vectors/connect/verdict/wrong_key_for_kid.json +45 -0
- chokr_spec-0.0.1/vectors/core/envelope/db_query_basic.json +13 -0
- chokr_spec-0.0.1/vectors/core/envelope/empty.json +11 -0
- chokr_spec-0.0.1/vectors/core/envelope/key_order.json +22 -0
- chokr_spec-0.0.1/vectors/core/envelope/nested_list.json +21 -0
- chokr_spec-0.0.1/vectors/core/envelope/unicode.json +14 -0
- chokr_spec-0.0.1/vectors/core/ledger/four_records.json +46 -0
- chokr_spec-0.0.1/vectors/core/ledger/redacted_body.json +34 -0
- chokr_spec-0.0.1/vectors/core/schema/actions_valid.json +19 -0
- chokr_spec-0.0.1/vectors/core/schema/actions_without_a_match_key.json +18 -0
- chokr_spec-0.0.1/vectors/core/schema/approval_bad_id.json +27 -0
- chokr_spec-0.0.1/vectors/core/schema/approval_valid.json +27 -0
- chokr_spec-0.0.1/vectors/core/schema/budget_event_bad_state.json +20 -0
- chokr_spec-0.0.1/vectors/core/schema/budget_event_valid.json +20 -0
- chokr_spec-0.0.1/vectors/core/schema/config_unknown_key.json +14 -0
- chokr_spec-0.0.1/vectors/core/schema/config_valid.json +13 -0
- chokr_spec-0.0.1/vectors/core/schema/config_wrong_version_format.json +13 -0
- chokr_spec-0.0.1/vectors/core/schema/envelope_missing_schema_version.json +43 -0
- chokr_spec-0.0.1/vectors/core/schema/envelope_unknown_field.json +45 -0
- chokr_spec-0.0.1/vectors/core/schema/envelope_valid.json +44 -0
- chokr_spec-0.0.1/vectors/core/schema/ledger_record_bad_body_mode.json +22 -0
- chokr_spec-0.0.1/vectors/core/schema/ledger_record_hash_ends_with_a_newline.json +22 -0
- chokr_spec-0.0.1/vectors/core/schema/ledger_record_missing_hash.json +21 -0
- chokr_spec-0.0.1/vectors/core/schema/ledger_record_timestamp_has_an_offset.json +22 -0
- chokr_spec-0.0.1/vectors/core/schema/ledger_record_timestamp_is_not_a_timestamp.json +22 -0
- chokr_spec-0.0.1/vectors/core/schema/ledger_record_valid.json +22 -0
- chokr_spec-0.0.1/vectors/core/schema/ledger_record_version_ends_with_a_newline.json +22 -0
- chokr_spec-0.0.1/vectors/core/schema/pack_bad_name.json +16 -0
- chokr_spec-0.0.1/vectors/core/schema/pack_unknown_field.json +17 -0
- chokr_spec-0.0.1/vectors/core/schema/pack_valid.json +16 -0
- chokr_spec-0.0.1/vectors/core/schema/plugin_manifest_bad_stage.json +28 -0
- chokr_spec-0.0.1/vectors/core/schema/plugin_manifest_unknown_field.json +29 -0
- chokr_spec-0.0.1/vectors/core/schema/plugin_manifest_valid.json +28 -0
- chokr_spec-0.0.1/vectors/core/schema/signal_bad_severity.json +20 -0
- chokr_spec-0.0.1/vectors/core/schema/signal_valid.json +20 -0
- chokr_spec-0.0.1/vectors/core/schema/verdict_bad_outcome.json +31 -0
- chokr_spec-0.0.1/vectors/core/schema/verdict_valid.json +31 -0
- chokr_spec-0.0.1/vectors/core/tamper/body_changed.json +59 -0
- chokr_spec-0.0.1/vectors/core/tamper/field_missing.json +58 -0
- chokr_spec-0.0.1/vectors/core/tamper/hash_altered.json +59 -0
- chokr_spec-0.0.1/vectors/core/tamper/hash_only_record_with_a_body.json +62 -0
- chokr_spec-0.0.1/vectors/core/tamper/prev_hash_altered.json +59 -0
- chokr_spec-0.0.1/vectors/core/tamper/record_removed.json +45 -0
- chokr_spec-0.0.1/vectors/core/tamper/seq_decremented.json +59 -0
- chokr_spec-0.0.1/vectors/core/tamper/seq_is_a_boolean.json +59 -0
- chokr_spec-0.0.1/vectors/core/tamper/timestamp_is_not_text.json +59 -0
- chokr_spec-0.0.1/vectors/core/tamper/unknown_body_mode.json +59 -0
- chokr_spec-0.0.1/vectors/core/version/equal_minor.json +11 -0
- chokr_spec-0.0.1/vectors/core/version/higher_minor.json +12 -0
- chokr_spec-0.0.1/vectors/core/version/leading_zero.json +12 -0
- chokr_spec-0.0.1/vectors/core/version/missing.json +12 -0
- chokr_spec-0.0.1/vectors/core/version/next_major.json +12 -0
- chokr_spec-0.0.1/vectors/core/version/no_minor.json +12 -0
- chokr_spec-0.0.1/vectors/core/version/number_not_string.json +12 -0
- chokr_spec-0.0.1/vectors/core/version/older_minor.json +11 -0
- chokr_spec-0.0.1/vectors/core/version/previous_major.json +12 -0
- chokr_spec-0.0.1/vectors/core/version/same.json +11 -0
- chokr_spec-0.0.1/vectors/core/version/text.json +12 -0
- chokr_spec-0.0.1/vectors/core/version/three_parts.json +12 -0
- chokr_spec-0.0.1/vectors/core/version/trailing_newline.json +12 -0
- chokr_spec-0.0.1/vectors/trust/.gitkeep +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# environments and caches
|
|
2
|
+
.venv/
|
|
3
|
+
__pycache__/
|
|
4
|
+
*.py[cod]
|
|
5
|
+
.pytest_cache/
|
|
6
|
+
.mypy_cache/
|
|
7
|
+
.ruff_cache/
|
|
8
|
+
.import_linter_cache/
|
|
9
|
+
|
|
10
|
+
# local tool settings
|
|
11
|
+
.claude/
|
|
12
|
+
.vs/
|
|
13
|
+
|
|
14
|
+
# build and test output
|
|
15
|
+
dist/
|
|
16
|
+
build/
|
|
17
|
+
*.egg-info/
|
|
18
|
+
.coverage
|
|
19
|
+
.coverage.*
|
|
20
|
+
coverage.xml
|
|
21
|
+
htmlcov/
|
|
22
|
+
conformance-report.json
|
|
23
|
+
requirements.audit.txt
|
chokr_spec-0.0.1/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
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
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
chokr_spec-0.0.1/NOTICE
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: chokr-spec
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: CHOKR protocol for AI agent governance: JSON Schemas, registries and conformance vectors, with a reference checker.
|
|
5
|
+
Project-URL: Homepage, https://github.com/chokr-ai/chokr-spec
|
|
6
|
+
Project-URL: Repository, https://github.com/chokr-ai/chokr-spec
|
|
7
|
+
Project-URL: Issues, https://github.com/chokr-ai/chokr-spec/issues
|
|
8
|
+
Author: Nitin Saxena
|
|
9
|
+
Maintainer: chokr-ai
|
|
10
|
+
License-Expression: Apache-2.0
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
License-File: NOTICE
|
|
13
|
+
Keywords: agent-governance,agent-security,agentic-ai,ai-agents,ai-governance,audit-ledger,audit-trail,canonical-json,chokr,conformance-tests,hash-chain,human-in-the-loop,json-schema,llm-guardrails,protocol,signed-verdict,specification,tamper-evident
|
|
14
|
+
Classifier: Development Status :: 3 - Alpha
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: Operating System :: OS Independent
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
19
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
20
|
+
Classifier: Typing :: Typed
|
|
21
|
+
Requires-Python: >=3.14
|
|
22
|
+
Requires-Dist: cryptography<51,>=43
|
|
23
|
+
Requires-Dist: jsonschema<5,>=4.22
|
|
24
|
+
Requires-Dist: rfc8785<0.2,>=0.1.4
|
|
25
|
+
Description-Content-Type: text/markdown
|
|
26
|
+
|
|
27
|
+
# chokr-spec: the CHOKR protocol for AI agent governance (JSON Schemas, registries, conformance vectors)
|
|
28
|
+
|
|
29
|
+
[](https://pypi.org/project/chokr-spec/)
|
|
30
|
+
[](https://pypi.org/project/chokr-spec/)
|
|
31
|
+
[](https://github.com/chokr-ai/chokr-spec/actions/workflows/ci.yml)
|
|
32
|
+
[](https://github.com/chokr-ai/chokr-spec/blob/main/LICENSE)
|
|
33
|
+
|
|
34
|
+
The CHOKR protocol as data: JSON Schemas for the documents that govern AI agents (envelope, signed verdict, tamper-evident
|
|
35
|
+
audit ledger, approval, pack, plugin manifest and config), registries of standard names, and conformance vectors. The
|
|
36
|
+
package also holds a reference checker that runs the vectors, so any implementation, in any language, can compare its
|
|
37
|
+
results with the same inputs.
|
|
38
|
+
|
|
39
|
+
The policy language has its own repository, `chokr-policy-language`. Its outcomes, standard reason codes and authoring
|
|
40
|
+
error codes are defined there and are not repeated here.
|
|
41
|
+
|
|
42
|
+
## Install
|
|
43
|
+
|
|
44
|
+
```
|
|
45
|
+
pip install chokr-spec
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Python 3.14 or newer. Import name: `chokr_spec`.
|
|
49
|
+
|
|
50
|
+
## Check the vectors
|
|
51
|
+
|
|
52
|
+
```console
|
|
53
|
+
$ chokr-spec check
|
|
54
|
+
$ chokr-spec check --level core --report report.json
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
The command exits with `0` only when every vector passes. `--vectors DIR` runs a different folder of vectors, and
|
|
58
|
+
`--json` prints the report.
|
|
59
|
+
|
|
60
|
+
## Use from Python
|
|
61
|
+
|
|
62
|
+
```python
|
|
63
|
+
from chokr_spec import data_dir
|
|
64
|
+
from chokr_spec.runner import run
|
|
65
|
+
|
|
66
|
+
report = run("core")
|
|
67
|
+
print(report.passed, report.failed, report.ok)
|
|
68
|
+
print(data_dir() / "schemas")
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
`data_dir()` is the folder that holds `schemas/`, `registry/` and `vectors/`. Another implementation can load the same
|
|
72
|
+
files and reproduce every vector's `expected` value.
|
|
73
|
+
|
|
74
|
+
## What is inside
|
|
75
|
+
|
|
76
|
+
```text
|
|
77
|
+
schemas/ JSON Schemas of the documents: envelope, signal, verdict, ledger record, approval, budget event,
|
|
78
|
+
pack, plugin manifest, config and action mappings
|
|
79
|
+
registry/ names CHOKR defines: kinds, signal codes, reason codes, evidence types, obligation types, error codes
|
|
80
|
+
vectors/ core/ and connect/ conformance vectors, one folder per area
|
|
81
|
+
src/ the reference checker and the `chokr-spec` command
|
|
82
|
+
tools/ gen_vectors.py rewrites the vectors that need only a hash function; check_spec.py checks all the data
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
A vector is a JSON file with an `id`, a `level`, an `input` and an `expected` result. The `id` is `<area>/<file name>` and
|
|
86
|
+
the `level` is the folder it sits in. The areas are `envelope` (canonical form and digest), `ledger` (the hash chain),
|
|
87
|
+
`tamper` (a changed chain), `schema` (a document against a schema), `version` (version compatibility) and `verdict`
|
|
88
|
+
(signature verification). The levels are `core` and `connect`; a `trust` level is reserved and has no vectors yet.
|
|
89
|
+
|
|
90
|
+
## What is normative
|
|
91
|
+
|
|
92
|
+
The JSON Schemas, the registries and the vectors define the protocol. The Python checker is a reference implementation
|
|
93
|
+
of the vectors, not a second source of truth. When they disagree, the vectors win and the checker is wrong.
|
|
94
|
+
|
|
95
|
+
- Each schema describes one minor version exactly. Inside that version an unknown field is invalid, and `ext` is the
|
|
96
|
+
place for extensions. A reader that supports `1.m` accepts documents from `1.0` to `1.m`, each against its own schema.
|
|
97
|
+
- Patterns in the schemas must match the whole text, and a trailing newline never matches.
|
|
98
|
+
- Signatures are strict unpadded base64url, and the checks run in a fixed order: unsigned, malformed signature, kid not
|
|
99
|
+
allowed, unknown kid, algorithm, then the signature itself. A kid that is both unknown and not allowed is reported as
|
|
100
|
+
not allowed.
|
|
101
|
+
- A ledger chain verifies from `seq` 0 and reports the first problem as `<class> at seq <n>`. A chain cut short at the
|
|
102
|
+
end still verifies by itself, so a reader that must detect a cut keeps the head hash it last saw and passes it to
|
|
103
|
+
`verify_chain(..., expected_head=...)`.
|
|
104
|
+
|
|
105
|
+
## Versioning
|
|
106
|
+
|
|
107
|
+
- The package version is the protocol version. Before 1.0 every change is a patch.
|
|
108
|
+
- A consumer accepts any minor version of its major version and ignores unknown `ext` names.
|
|
109
|
+
- Optional fields are omitted, never `null`, so digests stay stable.
|
|
110
|
+
- A published code never changes meaning.
|
|
111
|
+
|
|
112
|
+
## Contributing and security
|
|
113
|
+
|
|
114
|
+
See [CONTRIBUTING.md](https://github.com/chokr-ai/chokr-spec/blob/main/CONTRIBUTING.md). Report vulnerabilities privately as described in [SECURITY.md](https://github.com/chokr-ai/chokr-spec/blob/main/SECURITY.md), not in public issues.
|
|
115
|
+
|
|
116
|
+
## License
|
|
117
|
+
|
|
118
|
+
Apache License 2.0. Copyright 2026 chokr-ai. See [LICENSE](https://github.com/chokr-ai/chokr-spec/blob/main/LICENSE) and [NOTICE](https://github.com/chokr-ai/chokr-spec/blob/main/NOTICE).
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# chokr-spec: the CHOKR protocol for AI agent governance (JSON Schemas, registries, conformance vectors)
|
|
2
|
+
|
|
3
|
+
[](https://pypi.org/project/chokr-spec/)
|
|
4
|
+
[](https://pypi.org/project/chokr-spec/)
|
|
5
|
+
[](https://github.com/chokr-ai/chokr-spec/actions/workflows/ci.yml)
|
|
6
|
+
[](https://github.com/chokr-ai/chokr-spec/blob/main/LICENSE)
|
|
7
|
+
|
|
8
|
+
The CHOKR protocol as data: JSON Schemas for the documents that govern AI agents (envelope, signed verdict, tamper-evident
|
|
9
|
+
audit ledger, approval, pack, plugin manifest and config), registries of standard names, and conformance vectors. The
|
|
10
|
+
package also holds a reference checker that runs the vectors, so any implementation, in any language, can compare its
|
|
11
|
+
results with the same inputs.
|
|
12
|
+
|
|
13
|
+
The policy language has its own repository, `chokr-policy-language`. Its outcomes, standard reason codes and authoring
|
|
14
|
+
error codes are defined there and are not repeated here.
|
|
15
|
+
|
|
16
|
+
## Install
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
pip install chokr-spec
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Python 3.14 or newer. Import name: `chokr_spec`.
|
|
23
|
+
|
|
24
|
+
## Check the vectors
|
|
25
|
+
|
|
26
|
+
```console
|
|
27
|
+
$ chokr-spec check
|
|
28
|
+
$ chokr-spec check --level core --report report.json
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
The command exits with `0` only when every vector passes. `--vectors DIR` runs a different folder of vectors, and
|
|
32
|
+
`--json` prints the report.
|
|
33
|
+
|
|
34
|
+
## Use from Python
|
|
35
|
+
|
|
36
|
+
```python
|
|
37
|
+
from chokr_spec import data_dir
|
|
38
|
+
from chokr_spec.runner import run
|
|
39
|
+
|
|
40
|
+
report = run("core")
|
|
41
|
+
print(report.passed, report.failed, report.ok)
|
|
42
|
+
print(data_dir() / "schemas")
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
`data_dir()` is the folder that holds `schemas/`, `registry/` and `vectors/`. Another implementation can load the same
|
|
46
|
+
files and reproduce every vector's `expected` value.
|
|
47
|
+
|
|
48
|
+
## What is inside
|
|
49
|
+
|
|
50
|
+
```text
|
|
51
|
+
schemas/ JSON Schemas of the documents: envelope, signal, verdict, ledger record, approval, budget event,
|
|
52
|
+
pack, plugin manifest, config and action mappings
|
|
53
|
+
registry/ names CHOKR defines: kinds, signal codes, reason codes, evidence types, obligation types, error codes
|
|
54
|
+
vectors/ core/ and connect/ conformance vectors, one folder per area
|
|
55
|
+
src/ the reference checker and the `chokr-spec` command
|
|
56
|
+
tools/ gen_vectors.py rewrites the vectors that need only a hash function; check_spec.py checks all the data
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
A vector is a JSON file with an `id`, a `level`, an `input` and an `expected` result. The `id` is `<area>/<file name>` and
|
|
60
|
+
the `level` is the folder it sits in. The areas are `envelope` (canonical form and digest), `ledger` (the hash chain),
|
|
61
|
+
`tamper` (a changed chain), `schema` (a document against a schema), `version` (version compatibility) and `verdict`
|
|
62
|
+
(signature verification). The levels are `core` and `connect`; a `trust` level is reserved and has no vectors yet.
|
|
63
|
+
|
|
64
|
+
## What is normative
|
|
65
|
+
|
|
66
|
+
The JSON Schemas, the registries and the vectors define the protocol. The Python checker is a reference implementation
|
|
67
|
+
of the vectors, not a second source of truth. When they disagree, the vectors win and the checker is wrong.
|
|
68
|
+
|
|
69
|
+
- Each schema describes one minor version exactly. Inside that version an unknown field is invalid, and `ext` is the
|
|
70
|
+
place for extensions. A reader that supports `1.m` accepts documents from `1.0` to `1.m`, each against its own schema.
|
|
71
|
+
- Patterns in the schemas must match the whole text, and a trailing newline never matches.
|
|
72
|
+
- Signatures are strict unpadded base64url, and the checks run in a fixed order: unsigned, malformed signature, kid not
|
|
73
|
+
allowed, unknown kid, algorithm, then the signature itself. A kid that is both unknown and not allowed is reported as
|
|
74
|
+
not allowed.
|
|
75
|
+
- A ledger chain verifies from `seq` 0 and reports the first problem as `<class> at seq <n>`. A chain cut short at the
|
|
76
|
+
end still verifies by itself, so a reader that must detect a cut keeps the head hash it last saw and passes it to
|
|
77
|
+
`verify_chain(..., expected_head=...)`.
|
|
78
|
+
|
|
79
|
+
## Versioning
|
|
80
|
+
|
|
81
|
+
- The package version is the protocol version. Before 1.0 every change is a patch.
|
|
82
|
+
- A consumer accepts any minor version of its major version and ignores unknown `ext` names.
|
|
83
|
+
- Optional fields are omitted, never `null`, so digests stay stable.
|
|
84
|
+
- A published code never changes meaning.
|
|
85
|
+
|
|
86
|
+
## Contributing and security
|
|
87
|
+
|
|
88
|
+
See [CONTRIBUTING.md](https://github.com/chokr-ai/chokr-spec/blob/main/CONTRIBUTING.md). Report vulnerabilities privately as described in [SECURITY.md](https://github.com/chokr-ai/chokr-spec/blob/main/SECURITY.md), not in public issues.
|
|
89
|
+
|
|
90
|
+
## License
|
|
91
|
+
|
|
92
|
+
Apache License 2.0. Copyright 2026 chokr-ai. See [LICENSE](https://github.com/chokr-ai/chokr-spec/blob/main/LICENSE) and [NOTICE](https://github.com/chokr-ai/chokr-spec/blob/main/NOTICE).
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling>=1.27"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "chokr-spec"
|
|
7
|
+
dynamic = ["version"]
|
|
8
|
+
readme = "README.md"
|
|
9
|
+
description = "CHOKR protocol for AI agent governance: JSON Schemas, registries and conformance vectors, with a reference checker."
|
|
10
|
+
requires-python = ">=3.14"
|
|
11
|
+
license = "Apache-2.0"
|
|
12
|
+
license-files = ["LICENSE", "NOTICE"]
|
|
13
|
+
authors = [{ name = "Nitin Saxena" }]
|
|
14
|
+
maintainers = [{ name = "chokr-ai" }]
|
|
15
|
+
keywords = [
|
|
16
|
+
"chokr", "ai-governance", "agent-governance", "ai-agents", "agentic-ai", "agent-security", "llm-guardrails",
|
|
17
|
+
"protocol", "specification", "json-schema", "conformance-tests", "audit-trail", "audit-ledger", "tamper-evident",
|
|
18
|
+
"hash-chain", "canonical-json", "signed-verdict", "human-in-the-loop",
|
|
19
|
+
]
|
|
20
|
+
classifiers = [
|
|
21
|
+
"Development Status :: 3 - Alpha",
|
|
22
|
+
"Intended Audience :: Developers",
|
|
23
|
+
"Operating System :: OS Independent",
|
|
24
|
+
"Programming Language :: Python :: 3",
|
|
25
|
+
"Programming Language :: Python :: 3.14",
|
|
26
|
+
"Topic :: Software Development :: Libraries",
|
|
27
|
+
"Typing :: Typed",
|
|
28
|
+
]
|
|
29
|
+
dependencies = [
|
|
30
|
+
"jsonschema>=4.22,<5",
|
|
31
|
+
"rfc8785>=0.1.4,<0.2",
|
|
32
|
+
"cryptography>=43,<51",
|
|
33
|
+
]
|
|
34
|
+
|
|
35
|
+
[project.urls]
|
|
36
|
+
Homepage = "https://github.com/chokr-ai/chokr-spec"
|
|
37
|
+
Repository = "https://github.com/chokr-ai/chokr-spec"
|
|
38
|
+
Issues = "https://github.com/chokr-ai/chokr-spec/issues"
|
|
39
|
+
|
|
40
|
+
[project.scripts]
|
|
41
|
+
chokr-spec = "chokr_spec.cli:main"
|
|
42
|
+
|
|
43
|
+
[dependency-groups]
|
|
44
|
+
dev = [
|
|
45
|
+
"pytest>=8",
|
|
46
|
+
"pytest-cov>=5",
|
|
47
|
+
"ruff>=0.6",
|
|
48
|
+
"mypy>=1.11",
|
|
49
|
+
"types-jsonschema>=4.22",
|
|
50
|
+
"ruamel.yaml>=0.18,<1",
|
|
51
|
+
"import-linter>=2.0",
|
|
52
|
+
"pip-audit>=2.7",
|
|
53
|
+
]
|
|
54
|
+
|
|
55
|
+
[tool.hatch.version]
|
|
56
|
+
path = "src/chokr_spec/__init__.py"
|
|
57
|
+
|
|
58
|
+
[tool.hatch.build.targets.wheel]
|
|
59
|
+
packages = ["src/chokr_spec"]
|
|
60
|
+
|
|
61
|
+
[tool.hatch.build.targets.wheel.force-include]
|
|
62
|
+
"schemas" = "chokr_spec/data/schemas"
|
|
63
|
+
"registry" = "chokr_spec/data/registry"
|
|
64
|
+
"vectors" = "chokr_spec/data/vectors"
|
|
65
|
+
|
|
66
|
+
[tool.hatch.build.targets.sdist]
|
|
67
|
+
include = ["/src", "/tests", "/schemas", "/registry", "/vectors", "/tools", "/README.md", "/pyproject.toml"]
|
|
68
|
+
|
|
69
|
+
[tool.ruff]
|
|
70
|
+
line-length = 120
|
|
71
|
+
target-version = "py314"
|
|
72
|
+
src = ["src", "tests"]
|
|
73
|
+
|
|
74
|
+
[tool.ruff.lint]
|
|
75
|
+
select = ["E", "F", "I", "UP", "B", "SIM", "PT", "RUF", "S", "C4", "PIE", "PERF", "PTH", "T20", "W"]
|
|
76
|
+
ignore = ["RUF012", "B905"]
|
|
77
|
+
|
|
78
|
+
[tool.ruff.lint.per-file-ignores]
|
|
79
|
+
"tests/**" = ["PT006", "PT011", "PT012", "PT018", "E501", "S101", "S105", "S106"]
|
|
80
|
+
"tools/**" = ["T201"]
|
|
81
|
+
"src/chokr_spec/cli.py" = ["T201"]
|
|
82
|
+
|
|
83
|
+
[tool.mypy]
|
|
84
|
+
python_version = "3.14"
|
|
85
|
+
strict = true
|
|
86
|
+
warn_unreachable = true
|
|
87
|
+
files = ["src/chokr_spec"]
|
|
88
|
+
|
|
89
|
+
[tool.pytest.ini_options]
|
|
90
|
+
testpaths = ["tests"]
|
|
91
|
+
pythonpath = ["."]
|
|
92
|
+
addopts = "-q -ra --strict-markers --strict-config"
|
|
93
|
+
|
|
94
|
+
[tool.coverage.run]
|
|
95
|
+
branch = true
|
|
96
|
+
source = ["chokr_spec"]
|
|
97
|
+
omit = ["*/__main__.py"]
|
|
98
|
+
|
|
99
|
+
[tool.coverage.report]
|
|
100
|
+
fail_under = 90
|
|
101
|
+
show_missing = true
|
|
102
|
+
skip_covered = true
|
|
103
|
+
exclude_also = ["if TYPE_CHECKING:", "^\\s*\\.\\.\\.$", "if __name__ == .__main__.:"]
|
|
104
|
+
|
|
105
|
+
[tool.importlinter]
|
|
106
|
+
root_package = "chokr_spec"
|
|
107
|
+
include_external_packages = true
|
|
108
|
+
|
|
109
|
+
[[tool.importlinter.contracts]]
|
|
110
|
+
name = "The protocol data imports no product and no network library"
|
|
111
|
+
type = "forbidden"
|
|
112
|
+
source_modules = ["chokr_spec"]
|
|
113
|
+
forbidden_modules = ["chokr", "cplang", "pydantic", "httpx", "requests", "aiohttp", "urllib3", "fastapi"]
|
|
114
|
+
allow_indirect_imports = true
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Names that CHOKR defines. The language's own names (outcomes, standard reason codes and authoring error codes)
|
|
2
|
+
# live in the language registry. This file is edited by hand and kept sorted by tools/check_spec.py.
|
|
3
|
+
schema_version: '1.0'
|
|
4
|
+
entries:
|
|
5
|
+
- code: CONNECT_API_KEY_MISSING
|
|
6
|
+
- code: CONNECT_URL_MISSING
|
|
7
|
+
- code: ENFORCEMENT_FAILURE
|
|
8
|
+
- code: EXPORTER_UNAVAILABLE
|
|
9
|
+
- code: GRANT_MISMATCH
|
|
10
|
+
- code: KID_NOT_ALLOWED
|
|
11
|
+
- code: LEDGER_UNAVAILABLE
|
|
12
|
+
- code: PACK_DEPENDENCY_CONFLICT
|
|
13
|
+
- code: PACK_DEPENDENCY_CYCLE
|
|
14
|
+
- code: PACK_INVALID
|
|
15
|
+
- code: PACK_IN_USE
|
|
16
|
+
- code: PACK_NAMESPACE_VIOLATION
|
|
17
|
+
- code: PACK_NOT_FOUND
|
|
18
|
+
- code: PACK_REQUIRES_UNSATISFIED
|
|
19
|
+
- code: PACK_SIGNATURE_INVALID
|
|
20
|
+
- code: PACK_SIGNER_UNTRUSTED
|
|
21
|
+
- code: PACK_TEST_FAILED
|
|
22
|
+
- code: PACK_UNSIGNED
|
|
23
|
+
- code: PLUGIN_NAMESPACE_VIOLATION
|
|
24
|
+
- code: SIGNATURE_INVALID
|
|
25
|
+
- code: UNKNOWN_KID
|
|
26
|
+
- code: UNSUPPORTED_ALGORITHM
|
|
27
|
+
- code: VERDICT_UNSIGNED
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Names that CHOKR defines. The language's own names (outcomes, standard reason codes and authoring error codes)
|
|
2
|
+
# live in the language registry. This file is edited by hand and kept sorted by tools/check_spec.py.
|
|
3
|
+
schema_version: '1.0'
|
|
4
|
+
entries:
|
|
5
|
+
- name: BEHAVIORAL_TEST
|
|
6
|
+
- name: BUILD_PROVENANCE
|
|
7
|
+
- name: COMPLIANCE
|
|
8
|
+
- name: HUMAN_APPROVAL
|
|
9
|
+
- name: IDENTITY
|
|
10
|
+
- name: MANIFEST_PIN
|
|
11
|
+
- name: MODEL_PROFILE
|
|
12
|
+
- name: MODEL_RUNTIME
|
|
13
|
+
- name: OWNERSHIP
|
|
14
|
+
- name: RUNTIME
|
|
15
|
+
- name: SANDBOX_ATTESTATION
|
|
16
|
+
- name: SECURITY_ASSESSMENT
|
|
17
|
+
- name: SOFTWARE_ARTIFACT
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Names that CHOKR defines. The language's own names (outcomes, standard reason codes and authoring error codes)
|
|
2
|
+
# live in the language registry. This file is edited by hand and kept sorted by tools/check_spec.py.
|
|
3
|
+
schema_version: '1.0'
|
|
4
|
+
entries:
|
|
5
|
+
- name: agent_message
|
|
6
|
+
- name: context_compaction
|
|
7
|
+
- name: db_query
|
|
8
|
+
- name: file_op
|
|
9
|
+
- name: http_call
|
|
10
|
+
- name: mcp_call
|
|
11
|
+
- name: mcp_result
|
|
12
|
+
- name: memory_write
|
|
13
|
+
- name: model_call
|
|
14
|
+
- name: model_result
|
|
15
|
+
- name: retrieval
|
|
16
|
+
- name: session_end
|
|
17
|
+
- name: session_start
|
|
18
|
+
- name: shell_exec
|
|
19
|
+
- name: skill_load
|
|
20
|
+
- name: skill_register
|
|
21
|
+
- name: subagent_spawn
|
|
22
|
+
- name: subagent_stop
|
|
23
|
+
- name: tool_call
|
|
24
|
+
- name: tool_result
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Names that CHOKR defines. The language's own names (outcomes, standard reason codes and authoring error codes)
|
|
2
|
+
# live in the language registry. This file is edited by hand and kept sorted by tools/check_spec.py.
|
|
3
|
+
schema_version: '1.0'
|
|
4
|
+
entries:
|
|
5
|
+
- name: human_approval
|
|
6
|
+
params: approval
|
|
7
|
+
- name: provide_evidence
|
|
8
|
+
params: evidence type
|
|
9
|
+
- name: refresh_evidence
|
|
10
|
+
params: evidence type
|
|
11
|
+
- name: security_alert
|
|
12
|
+
params: signal, severity
|