Commit 4c17607
feat: verify-page — the closed-loop engine
Pillar 2 of the closed-loop scope (#26): one scored answer to "did what I
built actually land, and is it any good?".
- class-saddle-verify.php: three passes over FRESHLY RE-READ persisted state
(the re-read is the point - it proves the database, not a write call's
claim): structural, echo (persisted attrs the builder silently ignores -
the intended design never took effect), and lint (the judgment rules).
Findings merge into one deduped, severity-then-document-ordered, capped
list (40 + overflow count), every one keyed by the same dot address the
page-read tools emit. The score is deterministic arithmetic: -25
structural, -10 ignored, -8 lint error, -3 lint warn, floored at 0, with
A-F grade bands.
- saddle/verify-page (read tier): native pages run all three passes in free
(echo via Saddle_Blocks_Echo::check_attrs over every persisted node);
builder pages plug structural+echo through the new
saddle_verify_builder_findings filter and judgment through the existing
saddle_lint_accessor filter - ready for Pro's Divi driver (P1). A builder
page where nothing could run is a clean unsupported error, not an empty
"all good" report.
- Saddle_Lint::compare_addresses is now public - verify sorts merged
findings with the same ordering lint uses.
tests/verify-test.php (9 tests): clean page scores 100, echo+lint arithmetic
(82 = 100-10-8) with echo outranking lint, THE LOOP CLOSES (fix the flagged
addresses, score returns to 100), raw-HTML structural finding, cap+overflow
with score reflecting all findings, builder refusal, builder filters with
dedupe, tier meta.
Free suite 300 green; Pro 119 green; phpcs clean.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent ffc1534 commit 4c17607
5 files changed
Lines changed: 631 additions & 2 deletions
File tree
- includes
- abilities
- lint
- verify
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
| 131 | + | |
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
136 | | - | |
| 137 | + | |
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
| |||
0 commit comments