Repository navigation
feat(pm-aggregator): decisions page — request more information, comments ride back, filled answers win, guided defer (#8766) - #8770
Merged
Conversation
…nts ride back, filled answers win, guided defer (#8766) Request-info: per-question action with an optional note, plus a checked-items bulk action (POST /api/decisions/<setId>/request-info). The resolution kind request-info leaves the page like a defer but is not a ruling: it publishes through the fleet feed decisionResolutions array with its note, and the enrichment/re-raise path carries the gathered information back as a question-level infoProvided block, rendered as a marked Information-you-requested section in a later set. Comments ride back: a comment field on resolutions of every kind — the per-question text box rides as a defer comment, a bulk comment rides with bulk defers, and the request-info note covers that kind. Filled answers win over bulk defer: /defer accepts gathered submissions and the store records them first (deferWithSubmissions); only still-unanswered questions in scope are deferred. Three-level bulk precedence: a questions own defer setting (guided defer — tentative option pick + comment attached as guidance) > a filled answer > the bulk dropdown default flavor for untouched questions. Copy: the send-back controls now say what happens in plain words — Defer / Defer — leaning no / Defer — leaning yes, Defer checked to orchestrator, Defer ALL remaining, and the item checkbox says it selects the item for a bulk action.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
6 tasks
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.
Follow-up to the decisions page (#8766, page shipped in #8767), from Drew's live use of the page on 2026-11-11.
Request more information — per-question action with an optional note ("what's missing"), plus a checked-items bulk action (
POST /api/decisions/<setId>/request-info). New resolution kindrequest-info: the question leaves Drew's page like a defer, but it is not a ruling. It publishes through the fleet feed'sdecisionResolutions(kind + note + comment) for the dropped-thread catcher, which marks the ledger question awaiting enrichment (never closes the item, never unblocks). When the orchestrator gathers the information, the question is re-raised in a later set carrying it as a question-levelinfoProvidedblock, rendered on the page as a marked "Information you requested" section. First-resolution-wins still holds inside a set, so the re-raise is a later set by construction; one push per set is unchanged (the re-raise rides that set's push).Comments ride back — a
commentfield on resolutions of every kind: the per-question text box rides as the comment on a defer, a bulk comment rides with bulk defers, the note covers request-info, and an answer may carry a comment beside its free text. Comments land in the feed payload the catcher writes onto the ledger.Filled answers win over bulk defer —
/deferaccepts the page's gathered submissions and the store records them first (deferWithSubmissions); only still-unanswered questions in scope are deferred. Three-level precedence per question on a bulk send-back: (1) the question's own defer setting — including guided defer, where a tentative option pick + comment ride along as guidance while the kind stays deferred; (2) a filled answer, submitted as an answer; (3) the bulk dropdown's flavor, which is a default that reaches only untouched questions. Per-question flavor pickers sit on every question, so one bulk action can carry mixed flavors.Copy — the bulk/defer controls now say what happens in plain words: flavors are "Defer" / "Defer — leaning no" / "Defer — leaning yes"; buttons are "Defer checked to orchestrator" and "Defer ALL remaining"; the item checkbox says it selects the item for a bulk action. Semantics/endpoints of the original defer flow are unchanged apart from the additions above.
Tests:
test/decisions.test.ts— 18 pass (8 new: request-info per-question + bulk + re-raise withinfoProvided, comments on every kind, filled-answers-win, guided defer, three-level bulk precedence). Full suite compared against pristine main: the only failures are the same pre-existing environmental ones on both trees (live-source/source-gate; digest + port-timeout failures appear only under full parallel runs on both). No tsc errors in touched files (26 pre-existing errors repo-wide, identical count on main).Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.