Repository navigation
Commit e53ef2f
fix(rhodibot): refuse unknown (rsr-profile) sub-clauses; read (layout …) (#687)
Follow-up to metadatastician/standards#1630 (owner ruling 2026-11-16,
made while working on hyperpolymath/rsr-template-repo#421). That PR adds
`(layout (module :gate "<row>" :at ("<path>" …)))` to `(rsr-profile …)`.
## What was wrong
J39 (standards A7) says every reader of `(rsr-profile …)` fails closed
on a key the standards module does not define. `Deed::rsr_profile`
checked only `:keyword` atoms. Any sub-clause, known or not (`(extras
…)`, now `(layout …)`), was skipped silently. A list after a scalar key,
and a repeated key, also slipped through (Codex P1, fixed in e44f179).
## Change (`bots/rhodibot/src/deed.rs`)
- Only a list after a list key (`:capabilities`, `:add`, `:remove`) is
that key's value. Any other list is a sub-clause, and it must be one of
`RSR_PROFILE_CLAUSES = ["notes", "layout"]`, each at most once. That is
the order `deed_lint.js --rsr-profile-keys` prints them in.
- Each key appears once, and its value is checked as the walk reaches
it. A list key takes a list. Every other key takes one string or symbol,
never a list, a following `:keyword`, or nothing.
- `(layout …)` is read into `ProfileClause.layout`. This reader checks:
- `:gate` is a non-empty string, and each gate appears once;
- `:at` is a non-empty list of strings;
- a module carries `:gate` and `:at` only, each once.
Whether a gate names a real gate-table row, and what each path must be,
stays with standards `check-rsr-profile.sh` and `deed_lint.js
--rsr-profile`.
- `rhodibot canon` does not score module paths, so its verdicts are
unchanged.
## Evidence
- `cargo test`: 249 passed (lib 179). `cargo fmt --check` and `cargo
clippy --all-targets -- -D warnings` are clean.
- Mutation check: replacing the sub-clause refusal with `true` fails
`an_unknown_sub_clause_is_refused_not_skipped`.
- `a_list_after_a_scalar_key_is_refused` and
`a_list_key_takes_a_list_value` fail before e44f179 and pass after it.
- `rhodibot canon --path` on rsr-template-repo branch
`claude/determined-fermi-h8ojbr`, whose deed carries `(layout)`: reads
the profile, 12 declared capabilities. On standards: unchanged, 5
declared.
- CI on e44f179: all green.
## Merge order
Any order is safe. This accepts `(layout)` with or without
standards#1630, and it refuses only sub-clauses that the old and new
standards modules both refuse.
## Follow-up: moved
- **rhodibot still scores retired `.a2ml` paths** (11 high-severity
findings on hyperpolymath/echo-types#378). **Moved.** The owner made
`.a2ml` retirement a priority-1, bot-driven task through kyX (D313).
That task now belongs to the session "gitbot-fleet: fix red main + P1
auto-retire .a2ml via kyX", including reversing rhodibot's `.a2ml`
expectation. This PR stays limited to deed-clause reading. Leads handed
over:
- `bots/rhodibot/canon/rsr-criteria-v2.a2ml` still names `.a2ml` paths;
- `src/canon/overlay.rs` has no deed form for CLADE (3.1.9);
- `src/canon/local.rs` keeps the legacy `rsr-profile.a2ml` read
fallback.
---
_Generated by [Claude
Code](https://claude.ai/code/session_01J4QvDhtp4kVy7MGgY47YB3)_
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->
## Summary by CodeRabbit
* **New Features**
* Profiles can now include layout bindings that associate a named gate
with one or more paths.
* **Bug Fixes**
* Profile data is checked more strictly: duplicate entries, invalid
value types, unknown clauses, and incomplete or malformed layouts are
rejected.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 7907099 commit e53ef2f
1 file changed
Lines changed: 226 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
135 | 138 | | |
136 | 139 | | |
137 | 140 | | |
| |||
140 | 143 | | |
141 | 144 | | |
142 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
143 | 189 | | |
144 | 190 | | |
145 | 191 | | |
| |||
172 | 218 | | |
173 | 219 | | |
174 | 220 | | |
| 221 | + | |
175 | 222 | | |
176 | 223 | | |
177 | 224 | | |
| |||
185 | 232 | | |
186 | 233 | | |
187 | 234 | | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
188 | 297 | | |
189 | 298 | | |
190 | | - | |
191 | | - | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
192 | 302 | | |
193 | 303 | | |
194 | 304 | | |
| |||
200 | 310 | | |
201 | 311 | | |
202 | 312 | | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
203 | 332 | | |
204 | 333 | | |
205 | 334 | | |
| |||
208 | 337 | | |
209 | 338 | | |
210 | 339 | | |
| 340 | + | |
| 341 | + | |
211 | 342 | | |
212 | 343 | | |
213 | 344 | | |
| |||
518 | 649 | | |
519 | 650 | | |
520 | 651 | | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
521 | 744 | | |
522 | 745 | | |
523 | 746 | | |
| |||
0 commit comments