fix(tasks): preserve audit changes and paginate visible work - #18
Draft
mfethe1 wants to merge 3 commits into
Draft
fix(tasks): preserve audit changes and paginate visible work#18mfethe1 wants to merge 3 commits into
mfethe1 wants to merge 3 commits into
Conversation
Signed-off-by: Michael Feth <mfethe1@gmail.com>
Signed-off-by: Michael Feth <mfethe1@gmail.com>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced Sep 7, 2026
Trunk landed 0047_agent_machine_homes (AGENT-HOMES-001 PR-3) while this branch carried its own 0047_task_event_changes, so both sides claimed version 47. PR #30 already owns 0048_community_brand_color, so this takes 0049. sqlx::migrate! globs migrations/ by filename, so renaming the file is the whole renumber. Inventory assertions pin 47 migrations, 46/47/49.
mfethe1
force-pushed
the
codex/buzz-task-integrity
branch
from
September 12, 2026 02:53
eaeba42 to
76c9c66
Compare
mfethe1
added a commit
that referenced
this pull request
Sep 12, 2026
Trunk landed 0047_agent_machine_homes while this branch carried its own 0047_task_optimistic_concurrency. PR #30 owns 0048 and PR #18 owns 0049, so this takes 0050 (matching the numbering PR #27 already expects). sqlx::migrate! globs migrations/ by filename, so the rename is the whole renumber. Inventory now pins 47 migrations with 50 last.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Task assignment, priority, and deadline changes currently lose their before/after values, and newer private tasks can hide accessible work from a limited task list. This change records each changed field in the same transaction as the task update, applies channel visibility before the database limit, and adds continuation cursors ordered by modification time and task ID. Retrying an unchanged patch leaves both history and the modification timestamp unchanged. Pagination remains live: a task modified between pages can move ahead of the cursor and requires a first-page refresh.
Migration 0047 adds structured task-event changes while preserving legacy rows. Deploy readers that understand the new action names before new writers; older relay binaries cannot read newly emitted action names.
Related issue
Builds on #10. Searched existing issues and PRs; no duplicate history/pagination fix found.
Testing
At head
8a35c1f14ae5f618ffbf416b1a6d1786e7b46f86, 126 database unit tests and a targeted 12-test isolated PostgreSQL CI lane passed (1,536 unrelated tests skipped), including desired-schema bootstrap and the 0046-to-0047 upgrade. A real signed HTTP flow exercised create, update, history, private-channel visibility, two-page retrieval, and retry behavior. Five targeted mutations were rejected.Full
just cifailed: 6,583 desktop JavaScript tests passed, then the mobile suite reported 2,241 passed and eight failed agent-activity golden comparisons. Those same eight comparisons failed at unchanged baseadeec6eb5c4ff425aa03d8a744a295da4429f67f; all eight rendered actual PNGs were byte-identical between base and candidate. The rendering-platform explanation remains unconfirmed. This PR changes no mobile files or expected images. The broaderjust testlauncher separately failed to start Docker Compose on Airy; the native database and HTTP lane ran independently.Hosted runs for this head tested merge commit
39f3eb6651c91186f2d111d046add48a3cbb21a1. Image-cache writes failed, and the Windows Rust job reported 949 passed and 21 failedbuzz-acptests. Completed checks also report PostgreSQL, desktop smoke, and desktop integration failures. These gates remain failed on this PR; passing checks on separate repair PRs and green summary jobs do not qualify it for merge.