clink-cli 0.2.1__py3-none-any.whl

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.
Files changed (141) hide show
  1. clink/__init__.py +19 -0
  2. clink/agents/__init__.py +30 -0
  3. clink/agents/base.py +70 -0
  4. clink/agents/claude.py +7 -0
  5. clink/agents/codex.py +7 -0
  6. clink/agents/gemini.py +7 -0
  7. clink/allowed_roots.py +356 -0
  8. clink/backend.py +765 -0
  9. clink/cli.py +594 -0
  10. clink/constants.py +78 -0
  11. clink/contracts.py +167 -0
  12. clink/files.py +70 -0
  13. clink/generation.py +274 -0
  14. clink/generation_capabilities.py +207 -0
  15. clink/generation_contracts.py +214 -0
  16. clink/generation_policy.py +174 -0
  17. clink/models.py +243 -0
  18. clink/native.py +409 -0
  19. clink/native_adapters.py +244 -0
  20. clink/native_contracts.py +68 -0
  21. clink/native_generation.py +421 -0
  22. clink/native_generation_claude_policy.py +59 -0
  23. clink/native_generation_contracts.py +264 -0
  24. clink/native_generation_families.py +218 -0
  25. clink/native_generation_family_policy.py +14 -0
  26. clink/native_generation_files.py +153 -0
  27. clink/native_generation_policy.py +82 -0
  28. clink/native_policy.py +86 -0
  29. clink/parsers/__init__.py +34 -0
  30. clink/parsers/agy.py +53 -0
  31. clink/parsers/agy_native.py +161 -0
  32. clink/parsers/agy_native_generation.py +189 -0
  33. clink/parsers/base.py +209 -0
  34. clink/parsers/claude.py +104 -0
  35. clink/parsers/claude_native.py +113 -0
  36. clink/parsers/claude_native_generation.py +346 -0
  37. clink/parsers/codex.py +172 -0
  38. clink/parsers/codex_generation.py +212 -0
  39. clink/parsers/codex_native.py +236 -0
  40. clink/parsers/codex_native_generation.py +367 -0
  41. clink/parsers/gemini.py +110 -0
  42. clink/parsers/grok.py +63 -0
  43. clink/parsers/grok_native.py +91 -0
  44. clink/parsers/grok_native_generation.py +157 -0
  45. clink/policy.py +180 -0
  46. clink/registry.py +544 -0
  47. clink/resources/CODEX-LICENSE +201 -0
  48. clink/resources/CODEX-NOTICE +6 -0
  49. clink/resources/PROVENANCE.md +16 -0
  50. clink/resources/codex-0.166.0-models-direct.json +1284 -0
  51. clink/resources/codex-0.166.0-models-generation.json +1269 -0
  52. clink/resources/native-agy-1.4.12-admission.json +746 -0
  53. clink/resources/native-claude-2.1.304-admission.json +99 -0
  54. clink/resources/native-generation-claude-2.1.304-admission.json +277 -0
  55. clink/resources/native-generation-codex-0.166.0-admission.json +309 -0
  56. clink/resources/native-generation-grok-1.0.70-admission.json +329 -0
  57. clink/resources/native-grok-1.0.70-admission.json +644 -0
  58. clink/runner.py +303 -0
  59. clink/setup.py +399 -0
  60. clink/tasks.py +695 -0
  61. clink_cli-0.2.1.dist-info/METADATA +225 -0
  62. clink_cli-0.2.1.dist-info/RECORD +141 -0
  63. clink_cli-0.2.1.dist-info/WHEEL +5 -0
  64. clink_cli-0.2.1.dist-info/entry_points.txt +3 -0
  65. clink_cli-0.2.1.dist-info/licenses/LICENSE +197 -0
  66. clink_cli-0.2.1.dist-info/licenses/clink/resources/CODEX-LICENSE +201 -0
  67. clink_cli-0.2.1.dist-info/licenses/clink/resources/CODEX-NOTICE +6 -0
  68. clink_cli-0.2.1.dist-info/top_level.txt +7 -0
  69. conf/__init__.py +1 -0
  70. conf/cli_clients/agy.json +40 -0
  71. conf/cli_clients/claude.json +39 -0
  72. conf/cli_clients/codex.json +40 -0
  73. conf/cli_clients/gemini.json +23 -0
  74. conf/cli_clients/grok.json +40 -0
  75. config.py +40 -0
  76. server.py +896 -0
  77. systemprompts/__init__.py +35 -0
  78. systemprompts/analyze_prompt.py +87 -0
  79. systemprompts/chat_prompt.py +57 -0
  80. systemprompts/clink/codex_codereviewer.txt +8 -0
  81. systemprompts/clink/default.txt +8 -0
  82. systemprompts/clink/default_codereviewer.txt +8 -0
  83. systemprompts/clink/default_planner.txt +7 -0
  84. systemprompts/clink/native_codereviewer.txt +1 -0
  85. systemprompts/clink/native_default.txt +1 -0
  86. systemprompts/clink/native_planner.txt +1 -0
  87. systemprompts/codereview_prompt.py +91 -0
  88. systemprompts/consensus_prompt.py +120 -0
  89. systemprompts/debug_prompt.py +150 -0
  90. systemprompts/docgen_prompt.py +252 -0
  91. systemprompts/generate_code_prompt.py +181 -0
  92. systemprompts/planner_prompt.py +127 -0
  93. systemprompts/precommit_prompt.py +179 -0
  94. systemprompts/refactor_prompt.py +323 -0
  95. systemprompts/secaudit_prompt.py +420 -0
  96. systemprompts/testgen_prompt.py +133 -0
  97. systemprompts/thinkdeep_prompt.py +55 -0
  98. systemprompts/tracer_prompt.py +145 -0
  99. tools/__init__.py +43 -0
  100. tools/analyze.py +583 -0
  101. tools/apilookup.py +97 -0
  102. tools/challenge.py +198 -0
  103. tools/chat.py +187 -0
  104. tools/clink.py +130 -0
  105. tools/codereview.py +724 -0
  106. tools/consensus.py +790 -0
  107. tools/debug.py +573 -0
  108. tools/docgen.py +577 -0
  109. tools/listmodels.py +48 -0
  110. tools/models.py +373 -0
  111. tools/planner.py +533 -0
  112. tools/precommit.py +776 -0
  113. tools/refactor.py +645 -0
  114. tools/secaudit.py +685 -0
  115. tools/shared/__init__.py +19 -0
  116. tools/shared/base_models.py +167 -0
  117. tools/shared/base_tool.py +659 -0
  118. tools/shared/exceptions.py +20 -0
  119. tools/shared/schema_builders.py +159 -0
  120. tools/simple/__init__.py +18 -0
  121. tools/simple/base.py +539 -0
  122. tools/testgen.py +513 -0
  123. tools/thinkdeep.py +586 -0
  124. tools/tracer.py +763 -0
  125. tools/version.py +53 -0
  126. tools/workflow/__init__.py +22 -0
  127. tools/workflow/base.py +448 -0
  128. tools/workflow/schema_builders.py +166 -0
  129. tools/workflow/workflow_mixin.py +1195 -0
  130. utils/__init__.py +21 -0
  131. utils/call_state.py +349 -0
  132. utils/client_info.py +293 -0
  133. utils/consensus_manifest.py +131 -0
  134. utils/conversation_memory.py +582 -0
  135. utils/env.py +111 -0
  136. utils/file_types.py +271 -0
  137. utils/file_utils.py +803 -0
  138. utils/image_utils.py +94 -0
  139. utils/security_config.py +163 -0
  140. utils/storage_backend.py +177 -0
  141. utils/token_utils.py +54 -0
@@ -0,0 +1,644 @@
1
+ {
2
+ "actual_models": [
3
+ "grok-4.7-build"
4
+ ],
5
+ "adapter": "grok",
6
+ "admission": {
7
+ "independent_review": "passed",
8
+ "production_enabled": true,
9
+ "production_integration": "conductor under existing standing development authorization"
10
+ },
11
+ "attempt_history": [
12
+ {
13
+ "actual_model": "grok-4.7-build",
14
+ "actual_model_origin": "native_terminal_metadata",
15
+ "check": "edit",
16
+ "ordinal": 1,
17
+ "outcome": "Native edit/tests, MCP and hooks observed, but specialist execution not established; permission_needed. Retained failed gate.",
18
+ "passed": false,
19
+ "possible_partial_effects": true,
20
+ "process_group_absent_after_cleanup": true,
21
+ "reason": "exited",
22
+ "state": "permission_needed"
23
+ },
24
+ {
25
+ "actual_model": "grok-4.7-build",
26
+ "actual_model_origin": "native_terminal_metadata",
27
+ "check": "edit",
28
+ "ordinal": 2,
29
+ "outcome": "Native edit/tests, MCP, hooks and specialist lifecycle observed; exact specialist canary not established because the observer lacked the native target_file shape. Retained failed gate.",
30
+ "passed": false,
31
+ "possible_partial_effects": true,
32
+ "process_group_absent_after_cleanup": true,
33
+ "reason": "exited",
34
+ "state": "completed"
35
+ },
36
+ {
37
+ "actual_model": "grok-4.7-build",
38
+ "actual_model_origin": "native_terminal_metadata",
39
+ "check": "edit",
40
+ "ordinal": 3,
41
+ "outcome": "Accepted edit/test, hook, native specialist and inherited-environment MCP evidence.",
42
+ "passed": true,
43
+ "possible_partial_effects": true,
44
+ "process_group_absent_after_cleanup": true,
45
+ "reason": "exited",
46
+ "state": "completed"
47
+ },
48
+ {
49
+ "actual_model": "grok-4.7-build",
50
+ "actual_model_origin": "native_terminal_metadata",
51
+ "check": "followup",
52
+ "ordinal": 4,
53
+ "outcome": "Accepted explicit native resume with same private session and context token.",
54
+ "passed": true,
55
+ "possible_partial_effects": true,
56
+ "process_group_absent_after_cleanup": true,
57
+ "reason": "exited",
58
+ "state": "completed"
59
+ },
60
+ {
61
+ "actual_model": "grok-4.7-build",
62
+ "actual_model_origin": "native_terminal_metadata",
63
+ "check": "permission",
64
+ "ordinal": 5,
65
+ "outcome": "Accepted native permission refusal with protected target untouched; exit status zero did not override permission_needed.",
66
+ "passed": true,
67
+ "possible_partial_effects": true,
68
+ "process_group_absent_after_cleanup": true,
69
+ "reason": "exited",
70
+ "state": "permission_needed"
71
+ },
72
+ {
73
+ "actual_model": null,
74
+ "actual_model_origin": "unknown",
75
+ "check": "cancel",
76
+ "ordinal": 6,
77
+ "outcome": "Mutation and process-group/pool/lease cleanup observed; exact descendant identity and absence not established. Retained failed gate; absence=false is lack of proof, not proof of a surviving child.",
78
+ "passed": false,
79
+ "possible_partial_effects": true,
80
+ "process_group_absent_after_cleanup": true,
81
+ "reason": "cancelled",
82
+ "state": "cancelled"
83
+ },
84
+ {
85
+ "actual_model": null,
86
+ "actual_model_origin": "unknown",
87
+ "check": "cancel",
88
+ "ordinal": 7,
89
+ "outcome": "Readiness observed after fixture repair; exact child identity still not established because macOS kernel interpreter differs from its launcher path. Retained failed gate.",
90
+ "passed": false,
91
+ "possible_partial_effects": true,
92
+ "process_group_absent_after_cleanup": true,
93
+ "reason": "cancelled",
94
+ "state": "cancelled"
95
+ },
96
+ {
97
+ "actual_model": null,
98
+ "actual_model_origin": "unknown",
99
+ "check": "cancel",
100
+ "error_code": "native_failed",
101
+ "ordinal": 8,
102
+ "outcome": "Exact child identity, readiness, mutation, child absence and pool/lease release observed, but task returned uncertain/native_failed. Reason and process-group absence were not recorded. Cause remains unknown.",
103
+ "passed": false,
104
+ "possible_partial_effects": true,
105
+ "state": "uncertain"
106
+ },
107
+ {
108
+ "actual_model": null,
109
+ "actual_model_origin": "unknown",
110
+ "check": "cancel",
111
+ "ordinal": 9,
112
+ "outcome": "Accepted cancellation after observed mutation and readiness; exact synthetic child absent, CLI process group absent, pool and project leases released; no emergency cleanup requested.",
113
+ "passed": true,
114
+ "possible_partial_effects": true,
115
+ "process_group_absent_after_cleanup": true,
116
+ "reason": "cancelled",
117
+ "state": "cancelled"
118
+ }
119
+ ],
120
+ "budget": {
121
+ "automatic_retries": 0,
122
+ "consumed_submission_allowance": 9,
123
+ "internal_native_subagent_submissions": "not counted by top-level process allowance; native turns, tools and internal model requests may exceed nine",
124
+ "new_native_invocations_for_composite": 0,
125
+ "top_level_native_invocations": 9
126
+ },
127
+ "cross_attempt_invariants": {
128
+ "all_original_ledger_prefixes_preserved": true,
129
+ "automatic_retries": 0,
130
+ "original_native_verified_remains_false": true,
131
+ "receipt_and_preflight_links_rechecked": true,
132
+ "same_version_binary_and_recipe": true,
133
+ "source_receipts_unchanged": true
134
+ },
135
+ "evidence_pairs": [
136
+ {
137
+ "fixture_config_sha256": "386f22323a5ee81020473710358196b3f7781f4fc7442fe44f4d90b6a1f8a4bb",
138
+ "original_native_verified": false,
139
+ "preflight": "docs/verification/native-grok-1.0.70-attempt1-prepare.preflight.json",
140
+ "prior_evidence_sha256": null,
141
+ "project_root_sha256": "37b7d42e29ef6697cd8d8b802421aa847ef8c0a2b4bf5ed6474d2f2bd2b41495",
142
+ "receipt": "docs/verification/native-grok-1.0.70-attempt1-prepare.json",
143
+ "retained_fixture_and_preflight_hashes_rechecked": true,
144
+ "submission_allowance_total": 4,
145
+ "submissions_consumed_total": 0,
146
+ "submissions_in_this_invocation": 0
147
+ },
148
+ {
149
+ "fixture_config_sha256": "386f22323a5ee81020473710358196b3f7781f4fc7442fe44f4d90b6a1f8a4bb",
150
+ "original_native_verified": false,
151
+ "preflight": "docs/verification/native-grok-1.0.70-attempt2.preflight.json",
152
+ "prior_evidence_sha256": "69a76eab4c69a78c3fbd5df97d3b4eec2861d4a61eb84f0a96e52d51568aa68d",
153
+ "project_root_sha256": "37b7d42e29ef6697cd8d8b802421aa847ef8c0a2b4bf5ed6474d2f2bd2b41495",
154
+ "receipt": "docs/verification/native-grok-1.0.70-attempt2.json",
155
+ "retained_fixture_and_preflight_hashes_rechecked": true,
156
+ "submission_allowance_total": 4,
157
+ "submissions_consumed_total": 1,
158
+ "submissions_in_this_invocation": 1
159
+ },
160
+ {
161
+ "fixture_config_sha256": "dc05393c0a10cd5cce6e450be3c0b9b8ecaa9ca420479c0f51d5fefc7960e747",
162
+ "original_native_verified": false,
163
+ "preflight": "docs/verification/native-grok-1.0.70-attempt3.preflight.json",
164
+ "prior_evidence_sha256": "43baa009a6fca653c499d468f0d71c88b8a445be47dc15c8c0e1a0c29d83ea69",
165
+ "project_root_sha256": "6605e2992f96dfe6620d3b2b308501822c7924c57de9ea49354cef4b4fab10cc",
166
+ "receipt": "docs/verification/native-grok-1.0.70-attempt3.json",
167
+ "retained_fixture_and_preflight_hashes_rechecked": true,
168
+ "submission_allowance_total": 5,
169
+ "submissions_consumed_total": 2,
170
+ "submissions_in_this_invocation": 1
171
+ },
172
+ {
173
+ "fixture_config_sha256": "636fb40df76a5f2253b839baba350b0b9f0a5a63f6088c1e6445d82d1afcc5b6",
174
+ "original_native_verified": false,
175
+ "preflight": "docs/verification/native-grok-1.0.70-attempt4.preflight.json",
176
+ "prior_evidence_sha256": "76f6aef8df524ae93fee03ff715e4a7ba1293a2cf9ced998713fd7cc02d27fda",
177
+ "project_root_sha256": "744d0e7a4387057e6f4f0a762000da832d12e679daeb1b7f5bb8e9f41dfba7e7",
178
+ "receipt": "docs/verification/native-grok-1.0.70-attempt4.json",
179
+ "retained_fixture_and_preflight_hashes_rechecked": true,
180
+ "submission_allowance_total": 6,
181
+ "submissions_consumed_total": 6,
182
+ "submissions_in_this_invocation": 4
183
+ },
184
+ {
185
+ "fixture_config_sha256": "cdf0c99b88a3ca0e74687b94ee48810d306aff4d350490bc1cd40036741d2639",
186
+ "original_native_verified": false,
187
+ "preflight": "docs/verification/native-grok-1.0.70-attempt5.preflight.json",
188
+ "prior_evidence_sha256": "cb252a5e4ed16e580411c1f67355ff422b9d0994e080576c9c67b031b9056cc2",
189
+ "project_root_sha256": "380c8657ebf81afa19049cf28e610a81408c9a04fd110300126469c3c523a9ed",
190
+ "receipt": "docs/verification/native-grok-1.0.70-attempt5.json",
191
+ "retained_fixture_and_preflight_hashes_rechecked": true,
192
+ "submission_allowance_total": 7,
193
+ "submissions_consumed_total": 7,
194
+ "submissions_in_this_invocation": 1
195
+ },
196
+ {
197
+ "fixture_config_sha256": "efb5cabc3f2f4c3fbb2032a694129c48336bbbbad7c39779bab6c533a582643e",
198
+ "original_native_verified": false,
199
+ "preflight": "docs/verification/native-grok-1.0.70-attempt6.preflight.json",
200
+ "prior_evidence_sha256": "8642426e687b32f16c233c4155c095d0cea86dde3997f8c7e08080297812f5b6",
201
+ "project_root_sha256": "21c220dc7af5590aae55af897253f781f201f3f6a8fd6ef8445dcce04a019cae",
202
+ "receipt": "docs/verification/native-grok-1.0.70-attempt6.json",
203
+ "retained_fixture_and_preflight_hashes_rechecked": true,
204
+ "submission_allowance_total": 8,
205
+ "submissions_consumed_total": 8,
206
+ "submissions_in_this_invocation": 1
207
+ },
208
+ {
209
+ "fixture_config_sha256": "ec59324b72d257b585b9c9bb93c551f2bc331420413bdaad90161558686f098f",
210
+ "original_native_verified": false,
211
+ "preflight": "docs/verification/native-grok-1.0.70-attempt7.preflight.json",
212
+ "prior_evidence_sha256": "4a88a33fc8e04b21ffe7a010d5c75f0780353936c754eceddea9546c1f75ba2b",
213
+ "project_root_sha256": "26e77f4cef7f94b664b541fd00d801849646f9253d74340d01212e9169e08007",
214
+ "receipt": "docs/verification/native-grok-1.0.70-attempt7.json",
215
+ "retained_fixture_and_preflight_hashes_rechecked": true,
216
+ "submission_allowance_total": 9,
217
+ "submissions_consumed_total": 9,
218
+ "submissions_in_this_invocation": 1
219
+ }
220
+ ],
221
+ "executable_sha256": "5c8a688251bf61e35370b828b6a353b0a20fcc3f64000de8a91d426039f29cec",
222
+ "fixture_compatibility": {
223
+ "compared_receipts": [
224
+ "docs/verification/native-grok-1.0.70-attempt4.json",
225
+ "docs/verification/native-grok-1.0.70-attempt7.json"
226
+ ],
227
+ "native_permissions": "Native user/project configuration and permission policy remain authoritative; no bypass, global allow-all, config suppression or cloned authentication. Disposable Grok fixture rules include the native generic task route so its configured specialist can run; this is not a named-agent security boundary or OS sandbox.",
228
+ "observer_repairs": [
229
+ "Before ordinal3: recognize native target_file path and typed ReadFile.FileContent raw_output/content for the exact specialist child and canary path. Native canary gate remains strict.",
230
+ "Before ordinal7: add a child readiness marker before its long sleep; synthetic arithmetic test logic is unchanged.",
231
+ "Before ordinal8: recognize the current Python process kernel interpreter reference as well as sys.executable; require exact fixture.py child arguments and the observed process identity fingerprint.",
232
+ "Before ordinal8: replace MCP marker IO with the shared nofollow/nonblock owner/regular/single-link checked helper and bounded strict boolean reader. Benign MCP protocol/tool/synthetic sentinel semantics remain the same.",
233
+ "Before ordinal9: metadata-only unexpected-exception diagnostics, strict prior-lineage validation and process-group probe retention. No production runner or task-manager cleanup behavior changed."
234
+ ],
235
+ "path_hash_difference": "Each invocation has a distinct canonical synthetic fixture path; attempt2 reuses the preparation fixture. Project hashes and path-embedded config/hooks therefore differ. All seven retained config aggregates and project-path hashes were rechecked against their own preflights.",
236
+ "per_file_audit": [
237
+ {
238
+ "attempt4_sha256": "e8c6a171e39f6736e0bed5b83d33b58bcaffdc1d56052363d109806173cbcace",
239
+ "attempt7_sha256": "e8c6a171e39f6736e0bed5b83d33b58bcaffdc1d56052363d109806173cbcace",
240
+ "comparison": "byte_identical",
241
+ "path": ".clink-native-verification-fixture"
242
+ },
243
+ {
244
+ "attempt4_sha256": "6ced3b1036ddbc48cc3cdff4f8b09ca60cad1eeb03b07f6fe678c7ab3cfb7894",
245
+ "attempt7_sha256": "6ced3b1036ddbc48cc3cdff4f8b09ca60cad1eeb03b07f6fe678c7ab3cfb7894",
246
+ "comparison": "byte_identical",
247
+ "path": "AGENTS.md"
248
+ },
249
+ {
250
+ "attempt4_sha256": "b7c12dc56b7c03d167989c5a6bfad70505d7ae51a37c43721619a6ea05482a5d",
251
+ "attempt7_sha256": "0edd97897e42fe440575383ef21c3b026a94bb339b2d7919c05e58243920e4cc",
252
+ "comparison": "child_readiness_marker_added",
253
+ "path": "fixture.py"
254
+ },
255
+ {
256
+ "attempt4_sha256": "1f767867eb28f5b2c09f14d5285eb4b25ec6302c385cccccedd77a68d5415b29",
257
+ "attempt7_sha256": "2424778ea57b8a9f8c3ef42b417074801a0ba4ac499c04df01d6a93aeca3cdcd",
258
+ "comparison": "safe_marker_io_and_bounded_stdio_validation",
259
+ "path": "mcp_server.py"
260
+ },
261
+ {
262
+ "attempt4_sha256": "15f69b23c897e02f43c30dcb2a117830b18e012f9c321fdb65315682a129dac0",
263
+ "attempt7_sha256": "15f69b23c897e02f43c30dcb2a117830b18e012f9c321fdb65315682a129dac0",
264
+ "comparison": "byte_identical",
265
+ "path": "native-role.txt"
266
+ },
267
+ {
268
+ "attempt4_sha256": "6ced3b1036ddbc48cc3cdff4f8b09ca60cad1eeb03b07f6fe678c7ab3cfb7894",
269
+ "attempt7_sha256": "6ced3b1036ddbc48cc3cdff4f8b09ca60cad1eeb03b07f6fe678c7ab3cfb7894",
270
+ "comparison": "byte_identical",
271
+ "path": "GROK.md"
272
+ },
273
+ {
274
+ "attempt4_sha256": "2928844657524455f2018c2ca6cdf270ed282c48af4c65e6301e3af348ce5818",
275
+ "attempt7_sha256": "2928844657524455f2018c2ca6cdf270ed282c48af4c65e6301e3af348ce5818",
276
+ "comparison": "byte_identical",
277
+ "path": "scope_hook.py"
278
+ },
279
+ {
280
+ "attempt4_sha256": "bd32e66dec67bb0273a43d36d9619a2d5ce56557c06fa2095d0394e48a268d32",
281
+ "attempt7_sha256": "bd5f6ac073f3536189bf0076f04b188ba2d7c5102a4c715327cd0c98de5b0990",
282
+ "comparison": "identical_after_only_canonical_fixture_root_replacement",
283
+ "path": ".grok/config.toml"
284
+ },
285
+ {
286
+ "attempt4_sha256": "76691df33b010eb8605ad5940eb2bff80cdf36af34fc5a8f78b7fadf91bb8f1a",
287
+ "attempt7_sha256": "29032cc3cec90e30454e8ff4c53657b48b5424bca3d5c8aef447d3593ddc3efc",
288
+ "comparison": "identical_after_only_canonical_fixture_root_replacement",
289
+ "path": ".grok/hooks/native-fixture.json"
290
+ },
291
+ {
292
+ "attempt4_sha256": "455c3475bba4454bc9206b6403e201a3947773cfd5efa8f0f755cee0e3178aa8",
293
+ "attempt7_sha256": "455c3475bba4454bc9206b6403e201a3947773cfd5efa8f0f755cee0e3178aa8",
294
+ "comparison": "byte_identical",
295
+ "path": ".grok/agents/fixture-specialist.md"
296
+ },
297
+ {
298
+ "attempt4_sha256": "5e8e7875b6064e94a2b66f718a3787b8b67927c514267b128aa8262ebbc07a1e",
299
+ "attempt7_sha256": "5e8e7875b6064e94a2b66f718a3787b8b67927c514267b128aa8262ebbc07a1e",
300
+ "comparison": "byte_identical",
301
+ "path": "specialist.txt"
302
+ }
303
+ ],
304
+ "safe_mcp_compatibility": "Ordinal3 supplies the live MCP evidence with the then-original marker helper. Ordinal9 is cancellation-only and does not re-exercise MCP. Current safe marker helper preserves the benign stdio response/tool/sentinel behavior in offline tests; it hardens marker IO against symlink, hardlink and FIFO hazards without broadening permissions."
305
+ },
306
+ "gates": {
307
+ "actual_native_edit_and_failing_then_passing_test": {
308
+ "observations": [
309
+ "fixture_changed",
310
+ "native_test_failure_observed",
311
+ "native_test_success_observed",
312
+ "independent_final_test_passed"
313
+ ],
314
+ "observed": true,
315
+ "ordinal": 3,
316
+ "receipt": "docs/verification/native-grok-1.0.70-attempt4.json"
317
+ },
318
+ "cancel_cleanup_released_processes_and_ownership": {
319
+ "observations": [
320
+ "synthetic_descendant_absent",
321
+ "pool_released",
322
+ "project_leases_released"
323
+ ],
324
+ "observed": true,
325
+ "ordinal": 9,
326
+ "receipt": "docs/verification/native-grok-1.0.70-attempt7.json"
327
+ },
328
+ "native_followup_preserved_session_and_context": {
329
+ "observations": [
330
+ "same_native_session",
331
+ "context_token_matches"
332
+ ],
333
+ "observed": true,
334
+ "ordinal": 4,
335
+ "receipt": "docs/verification/native-grok-1.0.70-attempt4.json"
336
+ },
337
+ "native_mcp_executed_with_inherited_environment": {
338
+ "observations": [
339
+ "mcp_environment_canary_matches"
340
+ ],
341
+ "observed": true,
342
+ "ordinal": 3,
343
+ "receipt": "docs/verification/native-grok-1.0.70-attempt4.json"
344
+ },
345
+ "native_project_hook_executed": {
346
+ "observations": [
347
+ "scope_hook_observed"
348
+ ],
349
+ "observed": true,
350
+ "ordinal": 3,
351
+ "receipt": "docs/verification/native-grok-1.0.70-attempt4.json"
352
+ },
353
+ "native_subagent_executed_with_exact_canary": {
354
+ "observations": [
355
+ "fixture_subagent_started",
356
+ "fixture_subagent_stopped",
357
+ "fixture_subagent_canary_matches"
358
+ ],
359
+ "observed": true,
360
+ "ordinal": 3,
361
+ "receipt": "docs/verification/native-grok-1.0.70-attempt4.json"
362
+ },
363
+ "permission_needed_without_protected_write_or_retry": {
364
+ "observations": [
365
+ "protected_file_untouched"
366
+ ],
367
+ "observed": true,
368
+ "ordinal": 5,
369
+ "receipt": "docs/verification/native-grok-1.0.70-attempt4.json"
370
+ },
371
+ "production_cancel_after_mutation": {
372
+ "observations": [
373
+ "observed_mutation",
374
+ "synthetic_child_ready_observed",
375
+ "descendant_identity_observed"
376
+ ],
377
+ "observed": true,
378
+ "ordinal": 9,
379
+ "receipt": "docs/verification/native-grok-1.0.70-attempt7.json"
380
+ }
381
+ },
382
+ "independent_review": {
383
+ "effective_runtime_model_evidence": "unverified",
384
+ "reasoning_effort": "high",
385
+ "route": "native_execution_review",
386
+ "scope": "Composite gate mapping, all original receipt/preflight and supporting evidence hashes, ledger prefix/allowance lineage, reviewed candidate source binding, fixture compatibility and preserved ordinal8 uncertainty. Frozen verifier snapshot refreshed after Agy-only helper integration.",
387
+ "selected_model": "gpt-6.1-sol",
388
+ "selection": "explicit",
389
+ "verdict": "GO"
390
+ },
391
+ "limitations": [
392
+ "Ordinal8 returned uncertain/native_failed; its exception cause remains UNKNOWN and its process-group absence was not recorded. Ordinal9 passed without establishing that a production defect was diagnosed or fixed. Conservative uncertain semantics remain necessary.",
393
+ "This accepted composite combines successful checks across attempts; it is not a standalone all-check receipt. Every original receipt retains native_verified=false and prior failed checks. Genuine independent proof review passed before conductor production integration under existing standing development authorization.",
394
+ "Scope is this exact macOS arm64 binary and recipe, observed grok-4.7-build execution and synthetic operations; no claim for other versions, binaries, platforms or all models.",
395
+ "Native CLI authentication, configuration and session/cache persistence remain CLI-owned. The CLI may perform normal private operational writes; their contents were not exported.",
396
+ "Only the configured synthetic hooks/specialist/MCP were exercised; every installed user integration was not independently exercised. No native image transport or interactive approval relay was verified.",
397
+ "Cancellation does not undo the observed mutation or other file/external effects and does not prove cleanup of detached descendants or remote MCP work. First-attempt cancellation can leave no resumable session identity.",
398
+ "Raw native output was not retained, so current parser compatibility is established by recorded normalized outcomes plus offline protocol cases, not retrospective replay of the original streams.",
399
+ "Completed execution does not establish fulfillment except for independently checked synthetic assertions. Missing or expired server records do not establish execution outcome."
400
+ ],
401
+ "model_evidence": {
402
+ "cancellation_ordinal9_actual_model": "unknown; no terminal model metadata",
403
+ "explicit_model_argument": false,
404
+ "ordinals": [
405
+ 3,
406
+ 4,
407
+ 5
408
+ ],
409
+ "origin": "native_terminal_metadata",
410
+ "selection": "native CLI configuration"
411
+ },
412
+ "native_arguments": [
413
+ "--prompt-file",
414
+ "@CLINK_NATIVE_PROMPT_FILE@",
415
+ "--output-format",
416
+ "json"
417
+ ],
418
+ "observed_version": "grok 1.0.70 (f50904eaee6c)",
419
+ "offline_verification": {
420
+ "cancellation_diagnostic": {
421
+ "cancelled_outcomes": 30,
422
+ "native_model_calls": 0,
423
+ "pool_slots_released": 30,
424
+ "process_groups_absent": 30,
425
+ "receipt": "docs/verification/native-cancellation-diagnostic.json",
426
+ "separate_fault_injection": "post-cleanup EIO verifies safe diagnostic capture; not evidence of the genuine Grok cause",
427
+ "synthetic_real_pool_cancellations": 30,
428
+ "unexpected_exceptions": 0
429
+ },
430
+ "candidate4_full_suite": {
431
+ "errors": 0,
432
+ "failures": 0,
433
+ "junit": "docs/verification/native-adapters-candidate4/junit.xml",
434
+ "junit_cases": 1762,
435
+ "network_blocked": true,
436
+ "pytest_tests_passed": 1746,
437
+ "result": "docs/verification/native-adapters-candidate4/result.json",
438
+ "skipped": 0,
439
+ "subtests_passed": 16,
440
+ "unrelated_home_reads_denied": true
441
+ },
442
+ "focused": {
443
+ "command": ".venv/bin/python -m pytest tests/test_grok_native_parser.py tests/test_native_adapters.py tests/test_native_runtime.py tests/test_native_mcp_fixture.py -q",
444
+ "native_model_calls": 0,
445
+ "passed": 111,
446
+ "scope": "current parser malformed/error/permission/session cases, private transport and shared-runtime cleanup/admission regression, safe MCP protocol and hostile marker IO"
447
+ },
448
+ "process_identity_diagnostic": {
449
+ "exact_child_identity_matched": true,
450
+ "native_model_calls": 0,
451
+ "owned_child_reaped": true,
452
+ "receipt": "docs/verification/native-process-identity-check.json"
453
+ }
454
+ },
455
+ "optional_arguments": {
456
+ "model": "--model",
457
+ "resume": "--resume validated exact native UUID"
458
+ },
459
+ "platform_scope": {
460
+ "architecture_evidence": "Verification host metadata rechecked while preparing this composite; historical receipt schema does not separately record architecture.",
461
+ "machine": "arm64",
462
+ "scope": "exact recorded executable and recipe only",
463
+ "system": "Darwin"
464
+ },
465
+ "privacy": {
466
+ "credential_values_read_or_copied_for_this_composite": false,
467
+ "environment_values_recorded": false,
468
+ "fixture_configuration_intact_after_all_recorded_shutdowns": true,
469
+ "historical_host_configuration_change_scope": "exact synthetic fixture trust entry only",
470
+ "historical_host_configuration_changed": true,
471
+ "historical_host_configuration_restored": true,
472
+ "host_configuration_read_or_changed_for_this_composite": false,
473
+ "native_session_ids_recorded": false,
474
+ "normal_native_home_and_auth_preserved": true,
475
+ "raw_native_output_prompts_tool_inputs_results_retained_in_evidence": false
476
+ },
477
+ "profile": "native_task_v1",
478
+ "prompt_transport": {
479
+ "channel": "private_file",
480
+ "crash_limit": "Abrupt host or server termination may prevent context cleanup; private permissions protect any leftover file.",
481
+ "directory_mode": "0700",
482
+ "file_mode": "0600",
483
+ "lifetime": "through shared ProcessPool cleanup; context cleanup on all ordinary outcomes and cancellation",
484
+ "maximum_bytes": 1048576,
485
+ "stdin": "empty",
486
+ "validation": "regular file, modes, inode identity and bounded content hash checked before launch"
487
+ },
488
+ "recipe_sha256": "b2e236f6490d3d00b51dac2a634c8b4f845b649ad9386c6510c6ae902f730cd3",
489
+ "schema_version": 1,
490
+ "source_binding": {
491
+ "core_files": [
492
+ {
493
+ "matches_source_commit": true,
494
+ "path": "clink/native.py",
495
+ "sha256": "e586a761c2161a78f3da67072da5a80471c755a31cccd64be44707fc427910d1"
496
+ },
497
+ {
498
+ "matches_source_commit": true,
499
+ "path": "clink/native_adapters.py",
500
+ "sha256": "7a3daf32369e0492a69d307333441e8c27e936ffd0b156322fc5e7294a8d251f"
501
+ },
502
+ {
503
+ "matches_source_commit": true,
504
+ "path": "clink/native_policy.py",
505
+ "sha256": "ec295f6450d53d1362dd87a51cb5551942f26868b48b5e88a252c8cefe4234c4"
506
+ },
507
+ {
508
+ "matches_source_commit": true,
509
+ "path": "clink/runner.py",
510
+ "sha256": "7fe67698f57ec1539ad3751f25dd0300166361d5d0b9159946836937f76a7632"
511
+ },
512
+ {
513
+ "matches_source_commit": true,
514
+ "path": "clink/tasks.py",
515
+ "sha256": "bd334096aed8af27d7f2813a07594b99d53805f3ea13deff33a31237f93b593b"
516
+ },
517
+ {
518
+ "matches_source_commit": true,
519
+ "path": "clink/registry.py",
520
+ "sha256": "fe8319eef076370c05c09f506bd703ae096ee9b386e19743991595f230feaf66"
521
+ },
522
+ {
523
+ "matches_source_commit": true,
524
+ "path": "clink/parsers/grok_native.py",
525
+ "sha256": "940f05404389f27b79eda917fe831ace6b2c64bc085faf1872f927aeb5c8644d"
526
+ }
527
+ ],
528
+ "current_snapshot_utc": "2026-11-01T11:53:59.737819+00:00",
529
+ "current_verifier_snapshot": [
530
+ {
531
+ "path": "scripts/verify_native_adapters.py",
532
+ "sha256": "01d755ac01161f9f6879200b8573fa33484aa1f2a57fba252fe0fe1f3b782b51"
533
+ },
534
+ {
535
+ "path": "scripts/native_mcp_fixture.py",
536
+ "sha256": "f06532075adcabf665ebb3a64e6ca7223043db27c6ac1ac277f6c5c0ab860c9d"
537
+ },
538
+ {
539
+ "path": "scripts/native_diagnostics.py",
540
+ "sha256": "4606c24e5075c2fe168c50288673438bd185f83abb2d4b3c23b6b50038df52c1"
541
+ },
542
+ {
543
+ "path": "scripts/native_fixture_trust.py",
544
+ "sha256": "b6d1ce2b948ac273257c7e99571f70330341540550c7b0a45b14a03b73f0625a"
545
+ }
546
+ ],
547
+ "historical_binding_limit": "Original receipts bind executable, version, launch recipe and synthetic fixture configuration, not historical per-file runtime hashes or a Git commit. Reviewed candidate core bytes match the recorded source commit. The conductor reports a stable gate-relevant core during ordinals 3/4/5/9; this composite does not retroactively attest unrecorded historical source hashes. Verifier snapshots are separately pinned and are not claimed to be in the source commit.",
548
+ "production_integration_delta": "After proof review: native Grok policy/receipt binding, exact Darwin/arm64 platform gate, enabled bundled Grok native profile and required package resources. No launch recipe, parser, process cleanup, task-manager behavior or advisory Codex policy change.",
549
+ "runner_and_task_manager_byte_identical_to_preparation_commit": "45e4e73",
550
+ "source_commit": "9bdd273d7ac399b3a1fd635066308369f10f76b5"
551
+ },
552
+ "source_evidence": [
553
+ {
554
+ "kind": "original_receipt",
555
+ "path": "docs/verification/native-grok-1.0.70-attempt1-prepare.json",
556
+ "sha256": "69a76eab4c69a78c3fbd5df97d3b4eec2861d4a61eb84f0a96e52d51568aa68d"
557
+ },
558
+ {
559
+ "kind": "original_preflight",
560
+ "path": "docs/verification/native-grok-1.0.70-attempt1-prepare.preflight.json",
561
+ "sha256": "de79f0c388aa39f81030657b9b58bb23f3318449c9273673fd858721f7c44f38"
562
+ },
563
+ {
564
+ "kind": "original_receipt",
565
+ "path": "docs/verification/native-grok-1.0.70-attempt2.json",
566
+ "sha256": "43baa009a6fca653c499d468f0d71c88b8a445be47dc15c8c0e1a0c29d83ea69"
567
+ },
568
+ {
569
+ "kind": "original_preflight",
570
+ "path": "docs/verification/native-grok-1.0.70-attempt2.preflight.json",
571
+ "sha256": "de79f0c388aa39f81030657b9b58bb23f3318449c9273673fd858721f7c44f38"
572
+ },
573
+ {
574
+ "kind": "original_receipt",
575
+ "path": "docs/verification/native-grok-1.0.70-attempt3.json",
576
+ "sha256": "76f6aef8df524ae93fee03ff715e4a7ba1293a2cf9ced998713fd7cc02d27fda"
577
+ },
578
+ {
579
+ "kind": "original_preflight",
580
+ "path": "docs/verification/native-grok-1.0.70-attempt3.preflight.json",
581
+ "sha256": "ce594e39c4b7691790ecea40f9e17ccc4891a46fc0f067ec2c5addc5b31ad1f7"
582
+ },
583
+ {
584
+ "kind": "original_receipt",
585
+ "path": "docs/verification/native-grok-1.0.70-attempt4.json",
586
+ "sha256": "cb252a5e4ed16e580411c1f67355ff422b9d0994e080576c9c67b031b9056cc2"
587
+ },
588
+ {
589
+ "kind": "original_preflight",
590
+ "path": "docs/verification/native-grok-1.0.70-attempt4.preflight.json",
591
+ "sha256": "06888104406e935fc8d1812c0182a0fc6d67ab771502a7d8b743ea931a581c29"
592
+ },
593
+ {
594
+ "kind": "original_receipt",
595
+ "path": "docs/verification/native-grok-1.0.70-attempt5.json",
596
+ "sha256": "8642426e687b32f16c233c4155c095d0cea86dde3997f8c7e08080297812f5b6"
597
+ },
598
+ {
599
+ "kind": "original_preflight",
600
+ "path": "docs/verification/native-grok-1.0.70-attempt5.preflight.json",
601
+ "sha256": "42c33923d43bc893d8e8dcea36fd6ddfb01055d1eed498a33e36cb4c749c08f1"
602
+ },
603
+ {
604
+ "kind": "original_receipt",
605
+ "path": "docs/verification/native-grok-1.0.70-attempt6.json",
606
+ "sha256": "4a88a33fc8e04b21ffe7a010d5c75f0780353936c754eceddea9546c1f75ba2b"
607
+ },
608
+ {
609
+ "kind": "original_preflight",
610
+ "path": "docs/verification/native-grok-1.0.70-attempt6.preflight.json",
611
+ "sha256": "276af59e72b0d4ba58fc5ec686c4b5e4cd7d7233401fb9a7e9ca42893c80b4f6"
612
+ },
613
+ {
614
+ "kind": "original_receipt",
615
+ "path": "docs/verification/native-grok-1.0.70-attempt7.json",
616
+ "sha256": "c3ea43db8f81751c027bbaeed8229ebc46152774f06d4c82aaa5b2bb5b06a97b"
617
+ },
618
+ {
619
+ "kind": "original_preflight",
620
+ "path": "docs/verification/native-grok-1.0.70-attempt7.preflight.json",
621
+ "sha256": "d51166642c5ba7bd64938fa609ed896a55a601a54f3717c3c49af6e0782bdd3b"
622
+ }
623
+ ],
624
+ "status": "accepted_native_lifecycle",
625
+ "supporting_evidence": [
626
+ {
627
+ "path": "docs/verification/native-adapters-candidate4/result.json",
628
+ "sha256": "c9ea07c6337a4ef3eefd1149b8c6008d3cae680b7fa045c67c5a228fa96f40ef"
629
+ },
630
+ {
631
+ "path": "docs/verification/native-adapters-candidate4/junit.xml",
632
+ "sha256": "56ec3ca54717eecba3777169280065687bf666c4b54813bf7ae797059ab0b073"
633
+ },
634
+ {
635
+ "path": "docs/verification/native-cancellation-diagnostic.json",
636
+ "sha256": "e7c50a9fabecbd9e9ce7123355544f4f722871b391f5c52824f7ce4ac08496b8"
637
+ },
638
+ {
639
+ "path": "docs/verification/native-process-identity-check.json",
640
+ "sha256": "8db690735151eec5ee9ddaf28aad9397e1bb30e1bdefda2c6773238daa9f96d1"
641
+ }
642
+ ],
643
+ "verification_path": "Actual ClinkRegistry, CLIBackend, NativeRuntime, shared ProcessPool and NativeTaskManager start/status/followup/cancel. During verification, only the isolated candidate harness overrode admission and production Grok remained disabled. This accepted composite was integrated separately after independent proof review."
644
+ }