Commit a784aec
Agent rules + predict-audit: de-stale to static-floor knockout; add evidence-backed rules
Scope: Predict cluster only (no deepbook-core changes); docs/skill files only, no Move source.
Rule files:
- move.md: rewrite Predict-Economics to static-floor knockout (drop terminal_floor_index /
floor_index / time-varying-floor / opened_at_ms-in-id; static F, quantity - floor_shares,
exact NAV = Sum qty*P - Sum min(qty*P,F), knock-out level, lambda buffer) -- verified at HEAD.
Add: Open-Closed/irreversibility, loop-hoist preservation, guard-preservation across
extraction, unbounded-permissionless-state-in-aggregation, owner-auth fallback for terminal
exits, defer-and-carry; return-struct default + Data-Clump (2-3, not 4+); trust-boundary
carve-out to non-redundancy; two-sided + recoverable safety bounds.
- code-review.md: add loop-hoist regression check.
- unit-tests.md: Rule 4 -> reachable-only + testability-as-design; Rule 15 -> fix dangling
.redesign/BUGS_FOUND.md path to .claude/predict-review/OPEN-ITEMS.md.
- CLAUDE.md: re-aim the Predict-economics gate at the current settled list; flag the journal as
historical; separate NAV-supersession from the still-live D030 backing axis; state knockout.
predict-audit skill (kept Predict-scoped):
- SKILL.md/primer.md: fix scope to the 4 Predict-cluster packages (not deepbook core);
migration out of scope.
- primer.md/lens 01/defi-invariant-classes.md: reframe live-backing / aggregate-NAV to static
Q-F + lambda / knock-out-level.
- ownership-rules.md: R2 drops opened_at_ms; R5 adds the trust-boundary carve-out.
- move-sui-audit-checklist.md: add Refactor & API-surface safety section.
- rule-sweep.workflow.js: recalibrate test-coverage family (reachable-only + testability;
drop stale .move.disabled note).
Verified at HEAD: terminal_floor_index/floor_index = 0 occurrences, backing_buffer_lambda exists,
0 .move.disabled files. (The matching ROUNDING_POLICY.md R1-scope edit stays local --
.claude/predict-design/ is gitignored.)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 77dcae9 commit a784aec
11 files changed
Lines changed: 50 additions & 24 deletions
File tree
- .claude
- rules
- skills/predict-audit
- lenses
- references
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | | - | |
281 | | - | |
| 280 | + | |
| 281 | + | |
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
115 | 119 | | |
116 | 120 | | |
117 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
63 | | - | |
| 62 | + | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
0 commit comments