File size: 9,478 Bytes
0a1c0ab
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
{
  "backbone": "/public/wang_libo/veriloop_coder_e1/model",
  "dataset_summary": {
    "cause_vocab": [
      "none",
      "evidence_contradiction",
      "execution_negation",
      "validator_rejection",
      "patch_regression",
      "worktree_conflict",
      "high_risk_unsupported",
      "tool_selfcheck_failure",
      "reverse_engineering_speculation"
    ],
    "eval_size": 45,
    "mode_vocab": [
      "contradiction",
      "execution_failure",
      "validator_rejection",
      "patch_regression",
      "worktree_conflict",
      "high_risk_unsupported",
      "tool_selfcheck_repair",
      "reverse_engineering_drift",
      "validated_stable"
    ],
    "modes": [
      "contradiction",
      "execution_failure",
      "high_risk_unsupported",
      "patch_regression",
      "reverse_engineering_drift",
      "tool_selfcheck_repair",
      "validated_stable",
      "validator_rejection",
      "worktree_conflict"
    ],
    "need_vocab": [
      "none",
      "advisory",
      "required"
    ],
    "rewrite_vocab": [
      "do_not_rollback",
      "local_patch_only",
      "validator_scoped_revision",
      "minimum_diff_patch",
      "do_not_overwrite_worktree_state",
      "fail_closed",
      "repair_via_bounded_selfcheck_loop",
      "bounded_observation_first",
      "local_conflict_preserving_revision"
    ],
    "train_size": 126
  },
  "excluded_surfaces": [
    "(^|\\.)lm_head($|\\.)::Do not retune final token head; too broad and evaluation-heavy.",
    "(^|\\.)embed_tokens($|\\.)::Embedding surgery risks broad semantic drift.",
    "(^|\\.)norm($|\\.)::Global norm tuning can destabilize calibration across scenes.",
    "attnres|attention_residual::Block AttnRes may be mounted structurally but is never a PEFT target.",
    "dualpath::DualPath is serving/runtime infrastructure only.",
    "mhc|hyper[-_]?connection::mHC-inspired stability hooks remain structural, not PEFT surfaces.",
    "rope|rotary::RoPE/context surgery is handled architecturally, not by narrow PEFT here.",
    "kvcache|kv_cache::KV-cache runtime surfaces are not PEFT targets.",
    "(^|\\.)memory(_store|_bank)?($|\\.)::Persistent memory stores are harness/runtime policy surfaces, not PEFT targets."
  ],
  "notes": [
    "Primary route is host-surface-first rollback training.",
    "Validator receipts, failure routing, patch state, worktree continuity, self-check repair, and reverse-engineering boundedness are first-class signals.",
    "DualPath, Block AttnRes, mHC hooks, and MoE routers/experts remain structurally excluded.",
    "This adapter should improve rollback obedience, not general coding free-formity."
  ],
  "peft_method": "lora_narrow",
  "product_line": "veriloop_coder",
  "recipe": {
    "adapter_family": "validator_rollback",
    "backbone": "/public/wang_libo/veriloop_coder_e1/model",
    "backbone_family": "qwen_dense",
    "excluded_patterns": [
      "(?i)\\bdualpath\\b",
      "(?i)\\bmhc\\b",
      "(?i)\\bfull[_\\- ]?attnres\\b",
      "(?i)\\battnres(_full)?\\b",
      "(?i)\\brouter\\b",
      "(?i)\\bexperts?\\b",
      "(?i)\\bmoe\\b.*\\b(gate|router|expert)\\b",
      "(?i)\\brope\\b.*\\b(freq|inv_freq|theta|rotary)\\b",
      "(?i)\\bkvcache\\b",
      "(?i)\\bposition_embedding\\b",
      "(?i)\\bembed(tokens|ding)?\\b",
      "(?i)\\blm_head\\b"
    ],
    "harness_constraints": [
      "Harness Engineering remains the primary convergence layer.",
      "Adapter must not bypass runtime orchestrator / validator / rollback loops.",
      "Adapter outputs remain subordinate to VeriLoop control-plane decisions.",
      "Adapter must not create hidden prompt-style memory authority.",
      "Adapter must preserve validator-first correction and minimal-diff rollback discipline.",
      "Patch production must remain subordinate to validator receipts and failure routing."
    ],
    "hyperparams": {
      "alpha": 16,
      "bias": "none",
      "dropout": 0.08,
      "fan_in_fan_out": false,
      "modules_to_save": [
        "input_layernorm"
      ],
      "r": 8,
      "task_type": "CAUSAL_LM"
    },
    "merge_policy": "side_load",
    "metadata": {
      "allow_backbone_bridge": false,
      "allow_vla_action_expert": false,
      "harness_first": true,
      "prefer_explicit_heads": true,
      "prefer_qlora_for_backbone_bridge": false,
      "require_harness_first": true,
      "reverse_engineering_readiness": true,
      "rollback_training": true,
      "selector_group_count": 2,
      "selfcheck_loop_readiness": true,
      "strict_narrow_scope": true,
      "trainer": "veriloop.rollback_adapter_trainer.v9.qwen36"
    },
    "notes": [
      "Backbone bridge tuning disabled explicitly; selector stays on custom surfaces or no-op.",
      "Backbone family inferred as qwen_dense.",
      "PEFT method resolved as lora_narrow.",
      "Recipe is harness-first: runtime convergence remains in VeriLoop control-plane + harness, not in broad weight surgery.",
      "Block AttnRes, DualPath, mHC hooks, RoPE, KV-cache, and broad MoE routing remain structurally excluded."
    ],
    "peft_method": "lora_narrow",
    "precision_policy": "auto",
    "product_line": "veriloop_coder",
    "regression_requirements": [
      "Must pass PEFT regression guard structural policy checks.",
      "Must not introduce forbidden backbone/serving structural targets.",
      "Must preserve harness regression envelope for the selected product line.",
      "Validator feedback uptake must not regress.",
      "Rollback minimality and revision fidelity must not regress."
    ],
    "target_groups": [
      {
        "alpha": 16,
        "dropout": 0.05,
        "name": "group_1_custom_runtime_harness_bridge",
        "rank": 8,
        "rationale": "Runtime / harness obedience should attach to explicit interface bridges before any backbone fallback.",
        "surface": "custom_runtime_harness_bridge",
        "target_modules": [
          "failure_signal_bridge.rollback_bridge",
          "request_normalizer",
          "request_normalizer.adapter",
          "rollback_adapter",
          "rollback_adapter.head",
          "runtime_harness_adapter",
          "runtime_harness_adapter.bridge",
          "tool_protocol_adapter",
          "tool_protocol_adapter.bridge",
          "toolspec_bridge",
          "toolspec_bridge.adapter",
          "toolspec_head",
          "toolspec_head.param_schema_adapter",
          "toolspec_head.postcondition_adapter",
          "toolspec_head.precondition_adapter",
          "toolspec_head.receipt_formatter",
          "toolspec_head.trigger_gate",
          "toolspec_head.validator_gate",
          "validator_feedback_loop.rollback_adapter"
        ]
      },
      {
        "alpha": 16,
        "dropout": 0.0,
        "name": "group_2_custom_validator_bridge",
        "rank": 8,
        "rationale": "Validation and rollback fidelity should prefer explicit validator / rollback bridges.",
        "surface": "custom_validator_bridge",
        "target_modules": [
          "failure_signal_bridge",
          "failure_signal_bridge.rollback_bridge",
          "rollback_adapter",
          "rollback_adapter.head",
          "sandbox_rollback_bridge",
          "sandbox_rollback_bridge.adapter",
          "validator_feedback_bridge",
          "validator_feedback_bridge.adapter",
          "validator_feedback_loop.rollback_adapter"
        ]
      }
    ],
    "target_modules": [
      "failure_signal_bridge.rollback_bridge",
      "request_normalizer",
      "request_normalizer.adapter",
      "rollback_adapter",
      "rollback_adapter.head",
      "runtime_harness_adapter",
      "runtime_harness_adapter.bridge",
      "tool_protocol_adapter",
      "tool_protocol_adapter.bridge",
      "toolspec_bridge",
      "toolspec_bridge.adapter",
      "toolspec_head",
      "toolspec_head.param_schema_adapter",
      "toolspec_head.postcondition_adapter",
      "toolspec_head.precondition_adapter",
      "toolspec_head.receipt_formatter",
      "toolspec_head.trigger_gate",
      "toolspec_head.validator_gate",
      "validator_feedback_loop.rollback_adapter",
      "failure_signal_bridge",
      "sandbox_rollback_bridge",
      "sandbox_rollback_bridge.adapter",
      "validator_feedback_bridge",
      "validator_feedback_bridge.adapter"
    ],
    "version": "veriloop.lora_recipe_veriloop.v2"
  },
  "selected_surfaces": [
    "custom_runtime_harness_bridge",
    "custom_validator_bridge",
    "custom_memory_boundary_bridge"
  ],
  "selected_target_modules": [
    "failure_signal_bridge.rollback_bridge",
    "rollback_adapter.head",
    "runtime_harness_adapter.bridge",
    "sandbox_rollback_bridge.adapter",
    "toolspec_head.validator_gate",
    "validator_feedback_bridge.adapter",
    "validator_feedback_loop.rollback_adapter",
    "memory_boundary_guard.adapter",
    "memory_boundary_guard.rollback_filter",
    "request_normalizer.adapter",
    "tool_protocol_adapter.bridge",
    "toolspec_bridge.adapter",
    "toolspec_head.postcondition_adapter",
    "toolspec_head.precondition_adapter",
    "toolspec_head.receipt_formatter",
    "toolspec_head.trigger_gate"
  ],
  "selection_mode": "minimal",
  "version": "veriloop.rollback_adapter_trainer.v9.qwen36",
  "warnings": [
    "Harness Engineering is primary; PEFT is limited to obedience-facing, interface-facing support surfaces.",
    "Backbone bridge tuning disabled explicitly; selector stays on custom surfaces or no-op."
  ]
}