Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
323baeb
feat(wrap): one-call gather with live named PRs and a needs-you check
tieubao Dec 2, 2026
3280f9b
docs(verification): add proof for wrap-cut-call
tieubao Dec 2, 2026
2d84529
feat(wrap): gather reads the target transcript itself
tieubao Dec 2, 2026
2a4ceb8
fix(wrap): transcript-named repos run no repo-configured program
tieubao Dec 2, 2026
11d87a9
feat(wrap): tag acted vs mentioned PRs and keep the miner beside the …
tieubao Dec 2, 2026
64b6e23
fix(wrap): clear the CI lints on the one-call gather
tieubao Dec 2, 2026
43a3cec
docs(wrap): run the miner in the foreground and tighten needs-you
tieubao Dec 2, 2026
0ff2815
test(shared-lookups): mark the intended word split for shellcheck
tieubao Dec 2, 2026
6809df3
docs(verification): record the wrap-cut-call replay and final proof
tieubao Dec 2, 2026
6c9a0cf
docs(wrap): scope transcript-only repos and the self-wrap needs-you walk
tieubao Dec 2, 2026
2edc01f
docs(verification): link the replay results and note judge noise
tieubao Dec 2, 2026
37b3ac2
docs(wrap): run step 7b's precedent find once per wrap
tieubao Dec 2, 2026
ccdad40
fix(wrap): transcript repo discovery, truncated lines, URL-less merge…
tieubao Dec 2, 2026
afb621c
fix(wrap): a first wrap report's NOTHING names the needs-you walk
tieubao Dec 2, 2026
16bcaf5
docs(verification): record the review fixes and their negative controls
tieubao Dec 2, 2026
796ac42
fix(wrap): resolve relative cd and git -C targets against the record'…
tieubao Dec 2, 2026
a3a02f0
feat(wrap): a one-screen report whose specifics come from live reads
tieubao Dec 2, 2026
9328d65
fix(wrap): the report lint holds every wrap-shaped report; cd chains …
tieubao Dec 2, 2026
2829c60
fix(wrap): cap a report bullet by characters, not sentences
tieubao Dec 2, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 26 additions & 17 deletions commands/wrap.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/QUICKSTART.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ After the PR is up, run `/kit:wrap`. It flips board rows, merges your own green
```
## Wrap: <session slug>

✅ **Needs you:** NOTHING
✅ **Needs you:** NOTHING (walked: digest 4 replies, miner 2 actions)

**What happened**
**Shipped**
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/wrap.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ The report that `/kit:wrap` prints leads with the one question that matters:
```
## Wrap: <session slug>

✅ **Needs you:** NOTHING
✅ **Needs you:** NOTHING (walked: digest 4 replies, miner 2 actions)
**What happened**
**Shipped** | Repo | PR | Merge | Deploy |
**Left alone:**
Expand Down
280 changes: 280 additions & 0 deletions docs/verification/wrap-cut-call.md

Large diffs are not rendered by default.

59 changes: 51 additions & 8 deletions lib/wrap/report-lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,21 +78,64 @@ sweep_report=0
first_h2="$(printf '%s\n' "$input" | grep -m1 '^## ' || true)"
case "$first_h2" in '## Follow-through:'*) follow_report=1 ;; esac
case "$first_h2" in '## Harvest sweep:'*) sweep_report=1 ;; esac
# Every report that is not one of the two known other shapes is held to the first wrap report's
# rules (the line budget, the walked NOTHING, the bullet cap), so a drifted heading (`## wrap:`,
# `## Wrap <slug>`, an extra heading above it, or none) cannot switch them off.
wrap_report=1
[ "$follow_report" = 1 ] || [ "$sweep_report" = 1 ] && wrap_report=0


# PR numbers named by `Needs you` items that open with REVIEW, space-separated, filled by the
# walk below. A full-lane build in a follow-through report must name one of them.
review_prs=" "

# Walk the report. `in_block` is on between the `Needs you` header and the next bold section
# header, so only that section is judged; a `What happened` sentence may say anything.
findings=0
warns=0
# The line budget: a first wrap report fits about one screen, so its non-blank lines, tables
# and fences included, stay at or under REPORT_MAX_LINES (commands/wrap.md states the same 40).
REPORT_MAX_LINES=40
report_lines="$(printf '%s\n' "$input" | grep -c '[^[:space:]]')"
if [ "$wrap_report" = 1 ] && [ "$report_lines" -gt "$REPORT_MAX_LINES" ]; then
echo "line 0: the report has ${report_lines} non-blank lines; the budget is ${REPORT_MAX_LINES}. Cut repeated facts and merge rows" >&2
findings=$((findings + 1))
fi
# One fact per bullet: a bullet or a lettered item outside a code fence is at most
# BULLET_MAX_CHARS characters, so the line budget cannot be dodged by packing one line. A
# character cap, not a sentence count: a lettered marker (`a. `) and abbreviations (`e.g. `)
# would count as sentences, and the Needs-you template `a. <what>. <why>. <command>.` with a
# real command fits in 400.
BULLET_MAX_CHARS=400
if [ "$wrap_report" = 1 ]; then
_b_fence=0; _b_lineno=0
while IFS= read -r _b_line; do
_b_lineno=$((_b_lineno + 1))
case "$_b_line" in '```'*) _b_fence=$((1 - _b_fence)); continue ;; esac
[ "$_b_fence" = 1 ] && continue
case "$_b_line" in '- '*|[a-z].\ *) ;; *) continue ;; esac
_b_line="${_b_line%$'\r'}"
if [ "${#_b_line}" -gt "$BULLET_MAX_CHARS" ]; then
echo "line ${_b_lineno}: one bullet is ${#_b_line} characters; the cap is ${BULLET_MAX_CHARS}, one fact per bullet" >&2
findings=$((findings + 1))
fi
done <<< "$input"
fi
# Walk the report. `in_block` is on between the `Needs you` header and the next bold section
# header, so only that section is judged; a `What happened` sentence may say anything.
lineno=0
in_block=0
while IFS= read -r line; do
lineno=$((lineno + 1))
case "$line" in
*'**Needs you:**'*) in_block=1; continue ;;
*'**Needs you:**'*)
# A first wrap report's NOTHING names what the needs-you walk read, so an unwalked
# NOTHING cannot pass: `NOTHING (walked: digest 4 replies, miner 2 actions)`.
if [ "$wrap_report" = 1 ] && printf '%s' "$line" | grep -q 'NOTHING' \
&& ! printf '%s' "$line" | grep -qE 'NOTHING \(walked: [^)]*[0-9][^)]*\)'; then
echo "line ${lineno}: Needs you says NOTHING without naming the walk; write NOTHING (walked: digest <n> replies, miner <m> actions)" >&2
echo " ${line}" >&2
findings=$((findings + 1))
fi
in_block=1; continue ;;
esac
[ "$in_block" = 1 ] || continue
# Any other bold section header closes the block.
Expand Down Expand Up @@ -505,11 +548,11 @@ while IFS= read -r _p_line; do
case "$_p_line" in '```'*) _p_fence=$((1 - _p_fence)); continue ;; esac
[ "$_p_fence" = 1 ] && continue
case "$_p_line" in
*'**Needs you:**'*) _p_sect=needs; continue ;;
'**What happened**'*) _p_sect=what; continue ;;
'**Left alone:**'*) _p_sect=left; continue ;;
'**FYI:**'*) _p_sect=fyi; continue ;;
'**Built:**'*) _p_sect=built ;;
*'**Needs you:**'*) _p_sect="needs"; continue ;;
'**What happened**'*) _p_sect="what"; continue ;;
'**Left alone:**'*) _p_sect="left"; continue ;;
'**FYI:**'*) _p_sect="fyi"; continue ;;
'**Built:**'*) _p_sect="built" ;;
'**'*'**'*) _p_sect=""; continue ;;
esac
_p_text=""
Expand Down
Loading
Loading