Skip to content

Commit 4c76135

Browse files
committed
fix(interaction-model): a 'Role homes ... inbox' heading is never read as an inbox (review fix)
The previous round made the inbox heading test unconditional, so a heading such as 'Role homes and inbox notes' over a role table counted that table as inbox coverage (a false PASS). Restore the 'role homes' exclusion; 'Homes and inboxes' is still read both ways. New fixture case T18c fails on 97c9d89 (61/1) and passes here (62/0). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018LeNWZV2sVH62vkgfYh5u5
1 parent 97c9d89 commit 4c76135

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

‎bin/lib/interaction-model-check.sh‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ IM_EOF
105105
# "Homes and inboxes")
106106
# INBOX<TAB>line every non-blank line (table row, bullet, prose) under any heading
107107
# naming "Inbox" — the skill's own Step 2 writes inboxes as bullets.
108-
# A heading naming both ("Homes and inboxes") is read both ways.
108+
# "Homes and inboxes" is read both ways; a "Role homes" heading is
109+
# never an inbox, even when it also names "inbox".
109110
# Cells are trimmed and stripped of backticks and bold. CRLF files read like LF ones. The Role /
110111
# Home page (or Home) columns are found by header name, so a reordered table still reads.
111112
_im_tables() {
@@ -116,7 +117,7 @@ _im_tables() {
116117
h = tolower($0)
117118
sec = ""
118119
if (h ~ /homes/) sec = "home"
119-
if (h ~ /inbox/) sec = (sec == "home" ? "both" : "inbox")
120+
if (h ~ /inbox/ && h !~ /role homes/) sec = (sec == "home" ? "both" : "inbox")
120121
hdr = 0; next
121122
}
122123
sec == "" { next }

‎tests/wave2/test-interaction-model-gate.sh‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,11 @@ printf '# Interaction model\n\n## Role homes\n\n| Role | Home | Comes to do |\n|
332332
OUT="$(run "$P")"
333333
case "$OUT" in *"FAIL task F001/UC002"*) ok "a homes-only heading is still not an inbox" ;; *) bad "Role homes table counted as an inbox: $(imline "$OUT")" ;; esac
334334

335+
P="$(mkproj t18c)"; B="$(base_of "$P")"
336+
printf '# Interaction model\n\n## Role homes and inbox notes\n\n| Role | Home | Comes to do |\n|---|---|---|\n| Manager | `Order_Overview` | x |\n| Reviewer | `Review_Inbox` | UC002 Approve order |\n\n%s' "$PAGES" > "$B/design/interaction-model.md"
337+
OUT="$(run "$P")"
338+
case "$OUT" in *"FAIL task F001/UC002"*) ok "a 'Role homes ... inbox' heading is still not an inbox" ;; *) bad "Role homes + inbox heading counted as an inbox: $(imline "$OUT")" ;; esac
339+
335340
rm -rf "$WORK"
336341
echo ""
337342
echo "test-interaction-model-gate: $PASS passed, $FAIL failed"

0 commit comments

Comments
 (0)