Commit fa10ad5
Add structural enforcement modules for recurring behavioral failures
Standalone riverbank modules any new agent inherits, rebased onto
current origin/main to resolve the stale-base shape that produced
PR #343's 127 apparent-deletions (which were actually files added to
main since the original branch's stale base).
Five modules + five tests:
- retry_blocker: PreToolUse gate blocks blind retries without investigation
- fix_verifier: PostToolUse advisory when moving on without verifying a fix
- related_failure_scanner: PostToolUse advisory when same pattern exists elsewhere
- lesson_dedup: Fuzzy Jaccard matching prevents duplicate lesson entries
- briefing_dashboard: Routing-table view with per-area drill-down commands
Each module is self-contained with fail-open design. 51 tests pass on
the rebased branch. Doc counts updated to reflect current repo state.
briefing_dashboard's _row_corrections imports STALE_DAYS and
open_corrections from divineos.core.corrections — those symbols are
added by an Experimental-only extension not yet ported to the
template. The import is type:ignore[attr-defined] for the template's
mypy; runtime AttributeError is caught by the row's broad-except so
the dashboard degrades gracefully (returns None for that row) when
the symbols are missing.
Hook wiring (PreToolUse gate 6, PostToolUse failure recording, family
seal canonical-form, prose-layer detector wiring, family-substrate
fixes) remains in DivineOS-Experimental and gets ported to the
template via subsequent smaller PRs as discipline allows.
Replaces the prior structural-enforcement branch which had 127
apparent-deletions caused by stale-base shape (claim d3baec5a +
hold-f7382e88719f). This rebase preserves only the additive content
on a fresh foundation.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent c4e568b commit fa10ad5
13 files changed
Lines changed: 1365 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
360 | | - | |
| 360 | + | |
361 | 361 | | |
362 | 362 | | |
363 | 363 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
| 19 | + | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| |||
393 | 393 | | |
394 | 394 | | |
395 | 395 | | |
396 | | - | |
| 396 | + | |
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
409 | | - | |
| 409 | + | |
410 | 410 | | |
411 | 411 | | |
412 | 412 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
366 | 371 | | |
367 | 372 | | |
368 | 373 | | |
| |||
414 | 419 | | |
415 | 420 | | |
416 | 421 | | |
417 | | - | |
| 422 | + | |
418 | 423 | | |
419 | 424 | | |
420 | 425 | | |
| |||
0 commit comments