From 7d38339a529a6d2fe3b941bfda2ecfdb530d0ada Mon Sep 17 00:00:00 2001 From: REPPL <77722411+REPPL@users.noreply.github.com> Date: Thu, 26 Nov 2026 22:28:55 +0000 Subject: [PATCH 1/3] chore: capture two gaps met landing while away The review recorder reads a finding bullet that leads with a reference into the record under review as a second verdict, and the away stop hook asks for an arm that land refuses on a stacked pull request. Assisted-by: Claude:claude-opus-5-5 --- ...45-abcd-land-record-review-refuses-a-review.md | 15 +++++++++++++++ ...3325-while-the-person-is-away-the-stop-hook.md | 15 +++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 .abcd/work/issues/open/iss-2611262200106745-abcd-land-record-review-refuses-a-review.md create mode 100644 .abcd/work/issues/open/iss-2611262226253325-while-the-person-is-away-the-stop-hook.md diff --git a/.abcd/work/issues/open/iss-2611262200106745-abcd-land-record-review-refuses-a-review.md b/.abcd/work/issues/open/iss-2611262200106745-abcd-land-record-review-refuses-a-review.md new file mode 100644 index 000000000..d31dfe460 --- /dev/null +++ b/.abcd/work/issues/open/iss-2611262200106745-abcd-land-record-review-refuses-a-review.md @@ -0,0 +1,15 @@ +--- +schema_version: 1 +id: "iss-2611262200106745" +slug: "abcd-land-record-review-refuses-a-review" +severity: "minor" +category: "ux" +source: "user-observation" +found_during: "manual-capture" +origin: researcher-authored +production_mode: hand-written +found_at: "internal/core/landing/review.go" +remedy: "Count a line as a second verdict only when the word verdict is followed, on that line, by one of the known verdict words (SHIP, FIX FIRST, BLOCK, APPROVE, NEEDS-INPUT), so a reference such as 'verdict:52' or a sentence about a verdict record is not one; test both a reference bullet (accepted) and a 'Verdict: SHIP' line outside the heading (still refused)." +--- + +abcd land --record-review refuses a review return whose finding bullets lead with the word verdict as a reference into the record under review, not as a verdict: a security return for an ideate verdict record opened two finding bullets with a reference into that record ('verdict:52', 'verdict:143'), and the recorder counted three Verdict sections and refused it ('it has 3 Verdict sections; one states the verdict, so reword the line ...'). The reviewer had to rename every reference to 'record:N' by hand (2026-11-26, ideate-terminal-build-1126). Any review that cites an ideate verdict record, or a file named after verdicts (verdict.md:14, verdict_head_test.go), leads a line this way; a sentence about a verdict was already accepted. diff --git a/.abcd/work/issues/open/iss-2611262226253325-while-the-person-is-away-the-stop-hook.md b/.abcd/work/issues/open/iss-2611262226253325-while-the-person-is-away-the-stop-hook.md new file mode 100644 index 000000000..66b8f3cea --- /dev/null +++ b/.abcd/work/issues/open/iss-2611262226253325-while-the-person-is-away-the-stop-hook.md @@ -0,0 +1,15 @@ +--- +schema_version: 1 +id: "iss-2611262226253325" +slug: "while-the-person-is-away-the-stop-hook" +severity: "minor" +category: "bug" +source: "user-observation" +found_during: "manual-capture" +origin: researcher-authored +production_mode: hand-written +found_at: "internal/core/autonomy" +remedy: "Have the owed-work reader apply land's stacked check: a pull request whose branch carries commits of another open pull request not on the default branch is owed nothing until that base merges, and the stop check names it as waiting on its base (as it already does for a stacked branch with no pull request); test a stacked pull request reads as waiting, not owed an arm." +--- + +While the person is away, the stop hook names a stacked pull request as owed an arm ('pull request #1817 (reserve-comma-test-1126) is behind its base, which a merge queue guards, and auto-merge is not armed: arm it'), but abcd land refuses to arm that same pull request because its branch carries commits of another open, armed pull request (#1815) not yet on main. The session can do nothing to move the item until the base merges, so the hook holds every stop on an act land forbids (2026-11-26, 22:35 GMT). From 93fec8c54e2323429b8f1c9b4ff6838bd5f21727 Mon Sep 17 00:00:00 2001 From: REPPL <77722411+REPPL@users.noreply.github.com> Date: Thu, 26 Nov 2026 22:29:46 +0000 Subject: [PATCH 2/3] fix: read a line that leads with a file reference as no verdict The review recorder counted a finding bullet that opens with a place in a file named after verdicts ('verdict:52', 'verdict.md:14', 'verdict_head_test.go') as a second Verdict section and refused the return, so a reviewer citing an ideate verdict record had to rename every reference by hand. A word followed directly by a line number, or by the rest of a file name, is now a reference; 'Verdict: 52' and every verdict statement still count. Resolves: iss-2611262200106745 Assisted-by: Claude:claude-opus-5-5 --- ...0106745-abcd-land-record-review-refuses-a-review.md | 2 ++ internal/core/landing/review.go | 10 ++++++++++ internal/core/landing/verdict_head_test.go | 5 +++++ 3 files changed, 17 insertions(+) rename .abcd/work/issues/{open => resolved}/iss-2611262200106745-abcd-land-record-review-refuses-a-review.md (87%) diff --git a/.abcd/work/issues/open/iss-2611262200106745-abcd-land-record-review-refuses-a-review.md b/.abcd/work/issues/resolved/iss-2611262200106745-abcd-land-record-review-refuses-a-review.md similarity index 87% rename from .abcd/work/issues/open/iss-2611262200106745-abcd-land-record-review-refuses-a-review.md rename to .abcd/work/issues/resolved/iss-2611262200106745-abcd-land-record-review-refuses-a-review.md index d31dfe460..20fc8a03d 100644 --- a/.abcd/work/issues/open/iss-2611262200106745-abcd-land-record-review-refuses-a-review.md +++ b/.abcd/work/issues/resolved/iss-2611262200106745-abcd-land-record-review-refuses-a-review.md @@ -10,6 +10,8 @@ origin: researcher-authored production_mode: hand-written found_at: "internal/core/landing/review.go" remedy: "Count a line as a second verdict only when the word verdict is followed, on that line, by one of the known verdict words (SHIP, FIX FIRST, BLOCK, APPROVE, NEEDS-INPUT), so a reference such as 'verdict:52' or a sentence about a verdict record is not one; test both a reference bullet (accepted) and a 'Verdict: SHIP' line outside the heading (still refused)." +resolution: "the recorder reads a word followed directly by a line number or the rest of a file name as a file reference, not a verdict (internal/core/landing/review.go, fileReference)" +impact: fix --- abcd land --record-review refuses a review return whose finding bullets lead with the word verdict as a reference into the record under review, not as a verdict: a security return for an ideate verdict record opened two finding bullets with a reference into that record ('verdict:52', 'verdict:143'), and the recorder counted three Verdict sections and refused it ('it has 3 Verdict sections; one states the verdict, so reword the line ...'). The reviewer had to rename every reference to 'record:N' by hand (2026-11-26, ideate-terminal-build-1126). Any review that cites an ideate verdict record, or a file named after verdicts (verdict.md:14, verdict_head_test.go), leads a line this way; a sentence about a verdict was already accepted. diff --git a/internal/core/landing/review.go b/internal/core/landing/review.go index 3678d9117..08787b43d 100644 --- a/internal/core/landing/review.go +++ b/internal/core/landing/review.go @@ -272,12 +272,22 @@ func verdictLines(lines []string) []int { return at } +// fileReference is what follows the word Verdict when the word is part of a file's +// name or a place in one, as a reviewer cites the record under review: a line +// number (`verdict:52`) or the rest of a file name (`verdict.md:14`, +// `verdict_head_test.go`). A separator before a line number stands apart from it +// (`Verdict: 52`), and a file name goes on with a letter or a digit. +var fileReference = regexp.MustCompile(`^(?::[0-9]|[._][\pL\pN])`) + func opensVerdict(line, next string) bool { m := verdictInLine.FindStringSubmatch(numberedItem.ReplaceAllString(line, "$1")) if m == nil { return false } lead, qualifiers, rest := m[1], m[2], m[3] + if fileReference.MatchString(rest) { + return false + } if qualifiers == "" { return true } diff --git a/internal/core/landing/verdict_head_test.go b/internal/core/landing/verdict_head_test.go index 4e4e534b9..482111689 100644 --- a/internal/core/landing/verdict_head_test.go +++ b/internal/core/landing/verdict_head_test.go @@ -237,6 +237,11 @@ func TestAFindingThatMentionsAVerdictOpensNone(t *testing.T) { "_Failure scenario:_ a verdict naming no head is refused.", "**The verdict reader drops a line.**", "*The verdict reader drops a line.*", + "- **verdict:52 and :111-116 at this head** — informational: the figures stay in history.", + "- verdict:188 no longer states the blocker as judged.", + "verdict.md:14 names the draft intent as the source.", + "- **verdict_head_test.go:20** — the reader drops a line.", + "- `verdict.go` reads the heading.", } { text := "Reviewed head: " + sha[:9] + "\n\n### Analysis\n\n" + line + "\n\n### Verdict\n\nSHIP " + sha + "\n" if word, err := ReadVerdict(text, sha); err != nil || word != "SHIP" { From 579fc19a3fce027d5dcb1e87cf5090bf2c19b555 Mon Sep 17 00:00:00 2001 From: REPPL <77722411+REPPL@users.noreply.github.com> Date: Thu, 26 Nov 2026 23:25:13 +0000 Subject: [PATCH 3/3] fix: count a file reference that states a verdict as one MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A reference into a file named after verdicts opens no verdict only while nothing after it on the line states a verdict word, so 'verdict:1 BLOCK', 'Verdict.BLOCK' and 'verdict.md:14 — Verdict: BLOCK' still count as a second verdict. Pin the boundary with refusal cases ('Verdict: 52', 'Verdict:BLOCK'), correct verdictLines' comment, and correct the time in the stop hook capture. Refs: iss-2611262200106745, iss-2611262226253325 Assisted-by: Claude:claude-opus-5-5 --- ...325-while-the-person-is-away-the-stop-hook.md | 2 +- internal/core/landing/review.go | 16 +++++++++++----- internal/core/landing/verdict_head_test.go | 10 ++++++++++ 3 files changed, 22 insertions(+), 6 deletions(-) diff --git a/.abcd/work/issues/open/iss-2611262226253325-while-the-person-is-away-the-stop-hook.md b/.abcd/work/issues/open/iss-2611262226253325-while-the-person-is-away-the-stop-hook.md index 66b8f3cea..54e71dbbb 100644 --- a/.abcd/work/issues/open/iss-2611262226253325-while-the-person-is-away-the-stop-hook.md +++ b/.abcd/work/issues/open/iss-2611262226253325-while-the-person-is-away-the-stop-hook.md @@ -12,4 +12,4 @@ found_at: "internal/core/autonomy" remedy: "Have the owed-work reader apply land's stacked check: a pull request whose branch carries commits of another open pull request not on the default branch is owed nothing until that base merges, and the stop check names it as waiting on its base (as it already does for a stacked branch with no pull request); test a stacked pull request reads as waiting, not owed an arm." --- -While the person is away, the stop hook names a stacked pull request as owed an arm ('pull request #1817 (reserve-comma-test-1126) is behind its base, which a merge queue guards, and auto-merge is not armed: arm it'), but abcd land refuses to arm that same pull request because its branch carries commits of another open, armed pull request (#1815) not yet on main. The session can do nothing to move the item until the base merges, so the hook holds every stop on an act land forbids (2026-11-26, 22:35 GMT). +While the person is away, the stop hook names a stacked pull request as owed an arm ('pull request #1817 (reserve-comma-test-1126) is behind its base, which a merge queue guards, and auto-merge is not armed: arm it'), but abcd land refuses to arm that same pull request because its branch carries commits of another open, armed pull request (#1815) not yet on main. The session can do nothing to move the item until the base merges, so the hook holds every stop on an act land forbids (2026-11-26, 22:26 GMT). diff --git a/internal/core/landing/review.go b/internal/core/landing/review.go index 08787b43d..a96ba733e 100644 --- a/internal/core/landing/review.go +++ b/internal/core/landing/review.go @@ -253,7 +253,8 @@ var verdictStatement = regexp.MustCompile("^(?:\\([^)]*\\)[ \\t]*)?(?:[:=|\\x{20 var verdictQualifier = regexp.MustCompile(`(?i)^(?:final|overall|my|our|the|last|review|reviewer'?s?|reviewers'?|security|ruthless|code|actual|formal)\b`) // verdictLines is the index of every line opening a verdict, in the shapes a reviewer -// writes one. A line that begins with the word does, whatever follows it. With words +// writes one. A line that begins with the word does, whatever follows it, unless the +// word is part of a file reference that states no verdict (fileReference). With words // before it (`Final`, `My`, `The overall`), a heading does, and so does a line whose // emphasis wraps the word (emphasisWrapsWord), and any other line does when it goes on // to state one (verdictStatement) or ends there after a qualifier: the word in a @@ -274,18 +275,23 @@ func verdictLines(lines []string) []int { // fileReference is what follows the word Verdict when the word is part of a file's // name or a place in one, as a reviewer cites the record under review: a line -// number (`verdict:52`) or the rest of a file name (`verdict.md:14`, -// `verdict_head_test.go`). A separator before a line number stands apart from it -// (`Verdict: 52`), and a file name goes on with a letter or a digit. +// number directly after a colon (`verdict:52`), or a dot or underscore and the rest +// of a file name (`verdict.md:14`, `verdict_head_test.go`). `Verdict: 52`, with a +// space after the colon, is no reference. var fileReference = regexp.MustCompile(`^(?::[0-9]|[._][\pL\pN])`) +// statesVerdictWord reports whether a verdict word stands anywhere in text, apart from +// the letters around it, so a file reference that goes on to state one +// (`verdict:1 BLOCK`, `Verdict.BLOCK`) still opens a verdict. +var statesVerdictWord = regexp.MustCompile(`(?:^|[^\pL])(?:SHIP|APPROVE|BLOCK|FIX[ _-]FIRST|NEEDS[ _-]INPUT)(?:$|[^\pL])`) + func opensVerdict(line, next string) bool { m := verdictInLine.FindStringSubmatch(numberedItem.ReplaceAllString(line, "$1")) if m == nil { return false } lead, qualifiers, rest := m[1], m[2], m[3] - if fileReference.MatchString(rest) { + if fileReference.MatchString(rest) && !statesVerdictWord.MatchString(rest) { return false } if qualifiers == "" { diff --git a/internal/core/landing/verdict_head_test.go b/internal/core/landing/verdict_head_test.go index 482111689..c891e1110 100644 --- a/internal/core/landing/verdict_head_test.go +++ b/internal/core/landing/verdict_head_test.go @@ -117,6 +117,16 @@ func TestAQualifiedVerdictLineCounts(t *testing.T) { "Final verdict", "### Verdicts", "1. Verdict: BLOCK", + "Verdict: 52", + "Verdict:BLOCK", + "Verdict. BLOCK", + "_Verdict_ BLOCK", + "Verdict.BLOCK", + "Verdict_BLOCK", + "verdict:1 BLOCK", + "verdict.md:14 — Verdict: BLOCK", + "| Verdict.BLOCK |", + "- **verdict:52** FIX FIRST", " ### Verdict", " ### Verdict", } {