Repository navigation
Conversation
…es (#1001) Post an approval-request notice on the task's Linear issue when a Cedar gate opens, and one outcome comment when it resolves (approved, denied, timed out, stranded). Notices go through the existing fan-out Linear dispatcher and workspace token resolver, are rendered from the saved approval row, and are idempotent per request via delivery markers and deterministic comment IDs. The linked task owner can reply `approve` or `deny [reason]` to the notice. The processor re-reads the comment from Linear (bot actors, the app's own identity, and issue/parent/body mismatches are ignored), checks the replier maps to the task owner, and records the decision through the same approve/deny code path as the API, tagged with a Linear decision_source. Non-owner, stale and duplicate replies get a same-thread explanation. API and CLI behaviour is unchanged; webhook signature verification is untouched. No new CloudFormation resources.
- approval-notifications: render the notice text in two helpers, so loadApprovalNotification is under the complexity ceiling of 40 (was 46) - fanout: move the Linear approval notice and the ended-task thread close out of dispatchToLinear (was 42) - pin cdk's jest moduleNameMapper in contracts/coverage-thresholds.json. The decision handlers are imported lazily with a .js extension (they validate their environment at load, and nodenext needs the extension on a dynamic import), so jest maps "./x.js" to "./x". The mapper resolves file names only: it changes no floor, no measured file and no test command. It needs a maintainer's agreement. The moved code is unchanged.
5 tasks done
This was referenced Nov 20, 2026
5 tasks done
Contributor
Author
|
Superseded by #1067, which carries this change (its commits are kept as they were, followed by one commit that adapts the combined set to current main). Closing to keep one place for review. |
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.
Closes #1001.
Until now, a Linear user had no way to see that their task was paused for approval, and no way to answer from Linear. On main,
approval_requestedfans out to Slack and email only.What changes for Linear users
approveordeny [reason]to the notice.recordApprovalForUser/recordDenialForUser), so consent, owner checks and the audit event are identical. The decision source is recorded as Linear.approve because,deniedordenyallis rejected.Safety
channel_source=linear, workspace, issue).Wiring
@bgagentpath.LinearIntegration(processor read/write) andFanOutConsumer(GetItem/UpdateItem). No new CloudFormation resources, only env vars and IAM statements.moduleNameMapperfor.js-suffixed imports undernodenext.Tests
Known limits
fanout-task-events.tsconflict with feat(compute): add Lambda MicroVM P3 approval lifecycle #904 and fix(orchestration): exactly-once concurrency seat release #1009, whichever merges first.