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
+6
View File
@@ -21,6 +21,12 @@ export interface System {
* everything under it. Empty means the area has not named its files.
*/
path_patterns: string[];
/**
* How many rulings the description carries. With no `path_patterns`,
* none of them is delivered: rulings reach a session when a command or
* edit touches the area's files. Present on the list read only.
*/
ruling_count?: number;
open_issue_count: number;
/**
* How often this area's rulings were shown to a session because its files
@@ -80,6 +80,11 @@ function rulingsShown(system: System): number {
return system.usage?.surfaced_count ?? 0;
}
/** Rulings with no files to deliver them on: none reaches a session. */
function rulingsUndelivered(system: System): boolean {
return (system.ruling_count ?? 0) > 0 && system.path_patterns.length === 0;
}
function rulingsTitle(system: System): string {
const u = system.usage;
if (!u) return "";
@@ -498,6 +503,12 @@ async function confirmDelete() {
>rulings shown {{ rulingsShown(system) }}×</span>
</div>
<p v-if="system.description" class="system-description">{{ system.description }}</p>
<p v-if="rulingsUndelivered(system)" class="system-undelivered">
<span class="usage-tag usage-dead">rulings not delivered</span>
{{ system.ruling_count === 1 ? "Its ruling reaches" : `Its ${system.ruling_count} rulings reach` }}
no session: a ruling is shown when a session touches the area's files, and this area names none.
<button type="button" class="btn-text" @click="startEdit(system)">Name its files</button>
</p>
<ul v-if="system.path_patterns.length" class="system-paths" aria-label="Files">
<li v-for="pattern in system.path_patterns" :key="pattern" class="system-path">{{ pattern }}</li>
</ul>
@@ -700,6 +711,12 @@ async function confirmDelete() {
.system-form-actions { display: flex; gap: 0.4rem; }
.system-paths-input { font-family: var(--fs-font-mono); font-size: 0.8rem; }
.system-undelivered {
margin: var(--fs-space-2) 0 0;
font-size: var(--fs-size-body-sm);
color: var(--fs-text-secondary);
}
/* The area's files. Mono because they are paths to be read
character for character; small because they qualify the card, not lead it. */
.system-paths {