Skip to content

Read only the claimed dialog record from taskman - #226

Merged
iamwavecut merged 1 commit into
mainfrom
fix/dialog-dequeue-record-copy
Oct 10, 2026
Merged

iamwavecut merged 1 commit into
mainfrom
fix/dialog-dequeue-record-copy

Conversation

@iamwavecut

Copy link
Copy Markdown
Owner

Claiming a dialog cloned every taskman record to retrieve the selected job's causation updates. Production retains almost 19,000 terminal jobs, including dialog checkpoints, so each new turn copied the archive while holding the queue lock. Use the existing single-record lookup instead.

Remove the same unnecessary archive copies when reporting startup restore counts and checking whether the taskman inspector is configured. Keep every persisted record, terminal retention, ordering, claim timestamp, and causation update unchanged.

Validation: 2467 workspace tests passed (10 ignored), formatting and diff checks, all-target Clippy with warnings denied. A regression checks the selected job, source updates, latest update, claim timestamp, and retained terminal history. A local benchmark calls the real dialog dequeue adapter 20 times with 1,000 completed jobs containing 62.5 MiB of payload: peak RSS drops from 138.2 to 71.1 MiB and median claim time from 1,844 to 28 microseconds. These are local debug measurements; production memory and latency still require observation.

@github-actions

Copy link
Copy Markdown
Messages
📖 Danger checked 4 changed file(s).

Generated by 🚫 dangerJS against 0842fa1

@iamwavecut
iamwavecut merged commit 85ae28b into main Oct 10, 2026
12 checks passed
@iamwavecut
iamwavecut deleted the fix/dialog-dequeue-record-copy branch October 10, 2026 12:37
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