Detail bug report: View on Detail
globMatch in packages/sdk/src/glob.ts used a literal space (" ") as the temporary placeholder for ** while building its regex. The final .replaceAll(" ", ".*") then converted every literal space in a user-configured pattern into the wildcard .*, which also spans /. A maintainer pattern like docs/My Folder/** compiled to ^docs/My.*Folder/.*$, matching unrelated paths such as docs/MyXFolder/secret.yml — blocking legitimate change requests that never touched the honey pot and reporting wrong touched evidence.
The over-match was strictly fail-closed: a genuine honeypot touch was never missed (the wildcard is a superset of the literal space), but it caused false blocks on unrelated PRs.
This was a regression introduced in 2459c9d0 when the matcher moved into the SDK; the original honeypot matcher used a raw NUL byte as the placeholder, which cannot collide with user input.
Closes #170
Swapped the ** sentinel from a literal space to a NUL byte (\u0000), which cannot appear in user-supplied config strings or paths. The transform chain is now ** → \u0000 → .*, so literal spaces in patterns stay literal. This restores the original pre-regression design.
packages/sdk/src/glob.ts — the fix (one-line sentinel change)packages/sdk/src/glob.test.ts — new test file covering the space regression, **/* semantics, regex escaping, anchoring, and honeypot real-world patternspackages/core/src/rules/honeypot.test.ts — two tests verifying the honeypot rule's verdict and touched evidence with space-containing patterns through the real evaluate pathRestored the NUL byte rather than splitting on ** and joining with .*: the NUL approach is the proven, collision-free design the original implementation used, and the diff is minimal.
globMatch("docs/My Folder/**", "docs/MyXFolder/secret.yml") returned true before the fix, false after.glob.test.ts and 2 new tests in honeypot.test.ts — all pass.bun test (3923 tests across 328 files), bun run typecheck (all 15 packages), bun run check (Biome, 1297 files), and bun run check:boundaries all pass.scripts/e2e/harness.ts) could not be run: it drives real GitHub pull requests via the gh CLI, and the available token is invalid (HTTP 401) with no valid GitHub App credentials in the environment to mint a fresh one. The in-process honeypot rule tests verify the same guarantees — verdict correctness and touched evidence for space-containing patterns — through the real rule engine without requiring a live GitHub connection.Automatic Fixes PRs can be configured here.
The latest updates on your projects. Learn more about Unkey Deploy
| Name | Status | Preview | Inspect | Updated (UTC) |
|---|---|---|---|---|
| tripwire / web (preview) | Ready | Visit Preview | Inspect | Nov 7, 2026 6:54am |
@detail-app[bot], Tripwire blocked this change request.
Rate limit: You opened 57 change requests in a short time. Wait before you open another.
A new commit will not fix this.
If you think it should merge anyway, say so in a comment. A maintainer will decide.
Capy couldn't review this pull request because grim's workspace is out of credits, add credits or enable auto-reload to resume automatic reviews.
Re: github.com/Boring-Software-Inc/…/183 — Tripwire blocked this PR on a rate limit (57 change requests opened in a short time), not a code issue. Tripwire states a new commit will not fix it and that a maintainer must decide whether to override. No PR-side change can resolve this, so I'm not pushing.
Sign in to comment.