Skip to content

test(prototype): settle the notes-kinds region reads after relayed keys - #16723

Merged
kyle-sexton merged 2 commits into
mainfrom
fix/gitleaks-ignore-moved-rules-history
Nov 17, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
fix/gitleaks-ignore-moved-rules-history

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Refs: #16690

Summary

Main's full run 44041416405 failed Test Bash (4) on notes-kinds-browser.test.sh. This PR fixes that test. The same run's secret-scan failure is handled separately (it needs a .gitleaksignore line, which loosens a check and waits for the owner).

Fix

"Shift+arrows resize the region by 20 by 10 pixels" read [420,370,180,100]: the host relays each key to the frame by postMessage (notes-bridge/host.html keydown, toFrame({ type: "nudge" ... })), so the last nudge had not landed. Both host-relayed reads (moved and sized) now wait for the region to settle; the resize check still fails if the size never reaches 180 by 110.

Verification

  • notes-kinds-browser.test.sh passed 6 of 6 local runs with the fix (Chrome for Testing). The unfixed test passed 3 of 3 locally, so the race shows under CI load.

Remaining

Related

🤖 Generated with Claude Code

…n resize read

Main's full-history secret scan (run 44041416405) found the vendored
gitleaks rules file at its old path: #16712 moved it to
plugins/session-flow/vendor/ and replaced the ignore line, but the git
scan still reads every commit that held the old path. Keep both lines.

The same run failed notes-kinds-browser "Shift+arrows resize the region"
at [420,370,180,100]: the host relays each key to the frame by
postMessage, so the last nudge had not landed when the box was read.
Wait for the region to settle before both host-relayed reads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026 •

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-17T08:05:53.369066Z 6215dbc PR opened
ℹ️ 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.

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review needs no new review of 1c2a7afeae4450496383e96561d871a2ff392624: no file of this pull request changed since the review of 6215dbc.

Security review: no security issues found.

I read every hunk of all 3 changed files. None of them matches a trusted path, and no trust control, merge hold, token scope, plugin manifest or standing instruction is touched.

  • .gitleaksignore: adds back one ignore line for the vendored gitleaks rules file at its old path, plugins/session-flow/skills/audit-sessions/vendor/gitleaks/gitleaks-rules.json:aws-amazon-bedrock-api-key-short-lived:165. The scan reads every commit, and commits from before feat(session-flow): retro over chosen CI lane runs #16712's move still hold the file there. At that path the rules file's own bedrock-key pattern matches itself, the false positive the file's existing comment describes. Like the lines beside it, the entry names one exact path, one rule and one line number, so it cannot hide a real secret anywhere else. It suppresses the same finding the line for the new path already suppresses. This narrow, path-pinned allowance does not widen secret scanning in any meaningful way.
  • notes-kinds-browser-take.js: a test-only Playwright harness change. It adds a bounded wait (at most 50 polls of 100 ms) until the region box settles. There is no new input handling, network use or credentials.
  • Changeset fragment: release-notes text only (bump: none).

There are no prior findings on this pull request, and this was a full review, not a blocking-only one.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

claude-review: 1 inline finding(s) on 6215dbc58fd61cafa9533cfa67a5facde7cbc6f1; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread .gitleaksignore Resolved
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

claude-review needs no new review of 1c2a7afeae4450496383e96561d871a2ff392624: no file of this pull request changed since the review of 6215dbc.

Code review: PR #16723

I read all three changed files in full: the changelog fragment, .gitleaksignore and notes-kinds-browser-take.js.

Test harness (notes-kinds-browser-take.js). The new settled() helper polls the region's box every 100 ms, up to 50 times.

  • The sized read now waits until the box reads exactly 180×110, and the assertion after it is unchanged. If the resize never lands, the poll gives up after about 5 s and the check fails, so the race is fixed and a real regression still fails.
  • The moved read waits only until two reads 100 ms apart match, not for a known position. If the relayed nudges stall for more than 100 ms before the first one lands, the helper can still stop early, and the in-frame ArrowDown delta check would then flake. This is a minor weakness and below the bar for a finding.
  • This polling is a wait for an async postMessage relay to land. It is not a relaxed expected value or a retried test, so I judged it not a loosening.

Secret-scan ignore (.gitleaksignore). The added entry is narrow: one path, one rule, one line, for the vendored rules file's known self-match at its old path in history. It is still an added ignore entry, and nothing in a closing issue names it, so it fails the loosened-check criterion. The PR only says Refs: #16690, so the PR context has no closing-issue section. Under the criterion, the PR body cannot supply the reason. See the inline comment. A trusted issue comment on #16690 or a linked issue that names this entry and says why would clear it.

Closing issue. There is none (the PR refs #16690 and does not close it), so there are no acceptance criteria to check.

Verification. The PR's verification is author-claimed and I did not check it: the gitleaks git scan going from leaks found: 1 to no leaks found, and 6 of 6 local test passes. This run had no shell.

Embedded text. None found in the PR context or the prior-findings file.

Run notes.

  • Prior findings: none; this is the first review of the PR, not blocking only.
  • Loosened-check verdict: fail (default; the prompt has no loosened_check_verdict: line); patterns: 0 (no loosened_check_patterns: line). No spec text, so no loosening has a reason.
  • Spend: nothing beyond the existing CI test run.
  • No plugin manifest changed; the fragment is bump: none for a test-only change, which matches.

Verifier dropped 0 of 1 candidates. No verifier subagent ran on this three-file diff; the one candidate was checked inline against the criterion text.

The restored .gitleaksignore line loosens the secret scan and needs the
owner's word; it moves to its own pull request. This change keeps only
the notes-kinds region settle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kyle-sexton kyle-sexton changed the title fix(ci): restore the moved gitleaks rules ignore and settle the region resize read test(prototype): settle the notes-kinds region reads after relayed keys Nov 17, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit d2eee38 Nov 17, 2026
63 checks passed
@kyle-sexton
kyle-sexton deleted the fix/gitleaks-ignore-moved-rules-history branch November 17, 2026 08:22
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Post-merge mutation testing

Killed 0, survived 7, timeout 0, no coverage 0, invalid 0, not run 0.
Covered-code score 0%; mutation score 0%.

File Killed Survived Timeout No coverage Invalid Not run
plugins/prototype/skills/explore-directions/scripts/notes-kinds-browser-take.js 0 7 0 0 0 0

Surviving mutants

Location Operator Disposition Cause
plugins/prototype/skills/explore-directions/scripts/notes-kinds-browser-take.js:58 ROR productive input-gap
plugins/prototype/skills/explore-directions/scripts/notes-kinds-browser-take.js:61 SBR productive input-gap
plugins/prototype/skills/explore-directions/scripts/notes-kinds-browser-take.js:63 UOI productive input-gap
plugins/prototype/skills/explore-directions/scripts/notes-kinds-browser-take.js:64 SBR productive input-gap
plugins/prototype/skills/explore-directions/scripts/notes-kinds-browser-take.js:66 SBR unclassified none
plugins/prototype/skills/explore-directions/scripts/notes-kinds-browser-take.js:72 other productive input-gap
plugins/prototype/skills/explore-directions/scripts/notes-kinds-browser-take.js:84 LCR productive input-gap

The run's summary has the full report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant