feat(8205): a System with rulings and no file patterns is flagged
CI & Build / TypeScript typecheck (push) Canceled after 0s
CI & Build / Plugin hooks (push) Canceled after 0s
CI & Build / Python lint (push) Canceled after 0s
CI & Build / Python tests (push) Canceled after 0s
CI & Build / integration (push) Canceled after 0s
CI & Build / Build & push image (push) Canceled after 0s

Its rulings reach no session: delivery is by path_patterns alone. enter_project
carries rulings_undelivered (absent when none) with the fix call, the Systems
list reads ruling_count, and the System card says so with a button to name
its files. A System without rulings is not flagged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-28 17:49:24 -05:00
co-authored by Claude Opus 5.5
parent 98a959de4f
commit 3e87df6c84
6 changed files with 104 additions and 0 deletions
+19
View File
@@ -74,6 +74,25 @@ def parse_rulings(description: str | None) -> list[str]:
return out
def undelivered(systems) -> list[dict]:
"""The Systems whose rulings reach no session: they carry rulings and
name no files, so nothing a session touches falls under them.
Delivery is by `path_patterns` alone, so such a System's rulings are
never shown on an edit or a command, and nothing else says so. A System
without rulings has nothing to deliver and is not listed. One entry per
System: `{"id", "name", "rulings"}`, rulings being how many.
"""
out = []
for system in systems:
if system.path_patterns:
continue
count = len(parse_rulings(system.description))
if count:
out.append({"id": int(system.id), "name": system.name, "rulings": count})
return out
def _relative(token: str, root: str, cwd_rel: str) -> str:
"""`token` as a repo-relative path, or "" when it is not one."""
if token.startswith("/"):