@tiphys/kernel 0.0.0 → 0.1.0
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.
- package/AGENTS.md +611 -0
- package/LICENSE +202 -0
- package/assurance-modes.yaml +278 -0
- package/checklists/clean-room.yaml +325 -0
- package/checklists/env-failure-diagnosis.yaml +68 -0
- package/checklists/flake-playbook.yaml +68 -0
- package/checklists/hazard-review.yaml +144 -0
- package/checklists/plan-review.yaml +103 -0
- package/dist/bin/tiphys.d.ts +2 -0
- package/dist/bin/tiphys.js +14 -0
- package/dist/src/brief.d.ts +32 -0
- package/dist/src/brief.js +59 -0
- package/dist/src/checklists.d.ts +169 -0
- package/dist/src/checklists.js +310 -0
- package/dist/src/checks.d.ts +828 -0
- package/dist/src/checks.js +3314 -0
- package/dist/src/cli.d.ts +9 -0
- package/dist/src/cli.js +57 -0
- package/dist/src/commands/brief.d.ts +92 -0
- package/dist/src/commands/brief.js +320 -0
- package/dist/src/commands/checklist.d.ts +42 -0
- package/dist/src/commands/checklist.js +168 -0
- package/dist/src/commands/doctor.d.ts +35 -0
- package/dist/src/commands/doctor.js +605 -0
- package/dist/src/commands/gates.d.ts +9 -0
- package/dist/src/commands/gates.js +360 -0
- package/dist/src/commands/init.d.ts +30 -0
- package/dist/src/commands/init.js +128 -0
- package/dist/src/commands/lock.d.ts +1 -0
- package/dist/src/commands/lock.js +229 -0
- package/dist/src/commands/mode.d.ts +40 -0
- package/dist/src/commands/mode.js +134 -0
- package/dist/src/commands/plan.d.ts +20 -0
- package/dist/src/commands/plan.js +105 -0
- package/dist/src/commands/pool.d.ts +1 -0
- package/dist/src/commands/pool.js +128 -0
- package/dist/src/commands/spawn.d.ts +1 -0
- package/dist/src/commands/spawn.js +146 -0
- package/dist/src/commands/status.d.ts +19 -0
- package/dist/src/commands/status.js +120 -0
- package/dist/src/commands/teardown.d.ts +1 -0
- package/dist/src/commands/teardown.js +79 -0
- package/dist/src/commands/tuition.d.ts +21 -0
- package/dist/src/commands/tuition.js +218 -0
- package/dist/src/commands/validate.d.ts +78 -0
- package/dist/src/commands/validate.js +360 -0
- package/dist/src/commands/watch.d.ts +1 -0
- package/dist/src/commands/watch.js +172 -0
- package/dist/src/exec/env.d.ts +128 -0
- package/dist/src/exec/env.js +190 -0
- package/dist/src/fleet.d.ts +51 -0
- package/dist/src/fleet.js +80 -0
- package/dist/src/gates/adapters/http-json.d.ts +5 -0
- package/dist/src/gates/adapters/http-json.js +283 -0
- package/dist/src/gates/adapters/migrations-command.d.ts +1 -0
- package/dist/src/gates/adapters/migrations-command.js +373 -0
- package/dist/src/gates/citations.d.ts +408 -0
- package/dist/src/gates/citations.js +1163 -0
- package/dist/src/gates/coverage.d.ts +284 -0
- package/dist/src/gates/coverage.js +701 -0
- package/dist/src/gates/credentials.d.ts +74 -0
- package/dist/src/gates/credentials.js +533 -0
- package/dist/src/gates/deploy.d.ts +1 -0
- package/dist/src/gates/deploy.js +33 -0
- package/dist/src/gates/manifest.d.ts +99 -0
- package/dist/src/gates/manifest.js +208 -0
- package/dist/src/gates/migrations.d.ts +1 -0
- package/dist/src/gates/migrations.js +36 -0
- package/dist/src/gates/pin.d.ts +114 -0
- package/dist/src/gates/pin.js +154 -0
- package/dist/src/gates/red-witness.d.ts +22 -0
- package/dist/src/gates/red-witness.js +390 -0
- package/dist/src/gates/release.d.ts +283 -0
- package/dist/src/gates/release.js +820 -0
- package/dist/src/gates/result.d.ts +116 -0
- package/dist/src/gates/result.js +91 -0
- package/dist/src/gates/run.d.ts +566 -0
- package/dist/src/gates/run.js +1536 -0
- package/dist/src/gates/schemas/citation-config.schema.json +59 -0
- package/dist/src/gates/schemas/coverage-config.schema.json +77 -0
- package/dist/src/gates/schemas/gate-manifest.schema.json +125 -0
- package/dist/src/gates/schemas/gate-result.schema.json +160 -0
- package/dist/src/gates/schemas/phase-declaration.schema.json +42 -0
- package/dist/src/gates/schemas/release-record.schema.json +119 -0
- package/dist/src/gates/schemas/verifier-config.schema.json +101 -0
- package/dist/src/gates/schemas/witness-spec.schema.json +110 -0
- package/dist/src/gates/scope.d.ts +131 -0
- package/dist/src/gates/scope.js +1018 -0
- package/dist/src/gates/suite.d.ts +217 -0
- package/dist/src/gates/suite.js +927 -0
- package/dist/src/gates/validate.d.ts +121 -0
- package/dist/src/gates/validate.js +414 -0
- package/dist/src/hooks.d.ts +32 -0
- package/dist/src/hooks.js +62 -0
- package/dist/src/liveness.d.ts +321 -0
- package/dist/src/liveness.js +396 -0
- package/dist/src/lock.d.ts +178 -0
- package/dist/src/lock.js +500 -0
- package/dist/src/modes.d.ts +149 -0
- package/dist/src/modes.js +258 -0
- package/dist/src/path-identity.d.ts +2 -0
- package/dist/src/path-identity.js +10 -0
- package/dist/src/plan.d.ts +73 -0
- package/dist/src/plan.js +153 -0
- package/dist/src/pool.d.ts +130 -0
- package/dist/src/pool.js +721 -0
- package/dist/src/roles.d.ts +430 -0
- package/dist/src/roles.js +734 -0
- package/dist/src/spawn.d.ts +177 -0
- package/dist/src/spawn.js +332 -0
- package/dist/src/status.d.ts +91 -0
- package/dist/src/status.js +119 -0
- package/dist/src/task.d.ts +264 -0
- package/dist/src/task.js +305 -0
- package/dist/src/teardown.d.ts +32 -0
- package/dist/src/teardown.js +314 -0
- package/dist/src/tuition.d.ts +159 -0
- package/dist/src/tuition.js +311 -0
- package/dist/src/validate.d.ts +230 -0
- package/dist/src/validate.js +732 -0
- package/dist/src/version.d.ts +3 -0
- package/dist/src/version.js +38 -0
- package/dist/src/watcher.d.ts +275 -0
- package/dist/src/watcher.js +859 -0
- package/dist/src/witness/run.d.ts +274 -0
- package/dist/src/witness/run.js +1327 -0
- package/dist/src/witness/spec.d.ts +102 -0
- package/dist/src/witness/spec.js +253 -0
- package/dist/tsconfig.src.tsbuildinfo +1 -0
- package/gate-registry.yaml +390 -0
- package/gates.manifest.json +195 -0
- package/package.json +57 -3
- package/role-model-config.yaml +88 -0
- package/roles/README.md +128 -0
- package/roles/_shared-dispatch-contract.md +87 -0
- package/roles/adversarial-plan-reviewer.md +80 -0
- package/roles/clean-room-reviewer.md +140 -0
- package/roles/implementer.md +460 -0
- package/roles/investigator.md +138 -0
- package/roles/plan-writer.md +95 -0
- package/schemas/README.md +81 -0
- package/schemas/assurance-modes.schema.json +264 -0
- package/schemas/charter.schema.json +166 -0
- package/schemas/checklist.schema.json +114 -0
- package/schemas/decision-record.schema.json +88 -0
- package/schemas/final-report.schema.json +90 -0
- package/schemas/finding.schema.json +106 -0
- package/schemas/gate-registry.schema.json +260 -0
- package/schemas/mechanism-index.schema.json +94 -0
- package/schemas/plan.schema.json +300 -0
- package/schemas/report.schema.json +579 -0
- package/schemas/role-brief.schema.json +105 -0
- package/schemas/role-model-config.schema.json +90 -0
- package/schemas/status-line.schema.json +40 -0
- package/schemas/tuition.schema.json +191 -0
- package/schemas/verdict.schema.json +289 -0
- package/schemas/work-history.schema.json +183 -0
- package/templates/charter.example.yaml +54 -0
- package/templates/decision-record.example.yaml +27 -0
- package/templates/final-report.example.yaml +80 -0
- package/templates/plan.example.yaml +87 -0
- package/templates/report.example.yaml +236 -0
- package/templates/warnings.md +74 -0
- package/templates/work-history.example.yaml +185 -0
- package/tuition/README.md +76 -0
- package/tuition/T-001.yaml +48 -0
- package/tuition/T-002.yaml +51 -0
- package/tuition/T-003.yaml +100 -0
- package/tuition/T-004.yaml +52 -0
- package/tuition/T-005.yaml +72 -0
- package/tuition/T-006.yaml +81 -0
- package/tuition/T-007.yaml +56 -0
- package/tuition/T-008.yaml +111 -0
- package/tuition/T-009.yaml +50 -0
- package/tuition/T-015.yaml +36 -0
- package/tuition/T-016.yaml +36 -0
- package/tuition/T-017.yaml +46 -0
- package/tuition/T-018.yaml +84 -0
- package/tuition/T-021.yaml +40 -0
- package/tuition/T-022.yaml +36 -0
- package/tuition/mechanism-index.yaml +256 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
# THE ASSURANCE MODE DEFINITIONS (kernel plan M3, M3-P3; R-024, R-096).
|
|
2
|
+
#
|
|
3
|
+
# Blueprint section 8 declares three modes and their merge authority, and adds
|
|
4
|
+
# the sentence this whole document exists to make checkable: "The current
|
|
5
|
+
# proven process is the definition of `full`. Downgrades are declared, never
|
|
6
|
+
# improvised."
|
|
7
|
+
#
|
|
8
|
+
# WHAT IS DERIVED AND FROM WHERE, so no value here is a matter of taste:
|
|
9
|
+
#
|
|
10
|
+
# full.pipeline the process document's own sequence, enumerated (process
|
|
11
|
+
# doc section 9 item 3, R-096), with `fix-round-verification`
|
|
12
|
+
# present because T-003 made a delta review of every fix
|
|
13
|
+
# round structural rather than discretionary.
|
|
14
|
+
# direct-pr blueprint section 8 row 2, "implement + gates, no
|
|
15
|
+
# adversarial layers".
|
|
16
|
+
# local-only blueprint section 8 row 3, "implement, orchestrator diff
|
|
17
|
+
# review, local fast-forward".
|
|
18
|
+
# gate-sets derived from gate-registry.yaml: each mode selects the
|
|
19
|
+
# gates whose own `modes` list names it.
|
|
20
|
+
# `mode-gate-sets-resolve` checks that derivation in ONE
|
|
21
|
+
# DIRECTION ONLY, and this comment used to claim it "keeps
|
|
22
|
+
# the two files from drifting apart", which is FALSE and is
|
|
23
|
+
# corrected here rather than left standing.
|
|
24
|
+
# CHECKED: every entry listed here names a gate the registry
|
|
25
|
+
# declares, and that gate's `modes` list names this mode.
|
|
26
|
+
# So an entry that resolves to a gate which never runs in
|
|
27
|
+
# this mode is a violation.
|
|
28
|
+
# NOT CHECKED, and this is the open hole: the CONVERSE. A
|
|
29
|
+
# gate the registry declares with `modes` naming this mode,
|
|
30
|
+
# but which is ABSENT from the list below, is invisible.
|
|
31
|
+
# The check iterates the entries present here and never
|
|
32
|
+
# iterates the registry, so there is no code path that
|
|
33
|
+
# could see the omission (src/checks.ts:626).
|
|
34
|
+
# Measured: dropping `deploy` from `full` while the
|
|
35
|
+
# registry still declares `modes: [full]` for it validates
|
|
36
|
+
# at exit 0 with no diagnostic, and so does adding a mode
|
|
37
|
+
# to a registry gate without adding the gate here.
|
|
38
|
+
# CONSEQUENCE, stated so nobody has to re-derive it: this
|
|
39
|
+
# document can UNDER-report which gates a mode runs. That
|
|
40
|
+
# is a false description rather than a false assurance
|
|
41
|
+
# claim, which is why it is tracked as a low rather than
|
|
42
|
+
# fixed in place, but "one direction" and "no drift" are
|
|
43
|
+
# not the same sentence and this file may not say the
|
|
44
|
+
# second while meaning the first.
|
|
45
|
+
# This is the third occurrence in one phase of a check that
|
|
46
|
+
# constrains a relation in one direction while its own
|
|
47
|
+
# documentation claims both. Three is a mechanism, not
|
|
48
|
+
# three anecdotes; it is tracked in delivery/STATE.md:775.
|
|
49
|
+
# skips derived: every stage in `full`'s pipeline that this mode's
|
|
50
|
+
# pipeline omits, AND NOTHING ELSE.
|
|
51
|
+
# `mode-no-undeclared-downgrade` recomputes it rather than
|
|
52
|
+
# trusting it, and the recomputation has THREE parts because
|
|
53
|
+
# "AND NOTHING ELSE" is measured against `full`, not against
|
|
54
|
+
# this mode:
|
|
55
|
+
# completeness: a stage `full` runs that this mode's
|
|
56
|
+
# pipeline omits, and that is not declared here, is a
|
|
57
|
+
# violation.
|
|
58
|
+
# soundness A: a stage declared here that this mode's OWN
|
|
59
|
+
# pipeline still runs is a violation.
|
|
60
|
+
# soundness B: a stage declared here that `full` does not
|
|
61
|
+
# run either is a violation, because nothing omits it
|
|
62
|
+
# relative to the reference and it is no downgrade.
|
|
63
|
+
# Soundness A was added after a review measured that without
|
|
64
|
+
# it one bogus entry on `full` made `tiphys mode show` state
|
|
65
|
+
# the opposite of the truth about this project's own
|
|
66
|
+
# delivery, at exit 0
|
|
67
|
+
# (delivery/review/clean-room-m3-p3-r8-criteria.md:217).
|
|
68
|
+
# Soundness B was added a round later, after that round's
|
|
69
|
+
# own documentation claimed the check was complete: the
|
|
70
|
+
# stage vocabulary has thirteen ids and `full`'s pipeline
|
|
71
|
+
# has twelve, so `direct-pr` naming `orchestrator-diff-review`
|
|
72
|
+
# here validated at exit 0 and inflated the skipped-stage
|
|
73
|
+
# count `tiphys mode show` prints. Shrinking `full`'s own
|
|
74
|
+
# pipeline reaches the same violation from the other side,
|
|
75
|
+
# editing no `skips` list at all.
|
|
76
|
+
# ON `full` THE THREE PARTS TOGETHER MEAN ITS `skips` MUST BE
|
|
77
|
+
# EMPTY, since an entry is either inside its own pipeline
|
|
78
|
+
# (soundness A) or outside it (soundness B). That is not
|
|
79
|
+
# incidental: `tiphys mode show` calls `full` the
|
|
80
|
+
# un-downgraded process by NAME, so a `full` that quietly
|
|
81
|
+
# became a downgrade must be refused rather than described.
|
|
82
|
+
#
|
|
83
|
+
# WHAT M3 NEVER RUNS, said plainly. The kernel runs `full` and only `full`; the
|
|
84
|
+
# milestone exit test is a full-mode run. `direct-pr` and `local-only` are
|
|
85
|
+
# witnessed here by validation and by `tiphys mode show`, never by execution.
|
|
86
|
+
# Building an enforcement engine for a mode this milestone never enters is the
|
|
87
|
+
# M1-P3 failure the plan is trying not to repeat.
|
|
88
|
+
#
|
|
89
|
+
# CONSTRAINTS C-2 AND C-3. No stage in this file is completed, detected or
|
|
90
|
+
# excluded by process liveness, by a signal, or by a detached long-running
|
|
91
|
+
# process. A registered test scans this file and its schema for the four
|
|
92
|
+
# tokens C-2 and C-3 are written in and requires ZERO hits, which is why those
|
|
93
|
+
# four tokens do not appear here even as a disclaimer. It is a fixed-token
|
|
94
|
+
# presence check and nothing more: a stage whose completion were
|
|
95
|
+
# liveness-detected without using any of the four words would pass it, and the
|
|
96
|
+
# plan's hazard map names that residue in the open rather than papering over
|
|
97
|
+
# it. The second line is the hazard review contract, which reads prose.
|
|
98
|
+
|
|
99
|
+
kind: assurance-modes
|
|
100
|
+
version: 1
|
|
101
|
+
|
|
102
|
+
modes:
|
|
103
|
+
# ------------------------------------------------------------------
|
|
104
|
+
# full: the current proven process, which is what the word means here.
|
|
105
|
+
# ------------------------------------------------------------------
|
|
106
|
+
- id: full
|
|
107
|
+
declared-by: >-
|
|
108
|
+
blueprint section 8 (the mode and its pipeline); process doc section 9
|
|
109
|
+
item 3 enumerated (R-096); T-003 for the fix-round-verification stage;
|
|
110
|
+
DR-0012 and DR-0015 for the merge authority actually in force; DR-0016
|
|
111
|
+
for the escalation response; T-007 and D-M3-32 for the review contracts.
|
|
112
|
+
# ORDER IS LOAD-BEARING. R-024: an adversarial plan review happens before
|
|
113
|
+
# anyone builds, which is a property of this sequence and not of its set,
|
|
114
|
+
# and `mode-stage-order` is the check that says so.
|
|
115
|
+
pipeline:
|
|
116
|
+
- intake
|
|
117
|
+
- verification-pass
|
|
118
|
+
- plan
|
|
119
|
+
- adversarial-plan-review
|
|
120
|
+
- implement
|
|
121
|
+
- clean-room-review
|
|
122
|
+
- fix-round
|
|
123
|
+
# T-003's structural consequence, applied rather than asserted as new
|
|
124
|
+
# policy: full mode REQUIRES a delta review or verification of every fix
|
|
125
|
+
# round instead of leaving it to orchestrator discretion. The evidence is
|
|
126
|
+
# delivery/review/verification-m1-p3-fix-round.md.
|
|
127
|
+
- fix-round-verification
|
|
128
|
+
- merge-on-green
|
|
129
|
+
- deploy-verify
|
|
130
|
+
- migration-verify
|
|
131
|
+
- final-report
|
|
132
|
+
skips: []
|
|
133
|
+
# Every gate in gate-registry.yaml whose `modes` list contains `full`,
|
|
134
|
+
# which today is all of them.
|
|
135
|
+
gate-sets:
|
|
136
|
+
- manifest-self-check
|
|
137
|
+
- coverage
|
|
138
|
+
- credential-scrub
|
|
139
|
+
- credential-token
|
|
140
|
+
- suite
|
|
141
|
+
- citations
|
|
142
|
+
- scope
|
|
143
|
+
- deploy
|
|
144
|
+
- migrations
|
|
145
|
+
- clause-map
|
|
146
|
+
- red-witness
|
|
147
|
+
- agent-rules-drift
|
|
148
|
+
- unit-tests-for-changed-service-methods
|
|
149
|
+
- fixtures-for-changed-component-states
|
|
150
|
+
# T-007, D-M3-32. Two CONTRACTS, not two reviewers. The decorrelation that
|
|
151
|
+
# mattered on M1-P5 was in the question asked: both reviews walked all
|
|
152
|
+
# fifteen acceptance criteria and agreed on every mechanical fact, and the
|
|
153
|
+
# one briefed on hazards found a high-severity live-lock the other's report
|
|
154
|
+
# does not even name. DR-0012's requirement of two model FAMILIES is a
|
|
155
|
+
# different axis; full requires both.
|
|
156
|
+
review-contracts:
|
|
157
|
+
- criteria
|
|
158
|
+
- hazard
|
|
159
|
+
# BLUEPRINT SECTION 8'S TABLE SAYS `owner` FOR THIS ROW, AND THAT IS NOT
|
|
160
|
+
# WHAT IS IN FORCE. The owner granted delegated authority in DR-0012 and
|
|
161
|
+
# then removed themselves from the merge path entirely in DR-0015,
|
|
162
|
+
# milestone boundaries included. Declaring `owner` here would record a
|
|
163
|
+
# regime this project has left, which is precisely the drift the checks in
|
|
164
|
+
# this phase exist to prevent, and it would sit incoherently beside the
|
|
165
|
+
# escalation bounds below, which are DR-0012's own. A project that wants
|
|
166
|
+
# the blueprint's default declares `owner`; the value stays representable.
|
|
167
|
+
merge-authority: delegated-under-conditions
|
|
168
|
+
granted-by: DR-0012
|
|
169
|
+
# DR-0012, "What 'clean' means, defined here so it cannot be softened
|
|
170
|
+
# later". All six, in the record's order, not summarized.
|
|
171
|
+
conditions:
|
|
172
|
+
- >-
|
|
173
|
+
Two independent clean-room reviews exist for the current head, produced
|
|
174
|
+
on different model families, each written to `delivery/review/` and
|
|
175
|
+
committed.
|
|
176
|
+
- >-
|
|
177
|
+
Neither review carries an unresolved finding at high or medium
|
|
178
|
+
severity. Low findings may be merged with, provided each is either
|
|
179
|
+
fixed or explicitly recorded as a tracked item with a reason.
|
|
180
|
+
- >-
|
|
181
|
+
Both reviewers were given the phase's acceptance criteria as their
|
|
182
|
+
contract, and both walked or executed them. A review that only read is
|
|
183
|
+
not sufficient for a code phase.
|
|
184
|
+
- >-
|
|
185
|
+
CI is green on the exact head being merged, not on an earlier one.
|
|
186
|
+
- >-
|
|
187
|
+
The scope audit passes: changed files are on the phase's files-to-touch
|
|
188
|
+
list plus the two standing pre-authorized extras.
|
|
189
|
+
- >-
|
|
190
|
+
Where the reviews disagree, the orchestrator arbitrates with evidence
|
|
191
|
+
and records the arbitration in the merge commit or in the review file.
|
|
192
|
+
A disagreement is never resolved by preferring the more convenient
|
|
193
|
+
verdict.
|
|
194
|
+
# DR-0012's two limits with DR-0016's response. DATA THE ORCHESTRATOR BRIEF
|
|
195
|
+
# CITES, NOT AN ENFORCEMENT ENGINE: nothing in M3 counts fix rounds.
|
|
196
|
+
escalation-bounds:
|
|
197
|
+
max-fix-rounds-after-review: 2
|
|
198
|
+
recurrence-of-high-in-one-component: 1
|
|
199
|
+
on-exceeded: fresh-implementer-and-third-contract
|
|
200
|
+
|
|
201
|
+
# ------------------------------------------------------------------
|
|
202
|
+
# direct-pr: implement plus gates, no adversarial layers.
|
|
203
|
+
# ------------------------------------------------------------------
|
|
204
|
+
- id: direct-pr
|
|
205
|
+
declared-by: >-
|
|
206
|
+
blueprint section 8 row 2, "implement + gates, no adversarial layers",
|
|
207
|
+
with merge authority `owner` from the same row.
|
|
208
|
+
pipeline:
|
|
209
|
+
- intake
|
|
210
|
+
- plan
|
|
211
|
+
- implement
|
|
212
|
+
- merge-on-green
|
|
213
|
+
- final-report
|
|
214
|
+
# DECLARED, NOT IMPROVISED. Seven stages of `full` are dropped and every
|
|
215
|
+
# one of them is named here; `mode-no-undeclared-downgrade` recomputes this
|
|
216
|
+
# list from `full`'s pipeline and reddens on any omission that is not on it,
|
|
217
|
+
# and on any entry here that this mode's own pipeline still runs.
|
|
218
|
+
skips:
|
|
219
|
+
- verification-pass
|
|
220
|
+
- adversarial-plan-review
|
|
221
|
+
- clean-room-review
|
|
222
|
+
- fix-round
|
|
223
|
+
- fix-round-verification
|
|
224
|
+
- deploy-verify
|
|
225
|
+
- migration-verify
|
|
226
|
+
# Every gate whose `modes` list contains `direct-pr`: all of them except
|
|
227
|
+
# `deploy` and `migrations`, which are the two full-only entries.
|
|
228
|
+
gate-sets:
|
|
229
|
+
- manifest-self-check
|
|
230
|
+
- coverage
|
|
231
|
+
- credential-scrub
|
|
232
|
+
- credential-token
|
|
233
|
+
- suite
|
|
234
|
+
- citations
|
|
235
|
+
- scope
|
|
236
|
+
- clause-map
|
|
237
|
+
- red-witness
|
|
238
|
+
- agent-rules-drift
|
|
239
|
+
- unit-tests-for-changed-service-methods
|
|
240
|
+
- fixtures-for-changed-component-states
|
|
241
|
+
merge-authority: owner
|
|
242
|
+
|
|
243
|
+
# ------------------------------------------------------------------
|
|
244
|
+
# local-only: implement, orchestrator diff review, local fast-forward.
|
|
245
|
+
# ------------------------------------------------------------------
|
|
246
|
+
- id: local-only
|
|
247
|
+
declared-by: >-
|
|
248
|
+
blueprint section 8 row 3, "implement, orchestrator diff review, local
|
|
249
|
+
fast-forward", with merge authority "owner approves, orchestrator
|
|
250
|
+
merges", which SC-008 and plan v1 D-6 read as
|
|
251
|
+
owner-approves-orchestrator-merges.
|
|
252
|
+
pipeline:
|
|
253
|
+
- implement
|
|
254
|
+
- orchestrator-diff-review
|
|
255
|
+
- merge-on-green
|
|
256
|
+
skips:
|
|
257
|
+
- intake
|
|
258
|
+
- verification-pass
|
|
259
|
+
- plan
|
|
260
|
+
- adversarial-plan-review
|
|
261
|
+
- clean-room-review
|
|
262
|
+
- fix-round
|
|
263
|
+
- fix-round-verification
|
|
264
|
+
- deploy-verify
|
|
265
|
+
- migration-verify
|
|
266
|
+
- final-report
|
|
267
|
+
# Every gate whose `modes` list contains `local-only`.
|
|
268
|
+
gate-sets:
|
|
269
|
+
- manifest-self-check
|
|
270
|
+
- credential-scrub
|
|
271
|
+
- suite
|
|
272
|
+
- agent-rules-drift
|
|
273
|
+
# SEE THE $comment ON THIS FIELD IN THE SCHEMA. This value describes a
|
|
274
|
+
# regime the Tiphys kernel itself has left (DR-0015): for this project the
|
|
275
|
+
# owner is not an approval step anywhere in execution. It is kept because
|
|
276
|
+
# blueprint section 8 assigns it to this row and another project may want
|
|
277
|
+
# it, not because anything here runs under it.
|
|
278
|
+
merge-authority: owner-approves-orchestrator-merges
|