Repository navigation
Conversation
A large expense needs the manager's and finance's approval. The shortcut pays when both slots are filled; Bob is manager and finance's deputy, so four allowed steps pay on one person's say-so. Amounts are bands, not numbers. compare reports never-on-one-person LOST while the law it breaks reads preserved (laws compare by declaration); the README says so. In the rules, independence is a join: a rules guard cannot compare a path with a path, though the claims language can. Also documented: in the safe process the only way to undo a signature is to reject, cancel, or change the bank account. Cross-check 41 -> 45 properties (43 compared, 2 fair skipped); 270 checks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Superseded: reached main through #10. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #4 (base
entitlement-problems). Retarget tomainonce #4 merges.Adds
expense-approval/: one large expense moving through submit, manager approval, finance approval and payment, with reject/resubmit, cancel, and a bank-account change that throws away both signatures. Amounts are bands (small/large), because the rules only ask which side of the threshold an amount is on.submit → bob-approves-as-manager → bob-approves-for-finance → paygets the expense paid on one person's say-so.derive paid-bylists13 bob bob.compare:never-on-one-personLOST, while the law it breaks (two-for-large) readspreserved, because laws compare by declaration. The README says so.Differences from the plan: with reject, cancel and bank change in the model, the plan's paradox ("the shortcut is the one that terminates") does not occur. Both processes settle. In
.rules, independence is a join, because a rules guard cannot compare a path with a path (the claims language can). That is a small asymmetry between the two engines.Cross-check: 41 → 45 properties (43 compared;
settlesis the second fair property skipped)../run-tests.sh all: 270 checks, 0 failed.🤖 Generated with Claude Code