Make feedback drafts and submitted history durable #11
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Reference
lab/pilcrow#11
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What to build
Persist unfinished ordinary input and response-bound annotation drafts in Pilcrow's configured workspace state, including validated attachments. Keep cursor position, native selection geometry, menus, and editor placement in browser memory. Use bounded revisions so stale pages cannot silently overwrite a newer durable draft; elaborate multi-tab merge UI is out of scope.
Pi's real persisted user message remains the only submitted conversation record. Recognize valid persisted TOON input during history normalization and render its quoted targets, comments, overall reply, and attachment summaries as one structured immutable user entry. Do not add a marker to model-visible content, a paired custom entry, a duplicate hub transcript record, or a durable submitted-anchor repository.
After dispatch acceptance, retain immutable payload identity and fingerprint as recovery evidence until the matching real Pi user message appears. Allow a new draft immediately. Never fabricate a conversation entry while waiting, and preserve honest indeterminate/retry behavior if transport is lost. Multiple submitted batches may target the same response.
Acceptance criteria
Blocked by
Implemented in jj revision
f26f4371(feat(feedback): persist revisioned drafts and delivery recovery state).What changed:
Audit and regression coverage:
Validation:
vp checknow passes all 200 formatted files with 0 errors and four non-blocking warnings in existing launcher/registry code.git diff --checkpassed.Protocol remains exact v9. Pi JSONL remains the sole submitted conversation authority and is never written, migrated, or duplicated by Pilcrow. No server was managed.