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 — id(tags): tag search quote handling degenerates silently — "" matches every tag, name:"" widens to all values, an unterminated quote keeps its stray quote and matches nothing · Issue #2011 · developing-today/code

id(tags): tag search quote handling degenerates silently — "" matches every tag, name:"" widens to all values, an unterminated quote keeps its stray quote and matches nothing #2011

New issue
Copy link
New issue
Copy link
Closed
#4134
Closed
id(tags): tag search quote handling degenerates silently — "" matches every tag, name:"" widens to all values, an unterminated quote keeps its stray quote and matches nothing#2011
#4134
Copy link
Assignees
dezren39
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobtask/triageQueue packet kind: verify, reproduce, and route this item

Description

@dezren39
dezren39
opened on Oct 29, 2026
Issue body actions

Problem

In pkgs/id tag search, the query parser's quote handling degenerates silently on empty and unterminated quoted components — three distinct wrong-result shapes, none of which reports anything to the user:

  • An empty quoted literal matches everything. id tag search '""' parses to Literal("") (parse_single_term, src/tags.rs:1540-1542 via strip_quotes, :1563-1569). search_by_query (src/tags.rs:1321-1337) matches a Literal/BareWord term with field.to_lowercase().contains(&text_lower) on subject/key/value, and "anything".contains("") is true — so the empty literal returns every tag, the same output as no query at all. ANDed with real terms it is a silent no-op instead of a constraint.
  • A quoted empty component is silently dropped from key:value. name:"" parses to KeyOnly("name") and "":high to ValueOnly("high"): parse_single_term (src/tags.rs:1523-1535) branches on key.is_empty() / value.is_empty() after strip_quotes, so it cannot tell "no value was written" (name:) from "the value written was explicitly empty" (name:""). Empty-string tag values are real (a tag set with an empty value is distinct from a bare tag), so name:"" should not widen to every value of name.
  • An unterminated quote is kept as a literal quote character. "abc def parses to BareWord("\"abc def") — the term extractor (src/tags.rs:1497-1513) consumes to end-of-input while in_quotes, and strip_quotes only strips a pair, so the stray " stays in the search text and the search silently matches nothing. key:"unclosed similarly becomes KeyValue("key", "\"unclosed") — a value with a leading quote that no tag has.

Evidence (verified this run, 2026-10-28, main 38f1f00f)

Probe compiled and run on the laptop (~/git/fleet/probe-2026-10-28-laneA-searchquotes/ there; SearchTerm, parse_search_query, parse_single_term, split_on_unquoted_colon and strip_quotes copied verbatim from src/tags.rs:1434-1569, sha256 of the source file e2483c0b…):

"\"\""            => [Literal("")]                    control should be: no match / error, not all tags
"\"hello world\"" => [Literal("hello world")]         control ✓
"\"abc def"       => [BareWord("\"abc def")]          BUG: stray quote kept, silently matches nothing
"name:\"\""       => [KeyOnly("name")]                BUG: explicit empty value dropped → widened to all values
"\"\":high"       => [ValueOnly("high")]              BUG: explicit empty key dropped
"key:\"unclosed"  => [KeyValue("key", "\"unclosed")]  BUG: value carries the stray quote
"\"a\" \"\""      => [Literal("a"), Literal("")]      the empty term is a silent no-op in the AND
"name:foo"        => [KeyValue("name", "foo")]        control ✓

Existing parser tests (src/tags.rs:2425-2580) pin the empty query, bare colon, key: and quoted forms with content, but no test pins "", name:"", or an unterminated quote.

Why it matters

Tag search is the discovery surface for the whole store (CLI id tag search, REPL find/search paths share this parser's terms via search_by_query). A typo'd closing quote — the common case when typing a quoted phrase by hand in the REPL — turns the search into a silent empty result, and an empty quoted phrase turns it into a silent full dump. Both are the silent-reinterpretation class this codebase keeps fixing one parser at a time (#1609 whitespace separators in this same function, #1999, #2009); the quote paths are the un-pinned remainder in this function.

Acceptance criteria

  • parse_search_query("\"\"") does not produce a term that matches every tag: either the empty literal is refused/reported at the command layer, or it matches only empty fields — the chosen contract is pinned by a test.
  • name:"" and "":high keep their explicitly-empty component (distinct from name: / :high), or are refused the same way; a test pins whichever contract is chosen.
  • An unterminated quote ("abc def, key:"unclosed) never leaves a stray " in a search term: the term is parsed as if the quote closed at end of input, or the query is refused with a message naming the unterminated quote; a test pins it.
  • New parser tests in src/tags.rs cover at least "", name:"", "abc def, key:"unclosed; all existing parser tests (src/tags.rs:2425+) still pass, and the documented forms ("key:":":value", quoted phrases with spaces) are unchanged.

Filed by new-issue-creator-code-a. Related: #1609 (same function, whitespace separators), #2009 / #1999 (same silent-reinterpretation class in the REPL parsers).

Activity

Next
  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    source/creatorFiled by the new-issue-creator job
    priority/normalOrdinary priority (the default)
    queue/queuedHas a queued queue task
    on Oct 29, 2026
  2. developing-today commented on Oct 29, 2026

    @developing-today
    developing-todayBot
    on Oct 29, 2026 – with developing.today
    Contributor
    More actions

    CODE-932

  3. dezren39
    added
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    effort/sSmall: expected under 2 hours of work
    on Oct 29, 2026
  4. dezren39 commented on Oct 29, 2026

    @dezren39
    dezren39
    on Oct 29, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: new-issue-creator (new-issue-creator-code-a)
    • Session / ID: cron new-issue-creator-code-a, run 2026-10-28 19:35 CDT
    • Found via: filed this run
    • Task: Tag-search quote handling degenerates silently — "" matches every tag, name:"" widens to all values, an unterminated quote keeps its stray quote; verified with a verbatim-copy probe of the parser on the laptop against main 38f1f00.
    • Expectation: effort/s; done when the acceptance criteria in the issue body are met (quote-degenerate forms pinned by tests, no silent widening or stray-quote terms).
    • Links: queue packet enqueued to repo-health-code-pilot this run
  5. github-actions
    assigned
    dezren39
    on Oct 29, 2026
  6. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 1, 2026
  7. 30 remaining items

  8. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    agent-note:v1 — picked up — OpenChamber scheduled lane

    • Agent: queue worker (repo-worker-code)
    • Session / ID: queue task 5068 (repo-health-code-pilot)
    • Fresh state: id(tags): tag search quote handling degenerates silently — "" matches every tag, name:"" widens to all values, an unterminated quote keeps its stray quote and matches nothing #2011 is OPEN and assigned to dezren39 (Drew); it retains queue/parked, status/parked, and work/assigned labels. No open PR matched id(tags): tag search quote handling degenerates silently — "" matches every tag, name:"" widens to all values, an unterminated quote keeps its stray quote and matches nothing #2011.
    • Disposition: Prior task state treats this active assignment as ownership. No branch/worktree created and no implementation started.
    • Resume condition: Revalidate after Drew releases or explicitly hands off the issue.
    • Link: id(tags): tag search quote handling degenerates silently — "" matches every tag, name:"" widens to all values, an unterminated quote keeps its stray quote and matches nothing #2011
  9. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    agent-note:v1 — parked — OpenChamber scheduled lane

    • Agent: queue worker (repo-worker-code)
    • Session / ID: queue task 5068 (repo-health-code-pilot)
    • Fresh evidence: id(tags): tag search quote handling degenerates silently — "" matches every tag, name:"" widens to all values, an unterminated quote keeps its stray quote and matches nothing #2011 is OPEN, assigned to dezren39 (Drew), carries queue/parked and status/parked, and has no matching open PR.
    • Disposition: Parked for 30 minutes pending release or explicit handoff. No branch/worktree or implementation started. Existing work/assigned label remains; parked labels remain in sync.
    • Resume condition: Revalidate assignment, issue state, and PRs after Drew releases or explicitly hands off.
    • Link: id(tags): tag search quote handling degenerates silently — "" matches every tag, name:"" widens to all values, an unterminated quote keeps its stray quote and matches nothing #2011
  10. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up — assignment recheck

    • Agent: repo-worker-code (OpenChamber scheduled lane)
    • Session / ID: OpenCode session ses_e5e66162d7dffe2i1RS3D3bwOO; queue task 5068
    • Found via: atomic queue claim
    • Fresh state: id(tags): tag search quote handling degenerates silently — "" matches every tag, name:"" widens to all values, an unterminated quote keeps its stray quote and matches nothing #2011 OPEN and assigned to dezren39 / Drewry Pope; no open PR matches the issue. Prior task disposition treats the active assignment as ownership.
    • Next: park pending release/handoff; no worktree or implementation started.
  11. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked — active Drew assignment

    • Agent: repo-worker-code (OpenChamber scheduled lane)
    • Session / ID: OpenCode session ses_e5e66162d7dffe2i1RS3D3bwOO; queue task 5068
    • State: parked for 30 minutes. No branch, worktree, or implementation started.
    • Blocker: id(tags): tag search quote handling degenerates silently — "" matches every tag, name:"" widens to all values, an unterminated quote keeps its stray quote and matches nothing #2011 remains OPEN and assigned to Drew; no matching open PR found.
    • Resume when: Drew releases or explicitly hands off the issue; revalidate assignment, issue state, and PRs first.
  12. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 2, 2026
  13. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up (breaking park loop)

    • Agent: repo-worker-code (Lane B cron shift)
    • Task: queue task 5068 (repo-health-code-pilot)
    • Fresh state: id(tags): tag search quote handling degenerates silently — "" matches every tag, name:"" widens to all values, an unterminated quote keeps its stray quote and matches nothing #2011 OPEN, no open PR, no hard-stop labels (no held / user/owned / do-not-merge / do-not-auto-edit).
    • Note: the repeated parks treated assignment to dezren39 as personal ownership. That assignment is the fleet account this issue was filed under by the new-issue-creator agent; assignment alone is not a §9 hard stop. Proceeding with the small_fix implementation.
    • Next: laptop worktree, parser refusal contract + regression tests, PR.
  14. dezren39
    added a commit that references this issue on Nov 2, 2026

    fix(id): refuse degenerate tag-search quote forms (#4134)

    c8883fe
  15. dezren39
    closed this as completedin #4134on Nov 2, 2026
  16. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 2, 2026
  17. dezren39 commented on Nov 2, 2026

    @dezren39
    dezren39
    on Nov 2, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done — fixed and merged

    • Agent: repo-worker-code (Lane B cron shift)
    • Task: queue task 5068 (repo-health-code-pilot)
    • PR: fix(id): refuse degenerate tag-search quote forms #4134 merged (squash c8883fe); CI all checks SUCCESS; Codex review completed with no findings.
    • Change: parse_search_query now returns Result<_, SearchQueryError> — "", name:"", "":high, and unterminated quotes are refused instead of silently broadening/emptying results; web search maps refused queries to 400; unquoted name: / :value meanings unchanged. Regression tests pin all forms from this issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/sSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobtask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    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.