fable5-assurance-toolkit 0.3.0rc5__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.
- fable5_assurance_toolkit-0.3.0rc5/LICENSE +202 -0
- fable5_assurance_toolkit-0.3.0rc5/MANIFEST.in +8 -0
- fable5_assurance_toolkit-0.3.0rc5/PKG-INFO +287 -0
- fable5_assurance_toolkit-0.3.0rc5/README.md +269 -0
- fable5_assurance_toolkit-0.3.0rc5/VERSION +1 -0
- fable5_assurance_toolkit-0.3.0rc5/contracts/review-kernel/IDENTITY.json +6 -0
- fable5_assurance_toolkit-0.3.0rc5/contracts/schemas/CLI_OUTPUT_CONTRACT.json +593 -0
- fable5_assurance_toolkit-0.3.0rc5/contracts/schemas/FINDING_SCHEMA.json +6 -0
- fable5_assurance_toolkit-0.3.0rc5/contracts/schemas/MODULE_CONTRACTS.json +12 -0
- fable5_assurance_toolkit-0.3.0rc5/contracts/session-handoff/IDENTITIES.json +16 -0
- fable5_assurance_toolkit-0.3.0rc5/contracts/successor-eval/README.md +31 -0
- fable5_assurance_toolkit-0.3.0rc5/contracts/successor-eval/cases.jsonl +12 -0
- fable5_assurance_toolkit-0.3.0rc5/contracts/successor-eval/expected_controls.jsonl +12 -0
- fable5_assurance_toolkit-0.3.0rc5/contracts/successor-eval/rubric.md +36 -0
- fable5_assurance_toolkit-0.3.0rc5/contracts/successor-eval/scoring_schema.json +29 -0
- fable5_assurance_toolkit-0.3.0rc5/docs/ARCHITECTURE.md +39 -0
- fable5_assurance_toolkit-0.3.0rc5/docs/CONTRACT_COMPATIBILITY.md +12 -0
- fable5_assurance_toolkit-0.3.0rc5/docs/LIMITATIONS_AND_FUTURE_SEAMS.md +39 -0
- fable5_assurance_toolkit-0.3.0rc5/docs/MODULE_SCOPE_AND_NON_GOALS.md +11 -0
- fable5_assurance_toolkit-0.3.0rc5/docs/PILOT_METHOD.md +10 -0
- fable5_assurance_toolkit-0.3.0rc5/docs/RECOVERY_AND_RETENTION.md +11 -0
- fable5_assurance_toolkit-0.3.0rc5/docs/RECOVERY_LINEAGE.md +13 -0
- fable5_assurance_toolkit-0.3.0rc5/docs/STATUS_SEMANTICS.md +19 -0
- fable5_assurance_toolkit-0.3.0rc5/docs/VALIDATED_WORKFLOWS.md +55 -0
- fable5_assurance_toolkit-0.3.0rc5/examples/agent-change-assurance/README.md +67 -0
- fable5_assurance_toolkit-0.3.0rc5/examples/agent-change-assurance/handoff-template.json +23 -0
- fable5_assurance_toolkit-0.3.0rc5/examples/agent-change-assurance/run.sh +192 -0
- fable5_assurance_toolkit-0.3.0rc5/examples/agent-change-assurance/task.json +12 -0
- fable5_assurance_toolkit-0.3.0rc5/examples/machine-consumer/README.md +34 -0
- fable5_assurance_toolkit-0.3.0rc5/examples/machine-consumer/run.py +82 -0
- fable5_assurance_toolkit-0.3.0rc5/fixtures/classify/read-local-document.json +11 -0
- fable5_assurance_toolkit-0.3.0rc5/fixtures/closeout/valid-closeout.json +20 -0
- fable5_assurance_toolkit-0.3.0rc5/fixtures/corpus/README.md +2 -0
- fable5_assurance_toolkit-0.3.0rc5/fixtures/evaluation/README.md +2 -0
- fable5_assurance_toolkit-0.3.0rc5/fixtures/governance/source.txt +1 -0
- fable5_assurance_toolkit-0.3.0rc5/fixtures/governance/valid-pack.json +36 -0
- fable5_assurance_toolkit-0.3.0rc5/fixtures/handoff/valid-observation.json +18 -0
- fable5_assurance_toolkit-0.3.0rc5/fixtures/pilots/README.md +3 -0
- fable5_assurance_toolkit-0.3.0rc5/fixtures/terminal/open-task.json +16 -0
- fable5_assurance_toolkit-0.3.0rc5/pyproject.toml +31 -0
- fable5_assurance_toolkit-0.3.0rc5/setup.cfg +4 -0
- fable5_assurance_toolkit-0.3.0rc5/src/assurance_toolkit/__init__.py +5 -0
- fable5_assurance_toolkit-0.3.0rc5/src/assurance_toolkit/__main__.py +3 -0
- fable5_assurance_toolkit-0.3.0rc5/src/assurance_toolkit/cli.py +205 -0
- fable5_assurance_toolkit-0.3.0rc5/src/assurance_toolkit/closeout.py +84 -0
- fable5_assurance_toolkit-0.3.0rc5/src/assurance_toolkit/corpus.py +409 -0
- fable5_assurance_toolkit-0.3.0rc5/src/assurance_toolkit/evaluation.py +188 -0
- fable5_assurance_toolkit-0.3.0rc5/src/assurance_toolkit/findings.py +56 -0
- fable5_assurance_toolkit-0.3.0rc5/src/assurance_toolkit/governance.py +143 -0
- fable5_assurance_toolkit-0.3.0rc5/src/assurance_toolkit/handoff.py +146 -0
- fable5_assurance_toolkit-0.3.0rc5/src/assurance_toolkit/identities.py +47 -0
- fable5_assurance_toolkit-0.3.0rc5/src/assurance_toolkit/io_utils.py +149 -0
- fable5_assurance_toolkit-0.3.0rc5/src/assurance_toolkit/models.py +56 -0
- fable5_assurance_toolkit-0.3.0rc5/src/assurance_toolkit/no_clobber.py +52 -0
- fable5_assurance_toolkit-0.3.0rc5/src/assurance_toolkit/pilots.py +641 -0
- fable5_assurance_toolkit-0.3.0rc5/src/assurance_toolkit/risk.py +214 -0
- fable5_assurance_toolkit-0.3.0rc5/src/assurance_toolkit/terminal.py +138 -0
- fable5_assurance_toolkit-0.3.0rc5/src/assurance_toolkit/version.py +6 -0
- fable5_assurance_toolkit-0.3.0rc5/src/fable5_assurance_toolkit.egg-info/PKG-INFO +287 -0
- fable5_assurance_toolkit-0.3.0rc5/src/fable5_assurance_toolkit.egg-info/SOURCES.txt +73 -0
- fable5_assurance_toolkit-0.3.0rc5/src/fable5_assurance_toolkit.egg-info/dependency_links.txt +1 -0
- fable5_assurance_toolkit-0.3.0rc5/src/fable5_assurance_toolkit.egg-info/entry_points.txt +2 -0
- fable5_assurance_toolkit-0.3.0rc5/src/fable5_assurance_toolkit.egg-info/top_level.txt +1 -0
- fable5_assurance_toolkit-0.3.0rc5/tests/test_cli_output_contract.py +550 -0
- fable5_assurance_toolkit-0.3.0rc5/tests/test_cli_public.py +201 -0
- fable5_assurance_toolkit-0.3.0rc5/tests/test_example_agent_change_assurance.py +52 -0
- fable5_assurance_toolkit-0.3.0rc5/tests/test_example_machine_consumer.py +37 -0
- fable5_assurance_toolkit-0.3.0rc5/tests/test_pilots_public.py +105 -0
- fable5_assurance_toolkit-0.3.0rc5/tests/test_pm01_risk.py +163 -0
- fable5_assurance_toolkit-0.3.0rc5/tests/test_pm02_governance.py +242 -0
- fable5_assurance_toolkit-0.3.0rc5/tests/test_pm03_terminal.py +221 -0
- fable5_assurance_toolkit-0.3.0rc5/tests/test_pm04_corpus.py +314 -0
- fable5_assurance_toolkit-0.3.0rc5/tests/test_pm05_handoff_closeout.py +265 -0
- fable5_assurance_toolkit-0.3.0rc5/tests/test_pm06_evaluation.py +216 -0
- fable5_assurance_toolkit-0.3.0rc5/tests/test_regression_architecture.py +163 -0
|
@@ -0,0 +1,202 @@
|
|
|
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.
|
|
202
|
+
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: fable5-assurance-toolkit
|
|
3
|
+
Version: 0.3.0rc5
|
|
4
|
+
Summary: Local deterministic assurance controls reconstructed under a new lineage
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
Project-URL: Repository, https://github.com/dormitivegit/fable5-assurance-toolkit
|
|
7
|
+
Project-URL: Issues, https://github.com/dormitivegit/fable5-assurance-toolkit/issues
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
14
|
+
Requires-Python: >=3.11
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
License-File: LICENSE
|
|
17
|
+
Dynamic: license-file
|
|
18
|
+
|
|
19
|
+
# FABLE5 Assurance Toolkit
|
|
20
|
+
|
|
21
|
+
FABLE5 is a local, deterministic command-line toolkit for applying assurance
|
|
22
|
+
and conformance controls to AI-assisted software-engineering workflows. It
|
|
23
|
+
turns structured task inputs, governance packs, terminal states, corpus
|
|
24
|
+
manifests, handoffs, closeouts, and evaluation records into reproducible
|
|
25
|
+
findings that humans and automation can inspect.
|
|
26
|
+
|
|
27
|
+
AI-assisted changes can move faster than the evidence needed to review them.
|
|
28
|
+
FABLE5 makes selected behavioral contracts explicit and repeatable without a
|
|
29
|
+
hosted service, background agent, network call, or model invocation. It
|
|
30
|
+
complements tests and human review; it does not replace either or make release
|
|
31
|
+
decisions.
|
|
32
|
+
|
|
33
|
+
## Quick start
|
|
34
|
+
|
|
35
|
+
FABLE5 requires Python 3.11 or newer and has no non-standard-library Python
|
|
36
|
+
runtime dependencies. For the checkout-based examples below, run commands from
|
|
37
|
+
the repository root. Install it in an isolated environment:
|
|
38
|
+
|
|
39
|
+
```sh
|
|
40
|
+
python3 -m venv .venv
|
|
41
|
+
. .venv/bin/activate
|
|
42
|
+
python -m pip install .
|
|
43
|
+
assurance --version
|
|
44
|
+
assurance --help
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Run a deterministic governance-pack check against the included fixture:
|
|
48
|
+
|
|
49
|
+
```sh
|
|
50
|
+
assurance check fixtures/governance/valid-pack.json --format json
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
For authorization-bearing `check`, `guard`, and `closeout` inputs, the caller
|
|
54
|
+
supplies the expected identity with `--authority-id <IDENTITY>`. Leading and
|
|
55
|
+
trailing whitespace is ignored; the remaining identifier is compared exactly
|
|
56
|
+
and case-sensitively. This is an out-of-band caller input; the document being
|
|
57
|
+
validated cannot set or override it. Read-only validation does not require an
|
|
58
|
+
authority ID.
|
|
59
|
+
|
|
60
|
+
For repository-only development without installation, use:
|
|
61
|
+
|
|
62
|
+
```sh
|
|
63
|
+
PYTHONPATH=src python3 -m assurance_toolkit --version
|
|
64
|
+
PYTHONPATH=src python3 -m assurance_toolkit --help
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Run the complete test suite:
|
|
68
|
+
|
|
69
|
+
```sh
|
|
70
|
+
PYTHONDONTWRITEBYTECODE=1 PYTHONPATH=src \
|
|
71
|
+
python3 -m unittest discover -s tests -v
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Use `--format json` when another tool or AI agent will consume the result. Run
|
|
75
|
+
`python3 -m assurance_toolkit <command> --help` for command-specific options.
|
|
76
|
+
|
|
77
|
+
## Start here: choose a command
|
|
78
|
+
|
|
79
|
+
| If you need to… | Start with |
|
|
80
|
+
| --- | --- |
|
|
81
|
+
| assess the risk and required controls for a bounded proposed action | `assurance classify fixtures/classify/read-local-document.json --format json` |
|
|
82
|
+
| validate a structured governance document before relying on it | `assurance check PACK.json --format json` |
|
|
83
|
+
| inspect a terminal state or target collision without changing either | `assurance guard STATE.json TARGET --executor NAME --format json` |
|
|
84
|
+
| freeze or verify the exact bytes of a bounded source set | `assurance corpus freeze ROOT --manifest MANIFEST --format json` or `assurance corpus verify MANIFEST --format json` |
|
|
85
|
+
| structurally inspect a handoff or closeout record | `assurance handoff HANDOFF.json --carrier CARRIER --format json` or `assurance closeout CLOSEOUT.json --format json` |
|
|
86
|
+
| prepare preserved evaluation cases or score supplied judgments | `assurance eval prepare CASES.jsonl --out PREPARED.json --format json` or `assurance eval score CASES.jsonl SCORES.jsonl --format json` |
|
|
87
|
+
|
|
88
|
+
The commands report bounded evidence. They do not authorize a change, decide a
|
|
89
|
+
merge, or replace human review.
|
|
90
|
+
|
|
91
|
+
For an already accepted corpus manifest, bind verification to its exact raw
|
|
92
|
+
bytes as well as its semantic records:
|
|
93
|
+
|
|
94
|
+
```sh
|
|
95
|
+
assurance corpus verify MANIFEST \
|
|
96
|
+
--accepted-manifest-sha256 SHA256 \
|
|
97
|
+
--format json
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
The accepted SHA-256 is caller supplied. It anchors the exact manifest bytes
|
|
101
|
+
and therefore the recorded scope declaration; it does not prove that the
|
|
102
|
+
chosen roots or exclusions are complete, optimal, or authorized.
|
|
103
|
+
|
|
104
|
+
Corpus manifests bind sources to the absolute filesystem paths recorded at
|
|
105
|
+
freeze time. Verification expects those paths to keep identifying the intended
|
|
106
|
+
sources; a manifest is not a portable "freeze on one machine, verify under a
|
|
107
|
+
different layout" artifact. Manifests also disclose absolute paths and
|
|
108
|
+
per-file hashes, so do not publish sensitive manifests verbatim or freeze
|
|
109
|
+
credential-bearing roots.
|
|
110
|
+
|
|
111
|
+
`--exclude` uses path containment/prefix semantics, not shell glob matching.
|
|
112
|
+
With `--detect-new`, current normal verification reports
|
|
113
|
+
`CI10_NEW_SOURCE_DETECTED` as `WARN`; when it is the only finding, the process
|
|
114
|
+
still exits `0`. Consumers that need new-file gating must inspect structured
|
|
115
|
+
findings as well as the process exit status.
|
|
116
|
+
|
|
117
|
+
## CLI output and exit contract
|
|
118
|
+
|
|
119
|
+
The normative, machine-readable contract is
|
|
120
|
+
[`contracts/schemas/CLI_OUTPUT_CONTRACT.json`](https://github.com/dormitivegit/fable5-assurance-toolkit/blob/main/contracts/schemas/CLI_OUTPUT_CONTRACT.json).
|
|
121
|
+
It distinguishes ModuleResult JSON, CLI parse-failure JSON, argparse usage
|
|
122
|
+
text, help/version text, and the existing synthetic-pilot JSON shape. In
|
|
123
|
+
particular, parse-failure JSON uses the command string as `module_id` and
|
|
124
|
+
`recovery-1` as `rule_set_version`; argparse usage failures emit no JSON.
|
|
125
|
+
|
|
126
|
+
| Exit | Meaning |
|
|
127
|
+
| --- | --- |
|
|
128
|
+
| 0 | PASS or successful non-error command |
|
|
129
|
+
| 1 | generic FAIL |
|
|
130
|
+
| 2 | input/invocation-class FAIL |
|
|
131
|
+
| 3 | generic HOLD |
|
|
132
|
+
| 4 | integrity-family HOLD |
|
|
133
|
+
| 5 | terminal/target-family HOLD |
|
|
134
|
+
|
|
135
|
+
For structured module outcomes, finding severity first determines whether the
|
|
136
|
+
outcome is blocking: `ERROR` and `HOLD` block, while `WARN` and `INFO` do not
|
|
137
|
+
block under the normal profile. `--profile strict` can promote `WARN` to
|
|
138
|
+
effective blocking for the final decision without changing the serialized
|
|
139
|
+
finding's severity label. A non-blocking finding does not select a nonzero exit
|
|
140
|
+
solely because its prefix belongs to an exit family.
|
|
141
|
+
|
|
142
|
+
For effectively blocking module outcomes, PM-03 normally applies the
|
|
143
|
+
terminal-family exit floor/pin and PM-04 normally applies the integrity-family
|
|
144
|
+
exit floor/pin, subject to explicit decision exceptions published in the
|
|
145
|
+
normative CLI contract. This module-selected effective exit family is distinct
|
|
146
|
+
from the family suggested by an individual finding prefix. After severity,
|
|
147
|
+
profile promotion, any module floor/pin, and any exact exception are resolved,
|
|
148
|
+
precedence remains
|
|
149
|
+
`terminal(5) > integrity(4) > HOLD-severity(3) > input-class(2) > generic(1)`.
|
|
150
|
+
The table above is a summary; consumers that need exact decision behavior must
|
|
151
|
+
use the normative JSON contract.
|
|
152
|
+
|
|
153
|
+
This build publishes the current output/exit contract, not the complete
|
|
154
|
+
current-generation input contract needed to reauthor every preserved A1 case.
|
|
155
|
+
A1 remains predecessor-generation evidence only, not a current release gate,
|
|
156
|
+
compatibility claim, or adoption claim. Any future reactivation requires
|
|
157
|
+
sufficient normative input and output authority plus fresh execution and
|
|
158
|
+
discriminating-power evidence.
|
|
159
|
+
|
|
160
|
+
## Try the end-to-end example
|
|
161
|
+
|
|
162
|
+
Run a deterministic walkthrough that surrounds a simulated agent-generated
|
|
163
|
+
change with risk, integrity, and handoff evidence:
|
|
164
|
+
|
|
165
|
+
```sh
|
|
166
|
+
./examples/agent-change-assurance/run.sh
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
The example is local, network-free, self-cleaning, and leaves acceptance to a
|
|
170
|
+
human reviewer. See the [example guide](https://github.com/dormitivegit/fable5-assurance-toolkit/blob/main/examples/agent-change-assurance/README.md)
|
|
171
|
+
for the expected flow and claim boundaries.
|
|
172
|
+
|
|
173
|
+
## Try a machine-consumer integration
|
|
174
|
+
|
|
175
|
+
From the repository root, run:
|
|
176
|
+
|
|
177
|
+
```sh
|
|
178
|
+
python3 examples/machine-consumer/run.py
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
This small, disposable example creates a bounded source set, consumes JSON
|
|
182
|
+
from `corpus verify --detect-new`, and takes a review branch when a nonblocking
|
|
183
|
+
`WARN` finding is present even though the process exit is `0`. It demonstrates
|
|
184
|
+
why a consumer must inspect structured findings rather than branch on exit
|
|
185
|
+
status alone. See the [machine-consumer guide](https://github.com/dormitivegit/fable5-assurance-toolkit/blob/main/examples/machine-consumer/README.md).
|
|
186
|
+
|
|
187
|
+
## Modules
|
|
188
|
+
|
|
189
|
+
| Module | CLI surface | Purpose |
|
|
190
|
+
| --- | --- | --- |
|
|
191
|
+
| PM-01 Risk Router | `classify` | Classifies task risk from the effects of a proposed action. |
|
|
192
|
+
| PM-02 Governance Pack Validator | `check` | Validates structured claims, decisions, actions, and exact source references. |
|
|
193
|
+
| PM-03 Terminal State and Artifact Guard | `guard` | Performs a read-only preflight for terminal-state and target-collision conditions. |
|
|
194
|
+
| PM-04 Corpus Integrity Guard | `corpus freeze`, `corpus verify` | Creates and verifies bounded, hash-addressed corpus manifests. |
|
|
195
|
+
| PM-05 Handoff and Closeout Validator | `handoff`, `closeout` | Checks handoff carriers and closeout records against explicit contracts. |
|
|
196
|
+
| PM-06 Successor Evaluation Harness | `eval prepare`, `eval score` | Prepares preserved evaluation cases and scores externally supplied judgments. |
|
|
197
|
+
|
|
198
|
+
The `pilot run` surface provides four synthetic pilots (`A`, `B`, `C1`, and
|
|
199
|
+
`C2`) for exercising selected module interactions inside a newly supplied
|
|
200
|
+
disposable root. Pilot C2 is the only pilot-local writer that demonstrates an
|
|
201
|
+
atomic no-clobber seam; it is not reachable from ordinary project workflows.
|
|
202
|
+
|
|
203
|
+
## Design properties
|
|
204
|
+
|
|
205
|
+
- **Deterministic:** rules, findings, ordering, and output formats are designed
|
|
206
|
+
for repeatable inspection from the same bounded inputs.
|
|
207
|
+
- **Local-first and network-free:** the core modules use only the Python
|
|
208
|
+
standard library and do not contact remote services. Synthetic Pilot B uses
|
|
209
|
+
an already installed local Git executable as its test subject with hooks and
|
|
210
|
+
user/system configuration disabled.
|
|
211
|
+
- **Explicit contracts:** versioned schemas, identities, fixtures, and
|
|
212
|
+
evaluation records keep behavioral expectations reviewable in the
|
|
213
|
+
repository.
|
|
214
|
+
- **Fail-closed parsing:** malformed or incomplete inputs produce structured
|
|
215
|
+
failure findings instead of implied success.
|
|
216
|
+
- **Bounded side effects:** validation and guard surfaces are read-only;
|
|
217
|
+
artifact-producing commands require explicit destinations, and synthetic
|
|
218
|
+
pilot writes are confined to a caller-supplied disposable root.
|
|
219
|
+
- **No hidden control plane:** there is no daemon, database, web UI, installed
|
|
220
|
+
hook, automatic model call, semantic auto-score, or automatic promotion path.
|
|
221
|
+
|
|
222
|
+
See [Architecture](https://github.com/dormitivegit/fable5-assurance-toolkit/blob/main/docs/ARCHITECTURE.md),
|
|
223
|
+
[module scope and non-goals](https://github.com/dormitivegit/fable5-assurance-toolkit/blob/main/docs/MODULE_SCOPE_AND_NON_GOALS.md), and
|
|
224
|
+
[known limitations](https://github.com/dormitivegit/fable5-assurance-toolkit/blob/main/docs/LIMITATIONS_AND_FUTURE_SEAMS.md) for the detailed
|
|
225
|
+
boundaries. Read [validated workflows](https://github.com/dormitivegit/fable5-assurance-toolkit/blob/main/docs/VALIDATED_WORKFLOWS.md) for two
|
|
226
|
+
bounded, maintainer-controlled downstream cases and their claim limits.
|
|
227
|
+
|
|
228
|
+
## AI-agent and maintainer workflow
|
|
229
|
+
|
|
230
|
+
1. A human or automation supplies a bounded input and chooses the applicable
|
|
231
|
+
FABLE5 command and profile.
|
|
232
|
+
2. An AI agent or CI job runs the command, preserves its structured output, and
|
|
233
|
+
treats nonzero exit codes and findings as review evidence.
|
|
234
|
+
3. The submitter runs the test suite and explains any intentional behavioral
|
|
235
|
+
contract change in the pull request.
|
|
236
|
+
4. A maintainer reviews the code, tests, deterministic output, compatibility,
|
|
237
|
+
and security impact before deciding whether to merge or release.
|
|
238
|
+
|
|
239
|
+
FABLE5 reports on the contracts it implements. It does not establish business
|
|
240
|
+
truth, infer authorization, approve its own changes, or promote a candidate to
|
|
241
|
+
production. Those decisions remain with people responsible for the project.
|
|
242
|
+
|
|
243
|
+
## Project status and provenance
|
|
244
|
+
|
|
245
|
+
```text
|
|
246
|
+
PRODUCT_VERSION=0.3.0-recovery.5
|
|
247
|
+
PYTHON_DISTRIBUTION_VERSION=0.3.0rc5
|
|
248
|
+
STATUS=full-functional-recovery-candidate
|
|
249
|
+
LINEAGE_ID=FABLE5-ASSURANCE-TOOLKIT-FULL-FUNCTIONAL-RECOVERY-20260713
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
This repository is a clean-room functional reconstruction under a new Git
|
|
253
|
+
lineage, based on accepted architecture, contracts, sanitized fixtures, tests,
|
|
254
|
+
and pilot requirements. It claims continuity of the accepted functional
|
|
255
|
+
contract, not recovery of historical source bytes, commits, or tags. The
|
|
256
|
+
`v0.3.0-recovery.1` tag identifies the first recovery candidate in the
|
|
257
|
+
reconstructed lineage; `v0.3.0-recovery.2` records the subsequent public
|
|
258
|
+
open-source surface hardening; `v0.3.0-recovery.3` generalizes the public
|
|
259
|
+
authorization contract for external maintainers; and `v0.3.0-recovery.4`
|
|
260
|
+
publishes the current contract hardening and consumer guidance. The prepared
|
|
261
|
+
`v0.3.0-recovery.5` release adds first-run navigation, validated
|
|
262
|
+
maintainer-controlled workflow summaries, a runnable machine-consumer path,
|
|
263
|
+
and PEP 517 distribution metadata; it does not itself publish a package.
|
|
264
|
+
|
|
265
|
+
The current status means the six modules and public interface have been
|
|
266
|
+
reconstructed and mechanically tested. Bounded independent review exists for
|
|
267
|
+
the current contract/runtime correction; this is not a claim of comprehensive
|
|
268
|
+
independent review, user acceptance, external validation, canonical promotion,
|
|
269
|
+
production readiness, or ecosystem adoption. See
|
|
270
|
+
[status semantics](https://github.com/dormitivegit/fable5-assurance-toolkit/blob/main/docs/STATUS_SEMANTICS.md) and
|
|
271
|
+
[recovery lineage](https://github.com/dormitivegit/fable5-assurance-toolkit/blob/main/docs/RECOVERY_LINEAGE.md) for the precise claims.
|
|
272
|
+
|
|
273
|
+
## Contributing
|
|
274
|
+
|
|
275
|
+
Focused issues and pull requests are welcome. Read
|
|
276
|
+
[CONTRIBUTING.md](https://github.com/dormitivegit/fable5-assurance-toolkit/blob/main/CONTRIBUTING.md) for test, determinism, and AI-assisted
|
|
277
|
+
contribution expectations. Maintainer roles are documented in
|
|
278
|
+
[MAINTAINERS.md](https://github.com/dormitivegit/fable5-assurance-toolkit/blob/main/MAINTAINERS.md).
|
|
279
|
+
|
|
280
|
+
## Security
|
|
281
|
+
|
|
282
|
+
Do not report vulnerabilities or exploit details in a public issue. Follow the
|
|
283
|
+
private reporting process in [SECURITY.md](https://github.com/dormitivegit/fable5-assurance-toolkit/blob/main/SECURITY.md).
|
|
284
|
+
|
|
285
|
+
## License
|
|
286
|
+
|
|
287
|
+
Licensed under the [Apache License 2.0](https://github.com/dormitivegit/fable5-assurance-toolkit/blob/main/LICENSE).
|