GeezerVison is showing github.com — fix(bws-freshness): deterministic drift-issue identity for the comment/close paths (#6644) by dezren39 · Pull Request #6694 · developing-today/code
Conversation
dezren39
commented
Nov 7, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Fixes #6644.
Problem
Both live-check lookups in .github/workflows/bws-freshness.yml found "the" open drift issue by title search alone and took .[0] — no exact-title, author, label, or body-marker check. GitHub in:title search is a word match ordered by relevance, so the drift path could comment the drift report onto an unrelated issue, and the fresh path could close one, claiming the mirror was up to date. The created drift issue carried no identity signal at all (only the generic priority/normal label).
Change
- Identity at creation: the drift issue is now created with the dedicated
bws-drift label (created in the repo with this fix) and a hidden body marker <!-- bws-freshness-drift-issue v1 --> as the first body line.
- Deterministic lookup: new
lib/bws-freshness-drift-issue.sh resolves the open drift issue for both paths: candidates from the same title search, filtered client-side to exact title equality + body marker present, oldest verified candidate wins; no verified candidate → empty output → both steps are no-ops (the drift step then creates a fresh, properly stamped issue). Search rank never decides.
- Tests: new
lib/bws-freshness-drift-issue.test.sh (stubbed gh, canned issue lists) covers: unrelated same-words title sorting first is ignored; an exact-title human issue without the marker is ignored; no candidates → empty; only-unrelated → empty; two verified → oldest wins. The fixture-tests job (PR-tier since bws-freshness: fixture tests run only on schedule/dispatch — no pull_request trigger, so a --check contract regression merges unseen #6646) runs this suite next to the --check fixtures.
Note: live-check is still disabled pending the #5451 runner decision, so no live drift issue exists yet that would need the marker backfilled — the first enabled run creates its episode issue with the new identity.
Verification (laptop, this run)
bash lib/bws-freshness-drift-issue.test.sh — all 5 cases pass.
bash lib/bws-to-sops-check.test.sh — all cases pass (unchanged suite).
- Workflow YAML parses (
yq); this PR touches the workflow file, so the basic: bws freshness fixture tests check fires here and runs both suites.
Filed from the Lane Y queue-worker shift in fallback mode (queue backend down, HTTP 503 PGRST002) — issue #6644 was the fallback claim.
![Autofix with [code]smith](/api/image?u=https%3A%2F%2Fcamo.githubusercontent.com%2F33b6f70f3541c4e93f4503d29cbfec051fa1b040d8e0ae9313a51c4ece44a627%2F68747470733a2f2f70722d636f6d6d656e74732d6173736574732e626c61636b736d6974682e73682f636f6465736d6974682f6175746f6669782d776974682d636f6465736d6974682d6461726b2d33782e706e67)
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
chatgpt-codex-connector[bot] reacted with thumbs up emoji
…t/close paths (#6644)
Both live-check lookups took the first title-search hit (.[0]) with no identity check, so the fresh path could close an unrelated human issue and the drift path could comment the drift report onto one. The workflow now stamps its drift issue at creation with the dedicated bws-drift label and a hidden body marker, and both paths resolve the issue through lib/bws-freshness-drift-issue.sh: exact title + body marker over the candidate list, oldest verified candidate wins, no verified candidate = no-op. Stubbed-gh tests cover an unrelated same-words title sorting first, an exact-title human issue without the marker, no candidates, and duplicate verified issues; the fixture-tests job runs them alongside the --check suite.
coderabbitai
Bot
commented
Nov 7, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Warning
Review limit reached
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
Next included review available in 2 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
de6dc94f-7afc-48e4-b3ac-e871b533b9b8
Commits
-
Reviewing files that changed from the base of the PR and between f76f83f and 36ebb80.
Files selected for processing: 3
-
.github/workflows/bws-freshness.yml
lib/bws-freshness-drift-issue.sh
lib/bws-freshness-drift-issue.test.sh
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
✅ Completed 2026-11-07T02:41:26.615348Z |
36ebb80 |
Manual request |
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b06336280b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Comment on lines
+57
to
+58
|
|
- name: Run the drift-issue finder tests (stubbed gh, no credentials)
|
|
|
run: bash lib/bws-freshness-drift-issue.test.sh
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Include the new helper and test in the PR path filter
For a subsequent PR that changes only lib/bws-freshness-drift-issue.sh or its new test, this fixture job will not run: .github/workflows/bws-freshness.yml:35–39 still lists only the original mirror script, its tests, and the workflow itself. Searching the workflows found no other invocation of the new suite, so regressions to the comment/close identity logic can merge without its tests executing until the scheduled run. Add both new files to pull_request.paths so their changes trigger this basic-tier check. This is the trigger coverage gap that root AGENTS.md explicitly asks reviewers to report.
AGENTS.md reference: AGENTS.md:L34-L34
Useful? React with 👍 / 👎.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 36ebb80: both lib/bws-freshness-drift-issue.sh and lib/bws-freshness-drift-issue.test.sh are now in the workflow's pull_request.paths, so changes to the finder or its tests trigger the basic: bws freshness fixture tests check. Good catch — the filter predated the new files (it was added for #6646 in PR #6689).
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…filter (#6644)
Codex review finding on PR #6694: a PR changing only lib/bws-freshness-drift-issue.sh or its test would not trigger the fixture job, since the #6646 path filter predated both files. Add them so the identity logic tests run on their own changes.
|
@codex review — new head 36ebb80 fixes the P2 path-filter finding from the previous round (both finder files added to pull_request.paths); please re-review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Codex Review: Didn't find any major issues. More of your lovely PRs please.
Reviewed commit: 36ebb803f5
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 21, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
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.
|