Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
2706ab3
Add OpenAI Conversations support to OpenAIUtils, drop Assistants API
roryabraham Jul 28, 2026
75fc837
Extract ProposalUtils and add GithubUtils.pinIssue
roryabraham Jul 28, 2026
77e7871
Replace ProposalPolice's prompt blob with composed instruction fragments
roryabraham Jul 28, 2026
394de19
Add ProposalPoliceConversation utils for per-issue duplicate tracking
roryabraham Jul 28, 2026
f556c62
Migrate ProposalPolice action off the Assistants API
roryabraham Jul 28, 2026
a401c23
Add tests for the ProposalPolice Responses/Conversations migration
roryabraham Jul 28, 2026
3bac9ac
Rebuild compiled GitHub Action bundles
roryabraham Jul 28, 2026
75375ef
Merge branch 'main' into Rory-ProposalPoliceResponsesConversations
roryabraham Jul 28, 2026
95a12aa
Address branch-reviewer feedback on duplicate detection
roryabraham Jul 28, 2026
cd373e2
Fix: record a proposal directly when its duplicate-check call is skipped
roryabraham Jul 28, 2026
e34ba16
Address round-3 branch-reviewer feedback
roryabraham Jul 28, 2026
f47d9e7
Address round-4 branch-reviewer feedback
roryabraham Jul 28, 2026
06d99d2
Add test coverage for the PROPOSAL_POLICE_MODEL constant
roryabraham Jul 28, 2026
3859dec
Remove GithubUtils.pinIssue
roryabraham Jul 28, 2026
ad86f96
Rebuild gh actions
roryabraham Jul 28, 2026
8f18251
Merge branch 'main' into Rory-ProposalPoliceResponsesConversations
roryabraham Aug 10, 2026
4cc2df2
fix(cspell): add conv to dictionary for OpenAI conversation ID prefix
roryabraham Aug 10, 2026
e1c428b
Rebuild gh actions
roryabraham Aug 10, 2026
3ea5540
refactor: replace ProposalPolice's bot check with the shared GitHub-A…
roryabraham Aug 12, 2026
c24faa1
Drop similarity threshold to 85%
roryabraham Aug 12, 2026
db9bd8f
refactor: drop unnecessary get prefixes from proposal-police helpers
roryabraham Aug 12, 2026
21c00e3
refactor: make DUPLICATE_CHECK_WITHDRAW_MESSAGE a constant
roryabraham Aug 12, 2026
ae8fa5d
fix: restore type narrowing on conversationID
roryabraham Aug 12, 2026
31136b7
refactor(proposalPolice): remove duplicated prompt content
roryabraham Aug 12, 2026
32c6a14
refactor(proposalPolice): let JS own the message text, not the model
roryabraham Aug 12, 2026
05c1b65
fix(proposalPolice): apply the duplicate similarity threshold in JS
roryabraham Aug 12, 2026
4370193
Rebuild gh actions
roryabraham Aug 12, 2026
276ad6c
fix(proposalPolice): skip the edit check when the body didn't change
roryabraham Aug 12, 2026
d306c1b
fix(proposalPolice): pin the similarity scale in the response schema
roryabraham Aug 12, 2026
ceae443
refactor: capitalize the ID acronym in duplicateCommentID
roryabraham Aug 12, 2026
1c77b45
Rebuild gh actions
roryabraham Aug 12, 2026
95cdde5
fix(proposalPolice): only edit-check comments that are proposals
roryabraham Aug 12, 2026
577b139
fix(proposalPolice): refresh the recorded proposal after a substantia…
roryabraham Aug 12, 2026
2ac29f1
fix(proposalPolice): verify the duplicate target before withdrawing
roryabraham Aug 12, 2026
a2fa73c
Add queue: max to allow multiple pending proposalPolice evaluations
roryabraham Aug 12, 2026
ff2673d
Merge branch 'main' into Rory-ProposalPoliceResponsesConversations
roryabraham Aug 12, 2026
d4232b5
fix(proposalPolice): refresh bannered proposals on later edits too
roryabraham Aug 12, 2026
1714d89
fix(proposalPolice): record proposals that only exist after an edit
roryabraham Aug 12, 2026
3f4f780
Merge branch 'main' into Rory-ProposalPoliceResponsesConversations
roryabraham Aug 12, 2026
b04b75c
Fix errant extra line in generated diff
roryabraham Aug 12, 2026
21cb765
Revert duplicate similarity threshold to 90
roryabraham Aug 14, 2026
59e4b1d
Restore duplicate scoring anchors and tie-break to the earliest proposal
roryabraham Aug 14, 2026
cbe6a11
Never withdraw a proposal as a duplicate of the same author's
roryabraham Aug 14, 2026
13dddf6
Classify comments that don't follow the proposal template
roryabraham Aug 14, 2026
9f158d9
Rename two tests that referenced the removed template check
roryabraham Aug 14, 2026
5e71bd0
Add offline evals for the three ProposalPolice model calls
roryabraham Aug 14, 2026
1d344e5
Fix spellcheck, and redact names the anonymizer missed
roryabraham Aug 14, 2026
5b7cc15
Rebuild gh actions
roryabraham Aug 14, 2026
d504199
Address review round 2
roryabraham Aug 18, 2026
39b1105
Merge remote-tracking branch 'origin/main' into Rory-ProposalPoliceRe…
roryabraham Aug 18, 2026
4461eac
Move the ProposalPolice suites to tests/tooling under bun:test
roryabraham Aug 18, 2026
3658303
Move the messages suite across too, and cover the spam copy
roryabraham Aug 18, 2026
8743bc5
Rebuild the action bundles against expensify-common 2.0.198
roryabraham Aug 18, 2026
b6b3f60
Type the bun:test mocks so type-aware lint rules can read them
roryabraham Aug 18, 2026
6c2c509
Merge remote-tracking branch 'origin/main' into Rory-ProposalPoliceRe…
roryabraham Aug 19, 2026
1821bda
Record main's latent lint violations in the seatbelt baseline
roryabraham Aug 19, 2026
d2da68a
Merge remote-tracking branch 'origin/main' into Rory-ProposalPoliceRe…
roryabraham Aug 19, 2026
8ab7ec5
Drop the seatbelt entries now that main carries the real fix
roryabraham Aug 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 22 additions & 9 deletions .github/actions/javascript/authorChecklist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15585,13 +15585,6 @@ const CONST = {
STATE: {
OPEN: 'open',
},
COMMENT: {
TYPE_BOT: 'Bot',
NAME_MELVIN_BOT: 'melvin-bot[bot]',
NAME_MELVIN_USER: 'MelvinBot',
NAME_CODEX: 'chatgpt-codex-connector',
NAME_GITHUB_ACTIONS: 'github-actions',
},
ACTIONS: {
CREATED: 'created',
EDITED: 'edited',
Expand Down Expand Up @@ -15627,8 +15620,14 @@ const CONST = {
MOBILE_EXPENSIFY_URL: `https://github.com/${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.MOBILE_EXPENSIFY_REPO}`,
NO_ACTION: 'NO_ACTION',
ACTION_EDIT: 'ACTION_EDIT',
ACTION_REQUIRED: 'ACTION_REQUIRED',
ACTION_HIDE_DUPLICATE: 'ACTION_HIDE_DUPLICATE',
/**
* What a comment on a Help Wanted issue is trying to do, for comments that don't follow the proposal template.
*/
INTENT: {
NOT_AN_ATTEMPT: 'NOT_AN_ATTEMPT',
GENUINE_ATTEMPT: 'GENUINE_ATTEMPT',
SPAM: 'SPAM',
},
};
exports["default"] = CONST;

Expand Down Expand Up @@ -15851,6 +15850,20 @@ class GithubUtils {
body: messageBody,
});
}
/**
* Collapse a comment as spam. Only exposed over GraphQL, and unlike rewriting the body it leaves the
* original text intact and can be undone from the UI.
*/
static minimizeCommentAsSpam(commentNodeID) {
console.log(`Minimizing comment ${commentNodeID} as spam`);
return this.graphql(`mutation($subjectId: ID!) {
minimizeComment(input: {subjectId: $subjectId, classifier: SPAM}) {
minimizedComment {
isMinimized
}
}
}`, { subjectId: commentNodeID });
}
/**
* Get the most recent workflow run for the given New Expensify workflow.
*/
Expand Down
31 changes: 22 additions & 9 deletions .github/actions/javascript/awaitStagingDeploys/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12366,13 +12366,6 @@ const CONST = {
STATE: {
OPEN: 'open',
},
COMMENT: {
TYPE_BOT: 'Bot',
NAME_MELVIN_BOT: 'melvin-bot[bot]',
NAME_MELVIN_USER: 'MelvinBot',
NAME_CODEX: 'chatgpt-codex-connector',
NAME_GITHUB_ACTIONS: 'github-actions',
},
ACTIONS: {
CREATED: 'created',
EDITED: 'edited',
Expand Down Expand Up @@ -12408,8 +12401,14 @@ const CONST = {
MOBILE_EXPENSIFY_URL: `https://github.com/${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.MOBILE_EXPENSIFY_REPO}`,
NO_ACTION: 'NO_ACTION',
ACTION_EDIT: 'ACTION_EDIT',
ACTION_REQUIRED: 'ACTION_REQUIRED',
ACTION_HIDE_DUPLICATE: 'ACTION_HIDE_DUPLICATE',
/**
* What a comment on a Help Wanted issue is trying to do, for comments that don't follow the proposal template.
*/
INTENT: {
NOT_AN_ATTEMPT: 'NOT_AN_ATTEMPT',
GENUINE_ATTEMPT: 'GENUINE_ATTEMPT',
SPAM: 'SPAM',
},
};
exports["default"] = CONST;

Expand Down Expand Up @@ -12632,6 +12631,20 @@ class GithubUtils {
body: messageBody,
});
}
/**
* Collapse a comment as spam. Only exposed over GraphQL, and unlike rewriting the body it leaves the
* original text intact and can be undone from the UI.
*/
static minimizeCommentAsSpam(commentNodeID) {
console.log(`Minimizing comment ${commentNodeID} as spam`);
return this.graphql(`mutation($subjectId: ID!) {
minimizeComment(input: {subjectId: $subjectId, classifier: SPAM}) {
minimizedComment {
isMinimized
}
}
}`, { subjectId: commentNodeID });
}
/**
* Get the most recent workflow run for the given New Expensify workflow.
*/
Expand Down
31 changes: 22 additions & 9 deletions .github/actions/javascript/checkAndroidStatus/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -833842,13 +833842,6 @@ const CONST = {
STATE: {
OPEN: 'open',
},
COMMENT: {
TYPE_BOT: 'Bot',
NAME_MELVIN_BOT: 'melvin-bot[bot]',
NAME_MELVIN_USER: 'MelvinBot',
NAME_CODEX: 'chatgpt-codex-connector',
NAME_GITHUB_ACTIONS: 'github-actions',
},
ACTIONS: {
CREATED: 'created',
EDITED: 'edited',
Expand Down Expand Up @@ -833884,8 +833877,14 @@ const CONST = {
MOBILE_EXPENSIFY_URL: `https://github.com/${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.MOBILE_EXPENSIFY_REPO}`,
NO_ACTION: 'NO_ACTION',
ACTION_EDIT: 'ACTION_EDIT',
ACTION_REQUIRED: 'ACTION_REQUIRED',
ACTION_HIDE_DUPLICATE: 'ACTION_HIDE_DUPLICATE',
/**
* What a comment on a Help Wanted issue is trying to do, for comments that don't follow the proposal template.
*/
INTENT: {
NOT_AN_ATTEMPT: 'NOT_AN_ATTEMPT',
GENUINE_ATTEMPT: 'GENUINE_ATTEMPT',
SPAM: 'SPAM',
},
};
exports["default"] = CONST;

Expand Down Expand Up @@ -834108,6 +834107,20 @@ class GithubUtils {
body: messageBody,
});
}
/**
* Collapse a comment as spam. Only exposed over GraphQL, and unlike rewriting the body it leaves the
* original text intact and can be undone from the UI.
*/
static minimizeCommentAsSpam(commentNodeID) {
console.log(`Minimizing comment ${commentNodeID} as spam`);
return this.graphql(`mutation($subjectId: ID!) {
minimizeComment(input: {subjectId: $subjectId, classifier: SPAM}) {
minimizedComment {
isMinimized
}
}
}`, { subjectId: commentNodeID });
}
/**
* Get the most recent workflow run for the given New Expensify workflow.
*/
Expand Down
31 changes: 22 additions & 9 deletions .github/actions/javascript/checkDeployBlockers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11633,13 +11633,6 @@ const CONST = {
STATE: {
OPEN: 'open',
},
COMMENT: {
TYPE_BOT: 'Bot',
NAME_MELVIN_BOT: 'melvin-bot[bot]',
NAME_MELVIN_USER: 'MelvinBot',
NAME_CODEX: 'chatgpt-codex-connector',
NAME_GITHUB_ACTIONS: 'github-actions',
},
ACTIONS: {
CREATED: 'created',
EDITED: 'edited',
Expand Down Expand Up @@ -11675,8 +11668,14 @@ const CONST = {
MOBILE_EXPENSIFY_URL: `https://github.com/${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.MOBILE_EXPENSIFY_REPO}`,
NO_ACTION: 'NO_ACTION',
ACTION_EDIT: 'ACTION_EDIT',
ACTION_REQUIRED: 'ACTION_REQUIRED',
ACTION_HIDE_DUPLICATE: 'ACTION_HIDE_DUPLICATE',
/**
* What a comment on a Help Wanted issue is trying to do, for comments that don't follow the proposal template.
*/
INTENT: {
NOT_AN_ATTEMPT: 'NOT_AN_ATTEMPT',
GENUINE_ATTEMPT: 'GENUINE_ATTEMPT',
SPAM: 'SPAM',
},
};
exports["default"] = CONST;

Expand Down Expand Up @@ -11899,6 +11898,20 @@ class GithubUtils {
body: messageBody,
});
}
/**
* Collapse a comment as spam. Only exposed over GraphQL, and unlike rewriting the body it leaves the
* original text intact and can be undone from the UI.
*/
static minimizeCommentAsSpam(commentNodeID) {
console.log(`Minimizing comment ${commentNodeID} as spam`);
return this.graphql(`mutation($subjectId: ID!) {
minimizeComment(input: {subjectId: $subjectId, classifier: SPAM}) {
minimizedComment {
isMinimized
}
}
}`, { subjectId: commentNodeID });
}
/**
* Get the most recent workflow run for the given New Expensify workflow.
*/
Expand Down
31 changes: 22 additions & 9 deletions .github/actions/javascript/checkSVGCompression/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20409,13 +20409,6 @@ const CONST = {
STATE: {
OPEN: 'open',
},
COMMENT: {
TYPE_BOT: 'Bot',
NAME_MELVIN_BOT: 'melvin-bot[bot]',
NAME_MELVIN_USER: 'MelvinBot',
NAME_CODEX: 'chatgpt-codex-connector',
NAME_GITHUB_ACTIONS: 'github-actions',
},
ACTIONS: {
CREATED: 'created',
EDITED: 'edited',
Expand Down Expand Up @@ -20451,8 +20444,14 @@ const CONST = {
MOBILE_EXPENSIFY_URL: `https://github.com/${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.MOBILE_EXPENSIFY_REPO}`,
NO_ACTION: 'NO_ACTION',
ACTION_EDIT: 'ACTION_EDIT',
ACTION_REQUIRED: 'ACTION_REQUIRED',
ACTION_HIDE_DUPLICATE: 'ACTION_HIDE_DUPLICATE',
/**
* What a comment on a Help Wanted issue is trying to do, for comments that don't follow the proposal template.
*/
INTENT: {
NOT_AN_ATTEMPT: 'NOT_AN_ATTEMPT',
GENUINE_ATTEMPT: 'GENUINE_ATTEMPT',
SPAM: 'SPAM',
},
};
exports["default"] = CONST;

Expand Down Expand Up @@ -20675,6 +20674,20 @@ class GithubUtils {
body: messageBody,
});
}
/**
* Collapse a comment as spam. Only exposed over GraphQL, and unlike rewriting the body it leaves the
* original text intact and can be undone from the UI.
*/
static minimizeCommentAsSpam(commentNodeID) {
console.log(`Minimizing comment ${commentNodeID} as spam`);
return this.graphql(`mutation($subjectId: ID!) {
minimizeComment(input: {subjectId: $subjectId, classifier: SPAM}) {
minimizedComment {
isMinimized
}
}
}`, { subjectId: commentNodeID });
}
/**
* Get the most recent workflow run for the given New Expensify workflow.
*/
Expand Down
31 changes: 22 additions & 9 deletions .github/actions/javascript/formatCodeCovComment/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11820,13 +11820,6 @@ const CONST = {
STATE: {
OPEN: 'open',
},
COMMENT: {
TYPE_BOT: 'Bot',
NAME_MELVIN_BOT: 'melvin-bot[bot]',
NAME_MELVIN_USER: 'MelvinBot',
NAME_CODEX: 'chatgpt-codex-connector',
NAME_GITHUB_ACTIONS: 'github-actions',
},
ACTIONS: {
CREATED: 'created',
EDITED: 'edited',
Expand Down Expand Up @@ -11862,8 +11855,14 @@ const CONST = {
MOBILE_EXPENSIFY_URL: `https://github.com/${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.MOBILE_EXPENSIFY_REPO}`,
NO_ACTION: 'NO_ACTION',
ACTION_EDIT: 'ACTION_EDIT',
ACTION_REQUIRED: 'ACTION_REQUIRED',
ACTION_HIDE_DUPLICATE: 'ACTION_HIDE_DUPLICATE',
/**
* What a comment on a Help Wanted issue is trying to do, for comments that don't follow the proposal template.
*/
INTENT: {
NOT_AN_ATTEMPT: 'NOT_AN_ATTEMPT',
GENUINE_ATTEMPT: 'GENUINE_ATTEMPT',
SPAM: 'SPAM',
},
};
exports["default"] = CONST;

Expand Down Expand Up @@ -12086,6 +12085,20 @@ class GithubUtils {
body: messageBody,
});
}
/**
* Collapse a comment as spam. Only exposed over GraphQL, and unlike rewriting the body it leaves the
* original text intact and can be undone from the UI.
*/
static minimizeCommentAsSpam(commentNodeID) {
console.log(`Minimizing comment ${commentNodeID} as spam`);
return this.graphql(`mutation($subjectId: ID!) {
minimizeComment(input: {subjectId: $subjectId, classifier: SPAM}) {
minimizedComment {
isMinimized
}
}
}`, { subjectId: commentNodeID });
}
/**
* Get the most recent workflow run for the given New Expensify workflow.
*/
Expand Down
31 changes: 22 additions & 9 deletions .github/actions/javascript/getArtifactInfo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11594,13 +11594,6 @@ const CONST = {
STATE: {
OPEN: 'open',
},
COMMENT: {
TYPE_BOT: 'Bot',
NAME_MELVIN_BOT: 'melvin-bot[bot]',
NAME_MELVIN_USER: 'MelvinBot',
NAME_CODEX: 'chatgpt-codex-connector',
NAME_GITHUB_ACTIONS: 'github-actions',
},
ACTIONS: {
CREATED: 'created',
EDITED: 'edited',
Expand Down Expand Up @@ -11636,8 +11629,14 @@ const CONST = {
MOBILE_EXPENSIFY_URL: `https://github.com/${GIT_CONST.GITHUB_OWNER}/${GIT_CONST.MOBILE_EXPENSIFY_REPO}`,
NO_ACTION: 'NO_ACTION',
ACTION_EDIT: 'ACTION_EDIT',
ACTION_REQUIRED: 'ACTION_REQUIRED',
ACTION_HIDE_DUPLICATE: 'ACTION_HIDE_DUPLICATE',
/**
* What a comment on a Help Wanted issue is trying to do, for comments that don't follow the proposal template.
*/
INTENT: {
NOT_AN_ATTEMPT: 'NOT_AN_ATTEMPT',
GENUINE_ATTEMPT: 'GENUINE_ATTEMPT',
SPAM: 'SPAM',
},
};
exports["default"] = CONST;

Expand Down Expand Up @@ -11860,6 +11859,20 @@ class GithubUtils {
body: messageBody,
});
}
/**
* Collapse a comment as spam. Only exposed over GraphQL, and unlike rewriting the body it leaves the
* original text intact and can be undone from the UI.
*/
static minimizeCommentAsSpam(commentNodeID) {
console.log(`Minimizing comment ${commentNodeID} as spam`);
return this.graphql(`mutation($subjectId: ID!) {
minimizeComment(input: {subjectId: $subjectId, classifier: SPAM}) {
minimizedComment {
isMinimized
}
}
}`, { subjectId: commentNodeID });
}
/**
* Get the most recent workflow run for the given New Expensify workflow.
*/
Expand Down
Loading
Loading