Skip to content

chore: address nits from PR #261 review#267

Merged
joeharris76 merged 3 commits intodevelopfrom
chore/pr261-review-nits-2026-05-07
May 8, 2026
Merged

chore: address nits from PR #261 review#267
joeharris76 merged 3 commits intodevelopfrom
chore/pr261-review-nits-2026-05-07

Conversation

@joeharris76
Copy link
Copy Markdown
Owner

Summary

Two nit fixes surfaced while reviewing #261; both touch code added by that PR, so this branch stacks on chore/pr-review-followups-2026-05-07.

  • tests/uat/matrix.py — drop the :142-161 line-range from the get_platform_port comment citation. Line numbers drift as local_stress_test.sh evolves; the function name alone is a stable reference.
  • results-explorer/src/components/Tabs.tsx — set tabRefs.current.length = items.length so stale entries from prior renders don't linger when the items array shrinks. Read-only impact today (refs are accessed by index), but keeps invariants tight.

Stacking note

Until #261 merges, this PR will show all of #261's commits plus one cleanup commit on top. Once #261 lands on develop, GitHub auto-rebases this PR to the single cleanup commit. Suggested merge order: #261 → this PR.

Test plan

  • npm test -- --run primitives.test — 21/21 pass (Tabs.tsx ref-length-trim is safe)
  • uv run -- python -m pytest tests/uat/test_preflight.py -n 0 -q — 6/6 pass
  • uv run -- ruff check tests/uat/matrix.py — clean
  • npx tsc --noEmit (results-explorer/) — clean
  • Pre-push hooks: timing policy + pr-preflight fast tests passed

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a 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: efb74bc7e5

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

Comment on lines +104 to +105
if after.endswith("/") or Path(after).suffix == "":
return after.rstrip("/") + "/"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve file semantics for extensionless scope entries

_scope_path_to_skill_pattern now treats any skills/... path with no suffix as a directory and appends /, which misclassifies valid file paths like .claude/skills/code/README as code/README/. In --check mode this creates false out-of-scope failures because _is_allowed will only match descendants, not the file itself. The regression appears whenever a TODO scope lists an extensionless file path, so the audit can block otherwise-correct skill-sync.lock updates.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

    Follow-up sweep actioned this PR review comment.

    Disposition: fixed
    Branch: `chore/pr-review-followups-since-2026-05-05`

    Summary:
    Disposition: fixed

Evidence: Current _project/scripts/skill_sync_lock_audit.py still had the flagged behavior. I changed it to derive directory prefixes from lock metadata, and added regression coverage in test_skill_sync_lock_audit.py for .claude/skills/code/README as an exact extensionless file.

Verification: uv run -- python -m pytest tests/unit/scripts/test_skill_sync_lock_audit.py -q; uv run -- ruff check _project/scripts/skill_sync_lock_audit.py tests/unit/scripts/test_skill_sync_lock_audit.py

    Future sweeps skip comments that already have this marker reply.

@joeharris76 joeharris76 force-pushed the chore/pr261-review-nits-2026-05-07 branch from efb74bc to 36babef Compare May 7, 2026 23:30
@joeharris76 joeharris76 enabled auto-merge (squash) May 7, 2026 23:31
- tests/uat/matrix.py: drop line-range from `local_stress_test.sh`
  citation so the comment doesn't drift as that script evolves.
- results-explorer/src/components/Tabs.tsx: trim `tabRefs.current`
  to the current items length so stale refs from prior renders
  don't linger when items shrinks.
Develop renamed static_regressions to static_matrix_drift in #265 and
added an equivalent test for the new-rows-missing case. Drop the stale
duplicate test that referenced the old name.
@joeharris76 joeharris76 force-pushed the chore/pr261-review-nits-2026-05-07 branch from 36babef to 6aa1e2c Compare May 8, 2026 00:40
@joeharris76 joeharris76 merged commit c9ceea4 into develop May 8, 2026
5 checks passed
@joeharris76 joeharris76 deleted the chore/pr261-review-nits-2026-05-07 branch May 8, 2026 00:51
joeharris76 added a commit that referenced this pull request May 8, 2026
* fix(pr-followup): PR #245 comment 3201562602 — **<sub><sub>![P2 Badge](https://img.shields.io/badge…

Disposition: fixed
Source: #245 (comment)
Path: tests/uat/_cli.py

* fix(pr-followup): PR #245 comment 3201562610 — **<sub><sub>![P1 Badge](https://img.shields.io/badge…

Disposition: fixed
Source: #245 (comment)
Path: tests/uat/phases/preflight.py

* fix(pr-followup): PR #246 comment 3202118174 — **<sub><sub>![P2 Badge](https://img.shields.io/badge…

Disposition: fixed
Source: #246 (comment)
Path: _project/audits/screenshots/results-explorer-hierarchy-usability-data-audit-20260507/screenshot-manifest.json

* fix(pr-followup): PR #255 comment 3202201883 — **<sub><sub>![P2 Badge](https://img.shields.io/badge…

Disposition: fixed
Source: #255 (comment)
Path: tests/uat/phases/explorer_smoke.py

* fix(pr-followup): PR #256 comment 3202212814 — **<sub><sub>![P2 Badge](https://img.shields.io/badge…

Disposition: fixed
Source: #256 (comment)
Path: results-explorer/src/pages/BenchmarkIndex.tsx

* fix(pr-followup): PR #266 comment 3204995419 — **<sub><sub>![P1 Badge](https://img.shields.io/badge…

Disposition: fixed
Source: #266 (comment)
Path: results-explorer/src/lib/facetDisplay.ts

* fix(pr-followup): PR #267 comment 3205001733 — **<sub><sub>![P2 Badge](https://img.shields.io/badge…

Disposition: fixed
Source: #267 (comment)
Path: _project/scripts/skill_sync_lock_audit.py

---------

Co-authored-by: Joe Harris <57046+joeharris76@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant