Skip to content

fix(bin): preserve Lavish list-form feedback - #30

Merged
BohnBawerick merged 6 commits into
mainfrom
fm/fm-lavish-read-drops-list-form-feedback
Oct 4, 2026
Merged

BohnBawerick merged 6 commits into
mainfrom
fm/fm-lavish-read-drops-list-form-feedback

Conversation

@BohnBawerick

@BohnBawerick BohnBawerick commented Sep 29, 2026 •

Copy link
Copy Markdown
Owner

Intent

[captain] Feedback left on a Lavish review board must reach firstmate. On 2026-09-29 forty review comments and five decision answers on a board were reported as no comments, and the review was closed on that basis. The captain's reported outcome was that the review had many comments.
[Firstmate specification] Load the firstmate-coding-guidelines skill before editing. The real Lavish capture reproduced a feedback result with prompts[40] in list form, while classify said feedback and the old read reported annotation_count 0, no annotations, and complete yes; answers reported nothing. Read the capture only to learn its shape and do not copy private review words into repository artifacts. Confirm the cause: the adapter handled only tabular prompts[N]{field,...}: CSV rows, while lavish-axi can emit prompts[N]: list items with indented fields and nested attachments blocks for non-uniform items. Fix the adapter so read, answers, reconciles, silent, and every other prompt parser return every item from both forms. Prefer a machine-readable lavish-axi poll-result output only if current help offers one; otherwise parse both forms in the existing parser. When prompts[N] declares a count different from parsed items, read must report incomplete and exit nonzero, never complete yes. silent must never treat a capture with a nonzero declared count as nothing said. Preserve existing tabular behavior. Add regression coverage using a synthetic list-form fixture with several annotations, a choice row with Context data, an item with an attachments block, and a session-ending message. Assert counts, freeform comments, choice answers, and a nonzero incomplete verdict for a mismatched declared count. Do not change board construction, the Lavish tool, or routing of the already recovered feedback.
[accepted follow-up] Decode captures as UTF-8 once and have every consumer write UTF-8 consistently so non-ASCII choice answers and reconcile notes are not mojibake. Add regression coverage with non-ASCII in a list-form comment, choice answer, and reconcile note, and preserve the corresponding tabular behavior. Update the stale malformed-row regression to assert read's required nonzero incomplete verdict while retaining its output assertions and explain that behavior in the commit.

What Changed

  • Parse both tabular and list-form Lavish prompts across review reads, answer and reconcile extraction, and silence detection, including items with attachment metadata.
  • Mark malformed captures and declared-count mismatches as incomplete with a nonzero exit instead of closing reviews as complete.
  • Decode and emit UTF-8 consistently so non-ASCII comments, choice answers, and reconcile notes retain their text.

Risk Assessment

✅ Low: The shared parser handles current Lavish table and list output, preserves UTF-8 data, detects count mismatches, and introduces no material unsupported behavior.

Testing

Confirmed the installed Lavish output contract, then drove five synthetic list and table captures through the real adapter. Count mismatches and malformed rows returned nonzero incomplete results, silent announced every non-empty capture, extra and nested rows remained visible, and UTF-8 answers and reconcile notes survived unchanged. The worktree was clean after removing the temporary driver. No screenshot was applicable because the changed product surface is CLI output and exit status; the full reviewer-visible transcript records both.

  • Live validation: ✅ go - 4 of 4 scenarios driven live against the product
Scenario Result Live Evidence
List and table declared-count mismatches return an incomplete nonzero result, preserve parsed choices, and are not silenced ✅ pass live Live Lavish adapter transcript, scenarios 1a and 1b
An overfull table preserves every row and non-ASCII comments, answers, labels, and reconcile notes ✅ pass live Live Lavish adapter transcript, scenario 2
Nested attachment metadata remains part of one list item and does not hide later UTF-8 comments, choices, reconciles, or the session-ending message ✅ pass live Live Lavish adapter transcript, scenario 3
A malformed table row makes read incomplete while valid neighboring answers and reconciles remain available ✅ pass live Live Lavish adapter transcript, scenario 4
Evidence: Live Lavish adapter transcript

Source: Live Lavish adapter transcript

353-line transcript ending with ALL LIVE LAVISH ADAPTER SCENARIOS PASSED. SHA-256: 1de06e9f1514dbb89f46b1e633bf7b5cd1b50cb5c42ad18cf10dca726ee9c963


===== scenario 1a: list-form declared count mismatch =====
$ sed -n '1,240p' /tmp/fm-lavish-live.bsBkK0/list-count-mismatch.result
session:
  status: ended
  session_ended: true
prompts[3]:
  - uid: "list-answer"
    prompt: "Context data: {\"schema\":\"fm-bearings-answer.v1\",\"question\":\"list-mismatch-answer\",\"selection\":\"accept\",\"note\":\"\"}"
    selector: "#list-answer"
    tag: choice
    text: "Accept"
  - uid: "list-reconcile"
    prompt: "Context data: {\"schema\":\"fm-bearings-answer.v1\",\"question\":\"list-mismatch-reconcile\",\"selection\":\"reconcile\",\"note\":\"check list mismatch\"}"
    selector: "#list-reconcile"
    tag: choice
    text: "Reconcile"

$ bin/fm-procevent-lavish.sh read list-count-mismatch.result
exit_status: 1
SESSION-ENDING MESSAGE: (none)

declared_items: 3
presented_items: 2
malformed_items: 0
complete: no
lifecycle: ended
session_ended: true
annotation_count: 2
session_ending_message_count: 0

ANNOTATIONS
ANNOTATION 1 of 2
element_uid: list-answer
element_selector: #list-answer
tag: choice
text:
| Accept
ANNOTATION 2 of 2
element_uid: list-reconcile
element_selector: #list-reconcile
tag: choice
text:
| Reconcile
END ANNOTATIONS
END LAVISH RESULT (2 of 3)

$ bin/fm-procevent-lavish.sh answers list-count-mismatch.result
exit_status: 0
list-mismatch-answer	accept	Accept

$ bin/fm-procevent-lavish.sh reconciles list-count-mismatch.result
exit_status: 0
list-mismatch-reconcile	check list mismatch

$ bin/fm-procevent-lavish.sh silent list-count-mismatch.result
exit_status: 1
(no output)

$ bin/fm-procevent-lavish.sh answers list-count-mismatch.result
exit_status: 0
list-mismatch-answer	accept	Accept

$ bin/fm-procevent-lavish.sh reconciles list-count-mismatch.result
exit_status: 0
list-mismatch-reconcile	check list mismatch

===== scenario 1b: table-form declared count mismatch =====
$ sed -n '1,240p' /tmp/fm-lavish-live.bsBkK0/table-count-mismatch.result
session:
  status: ended
  session_ended: true
prompts[3]{uid,prompt,selector,tag,text}:
  "table-answer","Context data: {\"schema\":\"fm-bearings-answer.v1\",\"question\":\"table-mismatch-answer\",\"selection\":\"accept\",\"note\":\"\"}","#table-answer",choice,"Accept table"
  "table-reconcile","Context data: {\"schema\":\"fm-bearings-answer.v1\",\"question\":\"table-mismatch-reconcile\",\"selection\":\"reconcile\",\"note\":\"check table mismatch\"}","#table-reconcile",choice,"Reconcile table"

$ bin/fm-procevent-lavish.sh read table-count-mismatch.result
exit_status: 1
SESSION-ENDING MESSAGE: (none)

declared_items: 3
presented_items: 2
malformed_items: 0
complete: no
lifecycle: ended
session_ended: true
annotation_count: 2
session_ending_message_count: 0

ANNOTATIONS
ANNOTATION 1 of 2
element_uid: table-answer
element_selector: #table-answer
tag: choice
text:
| Accept table
ANNOTATION 2 of 2
element_uid: table-reconcile
element_selector: #table-reconcile
tag: choice
text:
| Reconcile table
END ANNOTATIONS
END LAVISH RESULT (2 of 3)

$ bin/fm-procevent-lavish.sh answers table-count-mismatch.result
exit_status: 0
table-mismatch-answer	accept	Accept table

$ bin/fm-procevent-lavish.sh reconciles table-count-mismatch.result
exit_status: 0
table-mismatch-reconcile	check table mismatch

$ bin/fm-procevent-lavish.sh silent table-count-mismatch.result
exit_status: 1
(no output)

$ bin/fm-procevent-lavish.sh answers table-count-mismatch.result
exit_status: 0
table-mismatch-answer	accept	Accept table

$ bin/fm-procevent-lavish.sh reconciles table-count-mismatch.result
exit_status: 0
table-mismatch-reconcile	check table mismatch

===== scenario 2: overfull table preserves all rows and UTF-8 =====
$ sed -n '1,240p' /tmp/fm-lavish-live.bsBkK0/table-extra-unicode.result
session:
  status: ended
  session_ended: true
prompts[1]{uid,prompt,selector,tag,text}:
  "unicode-note","Comment café","#unicode-note",note,"Élément café"
  "unicode-answer","Context data: {\"schema\":\"fm-bearings-answer.v1\",\"question\":\"unicode-table-answer\",\"selection\":\"oui\",\"note\":\"東京\"}","#unicode-answer",choice,"Réponse 東京"
  "unicode-reconcile","Context data: {\"schema\":\"fm-bearings-answer.v1\",\"question\":\"unicode-table-reconcile\",\"selection\":\"reconcile\",\"note\":\"réexaminer café\"}","#unicode-reconcile",choice,"Réconcilier"

$ bin/fm-procevent-lavish.sh read table-extra-unicode.result
exit_status: 1
SESSION-ENDING MESSAGE: (none)

declared_items: 1
presented_items: 3
malformed_items: 0
complete: no
lifecycle: ended
session_ended: true
annotation_count: 3
session_ending_message_count: 0

ANNOTATIONS
ANNOTATION 1 of 3
element_uid: unicode-note
element_selector: #unicode-note
tag: note
text:
| Élément café
prompt:
| Comment café
ANNOTATION 2 of 3
element_uid: unicode-answer
element_selector: #unicode-answer
tag: choice
text:
| Réponse 東京
ANNOTATION 3 of 3
element_uid: unicode-reconcile
element_selector: #unicode-reconcile
tag: choice
text:
| Réconcilier
END ANNOTATIONS
END LAVISH RESULT (3 of 1)

$ bin/fm-procevent-lavish.sh answers table-extra-unicode.result
exit_status: 0
unicode-table-answer	oui - 東京	Réponse 東京

$ bin/fm-procevent-lavish.sh reconciles table-extra-unicode.result
exit_status: 0
unicode-table-reconcile	réexaminer café

$ bin/fm-procevent-lavish.sh silent table-extra-unicode.result
exit_status: 1
(no output)

$ bin/fm-procevent-lavish.sh answers table-extra-unicode.result
exit_status: 0
unicode-table-answer	oui - 東京	Réponse 東京

$ bin/fm-procevent-lavish.sh reconciles table-extra-unicode.result
exit_status: 0
unicode-table-reconcile	réexaminer café

===== scenario 3: nested attachments do not hide later list items =====
$ sed -n '1,240p' /tmp/fm-lavish-live.bsBkK0/list-nested-attachments.result
session:
  status: ended
  session_ended: true
prompts[5]:
  - uid: "before"
    prompt: "Before attachment"
    selector: "#before"
    tag: note
    text: "Before element"
  - uid: "attached"
    prompt: "Attached comment café"
    selector: "#attached"
    tag: note
    text: "Attached element"
    attachments[1]{id,type}:
      synthetic-image,image
  - uid: "after-answer"
    prompt: "Context data: {\"schema\":\"fm-bearings-answer.v1\",\"question\":\"after-attachment-answer\",\"selection\":\"ship\",\"note\":\"après 東京\"}"
    selector: "#after-answer"
    tag: choice
    text: "Ship after attachment 東京"
  - uid: "after-reconcile"
    prompt: "Context data: {\"schema\":\"fm-bearings-answer.v1\",\"question\":\"after-attachment-reconcile\",\"selection\":\"reconcile\",\"note\":\"réviser café\"}"
    selector: "#after-reconcile"
    tag: choice
    text: "Reconcile after attachment"
  - uid: "ending"
    prompt: "Session finished after attachments"
    selector: ""
    tag: message
    text: "Session message"

$ bin/fm-procevent-lavish.sh read list-nested-attachments.result
exit_status: 0
SESSION-ENDING MESSAGE
| Session finished after attachments
END SESSION-ENDING MESSAGE

declared_items: 5
presented_items: 5
malformed_items: 0
complete: yes
lifecycle: ended
session_ended: true
annotation_count: 4
session_ending_message_count: 1

ANNOTATIONS
ANNOTATION 1 of 4
element_uid: before
element_selector: #before
tag: note
text:
| Before element
prompt:
| Before attachment
ANNOTATION 2 of 4
element_uid: attached
element_selector: #attached
tag: note
text:
| Attached element
prompt:
| Attached comment café
ANNOTATION 3 of 4
element_uid: after-answer
element_selector: #after-answer
tag: choice
text:
| Ship after attachment 東京
ANNOTATION 4 of 4
element_uid: after-reconcile
element_selector: #after-reconcile
tag: choice
text:
| Reconcile after attachment
END ANNOTATIONS
END LAVISH RESULT (5 of 5)

$ bin/fm-procevent-lavish.sh answers list-nested-attachments.result
exit_status: 0
after-attachment-answer	ship - après 東京	Ship after attachment 東京

$ bin/fm-procevent-lavish.sh reconciles list-nested-attachments.result
exit_status: 0
after-attachment-reconcile	réviser café

$ bin/fm-procevent-lavish.sh silent list-nested-attachments.result
exit_status: 1
(no output)

$ bin/fm-procevent-lavish.sh answers list-nested-attachments.result
exit_status: 0
after-attachment-answer	ship - après 東京	Ship after attachment 東京

$ bin/fm-procevent-lavish.sh reconciles list-nested-attachments.result
exit_status: 0
after-attachment-reconcile	réviser café

===== scenario 4: malformed table row retains valid neighbors =====
$ sed -n '1,240p' /tmp/fm-lavish-live.bsBkK0/table-malformed-neighbors.result
session:
  status: ended
  session_ended: true
prompts[3]{uid,prompt,selector,tag,text}:
  "valid-answer","Context data: {\"schema\":\"fm-bearings-answer.v1\",\"question\":\"neighbor-answer\",\"selection\":\"keep\",\"note\":\"\"}","#valid-answer",choice,"Keep valid answer"
  "broken","missing text column","#broken",note
  "valid-reconcile","Context data: {\"schema\":\"fm-bearings-answer.v1\",\"question\":\"neighbor-reconcile\",\"selection\":\"reconcile\",\"note\":\"retain valid neighbor\"}","#valid-reconcile",choice,"Keep valid reconcile"

$ bin/fm-procevent-lavish.sh read table-malformed-neighbors.result
exit_status: 1
SESSION-ENDING MESSAGE: (none)

declared_items: 3
presented_items: 2
malformed_items: 1
complete: no
lifecycle: ended
session_ended: true
annotation_count: 2
session_ending_message_count: 0

ANNOTATIONS
ANNOTATION 1 of 2
element_uid: valid-answer
element_selector: #valid-answer
tag: choice
text:
| Keep valid answer
ANNOTATION 2 of 2
element_uid: valid-reconcile
element_selector: #valid-reconcile
tag: choice
text:
| Keep valid reconcile
END ANNOTATIONS
END LAVISH RESULT (2 of 3)

$ bin/fm-procevent-lavish.sh answers table-malformed-neighbors.result
exit_status: 0
neighbor-answer	keep	Keep valid answer

$ bin/fm-procevent-lavish.sh reconciles table-malformed-neighbors.result
exit_status: 0
neighbor-reconcile	retain valid neighbor

$ bin/fm-procevent-lavish.sh silent table-malformed-neighbors.result
exit_status: 1
(no output)

$ bin/fm-procevent-lavish.sh answers table-malformed-neighbors.result
exit_status: 0
neighbor-answer	keep	Keep valid answer

$ bin/fm-procevent-lavish.sh reconciles table-malformed-neighbors.result
exit_status: 0
neighbor-reconcile	retain valid neighbor

ALL LIVE LAVISH ADAPTER SCENARIOS PASSED
- Outcome: 🔧 1 issue found → no changes applied ✅ across 2 runs (33m41s)

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

🔧 **Test** - 1 issue found → no changes applied ✅
  • ⚠️ live validation verdict: inconclusive (1 of 5 scenarios were driven live against the product); untested: A declared item count that differs from parsed list or table items returns an incomplete nonzero result while preserving every parsed row, Existing table-form feedback keeps extra rows and preserves non-ASCII answers and reconcile notes, A non-uniform list item with nested attachment metadata remains one prompt item and does not hide following feedback, Malformed table rows make read return nonzero and incomplete while retaining valid neighboring rows
  • Live validation: ⚠️ inconclusive - 1 of 5 scenarios driven live against the product
Scenario Result Live Evidence
Captain sends a list-form Lavish review containing Unicode choices, an image attachment, and a session-ending message; every item reaches firstmate intact ✅ pass live Live browser screenshot, raw poll result, and live adapter transcript
A declared item count that differs from parsed list or table items returns an incomplete nonzero result while preserving every parsed row ⏸️ untested no The prior payload cited only an adversarial adapter transcript and a test script, so it did not establish this result against the live product.
Existing table-form feedback keeps extra rows and preserves non-ASCII answers and reconcile notes ⏸️ untested no The prior payload cited only an adversarial adapter transcript and a test script, so it did not establish this result against the live product.
A non-uniform list item with nested attachment metadata remains one prompt item and does not hide following feedback ⏸️ untested no The prior payload cited only a test script, so it did not establish this result against the live product.
Malformed table rows make read return nonzero and incomplete while retaining valid neighboring rows ⏸️ untested no The prior payload cited only an adversarial adapter transcript and a test script, so it did not establish this result against the live product.
  • lavish-axi --version, lavish-axi --help, and lavish-axi poll --help
  • Built and opened an isolated real Bearings board with bin/fm-bearings-board.sh build and lavish-axi 0.1.78
  • Drove choices, Unicode notes, an image attachment, a freeform message, and Send & End through Chromium using chrome-devtools-axi
  • Ran bin/fm-procevent-lavish.sh classify, read, answers, reconciles, and silent against the fresh live poll result
  • Ran the public adapter against list-count mismatch, table-overfull, and malformed-row protocol fixtures
  • tests/fm-procevent.test.sh
  • tests/fm-captain-hold-lifecycle.test.sh
  • Inspected the screenshot and evidence values, stopped the browser, removed the disposable test home, and confirmed git status --short was clean

🔧 No changes applied.
✅ Re-checked - no issues remain.

  • Live validation: ✅ go - 4 of 4 scenarios driven live against the product
Scenario Result Live Evidence
List and table declared-count mismatches return an incomplete nonzero result, preserve parsed choices, and are not silenced ✅ pass live Live Lavish adapter transcript, scenarios 1a and 1b
An overfull table preserves every row and non-ASCII comments, answers, labels, and reconcile notes ✅ pass live Live Lavish adapter transcript, scenario 2
Nested attachment metadata remains part of one list item and does not hide later UTF-8 comments, choices, reconciles, or the session-ending message ✅ pass live Live Lavish adapter transcript, scenario 3
A malformed table row makes read incomplete while valid neighboring answers and reconciles remain available ✅ pass live Live Lavish adapter transcript, scenario 4
  • lavish-axi poll --help to confirm the installed CLI has no machine-readable poll-result mode.
  • bash .live-lavish-adapter-test.sh 2>&1 | tee ~/.no-mistakes/evidence/01M3PXBCP64Q1VS8N218E7T25R/lavish-adapter-live-transcript.txt using five synthetic captures and the real read, answers, reconciles, and silent commands.
  • Verified the final transcript markers, UTF-8 outputs, line count, and SHA-256 digest.
  • Removed the temporary live driver and confirmed git status --short was clean.
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

…read's nonzero incomplete verdict while retaining output assertions. `tests/fm-procevent.test.sh`, `tests/fm-bearings-board-render.test.sh`, `bin/fm-lint.sh`, and `git diff --check` pass. Serial 8 was a transient runner failure and passed six local runs
@BohnBawerick BohnBawerick changed the title fix(procevent): read Lavish list-form feedback fix(bin): preserve Lavish list-form feedback Sep 29, 2026
@BohnBawerick
BohnBawerick merged commit 8a87193 into main Oct 4, 2026
20 checks passed
@BohnBawerick
BohnBawerick deleted the fm/fm-lavish-read-drops-list-form-feedback branch October 4, 2026 02:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant