GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@dezren39 dezren39 commented Nov 7, 2026 •
edited by blacksmith-sh Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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
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
All reactions
  • 👍 1 reaction
developing-today[bot]
fix(bws-freshness): deterministic drift-issue identity for the commen…
b063362
…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.
@dezren39
dezren39 requested a review from a team as a code owner November 7, 2026 02:34
@coderabbitai

coderabbitai Bot commented Nov 7, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

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

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 7, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Nov 7, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

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.

All reactions
Comment thread .github/workflows/bws-freshness.yml
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

@chatgpt-codex-connector chatgpt-codex-connector Bot Nov 7, 2026

Copy link
Copy Markdown

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.

P2 Badge 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.

All reactions

@dezren39 dezren39 Nov 7, 2026

Copy link
Copy Markdown
Member Author

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.

All reactions
developing-today[bot]
ci(bws-freshness): cover the drift-issue finder files in the PR path …
36ebb80
…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.
@dezren39 dezren39 mentioned this pull request Nov 7, 2026
bws-freshness: drift-issue lookup is title-search only — the fresh path can close, and the drift path can comment on, an unrelated issue #6644
Closed
5 tasks
@dezren39

dezren39 commented Nov 7, 2026

Copy link
Copy Markdown
Member Author

@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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 7, 2026

Copy link
Copy Markdown

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".

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 merged commit 6ba1efd into main Nov 7, 2026
3 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@dezren39
dezren39 deleted the queue/fb-6644-bws-drift-identity branch November 7, 2026 02:43
@dezren39 dezren39 mentioned this pull request Nov 8, 2026
bws.yaml mirror freshness check: periodic bws-to-sops dry-run diff #5451
Open
This was referenced Nov 21, 2026
Closure audit: every closed issue/PR verified; unmerged branches + unpushed worktrees inventoried #7079
Open
docs(bws-freshness): record the runner decision and verified enablement blocker (#5451) #14341
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

bws-freshness: drift-issue lookup is title-search only — the fresh path can close, and the drift path can comment on, an unrelated issue

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@dezren39
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.