René's URL Explorer Experiment


Title: id(find/search): --format accepts any string and silently renders the tag format — a typo gets plausible-looking wrong output · Issue #2773 · developing-today/code · GitHub

Open Graph Title: id(find/search): --format accepts any string and silently renders the tag format — a typo gets plausible-looking wrong output · Issue #2773 · developing-today/code

X Title: id(find/search): --format accepts any string and silently renders the tag format — a typo gets plausible-looking wrong output · Issue #2773 · developing-today/code

Description: id(find/search): --format accepts any string and silently renders the tag format — a typo gets plausible-looking wrong output Evidence (main fe47fa09) pkgs/id/src/cli.rs:891 (Find) and pkgs/id/src/cli.rs:958 (Search): --format is a bare ...

Open Graph Description: id(find/search): --format accepts any string and silently renders the tag format — a typo gets plausible-looking wrong output Evidence (main fe47fa09) pkgs/id/src/cli.rs:891 (Find) and pkgs/id/src/...

X Description: id(find/search): --format accepts any string and silently renders the tag format — a typo gets plausible-looking wrong output Evidence (main fe47fa09) pkgs/id/src/cli.rs:891 (Find) and pkgs/id/src/...

Opengraph URL: https://github.com/developing-today/code/issues/2773

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"id(find/search): --format accepts any string and silently renders the tag format — a typo gets plausible-looking wrong output","articleBody":"# id(find/search): `--format` accepts any string and silently renders the tag format — a typo gets plausible-looking wrong output\n\n## Evidence (main `fe47fa09`)\n\n- `pkgs/id/src/cli.rs:891` (`Find`) and `pkgs/id/src/cli.rs:958` (`Search`): `--format` is a bare `String` with `default_value = \"tag\"` and **no `value_parser`**. The same file validates sibling options — `value_parser = [...]` lists at cli.rs:1412, 1946, 1966, 2004, 2007 and `ValueEnum` types at cli.rs:1345, 1355 — so the omission is local to these two args.\n- `pkgs/id/src/main.rs:319-347` passes `&format` straight into `cmd_find` / `cmd_search` with no check.\n- The printers treat every unrecognized value as `tag`:\n  - `pkgs/id/src/helpers.rs` `print_match_cli` (lines 155-175): `\"group\"` / `\"union\"` arms, `_` arm renders the tag format.\n  - `print_matches_cli` (lines 192-243): same `_` fallthrough.\n  - `print_match_repl` (lines 246-268): same `_` fallthrough, fed by the REPL parser at `pkgs/id/src/repl/runner.rs:666`, which assigns the `--format` value verbatim.\n\n## Verified behavior (probe, laptop `~/git/fleet/probe-2026-10-30-laneA-findformat/`)\n\nThe printers' match logic, copied verbatim with the match type stubbed, run over one match:\n\n```\n--- format=\"tag\"    -> abc123\u003cTAB>config.json\u003cTAB>(config)\n--- format=\"group\"  -> [config] / indented hash+name\n--- format=\"union\"  -> abc123\u003cTAB>config.json\n--- format=\"gorup\"  -> abc123\u003cTAB>config.json\u003cTAB>(config)   (== tag)\n--- format=\"yaml\"   -> abc123\u003cTAB>config.json\u003cTAB>(config)   (== tag)\n--- format=\"GROUP\"  -> abc123\u003cTAB>config.json\u003cTAB>(config)   (== tag)\n--- format=\"\"       -> abc123\u003cTAB>config.json\u003cTAB>(config)   (== tag)\n```\n\nSo `id find --format gorup config` and `id search --format yaml config` exit 0 and print tag-formatted output. Nothing tells the user the format was not understood.\n\n## Why it matters\n\n`--format` exists for scripts and for grouped/deduplicated reading. A mistyped or case-mismatched value silently produces a different shape than the caller asked for — the worst failure mode for a formatting flag, because the output still looks plausible and a script parsing `group` headers or `union` dedup semantics consumes tag rows instead. Every other enumerated CLI option in this file rejects bad values at parse time via clap; these two are the outliers.\n\nSecondary, same surface: the module doc at `pkgs/id/src/commands/find.rs:24-28` says \"**union**: Default format\", while the CLI default is `tag` (cli.rs:890/957 `default_value = \"tag\"`, help text \"tag (default)\"). The doc should be corrected with the fix.\n\n## Acceptance criteria\n\n- `id find --format \u003canything other than tag|group|union>` and the same for `id search` fail at argument parsing with a clap error naming the accepted values (e.g. via `value_parser` or a `ValueEnum`, matching the file's existing patterns).\n- The REPL `find`/`search` `--format` value is validated the same way, or the shared printers' fallthrough is otherwise made unreachable with an unknown value.\n- The `commands/find.rs` module doc no longer calls `union` the default.\n- A CLI parse test (alongside `test_cli_parse_find_with_format`, cli.rs:2609) pins that an invalid `--format` is rejected for both `find` and `search`.\n\nDedup: #2274 covers the REPL parsers swallowing unknown/mistyped *flags*; this is the distinct point that an accepted flag's *value* is never validated on either surface. No open or recently closed issue covers `--format` value validation.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-30T14:41:22Z","url":"https://github.com/developing-today/code/issues/2773"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:56985e47-d890-92fe-93a3-de1137582ee3
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDF56:38C88D:441661:5D5B32:6B0751B6
html-safe-noncecde21f72d811433d10c5d919368927cdf643909c25cb860ec31dfb2ed32a5c41
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjU2OjM4Qzg4RDo0NDE2NjE6NUQ1QjMyOjZCMDc1MUI2IiwidmlzaXRvcl9pZCI6Ijc0ODkyMjExODI2MzA2MTM0MzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac9052f87f906de4b6e54ae36bfdbb8d9e126fe8e2128719b3b4c5d69fed9a69a7
hovercard-subject-tagissue:6121183544
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/2773/issue_layout
twitter:imagehttps://opengraph.githubassets.com/89e83514d1bd69afc1c5f5eee3c9b041bc3e714296f50d9fefc78ba3706d95a1/developing-today/code/issues/2773
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/89e83514d1bd69afc1c5f5eee3c9b041bc3e714296f50d9fefc78ba3706d95a1/developing-today/code/issues/2773
og:image:altid(find/search): --format accepts any string and silently renders the tag format — a typo gets plausible-looking wrong output Evidence (main fe47fa09) pkgs/id/src/cli.rs:891 (Find) and pkgs/id/src/...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedezren39
hostnamegithub.com
expected-hostnamegithub.com
None663b1a69a41309856ffd9403fa5b764f6c0f78a39a0a8f75fb2c205c96a947be
turbo-cache-controlno-preview
go-importgithub.com/developing-today/code git https://github.com/developing-today/code.git
octolytics-dimension-user_id26439447
octolytics-dimension-user_logindeveloping-today
octolytics-dimension-repository_id627308783
octolytics-dimension-repository_nwodeveloping-today/code
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id627308783
octolytics-dimension-repository_network_root_nwodeveloping-today/code
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseeffa2c0a160a75bd95d9ffcc6320197d7aea0d83
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/2773#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F2773
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F2773
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=developing-today%2Fcode
Reloadhttps://github.com/developing-today/code/issues/2773
Reloadhttps://github.com/developing-today/code/issues/2773
Reloadhttps://github.com/developing-today/code/issues/2773
developing-todayhttps://github.com/developing-today
codehttps://github.com/developing-today/code
Codehttps://github.com/developing-today/code
Issues1k (1k)https://github.com/developing-today/code/issues
Pull requests205 (205)https://github.com/developing-today/code/pulls
Discussionshttps://github.com/developing-today/code/discussions
Actionshttps://github.com/developing-today/code/actions
Projectshttps://github.com/developing-today/code/projects
Wikihttps://github.com/developing-today/code/wiki
Security and qualityhttps://github.com/developing-today/code/security
Insightshttps://github.com/developing-today/code/insights
https://github.com/developing-today/code
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/2773
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/2773
id(find/search): --format accepts any string and silently renders the tag format — a typo gets plausible-looking wrong outputhttps://github.com/developing-today/code/issues/2773#top
https://github.com/dezren39
app/idhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Fid%22
effort/xshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fxs%22
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
priority/lowhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Flow%22
source/creatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fcreator%22
task/small-fixhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22task%2Fsmall-fix%22
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 30, 2026https://github.com/developing-today/code/issues/2773#issue-6121183544
#2274https://github.com/developing-today/code/issues/2274
Nexthttps://github.com/developing-today/code/issues/2773?timeline_page=1
dezren39https://github.com/dezren39
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
priority/lowhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Flow%22
queue/queuedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fqueued%22
source/creatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fcreator%22
task/small-fixhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22task%2Fsmall-fix%22
status/needs-triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fneeds-triage%22
app/idhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Fid%22
effort/xshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fxs%22
on Oct 30, 2026https://github.com/developing-today/code/issues/2773#event-34701044871
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 30, 2026https://github.com/developing-today/code/issues/2773#issuecomment-6525491145
fe47fa0https://github.com/developing-today/code/commit/fe47fa09cd215679f806750687ce84738c0b19d7
id(find/search): --format accepts any string and silently renders the tag format — a typo gets plausible-looking wrong output #2773https://github.com/developing-today/code/issues/2773
id(repl): find/search/show/peek parsers silently swallow unknown and mistyped flags — a typo'd flag vanishes and its value becomes a query #2274https://github.com/developing-today/code/issues/2274
github-actionshttps://github.com/apps/github-actions
dezren39https://github.com/dezren39
on Oct 30, 2026https://github.com/developing-today/code/issues/2773#event-34704130761
dezren39https://github.com/dezren39
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
queue/queuedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fqueued%22
status/needs-triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fneeds-triage%22
on Nov 1, 2026https://github.com/developing-today/code/issues/2773#event-34825649520
dezren39https://github.com/dezren39
status/parkedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fparked%22
on Nov 1, 2026https://github.com/developing-today/code/issues/2773#event-34826008176
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/2773#issuecomment-6556835875
fix(id): validate find/search --format values (CLI value_parser + REPL) — #2773 #3492https://github.com/developing-today/code/pull/3492
fix(id): validate find/search --format values (CLI value_parser + REPL) — #2773 #3492https://github.com/developing-today/code/pull/3492
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/2773#issuecomment-6556939446
id(find/search): --format accepts any string and silently renders the tag format — a typo gets plausible-looking wrong output #2773https://github.com/developing-today/code/issues/2773
id(find/search): --format accepts any string and silently renders the tag format — a typo gets plausible-looking wrong output #2773https://github.com/developing-today/code/issues/2773
fix(id): validate find/search --format values (CLI value_parser + REPL) — #2773 #3492https://github.com/developing-today/code/pull/3492
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/2773#issuecomment-6556940136
fix(id): validate find/search --format values (CLI value_parser + REPL) — #2773 #3492https://github.com/developing-today/code/pull/3492
fix(id): validate find/search --format values (CLI value_parser + REPL) — #2773 #3492https://github.com/developing-today/code/pull/3492
id(find/search): --format accepts any string and silently renders the tag format — a typo gets plausible-looking wrong output #2773https://github.com/developing-today/code/issues/2773
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/2773#issuecomment-6557284428
fix(id): validate find/search --format values (CLI value_parser + REPL) — #2773 #3492https://github.com/developing-today/code/pull/3492
id(find/search): --format accepts any string and silently renders the tag format — a typo gets plausible-looking wrong output #2773https://github.com/developing-today/code/issues/2773
3488a51https://github.com/developing-today/code/commit/3488a51acf39ce481ee4e54bc51a03583747c0ea
fix(id): validate find/search --format values (CLI value_parser + REPL) — #2773 #3492https://github.com/developing-today/code/pull/3492
fix(id): validate find/search --format values (CLI value_parser + REPL) — #2773 #3492https://github.com/developing-today/code/pull/3492
dezren39https://github.com/dezren39
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
status/parkedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fparked%22
queue/parkedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fparked%22
on Nov 1, 2026https://github.com/developing-today/code/issues/2773#event-34830609859
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/2773#event-34832552508
Merge pull request #3492 from developing-today/queue/5445-2773-format…https://github.com/developing-today/code/commit/a7ab43c75af18e80d9959bd6f3dd0fb83f3da697
#3492https://github.com/developing-today/code/pull/3492
a7ab43chttps://github.com/developing-today/code/commit/a7ab43c75af18e80d9959bd6f3dd0fb83f3da697
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 1, 2026https://github.com/developing-today/code/issues/2773#issuecomment-6558414030
fix(id): validate find/search --format values (CLI value_parser + REPL) — #2773 #3492https://github.com/developing-today/code/pull/3492
a7ab43chttps://github.com/developing-today/code/commit/a7ab43c75af18e80d9959bd6f3dd0fb83f3da697
id(cli): test_cli_parse_cat stack-overflows in the pkgs/id test binary (pre-existing, parse path) #3438https://github.com/developing-today/code/issues/3438
3488a51https://github.com/developing-today/code/commit/3488a51acf39ce481ee4e54bc51a03583747c0ea
fix(id): validate find/search --format values (CLI value_parser + REPL) — #2773 #3492https://github.com/developing-today/code/pull/3492
id(cli): test_cli_parse_cat stack-overflows in the pkgs/id test binary (pre-existing, parse path) #3438https://github.com/developing-today/code/issues/3438
dezren39https://github.com/dezren39
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Nov 1, 2026https://github.com/developing-today/code/issues/2773#event-34832570510
dezren39https://github.com/dezren39
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
on Nov 1, 2026https://github.com/developing-today/code/issues/2773#event-34832573156
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/2773
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/2773
dezren39https://github.com/dezren39
app/idhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Fid%22
effort/xshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fxs%22
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
priority/lowhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Flow%22
source/creatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fcreator%22
task/small-fixhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22task%2Fsmall-fix%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.