Skip to content

fix(sign): detectSelfMint false-positive — redirect token after 'sidecar sign' misread as mint key - #433

Merged
dancinlife merged 1 commit into
mainfrom
fix/sign-selfmint-fp
Jul 24, 2026
Merged

dancinlife merged 1 commit into
mainfrom
fix/sign-selfmint-fp

Conversation

@dancinlife

Copy link
Copy Markdown
Contributor

A shell redirect token after sidecar sign was read as a mint key, so a routine
sidecar sign 2>/dev/null / sidecar sign >out (bare list + redirect) was wrongly
BLOCKED as SIGN-SELF-MINT (caught live on a sidecar sign 2>&1 diagnostic). Root:
segments() splits on unquoted &, so 2>&1 left rest[1]=2>, and any rest[1] not in
the read-verb allowlist was treated as a mint key. Fix: a mint key must match
/^[A-Za-z][\w-]*/ (a real word like rent/commons) — redirects/operators/empty fall
through to ALLOW (bare list). Real mints (sidecar sign rent, sudo sidecar sign rent)
still block; sidecar sign check rent 2>&1 still allows (rest[1]=check). Follow-up to #432.

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com

…car sign' misread as mint key

A shell redirect token after `sidecar sign` was read as a mint key, so a routine
`sidecar sign 2>/dev/null` / `sidecar sign >out` (bare list + redirect) was wrongly
BLOCKED as SIGN-SELF-MINT (caught live on a `sidecar sign 2>&1` diagnostic). Root:
segments() splits on unquoted `&`, so `2>&1` left rest[1]=`2>`, and any rest[1] not in
the read-verb allowlist was treated as a mint key. Fix: a mint key must match
/^[A-Za-z][\w-]*/ (a real word like rent/commons) — redirects/operators/empty fall
through to ALLOW (bare list). Real mints (`sidecar sign rent`, `sudo sidecar sign rent`)
still block; `sidecar sign check rent 2>&1` still allows (rest[1]=check). Follow-up to #432.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@dancinlife
dancinlife merged commit 06e27e6 into main Jul 24, 2026
@dancinlife
dancinlife deleted the fix/sign-selfmint-fp branch July 24, 2026 08:21
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