*Continent · 2 territory* ## Summary Two statements in Neuroverseos-governance:doc:SPEC.md give different conditions for when `approvalRequests` is present, and the doctrine, the specification and robot-domain-rules-CHANGELOG.md name partly different fields for what an approval request carries. ## Explanation - In Neuroverseos-governance:doc:SPEC.md, `approvalRequests` is present iff the status is PAUSE and at least one approval wait is unmet (§ 6 step 8). - `approvalRequests` is present iff the status is PAUSE and at least one approval wait is unmet (§ 6 step 8). - In the same specification, approvalRequests is included iff non-empty and status == PAUSE. - approvalRequests is included iff non-empty and status == PAUSE. - The first condition requires an unmet approval wait; the second requires only that the list be non-empty. - `approvalRequests` is present iff the status is PAUSE and at least one approval wait is unmet (§ 6 step 8). - approvalRequests is included iff non-empty and status == PAUSE. - In the Neuroverseos-governance doctrine, the `/1` decision is written as `/3` with `approvalRequests[]` holding ruleId, by, rulebookFingerprint, principalId, participantId, tool, scope, argsDigest, reason and setBy, plus an optional approvalsRejected. - The `/1` decision is as `/3` with `approvalRequests[] = { ruleId, by?, rulebookFingerprint, principalId, participantId, tool, scope, argsDigest, reason, setBy… - In the Neuroverseos-governance specification, a PAUSE for approval returns one approval request per unmet approval wait, carrying ruleId, by, rulebookFingerprint, participantId, action, areaId, reason and setBy. - On a PAUSE for approval, one approval request is returned per unmet approval wait, with fields ruleId, by, rulebookFingerprint, participantId, action, areaId,… - In the same specification, the `/1` approval request is rule, rulebook, principal, participant, tool, scope and argsDigest, and rejected approvals are prose plus approvalsRejected entries of id, nonce, code and reason. - In /1 the approval request is rule, rulebook, principal, participant, tool, scope and argsDigest, and rejected approvals are prose and approvalsRejected: [{ id… - In the same specification, a `/1` Decision carries approvalRequests[] with ruleId, by, rulebookFingerprint, principalId, participantId, tool, scope, argsDigest, reason and setBy, and approvalsRejected under § 16.6, present only when the request carried an approval that cleared no wait. - A /1 Decision carries approvalRequests[] of { ruleId, by?, rulebookFingerprint, principalId, participantId, tool, scope, argsDigest, reason, setBy } and approv… - In robot-domain-rules-CHANGELOG.md, approvals are data and signed: an ApprovalRequest returned as decision.approvalRequests on a PAUSE for approval carries the rule, required authority or role, requestDigest, rulebookFingerprint and reason, alongside SignedApproval and TrustedKey. - Approvals are data and signed: ApprovalRequest (returned as decision.approvalRequests on a PAUSE for approval, with rule, required authority/role, requestDiges… - The specification's PAUSE request names action and areaId where the doctrine's approvalRequests[] names tool, scope and argsDigest, and the changelog names requestDigest where the specification's `/1` request names argsDigest. - The `/1` decision is as `/3` with `approvalRequests[] = { ruleId, by?, rulebookFingerprint, principalId, participantId, tool, scope, argsDigest, reason, setBy… - On a PAUSE for approval, one approval request is returned per unmet approval wait, with fields ruleId, by, rulebookFingerprint, participantId, action, areaId,… - In /1 the approval request is rule, rulebook, principal, participant, tool, scope and argsDigest, and rejected approvals are prose and approvalsRejected: [{ id… - A /1 Decision carries approvalRequests[] of { ruleId, by?, rulebookFingerprint, principalId, participantId, tool, scope, argsDigest, reason, setBy } and approv… - Approvals are data and signed: ApprovalRequest (returned as decision.approvalRequests on a PAUSE for approval, with rule, required authority/role, requestDiges… - Nothing in these records says which of the two conditions governs, or whether one replaces the other. - `approvalRequests` is present iff the status is PAUSE and at least one approval wait is unmet (§ 6 step 8). - approvalRequests is included iff non-empty and status == PAUSE. ## Threads - When a PAUSE returns approval requests and what each request carries - The `/1` decision is as `/3` with `approvalRequests[] = { ruleId, by?, rulebookFingerprint, principalId, participantId, tool, scope, argsDigest, reason, setBy… - On a PAUSE for approval, one approval request is returned per unmet approval wait, with fields ruleId, by, rulebookFingerprint, participantId, action, areaId,… - In /1 the approval request is rule, rulebook, principal, participant, tool, scope and argsDigest, and rejected approvals are prose and approvalsRejected: [{ id… - A /1 Decision carries approvalRequests[] of { ruleId, by?, rulebookFingerprint, principalId, participantId, tool, scope, argsDigest, reason, setBy } and approv… - Approvals are data and signed: ApprovalRequest (returned as decision.approvalRequests on a PAUSE for approval, with rule, required authority/role, requestDiges… - Two different conditions in the specification for when approvalRequests is present - `approvalRequests` is present iff the status is PAUSE and at least one approval wait is unmet (§ 6 step 8). - approvalRequests is included iff non-empty and status == PAUSE. ## How it formed On Oct 18, robot-domain-rules-CHANGELOG.md records approvals as data and signed, with requestDigest. On Oct 19, the doctrine and the specification set out the `/1` approvalRequests[] fields and the PAUSE request fields. - The `/1` decision is as `/3` with `approvalRequests[] = { ruleId, by?, rulebookFingerprint, principalId, participantId, tool, scope, argsDigest, reason, setBy… - `approvalRequests` is present iff the status is PAUSE and at least one approval wait is unmet (§ 6 step 8). - approvalRequests is included iff non-empty and status == PAUSE. - On a PAUSE for approval, one approval request is returned per unmet approval wait, with fields ruleId, by, rulebookFingerprint, participantId, action, areaId,… - In /1 the approval request is rule, rulebook, principal, participant, tool, scope and argsDigest, and rejected approvals are prose and approvalsRejected: [{ id… - …and 2 more ## What's still open The specification states two conditions for when approvalRequests is present, and nothing says which governs. - `approvalRequests` is present iff the status is PAUSE and at least one approval wait is unmet (§ 6 step 8). - approvalRequests is included iff non-empty and status == PAUSE. ## Two sides One statement makes an unmet approval wait the condition for approvalRequests; the other makes a non-empty list the condition. - One side - `approvalRequests` is present iff the status is PAUSE and at least one approval wait is unmet (§ 6 step 8). - The other side - approvalRequests is included iff non-empty and status == PAUSE. ## Consultant **Where it shows up** — The condition for approvalRequests keeps coming up twice in the specification: once tied to an unmet approval wait (§ 6 step 8), once to a non-empty list. The field list shifts too: action and areaId in the PAUSE request, tool, scope and argsDigest in the `/1` request, requestDigest in the changelog. **A question to sit with** — When a PAUSE has an approval wait that is already met, should the decision still carry an approvalRequests entry for it? **A way forward** — Keep the two conditions side by side and pick the one the § 6 step 8 flow actually produces, then make the other statement point at it. ## Ideas - A rejected approval should come back as a structured entry with a code and a reason rather than as prose alone. - An approval request should carry the rule, the rulebook fingerprint, the principal, the participant, the tool, the scope and a digest of the exact arguments, so what is being approved is pinned down. - Approvals should be data and signed, with a SignedApproval and a TrustedKey alongside the request. ## Territories - [[Bevia/World/Territories/Approval request fields on a PAUSE decision|Approval request fields on a PAUSE decision]] - [[Bevia/World/Territories/Two conditions for approvalRequests on PAUSE|Two conditions for approvalRequests on PAUSE]]