*Continent · 1 territory* ## Summary Under a rulebook that declares trusted keys, an approval clears a wait only as the verified handle the trusted layer returned, bound to the rule, the rulebook's fingerprint, the participant, action and area (or principal, tool, scope and argument digest), inside its window and with an unconsumed nonce — so the pure evaluator on its own never clears one from request data. ## Explanation - Under trusted keys, the approval's spec must equal "robot-domain-rules-approval/3", and the approval must be the verified handle verifyApproval returned, not request data, so evaluate alone never clears a wait and says to use verifyAndEvaluate (SPEC.md). - When rulebook.trustedKeys is a non-empty list, the approval's spec must equal "robot-domain-rules-approval/3". - When rulebook.trustedKeys is a non-empty list, the approval must be a VERIFIED HANDLE, the very object verifyApproval returned; nothing in request data can sat… - Under trustedKeys the evaluator clears a wait only for a verified handle, so evaluate on its own given a request from JSON never clears one and says so. - The rulebook's trustedKeys is an optional list of keyId, publicKey, authority and roleId, and declaring any key switches approvals to signed-only (SPEC.md). - The rulebook field trustedKeys is an optional list of { keyId, publicKey, authority?, roleId? } (§ 9), where publicKey is 32 bytes lowercase hex, authority/rol… - The changelog records that the pure evaluateDomainAction on a trusted-keys rulebook never clears a wait from request data and its reason says to use verifyAndEvaluate, and that only an approval the caller verified and bound to this request's digest and this rulebook's fingerprint clears an approval wait (robot-domain-rules-CHANGELOG.md). - The pure evaluateDomainAction on a trusted-keys rulebook never clears a wait from request data, and its reason says to use verifyAndEvaluate. - A rulebook may declare trustedKeys; then only an approval the caller verified (verified: true) and that is bound to this request's digest and this rulebook's f… - BOUNDARY.md sets out the trusted layer verifying an approval's Ed25519 signature before evaluation and passing the verified handle in, and the evaluator checking that it is that object, bound to this rule, this rulebook's fingerprint, this participant, this action and area (/3) or this principal, tool, scope and argument digest (/1), within its window at now, with a nonce not in the caller's consumed set, holding what the rule names. - When a rulebook declares trustedKeys, the trusted layer verifies an approval's Ed25519 signature before evaluation and passes the verified handle in, and the e… - The spec's requirement that the approval be the verified handle and the changelog's statement that only a caller-verified approval bound to the request digest and rulebook fingerprint clears a wait say the same thing in two places (SPEC.md, robot-domain-rules-CHANGELOG.md). - When rulebook.trustedKeys is a non-empty list, the approval must be a VERIFIED HANDLE, the very object verifyApproval returned; nothing in request data can sat… - A rulebook may declare trustedKeys; then only an approval the caller verified (verified: true) and that is bound to this request's digest and this rulebook's f… - The changelog's reason to use verifyAndEvaluate and BOUNDARY.md's account of the trusted layer verifying the signature and passing the handle in describe the same two-step path, one from the evaluator's side and one from the trusted layer's (robot-domain-rules-CHANGELOG.md, BOUNDARY.md). - The pure evaluateDomainAction on a trusted-keys rulebook never clears a wait from request data, and its reason says to use verifyAndEvaluate. - When a rulebook declares trustedKeys, the trusted layer verifies an approval's Ed25519 signature before evaluation and passes the verified handle in, and the e… - The spec's spec-string requirement for the approval and BOUNDARY.md's binding checks together describe one approval object that must carry the /3 contract and match the rulebook's fingerprint (SPEC.md, BOUNDARY.md). - When rulebook.trustedKeys is a non-empty list, the approval's spec must equal "robot-domain-rules-approval/3". - When a rulebook declares trustedKeys, the trusted layer verifies an approval's Ed25519 signature before evaluation and passes the verified handle in, and the e… - What happens to an approval whose nonce is already in the caller's consumed set, and whether the evaluator or the trusted layer refuses it first, is not stated in these records. - When a rulebook declares trustedKeys, the trusted layer verifies an approval's Ed25519 signature before evaluation and passes the verified handle in, and the e… - When rulebook.trustedKeys is a non-empty list, the approval must be a VERIFIED HANDLE, the very object verifyApproval returned; nothing in request data can sat… ## Threads - The verified handle: an approval clears a trusted-keys wait only as the object verifyApproval returned. - When rulebook.trustedKeys is a non-empty list, the approval must be a VERIFIED HANDLE, the very object verifyApproval returned; nothing in request data can sat… - A rulebook may declare trustedKeys; then only an approval the caller verified (verified: true) and that is bound to this request's digest and this rulebook's f… - When a rulebook declares trustedKeys, the trusted layer verifies an approval's Ed25519 signature before evaluation and passes the verified handle in, and the e… - The /3 spec string and the rulebook fingerprint an approval must carry. - When rulebook.trustedKeys is a non-empty list, the approval's spec must equal "robot-domain-rules-approval/3". - When a rulebook declares trustedKeys, the trusted layer verifies an approval's Ed25519 signature before evaluation and passes the verified handle in, and the e… - trustedKeys as an optional key list that switches approvals to signed-only. - The rulebook field trustedKeys is an optional list of { keyId, publicKey, authority?, roleId? } (§ 9), where publicKey is 32 bytes lowercase hex, authority/rol… - The pure evaluator refusing request data and pointing to verifyAndEvaluate. - Under trustedKeys the evaluator clears a wait only for a verified handle, so evaluate on its own given a request from JSON never clears one and says so. - The pure evaluateDomainAction on a trusted-keys rulebook never clears a wait from request data, and its reason says to use verifyAndEvaluate. ## Two sides The changelog and spec put the refusal of a non-verified approval on the evaluator (it never clears a wait and says to use verifyAndEvaluate), while BOUNDARY.md puts verification in the trusted layer before evaluation; the records do not say which layer refuses a consumed nonce first. - One side - The pure evaluateDomainAction on a trusted-keys rulebook never clears a wait from request data, and its reason says to use verifyAndEvaluate. - Under trustedKeys the evaluator clears a wait only for a verified handle, so evaluate on its own given a request from JSON never clears one and says so. - The other side - When a rulebook declares trustedKeys, the trusted layer verifies an approval's Ed25519 signature before evaluation and passes the verified handle in, and the e… ## Consultant **Where it shows up** — The trusted-keys path keeps coming up across SPEC.md, robot-domain-rules-CHANGELOG.md and BOUNDARY.md: the verified handle, the /3 spec string, the rulebook fingerprint, the window and the consumed nonce. **A question to sit with** — Where in the evaluator's own checks would a consumed nonce be caught, and does the trusted layer already refuse it before the evaluator sees it? **A way forward** — Keep the three documents side by side and mark, for each binding condition, which layer enforces it — the trusted layer before evaluation or the evaluator itself. ## Ideas - A pure evaluator given request data should refuse to clear a trusted-keys wait and point the caller to verifyAndEvaluate. - An approval should clear a wait only as the exact object the trusted layer's verification returned, never as a flag or a copy on the request. - Declaring any trusted key should switch approvals to signed-only. - An approval should bind to the rule, the rulebook's fingerprint, the participant, action and area, or the principal, tool, scope and argument digest, and be inside its window with an unconsumed nonce. - An approval should clear a wait only as the exact object the caller verified, bound to the request digest and the rulebook's fingerprint. ## Territories - [[Bevia/World/Territories/Trusted-key approvals and the verified handle|Trusted-key approvals and the verified handle]]